:root {
  --bg: #0a0807;
  --bg-2: #120e0b;
  --surface: rgba(28, 22, 17, 0.72);
  --surface-solid: #1a1410;
  --surface-hi: rgba(44, 34, 25, 0.8);
  --border: rgba(232, 176, 79, 0.14);
  --border-hi: rgba(232, 176, 79, 0.32);
  --text: #efe6d6;
  --muted: #a2937d;
  --faint: #6f6352;
  --gold: #e8b04f;
  --gold-hi: #f6d48a;
  --gold-deep: #a8742a;
  --ember: #ff7a2f;
  --ok: #6fd08c;
  --err: #ef7a6c;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px -20px rgba(0, 0, 0, 0.8);
  --display: 'Cinzel', Georgia, 'Times New Roman', serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* class colors */
  --c-dw: #6fa8ff;
  --c-dk: #ff6b5b;
  --c-elf: #74d68b;
  --c-mg: #b98bff;
  --c-dl: #ffb04d;
  --c-sum: #ff7fc8;
  --c-rf: #4fd6d0;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(255, 122, 47, 0.10), transparent 60%),
    radial-gradient(900px 500px at 100% 30%, rgba(232, 176, 79, 0.05), transparent 60%),
    linear-gradient(var(--bg), var(--bg-2));
  background-attachment: fixed;
  color: var(--text);
  font: 400 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold-hi); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
code { font: 500 0.88em ui-monospace, 'Cascadia Code', Consolas, monospace; background: rgba(232, 176, 79, 0.08); border: 1px solid var(--border); padding: 1px 6px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 480px; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
[hidden] { display: none !important; }

/* ---------- embers ---------- */
.embers { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.embers i {
  position: absolute; bottom: -10px; width: 3px; height: 3px; border-radius: 50%;
  background: var(--ember); box-shadow: 0 0 8px 2px rgba(255, 122, 47, 0.6);
  opacity: 0; animation: rise linear infinite;
}
@keyframes rise {
  0% { transform: translate(0, 0); opacity: 0; }
  10% { opacity: 0.9; }
  100% { transform: translate(var(--drift, 40px), -105vh); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .embers { display: none; } }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(10, 8, 7, 0.65);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.nav.scrolled { border-bottom-color: var(--border); background: rgba(10, 8, 7, 0.85); }
.nav-inner { max-width: 1160px; margin: 0 auto; padding: 0 20px; height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--gold-hi); font: 700 1.25rem/1 var(--display); letter-spacing: 0.06em; }
.brand:hover { text-decoration: none; }
.brand em { font-style: normal; color: var(--text); }
.brand-mark { width: 30px; height: 30px; color: var(--gold); filter: drop-shadow(0 0 8px rgba(232, 176, 79, 0.35)); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: 0.95rem; padding: 8px 12px; border-radius: 999px; transition: color 0.2s, background 0.2s; }
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); text-decoration: none; }
.nav-links a.active { color: var(--gold-hi); background: rgba(232, 176, 79, 0.08); }
.nav-links a.nav-cta { margin-left: 8px; color: #1b1206; background: linear-gradient(180deg, var(--gold-hi), var(--gold)); font-weight: 600; }
.nav-links a.nav-cta:hover { filter: brightness(1.08); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; margin: 5px 0; background: var(--text); border-radius: 2px; transition: transform 0.25s, opacity 0.25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px 16px 18px; background: rgba(12, 9, 7, 0.97); border-bottom: 1px solid var(--border);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s;
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 12px 14px; border-radius: var(--radius-sm); }
  .nav-links a.nav-cta { margin: 8px 0 0; text-align: center; }
}

/* ---------- pages ---------- */
.page { position: relative; z-index: 1; flex: 1; padding-bottom: 72px; animation: fade 0.35s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.page-head { padding: 56px 20px 28px; }
.eyebrow { margin: 0 0 8px; color: var(--gold); font: 600 0.78rem/1 var(--body); letter-spacing: 0.22em; text-transform: uppercase; }
.page-title { margin: 0; font: 700 clamp(2rem, 5vw, 3rem)/1.1 var(--display); letter-spacing: 0.03em; }
.page-head .muted { margin: 10px 0 0; }
.section-title { margin: 0 0 18px; font: 700 1.5rem/1.2 var(--display); letter-spacing: 0.03em; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 96px 0 0; overflow: hidden; }
.hero-glow {
  position: absolute; left: 50%; top: -140px; width: 900px; height: 600px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255, 122, 47, 0.22), rgba(232, 176, 79, 0.08) 55%, transparent);
  filter: blur(10px); pointer-events: none;
}
.hero-inner { position: relative; text-align: center; }
.hero-title {
  margin: 6px 0 14px;
  font: 700 clamp(3.2rem, 11vw, 7rem)/0.95 var(--display);
  letter-spacing: 0.04em;
  background: linear-gradient(180deg, #fff4d8 0%, var(--gold-hi) 35%, var(--gold) 70%, var(--gold-deep) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 30px rgba(232, 176, 79, 0.25));
}
.hero-sub { max-width: 560px; margin: 0 auto 22px; color: var(--muted); font-size: 1.1rem; }
.hero-status { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); font-size: 0.92rem; color: var(--muted); }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--faint); }
.status-dot.on { background: var(--ok); box-shadow: 0 0 0 0 rgba(111, 208, 140, 0.6); animation: pulse 2s infinite; }
.status-dot.off { background: var(--err); }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(111, 208, 140, 0); } 100% { box-shadow: 0 0 0 0 rgba(111, 208, 140, 0); } }
.hero-cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin: 28px 0 56px; }

.stat-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 0 56px;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
  backdrop-filter: blur(8px); overflow: hidden;
}
.stat-strip div { padding: 20px 22px; text-align: center; }
.stat-strip div + div { border-left: 1px solid var(--border); }
.stat-strip dt { color: var(--muted); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; }
.stat-strip dd { margin: 6px 0 0; font: 700 1.9rem/1 var(--display); color: var(--gold-hi); }
@media (max-width: 640px) {
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-strip div:nth-child(3) { border-left: 0; }
  .stat-strip div:nth-child(n + 3) { border-top: 1px solid var(--border); }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 999px; border: 1px solid transparent;
  font: 600 1rem/1.2 var(--body); cursor: pointer; transition: transform 0.15s, filter 0.2s, background 0.2s, border-color 0.2s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-primary { color: #1b1206; background: linear-gradient(180deg, var(--gold-hi), var(--gold) 60%, var(--gold-deep)); box-shadow: 0 10px 30px -10px rgba(232, 176, 79, 0.6); }
.btn-primary:hover { filter: brightness(1.07); }
.btn-ghost { color: var(--text); border-color: var(--border-hi); background: rgba(255, 255, 255, 0.02); }
.btn-ghost:hover { background: rgba(232, 176, 79, 0.08); }
.btn-lg { padding: 15px 30px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn.disabled, .btn:disabled { opacity: 0.55; pointer-events: none; }

/* ---------- cards ---------- */
.card {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); backdrop-filter: blur(8px);
}
.card-title { margin: 0 0 14px; font: 700 1.05rem/1.3 var(--display); letter-spacing: 0.04em; color: var(--gold-hi); }
.more { display: inline-block; margin-top: 14px; font-size: 0.9rem; font-weight: 500; }

/* ---------- home ---------- */
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.side { display: grid; gap: 20px; }
@media (max-width: 900px) { .home-grid { grid-template-columns: 1fr; } }

.news-list { display: grid; gap: 16px; }
.news { padding: 26px 28px; }
.news-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 0.82rem; color: var(--muted); }
.tag { padding: 3px 10px; border-radius: 999px; background: rgba(232, 176, 79, 0.12); color: var(--gold-hi); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }
.news h3 { margin: 0 0 8px; font: 700 1.3rem/1.3 var(--display); }
.news p { margin: 0; color: #d6cab6; }

.mini-events, .mini-top { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.mini-events li, .mini-top li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid rgba(232, 176, 79, 0.07); font-size: 0.93rem; }
.mini-events li:last-child, .mini-top li:last-child { border-bottom: 0; }
.mini-events .when { color: var(--gold-hi); font-variant-numeric: tabular-nums; font-weight: 600; }
.mini-top .rank { width: 22px; color: var(--faint); font-weight: 700; font-variant-numeric: tabular-nums; }
.mini-top .who { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; }
.mini-top .who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-top .lvl { color: var(--muted); font-variant-numeric: tabular-nums; }
.placeholder { color: var(--faint); font-size: 0.9rem; padding: 6px 0; }

/* ---------- info ---------- */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
.rate { padding: 22px; }
.rate .label { color: var(--muted); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; }
.rate .value { margin-top: 6px; font: 700 2.2rem/1 var(--display); color: var(--gold-hi); }
.rate .note { margin-top: 8px; color: var(--muted); font-size: 0.85rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; } }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.rules { margin: 0; padding-left: 20px; display: grid; gap: 10px; color: #d6cab6; }
.rules li::marker { color: var(--gold); }

/* ---------- rankings ---------- */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.tabs { display: inline-flex; padding: 4px; gap: 4px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); }
.tab { border: 0; background: none; color: var(--muted); font: 600 0.92rem/1 var(--body); padding: 9px 18px; border-radius: 999px; cursor: pointer; transition: background 0.2s, color 0.2s; }
.tab:hover { color: var(--text); }
.tab.active { background: linear-gradient(180deg, var(--gold-hi), var(--gold)); color: #1b1206; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--border); background: transparent; color: var(--muted); font: 500 0.82rem/1 var(--body); padding: 7px 12px; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.chip:hover { color: var(--text); border-color: var(--border-hi); }
.chip.active { color: var(--text); border-color: var(--gold); background: rgba(232, 176, 79, 0.1); }

.table-card { padding: 0; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.table th { text-align: left; padding: 14px 18px; color: var(--muted); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 13px 18px; border-bottom: 1px solid rgba(232, 176, 79, 0.06); white-space: nowrap; }
.table tbody tr { transition: background 0.15s; }
.table tbody tr:hover { background: rgba(232, 176, 79, 0.04); }
.table tbody tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table th.num { text-align: right; }
.name { font-weight: 600; }
.medal { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-weight: 700; font-size: 0.85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.medal.m1 { background: linear-gradient(180deg, #ffe39a, #d9a23d); color: #2a1a04; box-shadow: 0 0 18px rgba(232, 176, 79, 0.45); }
.medal.m2 { background: linear-gradient(180deg, #f0f0f0, #a9adb4); color: #1f2226; }
.medal.m3 { background: linear-gradient(180deg, #f2b58a, #a8643a); color: #2a1206; }
.class { display: inline-flex; align-items: center; gap: 8px; color: #d6cab6; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--muted); }
.dot.dw { background: var(--c-dw); } .dot.dk { background: var(--c-dk); } .dot.elf { background: var(--c-elf); }
.dot.mg { background: var(--c-mg); } .dot.dl { background: var(--c-dl); } .dot.sum { background: var(--c-sum); } .dot.rf { background: var(--c-rf); }
.guild-cell { display: inline-flex; align-items: center; gap: 10px; }
.logo { width: 24px; height: 24px; image-rendering: pixelated; border-radius: 4px; background: #000; border: 1px solid var(--border); }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); margin: 0; }
.table-card + .muted { margin-top: 12px; }

/* ---------- events ---------- */
.events-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.event { display: flex; flex-direction: column; gap: 14px; transition: border-color 0.2s, transform 0.2s; }
.event:hover { border-color: var(--border-hi); transform: translateY(-2px); }
.event.live { border-color: rgba(111, 208, 140, 0.45); box-shadow: 0 0 0 1px rgba(111, 208, 140, 0.15), var(--shadow); }
.event-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.event h3 { margin: 0; font: 700 1.2rem/1.25 var(--display); }
.event .dur { color: var(--muted); font-size: 0.85rem; margin-top: 2px; }
.badge-live { padding: 4px 10px; border-radius: 999px; background: rgba(111, 208, 140, 0.14); color: var(--ok); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.countdown { font: 700 2rem/1 var(--display); color: var(--gold-hi); font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.countdown-label { color: var(--muted); font-size: 0.82rem; }
.times { display: flex; flex-wrap: wrap; gap: 6px; }
.times span { padding: 4px 9px; border-radius: 8px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(232, 176, 79, 0.08); color: var(--muted); font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.times span.next { color: #1b1206; background: var(--gold); border-color: var(--gold); font-weight: 600; }

/* ---------- download & form ---------- */
.download-card { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.download-card p { margin: 0; }
.steps { margin: 0 0 16px; padding-left: 22px; display: grid; gap: 12px; color: #d6cab6; }
.steps li::marker { color: var(--gold); font-weight: 700; }

.form label { display: block; margin-bottom: 16px; color: var(--muted); font-size: 0.88rem; font-weight: 500; }
.form input {
  display: block; width: 100%; margin-top: 6px; padding: 12px 14px;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: rgba(8, 6, 5, 0.7);
  color: var(--text); font: 400 1rem/1.3 var(--body); transition: border-color 0.2s, box-shadow 0.2s;
}
.form input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(232, 176, 79, 0.18); }
.form .muted.small { margin: 0 0 18px; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.message { margin: 14px 0 0; min-height: 1.5em; text-align: center; font-weight: 500; }
.message.ok { color: var(--ok); }
.message.err { color: var(--err); }

/* ---------- footer ---------- */
.footer { position: relative; z-index: 1; border-top: 1px solid var(--border); padding: 28px 0; font-size: 0.88rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }

/* ---------- shared bits ---------- */
.btn-sm { padding: 8px 14px; font-size: 0.88rem; }
.btn:disabled { cursor: not-allowed; }
.section-title.spaced { margin-top: 36px; }
.two-col.top { align-items: start; }
.gp-value .small { font-family: var(--body); }
.profile-sub { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.notice { margin: 0 0 18px; padding: 14px 18px; border: 1px solid rgba(239, 122, 108, 0.35); border-radius: var(--radius-sm); background: rgba(239, 122, 108, 0.08); color: #f3c2b9; }
a.name { color: var(--text); }
a.name:hover { color: var(--gold-hi); }
.dot-online { display: inline-block; width: 8px; height: 8px; margin-left: 8px; border-radius: 50%; background: var(--ok); vertical-align: middle; }

/* ---------- changelog ---------- */
.changelog { display: grid; gap: 18px; }
.log-entry { max-width: 920px; }
.log-entry h3 { margin: 0 0 12px; font: 700 1.3rem/1.3 var(--display); }
.log-items { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.log-items li { display: flex; gap: 12px; align-items: baseline; color: #d6cab6; }
.log-tag { flex: none; min-width: 132px; padding: 2px 10px; border-radius: 999px; background: rgba(232, 176, 79, 0.1); color: var(--gold-hi); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; text-align: center; }
@media (max-width: 640px) { .log-items li { flex-direction: column; gap: 4px; } .log-tag { min-width: 0; } }

/* ---------- commands ---------- */
.commands-card { margin-top: 20px; }
.commands-card > .muted { margin: -6px 0 14px; }
.commands { display: grid; gap: 8px 28px; }
.cmd-group h4 { margin: 6px 0 8px; color: var(--muted); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; }
.cmd-list { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 0; }
.cmd-list dt code { white-space: nowrap; }
.cmd-list dd { margin: 0; color: #d6cab6; font-size: 0.92rem; }
.cmd-cost { display: block; color: var(--gold); font-size: 0.8rem; }
@media (max-width: 520px) { .commands { grid-template-columns: 1fr; } .cmd-list { grid-template-columns: 1fr; gap: 2px; } .cmd-list dd { margin-bottom: 8px; } }

/* ---------- profiles ---------- */
.items { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.item { display: grid; grid-template-columns: 110px 1fr; gap: 2px 12px; padding: 8px 0; border-bottom: 1px solid rgba(232, 176, 79, 0.07); }
.item:last-child { border-bottom: 0; }
.item .slot { color: var(--faint); font-size: 0.8rem; padding-top: 2px; }
.item-name { font-weight: 600; }
.item-name.exc { color: #7fe39a; }
.item-name.anc { color: #6fc7ff; }
.item .plus { color: var(--gold-hi); }
.item .flags { grid-column: 2; display: flex; flex-wrap: wrap; gap: 4px; }
.flag { padding: 1px 8px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); font-size: 0.72rem; }
.flag.exc { color: #7fe39a; border-color: rgba(127, 227, 154, 0.35); }
.flag.anc { color: #6fc7ff; border-color: rgba(111, 199, 255, 0.35); }
.guild-title { display: flex; align-items: center; gap: 16px; }
.logo-lg { width: 56px; height: 56px; border-radius: 8px; }

/* ---------- achievements ---------- */
.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.ach { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid rgba(232, 176, 79, 0.08); border-radius: var(--radius-sm); background: rgba(20, 16, 12, 0.55); opacity: 0.55; }
.ach.earned { opacity: 1; border-color: var(--border-hi); background: linear-gradient(180deg, rgba(232, 176, 79, 0.10), rgba(28, 22, 17, 0.7)); }
.ach-icon { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, 0.04); color: var(--faint); font-size: 1.1rem; }
.ach.earned .ach-icon { background: linear-gradient(180deg, var(--gold-hi), var(--gold-deep)); color: #2a1a04; box-shadow: 0 0 14px rgba(232, 176, 79, 0.35); }
.ach-title { font-weight: 600; }
.ach-desc { color: var(--muted); font-size: 0.85rem; }
.ach-claim { margin-top: 8px; color: var(--faint); font-size: 0.8rem; font-weight: 600; }
.ach-claim.done { color: var(--ok); }

/* ---------- account ---------- */
.account-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 18px; padding: 18px 24px; }
.account-name { font: 700 1.4rem/1.2 var(--display); color: var(--gold-hi); }
.account-gp { margin-left: auto; text-align: right; }
.gp-value { font: 700 1.3rem/1.2 var(--display); }
#accountMessage { margin: 0 0 14px; text-align: left; }
#accountMessage:empty { display: none; }
.char-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; margin-bottom: 36px; }
.char-card { display: flex; flex-direction: column; gap: 14px; }
.char-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.char-head h3 { margin: 0 0 4px; font: 700 1.25rem/1.2 var(--display); }
.char-level { text-align: right; display: flex; flex-direction: column; }
.char-level .big { font: 700 1.9rem/1 var(--display); color: var(--gold-hi); }
.kv.compact { gap: 4px 14px; font-size: 0.92rem; }
.stat-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip.static { cursor: default; }
.char-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.reason { margin: 0; min-height: 1.2em; }
.account-lower { margin-top: 36px; }
@media (max-width: 520px) {
  .char-grid { grid-template-columns: 1fr; }
  .account-gp { margin-left: 0; text-align: left; }
  .item { grid-template-columns: 1fr; }
  .item .flags { grid-column: 1; }
}
@media (max-width: 640px) {
  #charBody .info-grid, #guildBody .info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  #charBody .rate .value, #guildBody .rate .value { font-size: 1.6rem; overflow-wrap: anywhere; }
}
