.retro-slugger-wrap {
  --bg: #09111b;
  --panel: #132033;
  --panel-2: #182b43;
  --line: #2f4a69;
  --text: #ebf4ff;
  --muted: #a8c0de;
  --accent: #fbbf24;
  --green: #1f7a42;
  --green-2: #2ba85a;
  --dirt: #9a6324;
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 24px 0;
}

.retro-slugger-wrap * { box-sizing: border-box; }

.rsg-shell {
  background: linear-gradient(180deg, #0f1b2d 0%, #0a1220 100%);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 18px;
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
}

.rsg-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.rsg-header h2 { margin: 0; font-size: 32px; line-height: 1; }
.rsg-kicker { color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .18em; }
.rsg-badge {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--muted);
  font-weight: 700;
}

.rsg-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 16px;
}

.rsg-left {
  min-width: 0;
}

.rsg-canvas {
  width: 100%;
  height: auto;
  background: #70b8ff;
  border-radius: 20px;
  display: block;
  border: 1px solid var(--line);
}

.rsg-panel {
  display: grid;
  gap: 12px;
}

.rsg-scorebox,
.rsg-minibox,
.rsg-status {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
}

.rsg-score-row {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.rsg-score-row:last-child { border-bottom: 0; }
.rsg-score-row span { color: var(--muted); }
.rsg-score-row strong { font-size: 18px; }

.rsg-status {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  min-height: 72px;
  font-weight: 700;
}

.rsg-mini-title {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.rsg-bases {
  display: flex;
  gap: 10px;
}

.rsg-bases span {
  width: 22px;
  height: 22px;
  display: inline-block;
  border: 2px solid #fff;
  transform: rotate(45deg);
  background: transparent;
}

.rsg-bases span.filled { background: var(--accent); }

.rsg-minibox label {
  display: block;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 10px;
}

.rsg-minibox select,
.rsg-minibox button,
.rsg-touch-controls button {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #0f1b2d;
  color: var(--text);
  padding: 12px 14px;
  font-size: 16px;
}

.rsg-minibox button,
.rsg-touch-controls button { font-weight: 800; cursor: pointer; }

.rsg-touch-controls {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.rsg-touch-controls .primary {
  background: linear-gradient(180deg, #facc15, #f59e0b);
  color: #101010;
  border-color: #f59e0b;
}

.rsg-minibox ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .rsg-board { grid-template-columns: 1fr; }
  .rsg-panel { order: -1; }
}

@media (max-width: 640px) {
  .rsg-shell { padding: 12px; border-radius: 18px; }
  .rsg-header h2 { font-size: 26px; }
  .rsg-touch-controls {
    grid-template-columns: repeat(2, 1fr);
  }
  .rsg-touch-controls button { min-height: 58px; }
}
