:root {
  color-scheme: dark;
  --ground: #111925;
  --panel: #1a2634;
  --line: #35475b;
  --text: #f3f8ff;
  --secondary: #b2c4d9;
  --accent: #82e6c8;
  --accent-ink: #102a25;
  --space: clamp(1rem, 4vw, 3.5rem);
  font-family: Inter, 'Segoe UI', sans-serif;
  line-height: 1.55;
  font-synthesis: none;
  scroll-behavior: smooth;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--ground); color: var(--text); }
a { color: inherit; text-decoration: none; text-underline-offset: .24em; }
button, input { font: inherit; }
button:not(:disabled) { cursor: pointer; }
img { display: block; max-width: 100%; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.page { max-width: 88rem; margin-inline: auto; padding-inline: var(--space); }
.topbar { border-bottom: 1px solid var(--line); }
.navigation { min-height: 4.75rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; white-space: nowrap; font-weight: 650; }
.brand strong { color: var(--accent); font-weight: 720; }
.brand-mark { display: grid; grid-template: repeat(2, .42rem) / repeat(2, .42rem); gap: .15rem; transform: rotate(-8deg); }
.brand-mark i { background: var(--accent); border-radius: 1px; }
.brand-mark i:last-child { background: #eab7ff; }
.navigation nav { display: flex; align-items: center; gap: clamp(.7rem, 2.7vw, 1.8rem); font-size: .91rem; }
.navigation nav a:first-child:hover { text-decoration: underline; }
.nav-access { padding: .55rem .78rem; border: 1px solid var(--line); border-radius: .5rem; white-space: nowrap; }
.nav-access:hover { border-color: var(--accent); }
.skip-link { position: fixed; z-index: 2; top: .75rem; left: 1rem; padding: .6rem 1rem; background: var(--accent); color: var(--accent-ink); transform: translateY(-180%); }
.skip-link:focus { transform: none; }

.hero { display: grid; grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr); align-items: stretch; gap: clamp(1.2rem, 5vw, 4.25rem); padding-block: clamp(2.3rem, 6vw, 5.8rem); }
.hero-copy { align-self: center; }
.hero h1 { margin: 0; font-family: 'Aptos Display', Bahnschrift, Inter, 'Segoe UI', sans-serif; font-size: clamp(3.65rem, 8.2vw, 6rem); font-weight: 780; letter-spacing: -.04em; line-height: .92; }
.hero h1 span { color: var(--accent); }
.hero p { max-width: 30rem; margin: 1.4rem 0 1.65rem; font-size: 1.05rem; color: var(--secondary); }
.button { display: inline-flex; min-height: 2.85rem; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: .56rem; padding: .68rem 1rem; font-weight: 700; text-align: center; }
.button-primary { background: var(--accent); color: var(--accent-ink); }
.button-primary:hover { background: #acf5df; }
.featured-game { display: flex; flex-direction: column; justify-content: end; position: relative; isolation: isolate; min-height: clamp(14rem, 29vw, 24rem); padding: 1.2rem; overflow: hidden; border-radius: .9rem; background: #30274c; }
.featured-game img { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.featured-game::after { content: ''; position: absolute; z-index: -1; inset: 53% 0 0; background: linear-gradient(transparent, #111621e8); }
.featured-caption { display: flex; align-items: baseline; flex-wrap: wrap; justify-content: space-between; gap: .35rem .8rem; }
.featured-caption span:first-child { font-size: 1.37rem; font-weight: 720; }
.featured-caption span:last-child { font-size: .9rem; color: #e5eafa; }
.featured-game:hover .featured-caption span:first-child { text-decoration: underline; }

.content { display: grid; grid-template-columns: minmax(0, 1fr) minmax(16rem, 21rem); align-items: start; gap: clamp(1.25rem, 4vw, 3rem); padding-block: 2rem 4.25rem; border-top: 1px solid var(--line); }
.catalog, .access, .game { scroll-margin-top: 1.4rem; }
.section-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .35rem 1rem; }
h2 { margin: 0; font-size: clamp(1.55rem, 2.75vw, 2.15rem); letter-spacing: -.026em; line-height: 1.17; }
#game-count { color: var(--secondary); font-size: .88rem; }
.filters { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; margin: 1rem 0 1.15rem; }
.filters button, .duration-options button { min-height: 2.4rem; padding: .4rem .68rem; background: transparent; border: 1px solid var(--line); border-radius: .45rem; color: var(--text); font-size: .88rem; font-weight: 630; }
.filters button[aria-pressed='true'], .duration-options button[aria-pressed='true'] { background: #244439; color: #b6f8e1; border-color: #68ab94; }
.filters button:hover, .duration-options button:hover { border-color: var(--accent); }
.game-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.game { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: .85rem; background: var(--panel); }
.game-visual { aspect-ratio: 1.62; position: relative; display: grid; place-items: center; background: #26354d; color: var(--secondary); }
.game-visual img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.preview-status { padding: .5rem; text-align: center; font-size: .85rem; }
.game-info { display: flex; flex-direction: column; flex: 1; padding: .95rem 1rem 1rem; }
.game-genre { order: 2; margin: .38rem 0 0; color: var(--accent); font-size: .87rem; font-weight: 650; }
.game h3 { order: 1; margin: 0; font-size: clamp(1.13rem, 1.9vw, 1.42rem); line-height: 1.16; letter-spacing: -.02em; }
.game-description { order: 3; flex: 1; margin: .55rem 0 1rem; color: var(--secondary); font-size: .95rem; }
.game-action { order: 4; display: flex; align-items: baseline; flex-wrap: wrap; gap: .3rem .7rem; border-top: 1px solid var(--line); padding-top: .65rem; }
.game-link { font-size: .9rem; font-weight: 690; }
.game-link:hover { color: var(--accent); text-decoration: underline; }
.game-status, .status { color: var(--secondary); font-size: .87rem; }

.access { padding: 1.2rem clamp(1rem, 2.6vw, 1.55rem) 1.4rem; border: 1px solid var(--line); border-radius: .85rem; background: var(--panel); }
.access h2 { font-size: 1.45rem; }
.access > p { margin: .6rem 0 1.15rem; color: var(--secondary); font-size: .95rem; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
legend { padding: 0; font-size: .95rem; font-weight: 650; }
.duration-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: .36rem; margin: .5rem 0 .85rem; }
.duration-options button { padding-inline: .38rem; white-space: nowrap; }
.custom-label, .duration-range { display: block; font-size: .875rem; }
.custom-label { margin-bottom: .3rem; }
.duration-range { margin-top: .3rem; color: var(--secondary); }
#days { width: 100%; min-height: 2.5rem; padding: .4rem .6rem; border: 1px solid var(--line); border-radius: .5rem; background: var(--ground); color: var(--text); font-variant-numeric: tabular-nums; }
.order-total { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.05rem; padding-block: .85rem; border-top: 1px solid var(--line); }
#total { font-size: 1.35rem; font-weight: 710; font-variant-numeric: tabular-nums; }
.checkout { width: 100%; border-color: var(--line); background: #293849; color: #c5d5e5; }
.access form > p { margin: .52rem 0 0; }
.footer { padding-block: 1.25rem 2rem; border-top: 1px solid var(--line); color: var(--secondary); font-size: .9rem; }
.access-gate { padding-block: max(3rem, 10vh); }

@media (max-width: 54rem) {
  .content { grid-template-columns: minmax(0, 1fr); }
  .access { max-width: 28rem; }
}
@media (max-width: 42rem) {
  .navigation { min-height: 4.1rem; }
  .hero { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(3rem, 13vw, 4.8rem); }
  .hero h1 br { display: none; }
  .hero p { margin-block: 1rem 1.2rem; }
  .featured-game { min-height: 14.5rem; }
}
@media (max-width: 34rem) {
  .game-grid { grid-template-columns: 1fr; }
  .navigation nav a:first-child { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
}
