/* CardPlayParty — shared game page base (neon prism theme) */
:root {
  --bg-deep: #06030f;
  --bg-mid: #140a2c;
  --surface: rgba(20, 10, 44, 0.92);
  --border: rgba(168, 85, 247, 0.42);
  --text: #eef2ff;
  --muted: #a9b7d0;
  --silver: #cfd9ea;
  --purple: #a855f7;
  --neon-blue: #22e0ff;
  --neon-lemon: #eaff3a;
  --neon-green: #39ff9c;
  --accent: #22e0ff;
  --accent-2: #a855f7;
  --accent-teal: #39ff9c;
  --warning: #eaff3a;
  --on-accent: #0a0420;
  --radius: 14px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Barlow", system-ui, sans-serif;
  color: var(--text);
  line-height: 1.55;
  background:
    radial-gradient(900px 420px at 10% 0%, rgba(168, 85, 247, 0.22), transparent 52%),
    radial-gradient(700px 380px at 92% 18%, rgba(34, 224, 255, 0.16), transparent 48%),
    radial-gradient(600px 400px at 50% 100%, rgba(57, 255, 156, 0.12), transparent 55%),
    linear-gradient(165deg, var(--bg-deep), var(--bg-mid) 52%, #05020c);
  display: flex;
  flex-direction: column;
}

a {
  color: var(--neon-blue);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--neon-green);
}

.game-top {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(9, 4, 22, 0.97);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.back {
  color: var(--neon-blue);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
  white-space: nowrap;
}

.back:hover {
  color: var(--neon-green);
}

.game-title {
  font-family: "Orbitron", "Barlow", system-ui, sans-serif;
  font-size: clamp(1rem, 3.5vw, 1.4rem);
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.14em;
  color: var(--text);
}

.game-notice {
  margin: 0;
  padding: 10px 20px;
  font-size: 0.8rem;
  background: rgba(168, 85, 247, 0.12);
  border-bottom: 1px solid rgba(34, 224, 255, 0.24);
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}

.game-notice strong {
  color: var(--text);
}

.game-main {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 28px 16px 48px;
}

.panel {
  width: 100%;
  max-width: 420px;
  padding: 28px 24px;
  border-radius: calc(var(--radius) + 4px);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow:
    0 24px 56px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(34, 224, 255, 0.14);
  position: relative;
  overflow: hidden;
}

.panel::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 40%;
  background: radial-gradient(circle at 100% 0%, rgba(34, 224, 255, 0.14), transparent 65%);
  pointer-events: none;
}

.stat-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(11, 5, 26, 0.72);
  border: 1px solid rgba(168, 85, 247, 0.32);
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: var(--muted);
}

.stat-line strong {
  font-family: "Orbitron", "Barlow", system-ui, sans-serif;
  font-size: 1.25rem;
  color: var(--neon-lemon);
  font-weight: 700;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 12px;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.14s ease, box-shadow 0.14s ease, filter 0.14s ease;
}

.btn-primary {
  width: 100%;
  background: linear-gradient(135deg, var(--purple), var(--neon-blue) 55%, var(--neon-green));
  color: var(--on-accent);
  box-shadow: 0 10px 28px rgba(34, 224, 255, 0.35);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 14px 36px rgba(57, 255, 156, 0.4);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
