/* New School 99: the home page. Needs ns.css. */

/* ---------- hero: the world at dusk ---------- */
.hero { --ridge-h: 0px; position: relative; height: clamp(720px, 86svh, 860px); overflow: hidden; isolation: isolate; background: #101c26; }      /* not a full screen: the realm band shows under it */
.hero.has-ridge { --ridge-h: 150px; }
.hero-poster { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -4; overflow: hidden; }
.hero-poster img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; transform-origin: 62% 46%; animation: dusk 46s ease-in-out infinite alternate; will-change: transform; }
/* the world at dusk breathes: a slow push in and drift, so the still never looks frozen (the footage itself is in the reel) */
@keyframes dusk { from { transform: scale(1.02) translate3d(0, 0, 0); } to { transform: scale(1.11) translate3d(-1.6%, -.8%, 0); } }
/* The dusk: the sky sinks to night blue, the horizon keeps a warm band, and the left is a real scrim for the headline. */
.hero-shade { position: absolute; inset: 0; z-index: -2; background:
  linear-gradient(180deg, rgba(8,16,32,.93) 0, rgba(12,24,48,.72) 22%, rgba(40,34,50,.2) 44%, rgba(10,19,26,0) 56%),
  radial-gradient(60% 26% at 62% 40%, rgba(255,150,84,.2), transparent 70%),
  linear-gradient(90deg, rgba(10,19,26,.95) 0, rgba(10,19,26,.82) 30%, rgba(10,19,26,.38) 56%, rgba(10,19,26,0) 76%),
  linear-gradient(0deg, var(--night) 0, rgba(10,19,26,.7) 16%, rgba(10,19,26,0) 46%); }
.wisps { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero-tools { position: absolute; left: max(var(--gut), calc((100% - var(--wide)) / 2)); top: calc(var(--nav-h) + 10px); z-index: 2; display: flex; gap: 4px; }
.hero-tools .icon-btn { background: rgba(10,19,26,.5); }
.hero-in { position: absolute; left: 0; right: 0; bottom: calc(var(--ridge-h) + 44px); width: min(var(--wide), 100% - 2 * var(--gut)); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1fr) 392px; gap: 40px; align-items: end; }
.hero-live { display: flex; align-items: baseline; gap: 12px; font-size: clamp(19px, 1.7vw, 24px); font-weight: 700; color: var(--wisp); text-shadow: 0 1px 12px rgba(0,0,0,.9); margin-bottom: 14px; min-height: 1.5em; }
.hero-live.is-off { color: var(--ink-2); }
.hero-live .dot { transform: translateY(-.12em); }
.hero-live b { font-weight: 800; font-size: 1.3em; line-height: 0; color: #c9fff0; display: inline-block; }
.hero-live b.bump { animation: bump .7s cubic-bezier(.2,.9,.3,1.4); }
@keyframes bump { 0% { transform: translateY(.3em) scale(.8); opacity: .3; } 100% { transform: none; opacity: 1; } }
/* The one sentence that says what the game is: set in the plain face so nobody has to decode it. */
.hero h1 { font: 800 clamp(44px, 6vw, 88px)/.98 var(--text); letter-spacing: -.018em; max-width: 10.5em; text-shadow: 0 2px 30px rgba(0,0,0,.7), 0 1px 0 rgba(0,0,0,.5); }
.hero-sub { margin-top: 20px; font-size: clamp(18px, 1.5vw, 22px); max-width: 44ch; color: #f4eeda; text-shadow: 0 1px 10px rgba(0,0,0,.85); }
.hero-cta { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-alt { margin-top: 12px; font-size: 16px; color: var(--ink-2); text-shadow: 0 1px 8px rgba(0,0,0,.9); }
.hero-alt a { color: var(--ink); }
.hero-side { display: grid; gap: 12px; }

/* the closest fight for a first place */
.fight { padding-bottom: 2px; }
.fight-body { padding: 12px 16px 4px; height: 176px; overflow: hidden; }
.fight-top { display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: 16px; margin-bottom: 10px; }
.fight-top img { width: 28px; height: 28px; }
.fight-top b { color: var(--ink); }
.fight-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 12px; align-items: baseline; }
.fight-row + .fight-row { margin-top: 10px; }
.fight-row .who { font-size: 22px; line-height: 1.1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fight-row.is-lead .who { color: var(--gold-hi); }
.fight-xp { color: var(--ink-2); font-weight: 700; }
.fight-bar { grid-column: 1 / -1; height: 7px; background: rgba(255,255,255,.08); border-radius: 2px; overflow: hidden; }
.fight-bar i { display: block; height: 100%; width: calc(var(--p, 1) * 100%); background: linear-gradient(90deg, var(--bronze), var(--gold)); transform-origin: left; animation: grow .9s cubic-bezier(.2,.8,.2,1) both; }
.fight-row.is-chase .fight-bar i { background: linear-gradient(90deg, #8f2a17, var(--ember)); }
@keyframes grow { from { transform: scaleX(0); } }
.fight-gap { margin-top: 10px; color: var(--ink-2); font-size: 16px; }
.fight-gap b { color: var(--ember); font-size: 22px; font-weight: 800; }
.fight-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 6px 16px 0; padding: 9px 0 10px; border-top: 1px solid var(--frame); font-size: 16px; }
.fight-foot a { font-weight: 700; }
.fight-dots { display: flex; gap: 6px; }
.fight-dots button { width: 22px; height: 18px; padding: 6px 0; border: 0; background: none; cursor: pointer; }
.fight-dots button::before { content: ""; display: block; height: 6px; border-radius: 2px; background: rgba(255,255,255,.18); }
.fight-dots button[aria-current="true"]::before { background: var(--gold); }

/* just now: the three newest deeds, each written in */
.now-list { list-style: none; margin: 0; padding: 4px 0; height: 180px; overflow: hidden; }
.now-list li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 0 14px; height: 57px; }
.now-list .ev-text { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.now-list li.is-new { animation: dropin .7s cubic-bezier(.2,.8,.2,1); }
.now-list li.is-new .ev-ico { animation: flare 1.6s ease-out; }
.now-list li.is-new .ev-text { animation: write 1.1s .15s steps(34, end) both; }
@keyframes dropin { 0% { opacity: 0; transform: translateY(-57px); } 100% { opacity: 1; transform: none; } }
@keyframes flare { 0% { filter: drop-shadow(0 0 0 var(--ember)) brightness(2); transform: scale(1.5); } 100% { filter: none; transform: none; } }
@keyframes write { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.now-empty { padding: 18px 14px 22px; color: var(--ink-2); }

/* a deed rising from a light */
.wisp-says { position: absolute; z-index: 1; pointer-events: none; transform: translate(-50%, -100%); padding: 6px 12px; border-radius: 4px; background: rgba(10,19,26,.84); border: 1px solid rgba(255,138,74,.6); color: var(--ink); font-size: 16px; white-space: nowrap; animation: says 5s ease-out forwards; }
.wisp-says b { color: var(--gold-hi); font-weight: 800; }
@keyframes says { 0% { opacity: 0; margin-top: 10px; } 8% { opacity: 1; margin-top: -14px; } 80% { opacity: 1; margin-top: -40px; } 100% { opacity: 0; margin-top: -56px; } }

/* the ridge: 48 hours of adventurers online, drawn as the horizon under the footage */
.ridge { position: absolute; left: 0; right: 0; bottom: -1px; height: var(--ridge-h); z-index: 0; }
.ridge svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ridge-fill { fill: var(--night); }
.ridge-line { fill: none; stroke: var(--wisp); stroke-width: 1.8; vector-effect: non-scaling-stroke; }
.ridge svg.ridge-draw { filter: drop-shadow(0 0 6px rgba(154,245,217,.85)); animation: draw 2.6s .4s cubic-bezier(.3,.1,.2,1) both; }
@keyframes draw { from { clip-path: inset(-40px 100% -40px 0); } to { clip-path: inset(-40px 0 -40px 0); } }
.ridge-mark { position: absolute; transform: translate(-50%, 50%); display: flex; flex-direction: column; align-items: center; pointer-events: none; }
.ridge-now { width: 14px; height: 14px; border-radius: 50%; background: var(--wisp); box-shadow: 0 0 18px 4px rgba(154,245,217,.7); animation: breathe 2.6s ease-out infinite; }
.ridge-now-label { position: absolute; bottom: 22px; white-space: nowrap; font-size: 15px; font-weight: 700; color: var(--wisp); text-shadow: 0 1px 6px #000, 0 0 12px #000; }
.ridge-flag { position: absolute; transform: translate(-50%, 0); font-size: 14px; line-height: 1.2; color: var(--ink); text-align: center; white-space: nowrap; text-shadow: 0 1px 6px #000; margin-bottom: 6px; }
.ridge-flag::after { content: ""; display: block; width: 1px; height: 18px; margin: 3px auto 0; background: linear-gradient(var(--wisp), transparent); }
.ridge-flag b { color: var(--wisp); }
.ridge-axis { position: absolute; left: 0; right: 0; bottom: 10px; width: min(var(--wide), 100% - 2 * var(--gut)); margin-inline: auto; color: var(--ink-3); font-size: 15px; }

/* ---------- ticker ---------- */
.ticker { position: relative; height: 54px; display: flex; align-items: center; overflow: hidden; background: var(--deep); border-block: 1px solid var(--frame); }
.ticker::before, .ticker::after { content: ""; position: absolute; top: 0; bottom: 0; width: 70px; z-index: 1; pointer-events: none; }
.ticker::before { left: 0; background: linear-gradient(90deg, var(--deep), transparent); }
.ticker::after { right: 0; background: linear-gradient(270deg, var(--deep), transparent); }
.ticker-track { list-style: none; margin: 0; padding: 0 0 0 24px; display: flex; gap: 44px; white-space: nowrap; width: max-content; animation: tick var(--tick, 80s) linear infinite; }
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track { animation-play-state: paused; }
.ticker-track li { display: inline-flex; align-items: center; gap: 10px; }
.ticker-track .ev-ico, .ticker-track .ev-ico img { width: 26px; height: 26px; }
.ticker-track .ev-ico svg { width: 22px; height: 22px; }
.ticker-track .ev-text { font-size: 17px; }
.ticker-empty { color: var(--ink-3); padding-left: var(--gut); }
@keyframes tick { to { transform: translateX(-50%); } }
html.calm .ticker { overflow-x: auto; }
html.calm .ticker-track { animation: none; }

/* ---------- the realm right now: big labelled figures in one board ---------- */
.realm { padding: clamp(36px, 4.6vw, 60px) 0 clamp(20px, 3vw, 36px); background: radial-gradient(60% 90% at 22% 60%, rgba(31,143,120,.13), transparent 70%); }
.realm-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 28px; margin-bottom: 20px; }
.realm-head h2 { font-size: clamp(34px, 4vw, 52px); }
.realm-tally { margin-top: 8px; color: var(--ink-2); font-size: 19px; max-width: 62ch; }
.realm-state { display: inline-flex; align-items: center; gap: 12px; padding: 9px 18px 9px 16px; border-radius: 999px; border: 1px solid rgba(154,245,217,.45); background: rgba(31,143,120,.16); color: var(--wisp); font-size: 21px; font-weight: 800; white-space: nowrap; }
.realm-state .dot { width: 11px; height: 11px; }
.realm-state.is-off { color: var(--ink-2); border-color: var(--frame-hi); background: rgba(255,255,255,.04); }
.realm-board { margin: 0; display: grid; grid-template-columns: minmax(0, 1.25fr) repeat(3, minmax(0, 1fr)); border-top: 3px solid var(--frame-hi); }
.realm.is-online .realm-board { border-top-color: var(--wisp); box-shadow: 0 0 0 1px #05090c, 0 -10px 40px -18px rgba(154,245,217,.55), 0 24px 60px -20px rgba(0,0,0,.8); }
.realm-stat { min-width: 0; padding: 20px 24px 22px; border-left: 1px solid var(--frame); display: flex; flex-direction: column; gap: 8px; }
.realm-stat:first-child { border-left: 0; }
.realm-stat dt { color: var(--ink-2); font-size: 15px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.realm-stat dd { margin: 0; min-width: 0; }
.realm-stat--main { background: radial-gradient(120% 100% at 0 100%, rgba(31,143,120,.2), transparent 70%); }
.realm-big { display: block; font: 700 clamp(64px, 6.4vw, 88px)/.86 var(--numeral); color: #c9fff0; text-shadow: 0 0 28px rgba(154,245,217,.35); }
.realm:not(.is-online) .realm-big { color: var(--ink-2); text-shadow: none; }
.realm-stat small { display: block; margin-top: 8px; color: var(--ink-3); font-size: 15px; line-height: 1.35; }
.realm-fig { display: block; font: 700 clamp(40px, 3.6vw, 52px)/.95 var(--numeral); color: var(--gold-hi); }
.realm-name { display: block; font-size: clamp(24px, 2.1vw, 30px); line-height: 1.1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.realm-worlds { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.realm-worlds li { display: grid; gap: 2px; }
.realm-worlds .w-name { font-size: 20px; font-weight: 700; line-height: 1.15; }
.realm-worlds .w-count { font-size: 18px; font-weight: 800; color: var(--wisp); }
.realm-worlds .w-count b { font: 700 34px/1 var(--numeral); margin-right: 6px; }
.realm-worlds .is-down .w-count { color: var(--ink-3); }
.realm-worlds .quiet { font-weight: 400; }
.realm-offline { margin-top: 12px; padding: 14px 20px; color: var(--ink-2); }

/* ---------- in game: one framed player, four chapters beside it (the old site's reel, in this design) ---------- */
.reel { display: grid; grid-template-columns: minmax(0, 1fr) clamp(270px, 27vw, 340px); gap: 16px; }
.reel-stage { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #05090c; border: 1px solid var(--frame-hi); border-radius: 6px; box-shadow: 0 0 0 1px #05090c, 0 30px 70px -26px rgba(0,0,0,.9); }
.reel-clip { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s ease; background: #05090c; }
.reel-clip.is-on { opacity: 1; z-index: 1; }
.reel-clip--dim { filter: brightness(1.22) contrast(1.04) saturate(1.06); }      /* dungeon footage: lifted a little so the fight reads */
.reel-pause { position: absolute; right: 10px; bottom: 10px; z-index: 2; background: rgba(10,19,26,.66); border-color: rgba(255,255,255,.14); }
.reel-pause:hover { background: rgba(10,19,26,.9); }
.reel-tabs { display: grid; grid-template-rows: repeat(4, minmax(0, 1fr)); gap: 8px; }
.reel-tab { position: relative; overflow: hidden; display: grid; grid-template-columns: 30px minmax(0, 1fr); align-content: center; gap: 2px 12px; text-align: left; padding: 12px 16px; border-radius: 6px; cursor: pointer; color: var(--ink-2);
  background: linear-gradient(180deg, rgba(17,32,41,.9), rgba(13,23,31,.9)); border: 1px solid var(--frame); transition: background .25s, border-color .25s, color .25s; }
.reel-tab svg { grid-row: 1 / 3; align-self: center; width: 26px; height: 26px; color: var(--ink-3); transition: color .25s; }
.reel-tab b { font: 800 21px/1.12 var(--text); color: var(--ink); }
.reel-tab span { font-size: 15.5px; line-height: 1.35; }
.reel-tab:hover { border-color: var(--frame-hi); color: var(--ink); }
.reel-tab.is-on { background: linear-gradient(90deg, rgba(228,184,106,.17), rgba(228,184,106,.03)); border-color: rgba(228,184,106,.55); color: var(--ink); }
.reel-tab.is-on svg, .reel-tab.is-on b { color: var(--gold-hi); }
.reel-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.06); }
.reel-bar::after { content: ""; display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, var(--bronze), var(--gold-hi)); }
.reel-tab.is-on .reel-bar::after { animation: reelbar var(--reel-ms, 9000ms) linear forwards; }
.reel.is-held .reel-tab.is-on .reel-bar::after { animation-play-state: paused; }
html.calm .reel-tab .reel-bar { display: none; }
@keyframes reelbar { to { transform: scaleX(1); } }
.reel-say { display: none; }

/* ---------- three windows out of the game ---------- */
.plates { margin-top: clamp(22px, 2.6vw, 32px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.plate { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); background: var(--deep); border: 1px solid var(--frame-hi); border-radius: 6px; overflow: hidden; box-shadow: 0 0 0 1px #05090c, 0 24px 50px -24px rgba(0,0,0,.9); transition: transform .2s, border-color .2s; }
.plate:hover { transform: translateY(-4px); border-color: var(--gold); }
.plate-shot { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #0b1217; border-bottom: 1px solid var(--frame); }
.plate-shot img { width: 100%; height: 100%; object-fit: cover; object-position: 0 0; }
.plate:last-child .plate-shot img { object-position: 50% 50%; }
.plate-cap { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 2px 12px; align-items: center; padding: 14px 16px 16px; }
.plate-cap img { width: 28px; height: auto; image-rendering: pixelated; }
.plate-cap b { font: 800 23px/1.1 var(--text); letter-spacing: -.005em; color: var(--gold-hi); }
.plate-cap span { grid-column: 2; color: var(--ink-2); font-size: 17px; line-height: 1.35; }

/* ---------- who is on top ---------- */
.realm + .leaders { padding-top: clamp(36px, 5vw, 60px); }      /* the boards follow the realm band closely */
.leaders { background: radial-gradient(70% 46% at 32% 40%, rgba(228,184,106,.07), transparent 70%); }
.leaders-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: end; }
.chasers { padding: 16px 14px 14px; }
.chasers h3 { padding: 0 6px 12px; font-size: 23px; }
.chasers .lane { min-height: 54px; }
.gain { color: var(--wisp); font-weight: 700; white-space: nowrap; }
.board-empty { padding: 40px 0; color: var(--ink-2); }
.fight-slot { display: none; margin-top: 26px; }
.champs { margin-top: 44px; }
.champs-now { display: flex; align-items: center; gap: 16px; min-height: 76px; margin-bottom: 14px; }
.champs-now img { width: 64px; height: 64px; }
.champs-now .who { font-size: 30px; line-height: 1.05; color: var(--gold-hi); display: block; }
.champs-now span { color: var(--ink-2); }
.champs-row { display: grid; grid-template-columns: repeat(27, minmax(0, 1fr)); gap: 6px; }
.champ { padding: 0; background: none; border: 0; cursor: pointer; border-radius: 50%; opacity: .5; transition: opacity .25s, transform .25s; }
.champ img { width: 100%; height: auto; }
.champ:hover, .champ.is-on { opacity: 1; transform: translateY(-5px) scale(1.12); }
.champ.is-on { filter: drop-shadow(0 6px 14px rgba(228,184,106,.55)); }

/* ---------- news ---------- */
.news { background: linear-gradient(180deg, transparent, rgba(13,23,31,.6) 30%, transparent); }
.news-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 34px; align-items: start; }
.news-lead { position: relative; padding: 26px 28px 24px; }
.news-seal { position: absolute; right: -16px; top: -26px; width: 104px; height: auto; transform: rotate(9deg); filter: drop-shadow(0 8px 14px rgba(0,0,0,.6)); pointer-events: none; }
.news-ver { font: 700 clamp(56px, 6vw, 84px)/.9 var(--numeral); color: var(--gold-hi); display: block; }
.news-lead time, .news-item time { color: var(--ink-3); font-size: 15px; display: block; }
.news-lead h3 { font: 800 clamp(22px, 2.2vw, 28px)/1.15 var(--text); margin: 8px 0 14px; padding-right: 70px; letter-spacing: 0; }
.news-lead ul, .news-item ul { margin: 0; padding-left: 1.1em; }
.news-lead li { margin: 6px 0; }
.news-lead li::marker, .news-item li::marker { color: var(--gold); }
.news-lead ul.is-clamped li:nth-child(n+7) { display: none; }
.news-more { margin-top: 12px; background: none; border: 0; padding: 0; color: var(--gold-hi); font-weight: 700; cursor: pointer; text-decoration: underline; text-decoration-color: rgba(228,184,106,.45); text-underline-offset: 3px; }
.news-links { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px 20px; font-weight: 700; }
.news-item { border-bottom: 1px solid var(--frame); }
.news-item:first-child { border-top: 1px solid var(--frame); }
.news-item summary { cursor: pointer; list-style: none; padding: 14px 30px 14px 0; position: relative; }
.news-item summary::-webkit-details-marker { display: none; }
.news-item summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); color: var(--gold); font-size: 24px; line-height: 1; }
.news-item[open] summary::after { content: "\2212"; }
.news-item summary b { font: 800 21px/1.2 var(--text); display: block; }
.news-item summary:hover b { color: var(--gold-hi); }
.news-item ul, .news-item > p { padding-bottom: 16px; color: var(--ink-2); }

/* ---------- join ---------- */
.join { --veil: linear-gradient(180deg, var(--night) 0, rgba(10,19,26,.86) 12%, rgba(10,19,26,.62) 30%, rgba(10,19,26,.74) 62%, rgba(10,19,26,.92) 86%, var(--night) 100%); padding: clamp(90px, 13vw, 170px) 0 clamp(60px, 8vw, 100px); background: var(--veil), #16242c center 30% / cover; }
.join.is-lit { background-image: var(--veil), var(--art, none); }      /* --art: the Sanctum still, set by home.js when the section comes near */
.join h2 { font-size: clamp(40px, 5.6vw, 76px); text-shadow: 0 2px 24px rgba(0,0,0,.7); }
.join h2 .count { color: #b4ffe6; }
.join .lede { color: var(--ink); margin-top: 12px; text-shadow: 0 1px 10px rgba(0,0,0,.9); }
.join-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 30px; }
.join-card { padding: 22px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; }
.join-card h3 { display: flex; align-items: center; gap: 10px; }
.join-card h3 svg { width: 26px; height: 26px; }
.join-card p { color: var(--ink-2); flex: 1; }
.join-card .btn { justify-content: center; margin-top: 6px; }
.join-card.is-primary { border-color: var(--gold); }
.join-card--discord:hover { border-color: #8f9bff; }
.mac { margin-top: 16px; }
.mac > summary { cursor: pointer; padding: 14px 20px; font-weight: 700; display: flex; align-items: center; gap: 10px; list-style: none; }
.mac > summary::-webkit-details-marker { display: none; }
.mac > summary svg { width: 20px; height: 20px; flex: none; }
.mac > summary::after { content: "+"; margin-left: auto; color: var(--gold); font-size: 24px; line-height: 1; }
.mac[open] > summary::after { content: "\2212"; }
.mac-in { padding: 4px 22px 22px; border-top: 1px solid var(--frame); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 16px 40px; }
.mac-lede { grid-column: 1 / -1; color: var(--ink-2); padding-top: 16px; max-width: 86ch; }
.mac-build p { margin-top: 12px; color: var(--ink-2); }
.mac-sums { margin-top: 12px; }
.mac-sums summary { cursor: pointer; font-weight: 700; }
.mac-sums dl { margin: 8px 0 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; }
.mac-sums dt { color: var(--ink-3); }
.mac-sums dd { margin: 0; }
.mac code { background: #05090c; padding: 2px 6px; border-radius: 3px; font-size: 14px; word-break: break-all; }
.mac-open h3 { font: 800 21px/1.2 var(--text); letter-spacing: 0; margin-bottom: 6px; }
.mac-open p, .mac-open ol { color: var(--ink-2); }
.mac-open p + p, .mac-open ol + p { margin-top: 8px; }
.mac-open ol { margin: 8px 0 0; padding-left: 1.2em; }
.mac-open li { margin: 4px 0; }
.mac-open b, .mac-lede b { color: var(--ink); }

/* ---------- faq ---------- */
.faq { padding-top: clamp(30px, 4vw, 50px); }
.faq-list { columns: 2; column-gap: 48px; }
.faq-list details { border-bottom: 1px solid var(--frame); break-inside: avoid; }
.faq-list summary { cursor: pointer; padding: 15px 0; font-weight: 700; font-size: 20px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--gold); font-weight: 400; font-size: 24px; line-height: 1; }
.faq-list details[open] summary::after { content: "\2212"; }
.faq-list p { color: var(--ink-2); padding: 0 0 16px; }

/* a short screen: the ridge sits lower so the two windows stay clear of the nav */
@media (min-width: 861px) and (max-height: 820px) {
  .hero.has-ridge { --ridge-h: 104px; }
  .hero.has-ridge .hero-in { bottom: calc(var(--ridge-h) + 30px); }
  .ridge-axis { display: none; }
}

/* ---------- narrower ---------- */
@media (max-width: 1100px) {
  .join-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-in { grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; }
  .champs-row { grid-template-columns: repeat(14, minmax(0, 1fr)); }
  .leaders-grid { gap: 26px; }
}
@media (max-width: 860px) {
  .hero { height: auto; min-height: min(88svh, 800px); display: flex; flex-direction: column; justify-content: flex-end; }
  .hero-poster img { object-position: 50% 50%; transform-origin: 50% 40%; }
  .hero-shade { background:
    linear-gradient(180deg, rgba(8,16,32,.96) 0, rgba(10,22,46,.86) 20%, rgba(20,26,50,.64) 34%, rgba(10,19,26,.5) 44%, rgba(10,19,26,.86) 64%, var(--night) 100%); }
  .hero-in { position: relative; bottom: auto; grid-template-columns: 1fr; gap: 20px; padding: 260px 0 calc(var(--ridge-h) + 26px); }
  .hero.has-ridge { --ridge-h: 96px; }
  .hero-side { display: none; }           /* phones read the ticker; the fight card moves down to the boards */
  .hero-cta .btn { flex: 1 1 100%; justify-content: center; }
  .hero-cta .btn--ghost { flex: 1 1 40%; }
  .ridge-flag { display: none; }
  .ridge-axis { font-size: 13px; bottom: 6px; }
  .leaders-grid, .news-grid { grid-template-columns: 1fr; }
  .leaders-grid { align-items: stretch; }
  .fight-slot { display: block; }
  .me-strip { font-size: 17px; align-items: flex-start; }
  /* the reel on a phone: the frame full width, the four chapters as a 2 x 2 under it, the line of the one playing below */
  .reel { grid-template-columns: 1fr; gap: 10px; }
  .reel-tabs { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .reel-tab { grid-template-columns: 22px minmax(0, 1fr); padding: 11px 12px; gap: 0 9px; }
  .reel-tab svg { grid-row: 1; width: 20px; height: 20px; }
  .reel-tab b { font-size: 17px; }
  .reel-tab span { display: none; }
  .reel-say { display: block; color: var(--ink); font-size: 18px; min-height: 3em; }
  .plates { grid-template-columns: 1fr; }
  .plate { flex-direction: row; }
  .plate-shot { flex: 0 0 42%; aspect-ratio: 4 / 3; border-bottom: 0; border-right: 1px solid var(--frame); }
  .plate-cap { align-content: center; grid-template-columns: minmax(0, 1fr); padding: 12px 14px; }
  .plate-cap img { display: none; }
  .plate-cap span { grid-column: 1; font-size: 15px; }
  .plate-cap b { font-size: 23px; }
  .champs-row { grid-template-columns: repeat(9, minmax(0, 1fr)); }
  .champs-now .who { font-size: 24px; }
  .realm-head { align-items: flex-start; }
  .realm-tally { font-size: 17px; }
  .realm-state { font-size: 18px; padding: 7px 14px 7px 12px; }
  .realm-board { grid-template-columns: 1fr 1fr; }
  .realm-stat { padding: 16px 16px 18px; }
  .realm-stat--main, .realm-stat:nth-child(2) { grid-column: 1 / -1; border-left: 0; }
  .realm-stat:nth-child(2), .realm-stat:nth-child(3), .realm-stat:nth-child(4) { border-top: 1px solid var(--frame); }
  .realm-stat:nth-child(3) { border-left: 0; }
  .realm-stat dt { font-size: 13.5px; }
  .realm-big { font-size: 76px; }
  .realm-fig { font-size: 40px; }
  .realm-name { font-size: 22px; }
  .news-seal { width: 78px; right: -6px; top: -22px; }
  .join-grid { grid-template-columns: 1fr; }
  .mac-in { grid-template-columns: 1fr; }
  .faq-list { columns: 1; }
  .sec-tools { width: 100%; }
  .sec-tools .finder { flex: 1 1 220px; }
}
@media (max-width: 560px) {
  .hero-live { min-height: 3em; }      /* room for two lines from the first frame */
}
@media (max-width: 420px) {
  .hero h1 { font-size: 42px; }
  .btn--big { font-size: 19px; padding: 14px 20px; }
  .hero-in { padding-top: 220px; }
}

/* motion off: lights are still, the deed bubble does not float */
html.calm .wisp-says { animation: none; opacity: 1; margin-top: -30px; }
html.calm .hero-poster img { animation: none; transform: none; }
