@font-face { font-family: "Kanit"; font-weight: 400; font-display: swap; src: url("./fonts/kanit-400.woff2") format("woff2"); }
@font-face { font-family: "Kanit"; font-weight: 600; font-display: swap; src: url("./fonts/kanit-600.woff2") format("woff2"); }
@font-face { font-family: "Kanit"; font-weight: 800; font-style: italic; font-display: swap; src: url("./fonts/kanit-800i.woff2") format("woff2"); }

/* World: the Eleven Gods key art at dusk. Night-stadium navy, jersey green, floodlight gold. */
:root {
  --night: #08122a;
  --night-2: #0f1e40;
  --pitch: #0d5a34;
  --pitch-2: #0a4628;
  --gold: #ffc93c;
  --ink: #f3f6fb;
  --ink-2: #b7c3da;
  --on-pitch-2: #cfe6d8;
  --wrap: 1280px;
  --gutter: clamp(20px, 5vw, 64px);
  --display: "Kanit", "Arial Narrow", system-ui, sans-serif;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; scrollbar-color: var(--night-2) var(--night); }
body { margin: 0; background: var(--night); color: var(--ink); font: 400 17px/1.6 var(--display); }
img { display: block; max-width: 100%; height: auto; }
p, h1, h2, h3, ul, dl, dd, figure { margin: 0; padding: 0; }
::selection { background: var(--gold); color: var(--night); }
a { color: inherit; text-underline-offset: 0.2em; }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
h1, h2, .game__line { font-family: var(--display); font-weight: 800; font-style: italic; line-height: 1; text-wrap: balance; }

.skip { position: absolute; left: 16px; top: -80px; z-index: 3; padding: 8px 16px; background: var(--gold); color: var(--night); }
.skip:focus-visible { top: 16px; }

.top { position: absolute; z-index: 2; inset: 0 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 32px; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding: 24px var(--gutter); }
.brand { display: block; line-height: 0; }
.brand img { width: auto; height: clamp(34px, 3vw, 42px); }
.top nav { display: flex; gap: 24px; font-weight: 600; }
.top nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; text-shadow: 0 1px 8px rgb(8 18 42 / 0.8); }
.top nav a:hover { color: var(--gold); text-decoration: underline; }

.btn { display: inline-flex; align-items: center; min-height: 52px; padding: 0 28px; border-radius: 10px; background: var(--gold); color: var(--night); font-weight: 600; font-size: 18px; text-decoration: none; transition: background-color 150ms ease-out, transform 150ms ease-out; }
.btn:hover { background: #ffdb78; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.hero { position: relative; display: flex; height: clamp(640px, 56.25vw, 900px); }
.hero__art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(180deg, rgb(8 18 42 / 0.78) 0, transparent 22%),
  radial-gradient(ellipse 70% 72% at 12% 26%, rgb(8 18 42 / 0.86) 0, rgb(8 18 42 / 0.55) 55%, transparent 100%); }
.hero__copy { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding: clamp(112px, 12vw, 168px) var(--gutter) 0; }
h1 { max-width: 7.6em; font-size: clamp(46px, 7.6vw, 112px); letter-spacing: -0.015em; text-shadow: 0 3px 24px rgb(8 18 42 / 0.65); }
.hero__copy p { max-width: 24em; font-size: clamp(18px, 1.6vw, 22px); text-shadow: 0 1px 10px rgb(8 18 42 / 0.9); }

.ribbon { position: relative; z-index: 1; width: 104%; margin: -34px -2% 0; padding: 16px var(--gutter); background: var(--pitch); border-block: 3px solid var(--gold); transform: rotate(-1.4deg); font-weight: 600; font-size: clamp(17px, 1.9vw, 24px); line-height: 1.3; text-align: center; animation: ribbon 800ms cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes ribbon { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

.game { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: center; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding: clamp(64px, 8vw, 112px) var(--gutter); }
.game__text { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.game__text h2 { width: min(100%, 460px); margin-left: -12px; }
.game__line { font-size: clamp(28px, 3vw, 40px); color: var(--gold); }
.game__text > p.game__site { color: var(--gold); font-weight: 600; }
.game__text > p:not(.game__line), .game__text li { color: var(--ink-2); max-width: 62ch; }
.game ul { display: grid; gap: 8px; margin-bottom: 8px; list-style: none; }
.game li { padding-left: 22px; background: linear-gradient(var(--gold), var(--gold)) 0 0.72em / 12px 3px no-repeat; color: var(--ink); }

.game__screens { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 28px); }
.game__screens figure:nth-child(2) { transform: translateY(-28px); }
.game__screens img { width: 100%; border-radius: 22px; box-shadow: 0 20px 44px rgb(0 0 0 / 0.5); outline: 1px solid rgb(255 255 255 / 0.14); outline-offset: -1px; }
.game__screens figcaption { margin-top: 12px; font-weight: 600; text-align: center; }

.game__screens:focus-visible { outline: 2px solid var(--gold); outline-offset: 6px; }
.game__note { margin-top: 16px; color: var(--ink-2); font-size: 15px; text-align: right; }

.company { background: var(--pitch); clip-path: polygon(0 clamp(20px, 3vw, 44px), 100% 0, 100% 100%, 0 100%); }
.company__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding: clamp(72px, 9vw, 120px) var(--gutter) clamp(56px, 7vw, 96px); }
.company h2 { margin-bottom: 20px; font-size: clamp(36px, 4vw, 56px); }
.company h3 { margin: 28px 0 8px; font-size: 20px; font-weight: 600; line-height: 1.3; }
.company__about p { max-width: 58ch; }
.company__about p + p { margin-top: 12px; }
.company__mail { display: inline-block; margin-bottom: 24px; font-size: clamp(24px, 3vw, 38px); font-weight: 600; color: var(--gold); line-height: 1.2; overflow-wrap: anywhere; }
.company__mail:hover { color: var(--ink); }
.company dl > div { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 4px 16px; padding-block: 12px; border-top: 1px solid rgb(255 255 255 / 0.28); }
.company dt { color: var(--on-pitch-2); }

.foot { display: grid; gap: 8px; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding: 40px var(--gutter) 48px; color: var(--ink-2); font-size: 15px; }
.foot .brand { margin-bottom: 12px; }
.foot .brand img { height: 32px; }

.lost { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 24px; min-height: 100vh; padding: var(--gutter); max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; }

@media (max-width: 900px) {
  .hero { flex-direction: column; height: auto; }
  .hero__art { position: static; order: 2; height: 320px; object-position: 82% 20%; }
  .hero::after { display: none; }
  .hero__copy { padding: 136px var(--gutter) 32px; }
  .ribbon { margin-top: -22px; text-align: left; }
  .game, .company__inner { grid-template-columns: minmax(0, 1fr); }
  .game__screens figure:nth-child(2) { transform: none; }
  .game__screens { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 24px; }
  .game__screens figure { flex: 0 0 min(62%, 260px); scroll-snap-align: start; }
  .company dl > div { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ribbon { animation: none; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}
