/* ALTAR FFA REBORN — Staff Panel */
:root {
  --bg: #120a05;
  --wood: #6b3d1c;
  --panel: rgba(22, 13, 8, 0.9);
  --panel-2: rgba(34, 21, 13, 0.92);
  --panel-3: #0d0805;
  --line: #3b2516;
  --line-2: #573620;
  --text: #f6ebdd;
  --muted: #b39a82;
  --dim: #7d6551;
  --orange: #ff8a1f;
  --orange-2: #ffb347;
  --orange-deep: #c25a0c;
  --red: #ff5a4f;
  --green: #5bd47c;
  --blue: #5b8cff;
  --purple: #b47cff;
  --yellow: #ffd34f;
  --pixel: 'Silkscreen', 'Courier New', monospace;
  --body: 'Chakra Petch', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --r: 4px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--orange-2); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--orange); color: #1a0d04; }

/* ── world backdrop ── */
#planks {
  position: fixed; inset: 0; z-index: -3;
  background-size: 256px 256px;
  image-rendering: pixelated;
  filter: saturate(0.95);
}
.backdrop-shade {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 45% at 50% 0%, rgba(255, 138, 31, 0.22), transparent 70%),
    radial-gradient(ellipse 120% 90% at 50% 40%, rgba(10, 5, 2, 0.55), rgba(8, 4, 1, 0.92) 80%),
    linear-gradient(180deg, rgba(8, 4, 1, 0.35), rgba(8, 4, 1, 0.75));
}
#embers { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.web { position: fixed; z-index: -1; width: 170px; height: 170px; opacity: 0.22; pointer-events: none; image-rendering: pixelated; }
.web.tl { top: 64px; left: -14px; }
.web.tr { top: 64px; right: -14px; transform: scaleX(-1); }
.web.bl { bottom: -20px; left: -10px; transform: scaleY(-1); opacity: 0.14; }
.web.br { bottom: -20px; right: -10px; transform: scale(-1, -1); opacity: 0.14; }

/* ── top bar ── */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(180deg, rgba(10, 6, 3, 0.97), rgba(14, 8, 4, 0.94));
  border-bottom: 2px solid #000;
  box-shadow: 0 2px 0 var(--line), 0 10px 30px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
}
.topbar-inner {
  max-width: 1400px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; gap: 22px; height: 64px;
}
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand svg { width: 22px; height: 38px; filter: drop-shadow(0 0 8px rgba(255, 70, 40, 0.6)); }
.logo-text {
  font-family: var(--pixel); font-weight: 700; font-size: 22px; letter-spacing: 1px; white-space: nowrap;
  text-shadow: 2px 2px 0 #3a1f0c;
}
.logo-text .o { color: var(--orange); text-shadow: 2px 2px 0 #5c2a06; }
.logo-text small { font-size: 11px; color: var(--muted); letter-spacing: 3px; margin-left: 4px; vertical-align: middle; text-shadow: none; }

.online {
  display: flex; align-items: center; gap: 8px; font-family: var(--pixel); font-size: 12px; color: var(--muted);
  letter-spacing: 1px; white-space: nowrap;
}
.online b { color: var(--text); font-size: 15px; }
.sq { width: 8px; height: 8px; background: var(--green); box-shadow: 0 0 8px var(--green); display: inline-block; flex-shrink: 0; }
.sq.off { background: var(--red); box-shadow: 0 0 8px var(--red); }
.sq.pulse { animation: pulse 2s steps(2) infinite; }
@keyframes pulse { 50% { opacity: 0.45; } }

.tabs { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; height: 100%; align-items: stretch; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  position: relative; display: flex; align-items: center; gap: 8px; padding: 0 12px;
  font-family: var(--pixel); font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase;
  color: #d9c7b3; white-space: nowrap; transition: color 0.15s;
}
.tab:hover { color: #fff; text-decoration: none; }
.tab::after {
  content: ''; position: absolute; left: 10px; right: 10px; bottom: 0; height: 3px; background: var(--orange);
  transform: scaleX(0); transition: transform 0.18s steps(4);
}
.tab.active { color: var(--orange); text-shadow: 0 0 12px rgba(255, 138, 31, 0.55); }
.tab.active::after { transform: scaleX(1); }
.tab .count {
  font-family: var(--pixel); font-size: 10px; background: var(--red); color: #fff; padding: 1px 5px; letter-spacing: 0;
  box-shadow: 2px 2px 0 #000;
}
.me-chip {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0; cursor: pointer; padding: 6px 10px; border: 2px solid var(--line);
  background: rgba(0, 0, 0, 0.35); border-radius: var(--r);
}
.me-chip:hover { border-color: var(--line-2); }
.me-chip img { width: 26px; height: 26px; image-rendering: pixelated; }
.me-chip .who { line-height: 1.15; }
.me-chip .who b { display: block; font-size: 13px; }
.me-chip .who span { font-size: 11px; font-family: var(--pixel); letter-spacing: 1px; }

/* ── layout ── */
main { max-width: 1400px; margin: 0 auto; padding: 28px 20px 80px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-title {
  font-family: var(--pixel); font-weight: 700; font-size: 34px; line-height: 1; margin: 0; letter-spacing: 1px;
  text-shadow: 3px 3px 0 #2a1608, 0 0 30px rgba(255, 138, 31, 0.15);
}
.page-title .o { color: var(--orange); text-shadow: 3px 3px 0 #5c2a06, 0 0 30px rgba(255, 138, 31, 0.35); }
.page-sub { color: var(--muted); margin-top: 8px; font-size: 14px; }
.kicker { font-family: var(--pixel); font-size: 12px; letter-spacing: 3px; color: var(--orange); margin-bottom: 8px; text-transform: uppercase; }

.grid { display: grid; gap: 18px; }
.g-4 { grid-template-columns: repeat(4, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-main { grid-template-columns: minmax(0, 1fr) 360px; }
.g-main-l { grid-template-columns: 340px minmax(0, 1fr); }
@media (max-width: 1100px) { .g-main, .g-main-l { grid-template-columns: 1fr; } .g-4 { grid-template-columns: repeat(2, 1fr); } .g-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .g-3, .g-2 { grid-template-columns: 1fr; } .g-4 { grid-template-columns: 1fr 1fr; gap: 10px; } .stat { padding: 14px; } .stat .ico { width: 26px; height: 26px; } }

/* ── panels (obsidian blocks) ── */
.card {
  background: var(--panel);
  border: 2px solid #000;
  box-shadow: inset 0 0 0 2px var(--line), inset 0 2px 0 2px rgba(255, 179, 71, 0.06), 0 6px 0 rgba(0, 0, 0, 0.45), 0 14px 30px rgba(0, 0, 0, 0.35);
  border-radius: var(--r);
  padding: 20px;
  position: relative;
  min-width: 0;
}
.card.flush { padding: 0; overflow: hidden; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card-t { font-family: var(--pixel); font-size: 14px; letter-spacing: 2px; text-transform: uppercase; color: var(--text); display: flex; align-items: center; gap: 10px; margin: 0; }
.card-t::before { content: ''; width: 8px; height: 8px; background: var(--orange); box-shadow: 0 0 10px var(--orange); }
.card-t.plain::before { display: none; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.small { font-size: 13px; }
.mono { font-family: var(--mono); }

/* stat tiles */
.stat { padding: 18px 20px; overflow: hidden; }
.stat .lbl { font-family: var(--pixel); font-size: 11px; letter-spacing: 2px; color: var(--muted); text-transform: uppercase; }
.stat .num { font-family: var(--pixel); font-weight: 700; font-size: 44px; line-height: 1.1; margin-top: 6px; text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.6); }
.stat .sub { font-size: 13px; color: var(--muted); margin-top: 2px; }
.stat .ico { position: absolute; right: 14px; top: 14px; width: 40px; height: 40px; opacity: 0.9; image-rendering: pixelated; }
.stat.hot { box-shadow: inset 0 0 0 2px #6a3412, inset 0 0 40px rgba(255, 138, 31, 0.12), 0 6px 0 rgba(0, 0, 0, 0.45); }
.stat.hot .num { color: var(--orange); }
a.stat:hover { text-decoration: none; filter: brightness(1.12); }

/* chart */
.chart { display: flex; align-items: flex-end; gap: 6px; height: 190px; padding-top: 10px; }
.chart .col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; height: 100%; position: relative; min-width: 0; }
.chart .stack { display: flex; flex-direction: column-reverse; gap: 2px; }
.chart .seg { min-height: 2px; transition: filter 0.15s; }
.chart .col:hover .seg { filter: brightness(1.25); }
.chart .day { font-family: var(--pixel); font-size: 9px; color: var(--dim); text-align: center; margin-top: 6px; letter-spacing: 0; white-space: nowrap; overflow: hidden; }
.chart .col.today .day { color: var(--orange); }
.chart .tip {
  position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); display: none; z-index: 5;
  background: #000; border: 2px solid var(--line-2); padding: 6px 9px; font-size: 12px; white-space: nowrap; pointer-events: none;
}
.chart .col:hover .tip { display: block; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; vertical-align: -1px; }

.c-ban { background: var(--red); color: var(--red); }
.c-mute { background: var(--orange); color: var(--orange); }
.c-warn { background: var(--yellow); color: var(--yellow); }
.c-kick { background: var(--blue); color: var(--blue); }

/* ── badges / chips ── */
.badge {
  display: inline-flex; align-items: center; gap: 6px; font-family: var(--pixel); font-size: 11px; letter-spacing: 1px; text-transform: uppercase;
  padding: 3px 8px; border: 2px solid currentColor; border-radius: 3px; white-space: nowrap; line-height: 1.3;
  background: color-mix(in srgb, currentColor 12%, transparent);
}
.t-ban { color: var(--red); }
.t-mute { color: var(--orange); }
.t-warn { color: var(--yellow); }
.t-kick { color: var(--blue); }
.s-active { color: var(--green); }
.s-expired { color: var(--dim); }
.s-revoked { color: var(--purple); }
.s-done { color: var(--dim); }
.s-pending { color: var(--orange-2); }
.s-accepted { color: var(--green); }
.s-denied { color: var(--red); }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 2px 8px; border-radius: 99px; background: rgba(255, 255, 255, 0.06); color: var(--muted); white-space: nowrap; }
.role { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.role::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 6px currentColor; }
.tag-involved { font-family: var(--pixel); font-size: 10px; letter-spacing: 1px; color: var(--purple); border: 1px solid var(--purple); padding: 1px 6px; border-radius: 3px; }
.plat { font-family: var(--pixel); font-size: 10px; letter-spacing: 1px; padding: 1px 6px; border-radius: 2px; background: #233; color: #8fd; }
.plat.java { background: #2a1a0c; color: #ffb36b; }

/* ── controls ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; white-space: nowrap;
  font-family: var(--pixel); font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 10px 16px; border: 2px solid #000; border-radius: 3px;
  background: linear-gradient(180deg, #4a2c17, #2f1b0d); color: var(--text);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.12), inset 0 -3px 0 rgba(0, 0, 0, 0.35), 0 3px 0 #000;
  transition: transform 0.06s, filter 0.15s;
}
.btn:hover { filter: brightness(1.2); text-decoration: none; }
.btn:active { transform: translateY(2px); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.12), inset 0 -3px 0 rgba(0, 0, 0, 0.35), 0 1px 0 #000; }
.btn.primary { background: linear-gradient(180deg, #ff9f3d, #e06a0b); color: #1c0c02; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25); }
.btn.danger { background: linear-gradient(180deg, #a3302a, #6a1a16); }
.btn.good { background: linear-gradient(180deg, #3e9a57, #23633a); }
.btn.ghost { background: transparent; box-shadow: none; border-color: var(--line-2); }
.btn.sm { padding: 6px 10px; font-size: 10px; }
.btn[disabled] { opacity: 0.45; pointer-events: none; }
.icon-btn { background: none; border: 0; color: var(--dim); cursor: pointer; padding: 4px; border-radius: 3px; display: inline-flex; }
.icon-btn:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.icon-btn svg { width: 15px; height: 15px; }

.input, select.input, textarea.input {
  width: 100%; background: #0b0603; border: 2px solid var(--line); border-radius: 3px; padding: 10px 12px; outline: none;
  box-shadow: inset 0 2px 0 rgba(0, 0, 0, 0.6); transition: border-color 0.15s, box-shadow 0.15s;
}
.input:focus { border-color: var(--orange); box-shadow: inset 0 2px 0 rgba(0, 0, 0, 0.6), 0 0 0 3px rgba(255, 138, 31, 0.15); }
textarea.input { resize: vertical; min-height: 90px; }
select.input { appearance: none; padding-right: 32px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
label.f { display: block; font-family: var(--pixel); font-size: 11px; letter-spacing: 2px; color: var(--muted); text-transform: uppercase; margin-bottom: 6px; }
.field { margin-bottom: 14px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.nowrap { flex-wrap: nowrap; }
.spacer { flex: 1; }

.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  cursor: pointer; font-family: var(--pixel); font-size: 11px; letter-spacing: 1px; text-transform: uppercase;
  padding: 7px 11px; border: 2px solid var(--line); background: rgba(0, 0, 0, 0.35); border-radius: 3px; color: var(--muted);
}
.chip:hover { color: var(--text); border-color: var(--line-2); }
.chip.on { color: #1c0c02; background: var(--orange); border-color: #000; box-shadow: 0 2px 0 #000; }
.chip .n { opacity: 0.7; margin-left: 4px; }

.filters { display: grid; grid-template-columns: auto 160px 1fr 1fr 1fr; gap: 10px; align-items: center; margin-bottom: 16px; }
@media (max-width: 1100px) { .filters { grid-template-columns: 1fr 1fr; } .filters .chips { grid-column: 1 / -1; } }

/* ── tables ── */
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th {
  text-align: left; font-family: var(--pixel); font-weight: 400; font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--dim); padding: 12px 14px; border-bottom: 2px solid var(--line); white-space: nowrap; background: rgba(0, 0, 0, 0.3);
}
table.t td { padding: 11px 14px; border-bottom: 1px solid rgba(87, 54, 32, 0.45); vertical-align: middle; }
table.t tr.click { cursor: pointer; transition: background 0.1s; }
table.t tr.click:hover td { background: rgba(255, 138, 31, 0.06); }
table.t tr.click:hover td:first-child { box-shadow: inset 3px 0 0 var(--orange); }
.reason-cell { max-width: 380px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nowrap { white-space: nowrap; }

.player { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; white-space: nowrap; }
.head { width: 28px; height: 28px; image-rendering: pixelated; border-radius: 3px; background: #2a1a0f; flex-shrink: 0; box-shadow: 0 2px 0 rgba(0, 0, 0, 0.5); object-fit: cover; }
.head.lg { width: 64px; height: 64px; border-radius: 4px; }
.head.fallback { display: inline-grid; place-items: center; font-family: var(--pixel); font-size: 11px; color: #fff; }

/* ── punishment detail (like your old one, but on fire) ── */
.case-head { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; margin-bottom: 22px; }
.case-head .page-title { font-size: 40px; }
.case-head .right { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 20px; }
@media (max-width: 800px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fact .k { font-family: var(--pixel); font-size: 11px; letter-spacing: 2px; color: var(--dim); text-transform: uppercase; margin-bottom: 4px; }
.fact .v { font-size: 15px; word-break: break-word; }
.sect { margin-top: 24px; }
.sect > .k { font-family: var(--pixel); font-size: 11px; letter-spacing: 2px; color: var(--dim); text-transform: uppercase; margin-bottom: 8px; }
.cmd {
  display: flex; align-items: center; gap: 12px; background: #050302; border: 2px solid #000; box-shadow: inset 0 0 0 1px var(--line);
  padding: 14px 14px 14px 16px; border-radius: 3px; font-family: var(--mono); font-size: 14px; font-weight: 600;
}
.cmd code { flex: 1; overflow-x: auto; white-space: nowrap; color: #ffe6c7; }
.cmd code .slash { color: var(--orange); }
.cmd.undo code { color: #d6c3ff; }
.cmd.undo code .slash { color: var(--purple); }

.progress { height: 10px; background: #050302; border: 2px solid #000; box-shadow: inset 0 0 0 1px var(--line); position: relative; overflow: hidden; }
.progress > i { position: absolute; inset: 0 auto 0 0; background: repeating-linear-gradient(90deg, var(--orange) 0 10px, var(--orange-deep) 10px 12px); box-shadow: 0 0 12px var(--orange); }

.proof-list { display: flex; flex-direction: column; gap: 8px; }
.proof-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line); border-radius: 3px; }
.proof-item a { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* discussion */
.thread { display: flex; flex-direction: column; gap: 4px; }
.msg { display: flex; gap: 12px; padding: 12px 8px; border-radius: 4px; }
.msg:hover { background: rgba(255, 255, 255, 0.025); }
.msg .av { width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; font-family: var(--pixel); font-size: 12px; color: #fff; overflow: hidden; }
.msg .av img { width: 100%; height: 100%; image-rendering: pixelated; }
.msg .meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; }
.msg .meta b { font-size: 14px; }
.msg .text { margin-top: 3px; white-space: pre-wrap; word-break: break-word; }
.msg .del { margin-left: auto; opacity: 0; }
.msg:hover .del { opacity: 1; }
.composer { margin-top: 12px; display: flex; gap: 10px; align-items: flex-end; background: rgba(0, 0, 0, 0.3); border: 2px solid var(--line); padding: 10px; border-radius: 4px; }
.composer textarea { flex: 1; min-height: 44px; height: 44px; background: transparent; border: 0; outline: none; resize: vertical; padding: 6px; }
.empty { color: var(--dim); text-align: center; padding: 26px 10px; font-size: 14px; }
.empty .big { font-family: var(--pixel); font-size: 13px; letter-spacing: 2px; color: var(--muted); display: block; margin-bottom: 4px; }

/* ladder */
.ladder { display: flex; flex-direction: column; gap: 10px; }
.rung { padding: 12px; border: 2px solid var(--line); border-radius: 4px; background: rgba(0, 0, 0, 0.28); }
.rung.hit { border-color: #6a3412; background: rgba(255, 138, 31, 0.06); }
.rung .top { display: flex; align-items: center; gap: 10px; }
.rung .name { font-weight: 700; }
.pips { display: flex; gap: 4px; margin-left: auto; }
.pip { width: 14px; height: 14px; background: #1a100a; border: 2px solid #000; box-shadow: inset 0 0 0 1px var(--line-2); }
.pip.done { background: var(--red); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.3), 0 0 6px rgba(255, 90, 79, 0.6); }
.pip.next { background: var(--orange); animation: pulse 1.2s steps(2) infinite; }
.rung .cmd { margin-top: 10px; padding: 9px 10px; font-size: 12.5px; }
.rung-select { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }

/* profile */
.profile-hero { display: flex; gap: 22px; align-items: center; }
.profile-hero .body { width: 92px; height: 180px; image-rendering: pixelated; filter: drop-shadow(4px 6px 0 rgba(0, 0, 0, 0.5)); object-fit: contain; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 14px; }
.kv dt { color: var(--dim); font-family: var(--pixel); font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; padding-top: 3px; }
.kv dd { margin: 0; }
.warnbox { border: 2px solid #7a2a20; background: rgba(255, 90, 79, 0.08); padding: 10px 12px; border-radius: 4px; font-size: 14px; display: flex; gap: 10px; align-items: flex-start; }
.warnbox b { color: var(--red); }
.infobox { border: 2px dashed #6a3412; background: rgba(255, 138, 31, 0.06); padding: 12px 14px; border-radius: 4px; font-size: 14px; }

/* search */
.bigsearch { position: relative; max-width: 640px; }
.bigsearch .input { font-size: 18px; padding: 16px 16px 16px 50px; }
.bigsearch svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; color: var(--orange); }
.ac { position: absolute; left: 0; right: 0; top: calc(100% + 4px); background: #0d0805; border: 2px solid var(--line-2); border-radius: 4px; z-index: 30; overflow: hidden; box-shadow: 0 14px 30px rgba(0, 0, 0, 0.6); }
.ac a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; color: var(--text); }
.ac a:hover, .ac a.sel { background: rgba(255, 138, 31, 0.12); text-decoration: none; }

/* appeals */
.appeal-card { display: block; color: var(--text); padding: 16px 18px; }
.appeal-card:hover { text-decoration: none; filter: brightness(1.1); }
.appeal-card .msg-preview { color: var(--muted); font-size: 14px; margin-top: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.votes { display: flex; gap: 8px; }
.vote { cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 2px solid var(--line); border-radius: 3px; background: rgba(0, 0, 0, 0.3); font-family: var(--pixel); font-size: 12px; }
.vote.up.on { border-color: var(--green); color: var(--green); background: rgba(91, 212, 124, 0.1); }
.vote.down.on { border-color: var(--red); color: var(--red); background: rgba(255, 90, 79, 0.1); }
.quote { border-left: 4px solid var(--orange); background: rgba(0, 0, 0, 0.3); padding: 14px 16px; white-space: pre-wrap; word-break: break-word; border-radius: 0 4px 4px 0; }

/* staff board */
.board-row { display: grid; grid-template-columns: 36px 1fr 2fr 64px; gap: 14px; align-items: center; padding: 10px 4px; border-bottom: 1px solid rgba(87, 54, 32, 0.45); }
.rank-n { font-family: var(--pixel); font-size: 18px; color: var(--dim); text-align: center; }
.board-row:nth-child(1) .rank-n { color: var(--yellow); text-shadow: 0 0 10px rgba(255, 211, 79, 0.6); }
.board-row:nth-child(2) .rank-n { color: #d8d8e8; }
.board-row:nth-child(3) .rank-n { color: #e09a5a; }
.bar { display: flex; height: 14px; background: #050302; border: 2px solid #000; box-shadow: inset 0 0 0 1px var(--line); }
.bar i { display: block; height: 100%; }
.board-row .tot { font-family: var(--pixel); font-size: 18px; text-align: right; }

/* ── modal + toast ── */
.modal-bg { position: fixed; inset: 0; background: rgba(5, 2, 0, 0.75); backdrop-filter: blur(3px); z-index: 100; display: grid; place-items: center; padding: 20px; animation: fade 0.15s; }
.modal { width: 100%; max-width: 480px; max-height: 90vh; overflow: auto; }
@keyframes fade { from { opacity: 0; } }
#toasts { position: fixed; bottom: 20px; right: 20px; z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.toast { background: #0d0805; border: 2px solid var(--line-2); border-left: 6px solid var(--orange); padding: 12px 16px; border-radius: 3px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6); animation: slide 0.2s steps(4); max-width: 360px; font-size: 14px; }
.toast.err { border-left-color: var(--red); }
.toast.ok { border-left-color: var(--green); }
@keyframes slide { from { transform: translateX(30px); opacity: 0; } }

.demo-banner {
  background: repeating-linear-gradient(-45deg, #2a1608 0 14px, #331b0a 14px 28px); border-bottom: 2px solid #000;
  text-align: center; font-family: var(--pixel); font-size: 11px; letter-spacing: 2px; padding: 7px 12px; color: var(--orange-2);
}

/* ── login ── */
.gate { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.gate-box { width: 100%; max-width: 420px; text-align: center; }
.gate-logo { font-family: var(--pixel); font-weight: 700; font-size: 56px; line-height: 1; letter-spacing: 2px; margin: 18px 0 6px; text-shadow: 4px 4px 0 #3a1f0c, 0 0 40px rgba(255, 138, 31, 0.15); }
.gate-logo .o { color: var(--orange); text-shadow: 4px 4px 0 #5c2a06, 0 0 40px rgba(255, 138, 31, 0.45); }
.gate-sub { font-family: var(--pixel); color: var(--orange); letter-spacing: 6px; font-size: 18px; text-shadow: 0 0 14px rgba(255, 138, 31, 0.5); margin-bottom: 26px; }
.gate .card { text-align: left; }
.sword { width: 26px; height: 92px; filter: drop-shadow(0 0 12px rgba(255, 60, 30, 0.7)); animation: hover 3s ease-in-out infinite; }
@keyframes hover { 50% { transform: translateY(-8px); } }

.skeleton { background: linear-gradient(90deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03)); background-size: 200% 100%; animation: sk 1.2s linear infinite; border-radius: 3px; height: 14px; }
@keyframes sk { to { background-position: -200% 0; } }
.loading { font-family: var(--pixel); letter-spacing: 3px; color: var(--muted); text-align: center; padding: 60px 0; }
.loading::after { content: '...'; animation: dots 1s steps(4) infinite; display: inline-block; width: 2ch; text-align: left; overflow: hidden; vertical-align: bottom; }
@keyframes dots { from { width: 0; } }

footer.foot { text-align: center; color: var(--dim); font-size: 12px; padding: 30px 0 10px; font-family: var(--pixel); letter-spacing: 2px; }

@media (max-width: 900px) {
  .topbar-inner { height: auto; flex-wrap: wrap; padding: 10px 16px 0; gap: 10px; }
  .tabs { order: 3; width: 100%; height: 44px; margin-left: 0; }
  .online { display: none; }
  .me-chip { margin-left: auto; padding: 4px; }
  .me-chip .who { display: none; }
  main { padding: 20px 16px 60px; }
  .page-title { font-size: 26px; }
  .case-head .page-title { font-size: 28px; }
  .stat .num { font-size: 34px; }
  .gate-logo { font-size: 40px; }
  .web { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
