/* Mon Darts — match view · DartConnect TV өнгө (байрлал хэвээр) */
@import url("tokens.css");
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700;800&display=swap");

/* Match page palette — dark TV / DartConnect */
:root {
	--dc-bg: #000000;
	--dc-surface: #0d0d0d;
	--dc-panel: #1e2832;
	--dc-panel-2: #2c3946;
	--dc-stripe: #3a4b5c;
	--dc-red: #b22222;
	--dc-red-deep: #8b1a1a;
	--dc-gold: #ffd700;
	--dc-blue: #8da4bd;
	--dc-muted: #9aa7b5;
	--dc-line: #2e3640;

	--page-bg: var(--dc-bg);
	--text: #f2f5f8;
	--green: var(--dc-panel);
	--green-dark: #0c1016;
	--green-mid: var(--dc-panel-2);
	--green-line: #3a4552;
	--white: #ffffff;
	--border: var(--dc-line);
	--cell-white: var(--dc-surface);
	--cell-gray: #161616;
	--active: var(--dc-gold);
	--active-rem: #4a6d8c;
	--bust: #6b1f1f;
	--gold: var(--dc-gold);
	--live: #c41e1e;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	-webkit-tap-highlight-color: transparent;
}

html,
body {
	height: 100%;
}

body {
	background: var(--dc-bg);
	color: var(--text);
	font-family: "Montserrat", "Segoe UI", Helvetica, Arial, sans-serif;
	font-weight: 600;
	overflow: hidden;
}

#app {
	display: flex;
	flex-direction: column;
	height: 100vh;
	height: 100dvh;
	max-width: 34rem;
	margin: 0 auto;
	background: var(--dc-bg);
}

/* ---------- Header ---------- */

#header {
	flex: 0 0 auto;
	background: var(--dc-panel);
	color: var(--white);
	padding: calc(0.25rem + env(safe-area-inset-top)) 0.3rem 0.35rem;
}

.title-row {
	position: relative;
	text-align: center;
	font-size: clamp(0.7rem, 1.9vh, 1.05rem);
	font-weight: 600;
	line-height: 1.25;
	padding: 0 0.75rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	opacity: 0.92;
	color: #d5dde6;
}

#live-badge {
	display: inline-block;
	background: var(--live);
	color: var(--white);
	font-size: 0.82em;
	margin-left: 0.45em;
	padding: 0.05em 0.6em;
	border-radius: 2em;
	vertical-align: baseline;
	font-weight: 800;
	letter-spacing: 0.04em;
}

#live-badge.view-mode {
	background: var(--dc-gold);
	color: #111;
}

.players-row {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 0.25rem;
}

.player-cell {
	min-width: 0;
	text-align: center;
	font-size: clamp(1rem, 3vh, 1.8rem);
	font-weight: 800;
	line-height: 1.2;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	padding: 0.2rem 0.3rem;
	background: var(--dc-panel-2);
}

#p2-cell {
	background: var(--dc-red-deep);
}

.throw-mark {
	visibility: hidden;
	margin-right: 0.15em;
	color: var(--dc-gold);
}

.player-cell.throws .throw-mark {
	visibility: visible;
}

#legs {
	font-size: clamp(1.4rem, 4.4vh, 2.6rem);
	font-weight: 800;
	line-height: 1.1;
	padding: 0 0.4rem;
	white-space: nowrap;
	color: var(--dc-gold);
}

/* ---------- Онооны хүснэгт ---------- */

#article {
	position: relative;
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	overflow-x: hidden;
	background: var(--dc-bg);
	-webkit-overflow-scrolling: touch;
}

.score-table {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
}

.score-table th,
.score-table td {
	border: 2px solid var(--dc-line);
	text-align: center;
	height: clamp(2.3rem, 8.2vh, 4.4rem);
	font-size: clamp(1.2rem, 5vh, 2.6rem);
	font-weight: 700;
	overflow: hidden;
	color: var(--white);
}

.score-table th {
	position: sticky;
	top: 0;
	z-index: 2;
	background: #1a1f26;
	font-weight: 600;
	height: auto;
	padding: 0.15rem 0;
	font-size: clamp(0.7rem, 2.1vh, 1.15rem);
	color: var(--dc-muted);
}

.c-scored {
	width: 22%;
}

.c-togo {
	width: 23%;
}

.c-round {
	width: 10%;
	background: #222830;
}

td.cell-scored {
	background: #141820;
}

td.cell-togo {
	background: var(--dc-bg);
	color: var(--dc-blue);
}

td.cell-round {
	background: #222830;
	font-size: clamp(0.9rem, 3.4vh, 1.6rem);
	font-weight: 600;
	color: var(--dc-muted);
}

td.cell-active {
	background: var(--dc-gold);
	color: #111;
}

td.cell-active.rem-mode {
	background: var(--active-rem);
	color: var(--white);
}

td.cell-bust {
	background: var(--bust);
	color: #ffb4b4;
	text-decoration: line-through;
}

td.cell-win,
.leg-table td.leg-win {
	background: rgba(34, 120, 78, 0.42);
	color: #fff;
	font-weight: 800;
}

.score-win {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.28em;
}

.score-win-dart {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.35em;
	padding: 0.05em 0.28em;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.22);
	font-size: 0.62em;
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1.2;
}

td.cell-checkout {
	font-weight: 800;
	color: var(--dc-gold);
}

td.cell-editable {
	cursor: pointer;
	user-select: none;
	-webkit-user-select: none;
	touch-action: pan-y;
	transition: filter 0.12s, transform 0.12s;
}

td.cell-editable.long-pressing {
	filter: brightness(0.72);
	transform: scale(0.96);
}

/* 100+ оноо — нарийн зууван дугуй (Nakka) */
.score-ton {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.55em;
	padding: 0.02em 0.32em;
	border: 1px solid rgba(200, 200, 200, 0.7);
	border-radius: 999px;
	line-height: 1.12;
	box-sizing: border-box;
	vertical-align: middle;
}

td.cell-active .score-ton {
	border-color: rgba(40, 40, 40, 0.45);
}

.leg-table .score-ton {
	border-color: rgba(220, 220, 220, 0.55);
	min-width: 1.4em;
	padding: 0.02em 0.28em;
}

.score-table tr:first-child td {
	border-top: 0;
}

/* ---------- Footer ---------- */

#footer {
	flex: 0 0 auto;
	background: var(--dc-panel);
	padding-bottom: env(safe-area-inset-bottom);
}

#big-scores {
	display: grid;
	grid-template-columns: 1fr 1fr;
}

.big-box {
	padding: 0.3rem;
	min-width: 0;
}

.big-inner {
	color: var(--dc-blue);
	font-weight: 800;
	font-size: clamp(2.6rem, 11vh, 6.5rem);
	line-height: 1.06;
	text-align: center;
	padding: 0.04em 0;
}

.big-box.focus .big-inner {
	background: var(--dc-gold);
	color: #0a0a0a;
}

.big-box.finish .big-inner {
	background: var(--dc-gold);
	color: #0a0a0a;
}

/* ---------- Менюны мөр ---------- */

#menu-bar {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
}

#menu-bar button {
	font-family: inherit;
	font-size: clamp(0.72rem, 2.1vh, 1.05rem);
	font-weight: 700;
	padding: 0.45rem 0.1rem;
	background: transparent;
	color: var(--white);
	border: 0;
	cursor: pointer;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

#menu-bar button:disabled {
	opacity: 0.38;
	cursor: default;
}

#menu-more {
	letter-spacing: 0.1em;
}

/* ---------- Keypad ---------- */

#keypad {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1px;
	background: var(--dc-line);
	border-top: 1px solid var(--dc-line);
}

#keypad.hidden {
	display: none;
}

.key {
	font-family: inherit;
	font-size: clamp(1.1rem, 3.4vh, 2rem);
	font-weight: 700;
	height: clamp(2.5rem, 7.4vh, 4.4rem);
	border: 0;
	background: var(--dc-panel);
	color: var(--white);
	cursor: pointer;
}

.key-enter,
.key-del {
	font-size: clamp(0.95rem, 2.8vh, 1.6rem);
}

.key:active {
	background: var(--dc-red-deep);
}

/* ---------- Overlay / modal ---------- */

.overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	display: none;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	z-index: 10;
}

.overlay.open {
	display: flex;
}

/* ---------- Шинэ тоглолт (тохиргоо) ---------- */

.setup-page {
	align-items: stretch;
	justify-content: center;
	padding: 0;
	background: var(--dc-bg);
	z-index: 30;
}

.setup-page.open {
	display: flex;
}

.setup-shell {
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 34rem;
	height: 100%;
	height: 100dvh;
	margin: 0 auto;
	background: var(--dc-bg);
	color: var(--text);
}

.setup-top {
	flex: 0 0 auto;
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 0.5rem;
	padding: calc(0.45rem + env(safe-area-inset-top)) 0.55rem 0.55rem;
	background: var(--dc-panel);
	border-bottom: 1px solid var(--dc-line);
}

.setup-title {
	margin: 0;
	text-align: center;
	font-size: clamp(0.95rem, 2.4vh, 1.15rem);
	font-weight: 700;
	letter-spacing: 0.02em;
	color: var(--white);
}

.setup-pill {
	appearance: none;
	font-family: inherit;
	font-size: 0.78rem;
	font-weight: 700;
	padding: 0.42rem 0.75rem;
	border-radius: 0.35rem;
	border: 1px solid var(--dc-stripe);
	background: var(--dc-panel-2);
	color: var(--white);
	cursor: pointer;
	text-decoration: none;
	white-space: nowrap;
}

.setup-pill:hover {
	border-color: var(--dc-muted);
}

.setup-go {
	background: var(--dc-gold);
	border-color: var(--dc-gold);
	color: #101820;
}

.setup-go:hover {
	filter: brightness(1.05);
}

.setup-body {
	flex: 1 1 auto;
	overflow-y: auto;
	padding: 0.85rem 0.75rem 1.2rem;
	-webkit-overflow-scrolling: touch;
}

.setup-block {
	background: var(--dc-surface);
	border: 1px solid var(--dc-line);
	border-radius: 0.45rem;
	padding: 0.75rem 0.7rem;
	margin-bottom: 0.75rem;
}

.setup-caption {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--dc-muted);
	margin-bottom: 0.55rem;
}

.setup-field {
	display: block;
	margin-bottom: 0.55rem;
}

.setup-field:last-child {
	margin-bottom: 0;
}

.setup-field > span {
	display: block;
	font-size: 0.72rem;
	font-weight: 600;
	color: var(--dc-muted);
	margin-bottom: 0.2rem;
}

.setup-field input,
.setup-row select,
.setup-field select {
	display: block;
	width: 100%;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 600;
	padding: 0.55rem 0.65rem;
	border: 1px solid var(--dc-stripe);
	border-radius: 0.35rem;
	background: var(--dc-panel);
	color: var(--white);
}

.setup-field input::placeholder {
	color: #6b7a8a;
}

.setup-field input:focus,
.setup-row select:focus {
	outline: 2px solid var(--dc-gold);
	outline-offset: 1px;
}

.setup-tabs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0;
	margin-bottom: 0.75rem;
	border: 1px solid var(--dc-line);
	border-radius: 0.4rem;
	overflow: hidden;
}

.setup-tab {
	font-family: inherit;
	font-size: 0.95rem;
	font-weight: 700;
	padding: 0.65rem 0.5rem;
	border: 0;
	background: var(--dc-panel-2);
	color: var(--dc-muted);
	cursor: pointer;
}

.setup-tab.on {
	background: var(--dc-panel);
	color: var(--white);
	box-shadow: inset 0 -3px 0 var(--dc-gold);
}

.setup-tab:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.setup-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 0.65rem;
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--text);
}

.setup-row:last-of-type {
	margin-bottom: 0.65rem;
}

.setup-row select {
	width: auto;
	min-width: 7.5rem;
	flex: 0 0 auto;
}

.setup-check {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}

.setup-check input,
.setup-check-line input {
	width: 1.05rem;
	height: 1.05rem;
	accent-color: var(--dc-gold);
}

.setup-check-line {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	margin-top: 0.35rem;
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--text);
	cursor: pointer;
}

.setup-foot {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.45rem;
	padding: 0.65rem 0.75rem calc(0.85rem + env(safe-area-inset-bottom));
	border-top: 1px solid var(--dc-line);
	background: var(--dc-surface);
}

.setup-foot-btn {
	appearance: none;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: inherit;
	font-size: 0.9rem;
	font-weight: 700;
	padding: 0.7rem 1rem;
	border-radius: 999px;
	border: 1px solid var(--dc-stripe);
	background: var(--dc-panel);
	color: var(--white);
	text-decoration: none;
	cursor: pointer;
}

.setup-foot-btn:hover {
	border-color: var(--dc-gold);
	color: var(--dc-gold);
}

#setup-resume {
	background: var(--dc-panel-2);
	border-color: var(--dc-gold);
	color: var(--dc-gold);
}

.modal {
	background: var(--white);
	border-radius: 0.7rem;
	padding: 1.1rem;
	width: 100%;
	max-width: 30rem;
	max-height: 88vh;
	overflow-y: auto;
	color: #0a1a16;
}

.modal-sm {
	max-width: 21rem;
	text-align: center;
}

.starter-modal {
	max-width: 18.5rem;
	padding: 1rem 1rem 1.15rem;
	border: 2px solid var(--yellow, #ffe066);
	box-shadow: 0 8px 28px rgba(6, 31, 27, 0.35);
}

.starter-modal h2 {
	margin-bottom: 0.45rem;
	font-size: 1.05rem;
}

.starter-modal p {
	margin-bottom: 0.85rem;
	font-size: 0.92rem;
	color: #33443f;
	line-height: 1.35;
}

.starter-pick {
	gap: 0.55rem;
}

.starter-btn {
	width: 100%;
	padding: 0.75rem 0.85rem;
	font-size: 1.05rem;
	font-weight: 700;
}

.starter-btn.suggested {
	box-shadow: inset 0 0 0 2px var(--yellow, #ffe066);
}

.modal h2 {
	color: var(--dc-panel-2);
	font-size: 1.2rem;
	margin-bottom: 0.85rem;
}

.btn-main,
.btn-ghost,
.btn-dart {
	font-family: inherit;
	font-size: 0.95rem;
	font-weight: 700;
	padding: 0.6rem 1.05rem;
	border-radius: 0.3rem;
	border: 1px solid var(--dc-panel);
	cursor: pointer;
}

.btn-main {
	background: var(--dc-panel);
	color: var(--white);
}

.btn-ghost {
	background: var(--white);
	color: var(--dc-panel);
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
}

.btn-dart {
	background: var(--dc-red);
	color: var(--white);
	font-size: 1.5rem;
	font-weight: 800;
	padding: 0.75rem 0;
	border-color: var(--dc-red);
}

.modal p {
	margin-bottom: 1rem;
	font-size: 0.98rem;
}

.modal .edit-score-label {
	text-align: left;
}

.edit-score-error {
	min-height: 1.2em;
	margin: -0.25rem 0 0.65rem !important;
	color: #c62828;
	font-size: 0.8rem !important;
	text-align: left;
}

.modal label {
	display: block;
	font-size: 0.78rem;
	color: #555;
	margin-bottom: 0.65rem;
}

.modal input,
.modal select {
	display: block;
	width: 100%;
	font-family: inherit;
	font-size: 1rem;
	padding: 0.5rem 0.6rem;
	margin-top: 0.22rem;
	border: 1px solid #bbb;
	border-radius: 0.3rem;
	background: var(--white);
	color: #0a1a16;
}

.row2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.65rem;
}

.modal-actions {
	display: flex;
	justify-content: flex-end;
	gap: 0.5rem;
}

.modal-stack {
	display: grid;
	gap: 0.5rem;
}

.dart-choice {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0.5rem;
}

/* ---------- Статистикийн дэлгэц (DartConnect TV) ---------- */

#app.is-hidden {
	display: none !important;
}

#stats-overlay.stats-page {
	background: #000;
	padding: 0;
	align-items: stretch;
	justify-content: stretch;
	z-index: 20;
}

#stats-overlay.stats-page .panel {
	max-width: none;
	width: 100%;
	height: 100%;
	height: 100dvh;
	max-height: none;
	border-radius: 0;
	border: 0;
}

.panel {
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 32rem;
	height: 80vh;
	color: var(--white);
	background:
		repeating-linear-gradient(
			-32deg,
			transparent 0,
			transparent 28px,
			rgba(0, 0, 0, 0.07) 28px,
			rgba(0, 0, 0, 0.07) 56px
		),
		linear-gradient(155deg, var(--dc-stripe) 0%, var(--dc-panel-2) 48%, #24303c 100%);
	border-radius: 0.8rem;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.08);
}

.panel-bar {
	flex: 0 0 auto;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 0.4rem;
	background: rgba(0, 0, 0, 0.22);
	padding: 0.6rem 0.7rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.panel-bar > span {
	font-size: 1.05rem;
	font-weight: 800;
	color: var(--white);
	text-align: center;
}

.pill {
	font-family: inherit;
	font-size: 0.85rem;
	font-weight: 700;
	padding: 0.35rem 0.75rem;
	border: 1.5px solid var(--dc-gold);
	border-radius: 2em;
	background: transparent;
	color: var(--dc-gold);
	cursor: pointer;
	white-space: nowrap;
}

.pill:first-child {
	justify-self: start;
}

.pill:last-child {
	justify-self: end;
}

.panel-body {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.panel-tournament {
	text-align: center;
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--dc-muted);
	padding: 0.5rem 0.6rem 0.2rem;
}

.panel-players {
	display: flex;
	justify-content: space-between;
	gap: 0.5rem;
	padding: 0.2rem 0.9rem 0.5rem;
	font-size: 1.05rem;
	font-weight: 800;
	color: var(--white);
}

.panel-players span {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.section-head {
	display: block;
	width: 100%;
	font-family: inherit;
	font-size: 0.95rem;
	font-weight: 700;
	text-align: center;
	padding: 0.45rem 0;
	background: rgba(0, 0, 0, 0.28);
	color: var(--dc-gold);
	border: 0;
	cursor: pointer;
}

.stats-table {
	width: 100%;
	border-collapse: collapse;
}

.stats-table td {
	padding: 0.5rem 0.6rem;
	font-size: 0.95rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	text-align: center;
	color: var(--white);
}

.stats-table td:nth-child(2) {
	color: var(--dc-muted);
	font-size: 0.85rem;
	font-weight: 600;
	width: 46%;
	background: rgba(0, 0, 0, 0.18);
}

.stats-table td:first-child,
.stats-table td:last-child {
	font-weight: 800;
	width: 27%;
}

.stats-table td.lead {
	color: var(--dc-gold);
}

#scores-view {
	display: none;
}

#scores-view.active {
	display: block;
}

#stats-view.hidden {
	display: none;
}

.leg-block {
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.leg-title {
	background: rgba(0, 0, 0, 0.25);
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--dc-gold);
	padding: 0.35rem 0.6rem;
	text-align: center;
}

.leg-table {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
}

.leg-table td {
	padding: 0.3rem 0.4rem;
	font-size: 0.9rem;
	font-weight: 700;
	text-align: center;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	color: var(--white);
}

.leg-table td.leg-num {
	width: 16%;
	color: var(--dc-muted);
	font-size: 0.75rem;
	font-weight: 600;
}

.leg-table td.leg-bust {
	color: #ff8a80;
	text-decoration: line-through;
}

.leg-table td.leg-bust::after {
	content: " BUST";
	font-size: 0.58em;
	font-weight: 600;
	opacity: 0.75;
	text-decoration: none;
	display: inline-block;
	margin-left: 0.15em;
}

.leg-empty {
	padding: 1.5rem 0.6rem;
	text-align: center;
	color: var(--dc-muted);
	font-size: 0.9rem;
}

/* ---------- ••• цэс (action sheet) ---------- */

.sheet-overlay {
	background: rgba(0, 0, 0, 0.45);
}

.sheet {
	width: 100%;
	max-width: 22rem;
	background: var(--white);
	border-radius: 0.9rem;
	overflow: hidden;
}

.sheet-item {
	display: block;
	position: relative;
	width: 100%;
	font-family: inherit;
	font-size: 1.05rem;
	padding: 0.95rem 1rem;
	background: var(--white);
	color: var(--ios-blue);
	border: 0;
	border-bottom: 1px solid #e5e5e5;
	cursor: pointer;
	text-align: center;
	text-decoration: none;
	box-sizing: border-box;
}

.sheet-item:last-child {
	border-bottom: 0;
}

.sheet-item:disabled {
	color: #b0b0b0;
	cursor: default;
}

.sheet-item:active:not(:disabled) {
	background: #f2f2f2;
}

.sheet-cancel {
	font-weight: 700;
}

.sheet-check {
	position: absolute;
	right: 1rem;
	display: none;
}

.sheet-check.on {
	display: inline;
}

/* ---------- Toast ---------- */

#toast {
	position: fixed;
	left: 50%;
	top: 30%;
	transform: translate(-50%, -50%) scale(0.9);
	background: rgba(0, 0, 0, 0.85);
	color: var(--white);
	font-size: clamp(1.3rem, 6vw, 2.6rem);
	font-weight: 700;
	padding: 0.4em 1em;
	border-radius: 0.4rem;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.15s linear, transform 0.15s linear;
	z-index: 30;
}

#toast.show {
	opacity: 1;
	transform: translate(-50%, -50%) scale(1);
}

/* ---------- Өргөн дэлгэц ---------- */

@media (min-width: 40rem) and (min-aspect-ratio: 1/1) {
	#app {
		max-width: 46rem;
	}

	.big-inner {
		font-size: clamp(2.6rem, 14vh, 8rem);
	}
}
