/* ── Wormo Shell ─────────────────────────────────────────── */
.wormo-shell {
  display: flex;
  flex-direction: column;
  gap: 20px;
  color: #f8fafc;
  font-family: "Inter", sans-serif;
}

/* ── Hero Banner ─────────────────────────────────────────── */
.wormo-hero {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 34px 36px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background:
    radial-gradient(ellipse at 8% 0%, rgba(249,115,22,0.38) 0%, transparent 42%),
    radial-gradient(ellipse at 92% 0%, rgba(239,68,68,0.26) 0%, transparent 38%),
    radial-gradient(ellipse at 50% 110%, rgba(251,191,36,0.18) 0%, transparent 52%),
    linear-gradient(160deg, #0f172a 0%, #1e293b 50%, #0c1120 100%);
  border: 1px solid rgba(249,115,22,0.22);
  box-shadow:
    0 0 0 1px rgba(249,115,22,0.08) inset,
    0 28px 64px -20px rgba(0,0,0,0.72),
    0 0 80px -30px rgba(249,115,22,0.28);
}

/* Explosion shimmer sweep */
.wormo-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg,
    transparent 30%,
    rgba(249,115,22,0.06) 48%,
    rgba(251,191,36,0.09) 54%,
    transparent 70%);
  pointer-events: none;
}

/* Top edge fire line */
.wormo-hero::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(249,115,22,0.9) 25%,
    rgba(251,191,36,1) 50%,
    rgba(239,68,68,0.9) 75%,
    transparent 100%);
  border-radius: 28px 28px 0 0;
}

.wormo-hero-copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 auto;
}

.wormo-kicker {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(251,191,36,0.82);
  font-weight: 600;
}

.wormo-title {
  font-family: "Oswald", "Space Grotesk", sans-serif;
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  line-height: 1;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, #fff7ed 0%, #fbbf24 40%, #f97316 70%, #ef4444 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 12px rgba(249,115,22,0.45));
}

.wormo-copy {
  font-size: 0.95rem;
  color: rgba(226,232,240,0.78);
  max-width: 460px;
  line-height: 1.55;
}

.wormo-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.wormo-pill {
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid rgba(249,115,22,0.28);
  background: rgba(15,23,42,0.64);
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(251,191,36,0.92);
  letter-spacing: 0.04em;
}

.wormo-hero-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 0 0 auto;
}

/* ── Main 2-Column Layout ────────────────────────────────── */
.wormo-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: 18px;
  align-items: start;
}

.wormo-main {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.wormo-sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: sticky;
  top: 12px;
  max-height: 90vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(249,115,22,0.3) transparent;
}

.wormo-sidebar::-webkit-scrollbar { width: 4px; }
.wormo-sidebar::-webkit-scrollbar-thumb { background: rgba(249,115,22,0.3); border-radius: 4px; }

/* ── Battlefield Canvas Card ─────────────────────────────── */
.wormo-canvas-card {
  border-radius: 22px 22px 0 0;
  overflow: hidden;
  border: 1px solid rgba(249,115,22,0.18);
  border-bottom: none;
  background: #010811;
}

.wormo-canvas-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
  padding: 14px 18px 12px;
  background: rgba(15,23,42,0.92);
  border-bottom: 1px solid rgba(249,115,22,0.14);
}

.wormo-canvas-shell {
  position: relative;
  overflow: hidden;
  background: #010811;
}

.wormo-canvas-shell canvas {
  display: block;
  width: 100%;
  height: 480px;
}

/* ── Launch Console (below canvas) ──────────────────────── */
.wormo-console-bar {
  padding: 16px 18px;
  border-radius: 0 0 22px 22px;
  border: 1px solid rgba(249,115,22,0.18);
  border-top: none;
  background: rgba(15,23,42,0.96);
  display: flex;
  align-items: center;
  gap: 18px;
}

.wormo-console-label {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(249,115,22,0.72);
  font-weight: 700;
  white-space: nowrap;
  flex: 0 0 auto;
}

.wormo-console-sliders {
  display: flex;
  gap: 16px;
  flex: 1 1 auto;
  align-items: center;
}

.wormo-slider-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
}

.wormo-slider-row > span {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(226,232,240,0.72);
  white-space: nowrap;
  flex: 0 0 auto;
  min-width: 40px;
}

.wormo-slider-row input[type="range"] {
  flex: 1 1 auto;
  height: 6px;
  border-radius: 999px;
  accent-color: #f97316;
  cursor: pointer;
}

.wormo-slider-row input[type="range"]:focus-visible {
  outline: 2px solid rgba(249,115,22,0.7);
  outline-offset: 3px;
}

.wormo-slider-row > strong {
  font-size: 0.82rem;
  color: rgba(251,191,36,0.95);
  min-width: 52px;
  text-align: right;
  flex: 0 0 auto;
}

.wormo-fire-btn {
  flex: 0 0 auto;
  padding: 10px 24px;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  background: linear-gradient(135deg, #f97316, #ef4444);
  border: none;
  border-radius: 14px;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 8px 24px -8px rgba(249,115,22,0.7);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
  font-family: "Space Grotesk", sans-serif;
  text-transform: uppercase;
}

.wormo-fire-btn:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -8px rgba(249,115,22,0.82);
}

.wormo-fire-btn:not(:disabled):active {
  transform: translateY(0);
  transition-duration: 80ms;
}

.wormo-fire-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.wormo-fire-btn:focus-visible {
  outline: 2px solid rgba(249,115,22,0.8);
  outline-offset: 3px;
}

/* ── Kicker / Title ──────────────────────────────────────── */
.wormo-panel-kicker {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(249,115,22,0.72);
  font-weight: 700;
  margin-bottom: 3px;
}

.wormo-panel-title {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  color: #f8fafc;
}

.wormo-panel-copy {
  font-size: 0.85rem;
  color: rgba(226,232,240,0.72);
  line-height: 1.55;
  margin-top: 4px;
}

/* ── Sidebar Panels ──────────────────────────────────────── */
.wormo-panel {
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(148,163,184,0.14);
  background: rgba(15,23,42,0.88);
  backdrop-filter: blur(10px);
}

/* Impact Report panel — colorful */
.wormo-impact-panel {
  border-color: rgba(249,115,22,0.3);
  background:
    radial-gradient(ellipse at 0% 0%, rgba(249,115,22,0.14) 0%, transparent 52%),
    rgba(15,23,42,0.92);
  box-shadow: inset 0 0 0 1px rgba(249,115,22,0.1), 0 8px 24px -12px rgba(249,115,22,0.28);
}

.wormo-impact-title {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: #fbbf24;
  margin-bottom: 8px;
}

.wormo-impact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.wormo-impact-stat {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(30,41,59,0.8);
  border: 1px solid rgba(249,115,22,0.16);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.wormo-impact-stat-label {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(249,115,22,0.68);
  font-weight: 700;
}

.wormo-impact-stat-value {
  font-size: 1.05rem;
  font-weight: 800;
  color: #f8fafc;
  font-family: "Space Grotesk", sans-serif;
}

.wormo-impact-action {
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(249,115,22,0.12);
  border: 1px solid rgba(249,115,22,0.24);
  font-size: 0.82rem;
  color: rgba(251,191,36,0.92);
  font-weight: 600;
}

/* ── Roster ──────────────────────────────────────────────── */
.wormo-roster-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.wormo-roster-row {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(30,41,59,0.72);
  border: 1px solid rgba(148,163,184,0.1);
  transition: background 0.18s ease;
}

.wormo-roster-row.is-active {
  background: rgba(30,41,59,0.92);
  border-color: rgba(56,189,248,0.36);
  box-shadow: 0 0 12px -4px rgba(56,189,248,0.22);
}

.wormo-roster-row.is-winner {
  background: rgba(45,38,20,0.86);
  border-color: rgba(250,204,21,0.44);
  box-shadow: 0 0 12px -4px rgba(250,204,21,0.22);
}

.wormo-roster-token {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--wormo, #94a3b8);
  flex: 0 0 auto;
  box-shadow: 0 0 6px var(--wormo, #94a3b8);
}

.wormo-roster-copy { flex: 1 1 auto; }

.wormo-roster-name { font-weight: 700; font-size: 0.88rem; }

.wormo-roster-meta {
  font-size: 0.74rem;
  color: rgba(226,232,240,0.6);
  margin-top: 1px;
}

.wormo-roster-health {
  font-weight: 800;
  font-size: 0.9rem;
  color: rgba(250,204,21,0.96);
  font-family: "Space Grotesk", sans-serif;
}

/* ── Log list ────────────────────────────────────────────── */
.wormo-log-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}

.wormo-log-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: start;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(30,41,59,0.6);
}

.wormo-log-copy {
  font-size: 0.82rem;
  color: rgba(241,245,249,0.88);
  flex: 1 1 auto;
  line-height: 1.4;
}

.wormo-log-meta {
  font-size: 0.7rem;
  color: rgba(226,232,240,0.5);
  white-space: nowrap;
  flex: 0 0 auto;
}

.wormo-empty-copy {
  font-size: 0.82rem;
  color: rgba(226,232,240,0.48);
  padding: 6px 0;
  text-align: center;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1100px) {
  .wormo-layout {
    grid-template-columns: 1fr;
  }
  .wormo-sidebar {
    position: static;
    max-height: none;
    overflow-y: visible;
  }
}

@media (max-width: 760px) {
  .wormo-hero {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 20px 18px;
  }
  .wormo-console-bar {
    flex-wrap: wrap;
    gap: 12px;
  }
  .wormo-console-sliders {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .wormo-canvas-shell canvas {
    height: 340px;
  }
}
