/* EG4F — warm black and ivory; amber is the action colour.
   Four signal hues give each kind of work its own light: cyan code, coral party, violet web, lime shipped. */
:root {
  --bg: #0c0b0a;
  --bg-2: #141210;
  --bg-3: #1c1916;
  --ivory: #ece6da;
  --ivory-2: #b9b1a3;     /* secondary text on --bg */
  --ivory-3: #8b8477;     /* meta text */
  --rule: rgb(236 230 218 / .14);
  --amber: #f0a44b;
  --amber-2: #ffb965;
  --ink: #0c0b0a;
  --gold: #f4b04e;
  --cyan: #5fd3e4;
  --coral: #ff6f7d;
  --violet: #ab90ff;
  --lime: #b7e070;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(1.25rem, 4.5vw, 4.5rem);
  --max: 88rem;
  --top-h: 4.5rem;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--top-h); scrollbar-color: #3a352f var(--bg); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ivory);
  font: 400 1.0625rem/1.6 var(--font); font-stretch: 100%;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
::selection { background: var(--amber); color: var(--ink); }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 800; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; border-radius: 2px; }
main:focus { outline: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--amber); color: var(--ink); padding: .7rem 1.1rem; font-weight: 700; }
.skip:focus { top: 1rem; }

/* ---------- brand ---------- */
.wordmark { display: inline-flex; align-items: center; color: var(--ivory); }
.wordmark__svg { height: 1.35rem; width: auto; aspect-ratio: 375 / 100; fill: currentColor; }
.e-glyph { height: .7em; height: 1cap; width: auto; aspect-ratio: 88 / 100; fill: currentColor; flex: none; }

/* ---------- top bar ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 40; height: var(--top-h);
  display: flex; align-items: center; gap: 2.5rem; padding: 0 var(--gutter);
  transition: background-color .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.top.is-solid { background: rgb(12 11 10 / .9); backdrop-filter: blur(14px); border-color: var(--rule); }
.top__brand { text-decoration: none; display: flex; padding: .4rem 0; }
.top__nav { display: flex; gap: 2rem; }
.top__nav a, .foot__links a { text-decoration: none; font-size: .95rem; font-weight: 500; color: var(--ivory-2); transition: color .2s; }
.top__nav a:hover, .foot__links a:hover { color: var(--ivory); }
.top__end { margin-left: auto; display: flex; align-items: center; gap: 1.25rem; }
.lang { display: flex; gap: .15rem; }
.lang a { text-decoration: none; font-size: .8rem; font-weight: 600; letter-spacing: .08em; padding: .5rem .45rem; color: var(--ivory-3); }
.lang a[aria-current], .lang a:hover { color: var(--ivory); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 3.1rem; padding: .8rem 1.5rem; border-radius: 999px;
  font: 600 1rem/1.1 var(--font); letter-spacing: .005em; text-decoration: none; white-space: nowrap;
  color: var(--ink); background: var(--ivory); border: 1px solid var(--ivory); cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s, transform .25s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--amber); border-color: var(--amber); }
.btn--primary:hover { background: var(--amber-2); border-color: var(--amber-2); }
.btn--ghost { background: transparent; color: var(--ivory); border-color: rgb(236 230 218 / .35); }
.btn--ghost:hover { border-color: var(--ivory); background: rgb(236 230 218 / .06); }
.btn--dark { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.btn--dark:hover { background: #2a2622; border-color: #2a2622; }
.btn--small { min-height: 2.5rem; padding: .5rem 1.1rem; font-size: .9rem; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; isolation: isolate; }
.hero__art { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
/* without WebGL the flat wordmark holds the stage; with it, it only feeds the 3D geometry */
.hero__mark { position: absolute; z-index: -2; left: 50%; top: calc(var(--top-h) + 6vh); translate: -50% 0; width: min(62vw, 56rem); color: var(--ivory); }
.hero__mark .wordmark, .hero__mark .wordmark__svg { display: block; width: 100%; height: auto; }
.hero.is-3d .hero__mark { visibility: hidden; }
@media (max-width: 760px) { .hero__mark { width: 86vw; top: calc(var(--top-h) + 4vh); } }
.hero__veil {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(to top, var(--bg) 0%, rgb(12 11 10 / .72) 30%, rgb(12 11 10 / 0) 62%),
    linear-gradient(to bottom, rgb(12 11 10 / .55), rgb(12 11 10 / 0) 22%);
}
.hero__content { padding: 0 var(--gutter); max-width: var(--max); width: 100%; margin: 0 auto; }
.hero__title {
  font-size: clamp(3rem, 7.4vw, 7.8rem); line-height: .9; font-stretch: 125%; font-weight: 800;
  letter-spacing: -.035em; text-transform: uppercase; margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
.hero__line { display: block; overflow-x: visible; overflow-y: clip; padding-bottom: .04em; }  /* clip only the rise, never the line's end */
.hero__line > span { display: block; }
.hero__line + .hero__line > span { color: var(--amber); }
.js .hero__line > span { transform: translateY(105%); animation: rise 1.1s var(--ease) forwards; }
.js .hero__line + .hero__line > span { animation-delay: .12s; }
@keyframes rise { to { transform: none; } }
.hero__foot { display: flex; flex-direction: column; align-items: flex-start; gap: 1.75rem; padding-bottom: clamp(5.5rem, 10vh, 7.5rem); }
.hero__sub { max-width: 31rem; margin: 0; font-size: clamp(1.05rem, 1.3vw, 1.2rem); color: var(--ivory-2); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.js .hero__foot { animation: fade 1s .45s var(--ease) both; }
@keyframes fade { from { opacity: 0; transform: translateY(14px); } }
.ticker {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; overflow: hidden;
  border-top: 1px solid var(--rule); background: rgb(12 11 10 / .6);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.ticker__track { flex: none; display: flex; gap: 2.75rem; margin: 0; padding: 1.1rem 1.375rem; list-style: none; animation: tick 48s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__track li { display: flex; align-items: center; gap: 2.75rem; white-space: nowrap; font-size: .82rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ivory-2); }
.ticker__track li::after { content: ""; width: 7px; height: 7px; background: var(--amber); }
.ticker__track li:nth-child(5n+1)::after { background: var(--cyan); }
.ticker__track li:nth-child(5n+2)::after { background: var(--coral); }
.ticker__track li:nth-child(5n+3)::after { background: var(--violet); }
.ticker__track li:nth-child(5n+4)::after { background: var(--lime); }
@keyframes tick { to { transform: translateX(-100%); } }

/* ---------- sections ---------- */
.projects, .account, .studio, .playtest { padding: clamp(5rem, 11vw, 9.5rem) var(--gutter); }
.projects > *, .studio > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; align-items: end; padding-bottom: 2rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); border-bottom: 1px solid var(--rule); }
.h2 { font-size: clamp(2.3rem, 5.2vw, 4.6rem); line-height: .95; font-stretch: 125%; letter-spacing: -.03em; text-transform: uppercase; }
.section-head__intro { margin: 0; color: var(--ivory-2); max-width: 30rem; justify-self: end; font-size: 1.1rem; }

/* ---------- what we make: three live demos ---------- */
.make { padding: clamp(5rem, 11vw, 9.5rem) var(--gutter) 0; }
.make > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.make__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto auto; gap: clamp(1rem, 2vw, 1.5rem); }
.tile {
  --accent: var(--amber);
  position: relative; display: flex; flex-direction: column; gap: 2rem; padding: clamp(1.5rem, 3vw, 2.5rem); border-radius: 20px; overflow: hidden;
  background: radial-gradient(80% 65% at 100% 0%, color-mix(in oklab, var(--accent) 16%, transparent), transparent 70%), var(--bg-2);
  border: 1px solid color-mix(in oklab, var(--accent) 22%, transparent);
}
.tile__title { color: var(--ivory); }
.tile__title::after { content: ""; display: block; width: 2.5rem; height: 4px; margin-top: .9rem; background: var(--accent); }
.tile--code { --accent: var(--cyan); grid-column: span 7; grid-row: span 2; }
.tile--party { --accent: var(--coral); grid-column: span 5; flex-direction: row; align-items: center; }
.tile--web { --accent: var(--violet); grid-column: span 5; }
.tile--party .tile__text { flex: 1; }
.tile__title { font-size: clamp(1.7rem, 2.6vw, 2.4rem); line-height: 1; font-stretch: 122%; letter-spacing: -.03em; text-transform: uppercase; margin-bottom: .8rem; }
.tile__body { color: var(--ivory-2); margin: 0; max-width: 34rem; }
.demo-tag { margin-left: auto; padding: .2rem .55rem; border-radius: 999px; border: 1px solid var(--rule); font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ivory-3); }
.demo-tag--float { position: absolute; right: .6rem; top: -.6rem; background: var(--bg-2); }

.editor { flex: 1; display: flex; flex-direction: column; margin: 0; border-radius: 14px; background: #100f0d; border: 1px solid var(--rule); box-shadow: 0 40px 70px -40px rgb(0 0 0 / .9); overflow: hidden; }
.editor__bar, .browser__bar { display: flex; align-items: center; gap: .9rem; padding: .7rem 1rem; border-bottom: 1px solid var(--rule); background: var(--bg-3); }
.editor__dots { display: flex; gap: .4rem; }
.editor__dots i { width: 10px; height: 10px; border-radius: 50%; background: #3a352f; }
.editor__dots i:nth-child(1) { background: var(--coral); }
.editor__dots i:nth-child(2) { background: var(--gold); }
.editor__dots i:nth-child(3) { background: var(--lime); }
.editor__file, .browser__url { font: 500 .82rem ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; color: var(--ivory-2); }
.editor__code { margin: 0; padding: 1.25rem 1.25rem 1.5rem; overflow-x: auto; font: 400 clamp(.78rem, 1.05vw, .95rem)/1.75 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; color: var(--ivory); counter-reset: ln; }
.editor__code code { background: none; padding: 0; font: inherit; white-space: normal; }  /* newlines between .ln blocks must not add rows */
.ln { display: block; padding-left: 2.6rem; position: relative; white-space: pre; min-height: 1.75em; }
.ln::before { counter-increment: ln; content: counter(ln); position: absolute; left: 0; width: 1.6rem; text-align: right; color: #4d473f; }
.c { color: var(--ivory-3); font-style: italic; }
.k { color: var(--violet); }
.f { color: var(--cyan); }
.s { color: var(--lime); }
.n { color: var(--coral); }
.caret { display: inline-block; width: .55em; height: 1.1em; margin-left: .15em; vertical-align: -.15em; background: var(--cyan); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.js .editor .ln { clip-path: inset(0 100% 0 0); }
.js .editor.is-in .ln { animation: type .7s steps(28, end) forwards; }
.js .editor.is-in .ln:nth-child(1) { animation-delay: 0.00s; }
.js .editor.is-in .ln:nth-child(2) { animation-delay: 0.32s; }
.js .editor.is-in .ln:nth-child(3) { animation-delay: 0.64s; }
.js .editor.is-in .ln:nth-child(4) { animation-delay: 0.96s; }
.js .editor.is-in .ln:nth-child(5) { animation-delay: 1.28s; }
.js .editor.is-in .ln:nth-child(6) { animation-delay: 1.60s; }
.js .editor.is-in .ln:nth-child(7) { animation-delay: 1.92s; }
.js .editor.is-in .ln:nth-child(8) { animation-delay: 2.24s; }
.js .editor.is-in .ln:nth-child(9) { animation-delay: 2.56s; }
.js .editor.is-in .ln:nth-child(10) { animation-delay: 2.88s; }
.js .editor.is-in .ln:nth-child(11) { animation-delay: 3.20s; }
.js .editor.is-in .ln:nth-child(12) { animation-delay: 3.52s; }
.js .editor.is-in .ln:nth-child(13) { animation-delay: 3.84s; }
.js .editor.is-in .ln:nth-child(14) { animation-delay: 4.16s; }
@keyframes type { to { clip-path: inset(0 0 0 0); } }
.term { margin-top: auto; padding: 1rem 1.25rem 1.2rem; border-top: 1px solid var(--rule); background: #0b0a09; font: 400 clamp(.74rem, .95vw, .86rem)/1.7 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; color: var(--ivory-2); }
.term p { margin: 0; }
.term__p { color: var(--cyan); }
.term__ok { color: var(--lime); }
.js .editor .term p { opacity: 0; }
.js .editor.is-in .term p { animation: fade-in .3s forwards; }
.js .editor.is-in .term p:nth-child(1) { animation-delay: 5.3s; }
.js .editor.is-in .term p:nth-child(2) { animation-delay: 5.8s; }
.js .editor.is-in .term p:nth-child(3) { animation-delay: 6.3s; }
.js .editor.is-in .term p:nth-child(4) { animation-delay: 6.8s; }
.js .editor.is-in .term p:nth-child(5) { animation-delay: 7.3s; }
.js .editor.is-in .term p:nth-child(6) { animation-delay: 7.8s; }
@keyframes fade-in { to { opacity: 1; } }

.phone { position: relative; flex: none; margin: 0; width: clamp(11rem, 15vw, 13.5rem); padding: .55rem; border-radius: 30px; background: #1f1b17; border: 1px solid rgb(236 230 218 / .18); box-shadow: 0 40px 60px -30px rgb(0 0 0 / .9); transform: rotate(3deg); }
.phone__screen { border-radius: 24px; background: #0e0d0b; padding: 1.1rem 1rem 1rem; text-align: center; }
.phone__label { margin: 0; font-size: .68rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ivory-3); }
.phone__code { margin: .15rem 0 .9rem; font-size: 2rem; font-weight: 800; font-stretch: 125%; letter-spacing: .08em; color: var(--coral); }
.phone__players { list-style: none; margin: 0 0 .9rem; padding: 0; display: grid; gap: .4rem; text-align: left; }
.phone__players li { display: flex; align-items: center; gap: .55rem; padding: .4rem .5rem; border-radius: 10px; background: var(--bg-3); font-size: .85rem; font-weight: 600; }
.phone__players em { margin-left: auto; font-style: normal; font-weight: 400; font-size: .68rem; color: var(--ivory-3); }
.av { width: 1.5rem; height: 1.5rem; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; font-weight: 800; color: var(--ink); }
.av--1 { background: var(--coral); } .av--2 { background: var(--cyan); } .av--3 { background: var(--violet); } .av--4 { background: var(--lime); }
.js .phone .phone__players li { opacity: 0; transform: translateY(8px) scale(.96); }
.js .phone.is-in .phone__players li { animation: join .5s var(--ease) forwards; }
.js .phone.is-in .phone__players li:nth-child(1) { animation-delay: 0.30s; }
.js .phone.is-in .phone__players li:nth-child(2) { animation-delay: 0.85s; }
.js .phone.is-in .phone__players li:nth-child(3) { animation-delay: 1.40s; }
.js .phone.is-in .phone__players li:nth-child(4) { animation-delay: 1.95s; }
@keyframes join { to { opacity: 1; transform: none; } }
.phone__count { margin: 0 0 .7rem; font-size: .78rem; color: var(--ivory-3); }
.phone__count span { color: var(--ivory); font-weight: 700; }
.phone__go { display: block; padding: .6rem; border-radius: 999px; background: var(--coral); color: var(--ink); font-weight: 700; font-size: .9rem; }
.js .phone.is-in .phone__go { animation: nudge 2.4s 2.8s var(--ease) infinite; }
@keyframes nudge { 0%, 70%, 100% { transform: none; } 80% { transform: scale(1.06); } 90% { transform: scale(.98); } }

.browser { margin: auto 0 0; border-radius: 14px; overflow: hidden; background: #100f0d; border: 1px solid var(--rule); box-shadow: 0 40px 70px -40px rgb(0 0 0 / .9); }
.board { padding: 1.1rem 1.2rem 1.3rem; }
.board__title { margin: 0 0 .9rem; font-weight: 700; font-size: .95rem; }
.board__rows { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.board__rows li { display: grid; grid-template-columns: 1.4rem 4.5rem 1fr 3.4rem; align-items: center; gap: .7rem; font-size: .85rem; }
.board__pos { color: var(--ivory-3); font-variant-numeric: tabular-nums; }
.board__rows li:first-child .board__pos { color: var(--violet); font-weight: 700; }
.board__name { font-weight: 600; }
.board__bar { height: 8px; border-radius: 4px; background: var(--bg-3); overflow: hidden; }
.board__bar i { display: block; height: 100%; border-radius: 4px; background: var(--ivory-3); transform-origin: left; }
.board__rows li:nth-child(1) .board__bar i { background: var(--violet); }
.board__rows li:nth-child(2) .board__bar i { background: var(--cyan); }
.board__rows li:nth-child(3) .board__bar i { background: var(--coral); }
.board__rows li:nth-child(4) .board__bar i { background: var(--lime); }
.board__bar .w1 { width: 100%; } .board__bar .w2 { width: 89%; } .board__bar .w3 { width: 79%; } .board__bar .w4 { width: 57%; }
.js .browser .board__bar i { transform: scaleX(0); }
.js .browser.is-in .board__bar i { transition: transform 1.4s var(--ease); transform: none; }
.board__pts { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }

/* ---------- path: idea to release ---------- */
.path { padding: clamp(5rem, 11vw, 9.5rem) var(--gutter) 0; }
.path > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.path__steps { list-style: none; padding: 0; margin-top: 0; margin-bottom: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 2rem); }
.path__step { --c: var(--amber); position: relative; padding-top: 1.75rem; border-top: 2px solid var(--rule); }
.path__step:nth-child(1) { --c: var(--violet); } .path__step:nth-child(2) { --c: var(--cyan); } .path__step:nth-child(3) { --c: var(--coral); } .path__step:nth-child(4) { --c: var(--lime); }
.path__step::before { content: ""; position: absolute; left: 0; top: -2px; height: 2px; width: 100%; background: var(--c); transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease); }
.path__step--you::before, .path.is-in .path__step::before { transform: none; }
.path__n { display: block; font-size: 3.5rem; line-height: 1; font-weight: 800; font-stretch: 125%; color: color-mix(in oklab, var(--c) 30%, var(--bg)); margin-bottom: 1rem; transition: color 1s var(--ease); }
.path.is-in .path__n { color: var(--c); }
.path__step--you .path__n, .path.is-in .path__step--you .path__n { color: var(--c); }
.path__t { font-size: 1.3rem; font-stretch: 115%; letter-spacing: -.01em; margin-bottom: .5rem; }
.path__step p { color: var(--ivory-2); margin-bottom: .75rem; }

/* ---------- projects ---------- */
.projects__grid { list-style: none; padding: 0; margin-top: 0; margin-bottom: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.75rem); }
.project__link { display: block; text-decoration: none; height: 100%; }
.project__cover { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-2); }
.cover-art { width: 100%; height: 100%; transition: transform 1.2s var(--ease), filter .6s var(--ease); filter: brightness(.9); }
.project__link:hover .cover-art, .project__link:focus-visible .cover-art { transform: scale(1.045); filter: none; }
.project__state {
  position: absolute; left: 1rem; top: 1rem; padding: .4rem .75rem; border-radius: 999px;
  background: rgb(12 11 10 / .8);
  font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ivory);
  display: inline-flex; align-items: center; gap: .5rem;
}
.project__state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); animation: pulse 2.4s ease-in-out infinite; }
.project__state--prototype::before { background: var(--violet); }
.project__state--dev::before { background: var(--cyan); }
.project__state--playtest::before { background: var(--coral); }
.project__state--released::before { background: var(--lime); animation: none; }
@keyframes pulse { 50% { opacity: .35; } }
.project__meta { padding-top: 1.25rem; }
.project__plat { margin: 0 0 .5rem; font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ivory); }
.project__plat span { color: var(--ivory-3); }
.project__title { font-size: clamp(1.35rem, 1.9vw, 1.7rem); line-height: 1.05; font-stretch: 112%; letter-spacing: -.015em; margin-bottom: .6rem; }
.project__body { color: var(--ivory-2); margin-bottom: 1rem; }
.project__cta { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .95rem; color: var(--amber); }
.project__cta svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .3s var(--ease); }
.project__link:hover .project__cta svg { transform: translateX(4px); }

/* ---------- account ---------- */
.account { background: var(--bg-2); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(3rem, 7vw, 7rem); align-items: center; }
.account__text { max-width: 34rem; justify-self: end; }
.lead { font-size: clamp(1.1rem, 1.4vw, 1.25rem); color: var(--ivory-2); margin: 1.5rem 0 2rem; }
.points { list-style: none; padding: 0; margin: 0 0 2.5rem; border-top: 1px solid var(--rule); }
.points li { padding: .95rem 0; border-bottom: 1px solid var(--rule); display: flex; gap: 1rem; align-items: baseline; }
.points li::before { content: ""; flex: none; width: 14px; height: 3px; background: var(--amber); transform: translateY(-.3em); }
.points li:nth-child(4n+1)::before { background: var(--cyan); }
.points li:nth-child(4n+2)::before { background: var(--coral); }
.points li:nth-child(4n+3)::before { background: var(--violet); }
.panel { margin: 0; max-width: 34rem; width: 100%; }
.panel__window {
  background: var(--bg-3); border: 1px solid var(--rule); border-radius: 14px; overflow: hidden;
  box-shadow: 0 40px 80px -40px rgb(0 0 0 / .8), 0 2px 6px rgb(0 0 0 / .3);
}
.panel__bar { display: flex; align-items: center; justify-content: space-between; padding: .85rem 1.25rem; border-bottom: 1px solid var(--rule); }
.panel__tag { font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--amber); }
.panel__mark { height: 14px; color: var(--ivory-3); }
.panel__who { display: flex; align-items: center; gap: 1rem; padding: 1.5rem 1.25rem 1.25rem; }
.panel__avatar { width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center; background: var(--amber); color: var(--ink); font-weight: 800; font-stretch: 125%; }
.panel__name { margin: 0; font-weight: 700; font-size: 1.1rem; }
.panel__since { margin: 0; color: var(--ivory-3); font-size: .9rem; }
.panel__stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.panel__stats div { padding: 1.1rem 1.25rem; }
.panel__stats div + div { border-left: 1px solid var(--rule); }
.panel__stats dt { font-size: .78rem; color: var(--ivory-3); font-weight: 500; }
.panel__stats dd { margin: .3rem 0 0; font-size: 1.9rem; font-weight: 700; font-stretch: 112%; font-variant-numeric: tabular-nums; }
.panel__recent { padding: 1.25rem; }
.panel__label { font-size: .78rem; color: var(--ivory-3); margin-bottom: .6rem; }
.panel__empty { margin: 0; padding: 1rem; border: 1px dashed var(--rule); border-radius: 8px; color: var(--ivory-2); font-size: .95rem; text-align: center; }
.panel figcaption { margin-top: 1rem; font-size: .9rem; color: var(--ivory-3); }

/* ---------- studio ---------- */
.studio { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem clamp(2rem, 6vw, 6rem); }
.studio > * { margin-top: 0; margin-bottom: 0; }
.studio__label { grid-column: 1 / -1; width: 100%; font-size: .85rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ivory-3); padding-bottom: 1.5rem; border-bottom: 1px solid var(--rule); }
.studio__quote { margin-left: 0; margin-right: 0; }
.studio__quote p { margin: 0; font-size: clamp(2rem, 4.4vw, 3.9rem); line-height: 1; font-weight: 800; font-stretch: 118%; letter-spacing: -.03em; text-wrap: balance; }
.studio__body { font-size: clamp(1.05rem, 1.3vw, 1.2rem); color: var(--ivory-2); max-width: 34rem; padding-top: .5rem; }
.link { color: var(--ivory); font-weight: 600; text-decoration-color: var(--amber); }
.link:hover { text-decoration-thickness: 2px; }

/* ---------- playtest: the one amber field ---------- */
.playtest { background: var(--amber); color: var(--ink); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 2rem 4rem; align-items: end; }
.playtest__title { font-size: clamp(2.8rem, 8vw, 7.5rem); line-height: .88; font-stretch: 125%; letter-spacing: -.035em; text-transform: uppercase; }
.playtest__side p { font-size: 1.15rem; margin-bottom: 1.5rem; max-width: 26rem; }

/* ---------- footer ---------- */
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem 3rem; padding: 2.5rem var(--gutter) calc(2.5rem + env(safe-area-inset-bottom)); }
.foot__brand { display: flex; align-items: center; gap: 1.5rem; }
.foot__brand p { margin: 0; color: var(--ivory-3); font-size: .9rem; }
.foot__links { display: flex; flex-wrap: wrap; gap: .5rem 2rem; }
.foot__links a { padding: .3rem 0; }
.foot__social { display: inline-flex; align-items: center; gap: .45rem; }
.foot__social svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.foot__social .dot { fill: currentColor; stroke: none; }

/* ---------- cookie notice: a small "before you play" prompt ---------- */
.consent {
  position: fixed; left: 50%; bottom: calc(1rem + env(safe-area-inset-bottom)); z-index: 60;
  width: min(68rem, calc(100vw - 2rem)); translate: -50% 0;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1rem 2rem;
  padding: 1.6rem 1.75rem 1.4rem; border-radius: 18px; overflow: hidden;
  background: radial-gradient(60% 120% at 0% 0%, rgb(244 176 78 / .1), transparent 70%), #17140f;
  border: 1px solid rgb(236 230 218 / .16);
  box-shadow: 0 30px 70px -20px rgb(0 0 0 / .85), 0 2px 8px rgb(0 0 0 / .4);
  animation: consent-in .7s .8s var(--ease) both;
}
@keyframes consent-in { from { opacity: 0; translate: -50% 1.5rem; } }
@media (prefers-reduced-motion: reduce) { .consent { animation: none; } }
.consent[hidden] { display: none; }
.consent__strip { position: absolute; inset: 0 0 auto; display: flex; height: 3px; }
.consent__strip i { flex: 1; }
.consent__strip i:nth-child(1) { background: var(--cyan); }
.consent__strip i:nth-child(2) { background: var(--gold); }
.consent__strip i:nth-child(3) { background: var(--coral); }
.consent__main { display: flex; gap: 1.25rem; align-items: flex-start; }
.consent__cookie { flex: none; width: 3rem; height: 3rem; fill: var(--gold); margin-top: .15rem; filter: drop-shadow(0 6px 12px rgb(244 176 78 / .25)); }
.consent__cookie .chip-o { fill: #6b3f17; }
.consent__t { margin: 0 0 .35rem; padding-right: 2.5rem; font-size: 1.15rem; font-weight: 800; font-stretch: 112%; letter-spacing: -.01em; }
.consent__b { margin: 0; max-width: 44rem; font-size: .92rem; line-height: 1.55; color: var(--ivory-2); }
.consent__b a { color: var(--ivory); text-decoration-color: var(--gold); }
.consent__x { position: absolute; top: .7rem; right: .7rem; width: 2.5rem; height: 2.5rem; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--ivory-3); cursor: pointer; transition: background-color .2s, color .2s; }
.consent__x:hover { background: rgb(236 230 218 / .08); color: var(--ivory); }
.consent__x svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.consent__actions { display: flex; align-items: center; gap: .6rem; }
.consent .btn { min-height: 2.75rem; padding: .55rem 1.25rem; font-size: .92rem; }
.consent__more { display: inline-flex; align-items: center; gap: .3rem; min-height: 2.75rem; padding: .5rem .75rem; border: 0; background: none; border-radius: 999px; font: 600 .92rem var(--font); color: var(--ivory-2); cursor: pointer; }
.consent__more:hover { color: var(--ivory); background: rgb(236 230 218 / .06); }
.consent__more svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: rotate .25s var(--ease); }
.consent__more[aria-expanded="true"] svg { rotate: 180deg; }
.consent__prefs { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: center; gap: 1rem 1.5rem; padding: 1.1rem 0 .1rem; border-top: 1px solid var(--rule); }
.consent__prefs[hidden] { display: none; }
.consent__actions { grid-row: 1; grid-column: 2; }
.toggle { position: relative; display: flex; gap: .85rem; align-items: flex-start; font-size: .86rem; line-height: 1.45; color: var(--ivory-2); cursor: pointer; }
.toggle input { position: absolute; opacity: 0; width: 2.6rem; height: 1.5rem; margin: 0; cursor: pointer; }
.toggle input:disabled { cursor: not-allowed; }
.toggle strong { display: block; color: var(--ivory); font-size: .92rem; }
.toggle__ui { flex: none; position: relative; width: 2.6rem; height: 1.5rem; border-radius: 999px; background: #3a342d; transition: background-color .25s var(--ease); }
.toggle__ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: calc(1.5rem - 6px); height: calc(1.5rem - 6px); border-radius: 50%; background: var(--ivory); transition: translate .25s var(--ease); }
.toggle input:checked + .toggle__ui { background: var(--lime); }
.toggle input:checked + .toggle__ui::after { translate: 1.1rem 0; background: var(--ink); }
.toggle input:disabled + .toggle__ui { opacity: .55; }
.toggle input:focus-visible + .toggle__ui { outline: 2px solid var(--amber); outline-offset: 3px; }
@media (max-width: 760px) {
  .consent { grid-template-columns: minmax(0, 1fr); padding: 1.35rem 1.15rem 1.1rem; gap: 1rem; bottom: calc(.6rem + env(safe-area-inset-bottom)); width: calc(100vw - 1.2rem); }
  .consent__cookie { width: 2.25rem; height: 2.25rem; }
  .consent__actions { grid-column: 1; grid-row: auto; display: grid; grid-template-columns: 1fr 1fr; }
  .consent__more { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
  .consent__prefs { grid-row: auto; grid-template-columns: minmax(0, 1fr); }
  .consent__prefs .btn { justify-self: start; }
}
.foot__btn { padding: .3rem 0; border: 0; background: none; font: 500 .95rem var(--font); color: var(--ivory-2); text-decoration: none; cursor: pointer; }
.foot__btn:hover { color: var(--ivory); }

/* ---------- errors ---------- */
.lost { min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 2rem 4rem; padding: calc(var(--top-h) + 3rem) var(--gutter) 4rem; max-width: var(--max); margin: 0 auto; }
.lost__code { margin: 0; font-size: clamp(7rem, 24vw, 22rem); line-height: .8; font-weight: 800; font-stretch: 125%; letter-spacing: -.05em; color: var(--amber); }
.lost__text p { color: var(--ivory-2); margin: 1.25rem 0 2rem; font-size: 1.15rem; }

/* ---------- inner pages ---------- */
.page main { padding-top: var(--top-h); }
.page-head { max-width: var(--max); margin: 0 auto; padding: clamp(3rem, 7vw, 6rem) var(--gutter) clamp(2rem, 4vw, 3rem); }
.h1 { font-size: clamp(2.6rem, 7vw, 6rem); line-height: .92; font-weight: 800; font-stretch: 125%; letter-spacing: -.035em; text-transform: uppercase; }
.page-head__intro { margin: 1.25rem 0 0; max-width: 36rem; color: var(--ivory-2); font-size: 1.15rem; }
.label { font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ivory-3); margin: 0 0 1rem; }
.muted { color: var(--ivory-3); font-size: .95rem; }
.empty { color: var(--ivory-3); padding: 2rem 0; }
code { font: 500 .88em/1 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; color: var(--ivory); background: rgb(236 230 218 / .07); padding: .15em .4em; border-radius: 4px; }

/* catalog */
.catalog { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) clamp(5rem, 10vw, 8rem); }
.filters { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; padding: 1.25rem 0; margin-bottom: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.filters__group { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.filters__group legend { float: left; margin-right: .75rem; font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ivory-3); }
.chip { display: inline-flex; align-items: center; min-height: 2.25rem; padding: .35rem .9rem; border-radius: 999px; border: 1px solid var(--rule); text-decoration: none; font-size: .9rem; font-weight: 500; color: var(--ivory-2); transition: border-color .2s, color .2s, background-color .2s; }
.chip:hover { color: var(--ivory); border-color: rgb(236 230 218 / .4); }
.chip[aria-current] { background: var(--ivory); border-color: var(--ivory); color: var(--ink); }
.projects__more { margin-top: clamp(2.5rem, 5vw, 4rem); }
.cover { position: relative; width: 100%; height: 100%; }
.cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.project__link:hover .cover img { transform: scale(1.045); }

/* game detail */
.page main:has(.game) { padding-top: 0; }
.game__hero { position: relative; min-height: min(78svh, 46rem); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.game__cover { position: absolute; inset: 0; z-index: -2; }
.game__veil { position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, var(--bg) 2%, rgb(12 11 10 / .55) 45%, rgb(12 11 10 / .35)); }
.game__head { width: 100%; max-width: var(--max); margin: 0 auto; padding: calc(var(--top-h) + 2rem) var(--gutter) clamp(2.5rem, 5vw, 4rem); }
.back { display: flex; width: fit-content; align-items: center; gap: .5rem; margin-bottom: 2rem; text-decoration: none; font-size: .9rem; font-weight: 600; color: var(--ivory-2); }
.back:hover { color: var(--ivory); }
.back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.game__state { display: inline-flex; align-items: center; gap: .55rem; margin: 0 0 1rem; font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.game__state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }
.game__title { font-size: clamp(2.8rem, 8vw, 7rem); line-height: .9; font-stretch: 125%; letter-spacing: -.035em; text-transform: uppercase; max-width: 16ch; }
.game__tagline { margin: 1.25rem 0 0; max-width: 34rem; font-size: clamp(1.1rem, 1.5vw, 1.3rem); color: var(--ivory-2); }
.game__layout { max-width: var(--max); margin: 0 auto; padding: clamp(2.5rem, 5vw, 4rem) var(--gutter) clamp(5rem, 10vw, 8rem); display: grid; grid-template-columns: minmax(0, 1fr) 22rem; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.prose { font-size: 1.1rem; color: var(--ivory-2); max-width: 42rem; }
.prose p, .prose li { margin: 0 0 1.1em; }
.prose h2 { font-size: 1.35rem; font-weight: 700; font-stretch: 110%; color: var(--ivory); margin: 2.75rem 0 1rem; letter-spacing: -.01em; }
.prose a { color: var(--ivory); text-decoration-color: var(--amber); }
.prose strong { color: var(--ivory); }
.prose ul { padding-left: 1.2rem; }
.prose li::marker { color: var(--amber); }
.trailer { margin-bottom: 3rem; }
.ai-note { margin-top: 2.5rem; padding: 1.25rem 1.4rem; border: 1px solid var(--rule); border-radius: 12px; background: var(--bg-2); max-width: 42rem; }
.ai-note p { color: var(--ivory-2); }
.trailer__frame { position: relative; aspect-ratio: 16 / 9; background: var(--bg-3); border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; }
.trailer__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.trailer__frame--blocked { display: grid; place-content: center; justify-items: center; gap: 1.25rem; padding: 2rem; text-align: center; }
.trailer__frame--blocked p { margin: 0; max-width: 30rem; color: var(--ivory-2); }
.game__facts { position: sticky; top: calc(var(--top-h) + 1.5rem); border-top: 1px solid var(--rule); }
.game__facts dl { margin: 0 0 2rem; }
.game__facts dl div { display: flex; justify-content: space-between; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--rule); }
.game__facts dt { color: var(--ivory-3); font-size: .92rem; }
.game__facts dd { margin: 0; font-weight: 600; text-align: right; }
.game__where { display: grid; gap: .6rem; }
.game__notify { background: var(--bg-3); border: 1px solid var(--rule); border-radius: 14px; padding: 1.5rem; }
.game__notify p { color: var(--ivory-2); }
.game__notify-t { font-weight: 700; color: var(--ivory) !important; margin-bottom: .4rem; }

/* auth */
.auth { min-height: calc(100svh - var(--top-h)); display: grid; place-items: center; padding: clamp(2.5rem, 6vw, 5rem) var(--gutter); position: relative; overflow: hidden; }
.auth::before { content: ""; position: absolute; width: 60rem; height: 60rem; right: -20rem; top: -25rem; background: radial-gradient(closest-side, rgb(240 164 75 / .09), transparent); pointer-events: none; }
.auth__panel { position: relative; width: min(27rem, 100%); }
.auth__title { font-size: clamp(2rem, 4vw, 2.8rem); line-height: .95; font-stretch: 125%; letter-spacing: -.03em; text-transform: uppercase; margin-bottom: .9rem; }
.auth__sub { color: var(--ivory-2); margin-bottom: 2rem; }
.auth__email { font-weight: 700; font-size: 1.1rem; margin-bottom: .75rem; }
.auth__alt { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); color: var(--ivory-3); font-size: .95rem; }
.auth__alt a, .form__aside { color: var(--ivory); font-weight: 600; text-decoration-color: var(--amber); }

/* forms */
.form { display: grid; gap: 1.25rem; }
.form > .btn:not(.btn--block) { justify-self: start; }
.form--code { margin-top: 1.5rem; }
.field { display: grid; gap: .45rem; }
.field label, .checks legend { font-size: .9rem; font-weight: 600; color: var(--ivory); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], input[type=search], select, textarea {
  width: 100%; min-height: 3rem; padding: .7rem .95rem; border-radius: 10px;
  font: 400 1rem/1.4 var(--font); color: var(--ivory); background: var(--bg-2);
  border: 1px solid rgb(236 230 218 / .2); transition: border-color .2s, box-shadow .2s;
}
textarea { min-height: 7rem; resize: vertical; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ivory-2) 50%), linear-gradient(135deg, var(--ivory-2) 50%, transparent 50%); background-position: calc(100% - 1.15rem) 55%, calc(100% - .8rem) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 2.5rem; }
input:hover, select:hover, textarea:hover { border-color: rgb(236 230 218 / .35); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgb(240 164 75 / .25); }
input::placeholder, textarea::placeholder { color: var(--ivory-3); }
input[type=file] { font: inherit; color: var(--ivory-2); }
input[type=file]::file-selector-button { font: 600 .9rem var(--font); margin-right: .9rem; padding: .55rem 1rem; border-radius: 999px; border: 1px solid rgb(236 230 218 / .35); background: transparent; color: var(--ivory); cursor: pointer; }
.field--error input, .field--error select, .field--error textarea { border-color: #e2755f; }
.field__msg { margin: 0; color: #f0957f; font-size: .9rem; }
.field__hint { margin: 0; color: var(--ivory-3); font-size: .88rem; }
.check { display: flex; gap: .75rem; align-items: flex-start; font-size: .95rem; color: var(--ivory-2); cursor: pointer; }
.check input, .switch input { flex: none; width: 1.15rem; height: 1.15rem; margin: .2rem 0 0; accent-color: var(--amber); }
.check a { color: var(--ivory); text-decoration-color: var(--amber); }
.check--error span { color: #f0957f; }
.checks { border: 0; padding: 0; margin: 1.25rem 0 0; display: flex; flex-wrap: wrap; gap: .75rem 1.75rem; }
.checks legend { margin-bottom: .75rem; }
.switch { display: inline-flex; gap: .75rem; align-items: center; font-weight: 600; cursor: pointer; }
.switch input { margin: 0; width: 1.3rem; height: 1.3rem; }
.form__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem; }
.form__aside { font-size: .92rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.btn--block { width: 100%; }
.btn--danger { background: #c4492f; border-color: #c4492f; color: #fff; }
.btn--danger:hover { background: #d95a3f; border-color: #d95a3f; }
button.btn--danger { color: #fff; }

/* notices + flashes */
.notice { margin: 0 0 1.5rem; padding: .9rem 1.1rem; border-radius: 10px; background: var(--bg-3); border: 1px solid var(--rule); color: var(--ivory-2); }
.notice--error { border-color: rgb(226 117 95 / .5); background: rgb(196 73 47 / .12); color: #f6c2b6; }
.notice--warn { border-color: rgb(240 164 75 / .45); background: rgb(240 164 75 / .1); color: var(--ivory); }
.notice a { color: var(--ivory); font-weight: 600; }
.flashes { position: fixed; z-index: 70; top: calc(var(--top-h) + .75rem); left: 50%; transform: translateX(-50%); width: min(32rem, calc(100vw - 2rem)); display: grid; gap: .5rem; animation: fade .5s var(--ease) both; }
.flash { margin: 0; padding: .85rem 1.15rem; border-radius: 10px; background: var(--ivory); color: var(--ink); font-weight: 600; box-shadow: 0 20px 40px -16px rgb(0 0 0 / .8); }
.flash--error { background: #f3c1b5; }
.flashes.is-gone { opacity: 0; transform: translate(-50%, -8px); transition: opacity .4s, transform .4s; pointer-events: none; }

/* user menu */
.menu { position: relative; }
.menu summary { list-style: none; gap: .55rem; padding-left: .4rem; }
.menu summary::-webkit-details-marker { display: none; }
.menu__avatar { width: 1.8rem; height: 1.8rem; border-radius: 50%; display: grid; place-items: center; background: var(--amber); color: var(--ink); font-weight: 800; font-size: .85rem; }
.menu__name { max-width: 9rem; overflow: hidden; text-overflow: ellipsis; }
.menu__panel { position: absolute; right: 0; top: calc(100% + .5rem); min-width: 12rem; padding: .4rem; border-radius: 12px; background: var(--bg-3); border: 1px solid var(--rule); box-shadow: 0 24px 48px -16px rgb(0 0 0 / .8); display: grid; }
.menu__panel a, .menu__panel button { display: block; width: 100%; text-align: left; padding: .65rem .8rem; border-radius: 8px; border: 0; background: none; font: 500 .95rem var(--font); color: var(--ivory); text-decoration: none; cursor: pointer; }
.menu__panel a:hover, .menu__panel button:hover { background: rgb(236 230 218 / .07); }
.menu--nav { display: none; }
.menu__icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.menu__langs { display: flex; gap: .25rem; margin-top: .35rem; padding-top: .35rem; border-top: 1px solid var(--rule); }
.menu__langs a { flex: 1; text-align: center; color: var(--ivory-2); }
.menu__langs a[aria-current] { color: var(--ivory); background: rgb(236 230 218 / .07); }
.editor__file, .browser__url { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo-tag, .editor__dots { flex: none; }

/* account */
.acct { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) clamp(5rem, 10vw, 8rem); display: grid; grid-template-columns: 13rem minmax(0, 46rem); gap: clamp(2rem, 6vw, 6rem); }
.acct__nav, .adm__nav { position: sticky; top: calc(var(--top-h) + 1.5rem); align-self: start; display: grid; gap: .15rem; }
.acct__nav a, .adm__nav a { padding: .55rem .8rem; border-radius: 8px; text-decoration: none; color: var(--ivory-2); font-weight: 500; }
.acct__nav a:hover, .adm__nav a:hover { color: var(--ivory); background: rgb(236 230 218 / .05); }
.adm__nav a[aria-current] { color: var(--ivory); background: rgb(236 230 218 / .09); font-weight: 600; }
.block { padding: 2.25rem 0; border-top: 1px solid var(--rule); }
.block:first-child { border-top: 0; padding-top: 0; }
.block__title { font-size: 1.35rem; font-weight: 700; font-stretch: 112%; letter-spacing: -.01em; margin-bottom: 1.5rem; }
.block .form { max-width: 30rem; }
.row-action { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem 2rem; padding: 1.5rem 0 0; margin-top: 1.5rem; border-top: 1px dashed var(--rule); }
.row-action__t { margin: 0 0 .25rem; font-weight: 700; }
.row-action__b { margin: 0; color: var(--ivory-3); font-size: .95rem; }
.danger { margin-top: 2rem; padding: 1.5rem; border-radius: 14px; border: 1px solid rgb(196 73 47 / .45); background: rgb(196 73 47 / .06); max-width: 34rem; }

/* legal */
.legal { max-width: 52rem; margin: 0 auto; padding: clamp(3rem, 7vw, 6rem) var(--gutter) clamp(5rem, 10vw, 8rem); }
.legal__head { padding-bottom: 2rem; margin-bottom: 2.5rem; border-bottom: 1px solid var(--rule); }
.legal .h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); }
.legal__date { margin: 1rem 0 0; color: var(--ivory-3); }
.legal__body { max-width: none; }
.table-wrap { overflow-x: auto; margin: 0 0 1.5rem; border: 1px solid var(--rule); border-radius: 10px; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { padding: .75rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
th { font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ivory-3); background: var(--bg-2); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
td.num { font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ivory-2); }
td.right { text-align: right; white-space: nowrap; }
tr.dim td { opacity: .5; }

/* admin */
.page--admin .foot { display: none; }
.adm { max-width: 100rem; margin: 0 auto; padding: 2rem var(--gutter) 5rem; display: grid; grid-template-columns: 12rem minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); }
.adm__label { margin: 0 0 .75rem .8rem; font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--amber); }
.adm__lock { margin-top: 1rem; width: 100%; text-align: left; padding: .55rem .8rem; border: 0; border-radius: 8px; background: none; color: var(--ivory-3); font: 500 .9rem var(--font); cursor: pointer; }
.adm__lock:hover { color: var(--ivory); background: rgb(236 230 218 / .05); }
.adm__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 2rem; }
.adm__title { font-size: clamp(1.8rem, 3vw, 2.4rem); font-stretch: 118%; letter-spacing: -.025em; word-break: break-word; }
.adm__cols { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 3rem; }
.adm .block { padding: 2rem 0; }
.adm .block:first-child { border-top: 1px solid var(--rule); padding-top: 2rem; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 2.5rem; border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; }
.kpis div { padding: 1.25rem 1.4rem; }
.kpis div + div { border-left: 1px solid var(--rule); }
.kpis dt { font-size: .82rem; color: var(--ivory-3); }
.kpis dd { margin: .35rem 0 .2rem; font-size: 2.2rem; font-weight: 700; font-stretch: 112%; font-variant-numeric: tabular-nums; }
.kpis p { margin: 0; font-size: .88rem; color: var(--ivory-3); }
.kpis a { color: var(--ivory-2); }
.tag { display: inline-block; margin-right: .3rem; padding: .2rem .55rem; border-radius: 999px; font-size: .75rem; font-weight: 600; background: rgb(236 230 218 / .08); color: var(--ivory-2); white-space: nowrap; }
.tag--ok { background: rgb(111 179 90 / .16); color: #a9dc96; }
.tag--bad { background: rgb(196 73 47 / .2); color: #f3a896; }
.tag--accent { background: rgb(240 164 75 / .18); color: var(--amber-2); }
.toolbar { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-bottom: 1.5rem; }
.toolbar input[type=search] { max-width: 22rem; }
.toolbar select { width: auto; }
.pager { display: flex; flex-wrap: wrap; gap: .3rem; }
.pager a { min-width: 2.4rem; min-height: 2.4rem; display: grid; place-items: center; border-radius: 8px; text-decoration: none; color: var(--ivory-2); border: 1px solid var(--rule); }
.pager a[aria-current] { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.actions form { margin: 0; }
td.actions { justify-content: flex-end; }
.form--inline { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem; max-width: none !important; margin-top: 1.5rem; }
.form--inline .field { flex: 1 1 14rem; }
.form--admin { max-width: 62rem; display: block; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 1.5rem; }
.form__bar { position: sticky; bottom: 0; z-index: 5; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: .75rem 1rem; padding: 1rem 0; margin-top: 1rem; background: var(--bg); border-top: 1px solid var(--rule); }
.form__bar .check { margin-right: auto; }
.thumb { width: 10rem; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 8px; border: 1px solid var(--rule); margin: .5rem 0; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: 0; margin: 0 0 2rem; border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; }
.facts div { padding: 1rem 1.2rem; border-bottom: 1px solid var(--rule); border-right: 1px solid var(--rule); }
.facts dt { font-size: .8rem; color: var(--ivory-3); }
.facts dd { margin: .25rem 0 0; font-weight: 600; }
.lost__mark { width: clamp(8rem, 20vw, 16rem); height: auto; color: var(--ivory); }

/* ---------- narrow ---------- */
@media (max-width: 960px) {
  .top__nav { display: none; }
  .menu--nav { display: block; }
  .top__end .lang { display: none; }
  .menu__name { display: none; }
  .game__layout, .acct, .adm, .adm__cols { grid-template-columns: 1fr; }
  .game__facts { position: static; }
  .acct__nav, .adm__nav { position: static; display: flex; flex-wrap: wrap; gap: .25rem; }
  .adm__label, .adm__lock { display: none; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpis div:nth-child(3) { border-left: 0; }
  .kpis div:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .grid2 { grid-template-columns: 1fr; }
  .section-head, .account, .studio, .playtest, .lost { grid-template-columns: 1fr; }
  .section-head__intro, .account__text { justify-self: start; }
  .projects__grid { grid-template-columns: 1fr; gap: 3rem; }
  .make__grid { grid-template-columns: 1fr; }
  .tile--code, .tile--party, .tile--web { grid-column: auto; grid-row: auto; }
  .path__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.5rem; }
  .project__cover { aspect-ratio: 16 / 11; }
}
@media (max-width: 560px) {
  :root { --top-h: 4rem; }
  /* long Italian words in the expanded face overflow a phone: narrow the width axis instead of the size */
  .hero__title, .h1, .h2, .game__title, .auth__title, .playtest__title, .tile__title, .studio__quote p, .lost__code { font-stretch: 104%; overflow-wrap: break-word; }
  .hero__title { font-size: clamp(2.5rem, 12.2vw, 3.6rem); }
  .game__title { font-size: clamp(2.3rem, 11vw, 3.2rem); }
  .h1 { font-size: clamp(2.2rem, 10.5vw, 3.2rem); }
  .h2 { font-size: clamp(2rem, 9.4vw, 2.8rem); }
  .ln { white-space: pre-wrap; overflow-wrap: anywhere; }
  .editor__dots { display: none; }
  .legal table, .legal tbody, .legal tr, .legal td { display: block; width: 100%; }
  .legal thead { display: none; }
  .legal tr { padding: .75rem 0; border-bottom: 1px solid var(--rule); }
  .legal td { border: 0; padding: .25rem 1rem; }
  .legal td::before { content: attr(data-label); display: block; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ivory-3); }
  .top { gap: 1rem; }
  .top__end { gap: .5rem; }
  .hero__actions { width: 100%; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__foot { padding-bottom: 5rem; }
  .tile--party { flex-direction: column; align-items: stretch; }
  .phone { align-self: center; }
  .path__steps { grid-template-columns: 1fr; }
  .panel__stats dd { font-size: 1.5rem; }
  .foot { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}
