/* Bracket editor + competition view extras */

.overlay-modal {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	z-index: 40;
}

.modal-card {
	background: #2a2a2a;
	border-radius: 0.6rem;
	padding: 1rem;
	width: 100%;
	max-width: 24rem;
}

.modal-card h3 {
	margin-bottom: 0.5rem;
}

.modal-card textarea {
	min-height: 8rem;
	margin: 0.5rem 0 0.8rem;
}

.modal-card input[type="text"] {
	margin: 0.5rem 0 0.8rem;
}

.modal-card .btn.hidden {
	display: none;
}

.rr-toolbar,
.se-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	align-items: center;
	margin: 0.5rem 0 0.8rem;
}

.rr-toolbar .btn,
.se-toolbar .btn {
	width: auto;
	margin: 0;
	padding: 0.45rem 0.75rem;
	font-size: 0.88rem;
}

.group-block {
	margin: 1rem 0 1.4rem;
	overflow-x: auto;
}

.group-block h3 {
	margin-bottom: 0.45rem;
}

.rr-table,
.se-board {
	border-collapse: collapse;
	font-size: 0.82rem;
	min-width: 100%;
}

.rr-table th,
.rr-table td {
	border: 1px solid #555;
	padding: 0.3rem 0.25rem;
	text-align: center;
	background: #1e1e1e;
	color: #f0f3f2;
}

.rr-table th {
	background: #2f2f2f;
	font-weight: 400;
	color: #bbb;
}

.rr-table td.diag {
	background: #3a3a3a;
}

.rr-table select {
	margin: 0;
	padding: 0.2rem;
	font-size: 0.8rem;
	border: 0;
	background: transparent;
	color: #fff;
	min-width: 4.5rem;
}

.match-ord {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.45rem;
	height: 1.45rem;
	border-radius: 50%;
	border: 1px solid #7eb6ff;
	color: #9ec9ff;
	font-size: 0.72rem;
}

/* Админ дээрх шивэгдсэн үр дүн */
.rr-table td.result-cell {
	background: #23301f;
	white-space: nowrap;
}

.rr-table td.result-cell .sc {
	color: #e8f5e9;
	font-weight: 600;
}

.rr-table td.result-cell .av {
	display: block;
	color: #93a892;
	font-size: 0.68rem;
}

.rr-table td:first-child,
.rr-table td.num-cell {
	color: #ffffff;
	font-weight: 800;
}

.rr-table td.rank-cell {
	color: #ffe566;
	font-weight: 800;
}

.se-wrap {
	overflow-x: auto;
	padding: 0.75rem;
	padding-bottom: 0.5rem;
	--se-link: 1.15rem;
	--se-linecolor: #8a949e;
	background: #eef1f4;
	border-radius: 6px;
}

.se-rounds {
	display: flex;
	gap: 0;
	align-items: stretch;
	min-width: max-content;
	padding: 0.5rem 0 0.5rem 1.2rem;
}

.se-col {
	display: flex;
	flex-direction: column;
	min-width: 11.5rem;
}

.se-head {
	position: relative;
	text-align: center;
	font-size: 0.78rem;
	color: #6b7a8d;
	line-height: 1.3;
	min-height: 2.9rem;
	padding: 0 var(--se-link);
}

/* Тойрог хураах/дэлгэх сум: баганын зүүн ирмэг дээр */
.se-nav {
	position: absolute;
	left: 0;
	top: 0.5rem;
	transform: translateX(-50%);
	width: 1.5rem;
	height: 1.5rem;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #9aa7b5;
	font-size: 0.7rem;
	line-height: 1;
	cursor: pointer;
}

.se-nav:hover,
.se-nav:focus-visible {
	background: rgba(255, 224, 102, 0.35);
	color: var(--brand, #0b2e28);
}

.se-head strong {
	display: block;
	font-weight: 600;
	color: var(--brand, #0b2e28);
}

.se-head small {
	font-size: 0.7rem;
	opacity: 0.85;
	color: #5a6e68;
}

.se-body {
	flex: 1;
	display: flex;
	flex-direction: column;
}

/* Тойрог хоорондын холбоос шугам: хэвтээ гарц + хос тоглолтыг холбох босоо шугам */
.se-item {
	position: relative;
	flex: 1;
	display: flex;
	align-items: center;
	padding: 0.3rem var(--se-link);
	min-height: 6.4rem;
}

.se-col:first-child .se-item {
	padding-left: 0;
}

.se-col:last-child .se-item {
	padding-right: 0;
}

.se-col:not(:last-child) .se-item::after {
	content: "";
	position: absolute;
	right: 0;
	top: 50%;
	width: var(--se-link);
	height: 2px;
	background: var(--se-linecolor);
}

.se-col:not(:last-child) .se-item:nth-child(odd)::before {
	content: "";
	position: absolute;
	right: 0;
	top: 50%;
	width: 2px;
	height: 100%;
	background: var(--se-linecolor);
}

.se-col:not(:first-child) .se-item > .se-match::before {
	content: "";
	position: absolute;
	left: calc(-1 * var(--se-link));
	top: 50%;
	width: var(--se-link);
	height: 2px;
	background: var(--se-linecolor);
}

/* Ганц тоглолттой тойрог хосыг холбох босоо шугам шаардахгүй */
.se-body.single .se-item:nth-child(odd)::before {
	display: none;
}

/* Аваргыг дангаар нь харуулах багана */
.se-win-col {
	min-width: 9.5rem;
	justify-content: center;
}

.se-match.solo > .se-slot {
	border-bottom: 0;
	border-radius: 0.35rem;
}

.se-match.solo .lg {
	font-size: 1rem;
	text-align: center;
}

.se-third {
	margin-top: 0.6rem;
}

.se-third .se-head {
	width: 13rem;
	min-height: 2.4rem;
}

.se-third .se-rounds {
	padding-left: 0;
}

.se-third .se-item {
	min-height: 4.6rem;
}

.se-match {
	position: relative;
	background: var(--card, #fff);
	color: var(--text-dark, #0a1a16);
	border-radius: 0.35rem;
	border: 1px solid rgba(11, 46, 40, 0.18);
	box-shadow: 0 1px 3px rgba(6, 31, 27, 0.07);
	width: 100%;
	min-width: 9rem;
}

/* DartConnect маяг — comp харагдац */
.se-match--dc {
	display: grid;
	grid-template-columns: 2.35rem 1fr;
	align-items: stretch;
	padding: 0;
	border: 1px solid #c5ccd4;
	border-radius: 4px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
	overflow: hidden;
	min-width: 10.5rem;
}

.se-tab {
	background: #5c6670;
	color: #fff;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.12rem;
	padding: 0.3rem 0.15rem;
	line-height: 1.05;
}

.se-tab-round {
	font-size: 0.62rem;
	font-weight: 600;
	opacity: 0.92;
}

.se-tab-board {
	font-size: 0.9rem;
	font-weight: 800;
	line-height: 1;
}

.se-match-main {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.se-match--dc .se-slot {
	display: grid;
	grid-template-columns: 1fr 1.8rem;
	gap: 0.25rem;
	align-items: center;
	padding: 0.38rem 0.45rem;
	border-bottom: 1px solid #e4e8ec;
	min-height: 2rem;
	font-size: 0.82rem;
	background: #fff;
}

.se-match--dc .se-slot.alt {
	background: #f3f5f7;
}

.se-match--dc .se-slot.won {
	background: #e7f1fb;
	font-weight: 700;
}

.se-match--dc .se-slot .lg {
	color: #1a6fdb;
	font-weight: 800;
	font-size: 0.95rem;
}

.se-match--dc .se-slot .avg {
	color: #7a8794;
}

.se-meta {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.15rem 0.45rem;
	padding: 0.22rem 0.45rem;
	font-size: 0.62rem;
	color: #6b7785;
	background: #f7f9fb;
	border-top: 1px solid #e4e8ec;
}

.se-meta-board {
	font-weight: 700;
	color: #4a5562;
}

.se-meta-ref {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.se-match--dc.playable:hover {
	border-color: #1a6fdb;
	box-shadow: 0 0 0 1px rgba(26, 111, 219, 0.25);
}

.se-match.playable:hover {
	border-color: var(--orange, #ff7a45);
	box-shadow: 0 0 0 1px rgba(255, 122, 69, 0.35);
}

.se-slot {
	display: grid;
	grid-template-columns: 1.4rem 1fr 1.6rem;
	gap: 0.2rem;
	align-items: center;
	padding: 0.35rem 0.4rem;
	border-bottom: 1px solid #e3e3e3;
	min-height: 2rem;
	font-size: 0.85rem;
}

.se-match > .se-slot:nth-child(1) {
	border-radius: 0.35rem 0.35rem 0 0;
}

.se-match > .se-slot:nth-child(2) {
	border-bottom: 0;
	border-radius: 0 0 0.35rem 0.35rem;
}

/* Самбарын дугаар: холбоос шугамны булан дээрх цэг, зоосон бол шошго болно */
.se-dot,
.se-badge {
	position: absolute;
	right: 0;
	top: 50%;
	z-index: 3;
	border: 0;
	cursor: pointer;
	font: inherit;
	padding: 0;
}

.se-dot {
	width: 0.85rem;
	height: 0.85rem;
	border-radius: 50%;
	background: #9aa7b5;
	transform: translate(50%, -50%);
	opacity: 0;
	transition: opacity 0.15s;
}

.se-item:hover .se-dot,
.se-dot:focus-visible {
	opacity: 1;
}

.se-badge {
	transform: translate(30%, -50%);
	background: var(--orange, #ff7a45);
	color: #fff;
	font-size: 0.7rem;
	font-weight: 700;
	line-height: 1;
	padding: 0.3rem 0.55rem;
	border-radius: 999px;
	white-space: nowrap;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

/* Шүүгч: тоглолтын доорх тасархай зурвас */
.se-ref {
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	right: 0;
	min-height: 1.25rem;
	border: 1px dashed #9aa7b5;
	border-radius: 0.25rem;
	background: transparent;
	color: #7b8896;
	font: inherit;
	font-size: 0.7rem;
	line-height: 1.2;
	padding: 0.15rem 0.3rem;
	text-align: center;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

button.se-ref {
	cursor: pointer;
}

button.se-ref:hover {
	border-color: var(--orange, #ff7a45);
	color: var(--brand-mid, #0f3d34);
}

.se-ref.placeholder {
	color: #b0bac6;
}

.se-ref.set {
	border-style: solid;
	border-color: rgba(11, 46, 40, 0.2);
	color: var(--brand-mid, #0f3d34);
	background: rgba(11, 46, 40, 0.05);
}

.se-slot.won {
	background: rgba(255, 224, 102, 0.28);
	font-weight: 700;
}

.se-slot .nm {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	text-align: left;
}

.se-slot .avg {
	color: #8a97a6;
	font-size: 0.7rem;
	font-weight: 400;
}

.se-slot .lg {
	text-align: right;
	font-variant-numeric: tabular-nums;
}

.se-slot .seed {
	color: #888;
	font-size: 0.75rem;
}

.se-slot select {
	margin: 0;
	padding: 0.15rem;
	border: 0;
	background: transparent;
	color: #111;
	font-size: 0.85rem;
	max-width: 100%;
}

/* Админы харанхуй дэвсгэр дээр гарчиг, сум уншигдахуйц байх */
#se-editor .se-head {
	color: #9aa7b5;
}

#se-editor .se-head strong {
	color: #dbe4ef;
}

#se-editor .se-nav:hover,
#se-editor .se-nav:focus-visible {
	background: #3c4a5a;
	color: #fff;
}

/* Competition page — Mon Darts palette (forest + coral/yellow accents) */
.comp-tabs {
	display: flex;
	justify-content: center;
	gap: 1.4rem;
	padding: 0.7rem 0.5rem;
	background: var(--card, #fff);
	color: var(--text-dark, #0a1a16);
	border-bottom: 1px solid rgba(11, 46, 40, 0.12);
}

.comp-tabs button {
	font-family: inherit;
	font-size: 1rem;
	background: none;
	border: 0;
	padding: 0.3rem 0.2rem;
	cursor: pointer;
	color: #5a6e68;
	border-bottom: 3px solid transparent;
}

.comp-tabs button.active {
	color: var(--brand, #0b2e28);
	font-weight: 700;
	border-bottom-color: var(--yellow, #ffe066);
}

.comp-body {
	background: var(--page-bg, #e6ecea);
	color: var(--text-dark, #0a1a16);
	min-height: 70vh;
	padding: 0.8rem;
	container-type: inline-size;
	container-name: comp;
}

.comp-body h2 {
	font-size: 1rem;
	margin: 0.4rem 0 0.7rem;
	color: var(--brand, #0b2e28);
	font-weight: 700;
}

/* Хэсгүүд: өргөн мэдэрч 1 → 2 → 4 багана */
.rr-grid {
	display: grid;
	gap: 0.7rem;
	grid-template-columns: 1fr;
	align-items: start;
}

@container comp (min-width: 36rem) {
	.rr-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@container comp (min-width: 72rem) {
	.rr-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@supports not (container-type: inline-size) {
	@media (min-width: 700px) {
		.rr-grid {
			grid-template-columns: repeat(2, minmax(0, 1fr));
		}
	}
	@media (min-width: 1280px) {
		.rr-grid {
			grid-template-columns: repeat(4, minmax(0, 1fr));
		}
	}
}

.rr-card {
	background: var(--card, #fff);
	border: 1px solid rgba(11, 46, 40, 0.14);
	border-radius: 0.4rem;
	overflow: hidden;
	min-width: 0;
	box-shadow: 0 1px 4px rgba(6, 31, 27, 0.06);
}

.rr-card .rr-scroll {
	overflow: visible;
	min-width: 0;
}

.rr-card h3 {
	background: linear-gradient(105deg, var(--brand, #0b2e28) 0%, var(--brand-mid, #0f3d34) 100%);
	color: #fff;
	padding: 0.4rem 0.55rem;
	font-size: 0.88rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	border-left: 3px solid var(--yellow, #ffe066);
}

.rr-card table {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
}

.rr-card th,
.rr-card td {
	border: 1px solid rgba(11, 46, 40, 0.1);
	padding: 0.22rem 0.12rem;
	text-align: center;
	font-size: 0.68rem;
	overflow: hidden;
}

.rr-card th {
	background: rgba(11, 46, 40, 0.05);
	font-weight: 600;
	color: #5a6e68;
}

.rr-card .c-num {
	width: 1.35rem;
	color: #8a9a94;
	font-size: 0.62rem;
}

.rr-card th.c-name {
	text-align: left;
	padding-left: 0.4rem;
}

.rr-card td.c-name {
	width: 28%;
	text-align: left;
	padding: 0.22rem 0.35rem;
	font-size: 0.78rem;
	line-height: 1.15;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.rr-card .c-m {
	width: 2.05rem;
}

.rr-card .c-s {
	width: 2.15rem;
	font-size: 0.62rem;
}

.rr-card td.diag {
	background: rgba(11, 46, 40, 0.08);
}

.rr-card td.rank-num {
	font-weight: 700;
	color: var(--brand, #0b2e28);
}

.rr-card a.name-link {
	color: var(--brand-mid, #0f3d34);
	text-decoration: none;
	font-weight: 700;
	font-size: 0.78rem;
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.rr-card a.name-link:hover {
	color: var(--orange, #ff7a45);
}

.rr-card td.result-cell .sc {
	color: var(--text-dark, #0a1a16);
	font-weight: 600;
}

.rr-card .avg {
	display: block;
	font-size: 0.6rem;
	color: #8a9a94;
	font-weight: 400;
}

.ord {
	display: inline-flex;
	width: 1.3rem;
	height: 1.3rem;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: rgba(255, 224, 102, 0.45);
	color: var(--brand, #0b2e28);
	border: 1px solid rgba(255, 224, 102, 0.9);
	font-size: 0.66rem;
	font-weight: 700;
	text-decoration: none;
}

.ord.mine {
	background: var(--yellow, #ffe066);
	border-color: var(--orange, #ff7a45);
	color: var(--brand, #0b2e28);
	box-shadow: 0 0 0 2px rgba(255, 122, 69, 0.35);
}

.ord.locked {
	background: rgba(11, 46, 40, 0.08);
	border-color: transparent;
	color: #8a9a94;
	font-weight: 600;
	opacity: 0.75;
}

.rr-card tr.me-row td.c-name {
	background: rgba(255, 224, 102, 0.2);
}

.rr-card tr.me-row a.name-link {
	color: var(--orange, #ff7a45);
}

.se-match.mine-active {
	border-color: var(--orange, #ff7a45);
	box-shadow: 0 0 0 2px rgba(255, 224, 102, 0.55);
}

.se-match.locked {
	opacity: 0.72;
}

.se-slot.me .nm {
	color: var(--brand, #0b2e28);
	font-weight: 800;
}

.pill-btn.joined {
	background: var(--yellow, #ffe066);
	color: var(--brand, #0b2e28);
	border-color: var(--orange, #ff7a45);
}

.join-modal select {
	width: 100%;
	margin-top: 0.35rem;
	padding: 0.55rem 0.6rem;
	border-radius: 0.35rem;
	border: 1px solid #3a5550;
	background: #111;
	color: #fff;
	font-size: 1rem;
}

.result-cell {
	font-size: 0.7rem;
	color: #33443f;
}

.rr-card td.live-cell {
	background: rgba(255, 77, 77, 0.08);
	position: relative;
}

.rr-card td.live-cell .sc {
	color: var(--live, #ff4d4d);
}

.rr-card td.live-cell::after {
	content: "";
	position: absolute;
	top: 3px;
	right: 3px;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--live, #ff4d4d);
	animation: live-blink 1.1s ease-in-out infinite;
}

.rr-card.rr-wide .c-m {
	width: 1.7rem;
	padding: 0.15rem 0.05rem;
}

.rr-card.rr-wide td.c-name {
	width: 22%;
	font-size: 0.72rem;
}

.rr-card.rr-wide .ord {
	width: 1.15rem;
	height: 1.15rem;
	font-size: 0.6rem;
}

.rr-table td.live-cell {
	background: #3a2330;
}

.rr-table td.live-cell .sc {
	color: #ff8ac0;
}

@keyframes live-blink {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.25; }
}

/* Явагдаж буй тоглолтууд зэрэгцээ багананд */
.live-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
	gap: 0.8rem;
	align-items: start;
}

/* ---------- Жижиг оноогийн самбар (Live + ТВ — DartConnect загвар) ---------- */
.sb {
	--sb-chrome: #0c1828;
	--sb-gold: #c9a227;
	--sb-row: #ffffff;
	--sb-ink: #111111;
	--sb-muted: #6b7280;
	--sb-green: #16a34a;
	--sb-arrow: #e11d48;
	background: var(--sb-row);
	color: var(--sb-ink);
	border: 2px solid var(--sb-gold);
	overflow: hidden;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	font-variant-numeric: tabular-nums;
	line-height: 1.15;
}

.sb-head {
	display: flex;
	align-items: stretch;
	justify-content: space-between;
	gap: 0.5rem;
	background: var(--sb-chrome);
	color: #fff;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.sb-head-left {
	flex: 1 1 auto;
	padding: 0.35rem 0.55rem;
	display: flex;
	align-items: center;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.sb-head-cols {
	display: grid;
	grid-template-columns: 3.2rem 2.6rem 5rem 1.15rem;
	flex: 0 0 auto;
}

.sb-head-cols span {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0.35rem 0.2rem;
	border-left: 1px solid rgb(255 255 255 / 0.12);
	font-size: 0.62rem;
	letter-spacing: 0.1em;
}

.sb-head-cols .sb-head-ar {
	padding: 0;
	background: transparent;
	border-left-color: transparent;
}

.sb-row {
	display: grid;
	grid-template-columns: 2rem 1fr 3.2rem 2.6rem 5rem 1.15rem;
	align-items: stretch;
	background: var(--sb-row);
	min-height: 2.75rem;
}

.sb-row + .sb-row {
	border-top: 1px solid #d1d5db;
}

.sb-badge {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0.2rem 0.25rem 0.2rem 0.35rem;
	border-right: 1px solid #e5e7eb;
}

.sb-badge-logo img {
	width: 1.35rem;
	height: 1.35rem;
	object-fit: contain;
	display: block;
}

.sb-badge-flag {
	line-height: 1;
}

.sb-badge-flag img {
	width: 1.35rem;
	height: 0.95rem;
	object-fit: cover;
	display: block;
	border: 1px solid rgb(0 0 0 / 0.12);
	border-radius: 1px;
}

.sb-badge-empty {
	width: 1.35rem;
}

.sb-nm {
	display: flex !important;
	align-items: center;
	gap: 0.4rem;
	padding: 0.4rem 0.5rem;
	min-width: 0;
	overflow: hidden;
}

.sb-nm-text {
	font-size: 1.15rem;
	font-weight: 800;
	letter-spacing: 0.01em;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	min-width: 0;
}

/* Лег эхлүүлсэн — нэрний ард ногоон цэг */
.sb-start-dot {
	flex: 0 0 auto;
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 50%;
	background: var(--sb-green);
}

.sb-avg,
.sb-row .sb-lg,
.sb-row .sb-sc {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0.35rem 0.2rem;
	border-left: 1px solid #e5e7eb;
	font-weight: 600;
}

.sb-avg {
	font-size: 0.9rem;
	color: var(--sb-ink);
}

.sb-row .sb-lg {
	font-size: 1.05rem;
}

.sb-row .sb-sc {
	position: relative;
	font-size: 1.55rem;
	font-weight: 800;
	justify-content: flex-end;
	padding-right: 0.35rem;
	gap: 0.12rem;
	overflow: hidden;
}

.sb-sc.is-flash {
	background: #8b3a2f;
	justify-content: center;
	padding-right: 0.2rem;
}

.sb-sc-main,
.sb-sc-hit {
	position: relative;
	z-index: 1;
}

.sb-sc-ghost {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	padding-right: 2.1rem;
	font-size: 1.55rem;
	font-weight: 800;
	color: var(--sb-ink);
	opacity: 0.22;
	pointer-events: none;
}

.sb-sc.is-flash .sb-sc-ghost {
	display: none;
}

.sb-sc.is-flash .sb-sc-hit {
	color: #fff;
	animation: sb-hit-pop 0.25s ease-out;
}

.sb-sc .sb-last {
	font-style: normal;
	font-size: 0.72rem;
	font-weight: 500;
	color: var(--sb-muted);
	margin-left: 0.1rem;
	position: relative;
	z-index: 1;
}

.sb-sc.is-flash .sb-last {
	color: rgb(255 255 255 / 0.75);
}

/* Шидэж буй — баруун талын улаан гурвалжин */
.sb-ar {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.55rem;
	line-height: 1;
	color: transparent;
	background: transparent;
}

.sb-ar.is-on {
	color: #fff;
	background: var(--sb-arrow);
	font-size: 0.65rem;
}

.sb-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	background: var(--sb-chrome);
	color: #fff;
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.03em;
	padding: 0.3rem 0.55rem;
}

.sb-foot-left {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.sb-foot-right {
	flex: 0 0 auto;
	opacity: 0.85;
	font-size: 0.62rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

@keyframes sb-hit-pop {
	from {
		transform: scale(1.15);
		opacity: 0.6;
	}
	to {
		transform: scale(1);
		opacity: 1;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sb-sc.is-flash .sb-sc-hit {
		animation: none;
	}
}

@media (min-width: 640px) {
	.sb-head {
		font-size: 0.78rem;
	}

	.sb-head-cols {
		grid-template-columns: 3.6rem 3rem 5.6rem 1.25rem;
	}

	.sb-row {
		grid-template-columns: 2.2rem 1fr 3.6rem 3rem 5.6rem 1.25rem;
		min-height: 3rem;
	}

	.sb-nm-text {
		font-size: 1.35rem;
	}

	.sb-row .sb-sc,
	.sb-sc-ghost {
		font-size: 1.75rem;
	}
}

.result-list {
	display: grid;
	gap: 0.55rem;
	max-width: 36rem;
	margin: 0 auto;
}

.result-item {
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 0.35rem;
	padding: 0.55rem 0.7rem;
}

.result-item.active {
	background: #ffe8ec;
}

.result-item .when {
	font-size: 0.75rem;
	color: #888;
	margin-bottom: 0.25rem;
}

.result-item .row {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 0.5rem;
	text-align: center;
}

.result-item .nm {
	font-weight: 700;
}

.result-item .sc {
	font-size: 1.2rem;
	font-weight: 700;
}

.comp-foot {
	text-align: center;
	padding: 1rem 0.5rem 2rem;
	background: var(--page-bg, #e6ecea);
	color: #5a6e68;
	font-size: 0.88rem;
}

.comp-foot a {
	color: var(--brand-mid, #0f3d34);
	font-weight: 600;
}

.comp-foot a:hover {
	color: var(--orange, #ff7a45);
}

.join-modal input {
	background: #111;
	color: #fff;
}
