/* Components of the approved mockup (C2 Paternoster) + the states it did not draw. */

/* ── type helpers ─────────────────────────────────────────────────────── */
.h1, .h2, .h3 { font-family: var(--font-display); letter-spacing: var(--tracking-display); text-wrap: balance; }
.h1 { font-size: var(--fs-h1); line-height: 1; font-weight: 700; }
.h2 { font-size: var(--fs-h2); line-height: var(--lh-tight); font-weight: 700; }
.h3 { font-size: var(--fs-h3); line-height: 1.25; font-weight: 600; letter-spacing: -.01em; }
.accent { color: var(--color-amber); font-style: normal; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--color-teal); margin-bottom: 10px; }
.eyebrow .icon { width: 16px; height: 16px; }
.section--night .eyebrow, .on-dark .eyebrow { color: var(--color-amber); }
.muted { color: var(--color-muted); }
.prose p + p, .prose p + ul, .prose ul + p, .prose p + ol, .prose ol + p, .prose table + p, .prose p + table { margin-top: 12px; }
.prose ul, .prose ol { padding-left: 1.2em; display: grid; gap: 6px; }
.prose ul { list-style: none; padding-left: 0; }
.prose ul li { position: relative; padding-left: 22px; }
.prose ul li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 12px; height: 3px; border-radius: 2px; background: var(--color-amber); box-shadow: 0 -4px 0 rgba(244, 166, 42, .35); }
.prose ol { list-style: decimal; }
.prose a { color: var(--color-teal); text-underline-offset: 3px; }
.prose a:hover { color: var(--color-teal-hover); }
.prose strong { color: var(--color-text); }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--color-border); vertical-align: top; min-width: 120px; }
.prose th { background: var(--color-surface-2); font-weight: 700; }

/* the lift-button square with a number — signature "floor" plate */
.floor { font-family: var(--font-display); display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 8px; background: var(--color-amber); color: var(--color-night); font-weight: 800; font-size: .85rem; }
/* three stacked amber levels — signature "floors" */
.levels { display: inline-grid; gap: 3px; width: 18px; }
.levels i { height: 3px; border-radius: 2px; background: var(--color-amber); }
.levels i:nth-child(1) { opacity: .25; } .levels i:nth-child(2) { opacity: .55; }

/* ── buttons ──────────────────────────────────────────────────────────── */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border: 0; border-radius: 12px; background: transparent; color: inherit; font-weight: 700; font-size: .95rem; text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform var(--dur-base) var(--ease), background-color var(--dur-fast), box-shadow var(--dur-fast), color var(--dur-fast); }
.btn .icon { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }
.btn--amber { background: var(--color-amber); color: var(--color-night); box-shadow: 0 10px 24px -14px var(--color-amber); }
.btn--amber:hover { background: var(--color-amber-hover); }
.btn--glass { background: rgba(255, 255, 255, .08); color: #fff; box-shadow: inset 0 0 0 1px var(--color-border-dark); }
.btn--glass:hover { background: rgba(255, 255, 255, .14); }
.btn--ink { background: var(--color-night); color: #fff; }
.btn--ink:hover { background: var(--color-night-3); }
.btn--teal { background: var(--color-teal); color: #fff; }
.btn--teal:hover { background: var(--color-teal-hover); }
.btn--line { background: var(--color-surface); color: var(--color-text); box-shadow: inset 0 0 0 1px var(--color-border-2); }
.btn--line:hover { box-shadow: inset 0 0 0 1px var(--color-text); }
.btn--danger { background: var(--color-error); color: #fff; }
.btn--sm { min-height: 38px; padding: 0 14px; font-size: .88rem; }
.btn--block { width: 100%; }
.btn[data-busy-on] { pointer-events: none; }
.link { color: var(--color-teal); font-weight: 600; text-underline-offset: 3px; }
.link:hover { color: var(--color-teal-hover); }
.link-btn { border: 0; background: none; padding: 0; color: var(--color-teal); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ── fields ───────────────────────────────────────────────────────────── */
.field { display: grid; gap: 6px; }
.field__label { font-size: var(--fs-small); font-weight: 600; color: var(--color-text); }
.field__hint { font-size: var(--fs-xs); color: var(--color-muted); }
.field input:not(.visually-hidden):not([type=checkbox]):not([type=radio]):not([type=range]), .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 0 14px; border: 0; border-radius: 12px;
  background: var(--color-surface-2); box-shadow: inset 0 0 0 1px var(--color-border-2);
  transition: box-shadow var(--dur-fast) var(--ease), background-color var(--dur-fast);
}
.field textarea { min-height: 140px; padding-block: 12px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { box-shadow: inset 0 0 0 1px var(--color-muted); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: var(--color-surface); box-shadow: inset 0 0 0 1.5px var(--color-teal), 0 0 0 4px var(--color-teal-tint); }
.field input:disabled, .field select:disabled { opacity: .6; cursor: not-allowed; }
.field__error { color: var(--color-error); font-size: var(--fs-small); font-weight: 600; }
.field.has-error input, .field.has-error select, .field.has-error textarea { box-shadow: inset 0 0 0 1.5px var(--color-error); background: var(--color-error-bg); }
.field--check { grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 10px; }
.field--check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--color-teal); }
.field--check .field__label { font-weight: 500; }
.field--check .field__error { grid-column: 2; }
.field .field__pw { position: relative; }
.field__pw button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; background: none; border-radius: 8px; cursor: pointer; color: var(--color-muted); display: grid; place-items: center; }
.field__pw button:hover { color: var(--color-text); background: var(--color-border); }
.field__pw input { padding-right: 48px !important; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid .span-2 { grid-column: 1 / -1; }
.form__error { display: flex; gap: 8px; align-items: start; padding: 12px 14px; border-radius: 12px; background: var(--color-error-bg); color: var(--color-error); font-weight: 600; font-size: var(--fs-small); }
.form__success, .notice--ok { padding: 14px 16px; border-radius: 12px; background: var(--color-success-bg); color: var(--color-success); font-weight: 600; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

.inp { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border-radius: 12px; background: var(--color-surface-2); box-shadow: inset 0 0 0 1px var(--color-border); transition: box-shadow var(--dur-fast); }
.inp:focus-within { box-shadow: inset 0 0 0 1.5px var(--color-teal); }
.inp .icon { width: 18px; height: 18px; color: var(--color-muted); flex: none; }
.inp input, .inp select { flex: 1; border: 0; background: none; min-width: 0; min-height: 40px; }
.inp input:focus, .inp select:focus { outline: none; }

/* segmented control */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 3px; border-radius: 12px; background: var(--color-surface-2); box-shadow: inset 0 0 0 1px var(--color-border); }
.seg button, .seg label { position: relative; min-height: 38px; display: grid; place-items: center; padding: 0 10px; border: 0; border-radius: 9px; background: none; font-weight: 600; font-size: .86rem; color: var(--color-muted); cursor: pointer; transition: background-color var(--dur-fast), color var(--dur-fast), box-shadow var(--dur-fast); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg button[aria-pressed=true], .seg label:has(input:checked) { background: var(--color-surface); color: var(--color-text); box-shadow: var(--shadow-card); }
.seg label:has(input:focus-visible) { outline: 2px solid var(--color-teal); outline-offset: 2px; }

/* ── chips / badges ───────────────────────────────────────────────────── */
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: var(--radius-pill); border: 1px solid var(--color-border-dark); background: none; color: rgba(255, 255, 255, .85); font-weight: 600; font-size: .86rem; cursor: pointer; text-decoration: none; transition: background-color var(--dur-fast), color var(--dur-fast); }
.chip .icon { width: 16px; height: 16px; }
.chip:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: var(--radius-pill); font-size: .72rem; font-weight: 700; background: var(--color-surface-2); color: var(--color-text); }
.badge--ok { background: var(--color-success-bg); color: var(--color-success); }
.badge--warn { background: var(--color-warn-bg); color: var(--color-warn); }
.badge--err { background: var(--color-error-bg); color: var(--color-error); }
.badge--dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ── game card ────────────────────────────────────────────────────────── */
.gc { position: relative; display: flex; flex-direction: column; background: var(--color-surface); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-card); transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease), opacity var(--dur-base); }
.gc:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.gc.is-entering { animation: gc-in .45s var(--ease) both; animation-delay: calc(var(--i, 0) * 28ms); }
@keyframes gc-in { from { opacity: 0; transform: translateY(14px); } }
.gc__media { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--color-surface-2); }
.gc__media img { width: 100%; height: auto; aspect-ratio: 1; transition: transform .5s var(--ease); }
.gc:hover .gc__media img { transform: scale(1.06); }
.gc__badge { position: absolute; top: 10px; left: 10px; z-index: 1; display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: var(--radius-pill); font-size: .72rem; font-weight: 700; background: var(--color-amber); color: var(--color-night); }
.gc__badge--live { left: auto; right: 10px; background: var(--color-night); color: #fff; }
.gc__badge--live i { width: 6px; height: 6px; border-radius: 50%; background: #FF6B57; animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.gc__body { display: flex; flex-direction: column; flex: 1; padding: 12px 14px 14px; }
.gc__title { font-family: var(--font-display); font-size: .98rem; font-weight: 600; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gc__meta { display: flex; flex-wrap: wrap; gap: 3px 8px; font-size: .8rem; color: var(--color-muted); margin: 3px 0 12px; }
.gc__meta span:first-child { color: var(--color-teal); font-weight: 600; }
.gc__actions { display: flex; gap: 6px; margin-top: auto; }
.gc__play, .gc__info { position: relative; min-height: 38px; border-radius: 10px; font-weight: 700; font-size: .85rem; cursor: pointer; border: 0; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; transition: background-color var(--dur-fast), color var(--dur-fast); }
.gc__play { flex: 1; background: var(--color-night); color: #fff; }
.gc__play:hover { background: var(--color-teal); }
.gc__info { padding: 0 12px; background: var(--color-surface-2); color: var(--color-text); box-shadow: inset 0 0 0 1px var(--color-border); }
.gc__info:hover { background: var(--color-border); }
.gc__status { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; border-radius: 10px; background: var(--color-warn-bg); color: var(--color-warn); font-weight: 700; font-size: .82rem; }
.gc__status .icon { width: 15px; height: 15px; }
.gc.is-off .gc__media img { filter: grayscale(1); opacity: .6; }
@media (max-width: 600px) { .gc__actions { flex-direction: column; } .gc__body { padding: 10px 10px 12px; } }

/* ── info card (platform, approach, RG, steps) ───────────────────────── */
.icard { position: relative; padding: 22px; border-radius: var(--radius-lg); background: var(--color-surface); box-shadow: inset 0 0 0 1px var(--color-border); transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease); }
.icard:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--color-border), var(--shadow-lift); }
.icard__ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--color-teal-tint); color: var(--color-teal); margin-bottom: 18px; }
.icard__ic .icon { width: 22px; height: 22px; }
.icard h3 { font-family: var(--font-display); font-size: 1.08rem; font-weight: 600; margin-bottom: 6px; letter-spacing: -.01em; }
.icard p, .icard li { font-size: .94rem; color: var(--color-muted); }
.icard__no { position: absolute; right: 18px; top: 14px; font-family: var(--font-display); font-weight: 800; font-size: 2.4rem; line-height: 1; color: var(--color-night); opacity: .1; }
.section--night .icard { background: var(--color-night-2); box-shadow: inset 0 0 0 1px var(--color-border-dark); }
.section--night .icard p { color: var(--color-on-dark-muted); }
.section--night .icard__ic { background: rgba(244, 166, 42, .14); color: var(--color-amber); }
.section--night .icard__no { color: #fff; }

/* ── payment card ─────────────────────────────────────────────────────── */
.pc { display: flex; flex-direction: column; padding: 18px; border-radius: var(--radius-md); background: var(--color-surface); box-shadow: inset 0 0 0 1px var(--color-border); transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base); }
.pc:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--color-border), var(--shadow-card); }
.pc__logo { height: 44px; display: flex; align-items: center; margin-bottom: 14px; }
.pc__logo img { max-height: 30px; width: auto; max-width: 120px; }
.pc__type { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--color-teal); }
.pc h3 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; margin: 4px 0; }
.pc p { font-size: .88rem; color: var(--color-muted); margin-bottom: 12px; }
.pc ul { display: grid; gap: 4px; font-size: .86rem; margin-top: auto; }
.pc li { display: flex; align-items: center; gap: 6px; }
.pc li .icon { width: 16px; height: 16px; color: var(--color-success); }
.pc li.no { color: var(--color-muted); }
.pc li.no .icon { color: var(--color-muted); }

/* ── slider rail (horizontal snap) + arrows + progress ───────────────── */
.rail { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 18px; scrollbar-width: none; overscroll-behavior-x: contain; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { flex: 0 0 var(--rail-w, 300px); scroll-snap-align: start; }
.arrows { display: flex; gap: 8px; }
.arrow { width: 44px; height: 44px; border-radius: 12px; border: 0; background: var(--color-surface); box-shadow: inset 0 0 0 1px var(--color-border-2); display: grid; place-items: center; cursor: pointer; transition: background-color var(--dur-fast), color var(--dur-fast); color: var(--color-text); }
.arrow:hover { background: var(--color-night); color: #fff; }
.arrow:disabled { opacity: .4; cursor: default; background: var(--color-surface); color: var(--color-text); }
.arrow .icon { width: 20px; height: 20px; }
.section--night .arrow { background: rgba(255, 255, 255, .06); color: #fff; box-shadow: inset 0 0 0 1px var(--color-border-dark); }
.progress { height: 3px; border-radius: 3px; background: var(--color-border); overflow: hidden; margin-top: 6px; }
.progress i { display: block; height: 100%; width: 20%; background: var(--color-teal); transition: width .2s; }

/* ── tabs ─────────────────────────────────────────────────────────────── */
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--color-surface); box-shadow: inset 0 0 0 1px var(--color-border); overflow-x: auto; scrollbar-width: none; }
.tabs [role=tab] { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px; border: 0; border-radius: 10px; background: none; font-weight: 600; font-size: .92rem; color: var(--color-muted); cursor: pointer; white-space: nowrap; transition: background-color var(--dur-fast), color var(--dur-fast); }
.tabs [role=tab] .icon { width: 18px; height: 18px; }
.tabs [role=tab]:hover { color: var(--color-text); background: var(--color-surface-2); }
.tabs [role=tab][aria-selected=true] { background: var(--color-night); color: #fff; }

/* ── accordion ────────────────────────────────────────────────────────── */
.acc { border-radius: var(--radius-md); background: var(--color-surface); box-shadow: inset 0 0 0 1px var(--color-border); transition: box-shadow var(--dur-base); }
.acc + .acc { margin-top: 10px; }
.acc:has([aria-expanded=true]) { box-shadow: inset 0 0 0 1px var(--color-border-2), var(--shadow-card); }
.acc__btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border: 0; background: none; text-align: left; font-family: var(--font-display); font-size: 1.02rem; font-weight: 600; cursor: pointer; border-radius: var(--radius-md); }
.acc__btn:hover { color: var(--color-teal); }
.acc__btn .icon { width: 22px; height: 22px; flex: none; transition: transform var(--dur-base) var(--ease); color: var(--color-teal); }
.acc__btn[aria-expanded=true] .icon { transform: rotate(45deg); }
.acc__inner { padding: 0 20px 20px; color: var(--color-muted); }
.acc__inner p + p { margin-top: 10px; }

/* ── overlays: modal, gate, menu ─────────────────────────────────────── */
.overlay { position: fixed; inset: 0; z-index: var(--z-modal); display: grid; place-items: center; padding: 16px; background: rgb(11 29 37 / .62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity var(--dur-slow) var(--ease); overflow-y: auto; }
.overlay.is-open { opacity: 1; }
.overlay__panel { position: relative; width: min(100%, 480px); max-height: calc(100dvh - 32px); overflow: auto; background: var(--color-surface); border-radius: var(--radius-lg); padding: 32px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); transform: translateY(14px) scale(.98); transition: transform var(--dur-slow) var(--ease); }
.overlay.is-open .overlay__panel { transform: none; }
.overlay__close { position: absolute; right: 14px; top: 14px; width: 40px; height: 40px; border: 0; border-radius: 10px; background: var(--color-surface-2); display: grid; place-items: center; cursor: pointer; transition: background-color var(--dur-fast); }
.overlay__close:hover { background: var(--color-border); }
.overlay__close .icon { width: 20px; height: 20px; }
.overlay__title { font-family: var(--font-display); font-size: 1.55rem; font-weight: 700; letter-spacing: -.03em; line-height: 1.15; margin-bottom: 8px; padding-right: 40px; }
.overlay__text { color: var(--color-muted); margin-bottom: 20px; }
.overlay__actions { display: grid; gap: 10px; }
.overlay--wide .overlay__panel { width: min(100%, 560px); }

/* auth modal tabs */
.auth-switch { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; margin-bottom: 22px; border-radius: 12px; background: var(--color-surface-2); box-shadow: inset 0 0 0 1px var(--color-border); }
.auth-switch button { min-height: 40px; border: 0; border-radius: 9px; background: none; font-weight: 700; color: var(--color-muted); cursor: pointer; transition: background-color var(--dur-fast), color var(--dur-fast); }
.auth-switch button[aria-selected=true] { background: var(--color-night); color: #fff; }
.auth-form { display: grid; gap: 14px; }
.auth-form .row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.auth-foot { margin-top: 16px; font-size: var(--fs-small); color: var(--color-muted); text-align: center; }

/* age gate — dark, regulatory, cannot be dismissed */
.overlay--gate { background: rgb(11 29 37 / .92); }
.overlay--gate .overlay__panel { background: var(--color-night); color: #fff; text-align: center; width: min(100%, 460px); box-shadow: inset 0 0 0 1px var(--color-border-dark), 0 40px 80px -30px #000; }
.gate__badge { display: inline-grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 20px; background: var(--color-night-3); font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; color: var(--color-amber); position: relative; overflow: hidden; }
.gate__badge::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 3px; background: var(--color-amber); box-shadow: 0 -6px 0 rgba(244, 166, 42, .45), 0 -12px 0 rgba(244, 166, 42, .2); }
.overlay--gate .overlay__title { padding: 0; }
.overlay--gate .overlay__text { color: var(--color-on-dark-muted); }
.gate__note { margin-top: 16px; font-size: var(--fs-xs); color: rgba(255, 255, 255, .55); }
.gate__lang { display: flex; justify-content: center; margin-bottom: 20px; }

/* cookie banner — bottom sheet, not a blocking modal */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: calc(var(--z-modal) - 1); max-width: 760px; margin-inline: auto; padding: 20px 22px; border-radius: var(--radius-lg); background: var(--color-surface); box-shadow: 0 30px 70px -20px rgba(11, 29, 37, .55), inset 0 0 0 1px var(--color-border); transform: translateY(16px); opacity: 0; transition: transform var(--dur-slow) var(--ease), opacity var(--dur-slow) var(--ease); }
.cookie.is-open { transform: none; opacity: 1; }
.cookie__row { display: flex; gap: 16px; align-items: center; }
.cookie__text { flex: 1; font-size: .93rem; }
.cookie__text a { color: var(--color-teal); }
.cookie__acts { display: flex; gap: 8px; flex-wrap: wrap; }
.cookie__prefs { display: grid; gap: 10px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--color-border); }
.cookie__opt { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.cookie__opt b { display: block; font-size: .93rem; }
.cookie__opt span { font-size: var(--fs-xs); color: var(--color-muted); }
@media (max-width: 760px) { .cookie__row { flex-direction: column; align-items: stretch; } .cookie__acts .btn { flex: 1; } }

/* switch */
.switch { position: relative; flex: none; width: 46px; height: 28px; }
.switch input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: var(--color-border-2); transition: background-color var(--dur-fast); }
.switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform var(--dur-base) var(--ease); }
.switch input:checked + span { background: var(--color-teal); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:disabled + span { opacity: .55; }
.switch input:focus-visible + span { outline: 2px solid var(--color-teal); outline-offset: 2px; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: var(--z-toast); max-width: calc(100% - 32px); transform: translate(-50%, 20px); opacity: 0; background: var(--color-night); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 600; box-shadow: var(--shadow-lift); transition: transform var(--dur-base) var(--ease), opacity var(--dur-base); pointer-events: none; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* empty state */
.empty { display: grid; justify-items: center; gap: 10px; padding: 40px 20px; text-align: center; color: var(--color-muted); background: var(--color-surface); border-radius: var(--radius-md); box-shadow: inset 0 0 0 1px var(--color-border); }
.empty .icon { width: 34px; height: 34px; color: var(--color-teal); }
.empty b { color: var(--color-text); font-family: var(--font-display); }

/* icons inherit colour, size from CSS */
.icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; }
.icon--missing { display: inline-block; width: 1em; height: 1em; outline: 1px dashed var(--color-error); }

/* game details dialog */
.game-modal__head { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; padding-right: 36px; }
.game-modal__head img { width: 96px; height: 96px; border-radius: 16px; object-fit: cover; flex: none; box-shadow: var(--shadow-card); }
.game-modal__head .overlay__title { padding: 0; margin-bottom: 4px; font-size: 1.3rem; }
.game-modal__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 16px; }
.game-modal__facts div { padding: 10px 12px; border-radius: 12px; background: var(--color-surface-2); }
.game-modal__facts dt { font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--color-muted); }
.game-modal__facts dd { margin: 3px 0 0; font-weight: 600; }
.game-modal__note { color: var(--color-muted); margin-bottom: 18px; font-size: .94rem; }
.game-modal .overlay__actions { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }

/* long game names wrap to two lines instead of being cut */
.gc__title { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; min-height: 2.4em; }

/* inputs inside a framed row: the frame lights up, the field itself also shows a visible focus line */
.inp input:focus-visible, .inp select:focus-visible, .finder__row input:focus-visible { box-shadow: inset 0 -2px 0 var(--color-teal); border-radius: 4px; }
