/* Temporal Distortion: the landing page. The board's charcoal and brass, the dunes' sand, the crews' cyan and red. */

@font-face { font-family: "Roboto"; src: url("fonts/roboto-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("fonts/roboto-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("fonts/roboto-black.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Roboto Condensed"; src: url("fonts/roboto-boldcondensed.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --board: #17110d;
  --board-2: #211812;
  --board-3: #2c2119;
  --brass: #b88a4a;
  --ink: #f7ecd9;
  --ink-muted: #cdbb9f;
  --sand: #ecd2a2;
  --sand-2: #e2bf83;
  --paper: #fdf5e6;
  --paper-ink: #2a1d12;
  --paper-muted: #6b5640;
  --gold: #ffc53d;
  --orange: #f3901f;
  --cyan: #29c4ee;
  --red: #e4443a;
  --radius: 14px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--board);
  color: var(--ink);
  font: 400 17px/1.6 "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: #ffe08a; }
b, strong { font-weight: 700; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
h2 {
  font: 700 clamp(28px, 4.4vw, 46px)/1.08 "Roboto Condensed", "Roboto", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--gold);
  margin-bottom: 0.8em;
  text-wrap: balance;
}
h3 { font-weight: 900; font-size: 19px; letter-spacing: 0.01em; margin-bottom: 0.4em; }
p { margin: 0 0 1em; }
.small { font-size: 15px; color: var(--ink-muted); }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: 780px; }
section { padding: clamp(56px, 9vw, 112px) 0; position: relative; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 10; background: var(--gold); color: var(--board); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }

/* the kicker: a small brass label with hex studs, like the rule of the logo */
.kicker {
  display: flex; align-items: center; gap: 14px;
  font: 700 15px/1 "Roboto", sans-serif; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--sand); margin-bottom: 28px;
}
.kicker::before, .kicker::after {
  content: ""; flex: 1; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--orange));
}
.kicker::after { background: linear-gradient(90deg, var(--orange), transparent); }

/* buttons: printed, raised, pressed */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 10px;
  font: 900 17px/1 "Roboto", sans-serif; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}
.btn svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.btn-steam {
  color: #2a1606;
  background: linear-gradient(180deg, #ffe07a 0%, var(--gold) 38%, var(--orange) 100%);
  box-shadow: 0 0 0 2px #3a210c, 0 5px 0 #8a4a10, 0 10px 24px rgba(0, 0, 0, 0.45);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-steam:hover { color: #2a1606; filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 0 0 2px #3a210c, 0 6px 0 #8a4a10, 0 14px 28px rgba(0, 0, 0, 0.5); }
.btn-steam:active { transform: translateY(4px); box-shadow: 0 0 0 2px #3a210c, 0 1px 0 #8a4a10, 0 4px 10px rgba(0, 0, 0, 0.45); }
.btn-ghost {
  color: var(--ink); background: rgba(23, 17, 13, 0.62);
  box-shadow: inset 0 0 0 2px rgba(247, 236, 217, 0.55);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.btn-ghost:hover { color: #fff; background: rgba(23, 17, 13, 0.8); box-shadow: inset 0 0 0 2px var(--cyan); }
.btn-big { min-height: 62px; padding: 0 36px; font-size: 19px; }

/* hero */
.hero {
  position: relative; isolation: isolate;
  min-height: min(92vh, 940px); min-height: min(92svh, 940px);
  display: grid; place-items: center; text-align: center;
  padding: 72px var(--gutter) 64px;
  overflow: hidden;
}
.hero-art, .hero-art img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero-art img { object-fit: cover; object-position: 50% 40%; }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 70% 55% at 50% 48%, rgba(23, 17, 13, 0.55), rgba(23, 17, 13, 0) 70%),
    linear-gradient(180deg, rgba(23, 17, 13, 0.35) 0%, rgba(23, 17, 13, 0.1) 35%, rgba(23, 17, 13, 0.55) 78%, var(--board) 100%);
}
.hero-content { width: 100%; max-width: 820px; }
.logo { margin: 0 auto; width: min(760px, 92vw); filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.55)); }
.logo img { width: 100%; }
.tagline {
  margin: 10px 0 28px;
  font: 700 clamp(19px, 2.6vw, 26px)/1.3 "Roboto Condensed", "Roboto", sans-serif;
  letter-spacing: 0.04em; text-transform: uppercase; color: #fff8ea;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.55), 0 0 18px rgba(0, 0, 0, 0.8);
}
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 18px; }
.facts {
  margin: 26px 0 0; font-size: 14px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--sand); text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9);
}

/* pitch */
.pitch { padding-top: clamp(40px, 6vw, 72px); }
.pitch p { color: var(--ink-muted); }
.lead { font-size: clamp(20px, 2.3vw, 24px); line-height: 1.5; color: var(--ink) !important; margin-bottom: 1.2em; }
.lead strong { color: var(--gold); }
.pitch em { font-style: italic; color: var(--ink); }

/* frames: the brass rim round the trailer and the shots */
.frame {
  border-radius: var(--radius); overflow: hidden; background: #000;
  box-shadow: 0 0 0 2px #0a0705, 0 0 0 5px var(--brass), 0 0 0 7px #0a0705, 0 24px 60px rgba(0, 0, 0, 0.6);
}
.trailer { padding-top: 0; }
.video-frame video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; }

/* the light sections: printed cards on sand */
.rules, .roles, .learn {
  color: var(--paper-ink);
  background:
    radial-gradient(ellipse 120% 80% at 50% 0%, rgba(255, 255, 255, 0.35), transparent 60%),
    linear-gradient(180deg, var(--sand) 0%, var(--sand-2) 100%);
}
.rules h2, .roles h2, .learn h2 { color: #6a3208; }
.rules::before, .learn::before {
  /* hazard stripes along the top, like the rim of the board */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10px;
  background: repeating-linear-gradient(-45deg, #f2b42a 0 14px, #17110d 14px 28px);
}
.roles { padding-top: 0; background: linear-gradient(180deg, var(--sand-2) 0%, #dbb270 100%); }

.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.cards.four { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.cards.three { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  position: relative; background: var(--paper); border-radius: var(--radius);
  padding: 26px 24px 22px;
  box-shadow: 0 0 0 2px #c79a55, 0 0 0 4px var(--paper), 0 0 0 5px rgba(106, 50, 8, 0.35), 0 12px 26px rgba(80, 40, 6, 0.22);
}
.card p { margin: 0; color: var(--paper-muted); font-size: 16px; line-height: 1.55; }
.card b { color: var(--paper-ink); }
.card h3 { color: var(--paper-ink); }

.hex {
  display: grid; place-items: center; width: 56px; height: 62px; margin-bottom: 16px;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  font: 900 22px/1 "Roboto", sans-serif; color: #fff;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.3);
}
.hex-gold { background: linear-gradient(180deg, var(--gold), var(--orange)); color: #3a1d05; text-shadow: none; }
.hex-cyan { background: linear-gradient(180deg, #6fe0ff, #138fc0); }
.hex-red { background: linear-gradient(180deg, #ff7468, #b5231b); }
.hex-sand { background: linear-gradient(180deg, #4a3a2c, #17110d); color: var(--gold); }

.role { padding-top: 22px; border-top: 0; }
.role h3 { font: 700 24px/1 "Roboto Condensed", "Roboto", sans-serif; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; }
.role::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; border-radius: var(--radius) var(--radius) 0 0; }
.role-attack::before { background: var(--red); }
.role-attack h3 { color: #b5231b; }
.role-defence::before { background: var(--cyan); }
.role-defence h3 { color: #0f7aa6; }
.role-utility::before { background: var(--orange); }
.role-utility h3 { color: #a8560b; }
.aside { margin: 30px 0 0; text-align: center; font: 700 20px/1.3 "Roboto Condensed", "Roboto", sans-serif; text-transform: uppercase; letter-spacing: 0.06em; color: #6a3208; }

/* gallery */
.shots { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
.shots a {
  display: block; border-radius: 10px; overflow: hidden; background: #000;
  box-shadow: 0 0 0 2px #0a0705, 0 0 0 4px rgba(184, 138, 74, 0.7), 0 12px 28px rgba(0, 0, 0, 0.5);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.shots a:hover { transform: translateY(-3px); box-shadow: 0 0 0 2px #0a0705, 0 0 0 4px var(--gold), 0 18px 34px rgba(0, 0, 0, 0.6); }
.shots img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* learn */
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px 40px; grid-template-columns: repeat(2, 1fr); }
.ticks li { position: relative; padding-left: 40px; color: var(--paper-muted); }
.ticks li b { color: var(--paper-ink); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 24px; height: 27px;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: linear-gradient(180deg, #6fe0ff, #138fc0);
}

/* bands over a render */
.table-band, .wishlist { isolation: isolate; overflow: hidden; }
.band-art, .band-art img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.band-art img { object-fit: cover; }
.table-band { min-height: 560px; display: flex; align-items: flex-end; }
.table-band::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(23, 17, 13, 0) 50%, rgba(23, 17, 13, 0.6) 100%);
}
.band-copy {
  max-width: 640px; padding: 30px 32px 12px; border-radius: var(--radius);
  background: rgba(23, 17, 13, 0.82); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 0 0 2px #0a0705, 0 0 0 4px rgba(184, 138, 74, 0.8), 0 20px 50px rgba(0, 0, 0, 0.5);
}
.band-copy h2 { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 0.5em; }
.band-copy p { font-size: 18px; color: var(--ink); }

.wishlist { text-align: center; padding: clamp(80px, 12vw, 150px) 0; }
.wishlist::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, rgba(23, 17, 13, 0.55), rgba(23, 17, 13, 0.88)); }
.wishlist p { font-size: 19px; margin-bottom: 30px; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9); }
.wishlist h2 { text-shadow: 0 2px 0 rgba(0, 0, 0, 0.6); }

/* support and privacy */
.support { background: var(--board-2); border-top: 1px solid var(--board-3); }
.two { display: grid; gap: 48px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.support h2 { font-size: clamp(26px, 3.4vw, 36px); }
.support p { color: var(--ink-muted); }
.support p b { color: var(--ink); }
.mail a {
  display: inline-block; font: 900 clamp(22px, 3vw, 30px)/1.2 "Roboto", sans-serif; color: var(--cyan);
  text-decoration: none; border-bottom: 3px solid rgba(41, 196, 238, 0.4); word-break: break-all;
}
.mail a:hover { color: #8be6ff; border-color: var(--cyan); }

.foot { padding: 32px 0 calc(32px + env(safe-area-inset-bottom)); text-align: center; font-size: 15px; color: var(--ink-muted); background: #0f0b08; }
.foot p { margin: 0 0 6px; }
.foot a { color: var(--ink); }

/* lightbox */
.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(8, 6, 4, 0.94); color: var(--ink);
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(8, 6, 4, 0.7); }
.lightbox img { max-width: calc(100vw - 32px); max-height: calc(100vh - 120px); width: auto; height: auto; border-radius: 8px; box-shadow: 0 0 0 3px var(--brass); }
.lb-btn {
  position: absolute; width: 52px; height: 52px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(247, 236, 217, 0.12); color: var(--ink); font: 400 34px/1 "Roboto", sans-serif;
}
.lb-btn:hover { background: rgba(247, 236, 217, 0.25); }
.lb-prev { left: 16px; top: 50%; translate: 0 -50%; }
.lb-next { right: 16px; top: 50%; translate: 0 -50%; }
.lb-close { right: 16px; top: 16px; }

@media (max-width: 900px) {
  .shots { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .shots li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  body { font-size: 16px; }
  .hero { min-height: auto; padding-top: 56px; padding-bottom: 48px; }
  .hero-art img { object-position: 50% 50%; }
  .cta { flex-direction: column; align-items: stretch; max-width: 360px; margin: 0 auto; }
  .facts { letter-spacing: 0.08em; font-size: 13px; }
  .shots { grid-template-columns: 1fr 1fr; gap: 10px; }
  .table-band { min-height: 520px; }
  .band-copy { padding: 24px 20px 8px; }
  .ticks { grid-template-columns: 1fr; }
  .lb-prev, .lb-next { top: auto; bottom: 16px; translate: none; }
  .lb-prev { left: calc(50% - 64px); }
  .lb-next { right: calc(50% - 64px); }
  .lightbox img { max-height: calc(100vh - 160px); }
}
