@font-face { font-family: "TT Norms Std Condensed"; src: url("/fonts/tt-norms-condensed-regular.woff2") format("woff2"); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: "TT Norms Std Condensed"; src: url("/fonts/tt-norms-condensed-medium.woff2") format("woff2"); font-style: normal; font-weight: 500; font-display: swap; }
@font-face { font-family: "TT Norms Std Condensed"; src: url("/fonts/tt-norms-condensed-bold.woff2") format("woff2"); font-style: normal; font-weight: 700; font-display: swap; }
@font-face { font-family: "TT Norms Std Condensed"; src: url("/fonts/tt-norms-condensed-black.woff2") format("woff2"); font-style: normal; font-weight: 900; font-display: swap; }
@font-face { font-family: "TT Norms Std Condensed"; src: url("/fonts/tt-norms-condensed-black-italic.woff2") format("woff2"); font-style: italic; font-weight: 900; font-display: swap; }
@font-face { font-family: "WINLINE Sans Condensed"; src: url("/fonts/winline-sans_regular.woff2") format("woff2"); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: "WINLINE Sans Condensed"; src: url("/fonts/winline-sans_bold.woff2") format("woff2"); font-style: normal; font-weight: 700; font-display: swap; }
@font-face { font-family: "WINLINE Sans Condensed"; src: url("/fonts/winline-sans_bold-italic.woff2") format("woff2"); font-style: italic; font-weight: 700; font-display: swap; }

:root { color: #fff; background: #080809; font-family: "WINLINE Sans Condensed", Arial, sans-serif; font-synthesis: none; -webkit-font-smoothing: antialiased; text-rendering: geometricPrecision; }
* { box-sizing: border-box; }
html, body, #root { width: 100%; height: 100%; min-height: 100%; margin: 0; overflow: hidden; }
html, body { background: #080809; overscroll-behavior: none; }
body { min-width: 280px; }
button, input { font: inherit; -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
button:disabled { cursor: wait; filter: saturate(.5); }
#root { position: relative; height: 100svh; height: 100dvh; isolation: isolate; touch-action: none; }
.screen { position: absolute; overflow: hidden; background: #080809; box-shadow: 0 16px 48px rgb(0 0 0 / 45%); outline: none; }
.scaled-frame { --frame-scale: 1; top: 50%; left: 50%; width: 402px; height: 765px; transform: translate(-50%, -50%) scale(var(--frame-scale)); transform-origin: center; }
.fixed-frame { top: 50%; left: 50%; width: min(100vw, 402px); height: min(100svh, 765px); height: min(100dvh, 765px); transform: translate(-50%, -50%); container-type: inline-size; }
.screen-enter { animation: screen-in 180ms ease-out both; }
.screen-background { position: absolute; display: block; width: 100%; height: auto; pointer-events: none; user-select: none; }
.screen-background--top { z-index: 0; top: 0; left: 0; }
.screen-background--glow { z-index: 1; right: 0; bottom: 0; left: 0; }
.art-header { position: absolute; z-index: 4; top: 15px; left: 25.5px; width: 351px; height: 105px; pointer-events: none; user-select: none; }
.header-hotspot { position: absolute; z-index: 10; top: 15px; width: max(51px, var(--minimum-touch-size, 44px)); height: max(51px, var(--minimum-touch-size, 44px)); padding: 0; border: 0; border-radius: 16px; background: transparent; cursor: pointer; }
.header-hotspot--back { left: 25.5px; }
.header-hotspot--guide { right: 25.5px; }
.header-hotspot:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
button { transition: transform 90ms ease, filter 120ms ease; }
button:active { transform: scale(.97); }

/* Loading */
.loading-screen__background, .loading-screen__shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.loading-screen__background { z-index: 0; display: block; object-fit: cover; pointer-events: none; }
.loading-screen__shade { z-index: 1; background: linear-gradient(180deg, rgb(8 8 9 / 70%), transparent 48%, rgb(8 8 9 / 90%) 94%, #080809); }
.loading-screen__logo { position: absolute; z-index: 3; top: 72px; left: 134px; width: 135px; height: 32px; }
.loading-screen__title { position: absolute; z-index: 3; top: 101px; left: 48px; color: #fff; font: 900 italic 54px/.8 "TT Norms Std Condensed"; letter-spacing: -.035em; }
.loading-screen__title span { color: #ff6414; }
.loading-progress { position: absolute; z-index: 3; top: 664px; left: 60px; width: 282px; height: 11px; }
.loading-progress > img, .loading-progress__track { position: absolute; inset: 0; width: 100%; height: 100%; }
.loading-progress__track { padding: 1px; overflow: hidden; border-radius: 99px; background: #17171c; box-shadow: inset 0 0 0 1px #3c3c43; }
.loading-progress__fill { --loading-progress: 0; display: block; width: 100%; height: 100%; border-radius: inherit; background: #ff6414; transform: scaleX(var(--loading-progress)); transform-origin: left; transition: transform 120ms ease-out; }
.loading-screen__tournament { position: absolute; z-index: 3; top: 708px; left: 122px; width: 158px; height: 25px; }

/* Welcome */
.welcome-screen img { position: absolute; display: block; pointer-events: none; user-select: none; }
.welcome-background { z-index: 0; inset: 0; width: 402px; height: 765px; }
.welcome-logo { z-index: 3; top: 36px; left: 134px; width: 135px; height: 32px; }
.welcome-tournament { z-index: 3; top: 105px; left: 122px; width: 158px; height: 25px; }
.welcome-title { z-index: 3; top: 153px; left: 31px; width: 341px; height: 61px; }
.welcome-divider { z-index: 3; top: 239px; left: 156px; width: 90px; height: 1px; }
.welcome-copy { z-index: 3; top: 265px; left: 42px; width: 319px; height: 166px; }
.welcome-characters { z-index: 2; right: 0; bottom: 0; left: 0; width: 402px; height: 282px; }
.welcome-continue { position: absolute; z-index: 10; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; touch-action: manipulation; }
.welcome-continue:focus-visible { outline-offset: -5px; }

/* Rules */
.rules-header { position: absolute; z-index: 5; inset: 0 0 auto; height: 232px; overflow: hidden; background: #080809 url("/assets/rules/background.png") center top / 100% auto no-repeat; }
.rules-header-art { position: absolute; top: min(15px, 3.73cqw); left: 6.35%; width: 87.31%; height: auto; }
.rules-header .header-hotspot--back { left: 6.35%; }
.rules-title { position: absolute; top: min(139px, 34.58cqw); left: 37.44%; width: 25.12%; height: auto; }
.rules-tabs { position: absolute; z-index: 6; top: min(177px, 44.03cqw); right: 0; left: 3.36%; display: flex; gap: min(7px, 1.74cqw); overflow-x: auto; padding-right: 3.36%; touch-action: pan-x; scrollbar-width: none; }
.rules-tabs::-webkit-scrollbar { display: none; }
.rules-tabs button { flex: 0 0 auto; min-height: 44px; padding: 0 min(22px, 5.47cqw); border: 1px solid #3a3a42; border-radius: 22px; background: #111115; color: #f2f2f4; font-size: min(15px, 3.73cqw); cursor: pointer; white-space: nowrap; }
.rules-scrollport { inset: 0; padding: 232px 6.35% max(40px, calc(28px + env(safe-area-inset-bottom))); }
.rules-content { display: grid; gap: min(44px, 10.95cqw); }
.rules-section { display: grid; justify-items: center; gap: min(18px, 4.48cqw); scroll-margin-top: 18px; }
.rules-section img { display: block; max-width: 100%; height: auto; pointer-events: none; user-select: none; }
.rules-heading { justify-self: start; }
.rules-heading--how { width: min(78px, 19.4cqw); }
.rules-heading--official { width: min(284px, 70.65cqw); }
.rules-heading--scoring { width: min(121px, 30.1cqw); }
.rules-heading--prizes { width: min(170px, 42.29cqw); }
.rules-heading--fair { width: min(285px, 70.9cqw); }
.rules-copy--how { width: min(317px, 78.86cqw); }
.rules-legend { width: 100%; }
.rules-copy--limits { width: min(311px, 77.36cqw); }
.rules-copy--scoring { width: min(288px, 71.64cqw); }
.rules-copy--prizes { width: min(319px, 79.35cqw); }
.rules-copy--fair { width: min(306px, 76.12cqw); }

/* Home */
.home-art-header { top: 15px; }
.profile-card { position: absolute; z-index: 3; top: 163px; left: 25px; width: 352px; height: 101px; display: flex; align-items: center; gap: 18px; padding: 0 24px; border: 1px solid #2a2a31; border-radius: 16px; background: #121216; }
.profile-avatar { flex: 0 0 68px; height: 68px; border: 2px solid #ff6414; border-radius: 50%; background: #dedee0; box-shadow: inset 0 0 0 2px #121216; }
.profile-card strong { display: block; max-width: 220px; overflow: hidden; font: 900 italic 25px/1 "TT Norms Std Condensed"; text-overflow: ellipsis; white-space: nowrap; }
.profile-card span + div, .profile-card div span { color: #8a8a91; font-size: 14px; }
.profile-card div span { display: block; margin-top: 8px; }
.home-stats { position: absolute; z-index: 3; top: 274px; left: 25px; width: 352px; height: 170px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat-card { display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid #2a2a31; border-radius: 18px; background: linear-gradient(180deg, #121216 58%, #321c12); text-align: center; }
.stat-card span { font: 900 italic 17px/1.08 "TT Norms Std Condensed"; }
.stat-card i { width: 30px; height: 1px; margin: 13px 0 7px; background: #303037; }
.stat-card strong { color: #ff6414; font: 900 italic 67px/.8 "TT Norms Std Condensed"; }
.home-divider { position: absolute; z-index: 3; top: 462px; left: 49.5px; width: 303px; height: 26px; }
.home-availability { position: absolute; z-index: 3; top: 484px; left: 25px; width: 352px; margin: 0; color: #c7c7ca; font-size: 13px; text-align: center; }
.home-availability b { color: #ff6414; }
.home-actions { position: absolute; z-index: 3; top: 515px; left: 25px; width: 352px; display: grid; gap: 16px; }
.home-actions button, .primary-button { height: 62px; padding: 0 20px; border: 0; border-radius: 31px; background: #ff6414; color: #fff; font: 900 italic 22px/1 "TT Norms Std Condensed"; cursor: pointer; }
.scaled-frame .primary-button { min-height: var(--minimum-touch-size, 44px); }
.home-actions button span { display: inline-block; width: 34px; font-style: normal; }

/* Stable scroll policy */
.screen-scrollport { position: absolute; z-index: 2; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior-y: contain; touch-action: pan-y; scrollbar-width: thin; scrollbar-color: #ff6414 #151519; }
.retained-paint-surface { position: relative; transform: translate3d(0, 0, 0); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.retained-paint-surface--refresh { transform: translate3d(0, 0, .001px); }

/* Quests */
.quests-header { position: absolute; z-index: 4; inset: 0 0 auto; height: 226px; overflow: hidden; background: #080809 url("/assets/quests/background.png") center top / 100% auto no-repeat; }
.quests-header > img { position: absolute; top: 15px; left: 6.35%; width: 87.31%; height: auto; }
.quests-header h1 { position: absolute; top: 128px; right: 0; left: 0; margin: 0; font: 900 italic min(31px, 7.7cqw)/1 "TT Norms Std Condensed"; text-align: center; }
.quests-header h1 em { color: #ff6414; }
.quests-header .header-hotspot--back { left: 6.35%; }
.quests-header .header-hotspot--guide { right: 6.35%; }
.quests-scrollport { inset: 0; padding: 226px 6.35% max(34px, calc(24px + env(safe-area-inset-bottom))); }
.quest-list { display: grid; gap: min(12px, 3cqw); }
.quest-row, .quest-countdown { width: 100%; min-height: min(64px, 15.92cqw); border: 1px solid #29292f; border-radius: min(20px, 4.98cqw); background: #121216; }
.quest-row { display: grid; grid-template-columns: min(48px, 11.94cqw) 1fr min(44px, 10.95cqw); align-items: center; gap: min(14px, 3.48cqw); padding: min(8px, 2cqw) min(12px, 3cqw) min(8px, 2cqw) min(20px, 4.98cqw); cursor: pointer; }
.quest-row strong { overflow: hidden; font: 900 italic min(21px, 5.22cqw)/1 "TT Norms Std Condensed"; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.quest-row i { color: #ff6414; font-size: min(33px, 8.2cqw); font-style: normal; }
.quest-status { width: min(40px, 9.95cqw); height: min(40px, 9.95cqw); display: grid; place-items: center; border: 2px solid #24242a; border-radius: 50%; color: #00ff65; font-size: min(25px, 6.2cqw); font-weight: 900; }
.quest-row.is-complete .quest-status { border-color: #00ff65; }
.quest-countdown { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 min(24px, 6cqw); font: 900 italic min(18px, 4.48cqw)/1 "TT Norms Std Condensed"; }
.quest-countdown b { color: #ff6414; font-size: min(21px, 5.22cqw); }

/* Quest detail */
.detail-header { position: absolute; z-index: 5; inset: 0 0 auto; height: 138px; }
.detail-header button { position: absolute; top: 15px; left: 25px; width: max(51px, var(--minimum-touch-size, 44px)); height: max(51px, var(--minimum-touch-size, 44px)); padding: 0; border: 0; background: transparent; cursor: pointer; }
.detail-header button img { width: 100%; height: 100%; }
.detail-logo { position: absolute; top: 33px; left: 144px; width: 114px; height: 27px; }
.detail-title { position: absolute; top: 97px; left: 97px; width: 208px; height: 30px; }
.quest-detail__number { position: absolute; z-index: 4; top: 145px; right: 0; left: 0; margin: 0; font: 900 italic 32px/1 "TT Norms Std Condensed"; text-align: center; }
.quest-detail__divider { position: absolute; z-index: 3; top: 208px; left: 49px; width: 303px; height: 26px; }
.quest-content { position: absolute; z-index: 4; top: 252px; left: 25px; width: 352px; height: 455px; text-align: center; }
.quest-content h2 { margin: 0 0 72px; color: #ff6414; font: 900 italic 39px/.95 "TT Norms Std Condensed"; }
.quest-content > p { min-height: 72px; margin: 0; color: #a2a2a8; font-size: 23px; line-height: 1.25; }
.quest-content form { position: absolute; right: 0; bottom: 0; left: 0; display: grid; gap: 20px; }
.quest-content input { width: 100%; height: 62px; padding: 0 22px; border: 1px solid #303038; border-radius: 20px; background: #09090b; color: #fff; font-size: 22px; text-align: center; }
.quest-content--feedback h2 { margin-bottom: 30px; font-size: 38px; white-space: nowrap; }
.quest-content--feedback > img { width: 212px; height: 212px; object-fit: contain; }
.quest-content--feedback > p { min-height: 54px; margin-top: 22px; font-size: 20px; }
.quest-content--feedback > .primary-button { position: absolute; right: 0; bottom: 0; left: 0; width: 100%; height: 62px; }

/* Leaderboard */
.leaderboard-header { position: absolute; z-index: 4; inset: 0 0 auto; height: 397px; overflow: hidden; background: #080809 url("/assets/leaderboard/background.png") center top / 100% auto no-repeat; }
.leaderboard-back { position: absolute; z-index: 2; top: 15px; left: 4.23%; width: max(min(12.69%, 51px), 44px); height: max(min(12.69cqw, 51px), 44px); padding: 0; border: 0; background: transparent; cursor: pointer; }
.leaderboard-back img { width: 100%; height: 100%; }
.leaderboard-header > img { position: absolute; height: auto; }
.leaderboard-logo { top: 33px; left: 35.82%; width: 28.36%; }
.leaderboard-title { top: 98px; left: 24.13%; width: 51.74%; }
.leaderboard-description { top: 163px; left: 14.55%; width: 70.9%; }
.leaderboard-prizes { top: 215px; left: 6.47%; width: 87.06%; }
.leaderboard-columns { top: 362px; left: 13.68%; width: 72.64%; }
.leaderboard-scrollport { inset: 0; padding: 397px 6.47% max(34px, calc(24px + env(safe-area-inset-bottom))); }
.leaderboard-list { display: grid; gap: min(14px, 3.48cqw); }
.leaderboard-row { height: min(76px, 18.91cqw); display: grid; grid-template-columns: 15% 19% minmax(0, 1fr) 17%; align-items: center; padding: 0 min(20px, 4.98cqw); overflow: hidden; border: 1px solid #29292f; border-radius: min(20px, 4.98cqw); background: #121216; font: 900 italic min(18px, 4.48cqw)/1 "TT Norms Std Condensed"; }
.leaderboard-row.rank-1 { border-color: #ff6414; }
.leaderboard-row.rank-2 { border-color: #a3a3aa; }
.leaderboard-row.rank-3 { border-color: #6a3b20; }
.leaderboard-row.is-current { box-shadow: inset 0 0 0 1px #ff6414; }
.leaderboard-row > span { color: #f7f7f8; }
.leaderboard-row.rank-1 > span { color: #ff6414; }
.leaderboard-row i { width: min(46px, 11.44cqw); height: min(46px, 11.44cqw); border-radius: 50%; background: #dedee0; }
.leaderboard-row strong { overflow: hidden; padding-left: min(12px, 2.98cqw); text-overflow: ellipsis; white-space: nowrap; }
.leaderboard-row b { text-align: right; }

/* Game */
.game-header { position: absolute; z-index: 5; inset: 0 0 auto; height: min(362px, 90.05cqw); background: #080809 url("/assets/game/background.png") center top / 100% auto no-repeat; }
.game-header .art-header { top: min(15px, 3.73cqw); left: 6.35%; width: 87.31%; height: auto; }
.game-header .header-hotspot--back { left: 6.35%; }
.game-header .header-hotspot--guide { right: 6.35%; }
.game-description { position: absolute; top: min(160px, 39.8cqw); left: 14.43%; width: 71.14%; height: auto; }
.game-search-wrap { position: absolute; z-index: 6; top: min(243px, 60.45cqw); left: 6.35%; width: 87.31%; height: min(57px, 14.18cqw); }
.game-search-wrap > img { position: absolute; inset: 0; width: 100%; height: 100%; }
.game-search-wrap input { position: absolute; inset: 0; width: 100%; padding: 0 min(50px, 12.44cqw); border: 0; outline: 0; background: transparent; color: #fff; font-size: min(20px, 4.98cqw); text-align: center; }
.game-search-wrap input::placeholder { color: #696970; }
.game-suggestions { position: absolute; z-index: 12; top: calc(100% + min(6px, 1.49cqw)); right: 0; left: 0; max-height: min(190px, 47.26cqw); overflow-y: auto; border: 1px solid #202026; border-radius: min(20px, 4.98cqw); background: #09090b; box-shadow: 0 16px 28px rgb(0 0 0 / 65%); touch-action: pan-y; }
.game-suggestions button { width: 100%; min-height: min(58px, 14.43cqw); display: flex; align-items: center; gap: min(14px, 3.48cqw); padding: 0 min(24px, 6cqw); border: 0; border-bottom: 1px solid #1d1d22; background: transparent; text-align: left; cursor: pointer; }
.game-suggestions button:last-child { border-bottom: 0; }
.game-suggestions strong { font-size: min(19px, 4.73cqw); }
.game-suggestions span { overflow: hidden; color: #85858c; font-size: min(16px, 3.98cqw); text-overflow: ellipsis; white-space: nowrap; }
.game-suggestions p { margin: 0; padding: min(32px, 8cqw); color: #85858c; font-size: min(18px, 4.48cqw); text-align: center; }
.game-columns { position: absolute; top: min(328px, 81.59cqw); left: 6.35%; width: 87.31%; display: grid; grid-template-columns: 1.25fr 1.25fr .75fr .75fr .85fr .85fr; gap: min(6px, 1.49cqw); color: #8d8d93; font-size: min(12px, 2.98cqw); text-align: center; }
.game-scrollport { z-index: 3; top: min(362px, 90.05cqw); right: 0; bottom: min(58px, 14.43cqw); left: 0; padding: 0 6.35% min(12px, 3cqw); }
.game-attempts { display: grid; gap: min(10px, 2.49cqw); }
.game-row { display: grid; grid-template-columns: 1.25fr 1.25fr .75fr .75fr .85fr .85fr; gap: min(6px, 1.49cqw); min-height: min(40px, 9.95cqw); }
.game-cell { min-width: 0; display: flex; align-items: center; justify-content: center; gap: min(2px, .5cqw); overflow: hidden; border: 1px solid #303038; border-radius: min(10px, 2.49cqw); background: #0d0d10; font-size: min(14px, 3.48cqw); }
.game-cell span { overflow: hidden; padding: 0 2px; text-overflow: ellipsis; white-space: nowrap; }
.game-cell img { width: min(28px, 6.97cqw); height: min(28px, 6.97cqw); object-fit: contain; }
.game-cell b { font-size: min(18px, 4.48cqw); }
.game-cell.match-exact { border-color: #00ff65; background: #064725; }
.game-cell.match-near { border-color: #ffe800; background: #514700; }
.game-cell.match-miss { border-color: #ff4949; background: #4a1111; }
.game-cell.match-neutral { border-color: #303038; background: #0d0d10; }
.attempt-progress { position: absolute; z-index: 6; right: 14.68%; bottom: max(min(31px, 7.71cqw), env(safe-area-inset-bottom)); left: 14.68%; display: grid; grid-template-columns: repeat(8, 1fr); gap: min(8px, 2cqw); }
.attempt-progress i { height: min(5px, 1.24cqw); border-radius: 99px; background: #050506; }
.attempt-progress i.is-used { background: #ff6414; }
.row-reveal { animation: row-reveal 280ms ease-out both; }

/* Result */
.result-header { top: 15px; }
.result-title { position: absolute; z-index: 4; top: 168px; right: 0; left: 0; margin: 0; color: #ff6414; font: 900 italic 42px/1 "TT Norms Std Condensed"; text-align: center; animation: result-pop 320ms ease-out both; }
.winner-card { position: absolute; z-index: 4; top: 220px; left: 25px; width: 352px; height: 144px; display: grid; grid-template-columns: 116px 1fr; align-items: center; gap: 18px; padding: 20px 22px; border: 1px solid #303038; border-radius: 20px; background: #121216; }
.winner-avatar { width: 100px; height: 100px; border: 2px solid #ff6414; border-radius: 50%; background: linear-gradient(180deg, #121216 55%, #321c12); }
.winner-card strong { display: block; overflow: hidden; font: 900 italic 31px/1 "TT Norms Std Condensed"; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.winner-card span { display: block; overflow: hidden; margin-top: 9px; color: #8d8d93; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.winner-card p { margin: 13px 0 0; font-size: 15px; }
.result-stats { position: absolute; z-index: 4; top: 377px; left: 25px; width: 352px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.result-stats > div { height: 132px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid #303038; border-radius: 20px; background: linear-gradient(180deg, #121216 60%, #321c12); text-align: center; }
.result-stats span { min-height: 34px; font-size: 15px; line-height: 1.15; }
.result-stats strong { margin: 10px 0 5px; color: #ff6414; font: 900 italic 45px/.8 "TT Norms Std Condensed"; }
.result-stats small { font-size: 14px; }
.result-next { position: absolute; z-index: 4; top: 544px; right: 0; left: 0; margin: 0; font-size: 17px; text-align: center; }
.result-countdown { position: absolute; z-index: 4; top: 578px; left: 25px; width: 352px; height: 75px; display: grid; place-items: center; border: 1px solid #ff6414; border-radius: 20px; background: linear-gradient(180deg, #121216 55%, #321c12); color: #ff6414; font: 900 italic 48px/1 "TT Norms Std Condensed"; }
.result-home { position: absolute; z-index: 4; top: 680px; left: 25px; width: 352px; }
.result-screen[data-result="lost"] .result-title { top: 150px; }
.result-stats--loss { top: 240px; }
.result-screen[data-result="lost"] .result-next { top: 420px; }
.result-screen[data-result="lost"] .result-countdown { top: 454px; border-color: #303038; background: #121216; }

/* Feedback and fatal states */
.app-toast { position: fixed; z-index: 100; right: max(16px, env(safe-area-inset-right)); bottom: max(18px, calc(10px + env(safe-area-inset-bottom))); left: max(16px, env(safe-area-inset-left)); max-width: 420px; margin: auto; padding: 13px 16px; border: 1px solid #ff6414; border-radius: 14px; background: rgb(18 18 22 / 96%); font-size: 16px; line-height: 1.25; text-align: center; box-shadow: 0 12px 32px rgb(0 0 0 / 60%); }
.fatal-screen { width: min(402px, 100%); height: 100%; display: grid; place-content: center; gap: 20px; margin: auto; padding: 30px; background: #080809 url("/assets/game/background.png") top center / 100% auto no-repeat; text-align: center; }
.fatal-screen h1 { color: #ff6414; font: 900 italic 46px/1 "TT Norms Std Condensed"; }
.fatal-screen button { min-height: 52px; border: 0; border-radius: 26px; background: #ff6414; font: 900 italic 20px/1 "TT Norms Std Condensed"; }

@keyframes screen-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes row-reveal { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes result-pop { from { opacity: 0; scale: .85; } to { opacity: 1; scale: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
