/* UP/SET download page. Palette, type, shapes and motion follow the game's own UI:
   unity/Assets/UpSet/Game/Look.cs (Palette), Ui.cs (Cut panels, Skew, Style), Menus.cs (the Play tile),
   Glyphs.cs (button prompts) and docs/art-direction.md sections 4.3 and 9. */

@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-style: normal; font-display: swap;
  src: url("fonts/BarlowCondensed-ExtraBold.woff") format("woff"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("fonts/BarlowCondensed-SemiBold.woff") format("woff"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("fonts/Barlow-Medium.woff") format("woff"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("fonts/Barlow-SemiBold.woff") format("woff"); }

:root {
  color-scheme: dark;
  /* Palette (Look.cs) */
  --ink: #090A12;            /* UI ground */
  --panel: rgba(18, 20, 31, .92);
  --panel-solid: #12141F;
  --panel-light: #212433;
  --row: rgba(26, 28, 41, .9);
  --row-hover: #2E3045;
  --text: #F0F2FA;           /* one icy white for words */
  --text-dim: #9EA6BD;
  --brand: #FF8A26;          /* "go" and "selected": Play, the page underline */
  --brand-foot: rgba(89, 31, 0, .22);
  --brand-word: #1F0F08;     /* the Play tile's sub line */
  --accent: #FFD640;         /* gold: perfect touches only */
  --good: #8CD9FF;
  --ember: #B33224;
  --tide-plate: #2173D1;
  --ember-dark: #5C140F;
  --tide-dark: #0F386B;
  --outline-ink: rgba(5, 6, 11, .92);
  /* Glyphs.cs */
  --cap: #F2F5FC;
  --cap-lip: #B8BDCC;
  --cap-edge: rgba(10, 13, 20, .9);
  --glyph-body: rgba(18, 20, 28, .95);

  --display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --body: "Barlow", "Segoe UI", system-ui, sans-serif;

  --cut: 14px;               /* Ui.Cut: top-right and bottom-left corners */
  --lean: -12deg;            /* the Play tile's skew; headings */
  --lean-soft: -8deg;        /* secondary tiles */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --t: .24s;                 /* quarter-second fades and slides */
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 500 17px/1.55 var(--body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
b, strong { font-weight: 600; color: var(--text); }
:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; padding: 10px 14px; background: var(--brand); color: var(--ink);
  font: 800 18px var(--display); text-transform: uppercase; text-decoration: none; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------------------------------------------------------------- shapes and type */

.cut { clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut))); }
.lean { display: inline-block; transform: skewX(var(--lean)); }
.display { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: .005em; line-height: .92; }
.label { font: 600 15px/1.2 var(--display); text-transform: uppercase; letter-spacing: .08em; color: var(--text-dim); }

/* Words over pictures: a dark outline all round and a soft drop (Ui.Legible). */
.legible { text-shadow: 0 0 2px var(--outline-ink), 1px 1px 0 var(--outline-ink), -1px -1px 0 var(--outline-ink),
  1px -1px 0 var(--outline-ink), -1px 1px 0 var(--outline-ink), 1px 3px 2px rgba(0, 0, 0, .35); }

/* The icon's split: Ember's orange, a white slash, Tide's blue. */
.split { height: 6px; background: linear-gradient(105deg, var(--brand) 0 calc(50% - 6px), var(--text) calc(50% - 6px) calc(50% + 6px), var(--tide-plate) calc(50% + 6px)); }

/* ---------------------------------------------------------------- top bar (the menu's tab strip) */

.bar { position: sticky; top: 0; z-index: 20; background: rgba(9, 10, 18, .82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(240, 242, 250, .06); }
.bar .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.bar__logo { flex: none; display: block; width: 132px; }
.bar__logo img { width: 100%; height: auto; }
.bar nav { margin: 0 auto 0 8px; }
.tabs { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.tabs a { position: relative; display: block; padding: 8px 12px; text-decoration: none; color: var(--text-dim);
  font: 800 20px/1 var(--display); text-transform: uppercase; transition: color var(--t) var(--ease); }
.tabs a span { display: inline-block; transform: skewX(var(--lean)); }
.tabs a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 4px; background: var(--brand);
  transform: skewX(var(--lean)) scaleX(0); transform-origin: left; transition: transform var(--t) var(--ease); }
.tabs a:hover, .tabs a[aria-current="true"] { color: var(--text); }
.tabs a:hover::after, .tabs a[aria-current="true"]::after { transform: skewX(var(--lean)) scaleX(1); }
.tabs .bumper { display: inline-grid; place-items: center; min-width: 24px; height: 22px; padding: 0 5px; border-radius: 4px;
  background: var(--cap); color: var(--ink); box-shadow: inset 0 -3px 0 var(--cap-lip); font: 600 12px/1 var(--body); }
.bar__who { flex: none; text-align: right; line-height: 1.05; }
.bar__who .display { display: block; font-size: 20px; }
.bar__who .label { font-size: 13px; color: var(--brand); }
.bar__get { display: none; }

/* ---------------------------------------------------------------- hero */

.hero { position: relative; isolation: isolate; overflow: hidden; min-height: min(860px, calc(100svh - 64px)); display: flex; align-items: stretch; }
.hero__bg { position: absolute; inset: 0; z-index: -3; background: #241a3a url("shots/hero.webp") center 40% / cover no-repeat; }
.hero__bg::after { content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 10, 18, .94) 0%, rgba(9, 10, 18, .78) 34%, rgba(9, 10, 18, .18) 64%, rgba(9, 10, 18, .30) 100%),
    linear-gradient(0deg, var(--ink) 0%, rgba(9, 10, 18, 0) 34%),
    linear-gradient(180deg, rgba(9, 10, 18, .55) 0%, rgba(9, 10, 18, 0) 22%); }
/* An impact frame's radial speed lines, only toward the edges. */
.hero__lines { position: absolute; inset: -20%; z-index: -2; pointer-events: none; opacity: .5;
  background: repeating-conic-gradient(from 0deg at 34% 46%, rgba(240, 242, 250, .07) 0deg .7deg, transparent .7deg 5.3deg);
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 34% 46%, transparent 38%, #000 80%);
  mask-image: radial-gradient(ellipse 60% 55% at 34% 46%, transparent 38%, #000 80%); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 32px 56px; align-items: end;
  padding-top: clamp(28px, 6vh, 72px); padding-bottom: clamp(32px, 7vh, 72px); }
.hero__brand { align-self: center; }
.hero__logo { width: min(100%, 660px); height: auto; margin: 0 0 18px -2.5%; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .35)); }
.hero__pitch { max-width: 33em; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: var(--text); }
.hero__pitch em { font-style: normal; color: var(--text); font-weight: 600; }
.hero__note { max-width: 36em; font-size: 15px; color: var(--text-dim); }

/* The main menu's stack, bottom right: First Set, three tiles, then Play. */
.menu { display: grid; gap: 12px; }
.firstset { display: block; padding: 12px 18px 13px; background: rgba(9, 10, 18, .72); text-align: center; text-decoration: none;
  transition: background var(--t) var(--ease); }
.firstset:hover { background: rgba(26, 28, 41, .9); }
.firstset .display { display: block; font-size: 26px; }
.firstset .display span { display: inline-block; transform: skewX(var(--lean-soft)); }
.firstset .label { display: block; margin-top: 4px; font-size: 14px; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }

.tile { position: relative; display: block; text-decoration: none; color: var(--text);
  filter: drop-shadow(0 5px 0 rgba(0, 0, 0, .35)); transition: transform var(--t) var(--ease); }
/* The focus outline sits behind the tile, a little larger, so it shows as a white edge (Menus.Tile). */
.tile::before { content: ""; position: absolute; inset: -5px; background: var(--text); opacity: 0;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
  transition: opacity .06s linear; }
.tile:hover::before, .tile:focus-visible::before { opacity: 1; }
/* Download is the selected tile, as Play is when the main menu opens: its white edge shows from the start. */
.tile--hero::before { opacity: 1; }
.tile:focus-visible { outline: none; }
.tile:hover, .tile:focus-visible { transform: scale(1.04); }
.tile:active { transform: scale(1.0); }
.tile__face { position: relative; display: block; height: 100%; background: var(--row);
  transition: background .06s linear, filter .06s linear; }
.tile:hover .tile__face, .tile:focus-visible .tile__face { background: var(--row-hover); }
.tile--small .tile__face { padding: 12px 8px 11px; text-align: center; }
.tile--small .display { display: block; font-size: 22px; line-height: 1; }
.tile--small .display span { display: inline-block; transform: skewX(var(--lean-soft)); }
.tile--small .label { display: block; margin-top: 5px; font-size: 13px; }

/* The Play tile, as DOWNLOAD: the brand's orange with dark words, a darker band along its foot, the word huge and
   leaning, the details in a line under it, a keycap in the corner. */
.tile--hero:hover, .tile--hero:focus-visible { transform: scale(1.025); }
.tile--hero .tile__face { background: var(--brand); color: var(--ink); padding: 14px 28px 0 30px; min-height: 168px;
  display: flex; flex-direction: column; }
.tile--hero:hover .tile__face, .tile--hero:focus-visible .tile__face { background: var(--brand); filter: brightness(1.08); }
.tile--hero:active .tile__face { filter: brightness(.88); }
.tile__word { display: flex; align-items: center; gap: 16px; flex: 1; }
.tile__word .display { font-size: clamp(56px, 6.3vw, 98px); line-height: .9; padding: 6px 0 4px; }
.tile__word .display span { display: inline-block; transform: skewX(var(--lean)); }
.tile__arrow { flex: none; width: clamp(34px, 3.4vw, 50px); height: auto; margin-left: auto; transform: skewX(var(--lean)); }
.tile__foot { margin: 0 -28px 0 -30px; padding: 10px 28px 11px 30px; background: var(--brand-foot); color: var(--brand-word);
  font: 600 clamp(15px, 1.35vw, 19px)/1.2 var(--display); text-transform: uppercase; letter-spacing: .05em;
  clip-path: polygon(0 0, 100% 0, 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut))); }
.tile__foot .dot { padding: 0 .45em; }
.tile__foot .commit { text-transform: none; letter-spacing: .03em; }

.dl-meta { display: grid; gap: 4px; padding: 2px 4px 0; font-size: 14px; color: var(--text-dim); }
.dl-meta .row { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; }
.dl-meta .row > span { display: inline-flex; align-items: center; gap: 8px; }
.dl-meta kbd { min-width: 0; height: 22px; padding: 0 6px; border-radius: 4px; font-size: 11px; letter-spacing: .04em;
  box-shadow: inset 0 -2px 0 var(--cap-lip), 0 0 0 1px var(--cap-edge); }
.sha { font-size: 12px; line-height: 1.45; color: #7D849A; word-break: break-all; font-variant-numeric: tabular-nums; }
.sha code { font: inherit; color: var(--text-dim); }
.copy { display: none; margin-left: 6px; padding: 1px 7px; border: 1px solid rgba(240, 242, 250, .2); border-radius: 4px; background: transparent;
  color: var(--text-dim); font: 600 11px/1.5 var(--body); letter-spacing: .04em; text-transform: uppercase; cursor: pointer; }
.js .copy { display: inline-block; }
.copy:hover { color: var(--text); border-color: rgba(240, 242, 250, .5); }

/* ---------------------------------------------------------------- sections */

section { position: relative; }
.sec { padding: clamp(64px, 10vw, 120px) 0 0; }
.sec__head { display: grid; gap: 10px; margin-bottom: clamp(24px, 4vw, 40px); }
.sec__head h2 { margin: 0; font-size: clamp(46px, 7vw, 84px); }
.sec__head h2 .lean { padding-right: .08em; }
.sec__head h2::after { content: ""; display: block; width: 72px; height: 6px; margin-top: 14px; background: var(--brand); transform: skewX(var(--lean)); }
.sec__head p { max-width: 40em; margin: 4px 0 0; color: var(--text-dim); font-size: 18px; }

/* ---------------------------------------------------------------- gallery */

.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.shots li:first-child { grid-column: span 2; grid-row: span 2; }
.shot { position: relative; display: block; height: 100%; text-decoration: none; color: var(--text); }
.shot__frame { display: block; position: relative; height: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: var(--panel-solid); }
.shots li:first-child .shot__frame { aspect-ratio: auto; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease), filter var(--t) var(--ease); }
.shot:hover img, .shot:focus-visible img { transform: scale(1.04); }
.shot::before { content: ""; position: absolute; inset: -4px; background: var(--text); opacity: 0; transition: opacity .06s linear;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px)); }
.shot:hover::before, .shot:focus-visible::before { opacity: 1; }
.shot:focus-visible { outline: none; }
.shot .shot__frame { clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px)); }
.shot__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 14px 22px; pointer-events: none;
  background: linear-gradient(0deg, rgba(9, 10, 18, .88) 0%, rgba(9, 10, 18, .55) 48%, rgba(9, 10, 18, 0) 100%); }
.shot__cap .display { display: block; font-size: clamp(24px, 2.3vw, 32px); }
.shot__cap .display span { display: inline-block; transform: skewX(-13deg); }
.shot__cap .label { display: block; margin-top: 4px; color: #C3C8D8; font-size: 13px; }
.shots li:first-child .shot__cap .display { font-size: clamp(30px, 3.6vw, 52px); }
.shots li:first-child .shot__cap .label { font-size: 15px; }

/* ---------------------------------------------------------------- install and steam steps */

.reqs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.reqs li { padding: 7px 14px 7px 12px; background: var(--panel-light); font: 600 15px/1.2 var(--display); text-transform: uppercase; letter-spacing: .06em;
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px)); }
.reqs li b { color: var(--text); font-weight: 600; }
.reqs li { color: var(--text-dim); }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps--stack { grid-template-columns: minmax(0, 1fr); }
.step { position: relative; padding: 22px 22px 22px; background: var(--panel); counter-increment: step; }
.step h3 { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; font-size: 30px; }
/* The step's number on a small plate, as the HUD's score digits sit on theirs. */
.step h3::before { content: counter(step); flex: none; display: grid; place-items: center; width: 34px; height: 34px; padding-right: 2px;
  background: var(--panel-light); color: var(--text); font: 800 24px/1 var(--display); transform: skewX(var(--lean));
  box-shadow: inset 0 0 0 1.5px rgba(240, 242, 250, .16); }
.step h3 span { display: inline-block; transform: skewX(var(--lean-soft)); }
.step p { margin: 0; color: var(--text-dim); font-size: 16px; }
.step p + p { margin-top: 10px; }
.step .chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 12px; }
.chip { display: inline-block; padding: 4px 10px; border: 1px solid rgba(240, 242, 250, .35); border-radius: 2px; color: var(--text);
  font: 600 14px/1.3 var(--body); }
.chip--go { background: var(--text); color: var(--ink); border-color: var(--text); }
.arrow { color: var(--text-dim); font-weight: 600; }
.then { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }

/* The scoreboard (Hud): Ember's plate, the clock, Tide's plate. */
.together { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 48px; align-items: start; }
.score { display: inline-flex; align-items: stretch; height: 54px; padding: 4px; border-radius: 8px; background: #1A1620;
  box-shadow: 0 0 0 1.5px rgba(5, 6, 11, .9), 0 10px 24px rgba(0, 0, 0, .35); font: 800 22px/1 var(--display); text-transform: uppercase; }
.score > span { display: flex; align-items: center; }
.score__team { gap: 18px; padding: 0 14px; color: #fff; }
.score__team b { font-size: 36px; font-weight: 800; }
.score__team--ember { background: var(--ember); border-radius: 5px 0 0 5px; }
.score__team--tide { background: var(--tide-plate); border-radius: 0 5px 5px 0; }
.score__clock { padding: 0 18px; font-size: 30px; color: var(--text); font-variant-numeric: tabular-nums; }
.score__team span, .score__clock span { display: inline-block; transform: skewX(var(--lean-soft)); }
.facts { display: grid; gap: 10px; margin: 26px 0 0; padding: 0; list-style: none; }
.facts li { position: relative; padding-left: 26px; color: var(--text-dim); }
.facts li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 12px; height: 8px; background: var(--text-dim); transform: skewX(var(--lean)); opacity: .6; }
.facts li b { color: var(--text); }

.trouble { margin-top: 28px; background: var(--panel); }
.trouble summary { display: flex; align-items: center; gap: 12px; padding: 16px 20px; cursor: pointer; list-style: none; }
.trouble summary::-webkit-details-marker { display: none; }
.trouble summary .display { font-size: 24px; }
.trouble summary .display span { display: inline-block; transform: skewX(var(--lean-soft)); }
.trouble summary::after { content: ""; width: 10px; height: 10px; margin-left: auto; border-right: 2.5px solid var(--text-dim); border-bottom: 2.5px solid var(--text-dim);
  transform: rotate(45deg); transition: transform var(--t) var(--ease); }
.trouble[open] summary::after { transform: rotate(225deg); }
.trouble dl { margin: 0; padding: 0 20px 18px; display: grid; gap: 14px; }
.trouble dt { font-weight: 600; color: var(--text); }
.trouble dd { margin: 2px 0 0; color: var(--text-dim); font-size: 16px; }

/* ---------------------------------------------------------------- controls */

.controls { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px 48px; align-items: start; }
.ctable { width: 100%; border-collapse: separate; border-spacing: 0 4px; font-size: 16px; }
.ctable caption { text-align: left; padding: 0 0 8px; color: var(--text-dim); font-size: 15px; }
.ctable th { padding: 4px 14px 6px; text-align: left; font: 600 14px/1.2 var(--display); text-transform: uppercase; letter-spacing: .08em; color: var(--text-dim); }
.ctable td { padding: 9px 14px; background: var(--row); vertical-align: middle; }
.ctable td:first-child { font-weight: 600; color: var(--text); }
.ctable td:first-child small { display: block; font-weight: 500; font-size: 14px; color: var(--text-dim); }
.ctable tr.mark td:first-child { box-shadow: inset 4px 0 0 var(--brand); }
.ctable td.ctable__or { color: var(--text-dim); }
.in { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 5px 6px; }
.in .or { color: var(--text-dim); font-size: 14px; }

/* Glyphs.cs: keys are light keycaps; the mouse with its button lit; pad buttons in their colours. */
kbd, .g { display: inline-grid; place-items: center; vertical-align: middle; }
kbd { min-width: 30px; height: 30px; padding: 0 8px; border-radius: 6px; background: var(--cap); color: #23262F;
  box-shadow: inset 0 -3px 0 var(--cap-lip), 0 0 0 1.5px var(--cap-edge); font: 600 14px/1 var(--body); }
.g { width: 30px; height: 30px; }
.g svg { width: 100%; height: 100%; }
.face { width: 30px; height: 30px; border-radius: 50%; background: var(--glyph-body); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .8);
  font: 800 17px/1 var(--display); }
.face--a { color: #73D952; } .face--b { color: #FA5C52; } .face--x { color: #529EFF; } .face--y { color: #FFD438; }
.face svg { width: 15px; height: 15px; }
.pill { width: auto; min-width: 36px; height: 26px; padding: 0 8px; border-radius: 13px; background: var(--glyph-body); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .8);
  color: var(--text); font: 800 15px/1 var(--display); }
.pill--trig { border-radius: 6px 6px 13px 13px; }
.stick { width: 30px; height: 30px; border-radius: 50%; background: var(--glyph-body); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .8), inset 0 0 0 6px var(--glyph-body), inset 0 0 0 7.5px rgba(255, 255, 255, .35);
  color: var(--text); font: 800 14px/1 var(--display); }
.stick--press::after { content: ""; position: absolute; }
.slash { color: var(--text-dim); padding: 0 1px; }

.tips { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.tip { padding: 18px 20px 18px; background: var(--panel); }
.tip h3 { margin: 0 0 6px; font-size: 26px; }
.tip h3 span { display: inline-block; transform: skewX(var(--lean-soft)); }
.tip p { margin: 0; color: var(--text-dim); font-size: 16px; }
.tip--perfect h3 { color: var(--accent); }
.tips__title { margin: 0 0 14px; font-size: 36px; }
.tips__title span { display: inline-block; transform: skewX(var(--lean)); }

/* ---------------------------------------------------------------- footer */

.foot { margin-top: clamp(72px, 10vw, 128px); background: #06070D; }
.foot .wrap { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px 40px; align-items: center; padding-top: 36px; padding-bottom: 40px; }
.foot__logo { width: 150px; height: auto; }
.foot p { margin: 0; color: var(--text-dim); font-size: 15px; }
.foot p + p { margin-top: 6px; }
.foot a { color: var(--text); text-underline-offset: 3px; }
.foot__again { text-align: right; }
.foot__again a { display: inline-block; padding: 10px 18px; background: var(--brand); color: var(--ink); text-decoration: none; font: 800 22px/1 var(--display); text-transform: uppercase;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px)); transition: filter .06s linear; }
.foot__again a span { display: inline-block; transform: skewX(var(--lean)); }
.foot__again a:hover { filter: brightness(1.08); }
.foot__fine { grid-column: 1 / -1; font-size: 13px !important; color: #6E7489 !important; }

/* ---------------------------------------------------------------- lightbox (scripted only) */

.lightbox { width: min(1280px, 94vw); max-width: none; max-height: 94vh; padding: 0; border: 0; background: transparent; color: var(--text); overflow: visible; }
.lightbox::backdrop { background: rgba(5, 6, 11, .9); backdrop-filter: blur(3px); }
.lightbox figure { margin: 0; }
.lightbox img { width: 100%; height: auto; max-height: calc(94vh - 70px); object-fit: contain; background: var(--panel-solid);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px)); }
.lightbox figcaption { display: flex; align-items: baseline; gap: 14px; padding: 12px 4px 0; }
.lightbox figcaption .display { font-size: 30px; }
.lightbox figcaption .display span { display: inline-block; transform: skewX(-13deg); }
.lightbox__nav { display: flex; gap: 8px; margin-left: auto; }
.lightbox button { min-width: 44px; height: 40px; padding: 0 12px; border: 0; background: var(--row); color: var(--text); font: 800 18px/1 var(--display); text-transform: uppercase; cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px)); }
.lightbox button:hover, .lightbox button:focus-visible { background: var(--row-hover); }

/* ---------------------------------------------------------------- entrance (scripted, motion allowed) */

/* The hero's entrance moves things, never hides them: if a browser holds animations back, everything still shows. */
@keyframes slide-in { from { transform: translateX(-28px); } to { transform: none; } }
@keyframes rise-in { from { transform: translateY(14px); } to { transform: none; } }
@keyframes lines-in { from { opacity: 0; transform: scale(1.06); } to { opacity: .5; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .hero__logo { animation: slide-in .32s var(--ease) both .05s; }
  .hero__pitch, .hero__note { animation: rise-in .32s var(--ease) both .14s; }
  .menu > * { animation: rise-in .28s var(--ease) both; }
  .menu > :nth-child(1) { animation-delay: .18s; } .menu > :nth-child(2) { animation-delay: .22s; }
  .menu > :nth-child(3) { animation-delay: .26s; } .menu > :nth-child(4) { animation-delay: .30s; }
  .hero__lines { animation: lines-in .6s var(--ease) both; }
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .32s var(--ease), transform .32s var(--ease); }
  .js .reveal.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-delay: 0s !important; }
  .tile:hover, .tile:focus-visible, .shot:hover img, .shot:focus-visible img { transform: none; }
}

/* ---------------------------------------------------------------- narrower screens */

@media (max-width: 1080px) {
  .tabs .bumper { display: none; }
  .tabs a { padding: 8px 9px; font-size: 18px; }
  .bar__who { display: none; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hero { min-height: 0; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .hero__logo { width: min(100%, 560px); margin-left: -2%; }
  .hero__bg { background-position: 62% 30%; }
  .hero__bg::after { background:
    linear-gradient(180deg, rgba(9, 10, 18, .55) 0%, rgba(9, 10, 18, .35) 30%, rgba(9, 10, 18, .88) 62%, var(--ink) 100%); }
  .hero__lines { -webkit-mask-image: radial-gradient(ellipse 70% 40% at 40% 22%, transparent 40%, #000 90%); mask-image: radial-gradient(ellipse 70% 40% at 40% 22%, transparent 40%, #000 90%);
    background: repeating-conic-gradient(from 0deg at 40% 22%, rgba(240, 242, 250, .07) 0deg .7deg, transparent .7deg 5.3deg); }
  .together, .controls { grid-template-columns: minmax(0, 1fr); }
  .foot .wrap { grid-template-columns: minmax(0, 1fr); }
  .foot__again { text-align: left; }
}
@media (max-width: 760px) {
  .tabs { display: none; }
  .bar .wrap { height: 56px; justify-content: space-between; }
  .bar__logo { width: 112px; }
  .bar__get { display: inline-block; padding: 8px 14px; background: var(--brand); color: var(--ink); text-decoration: none; font: 800 18px/1 var(--display); text-transform: uppercase;
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px)); }
  .bar__get span { display: inline-block; transform: skewX(var(--lean)); }
  html { scroll-padding-top: 66px; }
  .shots { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .shots li:first-child { grid-column: auto; grid-row: auto; }
  .shots li:first-child .shot__frame { aspect-ratio: 16 / 9; }
  .shots li:first-child .shot__cap .display { font-size: 30px; }
  .shots li:first-child .shot__cap .label { font-size: 13px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  /* The controls as one card per action: the action, then keys and pad side by side. */
  .ctable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ctable, .ctable tbody { display: block; }
  .ctable tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin-bottom: 6px; background: var(--row); }
  .ctable td { background: transparent !important; padding: 8px 12px; }
  .ctable tr.mark { box-shadow: inset 4px 0 0 var(--brand); }
  .ctable tr.mark td:first-child { box-shadow: none; }
  .ctable td:first-child { grid-column: 1 / -1; padding-bottom: 0; }
  .ctable td:first-child small { display: inline; margin-left: 6px; }
  .ctable td[data-h]::before { content: attr(data-h); display: block; margin-bottom: 5px; font: 600 12px/1.2 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); }
  .ctable caption { display: block; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .tile--hero .tile__face { padding: 12px 18px 0 20px; min-height: 0; }
  .tile__foot { margin: 0 -18px 0 -20px; padding: 9px 16px 10px 20px; font-size: 14px; letter-spacing: .03em; }
  .tile__word .display { font-size: 58px; }
  .tile__arrow { width: 30px; margin-right: 2px; }
  .tiles { gap: 8px; }
  .tile--small .tile__face { padding: 10px 4px 9px; }
  .tile--small .display { font-size: 18px; }
  .tile--small .label { font-size: 11px; letter-spacing: .05em; }
  .firstset .display { font-size: 22px; }
  .firstset .label { font-size: 12px; }
  .score { height: 48px; }
  .score__team { gap: 12px; padding: 0 10px; font-size: 18px; }
  .score__team b { font-size: 30px; }
  .score__clock { padding: 0 12px; font-size: 24px; }
  .step h3 { font-size: 27px; }
}
