/* ==========================================================================
   MugenMUD: Crimson Protocol. Bright, hand-written, a little bit 1998.
   ========================================================================== */

:root {
  --bg: #fff6e0;
  --bg-2: #fdebc4;
  --surface: #ffffff;
  --ink: #1a1033;
  --ink-2: #4a4063;
  --ink-3: #7c7395;
  --line: #e9dcbc;
  --line-2: #d5c49b;

  --crimson: #d7263d;
  --crimson-ink: #a3142a;
  --crimson-tint: #ffe0e4;
  --sun: #ffc93c;
  --sun-tint: #fff1c2;
  --sky: #2f6bff;
  --sky-ink: #1d47c4;
  --sky-tint: #e1e9ff;
  --mint: #10b981;
  --mint-ink: #04795a;
  --mint-tint: #d6f7ea;
  --grape: #8b3dff;
  --grape-tint: #efe3ff;
  --pink: #ff4fa3;
  --term: #0d0a1a;

  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-pixel: "Press Start 2P", "VT323", ui-monospace, monospace;
  --font-term: "VT323", ui-monospace, "Cascadia Code", Consolas, monospace;
  --font-mono: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;

  --r-sm: 8px;
  --r: 14px;
  --shadow-pop: 4px 4px 0 var(--ink);
  --shadow-pop-lg: 7px 7px 0 var(--ink);
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 36px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --rainbow: linear-gradient(90deg, #d7263d, #ff7a1a, #ffc93c, #10b981, #2f6bff, #8b3dff, #ff4fa3, #d7263d);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  color: var(--ink);
  font: 400 17px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* the GeoCities tiled background, cream edition: tiny pixel stars and plus-signs */
  background-color: var(--bg);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' shape-rendering='crispEdges'%3E%3Cg fill='%23f2c46b' opacity='.55'%3E%3Crect x='8' y='10' width='2' height='6'/%3E%3Crect x='6' y='12' width='6' height='2'/%3E%3Crect x='44' y='40' width='2' height='2'/%3E%3Crect x='42' y='42' width='2' height='2'/%3E%3Crect x='46' y='42' width='2' height='2'/%3E%3Crect x='44' y='44' width='2' height='2'/%3E%3C/g%3E%3Cg fill='%23e88b9a' opacity='.35'%3E%3Crect x='30' y='22' width='2' height='2'/%3E%3Crect x='56' y='6' width='2' height='2'/%3E%3Crect x='18' y='52' width='2' height='2'/%3E%3C/g%3E%3C/svg%3E");
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--sky-ink); text-underline-offset: 3px; }
a:hover { color: var(--crimson); }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(2.4rem, 6.2vw, 4.8rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.8rem, 3.8vw, 2.9rem); letter-spacing: -.03em; }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); font-weight: 600; }
p { margin: 0 0 1em; }
::selection { background: var(--sun); color: var(--ink); }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 4px; }
.mono { font-family: var(--font-mono); }
.fine { font-size: .86rem; color: var(--ink-3); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------- live bar (every page) ---------- */
.livebar { background: var(--ink); color: #fff; font-size: .82rem; }
.livebar-in { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding-top: 7px; padding-bottom: 7px; }
.live-pill { display: inline-flex; align-items: center; gap: 7px; font: 400 .62rem/1 var(--font-pixel); letter-spacing: .04em;
  background: var(--crimson); padding: 6px 9px 5px; border-radius: 4px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #5dff9b; box-shadow: 0 0 0 0 rgba(93, 255, 155, .7); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(93,255,155,.7); } 70% { box-shadow: 0 0 0 8px rgba(93,255,155,0); } 100% { box-shadow: 0 0 0 0 rgba(93,255,155,0); } }
.live-addr { letter-spacing: .06em; font-weight: 600; }
.live-addr a { color: var(--sun); font-weight: 700; letter-spacing: 0; }
.live-addr b { color: var(--sun); letter-spacing: 0; }
.live-copy { background: transparent; border: 1px solid rgba(255,255,255,.35); border-radius: 4px; padding: 2px 9px; font-size: .75rem; color: #fff; }
.live-copy:hover { border-color: var(--sun); color: var(--sun); }
.live-copy.ok { border-color: #5dff9b; color: #5dff9b; }
.live-discord { margin-left: auto; color: #c9c2ff; font-weight: 600; text-decoration: none; }
.live-discord:hover { color: #fff; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 50; background: rgba(255, 246, 224, .93); backdrop-filter: blur(8px); }
.top-in { display: flex; align-items: center; gap: 20px; min-height: 66px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; background: var(--crimson); color: #fff;
  font: 400 1.05rem/1 var(--font-pixel); border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); border-radius: 6px; padding-top: 3px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font: 800 1.35rem/1 var(--font-display); letter-spacing: -.03em; }
.brand-sub { font: 400 .52rem/1 var(--font-pixel); color: var(--crimson); margin-top: 6px; letter-spacing: .06em; text-transform: uppercase; }
.nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 2px; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .92rem; padding: 7px 11px; border-radius: 6px; }
.nav a:hover { background: var(--sun-tint); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--ink); color: var(--sun); }
.menu { display: none; margin-left: auto; background: var(--surface); border: 2px solid var(--ink); border-radius: 6px; padding: 6px 12px;
  font-weight: 700; box-shadow: 3px 3px 0 var(--ink); }
.rainbow { height: 5px; background: var(--rainbow); background-size: 200% 100%; animation: slide 8s linear infinite; }
@keyframes slide { to { background-position: -200% 0; } }

@media (max-width: 960px) {
  .menu { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; background: var(--bg);
    border-bottom: 3px solid var(--ink); padding: 8px var(--gutter) 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 11px 12px; font-size: 1rem; }
  .live-discord { margin-left: 0; }
}

/* ---------- ticker (a marquee without the <marquee>) ---------- */
.ticker { overflow: hidden; background: var(--sun); border-bottom: 2px solid var(--ink); white-space: nowrap; }
.ticker-track { display: inline-flex; gap: 48px; padding: 8px 0 7px; animation: tick 60s linear infinite; font: 400 .62rem/1.4 var(--font-pixel); color: var(--ink); }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- sections and type ---------- */
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section-tight { padding: clamp(32px, 5vw, 56px) 0; }
.eyebrow { font: 400 .62rem/1.5 var(--font-pixel); text-transform: uppercase; letter-spacing: .06em; color: var(--crimson); margin: 0 0 16px; }
.lede { font-size: clamp(1.06rem, 1.5vw, 1.22rem); color: var(--ink-2); max-width: 64ch; }
.pixel-h { font-family: var(--font-pixel); font-weight: 400; letter-spacing: 0; line-height: 1.35; font-size: clamp(1rem, 2.4vw, 1.5rem); }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }
.hl { background: linear-gradient(transparent 58%, var(--sun) 58%, var(--sun) 92%, transparent 92%); padding: 0 .08em; }
.hl-red { color: var(--crimson); }
.strike { text-decoration: line-through; text-decoration-thickness: .12em; text-decoration-color: var(--crimson); color: var(--ink-3); }
.blink { animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.band { background: var(--surface); border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); }
.band-ink { background: var(--ink); color: #f3eefe; }
.band-ink .lede { color: #cfc7ea; }
.band-ink a { color: var(--sun); }

.page-head { padding: clamp(40px, 6vw, 72px) 0 clamp(20px, 3vw, 32px); }
.page-head h1 { max-width: 18ch; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 8px; font-weight: 700; text-decoration: none;
  border: 2px solid var(--ink); box-shadow: var(--shadow-pop); transition: transform .12s var(--ease), box-shadow .12s var(--ease); background: var(--surface); color: var(--ink); }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); color: var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn-red { background: var(--crimson); color: #fff; }
.btn-red:hover { color: #fff; }
.btn-discord { background: #5865f2; color: #fff; }
.btn-discord:hover { color: #fff; }
.btn-dl { background: var(--mint); color: #fff; flex-direction: column; align-items: flex-start; gap: 2px; }
.btn-dl:hover { color: #fff; }
.btn-dl small { font: 400 .78rem/1.2 var(--font-mono); opacity: .9; }
.btn-soon { display: inline-flex; padding: 12px 18px; border-radius: 8px; border: 2px dashed var(--ink-3); color: var(--ink-3); font-weight: 600; background: repeating-linear-gradient(-45deg, transparent 0 10px, rgba(255, 201, 60, .25) 10px 20px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---------- hero ---------- */
.hero { padding: clamp(36px, 6vw, 72px) 0 clamp(40px, 6vw, 80px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.hero h1 { margin-bottom: .35em; }
.hero h1 .sub { display: block; font: 400 clamp(.75rem, 1.6vw, 1rem)/1.6 var(--font-pixel); letter-spacing: .02em; color: var(--crimson); margin-top: 16px; }
.hero .lede { margin-bottom: 26px; }
.hero-art { margin-top: 18px; border: 3px solid var(--ink); border-radius: var(--r); box-shadow: var(--shadow-pop-lg); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* ---------- Win95-style window + terminal ---------- */
.win { background: #c9c3d8; border: 3px solid var(--ink); border-radius: 10px; box-shadow: var(--shadow-pop-lg); overflow: hidden; }
.win-bar { display: flex; align-items: center; gap: 8px; padding: 7px 10px; background: linear-gradient(90deg, var(--crimson), var(--grape)); color: #fff;
  font: 400 .58rem/1 var(--font-pixel); letter-spacing: .03em; }
.win-bar .t { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.win-btns { display: flex; gap: 4px; }
.win-btns i { width: 15px; height: 14px; background: #e8e3f3; border: 1px solid var(--ink); display: block; }
.term { background: var(--term); color: #c8c8c8; font: 400 1.22rem/1.15 var(--font-term); padding: 16px 18px 18px; min-height: 340px; overflow: hidden; white-space: pre-wrap; word-break: break-word; }
.term .r { color: #ff5f6d; } .term .y { color: #ffe066; } .term .g { color: #6dff9b; } .term .c { color: #6de9ff; }
.term .m { color: #ff8cf3; } .term .w { color: #fff; } .term .b { color: #7aa2ff; } .term .dim { color: #8a86a0; }
.term .cursor { display: inline-block; width: .55em; background: #c8c8c8; animation: blink 1s steps(1) infinite; }

/* ---------- cards and grids ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 2px solid var(--ink); border-radius: var(--r); padding: 20px 20px 18px; box-shadow: var(--shadow-pop); min-width: 0; }
.card h3 { margin: 0; }
.card p { color: var(--ink-2); font-size: .96rem; }
.card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-bottom: 12px; }
.card-head .exp { margin-left: auto; font: 400 .56rem/1 var(--font-pixel); background: var(--ink); color: var(--sun); padding: 6px 7px 5px; border-radius: 4px; white-space: nowrap; }
.card-icon { font-size: 1.8rem; line-height: 1; margin-bottom: 10px; }
.card-sun { background: var(--sun-tint); }
.card-red { background: var(--crimson-tint); }
.card-sky { background: var(--sky-tint); }
.card-mint { background: var(--mint-tint); }
.card-grape { background: var(--grape-tint); }
.badge { font: 400 .5rem/1 var(--font-pixel); padding: 5px 6px 4px; border-radius: 3px; border: 1.5px solid var(--ink); }
.badge-new { background: var(--sun); animation: blink 1.4s steps(1) infinite; }
.badge-re { background: var(--grape-tint); color: var(--grape); }
.chips { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font-size: .78rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--sky-tint); color: var(--sky-ink); border: 1px solid rgba(29, 71, 196, .25); }
.chips li.none { background: var(--bg-2); color: var(--ink-3); border-color: var(--line-2); }

/* race stat bars: track is 0..210 (the Troll's max Strength) */
.stats { display: grid; gap: 5px; margin-top: 4px; }
.stat { display: grid; grid-template-columns: 34px 1fr 62px; align-items: center; gap: 8px; font-size: .78rem; }
.stat-k { font: 400 .52rem/1 var(--font-pixel); color: var(--ink-2); }
.stat-bar { position: relative; height: 10px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 3px; overflow: hidden; }
.stat-bar i { position: absolute; top: 0; bottom: 0; left: calc(var(--lo) / 210 * 100%); width: calc((var(--hi) - var(--lo)) / 210 * 100%);
  background: linear-gradient(90deg, var(--sun), var(--crimson)); }
.stat-v { font-family: var(--font-mono); color: var(--ink-3); text-align: right; font-size: .76rem; }

.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(88px, 1fr)); gap: 8px; margin: 6px 0 0; }
.kv div { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 6px 9px; }
.kv dt { font: 400 .5rem/1.4 var(--font-pixel); color: var(--ink-3); text-transform: uppercase; }
.kv dd { margin: 3px 0 0; font-weight: 700; font-size: .9rem; }

.arch { margin-bottom: clamp(36px, 5vw, 60px); }
.arch-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 3px dashed var(--line-2); }
.arch-head h2 { margin: 0; color: var(--crimson); }
.arch-head p { margin: 0; color: var(--ink-2); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border: 2px solid var(--ink); border-radius: var(--r); box-shadow: var(--shadow-pop); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font: 400 .56rem/1.5 var(--font-pixel); background: var(--ink); color: var(--sun); text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) td { background: #fffbf0; }
td.was { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--crimson); }
td.now { font-weight: 700; }

/* ---------- rules ---------- */
.rules { counter-reset: none; display: grid; gap: 18px; }
.rule { display: grid; grid-template-columns: 64px 1fr; gap: 18px; background: var(--surface); border: 2px solid var(--ink); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow-pop); }
.rule-n { display: grid; place-items: center; align-self: start; width: 64px; height: 64px; border: 2px solid var(--ink); border-radius: 10px; background: var(--sun); font-size: 1.8rem; position: relative; }
.rule-n small { position: absolute; bottom: -9px; right: -9px; font: 400 .55rem/1 var(--font-pixel); background: var(--ink); color: #fff; padding: 5px 6px 4px; border-radius: 4px; }
.rule h2 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); margin-bottom: .4em; }
.rule p:last-child { margin-bottom: 0; }
.rule .cmd { font: 400 1.1rem/1 var(--font-term); background: var(--term); color: #6dff9b; padding: 1px 7px 2px; border-radius: 4px; white-space: nowrap; }
@media (max-width: 560px) { .rule { grid-template-columns: 1fr; } .rule-n { width: 54px; height: 54px; } }
.cmd { font: 400 1.05rem/1 var(--font-term); background: var(--term); color: #6dff9b; padding: 1px 7px 2px; border-radius: 4px; white-space: nowrap; }

.contracts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 760px) { .contracts { grid-template-columns: 1fr; } }
.contract { border: 3px solid var(--ink); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow-pop-lg); }
.contract h3 { font-family: var(--font-pixel); font-weight: 400; font-size: .85rem; line-height: 1.5; }
.contract-pve { background: var(--mint-tint); }
.contract-pvp { background: repeating-linear-gradient(-45deg, var(--crimson-tint) 0 18px, #fff 18px 36px); }
.contract ul { margin: 0; padding-left: 1.2em; }

/* ---------- steps (setup instructions) ---------- */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 12px; }
.steps li { counter-increment: step; position: relative; padding: 14px 16px 14px 62px; background: var(--surface); border: 2px solid var(--ink); border-radius: 10px; }
.steps li::before { content: counter(step); position: absolute; left: 12px; top: 12px; width: 34px; height: 34px; display: grid; place-items: center;
  background: var(--crimson); color: #fff; font: 400 .7rem/1 var(--font-pixel); border-radius: 6px; padding-top: 2px; }
.steps code, p code, li code, td code { font: 500 .88em/1 var(--font-mono); background: var(--bg-2); border: 1px solid var(--line-2); padding: 2px 6px; border-radius: 4px; word-break: break-word; }

.note { border: 2px dashed var(--ink-3); border-radius: var(--r); padding: 16px 18px; background: var(--sun-tint); }
.note strong:first-child { font-family: var(--font-pixel); font-weight: 400; font-size: .62rem; letter-spacing: .03em; display: block; margin-bottom: 6px; color: var(--crimson); }

/* ---------- construction tape ---------- */
.tape { height: 22px; background: repeating-linear-gradient(-45deg, var(--sun) 0 18px, var(--ink) 18px 36px); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }

/* ---------- lore ---------- */
.scroll { background: #fffdf6; border: 2px solid var(--ink); border-radius: var(--r); padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow-pop-lg); max-width: 760px; }
.scroll p { font-size: 1.05rem; }
.scroll p:first-of-type::first-letter { float: left; font: 800 3.6rem/.85 var(--font-display); color: var(--crimson); padding: 6px 8px 0 0; }
.powers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 860px) { .powers { grid-template-columns: 1fr; } }
.power { border: 2px solid var(--ink); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow-pop); }
.power-light { background: linear-gradient(160deg, #fffbe6, #ffeeb0); }
.power-balance { background: linear-gradient(160deg, #f1f5ff, #d9e3ff); }
.power-dark { background: linear-gradient(160deg, #f6eefe, #e3d1ff); }
.power .glyph { font-size: 2.2rem; line-height: 1; margin-bottom: 8px; }
.power dl { margin: 12px 0 0; font-size: .9rem; }
.power dt { font: 400 .5rem/1.5 var(--font-pixel); color: var(--ink-3); text-transform: uppercase; margin-top: 8px; }
.power dd { margin: 2px 0 0; font-weight: 600; }
.figure { border: 3px solid var(--ink); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-pop-lg); background: var(--term); }
.figure img { width: 100%; image-rendering: pixelated; }
.figcap { font-size: .85rem; color: var(--ink-3); margin-top: 10px; }
.whisper { font: 400 1.5rem/1.3 var(--font-term); color: #6de9ff; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ---------- feature list ---------- */
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: "\2605"; position: absolute; left: 0; top: 0; color: var(--crimson); font-size: 1.05rem; }

/* ---------- CTA ---------- */
.cta { text-align: center; }
.cta h2 { max-width: 20ch; margin-left: auto; margin-right: auto; }
.cta .btn-row { justify-content: center; }
.connect-box { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 16px; margin: 6px 0 24px;
  font: 400 1.7rem/1.1 var(--font-term); background: var(--term); color: #6dff9b; border: 3px solid var(--ink); border-radius: 10px; padding: 12px 20px; box-shadow: var(--shadow-pop); }
.connect-box .y { color: var(--sun); }

/* ---------- footer ---------- */
.foot { margin-top: 0; background: var(--surface); }
.foot .wrap { padding-top: 34px; padding-bottom: 34px; }
.buttons88 { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.b88 { width: 88px; height: 31px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-decoration: none; border: 2px outset #e6e0f0;
  font: 400 .42rem/1.25 var(--font-pixel); color: #fff; }
.b88 b { font-size: .58rem; font-weight: 400; }
.b88:hover { filter: brightness(1.12); color: #fff; }
.b88-live { background: linear-gradient(#ff5f6d, #a3142a); }
.b88-ansi { background: #000; color: #6dff9b; }
.b88-discord { background: linear-gradient(#7984ff, #3c46c9); }
.b88-pve { background: linear-gradient(#36d399, #04795a); }
.b88-mega { background: linear-gradient(#ffd966, #e09a00); color: var(--ink); }
.b88-mega:hover { color: var(--ink); }
.b88-s3 { background: linear-gradient(#b07bff, #5c1fcf); }
.foot-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-brand { font: 800 1.3rem/1 var(--font-display); margin-bottom: 8px; }
.foot-brand span { color: var(--crimson); font-weight: 600; font-size: 1rem; }
.foot-addr { color: var(--mint-ink); font-weight: 700; }
.foot-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; }
.foot-nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .92rem; }
.foot-nav a:hover { color: var(--crimson); }
.foot-nav a[aria-current="page"] { color: var(--crimson); }
.webring { border: 2px ridge #d5c49b; padding: 12px 14px; background: var(--bg); text-align: center; }
.webring p { margin: 0 0 6px; }
.webring-title { font: 400 .55rem/1.5 var(--font-pixel); color: var(--crimson); }
.legal { margin: 26px 0 0; font-size: .78rem; color: var(--ink-3); max-width: 90ch; }

/* ---------- 404 ---------- */
.lost { min-height: 50vh; display: grid; place-items: center; text-align: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .ticker-track { white-space: normal; }
}

/* ---------- art ---------- */
img.figure { width: 100%; border: 3px solid var(--ink); border-radius: var(--r); box-shadow: var(--shadow-pop-lg); background: var(--bg-2); margin-bottom: 22px; }
img.banner { aspect-ratio: 12 / 5; object-fit: cover; }
img.banner-races { object-position: 50% 72%; }
img.banner-classes { object-position: 50% 82%; }
img.narrow { max-width: 760px; margin-left: auto; margin-right: auto; }
.card.race { padding-top: 0; overflow: hidden; }
.card.race .portrait { display: block; width: calc(100% + 40px); max-width: none; margin: 0 -20px 16px; aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 22%;
  border-bottom: 2px solid var(--ink); background: var(--sun-tint); }
.card.race .card-head { margin-top: 2px; }
.hero-stack { position: relative; }
.hero-stack .hero-pic { display: block; width: 100%; border: 3px solid var(--ink); border-radius: var(--r); box-shadow: var(--shadow-pop-lg); }
.hero-stack .win { margin: -70px -14px 0 44px; position: relative; }
.hero-stack .term { min-height: 0; font-size: 1.12rem; }
@media (max-width: 900px) { .hero-stack .win { margin: -40px 0 0 18px; } }
.over-win { position: relative; margin: -60px 0 0 36px; }
@media (max-width: 860px) { .over-win { margin: -36px 0 0 14px; } }
.mascot { width: min(260px, 70%); height: auto; margin: 20px 0 0; image-rendering: auto; filter: drop-shadow(4px 4px 0 rgba(26, 16, 51, .18)); }
.lost .mascot { margin: 26px auto 0; }
.term { margin: 0; }
.band-ink .btn { color: var(--ink); }
.band-ink .btn-red, .band-ink .btn-discord { color: #fff; }
