/* ──────────────────────────────────────────────────────────────────────────
   Laparae — additions on top of the template's style.css.
   Kept in its own file so the original template can be re-synced freely.
   ────────────────────────────────────────────────────────────────────────── */

/* ---------- brand / emblem ---------- */
/* height:auto matters: the <img> carries width/height attributes so the
   browser can reserve space before the file loads, but without this the
   attribute height is used as-is and the crest renders stretched. */
.emblem {
  display: block;
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 10px 26px rgba(0, 0, 0, 0.6));
}
.emblem-xl { width: min(260px, 62vw); }
.emblem-lg { width: 168px; }
.emblem-md { width: 118px; }
.emblem-sm { width: 66px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand img { width: 44px; height: auto; filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.7)); }
.brand span {
  font-family: var(--font-title);
  color: var(--gold-2);
  letter-spacing: 0.28em;
  font-size: 14px;
}

.home-center .emblem-xl { margin: -18px auto 6px; }
.auth-card .emblem-md { margin: 2px auto 10px; }

/* ---------- topbar ---------- */
.topbar { display: flex; align-items: center; gap: 12px; }
.topbar .spacer { flex: 1 1 auto; }
.topbar .who {
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--gold-2);
}

/* ---------- live status strip ---------- */
.statusbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  margin: 0 auto 10px;
  padding: 10px 18px;
  max-width: 900px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.statusbar b { color: var(--text); font-weight: 700; }
.dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-right: 7px;
  background: var(--muted);
  box-shadow: 0 0 8px currentColor;
  vertical-align: baseline;
}
.dot.up { background: var(--green-2); color: var(--green-2); }
.dot.down { background: var(--danger); color: var(--danger); }
.dot.wait { background: var(--gold-3); color: var(--gold-3); }

/* ---------- feedback ---------- */
.err { min-height: 20px; margin: 4px 0 10px; color: #e08b7d; font-size: 14px; }
.err.ok { color: var(--green-2); }
.note { color: var(--muted); font-size: 14px; }

.toast-wrap {
  position: fixed;
  right: 18px; bottom: 18px;
  display: flex; flex-direction: column; gap: 10px;
  z-index: 60;
  max-width: min(360px, calc(100vw - 36px));
}
.toast {
  background: linear-gradient(180deg, rgba(36, 28, 16, 0.97), rgba(10, 8, 6, 0.97));
  border: 1px solid var(--gold-3);
  box-shadow: var(--shadow);
  padding: 12px 16px;
  font-size: 15px;
  color: var(--text);
  animation: toast-in 0.22s ease-out;
}
.toast.bad { border-color: var(--danger); color: #f0c2b8; }
.toast.good { border-color: var(--green); }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.btn[disabled], .btn.is-busy { opacity: 0.55; pointer-events: none; }

/* ---------- tables (rankings, admin) ---------- */
.table-wrap { overflow-x: auto; }
table.board {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: 16px;
}
table.board th {
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.board td {
  padding: 9px 12px;
  border-bottom: 1px solid rgba(215, 180, 90, 0.12);
  white-space: nowrap;
}
table.board tr:hover td { background: rgba(215, 180, 90, 0.06); }
table.board td.num { text-align: right; font-variant-numeric: tabular-nums; }
table.board .rank { color: var(--gold); width: 46px; }
table.board .name { color: var(--gold-2); font-weight: 600; }
.badge {
  display: inline-block;
  padding: 1px 8px;
  border: 1px solid var(--gold-3);
  border-radius: 2px;
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-2);
  margin-left: 6px;
}
.badge.hero { border-color: var(--gold-2); color: #ffeaa8; }
.badge.on { border-color: var(--green); color: var(--green-2); }
.badge.off { border-color: var(--gold-4); color: var(--muted); }
.badge.bad { border-color: var(--danger); color: #e39a8e; }

/* ---------- tabs ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tab {
  background: none;
  border: 1px solid var(--gold-4);
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 8px 16px;
  cursor: pointer;
}
.tab[aria-selected="true"] { border-color: var(--gold); color: var(--gold-2); background: rgba(215, 180, 90, 0.08); }

/* ---------- panel extras ---------- */
.page-wide {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 16px 60px;
}
.page-wide > header { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.page-wide > header .spacer { flex: 1 1 auto; }

.card + .card { margin-top: 16px; }
.card h2 {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-2);
  margin-bottom: 12px;
}
.stat { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 15px; }
.stat span { color: var(--muted); }
.stat b { color: var(--text); font-weight: 600; }
.stat b.ok { color: var(--green-2); }
.stat b.bad { color: #e08b7d; }

.row-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.row-form .field { flex: 1 1 160px; margin-bottom: 0; }
.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.field input, .field select, .field textarea {
  width: 100%;
  background: rgba(5, 4, 3, 0.75);
  border: 1px solid var(--gold-4);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 16px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(215, 180, 90, 0.35);
}
.field textarea { min-height: 120px; resize: vertical; }
.field .hint { color: var(--muted); font-size: 13px; margin-top: 4px; }

.chars { display: flex; flex-direction: column; gap: 10px; }
.char {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid rgba(215, 180, 90, 0.18);
}
.char .avatar {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 1px solid var(--gold-3);
  color: var(--gold-2);
  font-family: var(--font-ui);
  font-size: 13px;
  letter-spacing: 0.06em;
  background: rgba(215, 180, 90, 0.06);
}
.char b { display: block; color: var(--gold-2); }
.char span { display: block; color: var(--muted); font-size: 14px; }

.donate-row, .vote-row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; padding: 9px 0;
  border-bottom: 1px solid rgba(215, 180, 90, 0.12);
}
.donate-row:last-child, .vote-row:last-child { border-bottom: 0; }
.balance {
  font-family: var(--font-title);
  font-size: 30px;
  color: var(--gold-2);
  text-align: center;
  padding: 10px 0 16px;
  font-variant-numeric: tabular-nums;
}

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.kpi { text-align: center; padding: 18px 12px; }
.kpi b { display: block; font-family: var(--font-title); font-size: 26px; color: var(--gold-2); }
.kpi span { font-family: var(--font-ui); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }

.muted { color: var(--muted); }
.tiny { font-size: 13px; }
.center { text-align: center; }
.mt { margin-top: 16px; }
.hidden { display: none !important; }
.code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  letter-spacing: 0.08em;
  color: var(--gold-2);
  background: rgba(5, 4, 3, 0.7);
  border: 1px solid var(--gold-4);
  padding: 2px 8px;
}

.skeleton {
  background: linear-gradient(90deg, rgba(215,180,90,.05), rgba(215,180,90,.14), rgba(215,180,90,.05));
  background-size: 200% 100%;
  animation: shimmer 1.3s linear infinite;
  height: 14px;
  border-radius: 2px;
}
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

@media (max-width: 720px) {
  .statusbar { font-size: 11px; gap: 8px 14px; }
  .page-wide { padding: 16px 12px 48px; }
  table.board { font-size: 15px; }

  /* The crest is taken out of this row entirely (see BRAND MARK below), so
     what is left here is the language switcher and the buttons. They keep to
     the right-hand end and shrink rather than wrap onto two lines. */
  .topbar { flex-wrap: wrap; gap: 8px; row-gap: 8px; }
  .topbar .btn { min-height: 38px; padding: 0 12px; font-size: 11px; white-space: nowrap; }
  .topbar .lang { font-size: 11px; }

  .panel-top { flex-wrap: wrap; gap: 8px; }
  .panel-top .brand span { display: none; }
  .panel-top .icons { flex-wrap: wrap; gap: 6px; }
  .panel-top .icon-btn { min-height: 38px; padding: 0 12px; font-size: 11px; }

  .page-wide > header { gap: 8px; }
  .page-wide > header .brand span { display: none; }

  .row-form { flex-direction: column; align-items: stretch; }
  .row-form .btn { width: 100%; }
  .char { grid-template-columns: 38px 1fr; row-gap: 4px; }
  .char > span:last-child { grid-column: 2; justify-self: start; }
}

@media (max-width: 420px) {
  .topbar .spacer { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .toast, .skeleton { animation: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   FLUID LAYOUT
   The template was built around a fixed 1080px column, which leaves most of a
   modern monitor as black margin. Everything below re-expresses those fixed
   pixel values as viewport-relative ones, with a floor so small screens are
   unaffected and a ceiling so an ultrawide does not stretch the artwork.
   Kept here rather than edited into style.css so the original stays intact.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  /* One source of truth for the hero's height. The stage slides up over the
     hero by a fraction of it, so the overlap has to scale with it — a fixed
     -190px would tear the two apart the moment the hero grew. */
  --hero-h: clamp(320px, 32vw, 760px);
  --stage-max: 1860px;
  --portal-col: clamp(190px, 18.5vw, 420px);
  --center-col: clamp(300px, 36vw, 740px);
}

/* The banner runs edge to edge. Capping the whole sanctum left black gutters
   down both sides of a wide monitor — exactly the "built for small screens"
   look. Only the reading grid underneath is capped now. */
.page-home .sanctum {
  width: 100%;
  max-width: none;
  padding-top: 0;
}

.page-home .hero {
  height: var(--hero-h);
  width: 100%;
}

.page-home .stage {
  grid-template-columns: var(--portal-col) var(--center-col) var(--portal-col);
  max-width: var(--stage-max);
  margin-inline: auto;
  margin-top: calc(var(--hero-h) * -0.45);
  padding-inline: clamp(8px, 1.5vw, 28px);
  gap: clamp(0px, 1vw, 24px);
}

.page-home .portal {
  min-height: clamp(460px, 42vw, 880px);
}

.page-home .home-center {
  min-height: clamp(460px, 42vw, 880px);
  padding: clamp(24px, 2.2vw, 48px) clamp(20px, 2vw, 44px) clamp(28px, 2.4vw, 52px);
}

/* Type scales too, otherwise a 2560px page reads like a phone layout that was
   simply blown up with empty space around it. */
.page-home .home-center h1 { font-size: clamp(26px, 2.4vw, 48px); }
.page-home .home-center .sub { font-size: clamp(10px, 0.8vw, 14px); }
.page-home .rates b { font-size: clamp(15px, 1.3vw, 26px); }
.page-home .rates span { font-size: clamp(12px, 0.9vw, 16px); }
.page-home .rates div { padding: clamp(8px, 0.8vw, 16px) 4px; }
.page-home .news h2 { font-size: clamp(12px, 1vw, 17px); }
.page-home .news p { font-size: clamp(15px, 1.05vw, 19px); }
.page-home .news time { font-size: clamp(12px, 0.85vw, 15px); }
.page-home .portal nav a { font-size: clamp(11px, 0.85vw, 16px); padding: clamp(6px, 0.7vw, 13px) 2px; }
.page-home .emblem-xl { width: clamp(150px, 15vw, 300px); }

/* The auth and panel pages were centred in a narrow band as well. */
.page-auth .auth-card { width: min(460px, 92vw); }
.page-panel .panel-grid { width: min(1560px, 96vw); margin-inline: auto; }
.page-panel .page-wide { max-width: min(1560px, 96vw); }

@media (max-width: 980px) {
  /* The template already stacks here; just make sure the fluid values above
     do not fight the stacked layout. */
  :root { --hero-h: clamp(200px, 52vw, 380px); }
  .page-home .stage {
    grid-template-columns: 1fr;
    margin-top: calc(var(--hero-h) * -0.30);
  }
  .page-home .home-center { min-height: 0; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   BRAND MARK
   Crest only, no wordmark: the badge already carries the name, so setting it
   beside the crest said it twice. Anchored to the left edge and sized against
   the viewport so it stays prominent on a large monitor without swallowing a
   phone screen.
   ═══════════════════════════════════════════════════════════════════════════ */

/* The crest's width lives in a variable because the topbar has to reserve
   exactly that much room on the left; hard-coding it in two places is how the
   two drift apart and the buttons end up sitting on top of the logo. */
:root {
  --brand-w: clamp(96px, 9.5vw, 200px);
  --brand-x: clamp(10px, 1.6vw, 34px);
}

/* .topbar (style.css) is absolutely positioned at the right edge, so a .brand
   positioned inside it resolved `left` against that little box and landed on
   the right of the screen. Stretching the bar across the page makes `left`
   mean the page's left edge, which is where the crest was asked to go. */
.topbar {
  left: 0;
  right: 0;
  padding-inline: var(--brand-x);
  padding-left: calc(var(--brand-x) * 2 + var(--brand-w));
  justify-content: flex-end;
}

.brand {
  position: absolute;
  top: clamp(8px, 1vw, 22px);
  left: var(--brand-x);
  z-index: 6;
  display: block;
}
.brand span { display: none; }          /* the wordmark, retired */
.brand img {
  width: var(--brand-w);
  height: auto;
  filter: drop-shadow(0 6px 22px rgba(0, 0, 0, 0.85));
  transition: filter 0.25s ease;
}
.brand:hover img {
  filter: drop-shadow(0 6px 26px rgba(215, 180, 90, 0.35));
}

/* The auth pages centre their card under the crest, so it sits inline there
   rather than absolutely, but still without the wordmark. */
.page-auth .brand {
  position: absolute;
  margin-bottom: 0;
}

/* The panel header is a flex row; keep the crest in flow but larger. */
.page-panel .panel-top .brand,
.page-panel .page-wide > header .brand {
  position: static;
  flex: 0 0 auto;
}
.page-panel .panel-top .brand img,
.page-panel .page-wide > header .brand img {
  width: clamp(72px, 6.5vw, 130px);
}

@media (max-width: 980px) {
  /* Still the largest thing in the corner, just not half the phone. */
  :root { --brand-w: clamp(76px, 19vw, 140px); }
  .page-panel .panel-top .brand img,
  .page-panel .page-wide > header .brand img { width: clamp(58px, 14vw, 88px); }
}

/* ---------- Get in touch ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: clamp(10px, 1vw, 18px);
  margin-top: 12px;
}
.contact-card {
  display: block;
  padding: clamp(14px, 1.2vw, 22px);
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.35);
  text-align: center;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.contact-card:hover {
  border-color: var(--gold);
  background: rgba(215, 180, 90, 0.07);
}
.contact-card b {
  display: block;
  font-family: var(--font-ui);
  font-size: clamp(11px, 0.85vw, 14px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-2);
  margin-bottom: 6px;
}
.contact-card span {
  display: block;
  color: var(--muted);
  font-size: clamp(13px, 0.9vw, 16px);
  word-break: break-word;
}


/* ═══════════════════════════════════════════════════════════════════════════
   THE WORDMARK
   Struck-metal treatment: a gold gradient clipped to the glyphs, a hard dark
   edge underneath for relief, a warm glow around it, and a thin rule with a
   lozenge on either side.

   `filter: drop-shadow` rather than `text-shadow`, because drop-shadow follows
   the alpha of what was actually painted. With `color: transparent` a
   text-shadow paints a full blurred copy of the letterforms behind them and
   reads as a smear.
   ═══════════════════════════════════════════════════════════════════════════ */

.wordmark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 1.4vw, 26px);
  margin: clamp(6px, 0.8vw, 14px) 0 0;
}

/* The two flourishes. They give up their width before the name does, so the
   name never has to wrap or shrink to make room for decoration. */
.wordmark i {
  position: relative;
  flex: 0 1 auto;
  width: clamp(0px, 8vw, 130px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(141, 106, 46, 0.9) 45%, var(--gold));
}
.wordmark i:last-child { transform: scaleX(-1); }
.wordmark i::after {
  content: "";
  position: absolute;
  right: -4px;
  top: -3.5px;
  width: 7px;
  height: 7px;
  transform: rotate(45deg);
  border: 1px solid var(--gold);
  background: var(--ink);
  box-shadow: 0 0 9px rgba(215, 180, 90, 0.55);
}

.wordmark span {
  font-family: var(--font-title);
  font-weight: 900;
  letter-spacing: clamp(0.02em, 0.4vw, 0.09em);
  line-height: 1.1;
  white-space: nowrap;
  color: var(--gold-2);
}

/* Opted into rather than out of: without background-clip support, transparent
   text is invisible text. The rule above is the fallback. */
@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  .wordmark span {
    background: linear-gradient(
      177deg,
      #fffaea 0%,
      #f7e6b4 20%,
      #d9b45e 42%,
      #9c7529 57%,
      #e8ce85 78%,
      #fff6dc 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter:
      drop-shadow(0 1px 0 rgba(0, 0, 0, 0.9))
      drop-shadow(0 2px 4px rgba(0, 0, 0, 0.7))
      drop-shadow(0 0 18px rgba(215, 180, 90, 0.38));
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   MENU (phones and small tablets)
   One button, one full-screen panel. The bottom bar that used to live here
   only ever held five of the nine destinations, so half the site was reachable
   only by scrolling to a portal; the panel holds all of them.
   ═══════════════════════════════════════════════════════════════════════════ */

.burger,
.drawer { display: none; }

@media (max-width: 980px) {

  /* ---- the button ------------------------------------------------------ */
  /* Fixed rather than parked in the header: the home page is ~2000px tall on
     a phone, and a menu you have to scroll back to the top to reach is a menu
     nobody uses. The disc keeps the bars legible over the hero art. */
  .burger {
    position: fixed;
    top: clamp(10px, 2.6vw, 20px);
    right: clamp(10px, 2.6vw, 22px);
    z-index: 70;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 48px;
    height: 48px;
    padding: 0 11px;
    border: 1px solid rgba(215, 180, 90, 0.3);
    border-radius: 50%;
    background: rgba(8, 6, 4, 0.72);
    -webkit-backdrop-filter: blur(7px);
    backdrop-filter: blur(7px);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6);
    cursor: pointer;
  }
  .burger span {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: var(--gold-2);
    transition: transform 0.24s ease, opacity 0.18s ease;
  }
  .burger span:nth-child(2) { width: 72%; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  /* ---- the panel ------------------------------------------------------- */
  /* visibility, not [hidden]: it can be transitioned, and it takes the panel
     out of the accessibility tree and out of tab order in one property, with
     no transitionend bookkeeping to get wrong. */
  .drawer {
    position: fixed;
    inset: 0;
    z-index: 65;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(14px, 3vw, 26px);
    padding: clamp(84px, 20vw, 120px) 22px calc(28px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    overscroll-behavior: contain;
    background:
      radial-gradient(ellipse at 50% 0%, rgba(215, 180, 90, 0.10), transparent 62%),
      linear-gradient(180deg, #0a0806 0%, #050403 100%);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.26s ease, visibility 0s linear 0.26s;
  }
  .drawer.open {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.26s ease;
  }

  /* The crest, so the panel is unmistakably this site and not a blank sheet. */
  .drawer-brand {
    display: block;
    margin-bottom: clamp(2px, 1vw, 10px);
  }
  .drawer-brand img {
    width: clamp(92px, 26vw, 150px);
    height: auto;
    filter: drop-shadow(0 6px 22px rgba(0, 0, 0, 0.85));
  }

  .drawer-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 420px;
  }
  .drawer-nav a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 50px;
    font-family: var(--font-ui);
    font-size: clamp(15px, 4.4vw, 20px);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text);
    text-shadow: 0 2px 10px #000;
  }
  .drawer-nav a:active { color: var(--gold-2); }

  /* The current page is marked the way the reference does it — a rule under
     the word — rather than by colour alone. */
  .drawer-nav a[aria-current="page"] { color: var(--gold-2); }
  .drawer-nav a[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 9px;
    width: 2.2em;
    height: 2px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
  }

  .drawer-sep {
    width: min(300px, 76%);
    height: 1px;
    border: 0;
    margin: clamp(4px, 1.5vw, 12px) 0;
    background: linear-gradient(90deg, transparent, rgba(215, 180, 90, 0.45), transparent);
  }

  .drawer-foot {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 420px;
  }
  .drawer-foot .btn { flex: 1 1 140px; min-height: 48px; }

  .drawer-lang {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    letter-spacing: 0.18em;
    margin-top: auto;
    padding-top: 18px;
  }
  .drawer-lang button {
    background: none;
    border: 0;
    color: var(--muted);
    font-family: var(--font-ui);
    font-size: 13px;
    letter-spacing: 0.18em;
    padding: 10px 8px;
    cursor: pointer;
  }
  .drawer-lang button[aria-current="true"] { color: var(--gold-2); }

  /* The panel scrolls on its own; the page behind it must not. */
  body.drawer-open { overflow: hidden; }

  /* ---- what the button replaces ---------------------------------------- */
  /* The language switch and the account buttons moved into the panel, so the
     top bar is just the crest now. */
  .topbar .btn,
  .topbar .lang { display: none; }

  /* Both portals are navigation, and navigation now lives in the panel. They
     cost two screens of scrolling each to say what the menu says in one tap. */
  .page-home .portal { display: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   PHONE LAYOUT
   The stacked desktop layout was not a phone design: each portal arch took a
   whole screen to hold six small links, and the first thing anyone saw after
   the banner was a menu rather than the server.
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 980px) {
  :root { --hero-h: clamp(250px, 62vw, 460px); }

  .topbar {
    top: clamp(10px, 3vw, 18px);
    padding-left: var(--brand-x);
  }
  /* Shows the warrior's face rather than cropping it at the chin. */
  .page-home .hero { background-position: center 12%; }

  .page-home .stage {
    margin-top: 0;
    gap: 14px;
    padding-inline: 12px;
  }

  .page-home .home-center { padding: 22px 16px 26px; }
  .page-home .emblem-xl { width: min(190px, 52vw); }
  .page-home .home-center h1 { font-size: clamp(24px, 7.2vw, 40px); }
  .page-home .home-center .sub { font-size: 11px; letter-spacing: 0.22em; }

  .statusbar { padding: 9px 10px; gap: 8px 16px; }
  .page-home .rates { gap: 6px; }
  .page-home .news p { font-size: 16px; line-height: 1.5; }

  /* Links inside prose need to be tappable, not just clickable. */
  .contact-card { padding: 16px 12px; }

  /* The auth pages need room for the crest above the card, and the card then
     sits in the middle of what is left rather than leaving a screen of black
     underneath it. */
  .page-auth { justify-content: center; }
  .page-auth .auth-card {
    margin-top: clamp(86px, 24vw, 140px);
    margin-bottom: clamp(16px, 5vw, 40px);
  }
}

@media (max-width: 420px) {
  /* "Drop / Spoil" wrapped and made its tile taller than the other two. */
  .page-home .rates span { font-size: 11px; letter-spacing: 0.04em; }
  .page-home .rates div { padding: 8px 2px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   NAV 2.0 — one row, diamond-separated links, single CTA on the right.
   Matches the layout convention of the larger L2 portals, in our palette.
   ═══════════════════════════════════════════════════════════════════════════ */
.nav2 {
  position: relative; z-index: 20;
  display: flex; align-items: center; gap: 22px;
  padding: 16px clamp(16px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(5,4,3,.7), transparent);
}
.nav2-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-title); font-size: 19px; letter-spacing: 0.14em;
  color: var(--gold-2); text-shadow: 0 0 14px rgba(215,180,90,.35); white-space: nowrap;
}
.nav2-brand-text { line-height: 1; }
.nav2-links { display: flex; align-items: center; gap: 12px; flex: 1 1 auto; }
.nav2-links a {
  font-family: var(--font-ui); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text);
}
.nav2-links a:hover, .nav2-links a[aria-current="page"] { color: var(--gold-2); }
.nav2-links .dot { color: var(--gold-3); font-size: 8px; }
.nav2-discord {
  display: inline-flex; align-items: center; gap: 6px;
  color: #b7c7ff !important;
}
.nav2-discord svg { flex: 0 0 auto; }
.nav2-discord:hover { color: #ffffff !important; }
.nav2-status {
  display: flex; align-items: center; white-space: nowrap;
  font-family: var(--font-ui); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
}
.nav2-status-count { display: inline-flex; align-items: center; gap: 6px; }
.nav2-status-count b { color: var(--text); font-weight: 600; }
@media (max-width: 980px) {
  .nav2-status { display: none; }
}
.nav2-right { display: flex; align-items: center; gap: 16px; white-space: nowrap; }
.nav2-right .lang { display: flex; gap: 4px; font-size: 11px; }
.nav2-right .lang button { background: none; border: 0; color: var(--gold); cursor: pointer; letter-spacing: 0.1em; }
.nav2-cta {
  padding: 8px 20px; border: 1px solid var(--line); color: var(--gold-2);
  font-family: var(--font-ui); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  background: rgba(215,180,90,.06); cursor: pointer;
}
.nav2-cta:hover { background: rgba(215,180,90,.14); color: var(--gold-2); }

@media (max-width: 980px) {
  .nav2-links, .nav2-right .lang { display: none; }
  .nav2 { justify-content: space-between; padding-right: 64px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   HERO 2.0 — left copy + right floating status panel over the banner art.
   ═══════════════════════════════════════════════════════════════════════════ */
.page-home .hero {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 0 clamp(16px, 4vw, 56px) 48px;
  min-height: 560px; height: auto;
  -webkit-mask-image: none; mask-image: none;
}
.page-home .hero::after {
  background:
    linear-gradient(180deg, transparent 45%, rgba(5,4,3,.6) 82%, var(--bg) 100%),
    radial-gradient(ellipse at 50% 70%, transparent 30%, rgba(5,4,3,.35) 100%);
}
.page-home .hero-copy, .page-home .statuspanel { position: relative; z-index: 5; }
/* The stage cards used to ride up into an empty hero purely for a fade
   effect. The hero now holds real content (copy + status panel), so the
   overlap would bury the "Register/Download" buttons under the portals. */
.page-home .stage { margin-top: 34px; grid-template-columns: minmax(300px, 620px); }
.page-home .portal { display: none; }
.hero-copy { max-width: 480px; padding-bottom: 12px; }
.hero-brand {
  display: flex; align-items: center; gap: 14px; margin: 0 0 16px;
}
.hero-brand-mark {
  height: 64px; width: auto; display: block; flex: 0 0 auto;
  /* mark.png is a pale, near-white crest — recolour it into the site's
     gold palette instead of shipping a second logo asset, plus a soft
     glow so it reads clearly over the dark banner art. */
  filter: drop-shadow(0 0 14px rgba(215,180,90,.4))
          sepia(1) saturate(4) hue-rotate(-12deg) brightness(0.95);
}
.hero-brand-word {
  font-family: var(--font-title); font-size: clamp(24px, 3.4vw, 36px);
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold);
  text-shadow: 0 0 22px rgba(215,180,90,.35); line-height: 1.1;
}
.hero-brand-word b { font-weight: inherit; color: var(--gold-2); }
@media (max-width: 980px) {
  .hero-brand { justify-content: center; }
}
@media (max-width: 560px) {
  .hero-brand { flex-direction: column; gap: 8px; }
}
.hero-copy-label {
  color: var(--gold); font-family: var(--font-ui); font-size: 12px;
  letter-spacing: 0.22em; text-transform: uppercase; margin: 0 0 6px;
}
.hero-copy-title {
  font-family: var(--font-title); font-size: clamp(34px, 6vw, 56px);
  color: var(--gold-2); text-shadow: 0 0 22px rgba(215,180,90,.4); margin: 0;
}
.hero-copy-desc { color: var(--text); font-size: 16px; max-width: 420px; margin: 10px 0 18px; }
.hero-copy-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-diamond {
  position: relative; display: inline-block; padding: 11px 26px;
  border: 1px solid var(--line); color: var(--gold-2);
  font-family: var(--font-ui); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  background: rgba(0,0,0,.35);
}
.btn-diamond::before, .btn-diamond::after {
  content: "◆"; position: absolute; left: 50%; transform: translateX(-50%);
  color: var(--gold-3); font-size: 9px; line-height: 1;
}
.btn-diamond::before { top: -6px; }
.btn-diamond::after { bottom: -6px; }
.btn-diamond:hover { background: rgba(215,180,90,.12); color: var(--gold-2); }
.btn-diamond-ghost { background: transparent; }

.statuspanel {
  width: min(280px, 100%); padding: 14px 16px; border: 1px solid var(--line);
  background: rgba(5,4,3,.72); backdrop-filter: blur(3px);
}
.statuspanel-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.statuspanel-name {
  font-family: var(--font-ui); font-size: 12px; letter-spacing: 0.14em; color: var(--gold); text-transform: uppercase;
}
.statuspanel-count { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text); }
.statuspanel-players { margin-top: 8px; font-size: 12px; color: var(--muted); }
.statuspanel-players strong { color: var(--text); }
.status-word { font-family: var(--font-ui); letter-spacing: 0.08em; text-transform: uppercase; font-size: 12px; }
.status-word.is-up { color: var(--green-2); }
.status-word.is-down { color: var(--danger); }
.statuspanel-sep, .nav2-status-count .statuspanel-sep { color: var(--muted); }
.statuspanel-bar {
  height: 4px; margin: 10px 0 12px; background: rgba(255,255,255,.08); overflow: hidden;
}
.statuspanel-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-3), var(--gold-2)); }
.statuspanel-rates { display: flex; justify-content: space-between; gap: 6px; }
.statuspanel-rates div { text-align: center; flex: 1 1 auto; }
.statuspanel-rates b { display: block; color: var(--gold-2); font-family: var(--font-ui); font-size: 14px; }
.statuspanel-rates span { color: var(--muted); font-size: 10px; letter-spacing: 0.1em; }

@media (max-width: 980px) {
  .page-home .hero { flex-direction: column; align-items: stretch; padding-bottom: 32px; }
  .hero-copy { max-width: none; text-align: center; }
  .hero-copy-ctas { justify-content: center; }
  .statuspanel { width: 100%; margin-top: 12px; }
}
