/* Layout: ink-violet sticky header, wide hero with a fanned stack of game art, card grids; one reading column for prose pages. */
:root {
  --bg: #f4f2fa;
  --surface: #ffffff;
  --fg: #1b1830;
  --muted: #5d5875;
  --line: #e0dcec;
  --accent: #e8501a;
  --accent-fg: #ffffff;
  --ink: #231c4d;
  --ink-fg: #f6f3ff;
  --ink-muted: #b9b2dc;
  --display: "Unbounded", "Arial Black", Arial, sans-serif;
  --body: "Nunito Sans", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #13111f; --surface: #1c1930; --fg: #ece9f7; --muted: #a49fbf; --line: #2e2a47;
    --accent: #ff7a45; --accent-fg: #1b0d05; --ink: #0c0a18; --ink-fg: #f0edff; --ink-muted: #a49fbf;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #13111f; --surface: #1c1930; --fg: #ece9f7; --muted: #a49fbf; --line: #2e2a47;
  --accent: #ff7a45; --accent-fg: #1b0d05; --ink: #0c0a18; --ink-fg: #f0edff; --ink-muted: #a49fbf;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 5rem; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.6 var(--body); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 20; background: var(--ink); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2rem, 5.5vw, 3.4rem); font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: clamp(1.3rem, 3vw, 1.7rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.wrap { max-width: 72rem; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: .6rem; }
.eyebrow a { color: inherit; text-decoration: none; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 38rem; margin-top: 1rem; }

/* header */
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: var(--ink); color: var(--ink-fg); }
.head-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; padding-block: .7rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: inherit; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.05rem; }
.brand svg { width: 34px; height: 34px; flex: none; }
.site-head nav { display: flex; flex-wrap: wrap; gap: .25rem; }
.site-head nav a { color: var(--ink-muted); text-decoration: none; font-weight: 600; font-size: .95rem; padding: .35rem .75rem; border-radius: 999px; }
.site-head nav a:hover { color: var(--ink-fg); }
.site-head nav a[aria-current="page"] { background: var(--accent); color: var(--accent-fg); }

/* buttons */
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.6rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; font: 700 1rem var(--body); padding: .75rem 1.3rem; border-radius: 12px; background: var(--accent); color: var(--accent-fg); text-decoration: none; border: 2px solid var(--accent); cursor: pointer; }
.btn:hover { filter: brightness(1.06); }
.btn.ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--accent); }
.btn.disabled { background: var(--line); border-color: var(--line); color: var(--muted); cursor: default; }
.text-link { font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* hero */
.hero { padding-block: 3.5rem 2rem; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2.5rem; align-items: center; }
.hero-copy { min-width: 0; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-stack { position: relative; aspect-ratio: 16 / 12; max-width: 100%; }
.hero-stack img { position: absolute; width: 78%; border-radius: 16px; box-shadow: 0 18px 40px -18px rgba(20, 12, 60, .55); border: 4px solid var(--surface); }
.hero-stack img:nth-child(1) { left: 0; top: 4%; transform: rotate(-6deg); }
.hero-stack img:nth-child(2) { right: 0; top: 22%; transform: rotate(5deg); z-index: 1; }
.hero-stack img:nth-child(3) { left: 10%; bottom: 0; transform: rotate(-2deg); z-index: 2; }
@media (prefers-reduced-motion: no-preference) {
  .hero-stack img { transition: transform .35s ease; }
  .hero-stack:hover img:nth-child(1) { transform: rotate(-9deg) translate(-8px, -6px); }
  .hero-stack:hover img:nth-child(2) { transform: rotate(8deg) translate(8px, -4px); }
}

/* sections */
.block { padding-block: 2.5rem; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; margin-bottom: 1.4rem; }
.page-head { padding-block: 3rem 1rem; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.card-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 1.4rem; }
.game-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; }
.card-img { display: block; aspect-ratio: 16 / 9; background: var(--tint); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: no-preference) {
  .card-img img { transition: transform .3s ease; }
  .game-card:hover .card-img img { transform: scale(1.04); }
}
.card-body { padding: 1.1rem 1.25rem 1.3rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.card-body .text-link { margin-top: auto; padding-top: .3rem; }
.chip { align-self: flex-start; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--tint); background: color-mix(in srgb, var(--tint) 14%, transparent); padding: .2rem .6rem; border-radius: 999px; }
:root[data-theme="dark"] .chip { color: color-mix(in srgb, var(--tint) 55%, white); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .chip { color: color-mix(in srgb, var(--tint) 55%, white); } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.split > div { display: grid; gap: 1rem; min-width: 0; }
.values { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.values li { display: grid; gap: .15rem; padding: 1rem 1.2rem; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.values span { color: var(--muted); }

/* game page */
.game-hero { padding-block: 3rem 2.5rem; background: color-mix(in srgb, var(--tint) 12%, var(--bg)); border-bottom: 1px solid var(--line); }
.game-hero-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 2.5rem; align-items: center; }
.game-hero-grid > div { min-width: 0; }
.game-art { border-radius: 18px; border: 4px solid var(--surface); box-shadow: 0 20px 40px -20px rgba(20, 12, 60, .5); }
.game-body { display: grid; grid-template-columns: minmax(0, 1fr) 18rem; gap: 2.5rem; align-items: start; }
.game-main { display: grid; gap: .9rem; max-width: 40rem; }
.game-main h2 { margin-top: .8rem; }
.facts { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 1.2rem 1.3rem; display: grid; gap: 1rem; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 5rem); }
.facts dl { margin: 0; display: grid; gap: .8rem; }
.facts dt { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.ticks { margin: 0; padding: 0; list-style: none; display: grid; gap: .55rem; }
.ticks li { position: relative; padding-left: 1.6rem; }
.ticks li::before { content: ""; position: absolute; left: .1rem; top: .5em; width: .7rem; height: .7rem; border-radius: 3px; background: var(--accent); transform: rotate(45deg); }

/* prose pages */
.prose { display: grid; gap: 1rem; max-width: 44rem; margin-left: 0; }
.prose h2 { margin-top: 1.2rem; }
.prose ul:not(.ticks) { margin: 0; padding-left: 1.2rem; display: grid; gap: .4rem; }
.summary { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1.2rem 1.4rem; display: grid; gap: .7rem; }
.summary h2 { margin: 0; font-size: 1.15rem; }
.policy .wrap, .policy { min-width: 0; }
.table-box { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: .95rem; }
th, td { text-align: left; vertical-align: top; padding: .65rem .8rem; border-bottom: 1px solid var(--line); }
th { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
tr:last-child td { border-bottom: 0; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.contact-grid > div { min-width: 0; display: grid; gap: .8rem; }
.email-box { background: var(--ink); color: var(--ink-fg); border-radius: 18px; padding: 1.6rem; }
.email-box .label { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); }
.big-email { font-family: var(--display); font-size: clamp(1.1rem, 3.4vw, 1.6rem); font-weight: 700; overflow-wrap: anywhere; user-select: all; }
.email-box .btn.ghost { color: var(--ink-fg); border-color: color-mix(in srgb, var(--ink-fg) 30%, transparent); }
.email-box .muted { color: var(--ink-muted); }
.email-box .btn-row { margin-top: .4rem; }

/* footer */
.site-foot { margin-top: 3rem; background: var(--ink); color: var(--ink-fg); padding-block: 2.5rem 1.5rem; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 2rem; }
.foot-grid > div { min-width: 0; display: grid; gap: .6rem; align-content: start; }
.site-foot .muted { color: var(--ink-muted); }
.foot-h { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.site-foot a { color: var(--ink-fg); text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
.email { overflow-wrap: anywhere; }
.foot-base { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid color-mix(in srgb, var(--ink-fg) 15%, transparent); font-size: .9rem; }

@media (max-width: 860px) {
  .hero-grid, .game-hero-grid, .split, .contact-grid, .game-body { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .facts { position: static; }
  .hero-stack { max-width: 34rem; }
}
@media (max-width: 560px) {
  .card-grid, .card-grid.two, .foot-grid { grid-template-columns: 1fr; }
  .head-row { justify-content: center; }
  .site-head nav { justify-content: center; }
  .site-head nav a { padding: .3rem .6rem; font-size: .88rem; }
  .hero { padding-top: 2rem; }
}
