:root {
  color-scheme: dark;
  --bg: #0b0710;
  --surface: #211429;
  --text: #fff6e8;
  --muted: #ccb9c9;
  --accent: #71ddd3;
  --accent-2: #c197cb;
  --ok: #7be0c4;
  --warn: #f4d79e;
  --bad: #ff7895;
  --radius: 20px;
  --plum: #2c1736;
  --plum-deep: #160d1c;
  --line: color-mix(in srgb, var(--muted) 24%, transparent);
  --shadow: 0 24px 80px rgba(2, 0, 7, .38);
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body {
  min-width: 280px;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% -15%, color-mix(in srgb, var(--accent-2) 20%, transparent), transparent 34rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, select { font: inherit; }

.skip-link {
  position: fixed;
  z-index: 2000;
  top: .75rem;
  left: .75rem;
  padding: .7rem 1rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--bg);
  font-weight: 800;
  transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: relative;
  z-index: 50;
  width: min(1180px, calc(100% - 2rem));
  margin: 1rem auto;
}
.site-header .rn {
  border-color: var(--line);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  box-shadow: 0 12px 45px rgba(2, 0, 7, .2);
  backdrop-filter: blur(18px);
}
.site-header .rn__brand span { letter-spacing: -.02em; }

main { width: min(1240px, calc(100% - 2rem)); margin: 0 auto; }
#hero .hhb {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
#hero .hhb__inner { min-height: clamp(31rem, 66vw, 44rem); }
#hero .hhb__content { max-width: 47rem; }
#hero .hhb__content::before {
  inset: -5rem -4rem -4rem;
  background:
    radial-gradient(circle at 20% 70%, color-mix(in srgb, var(--surface) 92%, transparent), transparent 62%),
    linear-gradient(to top, color-mix(in srgb, var(--bg) 82%, transparent), transparent 70%);
}
#hero .hhb__eyebrow { font-size: .82rem; }
#hero .hhb__title { max-width: 11ch; letter-spacing: -.055em; text-wrap: balance; }
#hero .hhb__subtitle { color: var(--text); text-shadow: 0 2px 18px rgba(0, 0, 0, .9); }
#hero .hhb__cta { box-shadow: 0 10px 30px color-mix(in srgb, var(--accent) 24%, transparent); }

.arcade { padding: clamp(4rem, 8vw, 7rem) 0; }
.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(12rem, .7fr);
  align-items: end;
  gap: 2rem;
  margin-bottom: 2rem;
}
.eyebrow {
  margin: 0 0 .5rem;
  color: var(--accent);
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.section-heading h2 {
  max-width: 18ch;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.3rem, 6vw, 4.8rem);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: .98;
  text-wrap: balance;
}
.section-note { margin: 0; color: var(--muted); font-size: 1.04rem; }

.game-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.15rem; }
.game-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 5px);
  background: linear-gradient(155deg, color-mix(in srgb, var(--plum) 94%, var(--accent-2)), var(--plum-deep));
  box-shadow: 0 18px 55px rgba(3, 0, 8, .26);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.game-card:hover {
  border-color: color-mix(in srgb, var(--accent) 65%, transparent);
  box-shadow: 0 24px 70px rgba(3, 0, 8, .42);
  transform: translateY(-5px);
}
.game-card__image { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface); }
.game-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.game-card:hover .game-card__image img { transform: scale(1.035); }
.game-card__image:focus-visible, .play-button:focus-visible { outline: 3px solid var(--accent); outline-offset: -4px; }
.game-card__body { display: grid; grid-template-rows: auto auto 1fr auto; min-height: 18rem; padding: 1.4rem; }
.game-card__number { margin: 0 0 .8rem; color: var(--accent); font-size: .72rem; font-weight: 900; letter-spacing: .16em; }
.game-card h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.7rem, 3vw, 2.35rem); font-weight: 500; letter-spacing: -.035em; }
.game-card__body > p:not(.game-card__number) { margin: .75rem 0 1.5rem; color: var(--muted); }
.play-button {
  display: inline-flex;
  width: fit-content;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  padding: .72rem 1rem;
  border: 1px solid color-mix(in srgb, var(--accent) 62%, transparent);
  border-radius: 999px;
  background: var(--accent);
  color: var(--bg);
  font-weight: 850;
  text-decoration: none;
}
.play-button span { transition: transform .2s ease; }
.play-button:hover span { transform: translateX(3px); }

.site-footer {
  display: flex;
  width: min(1180px, calc(100% - 2rem));
  min-height: 7rem;
  margin: 0 auto;
  padding: 1.4rem 0 2rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.site-footer p { margin: 0; font-weight: 750; }
.theme-picker--popover .theme-picker__choices { bottom: calc(100% + .65rem); }
noscript { display: block; padding: 1rem; text-align: center; color: var(--warn); }

@media (max-width: 850px) {
  .game-grid { grid-template-columns: 1fr; }
  .game-card { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); }
  .game-card__image { height: 100%; aspect-ratio: auto; }
  .game-card__body { min-height: 16rem; }
}

@media (max-width: 700px) {
  .site-header, main, .site-footer { width: min(100% - 1rem, 36rem); }
  .site-header { margin: .5rem auto; }
  #hero .hhb__inner { min-height: 34rem; }
  #hero .hhb__content::before { inset: -4rem -1.1rem -1.1rem; }
  .section-heading { grid-template-columns: 1fr; gap: 1rem; }
  .game-card { display: block; }
  .game-card__image { aspect-ratio: 16 / 10; }
  .game-card__body { min-height: 15rem; }
  .site-footer { align-items: flex-start; flex-direction: column; padding-bottom: 1rem; }
  .theme-picker--popover .theme-picker__choices { right: auto; left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .game-card, .game-card__image img, .play-button span { transition: none; }
}
