:root {
  --bg-1: #09101d;
  --bg-2: #101a2d;
  --panel: rgba(6, 11, 19, 0.78);
  --panel-border: rgba(158, 199, 255, 0.18);
  --text: #eef5ff;
  --muted: #a8bbd5;
  --gold: #e9c46a;
  --green: #58d68d;
  --red: #ff6b5e;
  --blue: #68c8ff;
  --purple: #b48cff;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

html {
  background: var(--bg-1);
}

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 15%, rgba(83, 135, 255, 0.16), transparent 30%),
    radial-gradient(circle at 85% 20%, rgba(233, 196, 106, 0.10), transparent 22%),
    linear-gradient(160deg, var(--bg-1), var(--bg-2));
}

#app {
  width: min(1480px, calc(100vw - 22px));
  margin: 0 auto;
  padding: 14px 0 20px;
}

#topbar {
  position: relative;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "brand scoreboard controls";
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  margin-bottom: 14px;
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.02));
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

#brand h1 {
  margin: 0;
  font-size: 24px;
  letter-spacing: 0.4px;
  color: var(--gold);
}

#scoreboard {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.playerCard {
  padding: 8px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  min-width: 120px;
  text-align: center;
  transition: all 0.25s ease;
}

.playerCard.active {
  background: rgba(233, 196, 106, 0.14);
  border-color: rgba(233, 196, 106, 0.5);
  box-shadow: 0 0 16px rgba(233, 196, 106, 0.18);
}

.playerName {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 2px;
}

.playerScore {
  font-size: 22px;
  font-weight: 800;
  color: var(--gold);
}

.playerBadge {
  margin-top: 3px;
  font-size: 10px;
  color: var(--green);
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.playerBadge.hidden {
  display: none;
}

#turnIndicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

#turnLabel,
#stateLabel {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 12px;
}

#stateLabel {
  color: var(--muted);
  font-size: 11px;
}

#shotTimer {
  min-width: 56px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(57, 217, 138, 0.12);
  border: 1px solid rgba(57, 217, 138, 0.28);
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

#shotTimer.warning {
  background: rgba(255, 107, 94, 0.14);
  border-color: rgba(255, 107, 94, 0.38);
  color: #ff9a8d;
}

#controls {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center;
}

#brand { grid-area: brand; }
#scoreboard { grid-area: scoreboard; }
#controls { grid-area: controls; }

button {
  appearance: none;
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  color: #08111f;
  font-weight: 800;
  cursor: pointer;
  background: linear-gradient(180deg, #ffd97d, #e2ab3f);
  box-shadow: 0 6px 18px rgba(226, 171, 63, 0.22);
  transition: transform 0.12s ease, filter 0.12s ease;
}

button:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

button:active {
  transform: translateY(0);
}

button:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(104, 200, 255, 0.78);
  outline-offset: 3px;
}

.controlMenuWrap {
  position: relative;
}

.menuTrigger {
  min-width: 112px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  padding: 8px 14px;
}

.menuTrigger small {
  max-width: 130px;
  overflow: hidden;
  color: rgba(8, 17, 31, 0.68);
  font-size: 10px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#audioMenuButton {
  background: linear-gradient(180deg, #c89dff, #8b5cf6);
  color: #0a0818;
  box-shadow: 0 6px 18px rgba(139, 92, 246, 0.28);
}

#helpButton {
  background: linear-gradient(180deg, #e0e9f6, #b4c4dc);
}

.controlPopover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 90;
  width: 310px;
  padding: 16px;
  border: 1px solid rgba(158, 199, 255, 0.28);
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(25, 38, 59, 0.99), rgba(7, 13, 23, 0.99));
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.58);
  color: var(--text);
}

.controlPopover.hidden {
  display: none;
}

.controlPopover > strong {
  display: block;
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 14px;
}

.settingsField {
  display: grid;
  gap: 5px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.settingsField select {
  width: 100%;
}

.popoverActions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}

.popoverActions button {
  padding-inline: 9px;
}

.popoverActions .wideAction {
  grid-column: 1 / -1;
}

.audioPopover {
  width: 250px;
}

#gameMenu {
  left: 0;
  right: auto;
}

.audioPopover button {
  width: 100%;
  margin-top: 8px;
  background: linear-gradient(180deg, #e0e9f6, #b4c4dc);
}

.audioPopover button[aria-pressed="true"] {
  background: linear-gradient(180deg, #8debb9, #43c680);
}

#stage {
  position: relative;
  padding-top: 44px;
  padding-bottom: 52px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  background: #071018;
}

#gameCanvas {
  display: block;
  width: 100%;
  height: auto;
  touch-action: none;
}

#forcePanel {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  width: min(480px, 62%);
  height: 34px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

#forceFill {
  position: relative;
  z-index: 1;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #39d98a, #ffd34d, #ff6b5e);
}

#forceText {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
  z-index: 3;
}

#forceIdealZone {
  display: none;
  position: absolute;
  top: 3px;
  bottom: 3px;
  z-index: 2;
  border-radius: 999px;
  background: rgba(76, 255, 148, 0.42);
  border: 2px solid rgba(170, 255, 202, 0.96);
  box-shadow: 0 0 14px rgba(76, 255, 148, 0.72);
  pointer-events: none;
}

#forcePanel.perfect-force-active #forceIdealZone {
  display: block;
}

#spinPanel {
  position: absolute;
  left: 14px;
  bottom: 8px;
  width: 156px;
  padding: 12px;
  border-radius: 18px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
}

.hudPanelToggle {
  width: 100%;
  min-width: 118px;
  padding: 8px 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(233, 196, 106, 0.34);
  color: var(--text);
  background: linear-gradient(180deg, rgba(37, 45, 58, 0.96), rgba(12, 18, 27, 0.96));
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.34);
  font-size: 11px;
  letter-spacing: 0.35px;
  text-transform: uppercase;
}

.hudPanelToggle::after {
  content: "\2212";
  margin-left: auto;
  color: var(--gold);
  font-size: 16px;
  line-height: 0.8;
}

.collapsed > .hudPanelToggle::after {
  content: "+";
}

.hudPanelToggle:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.hudPanelCount {
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(104, 200, 255, 0.14);
  color: var(--blue);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

#spinContent {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
}

#spinTitle {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

#spinBall {
  position: relative;
  width: 94px;
  height: 94px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,0.96), rgba(255,255,255,0.74) 22%, #ddd 60%, #b9b9b9 100%);
  box-shadow:
    inset 0 0 0 2px rgba(0, 0, 0, 0.08),
    0 8px 18px rgba(0, 0, 0, 0.28);
  cursor: crosshair;
  touch-action: none;
}

#spinDot {
  position: absolute;
  left: 39px;
  top: 39px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #111826;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35);
  pointer-events: none;
}

#spinInfo {
  font-size: 12px;
  color: var(--text);
}

#spinReset {
  width: 100%;
  padding: 9px 10px;
  border-radius: 10px;
  font-size: 12px;
}

#help {
  position: absolute;
  top: 7px;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  max-width: min(50vw, 600px);
  padding: 7px 11px;
  border-radius: 12px;
  background: rgba(4, 8, 14, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 12px;
  backdrop-filter: blur(8px);
  pointer-events: none;
}

#toastContainer {
  position: absolute;
  top: 48px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  z-index: 100;
}

#arcaneAlert {
  position: absolute;
  top: 5px;
  left: 12px;
  z-index: 110;
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: min(520px, calc(100% - 390px));
  min-height: 34px;
  padding: 5px 12px 5px 9px;
  border: 1px solid rgba(190, 135, 255, 0.72);
  border-radius: 12px;
  color: #f4edff;
  background: linear-gradient(105deg, rgba(47, 19, 75, 0.96), rgba(19, 11, 35, 0.92));
  box-shadow: 0 0 22px rgba(139, 92, 246, 0.28);
  pointer-events: none;
  animation: arcaneAlertIn 0.28s ease;
}

#arcaneAlert.hidden {
  display: none;
}

.arcaneAlertGlyph {
  color: #d6b9ff;
  font-size: 20px;
  text-shadow: 0 0 12px #b48cff;
}

.arcaneAlertCopy {
  display: grid;
  min-width: 0;
}

.arcaneAlertCopy small {
  overflow: hidden;
  color: #c9b5e9;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.7px;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.arcaneAlertCopy strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@keyframes arcaneAlertIn {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

.toast {
  padding: 9px 16px;
  border-radius: 10px;
  background: rgba(4, 8, 14, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
  animation: toastIn 0.28s ease;
  white-space: nowrap;
}

.toast.success {
  border-color: rgba(88, 214, 141, 0.42);
  color: var(--green);
}

.toast.error {
  border-color: rgba(255, 107, 94, 0.42);
  color: var(--red);
}

.toast.info {
  border-color: rgba(104, 200, 255, 0.42);
  color: var(--blue);
}

.toast.arcana {
  border-color: rgba(180, 140, 255, 0.52);
  color: var(--purple);
  background: rgba(40, 20, 60, 0.86);
  box-shadow: 0 0 14px rgba(139, 92, 246, 0.22);
}

.toast.out {
  animation: toastOut 0.28s ease forwards;
}

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

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

#gameOverOverlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 8, 14, 0.84);
  backdrop-filter: blur(12px);
  display: grid;
  place-items: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease;
}

#gameOverOverlay.hidden {
  display: none;
}

#pauseOverlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(2, 7, 13, 0.7);
  backdrop-filter: blur(8px);
}

#pauseOverlay.hidden {
  display: none;
}

#pauseCard {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  width: min(560px, calc(100vw - 36px));
  padding: 20px;
  border: 1px solid rgba(104, 200, 255, 0.38);
  border-radius: 22px;
  background: linear-gradient(155deg, rgba(25, 38, 59, 0.99), rgba(7, 13, 23, 0.99));
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.62);
}

.pauseGlyph {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: var(--blue);
  background: rgba(104, 200, 255, 0.1);
  border: 1px solid rgba(104, 200, 255, 0.35);
  font-size: 25px;
  font-weight: 900;
}

#pauseCard h2 {
  margin: 2px 0 4px;
  color: var(--gold);
  font-size: 22px;
}

#pauseCard p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

#pauseCountdown {
  min-width: 70px;
  color: var(--blue);
  font-size: 24px;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

#pauseResumeButton {
  grid-column: 1 / -1;
  justify-self: stretch;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

#gameOverCard {
  background: linear-gradient(160deg, rgba(24, 34, 54, 0.98), rgba(10, 18, 32, 0.98));
  border: 1px solid rgba(233, 196, 106, 0.3);
  border-radius: 24px;
  padding: 32px 40px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  max-width: 420px;
  animation: cardIn 0.38s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: scale(0.88) translateY(16px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

#gameOverTitle {
  margin: 0 0 8px;
  font-size: 32px;
  color: var(--gold);
  letter-spacing: 0.5px;
}

#gameOverReason {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 14px;
}

#gameOverScores {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 24px;
}

.finalPlayerCard {
  padding: 14px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.finalPlayerCard.winner {
  background: rgba(233, 196, 106, 0.14);
  border-color: rgba(233, 196, 106, 0.5);
  box-shadow: 0 0 22px rgba(233, 196, 106, 0.22);
}

.finalPlayerName {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}

.finalPlayerScore {
  font-size: 26px;
  font-weight: 800;
  color: var(--gold);
}

.finalPlayerTag {
  margin-top: 5px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--green);
}

#gameOverRematchStatus {
  min-height: 18px;
  margin: -10px 0 18px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

/* ===================== AJUDA E GUIA ARCANO ===================== */

#helpOverlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(2, 6, 12, 0.84);
  backdrop-filter: blur(12px);
}

#helpOverlay.hidden {
  display: none;
}

#helpCard {
  width: min(980px, 96vw);
  max-height: calc(100vh - 36px);
  overflow: hidden;
  border: 1px solid rgba(180, 140, 255, 0.34);
  border-radius: 24px;
  background:
    radial-gradient(circle at 85% 0%, rgba(180, 140, 255, 0.15), transparent 32%),
    linear-gradient(160deg, rgba(24, 37, 58, 0.99), rgba(7, 13, 23, 0.99));
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.68);
}

.helpHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.helpHeader h2 {
  margin: 2px 0 0;
  color: var(--gold);
  font-size: 25px;
}

.eyebrow {
  color: var(--purple);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.helpContent {
  max-height: calc(100vh - 132px);
  overflow-y: auto;
  padding: 22px 24px 28px;
  scrollbar-color: rgba(180, 140, 255, 0.5) transparent;
}

.helpContent p {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.helpIntro {
  padding: 16px 18px;
  border: 1px solid rgba(233, 196, 106, 0.22);
  border-radius: 15px;
  background: rgba(233, 196, 106, 0.07);
}

.helpIntro p {
  margin: 0;
  color: var(--text);
  font-size: 15px;
}

.helpSection {
  margin-top: 22px;
}

.helpSection h3,
.specialGuideHeader h3 {
  margin: 0;
  color: var(--text);
  font-size: 18px;
}

.helpSteps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.helpSteps > div {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 11px;
  border: 1px solid rgba(104, 200, 255, 0.16);
  border-radius: 13px;
  background: rgba(104, 200, 255, 0.06);
}

.helpSteps b {
  display: grid;
  flex: 0 0 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: #07111d;
}

.helpSteps span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

kbd {
  padding: 2px 6px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-family: inherit;
  font-size: 11px;
}

.arcaneHelp {
  padding: 16px 18px;
  border: 1px solid rgba(180, 140, 255, 0.25);
  border-radius: 15px;
  background: rgba(180, 140, 255, 0.07);
}

.helpCallout {
  margin-top: 12px;
  padding: 10px 12px;
  border-left: 3px solid var(--purple);
  color: #d8e4f4;
  font-size: 12px;
}

.specialGuideHeader {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.specialGuideHeader p {
  margin-top: 3px;
}

.specialGuideHeader > span {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(180, 140, 255, 0.14);
  color: var(--purple);
  font-size: 10px;
  font-weight: 850;
}

.specialGuideGroup {
  margin-top: 9px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}

.specialGuideGroup summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  cursor: pointer;
  color: var(--text);
  font-weight: 850;
}

.specialGuideGroup summary small {
  color: var(--muted);
  font-weight: 650;
}

.specialGuideGroup.common summary { border-left: 4px solid #eef5ff; }
.specialGuideGroup.uncommon summary { border-left: 4px solid var(--green); }
.specialGuideGroup.rare summary { border-left: 4px solid var(--blue); }
.specialGuideGroup.legendary summary { border-left: 4px solid var(--gold); }

.specialGuideGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 10px 10px;
}

.guideSpecialCard {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(4, 9, 16, 0.38);
}

.guideSpecialIcon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  background: rgba(180, 140, 255, 0.13);
  font-size: 17px;
}

.guideSpecialCard h4 {
  display: inline;
  margin: 0 7px 0 0;
  color: var(--text);
  font-size: 13px;
}

.guideUseType {
  color: var(--gold);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.guideSpecialCard p {
  margin-top: 5px;
  font-size: 11px;
  line-height: 1.4;
}

.guideSpecialCard small {
  display: block;
  margin-top: 7px;
  color: #cbd8e9;
  font-size: 10px;
  line-height: 1.4;
}

#gameOverRematchStatus.hidden,
#gameOverExitButton.hidden {
  display: none;
}

#gameOverActions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

#gameOverActions button {
  padding: 12px 28px;
  font-size: 14px;
}

@media (max-width: 1100px) and (min-width: 901px) {
  #topbar {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "brand controls"
      "scoreboard scoreboard";
  }

  #controls {
    justify-content: flex-end;
  }

  #scoreboard {
    width: 100%;
  }
}

@media (max-width: 900px) {
  #topbar {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "scoreboard"
      "controls";
    justify-items: center;
    text-align: center;
  }

  #controls {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  #help {
    display: none;
  }

  #spinPanel {
    transform: scale(0.92);
    transform-origin: left bottom;
  }

  #forcePanel {
    width: min(64vw, 480px);
  }

  #scoreboard {
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
  }

  .playerCard {
    min-width: 100px;
  }

  #controls {
    flex-wrap: wrap;
    justify-content: center;
  }

  #modeSelect,
  #opponentSelect {
    width: 100%;
    max-width: none;
  }

  #shopButton {
    width: 100%;
    max-width: 200px;
  }

  #inventoryPanel {
    transform: scale(0.85);
    transform-origin: right bottom;
  }

  #shopCard {
    padding: 20px;
    width: min(95vw, 640px);
  }

  #shopOffers {
    grid-template-columns: 1fr;
  }

  .shopActions {
    flex-direction: column;
  }

  .shopActions button {
    width: 100%;
  }
}

/* ===================== FASE 3: ECONOMIA ARCANA ===================== */

#modeSelect,
#opponentSelect {
  appearance: none;
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  color: #08111f;
  font-weight: 800;
  cursor: pointer;
  background: linear-gradient(180deg, #ffd97d, #e2ab3f);
  box-shadow: 0 6px 18px rgba(226, 171, 63, 0.22);
  transition: transform 0.12s ease, filter 0.12s ease;
}

#modeSelect:hover,
#opponentSelect:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

#modeSelect option,
#opponentSelect option {
  background: #1a2438;
  color: var(--text);
}

@media (max-width: 600px) {
  #app {
    width: min(100% - 12px, 1480px);
    padding-top: 6px;
  }

  #topbar {
    gap: 10px;
    padding: 10px;
    margin-bottom: 8px;
    border-radius: 15px;
  }

  #brand h1 {
    font-size: 22px;
  }

  #scoreboard {
    display: grid;
    grid-template-columns: minmax(78px, 1fr) minmax(136px, 1.45fr) minmax(78px, 1fr);
    gap: 6px;
  }

  .playerCard {
    min-width: 0;
    padding: 7px 5px;
  }

  .playerName {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #turnIndicator {
    min-width: 0;
  }

  #turnLabel,
  #stateLabel {
    max-width: 100%;
    padding: 5px 7px;
    font-size: 10px;
  }

  #stateLabel {
    line-height: 1.2;
  }

  #controls {
    display: flex;
    width: 100%;
    gap: 7px;
    justify-content: center;
  }

  #controls > button,
  #controls > .controlMenuWrap > button {
    padding: 9px 10px;
  }

  .menuTrigger {
    min-width: 100px;
  }

  .controlPopover {
    width: min(310px, calc(100vw - 24px));
  }

  #audioMenu {
    right: 0;
    left: auto;
  }

  #helpCard {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
  }

  .helpHeader {
    padding: 15px;
  }

  .helpHeader h2 {
    font-size: 20px;
  }

  .helpContent {
    max-height: calc(100vh - 94px);
    padding: 15px;
  }

  .helpSteps,
  .specialGuideGrid {
    grid-template-columns: 1fr;
  }

  #stage {
    padding-top: 34px;
    padding-bottom: 44px;
    border-radius: 16px;
  }

  #forcePanel {
    bottom: 6px;
    height: 30px;
    width: calc(100% - 32px);
  }
}

#opponentSelect {
  background: linear-gradient(180deg, #a7efff, #58bfdc);
  box-shadow: 0 6px 18px rgba(73, 189, 221, 0.22);
}

body.ai-thinking #stage {
  box-shadow: var(--shadow), 0 0 0 1px rgba(104, 200, 255, 0.22);
}

.playerArcana {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 800;
  color: var(--purple);
  letter-spacing: 0.4px;
}

.playerArcana.hidden {
  display: none;
}

#shopButton {
  background: linear-gradient(180deg, #c89dff, #8b5cf6);
  color: #0a0818;
  box-shadow: 0 6px 18px rgba(139, 92, 246, 0.35);
}

#shopButton.hidden {
  display: none;
}

#shopButton:hover {
  background: linear-gradient(180deg, #d4aeff, #9b6ff7);
}

#inventoryPanel {
  position: absolute;
  right: 14px;
  bottom: 8px;
  width: 200px;
  padding: 12px;
  border-radius: 18px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

#inventoryPanel.hidden {
  display: none;
}

#inventoryPanel .hudPanelToggle {
  margin-bottom: 8px;
}

#spinPanel.collapsed,
#inventoryPanel.collapsed {
  width: auto;
  padding: 0;
  border-color: transparent;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
}

#spinPanel.collapsed #spinContent,
#inventoryPanel.collapsed #inventorySlots {
  display: none;
}

#inventoryPanel.collapsed .hudPanelToggle {
  margin-bottom: 0;
}

#inventorySlots {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.inventorySlot {
  position: relative;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11px;
  min-height: 54px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: all 0.18s ease;
}

.inventorySlot.empty {
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

.inventorySlot.empty .slotLabel {
  opacity: 0.6;
}

.inventorySlot .slotIcon {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  display: inline-block;
  margin-right: 5px;
  vertical-align: middle;
}

.inventorySlot .slotName {
  font-weight: 800;
  font-size: 11px;
  display: inline-block;
  vertical-align: middle;
}

.inventorySlot .slotMeta {
  font-size: 10px;
  color: var(--muted);
  margin-top: 2px;
}

.inventorySlot .slotActions {
  display: flex;
  gap: 4px;
  margin-top: 4px;
}

.inventorySlot .slotActions button {
  flex: 1;
  padding: 4px 6px;
  font-size: 10px;
  border-radius: 6px;
  min-height: 0;
}

.inventorySlot .slotActions button.discard {
  background: linear-gradient(180deg, #ff9a8d, #ff6b5e);
}

.inventorySlot .slotActions button.use {
  background: linear-gradient(180deg, #9ee8ff, #58bfe9);
  color: #06131c;
}

.inventorySlot .slotActions button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: saturate(0.35);
}

#activeEffectsPanel {
  position: absolute;
  top: 7px;
  left: 12px;
  z-index: 15;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: min(42%, 440px);
  pointer-events: none;
}

#activeEffectsPanel.hidden,
#targetPrompt.hidden,
#magicBallPanel.hidden {
  display: none;
}

#magicBallPanel {
  position: absolute;
  top: 7px;
  right: 12px;
  z-index: 16;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(8, 13, 27, 0.86);
  border: 1px solid var(--magic-color, rgba(233, 243, 255, 0.62));
  box-shadow: 0 0 18px color-mix(in srgb, var(--magic-color, #e9f3ff) 28%, transparent);
  color: #f6f8ff;
  font-size: 11px;
  font-weight: 800;
  backdrop-filter: blur(8px);
  pointer-events: none;
}

#magicBallPanel.touched {
  opacity: 0.78;
}

.magicBallGlyph {
  color: var(--magic-color, #e9f3ff);
  text-shadow: 0 0 10px var(--magic-color, #e9f3ff);
  animation: magicGlyphPulse 1.25s ease-in-out infinite;
}

#magicBallTurns {
  color: var(--muted);
  font-weight: 700;
}

@keyframes magicGlyphPulse {
  0%, 100% { transform: scale(0.9) rotate(0deg); opacity: 0.72; }
  50% { transform: scale(1.18) rotate(90deg); opacity: 1; }
}

.activeEffectChip {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(28, 14, 52, 0.88);
  border: 1px solid rgba(190, 135, 255, 0.58);
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.2);
  color: #e9ddff;
  font-size: 11px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

#targetPrompt {
  position: absolute;
  top: 5px;
  left: 50%;
  z-index: 40;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 8px 14px;
  border-radius: 999px;
  background: rgba(18, 11, 35, 0.94);
  border: 1px solid rgba(190, 135, 255, 0.65);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.38), 0 0 18px rgba(139, 92, 246, 0.25);
  color: #eee6ff;
  font-size: 12px;
  font-weight: 800;
}

#targetCancelButton {
  min-height: 0;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
  box-shadow: none;
  font-size: 11px;
}

.playerCard.pressured {
  border-color: rgba(255, 107, 94, 0.72);
  box-shadow: 0 0 18px rgba(255, 72, 72, 0.24);
  animation: pressurePulse 1s ease-in-out infinite;
}

@keyframes pressurePulse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

.inventorySlot[data-rarity="common"] { border-color: rgba(238, 245, 255, 0.25); }
.inventorySlot[data-rarity="uncommon"] { border-color: rgba(88, 214, 141, 0.42); }
.inventorySlot[data-rarity="rare"] { border-color: rgba(104, 200, 255, 0.42); box-shadow: 0 0 10px rgba(104, 200, 255, 0.12); }
.inventorySlot[data-rarity="legendary"] { border-color: rgba(233, 196, 106, 0.55); box-shadow: 0 0 14px rgba(233, 196, 106, 0.20); }

/* ===================== LOJA ARCANA ===================== */

#shopOverlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 8, 14, 0.88);
  backdrop-filter: blur(14px);
  display: grid;
  place-items: center;
  z-index: 900;
  animation: fadeIn 0.28s ease;
  padding: 14px;
}

#shopOverlay.hidden {
  display: none;
}

#shopCard {
  background: linear-gradient(160deg, rgba(24, 34, 54, 0.98), rgba(10, 18, 32, 0.98));
  border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: 24px;
  padding: 28px 32px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  width: min(880px, 95vw);
  animation: cardIn 0.38s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.shopHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.shopHeader h2 {
  margin: 0;
  font-size: 24px;
  color: var(--purple);
  letter-spacing: 0.4px;
}

.shopInfo {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.shopArcana {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.18);
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: var(--purple);
  font-weight: 800;
  font-size: 14px;
}

.shopInventory {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--muted);
  font-size: 12px;
}

#shopOffers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}

.specialCard {
  padding: 16px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  min-height: 240px;
  transition: all 0.2s ease;
}

.specialCard[data-rarity="common"] { border-color: rgba(238, 245, 255, 0.25); }
.specialCard[data-rarity="uncommon"] { border-color: rgba(88, 214, 141, 0.42); }
.specialCard[data-rarity="rare"] { border-color: rgba(104, 200, 255, 0.5); box-shadow: 0 0 14px rgba(104, 200, 255, 0.15); }
.specialCard[data-rarity="legendary"] {
  border-color: rgba(233, 196, 106, 0.65);
  box-shadow: 0 0 22px rgba(233, 196, 106, 0.25);
  background: linear-gradient(160deg, rgba(233, 196, 106, 0.10), rgba(139, 92, 246, 0.08));
}

.specialCard:hover:not(.disabled) {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.06);
}

.specialCard.disabled {
  opacity: 0.5;
  filter: grayscale(0.6);
}

.specialIcon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(139, 92, 246, 0.22);
  display: grid;
  place-items: center;
  font-size: 18px;
}

.specialName {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
}

.specialRarity {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.08);
}

.specialRarity.common { color: var(--text); }
.specialRarity.uncommon { color: var(--green); background: rgba(88, 214, 141, 0.15); }
.specialRarity.rare { color: var(--blue); background: rgba(104, 200, 255, 0.15); }
.specialRarity.legendary { color: var(--gold); background: rgba(233, 196, 106, 0.15); }

.specialDesc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
  flex: 1;
}

.specialHistory {
  margin-top: 8px;
  color: var(--muted);
  font-size: 10px;
}

@media (max-width: 600px) {
  #stage {
    padding-top: 0;
    padding-bottom: 0;
    overflow: visible;
  }

  #forcePanel {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    width: calc(100% - 32px);
    height: 30px;
    margin: -38px auto 8px;
    z-index: 5;
  }

  #spinPanel {
    top: 8px;
    bottom: auto;
    left: 8px;
    width: 148px;
    padding: 8px;
    transform: none;
    z-index: 8;
  }

  #spinBall {
    width: 78px;
    height: 78px;
  }

  #inventoryPanel {
    position: relative;
    right: auto;
    bottom: auto;
    width: auto;
    margin: 8px;
    padding: 10px;
  }

  #inventoryPanel.collapsed {
    width: fit-content;
    margin-left: auto;
  }

  #inventorySlots {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .inventorySlot {
    min-width: 0;
    padding: 7px;
  }

  .inventorySlot .slotName {
    max-width: 72px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #activeEffectsPanel {
    position: relative;
    top: auto;
    left: auto;
    max-width: none;
    margin: 6px 8px;
  }

  #magicBallPanel {
    position: relative;
    top: auto;
    right: auto;
    width: fit-content;
    margin: 6px 8px;
  }

  #targetPrompt {
    position: fixed;
    top: 12px;
    width: calc(100vw - 24px);
    justify-content: space-between;
  }
}

@media (max-width: 600px) {
  #arcaneAlert {
    right: 10px;
    left: 10px;
    max-width: none;
    min-height: 25px;
    padding-block: 3px;
  }

  .arcaneAlertGlyph {
    font-size: 16px;
  }

  .arcaneAlertCopy small {
    display: none;
  }

  .arcaneAlertCopy strong {
    font-size: 10px;
  }

  #pauseCard {
    grid-template-columns: auto 1fr;
    gap: 12px;
    padding: 17px;
  }

  #pauseCountdown {
    grid-column: 1 / -1;
    justify-self: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.specialMeta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.specialCost {
  font-weight: 800;
  color: var(--purple);
}

.specialUseType {
  font-size: 10px;
  color: var(--muted);
}

.specialBuyBtn {
  padding: 7px 10px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 800;
  margin-top: 6px;
}

.specialBuyBtn.disabled {
  background: rgba(255, 255, 255, 0.1);
  color: var(--muted);
  box-shadow: none;
  cursor: not-allowed;
  pointer-events: none;
}

.shopActions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.shopActions button {
  min-width: 160px;
}

button.secondary {
  background: linear-gradient(180deg, #e0e9f6, #b4c4dc);
  color: #08111f;
}

button.danger {
  background: linear-gradient(180deg, #ff9a8d, #ff6b5e);
  color: #28100d;
}

button:disabled {
  cursor: not-allowed;
  filter: saturate(0.25);
  opacity: 0.52;
  transform: none;
}

/* ===================== FASE 7: MULTIPLAYER ===================== */

#multiplayerButton {
  background: linear-gradient(180deg, #84e8ff, #49bddd);
  color: #06131c;
  box-shadow: 0 6px 18px rgba(73, 189, 221, 0.28);
}

#musicButton[aria-pressed="true"] {
  background: linear-gradient(180deg, #c89dff, #8b5cf6);
  color: #0a0818;
  box-shadow: 0 6px 18px rgba(139, 92, 246, 0.30);
}

#multiplayerOverlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(2, 6, 12, 0.78);
  backdrop-filter: blur(10px);
}

#multiplayerOverlay.hidden,
#multiplayerEntry.hidden,
#multiplayerLobby.hidden {
  display: none;
}

#multiplayerCard {
  width: min(94vw, 520px);
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  padding: 24px;
  border-radius: 22px;
  border: 1px solid rgba(104, 200, 255, 0.30);
  background:
    radial-gradient(circle at 90% 0%, rgba(104, 200, 255, 0.12), transparent 34%),
    linear-gradient(160deg, rgba(24, 37, 58, 0.98), rgba(8, 15, 26, 0.98));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.58);
}

.multiplayerHeader {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.multiplayerHeader h2 {
  margin: 0;
  color: var(--gold);
  font-size: 22px;
}

#multiplayerStatus {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

#multiplayerEntry {
  display: grid;
  gap: 12px;
}

.multiplayerField {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.multiplayerField input {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid rgba(168, 187, 213, 0.24);
  border-radius: 11px;
  outline: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  font: inherit;
  font-size: 14px;
}

.multiplayerField input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(104, 200, 255, 0.12);
}

#roomCodeInput {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 900;
}

.multiplayerDivider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.multiplayerDivider::before,
.multiplayerDivider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.10);
}

.roomCodeBox {
  display: grid;
  place-items: center;
  gap: 3px;
  margin-bottom: 16px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(233, 196, 106, 0.34);
  background: rgba(233, 196, 106, 0.08);
}

.roomCodeBox span,
.roomCodeBox small {
  color: var(--muted);
  font-size: 11px;
}

#roomCodeValue {
  color: var(--gold);
  font-size: 28px;
  letter-spacing: 6px;
}

#lobbyPlayers {
  display: grid;
  gap: 8px;
}

.lobbyPlayer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.045);
}

.lobbyPlayer strong {
  display: block;
  font-size: 13px;
}

.lobbyPlayer small {
  color: var(--muted);
  font-size: 10px;
}

.lobbyPlayerStatus {
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.lobbyPlayer.ready .lobbyPlayerStatus {
  color: var(--green);
}

.lobbyPlayer.disconnected {
  opacity: 0.55;
}

.multiplayerActions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 16px;
}

.multiplayerActions .danger {
  grid-column: 1 / -1;
}

body.network-match #modeSelect,
body.network-match #opponentSelect,
body.network-match #multiplayerButton {
  display: none;
}

.shopArcanaGain {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.22);
  color: var(--purple);
  font-weight: 800;
  font-size: 11px;
  margin-left: 6px;
  animation: pulseGain 0.6s ease;
}

@keyframes pulseGain {
  0% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

@media (max-width: 600px) {
  #inventoryPanel {
    transform: none;
  }

  #shopCard {
    width: min(95vw, 430px);
    max-height: calc(100vh - 24px);
    overflow-y: auto;
    padding: 16px;
  }

  #shopOffers {
    grid-template-columns: 1fr;
  }

  .shopActions {
    flex-direction: column;
  }

  .shopActions button {
    width: 100%;
  }

  #multiplayerCard {
    padding: 16px;
  }

  .multiplayerActions {
    grid-template-columns: 1fr;
  }

  .multiplayerActions .danger {
    grid-column: auto;
  }
}
