/* =========================================================
   SANKO — Robinhood ecosystem
   Adventure wood UI DNA: warm browns, full-viewport dark
   stage, right panel, floating icons.
   ========================================================= */

@font-face {
  font-family: "RuneScape-Quill";
  src: url("quest/fonts/RuneScape-Quill.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "RuneScape";
  src: url("quest/fonts/RuneScape-Plain-12.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "RuneScape";
  src: url("quest/fonts/RuneScape-Bold-12.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #1a0a00;
  --bg-deep: #0d0500;
  --wood-1: #5a4a2a;
  --wood-2: #3d2f1a;
  --wood-3: #2a1f0f;
  --wood-edge: #1a1108;
  --wood-outline: #4a3a1f;
  --parchment-1: #d4c4a0;
  --parchment-2: #b8a584;
  --parchment-3: #9d8a68;
  --ink: #2a1200;
  --cream: #f5e6c8;
  --cream-dim: #c9b085;
  --gold: #ffe602;
  --topbar-h: 44px;
  --footer-h: 48px;
  --panel-w: 420px;
  --radius-sm: 2px;
  --font-ui: "RuneScape-Quill", "RuneScape", Georgia, "Times New Roman", serif;
  --font-body: "RuneScape", Georgia, serif;
  --font-sans: "Helvetica Neue", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font-sans);
  overflow-x: hidden;
}

body {
  min-height: 100svh;
  position: relative;
}

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

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

img,
video {
  max-width: 100%;
  display: block;
}

/* ---------- Top bar ---------- */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
  background: linear-gradient(180deg, rgba(26, 10, 0, 0.95), rgba(26, 10, 0, 0.75));
  border-bottom: 1px solid rgba(90, 74, 42, 0.55);
  backdrop-filter: blur(8px);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.topbar-brand {
  white-space: nowrap;
  color: var(--cream);
}

.topbar-ca {
  color: var(--cream-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-ca strong {
  color: var(--cream);
  font-weight: 700;
}

.copy-ca-btn {
  margin-left: 6px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  border: 1px solid var(--wood-edge);
  background: linear-gradient(180deg, var(--wood-1), var(--wood-3));
  color: var(--cream);
  border-radius: var(--radius-sm);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}
.copy-ca-btn:hover {
  filter: brightness(1.1);
}
.copy-ca-btn.copied {
  color: var(--gold);
}

.topbar-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(245, 230, 200, 0.25);
  background: rgba(61, 47, 26, 0.75);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}
.topbar-pill:hover {
  background: rgba(90, 74, 42, 0.9);
  border-color: rgba(245, 230, 200, 0.45);
}
.topbar-pill:active {
  transform: scale(0.98);
}
.pools-pill {
  background: linear-gradient(180deg, #3d6b2a, #1f3d14);
  border-color: rgba(180, 255, 140, 0.25);
}
.is-hidden,
[hidden] {
  display: none !important;
}

/* X pill — polished coming-soon badge */
.x-pill {
  gap: 8px;
  padding: 4px 6px 4px 8px;
  background: linear-gradient(180deg, rgba(40, 30, 18, 0.95), rgba(18, 12, 6, 0.98));
  border: 1px solid rgba(245, 230, 200, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 2px 8px rgba(0, 0, 0, 0.35);
}
.x-pill:hover {
  background: linear-gradient(180deg, rgba(55, 42, 24, 0.98), rgba(28, 18, 8, 1));
  border-color: rgba(255, 230, 2, 0.35);
}
.x-pill .x-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #0a0a0a;
  color: #f5e6c8;
  border: 1px solid rgba(245, 230, 200, 0.35);
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}
.x-pill .x-icon svg {
  display: block;
}
.x-pill-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #1a0a00;
  background: linear-gradient(180deg, #ffe602 0%, #d4b400 100%);
  border: 1px solid rgba(90, 60, 0, 0.35);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 1px 3px rgba(0, 0, 0, 0.35);
  white-space: nowrap;
}
.x-pill.is-soon .x-pill-badge,
.x-pill[href="#x-soon"] .x-pill-badge {
  background: linear-gradient(180deg, #c9b085 0%, #9d8a68 100%);
  color: #1a1108;
  border-color: rgba(61, 47, 26, 0.45);
}
.x-pill.is-live .x-pill-badge {
  background: linear-gradient(180deg, #ffe602 0%, #d4b400 100%);
  color: #1a0a00;
}
.x-pill.is-disabled,
.x-pill[href="#x-soon"] {
  cursor: default;
}

/* Follow on X button — wood + icon row */
.rs-btn-x .rs-btn-main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.rs-btn-x .x-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(245, 230, 200, 0.35);
  color: var(--cream);
  flex-shrink: 0;
}
.rs-btn-x .x-icon svg {
  display: block;
}
.rs-btn-x .rs-btn-sub {
  display: inline-block;
  margin-top: 2px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #1a0a00;
  background: linear-gradient(180deg, #ffe602 0%, #d4b400 100%);
  border: 1px solid rgba(90, 60, 0, 0.35);
  text-shadow: none;
}

/* ---------- Stage / 3D canvas ---------- */
.stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse at 35% 45%, #3a220c 0%, #1a0a00 45%, #0a0300 100%);
  overflow: hidden;
}
#scene-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.stage-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 30%, rgba(0, 0, 0, 0.55) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, transparent 18%, transparent 75%, rgba(0, 0, 0, 0.55) 100%);
}
.stage-glow {
  position: absolute;
  left: 12%;
  top: 30%;
  width: min(55vw, 640px);
  height: min(55vw, 640px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 230, 2, 0.08) 0%, rgba(212, 196, 160, 0.04) 40%, transparent 70%);
  pointer-events: none;
  animation: glowPulse 6s ease-in-out infinite;
}
@keyframes glowPulse {
  0%,
  100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.06);
  }
}

/* CSS floating icons fallback */
.icon-float-layer {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.icon-float-layer.hidden {
  display: none;
}
.float-icon {
  position: absolute;
  width: 48px;
  height: 48px;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.65));
  animation: floatY var(--dur, 8s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  opacity: 0.92;
}
@keyframes floatY {
  0%,
  100% {
    transform: translateY(0) rotate(var(--rot, 0deg));
  }
  50% {
    transform: translateY(-18px) rotate(calc(var(--rot, 0deg) + 6deg));
  }
}

/* ---------- Main panel ---------- */
.panel-wrap {
  position: relative;
  z-index: 20;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--topbar-h) + 16px) 16px calc(var(--footer-h) + 20px);
  pointer-events: none;
}

.panel {
  pointer-events: auto;
  width: 100%;
  max-width: var(--panel-w);
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: calc(100svh - var(--topbar-h) - var(--footer-h) - 24px);
}

.panel-logo {
  width: 100%;
  max-width: 280px;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.7));
}

/* RuneScape-style wood buttons */
.rs-btn {
  flex: 1;
  text-align: center;
  padding: 12px 8px;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--cream);
  background: linear-gradient(180deg, var(--wood-1) 0%, var(--wood-2) 50%, var(--wood-3) 100%);
  border: 3px solid var(--wood-edge);
  border-radius: var(--radius-sm);
  outline: 1px solid var(--wood-outline);
  outline-offset: -5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9), 0 1px 0 rgba(0, 0, 0, 0.8);
  box-shadow:
    inset 0 2px 4px rgba(255, 255, 255, 0.1),
    inset 0 -2px 4px rgba(0, 0, 0, 0.6),
    inset 2px 0 2px rgba(0, 0, 0, 0.4),
    inset -2px 0 2px rgba(0, 0, 0, 0.4),
    2px 4px 12px rgba(0, 0, 0, 0.8);
  transition: filter 0.15s, transform 0.1s;
  user-select: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.rs-btn:hover {
  filter: brightness(1.08);
}
.rs-btn:active {
  transform: scale(0.98);
}
.rs-btn-sub {
  display: none;
  font-size: 10px;
  font-weight: 400;
  text-transform: none;
  color: #c1b8a0;
  letter-spacing: 0;
}

.cta-row {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

/* Wood shell + parchment panel */
.wood-shell {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.wood-panel {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border: 4px solid var(--wood-edge);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--parchment-1) 0%, var(--parchment-2) 50%, var(--parchment-3) 100%);
  box-shadow:
    inset 0 4px 12px rgba(0, 0, 0, 0.3),
    inset 0 -4px 12px rgba(0, 0, 0, 0.4),
    inset 4px 0 8px rgba(0, 0, 0, 0.2),
    inset -4px 0 8px rgba(0, 0, 0, 0.2),
    4px 8px 24px rgba(0, 0, 0, 0.7);
  outline: 2px solid #3d2f1a;
  outline-offset: -6px;
  overflow: hidden;
  color: var(--ink);
}

.tab-row {
  display: flex;
  gap: 0;
  flex-shrink: 0;
}

.mobile-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 0;
}
.mobile-tabs .tab-btn {
  flex: 1;
  border-radius: 6px 6px 0 0;
  border-bottom: none;
}
.desktop-tabs {
  display: none;
}

.tab-btn {
  flex: 1;
  padding: 10px 12px;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream);
  background: linear-gradient(180deg, #4a3a1f 0%, var(--wood-2) 55%, #1e1608 100%);
  border: 3px solid var(--wood-edge);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
  box-shadow:
    inset 0 2px 4px rgba(255, 255, 255, 0.08),
    inset 0 -2px 4px rgba(0, 0, 0, 0.5);
  transition: filter 0.15s, background 0.15s;
}
.tab-btn:hover {
  filter: brightness(1.06);
}
.tab-btn.active {
  background: linear-gradient(180deg, #6d5a3d 0%, #4a3a1f 50%, #3d2f1a 100%);
  color: #fff8e7;
  box-shadow:
    inset 0 2px 6px rgba(255, 255, 255, 0.12),
    inset 0 -1px 2px rgba(0, 0, 0, 0.35),
    0 2px 0 rgba(0, 0, 0, 0.2);
}

.wood-shade {
  height: 10px;
  flex-shrink: 0;
  pointer-events: none;
}
.wood-shade.top {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.08), transparent);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25);
}
.wood-shade.bottom {
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.08), transparent);
}

.panel-title {
  margin: 0 0 6px;
  text-align: center;
  font-family: var(--font-ui);
  font-size: 1.55rem;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.14em;
  color: var(--ink);
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.3), 0 3px 4px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.panel-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 4px 16px 16px;
  scrollbar-width: thin;
  scrollbar-color: #3d2f1a transparent;
}
.panel-scroll::-webkit-scrollbar {
  width: 8px;
}
.panel-scroll::-webkit-scrollbar-thumb {
  background: #3d2f1a;
  border-radius: 4px;
}

.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
  animation: fadeIn 0.25s ease;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* News */
.news-card {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(42, 18, 0, 0.18);
}
.news-card.secondary {
  border-bottom: none;
  opacity: 0.95;
}
.news-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 12px;
  margin-bottom: 8px;
}
.news-title {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.news-date {
  font-size: 0.8rem;
  font-weight: 700;
  color: #4a3818;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.news-thumb {
  width: 100%;
  border: 3px solid var(--wood-edge);
  border-radius: 2px;
  margin-bottom: 10px;
  box-shadow:
    inset 0 2px 6px rgba(0, 0, 0, 0.25),
    2px 4px 10px rgba(0, 0, 0, 0.35);
  outline: 1px solid #3d2f1a;
  outline-offset: -4px;
}
.news-body {
  margin: 0 0 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.45;
  color: #2d2010;
  white-space: pre-line;
}
.news-cta {
  width: 100%;
  margin-top: 4px;
  font-size: 0.95rem;
  padding: 10px 8px;
}

/* Gallery videos */
.gallery-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 8px;
}
.video-card {
  position: relative;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 3px solid var(--wood-edge);
  border-radius: 2px;
  cursor: pointer;
  box-shadow:
    inset 0 2px 6px rgba(0, 0, 0, 0.4),
    inset 0 -2px 6px rgba(0, 0, 0, 0.5),
    2px 4px 10px rgba(0, 0, 0, 0.6);
  outline: 1px solid #3d2f1a;
  outline-offset: -4px;
  background: #1a1108;
}
.video-card video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.play-orb {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  border: 3px solid rgba(245, 230, 200, 0.8);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  transition: transform 0.15s, background 0.15s;
}
.play-orb::after {
  content: "";
  position: absolute;
  left: 52%;
  top: 50%;
  transform: translate(-40%, -50%);
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent var(--cream);
}
.video-card:hover .play-orb {
  transform: translate(-50%, -50%) scale(1.1);
  background: rgba(0, 0, 0, 0.72);
  border-color: var(--cream);
}
.video-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 8px 10px;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--cream);
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.75), transparent);
}

/* ---------- Footer ---------- */
.site-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  min-height: var(--footer-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 14px;
  background: linear-gradient(0deg, rgba(26, 10, 0, 0.95), rgba(26, 10, 0, 0.55));
  border-top: 1px solid rgba(90, 74, 42, 0.4);
  backdrop-filter: blur(8px);
  font-size: 12px;
}
.footer-left,
.footer-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  opacity: 0.92;
  transition: opacity 0.15s, filter 0.15s, transform 0.1s;
}
.social-icon:hover {
  opacity: 1;
  filter: brightness(1.08);
}
.social-icon img {
  width: 22px;
  height: 22px;
  filter: invert(0.92) sepia(0.2) saturate(0.6);
}
.x-social {
  gap: 8px;
  padding: 4px 8px 4px 4px;
  border-radius: 999px;
  border: 1px solid rgba(245, 230, 200, 0.22);
  background: rgba(26, 16, 6, 0.65);
}
.x-social .x-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #0a0a0a;
  color: #f5e6c8;
  border: 1px solid rgba(245, 230, 200, 0.35);
}
.x-social-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #1a1108;
  background: linear-gradient(180deg, #ffe602 0%, #d4b400 100%);
  border: 1px solid rgba(90, 60, 0, 0.35);
  border-radius: 999px;
  padding: 3px 9px;
}
.footer-badge {
  padding: 4px 8px;
  border: 1px solid rgba(245, 230, 200, 0.2);
  border-radius: 4px;
  background: rgba(42, 31, 15, 0.65);
  color: var(--cream-dim);
  font-size: 11px;
}
.footer-badge.pools {
  background: rgba(40, 80, 30, 0.55);
  color: #d8f5c8;
  font-weight: 700;
}
.footer-note {
  color: rgba(245, 230, 200, 0.55);
  font-size: 11px;
}

/* ---------- Modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal[hidden] {
  display: none;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(4px);
}
.modal-card {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  background: linear-gradient(180deg, var(--wood-1), var(--wood-3));
  border: 3px solid var(--wood-edge);
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  outline: 1px solid var(--wood-outline);
  outline-offset: -5px;
  overflow: hidden;
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.35);
}
.modal-head h3 {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 1.1rem;
  color: var(--cream);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}
.modal-close {
  width: 36px;
  height: 36px;
  font-size: 28px;
  line-height: 1;
  color: var(--cream);
  border-radius: 4px;
}
.modal-close:hover {
  background: rgba(0, 0, 0, 0.25);
}
#modal-video {
  width: 100%;
  max-height: 70vh;
  background: #000;
  display: block;
}

/* ---------- Desktop layout: panel on right, icons breathe left ---------- */
@media (min-width: 768px) {
  .panel-wrap {
    justify-content: flex-end;
    padding-right: max(24px, calc((100vw - 1100px) / 2));
    padding-left: 40px;
  }
  .panel {
    max-height: min(720px, calc(100svh - var(--topbar-h) - var(--footer-h) - 32px));
  }
  .panel-logo {
    max-width: 320px;
    margin-bottom: 4px;
  }
  .rs-btn-sub {
    display: inline;
  }
  .mobile-tabs {
    display: none;
  }
  .desktop-tabs {
    display: flex;
  }
  .desktop-tabs .tab-btn {
    border-radius: 0;
    border-bottom: none;
  }
  .wood-panel {
    min-height: 420px;
  }
  .stage-glow {
    left: 18%;
  }
}

@media (min-width: 1024px) {
  .panel-wrap {
    padding-right: max(48px, calc(12vw));
  }
  :root {
    --panel-w: 440px;
  }
}

@media (max-width: 640px) {
  .topbar {
    font-size: 11px;
    padding: 0 8px;
    gap: 6px;
  }
  .topbar-ca {
    max-width: 36vw;
  }
  .topbar-pill {
    padding: 4px 8px;
    font-size: 10px;
  }
  .x-pill {
    padding: 3px 5px 3px 6px;
    gap: 6px;
  }
  .x-pill .x-icon {
    width: 20px;
    height: 20px;
  }
  .x-pill .x-icon svg {
    width: 12px;
    height: 12px;
  }
  .x-pill-badge {
    font-size: 8px;
    padding: 2px 6px;
  }
  .x-social-label {
    display: none;
  }
  .footer-note {
    display: none;
  }
  .panel-title {
    font-size: 1.3rem;
  }
  .rs-btn {
    font-size: 0.95rem;
    padding: 10px 6px;
  }
  .rs-btn-x .rs-btn-sub {
    display: inline-block;
  }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .float-icon,
  .stage-glow,
  .tab-content.active {
    animation: none;
  }
}
