/* Sim Clash site. One dark game look (no light theme on purpose). System fonts only:
   nothing is fetched from anywhere but this folder. */
:root {
  --bg: #06080c;
  --bg2: #0b0f16;
  --panel: #111723;
  --panel2: #172030;
  --line: #243044;
  --text: #f4f6fb;
  --soft: #dde4ef;
  --muted: #aeb9cb;
  --p1: #ff5a36;
  --p1-deep: #b3260a;
  --p2: #2e9bff;
  --p2-deep: #0a45b8;
  --gold: #ffd21f;
  --gold-deep: #f0a800;
  --ok: #4be08f;
  --warn: #ffb53d;
  --display: "Bahnschrift", "DIN Condensed", "Avenir Next Condensed", "Roboto Condensed", "HelveticaNeue-CondensedBold", "sans-serif-condensed", "Arial Narrow", Impact, sans-serif;
  --body: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "SF Mono", Menlo, monospace;
  --wrap: 1240px;
  --gut: clamp(16px, 4vw, 44px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--body); overflow-x: hidden; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: #86c7ff; text-underline-offset: 3px; }
a:hover { color: #c0e1ff; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 3px; }
::selection { background: var(--p2); color: #fff; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gut) * 2); margin: 0 auto; padding: 0 var(--gut); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--gold); color: #111; padding: 10px 16px; font-weight: 700; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* ---------- display type ---------- */
h1, h2, h3, .btn, .nav a, .chip, .kicker, .num, .shouts li, .d {
  font-family: var(--display); font-stretch: 75%; font-weight: 700; text-transform: uppercase; letter-spacing: .01em;
}
h1, h2, h3 { margin: 0; line-height: .95; text-wrap: balance; }
h1 { font-size: clamp(50px, 9.5vw, 112px); font-style: italic; }
h2 { font-size: clamp(38px, 6.2vw, 76px); font-style: italic; }
h3 { font-size: clamp(24px, 3vw, 30px); line-height: 1.05; }
p { margin: 0 0 1em; }
.kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--gold); font-size: 17px; letter-spacing: .2em; margin: 0 0 14px; }
.kicker::before { content: ""; width: 6px; height: 22px; background: var(--gold); transform: skewX(-14deg); flex: none; }
@media (max-width: 520px) { .kicker { font-size: 15px; letter-spacing: .14em; } }
.lead { font-size: clamp(18px, 2.1vw, 22px); color: var(--soft); max-width: 62ch; }
.muted { color: var(--muted); }
.p1 { color: var(--p1); } .p2 { color: var(--p2); } .gold { color: var(--gold); }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 50; background: rgba(6, 8, 12, .9); border-bottom: 1px solid var(--line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.top-in { display: flex; align-items: center; gap: 14px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); flex: none; }
.brand img { width: 36px; height: 36px; }
.brand b { font-family: var(--display); font-stretch: 75%; font-size: 27px; font-style: italic; text-transform: uppercase; letter-spacing: .02em; line-height: 1; white-space: nowrap; }
.nav { display: flex; gap: 0; margin-left: auto; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: var(--soft); text-decoration: none; padding: 10px 11px; font-size: 18px; letter-spacing: .06em; white-space: nowrap; border-bottom: 3px solid transparent; }
.nav a:hover { color: #fff; border-bottom-color: var(--line); }
.nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--p1); }
.nav a.new::after { content: "new"; margin-left: 6px; font: 700 10px/1 var(--body); letter-spacing: .08em; background: var(--p1); color: #fff; padding: 2px 5px; border-radius: 2px; vertical-align: 3px; }
.top .btn { flex: none; }
@media (max-width: 1160px) {
  .top-in { flex-wrap: wrap; gap: 0 12px; padding-top: 8px; }
  .top .btn { margin-left: auto; }
  .nav { order: 3; width: calc(100% + var(--gut) * 2); margin: 0 calc(var(--gut) * -1); padding: 0 calc(var(--gut) - 11px); -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
  .nav a { padding: 8px 11px 9px; }
  .nav a:last-child { margin-right: 40px; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 10px 26px; font-size: 24px; font-style: italic; letter-spacing: .04em; text-decoration: none;
  border: 0; cursor: pointer; transform: skewX(-8deg); transition: transform .12s ease, filter .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn > * { transform: skewX(8deg); }
.btn-go { background: linear-gradient(180deg, #ffe45c, var(--gold) 45%, var(--gold-deep)); color: #17120a; box-shadow: 0 6px 0 #8a5d00, 0 14px 30px rgba(255, 190, 0, .25); }
.btn-go:hover { color: #17120a; filter: brightness(1.08); transform: skewX(-8deg) translateY(-2px); }
.btn-go:active { transform: skewX(-8deg) translateY(3px); box-shadow: 0 3px 0 #8a5d00; }
.btn-ghost { background: rgba(8, 11, 17, .55); color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .6); }
.btn-ghost:hover { color: #fff; background: rgba(255, 255, 255, .16); }
.btn-play { background: var(--p1); color: #fff; box-shadow: 0 6px 0 var(--p1-deep); }
.btn-play:hover { color: #fff; filter: brightness(1.1); transform: skewX(-8deg) translateY(-2px); }
.btn-sm { min-height: 40px; padding: 6px 16px; font-size: 19px; }
.btn-go.btn-sm { box-shadow: 0 4px 0 #8a5d00; }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 18px 20px; align-items: center; }
button.btn { font-family: var(--display); }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; border-bottom: 1px solid var(--line); background: #000; }
.hero-media { position: absolute; inset: 0; z-index: -2; margin: 0; }
.hero-media img, .hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.hero-media video { opacity: 0; transition: opacity .8s ease; }
.hero-media video.on { opacity: 1; }
.hero::after { /* the scrim the words sit on */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(4, 6, 10, .88) 0%, rgba(4, 6, 10, .62) 34%, rgba(4, 6, 10, .08) 68%, rgba(4, 6, 10, 0) 100%),
    linear-gradient(0deg, rgba(4, 6, 10, .95) 0%, rgba(4, 6, 10, .25) 26%, rgba(4, 6, 10, 0) 46%);
}
.hero-in { position: relative; min-height: min(86vh, 860px); display: flex; flex-direction: column; justify-content: flex-end; padding-top: clamp(40px, 9vh, 120px); padding-bottom: clamp(34px, 6vh, 72px); }
.hero-text { max-width: 720px; }
.wordmark { display: block; font-size: clamp(76px, 15vw, 190px); line-height: .82; margin: 0 0 6px -4px; letter-spacing: -.005em; }
.wordmark span { display: inline-block; text-shadow: 0 6px 0 rgba(0, 0, 0, .6), 0 0 44px rgba(0, 0, 0, .5); }
.wordmark .w1 { color: var(--p1); }
.wordmark .w2 { color: var(--p2); }
.tagline { font-family: var(--display); font-stretch: 75%; text-transform: uppercase; font-weight: 700; font-size: clamp(24px, 3.3vw, 40px); line-height: 1.04; margin: 14px 0 22px; color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, .6); max-width: 21em; text-wrap: balance; }
.tagline em { font-style: normal; color: var(--gold); }
.hero-note { margin: 22px 0 0; font-size: 15px; color: #cfd8e6; text-shadow: 0 1px 2px #000; }
.hero-note a { color: #e2f0ff; }
.hero-tools { position: absolute; right: var(--gut); bottom: 18px; display: flex; gap: 10px; align-items: center; font-size: 13px; color: #cfd8e6; }
.clip-toggle { background: rgba(8, 11, 17, .7); border: 1px solid rgba(255, 255, 255, .4); color: #fff; font: 600 13px var(--body); padding: 6px 12px; cursor: pointer; border-radius: 3px; }
.clip-toggle:hover { border-color: #fff; }
.hero-cap { text-shadow: 0 1px 2px #000; }
@media (max-width: 820px) {
  /* phones: the picture on top, the words under it on the page's own black */
  .hero-media { position: relative; aspect-ratio: 16 / 10; z-index: 0; }
  .hero-media img, .hero-media video { object-position: 50% 50%; }
  .hero::after { display: none; }
  .hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--bg) 0%, rgba(6, 8, 12, .5) 22%, rgba(6, 8, 12, 0) 48%); }
  .hero { background: var(--bg); }
  .hero-in { min-height: 0; padding-top: 0; padding-bottom: 34px; margin-top: -14vw; }
  .hero-tools { position: static; margin-top: 18px; justify-content: space-between; }
  .wordmark { font-size: clamp(74px, 23vw, 150px); }
  .btn-row .btn { flex: 1 1 auto; }
}

/* ---------- the owner's note ---------- */
.why { position: relative; isolation: isolate; background: var(--bg2); border-bottom: 1px solid var(--line); padding: clamp(40px, 6vw, 80px) 0; overflow: hidden; }
.why::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, rgba(255, 90, 54, .16), transparent 40%), linear-gradient(285deg, rgba(46, 155, 255, .18), transparent 44%); }
.why-in { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 70px); align-items: center; }
.why blockquote { margin: 0; padding: 0; }
.why .said { font-family: var(--display); font-stretch: 75%; font-weight: 700; font-style: italic; text-transform: none; font-size: clamp(27px, 3.9vw, 46px); line-height: 1.08; color: #fff; margin: 0 0 18px; text-wrap: balance; }
.why .said::before { content: "\201C"; color: var(--p1); }
.why .said::after { content: "\201D"; color: var(--p2); }
.why .more p { color: var(--soft); font-size: 18px; margin: 0 0 .7em; }
.why .more q { quotes: "\201C" "\201D"; color: #fff; }
.why .sig { font-size: 15px; color: var(--muted); margin: 14px 0 0; }
.why figure { margin: 0; }
.why figure img { width: 100%; border: 3px solid #fff; box-shadow: -10px 10px 0 var(--p1), 10px -10px 0 var(--p2); }
.why figcaption { font-size: 14px; color: var(--muted); margin-top: 20px; }
@media (max-width: 900px) { .why-in { grid-template-columns: 1fr; } .why figure { margin: 6px 8px 0; } }

/* ---------- what is new strip ---------- */
.newstrip { background: linear-gradient(90deg, #1a1206, #1c1508 40%, #0d1320); border-bottom: 1px solid var(--line); }
.newstrip-in { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; padding-top: 16px; padding-bottom: 16px; }
.newstrip b.tag { font-family: var(--display); font-stretch: 75%; font-style: italic; font-size: 22px; text-transform: uppercase; background: var(--gold); color: #17120a; padding: 3px 12px 1px; transform: skewX(-8deg); white-space: nowrap; }
.newstrip ul { display: flex; flex-wrap: wrap; gap: 4px 20px; list-style: none; margin: 0; padding: 0; flex: 1 1 420px; font-size: 15.5px; color: var(--soft); }
.newstrip li::before { content: "+ "; color: var(--gold); font-weight: 700; }
.newstrip a.more { font-weight: 700; white-space: nowrap; }

/* ---------- sections ---------- */
.sec { padding: clamp(56px, 8vw, 110px) 0; }
.sec-alt { background: var(--bg2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { margin-bottom: clamp(26px, 4vw, 46px); max-width: 880px; }
.sec-head p { margin: 16px 0 0; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(26px, 5vw, 64px); align-items: center; }
.split.flip > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split.flip > :first-child { order: 0; } }
.shot { margin: 0; }
.shot img { width: 100%; border: 2px solid var(--line); background: #000; }
.shot figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; }
.shot.tilt-l img { box-shadow: -10px 10px 0 var(--p1); }
.shot.tilt-r img { box-shadow: 10px 10px 0 var(--p2); }
.ticks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .42em; width: 14px; height: 14px; background: var(--gold); transform: skewX(-14deg); }
.ticks b { color: #fff; }

.grid { display: grid; gap: 20px; }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1020px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .g3, .g2, .g4 { grid-template-columns: 1fr; } }
.card { background: var(--panel); border: 1px solid var(--line); padding: 22px; }
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }

/* ---------- the worlds ---------- */
/* a stage card: --a / --b are the stage's theme colours (public/arcade/match.js THEMES) */
.worlds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 1020px) { .worlds { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .worlds { grid-template-columns: 1fr; gap: 14px; } }
.stage { position: relative; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); overflow: hidden; }
.stage::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: linear-gradient(90deg, var(--a), var(--b)); z-index: 5; }
.stage-img { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--a), var(--b)); overflow: hidden; }
.stage-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.stage:hover .stage-img img { transform: scale(1.045); }
.stage-no { position: absolute; left: 0; bottom: 0; font-family: var(--display); font-stretch: 75%; font-style: italic; font-weight: 700; font-size: 34px; line-height: 1; padding: 6px 16px 4px 12px; background: var(--panel); color: var(--a); clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 100%, 0 100%); z-index: 2; transition: opacity .18s; }
.stage-tag { position: absolute; right: 10px; top: 14px; background: #ff5a1f; color: #fff; font: 700 12.5px var(--body); letter-spacing: .06em; text-transform: uppercase; padding: 4px 9px; box-shadow: 0 2px 0 rgba(0, 0, 0, .5); z-index: 2; }
.stage-tag.sd { background: #10141c; }
.stage-body { padding: 14px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; background: linear-gradient(180deg, color-mix(in srgb, var(--b) 26%, transparent), transparent 70%); }
.stage h3 { font-size: 32px; font-style: italic; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.chip { font-size: 16px; letter-spacing: .06em; padding: 3px 9px 2px; background: rgba(255, 255, 255, .1); color: #fff; white-space: nowrap; }
.chip.par { background: #fff; color: #10141c; }
.chip.yd { background: var(--gold); color: #17120a; }
.stage p { margin: 0; font-size: 15.5px; color: var(--soft); }
.pips { display: inline-flex; gap: 3px; vertical-align: middle; }
.pips i { width: 7px; height: 14px; background: rgba(255, 255, 255, .22); transform: skewX(-14deg); }
.pips i.on { background: var(--gold); }
/* the three routes: over the picture on hover, focus or a tap on the button */
.routes-btn { position: absolute; right: 10px; bottom: 10px; z-index: 4; font: 700 12.5px var(--body); letter-spacing: .06em; text-transform: uppercase; color: #fff; background: rgba(8, 11, 17, .78); border: 1px solid rgba(255, 255, 255, .5); padding: 6px 10px; cursor: pointer; border-radius: 3px; }
.routes-btn:hover { border-color: #fff; }
.routes { list-style: none; margin: 0; padding: 12px 16px 10px; display: grid; gap: 6px; align-content: end; font-size: 14.5px; }
.routes li { display: grid; grid-template-columns: 66px 1fr; gap: 0 8px; align-items: baseline; line-height: 1.3; }
.routes b { font-family: var(--display); font-stretch: 75%; font-size: 15px; letter-spacing: .1em; text-transform: uppercase; }
.routes span { color: #fff; font-weight: 600; }
.routes small { grid-column: 2; color: #cfd8e6; font-size: 13px; }
.routes .r-safe b { color: #5fe08d; } .routes .r-risky b { color: #ffbe3d; } .routes .r-rocket b { color: #ff8a5c; }
/* with the script (html.js): the list is laid over the picture and shown on demand */
.js .stage-img .routes { position: absolute; inset: 0; z-index: 3; background: linear-gradient(0deg, rgba(5, 7, 11, .96) 0%, rgba(5, 7, 11, .9) 55%, rgba(5, 7, 11, .6) 100%); padding: 16px 16px 46px; opacity: 0; visibility: hidden; transition: opacity .18s ease, visibility .18s; }
.js .stage.open .stage-img .routes, .js .stage-img:focus-within .routes { opacity: 1; visibility: visible; }
@media (hover: hover) { .js .stage:hover .stage-img .routes { opacity: 1; visibility: visible; } .js .stage:hover .stage-no { opacity: 0; } }
.js .stage.open .stage-no, .js .stage-img:focus-within .stage-no { opacity: 0; }
/* without the script the list is simply part of the card */
html:not(.js) .routes-btn { display: none; }
html:not(.js) .stage-img { aspect-ratio: auto; }
html:not(.js) .stage-img img { aspect-ratio: 16 / 9; height: auto; }
html:not(.js) .stage-img .routes { background: #0a0e15; }

/* the stadium, full width */
.dome { position: relative; isolation: isolate; margin: clamp(40px, 6vw, 72px) 0 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #000; overflow: hidden; }
.dome img { width: 100%; height: clamp(360px, 56vw, 760px); object-fit: cover; object-position: 50% 60%; }
.dome::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(4, 6, 10, .95) 0%, rgba(4, 6, 10, .35) 34%, rgba(4, 6, 10, 0) 60%); pointer-events: none; }
.dome-text { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding-bottom: clamp(20px, 4vw, 48px); }
.dome-text h2 { font-size: clamp(44px, 8vw, 104px); color: var(--gold); text-shadow: 0 5px 0 rgba(0, 0, 0, .6); }
.dome-text p { max-width: 60ch; font-size: clamp(16px, 1.9vw, 20px); color: #fff; margin: 10px 0 0; text-shadow: 0 1px 3px #000; }
@media (max-width: 640px) { .dome::after { background: linear-gradient(0deg, rgba(4, 6, 10, 1) 0%, rgba(4, 6, 10, .78) 44%, rgba(4, 6, 10, 0) 78%); } .dome img { height: 540px; object-position: 50% 0; object-fit: contain; object-position: top; } }

/* ---------- the match in four beats ---------- */
.beats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 28px; counter-reset: beat; list-style: none; margin: 0; padding: 0; }
@media (max-width: 760px) { .beats { grid-template-columns: 1fr; } }
.beat { counter-increment: beat; position: relative; margin: 0; }
.beat figure { margin: 0; position: relative; }
.beat img { width: 100%; border: 2px solid var(--line); background: #000; }
.beat figure::before { content: counter(beat); position: absolute; left: 0; top: 0; z-index: 2; width: 54px; height: 54px; display: grid; place-items: center; font: italic 700 36px/1 var(--display); font-stretch: 75%; color: #17120a; background: linear-gradient(180deg, #ffe45c, var(--gold)); clip-path: polygon(0 0, 100% 0, 78% 100%, 0 100%); padding-right: 8px; }
.beat:nth-child(odd) img { box-shadow: -8px 8px 0 var(--p1); }
.beat:nth-child(even) img { box-shadow: 8px 8px 0 var(--p2); }
.beat h3 { margin: 22px 0 6px; font-size: clamp(28px, 3.4vw, 38px); font-style: italic; }
.beat p { margin: 0; color: var(--soft); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 44px; margin-top: 44px; }
.facts > div { padding: 18px 0; border-top: 1px solid var(--line); }
.facts h3 { color: var(--gold); margin-bottom: 6px; font-size: 25px; }
.facts p { margin: 0; color: var(--soft); font-size: 16px; }
@media (max-width: 900px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .facts { grid-template-columns: 1fr; } }

/* ---------- balls and tricks ---------- */
.balls { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.ball { display: grid; grid-template-columns: 52px 1fr; gap: 4px 14px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-left: 5px solid var(--c, #fff); padding: 14px 16px; margin: 0; }
.ball .em { grid-row: span 2; width: 52px; height: 52px; display: grid; place-items: center; font-size: 28px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--c) 55%, #fff), color-mix(in srgb, var(--c) 70%, #000) 75%); box-shadow: inset 0 -4px 8px rgba(0, 0, 0, .35), 0 3px 0 rgba(0, 0, 0, .5); }
.ball h3 { font-size: 24px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 0; color: #fff; }
.ball p { margin: 0; font-size: 14.5px; color: var(--soft); grid-column: 2; line-height: 1.4; }
.rar { font: 700 11px var(--body); letter-spacing: .1em; text-transform: uppercase; padding: 2px 6px; border-radius: 2px; }
.rar.common { background: #3a4558; color: #fff; } .rar.rare { background: #1d6fe0; color: #fff; } .rar.epic { background: #8b3df0; color: #fff; }
.ball.trick { border-left-color: #ff3d6e; background: linear-gradient(90deg, rgba(255, 61, 110, .12), var(--panel) 60%); }
.ball.trick .em { border-radius: 8px; transform: rotate(45deg) scale(.86); }
.ball.trick .em > span { transform: rotate(-45deg); }
.sub-h { margin: 44px 0 16px; font-size: 34px; font-style: italic; }

.shouts { display: flex; flex-wrap: wrap; gap: 10px 12px; margin: 26px 0 0; padding: 0; list-style: none; }
.shouts li { font-style: italic; font-size: clamp(22px, 2.6vw, 30px); padding: 4px 14px 2px; transform: skewX(-8deg); background: #fff; color: #10141c; margin: 0; }
.shouts li.epic { background: var(--gold); } .shouts li.bad { background: var(--p1); color: #fff; } .shouts li.funny { background: var(--p2); color: #fff; }

/* ---------- works with ---------- */
.tiers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1020px) { .tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .tiers { grid-template-columns: 1fr; } }
.tier { background: var(--panel); border: 1px solid var(--line); border-top: 5px solid var(--tc, var(--line)); padding: 18px 18px 16px; }
.tier.t-tested { --tc: var(--ok); } .tier.t-expected { --tc: var(--p2); } .tier.t-community { --tc: var(--warn); } .tier.t-unsupported { --tc: #7c8798; }
.tier h3 { font-size: 26px; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.tier h3 span { font-size: 40px; font-style: italic; color: var(--tc); line-height: .8; }
.tier > p { font-size: 14.5px; color: var(--muted); margin: 8px 0 12px; }
.tier ul { list-style: none; margin: 0; padding: 0; font-size: 14.5px; color: var(--soft); display: grid; gap: 4px; }
.tier li { padding-left: 14px; position: relative; }
.tier li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; background: var(--tc); transform: skewX(-14deg); }

/* ---------- make it yours ---------- */
.prompt { margin: 0 0 14px; background: #0a0e15; border: 1px solid var(--line); border-left: 5px solid var(--p1); padding: 14px 16px 12px; position: relative; }
.prompt.b { border-left-color: var(--p2); }
.prompt.c { border-left-color: var(--gold); }
.prompt .who { display: block; font: 700 12px var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.prompt p { margin: 0; font-family: var(--mono); font-size: 15.5px; color: #ffe9a8; line-height: 1.5; padding-right: 50px; }
.prompt .copy { position: absolute; right: 8px; top: 8px; background: none; border: 1px solid var(--line); color: var(--soft); font: 600 12px var(--body); padding: 4px 9px; border-radius: 3px; cursor: pointer; }
.prompt .copy:hover { border-color: #fff; color: #fff; }
.where { font-size: 15px; color: var(--muted); margin: -4px 0 26px; }

/* ---------- before / after ---------- */
.ba { position: relative; margin: 0 0 12px; aspect-ratio: 16 / 9; overflow: hidden; border: 2px solid var(--line); background: #000; --pos: 50%; touch-action: pan-y; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba .ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba .ba-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 4px; margin-left: -2px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .5); pointer-events: none; }
.ba .ba-line::after { content: "\2194"; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: var(--gold); color: #17120a; display: grid; place-items: center; font: 700 22px/1 var(--body); box-shadow: 0 3px 0 #8a5d00; }
.ba .ba-tag { position: absolute; top: 10px; font: 700 12px var(--body); letter-spacing: .1em; text-transform: uppercase; background: rgba(8, 11, 17, .8); color: #fff; padding: 4px 9px; pointer-events: none; }
.ba .ba-tag.b { left: 10px; } .ba .ba-tag.a { right: 10px; background: var(--gold); color: #17120a; }
.ba input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; background: none; }
.ba input[type="range"]:focus-visible + .ba-line::after { outline: 3px solid #fff; outline-offset: 3px; }
.ba-fig { margin: 0 0 34px; }
.ba-fig figcaption { font-size: 14.5px; color: var(--muted); }
.ba-fig figcaption b { color: #fff; }
/* without the script: the two pictures side by side */
html:not(.js) .ba { aspect-ratio: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; border: 0; }
html:not(.js) .ba img { position: static; clip-path: none; aspect-ratio: 16 / 9; }
html:not(.js) .ba .ba-line, html:not(.js) .ba input, html:not(.js) .ba .ba-tag { display: none; }

/* ---------- credits band, call to action ---------- */
.band { position: relative; isolation: isolate; overflow: hidden; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, var(--p1-deep) 0%, var(--p1) 49.6%, #fff 49.6%, #fff 50.4%, var(--p2) 50.4%, var(--p2-deep) 100%); opacity: .2; }
.people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 22px 0; }
@media (max-width: 600px) { .people { grid-template-columns: 1fr; } }
.person { background: rgba(8, 11, 17, .7); border: 1px solid var(--line); padding: 16px 18px; }
.person b { display: block; font-family: var(--display); font-stretch: 75%; text-transform: uppercase; font-size: 26px; line-height: 1; color: #fff; }
.person span { display: block; font-size: 14.5px; color: var(--muted); margin: 6px 0 8px; }
.cta { text-align: center; }
.cta h2 { margin-bottom: 14px; }
.cta .btn-row { justify-content: center; margin-top: 26px; }
.cta .lead { margin: 0 auto; }

/* ---------- the trailer lightbox ---------- */
dialog.lightbox { border: 0; padding: 0; background: transparent; width: min(1180px, 94vw); max-width: none; max-height: none; overflow: visible; color: #fff; }
dialog.lightbox::backdrop { background: rgba(2, 3, 5, .92); }
.lightbox-in { position: relative; aspect-ratio: 16 / 9; background: #000; border: 3px solid #fff; box-shadow: -10px 10px 0 var(--p1), 10px -10px 0 var(--p2); }
.lightbox video, .lightbox iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lightbox-close { position: absolute; right: -3px; top: -48px; background: none; border: 0; color: #fff; font: 700 17px var(--body); cursor: pointer; padding: 8px 4px; }
.lightbox-close:hover { color: var(--gold); }

/* ---------- the "your download has started" panel (site.js) ---------- */
dialog.dl-panel { border: 0; padding: 12px; background: transparent; width: min(640px, 100vw); max-width: none; max-height: 100dvh; overflow: auto; color: var(--text); }
dialog.dl-panel::backdrop { background: rgba(2, 3, 5, .86); }
.dl-card { position: relative; margin: 10px; padding: 28px 30px 22px; background: var(--panel); border: 3px solid #fff; box-shadow: -10px 10px 0 var(--p1), 10px -10px 0 var(--p2); }
.dl-card .kicker { font-size: 15px; letter-spacing: .14em; margin: 0 44px 12px 0; text-transform: none; }
.dl-card h2 { font-size: clamp(32px, 6.4vw, 46px); margin: 0 0 18px; }
.dl-card ol { margin: 0; padding-left: 24px; display: grid; gap: 12px; font-size: 16.5px; line-height: 1.5; color: var(--soft); }
.dl-card ol li::marker { font-family: var(--display); font-weight: 700; color: var(--gold); }
.dl-card ol b { color: #fff; }
.dl-foot { margin: 20px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--muted); }
.dl-close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; background: none; color: #fff; font: 700 20px/1 var(--body); cursor: pointer; }
.dl-close:hover { color: var(--gold); }
@media (max-width: 520px) { .dl-card { padding: 24px 20px 18px; box-shadow: -6px 6px 0 var(--p1), 6px -6px 0 var(--p2); } }

/* ---------- inner pages ---------- */
.page-head { position: relative; isolation: isolate; padding: clamp(40px, 6vw, 76px) 0 clamp(30px, 4vw, 50px); border-bottom: 1px solid var(--line); overflow: hidden; }
.page-head::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, rgba(255, 90, 54, .26), transparent 42%), linear-gradient(285deg, rgba(46, 155, 255, .28), transparent 46%), var(--bg); }
.page-head.pic { padding-top: clamp(110px, 20vw, 260px); }
.page-head.pic::before { background: linear-gradient(0deg, var(--bg) 0%, rgba(6, 8, 12, .74) 38%, rgba(6, 8, 12, .15) 100%); }
.page-head .bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.page-head h1 { font-size: clamp(46px, 8.5vw, 100px); text-shadow: 0 4px 0 rgba(0, 0, 0, .5); }
.page-head .lead { margin-top: 18px; text-shadow: 0 1px 2px rgba(0, 0, 0, .7); }
.doc { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); padding-top: clamp(30px, 5vw, 56px); padding-bottom: clamp(56px, 8vw, 100px); align-items: start; }
.toc { position: sticky; top: 88px; font-size: 15px; border-left: 2px solid var(--line); padding-left: 16px; max-height: calc(100vh - 110px); overflow-y: auto; }
.toc b { display: block; font-family: var(--display); font-stretch: 75%; text-transform: uppercase; letter-spacing: .14em; color: var(--gold); margin-bottom: 8px; font-size: 16px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.toc a { color: #d3dbe8; text-decoration: none; }
.toc a:hover { color: #fff; text-decoration: underline; }
@media (max-width: 900px) { .doc { grid-template-columns: 1fr; } .toc { position: static; max-height: none; border-left: 0; padding: 14px 16px; background: var(--panel); border: 1px solid var(--line); } .toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .toc ol { grid-template-columns: 1fr; } }
.prose { max-width: 840px; min-width: 0; }
.prose > section { padding-bottom: 12px; margin-bottom: 44px; }
.prose h2 { font-size: clamp(34px, 5vw, 54px); margin-bottom: 18px; padding-top: 6px; }
.prose h2::after { content: ""; display: block; width: 84px; height: 6px; margin-top: 12px; background: linear-gradient(90deg, var(--p1) 50%, var(--p2) 50%); transform: skewX(-14deg); }
.prose h3 { margin: 30px 0 10px; color: #fff; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--gold); font-weight: 700; }
.prose strong, .prose b { color: #fff; }
.prose .shot { margin: 24px 0; }
code, kbd, pre { font-family: var(--mono); font-size: .9em; }
code { background: #1a2230; padding: .12em .4em; border-radius: 3px; color: #ffe9a8; overflow-wrap: anywhere; }
pre { background: #0a0e15; border: 1px solid var(--line); border-left: 4px solid var(--p2); padding: 14px 16px; overflow-x: auto; margin: 0 0 1.2em; line-height: 1.5; }
pre code { background: none; padding: 0; color: #e7edf7; overflow-wrap: normal; }
kbd { display: inline-block; min-width: 1.9em; text-align: center; background: #fff; color: #10141c; font-weight: 700; padding: .08em .45em; border-radius: 4px; box-shadow: 0 2px 0 #8e9ab0; white-space: nowrap; }

.steps { list-style: none; counter-reset: s; margin: 0 0 1.2em; padding: 0; display: grid; gap: 14px; }
.steps > li { counter-increment: s; position: relative; margin: 0; padding: 16px 18px 16px 76px; background: var(--panel); border: 1px solid var(--line); min-height: 76px; }
.steps > li::before { content: counter(s); position: absolute; left: 0; top: 0; bottom: 0; width: 58px; display: grid; place-items: center; font-family: var(--display); font-stretch: 75%; font-style: italic; font-weight: 700; font-size: 38px; color: #17120a; background: linear-gradient(180deg, #ffe45c, var(--gold)); clip-path: polygon(0 0, 100% 0, 82% 100%, 0 100%); padding-right: 8px; }
.steps > li > :last-child { margin-bottom: 0; }
.steps b { color: #fff; }
.steps.slim { gap: 8px; }
.steps.slim > li { min-height: 0; padding: 10px 14px 10px 60px; }
.steps.slim > li::before { width: 44px; font-size: 26px; }

.note { border: 1px solid var(--line); border-left: 5px solid var(--p2); background: rgba(46, 155, 255, .09); padding: 14px 18px; margin: 0 0 1.2em; }
.note.warn { border-left-color: var(--warn); background: rgba(255, 181, 61, .09); }
.note.hot { border-left-color: var(--p1); background: rgba(255, 90, 54, .1); }
.note.ok { border-left-color: var(--ok); background: rgba(75, 224, 143, .08); }
.note > :last-child { margin-bottom: 0; }
.note b:first-child { font-family: var(--display); font-stretch: 75%; text-transform: uppercase; letter-spacing: .08em; font-size: 19px; }

.tbl { overflow-x: auto; margin: 0 0 1.3em; border: 1px solid var(--line); }
table { border-collapse: collapse; width: 100%; font-size: 15.5px; min-width: 460px; }
.tier-n { color: var(--muted); font-weight: 400; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--display); font-stretch: 75%; text-transform: uppercase; letter-spacing: .1em; font-size: 16px; color: var(--gold); background: var(--panel); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td:first-child { white-space: nowrap; }
td.wrapok { white-space: normal; }

.chain { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; list-style: none; margin: 0 0 1.3em; padding: 0; }
.chain li { margin: 0; flex: 1 1 130px; background: var(--panel); border: 1px solid var(--line); border-top: 4px solid var(--p2); padding: 10px 12px; font-size: 14.5px; position: relative; }
.chain li b { display: block; font-family: var(--display); font-stretch: 75%; text-transform: uppercase; font-size: 20px; letter-spacing: .04em; }
.chain li:last-child { border-top-color: var(--p1); }
.chain li::marker { content: ""; }

details { border: 1px solid var(--line); background: var(--panel); margin-bottom: 10px; }
summary { cursor: pointer; padding: 15px 46px 15px 18px; font-weight: 700; color: #fff; list-style: none; position: relative; font-size: 17.5px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-52%); font: 700 28px/1 var(--display); color: var(--gold); }
details[open] > summary::after { content: "\2212"; }
details[open] > summary { border-bottom: 1px solid var(--line); }
details > div { padding: 14px 18px 4px; }
/* a launch monitor's own entry on the Connect page */
.lm summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.lm summary small { font-weight: 400; color: var(--muted); font-size: 14px; flex-basis: 100%; }
.badge { font: 700 11px var(--body); letter-spacing: .1em; text-transform: uppercase; padding: 3px 7px 2px; border-radius: 2px; background: #3a4558; color: #fff; white-space: nowrap; }
.badge.t-tested { background: var(--ok); color: #062313; } .badge.t-expected { background: var(--p2); color: #021426; } .badge.t-community { background: var(--warn); color: #241500; } .badge.t-unsupported { background: #4a5568; }
.lm h4 { font: 700 13px var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin: 16px 0 6px; }
.lm h4:first-child { margin-top: 0; }
.lm dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0 0 1em; font-size: 15px; }
.lm dt { color: var(--muted); } .lm dd { margin: 0; }
.lm-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.lm-filter label { flex-basis: 100%; font-size: 15px; color: var(--muted); }
.lm-filter input { flex: 1 1 240px; min-height: 46px; background: #0a0e15; border: 1px solid var(--line); color: #fff; font: 16px var(--body); padding: 8px 12px; }
.lm-none { color: var(--muted); }

.next { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 26px; margin-top: 10px; }

/* ---------- footer ---------- */
.foot { background: #040609; border-top: 1px solid var(--line); padding: 44px 0 34px; font-size: 14.5px; color: var(--muted); }
.foot-in { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 30px 40px; }
.foot h2 { font-size: 20px; font-style: normal; letter-spacing: .12em; color: #fff; margin-bottom: 12px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.foot a { color: #cfe4ff; }
.foot .fine { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 18px; font-size: 13px; line-height: 1.55; margin: 0; }
@media (max-width: 760px) { .foot-in { grid-template-columns: 1fr; } }

/* a link whose address is a setting that has not been set: plain text */
a:not([href]) { color: inherit; text-decoration: none; }

/* things that ease in as they are scrolled to (only with the script, only with motion allowed) */
@media (prefers-reduced-motion: no-preference) {
  .js .rise { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
  .js .rise.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .stage-img img, .hero-media video { transition: none; }
  .stage:hover .stage-img img { transform: none; }
}

/* phones: a table becomes a list of small blocks, so nothing scrolls sideways */
@media (max-width: 640px) {
  .tbl table { min-width: 0; }
  .tbl thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tbl tr { display: block; padding: 11px 14px; border-bottom: 1px solid var(--line); }
  .tbl tr:last-child { border-bottom: 0; }
  .tbl td { display: block; padding: 2px 0; border: 0; white-space: normal; }
  .tbl td:first-child { font-weight: 700; color: #fff; white-space: normal; }
  .tbl td:empty { display: none; }
  .ball { padding: 11px 14px; }
}

/* phones: the worlds are a row to swipe (a card and the edge of the next), not fifteen screens to scroll */
@media (max-width: 640px) {
  .worlds { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; margin: 0 calc(var(--gut) * -1); padding: 0 var(--gut) 14px; scroll-padding: 0 var(--gut); scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
  .worlds .stage { flex: 0 0 86%; scroll-snap-align: start; }
  .js .worlds .rise { opacity: 1; transform: none; }
  .swipe-hint { display: block; }
  .btn { font-size: 21px; padding: 10px 18px; }
  .hero .btn-row { gap: 14px; }
}
.swipe-hint { display: none; font-size: 13.5px; color: var(--muted); margin: 0 0 10px; letter-spacing: .04em; }

/* a feature card: a picture, a name, a paragraph */
.feat { background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; }
.feat img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 1px solid var(--line); background: #000; }
.feat h3 { font-size: 30px; font-style: italic; margin: 16px 18px 8px; }
.feat p { margin: 0 18px 18px; font-size: 15.5px; color: var(--soft); }
.feat b { color: #fff; }
.feat:nth-child(odd) { box-shadow: -6px 6px 0 var(--p1); }
.feat:nth-child(even) { box-shadow: 6px 6px 0 var(--p2); }
@media (max-width: 640px) { .feat:nth-child(n) { box-shadow: none; } }

@media (max-width: 900px) { td:first-child { white-space: normal; } }
html:not(.js) .ba .ba-before { order: -1; }

/* a long line of code scrolls inside its own box; it never widens the page */
.steps { grid-template-columns: minmax(0, 1fr); }
.steps > li { min-width: 0; }
pre { max-width: 100%; }
@media (max-width: 900px) { .doc { grid-template-columns: minmax(0, 1fr); } }
.prompt p { overflow-wrap: anywhere; }
