/* Full live server page + preview overlay */

.server-preview-overlay {
  position: fixed;
  inset: 0;
  z-index: 35000;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  flex-direction: column;
  animation: serverPreviewIn 0.35s var(--ease-out-expo);
}
.server-preview-overlay.hidden { display: none !important; }
body.server-preview-open { overflow: hidden; }

.server-preview-overlay__bar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: max(12px, env(safe-area-inset-top)) var(--space-4) var(--space-3);
  background: rgba(10, 14, 20, 0.95);
  border-bottom: 1px solid var(--border);
}
.server-preview-overlay__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-bright);
}
.server-preview-overlay__root {
  flex: 1;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

@keyframes serverPreviewIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Live server layout */
.server-live {
  min-height: 100%;
  background: var(--zone-server-bg);
  padding-bottom: max(24px, env(safe-area-inset-bottom));
}
.server-live--preview { min-height: 100%; }

.server-live__hero {
  position: relative;
  min-height: 200px;
  padding:
    max(16px, env(safe-area-inset-top))
    var(--space-4)
    var(--space-5);
  background:
    radial-gradient(ellipse 90% 70% at 50% 0%, rgba(0, 212, 238, 0.16) 0%, transparent 65%),
    linear-gradient(180deg, #141c28 0%, #0a1018 100%);
  background-size: cover;
  background-position: center;
}
.server-live__hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 7, 13, 0.2) 0%, rgba(7, 7, 13, 0.92) 100%);
  pointer-events: none;
}
.server-live__back {
  position: relative;
  z-index: 2;
  border: none;
  background: rgba(0, 0, 0, 0.45);
  color: var(--text);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  margin-bottom: var(--space-3);
}
.server-live__back--wide {
  width: auto;
  min-width: 36px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.server-live__hero-main {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  gap: var(--space-4);
}
.server-live__icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow:
    0 0 0 2px rgba(0, 212, 238, 0.35),
    0 8px 24px rgba(0, 0, 0, 0.45);
}
.server-live__icon--letter {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--accent), #00a8c4);
  font-family: var(--font-cyber);
  font-size: 28px;
  font-weight: 700;
  color: #000;
}
.server-live__hero-text h1 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.server-live__hero-title-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-width: 0;
}
.server-live__hero-title-row h1 {
  flex: 1;
  min-width: 0;
}
.server-live__fav {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: color var(--motion), border-color var(--motion), transform var(--motion), background var(--motion);
}
.server-live__fav svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
}
.server-live__fav.is-active {
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.45);
  background: rgba(251, 191, 36, 0.12);
}
.server-live__fav.is-active svg { fill: currentColor; stroke: currentColor; }
.server-live__fav:active { transform: scale(0.94); }
.server-live__hero-text p {
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-secondary);
}
.server-live__hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-secondary);
}
.server-live__pop { font-variant-numeric: tabular-nums; }
.server-live__refresh {
  width: 24px;
  height: 24px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  transition: color var(--motion), border-color var(--motion), transform var(--motion);
}
.server-live__refresh:hover { color: var(--accent-bright); border-color: rgba(0, 212, 238, 0.35); }
.server-live__refresh:active { transform: rotate(180deg); }
.server-live__wipe-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.28);
  color: #fbbf24;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.server-live__online {
  color: #6ee7a8;
  font-weight: 600;
}
.server-live__online::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 5px;
  border-radius: 50%;
  background: #6ee7a8;
  vertical-align: middle;
}

.server-live__online--off {
  color: #f87171;
}
.server-live__online--off::before {
  background: #f87171;
}

.server-live__connect {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px var(--space-4);
  font-size: 13px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.2);
}
.server-live__connect--checking {
  color: var(--text-secondary);
}
.server-live__connect--ok {
  color: #6ee7a8;
}
.server-live__connect--warn {
  color: #fbbf24;
}
.server-live__connect--off {
  color: #f87171;
}
.server-live__connect-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.server-live__connect-dot--pulse {
  animation: connectPulse 1.2s ease-in-out infinite;
}
.server-live__connect .btn {
  margin-left: auto;
}
.server-live__connect-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.server-live__joined-badge.motion-join-badge {
  animation: joinPop 0.55s var(--ease-spring);
}

.join-info-sheet {
  max-height: min(88dvh, 720px);
  overflow: auto;
  padding: var(--space-4);
}
.join-info-sheet__head {
  position: relative;
  margin-bottom: var(--space-4);
}
.join-info-sheet__head h2 {
  font-size: 20px;
  margin-bottom: 4px;
}
.join-info-sheet__head p {
  color: var(--text-secondary);
  font-size: 14px;
}
.join-info-sheet__close {
  position: absolute;
  top: 0;
  right: 0;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text-primary);
  font-size: 22px;
  cursor: pointer;
}
.join-info-sheet__steps {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.join-info-sheet__step {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}
.join-info-sheet__num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.join-info-sheet__step strong {
  display: block;
  margin-bottom: 4px;
}
.join-info-sheet__step p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.45;
  margin: 0;
}
.join-info-sheet__actions {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

@keyframes connectPulse {
  0%, 100% { opacity: 0.35; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1); }
}

.join-info-scrim.hidden { display: none !important; }

.server-live__toolbar {
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.server-live__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.server-live__chip {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
}
.server-live__chip--link {
  text-decoration: none;
  color: var(--accent-bright);
  background: rgba(0, 212, 238, 0.1);
  border-color: rgba(0, 212, 238, 0.25);
  transition: background var(--motion), border-color var(--motion);
}
.server-live__chip--link:hover {
  background: rgba(0, 212, 238, 0.18);
  border-color: rgba(0, 212, 238, 0.45);
}
.server-live__chip--discord {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px 4px 8px;
}
.server-live__chip--discord img,
.server-live__chip--shop .server-live__chip-icon img {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.server-live__chip--shop {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
}
.server-live__chip-icon {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  line-height: 1;
}
.server-live__chip--shop {
  color: #f0c674;
  background: rgba(240, 198, 116, 0.1);
  border-color: rgba(240, 198, 116, 0.28);
}
.server-live__chip--shop:hover {
  background: rgba(240, 198, 116, 0.16);
}
.server-live__toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.server-live__nav {
  display: flex;
  gap: 2px;
  padding: 0 var(--space-2);
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 3;
  background: var(--zone-server-bg);
}
.server-live__nav::-webkit-scrollbar { display: none; }
.server-live__nav-btn {
  flex-shrink: 0;
  min-height: var(--touch);
  padding: 12px 14px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color var(--motion), border-color var(--motion);
}
.server-live__nav-btn:hover { color: var(--text-secondary); }
.server-live__nav-btn.active {
  color: var(--accent-bright);
  border-bottom-color: var(--accent);
}

.server-live__body { padding: var(--space-4); }
.server-live__section { animation: serverPanelIn 0.25s var(--ease-out-expo); }
.server-live__section--no-animate { animation: none !important; }
.server-live__section--center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) 0;
}
.server-live__muted {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: var(--space-3);
}
.server-live__facts {
  margin-top: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.server-live__facts div {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: var(--space-2);
  align-items: start;
}
.server-live__facts dt {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.server-live__facts dd {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.45;
}
.server-live__facts code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--accent-bright);
}

.server-live__chat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: var(--space-4);
}
.server-live__chat-bubble {
  max-width: 88%;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-secondary);
}
.server-live__chat-bubble strong {
  display: block;
  font-size: 12px;
  color: var(--accent-bright);
  margin-bottom: 4px;
}
.server-live__chat-bubble--mine {
  align-self: flex-end;
  background: var(--accent-muted);
  color: var(--accent-bright);
}
.server-live__chat-compose {
  display: flex;
  gap: var(--space-2);
}
.server-live__chat-compose input {
  flex: 1;
  padding: 10px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font: inherit;
}

.server-live__voice-ring {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid rgba(0, 212, 238, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}
.server-live__voice-channels {
  width: 100%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.server-live__voice-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  font-size: 14px;
}
.server-live__voice-count { color: var(--muted); font-size: 13px; }

.server-live__event-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.server-live__event-list li {
  padding: var(--space-3);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.server-live__event-list strong { font-size: 14px; }
.server-live__event-list span { font-size: 13px; color: var(--muted); }

.server-live__rules {
  white-space: pre-wrap;
  font: inherit;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0;
}

/* ── Rules panel ── */
.sv-rules__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.sv-rules__head h3 { font-size: 18px; font-weight: 700; }
.sv-rules__sub { font-size: 13px; color: var(--muted); margin-top: 4px; }
.sv-rules__tag {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(251, 191, 36, 0.12);
  color: #fbbf24;
  white-space: nowrap;
}
.sv-rules__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.sv-rules__item {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.025);
}
.sv-rules__num {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-muted);
  color: var(--accent-bright);
  font-size: 12px;
  font-weight: 700;
}
.sv-rules__item p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--text-secondary); }
.sv-rules__foot {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
}

.server-live__player-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.server-live__player-chip {
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
}

.server-live__map-frame {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background-size: cover;
  background-position: center;
}
.server-live__map-label {
  margin-top: var(--space-2);
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

/* Publish setup (step 9) */
.owner-publish-setup {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.owner-publish-setup__summary {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}
.owner-publish-setup__summary-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  background: linear-gradient(145deg, var(--accent), #00a8c4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-cyber);
  font-weight: 700;
  color: #000;
  font-size: 20px;
}
.owner-publish-setup__summary-copy h3 {
  font-size: 16px;
  font-weight: 600;
}
.owner-publish-setup__summary-copy p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}
.owner-publish-setup__block {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.owner-publish-setup__block-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.owner-publish-setup__hint {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}
.owner-publish-setup__defaults {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.owner-publish-setup__default-chip {
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-bright);
  background: rgba(0, 212, 238, 0.1);
  border: 1px solid rgba(0, 212, 238, 0.2);
}
.owner-section-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}
.owner-section-card + .owner-section-card,
.owner-section-card + .owner-section-row,
.owner-section-row + .owner-section-card {
  margin-top: var(--space-2);
}
.owner-section-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-3);
}
.owner-section-row--plain {
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border);
}
.owner-section-row--plain:last-child { border-bottom: none; }
.owner-section-card__extra {
  padding: 0 var(--space-3) var(--space-3);
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.owner-section-card__extra.hidden { display: none; }
.owner-section-card__url-input { width: 100%; }
.owner-section-row__copy strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
}
.owner-section-row__copy span {
  font-size: 12px;
  color: var(--muted);
}
.owner-section-toggle {
  position: relative;
  width: 44px;
  height: 26px;
  flex-shrink: 0;
  border: none;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: background var(--motion);
}
.owner-section-toggle.is-on {
  background: var(--accent);
}
.owner-section-toggle::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform var(--motion);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}
.owner-section-toggle.is-on::after {
  transform: translateX(18px);
}
.owner-publish-setup__preview-btn {
  width: 100%;
  margin-top: var(--space-2);
}
.owner-publish-setup__preview-note {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  line-height: 1.45;
  margin-top: var(--space-2);
}

/* Owner review stack */
.owner-review-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.owner-review-badge--pending {
  color: #f0c674;
  background: rgba(240, 198, 116, 0.12);
  border: 1px solid rgba(240, 198, 116, 0.35);
}
.owner-review-badge--reviewing {
  color: var(--accent-bright);
  background: var(--accent-muted);
  border: 1px solid rgba(0, 212, 238, 0.35);
}
.owner-review-badge--live {
  color: #6ee7a8;
  background: rgba(46, 160, 67, 0.12);
  border: 1px solid rgba(46, 160, 67, 0.35);
}
.owner-pending-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  width: 100%;
}
.owner-pending-locked {
  padding: var(--space-3);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
  text-align: center;
}
.owner-pending-demo {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  justify-content: center;
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px dashed var(--border);
}

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

@media (prefers-reduced-motion: reduce) {
  .server-preview-overlay,
  .server-live__section { animation: none !important; }
  .sv-voice__live-badge--on .sv-dot,
  .sv-voice__channel-icon--live,
  .sv-voice__dock-wave span,
  .sv-voice__empty-ring { animation: none !important; }
}

/* ── Blank states ── */
.sv-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--space-2);
  padding: var(--space-6) var(--space-4);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border);
  background: rgba(255, 255, 255, 0.02);
}
.sv-empty__icon { display: flex; align-items: center; justify-content: center; margin-bottom: var(--space-2); }
.sv-empty__title { font-size: 14px; font-weight: 600; color: var(--text-secondary); }
.sv-empty__hint { font-size: 12px; color: var(--muted); line-height: 1.45; max-width: 28ch; }

/* ── Overview — flat editorial layout ── */
.sv-overview { display: flex; flex-direction: column; gap: 0; }
.sv-overview__kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  font-family: var(--font-cyber);
  margin: 0 0 var(--space-2);
}
.sv-overview__empty-hint {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.45;
}
.sv-overview__identity {
  position: relative;
  overflow: hidden;
  min-height: 120px;
  background-size: cover;
  background-position: center;
  border: none;
  border-radius: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.sv-overview__identity-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(7, 7, 13, 0.5) 0%, rgba(7, 7, 13, 0.88) 100%);
}
.sv-overview__identity-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) 0;
}
.sv-overview__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(0, 212, 238, 0.3);
}
.sv-overview__icon--letter {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--accent), #00a8c4);
  font-family: var(--font-cyber);
  font-size: 22px;
  font-weight: 700;
  color: #000;
}
.sv-overview__identity-text h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.sv-overview__id {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  color: var(--accent-bright);
  margin-top: 2px;
}
.sv-overview__game { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }

.sv-overview__block {
  padding: var(--space-4) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

/* About + map side-by-side */
.sv-overview__spotlight {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  align-items: start;
}
@media (min-width: 640px) {
  .sv-overview__spotlight {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: var(--space-5);
  }
}
@media (min-width: 960px) {
  .sv-overview__spotlight {
    grid-template-columns: minmax(200px, 280px) minmax(0, 1fr);
  }
}
.sv-overview__about-col {
  min-width: 0;
}
.sv-overview__about-col .sv-overview__desc {
  font-size: clamp(13px, 1.6vw, 14px);
  line-height: 1.55;
}
.sv-overview__map-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

/* Map preview carousel */
.sv-overview-map__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2);
}
.sv-overview-map__head .sv-overview__kicker { margin-bottom: 0; }
.sv-overview-map__hint {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}
.sv-overview-map__viewport {
  width: 100%;
  min-width: 0;
}
.sv-overview-map__scroller {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  width: 100%;
  height: clamp(200px, 26vw, 280px);
  max-height: min(280px, 42vh);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.35);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  cursor: grab;
}
.sv-overview-map__scroller.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  scroll-snap-type: none;
}
.sv-overview-map__scroller::-webkit-scrollbar { display: none; }
.sv-overview-map__slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sv-overview-map__slide img {
  width: 100%;
  height: 100%;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}
.sv-overview-map__slide--square {
  background: rgba(0, 0, 0, 0.45);
}
.sv-overview-map__slide--square img {
  object-fit: contain;
  object-position: center;
}
.sv-overview-map__slide--wide img {
  object-fit: cover;
  object-position: center;
}
.sv-overview-map__label {
  position: absolute;
  left: var(--space-2);
  bottom: var(--space-2);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: rgba(6, 8, 14, 0.82);
  font-size: 10px;
  font-weight: 600;
  color: var(--text-secondary);
  pointer-events: none;
}
.sv-overview-map__dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: var(--space-2);
  padding: 2px 0;
}
.sv-overview-map__dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-pill);
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
  transition: width var(--motion), background var(--motion), opacity var(--motion);
}
.sv-overview-map__dot.is-active {
  width: 22px;
  background: var(--accent);
}
.sv-overview-map__dot:hover:not(.is-active) {
  background: rgba(255, 255, 255, 0.38);
}

.sv-overview__grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.sv-overview__card {
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}
.sv-overview .sv-overview__card {
  padding: var(--space-4) 0;
  border: none;
  border-radius: 0;
  background: none;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.sv-overview__card h3,
.sv-overview__card .sv-overview__kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--space-3);
}
.sv-overview__desc { font-size: 14px; line-height: 1.55; color: var(--text-secondary); margin: 0; }
.sv-overview__details {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.sv-overview__details div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: var(--space-2);
}
.sv-overview__details dt { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; }
.sv-overview__details dd { font-size: 13px; color: var(--text-secondary); }
.sv-overview__details code { color: var(--accent-bright); font-family: ui-monospace, monospace; }
.sv-overview__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--space-3); }
.sv-staff { display: flex; flex-direction: column; gap: 0; }
.sv-staff__row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.sv-staff__empty-group {
  padding: var(--space-2) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.sv-staff__empty-group:last-child { border-bottom: none; }
.sv-staff__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.sv-staff__avatar--letter {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--accent), #00a8c4);
  font-weight: 700;
  color: #000;
  font-size: 16px;
}
.sv-staff__copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sv-staff__copy strong { font-size: 14px; }
.sv-staff__copy span { font-size: 12px; color: var(--muted); }
.sv-staff__status { font-size: 11px; font-weight: 600; color: var(--muted); }
.sv-staff__status--online { color: #6ee7a8; }
.sv-staff__empty-group { padding-top: var(--space-2); border-top: 1px solid var(--border); }
.sv-staff__group-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.sv-staff__none { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* ── Chat rooms ── */
.sv-chat {
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 0;
  min-height: 380px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.sv-chat--shell { min-height: 420px; }
@media (max-width: 520px) {
  .sv-chat { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
}
.sv-chat__sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  background: rgba(0, 0, 0, 0.35);
  border-right: 1px solid var(--border);
  padding: var(--space-3) var(--space-2);
  min-height: 0;
}
@media (max-width: 520px) {
  .sv-chat__sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border);
    max-height: 140px;
  }
}
.sv-chat__sidebar-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  padding: 0 6px;
}
.sv-chat__count {
  color: var(--accent-bright);
  font-variant-numeric: tabular-nums;
}
.sv-chat__rooms {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}
.sv-chat__room {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 8px;
  border: none;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background var(--motion), color var(--motion);
  position: relative;
}
.sv-chat__room:hover { background: rgba(255, 255, 255, 0.05); color: var(--text); }
.sv-chat__room.active {
  background: var(--accent-muted);
  color: var(--accent-bright);
}
.sv-chat__sidebar-hash,
.sv-chat__room-hash {
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  flex-shrink: 0;
  width: 14px;
  text-align: center;
}
.sv-chat__room.active .sv-chat__sidebar-hash { color: var(--accent-bright); }
.sv-chat__sidebar-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.55;
}
.sv-chat__room.active .sv-chat__sidebar-icon { opacity: 1; color: #f0c674; }
.sv-chat__room-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sv-chat__unread {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(0, 212, 238, 0.6);
}
.sv-chat__add {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--motion), color var(--motion);
}
.sv-chat__add:hover { border-color: var(--accent); color: var(--accent-bright); }
.sv-chat__main {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
}
.sv-chat__header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}
.sv-chat__header-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(0, 212, 238, 0.1);
  color: var(--accent-bright);
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
}
.sv-chat__header-icon svg { width: 16px; height: 16px; }
.sv-chat__header h3 { font-size: 15px; font-weight: 700; line-height: 1.2; }
.sv-chat__header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-left: auto;
  flex-shrink: 0;
}
.sv-chat__online-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  background: rgba(110, 231, 168, 0.1);
  border: 1px solid rgba(110, 231, 168, 0.2);
  font-size: 11px;
  font-weight: 600;
  color: #6ee7a8;
}
.sv-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
  flex-shrink: 0;
}
.sv-dot--online {
  background: #6ee7a8;
  box-shadow: 0 0 8px rgba(110, 231, 168, 0.55);
}
.sv-chat__messages-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.sv-chat__date-divider {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4) var(--space-2);
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.sv-chat__date-divider::before,
.sv-chat__date-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.sv-chat__date-divider span {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}
.sv-chat__messages {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 200px;
  max-height: 320px;
  overflow-y: auto;
  padding: 0 var(--space-3) var(--space-3);
  scroll-behavior: smooth;
}
.sv-chat__compose-bar {
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
}
.sv-chat__compose-bar.is-disabled { opacity: 0.55; }
.sv-chat__compose-bar .server-live__chat-compose {
  align-items: center;
  padding: 4px 4px 4px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  transition: border-color var(--motion), box-shadow var(--motion);
}
.sv-chat__compose-bar .server-live__chat-compose:focus-within {
  border-color: rgba(0, 212, 238, 0.45);
  box-shadow: 0 0 0 3px rgba(0, 212, 238, 0.08);
}
.sv-chat__compose-bar .server-live__chat-compose input {
  border: none;
  background: transparent;
  padding: 8px 0;
}
.sv-chat__compose-btn {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 16px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--motion), color var(--motion);
}
.sv-chat__compose-btn:hover:not(:disabled) { background: rgba(255, 255, 255, 0.06); color: var(--text); }
.sv-chat__send { flex-shrink: 0; border-radius: var(--radius-pill) !important; }

/* ── Chat messages (Discord-style) ── */
.sv-msg {
  display: flex;
  gap: var(--space-3);
  padding: 4px 8px;
  border-radius: var(--radius-md);
  transition: background var(--motion);
}
.sv-msg:hover { background: rgba(255, 255, 255, 0.03); }
.sv-msg--continued { margin-top: -2px; padding-top: 1px; }
.sv-msg__avatar-spacer { width: 36px; flex-shrink: 0; }
.sv-msg__body { flex: 1; min-width: 0; }
.sv-msg__meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 2px;
}
.sv-msg__meta--hover { opacity: 0; transition: opacity var(--motion); }
.sv-msg:hover .sv-msg__meta--hover { opacity: 1; }
.sv-msg__meta time {
  font-size: 10px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.sv-msg__text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0;
  word-break: break-word;
}
.sv-msg--mine .sv-msg__text { color: var(--text); }
.sv-msg-mod {
  margin-left: auto;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 0 4px;
  font-size: 16px;
  line-height: 1;
  opacity: 0;
  transition: opacity var(--motion), color var(--motion);
}
.sv-msg:hover .sv-msg-mod { opacity: 1; }
.sv-msg-mod:hover { color: var(--accent-bright); }

/* ── Shared avatars ── */
.sv-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 700;
  color: #000;
  flex-shrink: 0;
  background: hsl(var(--avatar-hue, 186), 65%, 55%);
  text-transform: uppercase;
}
.sv-avatar--sm { width: 24px; height: 24px; font-size: 9px; }
.sv-avatar--md { width: 36px; height: 36px; font-size: 12px; }

/* ── Voice ── */
.sv-voice {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.sv-voice__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border);
}
.sv-voice__header-copy h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 2px;
}
.sv-voice__header-copy p {
  font-size: 12px;
  color: var(--muted);
}
.sv-voice__live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}
.sv-voice__live-badge--on {
  color: #6ee7a8;
  background: rgba(110, 231, 168, 0.08);
  border-color: rgba(110, 231, 168, 0.25);
}
.sv-voice__live-badge--on .sv-dot {
  background: #6ee7a8;
  animation: svVoicePulse 2s ease-in-out infinite;
}
@keyframes svVoicePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(110, 231, 168, 0.5); }
  50% { box-shadow: 0 0 0 4px rgba(110, 231, 168, 0); }
}
.sv-voice__list { display: flex; flex-direction: column; gap: var(--space-2); }
.sv-voice__channel {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: border-color var(--motion), background var(--motion), transform var(--motion), box-shadow var(--motion);
}
.sv-voice__channel:hover {
  border-color: rgba(0, 212, 238, 0.35);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}
.sv-voice__channel.active {
  border-color: var(--accent);
  background: var(--accent-muted);
  box-shadow: 0 0 24px rgba(0, 212, 238, 0.12);
}
.sv-voice__channel-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 212, 238, 0.1);
  flex-shrink: 0;
  transition: background var(--motion), box-shadow var(--motion);
}
.sv-voice__channel-icon svg { width: 22px; height: 22px; color: var(--accent-bright); }
.sv-voice__channel-icon--live {
  background: rgba(0, 212, 238, 0.18);
  box-shadow: 0 0 16px rgba(0, 212, 238, 0.25);
  animation: svVoiceIconGlow 2.5s ease-in-out infinite;
}
@keyframes svVoiceIconGlow {
  0%, 100% { box-shadow: 0 0 12px rgba(0, 212, 238, 0.2); }
  50% { box-shadow: 0 0 20px rgba(0, 212, 238, 0.45); }
}
.sv-voice__channel-copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.sv-voice__channel-copy strong { font-size: 14px; font-weight: 600; }
.sv-voice__channel-copy span { font-size: 12px; color: var(--muted); }
.sv-voice__capacity {
  display: block;
  height: 3px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  max-width: 120px;
}
.sv-voice__capacity span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width var(--motion);
}
.sv-voice__capacity--busy span { background: #fbbf24; }
.sv-voice__capacity--full span { background: #f87171; }
.sv-voice__participants {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.sv-voice__participants .sv-avatar {
  margin-left: -8px;
  border: 2px solid var(--bg-elevated);
}
.sv-voice__participants .sv-avatar:first-child { margin-left: 0; }
.sv-voice__participants-more {
  margin-left: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}
.sv-voice__join {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-bright);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: rgba(0, 212, 238, 0.12);
  border: 1px solid rgba(0, 212, 238, 0.2);
  flex-shrink: 0;
  transition: background var(--motion), transform var(--motion);
}
.sv-voice__channel.active .sv-voice__join {
  background: rgba(110, 231, 168, 0.15);
  border-color: rgba(110, 231, 168, 0.3);
  color: #6ee7a8;
}
.sv-voice__channel:hover .sv-voice__join { background: rgba(0, 212, 238, 0.2); }
.sv-voice__dock {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 212, 238, 0.35);
  background: linear-gradient(135deg, rgba(0, 212, 238, 0.12) 0%, rgba(0, 0, 0, 0.4) 100%);
  box-shadow: var(--shadow-glow);
}
.sv-voice__dock-wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 24px;
  flex-shrink: 0;
}
.sv-voice__dock-wave span {
  width: 3px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent-bright);
  animation: svVoiceBar 0.8s ease-in-out infinite;
}
.sv-voice__dock-wave span:nth-child(2) { animation-delay: 0.15s; height: 14px; }
.sv-voice__dock-wave span:nth-child(3) { animation-delay: 0.3s; height: 18px; }
.sv-voice__dock-wave span:nth-child(4) { animation-delay: 0.45s; height: 12px; }
@keyframes svVoiceBar {
  0%, 100% { transform: scaleY(0.5); opacity: 0.5; }
  50% { transform: scaleY(1); opacity: 1; }
}
.sv-voice__dock-copy { flex: 1; min-width: 0; }
.sv-voice__dock-copy strong { display: block; font-size: 13px; font-weight: 700; }
.sv-voice__dock-copy span { font-size: 11px; color: var(--muted); }
.sv-voice__dock-controls { display: flex; gap: 6px; flex-shrink: 0; }
.sv-voice__dock-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  font-size: 14px;
  cursor: pointer;
  transition: background var(--motion), border-color var(--motion);
}
.sv-voice__dock-btn:hover { background: rgba(255, 255, 255, 0.1); }
.sv-voice__dock-btn--leave {
  width: auto;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.35);
  background: rgba(248, 113, 113, 0.1);
}
.sv-voice__add { align-self: flex-start; }
.sv-voice--empty { align-items: center; text-align: center; padding: var(--space-6) var(--space-4); }
.sv-voice__empty-title { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.sv-voice__empty-hint { font-size: 13px; color: var(--muted); line-height: 1.45; max-width: 32ch; margin-bottom: var(--space-4); }
.sv-voice__empty-art {
  position: relative;
  width: 88px;
  height: 88px;
  margin-bottom: var(--space-2);
}
.sv-voice__empty-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(0, 212, 238, 0.25);
  animation: svVoiceRing 3s ease-in-out infinite;
}
.sv-voice__empty-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}
@keyframes svVoiceRing {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.08); opacity: 1; }
}

/* ── Events + calendar ── */
.sv-events { display: flex; flex-direction: column; gap: var(--space-4); }
.sv-events__hero {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 160px;
  cursor: default;
}
.sv-events__hero[data-event-id] { cursor: pointer; }
.sv-events__hero-banner {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.sv-events__hero-banner--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  opacity: 0.5;
}
.sv-events__hero-banner--placeholder.sv-events__hero-banner--wipe { background: linear-gradient(135deg, #78350f 0%, #1c1c1e 100%); }
.sv-events__hero-banner--placeholder.sv-events__hero-banner--tournament { background: linear-gradient(135deg, #854d0e 0%, #1c1c1e 100%); }
.sv-events__hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.85) 100%);
}
.sv-events__hero-body {
  position: relative;
  z-index: 1;
  padding: var(--space-5) var(--space-4) var(--space-4);
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 80px;
}
.sv-events__hero-kicker {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-bright);
}
.sv-events__hero-body h3 { font-size: 20px; font-weight: 700; line-height: 1.25; }
.sv-events__hero-when { font-size: 13px; color: rgba(255, 255, 255, 0.75); }
.sv-events__hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
}
.sv-events__hero-countdown {
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: rgba(0, 212, 238, 0.15);
  color: var(--accent-bright);
  font-weight: 700;
}
.sv-events__hero-rsvp {
  align-self: flex-start;
  margin-top: var(--space-2);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background var(--motion), border-color var(--motion);
}
.sv-events__hero-rsvp:hover { background: rgba(0, 212, 238, 0.2); border-color: var(--accent); }
.sv-events__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
  justify-content: space-between;
}
.sv-events__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.sv-events__filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--motion), color var(--motion), background var(--motion);
}
.sv-events__filter span {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}
.sv-events__filter.active {
  border-color: var(--accent);
  color: var(--accent-bright);
  background: var(--accent-muted);
}
.sv-events__filter.active span { background: rgba(0, 212, 238, 0.2); color: var(--accent-bright); }
.sv-events__toolbar-actions {
  display: flex;
  gap: var(--space-2);
  align-items: center;
}
.sv-events__cal-toggle svg { width: 14px; height: 14px; margin-right: 4px; vertical-align: -2px; }
.sv-events__week-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.sv-events__day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 4px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  cursor: pointer;
  transition: border-color var(--motion), background var(--motion);
  position: relative;
}
.sv-events__day:hover { border-color: rgba(0, 212, 238, 0.35); background: rgba(255, 255, 255, 0.04); }
.sv-events__day--today {
  border-color: var(--accent);
  background: var(--accent-muted);
  color: var(--accent-bright);
}
.sv-events__day--has-event .sv-events__day-num { font-weight: 700; color: var(--text); }
.sv-events__day-label { font-size: 10px; font-weight: 600; text-transform: uppercase; }
.sv-events__day-num { font-size: 15px; font-weight: 600; }
.sv-events__day-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  position: absolute;
  bottom: 5px;
}
.sv-calendar {
  padding: var(--space-3);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}
.sv-cal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-3);
  font-size: 14px;
  font-weight: 600;
}
.sv-cal__nav {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 18px;
}
.sv-cal__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 4px;
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
}
.sv-cal__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.sv-cal__cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-secondary);
  font-size: 12px;
  cursor: pointer;
}
.sv-cal__cell:hover:not(.sv-cal__cell--pad) { background: rgba(255, 255, 255, 0.06); }
.sv-cal__cell--pad { pointer-events: none; }
.sv-events__list-wrap h3 {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: var(--space-2);
}

/* ── Players ── */
.sv-players__filters {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}
.sv-players__filter {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.sv-players__filter.active {
  border-color: var(--accent);
  color: var(--accent-bright);
  background: var(--accent-muted);
}
.sv-players__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}
@media (min-width: 520px) {
  .sv-players__layout { grid-template-columns: 1fr 1fr; }
}
.sv-players__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 280px;
  overflow-y: auto;
}
.sv-player__row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: border-color var(--motion), background var(--motion);
}
.sv-player__row:hover { background: rgba(255, 255, 255, 0.05); }
.sv-player__row.selected {
  border-color: rgba(0, 212, 238, 0.4);
  background: var(--accent-muted);
}
.sv-player__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.sv-player__avatar--letter {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--accent), #00a8c4);
  font-weight: 700;
  color: #000;
  font-size: 14px;
}
.sv-player__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6ee7a8;
  margin-left: -14px;
  margin-top: 20px;
  box-shadow: 0 0 8px rgba(110, 231, 168, 0.5);
}
.sv-player__name { flex: 1; font-size: 14px; font-weight: 500; min-width: 0; }
.sv-player__role {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: rgba(0, 212, 238, 0.15);
  color: var(--accent-bright);
}
.sv-player-detail {
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-2);
}
.sv-player-detail__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
}
.sv-player-detail__avatar--letter {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--accent), #00a8c4);
  font-family: var(--font-cyber);
  font-size: 28px;
  font-weight: 700;
  color: #000;
}
.sv-player-detail h3 { font-size: 18px; font-weight: 700; }
.sv-player-detail__role { font-size: 12px; color: var(--accent-bright); font-weight: 600; }
.sv-player-detail__status { font-size: 12px; color: var(--muted); }
.sv-player-detail__bio { font-size: 13px; color: var(--text-secondary); line-height: 1.45; margin-top: var(--space-2); }
.sv-player-detail__bio--empty { color: var(--muted); font-style: italic; }

/* ── Map ── */
.sv-map { display: flex; flex-direction: column; gap: var(--space-5); }
.sv-map__block { display: flex; flex-direction: column; gap: var(--space-3); }
.sv-map__block-head {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
}
.sv-map__upload { align-self: flex-start; }
.sv-map__ratio-note {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.sv-map__frame--square,
.sv-map__frame--wide,
.sv-map__frame {
  position: relative;
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background-size: cover;
  background-position: center;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  transition: border-color var(--motion);
}
.sv-map__frame--square { aspect-ratio: 1 / 1; }
.sv-map__frame--wide { aspect-ratio: 16 / 9; }
.sv-map__frame:hover { border-color: rgba(0, 212, 238, 0.35); }
.sv-map__empty-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  font-size: 13px;
  color: var(--muted);
  pointer-events: none;
}

/* ── Access badges ── */
.sv-access-badge {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
}
.sv-access-badge--staff { background: rgba(255, 159, 10, 0.15); color: #f0c674; }
.sv-access-badge--moderator { background: rgba(96, 165, 250, 0.15); color: #93c5fd; }
.sv-access-badge--admin { background: rgba(232, 121, 249, 0.15); color: #e879f9; }
.sv-staff__role-tag { font-size: 11px; font-weight: 600; color: var(--accent-bright); }

/* ── Channel edit ── */
.sv-channel-edit {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  cursor: pointer;
  flex-shrink: 0;
}
.sv-channel-edit:hover { color: var(--accent-bright); border-color: rgba(0, 212, 238, 0.35); }
.sv-voice__channel-wrap { display: flex; align-items: stretch; gap: var(--space-2); }
.sv-voice__channel-wrap .sv-voice__channel { flex: 1; }
.sv-channel-edit--voice { align-self: center; }
.sv-chat__header { justify-content: space-between; }
.sv-chat__header-copy { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.sv-chat__room-desc { font-size: 12px; color: var(--muted); margin: 0; }

/* ── Events cards ── */
.sv-events__cards-wrap h3 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 0 0 var(--space-3);
}
.sv-event-cards { display: grid; grid-template-columns: 1fr; gap: var(--space-3); }
@media (min-width: 520px) { .sv-event-cards { grid-template-columns: repeat(2, 1fr); } }
.sv-event-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.025);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: default;
  transition: border-color var(--motion), transform var(--motion), box-shadow var(--motion);
}
.sv-event-card[data-event-id] { cursor: pointer; }
.sv-event-card[data-event-id]:hover {
  border-color: rgba(0, 212, 238, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}
.sv-event-card__media {
  position: relative;
  overflow: hidden;
}
.sv-event-card__banner {
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  background-color: rgba(0, 212, 238, 0.06);
  transition: transform var(--duration-normal) var(--ease-out-expo);
}
.sv-event-card:hover .sv-event-card__banner { transform: scale(1.03); }
.sv-event-card__banner-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.65) 100%);
  pointer-events: none;
}
.sv-event-card__banner--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  opacity: 0.7;
}
.sv-event-card__banner--wipe { background: linear-gradient(145deg, #92400e, #1c1c1e); }
.sv-event-card__banner--tournament { background: linear-gradient(145deg, #a16207, #1c1c1e); }
.sv-event-card__banner--community { background: linear-gradient(145deg, #0e7490, #1c1c1e); }
.sv-event-card__banner--meetup { background: linear-gradient(145deg, #15803d, #1c1c1e); }
.sv-event-card__banner--raid { background: linear-gradient(145deg, #be123c, #1c1c1e); }
.sv-event-card__banner--other { background: linear-gradient(145deg, #374151, #1c1c1e); }
.sv-event-card__type-pill {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  color: var(--accent-bright);
  border: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 1;
}
.sv-event-card--wipe .sv-event-card__type-pill { color: #fbbf24; }
.sv-event-card--tournament .sv-event-card__type-pill { color: #fde047; }
.sv-event-card--raid .sv-event-card__type-pill { color: #fb7185; }
.sv-event-card__countdown {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(0, 212, 238, 0.2);
  color: var(--accent-bright);
  border: 1px solid rgba(0, 212, 238, 0.3);
  z-index: 1;
}
.sv-event-card__body { padding: var(--space-3); display: flex; flex-direction: column; gap: 6px; flex: 1; }
.sv-event-card__body h4 { font-size: 15px; font-weight: 700; line-height: 1.35; }
.sv-event-card__when {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}
.sv-event-card__when svg { width: 13px; height: 13px; flex-shrink: 0; opacity: 0.7; }
.sv-event-card__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
}
.sv-event-card__meta svg { width: 13px; height: 13px; flex-shrink: 0; opacity: 0.7; }
.sv-event-card__desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-top: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sv-event-card__footer {
  padding: 0 var(--space-3) var(--space-3);
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
}
.sv-events__past-list { list-style: none; margin: var(--space-2) 0 0; padding: 0; }
.sv-events__past-list li { padding: var(--space-2) 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.sv-events__past-list li strong { display: block; font-size: 13px; margin-bottom: 2px; }
.sv-events__past-list li span { font-size: 12px; color: var(--muted); }
.sv-event-card__rsvp {
  width: 100%;
  padding: 9px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--motion), border-color var(--motion), color var(--motion);
}
.sv-event-card__rsvp:hover { border-color: rgba(0, 212, 238, 0.35); color: var(--accent-bright); }
.sv-event-card__rsvp.is-active {
  background: var(--accent-muted);
  border-color: var(--accent);
  color: var(--accent-bright);
}
.sv-cal__cell--event { background: rgba(0, 212, 238, 0.15); color: var(--accent-bright); font-weight: 700; }

/* ── Rules editor ── */
.sv-rules__hint { font-size: 12px; color: var(--muted); margin-bottom: var(--space-3); }
.sv-rules__editor {
  width: 100%;
  min-height: 200px;
  padding: var(--space-3);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  line-height: 1.55;
  resize: vertical;
  margin-bottom: var(--space-3);
}

/* ── Hub style + staff settings ── */
.sv-hub-style__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  margin-bottom: var(--space-2);
}
.sv-hub-style__chevron { color: var(--accent-bright); font-size: 16px; }
.sv-hub-style__panel.hidden,
.sv-staff-settings__panel.hidden { display: none; }
.sv-hub-style__hint { font-size: 12px; color: var(--muted); margin-bottom: var(--space-3); line-height: 1.45; }
.sv-hub-style__row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: var(--space-2);
  align-items: center;
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--border);
}
.sv-hub-style__row:last-child { border-bottom: none; }
.sv-hub-style__label { font-size: 13px; color: var(--text-secondary); }
.sv-hub-style__select {
  padding: 6px 8px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 12px;
}
.sv-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--border);
}
.sv-toggle-row:last-child { border-bottom: none; }
.sv-toggle-row span { font-size: 13px; color: var(--text-secondary); }
.sv-toggle-row small { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.sv-toggle-row.is-disabled { opacity: 0.45; pointer-events: none; }

/* ── Hub modals ── */
.server-hub-modal {
  position: fixed;
  inset: 0;
  z-index: 50000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.server-hub-modal.hidden { display: none !important; }
.server-hub-modal__scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.65); }
.server-hub-modal__sheet {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  max-height: 90dvh;
  overflow-y: auto;
  background: var(--bg-elevated);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  border: 1px solid var(--border);
  padding: var(--space-4);
  animation: serverPanelIn 0.3s var(--ease-out-expo);
}
@media (min-width: 520px) {
  .server-hub-modal { align-items: center; }
  .server-hub-modal__sheet { border-radius: var(--radius-xl); margin: var(--space-4); }
}
.server-hub-modal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-4); }
.server-hub-modal__head h3 { font-size: 18px; font-weight: 700; }
.server-hub-modal__close { border: none; background: transparent; color: var(--muted); font-size: 24px; cursor: pointer; line-height: 1; }
.server-hub-modal__form { display: flex; flex-direction: column; gap: var(--space-3); }
.sv-modal-field { display: flex; flex-direction: column; gap: 6px; }
.sv-modal-field span { font-size: 12px; font-weight: 600; color: var(--text-secondary); }
.sv-modal-field input,
.sv-modal-field select,
.sv-modal-field textarea {
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font: inherit;
  font-size: 14px;
}
.sv-modal-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.sv-modal-field-hint { font-size: 11px; color: var(--muted); margin: 0; }
.server-hub-modal__actions {
  display: flex;
  gap: var(--space-2);
  justify-content: flex-end;
  margin-top: var(--space-2);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
}
.server-hub-modal__body { display: flex; flex-direction: column; gap: var(--space-2); }
.server-hub-modal__sheet--wide { max-width: 400px; }
.server-hub-modal__suboverlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.server-hub-modal__suboverlay.hidden { display: none !important; }
.server-hub-modal__suboverlay-scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  border-radius: inherit;
}
.server-hub-modal__suboverlay-sheet {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: 85%;
  overflow-y: auto;
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  border: 1px solid var(--border);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.35);
}

/* ── Event rewards ── */
.sv-rewards-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
}
.sv-rewards-field__copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sv-rewards-field__label { font-size: 13px; font-weight: 700; }
.sv-rewards-field__meta { font-size: 11px; color: var(--muted); }
.sv-rewards-field__preview { font-size: 11px; color: var(--accent-bright); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sv-rewards-slots { display: flex; flex-direction: column; gap: var(--space-3); margin: var(--space-3) 0; }
.sv-rewards-slot { display: flex; flex-direction: column; gap: 6px; }
.sv-rewards-slot__label { font-size: 13px; font-weight: 600; }
.sv-rewards-slot input {
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font: inherit;
  font-size: 14px;
}
.sv-event-card__rewards { font-size: 12px; color: var(--accent-bright); margin-top: 4px; }
.sv-day-detail__rewards { display: block; font-size: 11px; color: var(--accent-bright); margin-top: 4px; }

/* ── Edit mode ── */
.server-live { position: relative; }
.server-live__edit-mode {
  position: absolute;
  top: max(12px, env(safe-area-inset-top));
  right: var(--space-4);
  z-index: 5;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(0, 212, 238, 0.35);
  background: rgba(0, 0, 0, 0.55);
  color: var(--accent-bright);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.server-live__edit-mode.is-active {
  background: var(--accent-muted);
  border-color: var(--accent);
}
.server-live--edit-mode .sv-chat__room--editable,
.server-live--edit-mode .sv-voice__channel--editable {
  outline: 1px dashed rgba(0, 212, 238, 0.35);
}
.server-live__joined-badge {
  font-size: 12px;
  font-weight: 600;
  color: #6ee7a8;
  padding: 6px 10px;
}

/* ── Banner overlays ── */
.server-live__banner-overlay,
.server-live__hero .server-live__banner-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.server-live__banner-overlay--gradient-dark {
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.55) 100%);
}
.server-live__banner-overlay--gradient-accent {
  background: linear-gradient(135deg, rgba(0, 212, 238, 0.2) 0%, transparent 45%, rgba(232, 121, 249, 0.15) 100%);
}
.server-live__banner-overlay--shimmer {
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.08) 45%, transparent 60%);
  background-size: 200% 100%;
  animation: svBannerShimmer 8s ease-in-out infinite;
}
@keyframes svBannerShimmer {
  0%, 100% { background-position: 120% 0; }
  50% { background-position: -20% 0; }
}
.sv-overview__identity { position: relative; }
.sv-overview__identity .server-live__banner-overlay { border-radius: inherit; }

/* ── Calendar redesign ── */
.sv-calendar--grid .sv-cal__pickers {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  flex-wrap: wrap;
}
.sv-cal__picker {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 120px;
}
.sv-cal__picker span { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; }
.sv-cal__picker select {
  padding: 8px 10px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 13px;
}
.sv-calendar--grid .sv-cal__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.sv-calendar--grid .sv-cal__cell {
  aspect-ratio: 1;
  min-height: 72px;
  align-items: flex-start;
  justify-content: flex-start;
  flex-direction: column;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  gap: 4px;
  overflow: hidden;
}
.sv-calendar--grid .sv-cal__cell--pad {
  border: none;
  background: transparent;
  min-height: 0;
}
.sv-cal__day-num {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  align-self: flex-end;
}
.sv-cal__pills {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  margin-top: auto;
}
.sv-cal__pill {
  display: block;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 4px;
  border-radius: 4px;
  background: rgba(0, 212, 238, 0.15);
  color: var(--accent-bright);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sv-cal__pill--more { background: rgba(255, 255, 255, 0.08); color: var(--muted); }
.sv-cal__cell--selected { border-color: var(--accent); background: var(--accent-muted); }
.sv-day-detail {
  margin-top: var(--space-3);
  padding: var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
}
.sv-day-detail__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-2); }
.sv-day-detail__head h4 { font-size: 14px; font-weight: 700; }
.sv-day-detail__close { border: none; background: transparent; color: var(--muted); font-size: 20px; cursor: pointer; }
.sv-day-detail__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.sv-day-detail__item { padding: var(--space-2); border-radius: var(--radius-md); background: rgba(255, 255, 255, 0.03); cursor: pointer; }
.sv-day-detail__item strong { display: block; font-size: 13px; }
.sv-day-detail__item span { font-size: 11px; color: var(--muted); }
.sv-day-detail__item p { font-size: 12px; color: var(--text-secondary); margin-top: 4px; }
.sv-day-detail__empty { font-size: 12px; color: var(--muted); }
.sv-event-card__recur { margin-left: 6px; opacity: 0.8; font-size: 10px; }

/* ── Calendar overlay (compact popup) ── */
.sv-calendar--overlay .sv-cal__pickers { margin-bottom: var(--space-2); }
.sv-calendar--overlay .sv-cal__picker select { padding: 6px 8px; font-size: 12px; }
.sv-calendar--overlay .sv-cal__weekdays { font-size: 10px; margin-bottom: 4px; }
.sv-cal__grid--compact {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}
.sv-cal__grid--compact .sv-cal__cell--compact {
  min-height: 38px;
  aspect-ratio: auto;
  align-items: flex-start;
  justify-content: flex-start;
  flex-direction: column;
  padding: 3px 4px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  gap: 2px;
  overflow: hidden;
  cursor: pointer;
}
.sv-cal__grid--compact .sv-cal__cell--pad {
  border: none;
  background: transparent;
  min-height: 0;
  pointer-events: none;
}
.sv-cal__grid--compact .sv-cal__day-num { font-size: 10px; }
.sv-cal__grid--compact .sv-cal__pill { font-size: 8px; padding: 1px 3px; }
.sv-cal__hint { font-size: 11px; color: var(--muted); text-align: center; margin: var(--space-2) 0 0; }
.sv-day-detail--overlay {
  margin-top: 0;
  padding: 0;
  border: none;
  background: transparent;
}
.sv-day-detail__back {
  border: none;
  background: transparent;
  color: var(--accent-bright);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  padding: 0;
  margin-right: auto;
}

/* ── Chat moderation + join ── */
.sv-chat__join-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  margin: 0 var(--space-4) var(--space-2);
  padding: 8px 12px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed var(--border);
}
.sv-chat__compose-bar.is-disabled,
.server-live__chat-compose.is-disabled { opacity: 0.5; }
.sv-msg-author {
  display: inline;
  border: none;
  background: transparent;
  padding: 0;
  cursor: default;
  text-align: left;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.sv-msg-author--staff { cursor: pointer; color: var(--accent-bright); }
.sv-msg-author--staff:hover { text-decoration: underline; }
.sv-mod-actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
.sv-mod-duration { margin-top: var(--space-2); }
.sv-mod-duration.hidden { display: none; }
body.server-preview-open .modal-scrim.onboarding-game-sheet {
  z-index: 55000;
}
