/* Raiens full-games audit build: scoring, timing, touch and question-bank fixes. */
:root { --blue: #42c6ff; --yellow: #ffdb33; --pink: #ff4f9a; --orange: #ff8a1f; --violet: #a67bff; --cyan: #35f1dc; --gold: #ffb526; --coral: #ff675c; --mint: #6affc9; --mapblue: #64d7ff; }
.games-page { background: #050d09; }
.games-page .games-topbar { position: fixed; background: rgba(3, 12, 8, .72); backdrop-filter: blur(16px); }
.games-header-actions { display: flex; align-items: center; gap: 27px; }
.account-pill { position: relative; min-width: 196px; height: 52px; padding: 7px 12px 7px 58px; display: flex; flex-direction: column; justify-content: center; border: 1px solid rgba(141,255,31,.28); background: rgba(141,255,31,.055); transition: .2s ease; }
.account-pill:hover { border-color: var(--lime); background: rgba(141,255,31,.1); }
.account-pill > span { position: absolute; left: 8px; top: 7px; width: 38px; height: 38px; display: grid; place-items: center; color: #061008; background: var(--lime); font-size: 17px; font-weight: 950; }
.account-pill b { max-width: 125px; overflow: hidden; color: #eef4ed; font: 900 10px/1.2 monospace; letter-spacing: .07em; text-overflow: ellipsis; white-space: nowrap; }
.account-pill small { margin-top: 3px; color: #7d9083; font: 700 7px/1 monospace; letter-spacing: .07em; }
.account-pill i, .mobile-game-nav i { position: absolute; right: -6px; top: -6px; min-width: 19px; height: 19px; padding: 0 4px; display: grid; place-items: center; border-radius: 10px; color: #fff; background: #f23c63; font: 900 9px/1 monospace; }
.arcade-hero { min-height: 700px; height: 88svh; position: relative; display: flex; align-items: center; overflow: hidden; padding: 120px max(4%, calc((100% - var(--max))/2)) 80px; background: radial-gradient(circle at 73% 42%, rgba(141,255,31,.2), transparent 26%), radial-gradient(circle at 85% 70%, rgba(66,198,255,.11), transparent 25%), linear-gradient(135deg, #07140e, #030806); }
.arcade-grid { position: absolute; inset: 0; opacity: .12; background-image: linear-gradient(rgba(141,255,31,.22) 1px, transparent 1px), linear-gradient(90deg, rgba(141,255,31,.22) 1px, transparent 1px); background-size: 46px 46px; mask-image: linear-gradient(to right, transparent, #000 40%); transform: perspective(550px) rotateY(-11deg) scale(1.1); }
.arcade-hero::before { content: "PLAY"; position: absolute; right: -1vw; top: 16%; color: rgba(141,255,31,.035); font-size: clamp(150px, 28vw, 440px); line-height: .8; font-weight: 950; font-style: italic; letter-spacing: -.1em; }
.arcade-copy { position: relative; z-index: 2; width: min(650px, 63%); }
.arcade-copy h1 { margin-bottom: 31px; }
.arcade-copy > p:not(.hero-kicker) { max-width: 560px; margin-bottom: 30px; color: #b7c6bc; font-size: clamp(16px, 1.5vw, 20px); line-height: 1.65; }
.game-start-steps { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.game-start-steps span { min-height: 35px; padding: 7px 10px 7px 7px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid rgba(255,255,255,.13); color: #dbe8df; background: rgba(3,14,9,.5); font-size: 10px; font-weight: 850; }
.game-start-steps b { width: 21px; height: 21px; display: grid; place-items: center; color: #061008; background: var(--lime); font: 950 10px/1 monospace; }
.arcade-player-card { position: absolute; z-index: 2; top: 30%; right: max(4%, calc((100% - var(--max))/2)); width: 340px; padding: 22px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 17px; border: 1px solid rgba(255,255,255,.17); border-top: 3px solid var(--lime); background: rgba(5,22,14,.78); backdrop-filter: blur(14px); transform: rotate(1deg); box-shadow: 11px 11px 0 rgba(141,255,31,.09); }
.player-pixel { width: 57px; height: 57px; display: grid; place-items: center; color: #061009; background: var(--lime); font-size: 20px; font-weight: 950; clip-path: polygon(10% 0, 90% 0, 100% 10%, 100% 90%, 90% 100%, 10% 100%, 0 90%, 0 10%); }
.arcade-player-card small, .arcade-player-card span { display: block; color: #829289; font: 800 8px/1.4 monospace; letter-spacing: .12em; }
.arcade-player-card strong { display: block; margin: 4px 0; font-size: 17px; font-style: italic; }
.online-light { width: 9px; height: 9px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 15px var(--lime); }
.xp-dock { position: absolute; z-index: 2; right: max(4%, calc((100% - var(--max))/2)); bottom: 14%; width: 340px; padding: 22px; border-left: 3px solid var(--blue); background: rgba(6,19,14,.78); }
.xp-dock > span, .xp-dock small { color: #87988e; font: 800 9px/1 monospace; letter-spacing: .15em; }
.xp-dock strong { display: block; margin: 5px 0 12px; color: var(--lime); font: 950 43px/1 monospace; letter-spacing: -.05em; }
.xp-dock > div { height: 6px; margin-bottom: 11px; overflow: hidden; background: rgba(255,255,255,.1); }
.xp-dock i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--blue), var(--lime)); transition: width .5s ease; }
.xp-login { display: block; margin-top: 13px; color: var(--blue); font: 850 8px/1.4 monospace; letter-spacing: .09em; }
.xp-login:hover { color: var(--lime); }
.orbit-ball { position: absolute; z-index: 1; opacity: .45; font-size: 28px; filter: drop-shadow(0 0 10px rgba(141,255,31,.4)); animation: orbit 6s ease-in-out infinite; }
.orbit-one { top: 19%; right: 10%; }
.orbit-two { bottom: 19%; left: 44%; animation-delay: -2.4s; font-size: 18px; }

.games-section { width: min(92%, var(--max)); margin: 0 auto; padding: 125px 0 145px; }
.games-heading { display: flex; align-items: end; justify-content: space-between; gap: 35px; }
.games-heading h2 { margin-bottom: 0; }
.games-counter { display: flex; align-items: center; gap: 13px; padding-bottom: 10px; }
.games-counter b { color: var(--lime); font-size: 59px; line-height: 1; font-style: italic; }
.games-counter span { color: #718078; font: 800 9px/1.35 monospace; letter-spacing: .12em; }
.games-login-callout[hidden] { display: none; }
.games-login-callout { margin-top: 42px; padding: 22px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 22px; border: 1px solid rgba(141,255,31,.35); border-left: 4px solid var(--lime); background: linear-gradient(105deg, rgba(141,255,31,.12), rgba(66,198,255,.06) 66%, rgba(4,14,9,.9)); box-shadow: 9px 9px 0 rgba(141,255,31,.07); }
.games-login-shield { position: relative; width: 72px; height: 72px; display: grid; place-items: center; border: 1px solid rgba(141,255,31,.5); color: #061008; background: var(--lime); clip-path: polygon(50% 0, 92% 15%, 87% 68%, 50% 100%, 13% 68%, 8% 15%); }
.games-login-shield span { font: 950 20px/1 monospace; letter-spacing: -.08em; }
.games-login-shield b { position: absolute; right: 5px; top: 8px; min-width: 21px; height: 21px; display: grid; place-items: center; color: #fff; background: #07120c; font: 950 8px/1 monospace; }
.games-login-callout small { display: block; margin-bottom: 7px; color: var(--lime); font: 900 8px/1 monospace; letter-spacing: .17em; }
.games-login-callout strong { display: block; color: #f4f8f5; font-size: clamp(18px, 2vw, 27px); font-style: italic; line-height: 1; }
.games-login-callout p { margin: 8px 0 0; color: #9bada2; font-size: 12px; line-height: 1.45; }
.games-login-callout > a { min-height: 51px; padding: 0 17px; display: inline-flex; align-items: center; justify-content: center; gap: 15px; border: 1px solid var(--lime); color: #061008; background: var(--lime); font: 950 9px/1 monospace; letter-spacing: .08em; text-align: center; transition: .18s ease; }
.games-login-callout > a:hover { filter: brightness(1.12); transform: translateY(-2px); }
.games-login-callout > a span { font-size: 18px; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.game-library-tools { position: relative; margin-top: 42px; padding: 12px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 12px; border: 1px solid rgba(255,255,255,.14); background: radial-gradient(circle at 12% 0, rgba(141,255,31,.09), transparent 45%), rgba(4,14,9,.88); box-shadow: 8px 8px 0 rgba(141,255,31,.065); }
.game-search-field { position: relative; min-width: 0; min-height: 58px; display: flex; align-items: center; border: 1px solid rgba(255,255,255,.14); border-left: 3px solid var(--lime); background: rgba(2,9,6,.88); transition: border-color .18s ease, box-shadow .18s ease; }
.game-search-field:focus-within { border-color: var(--lime); box-shadow: 0 0 0 3px rgba(141,255,31,.13); }
.game-search-icon { width: 52px; display: grid; place-items: center; color: var(--lime); font: 900 28px/1 monospace; transform: translateY(-2px); }
.game-search-field input { min-width: 0; height: 56px; flex: 1; padding: 0 49px 0 0; border: 0; outline: 0; appearance: none; color: #edf5ef; background: transparent; font: 900 13px/1 monospace; letter-spacing: .1em; text-transform: uppercase; }
.game-search-field input::placeholder { color: #718078; opacity: 1; }
.game-search-field input::-webkit-search-cancel-button { display: none; }
.game-search-field > button { position: absolute; right: 7px; top: 7px; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.15); color: #a8b6ad; background: rgba(255,255,255,.045); cursor: pointer; font: 500 25px/1 sans-serif; transition: .18s ease; }
.game-search-field > button:hover { border-color: var(--lime); color: var(--lime); background: rgba(141,255,31,.08); }
.game-search-field > button[hidden] { display: none; }
.game-view-toggle { min-height: 58px; padding: 4px; display: grid; grid-template-columns: repeat(2, minmax(132px, 1fr)); gap: 4px; border: 1px solid rgba(255,255,255,.14); background: rgba(2,9,6,.88); }
.game-view-toggle button { min-height: 48px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; color: #8a9a90; background: transparent; cursor: pointer; font: 900 10px/1 monospace; letter-spacing: .09em; transition: color .18s ease, background .18s ease, transform .18s ease; }
.game-view-toggle button:hover { color: #eef5f0; background: rgba(255,255,255,.055); }
.game-view-toggle button[aria-pressed="true"] { color: #061008; background: var(--lime); box-shadow: 4px 4px 0 rgba(141,255,31,.13); }
.game-view-toggle button b { min-width: 23px; height: 23px; padding: 0 5px; display: grid; place-items: center; border: 1px solid currentColor; font-size: 9px; }
.game-category-filter { grid-column: 1 / -1; min-width: 0; padding: 6px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; border: 1px solid rgba(255,255,255,.14); background: rgba(2,9,6,.88); }
.game-category-filter button { min-width: 0; min-height: 52px; padding: 7px 9px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid transparent; color: #91a198; background: rgba(255,255,255,.025); cursor: pointer; touch-action: manipulation; font: 900 9px/1.25 monospace; letter-spacing: .055em; text-align: center; transition: color .18s ease, border-color .18s ease, background .18s ease, transform .18s ease; }
.game-category-filter button > span { flex: 0 0 auto; font: 400 18px/1 sans-serif; }
.game-category-filter button > b { min-width: 23px; height: 23px; padding: 0 5px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid currentColor; font-size: 9px; }
.game-category-filter button:hover { border-color: rgba(141,255,31,.45); color: #f0f7f2; background: rgba(141,255,31,.065); transform: translateY(-1px); }
.game-category-filter button[aria-pressed="true"] { border-color: var(--lime); color: #061008; background: var(--lime); box-shadow: 4px 4px 0 rgba(141,255,31,.13); }
.games-filter-status { grid-column: 1 / -1; min-height: 16px; margin: 0 2px; color: #7f9186; font: 800 8px/1.4 monospace; letter-spacing: .13em; }
.game-search-field > button:focus-visible,
.game-view-toggle button:focus-visible,
.game-category-filter button:focus-visible,
.game-favorite-toggle:focus-visible,
.games-empty-state button:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.game-select-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 23px; }
.game-select-grid > .select-card[hidden],
.select-card.is-filtered-out { display: none !important; }
.select-card { position: relative; min-height: 420px; padding: 34px; display: flex; flex-direction: column; overflow: hidden; border: 1px solid rgba(255,255,255,.12); background: #0a1a13; transition: transform .25s ease, border-color .25s ease; }
.select-card:hover { transform: translateY(-7px); border-color: rgba(141,255,31,.5); }
.select-card.is-favorite { border-color: rgba(255,219,51,.5); box-shadow: inset 0 0 0 1px rgba(255,219,51,.07); }
.select-card.is-favorite:hover { border-color: rgba(255,219,51,.8); }
.select-card::after { content: ""; position: absolute; inset: 0; opacity: .12; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.15) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.15) 1px, transparent 1px); background-size: 31px 31px; mask-image: linear-gradient(transparent, #000); }
.card-clicker { background: radial-gradient(circle at 80% 30%, rgba(141,255,31,.28), transparent 30%), #0a1a13; }
.card-world { background: radial-gradient(circle at 80% 30%, rgba(66,198,255,.25), transparent 30%), #091721; }
.card-players { background: radial-gradient(circle at 80% 30%, rgba(255,219,51,.24), transparent 32%), #211b08; }
.card-catch { background: radial-gradient(circle at 80% 30%, rgba(255,79,154,.22), transparent 30%), #1d0b16; }
.card-outline { background: radial-gradient(circle at 80% 30%, rgba(53,241,220,.22), transparent 30%), #071c1a; }
.card-penalty { background: radial-gradient(circle at 80% 30%, rgba(255,138,31,.24), transparent 30%), #211306; }
.card-memory { background: radial-gradient(circle at 80% 30%, rgba(166,123,255,.24), transparent 30%), #150d24; }
.card-worldcup { background: radial-gradient(circle at 80% 28%, rgba(255,181,38,.27), transparent 32%), linear-gradient(145deg, #241506, #0f0b06); }
.card-swipe { background: radial-gradient(circle at 80% 28%, rgba(255,103,92,.27), transparent 32%), linear-gradient(145deg, #25100d, #100a09); }
.card-accuracy { background: radial-gradient(circle at 80% 28%, rgba(106,255,201,.24), transparent 32%), linear-gradient(145deg, #082019, #07100d); }
.card-mapconnect { background: radial-gradient(circle at 80% 28%, rgba(100,215,255,.25), transparent 34%), linear-gradient(145deg, #061d29, #06110d); }
.card-top { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #77877d; font: 800 9px/1 monospace; letter-spacing: .13em; }
.card-top > b { max-width: 62%; padding: 8px 10px; border: 1px solid currentColor; color: var(--lime); line-height: 1.25; text-align: right; }
.card-id { min-width: 0; display: flex; align-items: center; gap: 10px; }
.card-id > span { white-space: nowrap; }
.game-favorite-toggle { position: relative; z-index: 3; width: 44px; height: 44px; flex: 0 0 44px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.19); color: #9baaa1; background: rgba(3,13,8,.78); cursor: pointer; box-shadow: 4px 4px 0 rgba(0,0,0,.18); transition: color .18s ease, border-color .18s ease, background .18s ease, transform .18s ease; }
.game-favorite-toggle span { font: 500 25px/1 sans-serif; transform: translateY(-1px); }
.game-favorite-toggle:hover { border-color: rgba(255,219,51,.7); color: var(--yellow); transform: translateY(-2px); }
.game-favorite-toggle[aria-pressed="true"] { border-color: rgba(255,219,51,.82); color: #261f03; background: var(--yellow); box-shadow: 0 0 22px rgba(255,219,51,.2), 4px 4px 0 rgba(0,0,0,.2); }
.card-world .card-top b { color: var(--blue); }
.card-players .card-top b { color: var(--yellow); }
.card-catch .card-top b { color: var(--pink); }
.card-outline .card-top b { color: var(--cyan); }
.card-penalty .card-top b { color: var(--orange); }
.card-memory .card-top b { color: var(--violet); }
.card-worldcup .card-top b { color: var(--gold); }
.card-swipe .card-top b { color: var(--coral); }
.card-accuracy .card-top b { color: var(--mint); }
.card-mapconnect .card-top b { color: var(--mapblue); }
.select-icon { position: absolute; z-index: 1; top: 70px; right: 50px; width: 130px; height: 130px; display: grid; place-items: center; border: 2px solid rgba(141,255,31,.38); border-radius: 50%; background: rgba(0,0,0,.15); }
.select-icon span { font-size: 83px; animation: ballSpin 7s linear infinite; }
.select-icon i { position: absolute; right: -7px; top: 3px; padding: 8px; color: #061008; background: var(--lime); font: 950 14px/1 monospace; }
.flag-cloud { position: absolute; z-index: 1; top: 70px; right: 32px; width: 190px; height: 140px; }
.flag-cloud span { position: absolute; display: grid; place-items: center; width: 75px; height: 52px; background: #0b211c; border: 1px solid rgba(255,255,255,.13); font-size: 35px; box-shadow: 7px 7px 0 rgba(66,198,255,.09); }
.flag-cloud span:nth-child(2) { left: 90px; top: 16px; transform: rotate(5deg); }
.flag-cloud span:nth-child(3) { left: 30px; top: 76px; transform: rotate(-4deg); }
.flag-cloud span:nth-child(4) { left: 115px; top: 84px; transform: rotate(3deg); }
.player-preview { position: absolute; top: 73px; right: 43px; width: 170px; height: 132px; transform: rotate(4deg); }
.player-preview span { position: absolute; right: 5px; top: 0; width: 104px; height: 104px; display: grid; place-items: center; border: 2px solid rgba(255,219,51,.65); border-radius: 50%; color: #1b1605; background: linear-gradient(145deg, var(--yellow), #fff0a1); font-size: 54px; box-shadow: 8px 8px 0 rgba(255,219,51,.12); }
.player-preview b { position: absolute; z-index: 2; left: 5px; bottom: 7px; padding: 10px 12px; color: #1b1605; background: var(--yellow); font: 950 25px/1 monospace; }
.player-preview b::after { content: "/140"; margin-left: 3px; font-size: 8px; }
.player-preview i { position: absolute; z-index: 3; right: 0; bottom: 0; font-size: 38px; filter: drop-shadow(5px 7px 4px rgba(0,0,0,.35)); }
.catch-preview { position: absolute; top: 75px; right: 38px; width: 200px; height: 130px; }
.catch-preview span { position: absolute; right: 0; font-size: 103px; opacity: .8; }
.catch-preview b { position: absolute; left: 9px; bottom: 0; font-size: 62px; transform: rotate(-12deg); filter: drop-shadow(6px 8px 4px rgba(0,0,0,.3)); }
.outline-preview { position: absolute; top: 67px; right: 43px; width: 154px; height: 142px; display: grid; place-items: center; }
.outline-preview canvas { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 0 15px rgba(53,241,220,.35)); }
.outline-preview b { position: absolute; z-index: 2; right: -4px; bottom: 2px; padding: 8px; color: #041311; background: var(--cyan); font: 950 13px/1 monospace; }
.penalty-preview { position: absolute; top: 72px; right: 36px; width: 204px; height: 140px; }
.penalty-preview span { position: absolute; right: 0; top: 0; font-size: 108px; }
.penalty-preview b { position: absolute; left: 13px; bottom: 3px; font-size: 58px; transform: rotate(-14deg); }
.penalty-preview i { position: absolute; right: -3px; top: -2px; padding: 8px; color: #1d1003; background: var(--orange); font: 950 11px/1 monospace; transform: rotate(5deg); }
.memory-preview { position: absolute; top: 70px; right: 42px; width: 166px; display: grid; grid-template-columns: repeat(2, 72px); gap: 8px; transform: rotate(4deg); }
.memory-preview span { height: 62px; display: grid; place-items: center; border: 1px solid rgba(166,123,255,.55); color: #fff; background: rgba(166,123,255,.14); font-size: 27px; font-weight: 950; box-shadow: 5px 5px 0 rgba(166,123,255,.1); }
.memory-preview span:first-child { color: #130a22; background: var(--violet); font-size: 19px; }
.worldcup-preview { position: absolute; top: 69px; right: 38px; width: 190px; height: 143px; }
.worldcup-preview::before { content: ""; position: absolute; inset: 23px 17px 5px; border: 1px solid rgba(255,181,38,.42); background: repeating-linear-gradient(90deg, transparent 0 21px, rgba(255,181,38,.06) 22px), linear-gradient(145deg, rgba(255,181,38,.16), transparent); transform: skewX(-7deg); box-shadow: 8px 8px 0 rgba(255,181,38,.09); }
.worldcup-preview-cup { position: absolute; z-index: 2; left: 50%; top: 17px; font-size: 80px; line-height: 1; filter: drop-shadow(0 14px 9px rgba(0,0,0,.45)); transform: translateX(-50%) rotate(4deg); }
.worldcup-preview-year, .worldcup-preview-now { position: absolute; z-index: 3; padding: 6px 8px; color: #271804; background: var(--gold); font: 950 11px/1 monospace; box-shadow: 4px 4px 0 rgba(0,0,0,.25); }
.worldcup-preview-year { left: 0; top: 5px; transform: rotate(-5deg); }
.worldcup-preview-now { right: 0; bottom: 0; transform: rotate(5deg); }
.swipe-preview { position: absolute; z-index: 1; top: 66px; right: 37px; width: 190px; height: 150px; }
.swipe-preview::before { content: ""; position: absolute; inset: 21px; border: 1px solid rgba(255,103,92,.28); border-radius: 50%; box-shadow: inset 0 0 31px rgba(255,103,92,.1), 7px 7px 0 rgba(255,103,92,.07); }
.swipe-preview b { position: absolute; z-index: 2; left: 50%; top: 50%; font-size: 64px; line-height: 1; transform: translate(-50%, -50%) rotate(-7deg); filter: drop-shadow(5px 8px 5px rgba(0,0,0,.35)); }
.swipe-preview span { position: absolute; z-index: 3; width: 36px; height: 36px; display: grid; place-items: center; color: #260d0a; background: var(--coral); font: 950 21px/1 monospace; box-shadow: 4px 4px 0 rgba(0,0,0,.2); }
.swipe-preview span:nth-of-type(1) { left: 50%; top: 0; transform: translateX(-50%); }
.swipe-preview span:nth-of-type(2) { left: 0; top: 50%; transform: translateY(-50%); }
.swipe-preview span:nth-of-type(3) { right: 0; top: 50%; transform: translateY(-50%); }
.swipe-preview span:nth-of-type(4) { left: 50%; bottom: 0; transform: translateX(-50%); }
.accuracy-preview { position: absolute; z-index: 1; top: 64px; right: 34px; width: 205px; height: 151px; }
.accuracy-preview > span { position: absolute; right: 0; top: 0; font-size: 111px; line-height: 1; opacity: .78; }
.accuracy-preview > i { position: absolute; z-index: 2; right: 53px; top: 26px; width: 65px; height: 65px; display: grid; place-items: center; border: 8px solid var(--coral); border-radius: 50%; color: #06130e; background: var(--mint); box-shadow: 0 0 0 8px rgba(106,255,201,.15); }
.accuracy-preview > i::after { content: ""; position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--coral); }
.accuracy-preview > i b { position: absolute; right: -17px; top: -18px; padding: 6px; color: #06130e; background: var(--mint); font: 950 10px/1 monospace; transform: rotate(6deg); }
.accuracy-preview > em { position: absolute; z-index: 3; left: 7px; bottom: 0; font-size: 58px; font-style: normal; transform: rotate(-13deg); filter: drop-shadow(5px 7px 4px rgba(0,0,0,.34)); }
.mapconnect-preview { position: absolute; z-index: 1; top: 75px; right: 35px; width: 215px; height: 125px; display: grid; grid-template-columns: 55px 1fr 48px 1fr 55px; align-items: center; filter: drop-shadow(0 9px 10px rgba(0,0,0,.3)); }
.mapconnect-preview::before { content: ""; position: absolute; inset: 12px 5px; border: 1px solid rgba(100,215,255,.28); border-radius: 50%; background: radial-gradient(circle at 50% 50%, rgba(141,255,31,.11), transparent 56%), repeating-linear-gradient(90deg, transparent 0 25px, rgba(100,215,255,.06) 26px); transform: rotate(-6deg); }
.mapconnect-preview span, .mapconnect-preview b, .mapconnect-preview i { position: relative; z-index: 2; }
.mapconnect-preview span { width: 55px; height: 55px; display: grid; place-items: center; border: 1px solid rgba(100,215,255,.4); border-radius: 50%; background: #092434; font-size: 30px; box-shadow: 0 0 0 6px rgba(100,215,255,.06); }
.mapconnect-preview b { font-size: 35px; text-align: center; }
.mapconnect-preview i { height: 3px; background: linear-gradient(90deg, var(--mapblue), var(--lime)); box-shadow: 0 0 10px rgba(100,215,255,.55); }
.select-card h3 { position: relative; z-index: 2; margin: auto 0 12px; font-size: clamp(31px, 3.3vw, 48px); line-height: .87; font-style: italic; letter-spacing: -.055em; }
.select-card p { position: relative; z-index: 2; max-width: 410px; min-height: 52px; color: #8fa097; font-size: 14px; line-height: 1.55; }
.play-card { position: relative; z-index: 2; width: 100%; min-height: 55px; margin-top: 14px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; border: 0; color: #061008; background: var(--lime); cursor: pointer; font-size: 11px; font-weight: 950; letter-spacing: .13em; transition: .2s ease; }
.play-card:hover { filter: brightness(1.12); transform: translateX(3px); }
.card-world .play-card { background: var(--blue); }
.card-players .play-card { background: var(--yellow); }
.card-catch .play-card { background: var(--pink); }
.card-outline .play-card { background: var(--cyan); }
.card-penalty .play-card { background: var(--orange); }
.card-memory .play-card { background: var(--violet); }
.card-worldcup .play-card { background: var(--gold); }
.card-swipe .play-card { background: var(--coral); }
.card-accuracy .play-card { background: var(--mint); }
.card-mapconnect .play-card { background: var(--mapblue); }
.play-card b { font-size: 17px; }
.select-card.is-login-locked { border-color: rgba(255,255,255,.08); }
.select-card.is-login-locked:hover { transform: none; border-color: rgba(141,255,31,.24); }
.select-card.is-login-locked .play-card { border: 1px solid rgba(141,255,31,.35); color: #dbe7df; background: rgba(4,15,9,.82); box-shadow: inset 0 0 25px rgba(141,255,31,.035); }
.select-card.is-login-locked .play-card:hover { color: #061008; background: var(--lime); }
.games-empty-state { grid-column: 1 / -1; min-height: 310px; padding: 42px 24px; display: grid; place-items: center; align-content: center; border: 1px dashed rgba(141,255,31,.5); background: radial-gradient(circle at 50% 35%, rgba(141,255,31,.11), transparent 30%), linear-gradient(rgba(141,255,31,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(141,255,31,.035) 1px, transparent 1px), #06110c; background-size: auto, 32px 32px, 32px 32px, auto; text-align: center; }
.games-empty-state[hidden] { display: none; }
.games-empty-icon { width: 64px; height: 64px; margin-bottom: 20px; display: grid; place-items: center; border: 1px solid rgba(141,255,31,.5); color: var(--lime); background: rgba(141,255,31,.06); font: 500 40px/1 sans-serif; }
.games-empty-state h3 { margin: 0; color: #eef5f0; font-size: clamp(28px, 4vw, 48px); font-style: italic; line-height: .95; }
.games-empty-state p { margin: 12px 0 24px; color: #8fa097; font-size: 13px; line-height: 1.5; }
.games-empty-state button { min-height: 52px; padding: 0 22px; border: 0; color: #061008; background: var(--lime); cursor: pointer; font: 950 10px/1 monospace; letter-spacing: .1em; transition: filter .18s ease, transform .18s ease; }
.games-empty-state button:hover { filter: brightness(1.12); transform: translateY(-2px); }
.play-card[aria-busy="true"] { color: #8b9b91; background: rgba(255,255,255,.055); cursor: wait; }

.hall-of-fame { padding: 120px 4%; text-align: center; background: var(--lime); color: #071009; }
.hall-of-fame > p { font: 900 11px/1 monospace; letter-spacing: .19em; }
.hall-of-fame h2 { margin: 0 0 55px; }
.hall-of-fame h2 span { color: transparent; -webkit-text-stroke: 2px #071009; }
.badges { width: min(100%, 1240px); margin: auto; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.badges > div { position: relative; min-height: 155px; padding: 24px 14px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 12px; border: 2px solid rgba(7,16,9,.28); opacity: .35; filter: grayscale(1); transition: .35s ease; }
.badges > div::after { content: "NAV IEGŪTS"; position: absolute; top: 9px; right: 9px; font: 900 7px/1 monospace; letter-spacing: .1em; }
.badges > div.unlocked { opacity: 1; filter: none; background: rgba(255,255,255,.18); border-color: #071009; transform: translateY(-5px); }
.badges > div.unlocked::after { content: "IEGŪTS"; }
.badges b { font-size: 39px; }
.badges span { font-size: 10px; font-weight: 950; letter-spacing: .08em; }

.game-modal[hidden] { display: none; }
.game-modal { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 18px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,5,3,.88); backdrop-filter: blur(14px); }
.modal-window { position: relative; width: min(100%, 850px); max-height: calc(100svh - 36px); overflow: auto; border: 1px solid rgba(141,255,31,.33); background: #07150e; box-shadow: 14px 14px 0 rgba(141,255,31,.11); }
.modal-head { min-height: 94px; padding: 18px 22px 18px 29px; display: flex; align-items: center; justify-content: space-between; gap: 25px; border-bottom: 1px solid rgba(255,255,255,.12); }
.modal-head small { color: var(--lime); font: 800 8px/1 monospace; letter-spacing: .16em; }
.modal-head h2 { margin: 5px 0 0; font-size: 31px; line-height: 1; }
.modal-close { width: 50px; height: 50px; border: 1px solid rgba(255,255,255,.18); color: #fff; background: rgba(255,255,255,.05); font-size: 31px; cursor: pointer; }
.modal-close:hover { color: #071009; background: var(--lime); }
.login-gate[hidden] { display: none; }
.login-gate { position: fixed; z-index: 220; inset: 0; display: grid; place-items: center; padding: 18px; }
.login-gate-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(0,5,3,.9); backdrop-filter: blur(14px); cursor: pointer; }
.login-gate-card { position: relative; width: min(100%, 610px); max-height: calc(100svh - 36px); overflow: auto; padding: clamp(30px, 6vw, 58px); border: 1px solid rgba(141,255,31,.42); border-top: 5px solid var(--lime); color: #eef5f0; background: radial-gradient(circle at 86% 12%, rgba(141,255,31,.18), transparent 28%), linear-gradient(145deg, #0a1c13, #050d09); box-shadow: 16px 16px 0 rgba(141,255,31,.11); text-align: center; }
.login-gate-card::before { content: ""; position: absolute; inset: 0; opacity: .08; pointer-events: none; background-image: linear-gradient(rgba(141,255,31,.35) 1px, transparent 1px), linear-gradient(90deg, rgba(141,255,31,.35) 1px, transparent 1px); background-size: 31px 31px; mask-image: linear-gradient(#000, transparent 78%); }
.login-gate-close { position: absolute; z-index: 2; right: 15px; top: 15px; width: 43px; height: 43px; border: 1px solid rgba(255,255,255,.18); color: #fff; background: rgba(255,255,255,.05); cursor: pointer; font-size: 27px; }
.login-gate-close:hover { color: #061008; background: var(--lime); }
.login-gate-mark { position: relative; z-index: 1; width: 88px; height: 88px; margin: 0 auto 20px; display: grid; place-items: center; border: 2px solid rgba(141,255,31,.48); border-radius: 50%; color: #061008; background: var(--lime); box-shadow: 0 0 0 9px rgba(141,255,31,.07); }
.login-gate-mark span { font: 950 24px/1 monospace; letter-spacing: -.08em; }
.login-gate-mark b { position: absolute; right: -4px; bottom: 1px; width: 29px; height: 29px; display: grid; place-items: center; border: 3px solid #07120c; border-radius: 50%; color: #fff; background: #07120c; font: 950 9px/1 monospace; }
.login-gate-card > small { position: relative; z-index: 1; display: block; color: var(--lime); font: 900 8px/1 monospace; letter-spacing: .2em; }
.login-gate-card h2 { position: relative; z-index: 1; margin: 12px 0 17px; font-size: clamp(43px, 9vw, 78px); line-height: .78; letter-spacing: -.075em; }
.login-gate-card h2 em { color: var(--lime); font-style: italic; }
.login-gate-card > p { position: relative; z-index: 1; max-width: 460px; margin: 0 auto; color: #a7b8ad; font-size: 14px; line-height: 1.6; }
.login-gate-benefits { position: relative; z-index: 1; margin: 24px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.login-gate-benefits span { min-height: 50px; padding: 8px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.12); color: #dce8e0; background: rgba(255,255,255,.035); font: 850 8px/1.35 monospace; letter-spacing: .06em; }
.login-gate-action { position: relative; z-index: 1; min-height: 59px; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; color: #061008; background: var(--lime); font: 950 11px/1 monospace; letter-spacing: .12em; box-shadow: 7px 7px 0 rgba(141,255,31,.13); transition: .18s ease; }
.login-gate-action:hover { filter: brightness(1.12); transform: translateY(-2px); }
.login-gate-action b { font-size: 22px; }
.login-gate-later { position: relative; z-index: 1; margin-top: 20px; padding: 7px; border: 0; color: #83958a; background: transparent; cursor: pointer; font: 850 8px/1 monospace; letter-spacing: .1em; }
.login-gate-later:hover { color: #fff; }
.mini-hud { height: 69px; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.1); background: #06110c; }
.mini-hud > div:last-child { text-align: right; }
.mini-hud small { display: block; color: #788a7f; font: 800 8px/1 monospace; letter-spacing: .14em; }
.mini-hud strong { color: var(--lime); font: 950 25px/1 monospace; }
.clicker-stage, .catch-stage { position: relative; height: min(510px, 61svh); min-height: 390px; overflow: hidden; display: grid; place-items: center; background: repeating-linear-gradient(90deg, rgba(22,92,48,.28) 0 12.5%, rgba(31,118,59,.28) 12.5% 25%), linear-gradient(#0a321e, #071e13); }
.clicker-stage { cursor: pointer; touch-action: none; overscroll-behavior: contain; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.clicker-stage.is-live { box-shadow: inset 0 0 0 3px rgba(141,255,31,.2), inset 0 0 80px rgba(141,255,31,.08); }
.clicker-stage::before, .catch-stage::before { content: "RAIENS SPĒLES"; position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.055); font-size: clamp(58px, 11vw, 106px); white-space: nowrap; font-weight: 950; font-style: italic; }
.stage-lines { position: absolute; inset: 12% 19%; border: 2px solid rgba(255,255,255,.15); border-radius: 50%; }
.mega-ball { position: relative; z-index: 2; width: 260px; height: 260px; padding: 0; border: 7px solid rgba(141,255,31,.4); border-radius: 50%; background: rgba(7,18,11,.56); font-size: 172px; cursor: pointer; filter: drop-shadow(0 22px 13px rgba(0,0,0,.4)); touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; transition: border-color .08s ease, background .08s ease, filter .08s ease; }
.mega-ball > * { pointer-events: none; touch-action: none; }
.mega-ball.is-tapping { border-color: var(--lime); background: rgba(141,255,31,.11); filter: drop-shadow(0 0 23px rgba(141,255,31,.28)) drop-shadow(0 18px 10px rgba(0,0,0,.42)); }
.mega-ball span { position: absolute; left: 50%; bottom: -39px; transform: translateX(-50%); color: var(--lime); font: 950 11px/1 monospace; letter-spacing: .13em; white-space: nowrap; }
.mega-ball small { position: absolute; left: 50%; bottom: -59px; transform: translateX(-50%); color: #9fb0a5; font: 900 8px/1 monospace; letter-spacing: .1em; white-space: nowrap; }
.start-cover { position: absolute; z-index: 6; inset: 0; padding: 25px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: rgba(3,13,8,.83); backdrop-filter: blur(5px); }
.start-cover.is-hidden { display: none; }
.start-cover b { color: var(--lime); font-size: clamp(30px, 5vw, 55px); font-style: italic; line-height: .95; }
.start-cover span { margin: 13px 0 25px; color: #c0cdc4; }
.start-cover button, .mini-start { min-height: 52px; padding: 0 22px; border: 0; color: #061008; background: var(--lime); cursor: pointer; font-size: 11px; font-weight: 950; letter-spacing: .12em; }
.quiz-stage { position: relative; min-height: 520px; padding: 45px clamp(24px, 6vw, 70px); text-align: center; background: radial-gradient(circle at 50% 24%, rgba(66,198,255,.16), transparent 32%), #08141a; }
.quiz-flag { min-height: 84px; font-size: 73px; filter: drop-shadow(0 10px 9px rgba(0,0,0,.25)); }
.quiz-stage > small { display: block; margin: 12px 0 10px; color: var(--blue); font: 800 9px/1 monospace; letter-spacing: .14em; }
.quiz-stage h3 { min-height: 66px; margin: 0 0 27px; font-size: clamp(24px, 4vw, 38px); line-height: 1.1; }
.quiz-options { display: grid; gap: 10px; }
.quiz-options button { min-height: 54px; padding: 10px 18px; border: 1px solid rgba(255,255,255,.15); color: #e9f2ed; background: rgba(255,255,255,.05); cursor: pointer; font-size: 13px; font-weight: 850; transition: .18s ease; touch-action: manipulation; }
.quiz-options button:hover:not(:disabled) { border-color: var(--blue); background: rgba(66,198,255,.1); }
.quiz-options button:disabled { cursor: default; }
.quiz-options button.correct { color: #071009; background: var(--lime); border-color: var(--lime); }
.quiz-options button.selected { color: #071009; background: var(--blue); border-color: var(--blue); }
.quiz-options button.wrong { color: white; background: #d82f54; border-color: #d82f54; }
.quiz-feedback { min-height: 25px; margin-top: 13px; color: var(--lime); font-weight: 850; }
.quiz-stage .mini-start { margin-top: 11px; background: var(--blue); }
.player-quiz-stage { background: radial-gradient(circle at 50% 20%, rgba(255,219,51,.18), transparent 34%), linear-gradient(145deg, #211b08, #0e0d07); }
.player-quiz-stage > small { color: var(--yellow); }
.player-quiz-mark { position: relative; width: 92px; height: 78px; margin: 0 auto 3px; }
.player-quiz-mark span { position: absolute; left: 3px; top: 0; width: 67px; height: 67px; display: grid; place-items: center; border: 2px solid rgba(255,219,51,.6); border-radius: 50%; color: #211b08; background: var(--yellow); font: 950 28px/1 monospace; box-shadow: 6px 6px 0 rgba(255,219,51,.12); }
.player-quiz-mark i { position: absolute; right: 0; bottom: 0; font-size: 32px; }
.player-options button:hover:not(:disabled) { border-color: var(--yellow); background: rgba(255,219,51,.1); }
.player-options button.selected { background: var(--yellow); border-color: var(--yellow); }
.player-quiz-stage .player-start { background: var(--yellow); }
.catch-stage { cursor: crosshair; background: repeating-linear-gradient(0deg, transparent 0 24px, rgba(255,255,255,.04) 25px), repeating-linear-gradient(90deg, rgba(23,96,47,.35) 0 12.5%, rgba(35,128,62,.35) 12.5% 25%), #0a2e1c; }
.catch-goal { position: absolute; top: 12%; left: 50%; width: 55%; height: 30%; transform: translateX(-50%); display: grid; place-items: end center; padding-bottom: 10px; border: 4px solid rgba(255,255,255,.6); color: rgba(255,255,255,.38); font: 800 8px/1 monospace; letter-spacing: .14em; background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px); background-size: 18px 18px; }
.catch-ball { position: absolute; z-index: 5; left: calc(50% - 34px); top: 65%; width: 68px; height: 68px; padding: 0; border: 0; border-radius: 50%; display: none; place-items: center; background: transparent; font-size: 63px; cursor: pointer; filter: drop-shadow(0 12px 8px rgba(0,0,0,.4)); touch-action: manipulation; transition: left .12s ease, top .12s ease, transform .1s ease; }
.catch-ball:active { transform: scale(.7); }

.outline-stage { min-height: 570px; padding: 22px clamp(20px, 5vw, 58px) 31px; text-align: center; background: radial-gradient(circle at 50% 26%, rgba(53,241,220,.14), transparent 35%), linear-gradient(145deg, #061c1a, #04100f); }
.outline-map { position: relative; width: min(100%, 620px); height: 282px; margin: 0 auto 12px; display: grid; place-items: center; overflow: hidden; border: 1px solid rgba(53,241,220,.24); background-color: rgba(3,18,17,.78); background-image: linear-gradient(rgba(53,241,220,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(53,241,220,.08) 1px, transparent 1px); background-size: 28px 28px; }
.outline-map::before, .outline-map::after { content: ""; position: absolute; width: 10px; height: 10px; border: solid var(--cyan); pointer-events: none; }
.outline-map::before { left: 11px; top: 11px; border-width: 2px 0 0 2px; }
.outline-map::after { right: 11px; bottom: 11px; border-width: 0 2px 2px 0; }
.outline-map canvas { width: 100%; height: 100%; display: block; }
.outline-map span { position: absolute; left: 14px; bottom: 11px; color: rgba(53,241,220,.55); font: 800 7px/1 monospace; letter-spacing: .15em; }
.outline-stage h3 { min-height: 32px; margin: 8px 0 13px; font-size: clamp(21px, 3vw, 30px); }
.outline-options { width: min(100%, 620px); margin: auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.outline-options button { min-height: 49px; padding: 9px 12px; border: 1px solid rgba(255,255,255,.14); color: #e8fffc; background: rgba(255,255,255,.045); cursor: pointer; font-size: 11px; font-weight: 900; letter-spacing: .04em; transition: .18s ease; touch-action: manipulation; }
.outline-options button:hover:not(:disabled) { border-color: var(--cyan); background: rgba(53,241,220,.1); }
.outline-options button:disabled { cursor: default; }
.outline-options button.selected { color: #041311; border-color: var(--cyan); background: var(--cyan); }
.outline-options button.correct { color: #041311; border-color: var(--lime); background: var(--lime); }
.outline-options button.wrong { color: #fff; border-color: #e63861; background: #e63861; }
.outline-feedback { min-height: 19px; margin: 11px 0 0; color: var(--cyan); font-size: 11px; font-weight: 900; }
.outline-feedback.is-correct { color: var(--lime); }
.outline-feedback.is-wrong { color: #ff6686; }
.outline-start { margin-top: 8px; background: var(--cyan); }

.penalty-stage { position: relative; height: min(590px, 68svh); min-height: 480px; overflow: hidden; background: linear-gradient(180deg, #081b27 0 28%, #0d5129 29% 100%); }
.penalty-stage::after { content: ""; position: absolute; z-index: 0; left: -10%; right: -10%; bottom: -34%; height: 73%; border: 3px solid rgba(255,255,255,.28); border-radius: 50%; pointer-events: none; }
.penalty-stadium { position: absolute; inset: 0 0 auto; height: 29%; display: flex; align-items: flex-start; justify-content: space-around; padding-top: 14px; overflow: hidden; color: rgba(255,255,255,.09); background: repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 5%, transparent 5% 10%), linear-gradient(#07121c, #102c38); font-size: clamp(33px, 8vw, 76px); font-weight: 950; font-style: italic; }
.penalty-goal { position: absolute; z-index: 2; top: 17%; left: 50%; width: min(74%, 580px); height: 47%; transform: translateX(-50%); display: grid; grid-template-columns: repeat(3, 1fr); border: 7px solid #e9f6f0; border-bottom-width: 9px; background-color: rgba(3,22,16,.42); background-image: linear-gradient(rgba(255,255,255,.2) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.2) 1px, transparent 1px); background-size: 24px 24px; box-shadow: inset 0 0 45px rgba(0,0,0,.35), 0 10px 25px rgba(0,0,0,.3); perspective: 700px; }
.penalty-goal button { position: relative; z-index: 3; min-width: 0; border: 0; border-right: 1px dashed rgba(255,255,255,.2); background: transparent; cursor: crosshair; touch-action: manipulation; }
.penalty-goal button:last-of-type { border-right: 0; }
.penalty-goal button::after { content: "SIST"; position: absolute; left: 50%; top: 21%; padding: 6px 8px; color: rgba(255,255,255,.48); border: 1px solid rgba(255,255,255,.23); font: 900 8px/1 monospace; letter-spacing: .1em; transform: translateX(-50%); opacity: 0; transition: .18s ease; }
.penalty-goal.is-ready button::after, .penalty-goal button:hover:not(:disabled)::after { opacity: 1; }
.penalty-goal button:disabled { cursor: default; }
.penalty-keeper { position: absolute; z-index: 2; left: 50%; bottom: 3%; width: 80px; height: 94px; display: grid; place-items: center; font-size: 68px; transform: translateX(-50%); transition: left .28s cubic-bezier(.2,.8,.2,1), transform .28s cubic-bezier(.2,.8,.2,1); filter: drop-shadow(0 9px 5px rgba(0,0,0,.35)); }
.penalty-keeper.save-left { left: 18%; transform: translateX(-50%) rotate(-35deg) scale(1.18); }
.penalty-keeper.save-right { left: 82%; transform: translateX(-50%) rotate(35deg) scale(1.18); }
.penalty-keeper.save-center { left: 50%; transform: translateX(-50%) translateY(-17px) scale(1.18); }
.penalty-ball { position: absolute; z-index: 4; left: 50%; bottom: 8%; font-size: 62px; transform: translateX(-50%); transition: left .34s cubic-bezier(.2,.85,.3,1), top .34s cubic-bezier(.2,.85,.3,1), bottom .34s cubic-bezier(.2,.85,.3,1), transform .34s ease; filter: drop-shadow(0 11px 7px rgba(0,0,0,.45)); pointer-events: none; }
.penalty-ball.shot-left { left: 26%; bottom: 53%; transform: translateX(-50%) scale(.55) rotate(250deg); }
.penalty-ball.shot-center { left: 50%; bottom: 55%; transform: translateX(-50%) scale(.55) rotate(250deg); }
.penalty-ball.shot-right { left: 74%; bottom: 53%; transform: translateX(-50%) scale(.55) rotate(250deg); }
.penalty-message { position: absolute; z-index: 4; left: 50%; bottom: 2.5%; min-width: 230px; padding: 10px 18px; color: #061108; background: var(--orange); text-align: center; font: 950 11px/1 monospace; letter-spacing: .12em; transform: translateX(-50%) skewX(-6deg); box-shadow: 6px 6px 0 rgba(255,138,31,.18); }
.penalty-message.is-goal { background: var(--lime); }
.penalty-message.is-save { color: #fff; background: #e63861; }

.memory-stage { position: relative; min-height: 590px; padding: 30px clamp(18px, 5vw, 50px) 24px; background: radial-gradient(circle at 50% 35%, rgba(166,123,255,.14), transparent 43%), #10091b; }
.memory-stage::before { content: "RV"; position: absolute; right: 1%; bottom: -4%; color: rgba(166,123,255,.04); font-size: 260px; line-height: .8; font-weight: 950; pointer-events: none; }
.memory-grid { position: relative; z-index: 1; width: min(100%, 660px); margin: auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 11px; }
.memory-card { position: relative; height: 125px; padding: 0; border: 0; background: transparent; cursor: pointer; perspective: 700px; touch-action: manipulation; }
.memory-card:disabled { cursor: default; }
.memory-card-inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .38s cubic-bezier(.2,.75,.2,1); }
.memory-card.is-open .memory-card-inner, .memory-card.is-matched .memory-card-inner { transform: rotateY(180deg); }
.memory-card-face { position: absolute; inset: 0; display: grid; place-items: center; backface-visibility: hidden; border: 1px solid rgba(166,123,255,.42); box-shadow: 5px 5px 0 rgba(166,123,255,.09); }
.memory-card-back { color: #170d25; background: linear-gradient(135deg, var(--violet), #d0bbff); font-size: 23px; font-weight: 950; font-style: italic; }
.memory-card-back::after { content: "RAIENS"; position: absolute; bottom: 9px; font: 950 7px/1 monospace; letter-spacing: .13em; }
.memory-card-front { transform: rotateY(180deg); color: #fff; background: radial-gradient(circle, rgba(166,123,255,.25), transparent 65%), #170d25; font-size: 47px; }
.memory-card.is-matched .memory-card-front { border-color: var(--lime); box-shadow: inset 0 0 25px rgba(141,255,31,.12), 5px 5px 0 rgba(141,255,31,.13); }
.memory-status { position: relative; z-index: 1; min-height: 38px; margin-top: 19px; display: grid; place-items: center; color: var(--violet); text-align: center; font: 900 10px/1.4 monospace; letter-spacing: .1em; }

.worldcup-stage { position: relative; min-height: 650px; padding: 21px clamp(20px, 5vw, 57px) 28px; overflow: hidden; text-align: center; background: radial-gradient(circle at 50% 20%, rgba(255,181,38,.18), transparent 34%), repeating-linear-gradient(90deg, transparent 0 47px, rgba(255,181,38,.025) 48px), linear-gradient(145deg, #211405, #090b08 68%); }
.worldcup-stage::before { content: "WORLD CUP"; position: absolute; right: -27px; top: 197px; color: rgba(255,181,38,.035); font-size: clamp(68px, 13vw, 128px); line-height: .75; font-weight: 950; font-style: italic; transform: rotate(-90deg) translateX(100%); transform-origin: right top; pointer-events: none; white-space: nowrap; }
.worldcup-speed { position: relative; z-index: 2; width: min(100%, 670px); min-height: 27px; margin: 0 auto 13px; display: grid; grid-template-columns: auto 1fr 55px; align-items: center; gap: 10px; }
.worldcup-speed > span { color: #c99b47; font: 900 8px/1 monospace; letter-spacing: .11em; }
.worldcup-speed-track { height: 7px; overflow: hidden; border: 1px solid rgba(255,181,38,.22); background: rgba(0,0,0,.37); }
.worldcup-speed-track i { display: block; width: 100%; height: 100%; background: linear-gradient(90deg, #e63861 0 18%, var(--gold) 46%, var(--lime) 100%); transform-origin: left; transition: width .08s linear; box-shadow: 0 0 13px rgba(255,181,38,.36); }
.worldcup-speed strong { color: var(--gold); font: 950 11px/1 monospace; text-align: right; }
.worldcup-visual { --wc-primary: #f1c40f; --wc-secondary: #0c7841; position: relative; z-index: 1; width: min(100%, 670px); height: 177px; margin: 0 auto 12px; display: grid; place-items: center; overflow: hidden; border: 1px solid rgba(255,181,38,.3); background: linear-gradient(140deg, #251a08, #090d0a); box-shadow: 8px 8px 0 rgba(255,181,38,.07); isolation: isolate; }
.worldcup-visual::before { content: ""; position: absolute; z-index: -3; inset: 0; opacity: .37; background-image: radial-gradient(circle at 50% 120%, transparent 0 41%, rgba(255,255,255,.18) 42% 42.8%, transparent 43.3%), linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: auto, 24px 24px, 24px 24px; }
.worldcup-visual::after { content: ""; position: absolute; z-index: -2; inset: 16px; border: 1px solid rgba(255,255,255,.11); clip-path: polygon(0 0, 34% 0, 38% 5px, 62% 5px, 66% 0, 100% 0, 100% 100%, 66% 100%, 62% calc(100% - 5px), 38% calc(100% - 5px), 34% 100%, 0 100%); }
.worldcup-visual-primary, .worldcup-visual-secondary { position: absolute; z-index: -1; opacity: .88; filter: saturate(1.05); }
.worldcup-visual-primary { left: -7%; top: -56%; width: 58%; height: 188%; background: var(--wc-primary); transform: rotate(19deg); }
.worldcup-visual-secondary { right: -7%; top: -56%; width: 58%; height: 188%; background: var(--wc-secondary); transform: rotate(19deg); }
.worldcup-visual-year { position: absolute; top: 11px; right: 13px; padding: 5px 8px; border: 1px solid rgba(255,255,255,.24); color: #fff; background: rgba(5,8,6,.58); font: 950 10px/1 monospace; letter-spacing: .08em; }
.worldcup-visual-symbol { position: relative; max-width: 86%; padding: 9px 19px; overflow: hidden; color: #fff; background: rgba(5,8,6,.76); font: 950 clamp(42px, 8vw, 73px)/.95 monospace; letter-spacing: -.08em; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 4px 0 rgba(0,0,0,.45); box-shadow: 7px 7px 0 rgba(0,0,0,.26); }
.worldcup-visual small { position: absolute; left: 13px; bottom: 10px; color: rgba(255,255,255,.65); font: 900 7px/1 monospace; letter-spacing: .15em; }
.worldcup-visual[data-type="flag"] .worldcup-visual-symbol { color: #071009; background: rgba(255,255,255,.9); font-size: clamp(45px, 8vw, 76px); }
.worldcup-visual[data-type="year"] .worldcup-visual-symbol { color: #211405; background: var(--gold); font-size: clamp(48px, 9vw, 82px); transform: skewX(-6deg); }
.worldcup-visual[data-type="duel"] .worldcup-visual-primary { transform: rotate(25deg) translateX(-8%); }
.worldcup-visual[data-type="duel"] .worldcup-visual-secondary { transform: rotate(25deg) translateX(8%); }
.worldcup-visual[data-type="duel"] .worldcup-visual-symbol { border: 1px solid rgba(255,255,255,.35); font-size: clamp(34px, 6vw, 59px); }
.worldcup-visual[data-type="score"] .worldcup-visual-symbol { border-top: 4px solid var(--gold); border-bottom: 4px solid var(--gold); font-size: clamp(48px, 9vw, 84px); letter-spacing: .02em; }
.worldcup-visual[data-type="record"] .worldcup-visual-symbol { border-radius: 50%; color: #211405; background: var(--gold); font-size: clamp(42px, 8vw, 72px); box-shadow: 0 0 0 9px rgba(255,181,38,.19), 0 0 45px rgba(255,181,38,.32); }
.worldcup-category { position: relative; z-index: 1; color: var(--gold); font: 900 8px/1 monospace; letter-spacing: .14em; }
.worldcup-stage h3 { position: relative; z-index: 1; min-height: 54px; margin: 8px auto 14px; font-size: clamp(21px, 3.4vw, 32px); line-height: 1.07; }
.worldcup-options { position: relative; z-index: 1; width: min(100%, 670px); margin: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.worldcup-options button { min-height: 50px; padding: 9px 12px; border: 1px solid rgba(255,181,38,.22); color: #f4efe5; background: rgba(255,255,255,.045); cursor: pointer; font-size: 11px; font-weight: 900; transition: .16s ease; }
.worldcup-options button:hover:not(:disabled) { border-color: var(--gold); background: rgba(255,181,38,.1); transform: translateY(-2px); }
.worldcup-options button:disabled { cursor: default; }
.worldcup-options button.correct { color: #071009; border-color: var(--lime); background: var(--lime); }
.worldcup-options button.wrong { color: #fff; border-color: #e63861; background: #e63861; }
.worldcup-feedback { position: relative; z-index: 1; min-height: 54px; margin: 10px auto 0; color: #d9c49e; font-size: 10px; font-weight: 800; line-height: 1.45; }
.worldcup-feedback b { display: block; margin-bottom: 3px; color: var(--gold); font: 950 11px/1.2 monospace; letter-spacing: .04em; }
.worldcup-feedback.is-correct b { color: var(--lime); }
.worldcup-feedback.is-wrong b { color: #ff6686; }
.worldcup-start { position: relative; z-index: 1; margin-top: 4px; background: var(--gold); }

.swipe-stage, .accuracy-stage { position: relative; height: min(590px, 68svh); min-height: 490px; overflow: hidden; touch-action: none; user-select: none; }
.swipe-stage { background: radial-gradient(circle at 50% 51%, rgba(255,103,92,.17), transparent 31%), repeating-linear-gradient(90deg, transparent 0 37px, rgba(255,255,255,.025) 38px), linear-gradient(145deg, #28100d, #0b100c 72%); }
.gesture-timer { position: absolute; z-index: 7; left: 50%; top: 17px; width: min(calc(100% - 34px), 690px); min-height: 29px; display: grid; grid-template-columns: auto 1fr 56px; align-items: center; gap: 10px; transform: translateX(-50%); }
.gesture-timer > span { color: #d89a94; font: 900 8px/1 monospace; letter-spacing: .12em; }
.gesture-timer > div { height: 8px; overflow: hidden; border: 1px solid rgba(255,103,92,.24); background: rgba(0,0,0,.42); }
.gesture-timer i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, #e63861, var(--coral), var(--lime)); transform-origin: left; box-shadow: 0 0 13px rgba(255,103,92,.33); }
.gesture-timer strong { color: var(--coral); font: 950 11px/1 monospace; text-align: right; }
.swipe-field { position: absolute; inset: 57px 0 0; overflow: hidden; touch-action: none; }
.swipe-field::before { content: "RAIENS SPĒLES"; position: absolute; left: 50%; top: 50%; color: rgba(255,255,255,.035); font-size: clamp(59px, 12vw, 111px); font-style: italic; font-weight: 950; line-height: .8; white-space: nowrap; transform: translate(-50%, -50%) rotate(-8deg); pointer-events: none; }
.swipe-field::after { content: ""; position: absolute; inset: 12% 15%; border: 1px solid rgba(255,255,255,.08); transform: rotate(45deg); pointer-events: none; }
.swipe-target { position: absolute; z-index: 2; width: 116px; min-height: 67px; padding: 7px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.17); color: rgba(255,255,255,.35); background: rgba(255,255,255,.035); text-align: center; transition: color .16s ease, background .16s ease, border-color .16s ease, transform .16s ease; pointer-events: none; }
.swipe-target b { font: 950 31px/1 monospace; }
.swipe-target small { margin-top: 3px; font: 900 7px/1 monospace; letter-spacing: .09em; }
.swipe-target-up { left: 50%; top: 5%; transform: translateX(-50%); }
.swipe-target-right { right: 5%; top: 45%; transform: translateY(-50%); }
.swipe-target-down { left: 50%; bottom: 13%; transform: translateX(-50%); }
.swipe-target-left { left: 5%; top: 45%; transform: translateY(-50%); }
.swipe-target.is-active { color: #2a0d09; border-color: var(--coral); background: var(--coral); box-shadow: 0 0 0 7px rgba(255,103,92,.12), 0 0 31px rgba(255,103,92,.28); }
.swipe-target-up.is-active, .swipe-target-down.is-active { transform: translateX(-50%) scale(1.08); }
.swipe-target-right.is-active, .swipe-target-left.is-active { transform: translateY(-50%) scale(1.08); }
.swipe-target.is-correct { color: #061008; border-color: var(--lime); background: var(--lime); }
.swipe-target.is-wrong { color: #fff; border-color: #e63861; background: #e63861; }
.swipe-ball { --swipe-x: 0px; --swipe-y: 0px; position: absolute; z-index: 5; left: 50%; top: 47%; width: 92px; height: 92px; padding: 0; border: 4px solid rgba(255,103,92,.53); border-radius: 50%; color: #fff; background: rgba(19,8,6,.67); font-size: 69px; line-height: 1; cursor: grab; filter: drop-shadow(0 14px 8px rgba(0,0,0,.45)); transform: translate(-50%, -50%) translate(var(--swipe-x), var(--swipe-y)); transition: transform .14s cubic-bezier(.2,.8,.2,1), opacity .14s ease, border-color .14s ease; touch-action: none; }
.swipe-ball:not(:disabled):active, .swipe-ball.is-dragging { cursor: grabbing; border-color: var(--coral); transition: none; }
.swipe-ball:disabled { cursor: default; }
.swipe-ball span { position: absolute; left: 50%; bottom: -28px; color: var(--coral); font: 950 9px/1 monospace; letter-spacing: .12em; white-space: nowrap; transform: translateX(-50%); }
.swipe-ball.is-shot { opacity: .27; transition-duration: .31s; }
.swipe-message { position: absolute; z-index: 5; left: 50%; bottom: 3.5%; min-width: min(86%, 360px); margin: 0; padding: 10px 15px; color: #2b0d09; background: var(--coral); text-align: center; font: 950 10px/1.25 monospace; letter-spacing: .08em; transform: translateX(-50%) skewX(-5deg); box-shadow: 6px 6px 0 rgba(255,103,92,.13); }
.swipe-message.is-correct { color: #061008; background: var(--lime); }
.swipe-message.is-wrong { color: #fff; background: #e63861; }
.swipe-stage .start-cover b { color: var(--coral); }
.swipe-stage .start-cover button { background: var(--coral); }

.accuracy-stage { background: radial-gradient(circle at 50% 43%, rgba(106,255,201,.15), transparent 38%), linear-gradient(180deg, #071c25 0 34%, #0a4b2a 35% 100%); }
.accuracy-timer > span { color: #7dc8ae; }
.accuracy-timer > div { border-color: rgba(106,255,201,.25); }
.accuracy-timer i { background: linear-gradient(90deg, #e63861, var(--yellow), var(--mint)); box-shadow: 0 0 13px rgba(106,255,201,.3); }
.accuracy-timer strong { color: var(--mint); }
.accuracy-goal { position: absolute; z-index: 2; left: 50%; top: 14%; width: min(82%, 650px); height: auto; aspect-ratio: 5 / 3; overflow: hidden; border: 7px solid #eefaf5; border-bottom-width: 9px; background-color: rgba(3,22,16,.51); background-image: linear-gradient(rgba(255,255,255,.16) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.16) 1px, transparent 1px); background-size: 27px 27px; box-shadow: inset 0 0 47px rgba(0,0,0,.37), 0 12px 26px rgba(0,0,0,.32); transform: translateX(-50%); touch-action: none; }
.accuracy-goal::after { content: "RAIENS · PRECIZITĀTE"; position: absolute; left: 50%; bottom: 7px; color: rgba(255,255,255,.3); font: 900 8px/1 monospace; letter-spacing: .13em; white-space: nowrap; transform: translateX(-50%); }
.accuracy-target { position: absolute; z-index: 3; left: 50%; top: 50%; width: 32%; height: auto; aspect-ratio: 1; display: grid; place-items: center; border: clamp(5px, .9vw, 8px) solid var(--coral); border-radius: 50%; color: #06130e; background: var(--mint); box-shadow: 0 0 0 clamp(6px, 1vw, 10px) rgba(106,255,201,.14), 0 0 31px rgba(106,255,201,.24); transform: translate(-50%, -50%); transition: color .16s ease, background .16s ease, border-color .16s ease, transform .16s ease; pointer-events: none; }
.accuracy-target::before { content: ""; position: absolute; left: 50%; top: 50%; width: 62.5%; aspect-ratio: 1; border: clamp(3px, .5vw, 4px) solid rgba(255,103,92,.75); border-radius: 50%; transform: translate(-50%, -50%); }
.accuracy-target i { width: 31.25%; aspect-ratio: 1; border-radius: 50%; background: var(--coral); }
.accuracy-target b { position: absolute; right: -13px; top: -14px; padding: 5px 6px; color: #06130e; background: var(--mint); font: 950 9px/1 monospace; box-shadow: 3px 3px 0 rgba(0,0,0,.22); }
.accuracy-target.is-bullseye { border-color: #fff; background: var(--lime); transform: translate(-50%, -50%) scale(1.13); }
.accuracy-target.is-hit { border-color: var(--yellow); background: #fff3a5; }
.accuracy-target.is-edge { color: #2b0d09; background: var(--coral); border-color: #fff; }
.accuracy-target.is-miss { color: #fff; background: #e63861; border-color: #ff9aaf; }
.accuracy-crosshair { position: absolute; z-index: 4; left: 50%; top: 50%; width: 27px; height: 27px; border: 2px solid #fff; border-radius: 50%; opacity: 0; transform: translate(-50%, -50%); pointer-events: none; }
.accuracy-crosshair::before, .accuracy-crosshair::after { content: ""; position: absolute; left: 50%; top: 50%; background: #fff; transform: translate(-50%, -50%); }
.accuracy-crosshair::before { width: 39px; height: 2px; }
.accuracy-crosshair::after { width: 2px; height: 39px; }
.accuracy-crosshair.is-visible { opacity: 1; }
.accuracy-aim-line { position: absolute; z-index: 5; left: 50%; top: 82%; width: 0; height: 3px; opacity: 0; background: linear-gradient(90deg, var(--mint), rgba(106,255,201,.12)); transform-origin: left center; pointer-events: none; }
.accuracy-aim-line.is-visible { opacity: 1; }
.accuracy-ball { --accuracy-x: 0px; --accuracy-y: 0px; position: absolute; z-index: 6; left: 50%; top: 82%; width: 88px; height: 88px; padding: 0; border: 4px solid rgba(106,255,201,.45); border-radius: 50%; background: rgba(4,22,15,.66); font-size: 67px; line-height: 1; cursor: grab; filter: drop-shadow(0 14px 8px rgba(0,0,0,.46)); transform: translate(-50%, -50%) translate(var(--accuracy-x), var(--accuracy-y)); transition: transform .42s cubic-bezier(.2,.8,.2,1), opacity .18s ease, border-color .18s ease; touch-action: none; }
.accuracy-ball:not(:disabled):active, .accuracy-ball.is-dragging { cursor: grabbing; border-color: var(--mint); }
.accuracy-ball:disabled { cursor: default; }
.accuracy-ball span { position: absolute; left: 50%; bottom: -27px; color: var(--mint); font: 950 8px/1 monospace; letter-spacing: .1em; white-space: nowrap; transform: translateX(-50%); }
.accuracy-ball.is-shot { opacity: .5; }
.accuracy-message { position: absolute; z-index: 7; left: 50%; bottom: 2.7%; min-width: min(88%, 390px); margin: 0; padding: 10px 15px; color: #06130e; background: var(--mint); text-align: center; font: 950 10px/1.25 monospace; letter-spacing: .08em; transform: translateX(-50%) skewX(-5deg); box-shadow: 6px 6px 0 rgba(106,255,201,.13); }
.accuracy-message.is-bullseye { background: var(--lime); }
.accuracy-message.is-hit { background: var(--yellow); }
.accuracy-message.is-miss { color: #fff; background: #e63861; }
.accuracy-stage .start-cover b { color: var(--mint); }
.accuracy-stage .start-cover button { background: var(--mint); }

.mapconnect-stage { position: relative; min-height: 600px; padding: 18px 20px 20px; overflow: hidden; display: grid; grid-template-rows: auto auto minmax(280px, 1fr) auto; gap: 10px; touch-action: manipulation; user-select: none; background: radial-gradient(circle at 50% 42%, rgba(100,215,255,.14), transparent 46%), linear-gradient(145deg, #061d29, #04100c); }
.mapconnect-speed { height: 29px; display: grid; grid-template-columns: auto 1fr 60px; align-items: center; gap: 10px; }
.mapconnect-speed > span { color: #85c8e0; font: 900 8px/1 monospace; letter-spacing: .12em; }
.mapconnect-speed > div { height: 8px; overflow: hidden; border: 1px solid rgba(100,215,255,.28); background: rgba(0,0,0,.4); }
.mapconnect-speed i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, #e63861, var(--yellow), var(--lime)); box-shadow: 0 0 13px rgba(100,215,255,.4); }
.mapconnect-speed strong { color: var(--mapblue); font: 950 11px/1 monospace; text-align: right; }
.mapconnect-route { min-height: 76px; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; gap: 8px; padding: 7px; border: 1px solid rgba(100,215,255,.2); background: rgba(0,0,0,.23); }
.mapconnect-country-chip { min-width: 0; min-height: 60px; padding: 7px 9px; display: grid; grid-template-columns: 43px minmax(0, 1fr); align-items: center; gap: 9px; border: 1px solid rgba(100,215,255,.13); background: rgba(100,215,255,.035); transition: border-color .18s ease, background .18s ease, box-shadow .18s ease; }
.mapconnect-country-chip > span { width: 43px; height: 43px; display: grid; place-items: center; border: 1px solid rgba(100,215,255,.35); border-radius: 50%; background: rgba(100,215,255,.08); font-size: 25px; }
.mapconnect-country-chip div { min-width: 0; }
.mapconnect-country-chip small { display: block; margin-bottom: 5px; color: #79a9b8; font: 900 6px/1 monospace; letter-spacing: .12em; }
.mapconnect-country-chip b { display: block; overflow: hidden; color: #f0faf5; font: 950 clamp(12px, 2vw, 18px)/1 monospace; letter-spacing: -.03em; text-overflow: ellipsis; white-space: nowrap; }
.mapconnect-country-chip.is-active { border-color: var(--lime); background: rgba(141,255,31,.12); box-shadow: inset 0 0 20px rgba(141,255,31,.08), 0 0 0 2px rgba(141,255,31,.06); }
.mapconnect-country-chip.is-active small { color: var(--lime); }
.mapconnect-route > i { align-self: center; padding: 8px 9px; color: #061008; background: var(--lime); font: 950 8px/1 monospace; letter-spacing: .08em; white-space: nowrap; transform: skewX(-5deg); }
.mapconnect-map-wrap { position: relative; min-height: 0; overflow: hidden; isolation: isolate; overscroll-behavior: contain; border: 1px solid rgba(100,215,255,.3); background: #061b28; box-shadow: inset 0 0 32px rgba(0,0,0,.35), 7px 7px 0 rgba(100,215,255,.07); }
.mapconnect-map-wrap::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 45px rgba(0,0,0,.48); }
.mapconnect-svg { display: block; width: 100%; height: 100%; min-height: 0; cursor: crosshair; touch-action: none; outline: 0; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.mapconnect-svg:focus-visible { box-shadow: inset 0 0 0 2px var(--mapblue); }
.mapconnect-ocean { fill: url("#mapConnectOcean"); }
.mapconnect-grid { fill: url("#mapConnectGrid"); }
.mapconnect-land { fill: rgba(73,126,103,.68); stroke: rgba(184,235,209,.36); stroke-width: 1; vector-effect: non-scaling-stroke; transition: fill .15s ease; }
.mapconnect-country-state { display: none; stroke-width: 2.5; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 4px rgba(141,255,31,.48)); pointer-events: none; }
.mapconnect-country-state.is-visible { display: block; }
.mapconnect-country-state.is-active { fill: rgba(141,255,31,.54); stroke: #dfffbe; }
.mapconnect-country-state.is-target { fill: rgba(100,215,255,.48); stroke: #c5f1ff; }
.mapconnect-country-state.is-wrong { fill: rgba(255,79,115,.58); stroke: #ffd0da; }
.mapconnect-link-line { display: none; fill: none; stroke: var(--lime); stroke-width: 4; stroke-linecap: round; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 4px rgba(141,255,31,.58)); pointer-events: none; }
.mapconnect-link-line.is-visible { display: block; }
.mapconnect-link-line.is-dragging { stroke-dasharray: 8 6; animation: mapConnectDash .55s linear infinite; }
.mapconnect-link-line.is-correct { stroke: var(--lime); stroke-width: 5; }
.mapconnect-link-line.is-wrong { stroke: #ff4f73; stroke-width: 5; }
.mapconnect-completed-line { fill: none; stroke: #64d7ff; stroke-width: 2; stroke-linecap: round; opacity: .34; vector-effect: non-scaling-stroke; pointer-events: none; }
.mapconnect-active-marker { display: none; fill: #061008; stroke: var(--lime); stroke-width: 4; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 4px rgba(141,255,31,.68)); pointer-events: none; }
.mapconnect-active-marker.is-visible { display: block; animation: mapConnectPulse 1s ease-in-out infinite; }
.mapconnect-view-tools { position: absolute; z-index: 4; top: 7px; right: 7px; left: 7px; display: flex; align-items: center; justify-content: space-between; gap: 8px; pointer-events: none; }
.mapconnect-view-tools span { min-height: 27px; padding: 7px 9px; color: rgba(225,248,255,.82); background: rgba(2,12,15,.72); border: 1px solid rgba(100,215,255,.2); font: 900 7px/1 monospace; letter-spacing: .08em; backdrop-filter: blur(6px); }
.mapconnect-view-tools b { color: var(--mapblue); font-size: 9px; }
.mapconnect-view-tools > div { display: flex; gap: 4px; pointer-events: auto; }
.mapconnect-view-tools button { width: 31px; height: 31px; padding: 0; display: grid; place-items: center; border: 1px solid rgba(100,215,255,.42); color: #061008; background: var(--mapblue); font: 950 18px/1 monospace; cursor: pointer; pointer-events: auto; box-shadow: 3px 3px 0 rgba(100,215,255,.14); }
.mapconnect-view-tools button:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 rgba(100,215,255,.14); }
.mapconnect-watermark { position: absolute; z-index: 2; right: 9px; bottom: 7px; color: rgba(255,255,255,.3); font: 900 7px/1 monospace; letter-spacing: .12em; pointer-events: none; }
.mapconnect-message { min-height: 38px; margin: 0; padding: 9px 14px; display: grid; place-items: center; color: #061008; background: var(--mapblue); text-align: center; font: 950 9px/1.25 monospace; letter-spacing: .07em; transform: skewX(-4deg); box-shadow: 5px 5px 0 rgba(100,215,255,.1); }
.mapconnect-message.is-correct { background: var(--lime); }
.mapconnect-message.is-wrong { color: #fff; background: #e63861; }
.mapconnect-stage .start-cover b { color: var(--mapblue); }
.mapconnect-stage .start-cover button { background: var(--mapblue); }
@keyframes mapConnectDash { to { stroke-dashoffset: -14; } }
@keyframes mapConnectPulse { 50% { opacity: .48; } }

.toast { position: fixed; z-index: 150; left: 50%; bottom: 27px; padding: 13px 18px; color: #061008; background: var(--lime); font: 950 11px/1 monospace; letter-spacing: .1em; transform: translate(-50%, 120px); opacity: 0; transition: .3s ease; box-shadow: 7px 7px 0 rgba(141,255,31,.15); }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast.is-error { color: #fff; background: #d82f54; box-shadow: 7px 7px 0 rgba(216,47,84,.2); }

.record-fireworks {
  position: fixed;
  z-index: 1000;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  isolation: isolate;
  contain: strict;
}
.record-fireworks::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background:
    radial-gradient(circle at 12% 22%, rgba(141,255,31,.24), transparent 14%),
    radial-gradient(circle at 50% 18%, rgba(100,215,255,.22), transparent 16%),
    radial-gradient(circle at 86% 28%, rgba(255,103,92,.22), transparent 15%),
    radial-gradient(circle at 38% 73%, rgba(199,131,255,.2), transparent 16%),
    radial-gradient(circle at 78% 76%, rgba(255,181,38,.2), transparent 17%);
  mix-blend-mode: screen;
  animation: record-fireworks-screen-flash 1.05s ease-out both;
}
.record-firework-burst {
  position: absolute;
  left: var(--record-firework-left);
  top: var(--record-firework-top);
  width: 1px;
  height: 1px;
  display: block;
}
.record-firework-core,
.record-firework-spark {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  pointer-events: none;
}
.record-firework-core {
  width: clamp(7px, 1.1vmin, 13px);
  height: clamp(7px, 1.1vmin, 13px);
  border: 2px solid rgba(255,255,255,.95);
  border-radius: 50%;
  background: #fff;
  opacity: 0;
  box-shadow:
    0 0 8px #fff,
    0 0 18px rgba(255,243,106,.95),
    0 0 34px rgba(100,215,255,.7);
  transform: translate(-50%, -50%) scale(.2);
  animation: record-firework-core-pop .72s ease-out both;
  animation-delay: var(--record-firework-burst-delay);
}
.record-firework-spark {
  width: clamp(4px, .56vmin, 7px);
  height: clamp(4px, .56vmin, 7px);
  border-radius: 50%;
  background: var(--record-firework-color);
  opacity: 0;
  box-shadow:
    0 0 6px var(--record-firework-color),
    0 0 15px var(--record-firework-color);
  transform: translate(-50%, -50%) scale(.2);
  will-change: transform, opacity;
  animation: record-firework-spark-flight 1.42s cubic-bezier(.12,.72,.22,1) both;
  animation-delay:
    calc(var(--record-firework-burst-delay) + var(--record-firework-spark-delay));
}

@keyframes record-fireworks-screen-flash {
  0% { opacity: 0; }
  12% { opacity: .8; }
  36% { opacity: .18; }
  58% { opacity: .42; }
  100% { opacity: 0; }
}
@keyframes record-firework-core-pop {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.1); }
  16% { opacity: 1; transform: translate(-50%, -50%) scale(1.5); }
  50% { opacity: .82; transform: translate(-50%, -50%) scale(.75); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(2.4); }
}
@keyframes record-firework-spark-flight {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(.15);
  }
  10% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.25);
  }
  66% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform:
      translate(
        calc(-50% + var(--record-firework-x)),
        calc(-50% + var(--record-firework-y) + 2.5vmin)
      )
      scale(.18);
  }
}

.record-fireworks.is-reduced-motion {
  border: clamp(4px, .8vmin, 10px) solid rgba(255,243,106,.9);
  background:
    linear-gradient(90deg, #8dff1f, #64d7ff, #c783ff, #ff675c, #ffb526)
      top / 100% clamp(5px, .9vmin, 11px) no-repeat,
    linear-gradient(90deg, #ffb526, #ff675c, #c783ff, #64d7ff, #8dff1f)
      bottom / 100% clamp(5px, .9vmin, 11px) no-repeat;
  box-shadow:
    inset 0 0 42px rgba(100,215,255,.25),
    inset 0 0 88px rgba(199,131,255,.16);
}
.record-fireworks.is-reduced-motion::before,
.record-fireworks.is-reduced-motion .record-firework-core,
.record-fireworks.is-reduced-motion .record-firework-spark {
  animation: none;
}
.record-fireworks.is-reduced-motion::before {
  opacity: .45;
}
.record-fireworks.is-reduced-motion .record-firework-core {
  opacity: .85;
  transform: translate(-50%, -50%) scale(.72);
}
.record-fireworks.is-reduced-motion .record-firework-spark {
  opacity: .72;
  transform:
    translate(
      calc(-50% + var(--record-firework-static-x)),
      calc(-50% + var(--record-firework-static-y))
    )
    scale(.74);
}

.mobile-game-nav { display: none; }
@keyframes orbit { 50% { transform: translate(22px, -30px) rotate(100deg); } }
@keyframes ballSpin { to { transform: rotate(360deg); } }
@keyframes clickPop { 50% { transform: scale(.84) rotate(8deg); } }

@media (max-width: 900px) {
  .games-header-actions nav { display: none; }
  .account-pill { min-width: 165px; }
  .arcade-hero { min-height: 700px; height: auto; align-items: flex-start; padding-top: 130px; }
  .arcade-copy { width: 100%; }
  .xp-dock { right: 4%; left: 4%; bottom: 40px; width: auto; }
  .game-category-filter { display: flex; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: rgba(141,255,31,.55) rgba(255,255,255,.05); -webkit-overflow-scrolling: touch; }
  .game-category-filter button { min-width: max-content; flex: 0 0 auto; scroll-snap-align: start; padding-inline: 15px; }
  .game-select-grid { grid-template-columns: 1fr; }
  .select-card { min-height: 405px; }
  .badges { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 600px) {
  .games-page { padding-bottom: 73px; }
  .games-topbar { padding: 0 14px; }
  .games-topbar .brand-name { display: none; }
  .account-pill { min-width: 156px; height: 46px; padding-left: 51px; }
  .account-pill > span { width: 32px; height: 32px; }
  .account-pill small { font-size: 6px; }
  .arcade-hero { min-height: 680px; padding: 105px 18px 180px; }
  .arcade-copy h1 { margin-bottom: 20px; font-size: 18vw; }
  .arcade-copy > p:not(.hero-kicker) { font-size: 15px; }
  .arcade-copy .button { width: 100%; }
  .game-start-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; margin-top: 12px; }
  .game-start-steps span { min-height: 49px; padding: 5px 3px; flex-direction: column; justify-content: center; gap: 3px; font-size: 8px; text-align: center; }
  .game-start-steps b { width: 18px; height: 18px; font-size: 9px; }
  .xp-dock { bottom: 27px; padding: 15px; }
  .xp-dock strong { font-size: 29px; }
  .games-section { width: calc(100% - 36px); padding: 88px 0; }
  .games-heading { display: block; }
  .games-counter { margin-top: 24px; }
  .games-login-callout { margin-top: 27px; padding: 18px; grid-template-columns: auto 1fr; gap: 15px; }
  .games-login-shield { width: 59px; height: 59px; }
  .games-login-callout > a { grid-column: 1 / -1; width: 100%; }
  .game-library-tools { margin-top: 28px; padding: 9px; grid-template-columns: 1fr; gap: 8px; }
  .game-search-field { min-height: 56px; }
  .game-search-field input { height: 54px; font-size: 16px; letter-spacing: .06em; }
  .game-view-toggle { min-height: 56px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .game-view-toggle button { min-width: 0; padding: 0 7px; font-size: 9px; }
  .games-filter-status { padding: 2px 3px 0; }
  .game-select-grid { margin-top: 16px; }
  .select-card { min-height: 385px; padding: 25px; }
  .card-top { align-items: flex-start; gap: 8px; }
  .card-top > b { max-width: 58%; padding: 7px 8px; }
  .card-id { gap: 7px; }
  .game-favorite-toggle { width: 44px; height: 44px; flex-basis: 44px; }
  .game-favorite-toggle span { font-size: 23px; }
  .games-empty-state { min-height: 240px; padding: 32px 18px; }
  .select-icon { top: 65px; right: 25px; transform: scale(.8); transform-origin: top right; }
  .flag-cloud { right: 10px; transform: scale(.78); transform-origin: top right; }
  .player-preview { right: 17px; transform: rotate(4deg) scale(.8); transform-origin: top right; }
  .catch-preview { right: 17px; transform: scale(.8); transform-origin: top right; }
  .outline-preview, .penalty-preview, .memory-preview, .worldcup-preview, .swipe-preview, .accuracy-preview, .mapconnect-preview { right: 15px; transform: scale(.78); transform-origin: top right; }
  .select-card h3 { font-size: 34px; }
  .badges { grid-template-columns: repeat(2, 1fr); gap: 7px; }
  .badges > div { min-height: 130px; padding: 20px 9px; }
  .game-modal { padding: 0; }
  .modal-window { width: 100%; height: 100svh; max-height: none; border: 0; box-shadow: none; }
  .modal-head { min-height: 76px; padding: 12px 15px 12px 20px; }
  .modal-head h2 { font-size: 23px; }
  .modal-close { width: 45px; height: 45px; }
  .login-gate { padding: 0; }
  .login-gate-card { width: 100%; max-height: 100svh; min-height: 100svh; padding: 55px 20px 28px; display: flex; flex-direction: column; justify-content: center; border: 0; border-top: 5px solid var(--lime); box-shadow: none; }
  .login-gate-card h2 { font-size: clamp(47px, 16vw, 72px); }
  .login-gate-benefits { grid-template-columns: 1fr; margin: 20px 0; }
  .login-gate-benefits span { min-height: 37px; }
  .clicker-stage, .catch-stage { height: calc(100svh - 145px); min-height: 420px; }
  .quiz-stage { min-height: calc(100svh - 145px); padding: 30px 20px; }
  .player-quiz-stage { min-height: calc(100svh - 145px); padding: 24px 20px; }
  .outline-stage { min-height: calc(100svh - 145px); padding: 16px 14px 24px; }
  .outline-map { height: min(33svh, 250px); }
  .outline-options { gap: 7px; }
  .outline-options button { min-height: 46px; padding: 7px; font-size: 10px; }
  .penalty-stage { height: calc(100svh - 145px); min-height: 500px; }
  .penalty-goal { top: 20%; width: 88%; height: 41%; border-width: 5px; }
  .penalty-keeper { width: 64px; height: 75px; font-size: 55px; }
  .penalty-ball { bottom: 12%; font-size: 54px; }
  .penalty-message { bottom: 3%; min-width: 205px; font-size: 9px; }
  .memory-stage { min-height: calc(100svh - 145px); padding: 22px 14px; }
  .memory-grid { gap: 7px; }
  .memory-card { height: min(18svh, 112px); }
  .memory-card-front { font-size: 38px; }
  .worldcup-stage { min-height: calc(100svh - 145px); padding: 15px 13px 22px; }
  .worldcup-speed { grid-template-columns: auto 1fr 49px; gap: 7px; margin-bottom: 9px; }
  .worldcup-speed > span { font-size: 7px; }
  .worldcup-visual { height: min(23svh, 170px); margin-bottom: 9px; }
  .worldcup-visual::after { inset: 10px; }
  .worldcup-stage h3 { min-height: 45px; margin: 7px auto 11px; font-size: clamp(19px, 6vw, 27px); }
  .worldcup-options { gap: 6px; }
  .worldcup-options button { min-height: 46px; padding: 7px; font-size: 10px; }
  .worldcup-feedback { min-height: 62px; margin-top: 8px; font-size: 9px; }
  .swipe-stage, .accuracy-stage, .mapconnect-stage { height: calc(100svh - 145px); min-height: 500px; }
  .mapconnect-stage { padding: 10px 12px 12px; }
  .mapconnect-route { min-height: 64px; gap: 5px; padding: 5px; }
  .mapconnect-country-chip { min-height: 52px; grid-template-columns: 34px minmax(0, 1fr); gap: 6px; padding: 5px 6px; }
  .mapconnect-country-chip > span { width: 34px; height: 34px; font-size: 20px; }
  .mapconnect-country-chip small { margin-bottom: 4px; font-size: 5px; }
  .mapconnect-country-chip b { font-size: clamp(8px, 2.6vw, 11px); }
  .mapconnect-route > i { padding: 6px; font-size: 6px; }
  .mapconnect-view-tools span { min-height: 25px; padding: 6px 8px; font-size: 6px; }
  .mapconnect-view-tools button { width: 29px; height: 29px; }
  .mapconnect-message { font-size: 8px; }
  .gesture-timer { top: 12px; width: calc(100% - 24px); grid-template-columns: auto 1fr 49px; gap: 7px; }
  .gesture-timer > span { font-size: 7px; }
  .swipe-field { inset: 48px 0 0; }
  .swipe-target { width: 83px; min-height: 56px; padding: 5px; }
  .swipe-target b { font-size: 25px; }
  .swipe-target small { font-size: 6px; }
  .swipe-target-up { top: 4%; }
  .swipe-target-right { right: 3%; }
  .swipe-target-down { bottom: 15%; }
  .swipe-target-left { left: 3%; }
  .swipe-ball { width: 82px; height: 82px; font-size: 60px; }
  .swipe-message { bottom: 3%; font-size: 9px; }
  .accuracy-goal { top: 14%; width: 91%; height: auto; border-width: 5px; border-bottom-width: 7px; }
  .accuracy-target { box-shadow: 0 0 0 7px rgba(106,255,201,.14), 0 0 24px rgba(106,255,201,.22); }
  .accuracy-ball { top: 82%; width: 80px; height: 80px; font-size: 59px; }
  .accuracy-aim-line { top: 82%; }
  .accuracy-message { bottom: 2.5%; font-size: 9px; }
  .mega-ball { width: 230px; height: 230px; font-size: 151px; }
  .mobile-game-nav { position: fixed; z-index: 60; inset: auto 0 0; height: 69px; padding-bottom: env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(141,255,31,.22); background: rgba(3,12,8,.96); backdrop-filter: blur(16px); }
  .mobile-game-nav a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: #718279; }
  .mobile-game-nav a.active { color: var(--lime); background: rgba(141,255,31,.055); }
  .mobile-game-nav b { font-size: 18px; }
  .mobile-game-nav span { max-width: 70px; overflow: hidden; font: 850 7px/1 monospace; letter-spacing: .06em; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-game-nav i { right: 17px; top: 8px; }
}
@media (max-width: 760px), (max-height: 600px) and (pointer: coarse) {
  .game-modal[data-active-game="mapconnect"] { overflow: hidden; overscroll-behavior: none; }
  .game-modal[data-active-game="mapconnect"] .modal-window { min-height: 0; max-height: none; display: grid; grid-template-rows: auto minmax(0, 1fr); overflow: hidden; }
  .game-panel[data-game-panel="mapconnect"]:not([hidden]) { min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); overflow: hidden; }
  .mapconnect-stage {
    height: auto;
    min-height: 0;
    align-self: stretch;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    gap: clamp(6px, 1.2dvh, 10px);
    padding: clamp(8px, 1.5dvh, 12px) 12px;
  }
  .mapconnect-speed { min-height: 24px; height: auto; }
  .mapconnect-map-wrap { min-height: 0; height: auto; margin: 0; align-self: stretch; }
  .mapconnect-svg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
  .mapconnect-message { min-height: 34px; padding: 8px 10px; }
}
@media (max-height: 600px) and (pointer: coarse) {
  .game-modal[data-active-game="mapconnect"] .modal-head { min-height: 54px; padding: 7px 13px 7px 18px; }
  .game-modal[data-active-game="mapconnect"] .modal-head small { display: none; }
  .game-modal[data-active-game="mapconnect"] .modal-head h2 { margin: 0; font-size: 21px; }
  .game-modal[data-active-game="mapconnect"] .modal-close { width: 40px; height: 40px; }
  .game-panel[data-game-panel="mapconnect"] .mini-hud { height: 48px; padding: 0 18px; }
  .game-panel[data-game-panel="mapconnect"] .mini-hud strong { font-size: 20px; }
  .mapconnect-stage { gap: 5px; padding: 6px 10px; }
  .mapconnect-speed { min-height: 20px; }
  .mapconnect-route { min-height: 48px; padding: 4px; }
  .mapconnect-country-chip { min-height: 40px; grid-template-columns: 32px minmax(0, 1fr); gap: 6px; padding: 4px 6px; }
  .mapconnect-country-chip > span { width: 32px; height: 32px; font-size: 19px; }
  .mapconnect-country-chip small { margin-bottom: 3px; font-size: 5px; }
  .mapconnect-country-chip b { font-size: 11px; }
  .mapconnect-message { min-height: 30px; padding: 6px 10px; font-size: 8px; }
}
@media (min-width: 761px) and (max-height: 600px) and (pointer: coarse) {
  .game-modal[data-active-game="mapconnect"] { padding: 6px; }
  .game-modal[data-active-game="mapconnect"] .modal-window { height: calc(100dvh - 12px); }
}
@media (prefers-reduced-motion: reduce) {
  .orbit-ball, .select-icon span { animation: none; }
  .game-search-field, .game-view-toggle button, .game-category-filter button, .game-favorite-toggle, .games-empty-state button { transition: none; }
  .mapconnect-active-marker, .mapconnect-link-line { animation: none; }
  .memory-card-inner, .penalty-ball, .penalty-keeper, .worldcup-speed-track i, .swipe-ball, .swipe-target, .accuracy-ball, .accuracy-target { transition-duration: .01ms; }
  .record-fireworks,
  .record-fireworks::before,
  .record-firework-core,
  .record-firework-spark {
    animation: none !important;
    transition: none !important;
  }
}
