/* Account panel — parchment & gold, in the spirit of hyjal.gg. Loaded only by /account, so the
   theme lives on the .acct body class and shared components are overridden with a single .acct scope. */
.acct {
  --acct-bg: #12140e;
  --panel: rgba(31, 35, 24, 0.86);
  --panel-2: rgba(20, 23, 15, 0.9);
  --parch: #f0e5cc;
  --parch-2: #b9ae93;
  --muted: var(--parch-2);          /* style.css .muted picks this up */
  --gold: #d4ab5d;
  --gold-soft: #e4d5ad;
  --hair: rgba(212, 171, 93, 0.22);
  --hair-2: rgba(212, 171, 93, 0.4);
  --red: #a5342a;
  --red-2: #7d241c;
  --serif: Cinzel, Georgia, serif;
  background: var(--acct-bg);
  color: var(--parch);
}

/* warm background art instead of the blue homepage scene */
.acct .backdrop .bg.on {
  animation: none;
  background:
    radial-gradient(55% 50% at 72% 12%, rgba(168, 126, 52, 0.28), transparent 70%),
    radial-gradient(50% 55% at 12% 82%, rgba(58, 84, 56, 0.35), transparent 72%),
    radial-gradient(35% 30% at 45% 95%, rgba(120, 74, 34, 0.22), transparent 70%),
    linear-gradient(168deg, #1c2116, #0d100a 78%);
}
.acct .backdrop .shade {
  background:
    linear-gradient(180deg, rgba(9, 11, 7, 0.88), rgba(9, 11, 7, 0.45) 32%, rgba(9, 11, 7, 0.92)),
    radial-gradient(80% 60% at 50% 0%, rgba(0, 0, 0, 0), rgba(9, 11, 7, 0.6));
}

/* ------------------------------------------------------------------ top bar (exactly the base header) */
/* no sticky, no own background: the artwork above and behind the stone bar stays visible, as on the home page */
.acct .top-actions { margin-left: 8px; display: flex; }
.inline { display: inline; margin: 0; }

/* ------------------------------------------------------------------ layout */
.acct-main { max-width: 1120px; margin: 0 auto; padding: 26px clamp(16px, 4vw, 40px) 72px; }
.acct-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 22px; align-items: start; }
.acct-side { position: sticky; top: 78px; display: grid; gap: 14px; }
.acct-content { min-width: 0; display: grid; gap: 18px; }

/* ------------------------------------------------------------------ panels */
.panel {
  background: var(--panel);
  border: 1px solid var(--hair);
  border-radius: 6px;
  padding: 22px 24px 24px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(212, 171, 93, 0.06);
  backdrop-filter: blur(12px);
}
.eyebrow { display: block; font-size: 9.5px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.display {
  margin: 0 0 8px; font-family: var(--serif); font-weight: 600; font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  line-height: 1.25; color: var(--gold-soft);
}
.eyebrow + .display { margin-top: 8px; }
.panel > .muted { margin: 0 0 18px; font-size: 0.92rem; }
.fine { margin: 14px 0 0; font-size: 12px; }

/* ------------------------------------------------------------------ sidebar */
.side-card { background: var(--panel-2); border: 1px solid var(--hair); border-radius: 6px; padding: 16px 18px; display: grid; gap: 6px; }
/* identity and ticket subjects are plain text: keep the serif for names and headings only */
.side-name { font-size: 13px; letter-spacing: 0.02em; color: var(--gold-soft); overflow-wrap: anywhere; }
.side-nav { display: grid; border: 1px solid var(--hair); border-radius: 6px; overflow: hidden; background: var(--panel-2); }
.side-nav a {
  padding: 12px 16px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--parch-2); text-decoration: none; border-left: 2px solid transparent; border-top: 1px solid rgba(212, 171, 93, 0.12);
}
.side-nav a:first-child { border-top: 0; }
.side-nav a:hover { color: var(--gold-soft); background: rgba(212, 171, 93, 0.07); text-decoration: none; }
.side-nav a.on { color: var(--gold-soft); border-left-color: var(--gold); background: rgba(212, 171, 93, 0.1); }

/* ------------------------------------------------------------------ buttons & pills */
.acct .btn { border-radius: 4px; border-color: var(--hair-2); color: var(--parch); background: rgba(212, 171, 93, 0.06); }
.acct .btn:hover { background: rgba(212, 171, 93, 0.14); }
.acct .btn.primary {
  background: linear-gradient(180deg, var(--red), var(--red-2));
  border: 1px solid rgba(212, 171, 93, 0.5);
  color: #f8eed6; box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 235, 200, 0.14);
  text-transform: uppercase; letter-spacing: 0.09em; font-size: 12.5px; font-weight: 700; padding: 13px 22px;
}
.acct .btn.primary:hover { background: linear-gradient(180deg, #b93c30, #8a2a20); }
.acct .btn.outline { background: rgba(0, 0, 0, 0.35); }
.acct .btn.small { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; padding: 7px 13px; }

.acct .pill { padding: 6px 12px; border-radius: 4px; border: 1px solid var(--hair-2); color: var(--parch-2); font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.acct .pill:hover { color: var(--gold-soft); border-color: var(--gold); text-decoration: none; }
.scope-pill {
  padding: 7px 13px; border-radius: 4px; border: 1px solid var(--hair); text-decoration: none;
  color: var(--parch-2); font-size: 11.5px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
}
.scope-pill:hover { color: var(--gold-soft); border-color: var(--hair-2); text-decoration: none; }
.scope-pill.on { color: #1a1409; border-color: var(--gold); background: linear-gradient(180deg, var(--gold-soft), var(--gold)); }

/* ------------------------------------------------------------------ forms */
.acct label { color: var(--gold-soft); font-size: 12.5px; font-weight: 600; letter-spacing: 0.03em; }
.acct input, .acct select, .acct textarea {
  font: 14.5px Inter, system-ui, sans-serif; color: var(--parch);
  background: #0e110a; border: 1px solid var(--hair); border-radius: 4px; padding: 12px 14px;
}
.acct input:focus, .acct select:focus, .acct textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212, 171, 93, 0.18); }
.acct textarea { resize: vertical; min-height: 120px; }
.login-panel { max-width: 460px; margin: 5vh auto 0; }
.login-panel form, .stack { display: grid; gap: 14px; }
.stack { margin-top: 16px; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.actions { display: flex; justify-content: flex-end; }

/* ------------------------------------------------------------------ notices */
.flash { margin: 0; padding: 11px 15px; border-radius: 4px; font-size: 13.5px; border: 1px solid var(--hair-2); }
.flash.good { color: #cfe8c4; background: rgba(90, 140, 80, 0.16); border-color: rgba(140, 190, 120, 0.4); }
.flash.bad { color: #ffd9d2; background: rgba(165, 52, 42, 0.18); border-color: rgba(196, 92, 78, 0.5); }
.note {
  margin: 16px 0 0; padding: 11px 14px; border-radius: 4px; font-size: 12.5px; color: var(--gold-soft);
  background: rgba(212, 171, 93, 0.08); border: 1px solid rgba(212, 171, 93, 0.28);
}

/* ------------------------------------------------------------------ characters */
.char-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.char {
  border: 1px solid var(--hair); border-radius: 4px; padding: 14px 15px; display: grid; gap: 5px;
  background: linear-gradient(180deg, rgba(212, 171, 93, 0.07), rgba(0, 0, 0, 0.18));
  transition: border-color 0.15s, transform 0.15s;
}
.char:hover { border-color: var(--hair-2); transform: translateY(-2px); }
.char-top { display: flex; align-items: center; justify-content: space-between; }
.lvl {
  min-width: 30px; height: 24px; padding: 0 7px; display: inline-grid; place-items: center; border-radius: 3px;
  font-size: 12px; font-weight: 700; color: #1a1409; background: linear-gradient(180deg, var(--gold-soft), var(--gold));
}
.char .state { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--parch-2); }
.char.on .state { color: #9ed48a; }
.char-name { font-family: var(--serif); font-size: 1rem; letter-spacing: 0.02em; overflow-wrap: anywhere; }
.char small { font-size: 12px; }

/* ------------------------------------------------------------------ settings */
.scope { display: flex; flex-wrap: wrap; gap: 7px; }
form.settings { margin-top: 18px; display: grid; gap: 14px; }
fieldset.group { border: 1px solid var(--hair); border-radius: 4px; padding: 6px 16px 12px; margin: 0; background: var(--panel-2); }
fieldset.group legend { padding: 0 8px; font-size: 9.5px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; padding: 12px 0; border-top: 1px solid rgba(212, 171, 93, 0.13); }
.row:first-of-type { border-top: 0; }
.rowtext { display: flex; flex-direction: column; flex: 1 1 240px; min-width: 0; }
.rowtext strong { font-size: 14px; font-weight: 600; color: var(--parch); }
.rowtext small { font-size: 11.5px; }
.choices { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; }
.choice span {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; padding: 7px 11px;
  border-radius: 3px; border: 1px solid var(--hair); color: var(--parch-2); font-size: 12px; font-weight: 600; cursor: pointer;
  transition: color 0.12s, border-color 0.12s, background 0.12s;
}
.choice span:hover { color: var(--gold-soft); border-color: var(--hair-2); }
.choice input:checked + span { color: #1a1409; border-color: var(--gold); background: linear-gradient(180deg, var(--gold-soft), var(--gold)); }
.choice input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ------------------------------------------------------------------ support */
ul.tickets { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
ul.tickets li { border: 1px solid var(--hair); border-radius: 4px; padding: 14px 16px; background: var(--panel-2); }
.ticket-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ticket-head strong { flex: 1; font-size: 14px; font-weight: 600; color: var(--parch); }
ul.tickets p { margin: 8px 0 0; font-size: 13.5px; }
.tag {
  font-size: 9.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 3px; border: 1px solid var(--hair-2); color: var(--parch-2);
}
.tag.open { color: var(--gold-soft); background: rgba(212, 171, 93, 0.1); }
.tag.answered { color: #b6e2a4; border-color: rgba(140, 190, 120, 0.45); background: rgba(90, 140, 80, 0.12); }
.tag.closed { opacity: 0.75; }
.answer { border-left: 2px solid var(--gold); padding-left: 11px; color: var(--parch); }

/* ------------------------------------------------------------------ shop & admin */
.balance { display: flex; align-items: baseline; gap: 12px; margin: 0 0 18px; }
.balance strong { font-family: var(--serif); font-size: 1.9rem; color: var(--gold-soft); }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.shop-item {
  border: 1px solid var(--hair); border-radius: 4px; padding: 14px 15px; display: grid; gap: 8px; align-content: start;
  background: linear-gradient(180deg, rgba(212, 171, 93, 0.07), rgba(0, 0, 0, 0.18));
}
.shop-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.shop-head strong { font-size: 14px; }
.shop-item small { font-size: 12px; }
.buy { display: flex; gap: 8px; align-items: center; margin: 0; }
.buy select { flex: 1; min-width: 0; padding: 8px 10px; font-size: 13px; }
.buy .btn { padding: 8px 14px; }
.target-picker { margin: 0 0 14px; }
.target-picker label { max-width: 420px; }
.target-picker select { padding: 9px 12px; font-size: 13px; }
.grid-table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 13.5px; }
.grid-table th {
  text-align: left; padding: 8px 10px; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); border-bottom: 1px solid var(--hair);
}
.grid-table td { padding: 9px 10px; border-bottom: 1px solid rgba(212, 171, 93, 0.12); }

@media (max-width: 900px) {
  .acct-grid { grid-template-columns: 1fr; }
  /* the scrolling shortcut bar must not widen the page */
  .acct-side { position: static; min-width: 0; }
  .side-nav { max-width: 100%; }
  .side-nav { grid-auto-flow: column; overflow-x: auto; }
  .side-nav a { border-top: 0; border-left: 0; border-bottom: 2px solid transparent; white-space: nowrap; flex: 0 0 auto; }
  .side-nav a.on { border-bottom-color: var(--gold); border-left-color: transparent; }
  .panel { padding: 18px 16px 20px; }
  .rowtext { flex: 1 1 100%; }
}

/* ------------------------------------------------------------------ shop: icons, quality, hover tooltips */
/* item quality colours (the game's own scale) */
.q0 { color: #9d9d9d; }
.q1 { color: #ffffff; }
.q2 { color: #3ef23e; }
.q3 { color: #5aa9ff; }
.q4 { color: #c77cff; }
.q5 { color: #ff9a3c; }
.q6 { color: #f2d98d; }

/* the category tabs above the catalogue: a thin gold-framed rail, one gold chip for the open group */
.shop-tabs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin: 22px 0 6px; padding: 7px;
  border: 1px solid var(--hair); border-radius: 6px;
  background: linear-gradient(180deg, rgba(28, 32, 21, 0.9), rgba(15, 18, 12, 0.95));
  box-shadow: inset 0 1px 0 rgba(240, 229, 204, 0.05), 0 12px 26px rgba(0, 0, 0, 0.35);
}
.shop-tab {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 16px; border: 1px solid transparent; border-radius: 4px;
  background: none; color: var(--parch-2); cursor: pointer; white-space: nowrap;
  font: 600 12px/1 var(--serif); letter-spacing: 0.09em; text-transform: uppercase;
  transition: color 0.15s, background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.shop-tab:hover { color: var(--parch); border-color: var(--hair); background: rgba(212, 171, 93, 0.08); }
.shop-tab:focus-visible { outline: 1px solid var(--gold); outline-offset: 2px; }
.shop-tab.on {
  color: #1a1409; border-color: var(--gold);
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.shop-tab .n {
  display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 7px;
  border: 1px solid var(--hair-2); border-radius: 999px;
  background: rgba(0, 0, 0, 0.45); color: var(--gold-soft);
  font: 700 11px/1 Inter, system-ui, sans-serif; letter-spacing: 0;
}
.shop-tab.on .n { color: #1a1409; background: rgba(26, 20, 9, 0.14); border-color: rgba(26, 20, 9, 0.35); }
@media (max-width: 640px) {
  .shop-tabs { padding: 6px; border-radius: 4px; gap: 6px; }
  .shop-tab { padding: 8px 11px; gap: 6px; font-size: 11px; letter-spacing: 0.06em; }
}

.shop-section { margin-top: 20px; }
.shop-section > .eyebrow { display: block; margin-bottom: 9px; }
.shop-grid { grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)); }
.shop-item {
  position: relative;
  display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; align-items: start;
  padding: 12px 13px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.shop-item:hover, .shop-item:focus-within { border-color: var(--hair-2); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45); outline: none; }
.shop-body { display: grid; gap: 6px; min-width: 0; }
.shop-tile {
  width: 56px; height: 56px; flex: 0 0 auto;
  display: grid; place-items: center; overflow: hidden;
  border: 1px solid var(--hair-2); border-radius: 4px;
  background: rgba(0, 0, 0, 0.5); box-shadow: inset 0 0 14px rgba(0, 0, 0, 0.65);
}
.shop-tile img { width: 100%; height: 100%; display: block; object-fit: cover; }
.shop-glyph { font-family: var(--serif); font-size: 20px; color: var(--gold-soft); }
.shop-tile.q2 { border-color: rgba(62, 242, 62, 0.45); }
.shop-tile.q3 { border-color: rgba(90, 169, 255, 0.5); }
.shop-tile.q4 { border-color: rgba(199, 124, 255, 0.55); }
.shop-tile.q5 { border-color: rgba(255, 154, 60, 0.55); }
.shop-tile.q6 { border-color: rgba(242, 217, 141, 0.6); }
/* the price badge sits on the gold gradient of .lvl, so its text has to be dark ink */
.shop-head .lvl { font-family: var(--serif); font-size: 13px; font-weight: 700; color: #1a1409; white-space: nowrap; }
.shop-item .tag { justify-self: start; }

/* the tooltip: sits above the tile so it never covers its own buy button */
.item-tip {
  position: absolute; left: 0; right: 0; bottom: calc(100% + 8px); z-index: 30;
  display: grid; gap: 3px; padding: 11px 13px;
  border: 1px solid var(--hair-2); border-radius: 4px;
  background: rgba(11, 13, 8, 0.97); box-shadow: 0 20px 44px rgba(0, 0, 0, 0.65);
  font-size: 12px; line-height: 1.45; color: var(--parch-2);
  opacity: 0; visibility: hidden; transform: translateY(4px);
  transition: opacity 0.12s ease, transform 0.12s ease, visibility 0.12s;
  pointer-events: none;
}
.shop-item:hover .item-tip, .shop-item:focus-within .item-tip { opacity: 1; visibility: visible; transform: none; }
.item-tip strong { font-size: 13px; font-weight: 600; }
.item-tip .tip-foot {
  margin-top: 5px; padding-top: 6px; border-top: 1px solid rgba(212, 171, 93, 0.25);
  color: var(--gold-soft); font-weight: 600;
}

/* ------------------------------------------------------------------ shop: rotating offer */
.offer-panel {
  position: relative; overflow: hidden;
  border-color: var(--hair-2);
  background: linear-gradient(135deg, rgba(212, 171, 93, 0.16), rgba(0, 0, 0, 0.32) 62%);
}
.offer-badge {
  position: absolute; top: 0; right: 0; padding: 5px 12px;
  font-size: 9.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: #1a1409; background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  border-bottom-left-radius: 4px;
}
.offer-body { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 8px 0 14px; }
.offer-icon {
  width: 64px; height: 64px; flex: 0 0 auto; display: grid; place-items: center; overflow: hidden;
  border: 1px solid var(--hair-2); border-radius: 4px; background: rgba(0, 0, 0, 0.5);
  box-shadow: inset 0 0 16px rgba(0, 0, 0, 0.7);
}
.offer-icon img { width: 100%; height: 100%; display: block; object-fit: cover; }
.offer-text { display: grid; gap: 3px; flex: 1 1 200px; min-width: 0; }
.offer-text strong { font-size: 1.05rem; }
.offer-price { display: flex; align-items: baseline; gap: 8px; font-size: 13px; }
.offer-price s { opacity: 0.65; }
.offer-price strong { font-family: var(--serif); font-size: 1.3rem; color: var(--gold-soft); }
.offer-off {
  padding: 2px 7px; border-radius: 3px; color: #1a1409;
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
}
.offer-timer { display: grid; gap: 2px; justify-items: end; margin-left: auto; }
.offer-timer strong {
  font-family: var(--serif); font-size: 1.2rem; letter-spacing: 0.06em; color: var(--parch);
  font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------------ admin: catalogue rows */
.admin-items { margin-top: 18px; }
.admin-items li { padding: 10px 12px; }
.admin-item { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.admin-item .shop-tile { width: 40px; height: 40px; }
.admin-item-text { display: grid; gap: 2px; flex: 1 1 220px; min-width: 0; }
.admin-item-text strong { font-size: 13.5px; }
.admin-item-text small { font-size: 11.5px; }
.admin-item-tags { display: flex; flex-wrap: wrap; gap: 6px; }
/* the admin lists (rotation pool, catalogue) are sorted by shop group */
.admin-group + .admin-group { margin-top: 18px; }
.admin-group-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  margin: 0 0 8px; font-size: 0.95rem; font-weight: 600; letter-spacing: 0.02em;
  color: var(--parch); border-bottom: 1px solid var(--hair); padding-bottom: 5px;
}
.admin-group-head .muted { font-size: 12px; }
.admin-item-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.admin-item-actions .price-form { display: inline-flex; align-items: center; gap: 6px; }
.admin-item-actions .price-input { width: 84px; padding: 5px 8px; font-size: 12.5px; box-sizing: border-box; }
.admin-offer { margin-bottom: 18px; }
.admin-items + .admin-offer, .offer-panel .buy { margin-top: 2px; }

@media (max-width: 620px) {
  .offer-timer { justify-items: start; margin-left: 0; }
  .shop-item { grid-template-columns: 48px minmax(0, 1fr); }
  .shop-tile { width: 48px; height: 48px; }
}

/* ------------------------------------------------------------------ armory: character cards */
.hero-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 14px; margin-top: 16px; }
.hero {
  border: 1px solid var(--hair); border-radius: 4px; overflow: hidden;
  background: linear-gradient(180deg, rgba(212, 171, 93, 0.06), rgba(0, 0, 0, 0.24));
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.hero:hover, .hero:focus-within { border-color: var(--hair-2); transform: translateY(-2px); box-shadow: 0 16px 34px rgba(0, 0, 0, 0.5); }
.hero-body { position: relative; display: grid; gap: 11px; padding: 16px 16px 14px; text-decoration: none; color: inherit; }
.hero-state {
  position: absolute; top: 12px; right: 12px; padding: 3px 9px; border-radius: 3px;
  border: 1px solid rgba(212, 171, 93, 0.35); background: rgba(0, 0, 0, 0.35);
  font-size: 9.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-soft);
}
.hero.on .hero-state { color: #9ed48a; border-color: rgba(158, 212, 138, 0.45); }
.hero-figure {
  display: grid; grid-template-columns: repeat(4, 48px); gap: 6px; justify-content: center;
  padding: 6px 0 2px;
}
.fig-slot {
  width: 48px; height: 48px; display: block; overflow: hidden; border-radius: 3px;
  border: 1px solid var(--hair-2); background: rgba(0, 0, 0, 0.55);
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.7);
}
.fig-slot img { width: 100%; height: 100%; display: block; object-fit: cover; }
.fig-slot.q2 { border-color: rgba(62, 242, 62, 0.45); }
.fig-slot.q3 { border-color: rgba(90, 169, 255, 0.5); }
.fig-slot.q4 { border-color: rgba(199, 124, 255, 0.55); }
.fig-slot.q5 { border-color: rgba(255, 154, 60, 0.55); }
.fig-slot.q6 { border-color: rgba(242, 217, 141, 0.6); }
.fig-empty { grid-column: 1 / -1; text-align: center; color: var(--parch-2); opacity: 0.5; }
.hero-lvl { display: inline-flex; align-items: baseline; gap: 8px; }
.hero-lvl small { font-size: 9.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.hero-lvl strong { font-family: var(--serif); font-size: 1.9rem; line-height: 1; color: var(--gold-soft); }
.hero-text { display: grid; gap: 8px; min-width: 0; }
.hero-text h3 { margin: 0; font-size: 1.35rem; }
.hero-zone { font-size: 12.5px; color: var(--parch-2); }
.hero-zone::before { content: '\25C8'; color: var(--gold); margin-right: 7px; font-size: 11px; }
.hero-foot, .hero-last { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 12px; }
.hero-foot { margin-top: 2px; }
.hero-last { padding-top: 9px; border-top: 1px solid rgba(212, 171, 93, 0.16); }
.hero-open { color: var(--gold-soft); font-weight: 600; }
.coins { color: var(--gold-soft); font-size: 12.5px; letter-spacing: 0.02em; }

/* health / resource bars */
.bar {
  position: relative; height: 22px; border-radius: 3px; overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.55); background: rgba(0, 0, 0, 0.55);
}
.bar span { position: absolute; top: 0; bottom: 0; left: 0; display: block; }
.bar em {
  position: relative; display: block; text-align: center; font-style: normal;
  font-size: 11.5px; line-height: 20px; color: #fff; letter-spacing: 0.02em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
}
.bar.hp span { background: linear-gradient(180deg, #4e9e4e, #346b34); }
.bar.mana span { background: linear-gradient(180deg, #3b6bb5, #264a86); }
.bar.rage span { background: linear-gradient(180deg, #a53a3a, #752222); }
.bar.energy span { background: linear-gradient(180deg, #c9b03a, #8c761d); }
.bar.runic span { background: linear-gradient(180deg, #4fb3c4, #2a7688); }

/* ------------------------------------------------------------------ armory: character page */
.char-back { display: inline-block; margin-bottom: 10px; font-size: 12px; color: var(--gold); }
.char-back:hover { color: var(--gold-soft); }
.char-sub { margin: 3px 0 10px; font-size: 13.5px; color: var(--parch-2); }
.char-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 15px; font-size: 12.5px; }
.tag.good { color: #9ed48a; border-color: rgba(158, 212, 138, 0.4); }
.tag.soft { color: var(--gold-soft); }
.char-bars { display: grid; gap: 6px; max-width: 420px; margin-top: 12px; }
.char-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 0; padding-bottom: 12px; border-bottom: 1px solid var(--hair); }
.char-tabs a { padding: 7px 15px; border: 1px solid var(--hair); border-radius: 3px; font-size: 12.5px; color: var(--parch-2); }
.char-tabs a:hover { border-color: var(--hair-2); color: var(--parch); }
.char-tabs a.on { border-color: var(--gold); color: #1a1409; background: linear-gradient(180deg, var(--gold-soft), var(--gold)); font-weight: 600; }

.slot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-top: 14px; }
.slot {
  position: relative; display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 10px;
  align-items: center; padding: 5px 8px; border: 1px solid transparent; border-radius: 3px;
}
.slot.filled { border-color: rgba(212, 171, 93, 0.16); background: rgba(0, 0, 0, 0.22); }
.slot.filled:hover, .slot.filled:focus-within { border-color: var(--hair-2); background: rgba(212, 171, 93, 0.08); outline: none; }
.slot-icon {
  width: 42px; height: 42px; display: grid; place-items: center; overflow: hidden;
  border: 1px solid var(--hair-2); border-radius: 3px; background: rgba(0, 0, 0, 0.55);
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.7);
}
.slot-icon img { width: 100%; height: 100%; display: block; object-fit: cover; }
.slot-icon.q0 { border-style: dashed; opacity: 0.4; box-shadow: none; }
.slot-icon.q2 { border-color: rgba(62, 242, 62, 0.45); }
.slot-icon.q3 { border-color: rgba(90, 169, 255, 0.5); }
.slot-icon.q4 { border-color: rgba(199, 124, 255, 0.55); }
.slot-icon.q5 { border-color: rgba(255, 154, 60, 0.55); }
.slot-icon.q6 { border-color: rgba(242, 217, 141, 0.6); }
.slot-text { display: grid; gap: 1px; min-width: 0; }
.slot-text small { font-size: 9.5px; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: var(--gold); }
.slot-text strong { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* tooltips inside slots and bag cells; hidden until hovered, an invisible 268px box would widen the page */
.slot .item-tip, .bag-item .item-tip { display: none; width: 268px; bottom: calc(100% + 6px); }
.slot .item-tip { left: 0; right: auto; }
.bag-item .item-tip { left: auto; right: 0; }
.slot:hover .item-tip, .slot:focus-within .item-tip,
.bag-item:hover .item-tip, .bag-item:focus-within .item-tip {
  display: grid; opacity: 1; visibility: visible; transform: none;
}

.bag-wrap { display: grid; gap: 14px; margin-top: 14px; }
.bag { border: 1px solid var(--hair); border-radius: 3px; padding: 12px 13px; background: rgba(0, 0, 0, 0.2); }
.bag-grid { display: grid; grid-template-columns: repeat(auto-fill, 42px); gap: 6px; margin-top: 9px; }
.bag-item { position: relative; width: 42px; height: 42px; border-radius: 3px; }
.bag-item .slot-icon { width: 100%; height: 100%; }
.bag-item .count {
  position: absolute; right: 3px; bottom: 1px; font-size: 11px; font-weight: 700; color: #fff;
  text-shadow: 0 1px 3px #000, 0 0 3px #000; pointer-events: none;
}

.stat-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.stat-block { border: 1px solid var(--hair); border-radius: 3px; padding: 12px 14px; background: rgba(0, 0, 0, 0.22); }
.stat-list { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin: 10px 0 0; }
.stat-list dt { font-size: 13px; color: var(--parch-2); }
.stat-list dd { margin: 0; font-family: var(--serif); color: var(--gold-soft); text-align: right; }

@media (max-width: 900px) {
  .slot-grid, .stat-cols { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .slot .item-tip, .bag-item .item-tip { width: min(268px, 74vw); }
  .slot-grid { gap: 2px; }
}

/* ------------------------------------------------------------------ vote */
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.vote-balance { display: grid; justify-items: end; gap: 2px; }
.vote-balance strong { font-family: var(--serif); font-size: 1.8rem; line-height: 1; color: var(--gold-soft); }
.vote-grid { display: grid; gap: 10px; margin-top: 18px; }
.vote-card {
  display: grid; gap: 9px; padding: 13px 15px;
  border: 1px solid var(--hair); border-radius: 4px;
  background: linear-gradient(180deg, rgba(212, 171, 93, 0.05), rgba(0, 0, 0, 0.2));
}
.vote-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.vote-top strong { font-size: 14.5px; }
.vote-meta { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; font-size: 12px; }
.vote-wait { color: var(--gold-soft); font-size: 12px; }
.vote-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vote-actions form.inline { display: inline; }
.btn.is-off { opacity: 0.55; cursor: default; pointer-events: none; }
.tag.good { color: #9ed48a; border-color: rgba(158, 212, 138, 0.4); }

.toggle-row { display: flex !important; align-items: center; gap: 9px; font-weight: 600; }
.toggle-row input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--gold); }
.grid-table td.vote-url small { display: block; overflow-wrap: anywhere; }
.grid-table td.vote-actions-cell { white-space: nowrap; }
.grid-table td.vote-actions-cell form + form { margin-left: 6px; }
.display.sub { font-size: 1.05rem; margin-top: 22px; }
.btn.danger { border-color: rgba(200, 90, 80, 0.55); color: #e0857c; }
.btn.danger:hover { border-color: #e0857c; }

/* ------------------------------------------------------------------ admin tabs (the admin area's two views) */
.admin-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.admin-tabs a {
  display: inline-flex; align-items: center; padding: 7px 15px; border-radius: 999px;
  border: 1px solid var(--hair); color: var(--parch-2); text-decoration: none;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
}
.admin-tabs a:hover { color: var(--gold-soft); border-color: var(--hair-2); text-decoration: none; }
.admin-tabs a.on { color: #1a1409; border-color: var(--gold); background: linear-gradient(180deg, var(--gold-soft), var(--gold)); }

/* ------------------------------------------------------------------ user dashboard */
.user-search { display: grid; gap: 6px; font-size: 12.5px; }
.user-search input { padding: 8px 12px; min-width: 190px; }
.users-scroll { overflow-x: auto; margin-top: 12px; }
.users-scroll .grid-table { margin-top: 0; min-width: 980px; }
.users-table td { vertical-align: middle; padding: 9px 6px; }
.users-table th { padding: 9px 6px; }
.users-table td .inline { display: inline-flex; align-items: center; gap: 6px; }
.users-table .gm-select { padding: 5px 8px; font-size: 12.5px; }
.users-table input.mini { width: 76px; padding: 5px 8px; font-size: 12.5px; }
.users-table .user-mail { min-width: 170px; overflow-wrap: break-word; }
.users-table .user-points { min-width: 190px; }
.users-table .user-points strong { display: block; margin-bottom: 6px; }
.users-table .user-login { white-space: nowrap; }
.users-table td .btn.small { padding: 5px 10px; font-size: 10.5px; }

.users-table .user-id-cell { white-space: nowrap; }
.users-table .user-id { font-weight: 700; }
.users-table .user-id-cell .inline { margin-top: 5px; }
.users-table .user-id-cell .tag { margin-left: 4px; }
.users-table td .btn.small.ok { border-color: rgba(140, 190, 120, 0.45); color: #b6e2a4; }
.tag.locked { color: #e0857c; border-color: rgba(200, 90, 80, 0.55); background: rgba(165, 52, 42, 0.18); }
.users-table tr.is-locked td { opacity: 0.72; }

.users-table .user-gm { min-width: 200px; }
.users-table .gm-form { display: grid; gap: 6px; }
.users-table .gm-row { display: flex; align-items: center; gap: 6px; }
.users-table .gm-row .gm-select { flex: 1 1 auto; }
.users-table input.gm-comment { width: 100%; padding: 4px 8px; font-size: 11.5px; }
.users-table .gm-note { display: block; margin-top: 6px; font-size: 11px; line-height: 1.35; }

/* ------------------------------------------------------------------ ticket inbox */
.ticket-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.ticket-filters a {
  display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--hair); color: var(--parch-2); text-decoration: none;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
}
.ticket-filters a:hover { color: var(--gold-soft); border-color: var(--hair-2); text-decoration: none; }
.ticket-filters a.on { color: #1a1409; border-color: var(--gold); background: linear-gradient(180deg, var(--gold-soft), var(--gold)); }
.ticket-filters .count { opacity: 0.65; letter-spacing: 0; }
.admin-tickets { margin-top: 16px; }
.admin-tickets .ticket-head small { flex: 1 1 100%; }
.admin-tickets .ticket-cat { margin: 6px 0 0; }
.admin-tickets .ticket-message { white-space: pre-line; }
.admin-tickets li.closed, .admin-tickets li.answered { background: transparent; }
.ticket-reply { margin-top: 10px; display: grid; gap: 8px; }
.ticket-reply label { font-size: 12px; }
.ticket-reply textarea { min-height: 74px; margin-top: 6px; }
.ticket-reply .actions { justify-content: flex-end; }
.ticket-close { margin-top: 8px; display: flex; justify-content: flex-end; }

/* ------------------------------------------------------------------ bot dashboard */
.bot-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-top: 16px; }
.bot-stat {
  display: grid; gap: 3px; padding: 13px 15px; border: 1px solid var(--hair);
  border-radius: 4px; background: var(--panel-2);
}
.bot-stat strong { font-size: 26px; line-height: 1.1; color: var(--parch); }
.bot-stat small { font-size: 11.5px; }
.bot-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 6px; }
@media (max-width: 720px) { .bot-columns { grid-template-columns: 1fr; } }
.bot-bars { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 7px; }
.bot-bars li { display: grid; grid-template-columns: 64px 1fr 58px; align-items: center; gap: 10px; font-size: 12.5px; }
.bot-bars .lbl { color: var(--parch-2); }
.bot-bars .num { text-align: right; color: var(--parch); font-variant-numeric: tabular-nums; }
.bar { display: block; height: 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--gold), var(--gold-soft)); }
.bot-tables { margin-top: 12px; }
.bot-tables td { vertical-align: middle; }
.bot-tables .tag { margin-left: 6px; font-size: 9.5px; }
.bot-share-cell { display: flex; align-items: center; gap: 9px; min-width: 150px; }
.bot-share-cell .bar { flex: 1 1 auto; }
.bot-share-cell small { white-space: nowrap; }

/* points you can earn, under the wallet */
.earn-hint { margin: 9px 0 0; max-width: 620px; line-height: 1.45; }

/* ------------------------------------------------------------------ item suggestions (add item) */
.suggest-field { display: grid; gap: 6px; }
.suggest-wrap { position: relative; display: block; }
.suggest-wrap input { width: 100%; box-sizing: border-box; }
.suggest-field .fine { font-size: 11.5px; line-height: 1.4; }
.suggest-list {
  position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 4px);
  margin: 0; padding: 4px; list-style: none; max-height: 258px; overflow-y: auto;
  background: #0e110a; border: 1px solid var(--hair-2); border-radius: 4px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.55);
}
.suggest-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  padding: 7px 10px; border-radius: 3px; cursor: pointer; font-size: 13px;
}
.suggest-row:hover, .suggest-row.on { background: rgba(212, 171, 93, 0.14); }
.suggest-row .suggest-name { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.suggest-row .suggest-meta { flex: 0 0 auto; font-size: 11.5px; color: var(--parch-2); letter-spacing: 0.04em; }
.suggest-empty { padding: 8px 10px; font-size: 12.5px; color: var(--parch-2); }
