:root {
  color-scheme: dark;
  --ink: #071126;
  --ink-2: #0d1b39;
  --panel: rgba(16, 32, 66, 0.78);
  --white: #f7f9ff;
  --muted: #9daac4;
  --line: rgba(255, 255, 255, 0.1);
  --blue: #4bb2d8;
  --blue-dark: #3c5a79;
  --violet: #8766ff;
  --gold: #f1ae56;
  --brown: #c99967;
  --success: #64dcab;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--white);
  background:
    radial-gradient(circle at 88% 2%, rgba(75, 178, 216, 0.13), transparent 28rem),
    radial-gradient(circle at 12% 32%, rgba(135, 102, 255, 0.09), transparent 26rem),
    var(--ink);
  font-family: Montserrat, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}
body[data-play-theme="aurora"] { --blue: #43e8c2; --violet: #4bb2d8; --success: #9bffd9; }
body[data-play-theme="violet"] { --blue: #b36dff; --violet: #ff64d5; --success: #75efd1; }
body[data-play-theme="solar"] { --blue: #ffb84d; --violet: #ff647f; --success: #ffe28c; }
body[data-play-theme="spectrum"] { --blue: #71ffd8; --violet: #ffe06a; --success: #9eff9a; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
svg { width: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.ambient { position: fixed; width: 26rem; height: 26rem; border-radius: 50%; filter: blur(110px); pointer-events: none; opacity: .12; z-index: -1; }
.ambient-one { background: var(--blue); top: -12rem; right: -8rem; }
.ambient-two { background: var(--violet); top: 45%; left: -15rem; }

.topbar {
  width: min(1180px, calc(100% - 48px));
  height: 88px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 20;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 12px; transform: rotate(8deg);
  background: linear-gradient(145deg, var(--blue), var(--violet));
  box-shadow: 0 0 18px rgba(75, 178, 216, .48), 0 0 38px rgba(135, 102, 255, .2), inset 0 1px 0 rgba(255,255,255,.28);
}
.brand-mark span { transform: rotate(-8deg); font-family: Impact, "Arial Black", sans-serif; font-size: 24px; letter-spacing: -1px; }
.brand-copy { display: grid; line-height: 1.06; }
.brand-copy strong { font-family: Impact, "Arial Black", sans-serif; letter-spacing: .06em; font-size: 1rem; font-weight: 800; }
.brand-copy small { color: var(--blue); letter-spacing: .16em; font-size: .58rem; font-weight: 800; margin-top: 4px; }
.top-actions { display: flex; gap: 10px; align-items: center; }
.top-pass-button {
  height: 42px; padding: 0 15px; border-radius: 13px; cursor: pointer;
  border: 1px solid rgba(75,178,216,.28); color: #dff8ff;
  background: linear-gradient(135deg, rgba(75,178,216,.17), rgba(135,102,255,.14));
  font-size: .7rem; font-weight: 900; letter-spacing: .04em; transition: .2s ease;
}
.top-pass-button span { color: #f1c66b; margin-right: 4px; }
.top-pass-button:hover { transform: translateY(-1px); border-color: rgba(75,178,216,.55); }
.top-pass-button.active { color: #081126; background: linear-gradient(135deg, #f1c66b, #f0a34d); border-color: transparent; }
.icon-button, .profile-button {
  border: 1px solid var(--line); background: rgba(255,255,255,.04); cursor: pointer;
  width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center;
  transition: .2s ease;
}
.icon-button:hover { background: rgba(255,255,255,.1); transform: translateY(-1px); }
.install-button { color: var(--success); border-color: rgba(100,220,171,.3); box-shadow: 0 0 16px rgba(100,220,171,.08); }
.profile-button { position: relative; background: linear-gradient(145deg, var(--blue), var(--violet)); color: #071126; font-size: .72rem; font-weight: 950; box-shadow: 0 0 18px rgba(75,178,216,.24); }
.profile-button::before { content: "NIV"; position: absolute; top: 5px; font-size: .37rem; letter-spacing: .08em; }
.profile-button span { margin-top: 7px; }
.resume-strip { width: min(920px,calc(100% - 48px)); min-height: 72px; margin: 8px auto 18px; padding: 11px 12px 11px 15px; display: grid; grid-template-columns: auto minmax(0,1fr) auto auto; align-items: center; gap: 14px; border: 1px solid rgba(100,220,171,.28); border-radius: 19px; background: linear-gradient(135deg,rgba(100,220,171,.09),rgba(75,178,216,.08)); box-shadow: 0 18px 50px rgba(0,0,0,.17),inset 0 1px 0 rgba(255,255,255,.05); }
.resume-strip[hidden] { display: none; }
.resume-strip-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; color: #071126; background: linear-gradient(145deg,var(--success),var(--blue)); box-shadow: 0 0 20px rgba(100,220,171,.22); font-size: 1.1rem; }
.resume-strip > div { min-width: 0; display: grid; }
.resume-strip small { color: var(--success); font-size: .65rem; font-weight: 900; letter-spacing: .13em; }
.resume-strip strong { overflow: hidden; font-size: .88rem; text-overflow: ellipsis; white-space: nowrap; }
.resume-strip p { margin: 1px 0 0; color: #7f8fa8; font-size: .72rem; }
.resume-strip .primary-button { min-height: 42px; padding: 0 16px; font-size: .75rem; }
main { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.hero {
  min-height: 610px; display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 40px; align-items: center; padding: 62px 0 90px;
}
.eyebrow, .section-kicker { color: var(--blue); font-weight: 800; font-size: .72rem; letter-spacing: .16em; }
.eyebrow { display: flex; align-items: center; gap: 10px; }
.eyebrow span { width: 22px; height: 2px; background: var(--blue); box-shadow: 0 0 12px var(--blue); }
h1, h2, h3 { margin: 0; font-family: Impact, "Arial Black", sans-serif; text-transform: uppercase; font-weight: 800; letter-spacing: .015em; line-height: .98; }
h1 { margin-top: 22px; font-size: clamp(4.2rem, 8vw, 7.4rem); max-width: 670px; }
h1 em { color: transparent; -webkit-text-stroke: 1.5px var(--blue); font-style: normal; text-shadow: 0 0 32px rgba(75,178,216,.22); }
.hero-copy > p { color: #b9c4d8; max-width: 555px; font-size: 1.06rem; margin: 26px 0 30px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.primary-button, .secondary-button {
  min-height: 50px; padding: 0 20px; border-radius: 14px; font-weight: 800; font-size: .88rem;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.primary-button { background: linear-gradient(135deg, var(--blue), #687af6); color: #fff; box-shadow: 0 14px 34px rgba(75,178,216,.22); }
.primary-button:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(75,178,216,.32); }
.secondary-button { background: rgba(255,255,255,.05); border-color: var(--line); color: #d9e2f3; }
.secondary-button:hover { background: rgba(255,255,255,.1); }
.hero-proof { display: flex; flex-wrap: wrap; list-style: none; padding: 0; margin: 30px 0 0; gap: 22px; color: #8998b2; font-size: .74rem; font-weight: 700; }
.hero-proof span { color: var(--success); margin-right: 4px; }

.hero-visual { position: relative; min-height: 480px; display: grid; place-items: center; }
.hero-visual::before { content: ""; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(75,178,216,.24), rgba(135,102,255,.08) 54%, transparent 70%); filter: blur(10px); }
.orbit { position: absolute; border: 1px solid rgba(100,185,231,.18); border-radius: 50%; transform: rotate(-20deg); }
.orbit-one { width: 470px; height: 260px; }
.orbit-two { width: 360px; height: 450px; transform: rotate(35deg); border-color: rgba(135,102,255,.15); }
.console {
  position: absolute; width: 340px; height: 220px; border-radius: 60px;
  background: linear-gradient(150deg, #263c66 0%, #172541 52%, #0d1830 100%);
  box-shadow: 0 38px 90px #020817, inset 0 2px 0 rgba(255,255,255,.18), inset 0 -10px 18px rgba(0,0,0,.26);
  transform: rotate(-8deg); border: 1px solid rgba(255,255,255,.12);
}
.console::after { content: ""; position: absolute; inset: 15px; border-radius: 48px; border: 1px solid rgba(255,255,255,.05); pointer-events: none; }
.console-screen { position: absolute; left: 92px; top: 40px; width: 158px; height: 104px; border-radius: 15px; background: #070f22; border: 7px solid #101c35; box-shadow: inset 0 0 30px rgba(75,178,216,.18); display: grid; place-items: center; overflow: hidden; }
.console-screen strong { font-family: Impact, sans-serif; font-size: 2.2rem; letter-spacing: .08em; color: #7cd8f2; text-shadow: 0 0 20px #4bb2d8; z-index: 1; }
.pixel { position: absolute; width: 9px; height: 9px; background: #8069f6; box-shadow: 0 0 10px #8069f6; }
.pixel-a { left: 16px; top: 18px; } .pixel-b { right: 22px; top: 28px; background: var(--gold); }
.pixel-c { left: 34px; bottom: 20px; background: var(--success); } .pixel-d { right: 14px; bottom: 14px; }
.dpad { position: absolute; left: 35px; bottom: 48px; width: 48px; height: 48px; }
.dpad i { position: absolute; background: #0b1429; border-radius: 6px; box-shadow: inset 0 2px 3px rgba(255,255,255,.1); }
.dpad i:first-child { width: 48px; height: 17px; top: 15px; }
.dpad i:last-child { height: 48px; width: 17px; left: 15px; }
.console-buttons { position: absolute; right: 35px; bottom: 55px; transform: rotate(-24deg); display: flex; gap: 12px; }
.console-buttons i { width: 25px; height: 25px; border-radius: 50%; background: linear-gradient(145deg, #a871fd, #5e5de2); box-shadow: inset 0 2px 4px rgba(255,255,255,.25), 0 5px 12px rgba(0,0,0,.3); }
.floating-symbol { position: absolute; display: grid; place-items: center; font-weight: 900; text-shadow: 0 0 18px currentColor; animation: float 4s ease-in-out infinite; }
.symbol-one { color: var(--blue); font-size: 2.6rem; top: 50px; right: 38px; }
.symbol-two { color: var(--violet); font-size: 1.8rem; left: 15px; top: 165px; animation-delay: -1.2s; }
.symbol-three { color: var(--gold); font-size: 2rem; right: 34px; bottom: 75px; animation-delay: -2s; }
@keyframes float { 50% { transform: translateY(-13px) rotate(8deg); } }

.quick-section, .catalogue-section, .progression-section, .studio-section, .editorial-section { padding: 80px 0; scroll-margin-top: 24px; }
.quick-section { border-top: 1px solid var(--line); }
.progression-section { padding-top: 0; }
.progression-spotlight { position: relative; min-height: 210px; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 28px; padding: 34px; overflow: hidden; border: 1px solid rgba(75,178,216,.26); border-radius: 28px; background: radial-gradient(circle at 85% 20%, rgba(135,102,255,.2), transparent 24rem), linear-gradient(145deg, rgba(24,49,91,.94), rgba(12,26,54,.96)); box-shadow: inset 0 0 40px rgba(75,178,216,.04), 0 20px 55px rgba(0,0,0,.2); }
.progression-spotlight::after { content: "XP"; position: absolute; right: 9%; top: -42px; color: rgba(255,255,255,.025); font: 900 11rem/1 Impact,sans-serif; transform: rotate(-8deg); pointer-events: none; }
.level-orb, .dialog-level-orb { flex: 0 0 auto; display: grid; place-items: center; align-content: center; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: radial-gradient(circle at 32% 26%, rgba(255,255,255,.22), transparent 32%), linear-gradient(145deg,var(--blue),var(--violet)); color: #fff; box-shadow: 0 0 0 9px rgba(75,178,216,.06), 0 0 36px rgba(75,178,216,.25); }
.level-orb { width: 112px; height: 112px; }
.level-orb span, .dialog-level-orb span { font-size: .58rem; font-weight: 900; letter-spacing: .13em; }
.level-orb strong, .dialog-level-orb strong { font-family: Impact,"Arial Black",sans-serif; font-size: 3rem; line-height: .9; }
.progression-intro { position: relative; z-index: 1; max-width: 650px; }
.progression-intro h2 { margin-top: 8px; font-size: clamp(1.8rem,4vw,3rem); }
.progression-intro p { max-width: 680px; margin: 10px 0 18px; color: #b3c1d8; font-size: .9rem; }
.xp-track { height: 8px; overflow: hidden; border-radius: 99px; background: rgba(3,9,23,.58); box-shadow: inset 0 1px 4px rgba(0,0,0,.5); }
.xp-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--blue),var(--violet)); box-shadow: 0 0 16px var(--blue); transition: width .35s ease; }
.xp-caption { display: flex; justify-content: space-between; margin-top: 7px; color: #7f91ac; font-size: .72rem; }
.xp-caption strong { color: #dce8f8; }
.progression-open { position: relative; z-index: 1; min-height: 48px; padding: 0 17px; border: 1px solid rgba(255,255,255,.14); border-radius: 14px; background: rgba(255,255,255,.07); color: #fff; font-size: .78rem; font-weight: 850; white-space: nowrap; cursor: pointer; }
.progression-open span { margin-left: 8px; color: var(--blue); }
.progression-glance { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-top: 12px; }
.progression-glance article { min-height: 104px; display: flex; align-items: center; gap: 14px; padding: 17px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.03); }
.glance-icon { flex: 0 0 auto; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; color: var(--blue); background: rgba(75,178,216,.1); font-size: 1.2rem; text-shadow: 0 0 14px currentColor; }
.progression-glance div { min-width: 0; display: grid; }
.progression-glance small { color: var(--blue); font-size: .58rem; font-weight: 900; letter-spacing: .1em; }
.progression-glance strong { margin-top: 2px; font-size: .88rem; }
.progression-glance p { margin: 2px 0 0; overflow: hidden; color: #7f8fa8; font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-heading h2 { font-size: clamp(2.3rem, 5vw, 4rem); margin-top: 8px; }
.section-heading p { margin: 10px 0 0; color: var(--muted); font-size: .9rem; }
.compact-heading h2 { font-size: 2.4rem; }
.text-button { background: none; border: 0; color: var(--blue); font-weight: 800; font-size: .8rem; cursor: pointer; padding: 10px; }
.text-button span { font-size: 1.1rem; padding-left: 5px; }
.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.quick-card { position: relative; min-height: 160px; overflow: hidden; border-radius: 22px; padding: 22px; border: 1px solid color-mix(in srgb, var(--neon-a, #4bb2d8) 48%, transparent); cursor: pointer; color: #fff; background: #142448; text-align: left; box-shadow: 0 14px 34px rgba(0,0,0,.2), inset 0 0 25px rgba(var(--neon-rgb, 75,178,216),.12); transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease; }
.quick-card:hover { transform: translateY(-4px); border-color: var(--neon-a, #4bb2d8); box-shadow: 0 17px 40px rgba(0,0,0,.28), 0 0 25px rgba(var(--neon-rgb, 75,178,216),.2); }
.quick-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(4,11,27,.42), rgba(4,11,27,.04)), linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: auto, 28px 28px, 28px 28px; }
.quick-card .game-symbol { position: absolute; right: 15px; bottom: -16px; font-size: 7rem; filter: drop-shadow(0 0 10px var(--neon-a, #4bb2d8)) drop-shadow(0 0 28px rgba(var(--neon-rgb, 75,178,216),.55)) drop-shadow(0 18px 20px rgba(0,0,0,.38)); transform: rotate(-8deg); opacity: .96; }
.quick-card-content { position: relative; z-index: 1; display: flex; height: 116px; flex-direction: column; justify-content: space-between; align-items: flex-start; }
.quick-card small { font-size: .63rem; letter-spacing: .13em; font-weight: 800; opacity: .72; }
.quick-card strong { font-family: Impact, "Arial Black", sans-serif; text-transform: uppercase; font-size: 1.55rem; letter-spacing: .03em; max-width: 62%; }
.play-pill { display: inline-flex; align-items: center; gap: 6px; color: #fff; background: rgba(var(--neon-rgb, 75,178,216),.16); border: 1px solid color-mix(in srgb, var(--neon-a, #4bb2d8) 48%, transparent); border-radius: 99px; padding: 6px 10px; font-size: .66rem; font-weight: 800; backdrop-filter: blur(8px); box-shadow: 0 0 12px rgba(var(--neon-rgb, 75,178,216),.12); }

.catalogue-section { padding-top: 84px; }
.sort-control { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .76rem; }
.sort-control select { color: #dde6f6; background: #101e3c; border: 1px solid var(--line); border-radius: 10px; padding: 9px 32px 9px 11px; }
.catalogue-tools { display: grid; gap: 15px; margin-bottom: 30px; }
.search-box { height: 54px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.04); display: flex; align-items: center; padding: 0 16px; transition: border-color .2s, background .2s; }
.search-box:focus-within { border-color: rgba(75,178,216,.65); background: rgba(75,178,216,.06); }
.search-box svg { color: var(--muted); flex: 0 0 auto; }
.search-box input { flex: 1; height: 100%; border: 0; outline: 0; color: #fff; background: transparent; padding: 0 13px; }
.search-box input::placeholder { color: #73819b; }
.search-box kbd { color: #667590; border: 1px solid var(--line); background: #0b1730; border-radius: 6px; padding: 3px 7px; font-size: .68rem; }
.filter-scroll { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chip { border: 1px solid var(--line); background: rgba(255,255,255,.035); border-radius: 99px; padding: 9px 15px; font-size: .75rem; color: #aebbd0; cursor: pointer; font-weight: 700; transition: .2s; }
.filter-chip:hover { background: rgba(255,255,255,.08); color: #fff; }
.filter-chip.active { color: #071126; background: var(--blue); border-color: var(--blue); }
.filter-chip span { opacity: .65; margin-left: 3px; }
.game-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.game-card { border-radius: 20px; background: rgba(15, 29, 58, .76); border: 1px solid rgba(255,255,255,.09); overflow: hidden; position: relative; box-shadow: 0 12px 30px rgba(0,0,0,.18); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; content-visibility: auto; contain-intrinsic-size: 280px; }
.game-card:hover { transform: translateY(-6px); border-color: rgba(75,178,216,.52); box-shadow: 0 22px 48px rgba(0,0,0,.28), 0 0 22px rgba(75,178,216,.12); }
.game-card.game-maintenance { opacity: .72; }
.game-card.game-maintenance .card-cover, .game-card.game-maintenance .card-open { cursor: not-allowed; }
.maintenance-badge { color: #ffd58f !important; border-color: rgba(255,191,89,.42) !important; background: rgba(88,56,12,.78) !important; box-shadow: 0 0 14px rgba(255,191,89,.22) !important; }
.card-cover { position: relative; aspect-ratio: 1.35; display: grid; place-items: center; overflow: hidden; cursor: pointer; border: 0; width: 100%; color: inherit; isolation: isolate; }
.card-cover::before, .dialog-cover::before { content: ""; position: absolute; width: 73%; aspect-ratio: 1; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--neon-a, #4bb2d8) 55%, transparent); box-shadow: 0 0 14px rgba(var(--neon-rgb, 75,178,216),.42), 0 0 0 30px rgba(var(--neon-rgb, 75,178,216),.045), 0 0 0 64px rgba(var(--neon-rgb, 75,178,216),.022); }
.card-cover::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 45%, rgba(2,7,20,.4)), linear-gradient(rgba(var(--neon-rgb, 75,178,216),.08) 1px, transparent 1px), linear-gradient(90deg, rgba(var(--neon-rgb, 75,178,216),.08) 1px, transparent 1px); background-size: auto, 25px 25px, 25px 25px; transform: perspective(280px) rotateX(8deg) scale(1.1); }
.game-symbol { font-size: 4.4rem; position: relative; z-index: 1; color: #fff; text-shadow: 0 0 8px #fff, 0 0 18px var(--neon-a, #4bb2d8), 0 0 38px var(--neon-a, #4bb2d8); filter: drop-shadow(0 13px 15px rgba(0,0,0,.38)); transition: transform .25s, filter .25s; }
.game-card:hover .game-symbol { transform: scale(1.1) rotate(-4deg); filter: drop-shadow(0 0 14px var(--neon-a, #4bb2d8)) drop-shadow(0 13px 15px rgba(0,0,0,.38)); }
.new-badge { position: absolute; left: 12px; top: 12px; z-index: 2; color: #dffbff; background: rgba(6,14,32,.7); border: 1px solid var(--neon-a, #4bb2d8); border-radius: 7px; padding: 4px 7px; font-size: .56rem; font-weight: 900; letter-spacing: .08em; box-shadow: 0 0 12px rgba(var(--neon-rgb, 75,178,216),.4), inset 0 0 8px rgba(var(--neon-rgb, 75,178,216),.12); backdrop-filter: blur(8px); }
.favorite-button { position: absolute; right: 11px; top: 11px; z-index: 3; border: 1px solid rgba(255,255,255,.2); background: rgba(4,11,27,.35); width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(8px); }
.favorite-button svg { width: 16px; }
.favorite-button.active svg, .favorite-large.active svg { fill: #ff7d9e; stroke: #ff7d9e; }
.game-card-content { padding: 15px 16px 17px; }
.game-category { display: flex; align-items: center; justify-content: space-between; color: var(--blue); font-size: .61rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.game-category span:last-child { color: #71809c; letter-spacing: .03em; }
.game-card h3 { font-family: inherit; text-transform: none; font-size: 1rem; letter-spacing: 0; line-height: 1.3; margin-top: 7px; }
.game-card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; color: #76849d; font-size: .68rem; }
.card-open { color: #ced9ec; font-weight: 800; background: none; border: 0; cursor: pointer; padding: 5px 0; }
.card-open span { color: var(--blue); padding-left: 3px; }
.empty-state { text-align: center; border: 1px dashed var(--line); border-radius: 24px; padding: 55px 20px; background: rgba(255,255,255,.02); }
.empty-state > span { font-size: 3rem; color: var(--blue); }
.empty-state h3 { font-size: 1.4rem; margin-top: 12px; }
.empty-state p { color: var(--muted); margin: 8px 0 20px; }
.ad-catalogue-card {
  min-width: 0; min-height: 275px; border-radius: 20px; padding: 20px; overflow: hidden; position: relative;
  border: 1px dashed rgba(241,174,86,.38); color: #f8e9d3;
  background: linear-gradient(145deg, rgba(201,153,103,.14), rgba(135,102,255,.1));
  display: flex; flex-direction: column; justify-content: space-between;
}
.ad-catalogue-card::after { content: "AD"; position: absolute; right: -8px; bottom: -38px; font-family: Impact, sans-serif; font-size: 8rem; color: rgba(255,255,255,.035); transform: rotate(-8deg); }
.ad-label { min-width: 0; max-width: 100%; font-size: .56rem; font-weight: 900; letter-spacing: .14em; color: var(--gold); overflow-wrap: anywhere; }
.ad-catalogue-card > div { min-width: 0; max-width: 100%; }
.ad-catalogue-card h3 {
  max-width: 100%; margin-right: 0; position: relative; z-index: 1;
  font-size: clamp(1rem, 1.8vw, 1.35rem); line-height: 1.06;
  overflow-wrap: anywhere; word-break: normal; hyphens: auto;
}
.ad-catalogue-card p { margin: 9px 0 16px; color: #aa9eaa; font-size: .72rem; position: relative; z-index: 1; }
.ad-catalogue-card button, .ad-catalogue-card a { align-self: flex-start; position: relative; z-index: 1; border: 0; background: none; color: var(--gold); padding: 0; font-size: .68rem; font-weight: 900; cursor: pointer; text-decoration: none; }

.studio-section { border-top: 1px solid var(--line); }
.studio-section[hidden] { display: none; }
.editorial-section { border-top: 1px solid var(--line); }
.editorial-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.editorial-grid a { min-width: 0; min-height: 230px; display: flex; flex-direction: column; padding: 24px; overflow: hidden; border: 1px solid rgba(75,178,216,.18); border-radius: 22px; color: #eef7ff; background: radial-gradient(circle at 100% 0,rgba(135,102,255,.15),transparent 13rem),rgba(15,31,61,.66); text-decoration: none; transition: transform .2s,border-color .2s; }
.editorial-grid a:hover { transform: translateY(-3px); border-color: rgba(75,178,216,.46); }
.editorial-grid span { color: var(--blue); font-size: .65rem; font-weight: 900; letter-spacing: .16em; }
.editorial-grid strong { margin-top: 22px; font-family: Impact,"Arial Black",sans-serif; font-size: 1.45rem; line-height: 1.05; text-transform: uppercase; }
.editorial-grid p { margin: 12px 0 20px; color: #899bb6; font-size: .75rem; line-height: 1.55; }
.editorial-grid b { margin-top: auto; color: #bdeeff; font-size: .69rem; }
.studio-heading { align-items: center; }
.studio-heading > div { max-width: 760px; }
.studio-profile-link { flex: 0 0 auto; padding: 0 18px; white-space: nowrap; }
.studio-profile-link span { margin-left: 7px; }
.studio-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.studio-card { min-height: 290px; position: relative; display: flex; flex-direction: column; overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-radius: 22px; background: linear-gradient(160deg,rgba(var(--studio-rgb),.14),rgba(9,19,42,.92) 48%); box-shadow: inset 0 1px 0 rgba(255,255,255,.045),0 18px 44px rgba(0,0,0,.17); transition: transform .2s,border-color .2s,box-shadow .2s; }
.studio-card:hover { transform: translateY(-4px); border-color: rgba(var(--studio-rgb),.48); box-shadow: 0 22px 50px rgba(0,0,0,.24),0 0 30px rgba(var(--studio-rgb),.11); }
.studio-card-visual { min-height: 136px; position: relative; display: grid; place-items: center; overflow: hidden; border-bottom: 1px solid rgba(255,255,255,.08); background: radial-gradient(circle,rgba(var(--studio-rgb),.24),transparent 58%); }
.studio-card-visual::before { content:""; position:absolute; width:100px; height:100px; border:1px solid rgba(var(--studio-rgb),.45); border-radius:28px; transform:rotate(12deg); box-shadow:0 0 24px rgba(var(--studio-rgb),.25),0 0 0 26px rgba(var(--studio-rgb),.035); }
.studio-card-icon { position: relative; z-index: 1; color: #fff; font-size: 3.2rem; text-shadow: 0 0 22px rgba(var(--studio-rgb),.8); }
.studio-platform { position: absolute; left: 12px; top: 12px; z-index: 2; padding: 5px 8px; border: 1px solid rgba(var(--studio-rgb),.38); border-radius: 99px; color: rgb(var(--studio-rgb)); background: rgba(4,11,27,.72); font-size: .62rem; font-weight: 900; letter-spacing: .08em; }
.studio-card-content { flex: 1; display: flex; flex-direction: column; padding: 16px; }
.studio-card-content small { color: rgb(var(--studio-rgb)); font-size: .68rem; font-weight: 850; }
.studio-card-content h3 { margin-top: 7px; font-size: 1.35rem; }
.studio-card-content p { margin: 8px 0 15px; color: #8796ae; font-size: .76rem; }
.studio-card-cta { margin-top: auto; display: flex; align-items: center; justify-content: space-between; color: #dceeff; font-size: .72rem; font-weight: 850; }
.studio-card-cta span { color: rgb(var(--studio-rgb)); font-size: 1rem; }
.ad-policy-card { margin-top: 18px; padding: 24px; display: grid; grid-template-columns: minmax(240px,1.1fr) 1.7fr auto; align-items: center; gap: 24px; border: 1px solid rgba(241,174,86,.22); border-radius: 24px; background: radial-gradient(circle at 0 50%,rgba(241,174,86,.095),transparent 20rem),rgba(255,255,255,.022); }
.ad-policy-intro { display: flex; align-items: center; gap: 15px; }
.ad-policy-mark { width: 52px; height: 52px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid rgba(241,174,86,.32); border-radius: 16px; color: var(--gold); background: rgba(241,174,86,.075); box-shadow: 0 0 22px rgba(241,174,86,.1); font-size: 1.35rem; }
.ad-policy-card h3 { margin-top: 6px; font-size: 1.45rem; }
.ad-policy-card ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 9px 18px; }
.ad-policy-card li { display: grid; gap: 1px; }
.ad-policy-card li strong { color: #f7d5a8; font-size: .75rem; }
.ad-policy-card li span { color: #7e8da5; font-size: .69rem; }
.ad-policy-actions { display: grid; gap: 7px; justify-items: stretch; text-align: center; }
.ad-policy-actions .secondary-button { min-width: 170px; }
.ad-policy-actions small { color: #66758d; font-size: .59rem; }

.theme-0 { --neon-a:#4bc8ff; --neon-b:#725cff; --neon-rgb:75,200,255; background: radial-gradient(circle at 72% 26%, rgba(75,200,255,.34), transparent 38%), linear-gradient(145deg, #172967, #090f2b); }
.theme-1 { --neon-a:#ff648e; --neon-b:#ff8b4b; --neon-rgb:255,100,142; background: radial-gradient(circle at 72% 26%, rgba(255,100,142,.34), transparent 38%), linear-gradient(145deg, #67183f, #1c0b28); }
.theme-2 { --neon-a:#a06cff; --neon-b:#5f70ff; --neon-rgb:160,108,255; background: radial-gradient(circle at 72% 26%, rgba(160,108,255,.36), transparent 38%), linear-gradient(145deg, #341a75, #100a2b); }
.theme-3 { --neon-a:#26e3e8; --neon-b:#4bb2d8; --neon-rgb:38,227,232; background: radial-gradient(circle at 72% 26%, rgba(38,227,232,.3), transparent 38%), linear-gradient(145deg, #0b5366, #071a2f); }
.theme-4 { --neon-a:#ffad47; --neon-b:#ff5c6c; --neon-rgb:255,173,71; background: radial-gradient(circle at 72% 26%, rgba(255,173,71,.34), transparent 38%), linear-gradient(145deg, #713723, #251024); }
.theme-5 { --neon-a:#64efb7; --neon-b:#2bd5cf; --neon-rgb:100,239,183; background: radial-gradient(circle at 72% 26%, rgba(100,239,183,.34), transparent 38%), linear-gradient(145deg, #145548, #071c2c); }
.theme-6 { --neon-a:#9d7bff; --neon-b:#5d9cff; --neon-rgb:157,123,255; background: radial-gradient(circle at 72% 26%, rgba(157,123,255,.34), transparent 38%), linear-gradient(145deg, #3b2c79, #11132f); }
.theme-7 { --neon-a:#ff64d5; --neon-b:#9f6cff; --neon-rgb:255,100,213; background: radial-gradient(circle at 72% 26%, rgba(255,100,213,.33), transparent 38%), linear-gradient(145deg, #6a1f68, #210d35); }
.theme-8 { --neon-a:#55a8ff; --neon-b:#36ddff; --neon-rgb:85,168,255; background: radial-gradient(circle at 72% 26%, rgba(85,168,255,.34), transparent 38%), linear-gradient(145deg, #164a78, #081a35); }
.theme-9 { --neon-a:#ffe06a; --neon-b:#ff9f43; --neon-rgb:255,224,106; background: radial-gradient(circle at 72% 26%, rgba(255,224,106,.3), transparent 38%), linear-gradient(145deg, #66531b, #251a18); }

footer { width: min(1180px, calc(100% - 48px)); margin: 30px auto 0; min-height: 160px; padding: 40px 0 100px; border-top: 1px solid var(--line); display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 22px 30px; color: #6f7e98; font-size: .72rem; }
footer > p { margin: 0; text-align: center; }
footer > span { text-align: right; }
.legal-links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: center; gap: 7px 17px; }
.legal-links a, .legal-links button { min-height: 36px; display: inline-flex; align-items: center; border: 0; color: #91a2bd; background: none; cursor: pointer; font: inherit; text-decoration: underline; text-decoration-color: rgba(145,162,189,.4); text-underline-offset: 4px; }
.legal-links a:hover, .legal-links button:hover { color: #dff7ff; text-decoration-color: var(--blue); }
.footer-brand { color: #fff; }
.footer-brand .brand-mark { width: 36px; height: 36px; border-radius: 10px; }
.footer-brand .brand-copy small { color: #7b8aa5; }
.mobile-nav { display: none; }

.game-dialog { width: min(880px, calc(100% - 32px)); padding: 0; border: 1px solid rgba(255,255,255,.16); border-radius: 26px; color: #fff; background: #0d1b36; box-shadow: var(--shadow); overflow: hidden; grid-template-columns: .85fr 1.15fr; }
.game-dialog[open] { display: grid; animation: dialogIn .2s ease-out; }
.game-dialog::backdrop { background: rgba(2, 7, 19, .78); backdrop-filter: blur(7px); }
@keyframes dialogIn { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.dialog-close { position: absolute; right: 13px; top: 13px; z-index: 3; background: rgba(7,17,38,.55); backdrop-filter: blur(8px); font-size: 1.6rem; line-height: 1; }
.dialog-cover { min-height: 430px; position: relative; display: grid; place-items: center; overflow: hidden; }
.dialog-cover-icon { position: relative; z-index: 1; font-size: 8rem; filter: drop-shadow(0 24px 22px rgba(0,0,0,.3)); }
.dialog-badge { position: absolute; left: 20px; bottom: 18px; z-index: 2; font-size: .62rem; letter-spacing: .12em; font-weight: 900; opacity: .8; }
.dialog-content { padding: 50px 40px 36px; }
.dialog-meta { display: flex; gap: 8px; color: var(--blue); font-size: .69rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.dialog-content h2 { font-size: 3.1rem; margin: 12px 0 18px; }
.dialog-content > p { color: #abb8cd; font-size: .9rem; }
.dialog-stats { margin: 26px 0; padding: 17px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.dialog-stats div { display: grid; gap: 2px; }
.dialog-stats strong { font-size: .82rem; }
.dialog-stats span { color: #73819a; font-size: .64rem; }
.dialog-actions { display: flex; gap: 10px; }
.dialog-actions .primary-button { flex: 1; border: 0; }
.dialog-actions .primary-button svg { fill: currentColor; stroke: none; width: 18px; }
.favorite-large { width: 52px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.05); cursor: pointer; display: grid; place-items: center; }
.dialog-guide { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; margin-top: 16px; }
.dialog-guide > div { min-width: 0; padding: 12px 13px; border: 1px solid rgba(255,255,255,.09); border-radius: 13px; background: rgba(255,255,255,.025); }
.dialog-guide strong { display: block; margin-bottom: 4px; color: #dff7ff; font-size: .65rem; letter-spacing: .09em; text-transform: uppercase; }
.dialog-guide p { margin: 0 !important; color: #9eafc5 !important; font-size: .68rem !important; line-height: 1.5; }
.game-support-note { display: flex; align-items: flex-start; gap: 8px; margin-top: 18px; font-size: .68rem !important; color: #74829a !important; }
.game-support-note span { flex: 0 0 auto; width: 16px; height: 16px; display: grid; place-items: center; color: var(--blue); border: 1px solid var(--blue); border-radius: 50%; font-size: .58rem; font-weight: 900; }

.progression-dialog { width: min(980px,calc(100% - 32px)); max-height: min(92dvh,850px); padding: 34px; overflow-y: auto; border: 1px solid rgba(255,255,255,.16); border-radius: 28px; color: #fff; background: radial-gradient(circle at 86% 0,rgba(75,178,216,.13),transparent 28rem),#0b1831; box-shadow: var(--shadow); }
.progression-dialog[open] { animation: dialogIn .2s ease-out; }
.progression-dialog::backdrop { background: rgba(2,7,19,.82); backdrop-filter: blur(8px); }
.progression-dialog-header { display: flex; align-items: center; gap: 22px; padding: 4px 42px 25px 2px; }
.dialog-level-orb { width: 82px; height: 82px; }
.dialog-level-orb strong { font-size: 2.4rem; }
.progression-dialog-header h2 { margin-top: 5px; font-size: 2.7rem; }
.progression-dialog-header p { margin: 5px 0 0; color: #92a2bb; font-size: .82rem; }
.progression-tabs { display: flex; gap: 7px; padding: 5px; border: 1px solid var(--line); border-radius: 15px; background: rgba(3,10,25,.45); }
.progression-tabs button { min-height: 42px; flex: 1; border: 0; border-radius: 11px; color: #8190a9; background: transparent; font-size: .78rem; font-weight: 850; cursor: pointer; }
.progression-tabs button.active { color: #081126; background: linear-gradient(135deg,var(--blue),#7484ff); box-shadow: 0 8px 22px rgba(75,178,216,.2); }
.progress-panel { padding-top: 22px; }
.rhythm-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px; border: 1px solid rgba(75,178,216,.22); border-radius: 19px; background: linear-gradient(145deg,rgba(75,178,216,.08),rgba(135,102,255,.06)); }
.rhythm-card strong { display: block; margin-top: 5px; font-size: 1.05rem; }
.rhythm-card p { max-width: 520px; margin: 4px 0 0; color: #8797b0; font-size: .78rem; }
.rhythm-week { display: flex; gap: 6px; }
.rhythm-day { width: 31px; display: grid; justify-items: center; gap: 5px; color: #64738c; font-size: .62rem; font-weight: 850; }
.rhythm-day i { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.025); font-style: normal; }
.rhythm-day.played { color: var(--success); }
.rhythm-day.played i { color: #071126; border-color: transparent; background: var(--success); box-shadow: 0 0 14px rgba(100,220,171,.3); }
.mission-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 22px; }
.panel-heading { min-height: 38px; display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.panel-heading h3 { margin-top: 4px; font-size: 1.45rem; }
.panel-heading > span { color: #8695ad; font-size: .72rem; font-weight: 800; }
.mission-list { display: grid; gap: 9px; }
.mission-card { padding: 14px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.028); }
.mission-card.complete { border-color: rgba(100,220,171,.25); background: rgba(100,220,171,.045); }
.mission-card-top { display: flex; justify-content: space-between; gap: 14px; }
.mission-card strong { font-size: .8rem; }
.mission-card p { margin: 3px 0 0; color: #7f8ea7; font-size: .72rem; }
.mission-reward { flex: 0 0 auto; color: var(--gold); font-size: .68rem; font-weight: 900; }
.mission-progress { height: 5px; margin-top: 11px; overflow: hidden; border-radius: 99px; background: rgba(0,0,0,.3); }
.mission-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--blue),var(--violet)); }
.mission-meta { display: flex; justify-content: space-between; margin-top: 5px; color: #65758e; font-size: .61rem; }
.mission-card.complete .mission-meta span:last-child { color: var(--success); }
.badge-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.badge-card { min-height: 148px; display: grid; align-content: start; justify-items: center; padding: 17px 12px; border: 1px solid var(--line); border-radius: 17px; text-align: center; background: rgba(255,255,255,.028); }
.badge-card.locked { filter: grayscale(1); opacity: .42; }
.badge-icon { width: 47px; height: 47px; display: grid; place-items: center; margin-bottom: 10px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; color: #071126; background: linear-gradient(145deg,var(--gold),#fff0a5); box-shadow: 0 0 20px rgba(241,174,86,.19); font-size: 1.12rem; font-weight: 900; }
.badge-card strong { font-size: .76rem; }
.badge-card p { margin: 4px 0 0; color: #7b8aa3; font-size: .66rem; }
.theme-heading { margin-top: 26px; }
.theme-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 9px; }
.theme-card { min-height: 98px; display: grid; align-content: space-between; padding: 12px; border: 1px solid var(--line); border-radius: 15px; color: #dbe6f6; background: rgba(255,255,255,.025); text-align: left; cursor: pointer; }
.theme-card.selected { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue),0 0 18px rgba(75,178,216,.13); }
.theme-card.locked { opacity: .45; cursor: not-allowed; }
.theme-swatches { display: flex; }
.theme-swatches i { width: 25px; height: 25px; border: 2px solid #0b1831; border-radius: 50%; }
.theme-swatches i + i { margin-left: -8px; }
.theme-card strong { font-size: .72rem; }
.theme-card small { color: #73839d; font-size: .62rem; }
.stats-summary { display: grid; grid-template-columns: repeat(4,1fr); gap: 9px; margin-bottom: 24px; }
.stats-summary article { padding: 15px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.028); }
.stats-summary strong { display: block; font-family: Impact,"Arial Black",sans-serif; font-size: 1.55rem; }
.stats-summary span { color: #7e8ea7; font-size: .65rem; font-weight: 800; }
.game-stats-list { display: grid; gap: 7px; max-height: 330px; overflow-y: auto; padding-right: 4px; }
.empty-progress { min-height: 190px; display: grid; place-items: center; align-content: center; padding: 25px; border: 1px dashed var(--line); border-radius: 16px; text-align: center; }
.empty-progress > span { color: var(--blue); font-size: 1.6rem; text-shadow: 0 0 17px currentColor; }
.empty-progress strong { margin-top: 7px; font-size: .88rem; }
.empty-progress p { margin: 4px 0 0; color: #75859e; font-size: .72rem; }
.game-stat-row { display: grid; grid-template-columns: minmax(0,1fr) repeat(3,90px); align-items: center; gap: 9px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.025); }
.game-stat-name { min-width: 0; display: flex; align-items: center; gap: 10px; }
.game-stat-name i { width: 33px; height: 33px; display: grid; place-items: center; border-radius: 10px; background: rgba(75,178,216,.09); font-style: normal; }
.game-stat-name strong { overflow: hidden; font-size: .76rem; text-overflow: ellipsis; white-space: nowrap; }
.game-stat-row > span { display: grid; color: #d8e2f2; font-size: .72rem; font-weight: 800; text-align: right; }
.game-stat-row small { color: #667690; font-size: .57rem; font-weight: 700; }
.fair-play-note { display: flex; justify-content: center; gap: 8px; margin: 22px 0 0; color: #71819a; font-size: .68rem; text-align: center; }
.fair-play-note span { color: var(--blue); }

.membership-dialog {
  width: min(900px, calc(100% - 32px)); max-height: min(92dvh, 780px); overflow-y: auto;
  padding: 40px; border: 1px solid rgba(255,255,255,.16); border-radius: 28px;
  color: #fff; background: radial-gradient(circle at 80% 0, rgba(75,178,216,.12), transparent 30rem), #0d1b36;
  box-shadow: var(--shadow);
}
.membership-dialog[open] { animation: dialogIn .2s ease-out; }
.membership-dialog::backdrop { background: rgba(2, 7, 19, .8); backdrop-filter: blur(7px); }
.membership-header { text-align: center; max-width: 650px; margin: 0 auto 28px; }
.membership-logo { width: 48px; height: 48px; display: grid; place-items: center; margin: 0 auto 12px; border-radius: 15px; background: linear-gradient(145deg, var(--blue), var(--violet)); box-shadow: 0 13px 32px rgba(75,178,216,.25); font-size: 1.2rem; }
.membership-header h2 { margin: 10px 0 12px; font-size: clamp(2.1rem, 5vw, 3.25rem); }
.membership-header p { margin: 0; color: var(--muted); font-size: .86rem; }
.plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.plan-card { border: 1px solid var(--line); border-radius: 22px; background: rgba(255,255,255,.035); padding: 24px; position: relative; }
.plan-card.active-plan { box-shadow: inset 0 0 0 1px var(--success); }
.featured-plan { border-color: rgba(75,178,216,.42); background: linear-gradient(145deg, rgba(75,178,216,.1), rgba(135,102,255,.08)); }
.recommended-badge { position: absolute; right: 17px; top: -10px; border-radius: 99px; padding: 5px 9px; color: #071126; background: var(--blue); font-size: .54rem; font-weight: 900; letter-spacing: .09em; }
.plan-name { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.plan-name > span { color: var(--blue); font-size: .65rem; font-weight: 900; letter-spacing: .12em; }
.plan-name strong { text-align: right; font-size: 1.05rem; }
.plan-name small { display: block; color: #7f8ca4; font-size: .55rem; font-weight: 700; }
.plan-card > p { margin: 10px 0 18px; color: #8593aa; font-size: .72rem; }
.plan-card ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; }
.plan-card li { color: #c8d2e4; font-size: .74rem; }
.plan-card li span { color: var(--success); margin-right: 7px; font-weight: 900; }
.plan-card li.limited { color: #8c98ad; }
.plan-card li.limited span { color: var(--gold); }
.plan-button, .plan-cta { min-height: 46px; width: 100%; border-radius: 13px; }
.plan-button { border: 1px solid var(--line); background: rgba(255,255,255,.045); color: #8693a8; font-size: .73rem; font-weight: 800; }
.plan-button:not(.current-plan) { cursor: pointer; color: #dbe4f3; }
.ad-preview-button { display: block; width: 100%; margin-top: 11px; border: 0; background: none; color: var(--gold); cursor: pointer; font-size: .65rem; font-weight: 800; }
.membership-disclaimer { display: flex; justify-content: center; align-items: center; gap: 7px; color: #68768e; font-size: .63rem; margin: 22px 0 0; text-align: center; }
.membership-disclaimer span { width: 16px; height: 16px; display: grid; place-items: center; border: 1px solid #68768e; border-radius: 50%; font-size: .55rem; }

.settings-dialog, .install-dialog, .tutorial-dialog, .feedback-dialog {
  width: min(560px, calc(100% - 32px)); max-height: 92dvh; padding: 34px; overflow-y: auto; border: 1px solid rgba(255,255,255,.16);
  border-radius: 26px; color: #fff; background: radial-gradient(circle at 90% 0,rgba(75,178,216,.14),transparent 18rem),#0d1b36;
  box-shadow: var(--shadow);
}
.feedback-dialog { width: min(680px,calc(100% - 32px)); }
.settings-dialog[open], .install-dialog[open], .tutorial-dialog[open], .feedback-dialog[open] { animation: dialogIn .2s ease-out; }
.settings-dialog::backdrop, .install-dialog::backdrop, .tutorial-dialog::backdrop, .feedback-dialog::backdrop { background: rgba(2,7,19,.82); backdrop-filter: blur(8px); }
.settings-dialog h2, .install-dialog h2, .feedback-dialog h2 { margin-top: 7px; font-size: 2.45rem; }
.settings-intro, .install-dialog p { margin: 9px 40px 23px 0; color: #8d9bb2; font-size: .78rem; }
.settings-list { display: grid; gap: 8px; }
.setting-row { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.028); cursor: pointer; }
.setting-row > span { display: grid; gap: 3px; }
.setting-row strong { font-size: .8rem; }
.setting-row small, .settings-pwa small { color: #7787a0; font-size: .67rem; }
.setting-row input[type="checkbox"] { appearance: none; flex: 0 0 auto; width: 46px; height: 26px; padding: 3px; border: 1px solid rgba(255,255,255,.18); border-radius: 99px; background: #101a31; cursor: pointer; transition: .2s; }
.setting-row input[type="checkbox"]::before { content: ""; display: block; width: 18px; height: 18px; border-radius: 50%; background: #8793a8; transition: transform .2s, background .2s; }
.setting-row input[type="checkbox"]:checked { border-color: var(--blue); background: rgba(75,178,216,.18); }
.setting-row input[type="checkbox"]:checked::before { transform: translateX(20px); background: var(--blue); box-shadow: 0 0 10px var(--blue); }
.volume-setting { align-items: flex-start; }
.volume-control { width: 180px; display: grid; grid-template-columns: minmax(0,1fr) 42px; align-items: center; gap: 9px; }
.volume-control input[type="range"] { width: 100%; height: 24px; margin: 0; border: 0; appearance: none; background: transparent; cursor: pointer; }
.volume-control input[type="range"]::before { display: none; }
.volume-control input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 99px; background: linear-gradient(90deg,var(--blue),var(--violet)); box-shadow: 0 0 10px rgba(75,178,216,.22); }
.volume-control input[type="range"]::-webkit-slider-thumb { width: 17px; height: 17px; margin-top: -5.5px; border: 2px solid #dff8ff; border-radius: 50%; appearance: none; background: var(--blue); box-shadow: 0 0 12px rgba(75,178,216,.55); }
.volume-control input[type="range"]::-moz-range-track { height: 6px; border-radius: 99px; background: linear-gradient(90deg,var(--blue),var(--violet)); }
.volume-control input[type="range"]::-moz-range-thumb { width: 15px; height: 15px; border: 2px solid #dff8ff; border-radius: 50%; background: var(--blue); box-shadow: 0 0 12px rgba(75,178,216,.55); }
.volume-control output { color: #dff8ff; font-size: .7rem; font-weight: 900; text-align: right; }
.setting-select-row select { min-width: 150px; height: 42px; padding: 0 34px 0 12px; border: 1px solid rgba(75,178,216,.3); border-radius: 11px; color: #e8f6ff; background: #111f3d; cursor: pointer; font-size: .74rem; font-weight: 750; }
.tutorial-replay { width: 100%; min-height: 43px; margin-top: 11px; border: 1px dashed rgba(135,102,255,.35); border-radius: 13px; color: #b7aae9; background: rgba(135,102,255,.045); cursor: pointer; font-size: .72rem; font-weight: 800; }
.tutorial-replay span { width: 21px; height: 21px; margin-right: 6px; display: inline-grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; }
.settings-pwa { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; padding: 16px; border: 1px solid rgba(100,220,171,.22); border-radius: 16px; background: rgba(100,220,171,.045); }
.settings-pwa > div { display: grid; gap: 3px; }
.settings-pwa strong { font-size: .78rem; }
.settings-pwa .secondary-button { min-height: 40px; flex: 0 0 auto; padding: 0 14px; font-size: .7rem; }
.settings-pwa button[hidden] { display: none; }
.feedback-intro { margin: 10px 40px 22px 0; color: #91a0b8; font-size: .8rem; }
.ad-preview-button:disabled, .ad-policy-actions button:disabled { cursor: not-allowed; opacity: .48; filter: grayscale(.35); }
.feedback-actions { display: flex; gap: 10px; }
.feedback-actions button { flex: 1; }
.feedback-dialog form { display: grid; gap: 15px; }
.feedback-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.feedback-field { display: grid; gap: 7px; }
.feedback-field > span, .feedback-rating legend { color: #dce5f4; font-size: .72rem; font-weight: 850; }
.feedback-field > span small { color: #7888a1; font-size: .63rem; font-weight: 650; }
.feedback-field select, .feedback-field input, .feedback-field textarea { width: 100%; border: 1px solid rgba(255,255,255,.13); border-radius: 12px; color: #f4f7ff; background: rgba(4,12,29,.72); font-size: .75rem; }
.feedback-field select, .feedback-field input { min-height: 45px; padding: 0 12px; }
.feedback-field textarea { min-height: 128px; padding: 12px; resize: vertical; line-height: 1.5; }
.feedback-field textarea::placeholder, .feedback-field input::placeholder { color: #5f6f89; }
.feedback-field > small { justify-self: end; color: #64758f; font-size: .6rem; }
.feedback-rating { margin: 0; padding: 0; border: 0; }
.feedback-rating > div { display: flex; gap: 5px; margin-top: 6px; }
.feedback-rating label { color: #39455c; cursor: pointer; font-size: 1.65rem; line-height: 1; text-shadow: none; transition: color .16s,transform .16s,text-shadow .16s; }
.feedback-rating label:hover, .feedback-rating label.active { color: var(--gold); text-shadow: 0 0 13px rgba(241,174,86,.38); transform: translateY(-1px); }
.feedback-rating input:focus-visible + label { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 3px; }
.feedback-diagnostic { min-height: 65px; display: flex; align-items: flex-start; gap: 12px; padding: 12px 13px; border: 1px solid rgba(75,178,216,.18); border-radius: 14px; background: rgba(75,178,216,.035); cursor: pointer; }
.feedback-diagnostic input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--blue); }
.feedback-diagnostic > span { display: grid; gap: 3px; }
.feedback-diagnostic strong { font-size: .72rem; }
.feedback-diagnostic small { color: #70819a; font-size: .64rem; }
.feedback-privacy { margin: -3px 0 0; color: #667791; font-size: .64rem; }
.feedback-status { min-height: 18px; margin: -4px 0 0; color: var(--success); font-size: .67rem; text-align: center; }
.install-dialog { text-align: center; }
.install-dialog p { max-width: 430px; margin: 12px auto 24px; }
.install-mark { width: 64px; height: 64px; display: grid; place-items: center; margin: 0 auto 18px; border-radius: 20px; background: linear-gradient(145deg,var(--blue),var(--violet)); box-shadow: 0 0 28px rgba(75,178,216,.28); font-size: 1.5rem; transform: rotate(5deg); }
.install-dialog .primary-button { width: 100%; }
.tutorial-dialog { text-align: center; overflow: hidden; }
.tutorial-progress { display: flex; justify-content: center; gap: 7px; margin-bottom: 20px; }
.tutorial-progress span { width: 24px; height: 4px; border-radius: 99px; background: rgba(255,255,255,.12); transition: width .2s,background .2s; }
.tutorial-progress span.active { width: 42px; background: linear-gradient(90deg,var(--blue),var(--violet)); box-shadow: 0 0 12px rgba(75,178,216,.3); }
.tutorial-visual { width: 126px; height: 126px; margin: 0 auto 23px; position: relative; display: grid; place-items: center; border: 1px solid rgba(75,178,216,.25); border-radius: 36px; color: #fff; background: radial-gradient(circle,rgba(75,178,216,.3),rgba(135,102,255,.12) 55%,transparent 72%); box-shadow: inset 0 0 35px rgba(75,178,216,.08),0 0 45px rgba(75,178,216,.13); font-size: 3.2rem; text-shadow: 0 0 20px var(--blue); }
.tutorial-visual::before,.tutorial-visual::after { content:""; position:absolute; border:1px solid rgba(135,102,255,.22); border-radius:50%; }
.tutorial-visual::before { width: 154px; height: 76px; transform: rotate(-18deg); }
.tutorial-visual::after { width: 86px; height: 158px; transform: rotate(30deg); }
.tutorial-dialog h2 { max-width: 450px; margin: 9px auto 0; font-size: 2.65rem; }
.tutorial-dialog > p { max-width: 440px; min-height: 48px; margin: 13px auto 25px; color: #91a0b8; font-size: .84rem; }
.tutorial-actions { display: flex; gap: 10px; }
.tutorial-actions button { flex: 1; }

.consent-banner { position: fixed; left: 50%; bottom: 18px; z-index: 270; width: min(1120px,calc(100vw - 36px)); max-width: calc(100vw - 36px); padding: 17px; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 18px; overflow-x: clip; border: 1px solid rgba(75,178,216,.42); border-radius: 22px; color: #eef7ff; background: radial-gradient(circle at 85% 0,rgba(135,102,255,.24),transparent 22rem),rgba(8,18,41,.98); box-shadow: 0 24px 80px rgba(0,0,0,.55),inset 0 1px 0 rgba(255,255,255,.06); backdrop-filter: blur(18px); transform: translateX(-50%); }
.consent-banner[hidden] { display: none; }
.consent-banner-copy { min-width: 0; display: flex; align-items: flex-start; gap: 14px; }
.consent-mark { flex: 0 0 auto; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgba(75,178,216,.34); border-radius: 14px; color: var(--blue); background: rgba(75,178,216,.08); box-shadow: 0 0 22px rgba(75,178,216,.15); font-size: 1.15rem; }
.consent-banner h2 { margin: 4px 0 6px; font-family: inherit; font-size: 1rem; letter-spacing: 0; line-height: 1.25; text-transform: none; }
.consent-banner p { max-width: 700px; margin: 0; color: #9cabbe; font-size: .7rem; line-height: 1.5; }
.consent-banner a { display: inline-block; margin-top: 5px; color: #b9dded; font-size: .66rem; text-underline-offset: 3px; }
.consent-banner-actions, .consent-dialog-actions { display: flex; align-items: center; gap: 9px; }
.consent-choice-button { min-height: 44px; padding: 0 15px; border: 1px solid rgba(255,255,255,.18); border-radius: 12px; color: #eef6ff; background: rgba(255,255,255,.055); cursor: pointer; font-size: .69rem; font-weight: 850; white-space: nowrap; touch-action: manipulation; }
.consent-choice-button:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.consent-accept { border-color: rgba(75,178,216,.7); background: linear-gradient(135deg,#2d8fb9,#687af6); box-shadow: 0 8px 22px rgba(75,178,216,.2); }
.consent-reject { border-color: rgba(180,204,228,.42); background: #172845; }
.consent-customize { border-color: rgba(135,102,255,.42); }
.consent-dialog { width: min(720px,calc(100% - 32px)); max-height: 92dvh; padding: 34px; overflow-y: auto; border: 1px solid rgba(255,255,255,.16); border-radius: 26px; color: #fff; background: radial-gradient(circle at 90% 0,rgba(135,102,255,.16),transparent 22rem),#0d1b36; box-shadow: var(--shadow); }
.consent-dialog[open] { animation: dialogIn .2s ease-out; }
.consent-dialog::backdrop { background: rgba(2,7,19,.82); backdrop-filter: blur(8px); }
.consent-dialog h2 { margin: 7px 40px 0 0; font-size: 2.45rem; }
.consent-intro { margin: 10px 40px 22px 0; color: #91a0b8; font-size: .8rem; }
.consent-categories { display: grid; gap: 9px; }
.consent-category { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 15px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.028); }
.consent-category > div { min-width: 0; }
.consent-category strong { font-size: .8rem; }
.consent-category p { margin: 4px 0 0; color: #7787a0; font-size: .67rem; line-height: 1.45; }
.consent-required { flex: 0 0 auto; padding: 6px 9px; border: 1px solid rgba(100,220,171,.25); border-radius: 99px; color: var(--success); background: rgba(100,220,171,.06); font-size: .6rem; font-weight: 850; }
.consent-category input[type="checkbox"] { appearance: none; flex: 0 0 auto; width: 48px; height: 28px; padding: 3px; border: 1px solid rgba(255,255,255,.2); border-radius: 99px; background: #101a31; cursor: pointer; transition: .2s; }
.consent-category input[type="checkbox"]::before { content: ""; display: block; width: 20px; height: 20px; border-radius: 50%; background: #8793a8; transition: transform .2s,background .2s; }
.consent-category input[type="checkbox"]:checked { border-color: var(--blue); background: rgba(75,178,216,.18); }
.consent-category input[type="checkbox"]:checked::before { transform: translateX(20px); background: var(--blue); box-shadow: 0 0 10px var(--blue); }
.consent-detail { margin: 14px 0 18px; color: #667791; font-size: .64rem; line-height: 1.5; }
.consent-certification { margin: -4px 0 18px; padding: 12px 14px; border: 1px solid rgba(241,174,86,.22); border-radius: 13px; color: #a9b7ca; background: rgba(241,174,86,.045); font-size: .65rem; line-height: 1.5; }
.consent-certification strong { color: #f0c58c; }
.consent-dialog-actions { justify-content: flex-end; flex-wrap: wrap; }

.ad-layer { position: fixed; inset: 0; z-index: 200; padding: 20px; overflow: auto; background: rgba(3,8,20,.94); backdrop-filter: blur(12px); }
.ad-layer:not([hidden]) { display: grid; place-items: center; animation: dialogIn .2s ease-out; }
.ad-demo-card { width: 100%; max-width: 470px; min-width: 0; margin: auto; overflow: hidden; border: 1px solid var(--line); border-radius: 26px; background: #0e1b35; padding: 18px; text-align: center; box-shadow: var(--shadow); }
.ad-demo-top { min-width: 0; display: flex; justify-content: space-between; gap: 8px; color: var(--gold); font-size: .54rem; font-weight: 900; letter-spacing: .12em; padding: 2px 3px 13px; }
.ad-demo-top > * { min-width: 0; overflow-wrap: anywhere; }
.ad-demo-top small { color: #71809a; font-size: .54rem; letter-spacing: 0; }
.ad-demo-visual { min-height: 230px; border-radius: 18px; overflow: hidden; position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 34px; text-align: left; background: radial-gradient(circle at 80% 35%, rgba(var(--studio-rgb,135,102,255),.62), transparent 14rem), linear-gradient(145deg, #203f7d, #182455 60%, #101833); }
.ad-demo-visual::after { content: ""; position: absolute; width: 190px; height: 190px; right: -40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.15); box-shadow: 0 0 0 30px rgba(255,255,255,.035), 0 0 0 62px rgba(255,255,255,.02); }
.ad-demo-visual span { color: rgb(var(--studio-rgb,158,234,255)); font-size: .62rem; font-weight: 900; letter-spacing: .16em; }
.ad-demo-visual strong { min-width: 0; max-width: 100%; margin-top: 9px; position: relative; z-index: 1; overflow-wrap: anywhere; font-family: Impact, sans-serif; text-transform: uppercase; font-size: 2.5rem; line-height: .95; }
.ad-demo-visual i { position: absolute; right: 52px; top: 88px; z-index: 1; color: rgb(var(--studio-rgb,242,196,107)); font-style: normal; font-size: 3.2rem; text-shadow: 0 0 25px currentColor; }
.ad-demo-card h2 { max-width: 100%; overflow-wrap: anywhere; font-size: 1.45rem; margin: 20px 0 7px; }
.ad-demo-card > p { color: var(--muted); font-size: .72rem; margin: 0 auto 17px; max-width: 360px; }
.ad-discover { width: 100%; margin-bottom: 9px; }
.ad-discover span { margin-left: 6px; }
.ad-continue { width: 100%; }

.play-layer { position: fixed; inset: 0; z-index: 100; background: radial-gradient(circle at 50% 35%, #172d59, #071126 58%); }
.play-layer:not([hidden]) { display: flex; flex-direction: column; animation: gameIn .28s ease-out; }
@keyframes gameIn { from { opacity: 0; transform: scale(1.03); } }
.play-header { min-height: clamp(58px, 9dvh, 76px); flex: 0 0 auto; display: grid; grid-template-columns: 48px 1fr 48px 48px 48px; align-items: center; gap: 10px; width: min(900px, calc(100% - 32px)); margin: 0 auto; border-bottom: 1px solid var(--line); }
.play-header > div { display: grid; text-align: center; }
.play-header small { color: var(--blue); font-size: .57rem; font-weight: 900; letter-spacing: .15em; }
.play-header strong { font-size: .86rem; margin-top: 3px; }
.icon-button.light { background: rgba(255,255,255,.06); }
.play-main { width: min(720px, calc(100% - 32px)); margin: auto; padding: 24px 0 40px; }
.play-status { display: flex; justify-content: center; gap: 30px; margin-bottom: 16px; color: #7f8ca3; font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; }
.play-status strong { color: #fff; padding-left: 5px; }
.game-surface { width: min(520px, 100%); aspect-ratio: 1; margin: 0 auto; border: 1px solid rgba(255,255,255,.15); background: rgba(3,10,25,.45); border-radius: 26px; box-shadow: inset 0 0 55px rgba(75,178,216,.08), 0 30px 80px rgba(0,0,0,.3); padding: 18px; position: relative; overflow: hidden; }
.integrated-mode .play-main { width: min(760px, calc(100% - 24px)); flex: 1; min-height: 0; margin: 0 auto; padding: 8px 0 10px; display: flex; flex-direction: column; justify-content: center; }
.integrated-mode .play-main { position: relative; }
.game-load-status { position: absolute; inset: 8px 0 10px; z-index: 6; display: grid; place-items: center; padding: 20px; background: #0d1025; border-radius: 21px; }
.game-load-status[hidden] { display: none; }
.game-load-status > div { width: min(100%, 420px); display: grid; gap: 14px; text-align: center; }
.game-load-status p { margin: 0; color: var(--muted); overflow-wrap: anywhere; }
.game-load-status button[hidden] { display: none; }
.integrated-mode .play-status { display: none; }
.integrated-mode .game-surface { width: min(620px, 100%); height: auto; max-height: 720px; flex: 1; min-height: 0; aspect-ratio: auto; padding: 0; background: #0d1025; }
.integrated-mode .play-help { flex: 0 0 auto; margin: 6px 0 0; line-height: 1.25; }
.integrated-game-frame { display: block; width: 100%; height: 100%; border: 0; background: #0d1025; }
.play-help { text-align: center; color: #72809a; font-size: .72rem; margin: 16px 0 0; }
.platform-pause { position: absolute; inset: 0; z-index: 20; padding: 20px; background: rgba(3,8,20,.88); backdrop-filter: blur(12px); }
.platform-pause:not([hidden]) { display: grid; place-items: center; animation: dialogIn .18s ease-out; }
.platform-pause-card { width: min(390px,100%); padding: 34px; border: 1px solid rgba(75,178,216,.24); border-radius: 25px; background: radial-gradient(circle at 50% 0,rgba(75,178,216,.16),transparent 17rem),#0d1b36; text-align: center; box-shadow: var(--shadow); }
.platform-pause-card > span { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 15px; border-radius: 18px; color: var(--blue); border: 1px solid rgba(75,178,216,.3); background: rgba(75,178,216,.08); font-family: Impact,sans-serif; font-size: 1.55rem; letter-spacing: .08em; box-shadow: 0 0 22px rgba(75,178,216,.13); }
.platform-pause-card small { color: var(--blue); font-size: .6rem; font-weight: 900; letter-spacing: .15em; }
.platform-pause-card h2 { margin-top: 8px; font-size: 2.25rem; }
.platform-pause-card p { margin: 10px 0 22px; color: #8797b0; font-size: .76rem; }
.platform-pause-card .primary-button { width: 100%; }
.result-layer { position: absolute; inset: 0; z-index: 24; padding: 20px; overflow-y: auto; background: radial-gradient(circle at 50% 32%,rgba(75,178,216,.14),transparent 24rem),rgba(3,8,20,.93); backdrop-filter: blur(13px); }
.result-layer:not([hidden]) { display: grid; place-items: center; animation: dialogIn .22s ease-out; }
.result-card { width: min(470px,100%); padding: 32px; border: 1px solid rgba(75,178,216,.27); border-radius: 28px; background: radial-gradient(circle at 50% 0,rgba(135,102,255,.16),transparent 18rem),#0d1b36; text-align: center; box-shadow: var(--shadow),0 0 50px rgba(75,178,216,.08); }
.result-halo { width: 74px; height: 74px; margin: 0 auto 17px; display: grid; place-items: center; border: 1px solid rgba(75,178,216,.34); border-radius: 24px; color: #fff; background: linear-gradient(145deg,rgba(75,178,216,.3),rgba(135,102,255,.25)); box-shadow: 0 0 30px rgba(75,178,216,.24),inset 0 0 25px rgba(255,255,255,.06); font-size: 2rem; text-shadow: 0 0 16px var(--blue); }
.result-card > small { color: var(--blue); font-size: .65rem; font-weight: 900; letter-spacing: .15em; }
.result-card h2 { margin-top: 9px; font-size: 2.75rem; }
.result-card > p { margin: 10px 0 22px; color: #8b9ab2; font-size: .78rem; }
.result-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.result-stats > div { min-height: 72px; display: grid; place-content: center; gap: 2px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.028); }
.result-stats strong { font-family: Impact,"Arial Black",sans-serif; font-size: 1.35rem; }
.result-stats span { color: #697992; font-size: .6rem; font-weight: 850; letter-spacing: .09em; }
.result-stats .result-xp strong { color: var(--gold); text-shadow: 0 0 13px rgba(241,174,86,.25); }
.result-rewards { margin-top: 12px; padding: 12px; border: 1px solid rgba(241,174,86,.22); border-radius: 14px; color: #f6d6a9; background: rgba(241,174,86,.05); font-size: .72rem; font-weight: 800; }
.result-actions { display: flex; gap: 10px; margin-top: 18px; }
.result-actions button { flex: 1; }
.result-feedback { margin-top: 12px; border: 0; background: transparent; color: #98bdd0; cursor: pointer; font-size: .68rem; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.reward-burst { position: fixed; left: 50%; top: 50%; z-index: 300; width: min(330px,calc(100% - 32px)); min-height: 230px; padding: 28px 24px; transform: translate(-50%,-50%); display: grid; justify-items: center; align-content: center; overflow: hidden; border: 1px solid rgba(241,174,86,.32); border-radius: 28px; color: #fff; background: radial-gradient(circle at 50% 25%,rgba(241,174,86,.2),transparent 11rem),rgba(8,18,41,.96); box-shadow: 0 28px 90px rgba(0,0,0,.55),0 0 55px rgba(241,174,86,.12); text-align: center; pointer-events: none; animation: rewardIn 2.5s ease both; }
.reward-burst[hidden] { display: none; }
.reward-burst > span { width: 58px; height: 58px; display: grid; place-items: center; margin-bottom: 13px; border-radius: 50%; color: #071126; background: linear-gradient(145deg,var(--gold),#fff1a8); box-shadow: 0 0 30px rgba(241,174,86,.35); font-size: 1.5rem; }
.reward-burst small { color: var(--gold); font-size: .65rem; font-weight: 900; letter-spacing: .15em; }
.reward-burst strong { margin-top: 5px; font-family: Impact,"Arial Black",sans-serif; font-size: 1.65rem; text-transform: uppercase; }
.reward-burst p { margin: 7px 0 0; color: #8999b2; font-size: .74rem; }
.reward-rays { position: absolute; width: 210px; height: 210px; border-radius: 50%; background: repeating-conic-gradient(from 0deg,rgba(241,174,86,.08) 0 8deg,transparent 8deg 22deg); animation: rewardSpin 8s linear infinite; }
.reward-burst > *:not(.reward-rays) { position: relative; z-index: 1; }
@keyframes rewardIn { 0% { opacity:0; transform:translate(-50%,-50%) scale(.72); } 12%,78% { opacity:1; transform:translate(-50%,-50%) scale(1); } 100% { opacity:0; transform:translate(-50%,-56%) scale(.96); } }
@keyframes rewardSpin { to { transform:rotate(360deg); } }

@media (max-height: 720px) {
  .integrated-mode .play-main { padding: 6px 0 8px; }
  .integrated-mode .play-help { display: none; }
}
.memory-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; height: 100%; }
.memory-card { border: 1px solid rgba(255,255,255,.13); border-radius: 14px; background: linear-gradient(145deg, #233d72, #131f43); color: transparent; cursor: pointer; font-size: clamp(1.3rem, 7vw, 2.7rem); transition: transform .2s, background .2s; }
.memory-card:hover { transform: translateY(-2px); }
.memory-card.flipped, .memory-card.matched { color: #fff; background: linear-gradient(145deg, #4bb2d8, #665de6); }
.memory-card.matched { opacity: .55; }
.reaction-area { height: 100%; display: grid; place-items: center; text-align: center; }
.reaction-button { width: 58%; aspect-ratio: 1; border-radius: 50%; color: #fff; border: 0; background: #e66072; box-shadow: 0 0 0 18px rgba(230,96,114,.08), 0 0 55px rgba(230,96,114,.25); cursor: pointer; font-weight: 900; font-size: 1rem; }
.reaction-button.ready { background: #4bd39d; box-shadow: 0 0 0 18px rgba(75,211,157,.08), 0 0 55px rgba(75,211,157,.3); }
.generic-arena { height: 100%; background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px); background-size: 32px 32px; border-radius: 16px; position: relative; }
.generic-target { position: absolute; width: 76px; height: 76px; border: 0; border-radius: 22px; background: linear-gradient(145deg, var(--blue), var(--violet)); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 12px 28px rgba(75,178,216,.27); font-size: 2rem; transition: left .18s, top .18s, transform .12s; }
.generic-target:active { transform: scale(.92); }
.complete-message { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; text-align: center; padding: 35px; background: rgba(5,13,30,.9); backdrop-filter: blur(7px); }
.complete-message strong { font-family: Impact, sans-serif; font-size: 2.5rem; text-transform: uppercase; }
.complete-message p { color: var(--muted); font-size: .8rem; }

.toast { position: fixed; left: 50%; bottom: 30px; z-index: 150; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: #eff5ff; color: #0b1730; border-radius: 12px; padding: 10px 16px; box-shadow: var(--shadow); font-size: .76rem; font-weight: 800; transition: .25s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.connection-status { position: fixed; top: 12px; left: 50%; z-index: 250; transform: translateX(-50%); padding: 8px 13px; border: 1px solid rgba(241,174,86,.36); border-radius: 99px; color: #ffe0b5; background: rgba(30,20,16,.94); box-shadow: var(--shadow); font-size: .68rem; font-weight: 850; }
.update-banner { position: fixed; right: 18px; bottom: 18px; z-index: 240; display: flex; align-items: center; gap: 10px; max-width: calc(100% - 36px); padding: 10px 11px 10px 15px; border: 1px solid rgba(75,178,216,.3); border-radius: 14px; background: #eef7ff; color: #0a1730; box-shadow: var(--shadow); font-size: .72rem; font-weight: 800; }
.update-banner[hidden] { display: none; }
.update-banner button { min-height: 34px; border: 0; border-radius: 9px; cursor: pointer; }
.update-banner #applyUpdate { padding: 0 12px; color: #fff; background: linear-gradient(135deg,#338eb7,#687af6); font-size: .67rem; font-weight: 850; }
.update-banner #dismissUpdate { width: 34px; color: #4e5b70; background: transparent; font-size: 1.2rem; }
.reduce-effects *, .reduce-effects *::before, .reduce-effects *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 70px; text-align: center; }
  .hero-copy { display: grid; justify-items: center; }
  .eyebrow { justify-content: center; }
  .hero-proof { justify-content: center; }
  .hero-visual { min-height: 390px; }
  .quick-grid { grid-template-columns: 1fr 1fr; }
  .quick-card:last-child { display: none; }
  .game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .progression-spotlight { grid-template-columns: auto 1fr; }
  .progression-open { grid-column: 1 / -1; justify-self: stretch; }
  .progression-glance { grid-template-columns: 1fr; }
  .badge-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .theme-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .studio-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ad-policy-card { grid-template-columns: 1fr 1fr; }
  .ad-policy-actions { grid-column: 1 / -1; }
  footer { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  footer > span { text-align: center; }
  .legal-links { grid-column: auto; }
  .consent-banner { grid-template-columns: 1fr; }
  .consent-banner-actions { justify-content: flex-end; flex-wrap: wrap; }
}

@media (max-width: 640px) {
  body { padding-bottom: 72px; }
  .topbar, main, footer { width: min(100% - 28px, 1180px); }
  .topbar { height: 70px; }
  .brand-mark { width: 36px; height: 36px; border-radius: 10px; }
  .brand-mark span { font-size: 20px; }
  .brand-copy strong { font-size: .88rem; }
  .brand-copy small { font-size: .5rem; }
  .profile-button { display: grid; }
  .top-actions { gap: 6px; }
  #openSearch { display: none; }
  .top-pass-button { width: 42px; padding: 0; font-size: 0; }
  .top-pass-button span { margin: 0; font-size: .9rem; }
  .hero { min-height: auto; padding: 58px 0 66px; gap: 25px; }
  h1 { font-size: clamp(3.6rem, 18vw, 5.2rem); }
  .hero-copy > p { font-size: .91rem; margin: 21px 0 25px; }
  .hero-actions { width: 100%; }
  .hero-actions > * { flex: 1 1 100%; }
  .hero-proof { display: none; }
  .hero-visual { min-height: 280px; overflow: hidden; }
  .hero-visual::before { width: 260px; height: 260px; }
  .orbit-one { width: 310px; height: 190px; }
  .orbit-two { width: 250px; height: 290px; }
  .console { width: 245px; height: 158px; border-radius: 44px; }
  .console-screen { left: 66px; top: 28px; width: 114px; height: 77px; border-width: 5px; }
  .console-screen strong { font-size: 1.6rem; }
  .dpad { left: 25px; bottom: 32px; transform: scale(.72); transform-origin: left bottom; }
  .console-buttons { right: 25px; bottom: 40px; transform: rotate(-24deg) scale(.72); transform-origin: right bottom; }
  .symbol-one { right: 5px; top: 30px; } .symbol-two { left: 0; top: 120px; } .symbol-three { right: 10px; bottom: 40px; }
  .quick-section, .catalogue-section, .progression-section, .studio-section, .editorial-section { padding: 58px 0; }
  .editorial-grid { grid-template-columns: 1fr; }
  .progression-section { padding-top: 0; }
  .progression-spotlight { grid-template-columns: 1fr; justify-items: start; gap: 18px; padding: 23px 19px; border-radius: 22px; }
  .level-orb { width: 78px; height: 78px; }
  .level-orb strong { font-size: 2.25rem; }
  .progression-intro h2 { font-size: 2rem; }
  .progression-intro p { font-size: .82rem; }
  .progression-open { width: 100%; grid-column: auto; }
  .progression-glance article { min-height: 92px; padding: 14px; }
  .section-heading { align-items: flex-start; }
  .section-heading h2, .compact-heading h2 { font-size: 2.25rem; }
  .studio-heading { align-items: stretch; flex-direction: column; }
  .studio-profile-link { width: 100%; }
  .studio-grid { grid-template-columns: 1fr; }
  .studio-card { min-height: 250px; }
  .ad-policy-card { grid-template-columns: 1fr; padding: 19px; }
  .ad-policy-card ul { grid-template-columns: 1fr; }
  .ad-policy-actions { grid-column: auto; }
  .ad-policy-actions .secondary-button { width: 100%; }
  .quick-grid { grid-template-columns: 1fr; }
  .quick-card:last-child { display: block; }
  .text-button { font-size: 0; }
  .text-button span { font-size: 1.4rem; }
  .sort-control { display: none; }
  .search-box kbd { display: none; }
  .filter-scroll { max-width: 100%; flex-wrap: nowrap; overflow-x: auto; margin-right: 0; padding-right: 14px; scrollbar-width: none; }
  .filter-scroll::-webkit-scrollbar { display: none; }
  .filter-chip { flex: 0 0 auto; }
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .dialog-guide { grid-template-columns: 1fr; }
  .game-symbol { font-size: 3.5rem; }
  .game-card-content { padding: 12px; }
  .game-category span:last-child, .game-card-footer > span { display: none; }
  .game-card h3 { font-size: .89rem; }
  .ad-catalogue-card { grid-column: 1 / -1; min-height: 230px; padding: 18px; }
  .ad-catalogue-card h3 { font-size: clamp(1rem, 5vw, 1.2rem); line-height: 1.08; }
  footer { margin-top: 0; padding-bottom: 40px; }
  .mobile-nav { position: fixed; left: 10px; right: 10px; bottom: 10px; height: 64px; z-index: 50; display: grid; grid-template-columns: repeat(5, 1fr); padding: 5px; border: 1px solid rgba(255,255,255,.13); border-radius: 19px; background: rgba(8,18,41,.92); box-shadow: 0 18px 50px rgba(0,0,0,.4); backdrop-filter: blur(16px); }
  .mobile-nav-item { border: 0; background: transparent; color: #70809b; border-radius: 14px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 2px; font-size: .57rem; font-weight: 800; cursor: pointer; }
  .mobile-nav-item svg { width: 19px; height: 19px; }
  .mobile-nav-item.active { color: var(--blue); background: rgba(75,178,216,.08); }
  .game-dialog { width: 100%; max-height: 92dvh; border-radius: 24px 24px 0 0; margin: auto 0 0; grid-template-columns: 1fr; overflow-y: auto; }
  .game-dialog[open] { display: grid; }
  .dialog-cover { min-height: 235px; }
  .dialog-cover-icon { font-size: 6rem; }
  .dialog-content { padding: 27px 20px 24px; }
  .dialog-content h2 { font-size: 2.4rem; }
  .dialog-stats { margin: 20px 0; }
  .progression-dialog { width: 100%; max-height: 94dvh; margin: auto 0 0; padding: 27px 14px 20px; border-radius: 24px 24px 0 0; }
  .progression-dialog-header { gap: 14px; padding: 3px 36px 20px 0; }
  .dialog-level-orb { width: 66px; height: 66px; }
  .dialog-level-orb strong { font-size: 2rem; }
  .progression-dialog-header h2 { font-size: 2.1rem; }
  .progression-tabs button { min-height: 40px; font-size: .68rem; }
  .rhythm-card { align-items: flex-start; flex-direction: column; gap: 16px; padding: 16px; }
  .rhythm-week { width: 100%; justify-content: space-between; }
  .mission-columns { grid-template-columns: 1fr; gap: 23px; }
  .badge-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .badge-card { min-height: 140px; }
  .theme-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .stats-summary { grid-template-columns: repeat(2,1fr); }
  .game-stat-row { grid-template-columns: minmax(0,1fr) 62px 72px; }
  .game-stat-row > span:nth-of-type(3) { display: none; }
  .game-surface { border-radius: 21px; padding: 12px; }
  .memory-grid { gap: 7px; }
  .memory-card { border-radius: 10px; }
  .toast { bottom: 88px; white-space: nowrap; }
  .settings-dialog, .install-dialog, .tutorial-dialog, .feedback-dialog, .consent-dialog { width: 100%; margin: auto 0 0; padding: 30px 16px 20px; border-radius: 24px 24px 0 0; }
  .feedback-actions { flex-direction: column-reverse; }
  .feedback-row { grid-template-columns: 1fr; }
  .resume-strip { width: calc(100% - 20px); grid-template-columns: auto minmax(0,1fr) auto; margin: 4px auto 12px; gap: 9px; }
  .resume-strip .primary-button { grid-column: 1 / -1; width: 100%; }
  .resume-strip p { display: none; }
  .resume-strip #discardSavedGame { grid-column: 3; grid-row: 1; }
  .settings-pwa { align-items: flex-start; flex-direction: column; }
  .settings-pwa .secondary-button { width: 100%; }
  .play-header { width: calc(100% - 20px); grid-template-columns: 42px minmax(0,1fr) 42px 42px 42px; gap: 4px; }
  .play-header .icon-button { width: 42px; height: 42px; }
  .platform-pause-card { padding: 28px 20px; }
  .result-card { padding: 27px 17px; }
  .result-card h2 { font-size: 2.25rem; }
  .result-actions { flex-direction: column-reverse; }
  .tutorial-dialog h2 { font-size: 2.2rem; }
  .tutorial-visual { width: 108px; height: 108px; }
  .setting-select-row { align-items: flex-start; flex-direction: column; }
  .setting-select-row select { width: 100%; }
  .volume-setting { gap: 11px; }
  .volume-control { width: 150px; }
  .update-banner { right: 10px; left: 10px; bottom: 82px; max-width: none; }
  .membership-dialog { width: 100%; max-height: 93dvh; margin: auto 0 0; padding: 34px 16px 22px; border-radius: 24px 24px 0 0; }
  .membership-header { padding: 0 10px; }
  .membership-header h2 { font-size: 2.25rem; }
  .plan-grid { grid-template-columns: 1fr; }
  .plan-card { padding: 20px; }
  .game-dialog,
  .progression-dialog,
  .settings-dialog,
  .install-dialog,
  .tutorial-dialog,
  .feedback-dialog,
  .consent-dialog,
  .membership-dialog {
    width: calc(100% - 16px);
    max-width: none;
    margin-inline: auto;
    margin-block: auto;
    max-height: calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    border-radius: 24px;
  }
  .ad-layer { padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); }
  .ad-demo-card { max-width: 100%; padding: 13px; }
  .ad-demo-visual { min-height: 210px; padding: 25px; }
  .ad-demo-visual strong { font-size: clamp(1.85rem, 10vw, 2.5rem); }
  .ad-demo-card h2 { font-size: clamp(1.18rem, 5.8vw, 1.45rem); }
  .consent-banner { bottom: calc(84px + env(safe-area-inset-bottom)); width: calc(100% - 20px); max-height: calc(100dvh - 106px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); grid-template-columns: 1fr; gap: 13px; padding: 15px; overflow-y: auto; border-radius: 19px; }
  .consent-banner-copy { gap: 10px; }
  .consent-mark { width: 38px; height: 38px; border-radius: 12px; }
  .consent-banner h2 { font-size: .9rem; }
  .consent-banner p { font-size: .66rem; }
  .consent-banner-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .consent-banner-actions .consent-customize { grid-column: 1 / -1; grid-row: 2; }
  .consent-banner-actions .consent-reject { grid-column: 1; grid-row: 1; }
  .consent-banner-actions .consent-accept { grid-column: 2; grid-row: 1; }
  .consent-choice-button { min-height: 46px; padding: 0 10px; }
  .consent-dialog h2 { margin-right: 30px; font-size: 2rem; }
  .consent-category { align-items: flex-start; }
  .consent-dialog-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .consent-dialog-actions .consent-customize { grid-column: 1 / -1; grid-row: 1; }
}

/* Respect phone notches, gesture bars and the keyboard without widening the page. */
.play-layer { padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); }
.play-header > div { min-width: 0; }
.play-header strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feedback-rating label { display: grid; place-items: center; min-width: 44px; min-height: 44px; }
.filter-chip { min-height: 44px; }
@media (max-width: 640px) {
  body { padding-top: env(safe-area-inset-top); padding-bottom: calc(86px + env(safe-area-inset-bottom)); }
  .mobile-nav { bottom: max(10px, env(safe-area-inset-bottom)); }
  .toast, .update-banner { bottom: calc(88px + env(safe-area-inset-bottom)); }
  .feedback-field select, .feedback-field input, .feedback-field textarea { font-size: 16px; }
}

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

@media (max-width: 350px) {
  #openMembershipTop { display: none; }
  .brand { gap: 8px; }
  .brand-copy small { display: none; }
}

.skip-to-catalogue { position: absolute; top: 8px; left: 12px; z-index: 80; padding: 12px 16px; border-radius: 8px; background: #e5f6ff; color: #061227; transform: translateY(-150%); }
.skip-to-catalogue:focus { transform: none; }
.top-links { display: flex; align-items: center; gap: clamp(10px, 2.6vw, 30px); }
.top-links a, .discovery-more { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: #c7d9ef; font-size: .88rem; font-weight: 750; text-decoration: none; }
.top-links a:hover, .discovery-more:hover { color: #a4ecff; }
.discovery-section { padding-block: 32px 20px; border-block-start: 1px solid var(--line); }
.discovery-section .section-heading { margin-bottom: 18px; gap: 10px; }
.discovery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.discovery-card { display: flex; align-items: flex-start; gap: 15px; padding: 20px 16px 12px; min-width: 0; border: 1px solid var(--line); border-radius: 19px; background: radial-gradient(ellipse at top left, color-mix(in srgb, var(--neon-a, #4bb2d8) 17%, transparent), transparent 74%), #0e1b36; }
.discovery-icon { display: grid; place-items: center; width: 43px; height: 43px; flex: 0 0 43px; border: 1px solid var(--line); border-radius: 12px; color: #c9ecff; font-size: 1.55rem; background: #25385d; }
.discovery-card h3 { font-size: 1.04rem; line-height: 1.3; margin: 2px 0 7px; }
.discovery-card p { color: #b3c3d8; font-size: .86rem; line-height: 1.5; margin: 0; }
.discovery-card a, .dialog-guide-link { min-height: 44px; display: inline-flex; align-items: center; gap: 7px; color: #a9e8ff; font-size: .82rem; font-weight: 750; }
.game-card-footer { gap: 6px; margin-top: 4px; flex-wrap: wrap; }
.game-card-footer .card-guide, .game-card-footer .card-open { display: inline-flex; min-height: 44px; align-items: center; gap: 5px; font-size: .83rem; }
.card-guide { color: #bbd2ee; text-decoration: underline; text-underline-offset: .2em; }
.game-duration { margin: 6px 0 0; color: #b3c3d8; font-size: .78rem; }
.search-box:focus-within, :focus-visible { outline: 2px solid #9beeff; outline-offset: 3px; }
.editorial-grid a { min-height: 156px; }
.editorial-grid strong { margin-top: 0; }
.editorial-grid p { color: #b3c3d8; font-size: .86rem; }
@media (max-width: 850px) {
  .discovery-grid { grid-template-columns: 1fr; }
  .discovery-section .section-heading { flex-wrap: wrap; }
}
@media (max-width: 640px) {
  body { padding-bottom: calc(82px + env(safe-area-inset-bottom, 0px)); }
  .top-links { display: none; }
  .hero { padding: 37px 0 34px; gap: 4px; }
  .hero-visual { display: none; }
  .discovery-section { padding-top: 27px; }
  .discovery-card { padding: 15px 13px 4px; }
  .catalogue-section { padding-top: 36px; }
  .progression-section { padding-top: 26px; }
  .mobile-nav { bottom: max(10px, env(safe-area-inset-bottom, 0px)); }
  .mobile-nav-item { color: #a7b6cd; text-decoration: none; }
  .mobile-nav-item span { font-size: .65rem; }
  .game-dialog .dialog-cover { min-height: 112px; }
  .game-dialog .dialog-cover-icon { font-size: 3.3rem; }
  .game-dialog .dialog-content { padding: 17px 16px calc(18px + env(safe-area-inset-bottom, 0px)); }
}

.studio-shortcut { display: inline-flex; align-items: center; min-height: 44px; gap: 8px; margin-top: 8px; color: #bdeaff; font-size: .88rem; font-weight: 750; }
.studio-shortcut:hover { color: #fff; }
.studio-shortcut + .hero-proof { margin-top: 13px; }
.studio-card:focus-visible { outline-offset: -3px; }
