/* 첫 화면 — 공지·기록 로그 두 칸, 그 아래 top 10 보드 3열 */
.front {
	width: 100%;
	color: var(--text);
	font-size: 13px;
	line-height: 1.45;
}

.front a {
	color: inherit;
	text-decoration: none;
}

.front a:hover {
	text-decoration: underline;
}

.front-status {
	margin: 0;
	padding: 12px;
	color: var(--muted);
}

.front-top {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin-bottom: 10px;
}

.front-pane {
	display: flex;
	flex-direction: column;
	height: 200px;
	min-width: 0;
	overflow: hidden;
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: var(--radius);
}

.front-pane h2 {
	display: flex;
	justify-content: space-between;
	margin: 0;
	padding: 8px 12px;
	font-size: 13px;
	font-weight: 600;
	border-bottom: 1px solid var(--line);
}

.front-pane h2 small {
	color: var(--muted);
	font-weight: 400;
}

.front-pane ul {
	flex: 1;
	margin: 0;
	padding: 0;
	list-style: none;
	overflow-y: auto;
	scrollbar-color: var(--line) transparent;
}

.front-pane li {
	border-bottom: 1px solid var(--line);
}

.front-pane time {
	flex: none;
	color: var(--muted);
	font-size: 12px;
}

.front-pane li.front-empty {
	padding: 5px 12px;
	color: var(--muted);
	border-bottom: 0;
}

.front-notices li {
	display: flex;
	gap: 10px;
	padding: 5px 12px;
	white-space: nowrap;
	overflow: hidden;
}

.front-notice-text {
	overflow: hidden;
	text-overflow: clip;
}

.front-log li > a {
	display: flex;
	align-items: baseline;
	gap: 8px;
	padding: 5px 12px;
	white-space: nowrap;
	overflow: hidden;
}

.front-log li > a:hover {
	background: var(--frame);
	text-decoration: none;
}

.front-log b {
	font-weight: 600;
}

.front-log-time {
	font-variant-numeric: tabular-nums;
}

.front-log-track {
	flex: 1;
	min-width: 0;
	color: var(--muted);
	overflow: hidden;
	text-overflow: clip;
}

.front-log-car {
	flex: none;
	color: var(--muted);
}

.front-log time {
	margin-left: auto;
}

.front-tag {
	flex: none;
	padding: 0 5px;
	font-size: 11px;
	font-style: normal;
	font-weight: 600;
	border-radius: 4px;
}

.front-tag.wr {
	background: var(--wr-bg);
	color: var(--wr);
}

.front-tag.pb {
	background: var(--pb-bg);
	color: var(--pb);
}

.front-boards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
}

.front-board {
	min-width: 0;
	overflow: hidden;
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: var(--radius);
}

.front-board header {
	display: flex;
	align-items: baseline;
	gap: 8px;
	padding: 7px 10px;
	border-bottom: 1px solid var(--line);
}

.front-board-title {
	min-width: 0;
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: clip;
}

.front-board-sub {
	max-width: 45%;
	margin-left: auto;
	color: var(--muted);
	font-size: 12px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: clip;
}

.front-marker {
	flex: none;
	color: var(--muted);
	font-size: 11px;
	font-style: normal;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.front-board table {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
	font-size: 12px;
}

.front-board th {
	padding: 3px;
	color: var(--muted);
	font-weight: 400;
	text-align: left;
	border-bottom: 1px solid var(--line);
}

.front-board td {
	height: 23px;
	padding: 3px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: clip;
	border-bottom: 1px solid var(--line);
}

.front-board tbody tr:last-child td {
	border-bottom: 0;
}

.front-board .front-rank,
.front-board .front-time,
.front-board .front-date {
	text-align: right;
}

.front-board td.front-rank,
.front-board td.front-date,
.front-ps {
	color: var(--muted);
}

.front-board td.front-driver {
	font-weight: 500;
}

.front-board td.front-time {
	font-variant-numeric: tabular-nums;
}

.front-new {
	display: inline-block;
	width: 11px;
	height: 11px;
	margin-left: 2px;
	vertical-align: 1px;
	border-radius: 3px;
	background: var(--new-bg);
	color: var(--new);
	font: 600 8px/11px system-ui, sans-serif;
	font-style: normal;
	text-align: center;
}

.front-new.nil {
	background: none;
}

@media (max-width: 540px) {
	.front-top {
		grid-template-columns: 1fr;
	}

	.front-boards {
		grid-template-columns: 1fr;
	}

	.front-log-car {
		display: none;
	}
}
