.botzinho-page {
  --bg: #08111f;
  --panel: rgba(6, 14, 28, 0.82);
  --panel-border: rgba(255, 255, 255, 0.12);
  --text: #eff4ff;
  --muted: #9db0cd;
  --accent: #ffb703;
  --danger: #ff6b6b;
  --track: #20324d;
  width: 100%;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(73, 126, 255, 0.2), transparent 30%),
    linear-gradient(180deg, #12233f 0%, #08111f 55%, #050913 100%);
  padding: clamp(16px, 3vw, 32px);
}

.botzinho-page,
.botzinho-page * {
  box-sizing: border-box;
}

.botzinho-page .shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.8fr) minmax(280px, 0.95fr);
  align-items: start;
}

.botzinho-page .game-panel,
.botzinho-page .info-panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.28);
}

.botzinho-page .game-panel {
  padding: clamp(14px, 2.5vw, 20px);
}

.botzinho-page .panel-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.botzinho-page .title-wrap h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 3.2rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.botzinho-page .title-wrap p {
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 48ch;
  line-height: 1.5;
}

.botzinho-page .status-card {
  min-width: 190px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.botzinho-page .status-card span {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.botzinho-page .status-card strong {
  display: block;
  margin-top: 6px;
  font-size: 1.6rem;
}

.botzinho-page .canvas-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(21, 43, 74, 0.95) 0%, rgba(11, 20, 34, 0.98) 100%);
}

.botzinho-page canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.botzinho-page .hud {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  pointer-events: none;
}

.botzinho-page .hud-box {
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(3, 10, 22, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  min-width: 132px;
}

.botzinho-page .hud-box span {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.botzinho-page .hud-box strong {
  display: block;
  margin-top: 5px;
  font-size: 1.25rem;
}

.botzinho-page .info-panel {
  padding: 20px;
  display: grid;
  gap: 16px;
}

.botzinho-page .info-panel h2,
.botzinho-page .info-panel h3 {
  margin: 0 0 8px;
}

.botzinho-page .info-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.botzinho-page .card {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.botzinho-page .legend {
  display: grid;
  gap: 10px;
}

.botzinho-page .legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

.botzinho-page .badge {
  min-width: 88px;
  height: 38px;
  padding: 0 12px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: #07111f;
  background: #7bdff2;
  flex: 0 0 auto;
}

.botzinho-page .legend-item:nth-child(2) .badge {
  background: #f8961e;
}

.botzinho-page .command-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.botzinho-page .command-chip {
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 0.95rem;
}

.botzinho-page .speed-control {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
}

.botzinho-page .speed-button {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.botzinho-page .speed-button:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

.botzinho-page .speed-slider-wrap {
  display: grid;
  gap: 8px;
}

.botzinho-page .speed-slider-wrap span {
  color: var(--text);
  font-weight: 700;
}

.botzinho-page .speed-slider-wrap input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
  cursor: pointer;
}

.botzinho-page .footer-note {
  font-size: 0.92rem;
}

@media (max-width: 980px) {
  .botzinho-page .shell {
    grid-template-columns: 1fr;
  }

  .botzinho-page .panel-header {
    flex-direction: column;
  }

  .botzinho-page .status-card {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .botzinho-page {
    padding: 12px;
  }

  .botzinho-page .game-panel,
  .botzinho-page .info-panel {
    border-radius: 18px;
  }

  .botzinho-page .hud {
    flex-direction: column;
    align-items: flex-start;
  }

  .botzinho-page .hud-box {
    min-width: 0;
  }

  .botzinho-page .speed-control {
    grid-template-columns: 1fr;
  }

  .botzinho-page .speed-button {
    width: 100%;
  }
}
