:root {
  --bg: #070a16;
  --bg-soft: #0b1021;
  --panel: #11182b;
  --panel-2: #151f36;
  --line: #273552;
  --text: #f1f5ff;
  --muted: #91a0bd;
  --cyan: #52e7ea;
  --violet: #8c73ff;
  --pink: #ff6fb2;
  --yellow: #ffd15c;
  --danger: #ff6e72;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 85% 8%, #1d2854 0, transparent 27rem),
    radial-gradient(circle at 10% 45%, #172345 0, transparent 32rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.noise {
  position: fixed;
  inset: 0;
  opacity: .035;
  pointer-events: none;
  z-index: 20;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.shell { width: min(1180px, calc(100% - 44px)); margin-inline: auto; }
.nav { height: 90px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font-weight: 900; letter-spacing: .08em; }
.brand b { color: var(--cyan); }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--cyan); color: var(--cyan); box-shadow: inset 0 0 18px #52e7ea20; font-size: 12px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 800; }
.nav-links a:hover { color: var(--text); }
.account-button, .text-button { border: 0; color: var(--cyan); background: none; font-size: 12px; font-weight: 900; letter-spacing: .08em; cursor: pointer; }
.account-button { border: 1px solid #46688a; border-radius: 9px; padding: 10px 16px; }
.hero { min-height: 690px; padding: 75px 0 100px; display: grid; grid-template-columns: 1.12fr .88fr; align-items: center; gap: 80px; }
.eyebrow { margin: 0 0 16px; color: var(--cyan); font-size: 12px; font-weight: 900; letter-spacing: .18em; }
h1 { margin: 0; font-size: clamp(50px, 7vw, 86px); line-height: .98; letter-spacing: -.065em; }
h1 span { color: var(--cyan); text-shadow: 0 0 38px #52e7ea2e; }
.hero-text { max-width: 620px; margin: 30px 0 0; color: var(--muted); line-height: 1.7; font-size: 18px; }
.hero-actions { display: flex; gap: 13px; margin-top: 34px; flex-wrap: wrap; }
.button { min-height: 50px; padding: 0 22px; border: 1px solid #3b5475; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; color: var(--text); background: #111a30; text-decoration: none; font-size: 12px; font-weight: 900; letter-spacing: .04em; cursor: pointer; transition: .18s ease; }
.button:hover:not(:disabled) { transform: translateY(-2px); border-color: #6f8cae; }
.button.primary { color: #07121a; background: var(--cyan); border-color: var(--cyan); box-shadow: 0 12px 38px #52e7ea1f; }
.button.primary:hover:not(:disabled) { background: #7cf2f4; }
.button.ghost { background: transparent; }
.button:disabled { opacity: .42; cursor: not-allowed; }
.button.full { width: 100%; }
.hero-stats { display: flex; gap: 26px; margin-top: 38px; color: var(--muted); font-size: 12px; }
.hero-stats span { padding-right: 26px; border-right: 1px solid var(--line); }
.hero-stats span:last-child { border: 0; }
.hero-stats b { margin-right: 6px; color: var(--text); font-size: 17px; }
.cabinet { position: relative; width: 340px; height: 490px; margin: auto; padding: 30px 27px; background: linear-gradient(145deg, #27235a, #11172b 55%, #0c1120); border: 1px solid #594ba6; clip-path: polygon(8% 0,92% 0,100% 8%,96% 100%,4% 100%,0 8%); filter: drop-shadow(0 35px 55px #0008); }
.cabinet::after { content: ""; position: absolute; inset: 9px; border: 1px solid #8c73ff55; clip-path: inherit; pointer-events: none; }
.cabinet-top { height: 66px; display: grid; place-items: center; align-content: center; background: #0d1327; border: 1px solid #5d54a0; letter-spacing: .2em; }
.cabinet-top span { font-size: 9px; color: var(--pink); }
.cabinet-top strong { font-size: 20px; }
.cabinet-screen { position: relative; overflow: hidden; height: 270px; margin: 18px 0; border: 9px solid #070a14; border-radius: 38% 38% 18% 18% / 18% 18% 12% 12%; background: radial-gradient(circle at center, #15374a, #07101c 68%); box-shadow: inset 0 0 44px #000; }
.cabinet-screen::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, transparent 0 3px, #0004 4px); }
.cabinet-screen p { position: absolute; bottom: 31px; width: 100%; color: var(--yellow); text-align: center; font: 900 12px ui-monospace, monospace; letter-spacing: .2em; animation: blink 1.1s steps(1) infinite; }
.pixel-ship { position: absolute; inset: 80px 0 auto; color: var(--cyan); text-align: center; font-size: 54px; text-shadow: 0 0 20px var(--cyan); }
.pixel-star { position: absolute; width: 4px; height: 4px; background: var(--pink); box-shadow: 0 0 9px var(--pink); }
.star-one { top: 54px; left: 54px; }.star-two { top: 105px; right: 48px; }
.scanline { position: absolute; left: 0; right: 0; height: 2px; background: #6ffaff99; box-shadow: 0 0 12px var(--cyan); animation: scan 3.2s linear infinite; }
.cabinet-controls { height: 74px; display: flex; align-items: center; justify-content: center; gap: 24px; border-top: 1px solid #403c71; }
.cabinet-controls i { width: 24px; height: 24px; border-radius: 50%; background: var(--pink); box-shadow: 0 5px 0 #9d356a; }
.cabinet-controls i:nth-child(2) { background: var(--cyan); box-shadow: 0 5px 0 #258a93; }
.cabinet-controls span { width: 54px; height: 11px; border-radius: 8px; background: #080b14; border: 1px solid #4e5170; }
@keyframes scan { from { top: 0; } to { top: 100%; } }
@keyframes blink { 50% { opacity: .2; } }
.catalog-section { padding: 105px 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
h2 { margin: 0; font-size: clamp(34px, 5vw, 54px); letter-spacing: -.045em; }
.platform-switch { display: flex; padding: 4px; background: #0d1427; border: 1px solid var(--line); border-radius: 11px; }
.platform-switch button, .filters button, .dialog-tabs button { border: 0; border-radius: 8px; padding: 12px 18px; color: var(--muted); background: transparent; font-size: 11px; font-weight: 900; cursor: pointer; }
.platform-switch button.active, .filters button.active, .dialog-tabs button.active { color: #07121a; background: var(--cyan); }
.catalog-toolbar { display: flex; justify-content: space-between; align-items: center; margin: 42px 0 25px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.filters { display: flex; gap: 5px; }
.catalog-notice { padding: 14px 18px; color: var(--yellow); background: #ffd15c12; border: 1px solid #ffd15c44; border-radius: 10px; }
.game-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.game-card { --accent: var(--cyan); min-height: 290px; padding: 23px; display: flex; flex-direction: column; position: relative; overflow: hidden; background: linear-gradient(145deg, #141c31, #0d1324); border: 1px solid var(--line); border-radius: 16px; transition: .18s ease; }
.game-card::before { content: ""; position: absolute; width: 160px; height: 160px; top: -90px; right: -70px; background: var(--accent); opacity: .14; border-radius: 50%; filter: blur(7px); }
.game-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent), #273552 55%); }
.game-card.selected { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent), 0 18px 45px #0004; }
.game-card-top { display: flex; justify-content: space-between; align-items: start; }
.game-icon { display: grid; place-items: center; width: 48px; height: 48px; color: #07121a; background: var(--accent); border-radius: 12px; font-weight: 950; letter-spacing: -.04em; }
.game-check { appearance: none; width: 27px; height: 27px; border: 1px solid #536581; border-radius: 7px; cursor: pointer; }
.game-check:checked { border-color: var(--accent); background: var(--accent); }
.game-check:checked::after { content: "✓"; display: grid; place-items: center; height: 100%; color: #061018; font-weight: 950; }
.game-card h3 { margin: 23px 0 8px; font-size: 24px; letter-spacing: -.03em; }
.game-card p { margin: 0; color: var(--muted); line-height: 1.55; font-size: 14px; }
.tags { display: flex; gap: 7px; margin-top: 15px; }
.tag { padding: 5px 8px; border: 1px solid #354661; border-radius: 6px; color: #aebbd2; font-size: 9px; font-weight: 900; letter-spacing: .08em; }
.tag.online { color: var(--cyan); border-color: #52e7ea55; }
.game-card-actions { margin-top: auto; padding-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.game-card-actions a { color: var(--accent); font-size: 11px; font-weight: 900; text-decoration: none; }
.unavailable { color: #6f7e99; font-size: 10px; font-weight: 800; }
.leaderboard-section { padding: 35px 0 125px; }
.leaderboard-copy { max-width: 720px; margin: 24px 0 28px; color: var(--muted); line-height: 1.6; }
.leaderboard-select { min-width: 240px; display: grid; gap: 8px; color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.leaderboard-select select { height: 48px; padding: 0 42px 0 14px; color: var(--text); background: #0d1427; border: 1px solid var(--line); border-radius: 9px; }
.leaderboard-card { overflow: hidden; background: linear-gradient(145deg, #141c31, #0d1324); border: 1px solid var(--line); border-radius: 16px; }
.leaderboard-head, .leaderboard-row { display: grid; grid-template-columns: 90px 1fr 1fr 160px; align-items: center; gap: 18px; padding: 17px 24px; }
.leaderboard-head { color: var(--muted); background: #0a1020; font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.leaderboard-row { border-top: 1px solid #27355299; }
.leaderboard-row strong { color: var(--cyan); font-variant-numeric: tabular-nums; }
.leaderboard-rank { color: var(--yellow); font-weight: 950; }
.leaderboard-mode { color: var(--muted); }
.leaderboard-empty { margin: 0; padding: 35px 24px; color: var(--muted); text-align: center; }
.bundle-explainer { margin-block: 80px 130px; padding: 55px; background: linear-gradient(120deg, #171b3e, #0e172b); border: 1px solid #42417c; border-radius: 20px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; }
.bundle-explainer ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 26px; }
.bundle-explainer li { display: flex; gap: 18px; }
.bundle-explainer li > span { color: var(--cyan); font: 900 13px ui-monospace, monospace; }
.bundle-explainer b { font-size: 16px; }.bundle-explainer li p { margin: 5px 0 0; color: var(--muted); font-size: 14px; }
.online-account { margin-bottom: 150px; padding: 55px; display: flex; align-items: center; justify-content: space-between; gap: 50px; border: 1px solid #2f6170; background: linear-gradient(115deg, #102936, #0d1426 60%); border-radius: 20px; }
.online-account p:not(.eyebrow) { max-width: 720px; color: var(--muted); line-height: 1.6; }
.online-account .button { flex: 0 0 auto; }
.bundle-bar { position: fixed; left: 50%; bottom: 22px; width: min(680px, calc(100% - 28px)); transform: translate(-50%, 140%); padding: 12px 12px 12px 18px; display: flex; justify-content: space-between; align-items: center; z-index: 10; border: 1px solid #507391; background: #0e1729ee; backdrop-filter: blur(18px); border-radius: 14px; box-shadow: 0 24px 65px #000a; transition: transform .28s ease; }
.bundle-bar.visible { transform: translate(-50%, 0); }
.bundle-bar > div { display: flex; align-items: center; gap: 12px; }.bundle-bar > div > span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 9px; color: #07121a; background: var(--cyan); font-weight: 950; }
.bundle-bar p { margin: 0; display: grid; }.bundle-bar small { color: var(--muted); }
footer { min-height: 100px; padding-bottom: 35px; display: flex; justify-content: space-between; color: #66748d; font-size: 11px; }
dialog { width: min(500px, calc(100% - 28px)); max-height: calc(100dvh - 28px); overflow-y: auto; padding: 28px; color: var(--text); background: #11182a; border: 1px solid #455875; border-radius: 17px; box-shadow: 0 35px 100px #000c; }
dialog::backdrop { background: #03050bd9; backdrop-filter: blur(8px); }
.dialog-head { display: flex; justify-content: space-between; align-items: start; }.dialog-head h2 { font-size: 31px; }
.dialog-close { border: 0; color: var(--muted); background: none; font-size: 32px; cursor: pointer; }
.dialog-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 28px 0 24px; padding: 4px; background: #0a1020; border-radius: 10px; }
form { display: grid; gap: 16px; } label { display: grid; gap: 8px; color: #aebbd2; font-size: 12px; font-weight: 800; }
input { width: 100%; height: 48px; padding: 0 14px; color: var(--text); background: #0a1120; border: 1px solid #34435d; border-radius: 8px; outline: none; }
input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px #52e7ea12; }
.password-field { position: relative; display: block; }
.password-field input { padding-right: 52px; }
.password-toggle { position: absolute; top: 50%; right: 6px; width: 38px; height: 38px; padding: 0; transform: translateY(-50%); display: grid; place-items: center; color: var(--muted); background: transparent; border: 0; border-radius: 7px; cursor: pointer; }
.password-toggle:hover, .password-toggle:focus-visible, .password-toggle[aria-pressed="true"] { color: var(--cyan); background: #52e7ea12; outline: none; }
.password-toggle svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.password-toggle::after { content: ""; position: absolute; width: 22px; height: 2px; opacity: 0; background: currentColor; border-radius: 2px; transform: rotate(-45deg); }
.password-toggle[aria-pressed="true"]::after { opacity: 1; }
.code-input { text-align: center; font-size: 24px; font-weight: 900; letter-spacing: .32em; font-variant-numeric: tabular-nums; }
.code-input::placeholder { color: #50607b; }
form small { color: var(--muted); line-height: 1.5; }.form-message { min-height: 20px; color: var(--cyan); font-size: 13px; line-height: 1.5; }.form-message.error { color: var(--danger); }
#signed-in { text-align: center; padding-top: 24px; }#signed-in .button { margin-top: 10px; }.profile-avatar { display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 16px; color: #07121a; background: var(--cyan); border-radius: 20px; font-weight: 950; font-size: 22px; }
#signed-in h3 { margin: 0; font-size: 25px; }#signed-in p { color: var(--muted); margin: 7px 0 24px; }
.account-settings { margin: 20px 0 14px; padding: 6px 16px; background: #0a1020; border: 1px solid var(--line); border-radius: 12px; text-align: left; }
.setting-row { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid #27355299; cursor: pointer; }
.setting-row:nth-child(2) { border-bottom: 0; }.setting-row span { display: grid; gap: 5px; }.setting-row b { color: var(--text); font-size: 13px; }.setting-row small { color: var(--muted); font-size: 11px; font-weight: 500; line-height: 1.4; }
.setting-row input { appearance: none; flex: 0 0 auto; width: 44px; height: 24px; padding: 0; position: relative; background: #24314a; border: 1px solid #42516d; border-radius: 20px; cursor: pointer; }
.setting-row input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; background: #91a0bd; border-radius: 50%; transition: .18s ease; }
.setting-row input:checked { background: #52e7ea44; border-color: var(--cyan); }.setting-row input:checked::after { left: 23px; background: var(--cyan); }.setting-row input:disabled { opacity: .4; cursor: not-allowed; }
#signed-in .settings-message { min-height: 16px; margin: 4px 0 8px; color: var(--cyan); font-size: 11px; text-align: left; }.settings-message.error { color: var(--danger); }
.link-button { padding: 6px; border: 0; color: var(--cyan); background: none; font-size: 11px; font-weight: 900; letter-spacing: .06em; cursor: pointer; }
.form-copy { margin: 0 0 20px; color: var(--muted); line-height: 1.6; font-size: 14px; }
#download-dialog { width: min(720px, calc(100% - 28px)); }
#download-dialog h3 { margin: 0 0 12px; font-size: 28px; }
.wizard-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 28px 0 34px; }
.wizard-steps span { padding: 10px; color: #687895; background: #0a1020; border: 1px solid #273552; border-radius: 8px; text-align: center; font-size: 10px; font-weight: 900; letter-spacing: .06em; }
.wizard-steps span.active { color: #07121a; background: var(--cyan); border-color: var(--cyan); }.wizard-steps span.done { color: var(--cyan); border-color: #52e7ea55; }
#wizard-account .button { margin-top: 10px; }.wizard-later { width: 100%; margin-top: 18px; }
.connected-account { margin: 22px 0 4px; padding: 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: #0a1526; border: 1px solid #397281; border-radius: 12px; }
.connected-account div { display: grid; gap: 4px; }.connected-account small { color: var(--muted); }.connected-account b { font-size: 17px; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 25px 0; }
.choice-card { min-height: 110px; padding: 20px; display: grid; gap: 7px; color: var(--text); background: #0b1324; border: 1px solid #34435d; border-radius: 12px; text-align: left; cursor: pointer; }
.choice-card b { font-size: 21px; }.choice-card span { color: var(--muted); font-size: 12px; }.choice-card.active { border-color: var(--cyan); box-shadow: inset 0 0 0 1px var(--cyan); }.choice-card:disabled { opacity: .42; cursor: not-allowed; }
.wizard-summary { padding: 16px; color: var(--muted); background: #0a1020; border-radius: 10px; font-size: 13px; line-height: 1.6; }
.wizard-summary b { color: var(--text); }.wizard-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; }.wizard-actions .button { min-width: 170px; }
.download-status { padding: 6px 0 4px; text-align: center; }.download-status .form-copy { max-width: 500px; margin-inline: auto; }.download-status .wizard-summary { text-align: left; }
.download-spinner { width: 62px; height: 62px; margin: 4px auto 26px; border: 5px solid #24314a; border-top-color: var(--cyan); border-radius: 50%; animation: download-spin .9s linear infinite; }
@keyframes download-spin { to { transform: rotate(360deg); } }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: center; }.hero-text { margin-inline: auto; }.hero-actions, .hero-stats { justify-content: center; }.cabinet { display: none; }
  .game-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.bundle-explainer { grid-template-columns: 1fr; }.online-account { display: grid; }.leaderboard-head, .leaderboard-row { grid-template-columns: 60px 1fr 120px; }.leaderboard-head span:nth-child(3), .leaderboard-mode { display: none; }
}
@media (max-width: 620px) {
  .shell { width: min(100% - 28px, 1180px); }.nav-links a { display: none; }.hero { min-height: 590px; padding-top: 50px; }.hero-stats { gap: 12px; flex-wrap: wrap; }.hero-stats span { padding-right: 12px; }
  .section-heading { display: grid; }.platform-switch { width: 100%; }.platform-switch button { flex: 1; }.catalog-toolbar { align-items: end; }.filters button { padding-inline: 11px; }.game-grid { grid-template-columns: 1fr; }
  .bundle-explainer, .online-account { padding: 30px; }.bundle-bar { align-items: stretch; gap: 10px; }.bundle-bar .button { padding-inline: 12px; font-size: 10px; }footer { display: grid; gap: 10px; }
  .choice-grid { grid-template-columns: 1fr; }.wizard-actions { display: grid; }.wizard-actions .button { width: 100%; }.wizard-steps span { padding-inline: 2px; font-size: 8px; }.leaderboard-section .section-heading { align-items: stretch; }.leaderboard-select { width: 100%; }.leaderboard-head, .leaderboard-row { grid-template-columns: 45px 1fr 90px; padding-inline: 14px; gap: 9px; }
}
