/*
 * The public site: the front page, the blog, contact, the policies and the
 * licence key page. The design is "Floodlights": the site plays a night match,
 * with a broadcast score bug for navigation, lower thirds for titles and the
 * game's own screens and recordings for pictures.
 *
 * Hand-written and served straight from public/, like the rest of the site.
 * Versioned in the layout by mtime.
 */

/* ---------- Fonts: Sofia Sans, self-hosted (latin and latin-ext) ---------- */

@font-face {
  font-family: 'Sofia Sans';
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
  src: url(../fonts/sofia/sofia-sans-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Sofia Sans';
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
  src: url(../fonts/sofia/sofia-sans-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Sofia Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/sofia/sofia-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Sofia Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/sofia/sofia-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Sofia Sans Extra Condensed';
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
  src: url(../fonts/sofia/sofia-sans-extra-condensed-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Sofia Sans Extra Condensed';
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
  src: url(../fonts/sofia/sofia-sans-extra-condensed-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Sofia Sans Semi Condensed';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url(../fonts/sofia/sofia-sans-semi-condensed-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Sofia Sans Semi Condensed';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url(../fonts/sofia/sofia-sans-semi-condensed-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Anything hidden stays hidden, whatever display its class gives it */
[hidden] { display: none !important; }


:root {
    --ink: #1a1c28;          /* the game's ink */
    --raise: #202232;        /* a lifted night for alternate sections */
    --cream: #f1ebde;        /* floodlight cream: text and plates */
    --chalk: #ffffff;
    --mist: #9a9db0;         /* secondary text on ink */
    --grass: #5b7a41;
    --grass-lit: #769a52;
    --red: #c8312a;          /* live dot and minute tabs only */
    --select: #f4d122;       /* the game's selection yellow, used for focus */
    --led-red: #ff4b3d;      /* the substitution board's lights, and the line */
    --led-green: #4fe46d;    /* through the full release price */
    --rule: rgba(241, 235, 222, 0.16);

    --display: 'Sofia Sans Extra Condensed', 'Arial Narrow', sans-serif;
    --text: 'Sofia Sans', system-ui, sans-serif;
    --label: 'Sofia Sans Semi Condensed', 'Sofia Sans', system-ui, sans-serif;

    --gutter: clamp(16px, 4.4vw, 64px);
    --max: 1280px;
    /* distance from the content edge to the viewport edge, for images that bleed */
    --edge: max(var(--gutter), calc((100vw - var(--max)) / 2));
}

*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-padding-top: 88px;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--ink);
    color: var(--cream);
    font: 400 18px/1.55 var(--text);
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; }

a { color: var(--cream); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

p { margin: 0 0 1em; }

:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--ink), 0 0 0 6px var(--select);
}

.skip {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 100;
    background: var(--cream);
    color: var(--ink);
    padding: 10px 14px;
    font: 700 16px/1 var(--label);
}
.skip:focus { top: 16px; }

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ---------- The score bug ---------- */

.bug {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 50;
    display: grid;
    grid-template-columns: auto auto;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.4);
}

.bug-home {
    display: flex;
    align-items: stretch;
    height: 46px;
    color: var(--ink);
    text-decoration: none;
}

.bug-badge {
    display: grid;
    place-items: center;
    width: 46px;
    background: var(--ink);
}
.bug-badge img { width: 32px; height: 32px; }

.bug-name {
    display: flex;
    align-items: center;
    padding: 0 16px 0 14px;
    background: var(--cream);
    font: 800 21px/1 var(--label);
    letter-spacing: 0.005em;
    white-space: nowrap;
}

.bug-clock {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 96px;
    padding: 0 16px 0 13px;
    background: var(--ink);
    color: var(--cream);
    font: 700 21px/1 var(--label);
    font-variant-numeric: tabular-nums;
}

.bug-live {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--red);
    flex: none;
}

.bug-progress {
    grid-column: 1 / -1;
    height: 3px;
    background: #10111a;
}
.bug-progress span {
    display: block;
    height: 100%;
    background: var(--grass-lit);
    transform: scaleX(0);
    transform-origin: left center;
}

/* ---------- Buy, always in reach ---------- */

.buy-fixed {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 50;
    display: flex;
    height: 49px;
    text-decoration: none;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.4);
}

.buy-fixed-label,
.buy-fixed-price {
    display: flex;
    align-items: center;
    padding: 0 16px;
    font: 800 20px/1 var(--label);
}
.buy-fixed-label { background: var(--cream); color: var(--ink); }
.buy-fixed-price {
    gap: 8px;
    background: var(--ink);
    color: var(--cream);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.buy-fixed:hover .buy-fixed-label { background: var(--chalk); }

/* The full release price, crossed out on the slant in the board's red, beside the early access price */
.price-full {
    position: relative;
    font-size: 0.8em;
    font-weight: 600;
    color: var(--cream);
    text-decoration: none;
}
.price-full::after {
    content: "";
    position: absolute;
    top: 50%;
    left: -3px;
    right: -3px;
    height: 2px;
    margin-top: -1px;
    background: var(--led-red);
    /* from about two thirds down on the left to a third down on the right */
    transform: rotate(-7deg);
    pointer-events: none;
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: flex-end;
    min-height: 100vh;
    min-height: 100svh;
    padding: 130px var(--gutter) clamp(48px, 9vh, 104px);
    overflow: hidden;
}

.hero-video {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.03);
}

.hero-scrim {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(26, 28, 40, 0.94) 0%, rgba(26, 28, 40, 0.78) 34%, rgba(26, 28, 40, 0.22) 68%, rgba(26, 28, 40, 0.05) 100%),
        linear-gradient(0deg, rgba(26, 28, 40, 0.92) 0%, rgba(26, 28, 40, 0) 48%),
        linear-gradient(180deg, rgba(26, 28, 40, 0.55) 0%, rgba(26, 28, 40, 0) 22%);
}

/* The headline across the full width; under it, the words and buttons on
   the left and the substitution board out on the touchline */
.hero-copy {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 48px;
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
}
/* Rows are set by hand, because the board shares rows 2 to 5 with them */
.hero-copy > .hero-logo { grid-area: 1 / 1 / auto / -1; }
.hero-copy > h1 { grid-area: 2 / 1 / auto / -1; }
.hero-copy > .hero-lede { grid-area: 3 / 1; }
.hero-copy > .hero-actions { grid-area: 4 / 1; }
.hero-copy > .hero-small { grid-area: 5 / 1; }
.hero-subs {
    grid-column: 2;
    grid-row: 2 / span 4;
    align-self: end;
}
.hero-subs .subs-row dt { font-size: clamp(17px, 1.3vw, 19px); }

.hero-logo {
    display: block;
    width: clamp(176px, 17vw, 248px);
    height: auto;
    margin-bottom: clamp(24px, 3.4vh, 36px);
}

.hero h1 {
    margin: 0 0 26px;
    font: 860 clamp(56px, 7.6vw, 118px)/0.88 var(--display);
    letter-spacing: -0.006em;
}
.hero h1 span { display: block; }

.hero-lede {
    max-width: 31em;
    margin: 0 0 34px;
    font-size: clamp(18px, 1.45vw, 22px);
    line-height: 1.45;
    color: rgba(241, 235, 222, 0.88);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 16px;
}

.btn-buy {
    display: inline-flex;
    height: 60px;
    text-decoration: none;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
}
.btn-buy-label,
.btn-buy-price {
    display: flex;
    align-items: center;
    padding: 0 22px;
    font: 800 22px/1 var(--label);
}
.btn-buy-label { background: var(--cream); color: var(--ink); }
.btn-buy-price {
    gap: 10px;
    border: 2px solid var(--cream);
    border-left: 0;
    color: var(--cream);
    background: rgba(26, 28, 40, 0.86);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.btn-buy:hover .btn-buy-label { background: var(--chalk); }

.btn-trailer {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 60px;
    padding: 0 22px 0 18px;
    border: 2px solid rgba(241, 235, 222, 0.45);
    background: rgba(26, 28, 40, 0.35);
    color: var(--cream);
    font: 700 20px/1 var(--label);
    cursor: pointer;
}
.btn-trailer svg { width: 18px; height: 18px; fill: currentColor; }
.btn-trailer:hover { border-color: var(--cream); }

.hero-small {
    margin: 22px 0 0;
    font: 500 16px/1.4 var(--label);
    color: #b9bccb;
}

/* ---------- The substitution board ----------
   The fourth official's board, with the price change in lights: the full
   release price going off in red, the early access price coming on in green.
   script.js draws the lights from the prices' text. */

.subs {
    --led-row: 58px;        /* height of one row of lights, 9 dots */
    --strip: 19px;
    display: inline-block;
    border: 5px solid #2c2e3c;
    border-radius: 8px;
    background: #000;
    box-shadow: 0 26px 60px -18px rgba(0, 0, 0, 0.85);
    overflow: hidden;
}
.hero-subs {
    --led-row: clamp(58px, 5.2vw, 76px);
    --strip: clamp(19px, 1.5vw, 22px);
    text-decoration: none;
}
.hero-subs:hover .subs-strip { background: var(--chalk); }

.subs-strip {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 6px 18px 6px 7px;
    background: var(--cream);
    color: var(--ink);
    font: 800 var(--strip)/1 var(--label);
    white-space: nowrap;
}
.subs-strip img { width: 1.5em; height: 1.5em; flex: none; }

.subs-face {
    display: grid;
    gap: 2px;
    margin: 0;
    padding: 10px 12px 12px 18px;
}

.subs-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 22px;
}
.subs-row dt {
    font: 600 17px/1.15 var(--label);
    color: rgba(241, 235, 222, 0.74);
}
.subs-row dd { margin: 0; }

.led {
    --led: var(--led-red);
    position: relative;
    color: var(--led);
}
.led--green { --led: var(--led-green); }
.led--white { --led: #f4efe6; }

.led-dots {
    display: block;
    height: var(--led-row);
    width: auto;
    overflow: visible;
}
.led-dots path { fill: none; stroke-linecap: round; }
.led-dark { stroke: rgba(241, 235, 222, 0.07); stroke-width: 0.74; }
.led-lit { stroke: var(--led); stroke-width: 0.82; }
.led-core { stroke: color-mix(in srgb, var(--led) 40%, #fff); stroke-width: 0.32; }
/* A crossed-out price: a red line, over digits a touch dimmed so it shows */
.led-line { stroke: var(--led-red); stroke-width: 0.86; }
.led.is-struck .led-glyphs { opacity: 0.88; }

/* Until the lights are drawn, or if a price has a character they can't show */
.led-text {
    display: block;
    font: 900 calc(var(--led-row) * 0.74)/1.2 var(--display);
    font-variant-numeric: tabular-nums;
}
.led.is-lit .led-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* The board goes up once: the new price flashes as it comes on */
@media (prefers-reduced-motion: no-preference) {
    .subs.is-up .subs-on .led-glyphs { animation: subs-on 1.1s steps(1, end) 0.35s both; }
}
@keyframes subs-on {
    0%, 50% { opacity: 0.08; }
    25%, 75%, 100% { opacity: 1; }
}

/* ---------- Lower thirds: the section titles ---------- */

.lt {
    display: inline-flex;
    align-items: stretch;
    max-width: 100%;
    margin: 0 0 34px;
    box-shadow: 0 18px 40px -14px rgba(0, 0, 0, 0.6);
}

.lt-min {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.7em;
    padding: 0 0.5em;
    background: var(--red);
    color: var(--chalk);
    font: 800 clamp(17px, 1.45vw, 22px)/1 var(--label);
    font-variant-numeric: tabular-nums;
}

.lt-title {
    margin: 0;
    padding: 0.1em 0.32em 0.06em;
    background: var(--cream);
    color: var(--ink);
    font: 860 clamp(36px, 4.4vw, 64px)/1 var(--display);
    text-wrap: balance;
}

/* ---------- Scenes ---------- */

.scene {
    position: relative;
    padding: clamp(72px, 7vw, 108px) var(--gutter);
}
.scene--media-left,
.scene--match { background: var(--raise); }

.scene-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: clamp(24px, 3.2vw, 52px);
    align-items: center;
    max-width: var(--max);
    margin: 0 auto;
}

.scene--media-right .scene-copy { grid-column: 1 / span 5; }
.scene--media-right .scene-media { grid-column: 6 / -1; margin-right: calc(-1 * var(--edge)); }

.scene--media-left .scene-copy { grid-column: 8 / -1; grid-row: 1; }
.scene--media-left .scene-media { grid-column: 1 / span 7; grid-row: 1; margin-left: calc(-1 * var(--edge)); }

.scene-copy p { max-width: 34em; color: rgba(241, 235, 222, 0.8); }
.scene-copy p.scene-lede,
.scene-lede {
    margin: 0 0 18px;
    font-size: clamp(21px, 1.75vw, 26px);
    font-weight: 600;
    line-height: 1.32;
    color: var(--cream);
}

.facts {
    max-width: 30em;
    margin: 38px 0 0;
    padding: 0;
    list-style: none;
}
.facts li {
    padding: 14px 0;
    border-top: 1px solid var(--rule);
    font: 500 18px/1.3 var(--label);
    color: rgba(241, 235, 222, 0.82);
}
.facts li:last-child { border-bottom: 1px solid var(--rule); }
.facts b { margin-right: 0.2em; font: 800 27px/1 var(--display); color: var(--cream); }

.wide-head,
.scene--wide .wide-media {
    max-width: var(--max);
    margin-inline: auto;
}
.wide-cols {
    display: grid;
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: clamp(24px, 4vw, 72px);
    align-items: start;
}
.wide-cols .scene-lede {
    margin: 0;
    max-width: 14em;
    font: 820 clamp(36px, 3.6vw, 52px)/1 var(--display);
    color: var(--cream);
    text-wrap: balance;
}
.wide-cols p { color: rgba(241, 235, 222, 0.8); max-width: 34em; }
.wide-cols .facts { margin-top: 26px; }
.scene--wide .wide-media { margin-top: clamp(48px, 5vw, 72px); }

/* Screens: real screenshots, sharp, presented like a picture on the big screen */
.screen { margin: 0; }
.screen img {
    display: block;
    width: 100%;
    height: auto;
    background: #12131c;
    box-shadow: 0 0 0 1px rgba(241, 235, 222, 0.13), 0 60px 110px -50px rgba(0, 0, 0, 0.85);
}

/* Two screens, one on top of the other */
.stack {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
}
.stack-back {
    grid-column: 1 / span 10;
    grid-row: 1;
}
.stack-back img { filter: brightness(0.72); }
.stack-front {
    position: relative;
    z-index: 1;
    grid-column: 4 / -1;
    grid-row: 1;
    margin-top: 26%;
}

/* ---------- Half-time ---------- */

.halftime {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: flex-end;
    min-height: 108vh;
    padding: 180px var(--gutter) clamp(88px, 10vw, 150px);
    overflow: hidden;
}

.halftime-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 30%;
}

.halftime-scrim {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(0deg, rgba(26, 28, 40, 0.97) 0%, rgba(26, 28, 40, 0.86) 36%, rgba(26, 28, 40, 0.3) 70%, rgba(26, 28, 40, 0.5) 100%);
}

.halftime-inner {
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
}

.note { margin: 0; max-width: 1000px; }
.note .note-lead {
    margin: 0 0 30px;
    font: 820 clamp(40px, 5.2vw, 82px)/0.95 var(--display);
    color: var(--cream);
    text-wrap: balance;
}
.note p {
    max-width: 36em;
    font-size: clamp(18px, 1.4vw, 21px);
    color: rgba(241, 235, 222, 0.86);
}
.note-sign {
    margin-top: 26px;
    font: 700 19px/1.3 var(--label);
    color: var(--cream);
}

/* ---------- Over to them ---------- */

.match-head,
.viewer,
.match-foot {
    max-width: var(--max);
    margin-inline: auto;
}

.display {
    margin: 0;
    font: 860 clamp(46px, 6.4vw, 100px)/0.9 var(--display);
    text-wrap: balance;
}
.display span { display: block; }

.viewer { position: relative; margin-top: clamp(40px, 5vw, 64px); }

.viewer-stage {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #2f4a24;
    box-shadow: 0 0 0 1px rgba(241, 235, 222, 0.14), 0 70px 130px -60px rgba(0, 0, 0, 0.95);
}
.viewer-stage video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.012);
    transition: opacity 0.4s ease;
}
.viewer[data-current="3d"] video[data-view="2d"],
.viewer[data-current="2d"] video[data-view="3d"] { opacity: 0; }

.viewer-switch {
    position: absolute;
    top: clamp(12px, 2vw, 24px);
    right: clamp(12px, 2vw, 24px);
    display: flex;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}
.viewer-switch button {
    min-width: 66px;
    height: 50px;
    padding: 0 16px;
    border: 0;
    background: var(--ink);
    color: var(--cream);
    font: 800 23px/1 var(--label);
    cursor: pointer;
}
.viewer-switch button[aria-pressed="true"] { background: var(--cream); color: var(--ink); }
.viewer-switch button:not([aria-pressed="true"]):hover { background: #2a2d40; }

.match-foot p {
    max-width: 34em;
    margin: 30px 0 0;
    font-size: clamp(19px, 1.5vw, 22px);
    color: rgba(241, 235, 222, 0.86);
}

/* ---------- See who turned up ---------- */

.data-head,
.data-main,
.data-maps,
.data-close {
    max-width: var(--max);
    margin-inline: auto;
}
.data-head .scene-lede { max-width: 32em; }

.data-main { margin-top: 52px; }

/* The column split keeps the heat map as tall as the two maps beside it, so
   their tops and bottoms line up; any spare height goes between those two. */
.data-maps {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr);
    gap: 30px 28px;
    margin-top: 30px;
}
.map-heat { grid-row: 1 / span 2; }
.map-shot { align-self: end; }

.data-close { margin-top: clamp(72px, 8vw, 120px); }

/* ---------- Full time: buy ---------- */

.fulltime {
    position: relative;
    isolation: isolate;
    padding: clamp(104px, 11vw, 160px) var(--gutter) clamp(96px, 10vw, 150px);
    overflow: hidden;
}

.fulltime-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 20%;
}

.fulltime-scrim {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(26, 28, 40, 0.6) 0%, rgba(26, 28, 40, 0.84) 45%, rgba(26, 28, 40, 0.96) 100%);
}

.fulltime-inner { max-width: var(--max); margin: 0 auto; }

.fulltime-grid {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(32px, 5vw, 80px);
    align-items: start;
}

/* The full-time board: price as the score */
.board {
    padding: clamp(24px, 3vw, 44px);
    background: var(--cream);
    color: var(--ink);
    box-shadow: 0 60px 110px -40px rgba(0, 0, 0, 0.9);
}

.board-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--ink);
}
.board-title { margin: 0; font: 860 clamp(26px, 2.5vw, 36px)/1 var(--display); }
.board-tag {
    margin: 0;
    padding: 7px 10px 6px;
    background: var(--ink);
    color: var(--cream);
    font: 700 16px/1 var(--label);
}

.board-subs {
    --led-row: clamp(64px, 6.6vw, 92px);
    --strip: clamp(19px, 1.6vw, 23px);
    display: block;
    margin: 24px 0 14px;
}
.board-subs .subs-row dt { font-size: clamp(17px, 1.4vw, 20px); }

.board-price-note {
    margin: 0 0 24px;
    font: 500 16px/1.4 var(--label);
    color: #575a6b;
}

.board-buy {
    width: 100%;
    height: 66px;
    border: 0;
    background: var(--ink);
    color: var(--cream);
    font: 860 30px/1 var(--display);
    cursor: pointer;
}
.board-buy:hover { background: #2b2e42; }

.board-preview {
    margin: 12px 0 0;
    padding: 10px 12px;
    background: #e3dac6;
    font: 500 16px/1.4 var(--label);
}

.board-list {
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}
.board-list li {
    position: relative;
    padding: 12px 0 12px 32px;
    border-top: 1px solid rgba(26, 28, 40, 0.18);
    font-size: 17px;
    line-height: 1.4;
}
.board-list li::before {
    content: "";
    position: absolute;
    left: 3px;
    top: 18px;
    width: 14px;
    height: 7px;
    border-left: 3px solid var(--grass);
    border-bottom: 3px solid var(--grass);
    transform: rotate(-45deg);
}

.signup { padding-top: 6px; }
.signup-title {
    margin: 0 0 16px;
    font: 860 clamp(42px, 4.4vw, 66px)/0.92 var(--display);
}
.signup p { color: rgba(241, 235, 222, 0.86); }

.signup-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    margin-top: 24px;
}
.signup-form input {
    min-width: 0;
    height: 58px;
    padding: 0 16px;
    border: 2px solid var(--cream);
    border-right: 0;
    border-radius: 0;
    background: rgba(26, 28, 40, 0.75);
    color: var(--cream);
    font: 500 18px/1 var(--text);
}
.signup-form input::placeholder { color: #a6a9b8; }
.signup-form button {
    height: 58px;
    padding: 0 22px;
    border: 0;
    background: var(--cream);
    color: var(--ink);
    font: 800 20px/1 var(--label);
    cursor: pointer;
}
.signup-form button:hover { background: var(--chalk); }
.signup-status {
    grid-column: 1 / -1;
    min-height: 1.4em;
    margin: 12px 0 0;
    font: 600 17px/1.4 var(--label);
}
.signup-form[data-state="done"] .signup-status { color: #b9dc93; }
.signup-form[data-state="error"] .signup-status { color: #ff9d90; }
.signup-small { margin-top: 10px; font-size: 17px; }

/* ---------- Footer ---------- */

.site-foot {
    padding: 56px var(--gutter) 48px;
    border-top: 1px solid var(--rule);
    background: var(--ink);
}

.foot-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 30px 56px;
    align-items: center;
    max-width: var(--max);
    margin: 0 auto;
}

.foot-maker { display: flex; align-items: center; gap: 18px; }
.foot-maker img { width: 58px; height: 58px; flex: none; }
.foot-maker p { margin: 0; max-width: 32em; font-size: 16px; color: rgba(241, 235, 222, 0.8); }

.foot-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px 24px;
    font: 600 17px/1.3 var(--label);
}
.foot-links a { text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }

.foot-legal {
    grid-column: 1 / -1;
    max-width: 62em;
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--mist);
}

/* ---------- Trailer ---------- */

.trailer {
    width: min(1200px, 94vw);
    max-width: none;
    padding: 0;
    border: 0;
    background: #000;
    overflow: visible;
}
.trailer::backdrop { background: rgba(14, 15, 22, 0.88); }
.trailer video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.trailer-close {
    position: absolute;
    top: -54px;
    right: 0;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 0;
    background: var(--cream);
    cursor: pointer;
}
.trailer-close svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 2.4; }

/* ---------- Narrower screens ---------- */

@media (max-width: 1100px) {
    /* No room beside the buttons, so the board comes in under them */
    .hero-copy { grid-template-columns: minmax(0, 1fr); }
    .hero-subs {
        --led-row: 58px;
        grid-column: 1;
        grid-row: auto;
        justify-self: start;
        margin-top: 34px;
    }

    .scene--media-right .scene-copy,
    .scene--media-left .scene-copy { grid-column: 1 / -1; grid-row: auto; }
    .scene--media-right .scene-media,
    .scene--media-left .scene-media {
        grid-column: 1 / -1;
        grid-row: auto;
        margin: 48px calc(-1 * var(--gutter)) 0;
    }
    .scene-copy p { max-width: 40em; }
}

@media (max-width: 860px) {
    html { scroll-padding-top: 64px; }

    /* The bug becomes the top bar */
    .bug {
        top: 0;
        left: 0;
        right: 0;
        grid-template-columns: auto 1fr;
        background: var(--ink);
    }
    .bug-home { height: 52px; }
    .bug-badge { width: 52px; }
    .bug-badge img { width: 32px; height: 32px; }
    .bug-name { font-size: 18px; padding: 0 12px; }
    .bug-clock { min-width: 0; padding: 0 12px; font-size: 18px; gap: 8px; }

    .buy-fixed {
        top: 0;
        right: 0;
        height: 52px;
        box-shadow: none;
    }
    .buy-fixed-label, .buy-fixed-price { padding: 0 12px; font-size: 18px; }

    .hero { padding-top: 100px; }
    .hero-scrim {
        background:
            linear-gradient(0deg, rgba(26, 28, 40, 0.96) 0%, rgba(26, 28, 40, 0.86) 42%, rgba(26, 28, 40, 0.3) 72%, rgba(26, 28, 40, 0.5) 100%);
    }
    .hero-logo { width: 170px; margin-bottom: 22px; }
    .hero h1 { font-size: clamp(50px, 14.5vw, 72px); margin-bottom: 20px; }
    .hero-lede { font-size: 18px; margin-bottom: 26px; }
    .btn-buy { height: 56px; }
    .btn-buy-label, .btn-buy-price { padding: 0 18px; font-size: 20px; }
    .btn-trailer { height: 56px; font-size: 19px; }

    .subs { --strip: 17px; }
    .hero-subs { --led-row: 46px; justify-self: stretch; margin-top: 28px; }
    .board-subs { --led-row: 40px; }
    .subs-face { padding: 8px 10px 10px 14px; }
    .subs-row { column-gap: 14px; }
    .subs-row dt,
    .hero-subs .subs-row dt { font-size: 16px; }
    .board-subs .subs-row dt { font-size: 15px; }

    .lt { margin-bottom: 26px; }

    .scene { padding-block: 72px; }
    .fulltime { padding-block: 80px 72px; }
    .data-close { margin-top: 56px; }
    .scene--wide .wide-media { margin-top: 36px; }

    .wide-cols { grid-template-columns: 1fr; gap: 18px; }
    .wide-cols .scene-lede { font-size: clamp(34px, 9.5vw, 44px); }
    .scene--wide .wide-media { margin-inline: calc(-1 * var(--gutter)); }

    /* Wide screens are cropped to their busiest part on a phone, so they stay readable */
    .crop-club img,
    .crop-tactics img,
    .crop-overview img {
        aspect-ratio: 4 / 3;
        object-fit: cover;
    }
    .crop-club img { object-position: 22% 50%; }
    .crop-tactics img { object-position: 100% 50%; }
    .crop-overview img { object-position: 62% 50%; }

    .viewer-stage { aspect-ratio: 4 / 3; }
    .viewer-stage video { object-position: 38% 50%; }

    /* One screen at a time on a phone */
    .stack { display: block; }
    .stack-back { display: none; }
    .stack-front { margin-top: 0; }

    .halftime { min-height: 0; padding-top: 42vh; padding-bottom: 72px; }
    .halftime-scrim {
        background: linear-gradient(0deg, rgba(26, 28, 40, 0.98) 0%, rgba(26, 28, 40, 0.9) 55%, rgba(26, 28, 40, 0.25) 85%, rgba(26, 28, 40, 0.4) 100%);
    }

    .viewer { margin-inline: calc(-1 * var(--gutter)); }
    .viewer-switch button { min-width: 56px; height: 44px; font-size: 20px; }

    .data-main { margin-inline: calc(-1 * var(--gutter)); }
    .data-maps { grid-template-columns: 1fr; }
    .map-heat { grid-row: auto; }

    .fulltime-grid { grid-template-columns: 1fr; }

    .foot-inner { grid-template-columns: 1fr; }
    .foot-links { justify-content: flex-start; }
}

@media (max-width: 600px) {
    .bug-name { display: none; }
}

@media (max-width: 370px) {
    .buy-fixed-label { padding: 0 10px; }
    .buy-fixed-price { padding: 0 10px; }
}

/* The smallest phones keep just the price they'd pay in the top bar */
@media (max-width: 350px) {
    .buy-fixed .price-full { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .viewer-stage video { transition: none; }
}

/* ==========================================================================
   Every page but the front page: the blog, contact, the policies and the
   licence key page. Everything above is shared with the front page.
   ========================================================================== */

/* ---------- The bug: home, the section, and on a blog post the clock ---------- */

.bug--page { grid-template-columns: repeat(3, auto); }

/* The section ("Blog", "Policies") carries on the name's plate, after a thin rule */
.bug-section {
    display: flex;
    align-items: center;
    padding: 0 16px 0 14px;
    border-left: 2px solid rgba(26, 28, 40, 0.18);
    background: var(--cream);
    color: var(--ink);
    font: 700 21px/1 var(--label);
    text-decoration: none;
    white-space: nowrap;
}
a.bug-section:hover { text-decoration: underline; text-decoration-thickness: 2px; }

/* ---------- Bits shared by the pages ---------- */

/* The date sits in the lower third's red tab, where the minute goes on the front page */
.lt-min time { white-space: nowrap; }

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 22px;
    margin: 0;
    font: 600 16px/1.3 var(--label);
    color: var(--mist);
}

/* A page's opening: a big headline, and a few words beside it */
.page-head {
    padding: clamp(128px, 13vw, 176px) var(--gutter) clamp(52px, 6vw, 84px);
}
.page-head-inner {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 28px clamp(24px, 4vw, 72px);
    align-items: end;
    max-width: var(--max);
    margin: 0 auto;
}
.page-title {
    margin: 0;
    font: 860 clamp(60px, 8.4vw, 132px)/0.86 var(--display);
    letter-spacing: -0.006em;
}
.page-lede {
    max-width: 24em;
    margin: 0 0 16px;
    font-size: clamp(19px, 1.5vw, 22px);
    line-height: 1.45;
    color: rgba(241, 235, 222, 0.86);
}
.page-head-link,
.read-link {
    font: 700 18px/1.3 var(--label);
    color: var(--cream);
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
}
.page-head-link:hover,
.read-link:hover { text-decoration-thickness: 3px; }

/* ---------- The blog list: /blog ---------- */

/* The latest post: a front page scene, with the post's own picture */
.lead-date { margin: 0 0 18px; }
.lead-date .lt-min {
    display: inline-flex;
    padding: 9px 11px 8px;
    font-size: 18px;
}
.lead-title {
    margin: 0 0 22px;
    font: 860 clamp(44px, 4.6vw, 72px)/0.92 var(--display);
    text-wrap: balance;
}
.lead-title a { color: var(--cream); text-decoration: none; }
.lead-title a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 0.1em; }
.blog-lead .scene-lede { margin-bottom: 22px; }
.blog-lead .post-meta { margin-bottom: 30px; }
.lead-shot img { aspect-ratio: 16 / 10; object-fit: cover; }
.lead-shot:hover img { filter: brightness(1.08); }

/* Earlier posts: a fixture list, dated in red */
.blog-list { padding: clamp(56px, 6vw, 96px) var(--gutter) clamp(72px, 8vw, 120px); }

.post-rows {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.post-row {
    position: relative;
    display: grid;
    grid-template-columns: 9.5rem minmax(0, 1fr) minmax(0, 21rem);
    gap: 18px clamp(24px, 3vw, 44px);
    align-items: start;
    padding: 36px 0;
    border-top: 1px solid var(--rule);
}
.post-row:last-child { border-bottom: 1px solid var(--rule); }

.post-row-date { margin: 4px 0 0; }
.post-row-date .lt-min {
    display: inline-flex;
    padding: 9px 10px 8px;
    font-size: 18px;
}

.post-row-title {
    margin: 0 0 12px;
    font: 860 clamp(30px, 2.9vw, 44px)/0.95 var(--display);
    text-wrap: balance;
}
.post-row-title a { color: var(--cream); text-decoration: none; }
/* The title's link covers the whole row */
.post-row-title a::after { content: ""; position: absolute; inset: 0; }
.post-row-title a:focus-visible { box-shadow: none; }
.post-row:has(a:focus-visible) { box-shadow: 0 0 0 3px var(--ink), 0 0 0 6px var(--select); }
.post-row:hover .post-row-title a { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 0.12em; }

.post-row-excerpt {
    max-width: 36em;
    margin: 0 0 14px;
    color: rgba(241, 235, 222, 0.8);
}

.post-row-shot img { aspect-ratio: 16 / 10; object-fit: cover; }
.post-row:hover .post-row-shot img { filter: brightness(1.08); }

/* ---------- A blog post or a policy: /development/<slug>, /privacy and the rest ---------- */

/* The date tab hangs in the margin; the title, the standfirst and the text
   all start where the tab ends */
.post {
    --hang: 9.5rem;
    padding: clamp(128px, 12vw, 168px) var(--gutter) clamp(64px, 7vw, 104px);
}

.post-head,
.post-hero,
.prose,
.post-nav {
    max-width: var(--max);
    margin-inline: auto;
}

.post-lt { margin-bottom: 28px; }
.post-lt .lt-min { width: var(--hang); }
.post-lt .lt-title { font-size: clamp(40px, 5vw, 76px); max-width: 15em; }

.post-standfirst,
.post-head .post-meta { margin-left: var(--hang); }
.post-standfirst {
    max-width: 30em;
    margin-top: 0;
    margin-bottom: 18px;
    font-size: clamp(21px, 1.75vw, 26px);
    font-weight: 600;
    line-height: 1.35;
    color: var(--cream);
}

.post-hero { margin-top: clamp(44px, 5vw, 64px); }
.post-hero img { aspect-ratio: 16 / 8; object-fit: cover; }

/* The text, as the site's editor saves it: paragraphs, h3 and h4 headings,
   lists, and pictures in paragraphs of their own, which run full width */
.prose {
    display: grid;
    grid-template-columns: [full-start] var(--hang) [text-start] minmax(0, 42rem) [text-end] minmax(0, 1fr) [full-end];
    margin-top: clamp(52px, 6vw, 80px);
    font-size: 20px;
    line-height: 1.68;
    color: rgba(241, 235, 222, 0.86);
}
.prose > * { grid-column: text; }
.prose > p { margin: 0 0 1.05em; }
.prose > p:has(> img) { grid-column: full; margin: 28px 0 44px; }

.prose img {
    display: block;
    width: 100%;
    height: auto;
    background: #12131c;
    box-shadow: 0 0 0 1px rgba(241, 235, 222, 0.13), 0 60px 110px -50px rgba(0, 0, 0, 0.85);
}

/* Headings get a red tab in the margin, a small cousin of the lower thirds */
.prose > h3 {
    grid-column: full;
    display: grid;
    grid-template-columns: var(--hang) minmax(0, 42rem);
    align-items: center;
    margin: 52px 0 18px;
    font: 850 clamp(34px, 3.1vw, 46px)/1 var(--display);
    color: var(--cream);
    text-wrap: balance;
}
.prose > h3::before,
.prose > h2:not(:has(.sec-num))::before {
    content: "";
    justify-self: end;
    width: 30px;
    height: 0.66em;
    margin-right: 22px;
    background: var(--red);
}
.prose > h4 {
    margin: 34px 0 8px;
    font: 750 23px/1.2 var(--label);
    color: var(--cream);
}

.prose strong { font-weight: 700; color: var(--cream); }
.prose a {
    color: var(--cream);
    text-decoration-color: rgba(241, 235, 222, 0.5);
    overflow-wrap: anywhere;
}
.prose a:hover { text-decoration-color: var(--cream); }

.prose ul {
    margin: 0 0 1.2em;
    padding: 0;
    list-style: none;
}
.prose li {
    position: relative;
    margin: 0 0 0.45em;
    padding-left: 28px;
}
.prose li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 0.68em;
    width: 8px;
    height: 8px;
    background: rgba(241, 235, 222, 0.55);
}

/* Newer and older posts */
.post-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 clamp(24px, 4vw, 64px);
    margin-top: clamp(64px, 7vw, 104px);
    padding-top: 32px;
    border-top: 1px solid var(--rule);
}
.post-nav-link {
    display: grid;
    align-content: start;
    justify-items: start;
    gap: 10px;
    color: var(--cream);
    text-decoration: none;
}
.post-nav-older { text-align: right; justify-items: end; }
.post-nav-label { font: 600 16px/1.3 var(--label); color: var(--mist); }
.post-nav-date {
    padding: 7px 9px 6px;
    background: var(--red);
    color: var(--chalk);
    font: 800 16px/1 var(--label);
}
.post-nav-title {
    font: 860 clamp(26px, 2.4vw, 36px)/0.98 var(--display);
    text-wrap: balance;
}
.post-nav-link:hover .post-nav-title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.12em; }
.post-nav-all {
    grid-column: 1 / -1;
    justify-self: center;
    margin-top: 44px;
    font: 700 18px/1.3 var(--label);
    color: var(--cream);
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
}

/* ---------- Policies: /policies, and each policy ---------- */

/* A policy's title tab carries the date it last changed */
.lt-updated {
    flex-direction: column;
    gap: 6px;
    padding: 10px 12px;
}
.lt-updated small { font: 600 14px/1 var(--label); opacity: 0.86; }

/* Numbered sections: the number sits in a red tab in the margin */
.prose > h2 {
    grid-column: full;
    display: grid;
    grid-template-columns: var(--hang) minmax(0, 42rem);
    align-items: center;
    margin: 56px 0 16px;
    font: 850 clamp(30px, 2.7vw, 42px)/1.02 var(--display);
    color: var(--cream);
    text-wrap: balance;
}
.sec-num {
    justify-self: end;
    min-width: 2.2em;
    margin-right: 22px;
    padding: 8px 8px 7px;
    background: var(--red);
    color: var(--chalk);
    font: 800 20px/1 var(--label);
    text-align: center;
    font-variant-numeric: tabular-nums;
}

/* The policies, listed: a red tab in the margin, and the title links the whole row */
.doc-list { padding: 0 var(--gutter) clamp(72px, 8vw, 120px); }
.doc-rows {
    --hang: 9.5rem;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0;
    list-style: none;
}
.doc-row {
    position: relative;
    display: grid;
    grid-template-columns: var(--hang) minmax(0, 46rem);
    padding: 34px 0 36px;
    border-top: 1px solid var(--rule);
}
.doc-row:last-child { border-bottom: 1px solid var(--rule); }
.doc-row::before {
    content: "";
    justify-self: end;
    width: 30px;
    height: 30px;
    margin: 4px 22px 0 0;
    background: var(--red);
}
.doc-row > * { grid-column: 2; }
.doc-row-title {
    margin: 0 0 10px;
    font: 860 clamp(32px, 3vw, 46px)/0.95 var(--display);
    color: var(--cream);
    text-wrap: balance;
}
.doc-row-title a { color: var(--cream); text-decoration: none; }
.doc-row-title a::after { content: ""; position: absolute; inset: 0; }
.doc-row-title a:focus-visible { box-shadow: none; }
.doc-row:has(.doc-row-title a:focus-visible) { box-shadow: 0 0 0 3px var(--ink), 0 0 0 6px var(--select); }
.doc-row:has(.doc-row-title a):hover .doc-row-title a { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 0.12em; }
.doc-row p { max-width: 40em; margin: 0 0 10px; color: rgba(241, 235, 222, 0.82); }
.doc-row .post-meta { margin: 0; }
.doc-row .read-link { justify-self: start; }

.doc-note { max-width: var(--max); margin: 34px auto 0; }
.doc-note p {
    max-width: 46rem;
    margin: 0 0 0 9.5rem;
    font-size: 17px;
    color: var(--mist);
}
.doc-note a { color: var(--cream); }

/* After a policy: the others, and how to ask about them */
.doc-others {
    max-width: var(--max);
    margin: clamp(72px, 8vw, 112px) auto 0;
    padding-top: 32px;
    border-top: 1px solid var(--rule);
}
.doc-others-title { margin: 0 0 24px; font: 860 clamp(30px, 2.6vw, 38px)/1 var(--display); }
.doc-others ul {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px clamp(24px, 3vw, 44px);
    margin: 0;
    padding: 0;
    list-style: none;
}
.doc-others li a { display: grid; gap: 8px; color: var(--cream); text-decoration: none; }
.doc-others-name { font: 860 clamp(26px, 2.2vw, 32px)/1 var(--display); }
.doc-others-sum { font-size: 16px; line-height: 1.45; color: rgba(241, 235, 222, 0.75); }
.doc-others li a:hover .doc-others-name { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.12em; }
.doc-ask { margin: 40px 0 0; color: var(--mist); }
.doc-ask a { color: var(--cream); }

/* Pricing: the buy box from the front page, and what you pay beside it */
.doc-pricing {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(32px, 5vw, 80px);
    align-items: start;
    max-width: var(--max);
    margin: clamp(36px, 4vw, 56px) auto 0;
}
.pricing-text h2 { margin: 6px 0 18px; font: 860 clamp(34px, 3vw, 46px)/1 var(--display); }
.pricing-text p { color: rgba(241, 235, 222, 0.86); }

/* ---------- Contact: /contact ---------- */

.contact { padding: 0 var(--gutter); }
.contact-inner { max-width: var(--max); margin: 0 auto; }
.contact-mail-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px 22px;
}
/* The address as a lower third, the biggest thing on the page */
.contact-mail { margin: 0; text-decoration: none; }
.contact-mail .lt-min { padding: 0 0.7em; }
.contact-mail .lt-title { font-size: clamp(34px, 5.4vw, 84px); overflow-wrap: anywhere; }
.contact-mail:hover .lt-title { background: var(--chalk); }

.btn-copy {
    height: 56px;
    padding: 0 20px;
    border: 2px solid rgba(241, 235, 222, 0.45);
    background: transparent;
    color: var(--cream);
    font: 700 19px/1 var(--label);
    cursor: pointer;
}
.btn-copy:hover { border-color: var(--cream); }

.contact-social {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 20px;
    margin: 30px 0 0;
    padding: 0;
    list-style: none;
}
.contact-social .lt { margin: 0; text-decoration: none; }
.contact-social .lt-min { min-width: 52px; }
.contact-social .lt-min svg { width: 22px; height: 22px; }
.contact-social .lt-title { font-size: clamp(24px, 2.2vw, 32px); padding: 0.2em 0.42em 0.16em; }
.contact-social a:hover .lt-title { background: var(--chalk); }

.contact-faq { padding: clamp(72px, 8vw, 112px) var(--gutter) clamp(72px, 8vw, 120px); }
.section-title {
    max-width: var(--max);
    margin: 0 auto 26px;
    font: 860 clamp(38px, 4vw, 60px)/0.95 var(--display);
}

/* ---------- Lost your key?: /resend-key ---------- */

/* The buy box's night stadium, with a cream card holding the form */
.keypage {
    display: flex;
    align-items: center;
    min-height: 100vh;
    min-height: 100svh;
}
.keypage-inner { width: 100%; max-width: var(--max); margin: 0 auto; }
.keycard { max-width: 620px; }
.keycard-lede { margin: 0 0 22px; font-size: 19px; line-height: 1.5; }
.key-form label { display: block; margin-bottom: 8px; font: 700 17px/1.2 var(--label); }
.key-form input {
    width: 100%;
    height: 58px;
    padding: 0 16px;
    border: 2px solid var(--ink);
    border-radius: 0;
    background: var(--chalk);
    color: var(--ink);
    font: 500 19px/1 var(--text);
}
.key-form .board-buy { margin-top: 16px; }
.key-error { margin: 10px 0 0; color: #a3261f; font: 600 16px/1.3 var(--label); }
.keypage-foot { margin: 26px 0 0; color: rgba(241, 235, 222, 0.86); }
.keypage-foot a { color: var(--cream); }

/* ---------- Narrower screens ---------- */

@media (max-width: 1100px) {
    .post-row { grid-template-columns: 9.5rem minmax(0, 1fr) minmax(0, 15rem); }
    /* Stacked, the latest post leads with its picture, like the rows under it */
    .blog-lead .scene-media { grid-row: 1; margin-top: 0; margin-bottom: 40px; }
}

@media (max-width: 860px) {
    .bug--page { grid-template-columns: auto auto 1fr; }
    .bug--post { grid-template-columns: auto auto auto 1fr; }
    .bug-section { font-size: 18px; padding: 0 12px; }

    .page-head { padding-top: 116px; }
    .page-head-inner { grid-template-columns: 1fr; }

    /* One column: the date tab stops hanging and sits over the text */
    .post { padding-top: 104px; }
    .post-lt .lt-min { width: auto; }
    .post-standfirst,
    .post-head .post-meta { margin-left: 0; }
    .post-hero { margin-inline: calc(-1 * var(--gutter)); }
    .post-hero img { aspect-ratio: 4 / 3; }

    .prose { grid-template-columns: [full-start text-start] minmax(0, 1fr) [text-end full-end]; font-size: 19px; }
    .prose > p:has(> img) { margin-inline: calc(-1 * var(--gutter)); }
    .prose > h3 { grid-template-columns: auto minmax(0, 1fr); }
    .prose > h3::before { width: 14px; margin-right: 14px; }

    .post-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
        padding: 28px 0 32px;
    }
    .post-row-shot { grid-row: 1; }
    .post-row-date { margin: 0; }

    .prose > h2 { grid-template-columns: auto minmax(0, 1fr); }
    .prose > h2 .sec-num { min-width: 0; margin-right: 14px; padding: 6px 7px 5px; font-size: 17px; }
    .prose > h2:not(:has(.sec-num))::before { width: 14px; margin-right: 14px; }

    .doc-rows { --hang: 0px; }
    .doc-row { grid-template-columns: minmax(0, 1fr); padding: 28px 0 30px; }
    .doc-row::before { width: 30px; height: 10px; margin: 0 0 14px; justify-self: start; }
    .doc-row > * { grid-column: 1; }
    .doc-note p { margin-left: 0; }
    .doc-others ul { grid-template-columns: minmax(0, 1fr); }
    .doc-pricing { grid-template-columns: minmax(0, 1fr); }

    .post-nav { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .post-nav-older { text-align: left; justify-items: start; }
    .post-nav-link.is-empty { display: none; }
}

/* Beside a section's name, the top bar has no room for the crossed-out price on a phone */
@media (max-width: 420px) {
    .bug--page ~ .buy-fixed .price-full { display: none; }
}

/* On the smallest screens the bug keeps home and the blog; the clock's bar still runs */
@media (max-width: 600px) {
    .contact-mail .lt-title { font-size: 6.4vw; }
    .bug--post .bug-clock { display: none; }
    .bug--post { grid-template-columns: auto auto 1fr; }
}

/* ==========================================================================
   The early access dialogue: every buy button opens it before the checkout.
   Run by resources/views/partials/paddle-checkout.blade.php.
   ========================================================================== */

.pp-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    padding: 24px var(--gutter);
    overflow-y: auto;
    overscroll-behavior: contain;
}
.pp-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(14, 15, 22, 0.9);
}
.pp-modal-card {
    position: relative;
    width: min(1040px, 100%);
    margin: auto;
    padding: clamp(28px, 3.2vw, 44px);
    background: var(--raise);
    color: var(--cream);
    box-shadow: 0 0 0 1px rgba(241, 235, 222, 0.12), 0 60px 120px -40px rgba(0, 0, 0, 0.9);
}
.pp-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 0;
    background: var(--cream);
    cursor: pointer;
}
.pp-modal-close:hover { background: var(--chalk); }
.pp-modal-close svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 2.4; }

.pp-modal-lt { margin: 0 64px 22px 0; }
.pp-modal-lt .lt-title { font-size: clamp(34px, 3.6vw, 50px); }

.pp-modal-lede {
    max-width: 52em;
    margin: 0 0 22px;
    font-size: clamp(17px, 1.35vw, 20px);
    line-height: 1.45;
    color: rgba(241, 235, 222, 0.88);
}

/* What early access means on the left, what is in the game on the right */
.pp-modal-cols {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 0 clamp(28px, 3.4vw, 48px);
    align-items: start;
    margin: 0 0 26px;
}
.pp-modal-card strong { font-weight: 700; color: var(--cream); }

/* What early access means: red tabs, like the headings on the policies */
.pp-modal-points { margin: 0; padding: 0; list-style: none; }
.pp-modal-points li {
    position: relative;
    padding: 11px 0 11px 30px;
    border-top: 1px solid var(--rule);
    font-size: 16px;
    line-height: 1.45;
    color: rgba(241, 235, 222, 0.8);
}
.pp-modal-points li:last-child { border-bottom: 1px solid var(--rule); }
.pp-modal-points li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 17px;
    width: 14px;
    height: 14px;
    background: var(--red);
}

/* What is in the game today: ticked, like what you get in the buy box. Its
   rule lines up with the first of the points beside it. */
.pp-modal-block { padding-top: 12px; border-top: 1px solid var(--rule); }
.pp-modal-subtitle { margin: 0 0 12px; font: 860 clamp(26px, 2.2vw, 30px)/1 var(--display); }
.pp-modal-included {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.pp-modal-included li {
    position: relative;
    padding-left: 30px;
    font-size: 16px;
    line-height: 1.4;
    color: rgba(241, 235, 222, 0.86);
}
.pp-modal-included li::before {
    content: "";
    position: absolute;
    left: 3px;
    top: 5px;
    width: 13px;
    height: 7px;
    border-left: 3px solid var(--grass-lit);
    border-bottom: 3px solid var(--grass-lit);
    transform: rotate(-45deg);
}

/* When paddle.js cannot load: the one thing the dialogue is then about */
.pp-modal-blocked {
    margin: 0 0 26px;
    padding: 20px 22px 6px;
    background: var(--cream);
    color: var(--ink);
}
.pp-modal-blocked p { font-size: 16px; line-height: 1.5; }
.pp-modal-blocked strong { color: var(--ink); }
.pp-modal-blocked a { color: var(--ink); }

/* Buy, the same button as the front page's; or, while sales are closed, when the game launches */
.pp-modal-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 16px;
    margin: 0 0 20px;
}
.pp-modal-buy {
    display: inline-flex;
    height: 60px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
}
.pp-modal-buy-label,
.pp-modal-buy-price {
    display: flex;
    align-items: center;
    padding: 0 22px;
    font: 800 22px/1 var(--label);
}
.pp-modal-buy-label { background: var(--cream); color: var(--ink); }
.pp-modal-buy-price {
    gap: 10px;
    border: 2px solid var(--cream);
    border-left: 0;
    background: var(--ink);
    color: var(--cream);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.pp-modal-buy:hover .pp-modal-buy-label { background: var(--chalk); }
.pp-modal-buy:disabled { cursor: default; box-shadow: none; }
.pp-modal-buy:disabled .pp-modal-buy-label {
    background: transparent;
    color: var(--cream);
    border: 2px solid rgba(241, 235, 222, 0.3);
}

.pp-modal-cancel {
    height: 60px;
    padding: 0 22px;
    border: 2px solid rgba(241, 235, 222, 0.45);
    background: transparent;
    color: var(--cream);
    font: 700 20px/1 var(--label);
    cursor: pointer;
}
.pp-modal-cancel:hover { border-color: var(--cream); }

.pp-modal-note {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    color: var(--mist);
}

/* A shorter screen: everything a little tighter, so the buttons stay in view */
@media (max-height: 820px) and (min-width: 861px) {
    .pp-modal { padding-block: 16px; }
    .pp-modal-card { padding: 28px 36px; }
    .pp-modal-lt { margin-bottom: 16px; }
    .pp-modal-lt .lt-title { font-size: 40px; }
    .pp-modal-lede { margin-bottom: 16px; font-size: 17px; }
    .pp-modal-points li { padding-block: 8px; font-size: 15px; }
    .pp-modal-points li::before { top: 14px; }
    .pp-modal-included { gap: 6px; }
    .pp-modal-included li { font-size: 15px; }
    .pp-modal-cols { margin-bottom: 18px; }
    .pp-modal-actions { margin-bottom: 14px; }
    .pp-modal-buy, .pp-modal-cancel { height: 54px; }
}

@media (max-width: 860px) {
    .pp-modal { padding: 12px; }
    .pp-modal-lt { margin-right: 52px; }
    .pp-modal-close { top: 10px; right: 10px; }
    .pp-modal-cols { grid-template-columns: minmax(0, 1fr); }
    .pp-modal-points { margin-bottom: 22px; }
    .pp-modal-block { padding-top: 0; border-top: 0; }
    .pp-modal-actions { align-items: stretch; flex-direction: column; }
    .pp-modal-buy, .pp-modal-cancel { width: 100%; }
    .pp-modal-buy-label { flex: 1; justify-content: center; }
    .pp-modal-buy-label, .pp-modal-buy-price { padding: 0 18px; font-size: 20px; }
}
