/* The Usual Shenanigans: site styles. Colours, glass and buttons live in tokens.css. */

@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url('/assets/webfonts/bricolage-grotesque-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;
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--night); color: var(--text); font-family: var(--font); font-optical-sizing: auto; font-size: 16px; line-height: 1.5; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul[role="list"], ol[role="list"] { padding: 0; list-style: none; }
a { color: var(--flare-text); }
a:hover { color: var(--flare-text-hover); }

.wrap { max-width: 1352px; margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; z-index: 10; left: 16px; top: -100px; padding: 12px 20px; border-radius: var(--radius-pill); background: var(--text-strong); color: var(--night); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; color: var(--night); }

.section { padding-block: clamp(64px, 9vw, 120px); scroll-margin-top: 16px; }
.section__title { font-size: clamp(32px, 4.2vw, 52px); line-height: 1.05; font-weight: 750; font-variation-settings: 'wdth' 85; letter-spacing: -0.015em; color: var(--text-strong); }
.section__lede { margin-top: 16px; max-width: 56ch; font-size: clamp(17px, 1.4vw, 20px); color: var(--text-body); }
.card-title { font-size: 20px; line-height: 1.2; font-weight: 750; font-variation-settings: 'wdth' 85; letter-spacing: -0.01em; color: var(--text-strong); }
.card { padding: 24px 26px; border-radius: var(--radius-card); background: var(--smoke); border: 1px solid var(--hairline); }

/* Buttons that sit on solid surfaces rather than over the photo */
.btn--quiet { border: 1px solid var(--hairline); background: rgba(255, 255, 255, 0.07); color: var(--text); }
.btn--quiet:hover { background: rgba(255, 255, 255, 0.13); color: #FFFFFF; }
.btn--disabled, .btn--disabled:hover { border: 1px solid var(--hairline); background: transparent; color: var(--text-muted); cursor: not-allowed; filter: none; }

/* ---- Navigation: a glass pill over the photo ---- */
.site-header { position: absolute; top: 20px; left: 0; right: 0; z-index: 5; padding: 0 var(--gutter); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: var(--content-max); margin: 0 auto; padding: 8px 8px 8px 22px; border-radius: var(--radius-pill); background: var(--glass-tint-light); }
.nav__brand { color: #F6EFE8; text-decoration: none; font-weight: 750; font-size: 19px; letter-spacing: -0.01em; font-variation-settings: 'wdth' 80; white-space: nowrap; }
.nav__brand:hover { color: #FFFFFF; }
.nav__links { display: flex; align-items: center; gap: 30px; font-size: 15px; }
.nav__links a { color: #DCCFC4; text-decoration: none; }
.nav__links a:hover { color: #FFFFFF; }
.nav .btn--glass { background: rgba(48, 41, 37, 0.35); }
.nav__toggle, .nav__login-menu { display: none; }
.nav__toggle { width: 44px; height: 44px; padding: 0; border: 0; border-radius: var(--radius-pill); background: rgba(48, 41, 37, 0.35); color: var(--text); align-items: center; justify-content: center; cursor: pointer; }
.nav__toggle:hover { background: var(--glass-hover); }
.nav__toggle .icon-close, .nav.is-open .nav__toggle .icon-open { display: none; }
.nav.is-open .nav__toggle .icon-close { display: block; }

/* ---- Hero ---- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; background: var(--night); }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 66% 45%; z-index: 0; }
.hero__img, .hero__embers { transform: translate3d(0, var(--parallax, 0px), 0); will-change: transform; }
.hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(15,14,13,.80) 0%, rgba(15,14,13,.48) 36%, rgba(15,14,13,0) 60%),
    linear-gradient(180deg, rgba(15,14,13,.55) 0%, rgba(15,14,13,0) 20%, rgba(15,14,13,0) 72%, var(--night) 100%);
}
.hero__fade-mobile { display: none; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, var(--night) 0%, var(--night) 30%, rgba(15,14,13,0) 50%); }
.hero__embers { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }

.hero__main { position: relative; z-index: 3; min-height: 100vh; min-height: 100svh; max-width: 1352px; margin: 0 auto; padding: 104px var(--gutter) 56px; display: flex; align-items: center; }
.hero__copy { width: 100%; max-width: 700px; }
.hero__title { font-size: clamp(52px, 7vw, 104px); line-height: 0.96; font-weight: 800; letter-spacing: 0.005em; font-variation-settings: 'wdth' 100; color: var(--text-strong); text-shadow: 0 2px 32px rgba(0,0,0,.35); }
.hero__lede { margin: 24px 0 0; max-width: 30ch; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; color: var(--text-body); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__hosted { margin: 20px 0 0; font-size: 14px; color: var(--text-muted); text-shadow: 0 1px 10px rgba(15, 14, 13, 0.9); }

.vote-card { margin-top: 28px; max-width: 620px; padding: 18px 22px 16px; border-radius: var(--radius-card); }
.vote-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; }
.vote-card__heading { display: flex; align-items: baseline; gap: 4px 12px; flex-wrap: wrap; }
.vote-card__title { font-size: 20px; line-height: 1.2; font-weight: 750; letter-spacing: -0.01em; font-variation-settings: 'wdth' 85; color: var(--text-strong); }
.vote-card__status { font-size: 14px; color: var(--text-soft); }
.vote-card__cta { font-size: 14px; font-weight: 600; white-space: nowrap; }
.vote-card .tally { margin-top: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px; }
.vote-card__note { margin: 16px 0 0; padding-top: 12px; border-top: 1px solid var(--hairline); font-size: 13px; line-height: 1.5; color: var(--text-muted); }

.embers-toggle { position: absolute; z-index: 4; right: var(--gutter); bottom: 24px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: var(--radius-pill); background: rgba(28,24,22,.42); color: var(--text); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.embers-toggle:hover { background: var(--glass-hover); }
.embers-toggle[data-state="playing"] .icon-play,
.embers-toggle[data-state="paused"] .icon-pause { display: none; }

/* Vote counts: shared by the hero card and the vote section. Bars stay empty until there is real data. */
.tally { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.tally__row { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 7px; font-size: 15px; }
.tally__votes { color: var(--text-soft); white-space: nowrap; }
.tally__track { display: block; height: 6px; border-radius: 999px; background: rgba(255,255,255,.10); overflow: hidden; }
.tally__bar { display: block; height: 100%; width: var(--share, 0%); border-radius: 999px; background: rgba(243,236,230,.5); }
.tally__bar--leading { background: var(--flare); }

/* ---- Vote section ---- */
.vote-section { background: radial-gradient(60% 90% at 85% 0%, rgba(255, 107, 44, 0.10), rgba(255, 107, 44, 0) 70%); }
.vote-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.vote-panel__status { margin-top: 12px; font-size: 16px; color: var(--text-soft); }
.vote-panel__actions { margin-top: 28px; }
.vote-box { padding: clamp(22px, 3vw, 34px); }
.vote-box__head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 22px; }
.vote-box .tally { gap: 22px; }
.vote-box .tally__row { font-size: 17px; }
.vote-box .tally__track { height: 8px; }
.vote-box__meta { font-size: 14px; color: var(--text-muted); }
.vote-box__note { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--hairline); font-size: 14px; color: var(--text-muted); }
.how-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: clamp(40px, 5vw, 64px) 0 0; padding: 0; list-style: none; counter-reset: step; }
.how-steps li { counter-increment: step; padding-top: 16px; border-top: 1px solid var(--hairline); }
.how-steps li::before { content: counter(step); display: block; margin-bottom: 8px; font-size: 14px; font-weight: 700; color: var(--flare-text); }
.how-steps p { margin-top: 6px; font-size: 15px; color: var(--text-soft); }

/* ---- Games ---- */
.games__group-title { margin: clamp(36px, 4vw, 52px) 0 16px; font-size: 14px; font-weight: 600; color: var(--text-soft); }
.games__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.game { height: 100%; }
.game p { margin-top: 8px; font-size: 16px; line-height: 1.5; color: var(--text-body); }
.games__more { max-width: 62ch; margin-top: clamp(36px, 4vw, 52px); padding-top: 24px; border-top: 1px solid var(--hairline); }
.games__more p { margin-top: 8px; color: var(--text-soft); }

/* ---- Where we host ---- */
.host { padding-block: 0; }
.host__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; padding-block: 28px; border-block: 1px solid var(--hairline); }.host__title { font-size: 16px; font-weight: 600; color: var(--text-soft); }
.host__list { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0; padding: 0; list-style: none; font-size: 17px; color: var(--text); }
.flag { display: inline-block; height: 0.8em; margin-right: 0.5em; vertical-align: -0.02em; border-radius: 2px; background-size: cover; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15); }
.flag-se { width: 1.28em; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 10'%3E%3Crect width='16' height='10' fill='%23006AA7'/%3E%3Crect x='5' width='2' height='10' fill='%23FECC00'/%3E%3Crect y='4' width='16' height='2' fill='%23FECC00'/%3E%3C/svg%3E"); }
.flag-gb { width: 1.6em; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'%3E%3CclipPath id='s'%3E%3Cpath d='M0,0 v30 h60 v-30 z'/%3E%3C/clipPath%3E%3CclipPath id='t'%3E%3Cpath d='M30,15 h30 v15 z v15 h-30 z h-30 v-15 z v-15 h30 z'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23s)'%3E%3Cpath d='M0,0 v30 h60 v-30 z' fill='%23012169'/%3E%3Cpath d='M0,0 L60,30 M60,0 L0,30' stroke='%23fff' stroke-width='6'/%3E%3Cpath d='M0,0 L60,30 M60,0 L0,30' clip-path='url(%23t)' stroke='%23C8102E' stroke-width='4'/%3E%3Cpath d='M30,0 v30 M0,15 h60' stroke='%23fff' stroke-width='10'/%3E%3Cpath d='M30,0 v30 M0,15 h60' stroke='%23C8102E' stroke-width='6'/%3E%3C/g%3E%3C/svg%3E"); }

/* ---- Supporters teaser ---- */
.teaser__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.teaser__text { max-width: 56ch; }
.teaser__text p { margin-top: 12px; font-size: 18px; color: var(--text-body); }

/* ---- Final call to action: the photo again, with a glass card on it ---- */
.cta { position: relative; overflow: hidden; padding-block: clamp(72px, 10vw, 140px); background: var(--night); }
.cta__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 66% 60%; }
.cta__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, var(--night) 0%, rgba(15,14,13,.45) 35%, rgba(15,14,13,.55) 100%); }
.cta__card { position: relative; max-width: 640px; padding: clamp(26px, 4vw, 44px); border-radius: var(--radius-card); }
.cta__card p { margin-top: 14px; font-size: 18px; color: var(--text-body); }
.cta__card .btn { margin-top: 26px; }
.cta__card .cta__alt { margin-top: 18px; font-size: 15px; color: var(--text-soft); }

/* ---- Footer ---- */
.site-footer { padding-block: 48px 36px; border-top: 1px solid var(--hairline); background: var(--night); }
.site-footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px 48px; }
.site-footer__brand { max-width: 32ch; }
.site-footer__name { font-weight: 750; font-size: 19px; letter-spacing: -0.01em; font-variation-settings: 'wdth' 80; color: #F6EFE8; }
.site-footer__brand p { margin-top: 8px; font-size: 15px; color: var(--text-soft); }
.site-footer__nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 28px; max-width: 600px; margin: 0; padding: 0; list-style: none; font-size: 15px; }
.site-footer__nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-body); text-decoration: none; }
.site-footer__nav a:hover { color: #FFFFFF; text-decoration: underline; }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 6px 28px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--hairline); font-size: 13px; color: var(--text-muted); }

/* ---- Inner pages: a short band with the blurred photo behind the nav ---- */
.page-hero { position: relative; padding: 148px 0 clamp(36px, 5vw, 64px); background: linear-gradient(180deg, rgba(15,14,13,0) 45%, var(--night) 100%), url('/images/page-band.webp') 70% 40% / cover no-repeat, var(--night); }
.page-hero__title { max-width: 18ch; font-size: clamp(40px, 5.5vw, 76px); line-height: 1; font-weight: 800; letter-spacing: 0.005em; font-variation-settings: 'wdth' 100; color: var(--text-strong); }
.page-hero__lede { margin-top: 16px; max-width: 48ch; font-size: clamp(17px, 1.5vw, 20px); color: var(--text-body); }
.page-body { padding-block: 24px clamp(64px, 8vw, 112px); }

.prose { max-width: 70ch; }
.prose h2 { margin-top: 2.2em; font-size: 26px; line-height: 1.15; font-weight: 750; font-variation-settings: 'wdth' 85; letter-spacing: -0.01em; color: var(--text-strong); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6em; font-size: 20px; line-height: 1.25; font-weight: 750; font-variation-settings: 'wdth' 85; color: var(--text-strong); }
.prose p, .prose ul, .prose ol { margin-top: 1em; color: var(--text-body); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose hr { margin: 2em 0; border: 0; border-top: 1px solid var(--hairline); }
.prose strong, .prose b { color: var(--text); font-weight: 650; }

.nav__links a[aria-current="page"] { color: #FFFFFF; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; text-decoration-color: var(--flare-text); }

.notice { max-width: 62ch; margin-bottom: clamp(28px, 4vw, 44px); padding: 16px 20px; border-radius: 16px; background: var(--smoke); border: 1px solid var(--hairline); color: var(--text-body); }

/* ---- Supporter plans ---- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; margin: 0; }
.plan { position: relative; display: flex; flex-direction: column; padding: 28px; border-radius: var(--radius-card); background: var(--smoke); border: 1px solid var(--hairline); }
.plan--recommended { padding: 27px; border: 2px solid var(--flare); }
.plan__tag { position: absolute; top: -14px; left: 26px; padding: 2px 14px; border: 1px solid var(--flare); border-radius: var(--radius-pill); background: var(--night); color: var(--flare-text); font-size: 14px; font-weight: 600; }
.plan__name { font-size: 26px; line-height: 1.1; font-weight: 750; font-variation-settings: 'wdth' 85; letter-spacing: -0.01em; color: var(--text-strong); }
.plan__price { margin-top: 10px; font-size: 48px; line-height: 1; font-weight: 800; font-variation-settings: 'wdth' 90; color: var(--text-strong); }
.plan__price span { margin-left: 2px; font-size: 18px; font-weight: 500; color: var(--text-soft); }
.plan__tagline { margin-top: 10px; color: var(--text-body); }
.plan__features { flex: 1; margin: 18px 0 24px; padding: 0; list-style: none; }
.plan__features li { padding: 12px 0; border-top: 1px solid var(--hairline); color: var(--text); }
.plan__features small { display: block; margin-top: 2px; font-size: 14px; color: var(--text-muted); }
.plan__action { width: 100%; }

/* Where subgrid is supported, every row lines up across the three cards */
@supports (grid-template-rows: subgrid) {
  @media (min-width: 900px) {
    .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(9, auto); column-gap: 20px; row-gap: 0; }
    .plan { display: grid; grid-row: span 9; grid-template-rows: subgrid; }
    .plan__features { display: contents; }
    .plan__features li { margin-inline: 0; }
    .plan__tagline { margin-bottom: 18px; }
    .plan__action { align-self: end; margin-top: 24px; }
  }
}

/* ---- Page content ---- */
.page-body .section__title { font-size: clamp(28px, 3vw, 38px); }
.page-hero__jump { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 20px; font-weight: 600; }
.table-wrapper:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

.join-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.checklist { margin: 24px 0 0; padding: 0; list-style: none; }
.checklist li { position: relative; padding: 18px 0 18px 46px; border-top: 1px solid var(--hairline); }
.checklist li:last-child { border-bottom: 1px solid var(--hairline); }
.checklist li::before { content: ""; position: absolute; left: 2px; top: 21px; width: 22px; height: 22px; border: 2px solid var(--flare-text); border-radius: 50%; }
.checklist li::after { content: ""; position: absolute; left: 10px; top: 25px; width: 6px; height: 11px; border: solid var(--flare-text); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.checklist strong { display: block; font-size: 18px; font-weight: 650; color: var(--text-strong); }
.checklist span { display: block; margin-top: 2px; color: var(--text-soft); }
.join-cta p { margin-top: 10px; color: var(--text-body); }
.join-cta .btn { margin-top: 22px; }

/* Terms and privacy */
.prose .legal-part__title { margin-top: 0; font-size: clamp(32px, 4vw, 48px); line-height: 1.05; letter-spacing: -0.015em; }
.legal-part__meta { margin-top: 8px; color: var(--text-soft); }
.prose h4 { margin-top: 1.4em; font-size: 17px; line-height: 1.3; font-weight: 650; color: var(--text-strong); }
.prose[id] { scroll-margin-top: 24px; }
.legal-second { margin-top: clamp(64px, 9vw, 112px); padding-top: clamp(40px, 6vw, 72px); border-top: 1px solid var(--hairline); }
.prose .table-wrapper { margin-top: 1.2em; overflow-x: auto; border: 1px solid var(--hairline); border-radius: 14px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { padding: 12px 16px; text-align: left; vertical-align: top; border-top: 1px solid var(--hairline); }
.prose thead th { border-top: 0; background: rgba(255, 255, 255, 0.04); font-weight: 650; color: var(--text-strong); }
.prose td { color: var(--text-body); }

/* ---- Server status ---- */
.live-status-summary { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; font-size: 18px; font-weight: 650; color: var(--text-strong); }
.live-status-summary::before { content: ""; flex-shrink: 0; width: 12px; height: 12px; border: 2px solid var(--text-soft); border-radius: 50%; }
.live-status-summary[data-state="online"]::before { background: var(--status-online); border-color: var(--status-online); }
.live-status-summary[data-state="partial"]::before { background: linear-gradient(90deg, var(--status-warn) 50%, transparent 50%); border-color: var(--status-warn); }
.live-status-summary[data-state="offline"]::before, .live-status-summary[data-state="stale"]::before { border-color: var(--status-down); }
.live-status-summary[data-state="error"]::before { border-color: var(--status-down); border-style: dashed; }
.live-status-meta { margin-top: 6px; font-size: 14px; color: var(--text-soft); }

.live-status-list { --card: 21rem; display: grid; grid-template-columns: repeat(auto-fill, var(--card)); grid-auto-rows: 1fr; gap: 20px; margin: 0; padding: 0; list-style: none; }
.live-status-list:empty { display: none; }
.status-row { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto 1fr auto; grid-template-areas: "dot state" "label label" "detail detail"; align-items: center; gap: 20px 0; min-height: var(--card); padding: 24px; border-radius: var(--radius-card); background: var(--smoke); border: 1px solid var(--hairline); }
.status-dot { grid-area: dot; width: 12px; height: 12px; border-radius: 50%; }
.is-online .status-dot { background: var(--status-online); }
.is-offline .status-dot { border: 2px solid var(--status-down); }
.status-state { grid-area: state; justify-self: end; padding: 3px 12px; border-radius: var(--radius-pill); font-size: 14px; font-weight: 650; }
.is-online .status-state { background: rgba(61, 220, 132, 0.12); color: var(--status-online); }
.is-offline .status-state { background: rgba(255, 90, 90, 0.12); color: var(--status-down-text); }
.status-label { grid-area: label; display: flex; flex-direction: column; align-self: start; min-width: 0; }
.status-name { display: flex; align-items: center; font-size: 22px; line-height: 1.2; font-weight: 750; font-variation-settings: 'wdth' 85; letter-spacing: -0.01em; color: var(--text-strong); }
.status-name .flag { margin: 0 0 0 0.5em; }
.status-game { margin-top: 4px; font-size: 15px; color: var(--text-soft); }
.status-specs { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; padding: 0; list-style: none; }
.status-specs li { margin: 0; padding: 3px 11px; border: 1px solid var(--hairline); border-radius: var(--radius-pill); background: rgba(255, 255, 255, 0.04); font-size: 13px; color: var(--text-body); }
.status-detail { grid-area: detail; padding-top: 14px; border-top: 1px solid var(--hairline); font-size: 15px; color: var(--text-body); }
.status-detail:empty { visibility: hidden; }

.issues { margin-top: clamp(56px, 7vw, 96px); }
#incidents-list { display: grid; gap: 16px; max-width: 760px; margin-top: 28px; }
.incident-card { padding: 20px 22px; border: 1px solid var(--hairline); border-left: 4px solid var(--text-soft); border-radius: 16px; background: var(--smoke); }
.incident-card.investigating { border-left-color: var(--status-down); }
.incident-card.unresolved, .incident-card.monitoring { border-left-color: var(--status-warn); }
.incident-card.resolved { border-left-color: var(--status-online); }
.incident-header { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 8px; }
.incident-badge { display: inline-block; padding: 2px 12px; border-radius: var(--radius-pill); font-size: 14px; font-weight: 650; background: rgba(255, 255, 255, 0.08); color: var(--text); }
.incident-badge::first-letter { text-transform: uppercase; }
.incident-badge.investigating { background: rgba(255, 90, 90, 0.14); color: var(--status-down-text); }
.incident-badge.unresolved, .incident-badge.monitoring { background: rgba(245, 165, 36, 0.14); color: var(--status-warn); }
.incident-badge.resolved { background: rgba(61, 220, 132, 0.12); color: var(--status-online); }
.incident-date { font-size: 14px; color: var(--text-soft); }
.incident-card h3 { font-size: 20px; line-height: 1.25; font-weight: 750; font-variation-settings: 'wdth' 85; color: var(--text-strong); }
.incident-card > p { margin-top: 6px; color: var(--text-body); }
.incident-updates { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--hairline); }
.incident-update { display: flex; gap: 14px; margin-top: 8px; }
.update-time { flex-shrink: 0; font-size: 14px; font-variant-numeric: tabular-nums; color: var(--text-muted); }
.incident-update p { color: var(--text-body); }
.no-incidents { color: var(--text-soft); }

/* ---- 404 ---- */
.error-page { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding-bottom: 72px; text-align: center; }
.error-page .wrap { display: flex; flex-direction: column; align-items: center; }
.error-page .page-hero__title { max-width: 16ch; }
.error-page .page-hero__lede { max-width: 52ch; }
.error-page__code { margin-top: 4px; font-size: 16px; color: var(--text-soft); }
.error-page__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.burning-pc { width: min(16rem, 70vw); height: auto; margin-bottom: 20px; overflow: visible; }
.pc-body { fill: var(--smoke); stroke: rgba(255, 255, 255, 0.22); stroke-width: 2; }
.pc-screen { fill: var(--night); }
.pc-code { font-family: var(--font); font-size: 34px; font-weight: 800; fill: var(--text-strong); }
.pc-crack { fill: none; stroke: rgba(255, 255, 255, 0.45); stroke-width: 1.5; }
.pc-crack--thin { stroke: rgba(255, 255, 255, 0.3); stroke-width: 1; }
.pc-flame { fill: var(--flare); }
.pc-flame-core { fill: #FFB27A; }
.pc-smoke circle { fill: var(--text-soft); opacity: 0.25; }

/* ---- Signed-in account in the navbar ---- */
.nav__account { display: flex; justify-content: flex-end; }
.account { position: relative; }
.account__btn { display: inline-flex; align-items: center; gap: 10px; max-width: 230px; min-height: 44px; padding: 0 16px 0 6px; border: 0; border-radius: var(--radius-pill); background: rgba(48, 41, 37, 0.35); color: var(--text); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.account__btn:hover { background: var(--glass-hover); color: #FFFFFF; }
.account__btn::after { content: ""; flex-shrink: 0; width: 6px; height: 6px; margin: -2px 0 0 2px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.account__btn[aria-expanded="true"]::after { margin-top: 3px; transform: rotate(225deg); }
.account__avatar { flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: var(--smoke); }
.account__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account__menu { position: absolute; z-index: 6; right: 0; top: calc(100% + 10px); min-width: 180px; padding: 6px; border-radius: 16px; background: #181513; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5), inset 0 0 0 1px var(--hairline); }
.account__menu[hidden] { display: none; }
.account__item { text-decoration: none; display: flex; align-items: center; width: 100%; min-height: 44px; padding: 0 14px; border: 0; border-radius: 10px; background: transparent; color: var(--text); font: inherit; font-size: 15px; text-align: left; cursor: pointer; }
.account__item:hover { background: rgba(255, 255, 255, 0.08); color: #FFFFFF; }
.account__item[aria-current="page"] { color: #FFFFFF; font-weight: 600; }
.nav__user, .nav__logout, .nav__profile { display: none; } /* phone menu only; the .nav__links a rule shows them there */

/* A short message after something went wrong */
.toast { position: fixed; z-index: 20; left: 50%; bottom: 24px; display: flex; align-items: center; gap: 12px; max-width: min(92vw, 460px); padding: 14px 8px 14px 18px; transform: translateX(-50%); border-radius: 16px; background: #181513; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55), inset 0 0 0 1px var(--hairline); color: var(--text); font-size: 15px; }
.toast__close { flex-shrink: 0; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--text-soft); font-size: 24px; line-height: 1; cursor: pointer; }
.toast__close:hover { background: rgba(255, 255, 255, 0.08); color: #FFFFFF; }

/* ---- Profile page ---- */
.profile { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 20px; align-items: start; }
.profile__loading { color: var(--text-soft); }
.profile__who { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; }
.profile__avatar { flex-shrink: 0; width: 96px; height: 96px; border-radius: 50%; object-fit: cover; background: var(--smoke); box-shadow: 0 0 0 2px var(--hairline); }
.profile__names { flex: 1 1 220px; min-width: 0; }
.profile__name { font-size: clamp(26px, 3vw, 34px); line-height: 1.1; font-weight: 750; font-variation-settings: 'wdth' 85; letter-spacing: -0.01em; color: var(--text-strong); overflow-wrap: anywhere; }
.profile__sub { margin-top: 6px; font-size: 15px; color: var(--text-soft); }
.profile__card p { margin-top: 10px; color: var(--text-body); }
.profile__card .btn { margin-top: 18px; }
.profile__note { font-size: 14px; color: var(--text-soft); }
.profile__card .profile__note { color: var(--text-soft); }
.profile__list { margin: 12px 0 0; padding-left: 1.2em; color: var(--text-body); }
.profile__list li + li { margin-top: 8px; }
.facts { margin: 14px 0 0; }
.facts > div { display: flex; justify-content: space-between; gap: 6px 20px; flex-wrap: wrap; padding: 12px 0; border-top: 1px solid var(--hairline); }
.facts dt { color: var(--text-soft); }
.facts dd { margin: 0; color: var(--text-strong); text-align: right; overflow-wrap: anywhere; }
.facts code { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: 14px; }

/* ---- Casting a vote ---- */
.vote-box__hint { margin: 0 0 20px; font-size: 14px; color: var(--text-soft); }
.vote-box__actions { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 26px; }
.vote-box__status { font-size: 15px; color: var(--text-body); }
.vote-box__status:empty { display: none; }
.tally__pick { display: block; margin: -10px -12px; padding: 10px 12px; border-radius: 14px; cursor: pointer; }
.tally__pick:hover { background: rgba(255, 255, 255, 0.05); }
.tally__pick:has(input:checked) { background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 2px rgba(255, 154, 107, 0.7); }
.tally__pick input:checked + .tally__row { color: #FFFFFF; font-weight: 650; }
.tally__pick input:checked + .tally__row .tally__name::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 10px; border-radius: 50%; background: var(--flare-text); }
.tally__pick input:focus-visible + .tally__row { outline: 2px solid var(--focus); outline-offset: 6px; border-radius: 6px; }
.tally__mine { margin-left: 10px; padding: 1px 10px; border: 1px solid var(--flare-text); border-radius: var(--radius-pill); font-size: 13px; font-weight: 600; color: var(--flare-text); }
.tally .is-mine .tally__row { color: #FFFFFF; }

/* A small glass box above the cast button: sign in, or join the server */
.vote-prompt { position: absolute; z-index: 2; left: 0; bottom: calc(100% + 12px); width: min(100%, 400px); padding: 16px 18px 18px; border-radius: 18px; background: rgba(22, 19, 17, 0.72); }
.vote-prompt .card-title { padding-right: 36px; font-size: 18px; }
.vote-prompt p { margin-top: 6px; font-size: 14px; color: var(--text-body); }
.vote-prompt .btn { margin-top: 14px; min-height: 46px; }
.vote-prompt .vote-prompt__note { margin-top: 12px; font-size: 13px; color: var(--text-soft); }
.vote-prompt__close { position: absolute; top: 6px; right: 6px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--text-soft); font-size: 26px; line-height: 1; cursor: pointer; }
.vote-prompt__close:hover { background: rgba(255, 255, 255, 0.08); color: #FFFFFF; }

/* ---- Mobile ---- */
@media (max-width: 900px) {
  .vote-panel { grid-template-columns: 1fr; }
  .how-steps { grid-template-columns: 1fr; }
  .site-footer__nav { justify-content: flex-start; max-width: none; }
  .join-layout { grid-template-columns: 1fr; }
  .vote-card { display: none; } /* the full vote section follows, and the card would cover the fire */
}

@media (max-width: 600px) {
  .live-status-list { grid-template-columns: 1fr; }
  .status-row { min-height: 0; }
  .incident-update { flex-direction: column; gap: 2px; }
  .page-hero { padding-top: 124px; }
}

@media (max-width: 760px) {
  .nav { padding-left: 20px; }
  .nav__toggle { display: flex; }
  .nav__links, .nav__account { display: none; }
  .nav.is-open .nav__links { position: absolute; top: calc(100% + 10px); left: 0; right: 0; display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 10px; border-radius: var(--radius-card); background: #181513; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5), inset 0 0 0 1px var(--hairline); }
  .nav__links a { display: flex; align-items: center; min-height: 48px; padding: 0 14px; border-radius: 12px; font-size: 17px; }
  .nav__links a:hover { background: rgba(255, 255, 255, 0.07); }
  .nav__links .nav__user { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; font-size: 17px; font-weight: 600; color: var(--text-strong); }
  .nav__links .nav__logout { display: flex; align-items: center; width: 100%; min-height: 48px; padding: 0 14px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, 0.09); color: var(--text); font: inherit; font-size: 17px; font-weight: 600; cursor: pointer; }
  .nav__links .nav__logout:hover { background: rgba(255, 255, 255, 0.14); color: #FFFFFF; }
  .nav__links .nav__login-menu { display: flex; justify-content: center; margin-top: 6px; background: rgba(255, 255, 255, 0.09); font-weight: 600; }

  .hero__main { align-items: flex-start; padding-top: 112px; }
  .hero__img { top: 30%; height: 70%; object-position: 74% 60%; }
  .hero__fade-mobile { display: block; }

  .teaser__inner { align-items: flex-start; }
  .cta__img { object-position: 72% 60%; }
}

@media (max-width: 480px) {
  .btn { width: 100%; }
  .hero__actions { flex-direction: column; }
  .site-footer__nav { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
}
