/* ============================
   GLOBAL THEME (matching your other games)
============================ */

:root {
  --bg: #020617;
  --accent: #38bdf8;
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --border-soft: #1e293b;

  --btn-bg: #0f172a;
  --btn-bg-soft: #020617;
  --btn-border: #334155;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  padding: 16px;
  background: radial-gradient(circle at top, #020617 0%, #0f172a 60%, #000 100%);
  color: var(--text-main);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
}

h1 {
  margin: 6px 0 2px;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

p {
  margin: 4px 0 12px;
  color: var(--text-muted);
}

/* ============================
   CANVAS WRAPPER CARD
============================ */

#vs-wrapper {
  width: 100%;
  max-width: 960px;
  background: #020617;
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  padding: 12px;
  box-shadow:
    0 30px 60px rgba(0,0,0,0.65),
    0 0 0 1px rgba(15,23,42,1);
}

#vs-canvas {
  display: block;
  width: 100%;    /* responsive scaling */
  height: auto;
  border-radius: 14px;
  background: black;
}

/* ============================
   MOBILE CONTROLS
============================ */

#vs-mobile-controls {
  margin-top: 14px;
  width: 100%;
  max-width: 960px;
  display: none;              /* Hidden on desktop */
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: #020617;
  border: 1px solid var(--border-soft);
}

@media (max-width: 900px) {
  #vs-mobile-controls {
    display: flex;
  }
}

.vs-dpad {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vs-dpad-row {
  display: flex;
  gap: 6px;
}

.vs-actions {
  display: flex;
  justify-content: flex-end;
  flex: 1 1 auto;
}

/* ============================
   BUTTONS
============================ */

.vs-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1rem;
  color: var(--text-main);
  background: radial-gradient(circle at top, var(--btn-bg) 0%, var(--btn-bg-soft) 100%);
  border: 1px solid var(--btn-border);
  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow:
    0 8px 16px rgba(0,0,0,0.65),
    0 0 0 1px rgba(15,23,42,1);

  touch-action: none;
  cursor: pointer;
  transition:
    transform 0.08s ease,
    background 0.15s ease,
    box-shadow 0.1s ease;
}

.vs-btn:active {
  transform: translateY(1px) scale(0.97);
  background: radial-gradient(circle at top, #1e293b, #0f172a);
  border-color: var(--accent);
}

.vs-ability {
  width: 58px;
  height: 58px;
  font-size: 1.2rem;
  font-weight: 600;
  border-color: var(--accent);
  background: radial-gradient(circle at top, #1e293b 0%, #020617 100%);
}

/* smaller screens */
@media (max-width: 480px) {
  .vs-btn {
    width: 38px;
    height: 38px;
  }

  .vs-ability {
    width: 52px;
    height: 52px;
  }
}
/* Back button nav */
.vs-nav {
  align-self: flex-start;
  margin: 16px 0 0 16px;
}

.vs-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: radial-gradient(circle at top left,
              rgba(56, 189, 248, 0.16),
              transparent 55%);
  color: #e5e7eb;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease,
              transform 0.15s ease;
}

.vs-back:hover {
  background: rgba(15, 23, 42, 0.95);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.45);
  transform: translateY(-1px);
}
