@font-face {
  font-family: "Valve";
  src: url("/assets/fonts/Valve-Bold.otf") format("opentype");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Valve";
  src: url("/assets/fonts/Valve-BoldItalic.otf") format("opentype");
  font-weight: 400 800;
  font-style: italic;
  font-display: swap;
}

:root {
  --background: #03050a;
  --foreground: #f4fbff;
  --card: rgba(8, 14, 24, 0.72);
  --card-solid: #080e18;
  --muted: #8aa0b5;
  --cyan: #00e5ff;
  --cyan-soft: #67f0ff;
  --blue: #0055ff;
  --navy: #001a33;
  --ice: #d7f8ff;
  --line: rgba(0, 229, 255, 0.16);
  --danger: #ff5d73;
  --ok: #3dffb0;
  --warn: #ffc857;
  --font-valve: "Valve", Arial, sans-serif;
  --font-body: "Valve", Arial, sans-serif;
}

* { box-sizing: border-box; border-color: var(--line); }
html {
  background: var(--background);
  color: var(--foreground);
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: scroll;
}
body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
  font-family: var(--font-body);
  font-synthesis: none;
  color: var(--foreground);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(0, 85, 255, 0.18), transparent 55%),
    radial-gradient(900px 480px at -10% 10%, rgba(0, 229, 255, 0.1), transparent 50%),
    #03050a;
}
::selection { background: rgba(0, 229, 255, 0.28); color: #fff; }
a { color: inherit; text-decoration: none; }
button, a, input, textarea, select, label, h1, h2, h3, h4, p, span, li {
  font-family: inherit;
}
button, a, [role="button"] { cursor: pointer; }
button, a, input, textarea, select {
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease,
    box-shadow 180ms ease, transform 180ms ease, opacity 180ms ease;
}
h1, h2, h3, h4, .font-display, .logo-word, .nav-link {
  font-family: var(--font-valve);
}

.glass {
  background: linear-gradient(180deg, rgba(10, 18, 32, 0.78), rgba(5, 10, 18, 0.64));
  border: 1px solid rgba(0, 229, 255, 0.12);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}
.panel {
  position: relative;
  border: 1px solid rgba(0, 229, 255, 0.12);
  background: linear-gradient(180deg, rgba(9, 16, 28, 0.9), rgba(5, 9, 16, 0.86));
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
}
.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.08), transparent 32%);
}
.glow-cyan { box-shadow: 0 0 0 1px rgba(0, 229, 255, 0.25), 0 0 28px rgba(0, 229, 255, 0.18); }

.topbar {
  position: sticky; top: 0; z-index: 80; width: 100%;
  overflow: visible;
  border-bottom: 1px solid rgba(0, 229, 255, 0.1);
  background: rgba(3, 5, 10, 0.9);
  backdrop-filter: blur(24px);
}
.topbar-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  height: 72px;
  padding: 0 24px;
  overflow: visible;
}
.logo { display: inline-flex; align-items: center; gap: 10px; background: transparent; }
.logo:hover { opacity: 0.9; }
.logo-word {
  white-space: nowrap;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 800;
  font-size: 15px;
  line-height: 1;
}
.h-mark { width: 28px; height: 32px; flex-shrink: 0; display: block; }
.brand-h { height: 1.7em; width: auto; flex-shrink: 0; display: block; }
.brand-h-md { height: 1.85em; }
.brand-h-hero { height: 1.7em; filter: drop-shadow(0 0 18px rgba(0,229,255,.35)); }
.icon, .icon-cyan, .icon-discord, .icon-lg {
  display: inline-block; vertical-align: middle; flex-shrink: 0;
}
.icon { width: 14px; height: 14px; }
.nav-icon .icon, .nav-icon svg { width: 16px; height: 16px; pointer-events: none; }
.icon-cyan { width: 16px; height: 16px; color: var(--cyan); }
.icon-discord { width: 16px; height: 16px; color: #5865F2; }
.icon-lg { width: 28px; height: 28px; color: var(--cyan); margin-top: 16px; }
.cat-lane .icon-lg { margin-top: 0; }
.nav-link .icon { width: 14px; height: 14px; }
.nav-main { display: none; align-items: center; justify-content: center; gap: 32px; }
@media (min-width: 1024px) { .nav-main { display: flex; } .menu-toggle { display: none !important; } }
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #c5d4e2;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -10px; height: 2px;
  background: linear-gradient(90deg, #00e5ff, #0055ff);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}
.nav-link:hover, .nav-link[data-active="true"] { color: #fff; }
.nav-link:hover::after, .nav-link[data-active="true"]::after { transform: scaleX(1); }
.nav-right { display: flex; align-items: center; justify-content: flex-end; gap: 10px; position: relative; z-index: 81; overflow: visible; }
.nav-icon {
  display: flex; align-items: center; justify-content: center;
  height: 40px; width: 40px;
  border: 1px solid rgba(0, 229, 255, 0.1);
  color: var(--muted); background: transparent;
}
.nav-icon:hover { border-color: rgba(0, 229, 255, 0.4); background: rgba(0, 229, 255, 0.1); color: #fff; }
.nav-mobile {
  display: none; flex-direction: column; gap: 16px;
  padding: 16px 24px 20px;
  border-top: 1px solid rgba(0, 229, 255, 0.1);
}
.nav-mobile.open { display: flex; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 28px;
  font-family: var(--font-valve);
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  border: 0; clip-path: none;
  background: linear-gradient(90deg, #00e5ff, #0090ff);
  color: #031018;
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.28);
}
.btn:hover { filter: brightness(1.1); transform: translateY(-2px) scale(1.04); box-shadow: 0 8px 32px rgba(0, 229, 255, 0.45); }
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 28px;
  font-family: var(--font-valve); font-size: 13px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  border: 1px solid rgba(0, 229, 255, 0.3);
  background: rgba(255, 255, 255, 0.05); color: #fff;
}
.btn-ghost:hover { border-color: var(--cyan); background: rgba(0, 229, 255, 0.15); transform: translateY(-2px) scale(1.04); }
.btn-discord {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 28px;
  font-family: var(--font-valve); font-size: 13px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  border: 0; background: #5865F2; color: #fff;
}
.btn-discord:hover { background: #4752c4; transform: translateY(-2px) scale(1.04); box-shadow: 0 8px 28px rgba(88, 101, 242, 0.45); }
.btn-sm { height: 36px; padding: 0 12px; font-size: 11px; }
.btn-danger { background: #3a1018; color: #ff8ea0; border: 1px solid rgba(255, 93, 115, 0.3); }

.cta-glow { animation: cta-glow 2.4s ease-in-out infinite; }
@keyframes cta-glow {
  0%, 100% { box-shadow: 0 0 24px rgba(0, 229, 255, 0.28); }
  50% { box-shadow: 0 0 42px rgba(0, 229, 255, 0.55); }
}

.hero {
  position: relative;
  display: flex; flex-direction: column;
  min-height: calc(100svh - 72px);
  overflow: hidden;
}
.hero-photo {
  position: absolute; inset: 0;
  background: #050a12 url("/assets/brand/hero-bg.svg") center / cover no-repeat;
  background-image: url("/assets/brand/hero-bg.webp"), url("/assets/brand/hero-bg.svg");
  background-size: cover;
  background-position: center;
}
.hero-kenburns { animation: hero-kenburns 28s ease-in-out infinite alternate; }
@keyframes hero-kenburns {
  from { transform: scale(1); }
  to { transform: scale(1.12) translate3d(-2%, 1.5%, 0); }
}
.hero-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.55), rgba(3,5,10,.55) 45%, #03050a);
}
.hero-scan {
  pointer-events: none; position: absolute; inset: 0;
  background: repeating-linear-gradient(to bottom, transparent 0, transparent 3px, rgba(0,229,255,.035) 3px, rgba(0,229,255,.035) 4px);
  animation: hero-scan 8s linear infinite;
}
@keyframes hero-scan { to { background-position: 0 80px; } }
.hero-orb {
  position: absolute; border-radius: 999px; filter: blur(40px); pointer-events: none;
  animation: hero-orb 10s ease-in-out infinite;
}
@keyframes hero-orb {
  0%, 100% { transform: translate3d(0,0,0) scale(1); opacity: 0.45; }
  50% { transform: translate3d(8%,-12%,0) scale(1.15); opacity: 0.7; }
}
.hero-inner {
  position: relative; z-index: 10;
  display: flex; flex: 1; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 80px 20px;
}
.hero-logo { display: flex; align-items: center; gap: 16px; margin-top: 32px; font-size: clamp(1.35rem, 4.8vw, 3.55rem); }
.hero-logo .brand-h { height: 1.7em; }
.hero-logo .logo-word {
  font-size: clamp(1.35rem, 4.8vw, 3.55rem);
  letter-spacing: 0.14em;
}
.eyebrow {
  margin: 8px 0 0;
  font-size: 11px;
  letter-spacing: 0.48em;
  text-transform: uppercase;
  color: var(--cyan);
}
.lead { margin: 20px 0 0; max-width: 42rem; font-size: 1.125rem; color: #d7f0fa; }
.sub { margin: 12px 0 0; max-width: 36rem; font-size: 0.95rem; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-top: 40px; }
.scroll-hint {
  margin-top: 64px;
  display: inline-flex; flex-direction: column; align-items: center;
  color: var(--cyan);
  animation: scroll-hint 1.8s ease-in-out infinite;
}
.scroll-hint span { font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; }
@keyframes scroll-hint {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(8px); opacity: 1; }
}

.status-chip {
  display: inline-flex; align-items: center; gap: 12px;
  border: 1px solid rgba(0, 229, 255, 0.2);
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  padding: 8px 16px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.pulse-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 99px;
  animation: pulse-dot 1.6s ease-in-out infinite;
}
.status-chip.ok .pulse-dot { background: #3dffb0; box-shadow: 0 0 10px #3dffb0; }
.status-chip.warn .pulse-dot { background: #ffc857; box-shadow: 0 0 10px #ffc857; }
.status-chip.off .pulse-dot { background: #ff5d73; box-shadow: 0 0 10px #ff5d73; }
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

.wrap { width: min(80rem, calc(100% - 32px)); margin: 0 auto; }
.stats-bar { border-bottom: 1px solid rgba(0,229,255,.1); background: rgba(0,0,0,.3); }
.stats-grid { display: grid; gap: 24px; padding: 32px 0; }
@media (min-width: 640px) { .stats-grid { grid-template-columns: repeat(3, 1fr); } }
.stat { text-align: center; }
.stat b { display: block; font-family: var(--font-valve); font-size: 1.875rem; letter-spacing: 0.12em; color: var(--cyan); font-weight: 800; }
.stat span { display: block; margin-top: 4px; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }

.section { padding: 64px 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 32px; }
.section-kicker { margin: 0; font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--cyan); }
.section-title { margin: 8px 0 0; font-family: var(--font-valve); font-size: 1.875rem; letter-spacing: 0.14em; text-transform: uppercase; }
.section-link { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cyan); }
.section-link:hover { color: #fff; }

.grid { display: grid; gap: 20px; }
.card {
  position: relative;
  display: block;
  padding: 22px;
  border: 1px solid rgba(0, 229, 255, 0.12);
  background: linear-gradient(180deg, rgba(9, 16, 28, 0.9), rgba(5, 9, 16, 0.86));
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
}
.dash-stats { gap: 24px; margin-top: 8px; }
.dash-stat, .dash-live { padding: 22px; }
.dash-live { margin-top: 24px; }
.dash-stat .tiny, .dash-live .tiny {
  margin: 0;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #d5e4ef;
}
.stat-num { font-family: var(--font-valve); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1280px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.package-card {
  transition: transform .35s cubic-bezier(.16,1,.3,1), border-color .35s ease, box-shadow .35s ease;
}
.package-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: rgba(0, 229, 255, 0.55);
  box-shadow: 0 24px 60px rgba(0, 229, 255, 0.12), 0 0 0 1px rgba(0, 229, 255, 0.2);
}
.package-card:hover .font-display { color: #67f0ff; }
.pkg-art {
  position: relative;
  height: 176px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  background: radial-gradient(circle at center, #00e5ff28, transparent 62%);
}
.pkg-letter { font-family: var(--font-valve); font-size: 4.5rem; color: rgba(0, 229, 255, 0.7); }
.pkg-body { padding: 16px; }
.pkg-cat { margin: 0; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.pkg-name { margin: 4px 0 0; font-family: var(--font-valve); font-size: 1.125rem; letter-spacing: 0.12em; text-transform: uppercase; color: #fff; }
.pkg-price { margin: 12px 0 0; font-family: var(--font-valve); font-size: 1.5rem; color: var(--cyan); }
.pkg-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; border-top: 1px solid rgba(0,229,255,.1); padding: 12px 16px; }
.package-shine {
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.18) 50%, transparent 65%);
  transform: translateX(-120%);
  position: absolute; inset: 0; z-index: 10; pointer-events: none;
}
.package-card:hover .package-shine { animation: package-shine .85s ease; }
@keyframes package-shine { to { transform: translateX(120%); } }

.topic-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border-bottom: 1px solid rgba(0, 229, 255, 0.05);
  padding: 12px 16px;
}
.topic-row:last-child { border-bottom: 0; }
.topic-row:hover { background: rgba(0, 229, 255, 0.05); }
.muted { color: var(--muted); }
.cyan { color: var(--cyan); }

.marquee {
  overflow: hidden;
  border-bottom: 1px solid rgba(0, 229, 255, 0.1);
  background: rgba(0, 0, 0, 0.25);
  padding: 10px 0;
}
.marquee-track { display: flex; width: max-content; animation: marquee 32s linear infinite; gap: 32px; }
.marquee-track:hover { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee-track span { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: #9fdcff; padding: 0 16px; }

.steps { background: rgba(5, 9, 16, 0.8); border-top: 1px solid rgba(0,229,255,.1); border-bottom: 1px solid rgba(0,229,255,.1); }
.join-num { font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--cyan); }

.site-footer { margin-top: 64px; border-top: 1px solid rgba(0,229,255,.1); background: rgba(0,0,0,.4); }
.footer-grid {
  width: min(80rem, calc(100% - 32px));
  margin: 0 auto;
  display: grid; gap: 40px;
  padding: 48px 0;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.site-footer h4 {
  margin: 0;
  font-family: var(--font-valve);
  font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase; color: #fff;
}
.site-footer ul { list-style: none; padding: 0; margin: 12px 0 0; }
.site-footer li { margin: 8px 0; }
.site-footer a { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.site-footer a:hover { color: var(--cyan); }
.footer-copy {
  border-top: 1px solid rgba(0,229,255,.1);
  padding: 16px;
  text-align: center;
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
}

.flash { text-align: center; padding: 10px 16px; font-size: 14px; }
.flash-error { background: rgba(255, 93, 115, 0.15); color: #ffb3be; }
.flash-ok { background: rgba(61, 255, 176, 0.12); color: var(--ok); }
.flash-warn { background: rgba(255, 200, 87, 0.12); color: var(--warn); }

.stack, form.stack { display: grid; gap: 12px; }
form.stack { max-width: 480px; }
label { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cyan); }
input, textarea, select {
  width: 100%; background: #080e18; color: #fff;
  border: 1px solid var(--line); padding: 10px 12px; border-radius: 0;
}
textarea { min-height: 140px; }
.page-slide { animation: none; }
@keyframes page-slide {
  from { opacity: 0; transform: translate3d(28px, 0, 0); }
  to { opacity: 1; transform: none; }
}
.admin-nav { display: none; }
.admin-frame {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 32px;
  padding-bottom: 48px;
}
.admin-side { width: 100%; padding: 16px; display: flex; flex-direction: column; }
.admin-side nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
@media (min-width: 1024px) {
  .admin-side { min-height: calc(100vh - 160px); }
}
.admin-side-link.foot { margin-top: 0; }
@media (min-width: 1024px) {
  .admin-side-link.foot { margin-top: auto; }
  .admin-side-link.foot ~ .foot { margin-top: 0; }
}
.admin-side-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  font-size: 14px;
  color: var(--muted);
}
.admin-side-link:hover { background: rgba(255,255,255,.05); color: #fff; }
.admin-side-link[data-active="true"] { background: rgba(0,229,255,.1); color: #fff; }
.admin-main { min-width: 0; flex: 1; }
.admin-block { padding: 16px; margin-bottom: 16px; }
.admin-block-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.admin-block h3, .admin-h {
  font-family: var(--font-valve);
  letter-spacing: .16em;
  text-transform: uppercase;
  margin: 0;
}
.role-meta {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  align-items: end;
}
.role-meta label { display: grid; gap: 6px; }
.role-meta .color-inline {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  align-self: end;
  margin-bottom: 10px;
}
.role-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
@media (min-width: 640px) {
  .role-meta { grid-template-columns: 1fr 1fr 90px auto; }
}
.admin-h { margin: 32px 0 12px; }
.admin-cat-row {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.admin-cat-save { display: contents; }
.admin-add-row {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}
.admin-report {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  margin-bottom: 8px;
}
.admin-search { margin-bottom: 16px; }
.admin-user-list { display: flex; flex-direction: column; gap: 12px; }
.admin-user { display: block; padding: 16px; }
.admin-user-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.admin-user-name { margin: 0; font-weight: 600; color: #fff; }
.admin-user-email { margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.admin-user-actions, .admin-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.admin-user-actions { margin-top: 12px; }
.admin-inline { flex-wrap: nowrap; margin: 0; }
.admin-inline .field,
.admin-inline input.field,
.admin-inline select.field,
.admin-control {
  width: auto;
  height: 36px;
  font-size: 12px;
  padding: 0 8px;
}
.admin-inline select.field,
select.admin-control { min-width: 148px; }
.admin-inline input.admin-warn { width: 180px; min-width: 140px; }
.btn.btn-danger {
  background: #3a1018;
  color: #ff8ea0;
  border: 1px solid rgba(255, 93, 115, 0.3);
  box-shadow: none;
}
.btn.btn-danger:hover { background: #4a141e; filter: none; }
.admin-check { display: flex; align-items: center; gap: 8px; text-transform: none; letter-spacing: 0; }
.admin-check input, .perm-grid input { width: auto; }
.perm-grid { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 12px; align-items: center; }
.perm-grid label, .perm-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  text-transform: none;
  letter-spacing: 0;
  font-size: 12px;
  color: #d5e4ef;
  white-space: nowrap;
}
.stat-num { font-size: 32px; color: var(--cyan); margin: 8px 0 0; letter-spacing: .08em; }
button.chip { cursor: pointer; background: transparent; font: inherit; color: inherit; }
.chip-danger { color: #fff !important; border-color: rgba(255,93,115,.5) !important; }
.report-box { display: inline-block; }
.report-box summary { list-style: none; cursor: pointer; }
.report-box summary::-webkit-details-marker { display: none; }
@media (min-width: 768px) {
  .admin-cat-row { grid-template-columns: 1fr 1fr 80px auto auto; }
  .admin-add-row { grid-template-columns: 1fr 1fr auto; }
}
@media (min-width: 1024px) {
  .admin-frame { flex-direction: row; align-items: flex-start; }
  .admin-side { width: 224px; flex-shrink: 0; position: sticky; top: 88px; }
}
.post { border-top: 1px solid var(--line); padding: 16px 0; }
.prose, .prose-hypers { color: #d5e4ef; line-height: 1.7; white-space: pre-wrap; }
.prose-hypers a { color: var(--cyan); }
.discord-stars {
  background:
    radial-gradient(circle at 20% 20%, rgba(88, 101, 242, 0.28), transparent 32%),
    radial-gradient(circle at 80% 70%, rgba(0, 229, 255, 0.12), transparent 28%),
    #0b0c2a;
  position: relative; overflow: hidden; min-height: calc(100svh - 72px);
  display: flex; align-items: center; justify-content: center; text-align: center;
}
.discord-stars::before {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 12% 18%, #9fdcff 70%, transparent),
    radial-gradient(1.5px 1.5px at 28% 62%, #ffffffcc 70%, transparent),
    radial-gradient(1px 1px at 44% 30%, #7dd3fc 70%, transparent),
    radial-gradient(2px 2px at 63% 14%, #c4b5fd 70%, transparent),
    radial-gradient(1px 1px at 78% 48%, #ffffffaa 70%, transparent),
    radial-gradient(1.5px 1.5px at 88% 82%, #67e8f9 70%, transparent);
  animation: discord-twinkle 6s ease-in-out infinite;
}
@keyframes discord-twinkle { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
.discord-invite {
  position: relative; z-index: 1;
  width: min(440px, calc(100% - 32px));
  background: #313338; padding: 32px; text-align: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.45);
}
.discord-invite .brand-h { margin: 0 auto; height: 80px; background: #000; padding: 8px; border-radius: 16px; }
.discord-invite h1 { margin: 8px 0 0; font-size: 28px; }
.discord-meta { display: flex; justify-content: center; gap: 16px; margin-top: 12px; color: #b5bac1; font-size: 14px; }
.discord-meta span { display: inline-flex; align-items: center; gap: 6px; }
.dot-online, .dot-idle { width: 8px; height: 8px; border-radius: 99px; display: inline-block; }
.dot-online { background: #23a559; }
.dot-idle { background: #80848e; }
.discord-open, .discord-browser {
  display: flex; align-items: center; justify-content: center;
  height: 44px; width: 100%; margin-top: 12px; border-radius: 3px; font-size: 15px; font-weight: 600; color: #fff;
}
.discord-open { margin-top: 32px; background: #5865f2; }
.discord-open:hover { background: #4752c4; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(88,101,242,.35); }
.discord-browser { background: #2b2d31; }
.discord-browser:hover { background: #383a40; transform: translateY(-1px); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.inner-page { padding: 40px 0 80px; }

.page-head {
  display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px;
}
@media (min-width: 768px) {
  .page-head { flex-direction: row; align-items: flex-end; justify-content: space-between; }
}
.page-title {
  margin: 8px 0 0;
  font-family: var(--font-valve);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
}
.page-head-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

.drop { position: relative; }
.drop-menu { display: none; }

.glass-strong {
  background: linear-gradient(180deg, rgba(8, 16, 30, 0.92), rgba(4, 8, 16, 0.88));
  border: 1px solid rgba(0, 229, 255, 0.16);
  backdrop-filter: blur(22px);
}
.relative { position: relative; }
.full { width: 100%; }
.tiny { font-size: 12px; }
.white { color: #fff; }
.min0 { min-width: 0; }
.topbar-left { display: flex; min-width: 0; align-items: center; }
.lg-hide { display: flex; }
@media (min-width: 1024px) { .lg-hide { display: none !important; } }

.dd-backdrop { display: none; }
.dd { position: relative; z-index: 82; }
.dd.open { z-index: 90; }
.dd-panel {
  display: none;
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 91;
  min-width: 12rem; padding: 4px;
  box-shadow: 0 18px 50px rgba(0,0,0,.45);
  animation: fade-up .16s ease;
}
.dd.open .dd-panel { display: block; }
.dd-wide { width: min(92vw, 22rem); padding: 0; }
.dd-kicker {
  padding: 8px 12px;
  font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--cyan);
}
.dd-kicker-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; }
.dd-sep { height: 1px; background: rgba(0,229,255,.1); margin: 4px 0; }
.dd-pad { padding: 12px; }
.dd-item {
  display: block; padding: 8px 12px; font-size: 14px; color: #d7f8ff;
}
.dd-item:hover { background: rgba(0,229,255,.1); color: #fff; }
.dd-user { padding: 8px 12px; }
.dd-user p { margin: 0; font-size: 14px; font-weight: 700; }
.dd-user p + p { margin-top: 2px; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--cyan); font-weight: 400; }
.nav-badge {
  position: absolute; top: -4px; right: -4px; min-width: 16px; padding: 0 4px;
  background: var(--cyan); color: #000; font-size: 9px; font-weight: 800; text-align: center;
}
.search-results { margin-top: 12px; max-height: 20rem; overflow: auto; display: grid; gap: 12px; }
.search-results section { display: grid; }

.sheet { display: none; }
.sheet.open { display: block; }
.sheet-overlay { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.7); }
.sheet-panel {
  position: fixed; top: 0; right: 0; z-index: 51;
  display: flex; flex-direction: column;
  height: 100%; width: min(100%, 22rem); padding: 20px;
}
.sheet-close { position: absolute; top: 16px; right: 16px; background: none; border: 0; color: var(--muted); }
.sheet-close:hover { color: #fff; }
.sheet-links { display: flex; flex-direction: column; gap: 16px; margin-top: 32px; }
.sheet-links .nav-link::after { display: none; }
.sheet-extra { margin-top: 16px; font-size: 14px; color: var(--cyan); }

.account-tabs { border-bottom: 1px solid rgba(0,229,255,.1); background: rgba(0,0,0,.2); }
.account-tabs nav { display: flex; justify-content: center; gap: 4px; overflow-x: auto; padding: 0 16px; }
.account-tab {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
  padding: 12px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: #8aa0b5;
}
.account-tab::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: #00e5ff; transform: scaleX(0); transform-origin: left; transition: transform 160ms ease;
}
.account-tab:hover, .account-tab[data-active="true"] { color: #00e5ff; }
.account-tab:hover::after, .account-tab[data-active="true"]::after { transform: scaleX(1); }

.auth-page {
  min-height: 70vh; max-width: 28rem; margin: 0 auto;
  display: flex; flex-direction: column; justify-content: center;
  padding: 48px 16px;
}
.auth-logo { justify-content: center; margin: 0 auto 32px; font-size: 1.2rem; }
.auth-panel { padding: 24px; }
.auth-form { max-width: none; }
.auth-links { display: flex; justify-content: space-between; margin-top: 16px; font-size: 12px; color: var(--muted); }
.auth-link { position: relative; display: inline-block; }
.auth-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
  background: linear-gradient(90deg, #00e5ff, #0055ff);
  transform: scaleX(0); transform-origin: left; transition: transform 160ms ease;
}
.auth-link:hover { color: #fff; }
.auth-link:hover::after { transform: scaleX(1); }
.auth-divider {
  display: flex; align-items: center; gap: 12px; margin: 16px 0;
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}
.auth-divider span { height: 1px; flex: 1; background: rgba(0,229,255,.15); }

.field, input.field, textarea.field, select.field {
  height: 44px; width: 100%;
  border: 1px solid rgba(0,229,255,.15); background: rgba(0,0,0,.4);
  color: #fff; padding: 0 12px; outline: none;
}
.admin-inline .field,
.admin-inline input.field,
.admin-inline select.field {
  width: auto;
  height: 36px;
  font-size: 12px;
  padding: 0 8px;
}
textarea.field { height: auto; min-height: 140px; padding: 12px; }
.field:focus { border-color: rgba(0,229,255,.5); box-shadow: 0 0 0 1px rgba(0,229,255,.4); }

.btn-add {
  background: linear-gradient(90deg, #00e5ff, #0090ff);
  padding: 8px 16px; border: 0;
  font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #031018;
}
.btn-add:hover { filter: brightness(1.1); }
.btn-discord.full { width: 100%; }
.btn-discord.btn-sm { height: 36px; padding: 0 12px; font-size: 10px; }

.tebex-bar { background: #1b1e22; padding: 12px 16px; }
.tebex-inner {
  max-width: 80rem; margin: 0 auto;
  display: flex; flex-direction: column; gap: 12px;
}
@media (min-width: 1024px) {
  .tebex-inner { flex-direction: row; align-items: center; justify-content: space-between; }
}
.tebex-left { display: flex; gap: 12px; align-items: flex-start; }
.tebex-mark { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 700; color: #e8eaed; flex-shrink: 0; }
.tebex-mark svg { width: 20px; height: 20px; }
.tebex-left p { margin: 0; max-width: 48rem; font-size: 11px; line-height: 1.5; color: #b4b8be; }
.tebex-inner nav { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 11px; color: #d5d8de; }
.tebex-inner nav a { text-decoration: underline; text-underline-offset: 2px; }
.tebex-inner nav a:hover { color: #fff; }

.marquee-item {
  display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; padding: 0 16px;
}
.marquee-item:hover { color: var(--cyan); }

.cart-list { list-style: none; margin: 0; padding: 0; max-height: 18rem; overflow: auto; }
.cart-list li, .cart-row {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 8px 12px;
}
.cart-row { align-items: center; padding: 16px; border-bottom: 1px solid rgba(0,229,255,.1); }
.cart-qty { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.cart-qty button {
  height: 24px; width: 24px; border: 1px solid rgba(0,229,255,.2); background: transparent; color: #fff;
}
.cart-qty button:hover { background: rgba(0,229,255,.1); }
.cart-qty .linkish, .linkish {
  background: none; border: 0; color: var(--muted); font-size: 10px; margin-left: 4px;
}
.linkish:hover { color: #fff; }
.cart-total { display: flex; justify-content: space-between; margin: 0 0 8px; }
.empty-panel { padding: 64px 24px; text-align: center; }
.cart-rows { overflow: hidden; }

.shop-card { display: flex; flex-direction: column; padding: 20px; }
.shop-card-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-top: 16px; }
.shop-card-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.product-grid { display: grid; gap: 32px; }
@media (min-width: 1024px) { .product-grid { grid-template-columns: 1fr 1fr; } }
.account-grid { display: grid; gap: 24px; }
@media (min-width: 1024px) { .account-grid { grid-template-columns: 280px 1fr; } }
.stat-list { margin-top: 16px; display: grid; gap: 8px; font-size: 14px; }
.stat-list > div { display: flex; justify-content: space-between; }
.stat-list dt { color: var(--muted); }
.server-grid { display: grid; gap: 20px; }
@media (min-width: 1024px) { .server-grid { grid-template-columns: 2fr 1fr; } }
.kv-grid { display: grid; gap: 12px; margin-top: 16px; font-size: 14px; }
@media (min-width: 640px) { .kv-grid { grid-template-columns: 1fr 1fr; } }
.kv-grid dt { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.kv-grid dd { margin: 4px 0 0; }
.badge-blue { border-color: rgba(0,85,255,.3); background: rgba(0,85,255,.1); color: #8cbcff; }
.post-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.discord-empty { margin-top: 16px; border: 1px solid rgba(255,255,255,.05); background: rgba(0,0,0,.2); padding: 16px; }

.admin-main .page-head { margin-bottom: 12px; }
.admin-live { margin: 0 0 16px; }
.copy-row { display: flex; gap: 8px; align-items: flex-start; margin-top: 8px; }
.copy-row .code-box { flex: 1; min-width: 0; margin-top: 0; }
.ok-line { color: #3dffb0; font-size: 14px; }
.warn-line { color: #fde68a; font-size: 14px; }
.admin-discord { display: grid; gap: 24px; }
@media (min-width: 1024px) {
  .admin-discord { grid-template-columns: 1fr 320px; align-items: start; }
}
.discord-members { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.topbar-inner { overflow: visible; }
.dialog { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 16px; }
.dialog[hidden] { display: none !important; }
.dialog-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.7); }
.dialog-panel { position: relative; width: min(32rem, 100%); padding: 24px; }
.code-box {
  display: block; margin-top: 8px; padding: 8px 12px;
  border: 1px solid rgba(0,229,255,.15); background: rgba(0,0,0,.4);
  color: var(--cyan); font-size: 12px; word-break: break-all;
}
.toast-stack { position: fixed; bottom: 20px; right: 20px; z-index: 80; display: grid; gap: 8px; }
.toast {
  border: 1px solid rgba(0,229,255,.3); background: rgba(7,16,24,.95);
  padding: 10px 14px; font-size: 13px; color: #fff;
  box-shadow: 0 0 40px rgba(0,229,255,.18);
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.forum-layout { display: grid; gap: 32px; }
@media (min-width: 1024px) { .forum-layout { grid-template-columns: 1.4fr .6fr; align-items: start; } }
.forum-main { display: grid; gap: 24px; }
.forum-aside { display: grid; gap: 20px; }
.forum-panel { overflow: hidden; }
.forum-group-head { border-bottom: 1px solid rgba(0,229,255,.1); padding: 12px 16px; }
.forum-group-head h2 {
  margin: 0; font-family: var(--font-valve); font-size: 14px;
  letter-spacing: .2em; text-transform: uppercase; color: var(--cyan);
}
.forum-group-head p { margin: 4px 0 0; font-size: 12px; }
.forum-cat-row {
  display: flex; flex-direction: column; gap: 4px;
  border-bottom: 1px solid rgba(0,229,255,.05);
  padding: 16px;
}
.forum-cat-row:last-child { border-bottom: 0; }
.forum-cat-row:hover { background: rgba(0,229,255,.05); }
@media (min-width: 768px) {
  .forum-cat-row { flex-direction: row; align-items: center; justify-content: space-between; }
}
.forum-cat-name { margin: 0; color: #fff; }
.forum-cat-meta { display: flex; gap: 24px; font-size: 12px; color: var(--muted); }
.forum-side { padding: 16px; }
.forum-side h3 {
  margin: 0; font-family: var(--font-valve); font-size: 13px;
  letter-spacing: .16em; text-transform: uppercase;
}
.sort-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 229, 255, 0.28);
  background: transparent;
  padding: 6px 10px;
  min-height: 32px;
  font-family: var(--font-valve);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--cyan);
}
.chip:hover, .chip-on { background: rgba(0,229,255,.1); color: #fff; border-color: rgba(0,229,255,.55); }
.side-list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 12px; }
.side-list a { font-size: 14px; }
.side-list a:hover { color: var(--cyan); }
.side-list p { margin: 4px 0 0; font-size: 11px; }

.topic-head {
  display: none; grid-template-columns: 1fr 120px 80px 80px; gap: 12px;
  border-bottom: 1px solid rgba(0,229,255,.1);
  padding: 8px 16px; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.topic-grid {
  display: grid; gap: 4px;
  border-bottom: 1px solid rgba(0,229,255,.05);
  padding: 16px;
}
.topic-grid:last-child { border-bottom: 0; }
.topic-grid:hover { background: rgba(0,229,255,.05); }
@media (min-width: 768px) {
  .topic-head { display: grid; }
  .topic-grid { grid-template-columns: 1fr 120px 80px 80px; align-items: center; gap: 12px; }
}
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; }
.badge {
  display: inline-flex; align-items: center;
  border: 1px solid rgba(0,229,255,.3);
  background: rgba(0,229,255,.1);
  padding: 2px 8px;
  font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--cyan);
}
.badge-warn { border-color: rgba(255,200,87,.3); background: rgba(255,200,87,.1); color: #fde68a; }
.badge-ok { border-color: rgba(61,255,176,.3); background: rgba(61,255,176,.1); color: #6ee7b7; }
.badge-danger { border-color: rgba(255,93,115,.3); background: rgba(255,93,115,.1); color: #fda4af; }
.badge-muted { border-color: rgba(255,255,255,.1); background: rgba(255,255,255,.05); color: var(--muted); }

.topic-top { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.post-card {
  display: grid; gap: 16px; padding: 20px; margin-bottom: 16px;
}
.post-body { min-width: 0; overflow-wrap: anywhere; }
@media (min-width: 768px) { .post-card { grid-template-columns: 180px 1fr; } }
.post-name {
  margin: 10px 0 0;
  font-family: var(--font-valve);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  text-shadow: 0 0 12px currentColor;
}
.post-role {
  margin: 4px 0 0;
  font-family: var(--font-valve);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 700;
}
.post-bio {
  margin: 6px 0 0;
  color: var(--cyan);
  font-family: var(--font-valve);
  font-size: 12px;
  line-height: 1.4;
}
.author-top { display: flex; justify-content: center; }
.author-role-badge {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 10px;
  font-family: var(--font-valve);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #031018;
}
.author-stats {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  width: 100%;
  display: grid;
  gap: 6px;
}
.author-stats li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(0, 229, 255, 0.12);
  font-size: 12px;
  color: #fff;
}
.author-stats .icon { width: 14px; height: 14px; color: #fff; }
.post-author-id { margin-top: 8px; min-width: 0; }
.post-author-id .post-name { margin-top: 0; }
.post-author-stats {
  margin: 8px 0 0;
  font-family: var(--font-valve);
  font-size: 12px;
}
.avatar {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; background: rgba(0,229,255,.15); color: var(--cyan);
  font-family: var(--font-valve); font-size: 18px; object-fit: cover;
}
.post-author .avatar {
  border: 1px solid rgba(0, 229, 255, 0.28);
}
.quote-note { margin: 8px 0 0; border-left: 2px solid rgba(0,229,255,.4); padding-left: 12px; font-size: 12px; color: var(--muted); }
.reply-form { padding: 20px; margin-top: 24px; display: grid; gap: 12px; max-width: none; }
.topic-form { max-width: 720px; }
.topic-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  width: 100%;
}
.topic-actions form { display: contents; }
.topic-actions .btn {
  width: auto;
  min-width: 0;
  height: 32px;
  padding: 0 12px;
  font-size: 11px;
  flex: 0 0 auto;
}
.post-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; align-items: center; }
.post-author {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.post-mod { display: flex; flex-wrap: wrap; gap: 8px; }
.like-count { margin: 12px 0 0; font-size: 12px; color: var(--cyan); font-family: var(--font-valve); }
.post-time { font-family: var(--font-valve); }
.topic-kicker { color: var(--cyan); }
.topic-title { font-family: var(--font-valve); letter-spacing: 0.08em; color: #fff; }
.topic-page .prose-hypers {
  color: var(--topic-letters, #f4fbff);
  font-family: var(--font-valve);
}
.topic-page .prose-hypers .mention { color: var(--topic-letters, var(--cyan)); }
.topic-page .prose-hypers blockquote { color: var(--topic-letters, var(--muted)); opacity: 0.8; }
.topic-page .quote-note { border-color: rgba(0,229,255,.4); }
.btn-mod {
  border: 0;
  background: #fff;
  color: #031018;
  font-family: var(--font-valve);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 8px 12px;
  min-height: 36px;
}
.btn-mod:hover { filter: brightness(0.92); }
.color-picks { display: flex; flex-wrap: wrap; gap: 10px; }
.color-pick {
  width: 28px; height: 28px; border-radius: 999px;
  background: var(--swatch);
  border: 2px solid rgba(255,255,255,.2);
  cursor: pointer;
  display: inline-flex;
}
.color-pick input { position: absolute; opacity: 0; width: 0; height: 0; }
.color-pick.on, .color-pick:has(input:checked) {
  border-color: #fff;
  box-shadow: 0 0 0 2px var(--swatch);
}
.prose-hypers, .account-settings, .account-settings label,
.account-side, .account-panel, .field, textarea.field, input.field, select.field {
  font-family: var(--font-valve);
}
.pager { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 20px; }
.md-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.md-bar .chip {
  min-width: 36px;
  min-height: 36px;
  padding: 6px 10px;
}
.md-hint { margin-left: 4px; font-family: var(--font-valve); }
.editor-box { position: relative; display: grid; gap: 10px; }
.editor-area {
  min-height: 160px;
  height: auto !important;
  padding: 12px;
  outline: none;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.editor-area.is-empty::before {
  content: attr(data-placeholder);
  color: var(--muted);
  pointer-events: none;
}
.editor-source {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.color-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}
.color-inline span { line-height: 1; }
input.color-native,
input[type="color"].color-native,
.editor-color-wrap input[type="color"] {
  appearance: none;
  -webkit-appearance: none;
  width: 1em;
  height: 1em;
  min-width: 12px;
  min-height: 12px;
  padding: 0;
  border: 1px solid rgba(0, 229, 255, 0.55);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
  flex: 0 0 auto;
  vertical-align: middle;
}
input.color-native::-webkit-color-swatch-wrapper,
input[type="color"].color-native::-webkit-color-swatch-wrapper,
.editor-color-wrap input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
  border-radius: 50%;
}
input.color-native::-webkit-color-swatch,
input[type="color"].color-native::-webkit-color-swatch,
.editor-color-wrap input[type="color"]::-webkit-color-swatch {
  border: none;
  border-radius: 50%;
}
input.color-native::-moz-color-swatch,
input[type="color"].color-native::-moz-color-swatch,
.editor-color-wrap input[type="color"]::-moz-color-swatch {
  border: none;
  border-radius: 50%;
}
.editor-color-wrap {
  display: inline-flex;
  align-items: center;
  margin: 0;
}
button.chip, summary.chip {
  background: transparent;
  color: var(--cyan);
  font: inherit;
  line-height: inherit;
}
.post-tools form { margin: 0; display: inline-flex; }
.account-side, .account-panel { padding: 20px; }
.account-avatar {
  display: flex;
  justify-content: center;
}
.account-avatar .avatar {
  font-size: 3.1rem;
  border: 1px solid rgba(0, 229, 255, 0.28);
}
.account-role { text-align: center; margin-top: 12px; }
.account-main { display: grid; gap: 20px; }
.account-discord { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.account-side-links {
  display: grid;
  gap: 14px;
  margin-top: 24px;
  max-width: none;
}
.account-side-links .btn-ghost { width: 100%; }
.account-settings { margin-top: 16px; max-width: none; }
.prose-hypers { white-space: normal; }
.prose-hypers blockquote {
  margin: 12px 0;
  border-left: 2px solid rgba(0,229,255,.4);
  padding-left: 12px;
  color: var(--muted);
}
.prose-hypers .mention { color: var(--cyan); font-weight: 700; }
.prose-hypers code {
  border: 1px solid rgba(0,229,255,.2);
  background: rgba(0,0,0,.35);
  padding: 1px 6px;
  font-size: 12px;
}
#site-confirm { z-index: 140; }
.confirm-box {
  width: min(26rem, 100%);
  padding: 20px 20px 16px;
  border-radius: 16px;
  background: #1c1c1e;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 28px 80px rgba(0,0,0,.55);
}
.confirm-title {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: #fff;
}
.confirm-box .muted { margin: 10px 0 0; font-size: 14px; color: #b8c0cc; }
.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}
.btn-confirm-ok,
.btn-confirm-cancel {
  border-radius: 999px;
  padding: 8px 18px;
  font-weight: 600;
  font-size: 14px;
}
.btn-confirm-ok {
  border: 0;
  background: #0b57d0;
  color: #fff;
}
.btn-confirm-ok:hover { background: #1b66e0; }
.btn-confirm-cancel {
  border: 2px solid transparent;
  background: #3a3a3c;
  color: #fff;
}
.btn-confirm-cancel:focus,
.btn-confirm-cancel:focus-visible {
  outline: none;
  border-color: #8ab4f8;
}

.pkg-badges { position: absolute; top: 12px; left: 12px; display: flex; flex-wrap: wrap; gap: 4px; z-index: 2; }
.cat-lane { display: flex; flex-direction: column; align-items: center; padding: 32px 16px; text-align: center; }
.grid-5 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-5 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .grid-5 { grid-template-columns: repeat(5, 1fr); } }
.home-split { display: grid; gap: 32px; }
@media (min-width: 1024px) { .home-split { grid-template-columns: 1.2fr .8fr; } }
.section-title-row { display: flex; align-items: center; gap: 8px; }

.discord-card { overflow: hidden; border: 1px solid rgba(88,101,242,.35); background: #0b0d14; }
.discord-card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border-bottom: 1px solid rgba(88,101,242,.2); background: rgba(88,101,242,.15); padding: 12px 16px;
}
.discord-card-head .icon-lg { margin: 0; color: #c7cdff; width: 20px; height: 20px; }
.discord-card-body { padding: 16px; }
.discord-card-foot { border-top: 1px solid rgba(88,101,242,.2); padding: 12px; }
.discord-card-foot .btn-discord { width: 100%; }

.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .page-slide, .pulse-dot, .cta-glow, .hero-kenburns, .hero-scan, .hero-orb,
  .package-card, .marquee-track, .scroll-hint, .discord-stars::before { animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
button, a, [role="button"], summary, .chip, .nav-icon {
  -webkit-tap-highlight-color: rgba(0, 229, 255, 0.18);
  touch-action: manipulation;
}

.sheet-user { margin: 16px 0 0; }
.sheet-panel {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-top: max(20px, env(safe-area-inset-top));
  padding-bottom: max(20px, env(safe-area-inset-bottom));
}
.sheet { position: relative; z-index: 110; }
.sheet-overlay { z-index: 110; }
.sheet-panel { z-index: 111; }

@media (max-width: 1023px) {
  .topbar { padding-top: env(safe-area-inset-top); }
  .topbar-inner {
    height: 64px;
    padding: 0 10px;
    gap: 8px;
  }
  .nav-right { gap: 4px; }
  .nav-icon { height: 36px; width: 36px; }
  .logo-word { font-size: 11px; letter-spacing: 0.1em; }
  .wrap { width: min(80rem, calc(100% - 24px)); }
  .inner-page { padding: 24px 0 56px; }
  .hero { min-height: calc(100svh - 64px - env(safe-area-inset-top)); }
  .hero-inner { padding: 48px 16px 28px; }
  .hero-logo { flex-wrap: wrap; justify-content: center; margin-top: 16px; gap: 10px; }
  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 22rem;
    margin-top: 28px;
  }
  .hero-actions .btn,
  .hero-actions .btn-ghost,
  .hero-actions .btn-discord { width: 100%; }
  .scroll-hint { margin-top: 28px; }
  .section { padding: 40px 0; }
  .page-head-actions .btn,
  .page-head-actions .btn-ghost { width: 100%; }
  .account-tabs nav {
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .account-tabs nav::-webkit-scrollbar { display: none; }
  .chip {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
  }
  .post-tools .chip,
  .md-bar .chip,
  summary.chip { min-width: 44px; justify-content: center; }
  .post-card { padding: 16px; }
  .post-author {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0, 229, 255, 0.08);
  }
  .reply-form, .topic-form { padding: 16px; }
  .topic-form { max-width: none; }
  .md-bar { gap: 8px; }
  .confirm-box { width: 100%; }
  .confirm-actions { flex-direction: column-reverse; }
  .btn-confirm-ok,
  .btn-confirm-cancel {
    width: 100%;
    min-height: 44px;
  }
  .dialog { align-items: end; padding: 12px; padding-bottom: max(12px, env(safe-area-inset-bottom)); }
  .dialog-panel { width: 100%; }
  .toast-stack { left: 12px; right: 12px; bottom: max(16px, env(safe-area-inset-bottom)); }
  input, textarea, select, .field, input.field, textarea.field, select.field { font-size: 16px; }
  .admin-inline { flex-wrap: wrap; }
  .admin-inline .field,
  .admin-inline input.field,
  .admin-inline select.field,
  .admin-control,
  .admin-inline input.admin-warn {
    width: 100%;
    min-width: 0;
  }
  table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .copy-row { flex-direction: column; }
  .shop-card-foot { flex-direction: column; align-items: stretch; }
  .shop-card-actions { align-items: stretch; }
  .cart-row { flex-wrap: wrap; }
  .auth-page { padding: 32px 16px; }
  form.stack { max-width: none; }
}

@media (max-width: 720px) {
  .topbar-left .logo-word { display: none; }
}

@media (max-width: 767px) {
  body.dd-open { overflow: hidden; }
  .dd-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0, 0, 0, 0.72);
  }
  body.dd-open .dd-backdrop { display: block; }
  body.dd-open .topbar {
    z-index: 220;
    overflow: visible;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .dd.open { z-index: 221; }
  .dd.open .dd-panel {
    position: fixed;
    top: calc(64px + env(safe-area-inset-top));
    left: 12px;
    right: 12px;
    width: auto;
    min-width: 0;
    z-index: 222;
    max-height: calc(100svh - 88px - env(safe-area-inset-top));
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    pointer-events: auto;
    background: #0a121c;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid rgba(0, 229, 255, 0.28);
  }
  .dd-item {
    min-height: 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 12px;
  }
  .dd-pad .btn-ghost { min-height: 44px; }
}

.char-list, .player-list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.char-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(0, 229, 255, 0.12);
  font-size: 14px;
}
.player-list {
  list-style: decimal;
  padding-left: 22px;
  color: #fff;
  font-size: 14px;
}
.player-list li { padding: 4px 0; }

@media (hover: none) {
  .package-card:hover,
  .btn:hover,
  .btn-ghost:hover,
  .btn-discord:hover {
    transform: none;
  }
}
