/* Lantern Online: the launch portal (2026-11-01). A storybook told at night: royal-night blue from the key art's banners, parchment
   panels framed in gilt (media/ui/frame.svg as a nine-slice border, media/ui/paper.webp under it), lantern ember for the one thing to
   do, a wax-red ribbon for the opening. Trirong (a looped Thai serif) carries every heading; Bai Jamjuree, the game's own face, the rest. */
@font-face { font-family: "Trirong"; src: url(../fonts/trirong-bold-thai.woff2) format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0E00-0E7F, U+200B-200D, U+25CC; }
@font-face { font-family: "Trirong"; src: url(../fonts/trirong-bold-latin.woff2) format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0000-00FF, U+2010-2027, U+2190-2193; }
@font-face { font-family: "Trirong"; src: url(../fonts/trirong-semibold-thai.woff2) format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0E00-0E7F, U+200B-200D, U+25CC; }
@font-face { font-family: "Trirong"; src: url(../fonts/trirong-semibold-latin.woff2) format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0000-00FF, U+2010-2027, U+2190-2193; }
@font-face { font-family: "Bai"; src: url(../fonts/bai-500-thai.woff2) format("woff2"); font-weight: 400 500; font-display: swap; unicode-range: U+0E00-0E7F; }
@font-face { font-family: "Bai"; src: url(../fonts/bai-500-latin.woff2) format("woff2"); font-weight: 400 500; font-display: swap; unicode-range: U+0000-00FF, U+2010-2027; }

:root {
  --night-950: #0c1126;
  --night-900: #10162d;
  --night-850: #151d3b;
  --night-800: #1b2550;
  --night-700: #283670;
  --mist: #ede5d1;
  --mist-2: #b9c0d8;
  --sky: #a9bcff;
  --parch: #f2e6c9;
  --parch-2: #e3cfa3;
  --ink: #3a2718;
  --ink-2: #6b5236;
  --gilt: #cfa64f;
  --gilt-hi: #f6e0a0;
  --gilt-lo: #8b6324;
  --ember: #ffa149;
  --ember-hot: #ffd88a;
  --wax: #a3282a;
  --wax-lo: #6e1a1d;
  --royal: #2d4a9a;
  --moss: #3d6b3f;
  --slate: #59606f;
  --danger: #ff9b85;
  --ok: #9fe0b0;
  --display: "Trirong", "Bai", "Leelawadee UI", "Tahoma", serif;
  --body: "Bai", "Leelawadee UI", "Tahoma", sans-serif;
  --gutter: 16px;
  --measure: 38rem;
  --rim: 18px;                                      /* the width of a gilt frame */
  color-scheme: dark;
}
@media (max-width: 639px) { :root { --rim: 12px; } }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--night-900); color: var(--mist); font: 500 1rem/1.75 var(--body); overflow-x: hidden; }
img, video, picture { max-width: 100%; display: block; }
a { color: var(--sky); text-underline-offset: .2em; }
a:hover { color: var(--ember-hot); }
:focus-visible { outline: 3px solid var(--ember); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.35; margin: 0; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; max-width: var(--measure); }
.wrap { width: min(1220px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 50; background: var(--ember); color: var(--ink); padding: 8px 14px; }
.skip:focus { top: 8px; }
.lede { color: var(--mist-2); font-size: 1.05rem; }
.center { text-align: center; margin-inline: auto; }
.hint { color: var(--mist-2); font-size: .875rem; margin: .25rem 0 0; }
section { padding-block: clamp(48px, 6vw, 88px); }

/* the two materials: a gilt frame (nine-slice, any size) and parchment to write on */
.frame { border: var(--rim) solid transparent; border-image: url(../media/ui/frame.svg) 30 stretch; }
.paper { background: var(--parch) url(../media/ui/paper.webp); color: var(--ink); }
.paper a:not(.btn) { color: var(--royal); }
.paper a:not(.btn):hover { color: var(--wax); }

/* section titles: the heading, a gilt flourish under it */
.title { text-align: center; margin-bottom: 26px; }
.title h2 { font-size: clamp(1.75rem, 1.25rem + 2vw, 2.7rem); color: var(--gilt-hi); text-shadow: 0 2px 0 rgba(12, 17, 38, .6), 0 0 28px rgba(255, 161, 73, .18); }
.title h2::after { content: ""; display: block; width: min(240px, 70%); height: 22px; margin: 8px auto 0; background: url(../media/ui/divider.svg) center / contain no-repeat; }
.title-left { text-align: left; }
.title-left h2::after { margin-left: 0; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 8px 24px; border-radius: 6px; font: 700 1.05rem/1.2 var(--display);
  text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background-color .15s, color .15s, box-shadow .15s, filter .15s; }
.btn-gilt { background: linear-gradient(180deg, var(--gilt-hi), var(--gilt) 55%, #a37a2f); color: var(--ink); border-color: var(--gilt-lo);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 2px 0 #5d3f12; }
.btn-gilt:hover { color: var(--ink); filter: brightness(1.08); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 2px 0 #5d3f12, 0 0 26px rgba(255, 161, 73, .55); }
.btn-ink { background: var(--ink); color: var(--parch); border-color: #22160c; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 2px 0 rgba(34, 22, 12, .5); }
.btn-ink:hover { background: var(--wax); color: #fff6e2; }
.btn-line-ink { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-line-ink:hover { background: rgba(58, 39, 24, .08); color: var(--wax); border-color: var(--wax); }
.btn[aria-disabled="true"] { opacity: .6; pointer-events: none; }
.btn:disabled { opacity: .6; cursor: progress; }

/* the bar */
.bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; padding: 8px var(--gutter); padding-top: max(8px, env(safe-area-inset-top));
  background: rgba(12, 17, 38, .94); border-bottom: 1px solid rgba(207, 166, 79, .45); box-shadow: 0 1px 0 rgba(12, 17, 38, .9), 0 3px 0 rgba(207, 166, 79, .14); }
.bar-logo img { width: 116px; height: auto; }
.bar-menu { margin-left: auto; min-height: 44px; padding: 6px 18px; border-radius: 6px; border: 1px solid var(--gilt-lo); background: var(--night-800); color: var(--gilt-hi); font: 700 1rem var(--display); cursor: pointer; }
.bar-nav { display: none; }
.bar-nav a { color: var(--mist); text-decoration: none; font: 500 .98rem var(--body); padding: 10px 11px; }
.bar-nav a:hover { color: var(--ember-hot); }
.bar-nav .bar-cta { margin-left: 8px; background: linear-gradient(180deg, var(--gilt-hi), var(--gilt) 55%, #a37a2f); color: var(--ink); font: 700 1rem var(--display); padding: 8px 18px; border-radius: 6px; border: 1px solid var(--gilt-lo); }
.bar-nav .bar-cta:hover { color: var(--ink); filter: brightness(1.08); }
.bar.open .bar-nav { display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 100%; padding: 8px var(--gutter) 16px; background: var(--night-950); border-bottom: 1px solid var(--gilt-lo); }
.bar.open .bar-nav a { padding: 12px; }
.bar.open .bar-nav .bar-cta { margin: 8px 0 0; text-align: center; }
@media (min-width: 1040px) {
  .bar-menu { display: none; }
  .bar-nav { display: flex; align-items: center; gap: 0; margin-left: auto; }
  .bar-logo img { width: 140px; }
}

/* the hero: the slides, the logo and the slide's words on the left, the opening plaque on the right */
.hero { position: relative; padding: 0; isolation: isolate; background: var(--night-950); overflow: hidden; }
.slides { position: absolute; inset: 0; z-index: -3; }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.1s ease; }
.slide.on { opacity: 1; }
.slide picture, .slide img { width: 100%; height: 100%; }
.slide img { object-fit: cover; object-position: var(--focus, 50% 25%); }
.hero-shade { position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background: linear-gradient(90deg, rgba(12, 17, 38, .72) 0%, rgba(12, 17, 38, .3) 38%, rgba(12, 17, 38, 0) 62%),
    linear-gradient(180deg, rgba(12, 17, 38, .5) 0%, rgba(12, 17, 38, 0) 18%, rgba(12, 17, 38, 0) 52%, rgba(16, 22, 45, .9) 86%, var(--night-900) 100%); }
.art-tag { position: absolute; right: 10px; top: 10px; z-index: 1; font: 500 .72rem/1 var(--body); color: var(--mist); background: rgba(12, 17, 38, .7); border: 1px solid rgba(207, 166, 79, .4); border-radius: 3px; padding: 5px 8px; pointer-events: none; }
.hero-tag { top: 14px; right: var(--gutter); }
.hero-body { position: relative; width: min(1220px, 100% - 2 * var(--gutter)); margin: 0 auto; min-height: clamp(600px, 90svh, 900px); display: grid; gap: 28px; align-content: end; padding: 120px 0 128px; }
.hero-body { grid-template-areas: "logo" "cap" "plaque"; }
.hero-logo { grid-area: logo; } .slide-box { grid-area: cap; min-width: 0; } .plaque { grid-area: plaque; }
@media (min-width: 960px) {
  .hero-body { grid-template-columns: minmax(0, 460px); gap: 14px; padding-top: 96px; }
  .slide-cap { min-height: 5.6em; }
}
.hero-logo img { width: min(440px, 80vw); height: auto; filter: drop-shadow(0 6px 26px rgba(0, 0, 0, .6)); margin-left: -8px; }
.slide-cap { min-height: 6.4em; }
.slide-title { margin: 0; font: 700 clamp(1.45rem, 1rem + 1.4vw, 2.05rem)/1.3 var(--display); color: var(--gilt-hi); text-shadow: 0 2px 14px rgba(0, 0, 0, .7); }
.slide-line { margin: 4px 0 6px; font-size: clamp(1rem, .95rem + .35vw, 1.2rem); color: #ece4d2; text-shadow: 0 1px 10px rgba(0, 0, 0, .85); }
.slide-more { color: var(--ember-hot); font-weight: 500; }
.slide-nav { display: flex; align-items: center; gap: 6px; margin-top: 10px; }
.slide-step { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(207, 166, 79, .6); background: rgba(12, 17, 38, .6); color: var(--gilt-hi); font: 700 1.5rem/1 var(--display); cursor: pointer; display: grid; place-items: center; padding: 0 0 4px; }
.slide-step:hover { border-color: var(--ember); color: var(--ember-hot); }
.slide-dots { display: flex; }
.slide-dot { width: 30px; height: 40px; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; padding: 0; }
.slide-dot::before { content: ""; width: 10px; height: 10px; transform: rotate(45deg); background: rgba(237, 229, 209, .45); border: 1px solid rgba(12, 17, 38, .6); }
.slide-dot[aria-current="true"]::before { background: var(--ember); box-shadow: 0 0 10px var(--ember); }
.slide-pause { margin-left: 6px; min-height: 40px; padding: 4px 14px; border-radius: 20px; border: 1px solid rgba(207, 166, 79, .6); background: rgba(12, 17, 38, .6); color: var(--mist); font: 500 .85rem var(--body); cursor: pointer; }
.slide-pause:hover { color: var(--ember-hot); border-color: var(--ember); }

/* the opening plaque: a wax ribbon over parchment, the four numbers, one thing to do */
.plaque { position: relative; text-align: center; padding: 14px 18px 18px; background: var(--parch) url(../media/ui/paper.webp); color: var(--ink);
  border: var(--rim) solid transparent; border-image: url(../media/ui/frame.svg) 30 stretch; box-shadow: 0 24px 60px rgba(0, 0, 0, .45), 0 0 80px rgba(255, 161, 73, .18); }
.ribbon { position: relative; margin: -30px -40px 10px; padding: 8px 46px 10px; max-width: none; background: linear-gradient(180deg, #c0393a, var(--wax) 60%, var(--wax-lo)); color: #fff4df;
  font: 700 clamp(1.4rem, 1.1rem + 1vw, 1.8rem)/1.25 var(--display); text-shadow: 0 2px 0 rgba(60, 10, 12, .6);
  clip-path: polygon(0 0, 100% 0, calc(100% - 22px) 50%, 100% 100%, 0 100%, 22px 50%); }
.ribbon::before { content: ""; position: absolute; inset: 4px 30px; border-top: 1px dashed rgba(255, 228, 190, .55); border-bottom: 1px dashed rgba(255, 228, 190, .55); pointer-events: none; }
.plaque-when { margin: 0 auto 10px; font: 600 1.02rem/1.45 var(--display); color: var(--ink-2); }
.count { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 0 16px; }
.count div { display: grid; gap: 0; padding: 4px 2px; }
.count div + div { border-left: 1px solid rgba(139, 99, 36, .45); }
.count b { font: 700 clamp(2rem, 1.6rem + 1.4vw, 2.6rem)/1.15 var(--display); color: var(--ink); font-variant-numeric: tabular-nums lining-nums; }
.count span { font-size: .82rem; color: var(--ink-2); }
.count-done { margin: 0 auto 14px; font: 600 1.1rem/1.5 var(--display); }
.plaque .btn { width: 100%; }

/* the gate: under the hero, half over it. Start (play, download, who is on) and the news board */
.gate { position: relative; z-index: 2; display: grid; gap: 22px; margin-top: -84px; }
@media (min-width: 960px) { .gate { grid-template-columns: 360px minmax(0, 1fr); align-items: stretch; } }
.start { background: linear-gradient(180deg, var(--night-800), var(--night-850)); padding: 16px 16px 14px; display: grid; gap: 12px; align-content: start; box-shadow: 0 20px 50px rgba(0, 0, 0, .4); }
.start-play, .start-get { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 14px; text-decoration: none; border-radius: 6px; padding: 14px 18px; transition: filter .15s, box-shadow .15s; }
.start-play { min-height: 96px; background: radial-gradient(120% 140% at 20% 50%, #ffe7a8, var(--ember) 45%, #d06a1f); color: #3b1c08; border: 1px solid #7a3d0e;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -3px 0 rgba(122, 61, 14, .35), 0 0 40px rgba(255, 161, 73, .35); }
.start-play img { width: 32px; height: 48px; filter: drop-shadow(0 0 8px rgba(255, 255, 255, .8)) saturate(.6) brightness(.55); }
.start-play b { display: block; font: 700 clamp(1.9rem, 1.6rem + 1vw, 2.3rem)/1.1 var(--display); }
.start-play small, .start-get small { display: block; font: 500 .88rem/1.4 var(--body); }
.start-play:hover { color: #3b1c08; filter: brightness(1.06); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 0 56px rgba(255, 161, 73, .6); }
.start-get { grid-template-columns: 1fr; min-height: 72px; background: var(--night-700); color: var(--mist); border: 1px solid var(--gilt-lo); box-shadow: inset 0 0 0 3px var(--night-800), inset 0 0 0 4px rgba(207, 166, 79, .35); }
.start-get b { display: block; font: 700 1.45rem/1.2 var(--display); color: var(--gilt-hi); }
.start-get small { color: var(--mist-2); }
.start-get:hover { color: var(--mist); filter: brightness(1.12); }
.start-get[aria-disabled="true"] { cursor: default; }
.start-row { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: .92rem; }
.start-row a { padding: 4px 0; }
.status { display: flex; align-items: center; gap: 10px; margin: 4px 0 0; padding-top: 10px; border-top: 1px solid rgba(207, 166, 79, .3); font-size: .92rem; color: var(--mist-2); }
.status .dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--night-700); }
.status.on .dot { background: #7fe39a; box-shadow: 0 0 10px #7fe39a; }
.status.off .dot { background: var(--danger); }
.channels { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .85rem; }
.channels:empty { display: none; }
.channels li { display: grid; grid-template-columns: minmax(0, 1fr) 90px 3.5em; align-items: center; gap: 10px; color: var(--mist-2); }
.ch-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-bar { height: 6px; border-radius: 3px; background: var(--night-950); overflow: hidden; }
.ch-bar .fill { display: block; height: 100%; width: calc(var(--full, 0) * 100%); min-width: 4px; background: linear-gradient(90deg, var(--gilt), var(--ember)); }
.ch-word { text-align: right; color: var(--mist); }

/* the news board */
.board { padding: 14px clamp(10px, 2vw, 22px) 16px; min-width: 0; box-shadow: 0 20px 50px rgba(0, 0, 0, .4); }
.board-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 8px 16px; border-bottom: 2px solid var(--ink); padding-bottom: 0; margin-bottom: 4px; }
.board-head h2 { font-size: 1.65rem; color: var(--ink); padding-bottom: 6px; }
.board-tabs { display: flex; flex-wrap: wrap; gap: 2px; }
.board-tabs button { min-height: 40px; padding: 6px 12px 4px; border: 1px solid transparent; border-bottom: 0; border-radius: 5px 5px 0 0; background: transparent; color: var(--ink-2); font: 500 .95rem var(--body); cursor: pointer; }
.board-tabs button:hover { color: var(--wax); background: rgba(58, 39, 24, .06); }
.board-tabs button[aria-selected="true"] { background: var(--ink); color: var(--parch); }
.board-list { list-style: none; margin: 0; padding: 0; }
.board-list li { border-bottom: 1px dashed rgba(58, 39, 24, .28); }
.board-row { width: 100%; display: grid; grid-template-columns: 6.6em minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 6px; min-height: 48px; border: 0; background: transparent; color: var(--ink); text-align: left; cursor: pointer; font: inherit; }
.board-row:hover { background: rgba(255, 252, 240, .5); }
.board-row:hover .board-t { color: var(--wax); }
.board-t { font: 500 1rem/1.45 var(--body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-row time { font-size: .85rem; color: var(--ink-2); white-space: nowrap; }
@media (max-width: 639px) {
  .board-row { grid-template-columns: auto 1fr; grid-template-areas: "k d" "t t"; gap: 2px 10px; }
  .board-row .kind { grid-area: k; justify-self: start; }
  .board-row time { grid-area: d; justify-self: end; }
  .board-t { grid-area: t; white-space: normal; }
}
.kind { display: inline-block; text-align: center; padding: 1px 8px; border-radius: 3px; font: 500 .8rem/1.6 var(--body); color: #fff6e2; background: var(--wax); white-space: nowrap; }
.kind[data-kind="อัปเดต"] { background: var(--royal); }
.kind[data-kind="กิจกรรม"] { background: var(--moss); }
.kind[data-kind="บำรุงรักษา"] { background: var(--slate); }
.board-empty { margin: 14px 6px; color: var(--ink-2); }
.board-more { margin: 12px 0 0; min-height: 40px; padding: 4px 14px; border: 1.5px solid var(--ink); border-radius: 5px; background: transparent; color: var(--ink); font: 600 .95rem var(--display); cursor: pointer; }
.board-more:hover { color: var(--wax); border-color: var(--wax); }
.news-piece { background: var(--parch) url(../media/ui/paper.webp); color: var(--ink); }
.news-piece img { width: 100%; height: auto; max-height: 50vh; object-fit: cover; }
.news-piece-text { padding: 20px clamp(16px, 4vw, 40px) 26px; }
.news-piece h3 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.8rem); margin: 6px 0 10px; padding-right: 64px; }
.news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: .88rem; color: var(--ink-2); margin: 0; }
.news-piece p:last-child { margin: 0; font-size: 1.02rem; line-height: 1.85; }

/* events */
.events { padding-top: clamp(56px, 7vw, 96px); }
.event-grid { display: grid; gap: 24px; }
@media (min-width: 960px) { .event-grid { grid-template-columns: 1fr 1fr; } }
.event { display: grid; grid-template-rows: auto 1fr; min-width: 0; }
.event-art { position: relative; background: var(--night-950); }
.event-art img { width: 100%; height: auto; aspect-ratio: 3 / 1; object-fit: cover; object-position: var(--focus, 50% 30%); }
.event-when { position: absolute; left: 0; bottom: 12px; padding: 4px 16px 4px 12px; background: var(--wax); color: #fff4df; font: 600 .95rem/1.4 var(--display);
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 50%, 100% 100%, 0 100%); }
.event-text { padding: 16px 16px 18px; display: grid; align-content: start; gap: 6px; }
.event-text h3 { font-size: clamp(1.35rem, 1.15rem + .7vw, 1.7rem); }
.event-text p { margin: 0 0 8px; }
.event-text .btn { justify-self: start; }

/* register: the gifts and the steps, beside a parchment form */
.register { background: radial-gradient(60% 70% at 85% 30%, rgba(255, 161, 73, .1), rgba(255, 161, 73, 0) 70%), var(--night-850); border-block: 1px solid rgba(207, 166, 79, .25); }
.register-grid { display: grid; gap: 34px; }
@media (min-width: 960px) { .register-grid { grid-template-columns: minmax(0, 1fr) minmax(380px, 470px); gap: 56px; align-items: start; } }
.gifts { list-style: none; margin: 20px 0 28px; padding: 0; display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .gifts { grid-template-columns: 1fr 1fr; } }
.gifts li { display: grid; grid-template-columns: 48px 1fr; gap: 12px; align-items: center; padding: 10px 12px; background: var(--night-800); border: 1px solid rgba(207, 166, 79, .45); border-radius: 4px; box-shadow: inset 0 0 0 3px var(--night-800), inset 0 0 0 4px rgba(207, 166, 79, .18); }
.gifts img { width: 48px; height: 48px; }
.gifts b { display: block; font: 600 1.02rem/1.35 var(--display); color: var(--gilt-hi); }
.gifts small { display: block; color: var(--mist-2); font-size: .84rem; line-height: 1.4; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 14px; }
.steps li { counter-increment: step; position: relative; padding-left: 52px; color: var(--mist-2); max-width: var(--measure); }
.steps li b { display: block; color: var(--mist); font: 600 1.05rem/1.45 var(--display); }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%;
  background: var(--night-950); color: var(--gilt-hi); font: 700 1rem var(--display); border: 1px solid var(--gilt); }
.form, .form-done { padding: 14px 10px 16px; box-shadow: 0 0 60px rgba(255, 161, 73, .14), 0 24px 48px rgba(0, 0, 0, .35); }
.form fieldset { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.form legend { font: 700 1.25rem var(--display); color: var(--ink); margin-bottom: 4px; padding: 0; }
.form legend .opt { font: 500 .8rem var(--body); color: var(--ink-2); margin-left: 6px; }
.form label { display: block; font: 600 .98rem var(--display); margin: 12px 0 4px; color: var(--ink); }
.form input, .form select { width: 100%; min-height: 48px; padding: 10px 12px; border-radius: 4px; border: 1.5px solid #b49866; background: #fcf6e7; color: var(--ink); font: 500 1rem var(--body); }
.form input:focus-visible, .form select:focus-visible { outline: 3px solid var(--wax); outline-offset: 1px; border-color: var(--wax); }
.form input[aria-invalid="true"] { border-color: #a3392b; background: #fff1ec; }
.form .hint, .form-done .hint { color: #5f4a35; }
.form-error { min-height: 1.5em; color: #9c2f22; font-weight: 500; margin: 4px 0 12px; }
.form-error:empty { min-height: 0; margin: 0; }
.form .btn-ink { width: 100%; }
.form-done img { width: 64px; height: 64px; }
.form-done h3 { font-size: 1.5rem; margin: 8px 0; color: var(--ink); }
.done-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* classes: the figures stand in a row; one steps forward */
.class-picker { display: flex; gap: 6px; overflow-x: auto; padding: 10px 2px 14px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.class-picker button { flex: none; min-width: 0; scroll-snap-align: start; width: 84px; padding: 6px 4px 8px; border-radius: 4px; border: 1px solid transparent; background: transparent; color: var(--mist-2); cursor: pointer;
  display: grid; justify-items: center; gap: 4px; font: 500 .84rem/1.25 var(--body); }
.class-picker button img { height: 84px; width: auto; max-width: 80px; object-fit: contain; object-position: bottom; transition: transform .15s; }
.class-picker button:hover img { transform: translateY(-3px); }
@media (min-width: 1000px) { .class-picker { display: grid; grid-template-columns: repeat(8, 1fr); overflow: visible; } .class-picker button { width: auto; } }
.class-picker button[aria-selected="true"] { background: linear-gradient(180deg, rgba(27, 37, 80, 0), var(--night-800)); border-color: var(--gilt); color: var(--gilt-hi); box-shadow: inset 0 -30px 40px -20px rgba(255, 161, 73, .25); }
.class-card { display: grid; gap: 18px; margin-top: 12px; padding: 22px clamp(10px, 2.6vw, 32px) 26px; background: radial-gradient(60% 50% at 50% 38%, rgba(255, 161, 73, .12), rgba(255, 161, 73, 0) 70%), var(--night-850); min-width: 0; }
.class-art { position: relative; margin: -22px calc(-1 * clamp(10px, 2.6vw, 32px)) 0; overflow: hidden; background: var(--night-950); }
.class-art img { width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover; object-position: var(--focus-narrow, 50% 12%); }
@media (min-width: 640px) { .class-art img { aspect-ratio: 16 / 5.8; object-position: var(--focus, 50% 20%); } }
.class-art::after { content: ""; position: absolute; inset: auto 0 0 0; height: 38%; background: linear-gradient(180deg, rgba(21, 29, 59, 0), var(--night-850)); pointer-events: none; }
.class-head { max-width: 62rem; }
.class-name { font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.6rem); color: var(--gilt-hi); }
.class-line { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 10px; }
.class-line span { font: 500 .85rem/1.6 var(--body); color: var(--ember-hot); padding: 1px 10px; border-radius: 3px; border: 1px solid rgba(207, 166, 79, .45); background: rgba(207, 166, 79, .08); }
.class-who { margin: 0; color: var(--mist-2); max-width: var(--measure); }
.lineup { display: grid; grid-auto-flow: column; grid-auto-columns: 64%; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 18% 8px; margin: 0 calc(-1 * clamp(10px, 2.6vw, 32px)); scrollbar-width: none; overscroll-behavior-x: contain; }
.lineup::-webkit-scrollbar { display: none; }
@media (min-width: 640px) { .lineup { grid-auto-columns: 1fr; overflow: visible; padding: 4px 0 0; margin: 0; } }
.lineup button { scroll-snap-align: center; min-width: 0; display: grid; justify-items: center; gap: 4px; padding: 10px 6px 12px; border-radius: 4px; border: 1px solid rgba(207, 166, 79, .3); cursor: pointer; color: var(--mist-2);
  background: linear-gradient(180deg, rgba(12, 17, 38, 0) 35%, rgba(12, 17, 38, .7)), radial-gradient(55% 45% at 50% 62%, rgba(169, 188, 255, .14), rgba(169, 188, 255, 0)); transition: border-color .15s, background .15s; }
.lineup button img { height: clamp(190px, 50vw, 270px); width: auto; max-width: 100%; object-fit: contain; filter: drop-shadow(0 14px 14px rgba(0, 0, 0, .5)) saturate(.82) brightness(.9); transition: filter .15s, transform .15s; }
.lineup button:hover img { transform: translateY(-3px); filter: drop-shadow(0 14px 14px rgba(0, 0, 0, .5)); }
.lineup button .who { font: 700 1.05rem/1.3 var(--display); color: var(--mist); text-align: center; }
.lineup button .who small { display: block; font: 500 .78rem var(--body); color: var(--mist-2); }
.lineup button.base .who { color: var(--parch-2); }
.lineup button[aria-selected="true"] { border-color: var(--gilt); background: linear-gradient(180deg, rgba(12, 17, 38, 0) 35%, rgba(12, 17, 38, .7)), radial-gradient(55% 45% at 50% 62%, rgba(255, 161, 73, .3), rgba(255, 161, 73, 0)); box-shadow: inset 0 -3px 0 var(--ember); }
.lineup button[aria-selected="true"] img { filter: drop-shadow(0 14px 14px rgba(0, 0, 0, .5)); }
.lineup button[aria-selected="true"] .who { color: var(--ember-hot); }
.cway { display: grid; gap: 18px; align-items: start; min-width: 0; }
@media (min-width: 900px) { .cway { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); } }
.cway-name { margin: 0; font: 700 1.3rem/1.4 var(--display); color: var(--ember-hot); }
.cway-name span { display: block; font: 500 .85rem var(--body); color: var(--mist-2); }
.cway-when { display: inline-block; margin: 8px 0 0; font: 500 .85rem/1.6 var(--body); color: var(--ember-hot); padding: 1px 10px; border-radius: 3px; border: 1px solid rgba(207, 166, 79, .45); background: rgba(207, 166, 79, .08); }
.tier { display: inline-flex; margin: 8px 0 0 8px; border: 1px solid rgba(207, 166, 79, .45); border-radius: 4px; overflow: hidden; vertical-align: top; }
.tier button { font: 500 .82rem/1.6 var(--body); color: var(--mist-2); background: transparent; border: 0; padding: 4px 12px; min-height: 32px; cursor: pointer; }
.tier button[aria-pressed="true"] { background: var(--gilt); color: var(--ink); }
.cway-mech { margin: 12px 0 0; font-size: .95rem; }
.cway-mech b { color: var(--ember-hot); font-family: var(--display); }
.gauge { display: inline-block; margin-right: 8px; font: 500 .78rem/1.7 var(--body); color: var(--night-950); background: var(--sky); padding: 0 8px; border-radius: 3px; }
.sign { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.sign li { display: flex; align-items: center; gap: 10px; font: 500 .9rem/1.35 var(--body); color: var(--mist); }
.sign li small { display: block; font-size: .76rem; color: var(--mist-2); }
.sign img, .sk-blank { flex: none; width: 48px; height: 48px; border-radius: 6px; border: 2px solid #2a1b12; box-shadow: 0 0 0 1px rgba(207, 166, 79, .55); }
.sk-blank { display: grid; place-items: center; font: 700 1.2rem var(--display); color: var(--ember-hot); background: radial-gradient(circle at 50% 40%, #b06a2c, #3b2433); }
.clip { margin: 0; position: relative; overflow: hidden; background: var(--night-950); border: 1px solid rgba(207, 166, 79, .4); }
.clip-video { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; cursor: pointer; }
.clip-toggle { position: absolute; left: 10px; top: 10px; font: 500 .82rem/1 var(--body); color: var(--mist); background: rgba(12, 17, 38, .75); border: 1px solid rgba(207, 166, 79, .45); border-radius: 20px; padding: 9px 14px 9px 30px; min-height: 36px; cursor: pointer; }
.clip-toggle::before { content: ""; position: absolute; left: 13px; top: 50%; translate: 0 -50%; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent var(--ember); }
.clip.playing .clip-toggle::before { border-width: 0; width: 10px; height: 12px; background: linear-gradient(90deg, var(--ember) 0 35%, transparent 35% 65%, var(--ember) 65%); }
.clip figcaption { padding: 8px 12px 10px; font-size: .85rem; color: var(--mist-2); }
.clip figcaption b { color: var(--mist); font-weight: 500; }
.clip-none { margin: 0; align-self: center; color: var(--mist-2); font-size: .9rem; }
.skills { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (min-width: 640px) { .skills { grid-template-columns: repeat(6, 1fr); } }
@media (min-width: 900px) { .cway .skills { grid-template-columns: repeat(3, 1fr); } }
.skills li { text-align: center; font-size: .8rem; line-height: 1.35; color: var(--mist-2); }
.skills img { width: 64px; height: 64px; margin: 0 auto 6px; border-radius: 8px; border: 2px solid #2a1b12; box-shadow: 0 0 0 1px rgba(207, 166, 79, .55); }
figcaption { color: var(--mist-2); font-size: .85rem; margin-top: 8px; }

/* the world: the map in a frame, the lore beside it, the road south (a real order: the land's number is the way down) */
.world { background: var(--night-850); border-block: 1px solid rgba(207, 166, 79, .25); }
.world-grid { display: grid; gap: 30px; }
@media (min-width: 960px) { .world-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 48px; align-items: center; } }
.world-map { position: relative; margin: 0; background: var(--night-950); }
.world-map img { width: 100%; height: auto; }
.world-map .art-tag { top: 8px; right: 8px; }
.world-count { color: var(--ember-hot); font-family: var(--display); font-weight: 600; }
.road-title { margin: 52px 0 16px; font-size: 1.35rem; color: var(--gilt-hi); }
.road { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; grid-template-columns: 1fr; border-left: 2px solid rgba(207, 166, 79, .45); }
@media (min-width: 700px) { .road { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .road { grid-template-columns: repeat(3, 1fr); } }
.road li { position: relative; padding: 14px 16px 16px 22px; border-bottom: 1px solid rgba(207, 166, 79, .16); }
.road li::before { content: ""; position: absolute; left: -7px; top: 22px; width: 10px; height: 10px; transform: rotate(45deg); background: var(--night-700); border: 1px solid var(--gilt-lo); }
.road li.story::before { background: var(--ember); border-color: var(--ember-hot); box-shadow: 0 0 10px var(--ember); }
.road .rn { font: 500 .82rem var(--body); color: var(--mist-2); }
.road h4 { font: 700 1.1rem/1.4 var(--display); margin: 2px 0 2px; }
.road h4 span { font: 500 .85rem var(--body); color: var(--mist-2); margin-left: 6px; }
.road p { font-size: .92rem; color: var(--mist-2); margin: 4px 0 0; }
.road .lv { color: var(--ember-hot); }
.road .tag { display: inline-block; margin-left: 6px; font: 500 .72rem/1.6 var(--body); color: var(--ink); background: var(--gilt); padding: 0 8px; border-radius: 3px; vertical-align: 2px; }

/* the ranking */
.rank-tabs { display: flex; justify-content: center; gap: 4px; margin: 8px auto 16px; width: max-content; max-width: 100%; padding: 4px; border-radius: 6px; background: var(--night-850); border: 1px solid rgba(207, 166, 79, .4); }
.rank-tabs button { min-height: 44px; padding: 6px 22px; border-radius: 4px; border: 0; background: transparent; color: var(--mist-2); font: 700 1rem var(--display); cursor: pointer; }
.rank-tabs button[aria-selected="true"] { background: linear-gradient(180deg, var(--gilt-hi), var(--gilt)); color: var(--ink); }
.rank-board { background: var(--night-850); padding: 14px clamp(6px, 2vw, 20px); }
.rank { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
@media (min-width: 1000px) { .rank { grid-template-columns: 1fr 1fr; grid-auto-flow: column; grid-template-rows: repeat(var(--rows, 6), auto); column-gap: 18px; } }
.rank li { display: grid; grid-template-columns: 40px 40px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 14px 8px 8px; border-radius: 3px;
  background: linear-gradient(90deg, rgba(242, 230, 201, .09), rgba(242, 230, 201, .02)); border-left: 3px solid var(--night-700); }
.rank li.top { background: linear-gradient(90deg, rgba(255, 161, 73, .24), rgba(255, 161, 73, .04)); border-left-color: var(--ember); }
.rank .no { font: 700 1.25rem var(--display); color: var(--mist-2); text-align: center; }
.rank li.top .no { color: var(--ember-hot); }
.rank .face { width: 40px; height: 40px; border-radius: 50%; background: var(--night-800); box-shadow: 0 0 0 2px rgba(207, 166, 79, .4); }
.rank li.top .face { box-shadow: 0 0 0 2px var(--ember); }
.rank .who b { display: block; font: 700 1.05rem/1.35 var(--display); overflow-wrap: anywhere; }
.rank .who span { font-size: .84rem; color: var(--mist-2); }
.rank .score { font: 700 1.15rem var(--display); color: var(--ember-hot); text-align: right; white-space: nowrap; }
.rank .score small { display: block; font: 500 .75rem var(--body); color: var(--mist-2); }
.rank-note { color: var(--mist-2); font-size: .88rem; margin: 12px 0 0; }
.rank-empty { padding: 18px; border: 1px dashed rgba(207, 166, 79, .4); color: var(--mist-2); max-width: 880px; }

/* the guide: four ways in, then what waits on the road */
.guide { background: var(--night-900); }
.guide-links { list-style: none; margin: 0 0 40px; padding: 0; display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .guide-links { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .guide-links { grid-template-columns: repeat(4, 1fr); } }
.guide-links a { display: grid; grid-template-columns: 56px 1fr; grid-template-rows: auto 1fr; column-gap: 14px; align-items: start; height: 100%; padding: 16px; text-decoration: none; color: var(--mist);
  background: var(--night-800); border: 1px solid rgba(207, 166, 79, .5); border-radius: 4px; box-shadow: inset 0 0 0 3px var(--night-800), inset 0 0 0 4px rgba(207, 166, 79, .2); transition: box-shadow .15s, border-color .15s; }
.guide-links img { grid-row: span 2; width: 56px; height: 56px; }
.guide-links b { font: 700 1.12rem/1.4 var(--display); color: var(--gilt-hi); }
.guide-links span { font-size: .9rem; line-height: 1.5; color: var(--mist-2); }
.guide-links a:hover { color: var(--mist); border-color: var(--ember); box-shadow: inset 0 0 0 3px var(--night-800), inset 0 0 0 4px rgba(255, 161, 73, .4), 0 0 24px rgba(255, 161, 73, .2); }
.feature { display: grid; gap: 22px; margin: 28px 0 44px; align-items: center; }
.feature figure { margin: 0; background: var(--night-950); }
.feature img { width: 100%; height: auto; }
@media (min-width: 960px) { .feature { grid-template-columns: 1.2fr 1fr; gap: 48px; } .feature-flip figure { order: 2; } }
.feature h3 { font-size: clamp(1.35rem, 1.1rem + .8vw, 1.85rem); margin-bottom: 10px; color: var(--gilt-hi); }
.systems-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 4px 36px; }
@media (min-width: 760px) { .systems-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .systems-list { grid-template-columns: repeat(3, 1fr); } }
.systems-list li { display: grid; grid-template-columns: 56px 1fr; gap: 14px; padding: 16px 0; border-top: 1px solid rgba(207, 166, 79, .22); }
.systems-list img { width: 56px; height: 56px; }
.systems-list h3 { font-size: 1.08rem; margin-bottom: 4px; }
.systems-list p { font-size: .93rem; color: var(--mist-2); margin: 0; }

/* media */
.media { background: var(--night-850); border-block: 1px solid rgba(207, 166, 79, .25); }
.clips, .shots { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .clips { grid-template-columns: 1fr 1fr; } .shots { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .clips { grid-template-columns: 2fr 1fr 1fr; } .clips li:first-child { grid-row: span 2; } .shots { grid-template-columns: repeat(4, 1fr); } }
.tile { position: relative; display: block; width: 100%; padding: 0; border: 1px solid rgba(207, 166, 79, .45); border-radius: 3px; overflow: hidden; cursor: zoom-in; background: var(--night-950); color: var(--mist); text-align: left; }
.tile img { width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .25s; }
.tile:hover { border-color: var(--ember); }
.tile:hover img { transform: scale(1.03); }
.tile .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 10px; font: 500 .9rem/1.4 var(--body); background: linear-gradient(180deg, rgba(12, 17, 38, 0), rgba(12, 17, 38, .88)); }
.tile .play { position: absolute; left: 12px; top: 12px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 161, 73, .94); box-shadow: 0 0 0 2px rgba(58, 39, 24, .6); }
.tile .play::after { content: ""; position: absolute; left: 17px; top: 13px; border-left: 14px solid var(--ink); border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.clips li:first-child .tile, .clips li:first-child .tile img { height: 100%; }
.art-title { margin: 40px 0 0; font-size: clamp(1.25rem, 1.05rem + .6vw, 1.55rem); color: var(--gilt-hi); }
.shots.art { grid-template-columns: 1fr 1fr; }
.art li:first-child { grid-column: 1 / -1; }
.art li:first-child .tile img { aspect-ratio: 16 / 7; object-position: var(--focus, 50% 24%); }
.art li:last-child:nth-child(even) { grid-column: 1 / -1; }
.art li:last-child:nth-child(even) .tile img { aspect-ratio: 16 / 7; object-position: var(--focus, 50% 20%); }
/* from 1000 px: six tracks, three tiles a row; the last 2 (one short) or last 4 (two short) become pairs at half width each, so no row has
   a hole whatever the count (row starts are children 3n+2: the party is child 1) */
@media (min-width: 1000px) {
  .shots.art { grid-template-columns: repeat(6, 1fr); }
  .art li { grid-column: span 2; }
  .art li:first-child { grid-column: 1 / -1; }
  .art li:last-child:nth-child(even) { grid-column: span 2; }
  .art li:last-child:nth-child(even) .tile img { aspect-ratio: 16 / 9; }
  .art li:nth-child(3n+2):nth-last-child(2), .art li:nth-child(3n+2):nth-last-child(2) + li,
  .art li:nth-child(3n+2):nth-last-child(4), .art li:nth-child(3n+2):nth-last-child(4) + li,
  .art li:nth-child(3n+2):nth-last-child(4) + li + li, .art li:nth-child(3n+2):nth-last-child(4) + li + li + li { grid-column: span 3; }
}
.viewer { width: min(1100px, 96vw); max-height: 94vh; padding: 0; border: 1px solid var(--gilt); background: var(--night-950); color: var(--mist); overflow: auto; }
.viewer::backdrop { background: rgba(8, 11, 24, .86); }
.viewer-body video, .viewer-body > picture img { width: 100%; height: auto; max-height: 80vh; object-fit: contain; background: #000; }
.viewer-caption { padding: 10px 16px 14px; margin: 0; color: var(--mist-2); }
.viewer-caption:empty { display: none; }
.viewer-close { position: absolute; right: 10px; top: 10px; z-index: 2; min-height: 40px; padding: 6px 16px; border-radius: 4px; border: 1px solid var(--gilt-lo); background: rgba(12, 17, 38, .85); color: var(--gilt-hi); font: 700 .95rem var(--display); cursor: pointer; }

/* download */
.download-grid { display: grid; gap: 22px; }
@media (min-width: 860px) { .download-grid { grid-template-columns: 1fr 1fr; } }
.way { padding: 12px 10px 14px; }
.way h3 { font-size: 1.4rem; margin-bottom: 8px; }
.way .hint { color: #5f4a35; }
.spec { width: 100%; margin-top: 30px; border-collapse: collapse; font-size: .95rem; }
.spec caption { text-align: left; font: 700 1.25rem var(--display); color: var(--gilt-hi); padding-bottom: 10px; }
.spec th, .spec td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid rgba(207, 166, 79, .22); }
.spec thead th { font: 600 .98rem var(--display); color: var(--ember-hot); border-bottom: 1px solid var(--gilt-lo); }
.spec tbody th { font-weight: 500; color: var(--mist-2); white-space: nowrap; }
@media (max-width: 639px) {
  .spec thead { display: none; }
  .spec tr { display: grid; grid-template-columns: 1fr; padding: 8px 0; border-bottom: 1px solid rgba(207, 166, 79, .22); }
  .spec th, .spec td { border: 0; padding: 2px 0; }
  .spec tbody th { color: var(--ember-hot); }
}

/* foot */
.foot { padding: 44px 0 calc(40px + env(safe-area-inset-bottom)); background: var(--night-950); border-top: 1px solid var(--gilt-lo); box-shadow: inset 0 3px 0 rgba(207, 166, 79, .12); }
.foot-grid { display: grid; gap: 28px; }
@media (min-width: 860px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.foot-brand img { width: 160px; height: auto; }
.age { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; margin-top: 14px; }
.age-badge { display: grid; place-items: center; width: 52px; height: 52px; border: 2px solid var(--gilt); background: var(--night-800); color: var(--gilt-hi); font: 700 1.2rem var(--display); }
.age p { margin: 0; font-size: .85rem; color: var(--mist-2); line-height: 1.55; }
.foot-links h2 { font-size: 1.05rem; color: var(--gilt-hi); margin-bottom: 8px; }
.foot-links a { display: inline-block; color: var(--mist); padding: 5px 0; margin-right: 18px; }
.foot nav.foot-links a { display: block; width: max-content; }
.community { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.community .soon { display: block; padding: 5px 0; color: var(--mist-2); }
.community .soon small { margin-left: 8px; font-size: .78rem; color: rgba(185, 192, 216, .7); }
.foot-note { grid-column: 1 / -1; font-size: .84rem; color: var(--mist-2); max-width: none; margin: 0; padding-top: 18px; border-top: 1px solid rgba(207, 166, 79, .2); }

/* a phone: the picture first, the words over its foot, the plaque under it; the gate no longer reaches up into the hero */
@media (max-width: 959px) {
  .hero-body { min-height: 0; padding: 0 0 24px; }
  .slides { position: relative; inset: auto; height: min(70svh, 125vw); }
  .hero-shade { height: min(70svh, 125vw); background: linear-gradient(180deg, rgba(12, 17, 38, .45) 0%, rgba(12, 17, 38, 0) 18%, rgba(12, 17, 38, 0) 46%, rgba(16, 22, 45, .92) 88%, var(--night-900) 100%); }
  .hero { background: var(--night-900); }
  .hero-logo { margin-top: -40vw; }
  .slide-cap { min-height: 0; }
  .hero-logo img { width: min(360px, 76vw); }
  .gate { margin-top: 0; }
  .plaque { margin-top: 18px; }
  .ribbon { margin-inline: -30px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slide, .tile img, .class-picker button img, .lineup button img, .btn, .start-play, .start-get, .guide-links a { transition: none; }
}
.slide-first img { object-position: 74% 50%; }
.rank li.rank-empty { display: block; padding: 18px; border-left: 0; background: transparent; }
@media (max-width: 639px) {
  .board-head { flex-wrap: nowrap; flex-direction: column; align-items: stretch; }
  .board-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -4px; }
  .board-tabs::-webkit-scrollbar { display: none; }
  .board-tabs button { flex: none; padding-inline: 10px; }
}
.rank li.rank-empty { grid-column: 1 / -1; grid-row: auto; }
.start { display: flex; flex-direction: column; }
.start .status { margin-top: auto; }
