/* ==========================================================================
   Hitsro-inspired layout: dark panels, red accent, Bebas Neue display type,
   fixed transparent header, hero + kings + last actions on the left,
   online / login / server info sidebar on the right.
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Outfit:wght@300;400;500;600;700&family=Rajdhani:wght@400;500;600;700&display=swap');

:root {
  color-scheme: dark;
  /* Ember & Slate palette */
  --bg-base: #0f0d0b;
  --bg-surface: #171412;
  --bg-elevated: #1f1b18;
  --bg-hover: #2a241f;
  --border-subtle: #26211d;
  --border-default: #332c26;
  --border-strong: #453b32;
  --text-muted: #8a8378;
  --text-subtle: #a49c8f;
  --text-default: #c9c2b8;
  --text-bright: #f2ede6;
  --accent: #e8622c;
  --accent-hover: #ff8a50;
  --accent-gold: #d9a441;
  --accent-muted: rgba(232, 98, 44, 0.12);
  --btn-primary: linear-gradient(to right, rgba(232, 98, 44, 0.85), rgba(140, 52, 20, 0.85));
  --btn-primary-hover: linear-gradient(to right, rgba(255, 138, 80, 0.9), rgba(176, 66, 26, 0.9));
  --btn-primary-border: rgba(255, 138, 80, 0.4);
  --success: #5fbf7f;
  --warning: #e0b341;
  --info: #5aa7d6;
  --discord: #5865F2;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Outfit', sans-serif;
  --font-num: 'Rajdhani', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-base);
  color: var(--text-default);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
}
a { color: var(--accent); text-decoration: none; transition: color .16s; }
a:hover { color: var(--accent-hover); }
b, strong { font-weight: 600; }
img { max-width: 100%; }

/* ---------- shared panel primitives ---------- */
.panel-inset {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.4);
}
.card-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-default);
}
.head-note { color: var(--text-muted); font-size: 11px; letter-spacing: .04em; }
.head-note b { color: var(--accent); font-weight: 600; }
.text-success { color: var(--success); }
.text-dim { color: var(--text-subtle); }
.text-bright { color: var(--text-bright); }
.muted { color: var(--text-subtle); }

/* ---------- buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 9px;
  border: 1px solid transparent;
  font: 600 13px/1 var(--font-body);
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .18s ease-out;
  white-space: nowrap;
}
.btn .btn-label { position: relative; }
.btn.primary, .btn-primary {
  background: var(--btn-primary);
  border-color: var(--btn-primary-border);
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.1), inset 0 -1px rgba(0, 0, 0, 0.3), 0 2px 4px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}
.btn.primary::before, .btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(252, 165, 165, 0.2);
  opacity: 0;
  transform: scale(0);
  transition: all .3s ease-out;
}
.btn.primary:hover::before, .btn-primary:hover::before { opacity: 1; transform: scale(1); }
.btn.primary:hover, .btn-primary:hover { background: var(--btn-primary-hover); color: #fff; }
.btn.small { padding: 9px 16px; font-size: 11px; }
.btn.wide { width: 100%; }
.btn-outline {
  border-color: var(--border-default);
  background: rgba(26, 26, 31, 0.5);
  color: var(--text-bright);
  backdrop-filter: blur(4px);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-discord {
  border-color: rgba(88, 101, 242, 0.3);
  background: rgba(88, 101, 242, 0.5);
  color: var(--text-bright);
}
.btn-discord:hover { background: rgba(88, 101, 242, 0.7); border-color: rgba(88, 101, 242, 0.9); }
.btn-accent {
  border-color: rgba(232, 98, 44, 0.2);
  background: rgba(232, 98, 44, 0.05);
  color: var(--accent);
  padding: 10px 18px;
  font-size: 12px;
}
.btn-accent:hover { border-color: rgba(232, 98, 44, 0.4); background: rgba(232, 98, 44, 0.1); }
.danger {
  background: transparent;
  border: 1px solid #b77169;
  color: #edaaa0;
  padding: 12px 18px;
  border-radius: 9px;
  font: 600 12px var(--font-body);
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .16s;
}
.danger:hover { background: rgba(88, 47, 45, 0.27); box-shadow: 0 0 14px rgba(183, 113, 105, 0.2); }

/* ---------- tags ---------- */
.tag {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 5px;
  border: 1px solid;
}
.tag.ok { color: var(--success); border-color: rgba(74, 222, 128, 0.35); background: rgba(74, 222, 128, 0.07); }
.tag.bad { color: #edaaa0; border-color: rgba(183, 113, 105, 0.4); background: rgba(88, 47, 45, 0.2); }
.tag.gm { color: var(--warning); border-color: rgba(251, 191, 36, 0.4); background: rgba(251, 191, 36, 0.07); }
.tag.dim, .tag.off { color: var(--text-muted); border-color: rgba(138, 138, 146, 0.35); }

/* ---------- notice bar ---------- */
.notice-bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--text-bright);
  letter-spacing: .03em;
  background: linear-gradient(90deg, rgba(232, 98, 44, 0.14), rgba(232, 98, 44, 0.05));
  border-bottom: 1px solid rgba(232, 98, 44, 0.25);
}
.notice-bar span { color: var(--accent); }

.alert {
  border: 1px solid #b77169;
  background: rgba(88, 47, 45, 0.27);
  color: #f2c1b8;
  font-size: 12px;
  padding: 11px 12px;
  border-radius: 8px;
  margin: 0 0 14px;
}

/* ==========================================================================
   HEADER (fixed, transparent over hero)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  background: transparent;
  transition: background .3s ease-out, border-color .3s ease-out;
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 84px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-bright);
  flex-shrink: 0;
}
.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--accent);
  border-radius: 10px;
  color: var(--accent);
  font: 30px var(--font-display);
  background: rgba(232, 98, 44, 0.06);
  box-shadow: 0 0 18px rgba(232, 98, 44, 0.2);
}
.brand-text { display: flex; flex-direction: column; }
.brand-name {
  font: 34px/1 var(--font-display);
  letter-spacing: .06em;
  color: var(--text-bright);
}
.brand-tagline {
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 3px;
}
.top-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  justify-content: center;
}
.top-nav a {
  border-radius: 9px;
  border: 1px solid transparent;
  padding: 9px 18px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: all .2s ease-out;
}
.nav-active {
  border-color: rgba(232, 98, 44, 0.3);
  background: rgba(232, 98, 44, 0.1);
  color: var(--accent);
}
.nav-inactive { color: var(--text-muted); }
.nav-inactive:hover { border-color: rgba(232, 98, 44, 0.3); background: rgba(232, 98, 44, 0.1); color: var(--accent); }
.inline-form { display: inline; }
@media (max-width: 900px) {
  .header-inner { height: 68px; padding: 0 16px; gap: 14px; }
  .top-nav { display: none; }
  .brand-name { font-size: 26px; }
  .brand-mark { width: 38px; height: 38px; font-size: 24px; }
}

/* ==========================================================================
   PAGE SHELL + LAYOUT GRID
   ========================================================================== */
.page-shell { min-height: 100vh; }
.panel-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-top: 84px;
  background:
    radial-gradient(ellipse at 15% 0%, rgba(232, 98, 44, 0.05) 0, transparent 45%),
    radial-gradient(ellipse at 85% 100%, rgba(90, 167, 214, 0.05) 0, transparent 40%),
    var(--bg-base);
}
.hero-main {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 24px 24px 32px;
}
.panel-content {
  margin: 0 auto;
  width: 100%;
  max-width: 1280px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
@media (min-width: 1024px) {
  .panel-content { flex-direction: row; align-items: flex-start; gap: 32px; }
  .hero-col { width: 70%; display: flex; flex-direction: column; gap: 24px; }
  .side-col { width: 30%; display: flex; flex-direction: column; gap: 16px; position: sticky; top: 104px; }
}
@media (min-width: 1280px) {
  .hero-col { width: 76%; }
  .side-col { width: 24%; }
}
.side-col > * { flex-shrink: 0; }
/* ==========================================================================
   HERO PANEL
   ========================================================================== */
.hero-panel { padding: 0; }
.hero-bg-art {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 30%, rgba(232, 98, 44, 0.14) 0, transparent 55%),
    radial-gradient(ellipse at 20% 80%, rgba(90, 167, 214, 0.07) 0, transparent 50%),
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.015) 0 2px, transparent 2px 28px),
    linear-gradient(135deg, #141419 0%, #0d0d11 55%, #101015 100%);
  opacity: .9;
}
.hero-body {
  position: relative;
  padding: 30px 32px;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.75), rgba(10, 10, 12, 0.5) 60%, transparent);
}
.hero-title {
  margin: 0 0 6px;
  font: clamp(34px, 4.5vw, 48px)/1 var(--font-display);
  letter-spacing: .04em;
  color: var(--text-bright);
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.8);
}
.hero-sub {
  max-width: 52ch;
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-subtle);
}
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-actions .btn { padding: 11px 20px; font-size: 12px; }
@media (max-width: 640px) {
  .hero-body { padding: 24px 20px; }
  .hero-actions .btn { flex: 1; }
}

/* ==========================================================================
   SERVER KINGS
   ========================================================================== */
.kings-card { padding: 20px 22px; box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.25); }
.gold-shimmer {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 98, 44, 0.6), transparent);
  background-size: 200% 100%;
  animation: shimmer 4s linear infinite;
}
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.kings-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--border-default);
  padding-bottom: 12px;
  margin-bottom: 16px;
}
.kings-head h3, .card-head h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-default);
}
.kings-reset { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-muted); }
.kings-reset b { font: 600 15px var(--font-num); color: var(--accent); }
.kings-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (min-width: 768px) { .kings-grid { grid-template-columns: repeat(4, 1fr); } }
.kings-grid > div { text-align: center; min-width: 0; }
.king-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.king-label.warn { color: var(--warning); }
.king-label.info { color: var(--info); }
.king-label.accent { color: var(--accent); }
.king-label.success { color: var(--success); }
.kings-grid strong {
  display: block;
  font: 700 20px var(--font-num);
  letter-spacing: .04em;
  color: var(--text-bright);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.kings-grid small { display: block; color: var(--text-muted); font-size: 11px; margin-top: 3px; }

/* ==========================================================================
   LAST ACTIONS
   ========================================================================== */
.actions-card { padding: 20px 22px; }
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 12px;
  margin-bottom: 12px;
}
.card-head.tight { margin-bottom: 10px; padding-bottom: 10px; }
.action-list { list-style: none; margin: 0; padding: 0; }
.action-list li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 13.5px;
  letter-spacing: .02em;
}
.action-list li:last-child { border-bottom: 0; }
.act-mark { flex-shrink: 0; color: var(--text-muted); }
.action-list div { min-width: 0; flex: 1; }
.action-list time {
  flex-shrink: 0;
  margin-left: auto;
  font-size: 10px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ==========================================================================
   SIDEBAR CARDS
   ========================================================================== */
.online-card { padding: 16px 18px; }
.online-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.online-top small { display: block; font-size: 11px; color: var(--text-subtle); margin-top: 2px; }
.online-count { display: flex; align-items: center; gap: 10px; }
.online-count b { font: 34px/1 var(--font-display); letter-spacing: .05em; color: var(--text-bright); }
.ping-dot { position: relative; display: inline-flex; width: 10px; height: 10px; }
.ping-dot i {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--success);
}
.ping-dot::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--success);
  opacity: .75;
  animation: ping 1.4s cubic-bezier(0, 0, .2, 1) infinite;
}
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(2.4); opacity: 0; } }

.login-box, .register-box, .account-card, .serverinfo-card { padding: 20px 22px; }
.login-box h3, .register-box h3 {
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-subtle);
}
.side-form { display: flex; flex-direction: column; gap: 12px; }
.field { position: relative; display: flex; align-items: center; }
.field svg {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  pointer-events: none;
}
.field input {
  width: 100%;
  border-radius: 9px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-base);
  padding: 12px 14px 12px 38px;
  font: 400 14px var(--font-body);
  color: var(--text-bright);
  outline: none;
  transition: border-color .16s;
}
.field input::placeholder { color: var(--text-muted); }
.field input:focus { border-color: var(--accent); }
.login-switch {
  border-top: 1px solid var(--border-subtle);
  margin-top: 16px;
  padding-top: 14px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}
.login-switch a { margin-left: 5px; font-weight: 500; color: var(--accent); }
.hero-logout { margin-top: 14px; }

.info-list { margin: 0; }
.info-list > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 13px;
}
.info-list > div:last-child { border-bottom: 0; }
.info-list dt { color: var(--text-muted); }
.info-list dd {
  margin: 0;
  font: 700 15px var(--font-num);
  letter-spacing: .03em;
  color: var(--text-subtle);
  text-align: right;
}
.guide-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 6px;
  border: 1px solid rgba(232, 98, 44, 0.3);
  background: rgba(232, 98, 44, 0.1);
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
}
.guide-chip:hover { border-color: rgba(232, 98, 44, 0.5); background: rgba(232, 98, 44, 0.2); color: var(--accent-hover); }

/* ==========================================================================
   CHARACTERS SECTION
   ========================================================================== */
.chars-section {
  max-width: 1280px;
  margin: 28px auto 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}
.section-head h2 {
  margin: 0;
  font: 30px/1 var(--font-display);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-bright);
}
.empty-panel { padding: 24px; }
.char-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}
.char-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 18px 20px;
  color: var(--text-default);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.char-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45), 0 0 22px rgba(232, 98, 44, 0.12);
  color: var(--text-default);
}
.char-card.is-online { border-color: rgba(74, 222, 128, 0.35); }
.cc-top { display: flex; justify-content: space-between; align-items: center; }
.cc-class { font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--text-muted); }
.cc-name { font: 700 22px var(--font-num); letter-spacing: .04em; color: var(--text-bright); }
.cc-nick { color: var(--text-muted); font-style: italic; font-size: 13px; }
.cc-level { font: 600 15px var(--font-num); color: var(--text-muted); margin-top: 2px; }
.cc-level b { font-size: 30px; font-weight: 700; color: var(--accent); text-shadow: 0 0 18px rgba(232, 98, 44, 0.35); }
.cc-level i { font-style: normal; font-size: 14px; color: var(--text-muted); margin-left: 4px; }
.cc-hwan { font-size: 11px; color: var(--info); letter-spacing: .06em; }
.cc-stats { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.cc-stats span {
  font-size: 11px;
  color: var(--text-subtle);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.03);
  padding: 3px 9px;
  border-radius: 6px;
}
.cc-jobs {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}
.cc-jobs span {
  font: 600 10px var(--font-num);
  letter-spacing: .1em;
  color: var(--text-muted);
  border: 1px solid rgba(138, 138, 146, 0.35);
  padding: 2px 8px;
  border-radius: 5px;
}
.cc-seen { margin-left: auto; font-size: 11px; border: 0 !important; padding: 0 !important; color: var(--text-muted) !important; }
.gm-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: linear-gradient(90deg, rgba(251, 191, 36, 0.08), transparent);
  color: var(--warning);
  font-size: 14px;
  letter-spacing: .04em;
  transition: all .2s;
}
.gm-banner:hover { background: linear-gradient(90deg, rgba(251, 191, 36, 0.15), transparent); color: var(--warning); }

/* ==========================================================================
   CHARACTER DETAIL PAGE
   ========================================================================== */
.admin-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.admin-head h1 {
  margin: 8px 0 0;
  font: 44px/1.1 var(--font-display);
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text-bright);
}
.admin-head h1 em { font-style: normal; color: var(--accent); }
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
}
.text-link { color: var(--accent); font-size: 13px; font-weight: 500; }
.text-link:hover { color: var(--accent-hover); }
.text-link.inline { display: inline; }

.char-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 18px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.4);
}
.char-hero-left, .char-hero-right { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.char-hero-right { flex-direction: column; align-items: flex-end; gap: 4px; }
.char-hero-right small { color: var(--text-muted); }
.char-class-big { font: 600 18px var(--font-num); letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); }
.char-level-big { font: 700 34px var(--font-num); color: var(--accent); text-shadow: 0 0 20px rgba(232, 98, 44, 0.35); }

.exp-bar {
  position: relative;
  height: 26px;
  margin-bottom: 20px;
  border-radius: 8px;
  border: 1px solid var(--border-default);
  background: var(--bg-base);
  overflow: hidden;
}
.exp-fill {
  height: 100%;
  background: linear-gradient(90deg, #8c3414, var(--accent));
  box-shadow: inset 0 0 14px rgba(232, 98, 44, 0.4);
  transition: width .4s;
}
.exp-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 600 10px var(--font-num);
  letter-spacing: .14em;
  color: var(--text-bright);
  text-shadow: 0 1px 3px #000;
}

.stat-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 20px; }
.stat-strip > div {
  text-align: center;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  padding: 14px 8px;
  background: var(--bg-surface);
}
.stat-strip small { display: block; font-size: 9px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px; }
.stat-strip strong { font: 700 20px var(--font-num); color: var(--text-bright); }
@media (max-width: 900px) { .stat-strip { grid-template-columns: repeat(3, 1fr); } }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
.panel {
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  padding: 22px 24px;
  margin-bottom: 20px;
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.3);
}
.panel-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-default);
  margin-bottom: 16px;
}
.panel-title span { color: var(--accent); margin-right: 8px; }
.detail-list { margin: 0; }
.detail-list > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 14px;
}
.detail-list dt { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); padding-top: 3px; }
.detail-list dd { margin: 0; color: var(--text-default); text-align: right; word-break: break-word; }
.skill-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.chip {
  font-size: 11px;
  color: var(--text-subtle);
  border: 1px solid var(--border-default);
  background: rgba(255, 255, 255, 0.03);
  padding: 3px 9px;
  border-radius: 6px;
}
.chip b { color: var(--accent); font-weight: 600; margin-left: 5px; }

/* ==========================================================================
   ADMIN CONSOLE
   ========================================================================== */
.admin-wrap { width: 100%; max-width: 1280px; margin: 0 auto; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.stat-card {
  position: relative;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  padding: 18px 20px;
  background: var(--bg-surface);
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.35);
}
.stat-card::before {
  content: "";
  position: absolute;
  top: 6px; left: 6px;
  width: 16px; height: 16px;
  border-top: 1px solid var(--accent);
  border-left: 1px solid var(--accent);
}
.stat-label { font-size: 9px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--text-muted); display: block; margin-bottom: 8px; }
.stat-card strong { font: 700 30px var(--font-num); color: var(--text-bright); display: block; }
.stat-card small { color: var(--text-muted); font-size: 12px; }
.stat-card.online strong { color: var(--success); text-shadow: 0 0 18px rgba(74, 222, 128, 0.3); }
@media (max-width: 900px) { .stat-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .stat-grid { grid-template-columns: 1fr; } }

.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border-default);
}
.data-table td { padding: 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.04); color: var(--text-default); vertical-align: middle; }
.data-table tr:hover td { background: rgba(232, 98, 44, 0.03); }
.data-table .empty { text-align: center; color: var(--text-muted); font-style: italic; padding: 24px; }
.data-table small { color: var(--text-muted); }

.sparkline { width: 100%; height: 120px; display: block; }
.spark-meta { display: flex; justify-content: space-between; color: var(--text-muted); font-size: 12px; margin-top: 8px; }

.filter-bar { display: flex; gap: 12px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }
.filter-bar input[type=search] {
  flex: 1;
  min-width: 220px;
  height: 44px;
  border-radius: 9px;
  border: 1px solid var(--border-default);
  background: var(--bg-base);
  color: var(--text-bright);
  padding: 0 14px;
  font: 400 15px var(--font-body);
  outline: none;
}
.filter-bar input[type=search]:focus { border-color: var(--accent); }
.filter-bar select {
  height: 44px;
  border-radius: 9px;
  border: 1px solid var(--border-default);
  background: var(--bg-base);
  color: var(--text-default);
  padding: 0 12px;
  font: 400 14px var(--font-body);
  outline: none;
  cursor: pointer;
}
.filter-count { color: var(--text-muted); font-size: 13px; margin-left: auto; }

.form { display: flex; flex-direction: column; }
.form label { font-size: 12px; font-weight: 600; color: var(--text-default); margin: 14px 0 6px; }
.form input {
  height: 46px;
  border-radius: 9px;
  border: 1px solid var(--border-default);
  background: var(--bg-base);
  color: var(--text-bright);
  padding: 0 13px;
  font: 400 14px var(--font-body);
  outline: none;
}
.form input:focus { border-color: var(--accent); }
.form small { font-size: 10px; color: var(--text-muted); margin-top: 5px; }
.form select {
  height: 48px;
  border-radius: 9px;
  border: 1px solid var(--border-default);
  background: var(--bg-base);
  color: var(--text-default);
  padding: 0 12px;
  font: 400 15px var(--font-body);
  outline: none;
  cursor: pointer;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }
.inline-form-row { display: flex; gap: 12px; align-items: center; }
.inline-form-row input {
  flex: 1;
  height: 46px;
  border-radius: 9px;
  border: 1px solid var(--border-default);
  background: var(--bg-base);
  color: var(--text-bright);
  padding: 0 14px;
  font: 400 15px var(--font-body);
  outline: none;
}
.inline-form-row input:focus { border-color: var(--accent); }
.danger-panel { border-color: rgba(183, 113, 105, 0.4) !important; }

.pager { display: flex; gap: 8px; justify-content: center; margin-top: 10px; }
.pager a {
  min-width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid var(--border-default);
  color: var(--text-subtle);
  font: 600 14px var(--font-num);
}
.pager a.current, .pager a:hover { border-color: var(--accent); color: var(--accent); background: rgba(232, 98, 44, 0.07); }

/* ==========================================================================
   ERROR PAGE
   ========================================================================== */
.error-card {
  width: min(100%, 590px);
  margin: 60px auto;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  padding: 44px;
  text-align: center;
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.4);
}
.error-card h1 {
  margin: 10px 0 14px;
  font: 44px/1.1 var(--font-display);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-bright);
}
.error-card p { color: var(--text-subtle); line-height: 1.7; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  position: relative;
  z-index: 10;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: linear-gradient(rgba(11, 12, 16, 0.93), #0b0c10);
  font-family: var(--font-body);
}
.site-footer::before {
  content: "";
  position: absolute;
  top: -1px; left: 50%;
  transform: translateX(-50%);
  width: min(720px, 80%);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 98, 44, 0.5), transparent);
}
.footer-inner {
  width: min(1280px, calc(100% - 48px));
  margin-inline: auto;
  padding-top: 48px;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 360px) repeat(3, auto);
  justify-content: space-between;
  gap: 36px 64px;
}
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(3, auto); justify-content: start; gap: 36px 48px; }
  .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text-bright);
}
.footer-brand:hover { color: var(--text-bright); }
.footer-mark { width: 44px; height: 44px; font-size: 28px; }
.footer-brand strong { display: block; font: 400 30px/1 var(--font-display); letter-spacing: .05em; color: var(--text-bright); }
.footer-brand small { display: block; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-top: 2px; }
.footer-about p { color: #93929d; max-width: 38ch; margin: 16px 0 0; font-size: 13px; line-height: 1.7; }
.footer-discord {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 0 16px;
  min-height: 40px;
  border-radius: 8px;
  border: 1px solid rgba(88, 101, 242, 0.3);
  background: rgba(88, 101, 242, 0.8);
  color: var(--text-bright);
  font-size: 13px;
  font-weight: 600;
  transition: background .16s;
}
.footer-discord:hover { background: var(--discord); color: var(--text-bright); }
.footer-col h3 {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #e4e2e7;
}
.footer-col ul { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.footer-col ul a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 32px;
  font-size: 13px;
  color: #a4a0ab;
  transition: color .16s;
}
.footer-col ul a:hover { color: #f0ede8; }
.footer-col dl { margin: 0; min-width: 200px; }
.footer-col dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-block: 7px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 13px;
}
.footer-col dl div:last-child { border-bottom: 0; }
.footer-col dt { color: #93929d; }
.footer-col dd { margin: 0; font-family: var(--font-num); font-weight: 700; color: #c8c8d0; font-variant-numeric: tabular-nums; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 36px;
  padding-block: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 12px;
  color: #93929d;
}
.footer-bottom p { margin: 0; }
.footer-bottom a { color: #c4bcc3; }
.footer-bottom a:hover { color: #f0ede8; }
.footer-top { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; color: #a4a0ab; white-space: nowrap; }
.footer-top:hover { color: #f0ede8; }

/* ---------- buy silk ---------- */
.buy-silk {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 7px 14px;
  border-radius: 8px;
  border: 1px solid rgba(232, 98, 44, 0.35);
  background: rgba(232, 98, 44, 0.08);
  color: var(--accent);
  font: 600 11px/1 var(--font-body);
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .16s ease-out;
  user-select: none;
}
.buy-silk:hover { background: rgba(232, 98, 44, 0.18); border-color: var(--accent); color: var(--accent-hover); }
.buy-silk:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.buy-silk-lg { margin-top: 0; padding: 10px 18px; font-size: 12px; }
.char-card .buy-silk { display: flex; width: 100%; justify-content: center; }
.char-head-actions { display: flex; align-items: center; gap: 16px; }

.silk-modal-open { overflow: hidden; }
.silk-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(8, 6, 5, 0.78);
  backdrop-filter: blur(3px);
}
.silk-modal-backdrop[hidden] { display: none; }
.silk-modal {
  width: 100%;
  max-width: 400px;
  border-radius: 12px;
  border: 1px solid var(--border-default);
  background: var(--bg-elevated);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6), inset 0 0 15px rgba(0, 0, 0, 0.35);
  padding: 22px;
}
.silk-modal-head { display: flex; align-items: center; justify-content: space-between; }
.silk-modal-head h3 { margin: 0; font: 600 18px/1.2 var(--font-body); color: var(--text-bright); letter-spacing: .02em; }
.silk-modal-close {
  border: 1px solid var(--border-default);
  background: transparent;
  color: var(--text-muted);
  width: 30px; height: 30px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
  transition: all .15s;
}
.silk-modal-close:hover { color: var(--text-bright); border-color: var(--accent); }
.silk-modal-sub { margin: 10px 0 16px; font-size: 13px; color: var(--text-subtle); }
.silk-modal-sub b { color: var(--text-bright); }
.silk-presets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.silk-preset {
  padding: 10px 6px;
  border-radius: 8px;
  border: 1px solid var(--border-default);
  background: rgba(26, 22, 19, 0.6);
  color: var(--text-default);
  font: 600 13px/1 var(--font-num);
  letter-spacing: .05em;
  cursor: pointer;
  transition: all .15s;
}
.silk-preset:hover { border-color: var(--accent); color: var(--text-bright); }
.silk-preset.active { border-color: var(--accent); background: rgba(232, 98, 44, 0.15); color: var(--accent-hover); }
.silk-custom { display: block; margin: 14px 0 16px; }
.silk-custom span { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px; }
.silk-custom input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-default);
  background: var(--bg-surface);
  color: var(--text-bright);
  font: 500 14px var(--font-num);
}
.silk-custom input:focus { outline: none; border-color: var(--accent); }


/* ============ INVENTORY (in-game layout) ============ */
.inv-panel { margin-top: 18px; }
.inv-cols {
  display: grid;
  grid-template-columns: minmax(270px, 380px) 1fr;
  gap: 26px;
  margin-top: 12px;
}
@media (max-width: 900px) { .inv-cols { grid-template-columns: 1fr; } }
.inv-subhead {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #9a8f7d;
  margin: 16px 0 8px;
}
.inv-subhead:first-child { margin-top: 0; }
.inv-subhead small { color: #6b6252; text-transform: none; letter-spacing: 0; margin-left: 6px; }

/* silhouette: shield | body column | weapon */
.inv-silhouette {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}
.inv-accessory {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.inv-quiver { display: flex; flex-wrap: wrap; gap: 8px; }
.inv-baggrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(58px, 1fr));
  gap: 6px;
}

.inv-slot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 9px 6px 7px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 8px;
  min-height: 76px;
  cursor: default;
  transition: border-color 0.15s, transform 0.12s;
}
.inv-slot.filled {
  border-color: rgba(212, 175, 55, 0.45);
  background: rgba(212, 175, 55, 0.06);
}
.inv-slot.filled:hover {
  border-color: rgba(212, 175, 55, 0.85);
  transform: translateY(-1px);
}
.inv-slot.empty { opacity: 0.45; }
.inv-slot.no-icon::before {
  content: "❔";
  font-size: 24px;
  color: rgba(212, 175, 55, 0.4);
}
.inv-icon {
  position: relative;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.inv-slot img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.6));
}
.inv-fallback { font-size: 26px; color: rgba(212, 175, 55, 0.4); }
.inv-count {
  position: absolute;
  right: -5px;
  bottom: -7px;
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  font-size: 11px;
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: #d4af37;
  padding: 0 4px;
  border-radius: 6px;
  line-height: 14px;
}
.inv-label {
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9a8f7d;
}
/* compact bag cells */
.inv-baggrid .inv-slot { min-height: 60px; padding: 5px; gap: 3px; }
.inv-baggrid .inv-icon { width: 38px; height: 38px; }
.inv-baggrid .inv-slot img { width: 38px; height: 38px; }

/* ============ ITEM TOOLTIP (in-game style) ============ */
#itemtip {
  position: fixed;
  display: none;
  z-index: 1000;
  min-width: 190px;
  max-width: 290px;
  background: rgba(13, 11, 8, 0.97);
  border: 1px solid rgba(212, 175, 55, 0.55);
  border-radius: 8px;
  padding: 10px 13px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.65);
  pointer-events: none;
  font-size: 12.5px;
  line-height: 1.45;
}
#itemtip .it-name {
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #ecd9a0;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
#itemtip .it-plus { color: #8fd0ff; margin-left: 6px; }
#itemtip .it-row { display: flex; justify-content: space-between; gap: 16px; padding: 1px 0; }
#itemtip .it-k { color: #9a8f7d; }
#itemtip .it-v { color: #efe7d3; font-weight: 600; font-variant-numeric: tabular-nums; }
#itemtip .it-row.dim .it-v { color: #b3a88f; }
#itemtip .it-row.accent .it-k,
#itemtip .it-row.accent .it-v { color: #b491ff; }
/* plus badge on slot */
.inv-plus {
  position: absolute;
  left: -6px;
  top: -7px;
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  font-size: 11px;
  background: #0d2438;
  border: 1px solid #4d9fd4;
  color: #8fd0ff;
  border-radius: 6px;
  padding: 0 4px;
  line-height: 14px;
  z-index: 2;
}

/* ============ CHARACTER PREVIEW (paper doll) ============ */
.char-figure {
  width: min(320px, 100%);
  margin: 2px auto 10px;
}
.fig-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.9;
}
.fig-body {
  width: 100%;
  height: 100%;
  display: block;
}
.fig-man {
  fill: rgba(154, 133, 92, 0.26);
  stroke: rgba(212, 175, 55, 0.5);
  stroke-width: 2;
  stroke-linejoin: round;
}
.fig-slot {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: rgba(212, 175, 55, 0.5);
  cursor: default;
}
.fig-slot img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.7));
}
.fig-slot.no-icon::before { content: "❔"; }
.fig-xl { width: 68px; height: 68px; }
.fig-lg { width: 58px; height: 58px; }
.fig-md { width: 46px; height: 46px; }
.fig-sm { width: 32px; height: 32px; font-size: 18px; }
.fig-caption {
  text-align: center;
  margin-top: 8px;
  color: #9a8f7d;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.fig-caption strong {
  color: #d4af37;
  margin-left: 8px;
  font-family: "Rajdhani", sans-serif;
  font-size: 14px;
  letter-spacing: 0;
}

/* ============ 3D CHARACTER VIEWER ============ */
.char3d-panel { padding: 14px 16px 10px; }
.char3d-stage {
  position: relative;
  width: 100%;
  height: 470px;
  background:
    radial-gradient(ellipse 70% 55% at 50% 32%, rgba(88, 70, 42, 0.5), transparent 70%),
    radial-gradient(ellipse 120% 100% at 50% 110%, rgba(30, 24, 14, 0.9), transparent 60%),
    linear-gradient(180deg, #14100a 0%, #0c0a07 100%);
  border: 1px solid #3a2f1e;
  border-radius: 8px;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
}
.char3d-stage:active { cursor: grabbing; }
.char3d-stage canvas { display: block; }
.char3d-hint {
  text-align: center;
  margin: 8px 0 4px;
  font-size: 10px;
  color: #7d7462;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ============ DASHBOARD v2 (simple layout) ============ */
.dash {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 960px;
  margin: 0 auto;
  padding: 26px 20px 40px;
}
.dash-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.dash-top h1 {
  font-size: 26px;
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.01em;
}
.dash-top h1 em {
  font-style: normal;
  color: var(--accent, #d4af37);
}
.dash-top-meta {
  margin-top: 6px;
  font-size: 13px;
  color: #9a8f7d;
  display: flex;
  align-items: center;
  gap: 7px;
}
.dash-top-meta b { color: #e8e0d0; font-family: "Rajdhani", sans-serif; font-size: 15px; }
.dash-sep { color: #5a5040; }
.dash-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.inline-form { display: inline; }
.btn-ghost {
  background: transparent;
  border: 1px solid transparent;
  color: #8a8070;
  cursor: pointer;
  font-family: inherit;
  padding: 9px 14px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 6px;
  transition: color .15s, border-color .15s;
}
.btn-ghost:hover { color: #d8cfae; border-color: #3a2f1e; }

.dash-section { }
.dash-section-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
}
.dash-section-head h2 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #c9b98a;
  margin: 0;
  font-weight: 600;
}
.dash-section-head .head-note { font-size: 11px; color: #7d7462; }

/* characters */
.dchars {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
.dchar {
  display: block;
  padding: 14px 16px;
  background: linear-gradient(160deg, rgba(38, 32, 22, 0.9), rgba(24, 20, 14, 0.9));
  border: 1px solid #3a2f1e;
  border-radius: 10px;
  color: #e8e0d0;
  text-decoration: none;
  transition: border-color .15s, transform .15s;
}
.dchar:hover { border-color: #7a6530; transform: translateY(-2px); }
.dchar-row { display: flex; align-items: center; gap: 8px; }
.dchar-name {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.dchar-sub {
  margin-top: 4px;
  font-size: 12.5px;
  color: #9a8f7d;
}
.dchar-sub i { color: #6a6152; font-style: normal; }
.dchar-hwan { color: #b89a5a; }
.dchar-foot {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(122, 101, 48, 0.25);
  font-size: 12.5px;
  color: #c5bba4;
}
.dchar-foot > span + span { margin-left: 12px; }
.dchar-spacer { flex: 1; }
.dchar-foot .buy-silk { margin-left: 0; }
.buy-silk-sm {
  font-size: 10.5px;
  padding: 4px 10px;
}

/* realm strip */
.realm-strip {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 16px;
  background: linear-gradient(160deg, rgba(38, 32, 22, 0.9), rgba(24, 20, 14, 0.9));
  border: 1px solid #3a2f1e;
  border-radius: 10px;
}
.realm-kings {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  flex: 1;
}
.rk { display: flex; flex-direction: column; gap: 2px; min-width: 110px; }
.rk small {
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #7d7462;
}
.rk b { font-size: 16px; font-weight: 700; color: #e8e0d0; }
.rk b .text-link { color: #d4af37; }
.rk span { font-size: 11px; color: #8a8070; }
.realm-info {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 11.5px;
  color: #9a8f7d;
  border-left: 1px solid rgba(122, 101, 48, 0.3);
  padding-left: 18px;
}
.realm-info b { color: #d8cfae; font-family: "Rajdhani", sans-serif; font-size: 14px; margin-left: 4px; }

.realm-news {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.realm-news li {
  font-size: 12.5px;
  color: #8a8070;
  padding-left: 14px;
  position: relative;
}
.realm-news li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: #7a6530;
}
.realm-news li b { color: #c5bba4; font-weight: 600; }

.gm-banner.slim {
  display: inline-block;
  margin-top: 14px;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #b89a5a;
  text-decoration: none;
  border: 1px dashed rgba(184, 154, 90, 0.4);
  border-radius: 6px;
  padding: 8px 14px;
  transition: color .15s, border-color .15s;
}
.gm-banner.slim:hover { color: #e8d9a8; border-color: #b89a5a; }

@media (max-width: 700px) {
  .realm-info { border-left: none; padding-left: 0; }
  .dash { padding: 18px 14px 32px; }
}

/* ==========================================================================
   Rankings page: section tabs, leaderboard boards, unique respawn cards
   ========================================================================== */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 18px; }
.tab {
  padding: 8px 18px;
  border: 1px solid var(--border-default);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--text-muted);
  transition: color .16s, border-color .16s, background .16s;
}
.tab:hover { color: var(--text-bright); border-color: var(--border-strong); }
.tab-active { color: var(--text-bright); background: var(--btn-primary); border-color: var(--btn-primary-border); }

.rank-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 900px) { .rank-grid { grid-template-columns: 1fr; } }
.rank-board { padding: 16px 18px; }
.rank-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 13px;
}
.rank-row:last-child { border-bottom: none; }
.rank-num {
  flex-shrink: 0; width: 24px; text-align: center;
  font: 700 15px var(--font-num); color: var(--text-muted);
}
.rank-num.top1 { color: var(--accent-gold); }
.rank-num.top2 { color: var(--text-bright); }
.rank-num.top3 { color: var(--accent); }
.rank-num-static { font: 700 15px var(--font-num); color: var(--text-muted); }
.rank-num-static.top { color: var(--accent-gold); }
.rank-name { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; }
.rank-name small { color: var(--text-subtle); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-tag { flex-shrink: 0; }
.rank-val { flex-shrink: 0; font: 600 15px var(--font-num); color: var(--text-bright); }

.unique-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.unique-card { padding: 16px 18px; }
.unique-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.unique-name { font: 700 22px var(--font-num); letter-spacing: .04em; color: var(--text-bright); }
.unique-window { font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--text-muted); white-space: nowrap; }
.unique-loc { margin-top: 4px; font-size: 13px; color: var(--text-subtle); }
.unique-bar {
  height: 6px; margin: 12px 0 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px; overflow: hidden;
}
.unique-bar i {
  display: block; height: 100%;
  background: linear-gradient(to right, var(--accent-gold), var(--accent));
  border-radius: 3px;
}
.unique-remain { font-size: 13px; color: var(--text-subtle); }
.unique-remain b { font: 600 15px var(--font-num); color: var(--text-bright); }

/* ---------- unstuck panel ---------- */
.unstuck-panel { padding: 16px 18px; margin-top: 14px; }
.unstuck-hint { margin: 4px 0 12px; font-size: 13px; color: var(--text-subtle); }
.unstuck-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.unstuck-form select {
  flex: 1; min-width: 220px; max-width: 380px;
  padding: 9px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: 8px;
  color: var(--text-bright);
  font-family: var(--font-body);
  font-size: 14px;
}
.unstuck-form select:focus { outline: none; border-color: var(--accent); }
