/* Player panel preview */
.acc-hero { position: relative; isolation: isolate; border-bottom: 1px solid var(--line); padding-block: clamp(32px, 5vw, 56px) 0; overflow: hidden; }
.acc-hero h1 { font-size: clamp(2.2rem, 6vw, 3.8rem); margin-top: 12px; }
.acc-hero h1 em { font-style: italic; font-weight: 500; color: var(--gold-bright); }
.acc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin-top: 14px; font-size: 0.86rem; color: var(--silver-dim); }
/* Log out inside the panel: phones only (wider screens have it in the header). It sits at the right end of the facts line. */
.acc-logout { display: none; margin: 0 0 0 auto; order: 9; }
.acc-logout .chip { padding: 6px 14px; font-family: var(--font-label); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-bright); border-color: rgba(201, 165, 92, 0.5); background: rgba(5, 9, 18, 0.55); }
@media (max-width: 980px) { .acc-logout { display: block; } }
.status-dot.off { background: var(--steel); box-shadow: 0 0 0 4px rgba(95, 109, 138, 0.2); }
.acc-body { padding-top: clamp(28px, 4vw, 44px); }
.acc-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 24px; align-items: start; }
.acc-chars { display: grid; gap: 12px; }
.acc-char { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 16px; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.acc-char .portrait { width: 56px; height: 56px; border-color: var(--line-strong); box-shadow: none; }
.acc-char .who b { display: block; font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; color: #fff; line-height: 1.1; }
.acc-char small { display: block; color: var(--steel); font-size: 0.78rem; }
.acc-char .lv { text-align: right; }
.acc-char .lv b { font-family: var(--font-display); font-size: 1.6rem; color: var(--silver); line-height: 1; }
.acc-char[aria-selected="true"] { border-color: var(--gold); box-shadow: inset 0 0 0 4px rgba(5, 9, 18, 0.9), inset 0 0 0 5px rgba(201, 165, 92, 0.3), 0 0 30px -12px rgba(201, 165, 92, 0.7); }
.acc-char[aria-selected="true"] .portrait { border-color: var(--gold); }
.acc-char[aria-selected="true"] .lv b { color: var(--gold-bright); }
.acc-hint { font-size: 0.8rem; color: var(--steel); }

.acc-sheet { padding: 0; overflow: hidden; }
.sheet-top { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 8px 28px; padding: clamp(18px, 3vw, 28px); background: radial-gradient(420px 300px at 110px 60%, var(--arcane-glow), transparent 70%); }
.sheet-fig { height: 300px; display: flex; align-items: flex-end; justify-content: center; }
.sheet-fig img { height: 100%; width: auto; max-width: 100%; object-fit: contain; filter: drop-shadow(0 16px 16px rgba(0, 0, 0, 0.75)); }
.sheet-id h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
.sheet-id .job { color: var(--silver-dim); margin-top: 4px; }
.sheet-exp { margin-top: 18px; }
.sheet-exp .row { display: flex; justify-content: space-between; font-size: 0.82rem; color: var(--silver-dim); }
.sheet-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 20px; border: 1px solid var(--line); }
.sheet-facts div { padding: 12px 14px; border-left: 1px solid var(--line); border-top: 1px solid var(--line); margin: -1px 0 0 -1px; }
.sheet-facts span { display: block; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--steel); }
.sheet-facts b { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.sheet-facts b img { display: inline-block; vertical-align: -4px; margin-right: 6px; image-rendering: pixelated; }
.sheet-facts .fact-wide { grid-column: span 2; }
.sheet-facts .fact-two { display: flex; flex-direction: column; line-height: 1.3; }
.sheet-facts small { font-weight: 400; font-size: 0.76rem; color: var(--gold-bright); font-variant-numeric: tabular-nums; }
.sheet-facts .fact-animal { display: flex; align-items: center; gap: 10px; margin-top: 2px; min-width: 0; }
.sheet-facts .fact-animal img { flex: none; margin: 0; width: 28px; height: 28px; border: 1px solid var(--line-strong); background: rgba(4, 7, 14, 0.8); }
.sheet-facts .fa-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; font-style: normal; }
.sheet-facts .fa-name { font-style: normal; overflow-wrap: anywhere; }
.sheet-facts .fact-animal small { color: var(--silver-dim); }
.sheet-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.sheet-stats div { padding: 14px 10px; text-align: center; border-left: 1px solid var(--line); }
.sheet-stats div:first-child { border-left: 0; }
.sheet-stats b { display: block; font-family: var(--font-display); font-size: 1.6rem; color: #fff; line-height: 1.1; }
.sheet-stats span { font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--steel); }
.sheet-actions { border-top: 1px solid var(--line); padding: clamp(18px, 3vw, 28px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.act { border: 1px solid var(--line); padding: 14px 16px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 14px; align-items: center; align-content: center; background: rgba(5, 9, 18, 0.45); }
.act-rename { grid-template-columns: minmax(0, 1fr); }
.act.act-rename > * { grid-column: 1 / -1; grid-row: auto; }
.act-rename .hl { color: var(--gold-bright); font-weight: 500; }
.rename-form { display: flex; gap: 8px; margin-top: 6px; }
.rename-form input { flex: 1; min-width: 0; height: 34px; padding: 0 10px; font: inherit; font-size: 0.86rem; color: #fff; background: rgba(4, 7, 14, 0.85); border: 1px solid var(--line-strong); }
.rename-form input:focus { outline: none; border-color: var(--gold); }
.rename-form .btn { grid-column: auto; grid-row: auto; }
.act b { color: #fff; }
.act p { grid-column: 1; font-size: 0.82rem; color: var(--silver-dim); }
.act .btn { grid-column: 2; grid-row: 1 / span 2; }
.act.locked { opacity: 0.6; }
.act .why { grid-column: 1 / -1; font-size: 0.76rem; color: var(--gold); }
.sheet-note { border-top: 1px solid var(--line); padding: 12px clamp(18px, 3vw, 28px); font-size: 0.8rem; color: var(--steel); }

.acc-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.acc-geons { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.acc-geons img { image-rendering: pixelated; }
.acc-geons b { display: block; font-family: var(--font-display); font-size: 1.9rem; color: var(--gold-bright); line-height: 1; }
.acc-geons span { font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--steel); }
.inv-grid { display: grid; grid-template-columns: repeat(auto-fill, 44px); gap: 4px; }
.inv-slot { width: 44px; height: 44px; border: 1px solid var(--line); background: rgba(5, 9, 18, 0.6); display: grid; place-items: center; }
.inv-slot img { width: 32px; height: 32px; image-rendering: pixelated; }
.confirm { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgba(4, 7, 14, 0.78); }
.confirm .tablet { max-width: 420px; width: 100%; }
.confirm h3 { font-size: 1.7rem; }
.confirm p { color: var(--silver); margin-top: 10px; font-size: 0.95rem; }
.confirm .adm-actions, .confirm .row { display: flex; gap: 10px; margin-top: 20px; }
@media (max-width: 900px) {
  .acc-layout, .acc-two { grid-template-columns: minmax(0, 1fr); }
  /* An account has at most three characters, so on narrow screens they are simply listed one under another.
     (They used to sit in a sideways-scrolling row, which cut the cards and their gold corners off at the edges.) */
  .acc-chars { gap: 10px; }
  .acc-char { padding: 12px 14px; }
  .acc-char .who small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .acc-chars .acc-hint { display: none; }
  .sheet-top { grid-template-columns: minmax(0, 1fr); }
  .sheet-fig { height: 200px; }
  .sheet-actions { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- items: equipment, inventory, storage ---------- */
.sheet-gear { border-top: 1px solid var(--line); padding: clamp(18px, 3vw, 28px); display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(18px, 3vw, 32px); align-items: start; }
.gear-title { font-family: var(--font-label); font-weight: 400; font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin: 0 0 12px; display: flex; align-items: baseline; gap: 10px; }
.gear-title small { font-family: var(--font-body); letter-spacing: 0.04em; text-transform: none; color: var(--steel); font-size: 0.78rem; }
.tablet > .gear-title { margin-top: 22px; }
.gear-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 10px 8px; }
.gear-slot { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.gear-label { font-size: 0.66rem; color: var(--steel); text-align: center; line-height: 1.2; letter-spacing: 0.02em; }
.gear-slot.filled .gear-label { color: var(--silver-dim); }
.item-grid { display: grid; grid-template-columns: repeat(auto-fill, 48px); gap: 6px; }

.item-cell {
  position: relative; width: 48px; height: 48px; padding: 0; display: grid; place-items: center; cursor: help;
  font: inherit; color: var(--silver-dim);
  background: linear-gradient(160deg, rgba(23, 33, 58, 0.9), rgba(6, 10, 20, 0.95));
  border: 1px solid var(--line-strong); box-shadow: inset 0 0 0 2px rgba(4, 7, 14, 0.9);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.item-cell img { width: 32px; height: 32px; image-rendering: pixelated; display: block; }
.item-cell:hover, .item-cell:focus-visible, .item-cell[aria-expanded="true"] { border-color: var(--gold); box-shadow: inset 0 0 0 2px rgba(4, 7, 14, 0.9), 0 0 14px -2px rgba(201, 165, 92, 0.55); transform: translateY(-1px); outline: none; }
.item-cell.empty { cursor: default; opacity: 0.45; border-style: dashed; }
.item-cell.empty:hover { transform: none; border-color: var(--line-strong); box-shadow: inset 0 0 0 2px rgba(4, 7, 14, 0.9); }
.item-glyph { font-family: var(--font-label); font-size: 1.1rem; color: var(--steel); }
.item-qty, .item-up { position: absolute; font-size: 0.66rem; line-height: 1; font-variant-numeric: tabular-nums; text-shadow: 0 0 3px #000, 0 0 2px #000; pointer-events: none; }
.item-qty { right: 3px; bottom: 3px; color: #fff; }
.item-up { left: 3px; top: 3px; color: #f3e36b; }
.item-cell.tone-prefix { border-color: rgba(127, 227, 107, 0.45); }
.item-cell.tone-bonus { border-color: rgba(243, 227, 107, 0.45); }
.item-cell.tone-both { border-color: rgba(111, 168, 255, 0.6); }

/* tooltip contents for items (the panel itself is .item-tip in site.css) */
.item-tip .tip-name.tone-plain { color: #fff; }
.item-tip .tip-name.tone-prefix { color: #7fe36b; }
.item-tip .tip-name.tone-bonus { color: #f3e36b; }
.item-tip .tip-name.tone-both { color: #6fa8ff; }
.item-tip dd.eb, .item-tip .tip-line.eb { color: #ff7a6b; }
.item-tip .tip-line { margin: 2px 0; }
.item-tip .tip-line.muted { color: var(--silver-dim); }
.item-tip .tip-line.mix { color: #c79bff; }
.item-tip .tip-line.dss { color: var(--gold-bright); }
.item-tip .tip-line.note { color: #c79bff; font-size: 0.78rem; }
.item-tip .tip-line.warn { color: var(--ember); }
.item-tip .tip-desc { margin: 0; color: var(--silver-dim); font-size: 0.8rem; }
#item-tip { width: 252px; }

@media (max-width: 900px) { .sheet-gear { grid-template-columns: minmax(0, 1fr); } }

/* ---------- public character page (from the rankings) ---------- */
.char-page { padding-top: clamp(96px, 12vw, 130px); }
.back-link { display: inline-block; margin-bottom: 16px; color: var(--silver-dim); font-size: 0.86rem; text-decoration: none; }
.back-link:hover { color: var(--gold-bright); }
.char-page .wrap { max-width: 940px; }
.char-sheet .sheet-top { grid-template-columns: minmax(0, 240px) minmax(0, 1fr); }
.char-page h2.gear-title { font-family: var(--font-label); font-size: 0.82rem; letter-spacing: 0.16em; line-height: 1.4; margin: 0 0 12px; color: var(--gold); }
.char-name { font-family: var(--font-display); font-weight: 500; font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.05; margin: 4px 0 6px; color: #fff; }
.char-gear { margin-top: 22px; }
.char-gear .gear-slots { grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); }@media (max-width: 520px) { .sheet-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sheet-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } .sheet-stats div:nth-child(4) { border-left: 0; } .sheet-stats div:nth-child(n+4) { border-top: 1px solid var(--line); } }.sheet-deeds { grid-template-columns: minmax(0, 1fr); } .gear-title small a { color: var(--silver-dim); }

/* account history on phones: one compact entry per row */
.hist-table td.h-when { white-space: nowrap; }
@media (max-width: 640px) {
  .hist-table thead { display: none; }
  .hist-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 12px 16px; border-top: 1px solid var(--line); }
  .hist-table tbody tr:first-child { border-top: 0; }
  .hist-table td { padding: 0; border: 0; }
  .hist-table td.h-when, .hist-table td.h-ip { font-size: 0.74rem; color: var(--steel); }
  .hist-table td.h-ip { text-align: right; }
  .hist-table td.h-what { grid-column: 1 / -1; grid-row: 2; color: #fff; }
}
.char-deeds { margin-top: 24px; }
.char-page h2.gear-title small a { color: var(--silver-dim); }
.item-tip dd.time { color: #f3c96b; }
.sheet-actions .act-rename { grid-column: 1 / -1; }

/* ---------- character market ---------- */
.mk-bar { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 20px; }
.mk-bar .acc-geons { flex: 1 1 260px; margin: 0; }
.mk-slots { flex: 0 1 220px; display: flex; flex-direction: column; justify-content: center; padding: 12px 18px; border: 1px solid var(--line); background: rgba(5, 9, 18, 0.5); }
.mk-slots b { font-family: var(--font-display); font-size: 1.6rem; color: #fff; font-weight: 500; line-height: 1; }
.mk-slots span { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--steel); margin-top: 4px; }
.mk-h { margin-top: 26px; }
.mk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 12px; }
.mk-card { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 16px; text-decoration: none; color: inherit; transition: transform 0.15s ease, border-color 0.15s ease; }
.mk-card:hover { transform: translateY(-2px); border-color: var(--gold); }
.mk-card .portrait { width: 56px; height: 56px; }
.mk-who { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mk-who b { color: #fff; font-size: 1rem; font-weight: 500; }
.mk-who small { color: var(--silver-dim); font-size: 0.78rem; }
.mk-about { font-style: italic; font-family: var(--font-display); color: var(--silver-dim); font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-price { display: grid; grid-template-columns: auto auto; align-items: center; justify-items: end; column-gap: 6px; text-align: right; }
.mk-price b { font-family: var(--font-display); font-size: 1.25rem; color: var(--gold-bright); font-weight: 500; }
.mk-price small { grid-column: 1 / -1; font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--steel); }
.mk-price.big { display: flex; gap: 8px; align-items: baseline; }
.mk-price.big b { font-size: 2rem; }
.mk-empty { margin: 0; }
.mk-two { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; margin-top: 26px; align-items: start; }
.mk-sell, .mk-mine, .mk-sales { padding: 20px 22px; }
.mk-sell form { display: grid; gap: 12px; }
.mk-sell select, .mk-sell textarea { width: 100%; font: inherit; color: #fff; background: rgba(4, 7, 14, 0.85); border: 1px solid var(--line-strong); padding: 10px 12px; }
.mk-sell .btn { justify-self: start; }
.mk-mine-row, .mk-sale { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.mk-mine-row b, .mk-sale b { color: #fff; font-weight: 500; }
.mk-mine-row small { display: block; color: var(--silver-dim); font-size: 0.78rem; }
.mk-sale small { color: var(--steel); font-size: 0.74rem; margin-left: 6px; }
.mk-sales { margin-bottom: 20px; border-color: rgba(79, 191, 140, 0.5); }
.mk-rules { border: 0; padding: 12px 0 0; }
.mk-view .back-link { margin-bottom: 14px; }
.mk-quote { font-family: var(--font-display); font-style: italic; color: var(--silver); font-size: 1.1rem; margin: 10px 0 0; }
.mk-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin: 18px 0 6px; padding: 14px 0; border-block: 1px solid var(--line); }
.mk-buy .why { color: var(--gold); font-size: 0.86rem; }
@media (max-width: 760px) { .mk-two { grid-template-columns: minmax(0, 1fr); } .mk-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- market rows: the wide banner ---------- */
.mk-rows { display: flex; flex-direction: column; gap: 12px; }
.mk-row { position: relative; display: grid; grid-template-columns: 200px minmax(0, 1fr) 210px; min-height: 150px; border: 1px solid var(--line-strong); background: rgba(5, 9, 18, 0.9); overflow: hidden; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.mk-row:hover { border-color: var(--gold); box-shadow: 0 14px 34px -18px rgba(201, 165, 92, 0.6); }
.mk-row.mine { border-style: dashed; }
.mk-art { position: relative; overflow: hidden; background: radial-gradient(circle at 60% 80%, rgba(201, 165, 92, 0.3), transparent 60%), linear-gradient(90deg, #0f1930, #070c19); }
.mk-art img { position: absolute; left: 50%; bottom: -30px; transform: translateX(-50%); height: 220px; max-width: none; filter: drop-shadow(0 10px 10px #000); transition: transform 0.3s ease; }
.mk-row:hover .mk-art img { transform: translateX(-50%) scale(1.04); }
.mk-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 60%, rgba(5, 9, 18, 0.95)); }
.mk-mid { padding: 16px 20px; display: flex; flex-direction: column; justify-content: center; gap: 8px; min-width: 0; }
.mk-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.mk-link { font-family: var(--font-display); font-size: 1.7rem; font-weight: 500; line-height: 1.1; color: #fff; text-decoration: none; }
.mk-link:hover { color: var(--gold-bright); }
.mk-name > span { font-family: var(--font-label); color: var(--gold); letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.82rem; }
.mk-tag { font-style: normal; font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--silver-dim); border: 1px solid var(--line-strong); padding: 2px 7px; }
.mk-job { color: var(--silver-dim); font-size: 0.84rem; }
.mk-gear { display: flex; flex-wrap: wrap; gap: 5px; }
.mk-gear .item-cell { width: 40px; height: 40px; }
.mk-gear .item-cell img { width: 28px; height: 28px; }
.mk-note { font-family: var(--font-display); font-style: italic; color: var(--silver-dim); font-size: 1rem; overflow-wrap: anywhere; }
.mk-side { padding: 16px 20px; display: flex; flex-direction: column; justify-content: center; align-items: flex-end; gap: 10px; border-left: 1px solid var(--line); background: linear-gradient(90deg, transparent, rgba(201, 165, 92, 0.07)); text-align: right; }
.mk-animal { display: flex; align-items: center; gap: 6px; font-size: 0.78rem; color: var(--silver-dim); }
.mk-animal img { width: 22px; height: 22px; image-rendering: pixelated; }
.mk-cost { display: flex; align-items: center; gap: 7px; }
.mk-cost img { width: 20px; height: 20px; }
.mk-cost b { font-family: var(--font-display); font-size: 1.6rem; font-weight: 500; color: var(--gold-bright); line-height: 1; }
.mk-side .btn { padding: 8px 18px; white-space: nowrap; }

/* tablets: the side panel moves under the details */
@media (max-width: 900px) {
  .mk-row { grid-template-columns: 150px minmax(0, 1fr); }
  .mk-art img { height: 190px; }
  .mk-side { grid-column: 2; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; border-left: 0; border-top: 1px solid var(--line); padding: 12px 20px; }
}
/* phones: a short art strip on top, everything else stacked */
@media (max-width: 560px) {
  .mk-row { grid-template-columns: minmax(0, 1fr); }
  .mk-art { height: 120px; }
  .mk-art img { height: 170px; bottom: -50px; }
  .mk-art::after { background: linear-gradient(180deg, transparent 50%, rgba(5, 9, 18, 0.95)); }
  .mk-mid { padding: 12px 16px; }
  .mk-link { font-size: 1.45rem; }
  .mk-gear .item-cell { width: 36px; height: 36px; }
  .mk-gear .item-cell img { width: 26px; height: 26px; }
  .mk-side { grid-column: 1; padding: 12px 16px; }
  .mk-side .btn { flex: 1 0 100%; text-align: center; }
}

/* ---------- donations ---------- */
.dn-packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.dn-pack { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 26px 18px 22px; margin: 0; }
.dn-pack.best { border-color: var(--gold); box-shadow: 0 0 0 1px rgba(201, 165, 92, 0.25), 0 14px 40px rgba(201, 165, 92, 0.08); }
.dn-price { font-family: var(--font-display); font-size: 1rem; color: var(--silver-dim); letter-spacing: 0.06em; }
.dn-price b { font-size: 2.3rem; color: #fff; font-weight: 600; letter-spacing: 0; }
.dn-get { color: var(--gold-bright); font-size: 0.95rem; }
.dn-get b { font-weight: 600; }
.dn-pack .btn { margin-top: 6px; width: 100%; justify-content: center; }
.dn-note { margin: 14px 0 34px; }
.dn-st.ok { color: #7fd6a0; }
.dn-st.warn { color: var(--gold-bright); }
@media (max-width: 560px) {
  .dn-packs { grid-template-columns: minmax(0, 1fr); }
  .dn-pack { flex-direction: row; flex-wrap: wrap; justify-content: space-between; text-align: left; padding: 16px; }
  .dn-pack .btn { width: 100%; }
  .dn-price b { font-size: 1.7rem; }
}
.dn-bonus { font-size: 0.78rem; color: var(--silver-dim); min-height: 1.3em; }
.dn-bonus b { color: #7fd6a0; font-weight: 600; }
@media (max-width: 560px) { .dn-bonus.none { display: none; } .dn-bonus { flex-basis: 100%; text-align: right; margin-top: -6px; } }

/* ---------- vote rewards: "the road" (three steps on the left, reward and record on the right) ---------- */
.vt { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.vt-road, .vt-prize, .vt-count, .vt-log { margin: 0; }
.vt-road h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); margin: 0 0 6px; }
.vt-road > p { color: var(--silver-dim); margin: 0 0 26px; }
.vt-steps { list-style: none; margin: 0; padding: 0; position: relative; }
.vt-steps::before { content: ""; position: absolute; left: 21px; top: 22px; bottom: 22px; width: 1px; background: linear-gradient(180deg, var(--gold), rgba(201, 165, 92, 0.15)); }
.vt-steps li { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 18px; padding-bottom: 26px; }
.vt-steps li:last-child { padding-bottom: 0; }
.vt-n { position: relative; width: 44px; height: 44px; display: grid; place-items: center; transform: rotate(45deg); border: 1px solid var(--line-strong); background: var(--midnight); }
.vt-n b { transform: rotate(-45deg); font-family: var(--font-label); font-size: 1rem; font-weight: 400; color: var(--silver-dim); }
.vt-steps li.now .vt-n { border-color: var(--gold-bright); background: #2a2616; box-shadow: 0 0 22px rgba(201, 165, 92, 0.45); }
.vt-steps li.now .vt-n b { color: var(--gold-bright); }
.vt-steps h3 { font-family: var(--font-label); font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.86rem; color: var(--silver-dim); margin: 4px 0 4px; }
.vt-steps li.now h3 { color: #fff; }
.vt-steps p { margin: 0; color: var(--silver-dim); font-size: 0.92rem; }
.vt-steps form { margin: 14px 0 0; }
.vt-steps .vt-why { margin-top: 10px; font-size: 0.84rem; color: var(--gold-bright); }
.vt-ok { color: var(--jade); font-weight: 500; }
.vt-warn { color: var(--gold); font-weight: 500; }
.vt-steps .vt-done { margin-top: 12px; padding: 9px 14px; border: 1px solid rgba(111, 194, 154, 0.35); background: rgba(111, 194, 154, 0.08); color: var(--silver); display: inline-block; }
.vt-done b { color: var(--jade); font-weight: 500; }
.vt-side { display: grid; gap: 20px; }
.vt-prize { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 18px; align-items: center; }
.vt-slot { width: 84px; height: 84px; display: grid; place-items: center; border: 1px solid var(--gold); background: radial-gradient(circle at 50% 40%, rgba(201, 165, 92, 0.22), rgba(5, 9, 18, 0.7)); box-shadow: inset 0 0 0 4px rgba(5, 9, 18, 0.8), inset 0 0 0 5px rgba(201, 165, 92, 0.35); }
.vt-slot img { image-rendering: pixelated; }
.vt-gift { position: relative; width: 40px; height: 34px; margin-top: 8px; border: 2px solid var(--gold-bright); background: linear-gradient(180deg, rgba(236, 211, 152, 0.28), rgba(125, 95, 40, 0.3)); }
.vt-gift::before { content: ""; position: absolute; left: -6px; right: -6px; top: -10px; height: 10px; border: 2px solid var(--gold-bright); background: rgba(236, 211, 152, 0.35); }
.vt-gift::after { content: ""; position: absolute; left: 50%; top: -10px; bottom: 0; width: 8px; transform: translateX(-50%); background: var(--gold-bright); opacity: 0.85; }
.vt-prize small { display: block; font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.vt-prize b { display: block; font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; color: #fff; line-height: 1.15; overflow-wrap: anywhere; }
.vt-prize span { color: var(--silver-dim); font-size: 0.88rem; }
.vt-count { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.vt-count b { font-family: var(--font-display); font-size: 3.4rem; font-weight: 600; color: var(--gold-bright); line-height: 1; }
.vt-count span { display: block; font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--steel); }
.vt-count p { margin: 2px 0 0; color: var(--silver); }
.vt-log ul { list-style: none; margin: 0; padding: 0; }
.vt-log li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 0.9rem; color: var(--silver); }
.vt-log li:first-child { border-top: 0; }
.vt-st { color: var(--silver-dim); text-align: right; }
.vt-st.ok { color: var(--jade); }
.vt-st.warn { color: var(--gold-bright); }
.vt-log .empty-state { padding: 22px 8px 12px; }
@media (max-width: 860px) { .vt { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .vt-steps .btn { width: 100%; justify-content: center; } .vt-count b { font-size: 2.6rem; } }
