/* Scarlet Oath Reborn - website styles. Palette and frames follow the game launcher. */

@font-face { font-family: "Cinzel"; src: url("../fonts/cinzel-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Cinzel"; src: url("../fonts/cinzel-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("../fonts/alegreya-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("../fonts/alegreya-sans-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("../fonts/alegreya-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("../fonts/alegreya-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --ink: #0c0606;            /* page */
  --ink-2: #160a09;          /* panel */
  --ink-3: #221010;          /* raised / inputs hover */
  --well: #0a0404;           /* inputs */
  --line: #7d5530;           /* dim gold frame line */
  --gold: #d9a35b;           /* frames, small accents */
  --gold-hi: #ffd27f;        /* headings */
  --ember: #ff9a57;          /* sub-headings, links */
  --crimson: #b02c20;
  --crimson-deep: #6a110c;
  --parch: #ecdab6;          /* body text */
  --muted: #a88a6c;
  --ok: #93d17f;
  --bad: #e8664f;
  --radius: 12px;
  --display: "Cinzel", "Trajan Pro", Georgia, serif;
  --text: "Alegreya Sans", "Segoe UI", Tahoma, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(1100px 520px at 50% -140px, rgba(160, 34, 20, .30), transparent 70%),
    radial-gradient(900px 600px at 100% 30%, rgba(90, 20, 12, .18), transparent 70%),
    var(--ink);
  color: var(--parch);
  font: 400 17px/1.6 var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; height: auto; }
a { color: var(--ember); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold-hi); }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; color: var(--gold-hi); line-height: 1.2; margin: 0 0 .5em; letter-spacing: .01em; }
h1 { font-size: clamp(28px, 4vw, 40px); }
h2 { font-size: 22px; }
h3 { font-size: 18px; color: var(--ember); }
p { margin: 0 0 1em; }
code, .mono { font-family: Consolas, "Courier New", monospace; font-size: .88em; }
code { background: rgba(255, 210, 127, .08); padding: 1px 5px; border-radius: 4px; color: var(--gold-hi); }
hr { border: 0; border-top: 1px solid rgba(217, 163, 91, .25); margin: 24px 0; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.main { flex: 1; padding-top: 32px; padding-bottom: 56px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--gold-hi); color: #200; padding: 8px 12px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.ok { color: var(--ok); }
.bad { color: var(--bad); }
.inline { display: inline; }
[hidden] { display: none !important; }

/* ---------------------------------------------------------------- top bar (the launcher's title bar) */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(180deg, rgba(20, 8, 7, .97), rgba(12, 5, 5, .94));
  border-bottom: 1px solid rgba(217, 163, 91, .45);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .8), 0 8px 24px rgba(0, 0, 0, .45);
}
.topbar-in { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--gold-hi); flex-shrink: 0; }
.brand span { font-family: var(--display); font-weight: 700; font-size: 16px; letter-spacing: .04em; }
.brand img { filter: drop-shadow(0 0 6px rgba(255, 110, 40, .45)); }
.navarea { display: flex; align-items: center; justify-content: space-between; flex: 1; gap: 20px; }
.mainnav, .usernav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.mainnav a, .usernav > a:not(.btn), .linkbtn {
  color: var(--parch); text-decoration: none; padding: 8px 10px; border-radius: 6px; font-size: 16px; font-weight: 500;
}
.mainnav a:hover, .usernav > a:not(.btn):hover { color: var(--gold-hi); background: rgba(255, 210, 127, .06); }
.mainnav a[aria-current="page"], .usernav a[aria-current="page"] { color: var(--gold-hi); box-shadow: inset 0 -2px 0 var(--crimson); border-radius: 6px 6px 0 0; }
.linkbtn { background: none; border: 0; font: inherit; font-size: 16px; font-weight: 500; cursor: pointer; padding: 8px 10px; color: var(--parch); }
.linkbtn:hover { color: var(--gold-hi); }
.linkbtn.danger { color: var(--bad); padding: 2px 4px; }
.pts { display: inline-flex; align-items: baseline; gap: 5px; border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px !important; margin-right: 4px; }
.pts-n { font-family: var(--display); font-weight: 700; color: var(--gold-hi); }
.pts-l { font-size: 14px; color: var(--muted); }
.navbtn { display: none; }

.notice-bar { background: linear-gradient(90deg, var(--crimson-deep), #3a0b07); border-bottom: 1px solid rgba(217, 163, 91, .35); padding: 8px 0; font-size: 15px; text-align: center; }

/* ---------------------------------------------------------------- buttons (Play button + launcher tab buttons) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 16px/1.2 var(--text); color: var(--parch); text-decoration: none; cursor: pointer;
  background: linear-gradient(180deg, #3a1611, #24100c);
  border: 1px solid var(--line); border-radius: 6px; padding: 10px 16px;
  box-shadow: inset 0 1px 0 rgba(255, 210, 127, .10);
  transition: border-color .15s, color .15s, background .15s;
}
.btn:hover { border-color: var(--gold); color: var(--gold-hi); }
.btn:disabled { opacity: .55; cursor: not-allowed; border-color: var(--line); color: var(--muted); }
.btn-primary {
  font-family: var(--display); font-weight: 700; letter-spacing: .03em; color: #ffe6b0;
  background: linear-gradient(180deg, #cf3d2c 0%, #9c2116 55%, #741109 100%);
  border: 1px solid #f2bd6d; border-radius: 8px;
  text-shadow: 0 1px 0 rgba(60, 6, 2, .9);
  box-shadow: inset 0 1px 0 rgba(255, 220, 180, .35), inset 0 -2px 6px rgba(40, 0, 0, .45), 0 0 0 2px #1b0705, 0 0 0 3px rgba(242, 189, 109, .45);
}
.btn-primary:hover { color: #fff3d6; background: linear-gradient(180deg, #e04a36 0%, #ab2719 55%, #80150c 100%); border-color: #ffd890; }
.btn-primary:disabled { background: #3a1611; box-shadow: none; text-shadow: none; }
.btn-lg { font-size: 18px; padding: 14px 24px; }
.btn-sm { font-size: 14px; padding: 7px 12px; }
.btn-block { display: flex; width: 100%; }
.btnrow { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ---------------------------------------------------------------- frames (launcher panels: gold line, gap, second line) */
.frame {
  position: relative;
  background: linear-gradient(180deg, rgba(28, 12, 11, .94), rgba(13, 6, 6, .96));
  border: 1px solid rgba(217, 163, 91, .55);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 0 0 3px rgba(12, 6, 6, .9), 0 0 0 4px rgba(217, 163, 91, .22), 0 18px 40px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 210, 127, .07);
}
.frame-tight { padding: 20px; }
.frame-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: -4px 0 18px; padding-bottom: 10px;
  border-bottom: 1px solid transparent; border-image: linear-gradient(90deg, rgba(217, 163, 91, .6), rgba(217, 163, 91, 0)) 1; }
.frame-head h2 { margin: 0; font-size: 17px; letter-spacing: .05em; }
.frame-link { font-size: 15px; white-space: nowrap; }
.narrow { max-width: 780px; margin-left: auto; margin-right: auto; }

.cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.cols-even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.side .frame:last-child { margin-bottom: 0; }

.page-head { margin-bottom: 24px; }
.page-head h1 { margin-bottom: 8px; }
.lede { font-size: 19px; max-width: 64ch; }
.row-between { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.crumbs { font-size: 15px; margin-bottom: 8px; }
.crumbs a::before { content: "‹ "; }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid rgba(217, 163, 91, .4); isolation: isolate; }
.hero-art {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(90deg, rgba(12, 6, 6, .25) 0%, rgba(12, 6, 6, .55) 55%, rgba(12, 6, 6, .85) 100%),
    linear-gradient(180deg, rgba(12, 6, 6, 0) 55%, var(--ink) 100%),
    radial-gradient(700px 420px at 28% 50%, rgba(200, 60, 20, .35), transparent 70%),
    url("../img/hero.jpg") center 30% / cover no-repeat,
    #1a0a08;
}
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); align-items: center; gap: 40px; min-height: 560px; padding-top: 40px; padding-bottom: 48px; }
.hero-logo { margin: 0; display: flex; justify-content: center; }
.hero-logo img { width: min(420px, 100%); filter: drop-shadow(0 0 28px rgba(255, 96, 32, .55)) drop-shadow(0 12px 24px rgba(0, 0, 0, .8)); animation: rise 1.4s cubic-bezier(.2, .7, .2, 1) both; }
.hero-intro { font-size: 21px; line-height: 1.5; color: #f4e4c4; text-shadow: 0 2px 8px rgba(0, 0, 0, .9); margin-bottom: 24px; max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(.97); filter: drop-shadow(0 0 0 rgba(255, 96, 32, 0)); } to { opacity: 1; transform: none; } }

.embers { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.embers i { position: absolute; bottom: -10px; width: 4px; height: 4px; border-radius: 50%; background: #ffb066; box-shadow: 0 0 8px 2px rgba(255, 120, 40, .7); opacity: 0; animation: ember 9s linear infinite; }
.embers i:nth-child(1) { left: 8%; animation-delay: 0s; }
.embers i:nth-child(2) { left: 16%; animation-delay: 3.2s; animation-duration: 11s; }
.embers i:nth-child(3) { left: 22%; animation-delay: 6.1s; width: 3px; height: 3px; }
.embers i:nth-child(4) { left: 29%; animation-delay: 1.4s; animation-duration: 12s; }
.embers i:nth-child(5) { left: 35%; animation-delay: 4.8s; width: 3px; height: 3px; }
.embers i:nth-child(6) { left: 41%; animation-delay: 7.5s; animation-duration: 10s; }
.embers i:nth-child(7) { left: 12%; animation-delay: 5.5s; animation-duration: 13s; width: 2px; height: 2px; }
.embers i:nth-child(8) { left: 47%; animation-delay: 2.2s; width: 2px; height: 2px; }
.embers i:nth-child(9) { left: 26%; animation-delay: 8.4s; animation-duration: 10.5s; }
.embers i:nth-child(10) { left: 5%; animation-delay: 9.6s; animation-duration: 12.5s; width: 3px; height: 3px; }
.embers i:nth-child(11) { left: 38%; animation-delay: 10.8s; animation-duration: 11.5s; width: 2px; height: 2px; }
.embers i:nth-child(12) { left: 19%; animation-delay: 12.1s; }
.embers i:nth-child(13) { left: 55%; animation-delay: 6.8s; animation-duration: 14s; width: 2px; height: 2px; }
.embers i:nth-child(14) { left: 32%; animation-delay: 13.3s; animation-duration: 9.5s; }
.embers i:nth-child(15) { left: 44%; animation-delay: 11.2s; width: 3px; height: 3px; }
.embers i:nth-child(16) { left: 2%; animation-delay: 14.4s; animation-duration: 12s; }
@keyframes ember {
  0% { transform: translate(0, 0); opacity: 0; }
  10% { opacity: .9; }
  60% { opacity: .7; }
  100% { transform: translate(40px, -560px); opacity: 0; }
}

/* realm status seal */
.realm { display: flex; gap: 14px; align-items: center; padding: 14px 18px; border-radius: 10px; background: rgba(10, 4, 4, .72);
  border: 1px solid rgba(217, 163, 91, .45); box-shadow: inset 0 1px 0 rgba(255, 210, 127, .08); }
.realm-name { font-family: var(--display); font-weight: 700; color: var(--gold-hi); font-size: 15px; letter-spacing: .05em; }
.realm-state { font-weight: 700; font-size: 18px; }
.is-online .realm-state { color: var(--ok); }
.is-offline .realm-state { color: var(--bad); }
.realm-players { display: block; font-weight: 400; font-size: 15px; color: var(--muted); }
.gem { width: 18px; height: 18px; flex-shrink: 0; transform: rotate(45deg); border-radius: 3px; border: 1px solid #f2d18f; }
.is-online .gem { background: radial-gradient(circle at 35% 35%, #d9ffc6, #4caf3c 60%, #1d4d16); box-shadow: 0 0 12px rgba(120, 220, 90, .6); }
.is-offline .gem { background: radial-gradient(circle at 35% 35%, #ffc2b0, #c4352a 60%, #4a0d08); box-shadow: 0 0 10px rgba(230, 80, 60, .5); }
.realm-big { padding: 18px 22px; }
.realm-big .realm-state { font-size: 22px; }

/* ---------------------------------------------------------------- news */
.post { padding: 20px 0; border-top: 1px solid rgba(217, 163, 91, .18); }
.frame-head + .post, .post:first-of-type { border-top: 0; padding-top: 0; }
.post h3, .post-title { font-size: 21px; color: var(--gold-hi); margin: 4px 0 8px; }
.post h3 a, .post-title a { color: inherit; text-decoration: none; }
.post h3 a:hover, .post-title a:hover { color: var(--ember); }
.post-lead h3 { font-size: 27px; }
.post p:last-child { margin-bottom: 0; }
.meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0; font-size: 14px; color: var(--muted); }
.cat { border: 1px solid; border-radius: 4px; padding: 0 7px; font-size: 13px; font-weight: 700; line-height: 1.6; }
.cat-news { color: var(--parch); border-color: rgba(236, 218, 182, .4); }
.cat-update { color: var(--gold-hi); border-color: rgba(255, 210, 127, .5); }
.cat-event { color: var(--ember); border-color: rgba(255, 154, 87, .55); }
.cat-maint { color: #ff8a78; border-color: rgba(232, 102, 79, .6); }
.pin { color: var(--gold); }
.prose { max-width: 70ch; }
.prose h3 { margin-top: 1.2em; }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: .25em; }
.prose li::marker { color: var(--crimson); }
.post-full h1 { margin: 10px 0 18px; }
.byline { color: var(--muted); font-size: 15px; margin-top: 24px; }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.tabs a { text-decoration: none; color: #fbeedd; font-size: 15px; font-weight: 500; padding: 5px 12px; border-radius: 5px;
  background: linear-gradient(180deg, #4a1510, #2c0c08); border: 1px solid rgba(217, 163, 91, .65); box-shadow: inset 0 1px 0 rgba(255, 200, 160, .15); }
.tabs a:hover { border-color: var(--gold-hi); color: #fff; }
.tabs a[aria-current="page"] { background: linear-gradient(180deg, #a52a1d, #6d130c); border-color: #f2bd6d; color: #fff3d6; }
.pager { display: flex; gap: 6px; margin-top: 20px; }
.pager a { min-width: 36px; text-align: center; padding: 4px 8px; border: 1px solid var(--line); border-radius: 5px; text-decoration: none; }
.pager a[aria-current="page"] { border-color: var(--gold); color: var(--gold-hi); }

/* ---------------------------------------------------------------- sidebar bits */
.balance { margin: 0 0 6px; color: var(--muted); }
.balance-n { font-family: var(--display); font-weight: 700; font-size: 38px; color: var(--gold-hi); line-height: 1; margin-right: 4px; text-shadow: 0 0 18px rgba(255, 140, 60, .35); }
.balance-line { font-size: 18px; }
.balance-line strong { color: var(--gold-hi); font-family: var(--display); }
.vote-mini { list-style: none; margin: 0 0 16px; padding: 0; }
.vote-mini li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px dashed rgba(217, 163, 91, .2); }
.vote-mini li:last-child { border-bottom: 0; }
.ready { color: var(--ok); font-weight: 700; }
.features { list-style: none; margin: 0; padding: 0; }
.features li { position: relative; padding: 6px 0 6px 24px; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0 24px; }
.features li::before { content: ""; position: absolute; left: 4px; top: 15px; width: 8px; height: 8px; transform: rotate(45deg); background: linear-gradient(135deg, var(--gold-hi), var(--crimson)); }
.links-list { padding-left: 1.1em; margin: 0; }
.links-list li { margin-bottom: 8px; }

/* ---------------------------------------------------------------- forms */
.stack { display: grid; gap: 16px; }
label { display: grid; gap: 6px; font-weight: 500; font-size: 15px; color: #e6cfa5; }
input, select, textarea {
  font: 400 17px/1.4 var(--text); color: var(--parch); width: 100%;
  background: var(--well); border: 1px solid #5c3c22; border-radius: 6px; padding: 10px 12px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, .6);
}
textarea { resize: vertical; min-height: 90px; }
input:hover, select:hover, textarea:hover { border-color: var(--line); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: inset 0 2px 4px rgba(0, 0, 0, .6), 0 0 0 3px rgba(217, 163, 91, .25); }
input[aria-invalid="true"] { border-color: var(--bad); }
input[readonly] { color: var(--muted); }
.check { display: flex; align-items: center; gap: 10px; font-weight: 400; color: var(--parch); }
.check input { width: 18px; height: 18px; accent-color: var(--crimson); box-shadow: none; }
.hint { font-weight: 400; font-size: 14px; color: var(--muted); }
.err { font-weight: 500; font-size: 14px; color: #ff9b88; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.grid-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 16px; align-items: end; }
.grid-form .span2 { grid-column: span 2; }
.grid-form .span3 { grid-column: 1 / -1; }
.grid-form.inner { margin-top: 12px; }
details summary { cursor: pointer; color: var(--ember); font-weight: 500; }
.searchbar { display: flex; gap: 8px; }
.searchbar input { width: 260px; }

.auth { display: flex; justify-content: center; }
.auth-card { width: 100%; max-width: 480px; padding: 32px; }
.auth-card h1 { font-size: 30px; }

.flashes { margin-bottom: 20px; }
.flash { padding: 12px 16px; border-radius: 8px; border: 1px solid; margin: 0 0 12px; }
.flash-ok { color: #d8f5cc; border-color: rgba(147, 209, 127, .55); background: rgba(40, 80, 30, .35); }
.flash-error { color: #ffd6cc; border-color: rgba(232, 102, 79, .6); background: rgba(110, 20, 12, .45); }
.flash-info { color: var(--parch); border-color: rgba(217, 163, 91, .45); background: rgba(60, 30, 14, .45); }

/* ---------------------------------------------------------------- tables, stats */
.table { width: 100%; border-collapse: collapse; font-size: 16px; }
.table th { text-align: left; font-weight: 700; color: var(--muted); font-size: 14px; padding: 8px 10px; border-bottom: 1px solid rgba(217, 163, 91, .35); }
.table td { padding: 9px 10px; border-bottom: 1px solid rgba(217, 163, 91, .12); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .actions { text-align: right; white-space: nowrap; }
.table.small td { padding: 5px 8px; font-size: 14px; }
.plus { color: var(--ok); }
.minus { color: #ff9b88; }
.st { font-size: 14px; font-weight: 700; }
.st-delivered { color: var(--ok); }
.st-refunded, .st-failed { color: #ff9b88; }
.st-unconfirmed, .st-pending { color: var(--gold-hi); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 16px 0; }
.stats div { background: rgba(0, 0, 0, .3); border: 1px solid rgba(217, 163, 91, .2); border-radius: 8px; padding: 10px 12px; }
.stats dt { font-size: 14px; color: var(--muted); }
.stats dd { margin: 0; font-family: var(--display); font-weight: 700; font-size: 22px; color: var(--gold-hi); }
.stats-wide { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 0; }
.tag { font-family: var(--text); font-size: 14px; vertical-align: middle; border: 1px solid var(--gold); color: var(--gold); border-radius: 4px; padding: 0 6px; }
.charlist { list-style: none; margin: 0 0 16px; padding: 0; }
.charlist li { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 0; border-bottom: 1px solid rgba(217, 163, 91, .12); }
.charname { font-family: var(--display); font-weight: 600; color: var(--parch); }
.steps { padding-left: 1.4em; margin: 0 0 8px; }
.steps li { margin-bottom: 8px; padding-left: 4px; }
.steps li::marker { color: var(--gold); font-family: var(--display); font-weight: 700; }
.welcome { border-color: rgba(147, 209, 127, .5); }
.empty { text-align: center; padding: 24px 12px; }
.empty h3 { color: var(--gold-hi); }
.empty p { color: var(--muted); }

/* ---------------------------------------------------------------- vote */
.vote-grid, .reward-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; margin-bottom: 8px; }
.vote-card { display: flex; flex-direction: column; margin: 0; }
.vote-card h2 { font-size: 21px; margin-bottom: 2px; }
.vote-card form, .vote-card .btn-block { margin-top: auto; }
.vote-banner { display: block; margin: -8px auto 14px; max-height: 60px; border-radius: 4px; }
.vote-reward { font-family: var(--display); font-weight: 700; color: var(--ember); font-size: 18px; margin-bottom: 4px; }
.vote-card .muted.small { margin-bottom: 16px; }
.wait { color: var(--gold-hi); font-weight: 700; margin-bottom: 10px; }
.is-waiting { border-color: rgba(217, 163, 91, .3); }
.vote-admin .frame-head span { font-size: 15px; }
.help p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------- rewards */
.reward { display: flex; flex-direction: column; margin: 0; padding: 20px; }
.reward-top { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.reward-top h2 { font-size: 18px; margin: 0 0 2px; color: var(--parch); }
.qty { color: var(--gold); font-family: var(--text); font-size: 16px; }
.price { margin: 0; font-weight: 700; color: var(--gold-hi); }
.reward-icon { flex-shrink: 0; width: 60px; height: 60px; display: grid; place-items: center; border-radius: 8px;
  background: radial-gradient(circle at 50% 40%, #3a1a12, #120807); border: 1px solid rgba(217, 163, 91, .6); box-shadow: inset 0 0 0 2px #0c0606, inset 0 0 12px rgba(0, 0, 0, .8); }
.reward-icon img { image-rendering: pixelated; width: 48px; height: 48px; }
.ico { display: block; width: 40px; height: 40px; }
.ico-gold { background: radial-gradient(circle at 38% 34%, #fff1b8, #f4c24e 35%, #b07812 70%, #5e3a05); border-radius: 50%; border: 2px solid #ffe08a; box-shadow: 0 0 12px rgba(255, 200, 80, .45), inset 0 -3px 4px rgba(90, 50, 0, .6); }
.ico-item { width: 30px; height: 30px; transform: rotate(45deg); border: 2px solid var(--gold); background: linear-gradient(135deg, #552014, #1b0907); }
.reward-desc { font-size: 15px; color: #d8c29c; }
.reward-form { display: grid; gap: 10px; margin-top: auto; }
.reward .btn-block, .reward > p:last-child { margin-top: auto; }

.pick-list { list-style: none; margin: 14px 0 0; padding: 0; max-height: 460px; overflow: auto; }
.pick-list a { display: grid; grid-template-columns: 24px 1fr; gap: 2px 10px; align-items: center; text-decoration: none; padding: 6px 4px; border-bottom: 1px solid rgba(217, 163, 91, .12); color: var(--parch); }
.pick-list a:hover { background: rgba(255, 210, 127, .05); }
.pick-list img { grid-row: span 2; image-rendering: pixelated; }
.pick-list .small { grid-column: 2; }

/* ---------------------------------------------------------------- rankings */
.rank-table .rank { font-family: var(--display); font-weight: 700; color: var(--muted); width: 48px; }
.rank-table .top1 .rank { color: #ffd27f; font-size: 20px; }
.rank-table .top2 .rank { color: #e3e0d6; font-size: 18px; }
.rank-table .top3 .rank { color: #e0a070; font-size: 18px; }
.online-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 6px var(--ok); vertical-align: middle; }
.cls { font-size: 15px; }

/* ---------------------------------------------------------------- footer */
.footer { border-top: 1px solid rgba(217, 163, 91, .35); background: linear-gradient(180deg, rgba(10, 4, 4, .9), #070303); padding: 32px 0 28px; margin-top: auto; }
.footer-in { display: grid; grid-template-columns: auto 1fr; gap: 16px 32px; align-items: center; }
.footer-brand { display: flex; gap: 12px; align-items: center; }
.footer-brand strong { font-family: var(--display); color: var(--gold-hi); }
.footer-brand p { margin: 0; font-size: 15px; color: var(--muted); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: flex-end; }
.footer-nav a { color: var(--parch); text-decoration: none; font-size: 15px; }
.footer-nav a:hover { color: var(--gold-hi); }
.fine { grid-column: 1 / -1; margin: 8px 0 0; font-size: 13px; color: #806650; }

/* ---------------------------------------------------------------- admin */
.admin .main { padding-top: 24px; }
.admin-tabs { margin-bottom: 24px; }

/* ---------------------------------------------------------------- small screens */
@media (max-width: 980px) {
  .cols, .cols-even { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .side .frame:last-child { margin-bottom: 24px; }
  .hero-in { grid-template-columns: minmax(0, 1fr); gap: 20px; min-height: 0; padding-top: 28px; text-align: center; }
  .hero-logo img { width: min(300px, 80%); }
  .hero-intro { margin-left: auto; margin-right: auto; }
  .hero-side { display: flex; flex-direction: column; align-items: center; }
  .realm { text-align: left; }
  .hero-actions { justify-content: center; }
}
@media (max-width: 860px) {
  .wrap { padding: 0 16px; }
  .topbar-in { flex-wrap: wrap; gap: 0; min-height: 56px; }
  .brand { flex: 1; min-height: 56px; }
  .brand span { font-size: 14px; }
  .navbtn { display: inline-block; font: 600 15px var(--text); color: var(--parch); background: #2a100c; border: 1px solid var(--line); border-radius: 6px; padding: 7px 14px; cursor: pointer; }
  .js .navarea { display: none; }
  .navarea { flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 8px; padding: 8px 0 16px; }
  .js .navarea.open { display: flex; }
  .mainnav, .usernav { flex-direction: column; align-items: stretch; }
  .mainnav a, .usernav > a:not(.btn), .usernav .linkbtn { padding: 10px 8px; border-bottom: 1px solid rgba(217, 163, 91, .12); text-align: left; width: 100%; }
  .mainnav a[aria-current="page"], .usernav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--crimson); border-radius: 0; }
  .usernav .pts { align-self: flex-start; margin: 4px 0; }
  .usernav .btn { margin-top: 8px; }
  .usernav form { display: block; }
  .frame { padding: 18px; }
  .grid-form { grid-template-columns: minmax(0, 1fr); }
  .grid-form .span2, .grid-form .span3 { grid-column: auto; }
  .footer-in { grid-template-columns: minmax(0, 1fr); }
  .footer-nav { justify-content: flex-start; }
  .table { font-size: 15px; }
  .frame { overflow-x: auto; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .searchbar input { width: 100%; }
  .post-lead h3 { font-size: 23px; }
  .hero-intro { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  .embers { display: none; }
  .hero-logo img { animation: none; }
  * { transition: none !important; }
}

/* inner pages: a faint glimpse of the realm behind the header */
body:not(.home)::before {
  content: ""; position: fixed; left: 0; right: 0; top: 0; height: 560px; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(12, 6, 6, .15) 0%, var(--ink) 92%), url("../img/backdrop.jpg") center top / cover no-repeat;
  opacity: .6;
}
