﻿@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&family=Sora:wght@400;500;600;700&family=Syne:wght@600;700;800&display=swap');
:root {
  --bg-0: #07080c;
  --bg-1: #0c0e14;
  --panel: rgba(14, 16, 22, 0.72);
  --panel-solid: #101218;
  --panel-2: rgba(255, 255, 255, 0.04);
  --input: rgba(6, 7, 10, 0.72);
  --border: rgba(255, 255, 255, 0.1);
  --border-soft: rgba(255, 255, 255, 0.06);
  --line-gold: rgba(232, 184, 109, 0.45);
  --text: #f3efe6;
  --text-dim: #a8a294;
  --text-faint: #6f6a60;
  --gold: #e8b86d;
  --gold-dark: #b8883e;
  --gold-hi: #f3d7a4;
  --green: #3dbe86;
  --green-dark: #2a9a6c;
  --purple: #8ea0c8;
  --red: #ef6b5c;
  --blue: #7eb6e8;
  --yellow: #e8b86d;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
  --font: "Outfit", system-ui, sans-serif;
  --display: "Syne", "Outfit", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-0);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .brand { font-family: var(--display); letter-spacing: -0.03em; }

a { color: inherit; text-decoration: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------------- Top bar ---------------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: rgba(10, 11, 16, 0.7);
  border-bottom: 1px solid var(--border-soft);
  backdrop-filter: blur(8px);
}

.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 20px; }
.brand img {/* width: 36px; *//* height: 36px; */border-radius: 8px;}
.brand .brand-gold { color: var(--gold); }

.topbar-right { display: flex; align-items: center; gap: 20px; font-size: 14px; color: var(--text-dim); }
.pill { display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,0.04); border: 1px solid var(--border-soft); }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.topbar-right a { color: var(--text-dim); transition: color .15s; }
.topbar-right a:hover { color: var(--text); }

/* ---------------- Layout helpers ---------------- */
.center-screen { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------------- Panels / cards ---------------- */
.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.panel.tight { padding: 18px; }
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
}
.card .card-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 12px; }
.icon-gold { background: rgba(240,169,27,.12); color: var(--gold); }
.icon-green { background: rgba(18,185,129,.12); color: var(--green); }
.icon-purple { background: rgba(139,92,246,.12); color: var(--purple); }
.icon-blue { background: rgba(59,130,246,.12); color: var(--blue); }

.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: 11px; color: var(--text-faint); font-weight: 700; margin: 0 0 6px; }
h1, h2, h3 { margin: 0; }
h1 { font-size: 30px; }
h2 { font-size: 20px; }
.muted { color: var(--text-dim); }
.empty { color: var(--text-faint); font-size: 14px; }

/* ---------------- Forms ---------------- */
label { display: block; font-size: 13px; font-weight: 600; color: var(--text-dim); margin-bottom: 6px; }
.field { margin-bottom: 16px; }
input, select, textarea {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  transition: border-color .15s, background .15s;
}
input::placeholder, textarea::placeholder { color: var(--text-faint); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); background: rgba(240,169,27,0.04); }
textarea { resize: vertical; min-height: 90px; font-family: 'SFMono-Regular', Consolas, monospace; }

.input-icon { position: relative; }
.input-icon input { padding-left: 40px; }
.input-icon .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--gold); display: flex; pointer-events: none; }
.ui-ico { width: 18px; height: 18px; flex: 0 0 auto; display: block; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: filter .15s, transform .05s;
  text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-gold { background: linear-gradient(180deg, #ffc84d, var(--gold)); color: #241900; }
.btn-gold:hover { filter: brightness(1.06); }
.btn-green { background: var(--green); color: #04231a; }
.btn-green:hover { filter: brightness(1.08); }
.btn-purple { background: var(--purple); color: #fff; }
.btn-purple:hover { filter: brightness(1.08); }
.btn-outline { background: transparent; border-color: var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-ghost { background: transparent; color: var(--green); font-weight: 700; }
.btn-ghost:hover { filter: brightness(1.15); }
.btn-danger { background: rgba(239,68,68,.12); color: #ff8080; border-color: rgba(239,68,68,.35); }
.btn-danger:hover { background: rgba(239,68,68,.2); }

/* ---------------- Notices / flash ---------------- */
.notice { padding: 12px 16px; border-radius: 10px; margin-bottom: 14px; font-size: 14px; border: 1px solid transparent; }
.notice.success { background: rgba(18,185,129,.1); border-color: rgba(18,185,129,.3); color: #6ee7b7; }
.notice.error   { background: rgba(239,68,68,.1); border-color: rgba(239,68,68,.3); color: #fca5a5; }
.notice.warning { background: rgba(240,169,27,.1); border-color: rgba(240,169,27,.3); color: #fcd34d; }
.notice.info    { background: rgba(59,130,246,.1); border-color: rgba(59,130,246,.3); color: #93c5fd; }

/* ---------------- Stat rows ---------------- */
.stat-value { font-size: 34px; font-weight: 800; color: var(--gold); }
.stat-label { color: var(--text-dim); font-size: 13px; }
dl.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin: 14px 0 0; }
dl.kv div { display: flex; justify-content: space-between; font-size: 13px; border-bottom: 1px dashed var(--border-soft); padding-bottom: 6px; }
dl.kv dt { color: var(--text-faint); }
dl.kv dd { margin: 0; font-weight: 600; }

/* ---------------- Character card ---------------- */
.avatar { width: 46px; height: 46px; border-radius: 12px; background: linear-gradient(135deg, var(--gold), var(--gold-dark)); display: flex; align-items: center; justify-content: center; font-weight: 800; color: #241900; font-size: 18px; }

/* ---------------- Tables ---------------- */
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border-soft); }
th { color: var(--text-faint); text-transform: uppercase; font-size: 11px; letter-spacing: .05em; }
tr:hover td { background: rgba(255,255,255,0.015); }

/* ---------------- Tabs ---------------- */
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--border); margin-bottom: 24px; flex-wrap: wrap; }
.tab-btn {
  padding: 12px 18px;
  border: none;
  background: transparent;
  color: var(--text-dim);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--gold); border-bottom-color: var(--gold); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ---------------- Sidebar layout (admin) ---------------- */
.admin-layout { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: flex-start; }
@media (max-width: 960px) { .admin-layout { grid-template-columns: 1fr; } }
.side-list { display: flex; flex-direction: column; gap: 6px; max-height: 60vh; overflow-y: auto; margin-top: 12px; }
.side-row { display: flex; flex-direction: column; padding: 10px 12px; border-radius: 8px; border: 1px solid transparent; }
.side-row:hover { background: rgba(255,255,255,0.03); }
.side-row.active { background: rgba(240,169,27,.08); border-color: rgba(240,169,27,.25); }
.side-row strong { font-size: 14px; }
.side-row span { font-size: 12px; color: var(--text-faint); }

.code-block { background: #05060a; color: #cbd5e1; border-radius: 10px; padding: 14px; font-family: 'SFMono-Regular', Consolas, monospace; font-size: 12.5px; white-space: pre-wrap; word-break: break-word; max-height: 320px; overflow-y: auto; border: 1px solid var(--border-soft); }

.badge { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.badge-get { background: rgba(18,185,129,.15); color: var(--green); }
.badge-post { background: rgba(59,130,246,.15); color: var(--blue); }

.chat-feed { display: flex; flex-direction: column; gap: 8px; max-height: 240px; overflow-y: auto; }
.chat-line { font-size: 13px; display: flex; gap: 8px; flex-wrap: wrap; }
.chat-line time { color: var(--text-faint); font-variant-numeric: tabular-nums; }
.chat-line strong { color: var(--gold); }
.chat-rich { font-weight: 650; }

footer.site-footer { text-align: center; color: var(--text-faint); font-size: 12.5px; padding: 28px 24px 36px; }
footer.site-footer a { color: var(--text-dim); }
footer.site-footer a:hover { color: var(--gold); }

.hint { font-size: 12px; color: var(--text-faint); line-height: 1.5; margin-top: 6px; }
.section-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.divider { height: 1px; background: var(--border-soft); margin: 20px 0; border: none; }

/* ---------------- Google OAuth button ---------------- */
.btn-google {
  background: #fff;
  color: #3c4043;
  border: 1px solid #dadce0;
  font-weight: 600;
  gap: 10px;
}
.btn-google:hover {
  background: #f8f9fa;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
  filter: none;
}

/* ---------------- Auth divider ("or") ---------------- */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--text-faint);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-soft);
}

/* ---------------- PayPal button ---------------- */
.btn-paypal {
  background: linear-gradient(180deg, #ffc439, #f0b429);
  color: #003087;
  border-color: #e6a520;
  font-weight: 700;
}
.btn-paypal:hover { filter: brightness(1.05); }

/* ---------------- Order status badges in dashboard ---------------- */
.badge-pending { color: var(--text-faint); }
.badge-paid    { color: var(--green); font-weight: 700; }
.badge-cancel  { color: var(--red); }

/* ---------------- Download strip (login page) ---------------- */
.download-strip {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 20px;
  background: rgba(10, 11, 16, 0.92);
  border-top: 1px solid var(--border-soft);
  backdrop-filter: blur(8px);
  z-index: 100;
}
.download-label {
  font-size: 12px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-right: 4px;
}
.dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: filter .15s, transform .05s;
  text-decoration: none;
}
.dl-btn:active { transform: translateY(1px); }

.dl-google  { background: #01875f; color: #fff; }
.dl-google:hover { filter: brightness(1.12); }

.dl-apple   { background: #1c1c1e; color: #fff; border-color: rgba(255,255,255,.12); }
.dl-apple:hover { filter: brightness(1.25); }

.dl-apk     { background: rgba(240,169,27,.12); color: var(--gold); border-color: rgba(240,169,27,.3); }
.dl-apk:hover { background: rgba(240,169,27,.2); }

.dl-windows { background: rgba(59,130,246,.12); color: var(--blue); border-color: rgba(59,130,246,.3); }
.dl-windows:hover { background: rgba(59,130,246,.2); }


/* =====================================================
   Modern theme â€” glass, ink, one gold accent
   ===================================================== */
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
[hidden] { display: none !important; }
body { position: relative; isolation: isolate; min-height: 100%; }
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: url(../img/bg.webp);
  background-size: cover;
  background-position: center;
  filter: saturate(.75) brightness(.42) contrast(1.05);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, rgba(232, 184, 109, .08), transparent 62%),
    linear-gradient(180deg, rgba(7, 8, 12, .55), rgba(7, 8, 12, .28) 38%, rgba(7, 8, 12, .78));
}
#motes { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.dashbody::before { filter: saturate(.55) brightness(.28); }
.dashbody::after, .adm::after {
  background:
    linear-gradient(180deg, rgba(7, 8, 12, .78), rgba(7, 8, 12, .88));
}

.panel, .card, .win {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(1.15);
}
.win { display: flex; flex-direction: column; min-height: 0; position: relative; overflow: hidden; }
.win-h {
  position: relative;
  flex: 0 0 auto;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 20px 0;
  background: transparent;
  border: 0;
  font: 700 12px var(--display);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
}
.win-h i, .win-h::before, .win-h::after { display: none; }
.win-b { padding: 14px 18px 18px; overflow: auto; min-height: 0; }

.topbar, .gnav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px clamp(16px, 3vw, 36px);
  background: rgba(7, 8, 12, .62);
  border: 0;
  border-bottom: 1px solid var(--border-soft);
  backdrop-filter: blur(18px);
  box-shadow: none;
}
.gnav .brand, .brand { display: flex; align-items: center; gap: 10px; color: var(--text); font: 700 18px var(--display); }
.logo-img { height: 36px; width: auto; display: block; }
.logo-gem { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); display: inline-block; margin-right: 8px; box-shadow: none; }
.gnav { display: grid; grid-template-columns: 1fr auto 1fr; }
.gnav-r, .topbar-right { display: flex; align-items: center; gap: 8px; justify-self: end; }
.menu { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(0, 0, 0, .35); border: 1px solid var(--border); }
.menu a, .gnav .out { display: inline-flex; align-items: center; gap: 7px; }
.menu a { padding: 8px 14px; border-radius: 999px; color: var(--text-dim); font-weight: 600; font-size: 14px; }
.menu a:hover { color: var(--text); }
.menu a.on { background: var(--gold); color: #1a140c; }
.mi { width: 16px; height: 16px; flex: 0 0 auto; display: block; }
.rankbody { --font: "Sora", system-ui, sans-serif; --display: "Sora", system-ui, sans-serif; font-family: var(--font); }
.rankbody h1, .rankbody h2, .rankbody h3, .rankbody button, .rankbody input, .rankbody a, .rankbody th, .rankbody td { font-family: var(--font); }
.rankbody .rk-tabs a, .rankbody .rk-tabs-main a { display: inline-flex; align-items: center; gap: 7px; }
@media (max-width: 720px) {
  .gnav { grid-template-columns: 1fr; justify-items: center; gap: 10px; }
  .gnav-r { justify-self: center; }
}
.navlink {
  color: var(--text-dim);
  font-weight: 600;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
}
.navlink:hover, .navlink.on { color: var(--text); background: var(--panel-2); }
.gnav .out {
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
}
.gnav .out:hover { border-color: var(--line-gold); color: var(--gold); filter: none; }
.chip, .pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--input);
  color: var(--text-dim);
  font-size: 13px;
}
.chip b, .pill.wc { color: var(--gold); font-weight: 700; }
.chip img { width: 18px; height: 18px; object-fit: contain; }
.pill .dot { background: var(--green); box-shadow: none; }

input, select, textarea {
  background: var(--input);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  box-shadow: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--gold);
  background: var(--input);
  box-shadow: 0 0 0 3px rgba(232, 184, 109, .16);
}
label { color: var(--text-faint); text-transform: uppercase; letter-spacing: .08em; font-size: 11px; font-weight: 700; }

.btn { border-radius: 12px; border: 1px solid transparent; letter-spacing: .01em; }
.btn-gold {
  background: var(--gold);
  color: #1a140c;
  border-color: var(--gold);
  text-shadow: none;
  box-shadow: none;
}
.btn-gold:hover { background: var(--gold-hi); filter: none; }
.btn-green { background: var(--green); color: #04170e; border-color: var(--green); }
.btn-purple { background: var(--blue); color: #07131c; }
.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 12px;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); background: transparent; }
.btn-danger { background: transparent; color: var(--red); border-color: rgba(239, 107, 92, .45); }
.btn-google { border-radius: 12px; }

.notice { background: var(--panel-2); }
.notice.success { background: rgba(61, 190, 134, .1); border-color: rgba(61, 190, 134, .35); color: #8ee0b8; }
.notice.error { background: rgba(239, 107, 92, .1); border-color: rgba(239, 107, 92, .35); color: #ffb4aa; }
.notice.warning { background: rgba(232, 184, 109, .1); border-color: var(--line-gold); color: var(--gold-hi); }
.notice.info { background: rgba(126, 182, 232, .1); border-color: rgba(126, 182, 232, .35); color: #c5def6; }
.stat-value, .eyebrow, .kicker, .dl-h { color: var(--gold); text-shadow: none; }
.avatar { background: var(--gold); color: #1a140c; border-radius: 14px; }

/* landing */
.stage {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(300px, 380px) minmax(0, 1fr) minmax(300px, 380px);
  gap: 22px;
  padding: 22px clamp(16px, 2.4vw, 40px);
  align-items: stretch;
}
@media (min-width: 1000px) {
  .land { display: flex; flex-direction: column; height: 100svh; overflow: hidden; }
  .land .stage { flex: 1; height: auto; min-height: 0; }
  .land .stage > .win { max-height: 100%; }
}
.stage > .win { align-self: center; max-height: calc(100svh - 44px); }
.center { display: flex; flex-direction: column; min-height: 0; text-align: center; gap: 10px; justify-content: center; }
.kicker { overflow-wrap: anywhere; }
.center h1 {
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 800;
  line-height: .92;
  margin: 0;
  color: var(--text);
  background: none;
  filter: none;
}
.center .logo-big {
  max-height: 168px;
  max-width: min(100%, 520px);
  margin: 8px auto 0;
  object-fit: contain;
  animation: logoIn .7s ease both, logoFloat 5.6s ease-in-out .7s infinite;
  filter: drop-shadow(0 18px 16px rgba(0, 0, 0, .45));
}
@keyframes logoIn { from { opacity: 0; transform: translateY(14px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes logoFloat {
  0%, 100% { transform: translateY(0); filter: drop-shadow(0 18px 16px rgba(0, 0, 0, .45)) drop-shadow(0 0 0 rgba(232, 184, 109, 0)); }
  50% { transform: translateY(-8px); filter: drop-shadow(0 26px 18px rgba(0, 0, 0, .4)) drop-shadow(0 0 18px rgba(232, 184, 109, .45)); }
}
.kicker { margin: 0 auto; max-width: 34em; padding: 0 12px; font: 600 12px var(--font); letter-spacing: .12em; text-transform: uppercase; }
.lead { color: var(--text-dim); max-width: 36em; margin: 0 auto; line-height: 1.55; font-size: clamp(15px, 1.3vw, 17px); }
.art-stage { flex: 1; min-height: 180px; position: relative; }
.art { position: absolute; inset: 0; display: none; align-items: flex-end; justify-content: center; }
.art.on { display: flex; animation: rise .45s ease both; }
.art img { max-height: 100%; max-width: 100%; object-fit: contain; filter: drop-shadow(0 30px 28px rgba(0, 0, 0, .55)); animation: float 5.5s ease-in-out infinite; }
.art .ico-big { align-self: center; max-height: 42%; opacity: .7; filter: none; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.feat { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; text-align: left; }
.f {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--border-soft);
  background: rgba(8, 9, 14, .45);
  border-radius: 14px;
  backdrop-filter: blur(10px);
}
.f img { width: 36px; height: 36px; object-fit: cover; border: 0; border-radius: 8px; }
.f b { display: block; color: var(--text); font: 600 13px var(--font); margin-bottom: 2px; }
.f small { color: var(--text-dim); font-size: 12px; line-height: 1.35; display: block; }
.feat a.f { color: inherit; text-decoration: none; transition: border-color .2s, background .2s; }
.feat a.f:hover { border-color: var(--gold); background: rgba(232, 184, 109, .08); }
.gal { display: flex; gap: 8px; justify-content: center; }
.gal img { width: 88px; height: 52px; object-fit: cover; border: 1px solid var(--border); border-radius: 10px; display: block; transition: border-color .2s; }
.gal a:hover img { border-color: var(--gold); box-shadow: none; }

.cslots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.cslot {
  position: relative;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(0, 0, 0, .28);
  cursor: pointer;
  color: inherit;
  font: inherit;
  text-align: center;
  overflow: hidden;
  transition: border-color .2s, transform .2s;
}
.cslot .im { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; overflow: hidden; }
.cslot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.cslot .ico { width: 52%; height: 52%; object-fit: contain; }
.cslot em { display: block; font-style: normal; font: 600 12px var(--font); padding: 8px 4px; color: var(--text-dim); }
.cslot::before { display: none; }
.cslot:hover { border-color: var(--line-gold); transform: translateY(-2px); }
.cslot.on { border-color: var(--gold); box-shadow: none; }
.cslot.on em { color: var(--gold); }

.tip { display: none; border: 1px solid var(--border-soft); background: rgba(0, 0, 0, .22); border-radius: 16px; overflow: hidden; }
.tip.on { display: block; animation: rise .35s ease both; }
.tip-h { padding: 12px 14px; background: transparent; border-bottom: 1px solid var(--border-soft); }
.tip-h b { display: block; color: var(--text); font: 700 18px var(--display); }
.tip-h span { font-size: 12px; color: var(--gold); letter-spacing: .06em; text-transform: uppercase; }
.tip-b { padding: 12px 14px 14px; font-size: 14px; line-height: 1.55; color: var(--text-dim); }
.tip-b h4 { margin: 12px 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text); }
.tip-b h4:first-child { margin-top: 0; }
.tip-b h4::before { content: none; }
.tip-b p { margin: 0; }
.mag { color: var(--text); display: flex; gap: 8px; align-items: center; margin: 4px 0; }
.mag img { width: 22px; height: 22px; border-radius: 6px; object-fit: cover; }
.mag small { color: var(--text-faint); }
.tip .btn { margin-top: 14px; }

.atabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 16px; padding: 4px; background: rgba(0, 0, 0, .28); border-radius: 14px; }
.atab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  border: 0;
  background: transparent;
  color: var(--text-dim);
  font: 600 14px var(--font);
  cursor: pointer;
  border-radius: 10px;
}
.atab .ui-ico { width: 16px; height: 16px; }
.atab.on { color: #1a140c; background: var(--gold); }
.pane .field { margin-bottom: 12px; }
.dl-h { margin: 18px 0 10px; padding-top: 14px; border-top: 1px solid var(--border-soft); font: 700 11px var(--font); letter-spacing: .16em; text-align: center; }
.dl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gbtn {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, .03);
  color: var(--text);
  font-weight: 700;
  font-size: 13px;
  transition: border-color .2s;
  text-align: left;
}
.gbtn span { display: flex; flex-direction: column; min-width: 0; white-space: nowrap; }
.gbtn .ui-ico { width: 20px; height: 20px; color: var(--gold); flex: 0 0 auto; }
.gbtn small { font-weight: 500; font-size: 11px; color: var(--text-faint); }
.gbtn:hover { border-color: var(--gold); filter: none; color: var(--gold-hi); }
.gbtn.is-soon { position: relative; cursor: default; opacity: .8; }
.gbtn.is-soon:hover { border-color: var(--border); color: var(--text); }
.soon-check { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; letter-spacing: 0; text-transform: none; color: var(--text-dim); }
.open-card { margin: 8px auto 0; padding: 14px 16px 12px; border: 1px solid var(--line-gold); border-radius: 18px; background: rgba(8, 9, 14, .55); text-align: center; }
.open-place { margin: 4px 0 10px; color: var(--text-dim); font-size: 13px; }
.open-place span { color: var(--gold); font-variant-numeric: tabular-nums; }
.open-count { display: flex; justify-content: center; gap: 8px; }
.open-count div { min-width: 58px; padding: 8px 6px; border-radius: 12px; background: rgba(0, 0, 0, .28); border: 1px solid var(--border-soft); }
.open-count b { display: block; font: 700 20px var(--display); color: var(--text); }
.open-count small { color: var(--text-faint); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.open-live { margin: 8px 0 0; color: var(--gold); font-weight: 700; }
.dl-page { display: grid; gap: 10px; margin-top: 16px; }
.dl-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px solid var(--border-soft); border-radius: 16px; background: rgba(255, 255, 255, .03); }
.dl-card.is-live { border-color: var(--line-gold); }
.dl-card.is-soon { opacity: .42; background: rgba(0, 0, 0, .45); border-color: transparent; }
.dl-card.is-soon .mark { background: rgba(255, 255, 255, .04); color: var(--text-faint); }
.dl-card.is-soon b, .dl-card.is-soon small { color: var(--text-faint); }
.dl-card.is-soon .soon { background: rgba(255, 255, 255, .08); color: var(--text-faint); }
.live-stage { margin: 16px 0 8px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line-gold); background: #000; aspect-ratio: 16/9; }
.live-stage iframe { width: 100%; height: 100%; border: 0; display: block; }
.live-gate { margin-top: 18px; padding: 16px; border-radius: 16px; border: 1px solid var(--line-gold); background: rgba(232, 184, 109, .06); display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.live-gate b { display: block; font: 700 16px var(--display); }
.live-gate p { margin: 4px 0 0; color: var(--text-dim); font-size: 13px; }
@media (max-width: 560px) { .live-gate { flex-direction: column; align-items: stretch; } }
.dl-card b { display: block; font: 700 16px var(--display); }
.dl-card small { color: var(--text-dim); font-size: 12px; }
.live-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.dl-card .soon, .live-side .soon { padding: 4px 8px; border-radius: 999px; background: var(--gold); color: #1a140c; font-size: 10px; font-style: normal; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.dl-card.is-soon .soon { background: rgba(255, 255, 255, .08); color: var(--text-faint); }
.dl-card .soon.off { background: transparent; color: var(--text-faint); border: 1px solid var(--border); }
.gbtn .soon {
  position: absolute;
  top: 7px;
  right: 8px;
  margin: 0;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--gold);
  color: #1a140c;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1;
  text-transform: uppercase;
}
.foot-note { text-align: center; color: var(--text-faint); font-size: 12px; margin: 14px 0 0; }
.foot-note a:hover { color: var(--gold); }
.activity { margin-top: 0; text-align: left; }
.realm-live { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border-soft); text-align: center; }
.online-now { margin: 0; color: var(--gold); font: 700 12px var(--font); letter-spacing: .16em; text-transform: uppercase; }
.online-now b { margin-right: 6px; font: 700 28px var(--display); letter-spacing: 0; color: var(--text); }
.realm-live .activity-h { border-top: 0; padding-top: 10px; }
.menu .event-open { border: 0; background: transparent; color: var(--text-dim); font: 600 14px var(--font); padding: 8px 14px; border-radius: 999px; cursor: pointer; }
.menu .event-open:hover { color: var(--text); }
.modal[hidden] { display: none; }
.event-pop { position: relative; width: min(680px, 100%); margin: 8vh auto; padding: 22px 22px 16px; background: var(--panel-solid); border: 1px solid var(--border); border-radius: 18px; }
.event-x { position: absolute; top: 10px; right: 12px; border: 0; background: transparent; color: var(--text-faint); font-size: 26px; line-height: 1; cursor: pointer; }
.event-x:hover { color: var(--text); }
.event-pop .event-list { max-height: min(60vh, 480px); }
.activity-h { margin: 0 0 10px; padding-top: 14px; border-top: 1px solid var(--border-soft); font: 700 11px var(--font); letter-spacing: .16em; text-transform: uppercase; text-align: center; color: var(--gold); }
.activity-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.activity-list li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border-soft); border-radius: 14px; background: rgba(255, 255, 255, .03); }
.ev-mark { flex: 0 0 auto; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: rgba(232, 184, 109, .12); color: var(--gold); }
.ev-login .ev-mark { background: rgba(61, 190, 134, .14); color: var(--green); }
.ev-mark .ui-ico { width: 16px; height: 16px; }
.ev-body { min-width: 0; flex: 1; }
.ev-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.ev-top b { font: 700 14px var(--display); letter-spacing: -.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-top time { flex: 0 0 auto; font-size: 11px; color: var(--text-faint); }
.ev-body p { margin: 2px 0 0; font-size: 12px; color: var(--text-dim); line-height: 1.35; }

@media (max-width: 999px) {
  .stage { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .stage > * { min-width: 0; }
  .stage > .win { max-height: none; }
  .center { order: -1; }
  .kicker { letter-spacing: .06em; font-size: 11px; }
  .art-stage { min-height: 240px; }
  .feat { grid-template-columns: 1fr 1fr; }
  .land { height: auto; overflow: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .art img, .art.on, .tip.on, .cslot, .logo-big { animation: none; transition: none; }
}

/* dashboard */
.dash {
  max-width: 1480px;
  display: grid;
  grid-template-columns: minmax(340px, 440px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding-top: 22px;
  padding-bottom: 48px;
}
.dash > * { margin-top: 0; }
.dash > .banner, .dash > .notice { grid-column: 1 / -1; }
.dash #characters { grid-column: 1; min-height: 0; align-self: start; }
.dash-right { grid-column: 2; min-width: 0; }
.dash.nochars { grid-template-columns: minmax(0, 1fr); }
.dash.nochars .dash-right { grid-column: 1; width: 100%; max-width: 820px; margin: 0 auto; }
.dash-right > .grid-2 { display: contents; }
.dash-right #announcements,
.dash-right #wcoin,
.dash-right #vote,
.dash-right #bug-reports,
.dash-right #redeem,
.dash-right #auction,
.dash-right #server-chat,
.dash-right #account,
.dash-right #streamer,
.dash-right #gallery { display: none; }
.dash-right #announcements.on,
.dash-right #wcoin.on,
.dash-right #vote.on,
.dash-right #bug-reports.on,
.dash-right #redeem.on,
.dash-right #auction.on,
.dash-right #server-chat.on,
.dash-right #account.on,
.dash-right #streamer.on,
.dash-right #gallery.on { display: block; }
.dash .panel { padding: 28px 30px; }
.bug-progress { margin-top: 16px; }
.bug-progress-track { height: 8px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.1); }
.bug-progress-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold), var(--green)); transition: width .35s ease; }
.bug-progress-steps { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; color: var(--text-faint); font-size: 11px; }
.bug-progress-steps .current { color: var(--gold); font-weight: 700; }
.bug-report-reward { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 16px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; color: var(--text-dim); font-size: 13px; }
.bug-report-reward strong { color: var(--text); }
.bug-report-reward.received { border-color: rgba(61,190,134,.35); background: rgba(61,190,134,.08); }
.bug-report-reward.received strong,
.bug-reward-highlight { color: #f0a04a; }
.bug-reward-message-wrap { position: relative; display: inline-flex; align-items: center; }
.bug-reward-message { display: grid; width: 30px; height: 30px; padding: 5px; place-items: center; color: var(--green); background: rgba(61,190,134,.12); border: 1px solid rgba(61,190,134,.28); border-radius: 50%; cursor: help; }
.bug-reward-message svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.bug-reward-tooltip { position: absolute; z-index: 20; right: 0; bottom: calc(100% + 10px); display: none; width: min(340px, calc(100vw - 48px)); padding: 12px 14px; color: var(--text); background: #11151c; border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.45); font-size: 12px; font-weight: 400; line-height: 1.55; }
.bug-reward-message-wrap:hover .bug-reward-tooltip,
.bug-reward-message-wrap:focus-within .bug-reward-tooltip { display: block; }
.dash .panel h2 { font: 700 28px var(--display); color: var(--text); margin-bottom: 16px; letter-spacing: -0.03em; }
.dashbody .hc { padding: 14px 16px; gap: 14px; }
.dashbody .hc h3 { font-size: 18px; }
.dashbody .dash input, .dashbody .dash select { padding: 14px 16px; font-size: 15px; }
.dashbody .dtabs button { font-size: 15px; padding: 12px 16px; }
.toasts { position: fixed; top: 18px; right: 18px; z-index: 300; display: flex; flex-direction: column; gap: 10px; width: min(360px, calc(100vw - 28px)); pointer-events: none; }
.toasts .toast { pointer-events: auto; }
.toast { display: flex; align-items: flex-start; gap: 12px; padding: 14px 14px 14px 16px; border-radius: 16px; background: rgba(14, 16, 22, .94); border: 1px solid var(--border); border-left: 3px solid var(--gold); backdrop-filter: blur(16px); box-shadow: 0 18px 40px rgba(0, 0, 0, .45); animation: toastIn .35s ease; }
.toast.success { border-left-color: var(--green); }
.toast.error { border-left-color: var(--red); }
.toast.warning { border-left-color: var(--gold); }
.toast.info { border-left-color: var(--blue); }
.toast-ico { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: 0 0 auto; background: rgba(232, 184, 109, .14); color: var(--gold); }
.toast-ico svg { width: 18px; height: 18px; }
.toast.success .toast-ico { background: rgba(61, 190, 134, .16); color: var(--green); }
.toast.error .toast-ico { background: rgba(239, 107, 92, .16); color: var(--red); }
.toast.warning .toast-ico { background: rgba(232, 184, 109, .16); color: var(--gold); }
.toast.info .toast-ico { background: rgba(126, 182, 232, .16); color: var(--blue); }
.toast b { display: block; margin-bottom: 2px; font: 700 15px var(--display); }
.toast-from { display: block; margin: 0 0 4px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.toast p { margin: 0; color: var(--text-dim); font-size: 13px; line-height: 1.45; }
.toast-x { margin-left: auto; background: none; border: 0; color: var(--text-faint); font-size: 20px; line-height: 1; cursor: pointer; }
.toast.out { opacity: 0; transform: translateX(16px); transition: .3s ease; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (max-width: 700px) { .toasts { left: 14px; right: 14px; width: auto; } }
.dash .chat-feed { max-height: 340px; }
.dash .section-title { margin: 0 0 12px; }

.banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 22px;
  border-radius: 18px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 0;
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}
.who { display: flex; align-items: center; gap: 14px; }
.who-ico { width: 48px; height: 48px; object-fit: contain; }
.banner .eyebrow { margin: 0; }
.banner h1 {font: 800 clamp(22px, 2.4vw, 30px);color: var(--text);margin: 2px 0;}
.srv { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--text-dim); font-size: 13px; }
.srv img { width: 14px; height: 14px; object-fit: contain; }
.banner-stats { display: flex; gap: 8px; flex-wrap: wrap; }
.banner-stats div {
  min-width: 108px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(0, 0, 0, .28);
  border: 1px solid var(--border-soft);
  text-align: left;
}
.banner-stats img { width: 18px; height: 18px; object-fit: contain; display: block; margin-bottom: 6px; }
.banner-stats b { display: block; font: 700 18px var(--font); color: var(--gold); }
.banner-stats span { font-size: 11px; color: var(--text-faint); letter-spacing: .06em; text-transform: uppercase; }

.dtabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  padding: 0 0 0;
  margin-bottom: 0;
  background: transparent;
  border: 0;
}
.dtabs button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--text-dim);
  font: 600 14px var(--font);
  cursor: pointer;
}
.dtabs button img { width: 18px; height: 18px; object-fit: contain; }
.dtabs button:hover { color: var(--text); background: transparent; }
.dtabs button.on { color: var(--gold); background: transparent; border-bottom-color: var(--gold); }

.hero-list { display: flex; flex-direction: column; gap: 8px; padding: 4px 14px 16px; }
.hc {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 10px 12px;
  padding: 12px;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  background: rgba(0, 0, 0, .22);
}
.hc:hover { border-color: var(--line-gold); }
.hc-ico {
  position: relative;
  width: 56px;
  height: 56px;
  overflow: visible;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hc-ico .face { width: 56px; height: 56px; }
.hc h3 { font: 700 16px var(--display); color: var(--text); margin: 0 0 4px; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hc-main { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lv {
  flex: 0 0 auto;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--gold);
  color: #1a140c;
  font: 700 12px var(--font);
  font-style: normal;
  font-variant-numeric: tabular-nums;
}
.tag {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: var(--gold);
  background: transparent;
  border: 1px solid var(--line-gold);
  white-space: nowrap;
}
.hc-stats { list-style: none; margin: 2px 0 0; padding: 10px 0 2px; grid-column: 1 / -1; display: flex; justify-content: center; gap: 22px; align-items: center; border-top: 1px solid var(--border-soft); }
.hc-stats li { display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; color: var(--text-dim); font-size: 13px; }
.hc-stats li::before { content: ""; width: 16px; height: 16px; flex: 0 0 16px; background: center / contain no-repeat; }
.hc-stats li:nth-child(1)::before { background-image: url("../img/icons/swords.webp"); }
.hc-stats li:nth-child(2)::before { background-image: url("../img/icons/crown.webp"); }
.hc-stats li:nth-child(3)::before { background-image: url("../img/icons/infinity.webp"); }
.hc-stats img { display: none; }
.hc-stats b { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text); min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.char-empty { text-align: center; padding: 28px 12px; }
.char-empty img { width: 56px; height: 56px; object-fit: contain; margin-bottom: 8px; opacity: .7; }
@media (max-width: 1000px) {
  .dash { display: block; }
  .dash > * { margin-bottom: 16px; }
  .dash #characters { max-height: none; width: 100%; max-width: none; }
}
.dl-card .mark { width: 40px; height: 40px; flex: 0 0 40px; display: grid; place-items: center; border-radius: 12px; background: rgba(232, 184, 109, .1); color: var(--gold); }
.dl-card .mark svg { width: 20px; height: 20px; }
.dl-card .who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.live-grid { display: grid; gap: 10px; margin-top: 16px; }
.live-card { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--border-soft); border-radius: 16px; background: rgba(255,255,255,.03); }
.live-card.is-on { border-color: var(--line-gold); }
.live-card .mark { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; }
.live-card .mark.twitch { background: #9146ff; color: #fff; }
.live-card .mark.kick { background: #53fc18; color: #111; }
.live-card .mark.youtube { background: #ff0033; color: #fff; }
.live-card .mark svg { width: 22px; height: 22px; }
.live-card b { display: block; font: 700 16px var(--display); }
.live-card small { color: var(--text-dim); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-faint); display: inline-block; margin-right: 6px; }
.is-on .live-dot { background: #53fc18; box-shadow: 0 0 8px #53fc18; }
.live-goal { display: flex; align-items: center; gap: 22px; margin: 6px 0 18px; }
.live-goal h2 { margin: 0 0 4px; }
.live-ring { width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--gold) calc(var(--p) * 1%), rgba(255,255,255,.08) 0); position: relative; flex: 0 0 auto; }
.live-ring::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: #12141a; }
.live-face { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; line-height: 1; }
.live-face b { font: 700 22px/1 var(--display); letter-spacing: -.04em; }
.live-face small { color: var(--text-faint); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.live-state { margin: 8px 0 0; font-size: 12px; letter-spacing: .03em; color: var(--gold-hi); }
.hold { position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: rgba(7, 8, 12, .82); backdrop-filter: blur(10px); }
.hold[hidden] { display: none; }
.hold b { font: 800 128px/1 var(--display); color: var(--gold); letter-spacing: -.06em; }
.hold p { margin: 0; color: var(--text-dim); font: 600 14px var(--font); letter-spacing: .16em; text-transform: uppercase; }
.live-goal.is-paused .live-ring { opacity: .5; }
.live-goal.is-paused .live-state { color: var(--text-faint); }
.hero-choices { margin-left: auto; display: flex; flex-direction: column; gap: 6px; min-width: 240px; max-width: 320px; max-height: 280px; overflow: auto; }
.hero-chip { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 8px 12px; border-radius: 16px; border: 1px solid var(--border-soft); background: rgba(0,0,0,.28); color: inherit; cursor: pointer; }
.hero-chip.on { border-color: var(--gold); cursor: default; }
.hero-choices[data-locked="1"] .hero-chip { pointer-events: none; }
.hero-chip .face { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; object-position: top center; flex: 0 0 auto; background: #1a1c24; }
.hero-chip b { display: block; font: 700 16px/1.2 var(--display); text-transform: none; letter-spacing: 0; color: var(--text); }
.hero-chip small { display: block; margin-top: 2px; color: var(--text-dim); font-size: 12px; text-transform: none; letter-spacing: 0; }
.hero-choices em { font-style: normal; font-size: 11px; letter-spacing: .04em; color: var(--gold); padding: 0 4px; }
.loot-card { margin: 0 0 16px; padding: 16px 18px; border-radius: 18px; border: 1px solid var(--line-gold); background: linear-gradient(180deg, rgba(232,184,109,.16), rgba(0,0,0,.35)); }
.loot-card b { display: block; margin-top: 4px; font: 800 28px var(--display); letter-spacing: .14em; color: var(--gold); }
.loot-card ul { margin: 10px 0 0; padding: 0; list-style: none; }
.loot-card li { padding: 8px 0; border-top: 1px solid var(--border-soft); font-weight: 700; }
.reward-row { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 14px; align-items: end; margin-bottom: 10px; padding: 14px; border: 1px solid var(--border-soft); border-radius: 16px; background: rgba(0,0,0,.22); }
.reward-fields { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.reward-row > label, .reward-fields > label { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); }
.reward-fields > label { flex: 1 1 140px; }
.reward-row > div:first-child { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; }
.reward-row .cap { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); }
.reward-row input, .reward-row select { width: 100%; min-width: 0; }
.reward-row .soon-check { flex: 0 0 auto; flex-direction: row; align-items: center; text-transform: none; letter-spacing: 0; font-size: 13px; padding-bottom: 12px; }
.reward-row:not([data-kind="item"]) .for-item { display: none; }
@media (max-width: 900px) { .reward-row { grid-template-columns: 1fr; } .live-goal { align-items: flex-start; flex-wrap: wrap; } .hero-choices { margin-left: 0; width: 100%; max-width: none; } }
.live-track { height: 10px; margin-top: 8px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; }
.live-track > i { display: block; height: 100%; width: var(--w, 0%); border-radius: inherit; background: linear-gradient(90deg, #8a5a22, #ffe3b0); box-shadow: 0 0 12px rgba(232, 184, 109, .45); transform-origin: left center; animation: barIn .85s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes barIn { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.live-mins { display: block; margin-top: 6px; color: var(--text-faint); font-size: 11px; letter-spacing: .06em; }
.live-form { display: grid; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border-soft); }
@media (max-width: 560px) {
  .live-card { grid-template-columns: 44px minmax(0, 1fr); }
  .live-card .live-side { grid-column: 2; }
}

.ann-card { padding: 18px 0; border-bottom: 1px solid var(--border-soft); }
.ann-card:last-child { border-bottom: 0; }
.ann-summary { position: relative; padding-left: 20px; cursor: pointer; list-style: none; }
.ann-summary::-webkit-details-marker { display: none; }
.ann-summary::before { position: absolute; top: 5px; left: 0; width: 0; height: 0; border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 8px solid var(--gold); content: ""; transition: transform .18s ease; }
.ann-card[open] > .ann-summary::before { transform: rotate(90deg); }
.ann-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.ann-type { color: #1a140c; font-size: 10px; font-weight: 700; text-transform: uppercase; padding: 4px 8px; border-radius: 999px; letter-spacing: .04em; }
.ann-title { font-size: 18px; margin: 0; color: var(--text); }
.ann-summary + .announcement-content { margin-top: 12px; }
.announcement-content { line-height: 1.65; color: var(--text-dim); }
.gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.gal-grid a { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
.gal-grid img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.gal-grid a:hover img { transform: scale(1.03); }

/* rankings / auction */
.rk-wrap { max-width: 980px; margin: 28px auto 64px; padding: 0 20px; }
.rk { padding: 8px 4px 4px; }
.rk h2 { margin: 0 0 4px; color: var(--text); }
.rk-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0; }
.rk-tabs a {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--text-dim);
  font-weight: 600;
  font-size: 13px;
}
.rk-tabs a:hover { color: var(--text); border-color: var(--line-gold); }
.rk-tabs a.on { background: var(--gold); border-color: var(--gold); color: #1a140c; }
.rk-tabs-main { margin-bottom: 8px; }
.rk-scroll { overflow-x: auto; }
.rk-table { width: 100%; border-collapse: collapse; }
.rk-table th {
  padding: 10px 14px;
  text-align: left;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-faint);
  border-bottom: 1px solid var(--border);
  background: transparent;
}
.rk-table td { padding: 12px 14px; border-bottom: 1px solid var(--border-soft); }
.rk-table tr:hover td { background: rgba(255, 255, 255, .03); }
.rk-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.rk-table .pos { width: 56px; font-weight: 700; color: var(--text-faint); }
.rk-table tr.top1 .pos { color: var(--gold); }
.rk-table tr.top2 .pos { color: #c9c3b6; }
.rk-table tr.top3 .pos { color: #c4926a; }
.rk-table tr.top .who, .rk-table .who { font-weight: 600; }
.rk-table tr.top .who { color: var(--gold); }
.rk-table .pw, .rk-table .gold, .gold { color: var(--gold); font-weight: 700; }
.rk-table .dim, .dim { color: var(--text-dim); font-size: 12px; }
.rk-table .ok, .ok { color: var(--green); }
.rk-sort { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.rk-sort span { color: var(--text-faint); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border-soft); }
.page-info { color: var(--text-dim); font-size: 13px; }

.modal { position: fixed; inset: 0; background: rgba(7, 8, 12, .82); backdrop-filter: blur(8px); z-index: 1000; overflow-y: auto; }
.modal-x { position: absolute; top: 16px; right: 16px; background: none; border: none; color: var(--text-faint); cursor: pointer; font-size: 24px; }
.eq-box { border: 1px solid var(--border); border-radius: 14px; padding: 16px; margin-top: 16px; }
.eq-bag { margin: 14px 0 6px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.eq-list { display: flex; flex-direction: column; gap: 6px; max-height: 360px; overflow: auto; }
.eq-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, .03); cursor: help; }
.gear-row { cursor: help; }
.eq-slot { color: var(--text-faint); font-size: 12px; flex: none; margin-left: auto; text-align: right; }
.eq-meta { margin-left: 8px; font-size: 11px; color: var(--text-faint); }
.eq-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 12px; }
.eq-tab { border: 1px solid var(--border); background: transparent; color: var(--text-dim); border-radius: 999px; padding: 6px 12px; cursor: pointer; font: 600 12px var(--font); }
.eq-tab.on { color: #1a140c; background: var(--gold); border-color: var(--gold); }
.eq-name { text-align: left; min-width: 0; }
.eq-name b { font-weight: 650; }
.eq-name b.is-ruud { color: #ffe14a; }
.eq-tier { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 999px; background: rgba(232,184,109,.16); color: var(--gold); font-size: 11px; }
.eq-tip { position: fixed; z-index: 80; width: 250px; overflow: visible; padding: 12px 14px 10px; text-align: left; background: linear-gradient(180deg, #2c241c 0%, #14110e 70%); border: 1px solid #c4a15a; border-radius: 10px; box-shadow: 0 12px 28px rgba(0, 0, 0, .65); pointer-events: none; }
.eq-tip[hidden] { display: none !important; }
.eq-tip-top { padding: 0 0 4px; background: none; }
.eq-tip-name { display: block; color: #e8c56b; font: 700 14px var(--font); }
.item-title { font-weight: 700; }
.vote-list { display: flex; flex-direction: column; gap: 10px; }
.vote-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px dashed var(--border-soft, #2a2a2a); }
.vote-meta { display: flex; align-items: center; gap: 12px; min-width: 0; }
.vote-meta > div { display: flex; flex-direction: column; gap: 2px; }
.vote-logo { width: 40px; height: 40px; object-fit: contain; border-radius: 8px; background: rgba(255,255,255,.04); flex: 0 0 auto; }
.vote-row b { font-size: 14px; }
.vote-wait { color: var(--text-faint, #8a847c); font-style: normal; font-size: 13px; font-variant-numeric: tabular-nums; }
.eq-tip-req { margin-top: 4px; color: #e56ad4; font-size: 12px; }
.eq-tip-class { margin-top: 2px; color: #f3e6c4; font-size: 12px; }
.eq-tip-h { margin: 8px 0 2px; color: #e6c36a; font: 700 11px var(--font); }
.eq-tip-h::before { content: "◆ "; font-size: 8px; }
.eq-tip-base, .eq-tip-ex, .eq-tip-set, .eq-tip-piece { margin: 0; font-size: 12px; line-height: 1.35; }
.eq-tip-base { color: #5ddef5; }
.eq-tip-base em { color: #fbe446; font-style: normal; }
.eq-tip-ex { color: #f0a04a; }
.eq-tip-set, .eq-tip-piece.on { color: #c86bff; }
.eq-tip-piece { color: #8a847c; }
.realm-band { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: 16px; width: min(1280px, calc(100% - 48px)); margin: 4px auto 36px; }
.realm-card { background: var(--panel-solid); border: 1px solid var(--border); border-radius: 18px; padding: 16px 18px; min-width: 0; }
.realm-card h2 { margin: 0 0 8px; font-family: var(--display); font-size: 32px; }
.realm-card .muted { margin: 0; }
.online-list, .event-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 0; max-height: 320px; overflow: auto; }
.online-list li { display: flex; gap: 10px; align-items: baseline; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border-soft); }
.event-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border-soft); }
.event-list b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 650; }
.event-list span, .event-list em { white-space: nowrap; font-variant-numeric: tabular-nums; }
.event-list span { color: var(--text-dim); font-size: 13px; }
.event-list em { font-style: normal; color: var(--gold); font-size: 12px; }
.event-list .is-live b { color: var(--green); }
.linkish { background: none; border: 0; color: var(--gold); cursor: pointer; font: inherit; padding: 0; }
@media (max-width: 800px) {
  .realm-band { grid-template-columns: 1fr; }
  .event-list li { grid-template-columns: 1fr; }
}

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 4vh 4vw; background: rgba(7, 8, 12, .86); backdrop-filter: blur(8px); }
.lb[hidden] { display: none; }
.lb-frame { position: relative; max-width: min(1100px, 92vw); max-height: 88vh; padding: 10px; background: var(--panel-solid); border: 1px solid var(--border); border-radius: 18px; }
.lb-img { display: block; max-width: 100%; max-height: calc(88vh - 48px); object-fit: contain; border-radius: 12px; }
.lb-x {
  position: absolute; top: -12px; right: -12px; width: 36px; height: 36px;
  border: 0; border-radius: 50%; cursor: pointer; background: var(--gold); color: #1a140c; font: 700 20px/1 var(--font);
}
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 56px;
  border: 1px solid var(--border); border-radius: 12px; cursor: pointer;
  background: var(--panel-solid); color: var(--text); font: 700 28px/1 var(--font);
}
.lb-nav:hover { border-color: var(--gold); color: var(--gold); }
.lb-prev { left: -18px; } .lb-next { right: -18px; }
.lb.single .lb-nav { display: none; }
.lb-count { text-align: center; padding-top: 8px; font-size: 12px; color: var(--text-dim); }
html.lb-open { overflow: hidden; }
.gal a { cursor: zoom-in; }

/* admin */
.adm .topbar { padding: 14px clamp(16px, 3vw, 36px); }
.adm .tabs {
  display: flex; flex-wrap: wrap; gap: 4px; padding: 4px;
  margin-bottom: 22px; background: rgba(0, 0, 0, .28);
  border: 1px solid var(--border); border-radius: 16px;
}
.adm .tab-btn {
  padding: 9px 14px; margin: 0; border: 0; border-radius: 12px;
  background: transparent; color: var(--text-dim); font: 600 13px var(--font);
}
.adm .tab-btn:hover { color: var(--text); background: transparent; }
.adm .tab-btn.active { background: var(--panel-2); color: var(--gold); border-bottom: 0; }
.adm .tab-link { margin-left: auto; padding: 9px 14px; color: var(--gold); font-weight: 700; }
.adm .panel { padding: 22px; }
.adm .panel h2 { font: 700 20px var(--display); color: var(--text); }
.adm table { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.adm th { background: rgba(255, 255, 255, .03); color: var(--text-faint); }
.adm tr:hover td { background: rgba(255, 255, 255, .03); }
.side-row.active { background: rgba(232, 184, 109, .08); border-color: var(--line-gold); }
.ctabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.ctabs button { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); background: transparent; color: var(--text-dim); font: 600 13px var(--font); cursor: pointer; }
.ctabs button.on { color: #1a140c; background: var(--gold); border-color: var(--gold); }
.cpane { display: none; } .cpane.on { display: block; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 18px; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.slot { display: flex; gap: 12px; padding: 12px; border: 1px solid var(--border); border-radius: 14px; background: rgba(0, 0, 0, .2); }
.slot-prev { flex: 0 0 88px; height: 88px; border-radius: 12px; background: var(--input); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.slot-prev img { width: 100%; height: 100%; object-fit: contain; }
.slot-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
.skill-row { display: grid; grid-template-columns: minmax(260px, 360px) 1fr; gap: 16px; align-items: start; margin-bottom: 14px; }
.savebar {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  margin-top: 22px;
  padding: 16px 0 0;
  border-top: 1px solid var(--border-soft);
  background: transparent;
}
/* Legacy full-bleed bar only outside admin shell (e.g. old content pages). */
body.adm:not(:has(.adm-shell)) .savebar {
  position: fixed; left: 0; right: 0; bottom: 0; margin-top: 0;
  padding: 12px clamp(16px, 4vw, 40px);
  background: rgba(7, 8, 12, .88); backdrop-filter: blur(16px);
  border-top: 1px solid var(--border); z-index: 60;
}
.xfer { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 10px; }
.xfer.xfer-3 { grid-template-columns: 1fr 1fr 1fr; }
.xfer-col h3, .xfer-col h4 { margin: 0 0 8px; font: 700 13px var(--font); letter-spacing: .04em; text-transform: uppercase; color: var(--text-faint); }
.xfer-list {
  list-style: none; margin: 0; padding: 8px; min-height: 160px;
  display: flex; flex-direction: column; gap: 8px;
  border: 1px dashed var(--border); border-radius: 14px; background: rgba(0,0,0,.18);
}
.adm-work .xfer-list { max-height: none; overflow: visible; }
.xfer-list.drag-over { border-color: var(--gold); background: rgba(232,184,109,.06); }
.xfer-list li {
  display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: center;
  padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px;
  background: rgba(0,0,0,.28); cursor: grab; user-select: none;
}
.xfer-list li.dragging { opacity: .4; border-color: var(--gold); }
.xfer-marker { height: 6px !important; padding: 0 !important; border: 0 !important; border-radius: 999px !important; background: var(--gold) !important; min-height: 0; }
.menu-sort-handle { grid-row: span 2; color: var(--text-faint); letter-spacing: -.08em; font-size: 14px; }
.xfer-list b { font-size: 14px; }
.xfer-list small { grid-column: 2; color: var(--text-faint); font-size: 12px; word-break: break-all; }
.cpane kbd {
  display: inline-block; padding: 1px 6px; border-radius: 6px;
  border: 1px solid var(--border); background: rgba(255,255,255,.04); font-size: 11px;
}
.dtabs a.dtab-link {
  font-size: 15px; padding: 12px 16px; color: var(--text-dim); text-decoration: none;
  border-bottom: 2px solid transparent;
}
.dtabs a.dtab-link:hover { color: var(--text); }
@media (max-width: 900px) { .xfer.xfer-3 { grid-template-columns: 1fr; } }
.mods { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; margin-top: 10px; }
.mod-cat { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border-soft); }
.mod-cat:first-of-type { margin-top: 8px; padding-top: 0; border-top: 0; }
.mod-cat-h {
  margin: 0 0 4px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.adm-embed-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-soft);
  background: rgba(0, 0, 0, .25);
}
.adm-embed {
  display: block;
  width: 100%;
  height: min(78vh, 900px);
  border: 0;
  background: #0a0c12;
}
.adm-embed-tall { height: min(85vh, 1100px); }
.adm-embed-panel {
  padding: 0 !important;
  overflow: hidden;
  margin: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.adm-embed-full {
  height: calc(100vh - 100px);
  min-height: 640px;
  border-radius: 16px;
  border: 1px solid var(--border-soft);
}
.cat-search {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}
.cat-table td { vertical-align: middle; }
.cat-row-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.cat-row-form input[name="name"] {
  flex: 1;
  min-width: 180px;
}
.cat-reset-form { display: inline-flex; margin-left: 6px; }
.cat-table tr.is-overridden td { background: rgba(232, 184, 109, .06); }
body.adm-embed-page .adm-content { padding-top: 12px; }
.adm-work .adm-content { padding: 0; max-width: none; width: 100%; }
.adm-work .adm-content > form { margin: 0; }
.adm-work .adm-content .savebar { grid-column: 1 / -1; }
button.linkish { text-decoration: underline; }
.mod {
  display: flex; gap: 12px; align-items: center; margin: 0; padding: 14px;
  border: 1px solid var(--border); border-radius: 14px; background: rgba(0, 0, 0, .2); cursor: pointer;
}
.mod input {
  appearance: none; flex: 0 0 auto; width: 42px; height: 24px; padding: 0; border-radius: 999px;
  background: rgba(0, 0, 0, .4); border: 1px solid var(--border); position: relative; cursor: pointer;
}
.mod input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--text-faint); transition: .2s; }
.mod input:checked { border-color: var(--green); }
.mod input:checked::after { left: 20px; background: var(--green); }
.mod b { display: block; font-size: 14px; }
.mod small { display: block; margin-top: 2px; font-size: 12px; color: var(--text-faint); font-weight: 400; }
.code-block { background: var(--input); border: 1px solid var(--border); border-radius: 12px; }
.badge-paid, .badge-get { color: var(--green); }
.badge-post { color: var(--blue); background: transparent; }
.chat-line strong { color: var(--gold); }
.download-strip { background: rgba(7, 8, 12, .9); backdrop-filter: blur(16px); border-top: 1px solid var(--border); }
.icon-gold { background: rgba(232, 184, 109, .12); color: var(--gold); }
.tab-btn.active { color: var(--gold); border-bottom-color: var(--gold); }
@media (max-width: 800px) { .skill-row { grid-template-columns: 1fr; } .dnav { display: none; } }
*{ scrollbar-width: thin; scrollbar-color: #2a2c34 transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #2a2c34; border-radius: 8px; }

/* rankings */
.rankbody .rk-wrap { max-width: 1080px; margin: 32px auto 72px; padding: 0 20px; }
.rankbody .rk { padding: 28px 26px 16px; border-radius: 24px; }
.rankbody .rk-head { margin-bottom: 6px; }
.rankbody .rk-head h1, .rankbody .rk > h2 {
  font: 800 clamp(32px, 4vw, 46px) var(--display);
  letter-spacing: -.04em;
  color: var(--text);
  margin: 2px 0 6px;
}
.rankbody .rk-head .muted, .rankbody .rk > .muted { margin: 0; max-width: 36em; }
.rankbody .rk-tabs-main {
  display: flex;
  gap: 4px;
  margin: 22px 0 18px;
  padding: 0;
  border-bottom: 1px solid var(--border);
}
.rankbody .rk-tabs-main a {
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text-dim);
  padding: 12px 14px;
  margin-bottom: -1px;
  border-bottom: 2px solid transparent;
}
.rankbody .rk-tabs-main a:hover { color: var(--text); border-color: transparent; background: transparent; }
.rankbody .rk-tabs-main a.on {
  background: transparent;
  color: var(--text);
  border-color: transparent;
  border-bottom-color: var(--gold);
}
.rankbody .rk-tabs:not(.rk-tabs-main) {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0 0 18px;
  padding: 4px;
  background: rgba(0, 0, 0, .28);
  border-radius: 14px;
}
.rankbody .rk-tabs:not(.rk-tabs-main) a {
  border: 0;
  border-radius: 10px;
  background: transparent;
  padding: 8px 12px;
}
.rankbody .rk-tabs:not(.rk-tabs-main) a.on { background: var(--gold); color: #1a140c; }
.podium {
  display: grid;
  grid-template-columns: 1fr 1.12fr 1fr;
  gap: 12px;
  align-items: end;
  margin: 4px 0 22px;
}
.pod {
  text-align: center;
  padding: 16px 12px 14px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, .03);
}
.pod.p1 {
  padding: 26px 14px 20px;
  border-color: var(--line-gold);
  background: rgba(232, 184, 109, .09);
}
.medal {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 8px;
  border-radius: 50%;
  font: 800 14px var(--display);
  background: rgba(255, 255, 255, .08);
  color: var(--text-dim);
}
.pod.p1 .medal { background: var(--gold); color: #1a140c; }
.pod.p2 .medal { background: #ddd6c8; color: #1a140c; }
.pod.p3 .medal { background: #c4926a; color: #1a140c; }
.pod b { display: block; font: 700 16px var(--display); letter-spacing: -.02em; }
.pod em { display: block; margin: 4px 0 10px; font-style: normal; font-size: 12px; color: var(--text-dim); }
.pod strong { display: block; font: 800 22px var(--font); color: var(--gold); letter-spacing: -.03em; }
.pod small { letter-spacing: .1em; text-transform: uppercase; font-size: 10px; color: var(--text-faint); }
.rankbody .rk-table { width: 100%; border-collapse: collapse; border-spacing: 0; table-layout: auto; }
.rankbody .rk-table th, .rankbody .rk-table td { width: auto; white-space: nowrap; }
.rankbody .rk-table th { border: 0; background: transparent; padding: 0 12px 10px; }
.rankbody .rk-table td {
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  border-radius: 0;
  padding: 13px 12px;
}
.rankbody .rk-table tbody tr:hover td { background: rgba(255, 255, 255, .04); }
.rankbody .rk-table tr.top1 td { background: rgba(232, 184, 109, .1); }
.rankbody .rk-table tr.top2 td { background: rgba(255, 255, 255, .04); }
.rankbody .rk-table tr.top3 td { background: rgba(196, 146, 106, .08); }
.rankbody .rk-table .pos { width: 42px; text-align: center; font: 800 16px var(--display); }
.rankbody .rk-table .who { font: 700 15px var(--display); letter-spacing: -.02em; }
.board { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.face {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 2px solid rgba(232, 184, 109, .7);
  background: #14120e;
  display: block;
}
.face-lg { width: 72px; height: 72px; margin: 0 auto 8px; border-width: 3px; }
.mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 700 16px var(--display);
  color: #1a140c;
  background: var(--gold);
  border: 2px solid rgba(232, 184, 109, .7);
}
.board-row {
  display: grid;
  grid-template-columns: 36px 44px minmax(120px, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 10px 12px 10px 8px;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  background: rgba(255, 255, 255, .04);
}
.board-row.open { border-color: var(--gold); }
.board-row.top1 { border-color: var(--line-gold); background: rgba(232, 184, 109, .1); }
.char-sheet { margin-top: 14px; padding: 18px; border: 1px solid var(--line-gold); border-radius: 20px; background: rgba(0, 0, 0, .28); }
.back-btn { margin-bottom: 14px; }
.sheet-bar { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.sheet-bar h3 { margin: 0; font: 700 22px var(--display); }
.sheet-bar .back-btn { margin: 0; }
.char-sheet[hidden] { display: none; }
.char-sheet-h { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.char-sheet-h .face-lg { width: 64px; height: 64px; margin: 0; }
.char-sheet-h h2 { margin: 2px 0; font: 700 26px var(--display); }
.char-sheet-h .muted { margin: 0; }
.char-sheet-h .btn { margin-left: auto; }
.char-sheet .eq-box { margin-top: 4px; }
.board-row.top2 { background: rgba(255, 255, 255, .06); }
.board-row.top3 { background: rgba(196, 146, 106, .1); }
.board-pos { font: 800 16px var(--display); text-align: center; color: var(--text-faint); }
.top1 .board-pos { color: var(--gold); }
.top2 .board-pos { color: #ddd6c8; }
.top3 .board-pos { color: #c4926a; }
.board-who b { display: block; font: 700 16px var(--display); letter-spacing: -.02em; }
.board-who span { font-size: 12px; color: var(--text-dim); }
.board-meta { display: flex; gap: 16px; }
.board-meta small { display: block; margin-bottom: 2px; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); }
.board-meta b { font-weight: 700; }
.board-meta .pw { color: var(--gold); }
.siege-row { grid-template-columns: 36px 44px minmax(140px, 1fr) minmax(200px, 280px); }
.siege-bar { min-width: 0; }
.siege-bar-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.siege-bar-top small { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); }
.siege-bar-top b { font: 700 14px var(--font); }
.siege-track { height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.siege-track > i {
  display: block;
  height: 10px;
  width: var(--w, 0%);
  border-radius: inherit;
  background: linear-gradient(90deg, #8a5a22, #ffe3b0);
  box-shadow: 0 0 12px rgba(232, 184, 109, .45);
  transition: width .7s cubic-bezier(.16, 1, .3, 1);
}
@media (prefers-reduced-motion: reduce) { .siege-track > i { transition: none; } }
.siege-meta { display: flex; gap: 12px; margin-top: 6px; font-size: 11px; color: var(--text-dim); }
.siege-own { display: inline-block; margin-left: 8px; padding: 2px 7px; border-radius: 999px; background: var(--gold); color: #1a140c; font: 800 10px var(--font); letter-spacing: .08em; text-transform: uppercase; vertical-align: 2px; }
.siege-row.is-owner { border-color: var(--line-gold); }
@media (max-width: 700px) {
  .board-row { grid-template-columns: 28px 44px minmax(0, 1fr) auto; }
  .board-meta { grid-column: 2 / -1; }
}
.rankbody .rk-sub { margin-top: 28px; }
.rankbody .rk-sub h3 { font: 700 22px var(--display); margin: 0 0 12px; }
.rk-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.rk-stats > div { padding: 12px 14px; border-radius: 14px; background: rgba(0, 0, 0, .28); border: 1px solid var(--border-soft); min-width: 0; }
.rk-stats span { display: block; margin-bottom: 4px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); }
.rk-stats b { font: 700 16px var(--font); }
.rk-stats .siege-track { margin-top: 10px; height: 10px; padding: 0; box-sizing: content-box; }
.rankbody .modal-content { border-radius: 22px; }
@media (max-width: 720px) {
  .podium { grid-template-columns: 1fr; }
  .pod.p1 { order: -1; }
  .rk-stats { grid-template-columns: 1fr 1fr; }
  .rankbody .rk { padding: 20px 14px 10px; }
}

/* admin shell */
.adm .adm-main { max-width: 1240px; padding-top: 28px; padding-bottom: 72px; }
.adm-tag {
  margin-left: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--line-gold);
  color: var(--gold);
  font: 700 11px var(--font);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.adm .topbar-right a {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 13px;
}
.adm .topbar-right a:hover { color: var(--text); background: rgba(255, 255, 255, .05); border-color: transparent; }
.adm .topbar-right a:last-child { border-color: var(--border); }
.adm .tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  overflow-x: auto;
  margin: 8px 0 22px;
  padding: 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
}
.adm .tab-btn {
  flex: 0 0 auto;
  margin: 0;
  padding: 12px 14px;
  border: 0;
  border-radius: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--text-dim);
  white-space: nowrap;
}
.adm .tab-btn:hover { color: var(--text); background: transparent; }
.adm .tab-btn.active {
  background: transparent;
  color: var(--text);
  border-bottom-color: var(--gold);
}
.adm .ctabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.adm .ctabs button {
  border: 0;
  border-radius: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  padding: 12px 14px;
  color: var(--text-dim);
}
.adm .ctabs button.on { background: transparent; color: var(--text); border-color: transparent; border-bottom-color: var(--gold); }
.adm .panel { border-radius: 20px; }
.adm .panel h2, .adm .section-title h2 { letter-spacing: -.03em; }
.adm .side-list { gap: 6px; }
.adm .side-row { border-radius: 12px; border: 1px solid transparent; }
.adm .side-row:hover { background: rgba(255, 255, 255, .04); }
.adm .side-row.active { background: rgba(232, 184, 109, .1); border-color: var(--line-gold); }
.adm table { border: 0; border-radius: 0; box-shadow: none; border-collapse: separate; border-spacing: 0; }
.adm th { background: transparent; border-bottom: 1px solid var(--border); letter-spacing: .08em; }
.adm td { border-bottom: 1px solid var(--border-soft); }
.adm tr:hover td { background: rgba(255, 255, 255, .035); }
.adm-login { width: 100%; max-width: 400px; padding: 28px 24px 24px; border-radius: 22px; }
.adm-login h1 {margin: 0 0 18px;/* font: 800 34px var(--display); */letter-spacing: -.04em;text-align: left;text-transform: none;}
.adm .center-screen h1 { text-align: left; text-transform: none; letter-spacing: -.04em; }

/* custom dropdown — open list uses site colors, not the OS blue menu */
.pick { position: relative; }
.pick-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.pick-btn {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--input);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 42px 14px 16px;
  font: 600 15px var(--font);
  cursor: pointer;
  position: relative;
}
.pick-btn:disabled { opacity: .45; cursor: not-allowed; }
.pick-btn::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: translateY(-70%) rotate(45deg);
}
.pick.open { z-index: 80; }
.pick.open .pick-btn { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(232, 184, 109, .16); }
.pick-list {
  position: absolute;
  z-index: 50;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  max-height: 280px;
  overflow: auto;
  padding: 6px;
  background: #12141c;
  border: 1px solid var(--line-gold);
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .55);
}
.pick-opt {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  color: var(--text);
  border: 0;
  border-radius: 10px;
  padding: 12px 12px;
  font: 600 14px var(--font);
  cursor: pointer;
}
.pick-opt:hover { background: rgba(232, 184, 109, .14); color: var(--gold-hi); }
.pick-opt.on { background: rgba(232, 184, 109, .22); color: var(--gold); }
.pick-opt:disabled { opacity: .4; cursor: not-allowed; }

html, body { overflow-x: clip; }

@media (max-width: 1000px) {
  .container { padding-left: 14px; padding-right: 14px; }
  .gnav { padding: 10px 12px; }
  .menu { max-width: 100%; flex-wrap: wrap; justify-content: center; border-radius: 18px; }
  .dash { display: block; }
  .dash > * { margin-bottom: 16px; }
  .dash #characters { min-height: 0; max-height: none; }
  .dash .panel { padding: 20px 16px; }
  .dash .panel h2 { font-size: 22px; }
  .banner { align-items: flex-start; }
  .banner-stats { width: 100%; }
  .banner-stats div { flex: 1 1 30%; min-width: 0; }
  .dtabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .dtabs button { flex: 0 0 auto; white-space: nowrap; }
  .feat { grid-template-columns: 1fr 1fr; }
  .gal { flex-wrap: wrap; }
  .rk-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .rk-table { min-width: 560px; }
  .char-sheet-h { flex-wrap: wrap; }
  .char-sheet-h .btn { margin-left: 0; }
  .adm .adm-main, .adm-login { max-width: 100%; }
}

@media (max-width: 700px) {
  .menu a { padding: 8px 10px; font-size: 13px; }
  .board-row { grid-template-columns: 28px 40px minmax(0, 1fr); gap: 8px 10px; }
  .board-meta { grid-column: 2 / -1; flex-wrap: wrap; gap: 10px 16px; }
  .board-row > .btn { grid-column: 1 / -1; width: 100%; }
  .siege-row { grid-template-columns: 28px 40px minmax(0, 1fr); }
  .siege-bar { grid-column: 2 / -1; }
  .stage { padding: 12px; }
  .win-b { padding: 12px; }
  .center h1 { font-size: clamp(36px, 12vw, 56px); }
  .center .logo-big { max-height: 120px; }
  .art-stage { min-height: 200px; }
  .dl-grid { grid-template-columns: 1fr; }
  .rk-stats { grid-template-columns: 1fr 1fr; }
  .hc { grid-template-columns: 56px minmax(0, 1fr); }
  .hc-stats { grid-column: 1 / -1; }
  .site-footer { padding: 18px 14px 28px; text-align: center; }
}

@media (max-width: 480px) {
  .feat { grid-template-columns: 1fr; }
  .cslot em { font-size: 11px; }
  .banner-stats div { flex-basis: 100%; }
  .rk-stats { grid-template-columns: 1fr; }
  .pod { min-height: 0; }
}

/* admin uses the full window: menu on the left, work on the rest */
.adm .topbar { position: sticky; top: 0; z-index: 40; background: rgba(7, 8, 12, .92); }
.adm-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  width: 100%;
  max-width: none;
  min-height: calc(100vh - 68px);
  margin: 0;
  padding: 0;
}
.adm-nav {
  position: sticky;
  top: 68px;
  align-self: start;
  height: calc(100vh - 68px);
  overflow: auto;
  padding: 16px 12px 28px;
  border-right: 1px solid var(--border-soft);
  background: rgba(0, 0, 0, .35);
}
.adm-k {
  margin: 16px 10px 6px;
  color: var(--text-faint);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.adm .adm-nav .tabs {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
}
.adm .adm-nav .tab-btn {
  width: 100%;
  margin: 0;
  padding: 11px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text-dim);
  font-size: 14px;
  text-align: left;
  white-space: nowrap;
}
.adm .adm-nav .tab-btn:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.adm .adm-nav .tab-btn.active { background: rgba(232, 184, 109, .16); color: var(--gold); border: 0; }
.adm select {
  color-scheme: dark;
  cursor: pointer;
  appearance: none;
  padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(50% - 3px), calc(100% - 14px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  background-color: rgba(255, 255, 255, .03);
}
.adm select option, .adm select optgroup { background: #12141c; color: var(--text); }
.adm-work { min-width: 0; padding: 22px 28px 48px; overflow: visible; }
.adm-work .tab-pane { overflow: visible; }
.adm-work .panel { overflow: visible; }
.adm-work > .panel { margin-bottom: 8px; }
/* Character editor inlined in admin — one page scroll, no nested chrome */
.adm-ce { margin: 0; }
.adm-ce .ce-cols {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
@media (max-width: 900px) { .adm-ce .ce-cols { grid-template-columns: 1fr; } }
.adm-ce .ce-aside {
  background: rgba(14, 16, 22, .86);
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  padding: 14px;
  position: sticky;
  top: 84px;
}
.adm-ce .ce-scroll {
  max-height: min(60vh, 520px);
  overflow: auto;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
}
.adm-ce .ce-main { min-width: 0; }
.adm-ce .ce-tabs { display: flex; gap: 0; margin: 16px 0; border-bottom: 1px solid var(--border-soft); flex-wrap: wrap; }
.adm-ce .ce-tabs a { padding: 10px 14px; color: var(--text-dim); border-bottom: 2px solid transparent; }
.adm-ce .ce-tabs a.on { color: var(--text); border-bottom-color: var(--gold); }
.adm-ce table { width: 100%; border-collapse: collapse; }
.adm-ce th, .adm-ce td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border-soft); }
.adm-ce th { color: var(--text-faint); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.adm-ce tr.sel td { background: rgba(232, 184, 109, .12); color: var(--gold); }
.adm-ce .ce-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 10px 0; }
.adm-ce .msg { padding: 10px 14px; margin: 0 0 12px; border-radius: 12px; border: 1px solid var(--border-soft); }
.adm-ce .msg.ok { background: rgba(61, 190, 134, .12); }
.adm-ce .msg.warn { background: rgba(232, 184, 109, .12); }
.adm-ce .msg.err { background: rgba(239, 107, 92, .12); }
.adm-work .panel { max-width: none; width: 100%; }
.adm-work .panel h2 { font-size: 28px; }
.adm-work .grid-2 { gap: 18px; }
.adm-content { max-width: none; width: 100%; padding: 22px 28px 88px; }
.adm-content > form {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 18px 22px;
  align-items: start;
}
.adm-content .ctabs {
  grid-column: 1;
  grid-row: 1 / span 8;
  position: sticky;
  top: 84px;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  border: 0;
}
.adm-content .ctabs button { text-align: left; border: 0; border-radius: 12px; }
.adm-content .ctabs button.on { background: rgba(232, 184, 109, .16); color: var(--gold); border: 0; }
.adm-content .cpane { grid-column: 2; }
@media (max-width: 900px) {
  .adm-shell, .adm-content > form { grid-template-columns: 1fr; }
  .adm-nav { position: sticky; top: 60px; height: auto; border-right: 0; border-bottom: 1px solid var(--border-soft); }
  .adm-k { display: none; }
  .adm .adm-nav .tabs { flex-direction: row; overflow-x: auto; }
  .adm-content .ctabs { grid-row: auto; position: static; flex-direction: row; overflow-x: auto; }
  .adm-content .cpane { grid-column: 1; }
}


/* Events Modal */
.events-modal{position:fixed;top:0;left:0;width:100%;height:100%;z-index:9999;display:none;align-items:center;justify-content:center;}
.events-modal.show{display:flex;}
.events-modal-overlay{position:absolute;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,0.8);backdrop-filter:blur(4px);}
.events-modal-content{position:relative;width:90%;max-width:900px;max-height:85vh;background:#1a1b1f;border-radius:16px;border:1px solid rgba(255,255,255,0.1);display:flex;flex-direction:column;box-shadow:0 20px 60px rgba(0,0,0,0.5);}
.events-modal-header{display:flex;justify-content:space-between;align-items:flex-start;padding:24px 28px;border-bottom:1px solid rgba(255,255,255,0.08);gap:20px;flex-shrink:0;}
.events-modal-header h2{margin:0;font-size:24px;color:#f4f1ea;}
.events-modal-header .eyebrow{margin:0 0 4px 0;font-size:11px;text-transform:uppercase;letter-spacing:1px;color:#9e9a8e;}
.events-modal-close{width:36px;height:36px;border:none;background:rgba(255,255,255,0.05);color:#f4f1ea;font-size:28px;line-height:1;border-radius:8px;cursor:pointer;transition:all 0.2s;flex-shrink:0;}
.events-modal-close:hover{background:rgba(255,255,255,0.1);transform:rotate(90deg);}
.events-modal-body{flex:1;overflow-y:auto;padding:20px 28px;}
.events-modal-body .event-list{display:flex;flex-direction:column;gap:0;margin:0;padding:0;list-style:none;}
.events-modal-body .event-list li{display:flex;justify-content:space-between;align-items:center;padding:16px 20px;border-bottom:1px solid rgba(255,255,255,0.05);transition:background 0.2s;}
.events-modal-body .event-list li:last-child{border-bottom:none;}
.events-modal-body .event-list li:hover{background:rgba(255,255,255,0.03);}
.events-modal-body .event-list li.is-live{background:rgba(61,190,134,0.08);border-left:3px solid #3dbe86;}
.events-modal-body .event-list li b{font-size:16px;color:#f4f1ea;min-width:200px;}
.events-modal-body .event-list li span{font-size:14px;color:#9e9a8e;min-width:100px;}
.events-modal-body .event-list li em{font-size:14px;font-weight:600;color:#e8c56b;min-width:120px;text-align:right;}
.events-modal-body .event-list li.is-live em{color:#3dbe86;}
.events-modal-body .event-list li.is-live em::before{content:'● ';font-size:10px;}
.btn-notif{display:flex;align-items:center;gap:8px;padding:10px 16px;border-radius:8px;border:1px solid rgba(255,255,255,0.15);background:rgba(255,255,255,0.05);color:#f4f1ea;cursor:pointer;font-size:14px;transition:all 0.2s;white-space:nowrap;}
.btn-notif:hover{background:rgba(255,255,255,0.08);border-color:rgba(255,255,255,0.25);}
.btn-notif.active{background:rgba(61,190,134,0.15);border-color:#3dbe86;color:#3dbe86;}
.btn-notif.active .notif-icon{animation:ring 2s ease-in-out infinite;}
.notif-icon{font-size:18px;line-height:1;}
.notif-status{font-size:11px;font-weight:700;padding:2px 8px;border-radius:4px;background:rgba(255,255,255,0.1);}
.btn-notif.active .notif-status{background:rgba(61,190,134,0.2);color:#3dbe86;}
@keyframes ring{0%,100%{transform:rotate(0deg)}10%,30%{transform:rotate(-10deg)}20%,40%{transform:rotate(10deg)}50%{transform:rotate(0deg)}}

/* Equipment Grid Layout - Shared CSS for rankings and admin */

/* Grid Layout */
.body-slots-grid.mu-gear-layout {
    display: grid;
    grid-template-columns: 100px 75px 100px 75px 100px;
    gap: 6px;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

/* Slot mapping */
.slot-pet       { grid-area: pet; }
.slot-pendant   { grid-area: pendant; }
.slot-helm      { grid-area: helm; }
.slot-wings     { grid-area: wings; }
.slot-rhand,
.slot-weapon    { grid-area: weapon; }
.slot-earring-l { grid-area: earringl; }
.slot-armor     { grid-area: armor; }
.slot-earring-r { grid-area: earringr; }
.slot-lhand,
.slot-shield    { grid-area: shield; }
.slot-gloves    { grid-area: gloves; }
.slot-ring1     { grid-area: ring1; }
.slot-pants     { grid-area: pants; }
.slot-ring2     { grid-area: ring2; }
.slot-boots     { grid-area: boots; }

.body-slots-grid.boots-under-pants {
    grid-template-areas:
        "pet    pendant  helm   wings    wings"
        "weapon earringl armor  earringr shield"
        "gloves ring1    pants  ring2    ."
        ".      .        boots  .        .";
}

.body-slots-grid .body-slot-item {
    background: rgba(16, 22, 34, 0.9);
    border: 1px dashed rgba(148, 163, 184, 0.25);
    border-radius: 5px;
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
    overflow: hidden;
    box-sizing: border-box;
}

.body-slots-grid .body-slot-item.tall-slot {
    height: 150px;
}

.body-slots-grid .body-slot-item.slot-accessory {
    height: 70px;
    border-radius: 4px;
    background: rgba(10, 14, 22, 0.95);
    border: 1px dashed rgba(244, 191, 83, 0.4);
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.6);
}

.body-slot-item:hover {
    border-color: #e8b86d;
    background: rgba(244, 191, 83, 0.08);
}

.body-slot-item.has-item {
    border: 1px solid #3dbe86;
    background: rgba(61, 190, 134, 0.12);
}

/* Bag-specific colors */
.eq-panel[id*="bag-32"] .body-slot-item.has-item {
    /* Archangel - Red */
    border: 1px solid #ef6b5c;
    background: rgba(239, 107, 92, 0.12);
}

.eq-panel[id*="bag-32"] .body-slot-item .slot-item-text {
    color: #ef6b5c !important;
}

.eq-panel[id*="bag-64"] .body-slot-item.has-item {
    /* Ruud - Orange/Gold */
    border: 1px solid #ffb239;
    background: rgba(255, 178, 57, 0.12);
}

.eq-panel[id*="bag-64"] .body-slot-item .slot-item-text {
    color: #ffb239 !important;
}

.eq-panel[id*="bag-256"] .body-slot-item.has-item {
    /* Set - Purple */
    border: 1px solid #f78aff;
    background: rgb(211 46 198 / 12%);
}

.eq-panel[id*="bag-256"] .body-slot-item .slot-item-text {
    color: #8ea0c8 !important;
}

.body-slot-item input[type=radio] {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 5;
    margin: 0;
}

.body-slot-item.selected {
    box-shadow: 0 0 0 2px var(--gold), inset 0 0 20px rgba(232, 184, 109, 0.3);
    border-color: var(--gold);
}

.slot-badge-label {
    position: absolute;
    bottom: 2px;
    left: 0;
    right: 0;
    font-size: 8px;
    font-weight: 700;
    color: rgba(148, 163, 184, 0.6);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    pointer-events: none;
    z-index: 2;
}

.body-slots-grid .body-slot-item.slot-accessory .slot-badge-label {
    font-size: 7.5px;
    padding: 1px 2px;
    bottom: 1px;
    letter-spacing: 0;
}

.slot-lvl-badge {
    position: absolute;
    top: 2px;
    left: 2px;
    background: #e8b86d;
    color: #1a140c;
    font-size: 9px;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 3px;
    z-index: 3;
}

.slot-empty-icon {
    font-size: 22px;
    opacity: 0.25;
    pointer-events: none;
}

.body-slots-grid .body-slot-item.slot-accessory .slot-empty-icon {
    font-size: 13px;
}

.slot-item-img {
    max-width: 52px;
    max-height: 52px;
    object-fit: contain;
    z-index: 1;
}

.body-slots-grid .body-slot-item.slot-accessory .slot-item-img {
    max-width: 28px;
    max-height: 34px;
}

.body-slots-grid .slot-wings .slot-item-img {
    max-width: 90px;
    max-height: 52px;
}

.slot-item-text {
    color: #3dbe86;
    font-size: 10px;
    font-weight: 600;
    text-align: center;
    padding: 4px;
    line-height: 1.2;
    word-break: break-word;
}

/* Equipment grid in tabs */
.eq-grid-panel {
    padding: 20px;
    display: flex;
    justify-content: center;
}

.eq-grid-panel .body-slots-grid {
    margin: 0 auto;
}

@media (max-width: 768px) {
    .body-slots-grid.mu-gear-layout {
        grid-template-columns: 50px 30px 54px 30px 56px;
        gap: 4px;
    }
    
    .body-slots-grid .body-slot-item {
        height: 50px;
    }
    
    .body-slots-grid .body-slot-item.tall-slot {
        height: 80px;
    }
    
    .body-slots-grid .body-slot-item.slot-accessory {
        height: 38px;
    }
}
