:root {
  --bg-deep: #2a2e35;
  --bg: #32383f;
  --panel: #3a4149;
  --panel-2: #343b43;
  --line: #4d5661;
  --line-soft: #454e58;
  --text: #e4e7eb;
  --muted: #9aa3ad;
  --accent: #c9a24a;
  --accent-bright: #dbb45a;
  --accent-dim: #e0c078;
  --ok: #5cb88a;
  --bad: #d66a6a;
  --link: #7eb0d8;
  --font-display: "Cinzel", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --radius: 10px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg-deep);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
.bg-atmosphere {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(820px 420px at 8% -5%, rgba(201, 162, 74, 0.10), transparent 55%),
    radial-gradient(700px 380px at 96% 0%, rgba(70, 100, 130, 0.14), transparent 50%),
    linear-gradient(180deg, #353b43 0%, var(--bg-deep) 45%, #24282e 100%);
}

a { color: var(--link); font-weight: 600; text-decoration: none; }
a:hover { color: var(--accent-dim); }

.site-nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(42, 46, 53, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.nav-inner {
  width: min(1120px, calc(100% - 1.5rem));
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.65rem 0;
}
.brand { display: flex; align-items: center; gap: 0.7rem; color: var(--text); }
.brand-mark {
  width: 38px; height: 38px; display: grid; place-items: center;
  border: 1px solid var(--accent); color: var(--accent-dim);
  font-family: var(--font-display); font-weight: 700; border-radius: 8px;
  background: linear-gradient(160deg, rgba(212,160,58,0.22), #3a4149);
}
.brand-text strong { display: block; font-family: var(--font-display); letter-spacing: 0.03em; font-size: 1.02rem; }
.brand-text small { color: var(--muted); font-size: 0.76rem; }
.nav-toggle {
  display: none; background: var(--panel); color: var(--text);
  border: 1px solid var(--line); border-radius: 8px; padding: 0.4rem 0.65rem; font-size: 1.1rem;
}
.nav-links { display: flex; flex-wrap: wrap; gap: 0.2rem; }
.nav-links a {
  color: var(--muted); padding: 0.42rem 0.68rem; border-radius: 999px; font-size: 0.92rem;
}
.nav-links a:hover, .nav-links a.on {
  color: var(--text); background: rgba(212,160,58,0.14);
}
.nav-links a.on { color: var(--accent-dim); font-weight: 700; }

.page {
  position: relative; z-index: 1;
  width: min(1120px, calc(100% - 1.5rem));
  margin: 1.15rem auto 2.4rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 1.15rem;
  align-items: start;
}
.main-col, .side-col { min-width: 0; }

.hero {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.35rem;
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
}
.hero h1 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 1.95rem);
  letter-spacing: 0.03em;
  color: var(--accent-dim);
}
.hero p { margin: 0; color: var(--muted); max-width: 40rem; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }

/* Compact legend slider (~30% viewport) */
.legend-hero {
  position: relative;
  z-index: 1;
  height: min(30vh, 280px);
  min-height: 200px;
  max-height: 280px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}
.legend-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.legend-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 0.75s ease;
  pointer-events: none;
}
.legend-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}
.legend-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
  transform: scale(1.03);
  transition: transform 3.1s ease-out;
  filter: saturate(1.02) contrast(1.04);
}
.legend-slide.is-active img { transform: scale(1.08); }

.legend-tag {
  position: absolute;
  left: max(1rem, calc((100% - 1120px) / 2));
  bottom: 0.7rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  max-width: min(18rem, 48vw);
  pointer-events: none;
}
.legend-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff8e6;
  text-shadow: 0 1px 8px rgba(0,0,0,0.75);
}
.legend-line {
  color: rgba(255,255,255,0.88);
  font-size: 0.8rem;
  text-shadow: 0 1px 6px rgba(0,0,0,0.7);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.legend-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(18,24,34,0.72) 0%, rgba(18,24,34,0.35) 48%, rgba(18,24,34,0.2) 100%),
    linear-gradient(180deg, rgba(18,24,34,0.15) 0%, transparent 40%, rgba(18,24,34,0.55) 100%);
}
.legend-content {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 1.5rem));
  margin: 0 auto;
  padding: 1.15rem 0 1.35rem;
  max-width: 30rem;
  animation: legend-rise 0.7s ease-out both;
}
.legend-brand {
  margin: 0 0 0.2rem;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3.2vw, 2rem);
  letter-spacing: 0.04em;
  line-height: 1.1;
  color: #f0d078;
  text-shadow: 0 1px 10px rgba(0,0,0,0.45);
}
.legend-content h1 {
  margin: 0 0 0.35rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}
.legend-lead {
  margin: 0;
  color: rgba(255,255,255,0.9);
  font-size: 0.92rem;
  max-width: 26rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.legend-content .cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.legend-content .btn {
  padding: 0.48rem 0.9rem;
  font-size: 0.92rem;
}
.legend-content .btn.secondary {
  /* keep shared plastic secondary look on hero */
  backdrop-filter: none;
}
.legend-content .cta .btn {
  min-width: 9.5rem;
}
.legend-dots {
  position: absolute;
  right: max(1rem, calc((100% - 1120px) / 2));
  bottom: 0.85rem;
  z-index: 3;
  display: flex;
  gap: 0.4rem;
}
.legend-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.65);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.legend-dot.is-active {
  background: var(--accent-bright);
  border-color: var(--accent-bright);
  transform: scale(1.15);
}
.legend-dot:hover { background: rgba(255,255,255,0.45); }

@keyframes legend-rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-home { margin-top: 1.15rem; }
.home-intro, .home-about {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}
.home-intro h2, .home-about h2 {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-size: 1.02rem;
  color: var(--accent-dim);
  letter-spacing: 0.04em;
}

/* Screenshot mosaic */
.home-shots {
  margin-bottom: 1.15rem;
}
.home-shots__head {
  margin-bottom: 0.75rem;
}
.home-shots__head h2 {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--accent-dim);
  letter-spacing: 0.04em;
}
.home-shots__head p { margin: 0; }
.shot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}
.shot-card {
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0f141c;
  box-shadow: var(--shadow);
  position: relative;
}
.shot-card img {
  display: block;
  width: 100%;
  height: 118px;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.shot-card:hover img { transform: scale(1.06); }
.shot-card figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0.45rem 0.55rem;
  font-size: 0.78rem;
  color: #fff;
  background: linear-gradient(transparent, rgba(10,14,20,0.85));
}

/* News feed */
.home-news {
  margin-bottom: 1.15rem;
}
.home-news__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.home-news__head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--accent-dim);
  letter-spacing: 0.04em;
}
.news-feed { display: grid; gap: 0.85rem; }
.news-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow);
}
.news-card--featured {
  border-color: rgba(201,162,74,0.45);
  background: linear-gradient(165deg, #454b38, var(--panel));
}
.news-card__meta {
  display: flex; align-items: center; gap: 0.35rem;
  color: var(--muted); font-size: 0.84rem; margin-bottom: 0.35rem;
}
.news-card__dot { opacity: 0.6; }
.news-card__title {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--text);
}
.news-card__title a { color: inherit; }
.news-card__title a:hover { color: var(--accent-dim); }
.news-card__content {
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.6;
}
.news-card__content img {
  max-width: 100%;
  border-radius: 8px;
  margin: 0.5rem 0;
}
.news-bb-image { margin: 0.6rem 0; }
.news-bb-center { text-align: center; }
.news-empty {
  background: var(--panel);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
  color: var(--muted);
  text-align: center;
}
.news-pagination {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.75rem; margin-top: 0.9rem;
}
.news-pagination__btn {
  display: inline-block;
  padding: 0.35rem 0.7rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
  font-size: 0.9rem;
}
.home-admin-actions {
  display: flex; gap: 0.45rem; margin-top: 0.75rem; flex-wrap: wrap;
}
.home-admin-btn {
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
  border-radius: 6px;
  padding: 0.28rem 0.55rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.home-admin-btn--danger { color: var(--bad); border-color: #efb4b4; }
.news-admin-head {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
}
.news-admin-head h2 { margin: 0; }
.news-admin-list { list-style: none; margin: 0; padding: 0; }
.news-admin-list li {
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
  padding: 0.7rem 0; border-bottom: 1px solid var(--line-soft);
}
.news-admin-list li:last-child { border-bottom: 0; }
.news-admin-list strong { display: block; }
.news-admin-actions { display: flex; gap: 0.4rem; }
textarea {
  width: 100%; padding: 0.58rem 0.7rem; border-radius: 8px;
  border: 1px solid var(--line); background: var(--panel-2); color: var(--text);
  font: inherit; min-height: 180px; resize: vertical;
}

.panel, .box {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}
.panel h2, .box h3 {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-size: 1.02rem;
  color: var(--accent-dim);
  letter-spacing: 0.04em;
}
.box h3 { font-size: 0.94rem; }

.steps { margin: 0; padding-left: 1.15rem; color: var(--text); }
.steps li { margin: 0.5rem 0; }
.steps a { font-weight: 700; }

.btn {
  display: inline-block;
  position: relative;
  border: 1px solid #9a7422;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0) 42%),
    linear-gradient(180deg, #efc86f 0%, #d4a03a 48%, #b88424 100%);
  color: #1a1408 !important;
  font-weight: 700;
  padding: 0.58rem 1rem;
  border-radius: 9px;
  cursor: pointer;
  font: inherit;
  text-align: center;
  text-shadow: 0 1px 0 rgba(255,255,255,0.28);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.45),
    inset 0 -2px 3px rgba(0,0,0,0.18),
    0 2px 0 #7a5a16,
    0 4px 10px rgba(0,0,0,0.28);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}
.btn:hover {
  filter: brightness(1.06);
  color: #1a1408 !important;
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.5),
    inset 0 -2px 3px rgba(0,0,0,0.16),
    0 3px 0 #7a5a16,
    0 6px 14px rgba(0,0,0,0.32);
}
.btn:active {
  transform: translateY(1px);
  filter: brightness(0.98);
  box-shadow:
    inset 0 2px 4px rgba(0,0,0,0.28),
    inset 0 1px 0 rgba(255,255,255,0.2),
    0 1px 0 #7a5a16,
    0 2px 6px rgba(0,0,0,0.25);
}
.btn.secondary {
  border-color: rgba(230,210,160,0.35);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.14) 0%, rgba(255,255,255,0) 40%),
    linear-gradient(180deg, #3a3f48 0%, #2a2e35 52%, #1f2329 100%);
  color: #f0e2b8 !important;
  text-shadow: 0 1px 0 rgba(0,0,0,0.45);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.16),
    inset 0 -2px 3px rgba(0,0,0,0.35),
    0 2px 0 #14171b,
    0 4px 10px rgba(0,0,0,0.35);
}
.btn.secondary:hover {
  filter: brightness(1.08);
  color: #fff8e6 !important;
  border-color: rgba(212,160,58,0.55);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 40%),
    linear-gradient(180deg, #454b55 0%, #323740 52%, #252a31 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.2),
    inset 0 -2px 3px rgba(0,0,0,0.3),
    0 3px 0 #14171b,
    0 6px 14px rgba(0,0,0,0.38);
}
.btn.secondary:active {
  transform: translateY(1px);
  box-shadow:
    inset 0 2px 4px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.1),
    0 1px 0 #14171b,
    0 2px 6px rgba(0,0,0,0.3);
}
.btn.block { width: 100%; margin-top: 0.6rem; }
.btn.danger {
  border-color: #8a3030;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 42%),
    linear-gradient(180deg, #e07a7a 0%, #c04a4a 48%, #9a3030 100%);
  color: #fff !important;
  text-shadow: 0 1px 0 rgba(0,0,0,0.35);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.28),
    inset 0 -2px 3px rgba(0,0,0,0.22),
    0 2px 0 #6a2020,
    0 4px 10px rgba(0,0,0,0.3);
}

label { display: block; font-weight: 600; margin: 0.65rem 0 0.25rem; font-size: 0.92rem; }
input, select {
  width: 100%; padding: 0.58rem 0.7rem; border-radius: 8px;
  border: 1px solid var(--line); background: var(--panel-2); color: var(--text);
  font: inherit;
}
input:focus, select:focus { outline: 2px solid rgba(184,134,45,0.35); border-color: var(--accent); }
.hint, .muted { color: var(--muted); }
.small { font-size: 0.86rem; }
.center { text-align: center; }

.flash {
  padding: 0.7rem 0.95rem; border-radius: 8px; margin-bottom: 1rem;
  border: 1px solid; font-weight: 600;
}
.flash-ok { background: rgba(47,143,91,0.18); border-color: rgba(92,184,138,0.45); color: #9fd4b5; }
.flash-err { background: rgba(196,69,69,0.18); border-color: rgba(214,106,106,0.45); color: #efb0b0; }

.status-line { margin: 0 0 0.3rem; font-weight: 700; display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
.online-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--bad); display: inline-block; flex-shrink: 0; }
.online-dot.on { background: var(--ok); box-shadow: 0 0 0 3px rgba(47,143,91,0.2); }
.online-count { font-family: var(--font-display); font-size: 1.15rem; letter-spacing: 0.02em; color: var(--accent-dim); }
.online-link { text-decoration: none; }
.online-link:hover { color: var(--accent); text-decoration: underline; }

.side-login label { margin-top: 0.5rem; }
.side-login .btn { margin-top: 0.8rem; }

.mini-hs { list-style: none; margin: 0; padding: 0; }
.mini-hs li {
  display: flex; justify-content: space-between; gap: 0.5rem;
  padding: 0.4rem 0; border-bottom: 1px solid var(--line-soft);
  font-size: 0.9rem;
}
.mini-hs li:last-child { border-bottom: 0; }
.mini-hs b { color: var(--accent-dim); font-weight: 700; }



.hs-filter-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0.6rem 0 0.35rem;
}
.hs-vocs { margin-top: 0.25rem; }

.hs-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.85rem 0 1rem;
}
.hs-cat {
  display: inline-block;
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(212,160,58,0.35);
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  background: rgba(0,0,0,0.2);
}
.hs-cat:hover { color: var(--accent); border-color: var(--accent); }
.hs-cat.on {
  color: #1a1208;
  background: var(--accent);
  border-color: var(--accent);
  font-weight: 700;
}
.hs-cat-title {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  color: var(--accent-dim);
}

.hs-table {
  width: 100%; border-collapse: collapse; font-size: 0.95rem;
  background: var(--panel); border-radius: var(--radius); overflow: hidden;
}
.hs-table th, .hs-table td {
  padding: 0.55rem 0.5rem; text-align: left;
  border-bottom: 1px solid var(--line-soft);
}
.hs-table th {
  color: var(--accent-dim); font-family: var(--font-display);
  font-weight: 600; font-size: 0.84rem; letter-spacing: 0.03em;
  background: var(--panel-2);
}
.hs-table tr:hover td { background: rgba(212,160,58,0.06); }
.hs-table .rank { color: var(--muted); width: 2.5rem; }
.char-link { color: var(--text); }
.char-link:hover { color: var(--accent-dim); }

.hs-name {
  vertical-align: middle;
  white-space: nowrap;
}
.hs-name .skull-ico {
  margin-right: 0.35rem;
}
.skull-ico {
  width: 16px; height: 16px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  flex-shrink: 0;
  vertical-align: middle;
}
.skull-ico--lg {
  width: 24px; height: 24px;
}

.profile-header {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 1rem;
}
.profile-outfit {
  width: 72px; height: 72px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #2a3038;
  display: grid; place-items: center;
  overflow: hidden;
}
.profile-outfit img { image-rendering: pixelated; }
.profile-header__text h2 { margin: 0 0 0.2rem; font-family: var(--font-display); color: var(--accent-dim); display: flex; align-items: center; gap: 0.55rem; flex-wrap: wrap; }
.profile-header__text p { margin: 0; }
.skull-badge {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
}
.skull-none { background: rgba(154,163,173,0.18); color: var(--muted); border: 1px solid var(--line); }
.skull-yellow { background: rgba(212,160,58,0.22); color: #e8c878; border: 1px solid rgba(212,160,58,0.45); }
.skull-white { background: rgba(230,235,240,0.16); color: #f0f3f6; border: 1px solid rgba(230,235,240,0.45); }
.skull-red { background: rgba(196,69,69,0.28); color: #ff9a9a; border: 1px solid rgba(214,106,106,0.55); }
.profile-table {
  width: 100%; border-collapse: collapse; font-size: 0.95rem;
}
.profile-table th, .profile-table td {
  padding: 0.45rem 0.35rem; text-align: left;
  border-bottom: 1px solid var(--line-soft);
}
.profile-table th {
  width: 9rem; color: var(--muted); font-weight: 600;
}
.tag {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(255,255,255,0.08);
  color: var(--muted);
  vertical-align: middle;
}
.tag-pvp {
  background: rgba(196,69,69,0.22);
  color: #ef9a9a;
}

.char-list { list-style: none; padding: 0; margin: 0; }
.char-list li {
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
  padding: 0.65rem 0; border-bottom: 1px solid var(--line-soft);
}
.char-list li:last-child { border-bottom: 0; }

.qr-wrap {
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-start;
  margin: 0.75rem 0;
}
.qr-wrap img {
  width: 180px; height: 180px; background: #fff; border-radius: 8px; padding: 8px;
  border: 1px solid var(--line);
}
.secret-box {
  font-family: ui-monospace, Consolas, monospace;
  background: #2a3038; border: 1px solid var(--line);
  padding: 0.55rem 0.7rem; border-radius: 8px; word-break: break-all;
}

code {
  font-family: ui-monospace, Consolas, monospace;
  background: #2a3038; padding: 0.12rem 0.35rem; border-radius: 4px;
  border: 1px solid var(--line-soft); font-size: 0.9em;
}

.foot {
  position: relative; z-index: 1;
  border-top: 1px solid var(--line);
  padding: 1.3rem 1rem 2rem; text-align: center;
  color: var(--muted); font-size: 0.9rem;
  background: rgba(24,28,34,0.65);
}
.foot strong { color: var(--accent-dim); font-family: var(--font-display); }

@media (max-width: 900px) {
  .page { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-block; }
  .nav-links {
    display: none; width: 100%; flex-direction: column;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 0.5rem 0.75rem 0.85rem;
  }
  .nav-links.open { display: flex; }
  .nav-inner { flex-wrap: wrap; }
  .legend-hero {
    height: min(30vh, 240px);
    min-height: 180px;
    max-height: 240px;
  }
  .legend-content {
    padding: 0.85rem 0 1.1rem;
    max-width: 100%;
  }
  .legend-lead { -webkit-line-clamp: 1; }
  .legend-tag {
    left: 0.85rem;
    bottom: 0.55rem;
    max-width: calc(100% - 4.5rem);
  }
  .legend-dots {
    right: 0.85rem;
    bottom: 0.65rem;
  }
  .shot-grid { grid-template-columns: repeat(2, 1fr); }
  .shot-card img { height: 100px; }
}

@media (prefers-reduced-motion: reduce) {
  .legend-slide,
  .legend-slide img,
  .legend-content { transition: none !important; animation: none !important; }
}

/* Latest announcement ticker */
.news-ticker {
  position: relative; z-index: 2;
  border-bottom: 1px solid rgba(212,160,58,0.34);
  background: linear-gradient(90deg, rgba(37,31,23,0.98), rgba(49,43,33,0.96), rgba(37,31,23,0.98));
  box-shadow: 0 4px 18px rgba(0,0,0,0.22);
}
.news-ticker__inner {
  width: min(1280px, calc(100% - 2rem)); min-height: 42px; margin: 0 auto;
  display: flex; align-items: center; gap: 0.85rem;
}
.news-ticker__label, .admin-nav-badge {
  display: inline-flex; align-items: center;
  border: 1px solid rgba(212,160,58,0.48); background: rgba(212,160,58,0.16);
  color: var(--accent); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.08em; line-height: 1; text-transform: uppercase; white-space: nowrap;
}
.news-ticker__label { padding: 0.34rem 0.48rem; border-radius: 4px; }
.admin-nav-badge { margin-right: 0.24rem; padding: 0.2rem 0.3rem; border-radius: 3px; }
.news-ticker__link {
  min-width: 0; flex: 1; position: relative; display: block; overflow: hidden;
  height: 42px; color: var(--text); text-decoration: none;
}
.news-ticker__track {
  position: absolute; top: 0; left: 0; height: 42px;
  display: inline-flex; align-items: center; gap: 0.75rem;
  width: max-content; white-space: nowrap;
  /* Fallback; JS sets duration from content width (~38px/s readable crawl). */
  animation: news-crawl 90s linear infinite;
  will-change: transform;
}
.news-ticker__track strong {
  color: var(--accent-dim); font-family: var(--font-display);
}
.news-ticker__message { color: var(--muted); font-size: 0.9rem; }
.news-ticker__link:hover .news-ticker__track,
.news-ticker__link:focus .news-ticker__track { animation-play-state: paused; }
.news-ticker__link:hover strong { color: var(--accent); }
.news-ticker__manage {
  flex: 0 0 auto; color: var(--accent-dim); font-size: 0.82rem;
  font-weight: 700; text-decoration: none;
}
.news-ticker__manage:hover { color: var(--accent); text-decoration: underline; }
@keyframes news-crawl {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}
@media (max-width: 700px) {
  .news-ticker__inner { width: min(100% - 1rem, 1280px); gap: 0.55rem; }
  .news-ticker__manage { font-size: 0.76rem; }
  .news-ticker__track { animation-duration: 70s; }
}
@media (prefers-reduced-motion: reduce) {
  .news-ticker__track { position: static; animation: none; }
  .news-ticker__link { overflow-x: auto; }
}

/* Sidebar character search */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.character-search-control { position: relative; display: flex; }
.character-search-control input {
  min-width: 0; flex: 1; border-radius: 6px 0 0 6px;
}
.character-search-submit {
  flex: 0 0 auto; padding: 0 0.72rem;
  border: 1px solid var(--accent); border-left: 0; border-radius: 0 6px 6px 0;
  background: var(--accent); color: #1a1208; font: inherit; font-size: 0.82rem;
  font-weight: 700; cursor: pointer;
}
.character-search-submit:hover { filter: brightness(1.1); }
.character-suggestions {
  position: absolute; z-index: 30; top: calc(100% + 4px); left: 0; right: 0;
  max-height: 240px; overflow-y: auto; padding: 0.25rem;
  border: 1px solid var(--line); border-radius: 6px;
  background: #252a31; box-shadow: 0 10px 24px rgba(0,0,0,0.42);
}
.character-suggestion {
  display: block; width: 100%; padding: 0.48rem 0.6rem; border: 0; border-radius: 4px;
  background: transparent; color: var(--text); font: inherit; text-align: left; cursor: pointer;
}
.character-suggestion:hover, .character-suggestion.is-active {
  background: rgba(212,160,58,0.18); color: var(--accent);
}

/* Saved player outfits */
.profile-outfit { width: 72px; height: 72px; }
.profile-outfit img,
.hs-outfit-img {
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
.hs-outfit-col { width: 72px; padding: 0.15rem 0.25rem !important; text-align: center !important; }
.hs-outfit-col a { display: inline-block; }
.hs-outfit-img { width: 64px; height: 64px; }
@media (max-width: 600px) {
  .hs-outfit-col { width: 54px; }
  .hs-outfit-img { width: 48px; height: 48px; }
}


/* Community activity / live website statistics */
.world-pulse {
  position: relative;
  overflow: hidden;
  margin: 1rem 0;
  padding: 1.15rem;
  border: 1px solid rgba(211, 170, 65, 0.34);
  border-radius: 8px;
  background:
    radial-gradient(circle at 8% 0%, rgba(211, 170, 65, 0.12), transparent 36%),
    linear-gradient(135deg, rgba(37, 34, 27, 0.98), rgba(24, 27, 33, 0.98));
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}
.world-pulse__intro { margin-bottom: 0.9rem; }
.world-pulse__eyebrow {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--accent-dim);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.world-pulse__intro h2 { margin: 0 0 0.25rem; }
.world-pulse__intro p { margin: 0; color: var(--muted); }
.world-pulse__intro p strong { color: var(--accent); font-size: 1.08em; }
.world-pulse__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}
.pulse-stat {
  position: relative;
  min-height: 86px;
  padding: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.pulse-stat strong {
  color: #f0d27d;
  font-family: Georgia, serif;
  font-size: 1.75rem;
  line-height: 1;
}
.pulse-stat > span:last-child { margin-top: 0.35rem; color: var(--muted); font-size: 0.78rem; }
.pulse-stat--live { padding-left: 1.65rem; }
.pulse-stat__dot {
  position: absolute;
  top: 1rem;
  left: 0.72rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #62d879;
  box-shadow: 0 0 0 4px rgba(98, 216, 121, 0.12), 0 0 12px rgba(98, 216, 121, 0.55);
  animation: pulse-live 2s ease-in-out infinite;
}
.world-pulse__note { margin: 0.7rem 0 0; color: var(--muted); font-size: 0.7rem; text-align: right; }
@keyframes pulse-live { 50% { opacity: 0.45; transform: scale(0.84); } }
@media (max-width: 760px) {
  .world-pulse__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
  .world-pulse__grid { grid-template-columns: 1fr; }
  .pulse-stat { min-height: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  .pulse-stat__dot { animation: none; }
}
/* Admin player investigation */
.admin-player-hero,.admin-account-head{display:flex;align-items:center;justify-content:space-between;gap:1rem}.admin-kicker{display:block;color:var(--accent-dim);font-size:.7rem;font-weight:800;letter-spacing:.14em;text-transform:uppercase}.admin-player-hero h2,.admin-account-head h2{margin:.2rem 0}.admin-tools{display:flex;gap:.55rem}.admin-tool{padding:.7rem 1rem;border:1px solid rgba(211,170,65,.3);border-radius:6px;background:rgba(255,255,255,.035);font-weight:700}.admin-tool.is-active{color:#201b11;background:var(--accent)}.admin-search-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.8rem}.admin-search-card{margin-top:0}.admin-search-card h3{margin:-1rem -1rem .9rem;padding:.6rem 1rem;color:#ecd078;background:linear-gradient(90deg,#302817,#252a31);font-size:.78rem;letter-spacing:.06em;text-transform:uppercase}.admin-search-row{display:flex;gap:.5rem}.admin-search-row input{min-width:0;flex:1}.admin-search-row .btn{padding-left:.85rem;padding-right:.85rem}.admin-summary{display:flex;gap:.6rem;flex-wrap:wrap}.admin-summary span{min-width:110px;padding:.65rem .8rem;border:1px solid rgba(255,255,255,.08);border-radius:6px;background:rgba(255,255,255,.035);color:var(--muted);font-size:.75rem}.admin-summary b{display:block;color:#efd174;font:700 1.25rem Georgia,serif}.admin-alert{margin:1rem 0;padding:.85rem 1rem;border:1px solid rgba(229,167,45,.52);border-left:4px solid #e5a72d;border-radius:6px;background:rgba(229,167,45,.09);color:#ead9a7}.admin-table-wrap{overflow-x:auto}.admin-table{width:100%;border-collapse:collapse}.admin-table th{padding:.65rem;text-align:left;color:#d9bc69;background:#252a31;font-size:.72rem;letter-spacing:.05em;text-transform:uppercase}.admin-table td{padding:.72rem .65rem;border-bottom:1px solid rgba(255,255,255,.07);vertical-align:top}.admin-table tbody tr:hover{background:rgba(211,170,65,.045)}.audit-empty{display:flex;flex-direction:column;gap:.25rem;padding:1rem;border:1px dashed rgba(255,255,255,.14);border-radius:6px;color:var(--muted)}.audit-empty strong{color:#ddd}.flash.err{color:#ff9b8f}@media(max-width:850px){.admin-search-grid{grid-template-columns:1fr}.admin-player-hero,.admin-account-head{align-items:flex-start;flex-direction:column}.admin-summary{width:100%}.admin-summary span{flex:1}}@media(max-width:500px){.admin-search-row{align-items:stretch;flex-direction:column}}
.admin-character-title{display:flex;align-items:flex-start;gap:1.25rem}.admin-character-title h1{margin:.15rem 0;font-family:Georgia,serif;color:#efd174}.admin-character-title p{margin:.2rem 0;color:var(--muted)}.admin-detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.08)}.admin-detail-grid>div{padding:.8rem;background:#252a31}.admin-detail-grid span{display:block;color:var(--muted);font-size:.72rem;text-transform:uppercase;letter-spacing:.04em}.admin-detail-grid strong{display:block;margin-top:.25rem;color:#e9dfc5;overflow-wrap:anywhere}.admin-character-links{display:flex;flex-wrap:wrap;gap:.55rem}.admin-character-links a{padding:.55rem .8rem;border:1px solid rgba(211,170,65,.28);border-radius:5px;background:rgba(255,255,255,.035);font-weight:700}.admin-character-links a.is-current{background:var(--accent);color:#211c12}@media(max-width:760px){.admin-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:440px){.admin-detail-grid{grid-template-columns:1fr}.admin-character-title{flex-direction:column}}


/* Live character presence */
.presence-name { font-weight: 700; transition: color .15s ease, text-shadow .15s ease; }
.presence-name.is-online { color: #62d879 !important; text-shadow: 0 0 10px rgba(98,216,121,.18); }
.presence-name.is-offline { color: #ef6f6c !important; }
.presence-name.is-online:hover { color: #8aee9c !important; }
.presence-name.is-offline:hover { color: #ff9a96 !important; }


/* Latest Deaths (Gunzodus-style list) */
.deaths-pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin: 0.75rem 0 1rem;
}
.deaths-pager__links a + a { margin-left: 0.75rem; }
.deaths-table td { vertical-align: top; }
.deaths-when {
  white-space: nowrap;
  width: 1%;
  color: var(--muted, #8a93a3);
  font-size: 0.92rem;
}
.deaths-text { line-height: 1.45; }

/* === Eloria-style online hero + LIVE ticker (Titanium) === */
.online-hero {
  margin: 0 0 1.25rem;
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(201,162,74,0.10), transparent 42%),
    linear-gradient(180deg, rgba(58,65,73,0.95), rgba(42,46,53,0.92));
  box-shadow: var(--shadow);
}
.online-hero__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}
.online-hero__stat {
  position: relative;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--line-soft);
  background: rgba(32, 36, 42, 0.45);
  min-height: 108px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.online-hero__label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 700;
}
.online-hero__stat strong {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.2vw, 2.55rem);
  line-height: 1.1;
  margin: 0.2rem 0 0.15rem;
  color: var(--text);
}
.online-hero__stat--now strong { color: var(--accent-bright); }
.online-hero__stat--status strong.is-ok { color: var(--ok); }
.online-hero__stat--status strong.is-bad { color: var(--bad); }
.online-hero__stat--uptime strong { color: var(--accent); font-size: clamp(1.45rem, 2.6vw, 2.05rem); }
.online-hero__stat--accounts strong,
.online-hero__stat--characters strong { color: var(--accent-bright); }
.online-hero__sub {
  color: var(--muted);
  font-size: 0.82rem;
}
.online-hero__sub a { font-weight: 700; }

.online-page-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}
.online-page-head h2 { margin: 0 0 0.25rem; }
.online-page-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.online-page-stat {
  min-width: 88px;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0,0,0,0.18);
  text-align: center;
}
.online-page-stat span {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 700;
}
.online-page-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-top: 0.15rem;
}
.online-page-stat strong.is-ok { color: var(--ok); }
.online-page-stat strong.is-bad { color: var(--bad); }
.online-page-stat em {
  display: block;
  font-style: normal;
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.1rem;
}

.live-ticker {
  position: relative;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(28, 32, 38, 0.94);
}
.live-ticker__inner {
  width: min(1120px, calc(100% - 1.5rem));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.45rem 0;
}
.live-ticker__chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: rgba(92, 184, 138, 0.16);
  border: 1px solid rgba(92, 184, 138, 0.45);
  color: #7ed4a8;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.live-ticker__pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: #5cb88a;
  box-shadow: 0 0 0 0 rgba(92,184,138,0.55);
  animation: livePulse 1.6s ease-out infinite;
}
@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(92,184,138,0.55); }
  70% { box-shadow: 0 0 0 8px rgba(92,184,138,0); }
  100% { box-shadow: 0 0 0 0 rgba(92,184,138,0); }
}
.live-ticker__viewport {
  flex: 1 1 auto;
  overflow: hidden;
  min-width: 0;
}
.live-ticker__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.4rem;
  width: max-content;
  animation: liveScroll 40s linear infinite;
}
.live-ticker__viewport:hover .live-ticker__list { animation-play-state: paused; }
.live-ticker__list a {
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}
.live-ticker__list a:hover { color: var(--accent-dim); }
.live-ticker__tag {
  display: inline-block;
  margin-right: 0.4rem;
  padding: 0.08rem 0.38rem;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #1c2026;
  background: var(--accent);
}
.live-ticker__more {
  flex: 0 0 auto;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 700;
}
.live-ticker__more:hover { color: var(--accent-dim); }
@keyframes liveScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (max-width: 1100px) {
  .online-hero__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .online-hero__grid { grid-template-columns: 1fr; }
  .online-hero__stat { min-height: 0; }
  .live-ticker__inner { width: min(100% - 1rem, 1120px); gap: 0.5rem; }
  .live-ticker__more { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .live-ticker__list { animation: none; flex-wrap: wrap; width: auto; }
  .live-ticker__pulse { animation: none; }
}


/* Discord CTA — same plastic depth as gold/secondary buttons */
.btn.discord,
a.btn.discord {
  border-color: #3d4ccc;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0) 42%),
    linear-gradient(180deg, #7380f6 0%, #5865F2 48%, #4450d6 100%);
  color: #fff !important;
  text-shadow: 0 1px 0 rgba(0,0,0,0.28);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.35),
    inset 0 -2px 3px rgba(0,0,0,0.22),
    0 2px 0 #2f3a9e,
    0 4px 10px rgba(0,0,0,0.3);
}
.btn.discord:hover,
a.btn.discord:hover {
  filter: brightness(1.06);
  color: #fff !important;
  border-color: #3d4ccc;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.26) 0%, rgba(255,255,255,0) 42%),
    linear-gradient(180deg, #8190ff 0%, #6270f5 48%, #4c58e0 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.4),
    inset 0 -2px 3px rgba(0,0,0,0.2),
    0 3px 0 #2f3a9e,
    0 6px 14px rgba(0,0,0,0.34);
}
.btn.discord:active,
a.btn.discord:active {
  transform: translateY(1px);
  box-shadow:
    inset 0 2px 4px rgba(0,0,0,0.32),
    inset 0 1px 0 rgba(255,255,255,0.18),
    0 1px 0 #2f3a9e,
    0 2px 6px rgba(0,0,0,0.28);
}
a.nav-discord {
  color: #aeb6ff !important;
  font-weight: 700;
}
a.nav-discord:hover {
  color: #fff !important;
}
.discord-box .btn.discord {
  margin-top: 0.4rem;
}


/* Support tickets */
.ticket-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 860px) { .ticket-grid { grid-template-columns: 1fr; } }
.ticket-list { list-style: none; padding: 0; margin: 0; }
.ticket-list li { border-top: 1px solid var(--line); }
.ticket-list a { display: flex; flex-direction: column; gap: 0.15rem; padding: 0.65rem 0; }
.ticket-list a:hover strong { color: var(--accent-bright); }
.ticket-thread__head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.ticket-msgs { display: flex; flex-direction: column; gap: 0.65rem; margin: 1rem 0; }
.ticket-msg { border: 1px solid var(--line); border-radius: 8px; padding: 0.7rem 0.85rem; background: rgba(0,0,0,0.18); }
.ticket-msg--admin { border-color: rgba(88,101,242,0.45); background: rgba(88,101,242,0.12); }
.ticket-msg--player { border-color: rgba(212,160,58,0.35); }
.ticket-msg__meta { display: flex; justify-content: space-between; margin-bottom: 0.35rem; }
.ticket-msg__body { white-space: normal; line-height: 1.45; }
.ticket-reply textarea, .panel textarea { width: 100%; min-height: 110px; }
.ticket-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.65rem; }
label.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

.tw-ticket-dock { position: fixed; right: 1rem; bottom: 1rem; z-index: 80; display: flex; flex-direction: column; align-items: flex-end; gap: 0.55rem; }
.tw-ticket-fab { position: relative; min-width: 8rem; }
.tw-ticket-fab.has-wait { animation: twTicketPulse 1.6s ease-in-out infinite; }
.tw-ticket-badge { display: inline-block; margin-left: 0.35rem; background: #c0392b; color: #fff; border-radius: 999px; padding: 0.05rem 0.4rem; font-size: 0.75rem; }
.tw-ticket-panel { width: min(380px, calc(100vw - 2rem)); max-height: min(70vh, 520px); overflow: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 40px rgba(0,0,0,0.45); padding: 0.75rem; }
.tw-ticket-panel__head { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; margin-bottom: 0.55rem; }
.tw-ticket-item { display: flex; flex-direction: column; width: 100%; text-align: left; gap: 0.15rem; background: rgba(255,255,255,0.03); border: 1px solid var(--line); border-radius: 8px; color: inherit; padding: 0.55rem 0.65rem; margin-bottom: 0.4rem; cursor: pointer; font: inherit; }
.tw-ticket-item:hover { border-color: var(--accent); }
.tw-ticket-item em { color: #f0c36a; font-style: normal; }
.tw-ticket-panel textarea { width: 100%; margin-top: 0.5rem; }
@keyframes twTicketPulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.12); }
}


a.nav-tickets {
  color: #f0c36a !important;
  font-weight: 700;
}
a.nav-tickets:hover { color: #ffe2a0 !important; }


/* Player ticket bubble */
#twPlayerTicketDock .tw-ticket-fab {
  text-decoration: none;
  display: inline-block;
}

/* Equipment wiki */
.wiki-panel h2 { margin-bottom: 0.35rem; }
.wiki-search {
  display: flex;
  gap: 0.55rem;
  margin: 0.9rem 0 0.75rem;
  flex-wrap: wrap;
}
.wiki-search input[type="search"] {
  flex: 1;
  min-width: 180px;
}
.wiki-cats { margin-bottom: 0.55rem; }
.wiki-sortbar {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0.15rem 0 0.35rem;
  flex-wrap: wrap;
}
.wiki-sortbar__label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.wiki-sort {
  appearance: none;
  background: rgba(16, 18, 22, 0.85);
  color: var(--text);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 0.4rem 2rem 0.4rem 0.7rem;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 14px) 55%, calc(100% - 9px) 55%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.wiki-sort:focus-visible {
  outline: 2px solid rgba(0, 200, 80, 0.45);
  outline-offset: 2px;
}

.wiki-count { margin: 0.35rem 0 0.85rem; }
.wiki-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
.wiki-card {
  display: flex;
  gap: 0.75rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(32, 36, 42, 0.45);
}
.wiki-card__media {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: 1px solid var(--line-soft);
  background: rgba(20, 23, 28, 0.85);
}
.wiki-card__media img {
  image-rendering: pixelated;
  width: 32px;
  height: 32px;
  display: block;
}
.wiki-card__body { min-width: 0; flex: 1; }
.wiki-card__title {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--text);
}
.wiki-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.65rem;
  align-items: center;
  margin-bottom: 0.35rem;
}
.wiki-pill {
  display: inline-block;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(212,160,58,0.35);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.wiki-stats { color: var(--muted); font-size: 0.8rem; }
.wiki-card__desc {
  margin: 0 0 0.4rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}
.wiki-obtain, .wiki-drops {
  margin: 0.2rem 0 0;
  font-size: 0.84rem;
  line-height: 1.4;
  color: var(--text);
}
.wiki-obtain__label, .wiki-drops__label {
  display: inline-block;
  min-width: 5.6rem;
  color: var(--accent-dim);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
@media (max-width: 860px) {
  .wiki-grid { grid-template-columns: 1fr; }
}

.wiki-search-control { position: relative; display: flex; flex: 1; min-width: 220px; gap: 0.55rem; }
.wiki-search-control input[type="search"] { flex: 1; min-width: 0; }
.wiki-suggestions { left: 0; right: auto; min-width: min(100%, 360px); max-width: 420px; }
.wiki-suggestion { display: flex; align-items: center; gap: 0.45rem; text-align: left; }
.wiki-suggestion img { image-rendering: pixelated; width: 16px; height: 16px; flex: 0 0 auto; }
.wiki-look { color: var(--muted); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.03em; }

button.wiki-card {
  width: 100%;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
button.wiki-card:hover {
  border-color: rgba(212,160,58,0.45);
  background: rgba(42, 46, 53, 0.72);
}
button.wiki-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
body.wiki-modal-open { overflow: hidden; }
.wiki-modal[hidden] { display: none !important; }
.wiki-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(0.75rem, env(safe-area-inset-top, 0px)) 1rem max(0.75rem, env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
}
.wiki-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 12, 0.72);
}
.wiki-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: min(92vh, calc(100dvh - 1.5rem));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  border-radius: 10px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(58,65,73,0.98), rgba(36,40,46,0.98));
  box-shadow: var(--shadow);
}
.wiki-modal__close {
  position: absolute;
  top: 0.45rem;
  right: 0.55rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.wiki-modal__close:hover { color: var(--text); }
.wiki-modal__head {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  margin: 0;
  padding: 1.05rem 1.2rem 0.85rem;
  padding-right: 2.4rem;
  flex: 0 0 auto;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: inherit;
}
.wiki-modal__icon {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--line-soft);
  background: rgba(20, 23, 28, 0.85);
}
.wiki-modal__icon img {
  image-rendering: pixelated;
  width: 64px;
  height: 64px;
}
.wiki-modal__title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
}
.wiki-modal__examine {
  white-space: pre-wrap;
  padding: 0.85rem 0.95rem;
  border-radius: 8px;
  border: 1px solid rgba(0, 180, 0, 0.25);
  background: #000;
  color: #00ff00;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.95rem;
  line-height: 1.45;
  text-shadow: none;
}
.wiki-modal__extra p { margin: 0.35rem 0 0; font-size: 0.88rem; }



/* Store */
.store-balance { font-size: 1.15rem; margin: 0.75rem 0; }
.store-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.store-card { border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; padding: 1rem 1.1rem; background: rgba(0,0,0,0.18); }
.store-card h3 { margin: 0 0 0.35rem; font-family: Cinzel, serif; }
.store-price { font-size: 1.35rem; font-weight: 700; margin: 0.35rem 0 0.75rem; color: #e8c56b; }
.store-boost-form label { display: block; margin-bottom: 0.75rem; }
.store-boost-form select { width: 100%; max-width: 320px; margin-top: 0.35rem; padding: 0.45rem 0.55rem; }

/* Store howto + terms */
.store-howto .store-steps {
  margin: 0.75rem 0 1rem 1.15rem;
  padding: 0;
  color: var(--text, #ddd);
  line-height: 1.55;
}
.store-howto .store-steps li { margin: 0.35rem 0; }
.store-auto-note {
  margin: 0;
  padding: 0.75rem 0.9rem;
  border-left: 3px solid rgba(211,170,65,0.65);
  background: rgba(211,170,65,0.08);
  color: #e8d9a8;
  border-radius: 0 8px 8px 0;
}
.store-terms {
  color: #cfcfcf;
  line-height: 1.6;
  font-size: 0.95rem;
}
.store-terms > ol {
  margin: 0.75rem 0 0;
  padding-left: 1.2rem;
}
.store-terms > ol > li { margin: 0.65rem 0; }
.store-terms-sub {
  margin: 0.5rem 0 0.25rem;
  padding-left: 1.1rem;
}
.store-terms-sub li { margin: 0.35rem 0; }
.store-terms a { color: #e8c56b; }
.store-terms-foot { margin-top: 1.1rem; }
.paypal-buttons { margin-top: 0.5rem; min-height: 45px; }

/* ===== Admin Store panel ===== */
.admin-tile-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:0.55rem;
  margin:0.85rem 0 1rem;
}
.admin-tile{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:52px;
  padding:0.7rem 0.6rem;
  border:1px solid rgba(211,170,65,0.35);
  border-radius:6px;
  background:rgba(255,255,255,0.04);
  color:#efd174;
  text-align:center;
  text-decoration:none !important;
  font-weight:700;
  font-size:0.82rem;
  letter-spacing:0.03em;
}
.admin-tile:hover{
  color:#201b11;
  background:var(--accent);
  border-color:var(--accent);
}
.admin-tile.is-on{
  color:#201b11;
  background:var(--accent);
  border-color:var(--accent);
}
.admin-find-stack{display:flex;flex-direction:column;gap:0.65rem;margin:0.5rem 0 1rem}
.admin-find{
  margin:0;
  border:1px solid rgba(255,255,255,0.1);
  border-radius:6px;
  overflow:hidden;
  background:var(--panel);
}
.admin-find__head{
  padding:0.55rem 0.9rem;
  color:#ecd078;
  background:linear-gradient(90deg,#302817,#252a31);
  font-size:0.75rem;
  font-weight:800;
  letter-spacing:0.06em;
  text-transform:uppercase;
}
.admin-find__body{
  display:flex;
  align-items:center;
  gap:0.65rem;
  flex-wrap:wrap;
  padding:0.75rem 0.9rem;
  background:var(--panel-2);
}
.admin-find__label{
  color:var(--muted);
  font-weight:700;
  font-size:0.86rem;
  white-space:nowrap;
  min-width:9.5rem;
}
.admin-find__input{
  flex:1;
  min-width:180px;
}
.admin-find__submit{flex-shrink:0}
.admin-credit-form{
  display:grid;
  grid-template-columns:2fr 1fr 1.5fr auto;
  gap:0.75rem;
  align-items:end;
  max-width:960px;
}
.admin-credit-actions{display:flex;gap:0.5rem;flex-wrap:wrap}
@media(max-width:900px){
  .admin-tile-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .admin-credit-form{grid-template-columns:1fr}
}
@media(max-width:520px){
  .admin-find__body{align-items:stretch;flex-direction:column}
  .admin-find__label{min-width:0}
}
﻿
/* Wiki v2 — creatures + cross-links */
.wiki-tabs {
  display: flex;
  gap: 0.45rem;
  margin: 0.75rem 0 1rem;
  flex-wrap: wrap;
}
.wiki-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--muted);
  text-decoration: none;
  font-weight: 650;
  font-size: 0.92rem;
  background: rgba(0,0,0,0.18);
}
.wiki-tab:hover { color: var(--text); border-color: rgba(255,255,255,0.22); }
.wiki-tab.on {
  color: var(--text);
  background: rgba(212, 175, 55, 0.16);
  border-color: rgba(212, 175, 55, 0.45);
}
.wiki-tab__count {
  font-size: 0.75rem;
  opacity: 0.8;
  font-weight: 600;
}
.wiki-grid--creatures .wiki-card__media--outfit {
  width: 72px;
  min-width: 72px;
  height: 72px;
  background: rgba(0,0,0,0.25);
}
.wiki-grid--creatures .wiki-card__media--outfit img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}
.wiki-modal__body {
  margin: 0;
  padding: 0.85rem 1.2rem 1.15rem;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  flex: 1 1 auto;
  min-height: 0;
}
.wiki-modal__extra {
  margin: 0;
  padding: 0 1.2rem 1.15rem;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  flex: 1 1 auto;
  min-height: 0;
}
.wiki-modal__examine { margin: 0; }
.wiki-modal__h {
  margin: 0.9rem 0 0.35rem;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
.wiki-statgrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem 0.75rem;
  font-size: 0.88rem;
}
@media (max-width: 640px) {
  .wiki-statgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.wiki-behavior { margin: 0.55rem 0 0; }
.wiki-linklist, .wiki-atks, .wiki-voices {
  margin: 0.25rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.9rem;
}
.wiki-linklist li, .wiki-atks li, .wiki-voices li { margin: 0.2rem 0; }
.wiki-linklist a {
  color: #e0c56a;
  text-decoration: none;
  font-weight: 650;
}
.wiki-linklist a:hover { text-decoration: underline; }
.wiki-chance {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-size: 0.85em;
  margin-left: 0.25rem;
}
.wiki-loot .muted { font-size: 0.85em; }
﻿
/* Wiki detail pages (no modal) */
a.wiki-card--link {
  text-decoration: none;
  color: inherit;
  display: flex;
}
a.wiki-card--link:hover {
  border-color: rgba(212, 175, 55, 0.45);
  background: rgba(212, 175, 55, 0.06);
}
.wiki-crumb {
  margin: 0 0 0.85rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.wiki-crumb a {
  color: #e0c56a;
  text-decoration: none;
  font-weight: 650;
}
.wiki-crumb a:hover { text-decoration: underline; }
.wiki-detail__hero {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}
.wiki-detail__sprite {
  flex: 0 0 104px;
  width: 104px;
  height: 104px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--line-soft, rgba(255,255,255,0.1));
  background: rgba(0,0,0,0.28);
}
.wiki-detail__sprite--item {
  width: 84px;
  height: 84px;
  flex-basis: 84px;
}
.wiki-detail__sprite img {
  image-rendering: pixelated;
  max-width: 96px;
  max-height: 96px;
}
.wiki-detail__title {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.7rem;
}
.wiki-detail__sub { margin: 0; }
.wiki-detail__examine { margin: 0.75rem 0 1rem; }
.wiki-section-title {
  margin: 1.25rem 0 0.45rem;
  font-size: 1.05rem;
  font-family: var(--font-display);
  color: var(--accent-dim, #e0c56a);
}
.wiki-plainlist {
  margin: 0.2rem 0 0;
  padding-left: 1.15rem;
  font-size: 0.95rem;
}
.wiki-plainlist li { margin: 0.25rem 0; }
.wiki-statgrid--page {
  margin: 0.75rem 0 0.35rem;
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.18);
}
.wiki-table-wrap {
  overflow-x: auto;
  margin-top: 0.35rem;
}
.wiki-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.wiki-table th,
.wiki-table td {
  text-align: left;
  padding: 0.45rem 0.55rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  vertical-align: middle;
}
.wiki-table th {
  color: var(--muted);
  font-weight: 650;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.wiki-table a {
  color: #e0c56a;
  text-decoration: none;
  font-weight: 650;
}
.wiki-table a:hover { text-decoration: underline; }
.wiki-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.wiki-inline img {
  image-rendering: pixelated;
  width: 16px;
  height: 16px;
}



/* Character ban display */
.ban-stamp {
  display: inline-block;
  margin: 0.45rem 0 0.15rem;
  padding: 0.28rem 0.75rem;
  border: 2px solid #ff3b3b;
  border-radius: 3px;
  background: linear-gradient(180deg, #7a1010 0%, #4a0505 100%);
  color: #ffd0d0;
  font-family: Cinzel, Georgia, "Times New Roman", serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-shadow: 0 0 12px rgba(255, 60, 60, 0.55), 0 1px 0 #2a0000;
  box-shadow: inset 0 0 12px rgba(255, 40, 40, 0.25), 0 0 14px rgba(180, 0, 0, 0.35);
  transform: rotate(-2deg);
}
.ban-warning {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  margin: 1rem 0 1.15rem;
  padding: 1rem 1.05rem;
  border: 1px solid #c62828;
  border-left: 6px solid #ff2e2e;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(120, 10, 10, 0.55), rgba(40, 8, 8, 0.72)),
    repeating-linear-gradient(
      -45deg,
      rgba(255, 60, 60, 0.06) 0,
      rgba(255, 60, 60, 0.06) 8px,
      transparent 8px,
      transparent 16px
    );
  box-shadow: 0 0 0 1px rgba(255, 80, 80, 0.12), 0 8px 24px rgba(0, 0, 0, 0.35);
  color: #ffd6d6;
}
.ban-warning__icon {
  flex: 0 0 auto;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  border: 2px solid #ff5a5a;
  background: #6d0d0d;
  color: #ffe0e0;
  font: 800 1.25rem/2rem Georgia, serif;
  text-align: center;
  box-shadow: 0 0 16px rgba(255, 50, 50, 0.45);
}
.ban-warning__title {
  font-family: Cinzel, Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #ff8f8f;
  text-shadow: 0 0 10px rgba(255, 40, 40, 0.4);
}
.ban-warning__reason {
  margin: 0.4rem 0 0.75rem;
  color: #ffe9e9;
  font-size: 0.98rem;
  font-weight: 600;
}
.ban-warning__meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.55rem 0.9rem;
  margin: 0;
}
.ban-warning__meta > div {
  padding: 0.45rem 0.55rem;
  border: 1px solid rgba(255, 120, 120, 0.22);
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.22);
}
.ban-warning__meta dt {
  margin: 0 0 0.15rem;
  color: #ff9a9a;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ban-warning__meta dd {
  margin: 0;
  color: #fff2f2;
  font-size: 0.88rem;
  font-weight: 600;
}
.ban-warning__meta em {
  color: #ffb4b4;
  font-style: normal;
  font-weight: 500;
  font-size: 0.8rem;
}
.ban-status-pill {
  display: inline-block;
  padding: 0.12rem 0.45rem;
  border-radius: 3px;
  border: 1px solid #ff4d4d;
  background: rgba(140, 0, 0, 0.45);
  color: #ffb0b0;
  font-family: Cinzel, Georgia, serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.hs-name { white-space: nowrap; }
.hs-banned {
  display: inline-block;
  margin-left: 0.45rem;
  padding: 0.12rem 0.42rem;
  border: 1px solid #ff3b3b;
  border-radius: 2px;
  background: linear-gradient(180deg, #8a1212, #4d0707);
  color: #ffb4b4;
  font-family: Cinzel, Georgia, "Times New Roman", serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  vertical-align: middle;
  text-shadow: 0 0 8px rgba(255, 50, 50, 0.5);
  box-shadow: 0 0 10px rgba(180, 0, 0, 0.35);
  transform: rotate(-3deg);
}
.presence-name.is-banned,
.presence-name.is-banned.is-offline,
.presence-name.is-banned.is-online {
  color: #ff6d6d !important;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
  text-shadow: none !important;
}

/* Staff ban controls on character pages */
.ban-admin-panel{border:1px solid rgba(185,28,28,.45);background:rgba(127,29,29,.12)}
.ban-admin-panel h2{color:#fecaca;margin-top:0}
.ban-admin-form label{display:flex;flex-direction:column;gap:.35rem;font-size:.85rem;color:var(--muted);margin-bottom:.75rem}
.ban-admin-form input[type=text],.ban-admin-form input[type=number]{padding:.55rem .65rem;border-radius:4px;border:1px solid rgba(255,255,255,.12);background:#1a1f26;color:#f5f0e6}
.ban-admin-row{display:flex;flex-wrap:wrap;gap:1rem;align-items:flex-end}
.ban-admin-row label{flex:1;min-width:140px;margin-bottom:0}
.ban-admin-actions{display:flex;flex-wrap:wrap;gap:.5rem;padding-bottom:.15rem}
.ban-admin-hr{border:0;border-top:1px solid rgba(255,255,255,.1);margin:1rem 0}
.ban-admin-section-label{font-size:.75rem;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);margin:.25rem 0 .5rem}
.ban-admin-duration label{max-width:110px;flex:0 0 auto}
.ban-admin-duration label:has(input[name=ipban_ip]),
.ban-admin-duration label input[name=ipban_ip]{max-width:none}
.ban-admin-duration label:last-of-type{flex:1;min-width:160px;max-width:none}


/* === LIVE HELPDESK DESK === */
.hd-desk-intro__row { display:flex; justify-content:space-between; gap:1rem; align-items:flex-start; flex-wrap:wrap; }
.hd-presence { display:flex; align-items:center; gap:0.45rem; font-size:0.9rem; color:var(--muted, #a9b0c0); }
.hd-presence__dot { width:0.55rem; height:0.55rem; border-radius:50%; background:#666; box-shadow:0 0 0 2px rgba(0,0,0,0.25); }
.hd-presence__dot.is-on { background:#2ecc71; box-shadow:0 0 8px rgba(46,204,113,0.55); }
.hd-desk { display:grid; grid-template-columns: minmax(240px, 340px) 1fr; gap:1rem; align-items:stretch; min-height:62vh; }
@media (max-width: 900px) { .hd-desk { grid-template-columns:1fr; } }
.hd-desk__sidebar { display:flex; flex-direction:column; gap:0.75rem; min-height:0; }
.hd-tabs { display:flex; gap:0.35rem; flex-wrap:wrap; }
.hd-tab { background:rgba(255,255,255,0.04); border:1px solid var(--line); color:inherit; border-radius:999px; padding:0.35rem 0.75rem; cursor:pointer; font:inherit; }
.hd-tab.is-active { border-color:var(--accent); background:rgba(212,160,58,0.12); }
.hd-tab__n { opacity:0.8; margin-left:0.2rem; }
.hd-list { overflow:auto; max-height:min(58vh, 640px); display:flex; flex-direction:column; gap:0.4rem; }
.hd-item { display:flex; flex-direction:column; gap:0.2rem; text-align:left; width:100%; background:rgba(255,255,255,0.03); border:1px solid var(--line); border-radius:10px; color:inherit; padding:0.6rem 0.7rem; cursor:pointer; font:inherit; }
.hd-item:hover { border-color:var(--accent); }
.hd-item.is-active { border-color:var(--accent-bright, var(--accent)); background:rgba(212,160,58,0.1); }
.hd-item__top { display:flex; justify-content:space-between; gap:0.5rem; align-items:center; }
.hd-item__sub { font-size:0.78rem; color:var(--muted, #a9b0c0); }
.hd-pill { font-style:normal; font-size:0.72rem; background:#c0392b; color:#fff; border-radius:999px; padding:0.1rem 0.45rem; white-space:nowrap; }
.hd-desk__thread { display:flex; flex-direction:column; min-height:62vh; }
.hd-empty { margin:auto; text-align:center; padding:2rem; }
.hd-thread { display:flex; flex-direction:column; flex:1; min-height:0; }
.hd-thread__head { display:flex; justify-content:space-between; gap:1rem; align-items:flex-start; margin-bottom:0.5rem; }
.hd-thread__actions { display:flex; gap:0.4rem; align-items:center; flex-wrap:wrap; }
.hd-status { font-size:0.75rem; text-transform:uppercase; letter-spacing:0.04em; border-radius:999px; padding:0.2rem 0.55rem; border:1px solid var(--line); }
.hd-status--open { color:#2ecc71; border-color:rgba(46,204,113,0.45); }
.hd-status--closed { color:#bbb; }
.hd-live-note { display:flex; align-items:center; gap:0.4rem; font-size:0.82rem; color:var(--muted,#a9b0c0); margin-bottom:0.55rem; }
.hd-live-dot { width:0.45rem; height:0.45rem; border-radius:50%; background:#2ecc71; animation:hdPulse 1.4s ease-in-out infinite; }
@keyframes hdPulse { 0%,100%{opacity:1} 50%{opacity:0.35} }
.hd-msgs { flex:1; overflow:auto; display:flex; flex-direction:column; gap:0.65rem; padding-right:0.2rem; max-height:min(48vh, 520px); min-height:220px; }
.hd-reply { margin-top:0.75rem; }
.hd-reply textarea { width:100%; }
.hd-closed-banner { margin-top:0.75rem; padding:0.7rem 0.85rem; border:1px solid var(--line); border-radius:8px; background:rgba(0,0,0,0.2); color:var(--muted,#a9b0c0); }
.ticket-msg--system { border-style:dashed; opacity:0.9; font-size:0.92rem; }
.hd-new label { display:block; margin-top:0.55rem; }
.hd-new input, .hd-new select, .hd-new textarea { width:100%; }
