/* ===========================================================================
   REIGN OF WAR UNIVERSE

   Palette and mood are taken from the key art the owner supplied:
   warm amber and gold on the Human side, cold steel-blue on the Ak'kan side,
   everything sitting on near-black stone.

   Display  Eczar        heavy carved serif, gold-gradient and engraved
   Body     Spectral     serif prose, warmer than a UI sans
   Data     Barlow Semi Condensed   small caps labels, tables, numbers

   Nothing here is rounded past 4px on purpose. Carved stone has corners;
   the pill-and-blur look is what made the previous pass read as a startup
   landing page instead of a game.
   =========================================================================== */

*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; width: 100%; }

:root {
  /* ---- ground: warm near-black stone ---- */
  --bg:        #0a0806;
  --bg-2:      #100d0a;
  --bg-3:      #17120e;

  /* ---- surfaces ---- */
  --plate:     linear-gradient(163deg, #1d1712 0%, #150f0c 52%, #100c09 100%);
  --plate-2:   linear-gradient(163deg, #241c15 0%, #191310 100%);
  --sunk:      rgba(0,0,0,.34);

  /* ---- gold, the primary accent, straight off the logo ---- */
  --gold:      #c9a227;
  --gold-l:    #f0d99a;
  --gold-d:    #8a6a1a;
  --gold-face: linear-gradient(180deg, #fdf3dc 0%, #e6c98d 40%, #a5762c 76%, #f3dda4 100%);

  /* ---- the two nations ---- */
  --amber:     #d9873c;   /* Human, the burning castle side */
  --steel:     #7d97ad;   /* Ak'kan, the cold spires side */
  --steel-l:   #b4c9d8;
  --ember:     #c4562a;

  /* ---- rules and edges ---- */
  --line:      rgba(201,162,39,.20);
  --line-2:    rgba(201,162,39,.40);
  --line-3:    rgba(201,162,39,.62);
  --line-dim:  rgba(255,236,200,.09);

  /* ---- ink ---- */
  --ink:       #f4ece0;
  --ink-2:     #bcab95;
  --ink-3:     #8b7d6b;
  --ink-4:     #62574a;

  --good:      #7fb36a;
  --bad:       #cf5a4e;

  --r:         4px;
  --r-sm:      3px;
  --r-pill:    2px;        /* legacy.css asks for this; carved, so barely round */
  --wrap:      1240px;
  --hdr:       72px;

  --ease:      cubic-bezier(.2,.7,.25,1);
  --sink:      inset 0 1px 0 rgba(255,236,200,.07), 0 18px 40px -22px #000;

  /* ---- Compatibility aliases. These names survive from the Naraka port and
     are still referenced from OUTSIDE this file, so a grep of site.css alone
     will not find their users - delete one and something goes unstyled with
     no error anywhere.

       --cyan, --cyan-2   legacy.css:33,36,79  the only link colour in the
                          41-page guide, plus its active tab pill
       --edge, --edge-2   legacy.css:32        grey table cells in the guide
       --dim              download, news, payment/return, register, shop
                          (inline style on body copy)
       --gold-2           ranking.php:73,99    the value column

     The last two were undefined until now: those paragraphs fell back to the
     inherited colour and the ranking values were not gold at all. */
  --cyan:      var(--gold);
  --cyan-2:    var(--gold-l);
  --edge:      var(--line);
  --edge-2:    rgba(201,162,39,.16);
  --dim:       var(--ink-2);
  --gold-2:    var(--gold-l);
}

/* ================================================================== GROUND */
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink-2);
  font: 400 16px/1.72 Spectral, Georgia, "Times New Roman", serif;
  background: var(--bg);
  overflow-x: hidden;
}

/* the supplied key art, dimmed right down, sits behind every page */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background: url("../img/page-bg.jpg") center top / cover no-repeat;
  opacity: .5;
}
/* and a vertical wash so text always has ground under it */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(217,135,60,.10), transparent 58%),
    linear-gradient(180deg, rgba(10,8,6,.72) 0%, rgba(10,8,6,.90) 42%, rgba(10,8,6,.97) 100%);
}
main, .hdr, .ftr, .drawer { position: relative; z-index: 1; }

.wrap { width: min(100% - 44px, var(--wrap)); margin-inline: auto; }
@media (max-width: 560px) { .wrap { width: calc(100% - 26px); } }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 99;
  background: var(--gold); color: #1a1206; padding: 12px 18px; font-weight: 700;
}
.skip:focus { left: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ============================================================== TYPOGRAPHY */
h1, h2, h3, h4, .disp {
  font-family: Eczar, "Palatino Linotype", Georgia, serif;
  font-weight: 800;
  line-height: 1.06;
  color: var(--ink);
  letter-spacing: .002em;
}

/* the engraved gold treatment used on every real heading */
.gilt, h1, .sec-head h2, .cta h2 {
  background: var(--gold-face);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  filter: drop-shadow(0 2px 0 rgba(0,0,0,.62)) drop-shadow(0 0 18px rgba(201,162,39,.18));
}
h2 { font-size: clamp(26px, 3.2vw, 38px); }
h3 { font-size: 19px; font-weight: 600; line-height: 1.24; }

/* small-caps plaque label, used for kickers, table heads, panel titles */
.kick, .panel h3, table.data th, .stat span, .char-stat span, .pack-lbl,
.field label, .console-cell span, .console-top h2, .tile-n, .news-meta,
.ftr-motto, .hero-meta, .brand-a {
  font-family: "Barlow Semi Condensed", "Arial Narrow", sans-serif;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.kick { font-size: 11.5px; color: var(--gold); margin-bottom: 14px; display: block; }
.mono, .num, table.data .num, .kv b { font-family: "Barlow Semi Condensed", sans-serif; }

.cyan, .gold { color: var(--gold-l); }
.up   { color: var(--good); }
.down { color: var(--bad); }

/* --------------------------------------------------------------- ornament
   A rule with a lozenge in the middle. Used to separate every section, so
   the page has visible joints instead of relying on empty space. */
.orn {
  display: flex; align-items: center; gap: 14px;
  color: var(--line-2);
}
.orn::before, .orn::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-2), transparent);
}
.orn i {
  width: 9px; height: 9px; transform: rotate(45deg);
  background: var(--gold); box-shadow: 0 0 0 3px rgba(201,162,39,.16);
  flex: none;
}

/* ================================================================== HEADER */
.hdr {
  position: sticky; top: 0; z-index: 60; height: var(--hdr);
  background: linear-gradient(180deg, #0e0b08 0%, #0a0806 100%);
  border-bottom: 1px solid var(--line-2);
  box-shadow: 0 10px 34px -18px #000;
}
.hdr::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-d) 22%, var(--gold) 50%, var(--gold-d) 78%, transparent);
  opacity: .55;
}
.hdr-in { height: var(--hdr); display: flex; align-items: center; gap: 20px; }

.brand { display: flex; align-items: center; gap: 13px; margin-right: auto; }
.brand img { filter: drop-shadow(0 3px 8px rgba(0,0,0,.8)); }
.brand-tx { display: grid; line-height: 1; }
.brand-a { font-size: 9.5px; letter-spacing: .34em; color: var(--gold); margin-bottom: 5px; }
.brand-b {
  font-family: Eczar, serif; font-weight: 800; font-size: 20px;
  letter-spacing: .04em; color: var(--ink);
  text-shadow: 0 2px 0 rgba(0,0,0,.7);
}

.nav { display: flex; align-items: center; gap: 0; }
.nav a {
  position: relative;
  padding: 9px 16px;
  font-family: "Barlow Semi Condensed", sans-serif;
  font-size: 15px; font-weight: 600; letter-spacing: .10em; text-transform: uppercase;
  color: var(--ink-2);
  transition: color .2s;
}
.nav a + a::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 1px; height: 13px; background: var(--line);
}
.nav a:hover { color: var(--gold-l); }
.nav a.on { color: var(--gold-l); }
.nav a.on::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* Discord: a small struck plate after the links that opens the invite in a
   new tab. eykalzz add discord navbar 4.10.2026 */
.nav a.nav-dc {
  display: inline-flex; align-items: center; gap: 8px;
  margin-left: 10px; height: 34px; padding: 0 14px;
  border: 1px solid var(--line-2); border-radius: var(--r-sm);
  background: var(--plate);
  box-shadow: inset 0 1px 0 rgba(255,236,200,.08), 0 8px 18px -12px #000;
  font-size: 13.5px; letter-spacing: .13em; color: var(--gold-l);
  transition: color .2s, border-color .2s, background .25s;
}
.nav a.nav-dc::before { display: none; }
.nav a.nav-dc:hover { border-color: var(--line-3); background: var(--plate-2); }
.dc-ico { width: 18px; height: 18px; fill: currentColor; flex: none; }

.hdr-act { display: flex; align-items: center; gap: 9px; margin-left: auto; }

.burger {
  display: none; width: 44px; height: 44px; margin-left: auto; padding: 0;
  background: var(--plate); border: 1px solid var(--line-2);
  border-radius: var(--r-sm); cursor: pointer; place-items: center; gap: 5px;
}
.burger span { display: block; width: 18px; height: 2px; background: var(--gold-l);
                transition: transform .28s var(--ease), opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.drawer {
  position: sticky; top: var(--hdr); z-index: 55;
  background: #0c0906; border-bottom: 1px solid var(--line-2);
}
.drawer nav { display: grid; padding: 10px 22px 20px; }
.drawer a {
  padding: 14px 8px; color: var(--ink-2); border-bottom: 1px solid var(--line-dim);
  font-family: "Barlow Semi Condensed", sans-serif;
  font-size: 16px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
}
.drawer a.on, .drawer a:hover { color: var(--gold-l); }
.drawer a.hi { color: #1a1206; background: var(--gold); text-align: center;
                margin-top: 12px; border: 0; }
.drawer-sep { height: 1px; background: var(--line); margin: 10px 0; }
.drawer a.drawer-dc { display: flex; align-items: center; gap: 10px; }   /* eykalzz add discord navbar 4.10.2026 */
.drawer a.drawer-dc .dc-ico { color: var(--gold); }

/* ================================================================= BUTTONS
   Struck metal plates: two-tone bevel, hard corners, no glow. */
.btn {
  --bh: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: var(--bh); padding: 0 24px;
  border: 1px solid var(--line-2); border-radius: var(--r-sm);
  cursor: pointer; position: relative; overflow: hidden;
  font-family: "Barlow Semi Condensed", sans-serif;
  font-size: 15px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase;
  white-space: nowrap; color: var(--ink);
  background: var(--plate-2);
  box-shadow: inset 0 1px 0 rgba(255,236,200,.10), 0 8px 18px -12px #000;
  transition: color .2s, border-color .2s, background .25s, transform .12s var(--ease);
}
.btn:hover { border-color: var(--line-3); color: var(--gold-l); }
.btn:active { transform: translateY(1px); }

.btn-cyan {
  background: linear-gradient(180deg, #e8c67f 0%, #c9a227 46%, #8a6a1a 100%);
  border-color: #e2c98f; color: #1c1305;
  text-shadow: 0 1px 0 rgba(255,255,255,.28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 10px 22px -12px rgba(201,162,39,.7);
}
.btn-cyan:hover { color: #1c1305; filter: brightness(1.09); border-color: #f4e0ae; }

.btn-glass { background: var(--plate); }
.btn-glass:hover { background: var(--plate-2); }

.btn-bare { background: none; border-color: transparent; padding: 0 12px; }
.btn-bare:hover { color: var(--gold-l); border-color: var(--line); }

.btn-sm  { --bh: 36px; font-size: 13px; padding: 0 15px; }
.btn-lg  { --bh: 52px; font-size: 16px; padding: 0 32px; letter-spacing: .15em; }
.btn-block { display: flex; width: 100%; }
.btn.is-off, .btn[disabled] { opacity: .45; pointer-events: none; }

/* ==================================================================== HERO
   The supplied key art, full bleed. The logo is already painted into it,
   so nothing is set over the middle - only a plinth of actions underneath. */
.hero {
  position: relative;
  /* width must be pinned: aspect-ratio plus max-height would otherwise be
     resolved by shrinking the box sideways, leaving a gap beside the art */
  width: 100%;
  min-height: min(58vh, 500px);
  aspect-ratio: 1692 / 929;
  max-height: 620px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background: url("../img/hero-art.jpg") center 44% / cover no-repeat;
}
/* Only the outer edges are darkened. Nothing is written over the middle,
   because the artwork already carries the wordmark - the actions live on
   the plinth underneath instead of fighting the logo for the same space. */
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,8,6,.55) 0%, transparent 16%, transparent 68%, rgba(10,8,6,.86) 94%, #0d0a08 100%),
    linear-gradient(90deg, rgba(10,8,6,.60), transparent 22%, transparent 78%, rgba(10,8,6,.60));
}
/* Narrow screens get their own crop of the art, taken tight around the
   wordmark, so the logo is never sliced by the viewport edge. */
@media (max-width: 900px) {
  .hero-bg { background-image: url("../img/hero-art-sm.jpg"); background-position: center 46%; }
  .hero    { aspect-ratio: 880 / 836; min-height: 280px; max-height: 520px; }
}

.hero-plinth {
  position: relative; margin-top: -1px;
  border-bottom: 1px solid var(--line-2);
  background: linear-gradient(180deg, #0d0a08 0%, #100c09 100%);
}
.hero-in { padding: 26px 0 30px; text-align: center; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 18px; margin-bottom: 18px;
  border: 1px solid var(--line-2); background: rgba(10,8,6,.66);
  font-family: "Barlow Semi Condensed", sans-serif;
  font-size: 12px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase;
  color: var(--gold-l);
}
.hero-eyebrow::before {
  content: ""; width: 7px; height: 7px; transform: rotate(45deg); background: var(--gold);
}
/* the site title is in the artwork; keep an h1 for search engines and
   screen readers without painting a second one over the picture */
.hero h1 {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.hero-sub {
  max-width: 54ch; margin: 0 auto 26px;
  font-size: clamp(16px, 1.5vw, 19px); font-style: italic; color: var(--ink-2);
  text-shadow: 0 2px 12px rgba(0,0,0,.9);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 8px 26px; justify-content: center;
  margin-top: 22px; font-size: 11.5px; color: var(--ink-3);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta span::before {
  content: ""; width: 5px; height: 5px; transform: rotate(45deg); background: var(--gold-d);
}
.hero-tx { display: contents; }

/* ============================================================= STAT STRIP
   One ruled band directly under the hero. Equal cells, hard dividers. */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line-2); border-top: 0;
  background: linear-gradient(180deg, #16110d, #0d0a08);
  box-shadow: var(--sink);
}
.stat {
  padding: 20px 14px; text-align: center;
  border-left: 1px solid var(--line);
}
.stat:first-child { border-left: 0; }
.stat b {
  display: block; font-family: Eczar, serif; font-weight: 800;
  font-size: clamp(24px, 2.8vw, 34px); line-height: 1; color: var(--gold-l);
  text-shadow: 0 2px 0 rgba(0,0,0,.6); margin-bottom: 8px;
}
.stat b.up   { color: var(--good); }
.stat b.down { color: var(--bad); }
.stat span { font-size: 10.5px; color: var(--ink-3); }
@media (max-width: 720px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ============================================================ PAGE LAYOUT
   The same two-column grid on every page, home included. That single rule
   is what stops the site reading as a pile of unrelated blocks. */
.sec  { padding: clamp(40px, 5vw, 64px) 0; }
.page { padding: clamp(28px, 3.6vw, 46px) 0 clamp(48px, 6vw, 76px); }

.page-head { margin-bottom: 26px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.page-head h1 {
  position: static; width: auto; height: auto; clip: auto; clip-path: none;
  overflow: visible; white-space: normal;
  font-size: clamp(32px, 4.6vw, 54px); letter-spacing: .01em;
}

.page-grid { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 26px; align-items: start; }
.page-grid.no-side { grid-template-columns: minmax(0,1fr); }
.page-body { min-width: 0; }
.page-side { display: grid; gap: 18px; position: sticky; top: calc(var(--hdr) + 20px); }

.sec-head { margin-bottom: 28px; }
.sec-head .orn { margin-bottom: 16px; }
.sec-head h2 { margin-bottom: 10px; }
.sec-head p:not(.kick) { font-size: 16.5px; color: var(--ink-2); max-width: 66ch; }
.sec-head.mid { text-align: center; }
.sec-head.mid p:not(.kick) { margin-inline: auto; }

/* ================================================================= PLATES
   Every panel, card and tile is the same object: a stone plate inside a
   double frame. One treatment, repeated, is what makes a page look tidy. */
.panel, .card, .tile, .news-item, .char, .pack, .table-wrap, .console, .cta, .glass {
  position: relative;
  background: var(--plate);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  box-shadow: var(--sink);
}
/* the inner hairline that turns a box into a frame */
.panel::before, .card::before, .tile::before, .news-item::before,
.pack::before, .cta::before, .console::before {
  content: ""; position: absolute; inset: 3px; pointer-events: none;
  border: 1px solid var(--line-dim); border-radius: 2px;
}

.panel { padding: 0; overflow: hidden; }
.panel h3 {
  margin: 0; padding: 13px 16px;
  font-size: 11px; color: var(--gold);
  background: linear-gradient(180deg, rgba(201,162,39,.13), rgba(201,162,39,.03));
  border-bottom: 1px solid var(--line-2);
}
.panel > *:not(h3) { margin-left: 16px; margin-right: 16px; }
.panel > *:not(h3):first-child { margin-top: 15px; }
.panel > *:last-child { margin-bottom: 16px; }
.panel-note { font-size: 14px; line-height: 1.62; color: var(--ink-2); }
.panel-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.panel-more {
  display: inline-block; margin-top: 12px;
  font-family: "Barlow Semi Condensed", sans-serif; font-size: 13px;
  letter-spacing: .13em; text-transform: uppercase; color: var(--gold);
}
.panel-more:hover { color: var(--gold-l); }
.panel-nav { display: grid; }
.panel-nav a {
  padding: 10px 0; font-size: 15px; color: var(--ink-2);
  border-bottom: 1px solid var(--line-dim);
}
.panel-nav a:last-child { border-bottom: 0; }
.panel-nav a:hover, .panel-nav a.on { color: var(--gold-l); }

.kv {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 9px 0; border-bottom: 1px solid var(--line-dim); font-size: 15px;
}
.kv:last-of-type { border-bottom: 0; }
.kv span { color: var(--ink-3); }
.kv b { color: var(--gold-l); font-weight: 600; letter-spacing: .04em; }

.card, .tile { padding: 24px; display: flex; flex-direction: column; }
.card h3, .tile h3 { margin-bottom: 9px; color: var(--ink); }
.card p, .tile p { font-size: 15px; line-height: 1.66; color: var(--ink-2); }
.card-link { transition: border-color .25s, transform .25s var(--ease); }
.card-link:hover { border-color: var(--line-3); transform: translateY(-2px); }
.card .more, .tile .more {
  margin-top: auto; padding-top: 16px;
  font-family: "Barlow Semi Condensed", sans-serif; font-size: 13px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--gold);
}
.card-link:hover .more, .tile:hover .more { color: var(--gold-l); }
.tile-n { font-size: 10.5px; color: var(--gold-d); margin-bottom: 14px; }

.cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(250px,1fr)); }
.bento { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
.t-feat { grid-column: span 3; }
.t-nar  { grid-column: span 1; }
.t-feat .art {
  position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  width: min(190px, 26%); opacity: .5; z-index: 0;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,.8));
}
.t-feat > * { position: relative; z-index: 1; }
@media (max-width: 860px) {
  .bento { grid-template-columns: 1fr; }
  .t-feat, .t-nar { grid-column: span 1; }
  .t-feat .art { opacity: .22; }
}

/* ================================================================ NATIONS
   Two portraits cut straight out of the key art, framed like banners. */
.nations { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.nation {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 420px; padding: 26px;
  display: flex; flex-direction: column; justify-content: flex-end;
  border: 1px solid var(--line-2); border-radius: var(--r);
  box-shadow: var(--sink);
}
.nation img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%;
  transition: transform 1.1s var(--ease);
}
.nation:hover img { transform: scale(1.05); }
.nation::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10,8,6,.16) 0%, rgba(10,8,6,.70) 48%, rgba(10,8,6,.96) 100%);
}
.nation::after {
  content: ""; position: absolute; inset: 7px; pointer-events: none;
  border: 1px solid var(--line-dim);
}
.nation-human { border-color: rgba(217,135,60,.42); }
.nation-akkan { border-color: rgba(125,151,173,.42); }
.nation h3 {
  font-size: clamp(28px, 3vw, 38px); font-weight: 800; margin-bottom: 10px;
  color: var(--ink); text-shadow: 0 3px 0 rgba(0,0,0,.7);
}
.nation-human h3 { color: #f0c489; }
.nation-akkan h3 { color: #c3d7e6; }
.nation p { font-size: 15px; color: var(--ink-2); max-width: 36ch;
            text-shadow: 0 2px 8px rgba(0,0,0,.9); }
.nation .tally {
  margin-top: 15px; width: max-content;
  padding: 7px 14px; border: 1px solid var(--line-2); background: rgba(10,8,6,.72);
  font-family: "Barlow Semi Condensed", sans-serif;
  font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-l);
}
@media (max-width: 780px) { .nations { grid-template-columns: 1fr; } .nation { min-height: 330px; } }

/* ================================================================= TABLES */
.table-wrap { overflow-x: auto; }
table.data { min-width: 620px; }
table.data th {
  text-align: left; padding: 13px 16px; white-space: nowrap;
  font-size: 10.5px; color: var(--gold);
  background: linear-gradient(180deg, rgba(201,162,39,.13), rgba(201,162,39,.03));
  border-bottom: 1px solid var(--line-2);
}
table.data td {
  padding: 12px 16px; font-size: 15px; color: var(--ink-2);
  border-bottom: 1px solid var(--line-dim);
}
table.data tbody tr:nth-child(odd) { background: rgba(255,236,200,.022); }
table.data tbody tr:hover { background: rgba(201,162,39,.075); }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data .num { text-align: right; font-size: 15px; letter-spacing: .04em; }
table.data th.num { text-align: right; }

/* A hexagonal medal. Clipped rather than rotated, so the digit inside stays
   upright - rotating the box tilts its text with it. */
.rk {
  display: inline-grid; place-items: center; width: 28px; height: 30px;
  clip-path: polygon(50% 0%, 100% 26%, 100% 74%, 50% 100%, 0% 74%, 0% 26%);
  background: linear-gradient(160deg, #3a2f22, #1c1610);
  box-shadow: inset 0 0 0 1px rgba(201,162,39,.34);
  font-family: "Barlow Semi Condensed", sans-serif;
  font-size: 13px; font-weight: 600; color: var(--ink-2); line-height: 1;
}
.r1 .rk { background: linear-gradient(160deg,#fbeec2,#c9a227 62%,#8a6a1a); color:#2a1c02; }
.r2 .rk { background: linear-gradient(160deg,#f0f4f7,#96a3ae 62%,#5f6c77); color:#191d21; }
.r3 .rk { background: linear-gradient(160deg,#efbb8c,#a86234 62%,#6d3d1d); color:#241202; }
.r1 .rk, .r2 .rk, .r3 .rk { box-shadow: none; font-weight: 700; }

.tag {
  display: inline-block; padding: 3px 11px;
  border: 1px solid transparent; border-radius: var(--r-sm);
  font-family: "Barlow Semi Condensed", sans-serif;
  font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
}
.tag-human { background: rgba(217,135,60,.16); color: #efbf8a; border-color: rgba(217,135,60,.42); }
.tag-akkan { background: rgba(125,151,173,.18); color: #c3d7e6; border-color: rgba(125,151,173,.44); }
.tag-cyan  { background: rgba(201,162,39,.14); color: var(--gold-l); border-color: var(--line-2); }
.tag-gold  { background: rgba(201,162,39,.16); color: var(--gold-l); border-color: var(--line-2); }

.pager { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 18px; }
.pager a, .pager span:not(:empty) {
  font-family: "Barlow Semi Condensed", sans-serif; font-size: 14px;
  letter-spacing: .13em; text-transform: uppercase; color: var(--gold);
}
.pager a:hover { color: var(--gold-l); }

.tabs { display: flex; flex-wrap: wrap; gap: 0; margin-bottom: 16px;
        border: 1px solid var(--line-2); background: var(--sunk); width: max-content; max-width: 100%; }
.tabs a {
  padding: 10px 18px; border-right: 1px solid var(--line);
  font-family: "Barlow Semi Condensed", sans-serif;
  font-size: 14px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-2); transition: background .2s, color .2s;
}
.tabs a:last-child { border-right: 0; }
.tabs a:hover { color: var(--gold-l); background: rgba(201,162,39,.08); }
.tabs a.on {
  color: #1c1305;
  background: linear-gradient(180deg, #e8c67f, #c9a227);
  text-shadow: 0 1px 0 rgba(255,255,255,.25);
}

/* =================================================================== NEWS */
.news-hero { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); gap: 18px; }
.news-hero.one { grid-template-columns: 1fr; }
.news-side { display: grid; gap: 18px; align-content: start; }
.news-list { display: grid; gap: 18px; }

.news-item { display: block; padding: 22px; transition: border-color .25s, transform .25s var(--ease); }
.news-item:hover { border-color: var(--line-3); transform: translateY(-2px); }
.news-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 11px;
             font-size: 11px; color: var(--ink-3); }
.news-item h3 { margin-bottom: 8px; font-size: 21px; }
.news-item p:not(.news-meta) { font-size: 15px; line-height: 1.66; color: var(--ink-2); }
.news-big { min-height: 260px; display: flex; flex-direction: column; justify-content: flex-end; }
.news-big h3 { font-size: clamp(23px, 2.3vw, 30px); }
@media (max-width: 900px) { .news-hero { grid-template-columns: 1fr; } }

/* ============================================================== LIVE PANEL */
.console { padding: 0; overflow: hidden; }
.console-top {
  display: flex; align-items: center; gap: 10px; padding: 13px 16px;
  background: linear-gradient(180deg, rgba(201,162,39,.13), rgba(201,162,39,.03));
  border-bottom: 1px solid var(--line-2);
}
.console-top .dot { width: 8px; height: 8px; transform: rotate(45deg); background: var(--ink-4); flex: none; }
.console-top .dot.live { background: var(--good); }
.console-top .dot.dead { background: var(--bad); }
.console-top h2 { font-size: 11px; color: var(--gold); margin-right: auto; }
.console-top .badge {
  font-family: "Barlow Semi Condensed", sans-serif; font-size: 11px; letter-spacing: .14em;
  padding: 4px 9px; border: 1px solid var(--line); color: var(--ink-3);
}
.console-grid { display: grid; grid-template-columns: 1fr 1fr; }
.console-cell { padding: 15px 16px; border-right: 1px solid var(--line);
                border-bottom: 1px solid var(--line); }
.console-cell:nth-child(2n) { border-right: 0; }
.console-cell b {
  display: block; font-family: Eczar, serif; font-weight: 800; font-size: 27px;
  line-height: 1; color: var(--gold-l); margin-bottom: 7px;
}
.console-cell span { font-size: 10px; color: var(--ink-3); }
.console-list { display: grid; padding: 6px 10px; }
.console-row {
  display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: 11px;
  padding: 8px 6px; border-bottom: 1px solid var(--line-dim);
}
.console-row:last-child { border-bottom: 0; }
.console-row i {
  font-family: "Barlow Semi Condensed", sans-serif; font-style: normal;
  font-size: 12px; color: var(--ink-4); text-align: center;
}
.console-row:nth-child(1) i { color: var(--gold); }
.console-row b { font-size: 15px; font-weight: 600; color: var(--ink);
                 overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.console-row em {
  font-family: "Barlow Semi Condensed", sans-serif; font-style: normal;
  font-size: 14px; color: var(--gold-l);
}
.console-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 16px; border-top: 1px solid var(--line-2); background: var(--sunk);
  font-family: "Barlow Semi Condensed", sans-serif;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3);
}
.console-foot a { color: var(--gold); }
.console-foot a:hover { color: var(--gold-l); }

/* ================================================================= TICKER */
.ticker {
  border-block: 1px solid var(--line-2);
  background: linear-gradient(180deg, #15100c, #0c0907);
  overflow: hidden; padding: 11px 0;
  /* fade both ends so items do not appear to be sliced off at the edge */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.ticker-in { display: flex; width: max-content; animation: slide 46s linear infinite; }
.ticker:hover .ticker-in { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.ticker-in span {
  display: inline-flex; align-items: center; gap: 10px; padding: 0 24px;
  font-family: "Barlow Semi Condensed", sans-serif;
  font-size: 12.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-3); white-space: nowrap;
}
.ticker-in span b { color: var(--gold-l); }
.ticker-in span::after {
  content: ""; width: 5px; height: 5px; transform: rotate(45deg);
  background: var(--gold-d); margin-left: 14px;
}

/* ==================================================================== CTA */
.cta { padding: clamp(34px, 4.4vw, 56px) 28px; text-align: center; }
.cta h2 { font-size: clamp(28px, 3.8vw, 44px); margin-bottom: 12px; }
.cta p { max-width: 56ch; margin: 0 auto 24px; font-size: 17px; color: var(--ink-2); }
.cta .hero-cta { justify-content: center; }

/* ================================================================== FORMS */
.form { max-width: 460px; }
.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 8px; font-size: 10.5px; color: var(--gold); }
.field input, .field select, .field textarea {
  width: 100%; height: 48px; padding: 0 14px;
  background: var(--sunk); border: 1px solid var(--line-2); border-radius: var(--r-sm);
  color: var(--ink); font-family: Spectral, serif; font-size: 16px;
  box-shadow: inset 0 2px 6px rgba(0,0,0,.45);
  transition: border-color .2s, background .2s;
}
.field textarea { height: auto; min-height: 130px; padding: 13px 14px; resize: vertical; line-height: 1.65; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--line-3); background: rgba(0,0,0,.5);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-4); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-note, .hint { display: block; font-size: 13.5px; color: var(--ink-3); margin-top: 7px; line-height: 1.55; }
.form-foot { margin-top: 20px; font-size: 15px; color: var(--ink-3); }
.form-foot a { color: var(--gold); }
.form-foot a:hover { color: var(--gold-l); }

/* the emailed sign-up code, and the small actions under it (eykalzz add register kod email 23.9.2026) */
.field input.code-in {
  font-family: "Barlow Semi Condensed", sans-serif; font-weight: 600; font-size: 26px;
  letter-spacing: .55em; text-align: center; padding-left: calc(14px + .55em); color: var(--gold-l);
}
.inline-form { display: inline; }
.linkbtn {
  display: inline; padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; color: var(--gold);
}
.linkbtn:hover { color: var(--gold-l); }
.linkbtn[disabled] { color: var(--ink-3); cursor: default; }

.note {
  padding: 14px 17px; border: 1px solid var(--line-2); border-left-width: 3px;
  border-radius: var(--r-sm); background: var(--plate);
  font-size: 15px; line-height: 1.6; margin-bottom: 14px;
}
.note-ok    { border-left-color: var(--good); color: #cfe4c2; }
.note-error { border-left-color: var(--bad);  color: #f0c6c0; }
.note-warn  { border-left-color: var(--amber); color: #f2d5b0; }
.note-info  { border-left-color: var(--gold); color: #eddcb4; }
.flashes { padding-top: 20px; }
.empty { padding: 42px 20px; text-align: center; color: var(--ink-3); font-size: 15px; }

/* ================================================================ ACCOUNT */
.chars { display: grid; gap: 14px; }
.char { padding: 18px 20px; transition: border-color .25s; }
.char:hover { border-color: var(--line-3); }
.char-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.char-name { font-family: Eczar, serif; font-weight: 800; font-size: 20px; color: var(--ink); }
.char-lv {
  margin-left: auto; font-family: "Barlow Semi Condensed", sans-serif;
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3);
}
.char-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px,1fr));
             border-top: 1px solid var(--line-dim); }
.char-stat { padding: 11px 6px; border-right: 1px solid var(--line-dim); }
.char-stat:last-child { border-right: 0; }
.char-stat b { display: block; font-family: "Barlow Semi Condensed", sans-serif;
               font-size: 17px; font-weight: 600; color: var(--gold-l); margin-bottom: 3px; }
.char-stat span { font-size: 9.5px; color: var(--ink-4); }

/* ================================================================== PACKS */
.packs { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); }
.pack { padding: 24px 20px; text-align: center; transition: border-color .25s, transform .25s var(--ease); }
.pack:hover { border-color: var(--line-3); transform: translateY(-3px); }
.pack-bonus { position: absolute; top: 11px; right: 11px; z-index: 2; }
.pack-pts { font-family: Eczar, serif; font-weight: 800; font-size: 36px; line-height: 1;
            color: var(--gold-l); text-shadow: 0 2px 0 rgba(0,0,0,.6); margin-bottom: 6px; }
.pack-lbl { font-size: 10px; color: var(--ink-3); margin-bottom: 16px; }
.pack-price { font-family: Eczar, serif; font-size: 19px; color: var(--ink); margin-bottom: 16px; }

/* ================================================================= TOP UP
   eykalzz add topup toyyibpay 27.9.2026 - design A "pack cards" (shop.php) */
.tu-stats { margin-bottom: 26px; border-top: 1px solid var(--line-2); }
.tu-head  { margin-top: 40px; scroll-margin-top: calc(var(--hdr) + 18px); }

.tu-note p { font-size: 15.5px; line-height: 1.72; color: var(--ink-2); margin: 0 0 12px; }
.tu-note p:last-child { margin-bottom: 0; }
.tu-note b { color: var(--gold-l); font-weight: 600; }

.tu-packs { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0,1fr)); }
.tu-packs .pack { padding: 26px 18px 20px; }
.tu-packs .pack form + form, .tu-packs .pack form + .btn { margin-top: 8px; }
.tu-myr { font-family: Eczar, serif; font-weight: 800; font-size: 25px; line-height: 1; color: var(--ink); }
.tu-usd { font-family: "Barlow Semi Condensed", sans-serif; font-size: 13px; font-weight: 600;
          letter-spacing: .16em; color: var(--ink-3); margin: 7px 0 18px; }
.tu-below { margin-top: 14px; font-size: 14.5px; color: var(--ink-3); }
.tu-below a { color: var(--gold); }
.tu-below a:hover { color: var(--gold-l); }

.tu-two { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0,1fr)); }
.tu-two .card { padding: 22px 22px 18px; }
.tu-two .card p { font-size: 15px; margin: 0; }
.tu-two .card p + p { margin-top: 8px; }

.tu-top { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
.tu-top h3 { margin: 0; }
.tu-top .tag { margin-left: auto; }
.tu-mark { width: 10px; height: 10px; flex: none; transform: rotate(45deg); background: var(--gold); }
.tu-fpx     .tu-mark { background: #5ec4b6; box-shadow: 0 0 0 3px rgba(94,196,182,.18); }
.tu-pp      .tu-mark { background: #4aa8e8; box-shadow: 0 0 0 3px rgba(74,168,232,.18); }
.tu-wise    .tu-mark { background: #9fe870; box-shadow: 0 0 0 3px rgba(159,232,112,.18); }
.tu-hlb     .tu-mark { background: #e2403f; box-shadow: 0 0 0 3px rgba(226,64,63,.18); }
.tu-discord .tu-mark { background: #8c9eff; box-shadow: 0 0 0 3px rgba(140,158,255,.18); }
.tag-auto   { background: rgba(127,179,106,.14); color: #cfe4c2; border-color: rgba(127,179,106,.45); }
.tag-manual { background: rgba(217,135,60,.14);  color: #f2d5b0; border-color: rgba(217,135,60,.45); }

.tu-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 11px 0;
          border-bottom: 1px solid var(--line-dim); }
.tu-row:last-child { border-bottom: 0; padding-bottom: 0; }
.tu-row > span { width: 100%; font-family: "Barlow Semi Condensed", sans-serif; font-size: 10.5px;
                 font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
.tu-row > b { flex: 1; min-width: 0; font-family: "Barlow Semi Condensed", sans-serif; font-size: 16.5px;
              font-weight: 600; letter-spacing: .03em; color: var(--ink); overflow-wrap: anywhere; }
.tu-row > b.tu-big { font-size: 20px; letter-spacing: .05em; }
.tu-copy { flex: none; display: inline-flex; align-items: center; height: 30px; padding: 0 12px;
           border: 1px solid var(--line-3); border-radius: var(--r-sm); background: var(--plate-2);
           font-family: "Barlow Semi Condensed", sans-serif; font-size: 12px; font-weight: 600;
           letter-spacing: .14em; text-transform: uppercase; color: var(--gold-l); cursor: pointer; }
.tu-copy[hidden] { display: none; }
.tu-copy:hover { border-color: var(--gold); color: var(--gold-l); }
.tu-copy.is-done { color: var(--good); border-color: var(--good); }

.tu-steps { margin-top: 16px; }
.tu-steps ol { margin: 0; padding: 0; list-style: none; counter-reset: tu; display: grid; gap: 14px; }
.tu-steps li { counter-increment: tu; display: grid; grid-template-columns: 32px 1fr; gap: 13px;
               align-items: start; color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.tu-steps li::before { content: counter(tu); width: 30px; height: 32px; margin-top: -3px;
               display: grid; place-items: center;
               clip-path: polygon(50% 0%,100% 26%,100% 74%,50% 100%,0% 74%,0% 26%);
               background: linear-gradient(160deg,#fbeec2,#c9a227 62%,#8a6a1a); color: #2a1c02;
               font-family: "Barlow Semi Condensed", sans-serif; font-weight: 700; font-size: 14px; }
.tu-steps li b { color: var(--ink); font-weight: 600; }
.tu-steps code { font-family: "Barlow Semi Condensed", sans-serif; font-size: 15px; letter-spacing: .06em;
                 color: var(--gold-l); background: var(--sunk); border: 1px solid var(--line);
                 padding: 1px 7px; border-radius: 2px; }

@media (max-width: 860px) { .tu-packs { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 620px) { .tu-packs, .tu-two { grid-template-columns: 1fr; } }

/* ===================================================== STREAMERS / REFERRAL
   eykalzz add referral streamer 4.10.2026 - design B "console": an on-air
   board for Live Now, the drop code as letters on a screen with a ring for
   the time left, bars and ledgers for the numbers. streamers.php,
   partner.php, referral.php, redeem.php and the Live Now strip on index.php.
   Everything is prefixed sx- so it cannot collide with .console above. */

/* the signed-in account name in the bar: a long one is cut with an ellipsis */
.hdr-me { max-width: 160px; }
.hdr-me span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* the red dot after STREAMERS in the bar while somebody is live */
.nav-live { display: inline-block; width: 7px; height: 7px; margin-left: 7px; vertical-align: 2px;
            border-radius: 50%; background: #ff4d3d;
            box-shadow: 0 0 0 3px rgba(255,77,61,.22), 0 0 9px #ff4d3d; }

/* a platform: small lozenge in its own colour, then the name */
.sx-pf { display: inline-flex; align-items: center; gap: 7px; }
.sx-pf::before { content: ""; width: 8px; height: 8px; flex: none; transform: rotate(45deg);
                 background: var(--pc, var(--gold)); }
.sx-pf-tiktok   { --pc: #fe2c55; }
.sx-pf-youtube  { --pc: #ff3b30; }
.sx-pf-twitch   { --pc: #9b6bff; }
.sx-pf-facebook { --pc: #3b82f6; }

/* status chips */
.sx-st { display: inline-block; padding: 2px 9px; border: 1px solid; border-radius: 2px;
         font-family: "Barlow Semi Condensed", sans-serif; font-size: 11px; font-weight: 600;
         line-height: 1.6; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.sx-st-claimed { color: var(--ink-3); border-color: var(--line-dim); }
.sx-st-ready   { color: #d7f0c8; border-color: rgba(127,179,106,.6); background: rgba(127,179,106,.14); }
.sx-st-locked  { color: var(--ink-4); border-color: transparent; }
.sx-st-live    { color: #ffd9d3; border-color: rgba(201,73,59,.6); background: rgba(201,73,59,.16); }
.sx-st-off     { color: var(--ink-3); border-color: var(--line-dim); }
.btn.sx-claim  { --bh: 26px; padding: 0 10px; font-size: 11px; letter-spacing: .14em; }
/* copy buttons ship hidden and site.js shows them; .btn's display would otherwise win over [hidden] */
.btn[hidden]   { display: none; }

.sx-dot { width: 9px; height: 9px; flex: none; border-radius: 50%; background: #ff4d3d;
          box-shadow: 0 0 0 3px rgba(255,77,61,.22), 0 0 12px #ff4d3d; }

/* ---- the on-air board ---- */
.sx-air { position: relative; overflow: hidden; margin-bottom: 30px;
          background: var(--plate); border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: var(--sink); }
.sx-air-head { display: flex; align-items: center; gap: 12px; padding: 12px 18px;
               background: linear-gradient(90deg, rgba(201,73,59,.32), rgba(201,73,59,.06));
               border-bottom: 1px solid rgba(201,73,59,.5);
               font-family: "Barlow Semi Condensed", sans-serif; font-size: 12.5px; font-weight: 600;
               letter-spacing: .24em; text-transform: uppercase; color: #ffd9d3; }
.sx-air-head .sx-aside { margin-left: auto; color: var(--ink-3); letter-spacing: .16em; }
.sx-air.is-off .sx-air-head { background: linear-gradient(90deg, rgba(201,162,39,.12), rgba(201,162,39,.02));
                              border-bottom-color: var(--line-2); color: var(--gold); }
.sx-air.is-off .sx-dot { background: var(--ink-4); box-shadow: none; }
.sx-air-row { display: grid; grid-template-columns: 22px minmax(0,1.6fr) minmax(0,1fr) minmax(0,1fr) auto;
              align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line-dim); }
.sx-air-row:last-child { border-bottom: 0; }
.sx-air-name { font-family: Eczar, serif; font-weight: 700; font-size: 19px; line-height: 1.2; color: var(--ink);
               overflow-wrap: anywhere; }
.sx-air-meta { display: contents; }
.sx-air-plat { font-family: "Barlow Semi Condensed", sans-serif; font-size: 13px; font-weight: 600;
               letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.sx-air-time { font-family: "Barlow Semi Condensed", sans-serif; font-size: 18px; font-weight: 600;
               letter-spacing: .06em; color: var(--gold-l); }
.sx-air-empty { padding: 20px 18px; font-size: 15px; color: var(--ink-3); }

/* a dashed strip that points somewhere: "Got a drop code? Redeem" */
.sx-callout { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 16px;
              padding: 16px 18px; margin-bottom: 30px; border: 1px dashed var(--line-3); border-radius: var(--r-sm);
              background: rgba(201,162,39,.05); }
.sx-callout .kick { margin: 0; }
.sx-callout p { margin: 0; font-size: 15px; }

/* two plates side by side */
.sx-duo { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0,1fr)); margin-bottom: 20px; }
.sx-duo > .card { padding: 18px 20px; }
.sx-bigcode { font-family: "Barlow Semi Condensed", sans-serif; font-weight: 700; font-size: 40px; line-height: 1.05;
              letter-spacing: .16em; color: var(--gold-l); text-shadow: 0 0 16px rgba(201,162,39,.35);
              overflow-wrap: anywhere; }
.sx-bigcode.xl { font-size: 48px; }
.sx-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.sx-btns form { display: contents; }
.sx-sub { margin-top: 6px; font-size: 14.5px; color: var(--ink-3); overflow-wrap: anywhere; }

/* broadcast switch: OFF | LIVE */
.sx-sw { display: inline-grid; grid-template-columns: 1fr 1fr; width: 220px; max-width: 100%;
         border: 1px solid var(--line-2); margin-bottom: 14px; }
.sx-sw span { padding: 9px 0; text-align: center; font-family: "Barlow Semi Condensed", sans-serif;
              font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-4); }
.sx-sw span.is-on { background: var(--plate-2); color: var(--ink-2); box-shadow: inset 0 1px 0 rgba(255,236,200,.08); }
.sx-sw span.is-live { background: linear-gradient(180deg, #b9402f, #7b2117); color: #fff1ec;
                      box-shadow: inset 0 1px 0 rgba(255,255,255,.2); }
.sx-golive { display: flex; gap: 8px; }
.sx-golive input { flex: 1; min-width: 0; height: 44px; padding: 0 12px; background: var(--sunk);
                   border: 1px solid var(--line-2); border-radius: var(--r-sm); color: var(--ink);
                   font-family: Spectral, serif; font-size: 15px; }

/* the drop code console: a screen, and the time left as a ring */
.sx-console { position: relative; display: grid; grid-template-columns: minmax(0,1fr) 190px; overflow: hidden;
              margin-bottom: 20px; background: var(--plate); border: 1px solid var(--line-2);
              border-radius: var(--r); box-shadow: var(--sink); }
.sx-console.one { grid-template-columns: minmax(0,1fr); }
.sx-scr { min-width: 0; padding: 22px 24px;
          background: radial-gradient(120% 120% at 50% 0%, #14100c, #060504 70%);
          box-shadow: inset 0 0 0 1px rgba(201,162,39,.18), inset 0 12px 30px rgba(0,0,0,.8); }
.sx-scr .kick { margin: 0; }
.sx-cells { display: flex; gap: 7px; justify-content: center; margin: 16px 0 18px; }
.sx-cell { width: 58px; height: 76px; flex: none; display: grid; place-items: center;
           font-family: "Barlow Semi Condensed", sans-serif; font-weight: 700; font-size: 44px; line-height: 1;
           color: var(--gold-l); text-shadow: 0 0 14px rgba(201,162,39,.4);
           border: 1px solid var(--line-2); background: linear-gradient(180deg, #1b150f, #0b0907);
           box-shadow: inset 0 1px 0 rgba(255,236,200,.08); }
.sx-cell.sep { width: 26px; border: 0; background: none; box-shadow: none; color: var(--ink-4); }
.sx-meter { position: relative; height: 12px; border: 1px solid var(--line-2);
            background: repeating-linear-gradient(90deg, transparent 0 9px, rgba(0,0,0,.6) 9px 10px), #0a0806; }
.sx-meter b { position: absolute; left: 0; top: 0; bottom: 0;
              background: repeating-linear-gradient(90deg, var(--gold) 0 9px, transparent 9px 10px); }
.sx-mrow { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px;
           font-family: "Barlow Semi Condensed", sans-serif; font-size: 12px; font-weight: 600;
           letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.sx-scr .sx-btns { align-items: center; margin-top: 16px; }
.sx-scr .sx-btns .form-note { margin: 0 0 0 auto; }
.sx-scr-idle { padding: 18px 0 6px; text-align: center; }
.sx-scr-idle p { margin: 6px 0 0; color: var(--ink-3); font-size: 15px; }
.sx-ring { display: grid; place-items: center; align-content: center; gap: 10px; padding: 18px 10px;
           border-left: 1px solid var(--line-2); background: var(--plate-2); }
.sx-ring svg { width: 118px; height: 118px; }
.sx-ring .sx-ring-bar { transition: stroke-dashoffset .9s linear; }
.sx-ring span { font-family: "Barlow Semi Condensed", sans-serif; font-size: 11px; font-weight: 600;
                letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }

/* bars: players who reached each milestone */
.sx-bar { display: grid; grid-template-columns: 64px minmax(0,1fr) 52px; align-items: center; gap: 12px; margin: 10px 0;
          font-family: "Barlow Semi Condensed", sans-serif; font-size: 13px; font-weight: 600;
          letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.sx-bar i { position: relative; display: block; height: 10px; background: rgba(0,0,0,.4); border: 1px solid var(--line-dim); }
.sx-bar i b { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, var(--gold-d), var(--gold)); }
.sx-bar > b { text-align: right; font-size: 16px; color: var(--gold-l); }

/* milestone segments and the progress line above them */
.sx-prog { position: relative; height: 6px; margin: 4px 0 8px; background: #0a0806; border: 1px solid var(--line); }
.sx-prog b { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, var(--gold-d), var(--gold)); }
.sx-seg { display: grid; gap: 6px; grid-template-columns: repeat(auto-fit, minmax(170px,1fr)); }
.sx-seg > div { padding: 14px 14px 12px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--plate); }
.sx-seg > div.done  { border-color: var(--gold-d); background: linear-gradient(180deg, rgba(201,162,39,.16), rgba(201,162,39,.04)); }
.sx-seg > div.ready { border-color: rgba(127,179,106,.7); background: linear-gradient(180deg, rgba(127,179,106,.18), rgba(127,179,106,.04)); }
.sx-seg h4 { margin-bottom: 8px; font-family: "Barlow Semi Condensed", sans-serif; font-size: 12px; font-weight: 600;
             letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.sx-seg p { margin-bottom: 10px; font-family: Eczar, serif; font-weight: 700; font-size: 16px; line-height: 1.3; color: var(--ink); }

/* "send rewards to [character]  Claim all" */
.sx-claimbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin: 14px 0 0; }
.sx-claimbar .form-note { margin: 0; }
.sx-claimbar .sx-right { margin-left: auto; }
.sx-select { height: 40px; padding: 0 12px; background: var(--sunk); border: 1px solid var(--line-2);
             border-radius: var(--r-sm); color: var(--ink); font-family: Spectral, serif; font-size: 15px; }
.sx-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-bottom: 18px; }
.sx-pick .form-note { margin: 0; }

/* redeem: the code typed big, like it was on stream */
/* GM: partner applications and active partners on account.php
   eykalzz add gm partner panel 4.10.2026 */
.sx-app { padding: 18px 20px; margin-bottom: 14px; }
.sx-app-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 10px; }
.sx-app-name { font-family: Eczar, serif; font-weight: 700; font-size: 20px; line-height: 1.2; color: var(--ink); }
.sx-app-top .sx-aside { margin-left: auto; font-size: 13.5px; color: var(--ink-3); }
.sx-app .kv b { overflow-wrap: anywhere; text-align: right; }
.sx-app-acts { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; margin-top: 14px; }
.sx-app-acts .sx-golive input { height: 38px; font-size: 14.5px; }
.sx-revoke { display: flex; gap: 6px; justify-content: flex-end; align-items: center; }
.sx-revoke input { width: 130px; height: 28px; padding: 0 8px; background: var(--sunk); border: 1px solid var(--line-2);
                   border-radius: var(--r-sm); color: var(--ink); font-family: Spectral, serif; font-size: 13px; }

.field input.sx-code-in { height: 64px; text-align: center; text-transform: uppercase;
                          font-family: "Barlow Semi Condensed", sans-serif; font-weight: 700; font-size: 30px;
                          letter-spacing: .3em; padding-left: calc(14px + .3em); color: var(--gold-l); }
.sx-form-wide { max-width: none; }

@media (max-width: 760px) {
  .sx-app-acts { grid-template-columns: 1fr; }   /* eykalzz add gm partner panel 4.10.2026 */
  .sx-duo     { grid-template-columns: 1fr; }
  .sx-console { grid-template-columns: 1fr; }
  .sx-ring    { grid-template-columns: auto auto; justify-content: center; border-left: 0; border-top: 1px solid var(--line-2); }
  .sx-cells   { gap: 4px; }
  .sx-cell    { width: clamp(24px, 8.6vw, 58px); height: clamp(38px, 12vw, 76px); font-size: clamp(20px, 7vw, 44px); }
  .sx-cell.sep { width: 10px; }
  .sx-scr     { padding: 18px 16px; }
  .sx-mrow    { flex-wrap: wrap; }
  .sx-mrow span { white-space: nowrap; }
  .sx-mrow span:nth-child(2) { order: 3; flex-basis: 100%; text-align: center; white-space: normal; }
}
@media (max-width: 620px) {
  .sx-air-row  { grid-template-columns: 12px minmax(0,1fr) auto; gap: 6px 12px; padding: 12px 14px; }
  .sx-air-row > .sx-dot { grid-row: 1; }
  .sx-air-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; grid-column: 2; grid-row: 2; }
  .sx-air-row > .btn { grid-column: 3; grid-row: 1 / span 2; }
  .sx-air-head .sx-aside { display: none; }
  .sx-callout  { grid-template-columns: 1fr; }
  .sx-bigcode, .sx-bigcode.xl { font-size: 32px; }
  .sx-golive   { flex-direction: column; }
}

/* ================================================================= FOOTER */
.ftr {
  margin-top: clamp(44px, 6vw, 76px);
  border-top: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(10,8,6,.5), #080605);
}
.ftr-in { display: flex; flex-wrap: wrap; gap: 28px; align-items: center;
          justify-content: space-between; padding: 38px 0 26px; }
.ftr-brand { display: flex; align-items: center; gap: 15px; }
.ftr-name { font-family: Eczar, serif; font-weight: 800; font-size: 19px; color: var(--ink);
            letter-spacing: .03em; }
.ftr-motto { font-size: 11px; color: var(--ink-3); margin-top: 6px; }
.ftr-nav { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.ftr-nav a {
  font-family: "Barlow Semi Condensed", sans-serif; font-size: 14px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2);
}
.ftr-nav a:hover { color: var(--gold-l); }
.ftr-legal {
  display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between;
  padding: 16px 0 32px; border-top: 1px solid var(--line);
  font-family: "Barlow Semi Condensed", sans-serif;
  font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-4);
}
.ftr-legal a { color: var(--ink-3); }
.ftr-legal a:hover { color: var(--gold); }

/* ============================================================== BEHAVIOUR */
@media (prefers-reduced-motion: reduce) {
  .ticker-in { animation: none; }
  .nation img { transition: none; }
  .card-link, .news-item, .pack, .btn { transition: none; }
}

/* ============================================================= RESPONSIVE */
/* The top bar is full below this width: tighter links, Discord as an icon
   only. eykalzz add discord navbar 4.10.2026
   1180 -> 1360, and links never wrap: with STREAMERS in the bar the burger
   takes over at 1180px, so the tight bar now covers 1181-1360px - wide
   enough for the longest account name (20 characters) when signed in.
   eykalzz add referral streamer 4.10.2026 */
.nav a { white-space: nowrap; }
/* @media (max-width: 1180px) { */
@media (max-width: 1360px) {
  .nav a             { padding: 9px 11px; }
  .nav a.nav-dc      { margin-left: 8px; padding: 0 9px; }
  .nav a.nav-dc span { display: none; }
}
@media (max-width: 1040px) {
  .page-grid { grid-template-columns: 1fr; }
  .page-side { position: static; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); }
}
/* Was 980px; below 1020px the bar no longer fits and TOP UP wrapped onto two
   lines. Keep in step with the matchMedia in site.js.
   eykalzz add discord navbar 4.10.2026
   1020 -> 1180: STREAMERS joined the bar; below about 1110px it and TOP UP
   wrapped onto two lines, and a signed-in account name needs more room
   still. eykalzz add referral streamer 4.10.2026 */
/* @media (max-width: 1020px) { */
@media (max-width: 1180px) {
  .nav, .hdr-act { display: none; }
  .burger        { display: grid; }
}
@media (max-width: 620px) {
  :root { --hdr: 62px; }
  /* deliberately no min-height here: a vh-based minimum outranks the
     max-height above, and the hero would grow to fill a tall phone */
  .hero-cta .btn   { flex: 1 1 100%; }
  .field-row       { grid-template-columns: 1fr; }
  .ftr-in          { flex-direction: column; align-items: flex-start; }
  .brand-b         { font-size: 17px; }
  .news-item       { padding: 18px; }
  .card, .tile     { padding: 20px; }
}
