:root {
  color-scheme: dark;
  --bg: #171622;
  --panel: #222031;
  --text: #fff7e6;
  --muted: #c9c4d3;
  --gold: #f9d878;
  --mint: #abedcf;
  --line: #454052;
  font-family: system-ui, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid var(--mint); outline-offset: 5px; }
.wrap { width: min(1140px, calc(100% - 56px)); margin-inline: auto; }
.topbar, .footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.topbar { min-height: 88px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 650; letter-spacing: -.025em; }
.brand strong { color: var(--gold); }
.toplink, .footer a { color: var(--muted); font-size: .9rem; padding: 8px 0; }
.toplink:hover, .footer a:hover { color: var(--gold); }
.toplink span { margin-left: 5px; color: var(--gold); }
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  align-items: center;
  overflow: hidden;
  min-height: 410px;
  border: 1px solid #484157;
  border-radius: 28px;
  background: radial-gradient(ellipse at 83% 50%, #46375e, transparent 55%), #242032;
}
.hero-copy { padding: clamp(30px, 5.8vw, 74px); padding-right: 0; z-index: 1; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0; color: var(--mint); font-size: .76rem; font-weight: 750; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow i { display: block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 14px currentColor; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin: .24em 0 .25em; font-size: clamp(3rem, 6.35vw, 5.6rem); line-height: .99; letter-spacing: -.068em; }
h1 em { color: var(--gold); font-style: normal; white-space: nowrap; }
.intro { max-width: 36ch; margin-bottom: 25px; color: var(--muted); font-size: 1.04rem; line-height: 1.65; }
.button { display: inline-flex; align-items: center; gap: 18px; padding: 13px 18px; border-radius: 10px; background: var(--gold); color: #201a20; font-weight: 750; }
.button:hover { background: #ffe8a5; }
.hero-art { position: relative; height: 100%; min-height: 310px; }
.orbit { position: absolute; inset: 10% 8%; opacity: .52; border-radius: 50%; border: 1px solid #a996b8; transform: rotate(-17deg) scaleY(.78); }
.orbit::after { content: ""; position: absolute; inset: 12%; border-radius: inherit; border: 1px dashed #ad92b8; }
.board-preview {
  position: absolute;
  top: 49%; left: 48%;
  width: 58%; aspect-ratio: 1;
  transform: translate(-50%, -50%) perspective(500px) rotateX(32deg) rotateZ(-24deg);
  border: 4px solid #fff1ae;
  border-radius: 14px;
  padding: 11%;
  box-shadow: 0 12px #93633f, 0 24px 35px #100d1d;
  background: repeating-conic-gradient(#f8e8c5 0 15deg, #e8ae72 15deg 30deg, #f8e8c5 30deg 45deg, #a6d9c4 45deg 60deg);
}
.city { width: 100%; height: 100%; border: 3px solid #64506e; border-radius: 7px; background: #212342 url("/art/board-city.svg") center/cover; }
.die {
  position: absolute;
  display: grid;
  grid-template: repeat(3, 1fr) / repeat(3, 1fr);
  width: clamp(47px, 6.2vw, 84px); aspect-ratio: 1;
  padding: clamp(9px, 1.3vw, 16px);
  border-radius: 21%;
  background: linear-gradient(135deg, #fff5de, #eddab7);
  box-shadow: 0 8px #b29385, 0 14px 28px #161221;
}
.die i { align-self: center; justify-self: center; width: 68%; aspect-ratio: 1; border-radius: 50%; background: #742e56; }
.die-five { top: 17%; right: 18%; transform: rotate(16deg); }
.die-three { bottom: 18%; left: 8%; transform: rotate(-17deg); background: linear-gradient(135deg, #d7fff0, #9ce7c9); box-shadow: 0 8px #599d8b, 0 14px 28px #161221; }
.die i:nth-child(1) { grid-area: 1 / 1; }
.die i:nth-child(2) { grid-area: 2 / 2; }
.die i:nth-child(3) { grid-area: 3 / 3; }
.die i:nth-child(4) { grid-area: 1 / 3; }
.die i:nth-child(5) { grid-area: 3 / 1; }
.spark { position: absolute; color: var(--gold); text-shadow: 0 0 18px #ffd680; }
.spark-one { top: 19%; left: 14%; font-size: 1.3rem; }
.spark-two { bottom: 24%; right: 12%; font-size: 1.9rem; }
.spark-three { bottom: 13%; right: 31%; font-size: .8rem; }
.catalog { margin: 58px 0; scroll-margin-top: 24px; }
.section-head h2 { margin: 7px 0 20px; font-size: clamp(1.8rem, 4.5vw, 2.6rem); letter-spacing: -.045em; }
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 295px), 1fr)); gap: 20px; }
.game-card { border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }
.game-card:hover { border-color: var(--gold); }
.game-link { display: block; border-radius: inherit; }
.card-art { aspect-ratio: 2.22; overflow: hidden; border-radius: 17px 17px 0 0; background: #262a4c; }
.card-art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 64%; }
.ktv-art {
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at 50% 70%, #9a405c, transparent 52%), linear-gradient(135deg, #211c48, #46224b 65%, #241d42);
}
.ktv-art img { width: 76px; height: 76px; object-fit: contain; filter: drop-shadow(0 8px 18px #160c2d); }
.card-copy { padding: 20px; }
.game-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.game-meta span { padding: 4px 8px; border: 1px solid #52495f; border-radius: 100px; color: var(--muted); font-size: .72rem; }
.card-copy h3 { margin-bottom: 6px; font-size: 1.25rem; }
.card-copy > p:not(.game-meta) { margin-bottom: 16px; color: var(--muted); font-size: .9rem; line-height: 1.55; }
.play { color: var(--gold); font-size: .9rem; font-weight: 750; }
.play span { margin-left: 4px; }
.footer { border-top: 1px solid var(--line); min-height: 76px; color: var(--muted); font-size: .85rem; }
.footer p { margin: 0; }
@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .topbar { min-height: 70px; }
  .hero { grid-template-columns: 1fr; border-radius: 20px; }
  .hero-copy { padding: 29px 24px 0; }
  .hero-art { height: 245px; min-height: 0; }
  .board-preview { width: min(52%, 190px); }
  .die-five { right: 22%; }
  .die-three { left: 17%; }
  .catalog { margin: 36px 0; }
}
