/* =============================================================================
   Mana Rain website - dark fantasy theme
   Self-contained (no external fonts/CDNs: CSP is 'self' only).
   ========================================================================== */
:root {
  --bg: #0d0b0a;
  --bg-2: #15110e;
  --panel: #1c1712;
  --panel-2: #241d16;
  --line: #3a2e22;
  --line-gold: #6b5330;
  --text: #e8dcc4;
  --muted: #a89880;
  --faint: #7a6c58;
  --gold: #d4a64a;
  --gold-2: #f0c96b;
  --ember: #c4502e;
  --blood: #8f2a22;
  --ok: #6fae5c;
  --warn: #d59b3a;
  --bad: #d0574a;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --serif: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 50% -200px, rgba(212, 166, 74, 0.10), transparent 70%),
    linear-gradient(180deg, var(--bg-2), var(--bg) 480px);
  background-color: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--gold-2); text-decoration: none; }
a:hover { color: #fff1c9; text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--serif); color: #f3e6c8; line-height: 1.2; margin: 0 0 .5em; letter-spacing: .01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
code, kbd { font-family: ui-monospace, Consolas, monospace; background: #0008; padding: .1em .35em; border-radius: 4px; }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ------------------------------------------------------------------ header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(180deg, rgba(13, 11, 10, .97), rgba(13, 11, 10, .88));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.site-header .bar { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--serif); font-size: 1.5rem; font-weight: 700; }
.brand:hover { text-decoration: none; color: #fff; }
.brand img { width: 40px; height: 40px; }
.brand span b { color: var(--gold); }
.nav { display: flex; gap: 4px; margin-left: 8px; flex-wrap: wrap; }
.nav a { color: var(--muted); padding: 8px 12px; border-radius: 8px; font-weight: 600; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold-2); background: #ffffff08; text-decoration: none; }
.header-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.theme-toggle { margin-left: 4px; width: 36px; height: 36px; flex: none; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--gold-2); font-size: 1.15rem; line-height: 1; cursor: pointer; }   /* Session 43: Moon / Sun, top right */
.theme-toggle:hover { border-color: var(--gold); }
.menu-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 6px 10px; font-size: 1.2rem; }
@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .nav, .header-actions { display: none; width: 100%; }
  .site-header.open .bar { flex-wrap: wrap; padding-bottom: 12px; }
  .site-header.open .nav { display: flex; flex-direction: column; margin: 0; }
  .site-header.open .header-actions { display: flex; margin: 0; }
}

/* ------------------------------------------------------------------ buttons & forms */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 8px; border: 1px solid var(--line-gold);
  background: linear-gradient(180deg, #2c2318, #1e1812); color: var(--text);
  font-weight: 700; font-size: .95rem; cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn:hover { border-color: var(--gold); color: #fff; text-decoration: none; }
.btn-primary {
  background: linear-gradient(180deg, #e3b659, #b8862f); color: #1d1408; border-color: #f0c96b;
  box-shadow: 0 0 0 1px #0006, 0 6px 20px rgba(212, 166, 74, .25);
}
.btn-primary:hover { color: #000; filter: brightness(1.08); }
.btn-danger { background: linear-gradient(180deg, #a3362b, #7a2219); border-color: #c4502e; color: #fff; }
.btn-ghost { background: transparent; }
.btn-sm { padding: 6px 12px; font-size: .85rem; }
.btn-lg { padding: 14px 26px; font-size: 1.05rem; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; color: #e9dcc0; }
.field .hint { color: var(--faint); font-size: .85rem; }
.field .error { color: var(--bad); font-size: .875rem; min-height: 0; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], select, textarea {
  width: 100%; background: #0f0c0a; color: var(--text); border: 1px solid var(--line);
  border-radius: 8px; padding: 10px 12px; font: inherit;
}
input:focus, select:focus, textarea:focus, .btn:focus-visible, a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-color: var(--gold); }
textarea { min-height: 220px; resize: vertical; font-family: ui-monospace, Consolas, monospace; font-size: .92rem; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--bad); }
.check { display: flex; gap: 10px; align-items: flex-start; }
.check input { margin-top: 5px; accent-color: var(--gold); }
.radio-row { display: flex; gap: 18px; }
.radio-row label { font-weight: 500; display: flex; gap: 6px; align-items: center; }

/* ------------------------------------------------------------------ panels */
.panel {
  background: linear-gradient(180deg, var(--panel), #17130f);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 24px; position: relative;
}
.panel::before { /* gilded top edge */
  content: ""; position: absolute; inset: 0 12px auto 12px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .5;
}
.panel h2, .panel h3 { margin-top: 0; }
.notice { border: 1px solid var(--line-gold); background: #2a2012; padding: 12px 16px; border-radius: 8px; }
.notice.error { border-color: #7a2d24; background: #2a1411; color: #f1c1b9; }
.notice.success { border-color: #3f6a34; background: #15230f; color: #cfe8c3; }
.notice.warn { border-color: #7a5a24; background: #2a2011; }

.section { padding: 56px 0; }
.section-title { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.section-title h2 { margin: 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .75rem; color: var(--gold); font-weight: 700; margin-bottom: 6px; }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--line-gold), transparent); margin: 8px 0 0; border: 0; }

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative; overflow: hidden; border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(10, 8, 7, .96) 0%, rgba(10, 8, 7, .75) 45%, rgba(10, 8, 7, .35) 100%),
    var(--hero-image, radial-gradient(900px 500px at 80% 40%, #3b2a17, #120e0b 70%));
  background-size: cover; background-position: center;
}
.hero .container { padding: 88px 0 72px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero h1 { margin-bottom: 14px; text-shadow: 0 2px 20px #000; }
.hero h1 em { font-style: normal; color: var(--gold-2); }
.hero .lead { font-size: 1.15rem; color: #d9cbb0; max-width: 56ch; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero-art { justify-self: center; width: min(360px, 100%); aspect-ratio: 1; display: grid; place-items: center; }
.hero-art img { image-rendering: pixelated; filter: drop-shadow(0 20px 30px #000c); }
.hero-art.scene { width: min(560px, 100%); aspect-ratio: auto; justify-self: end; position: relative; }
.hero-art.scene img {
  image-rendering: auto; width: 100%; height: auto; border-radius: 14px;
  border: 2px solid var(--line-gold); filter: none;
  box-shadow: 0 0 0 1px #0008, 0 0 40px rgba(212, 166, 74, .18), 0 24px 50px rgba(0, 0, 0, .7);
}
.hero-art.scene::after { /* soft gold inner glow on the frame */
  content: ""; position: absolute; inset: 0; border-radius: 14px; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(240, 201, 107, .35), inset 0 -40px 60px rgba(13, 11, 10, .25);
}
@media (max-width: 860px) { .hero .container { grid-template-columns: 1fr; padding: 56px 0; } .hero-art { display: none; } .hero-art.scene { display: block; justify-self: center; } }

.status-strip { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; color: var(--muted); font-size: .95rem; }
.status-strip .item { display: flex; align-items: center; gap: 8px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--faint); box-shadow: 0 0 0 3px #ffffff0d; }
.dot.up { background: var(--ok); box-shadow: 0 0 12px #6fae5c99; }
.dot.down { background: var(--bad); }
.dot.locked { background: #e6c229; box-shadow: 0 0 12px #e6c22999; } /* Session 30: "Server Locked" (Allow Connections off) */
.status-strip b { color: var(--text); }

/* ------------------------------------------------------------------ cards/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: 960px) { .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: minmax(0, 1fr); } }
/* Session 52 (render audit, phone 375 px): a 1fr column grew to its widest content (info.html WoE table) = the page scrolled sideways 32 px; columns may shrink now, wide tables scroll inside their .table-wrap */
.grid > * { min-width: 0; }
.feature { text-align: left; }
.feature .icon { width: 46px; height: 46px; border-radius: 10px; display: grid; place-items: center; background: #2d2215; border: 1px solid var(--line-gold); color: var(--gold-2); font-size: 1.4rem; margin-bottom: 12px; }
.feature h3 { margin-bottom: 6px; }
.feature p { color: var(--muted); margin: 0; }
.stat { text-align: center; }
.stat .num { font-family: var(--serif); font-size: 2.2rem; color: var(--gold-2); line-height: 1; }
.stat .label { color: var(--muted); font-size: .9rem; margin-top: 6px; }

.news-list { display: grid; gap: 14px; }
.news-item { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; padding: 18px 20px; }
.news-item h3 { margin: 2px 0 4px; font-size: 1.15rem; }
.news-item h3 a { color: #f3e6c8; }
.news-item p { color: var(--muted); margin: 0; }
.news-meta { color: var(--faint); font-size: .85rem; }
.badge { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line-gold); color: var(--gold-2); background: #2a2012; white-space: nowrap; }
.badge.patch { color: #9fd0ff; border-color: #2f5577; background: #10202e; }
.badge.event { color: #f7b0e6; border-color: #6d3160; background: #2a1026; }
.badge.maintenance { color: #ffc28a; border-color: #7a4a24; background: #2a1a0e; }
.badge.gm { color: #1d1408; background: var(--gold); border-color: var(--gold-2); }
.badge.banned { color: #fff; background: var(--blood); border-color: var(--ember); }
.article { max-width: 780px; margin-inline: auto; }
.article .body p { color: #dccfb6; font-size: 1.05rem; }

/* ------------------------------------------------------------------ tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #2a221a; vertical-align: top; }
th { background: #1f1913; color: var(--gold); font-family: var(--serif); font-weight: 700; position: sticky; top: 0; }
tbody tr:hover { background: #ffffff06; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.rank { font-family: var(--serif); font-weight: 700; color: var(--muted); }
tr:nth-child(1) .rank { color: #f2c94c; } tr:nth-child(2) .rank { color: #cfd8dc; } tr:nth-child(3) .rank { color: #d08b52; }
.clickable { cursor: pointer; }

.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 20px; flex-wrap: wrap; }
.tabs button { background: none; border: 0; color: var(--muted); padding: 10px 16px; font: 600 1rem var(--sans); cursor: pointer; border-bottom: 2px solid transparent; }
.tabs button[aria-selected="true"] { color: var(--gold-2); border-color: var(--gold); }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; align-items: center; }
.toolbar input[type=search] { max-width: 360px; }
.toolbar select { width: auto; }
.pager { display: flex; gap: 10px; align-items: center; justify-content: flex-end; margin-top: 12px; color: var(--muted); }

/* ------------------------------------------------------------------ dialog */
dialog { background: var(--panel); color: var(--text); border: 1px solid var(--line-gold); border-radius: 12px; padding: 0; width: min(720px, 100% - 24px); box-shadow: var(--shadow); }
dialog::backdrop { background: #000b; }
dialog .dlg-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
dialog .dlg-head h3 { margin: 0; }
dialog .dlg-body { padding: 20px; max-height: 70vh; overflow: auto; }
dialog .dlg-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--line); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
pre.script { white-space: pre-wrap; background: #0c0a08; border: 1px solid var(--line); border-radius: 8px; padding: 10px; font-size: .85rem; }

/* ------------------------------------------------------------------ auth pages */
.auth-wrap { display: grid; place-items: center; padding: 56px 16px; flex: 1; }
.auth-card { width: min(480px, 100%); }
.auth-card h1 { font-size: 2rem; text-align: center; }
.auth-card .sub { text-align: center; color: var(--muted); margin-bottom: 22px; }

/* ------------------------------------------------------------------ admin */
.admin-layout { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 32px 0 56px; }
.admin-layout > * { min-width: 0; }   /* S33: a wide table / tab row scrolls inside its column instead of widening the page on phones */
.admin-nav { display: grid; gap: 4px; align-content: start; position: sticky; top: 88px; }
.admin-nav button { text-align: left; background: none; border: 1px solid transparent; color: var(--muted); padding: 10px 12px; border-radius: 8px; font: 600 .95rem var(--sans); cursor: pointer; }
.admin-nav button[aria-selected="true"] { color: var(--gold-2); border-color: var(--line-gold); background: #2a2012; }
@media (max-width: 860px) { .admin-layout { grid-template-columns: 1fr; } .admin-nav { position: static; grid-auto-flow: column; overflow-x: auto; } }
.secret { font-family: ui-monospace, Consolas, monospace; font-size: 1.25rem; letter-spacing: .06em; background: #0c0a08; border: 1px dashed var(--gold); padding: 10px 14px; border-radius: 8px; display: inline-block; user-select: all; }

/* ------------------------------------------------------------------ footer */
.site-footer { margin-top: auto; border-top: 1px solid var(--line); background: #0a0807; padding: 36px 0 28px; color: var(--faint); font-size: .9rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 24px; }
.site-footer h4 { font-size: .95rem; color: var(--gold); margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--muted); }
.site-footer .legal { margin-top: 26px; padding-top: 16px; border-top: 1px solid #1f1913; font-size: .8rem; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }

.page-head { padding: 44px 0 10px; }
.page-head p { color: var(--muted); max-width: 70ch; }
.loading { color: var(--faint); padding: 16px 0; }

/* utilities (CSP forbids inline style attributes) */
.pt0 { padding-top: 0 !important; }
.mb28 { margin-bottom: 28px; }
.mb56 { margin-bottom: 56px; }
.mb20 { margin-bottom: 20px; }
.mt12 { margin-top: 12px; }
.m0 { margin: 0; }
.center { text-align: center; }
.align-start { align-items: start; align-content: start; }
.home-cols { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 28px; }
@media (max-width: 900px) { .home-cols { grid-template-columns: 1fr; } }
.label-strong { font-weight: 600; }

/* =============================================================================
   Theme v3 (Session 34, owner 2026-10-17 00:57-01:01: "the whole website needs a breath of fresh air so it looks
   better/more modern"; the 3x3 rainbow of gradient cards "looks so janky"). Replaces theme v2 (gray page + jewel-tone
   containers). One calm night-indigo base and ONE accent - the gold of the Mana Rain star (the game + launcher icon) -
   flat surfaces with thin lines, one modern sans (Plus Jakarta Sans, served from /assets/fonts - CSP is 'self'),
   line icons instead of emoji, a small dose of poring pink for news badges. Component rules: end of this file.
   ========================================================================== */
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/plus-jakarta-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/plus-jakarta-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/plus-jakarta-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url("/assets/fonts/plus-jakarta-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 800; font-style: normal; font-display: swap; src: url("/assets/fonts/plus-jakarta-sans-latin-800-normal.woff2") format("woff2"); }
:root {
  --bg: #10121b;          /* night over Rune-Midgard */
  --bg-2: #141725;
  --panel: #181b29;       /* surfaces */
  --panel-2: #1f2334;     /* raised: table heads, selected */
  --line: #2a2f44;
  --line-gold: rgba(245, 184, 61, .38);
  --text: #ecebf3;
  --heading: #ffffff;
  --muted: #a7abbf;
  --faint: #7e8399;
  --gold: #f5b83d;        /* the star */
  --gold-2: #ffc95c;
  --gold-ink: #1d1505;    /* text on gold */
  --gold-soft: rgba(245, 184, 61, .12);
  --poring: #ff8fb1;      /* small doses only */
  --ok: #5fd39a; --warn: #f5b83d; --bad: #ff6b6b;
  --ember: #ff6b6b; --blood: #b3364a;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 12px 32px rgba(0, 0, 0, .28);
  --sans: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --serif: var(--sans);   /* every old serif use becomes the sans */
  --c-blue: var(--panel-2); --c-blue-2: var(--panel-2); --c-amber: #2a2312; --c-rose: #2c1720; --c-green: #12261c;
}

/* header 20% bigger (owner request) - every size in the menu bar x1.2 */
.site-header .bar { gap: 24px; min-height: 82px; }
.brand { gap: 12px; font-size: 1.8rem; }
.brand img { width: 48px; height: 48px; }
.nav { gap: 5px; margin-left: 10px; flex-wrap: nowrap; }
.nav a { white-space: nowrap; }
.nav a { padding: 10px 14px; border-radius: 10px; font-size: 1.14rem; }
.header-actions { gap: 12px; }
.site-header .btn-sm { padding: 7px 14px; font-size: 1.02rem; border-radius: 10px; }
.menu-toggle { padding: 7px 12px; font-size: 1.44rem; border-radius: 10px; }
.admin-nav { top: 102px; }
/* bigger items need the mobile menu a little sooner */
@media (max-width: 1200px) {
  .menu-toggle { display: block; }
  .nav, .header-actions { display: none; width: 100%; }
  .site-header.open .bar { flex-wrap: wrap; padding-bottom: 12px; }
  .site-header.open .nav { display: flex; flex-direction: column; margin: 0; }
  .site-header.open .header-actions { display: flex; margin: 0; }
}

/* admin overview: server status strip (moved from the home page, staff only) */
.status-strip.admin-status { margin-top: 0; }

/* admin: player commands table */
table.compact td, table.compact th { padding: 6px 10px; vertical-align: top; }
table.compact tr.dirty td { background: rgba(212, 175, 55, 0.12); }
.check.m0 { margin: 0; }

/* ------------------------------------------------------------------ news sections (migration 0010)
   Badge colours a section can have (Admin -> News -> Sections). Used on the public pages too. */
.badge.c-gold   { color: #f0c96b; border-color: #6b5330; background: #281e11; }
.badge.c-blue   { color: #9fd0ff; border-color: #2f5577; background: #0f1e2c; }
.badge.c-pink   { color: #f7b0e6; border-color: #6d3160; background: #280f24; }
.badge.c-orange { color: #ffc28a; border-color: #7a4a24; background: #28190d; }
.badge.c-green  { color: #9fe3b4; border-color: #2f6b45; background: #0f2418; }
.badge.c-teal   { color: #8fe6e6; border-color: #2a6a6e; background: #0d2426; }
.badge.c-violet { color: #cdb4ff; border-color: #56408a; background: #1b1330; }
.badge.c-red    { color: #ffaaa0; border-color: #86352c; background: #2a0f0c; }
.badge.c-gray   { color: #d6d0c4; border-color: #5a554d; background: #1e1c19; }
.panel .badge[class*=" c-"] { background: rgba(0, 0, 0, .32); }
.news-pin { font-size: .8rem; color: var(--gold-2); margin-left: 8px; white-space: nowrap; }

/* admin: news */
.mt20 { margin-top: 20px; }
.seg { display: inline-flex; border: 1px solid var(--line-gold); border-radius: 10px; overflow: hidden; }
.seg button { background: transparent; color: var(--muted); border: 0; padding: 8px 16px; font: 700 .92rem var(--sans); cursor: pointer; }
.seg button + button { border-left: 1px solid var(--line-gold); }
.seg button[aria-selected="true"] { background: var(--c-blue); color: #fff; }
.chip-n { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 999px; background: rgba(0, 0, 0, .3); font-size: .75rem; }
.post-list { display: grid; gap: 8px; }
.post-row { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(0, 0, 0, .18); }
.post-row.draft { border-style: dashed; }
.post-row:hover { border-color: var(--line-gold); }
.post-main { flex: 1; min-width: 0; cursor: pointer; }
.post-title { font-weight: 700; color: #fff6e0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.post-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.pill { font-size: .75rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.pill.ok { color: #bff0c8; border-color: #3f7d52; }
.pill.warn { color: #ffd59a; border-color: #8a6428; }
.danger-text { color: #ffaaa0; }
.danger-text:hover { border-color: var(--ember); }
.label-row { display: flex; justify-content: space-between; align-items: center; }
.news-preview { min-height: 180px; margin: 0; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { cursor: pointer; }
.swatch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.swatch .badge { font-size: .8rem; padding: 5px 10px; opacity: .75; }
.swatch input:checked + .badge { opacity: 1; outline: 2px solid var(--gold-2); outline-offset: 2px; }
.swatch input:focus-visible + .badge { outline: 2px solid #fff; outline-offset: 2px; }
.section-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.section-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(0, 0, 0, .18); }
.section-row.hidden-sec { opacity: .7; }
.section-row.dragging { opacity: .4; }
.section-row.drop-target { border-color: var(--gold-2); box-shadow: 0 0 0 2px rgba(240, 201, 107, .25) inset; }
.section-row .drag { cursor: grab; color: var(--faint); letter-spacing: -2px; user-select: none; }
.section-row .sec-info { flex: 1; min-width: 180px; }
.section-row .sec-actions { display: flex; gap: 6px; }
.section-row .section-form { flex-basis: 100%; }
@media (max-width: 640px) { .post-row { flex-direction: column; align-items: stretch; } .post-actions { justify-content: flex-start; } }

/* admin: GM commands */
/* GM log (Session 33) */
table.gmlog td { vertical-align: top; }
/* Session 42 (owner 2026-10-20 16:04 / 16:05 / 16:06): GM log + chat log rows compact - less padding, one line where it fits
   (the command and its result side by side; the chat log uses the whole window width, admin-wide) */
table.gmlog th, table.gmlog td { padding: 4px 10px; line-height: 1.35; }
table.gmlog td.gmlog-cmdcell { white-space: nowrap; }
table.gmlog .gmlog-cmd { white-space: pre; }
table.gmlog .gmlog-detail { margin-left: 10px; }
table.gmlog .gmlog-failed { color: var(--danger, #e05252); font-weight: 600; }   /* Session 43: [FAILED] / [DENIED] commands (patch 0045) */
@media (max-width: 1100px) { table.gmlog td.gmlog-cmdcell { white-space: normal; } table.gmlog .gmlog-cmd { white-space: pre-wrap; } }
table.chatlog td.chatlog-msg { width: 100%; }
/* Session 38: Chat log */
.chatlog-msg { white-space: pre-wrap; word-break: break-word; }
.chatlog-link { text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .25); text-underline-offset: 3px; }
.chatlog-link:hover { text-decoration-color: currentColor; }
.pill.chat-kind { white-space: nowrap; }
.pill.ch-local { color: #e8e8e8; border-color: #6b6f80; }
.pill.ch-party { color: #bff0c8; border-color: #3f7d52; }
.pill.ch-guild { color: #9fd0ff; border-color: #2f5577; }
.pill.ch-main { color: #7fe3d3; border-color: #1f7d6f; }
.pill.ch-trade { color: #ffc27a; border-color: #8a5a1c; }
.pill.ch-recruit { color: #e3b3ff; border-color: #6d3d8a; }
.gmlog-cmd { white-space: pre-wrap; word-break: break-word; font-size: .88rem; color: #d6e8ff; background: rgba(0, 0, 0, .3); padding: 1px 6px; border-radius: 5px; }
/* Session 34: admin Trade log */
.trades td { vertical-align: top; }
.trade-side { min-width: 180px; }
.trade-items { margin: 4px 0 0; padding-left: 18px; font-size: .9rem; }
.trade-items li { margin: 1px 0; }
.trade-zeny { color: #f5c96b; }
.trade-several { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.nowrap { white-space: nowrap; }
/* GM commands (Session 33: grouped by task, one line each, click for the full text) */
.cmd-toolbar input[type=search] { flex: 1 1 320px; }
.cmd-folds { display: flex; gap: 6px; margin-left: auto; }
.cmd-nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 14px; position: sticky; top: 0; z-index: 5; padding: 8px 0; background: var(--bg-2); }
.cmd-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--text); text-decoration: none; font-size: .85rem; background: rgba(0, 0, 0, .2); }
.cmd-chip:hover { border-color: var(--gold); color: var(--gold-2); }
.cmd-chip-n { font-size: .75rem; color: var(--muted); }
.cmd-groups { display: grid; gap: 12px; }
.cmd-group { border: 1px solid var(--line); border-radius: var(--radius); background: rgba(0, 0, 0, .14); scroll-margin-top: 64px; }
.cmd-group-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; padding: 10px 14px; cursor: pointer; list-style: none; }
.cmd-group-head::-webkit-details-marker { display: none; }
.cmd-group-head::before { content: "\25B8"; color: var(--gold); transition: transform .15s; }
.cmd-group[open] > .cmd-group-head::before { transform: rotate(90deg); }
.cmd-group-name { font-family: var(--serif); font-size: 1.15rem; color: var(--gold-2); font-weight: 700; }
.cmd-group-count { font-size: .75rem; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.cmd-group-note { font-size: .85rem; color: var(--muted); }
.cmd-group > .cmd-list { display: grid; gap: 0; padding: 0 8px 8px; }
.cmd-item { border-top: 1px solid rgba(255, 255, 255, .06); }
.cmd-item:first-child { border-top: 0; }
.cmd-line { display: grid; grid-template-columns: minmax(150px, 230px) 1fr auto; gap: 12px; align-items: center; padding: 7px 8px; cursor: pointer; list-style: none; border-radius: 6px; }
.cmd-line::-webkit-details-marker { display: none; }
.cmd-line:hover { background: rgba(255, 255, 255, .04); }
.cmd-item[open] > .cmd-line { background: rgba(212, 166, 74, .08); }
.cmd-names { display: flex; flex-direction: column; min-width: 0; }
.cmd-name { font-size: .98rem; font-weight: 700; color: #fff6e0; background: none; padding: 0; }
.cmd-alias { font-size: .75rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmd-ex { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cmd-example { align-self: flex-start; max-width: 100%; font-size: .86rem; padding: 2px 8px; border-radius: 6px; background: rgba(0, 0, 0, .35); color: #d6e8ff; white-space: pre-wrap; word-break: break-word; }
.cmd-example.muted { color: var(--muted); }
.cmd-sum { font-size: .88rem; color: var(--muted); line-height: 1.35; }
.cmd-cols { display: grid; grid-template-columns: minmax(150px, 230px) 1fr auto; gap: 12px; padding: 2px 8px 6px; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.cmd-tags { display: flex; gap: 6px; align-items: center; justify-content: flex-end; }
.cmd-more { padding: 4px 10px 12px 18px; display: grid; gap: 8px; border-left: 2px solid var(--line-gold); margin: 0 8px 8px; }
.cmd-help { margin: 0; }
@media (max-width: 640px) {
  .cmd-line { grid-template-columns: 1fr auto; }
  .cmd-ex { grid-column: 1 / -1; grid-row: 2; }
  .cmd-cols { display: none; }
  .cmd-folds { margin-left: 0; }
  .cmd-nav { position: static; gap: 5px; }
  .cmd-chip { font-size: .8rem; padding: 3px 9px; }
  .cmd-group-note { display: none; }
}
.cmd-usage { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cmd-usage code { font-size: .85rem; padding: 2px 8px; border-radius: 6px; background: rgba(0, 0, 0, .35); color: #d6e8ff; }
.pill.lv1 { color: #bff0c8; border-color: #3f7d52; }
.pill.lv2 { color: #9fd0ff; border-color: #2f5577; }
.pill.lv3 { color: #ffd59a; border-color: #8a6428; }
.pill.lv4 { color: #d9b8ff; border-color: #5f3d86; }   /* S38: GM4 High GM */
.pill.lv5 { color: #ffaaa0; border-color: #86352c; }   /* S38: GM5 Admin (the old GM4 color) */

/* ---- database: advanced monster search + monster card (Session 19) ---- */
.adv { border: 1px solid var(--line); border-radius: var(--radius); background: #3c3e43; margin-bottom: 16px; }
.adv > summary { cursor: pointer; padding: 12px 16px; font-weight: 700; }
.adv > div { padding: 4px 16px 16px; display: grid; gap: 14px; }
.adv h4 { margin: 6px 0 0; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.adv-grid { display: grid; gap: 10px 14px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.adv-grid label { display: grid; gap: 4px; font-size: .85rem; color: var(--muted); }
.adv-grid input, .adv-grid select { width: 100%; }
.adv-range { display: grid; grid-template-columns: 1fr auto 1fr; gap: 6px; align-items: center; }
.adv-range input { min-width: 0; }
.adv-checks { display: grid; gap: 6px 14px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.adv-checks label { display: flex; gap: 8px; align-items: center; font-size: .9rem; }
.adv-checks input { width: auto; }
.adv-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.mob-card { display: grid; gap: 18px; }
.mob-card .kv { grid-template-columns: max-content 1fr max-content 1fr; gap: 6px 14px; }
.mob-cols { display: grid; gap: 18px; grid-template-columns: minmax(0, 1.25fr) minmax(0, .8fr) minmax(0, 1.25fr); align-items: start; }
.mob-cols h4 { margin-top: 0; }
.mob-card ul { margin: 0; padding-left: 18px; }
.mob-elements { display: grid; grid-template-columns: 1fr max-content; gap: 3px 14px; }
.mob-elements .weak { color: #8fe08a; font-weight: 700; }
.mob-elements .resist { color: #ff9d8f; }
#db-dialog { width: min(940px, 96vw); max-width: 96vw; }
@media (max-width: 760px) { .mob-cols { grid-template-columns: 1fr; } .mob-card .kv { grid-template-columns: max-content 1fr; } }

/* ------------------------------------------------------------------ database pictures + RMS-style monster card (Session 23) */
.db-icon { width: 24px; height: 24px; flex: none; image-rendering: pixelated; vertical-align: middle; }
.db-icon-none { display: inline-block; }
.db-idcell { white-space: nowrap; }
.db-idcell > * { vertical-align: middle; }
.db-idcell .db-icon { margin-right: 8px; }
/* list sprites: never larger than 64 x 64 (owner 09:41), small ones keep their own size; APNG = animated */
th.db-spr-col, td.db-spr-col { width: 76px; padding-top: 4px; padding-bottom: 4px; }
.db-spr { display: inline-flex; width: 64px; height: 64px; align-items: center; justify-content: center; vertical-align: middle; }
.db-spr img { max-width: 64px; max-height: 64px; width: auto; height: auto; }
.db-spr-sm { width: 40px; height: 40px; margin-right: 10px; }
.db-spr-sm img { max-width: 40px; max-height: 40px; }
.db-name { display: flex; align-items: center; }
tr.mob-row td { vertical-align: middle; padding-top: 4px; padding-bottom: 4px; }
.el-dot { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; vertical-align: middle; background: #9aa0a8; }
.el-water { background: #3f8ee8; } .el-earth { background: #a5743f; } .el-fire { background: #d8342b; } .el-wind { background: #5cc56b; }
.el-poison { background: #9b4fc4; } .el-holy { background: #f2e7a8; } .el-dark { background: #2b2233; box-shadow: inset 0 0 0 1px #7d6a90; }
.el-ghost { background: #c9cdd6; } .el-undead { background: #5b5f4a; } .el-neutral { background: #b8b8b8; }
.item-head { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 20px; }
.item-big { width: 48px; height: 48px; image-rendering: pixelated; flex: none; background: #0003; border: 1px solid #ffffff2a; border-radius: 6px; padding: 4px; box-sizing: content-box; }

#db-dialog:has(.rms) { width: min(1000px, 98vw); }
.rms { --rb: #2a3f63; --rl: #3b4f72; --rbg: #1d222b; --rlab: #8fc3ff; background: var(--rbg); border: 1px solid var(--rl); border-radius: 6px; overflow: hidden; font-size: .88rem; line-height: 1.35; }
.rms-bar { display: flex; justify-content: space-between; gap: 10px; background: linear-gradient(180deg, #34507e, #26406a); color: #f2f6ff; font-weight: 700; text-align: center; padding: 4px 10px; border-bottom: 1px solid var(--rl); }
.rms-mid .rms-bar, .rms-el .rms-bar, .rms > .rms-bar { justify-content: center; }
.rms-bar b { color: #fff; }
.rms-rates { font-weight: 400; font-size: .85em; opacity: .85; }
.rms-id { color: #cfe0ff; font-weight: 700; }
.rms-top { display: grid; grid-template-columns: minmax(0, 1fr) 200px 130px; }
.rms-top > section { border-right: 1px solid var(--rl); min-width: 0; display: flex; flex-direction: column; }
.rms-top > section:last-child { border-right: 0; }
.rms-t { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: inherit; }
.rms-t col.c1 { width: 22%; } .rms-t col.c2 { width: 22%; } .rms-t col.c3 { width: 13%; } .rms-t col.c4 { width: 15%; } .rms-t col.c5 { width: 13%; } .rms-t col.c6 { width: 15%; }
.rms-t th, .rms-t td { padding: 3px 7px; border: 1px solid var(--rl); background: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rms-t th { color: var(--rlab); font-weight: 700; text-align: left; }
.rms-t td { color: #eef2f8; text-align: right; font-variant-numeric: tabular-nums; }
.rms-t tr:hover { background: none; }
.rms-t td.rms-pic { text-align: center; vertical-align: middle; padding: 6px; }
.rms-sprite { display: inline-block; max-width: 100%; height: auto; }
.rms-maps { flex: 1 1 auto; max-height: 230px; overflow-y: auto; padding: 4px 8px; }
.rms-maps > div { padding: 2px 0; }
.rms-map { display: block; color: #d6e6ff; }
.rms-maps small, .rms-none { color: #9aa6b8; }
.rms-modes { list-style: none; margin: 0; padding: 4px 8px 8px; font-size: .8rem; color: #b9c3d2; }
.rms-modes li::before { content: "- "; }
.rms-modes li.hot { color: #ff5a4a; font-weight: 700; }
.rms-elt { width: 100%; border-collapse: collapse; font-size: inherit; }
.rms-elt th, .rms-elt td { padding: 3px 8px; border: 1px solid var(--rl); background: none; }
.rms-elt th { color: var(--rlab); text-align: left; }
.rms-elt td { text-align: right; color: #eef2f8; font-variant-numeric: tabular-nums; }
.rms-elt td.weak { color: #7be36f; font-weight: 700; }
.rms-elt td.resist { color: #ff6b5c; }
.rms-elt tr:hover { background: none; }
.rms > .rms-bar { border-top: 1px solid var(--rl); }
.rms-drops { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px 14px; padding: 10px 12px; }
.rms-drops > div { display: flex; gap: 8px; align-items: flex-start; min-width: 0; }
.rms-drops > div.clickable:hover .rms-dn { text-decoration: underline; }
.rms-dn { display: block; color: #8fc3ff; overflow-wrap: anywhere; }
.rms-dr { display: block; color: #c9d2de; text-decoration: underline dotted; }
.rms-none { padding: 8px 12px; margin: 0; }
@media (max-width: 820px) {
  .rms-top { grid-template-columns: 1fr 1fr; }
  .rms-stats { grid-column: 1 / -1; border-right: 0 !important; border-bottom: 1px solid var(--rl); }
}
@media (max-width: 520px) { .rms-top { grid-template-columns: 1fr; } .rms-mid { border-right: 0 !important; } }
.db-idcell .db-icon, .db-icon { display: inline-block; }
.db-spr img, .rms-sprite { display: block; }
@media (max-width: 520px) { .rms { font-size: .8rem; } .rms-t th, .rms-t td { white-space: normal; overflow-wrap: anywhere; padding: 3px 4px; } }
/* item list: icons 1.5x (owner 10:23), whole-pixel look kept */
.db-icon-lg { width: 36px; height: 36px; }
.db-idcell .db-icon-lg + span { display: inline-block; min-width: 3.2em; }

/* Session 24: two-step login QR code on the account page */
.twofa-qr { display: block; width: 200px; height: 200px; image-rendering: pixelated; background: #fff; padding: 8px; margin: 10px 0; border-radius: 6px; }

/* Database lists (owner 2026-10-05 23:13: "tighten these columns so they don't have so much empty margin, also draw
   the table lines for easier reading"): the table is as wide as its content (no stretching over the page), tight
   cells, a line round every cell. */
.table-wrap.db-list-wrap { width: fit-content; max-width: 100%; }
table.db-list { width: auto; }
table.db-list th, table.db-list td { padding: 5px 10px; border: 1px solid #5a5d64; white-space: nowrap; vertical-align: middle; }
table.db-list th { padding-top: 8px; padding-bottom: 8px; }
table.db-list th.db-icon-col, table.db-list td.db-icon-col { width: 1%; padding: 3px 6px; text-align: center; }
table.db-list .db-icon-lg { display: block; margin: 0 auto; max-width: none; min-width: 36px; }
table.db-list th.db-spr-col, table.db-list td.db-spr-col { width: 1%; padding: 2px 6px; text-align: center; }
table.db-list tr.mob-row td { padding-top: 2px; padding-bottom: 2px; }

/* owner 2026-10-05 23:14: "center the monster sprite in the container it shows up in" - the sprite is a block, so text-align does not move it */
.rms-t td.rms-pic .rms-sprite { margin: 0 auto; }

/* owner 2026-10-05 23:19 (monster card): "make it so there isnt so much empty space in the cells" - every column as wide as
   its content (no fixed percentages); the stats table and Elements take their own width, On Maps / Mode the rest. */
.rms-top { grid-template-columns: max-content minmax(170px, 1fr) max-content; }
.rms-t { table-layout: auto; width: auto; }
.rms-t col.c1, .rms-t col.c2, .rms-t col.c3, .rms-t col.c4, .rms-t col.c5, .rms-t col.c6 { width: auto; }
.rms-t th, .rms-t td { padding: 3px 8px; }
.rms-t td.rms-pic { min-width: 140px; }
.rms-elt { width: auto; }
@media (max-width: 820px) { .rms-top { grid-template-columns: 1fr 1fr; } .rms-t { width: 100%; } }
@media (max-width: 520px) { .rms-top { grid-template-columns: 1fr; } .rms-elt { width: 100%; } }

/* owner 2026-10-05 23:22: "the on maps section is too big now" - the card is as wide as its content, On Maps 150-210 px */
#db-dialog:has(.rms) { width: fit-content; max-width: 98vw; }
.rms-top { grid-template-columns: max-content minmax(150px, 210px) max-content; }
@media (max-width: 820px) { #db-dialog:has(.rms) { width: min(1000px, 98vw); } .rms-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .rms-top { grid-template-columns: 1fr; } }

/* owner 2026-10-06 00:19 ("there is so much wasted space on the database page"): the item list is two tables side by
   side that fill the page; every column stays as tight as its content and Name takes what is left. Below 900 px they
   stack. */
.db-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.db-cols > .table-wrap.db-list-wrap { width: auto; }
.db-cols table.db-list { width: 100%; }
.db-cols table.db-list th, .db-cols table.db-list td { width: 1%; }
.db-cols table.db-list th.db-name-col, .db-cols table.db-list td.db-name-col { width: auto; white-space: normal; }
@media (max-width: 900px) { .db-cols { grid-template-columns: 1fr; } }
/* the monster list fills the page width the same way (Name takes what is left) */
#db-root > .table-wrap.db-list-wrap { width: auto; }
#db-root > .table-wrap.db-list-wrap > table.db-list { width: 100%; }
#db-root > .table-wrap.db-list-wrap > table.db-list th, #db-root > .table-wrap.db-list-wrap > table.db-list td { width: 1%; }
#db-root > .table-wrap.db-list-wrap > table.db-list th:nth-child(3), #db-root > .table-wrap.db-list-wrap > table.db-list td:nth-child(3) { width: auto; }

/* Session 25: monster list in two tables (Race / Size under the name), and the sign-in notice */
.db-cols table.db-list td.db-name-col .small { font-size: 12px; line-height: 1.3; }
.notice.db-signin { max-width: 560px; margin: 24px auto; text-align: center; padding: 24px; }
.notice.db-signin h3 { margin: 0 0 8px; }
.db-cols table.db-list th, .db-cols table.db-list td { padding-left: 8px; padding-right: 8px; }

/* Session 25 (owner 2026-10-06 05:43: "make the database info for monsters and items fit without requiring scroll bars;
   on mobile it should only show 1 column instead of 2 ... make the item icons back to 32x32"): the two tables share the
   width without ever growing past it (grid minmax(0, 1fr), names and types may wrap, tighter cells), no sideways scroll
   bar in the lists; one table under the other below 900 px; on a phone (<= 640 px) the lesser columns move into a
   small line under the name. Item icons 32 x 32. */
.db-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.table-wrap.db-list-wrap { overflow-x: visible; }
.db-cols table.db-list { table-layout: auto; }
.db-cols table.db-list th, .db-cols table.db-list td { padding-left: 6px; padding-right: 6px; }
.db-cols table.db-list td.db-name-col { white-space: normal; overflow-wrap: anywhere; }
.db-cols table.db-list td.db-name-col .small { white-space: normal; }
table.db-list .db-icon-lg, .db-icon-lg { width: 32px; height: 32px; min-width: 32px; }
table.db-list th.db-icon-col, table.db-list td.db-icon-col { padding: 3px 5px; }
.db-sub { display: none; }
@media (max-width: 900px) { .db-cols { grid-template-columns: minmax(0, 1fr); } }
/* monsters carry more numbers: one table under the other already below 1150 px */
@media (max-width: 1150px) { .db-cols.db-cols-mob { grid-template-columns: minmax(0, 1fr); } }
.db-cols-mob table.db-list th.db-exp { white-space: nowrap; }
@media (max-width: 640px) {
  .db-hide-sm { display: none; }
  .db-sub { display: block; }
  table.db-list th, table.db-list td { padding-left: 5px; padding-right: 5px; }
  table.db-list .db-spr { width: 48px; height: 48px; }
  table.db-list .db-spr img { max-width: 48px; max-height: 48px; }
}

/* Session 25: sorting by column - the header words are buttons; ▲ low first / A-Z, ▼ high first / Z-A */
button.db-sort { background: none; border: 0; padding: 0; margin: 0; font: inherit; color: inherit; cursor: pointer; white-space: nowrap; }
button.db-sort:hover { text-decoration: underline; }
button.db-sort.on { color: #ffe08a; }
.db-arrow { font-size: .8em; }
.db-subsort { display: block; font-size: 12px; font-weight: 400; opacity: .9; }
th.db-exp .db-subsort { opacity: .9; }   /* Session 25 06:42: Base / Job buttons now in the small line, same look as Race · Size */
.db-sort-sm { display: none; }
@media (max-width: 640px) { .db-sort-sm { display: block; } }

/* Session 25 (owner 2026-10-06 06:29: "center the text in these columns, have the leftmost blank column (next to ID) say
   Graphic"): every header of the database lists is centred (the cells below keep their own alignment). */
table.db-list thead th, table.db-list thead th.num { text-align: center; }
table.db-list thead th .db-subsort { text-align: center; }
table.db-list thead th.db-icon-col { font-size: 11px; padding-left: 3px; padding-right: 3px; }
.db-cols:not(.db-cols-mob) table.db-list td:nth-child(4) { white-space: normal; }
/* Session 25 (owner 2026-10-06 06:43: "item graphics should actually be 48x48 ... since the default is 24x24 I think 48x48
   will scale better and look less distorted"): exactly 2x the game's 24 x 24 icons, every pixel a clean 2 x 2 block. */
table.db-list .db-icon-lg, .db-icon-lg { width: 48px; height: 48px; min-width: 48px; image-rendering: pixelated; }

.mb8 { margin-bottom: 8px; }

/* =============================================================================
   Theme v3 components (Session 34) - see the token block above. Kept last so they win over the older rules.
   ========================================================================== */
body { background: var(--bg); font: 16px/1.6 var(--sans); letter-spacing: -.003em; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--sans); color: var(--heading); letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.08; font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); }
h3 { font-size: 1.08rem; letter-spacing: -.01em; }
a { color: var(--gold-2); }
a:hover { color: #ffe09a; }
code, kbd { background: rgba(255, 255, 255, .06); border: 1px solid var(--line); }
.eyebrow { display: none; }                      /* no ALL-CAPS labels over headings */

/* header + footer */
.site-header { background: rgba(16, 18, 27, .86); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); }
.brand { font-family: var(--sans); font-weight: 800; letter-spacing: -.03em; }
.brand span b { color: var(--gold); }
.nav a { color: var(--muted); font-weight: 600; font-size: 1.02rem; border-radius: 10px; }
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.nav a { position: relative; }
/* owner 2026-10-18 11:40 "the yellow bar under the menu buttons ... too vibrant": was a full-width 2 px line in the star gold;
   now a short, soft gold line that fades out at its ends, centred under the word */
.nav a[aria-current="page"] { color: var(--heading); background: rgba(255, 255, 255, .06); box-shadow: none; }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: 5px; width: 26px; height: 2px; margin-left: -13px;
  border-radius: 2px; background: linear-gradient(90deg, rgba(245, 184, 61, 0), rgba(245, 184, 61, .55), rgba(245, 184, 61, 0)); }
@media (max-width: 1200px) { .nav a[aria-current="page"]::after { left: 14px; margin-left: 0; } }
.site-footer { background: #0c0e15; border-top: 1px solid var(--line); color: var(--faint); }
.site-footer h4 { color: var(--heading); font-size: .95rem; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.site-footer .legal { border-top-color: var(--line); }

/* buttons + fields */
.btn { background: transparent; border: 1px solid var(--line); color: var(--text); border-radius: 10px; font-weight: 700; }
.btn:hover { border-color: var(--gold); background: var(--gold-soft); color: var(--heading); }
.btn-primary { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); box-shadow: 0 8px 24px rgba(245, 184, 61, .22); }
.btn-primary:hover { background: var(--gold-2); border-color: var(--gold-2); color: var(--gold-ink); filter: none; }
.btn-danger { background: #3a1820; border-color: #7a2c3c; color: #ffd4dc; }
.btn-danger:hover { background: #4a1d28; border-color: var(--bad); color: #fff; }
.btn-ghost { background: transparent; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], input[type=date], select, textarea {
  background: #0c0e16; border: 1px solid var(--line); border-radius: 10px; color: var(--text);
}
input::placeholder, textarea::placeholder { color: var(--faint); }
input:focus, select:focus, textarea:focus, .btn:focus-visible, a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-color: var(--gold); }
.field label { color: var(--text); }

/* surfaces: flat, one line, no gradients, no rainbow */
.panel, dialog { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: none; }
.panel::before { display: none; }
.panel h2, .panel h3, .news-item h3 a { color: var(--heading); }
.panel, .panel * { --muted: #a7abbf; --faint: #7e8399; }
.notice { background: var(--panel-2); border: 1px solid var(--line); border-left: 3px solid var(--gold); color: var(--text); border-radius: var(--radius-sm); }
.notice.success { border-left-color: var(--ok); background: #13231c; }
.notice.error { border-left-color: var(--bad); background: #2a161b; color: #ffd9de; }
.notice.warn { border-left-color: var(--warn); background: #2a2312; }

/* hero: the one bold place - the art glows like the star on a night sky */
.hero { background: radial-gradient(900px 520px at 78% 45%, rgba(245, 184, 61, .16), transparent 62%), radial-gradient(700px 420px at 10% 0%, rgba(120, 110, 255, .10), transparent 60%), var(--bg); border-bottom: 1px solid var(--line); }
.hero .container { padding: 96px 0 84px; }
.hero h1 { text-shadow: none; max-width: 14ch; }
.hero h1 em { font-style: normal; color: inherit; }
.hero .lead { color: var(--muted); font-size: 1.15rem; max-width: 46ch; }
.hero .eyebrow { display: inline-block; text-transform: none; letter-spacing: 0; font-size: .85rem; font-weight: 600; color: var(--gold-2); background: var(--gold-soft); border: 1px solid var(--line-gold); padding: 4px 12px; border-radius: 999px; margin-bottom: 18px; }
.hero-art.scene img { border: 0; border-radius: 22px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 30px 80px rgba(0, 0, 0, .55), 0 0 120px rgba(245, 184, 61, .18); }
.hero-art.scene::after { display: none; }
.section { padding: 64px 0; }
.section-title { margin-bottom: 20px; }

/* news */
.news-item { padding: 18px 20px; }
.news-item:hover { border-color: #3a4059; }
.news-meta { color: var(--faint); }
.badge { background: rgba(255, 255, 255, .05); border: 1px solid var(--line); color: var(--muted); letter-spacing: .02em; text-transform: none; font-weight: 700; }
.badge.news, .badge.c-pink { color: var(--poring); border-color: rgba(255, 143, 177, .35); background: rgba(255, 143, 177, .08); }
.badge.c-gold { color: var(--gold-2); border-color: var(--line-gold); background: var(--gold-soft); }
.badge.gm { color: var(--gold-ink); background: var(--gold); border-color: var(--gold); }
.panel .badge, .panel .badge[class*=" c-"] { background: rgba(255, 255, 255, .04); }
.badge.gm, .panel .badge.gm { color: var(--gold-ink); background: var(--gold); border-color: var(--gold); }   /* GM title badge: dark text on solid gold everywhere, panels too (owner 2026-10-18 21:33 "gm4 admin text is impossible to read") */
.kv dt { color: var(--muted); }

/* highlights: three pillars, then the rest as a quiet list; the icon sits LEFT of each title (owner 01:01) */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 18px; }
.pillar { padding: 26px; }
.pillars:has(> :nth-child(4)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }   /* four cards: 2 x 2 */
.feat-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.feat-head h3 { margin: 0; }
.feat-ico { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--gold); background: var(--gold-soft); border: 1px solid var(--line-gold); }
.feat-ico svg { width: 22px; height: 22px; }
.pillar p { color: var(--muted); margin: 0; }
.feature-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 8px 24px; }
.feature-row { padding: 18px 0; border-bottom: 1px solid var(--line); }
.feature-row:nth-last-child(-n+2) { border-bottom: 0; }
.feature-row .feat-head { margin-bottom: 4px; }
.feature-row .feat-ico { width: 34px; height: 34px; border-radius: 10px; }
.feature-row .feat-ico svg { width: 18px; height: 18px; }
.feature-row h3 { font-size: 1rem; }
.feature-row p { color: var(--muted); margin: 0; padding-left: 46px; font-size: .95rem; }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; } .feature-list { grid-template-columns: 1fr; } .feature-row:nth-last-child(2) { border-bottom: 1px solid var(--line); } }

/* tables */
.table-wrap { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
th { background: var(--panel-2); color: var(--muted); font-family: var(--sans); font-weight: 700; font-size: .85rem; }
th, td { border-bottom: 1px solid var(--line); }
tbody tr:hover { background: rgba(255, 255, 255, .025); }
table.db-list th, table.db-list td { border: 1px solid var(--line); }
.adv { background: var(--panel); border-color: var(--line); }
.tabs { border-bottom-color: var(--line); }
.tabs button[aria-selected="true"] { color: var(--heading); border-color: var(--gold); }

/* admin */
.admin-nav button { color: var(--muted); border-radius: 10px; font-family: var(--sans); }
.admin-nav button:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.admin-nav button[aria-selected="true"] { color: var(--heading); background: var(--panel-2); border-color: var(--line); }   /* S38 (owner 02:23): no gold bar on the left of a selected item */
.seg { border-color: var(--line); }
.seg button + button { border-left-color: var(--line); }
.seg button[aria-selected="true"] { background: var(--gold-soft); color: var(--gold-2); }
.post-row, .section-row { background: var(--panel); border-color: var(--line); }
.post-title { color: var(--heading); }
.cmd-group { background: var(--panel); border-color: var(--line); }
.cmd-group-name { font-family: var(--sans); color: var(--heading); font-size: 1.05rem; }
.cmd-group-head::before { color: var(--gold); }
.cmd-nav { background: var(--bg); }
.cmd-chip { background: var(--panel); border-color: var(--line); }
.cmd-chip:hover { border-color: var(--gold); color: var(--gold-2); }
.cmd-name { color: var(--heading); }
.cmd-example, .cmd-usage code, .gmlog-cmd { background: #0c0e16; border: 1px solid var(--line); color: #cfe0ff; }
.cmd-cols { text-transform: none; letter-spacing: 0; font-size: .78rem; font-weight: 700; }
.cmd-item[open] > .cmd-line { background: var(--gold-soft); }
.cmd-more { border-left-color: var(--line-gold); }
.trade-zeny { color: var(--gold-2); }
button, input, select, textarea { font-family: inherit; }
.cmd-name { background: none; border: 0; padding: 0; font-family: var(--sans); font-size: 1rem; }
.toolbar input[type=date] { width: auto; padding: 8px 10px; color-scheme: dark; }
.toolbar label { display: inline-flex; align-items: center; gap: 8px; }

/* Session 37 (owner 2026-10-20 00:02): news cards show 6 lines of the post, then a centred [Click to Expand...] */
.news-body { color: var(--muted); line-height: 1.55; overflow-wrap: anywhere; }
.news-body.clamped { max-height: calc(1.55em * 6); overflow: hidden; }
.news-body.clamped.fade { -webkit-mask-image: linear-gradient(#000 calc(100% - 1.6em), transparent); mask-image: linear-gradient(#000 calc(100% - 1.6em), transparent); }
.news-body > :first-child { margin-top: 0; }
.news-more { grid-column: 1 / -1; justify-self: center; background: none; border: 0; padding: 2px 8px; margin-top: -4px; color: var(--gold-2, var(--gold)); font: inherit; font-size: .75em; font-weight: 600; cursor: pointer; }   /* owner 00:24: 25 % smaller */
.news-more:hover { text-decoration: underline; }
.news-more[hidden] { display: none; }
/* Session 38 (owner 02:20): Edit / Delete next to [Click to Expand] for GM5 Admins (site.js newsCard) */
.news-actions { grid-column: 1 / -1; display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: -4px; }
.news-actions .news-more { margin-top: 0; }
.news-staff { background: none; border: 0; padding: 2px 6px; font: inherit; font-size: .75em; font-weight: 600; cursor: pointer; color: var(--muted); }
.news-staff:hover { color: var(--heading); text-decoration: underline; }
.news-staff.danger:hover { color: #ff8f8f; }
.rules-staff { display: flex; justify-content: flex-end; max-width: 780px; margin: -6px auto 12px; }
dialog.composer { width: min(820px, calc(100vw - 32px)); }
/* Session 37: Markdown in news posts (site.js CR.md) + the editor's formatting bar */
.news-md p, .news-body p { margin: 0 0 .75em; }
.news-body p { margin-bottom: .4em; }
.news-h { color: var(--heading, var(--text)); margin: .6em 0 .35em; line-height: 1.25; }
h2.news-h { font-size: 1.5rem; } h3.news-h { font-size: 1.25rem; } h4.news-h { font-size: 1.08rem; }
.news-body .news-h { margin: .2em 0 .2em; }
.news-md ul, .news-md ol, .news-body ul, .news-body ol { margin: .2em 0 .75em; padding-left: 1.4em; }
.news-md blockquote, .news-body blockquote { margin: .4em 0 .8em; padding: .3em .9em; border-left: 3px solid var(--gold); background: rgba(255,255,255,.03); color: var(--muted); }
.news-md hr, .news-body hr { border: 0; border-top: 1px solid var(--line); margin: 1em 0; }
.news-md code, .news-body code { background: rgba(255,255,255,.07); padding: .05em .35em; border-radius: 4px; font-size: .92em; }
.news-img { max-width: 100%; height: auto; border-radius: 8px; display: inline-block; vertical-align: middle; }
.news-imgp { text-align: center; }
.md-bar { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 6px; }
.md-btn { min-width: 32px; padding: 3px 8px; }
.md-b { font-weight: 800; } .md-i { font-style: italic; } .md-u { text-decoration: underline; } .md-s { text-decoration: line-through; }
/* Session 37 (owner 00:16): news cards without the section tag; the News page filter buttons get a dim border on hover */
.news-item.no-tag { grid-template-columns: 1fr; }
#news-filters .btn:not(.btn-primary):hover { border-color: var(--line-gold); }

/* S39 (owner 2026-10-20 03:02): player database - every header and cell on ONE line, all columns fit */
table.pdb { table-layout: auto; font-size: .9rem; }
table.pdb th, table.pdb td { white-space: nowrap; padding: 9px 10px; vertical-align: middle; }
table.pdb th { font-size: .8rem; letter-spacing: .02em; text-transform: uppercase; color: var(--muted); }
table.pdb td.pdb-name { font-weight: 600; max-width: 170px; overflow: hidden; text-overflow: ellipsis; }
table.pdb td.pdb-email { max-width: 230px; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
table.pdb tbody tr:hover td { background: rgba(255, 255, 255, .03); }
table.pdb .badge { white-space: nowrap; }

[hidden] { display: none !important; }   /* S39: the hidden attribute always wins (info page player commands) */
/* S39 (owner 03:28): "This page can expand horizontally so that all information is displayed in 1 row. Do not expand beyond
   the viewers browser window size though ... add a scroll bar if the table doesn't fit" - player database only */
body.admin-wide main.container { width: calc(100% - 32px); max-width: none; }
.table-wrap.pdb-wrap { max-width: 100%; overflow-x: auto; }
.rms > .rms-bar.rms-bar-drops { flex-direction: column; align-items: center; gap: 0; line-height: 1.25; }   /* S39: rates under "Drops" */
/* S39 (owner 03:43): character rows - the Delete / Cancel Deletion button lines up with the rest of the row */
.game-account td { vertical-align: middle; }
.game-account td.char-actions { padding-top: 4px; padding-bottom: 4px; text-align: right; white-space: nowrap; }
.game-account .del-pending { color: #f0a35e; white-space: nowrap; }
/* S39 (owner 03:47): home - news pager centred under the news; Server Rates + War of Emperium side by side under it */
.home-news-pager { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 18px; }
.home-info { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
@media (max-width: 760px) { .home-info { grid-template-columns: 1fr; } }
.home-info { margin-top: 28px; }
/* S39 (owner 03:02): character items with icons (GM Panel) */
.inv-table td { vertical-align: middle; }
.inv-icon-col { width: 1%; padding-right: 4px !important; }
.inv-icon { width: 24px; height: 24px; object-fit: contain; image-rendering: pixelated; display: inline-block; vertical-align: middle; }
.inv-icon.sm { width: 18px; height: 18px; margin-right: 3px; }
.inv-noicon { border: 1px dashed var(--line); border-radius: 4px; }
.inv-cards { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .82rem; color: var(--muted); margin-top: 2px; }
.inv-card { display: inline-flex; align-items: center; }
.mb8 { margin-bottom: 8px; }
/* S39 (owner 2026-10-20 04:02): "remove the weird gradient glows in the background at the top of the home page" - flat
   background, no gold / violet haze behind the hero and no gold glow around the picture (the plain shadow stays) */
body { background: var(--bg); }
.hero { background: var(--bg); }
.hero-art.scene img { box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 30px 80px rgba(0, 0, 0, .55); }
/* S39 (owner 04:00): Log out as a hover menu under the account name */
.acct-menu { position: relative; display: inline-block; }
.acct-menu-pop { position: absolute; right: 0; top: 100%; padding-top: 6px; display: none; z-index: 60; }
.acct-menu:hover .acct-menu-pop, .acct-menu:focus-within .acct-menu-pop { display: block; }
.acct-menu-pop .btn { white-space: nowrap; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }
/* S39 (owner 04:00): account page - Delete Account at the very bottom, dark red */
.btn-dark-red { background: #4a1414; border-color: #7a2020; color: #ffd4d4; }
.btn-dark-red:hover { background: #5c1818; border-color: #a02a2a; color: #fff; }
.danger-zone { border-color: #5a1e1e; }
.danger-zone { margin-top: 28px; }
.danger-zone { margin-bottom: 48px; }
.gm-made { color: #ff9f6b; }
.gm-made-lines { font-size: .78rem; color: #e8b48f; margin-top: 2px; white-space: pre-wrap; }   /* S39: GM-made boiler plate (GM4 / GM5) */
#glance:empty, #info-rates:empty { min-height: 168px; }   /* S39: room kept while the live rates load */
table.gm-team th, table.gm-team td { text-align: center; }   /* S39 (owner 04:30) */
/* S39: GM5 item actions + Item Editor */
.inv-acts { text-align: right; } .inv-acts .btn { margin-left: 4px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ie-opts { display: grid; gap: 8px; } .ie-opt { display: grid; grid-template-columns: minmax(0, 1fr) 130px; gap: 8px; }
@media (max-width: 640px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Session 49 (owner 2026-10-22 10:09: "just show the GM labels on the website as regular text, its so distracting with all the yellow circles") */
.badge.gm, .panel .badge.gm { background: none; border: 0; border-radius: 0; padding: 0; color: inherit; font-size: inherit; font-weight: 600; letter-spacing: 0; text-transform: none; }

/* ------------------------------------------------------------------ donation page (Session 57, owner 2026-10-25 05:09) */
.don-head h1 { margin-bottom: .35em; }
.don-lead { font-size: 1.08rem; line-height: 1.65; max-width: 78ch; color: var(--text); }
.don-gold { color: var(--gold); }
.don-step { padding-top: 20px; }
.don-step-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.don-step-head h2 { margin: 0; font-size: clamp(1.2rem, 2.2vw, 1.5rem); }
.don-num { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 800;
  background: var(--gold); color: var(--gold-ink, #1d1505); }
.don-accounts { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.don-acc { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center;
  padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm, 10px); cursor: pointer; background: var(--panel-2, var(--panel)); }
.don-acc input { grid-row: span 2; accent-color: var(--gold); width: 18px; height: 18px; margin: 0; }
.don-acc:has(input:checked) { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.don-acc.is-off { opacity: .5; cursor: not-allowed; }
.don-acc-name { font-weight: 700; }
.don-acc-bal { font-size: .82rem; color: var(--muted); }
.don-tiers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 1000px) { .don-tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .don-tiers { grid-template-columns: 1fr; } }
.don-card { --ring: var(--gold); display: flex; flex-direction: column; gap: 10px; padding: 18px 18px 16px; text-align: center;
  background: var(--panel); border: 1px solid var(--line); border-bottom: 3px solid var(--ring); border-radius: var(--radius); box-shadow: var(--shadow); }
.don-card:hover { border-color: var(--ring); }
.don-level { text-transform: uppercase; letter-spacing: .12em; font-weight: 800; font-size: .95rem; color: var(--heading, var(--text)); }
.don-credits { color: var(--gold); font-weight: 800; font-size: 1.35rem; line-height: 1.2; }
.don-credits small { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.don-medal { width: 132px; height: 132px; margin: 4px auto; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 40%, #ffffff, #eef1f8 70%); border: 6px solid var(--ring); box-shadow: 0 0 0 4px rgba(255, 255, 255, .08); }
.don-medal img { max-width: 96px; max-height: 96px; image-rendering: pixelated; }
.don-card-foot { display: flex; align-items: baseline; justify-content: space-between; }
.don-usd { font-size: 1.9rem; font-weight: 800; color: var(--heading, var(--text)); }
.don-bonus { font-style: italic; font-weight: 800; color: var(--gold); text-transform: uppercase; font-size: .85rem; }
.don-bonus.is-zero { color: var(--muted); }
.don-card-sub { margin-top: -6px; }
.don-btn { width: 100%; justify-content: center; }
.don-c1 { --ring: #f0a6c0; } .don-c2 { --ring: #7fc8ff; } .don-c3 { --ring: #ff8fb1; } .don-c4 { --ring: #ffd36e; }
.don-c5 { --ring: #b07cf0; } .don-c6 { --ring: #f5b83d; } .don-c7 { --ring: #e0584f; } .don-c8 { --ring: #6fe0d0; }
.don-info .panel h3 { margin-bottom: .5em; }
.don-fine { font-size: .82rem; font-style: italic; color: var(--muted); max-width: 95ch; margin: 0 0 56px; }
