/* HSS Arena Redesign — City Arena Direction (May 2026)
   Layers on top of game.css. Load AFTER game.css in play.html.
   New fonts: Anton (already loaded), Rajdhani (new), Orbitron + Bebas Neue (already loaded) */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&display=swap');

/* ═══════════════════════════════════════════════════════
   1. DESIGN TOKENS (override cinematic.css :root)
   ═══════════════════════════════════════════════════════ */
:root {
  /* HSS Brand */
  --hss-yellow: #FDC82F;
  --hss-red: #E30613;
  --hss-red-hi: #ff4654;
  --hss-purple: #8A4FFF;
  --hss-purple-hi: #B47BFF;
  --hss-cyan: #1E9CE6;
  --hss-bg: #030306;
  --hss-bg-panel: rgba(7, 7, 16, 0.92);
  --hss-bg-panel-light: rgba(8, 4, 18, 0.65);

  /* Element colors */
  --el-fire: #E30613;
  --el-water: #1E9CE6;
  --el-earth: #8B6914;
  --el-wind: #6BC5A0;
  --el-light: #FDC82F;
  --el-sound: #A855F7;
  --el-mythic: #EC4899;

  /* Fonts */
  --f-display: 'Bebas Neue', sans-serif;
  --f-numbers: 'Anton', sans-serif;
  --f-labels: 'Orbitron', sans-serif;
  --f-body: 'Rajdhani', sans-serif;
  --f-mono: 'Share Tech Mono', monospace;
  --f-log: 'JetBrains Mono', monospace;
}

/* ═══════════════════════════════════════════════════════
   2. INTRO SCREEN (cinematic redesign)
   ═══════════════════════════════════════════════════════ */

#screenIntro.active {
  display: block;
  position: relative;
  width: 100vw;
  height: 100vh;
  max-width: 100%;
  padding: 0;
  margin: 0;
  overflow: hidden;
  background: var(--hss-bg);
}

.intro-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.intro-backdrop-img {
  position: absolute;
  inset: 0;
  background: url('../img/ui/arena-neon.png') center center / cover no-repeat;
  opacity: 0.35;
}

.intro-backdrop-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(3,3,6,0.85) 80%);
}

.intro-backdrop-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3,3,6,0.4) 0%, transparent 30%, transparent 60%, rgba(3,3,6,0.95) 100%);
}

.intro-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 2rem;
}

.intro-mark {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 12px;
  filter: drop-shadow(0 0 20px rgba(253,200,47,0.4));
  animation: intro-float 4s ease-in-out infinite;
}

@keyframes intro-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.intro-logo {
  width: min(420px, 80vw);
  object-fit: contain;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 30px rgba(253,200,47,0.3));
}

.intro-tagline {
  font-family: var(--f-labels);
  font-size: 10px;
  letter-spacing: 3px;
  color: rgba(190,210,255,0.55);
  text-align: center;
  max-width: 520px;
  margin-bottom: 40px;
  line-height: 1.8;
}

.intro-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 28px;
}

.intro-btn {
  all: unset;
  cursor: pointer;
  width: 180px;
  padding: 18px 16px 14px;
  text-align: center;
  border-radius: 6px;
  background: var(--hss-bg-panel);
  border: 1px solid rgba(140,180,255,0.2);
  box-shadow: 0 4px 18px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.08);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.intro-btn:hover {
  transform: translateY(-4px);
}

.intro-btn-primary {
  border-color: rgba(138,79,255,0.45);
  box-shadow: 0 0 20px rgba(138,79,255,0.2), 0 4px 18px rgba(0,0,0,0.5);
}
.intro-btn-primary:hover {
  border-color: var(--hss-purple);
  box-shadow: 0 0 30px rgba(138,79,255,0.4), 0 4px 18px rgba(0,0,0,0.5);
}

.intro-btn-cyan {
  border-color: rgba(30,156,230,0.45);
  box-shadow: 0 0 20px rgba(30,156,230,0.2), 0 4px 18px rgba(0,0,0,0.5);
}
.intro-btn-cyan:hover {
  border-color: var(--hss-cyan);
  box-shadow: 0 0 30px rgba(30,156,230,0.4), 0 4px 18px rgba(0,0,0,0.5);
}

.intro-btn-gold {
  border-color: rgba(253,200,47,0.45);
  box-shadow: 0 0 20px rgba(253,200,47,0.2), 0 4px 18px rgba(0,0,0,0.5);
}
.intro-btn-gold:hover {
  border-color: var(--hss-yellow);
  box-shadow: 0 0 30px rgba(253,200,47,0.4), 0 4px 18px rgba(0,0,0,0.5);
}

.intro-btn-icon {
  font-size: 22px;
  line-height: 1;
}
.intro-btn-primary .intro-btn-icon { color: var(--hss-purple-hi); text-shadow: 0 0 10px var(--hss-purple); }
.intro-btn-cyan .intro-btn-icon { color: var(--hss-cyan); text-shadow: 0 0 10px var(--hss-cyan); }
.intro-btn-gold .intro-btn-icon { color: var(--hss-yellow); text-shadow: 0 0 10px var(--hss-yellow); }

.intro-btn-text {
  font-family: var(--f-display);
  font-size: 17px;
  letter-spacing: 2px;
  color: #fff;
  line-height: 1;
}

.intro-btn-sub {
  font-family: var(--f-mono);
  font-size: 9px;
  color: rgba(190,210,255,0.5);
  letter-spacing: 0.5px;
}

.intro-how-link {
  font-family: var(--f-labels);
  font-size: 9px;
  letter-spacing: 2.5px;
  color: rgba(190,210,255,0.45);
  text-decoration: none;
  transition: color 0.2s;
}
.intro-how-link:hover {
  color: var(--hss-cyan);
}

/* Mobile intro */
@media (max-width: 560px) {
  .intro-buttons { flex-direction: column; align-items: center; }
  .intro-btn { width: min(260px, 80vw); }
  .intro-mark { width: 56px; height: 56px; }
  .intro-logo { width: min(280px, 75vw); }
}

/* ═══════════════════════════════════════════════════════
   2b. GLOBAL RESETS FOR REDESIGNED SCREENS
   ═══════════════════════════════════════════════════════ */

/* Game screen goes full viewport, no scroll */
#screenGame.active {
  display: block;
  position: relative;
  width: 100vw;
  height: 100vh;
  max-width: 100%;
  padding: 0;
  margin: 0;
  overflow: hidden;
  background: var(--hss-bg);
}

/* ═══════════════════════════════════════════════════════
   3. ARENA BACKDROP
   ═══════════════════════════════════════════════════════ */
.arena-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.arena-backdrop-img {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 1700px;
  height: 1700px;
  object-fit: cover;
  filter: brightness(0.5) saturate(1.25);
  pointer-events: none;
  user-select: none;
}

.arena-backdrop-blur {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(34px) brightness(0.45) saturate(1.2);
  transform: scale(1.15);
  z-index: -1;
}

.arena-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 42%, rgba(3,3,8,0) 30%, rgba(3,3,8,0.55) 70%, rgba(3,3,8,0.92) 100%);
  pointer-events: none;
}

.arena-zone-tint {
  position: absolute;
  inset: 0;
  mix-blend-mode: color;
  opacity: 0;
  transition: opacity 0.5s, background 0.5s;
  pointer-events: none;
}

.arena-relight {
  position: absolute;
  left: 50%;
  top: 55%;
  transform: translate(-50%, -50%);
  width: 1100px;
  height: 600px;
  border-radius: 50%;
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.5s, background 0.5s;
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════
   4. BOARD LAYER (scaled play unit)
   ═══════════════════════════════════════════════════════ */
.arena-board-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.arena-board-unit {
  position: absolute;
  inset: 0;
  transform: scale(0.86);
  transform-origin: 50% 49%;
}

.arena-board-img {
  position: absolute;
  width: 1600px;
  height: 1600px;
  left: 50%;
  transform: translateX(-50%) translateY(-300px);
  pointer-events: none;
  user-select: none;
}

/* Scrims: top and bottom fades over the board */
.arena-scrims {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.arena-scrim-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(180deg, rgba(3,3,6,0.85), transparent);
}

.arena-scrim-bottom {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 200px;
  background: linear-gradient(0deg, rgba(3,3,6,0.9), transparent);
}

/* ═══════════════════════════════════════════════════════
   5. LANES CONTAINER (3 columns)
   ═══════════════════════════════════════════════════════ */
.arena-lanes {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.arena-lane {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: auto;
}

/* Lane positions (centered in viewport after board transforms) */
.arena-lane[data-lane="0"] { left: 25%; }
.arena-lane[data-lane="1"] { left: 50%; }
.arena-lane[data-lane="2"] { left: 75%; }

/* ═══════════════════════════════════════════════════════
   6. FLOOR NODE (location card)
   ═══════════════════════════════════════════════════════ */
.floor-node {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 6;
  text-align: center;
  overflow: visible;
}

.floor-disc {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotateX(64deg);
  width: 168px;
  height: 168px;
  border-radius: 50%;
  border: 1.5px solid var(--hss-cyan);
  pointer-events: none;
  transition: border-color 0.5s, box-shadow 0.5s;
}

.floor-node-panel {
  position: relative;
  width: 152px;
  padding: 7px 12px 9px;
  text-align: center;
  background: linear-gradient(180deg, rgba(7,7,16,0.92), rgba(3,3,9,0.94));
  border: 1px solid var(--hss-cyan);
  box-shadow: 0 0 18px rgba(30,156,230,0.4), 0 6px 20px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.12);
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 10px 100%, 0 50%);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.floor-node-name {
  font-family: var(--f-display);
  font-size: 14px;
  letter-spacing: 1.5px;
  color: var(--hss-yellow);
  line-height: 1;
}

.floor-node-effect {
  font-family: var(--f-mono);
  font-size: 9px;
  color: rgba(200,220,255,0.6);
  margin-top: 2px;
  line-height: 1.3;
}

.floor-node-scores {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 5px;
}

.floor-node-score-opp {
  font-family: var(--f-numbers);
  font-size: 27px;
  color: var(--hss-red);
  text-shadow: 0 0 10px var(--hss-red);
  line-height: 1;
}

.floor-node-score-vs {
  font-family: var(--f-labels);
  font-size: 9px;
  color: rgba(205,222,255,0.45);
  letter-spacing: 1px;
}

.floor-node-score-me {
  font-family: var(--f-numbers);
  font-size: 27px;
  color: var(--hss-purple);
  text-shadow: 0 0 10px var(--hss-purple);
  line-height: 1;
}

.floor-node-badge {
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--f-body);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 1.4px;
  padding: 2px 10px;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.7);
  clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 100%, 0 100%);
  white-space: nowrap;
  z-index: 2;
}

.floor-node-badge.me { background: var(--hss-purple); }
.floor-node-badge.opp { background: var(--hss-red); }
.floor-node-badge.tied { background: rgba(46,46,64,0.96); }

/* Node resolve flash */
.node-flash {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 230px;
  height: 230px;
  border-radius: 50%;
  pointer-events: none;
  animation: fx-nodeflash 1.1s ease-out both;
}

/* ═══════════════════════════════════════════════════════
   7. STANDING SLOTS (fighter squads)
   ═══════════════════════════════════════════════════════ */
.standing-slot {
  position: absolute;
  transform: translate(-50%, -100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.squad-footprint {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  pointer-events: none;
}

.squad-footprint.player {
  background: radial-gradient(ellipse, rgba(138,79,255,0.33), transparent 72%);
  box-shadow: 0 0 24px rgba(138,79,255,0.33);
}

.squad-footprint.bot {
  background: radial-gradient(ellipse, rgba(227,6,19,0.33), transparent 72%);
  box-shadow: 0 0 24px rgba(227,6,19,0.33);
}

/* Cards within squad */
.squad-card {
  position: absolute;
  bottom: 0;
  transform-origin: bottom center;
}

.squad-card-power {
  position: absolute;
  bottom: 5px;
  left: 5px;
  font-family: var(--f-numbers);
  font-size: 13px;
  padding: 2px 5px 0;
  border-radius: 2px;
  box-shadow: 0 0 6px rgba(0,0,0,0.7);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  line-height: 1;
}

.squad-card-power.player { background: var(--hss-purple); }
.squad-card-power.bot { background: var(--hss-red); }

.squad-overflow {
  position: absolute;
  bottom: 5px;
  right: 5px;
  font-family: var(--f-numbers);
  font-size: 14px;
  color: #fff;
  background: rgba(0,0,0,0.7);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 2px 6px;
  border-radius: 3px;
}

/* Deploy target glow */
.standing-slot.deploy-target {
  cursor: pointer;
}

.deploy-prompt {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--f-labels);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--hss-yellow);
  white-space: nowrap;
  opacity: 0.8;
  animation: pulse-deploy 1.5s ease-in-out infinite;
}

@keyframes pulse-deploy {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* Floor node as deploy target */
.floor-node.deploy-target {
  cursor: pointer;
}

.floor-node.deploy-target .floor-node-panel {
  border-color: var(--hss-yellow);
  box-shadow: 0 0 24px rgba(253,200,47,0.45), inset 0 0 12px rgba(253,200,47,0.1);
}

.floor-node.deploy-target .floor-disc {
  box-shadow: 0 0 50px rgba(253,200,47,0.4), 0 0 100px rgba(253,200,47,0.15);
}

/* Deploy zone — visible drop area below each node */
.deploy-zone {
  position: absolute;
  transform: translateX(-50%);
  top: 60%;
  width: 180px;
  height: 120px;
  z-index: 5;
  cursor: pointer;
  pointer-events: auto;
  border: 2px dashed rgba(253,200,47,0.5);
  border-radius: 8px;
  background: rgba(253,200,47,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse-deploy-zone 1.5s ease-in-out infinite;
}

.deploy-zone-label {
  font-family: var(--f-labels);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: var(--hss-yellow);
  text-shadow: 0 0 10px rgba(253,200,47,0.6);
}

@keyframes pulse-deploy-zone {
  0%, 100% { border-color: rgba(253,200,47,0.3); background: rgba(253,200,47,0.04); }
  50% { border-color: rgba(253,200,47,0.7); background: rgba(253,200,47,0.1); }
}

/* ═══════════════════════════════════════════════════════
   8. HUD HEADER (top bar redesign)
   ═══════════════════════════════════════════════════════ */
.hud-redesign {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  z-index: 5;
  font-family: var(--f-body);
  background: linear-gradient(180deg, rgba(3,3,6,0.85), transparent);
}

.hud-brand-cluster {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hud-mark {
  width: 36px;
  height: 36px;
}

.hud-exit-btn {
  all: unset;
  cursor: pointer;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 1.5px;
  color: rgba(180,235,255,0.85);
  padding: 8px 14px;
  border: 1px solid rgba(140,220,255,0.35);
  border-radius: 3px;
  background: rgba(8,20,40,0.5);
  transition: border-color 0.15s, color 0.15s;
}

.hud-exit-btn:hover {
  border-color: var(--hss-yellow);
  color: var(--hss-yellow);
}

/* Turn display (hex frame) */
.hud-turn-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 24px;
  clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 14px 100%, 0 50%);
  background: linear-gradient(140deg, rgba(20,60,90,0.55), rgba(8,20,40,0.85));
  border: 1px solid rgba(140,220,255,0.4);
}

.hud-turn-label {
  font-family: var(--f-body);
  font-size: 11px;
  letter-spacing: 2px;
  color: rgba(255,180,220,0.85);
}

.hud-turn-value {
  font-family: var(--f-labels);
  font-weight: 800;
  font-size: 20px;
  color: #fff;
}

.hud-turn-value .dim { opacity: 0.45; }

/* Resource chips */
.hud-resources {
  display: flex;
  gap: 10px;
}

.resource-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  background: linear-gradient(135deg, rgba(20,60,90,0.55), rgba(8,20,40,0.85));
  border-radius: 4px;
  min-width: 110px;
  box-shadow: 0 0 14px rgba(34,229,255,0.18), inset 0 1px 0 rgba(180,235,255,0.3);
}

.resource-chip.bitszen { border: 1px solid rgba(140,220,255,0.45); }
.resource-chip.glory { border: 1px solid rgba(255,200,90,0.5); }

.resource-chip-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.resource-chip-info {
  display: flex;
  flex-direction: column;
}

.resource-chip-label {
  font-family: var(--f-body);
  font-size: 9px;
  letter-spacing: 1.4px;
  color: rgba(180,235,255,0.6);
  text-transform: uppercase;
}

.resource-chip-value {
  font-family: var(--f-labels);
  font-weight: 800;
  font-size: 16px;
  margin-top: 2px;
}

.resource-chip.bitszen .resource-chip-value { color: #7aeaff; }
.resource-chip.glory .resource-chip-value { color: #ffd35a; }

/* ═══════════════════════════════════════════════════════
   9. PHASE BAR (redesigned)
   ═══════════════════════════════════════════════════════ */
.phase-bar-redesign {
  position: absolute;
  top: 76px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.phase-hint {
  font-family: var(--f-labels);
  font-size: 10px;
  letter-spacing: 3px;
  color: rgba(190,210,255,0.6);
  text-transform: uppercase;
}

.phase-dots-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 16px;
  background: linear-gradient(180deg, rgba(7,7,16,0.88), rgba(3,3,9,0.92));
  border: 1px solid rgba(253,200,47,0.33);
  border-radius: 20px;
  box-shadow: 0 0 14px rgba(253,200,47,0.2), 0 3px 12px rgba(0,0,0,0.6);
}

.phase-dot-new {
  width: 14px;
  height: 14px;
  border-radius: 14px;
  border: 2px solid rgba(160,180,220,0.45);
  background: transparent;
  transition: all 0.3s;
}

.phase-dot-new.active {
  background: var(--hss-yellow);
  border-color: var(--hss-yellow);
  box-shadow: 0 0 12px var(--hss-yellow);
}

.phase-dot-new.done {
  background: var(--hss-yellow);
  border-color: var(--hss-yellow);
  opacity: 0.5;
}

.phase-connector {
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: rgba(160,180,220,0.28);
  transition: background 0.3s;
}

.phase-connector.active {
  background: var(--hss-yellow);
}

.phase-dot-label {
  font-family: var(--f-labels);
  font-size: 8px;
  letter-spacing: 1.5px;
  color: rgba(160,180,220,0.45);
  text-transform: uppercase;
}

.phase-dot-label.active {
  color: var(--hss-yellow);
}

/* ═══════════════════════════════════════════════════════
   10. CORNER PLATES (player/bot)
   ═══════════════════════════════════════════════════════ */
.corner-plate {
  position: absolute;
  z-index: 6;
  display: flex;
  gap: 12px;
}

.corner-plate.bot-plate {
  top: 112px;
  right: 26px;
  flex-direction: row-reverse;
}

.corner-plate.player-plate {
  bottom: 196px;
  left: 150px;
  flex-direction: row;
}

.plate-avatar {
  width: 76px;
  height: 76px;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
}

.plate-avatar.player {
  border: 1.5px solid var(--hss-purple);
  box-shadow: 0 0 10px rgba(138,79,255,0.44);
}

.plate-avatar.bot {
  border: 1.5px solid var(--hss-red);
  box-shadow: 0 0 10px rgba(227,6,19,0.44);
}

.plate-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.plate-info {
  min-width: 174px;
  background: linear-gradient(180deg, rgba(6,6,15,0.82), rgba(3,3,9,0.9));
  border-radius: 5px;
  padding: 7px 11px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.1);
}

.plate-info.player {
  border: 1px solid rgba(138,79,255,0.4);
  box-shadow: 0 0 16px rgba(138,79,255,0.25), 0 4px 14px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.1);
  text-align: left;
}

.plate-info.bot {
  border: 1px solid rgba(227,6,19,0.4);
  box-shadow: 0 0 16px rgba(227,6,19,0.25), 0 4px 14px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.1);
  text-align: right;
}

.plate-name {
  font-family: var(--f-display);
  font-size: 22px;
  color: #fff;
  letter-spacing: 1.2px;
  line-height: 1;
}

.plate-active-badge {
  font-family: var(--f-labels);
  font-size: 8px;
  letter-spacing: 1.5px;
  display: inline-block;
  margin-left: 6px;
}

.plate-active-badge.player { color: var(--hss-purple); }
.plate-active-badge.bot { color: var(--hss-red); }

.plate-deck {
  font-family: var(--f-mono);
  font-size: 9px;
  color: rgba(200,220,255,0.65);
  margin-top: 2px;
}

.plate-hp {
  margin-top: 5px;
  height: 9px;
  width: 100%;
  position: relative;
  background: rgba(6,4,12,0.8);
  overflow: hidden;
}

.plate-hp.player { border: 1px solid rgba(138,79,255,0.4); }
.plate-hp.bot { border: 1px solid rgba(227,6,19,0.4); }

.plate-hp-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  transition: width 0.5s;
}

.plate-hp-fill.player {
  background: linear-gradient(90deg, var(--hss-purple), var(--hss-purple-hi));
  box-shadow: 0 0 8px var(--hss-purple);
}

.plate-hp-fill.bot {
  background: linear-gradient(90deg, var(--hss-red), var(--hss-red-hi));
  box-shadow: 0 0 8px var(--hss-red);
}

.plate-hp-text {
  position: absolute;
  right: 3px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--f-labels);
  font-size: 7px;
  color: #fff;
}

.plate-power {
  display: flex;
  gap: 6px;
  margin-top: 5px;
  align-items: baseline;
}

.plate-power-label {
  font-family: var(--f-labels);
  font-size: 8px;
  color: rgba(190,210,255,0.5);
  letter-spacing: 1px;
}

.plate-power-value {
  font-family: var(--f-numbers);
  font-size: 22px;
  line-height: 1;
}

.plate-power-value.player {
  color: var(--hss-purple-hi);
  text-shadow: 0 0 10px var(--hss-purple);
}

.plate-power-value.bot {
  color: var(--hss-red-hi);
  text-shadow: 0 0 10px var(--hss-red);
}

/* ═══════════════════════════════════════════════════════
   11. WAR ZONE RAIL (left sidebar)
   ═══════════════════════════════════════════════════════ */
.arena-rail {
  position: absolute;
  left: 14px;
  top: 112px;
  bottom: 24px;
  width: 122px;
  z-index: 7;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.arena-rail-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-left: 2px;
}

.arena-rail-dot {
  width: 5px;
  height: 5px;
  border-radius: 5px;
  background: var(--hss-yellow);
  box-shadow: 0 0 6px var(--hss-yellow);
}

.arena-rail-label {
  font-family: var(--f-labels);
  font-size: 8.5px;
  letter-spacing: 1.6px;
  color: rgba(190,210,255,0.6);
  text-transform: uppercase;
}

.arena-zone-btn {
  height: 46px;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  border: 1px solid rgba(150,180,230,0.22);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.arena-zone-btn.active {
  border: 1.5px solid var(--hss-yellow);
  box-shadow: 0 0 14px rgba(253,200,47,0.4);
}

.arena-zone-btn-bg {
  position: absolute;
  inset: 0;
}

.arena-zone-btn-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1), rgba(0,0,0,0.55));
}

.arena-zone-btn-labels {
  position: absolute;
  left: 7px;
  bottom: 4px;
}

.arena-zone-btn-name {
  font-family: var(--f-display);
  font-size: 14px;
  line-height: 0.95;
  letter-spacing: 0.6px;
  color: #fff;
}

.arena-zone-btn-sub {
  font-family: var(--f-labels);
  font-size: 6.5px;
  letter-spacing: 1px;
  color: rgba(200,220,255,0.7);
  text-transform: uppercase;
}

.arena-zone-active-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 6px;
  height: 6px;
  border-radius: 6px;
  background: var(--hss-yellow);
  box-shadow: 0 0 8px var(--hss-yellow);
  display: none;
}

.arena-zone-btn.active .arena-zone-active-dot { display: block; }

/* ═══════════════════════════════════════════════════════
   12. HAND (bottom card strip)
   ═══════════════════════════════════════════════════════ */
.arena-hand {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 7;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  max-width: 760px;
}

.arena-hand-label {
  font-family: var(--f-labels);
  font-size: 9px;
  letter-spacing: 3px;
  color: rgba(190,210,255,0.6);
  text-transform: uppercase;
}

.arena-hand-cards {
  display: flex;
  gap: 7px;
  align-items: flex-end;
  justify-content: center;
}

/* Card mini (in hand) */
.card-mini-new {
  width: 78px;
  height: 110px;
  position: relative;
  border-radius: 6px;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(10,30,48,0.9), rgba(2,10,20,0.95));
  border: 1px solid rgba(140,220,255,0.3);
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
  flex: 0 0 auto;
}

.card-mini-new:hover {
  transform: translateY(-4px);
}

.card-mini-new.selected {
  transform: translateY(-14px);
  border: 1.5px solid var(--hss-yellow);
  box-shadow: 0 0 18px rgba(253,200,47,0.6), inset 0 0 0 1px rgba(255,255,255,0.15);
}

.card-mini-new.unaffordable {
  opacity: 0.35;
  border-color: rgba(100,100,120,0.3);
}

.card-mini-art {
  position: absolute;
  inset: 14px 4px 22px 4px;
  border-radius: 3px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.card-mini-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-mini-stats {
  position: absolute;
  top: 2px;
  left: 2px;
  display: flex;
  gap: 2px;
}

.card-mini-name {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2px 4px 3px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.9));
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 9px;
  color: #eaf9ff;
  letter-spacing: 0.6px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Pip (cost/power badge) */
.pip {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-labels);
  font-weight: 900;
  font-size: 13px;
  color: #0a0a0a;
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
  box-shadow: 0 0 6px rgba(0,0,0,0.5);
}

.pip.small {
  width: 16px;
  height: 16px;
  font-size: 10px;
}

.pip.cost { background: #ffce3a; }
.pip.power { background: #ff3a55; }

/* Awakened card in hand */
.card-mini-new.awakened {
  border-color: #ffd700;
  box-shadow: 0 0 12px rgba(255,215,0,0.4);
}

/* ═══════════════════════════════════════════════════════
   13. ACTION BUTTONS (right side)
   ═══════════════════════════════════════════════════════ */
.arena-actions {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 148px;
  z-index: 8;
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
}

.btn-hss {
  all: unset;
  cursor: pointer;
  font-family: var(--f-display);
  font-size: 18px;
  letter-spacing: 2px;
  color: #1a1205;
  padding: 8px 24px;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  background: linear-gradient(180deg, var(--hss-yellow), rgba(253,200,47,0.8));
  box-shadow: 0 0 18px rgba(253,200,47,0.5);
  transition: transform 0.14s, box-shadow 0.14s;
}

.btn-hss:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 26px rgba(253,200,47,0.7);
}

.btn-hss.disabled,
.btn-hss.btn-disabled {
  opacity: 0.35;
  pointer-events: none;
}

.btn-ghost-new {
  all: unset;
  cursor: pointer;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 1.5px;
  color: rgba(180,235,255,0.85);
  padding: 8px 14px;
  border: 1px solid rgba(140,220,255,0.35);
  border-radius: 3px;
  background: rgba(8,20,40,0.5);
  transition: border-color 0.15s, color 0.15s;
}

.btn-ghost-new:hover {
  border-color: rgba(140,220,255,0.6);
  color: #fff;
}

.btn-ghost-new.disabled,
.btn-ghost-new.btn-disabled {
  opacity: 0.35;
  pointer-events: none;
}

.btn-sync-new {
  all: unset;
  cursor: pointer;
  font-family: var(--f-display);
  font-size: 16px;
  letter-spacing: 2px;
  color: var(--hss-cyan);
  padding: 8px 20px;
  border: 1px solid rgba(30,156,230,0.5);
  background: rgba(30,156,230,0.1);
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  transition: transform 0.14s, box-shadow 0.14s;
}

.btn-sync-new:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 18px rgba(30,156,230,0.4);
}

.btn-sync-new.disabled,
.btn-sync-new.btn-disabled {
  opacity: 0.35;
  pointer-events: none;
}

.btn-surrender-new {
  all: unset;
  cursor: pointer;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 1px;
  color: rgba(255,140,150,0.7);
  padding: 6px 14px;
  border: 1px solid rgba(255,90,120,0.25);
  background: rgba(20,8,12,0.5);
  border-radius: 3px;
  transition: border-color 0.15s, color 0.15s;
}

.btn-surrender-new:hover {
  border-color: rgba(255,90,120,0.5);
  color: rgba(255,140,150,1);
}

/* ═══════════════════════════════════════════════════════
   14. BATTLE LOG (redesigned)
   ═══════════════════════════════════════════════════════ */
.battle-log-new {
  position: absolute;
  right: 22px;
  bottom: 150px;
  width: 290px;
  z-index: 5;
  padding: 10px 14px;
  background: linear-gradient(140deg, rgba(20,60,90,0.40), rgba(8,20,40,0.55));
  backdrop-filter: blur(8px);
  border: 1px solid rgba(140,220,255,0.32);
  box-shadow: inset 0 1px 0 rgba(180,235,255,0.35), 0 0 24px rgba(34,229,255,0.22), 0 4px 18px rgba(0,0,0,0.35);
}

.battle-log-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.battle-log-dot {
  width: 6px;
  height: 6px;
  border-radius: 6px;
  background: var(--hss-cyan);
  box-shadow: 0 0 8px var(--hss-cyan);
}

.battle-log-title {
  font-family: var(--f-body);
  font-size: 10px;
  letter-spacing: 2px;
  color: rgba(180,235,255,0.7);
  text-transform: uppercase;
}

.battle-log-entries {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-height: 120px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent);
  mask-image: linear-gradient(180deg, #000 70%, transparent);
}

.battle-log-entry {
  font-family: var(--f-log);
  font-size: 10px;
  color: rgba(200,230,250,0.75);
  line-height: 1.5;
}

.battle-log-entry .ts {
  color: rgba(255,255,255,0.4);
}

.battle-log-entry .sync { color: var(--hss-yellow); }
.battle-log-entry .ability { color: var(--hss-cyan); }
.battle-log-entry .important { color: var(--hss-red); }

/* ═══════════════════════════════════════════════════════
   15. CARD FULL (used in standing squads & deploy FX)
   ═══════════════════════════════════════════════════════ */
.card-full {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(8,30,50,0.85), rgba(2,12,22,0.95));
  border: 1px solid rgba(140,220,255,0.45);
  box-shadow: 0 4px 14px rgba(0,0,0,0.5);
}

.card-full.glow {
  box-shadow: 0 0 0 1px rgba(140,220,255,0.2), 0 8px 30px rgba(0,180,255,0.25), inset 0 1px 0 rgba(255,255,255,0.15);
}

.card-full-art {
  position: absolute;
  inset: 20px 8px 56px 8px;
  border-radius: 6px;
  overflow: hidden;
}

.card-full-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-full-stats {
  position: absolute;
  top: 6px;
  left: 6px;
  display: flex;
  gap: 4px;
}

.card-full-nameplate {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 6px 10px 8px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.85));
}

.card-full-title {
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 14px;
  color: #eaf9ff;
  letter-spacing: 1px;
  line-height: 1;
}

.card-full-faction {
  font-family: var(--f-body);
  font-size: 9px;
  color: rgba(150,220,255,0.7);
  letter-spacing: 1.2px;
  margin-top: 2px;
}

.card-full-scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(140,220,255,0.4) 2px, rgba(140,220,255,0.4) 3px);
}

/* ═══════════════════════════════════════════════════════
   16. ANIMATIONS & FX
   ═══════════════════════════════════════════════════════ */

/* Screen shake — uses --shake-intensity for variable strength (default 5px, All-In uses 8px) */
@keyframes fx-shake {
  0%, 100% { transform: translate(0, 0); }
  12% { transform: translate(calc(var(--shake-intensity, 5px) * -1.4), calc(var(--shake-intensity, 5px) * 0.6)); }
  24% { transform: translate(calc(var(--shake-intensity, 5px) * 1.8), calc(var(--shake-intensity, 5px) * -0.6)); }
  36% { transform: translate(calc(var(--shake-intensity, 5px) * -1.2), calc(var(--shake-intensity, 5px) * 0.4)); }
  48% { transform: translate(calc(var(--shake-intensity, 5px) * 1.4), calc(var(--shake-intensity, 5px) * -0.4)); }
  60% { transform: translate(calc(var(--shake-intensity, 5px) * -0.8), calc(var(--shake-intensity, 5px) * 0.6)); }
  72% { transform: translate(calc(var(--shake-intensity, 5px) * 1.0), calc(var(--shake-intensity, 5px) * -0.2)); }
  86% { transform: translate(calc(var(--shake-intensity, 5px) * -0.4), calc(var(--shake-intensity, 5px) * 0.2)); }
}

.fx-shaking {
  animation: fx-shake 0.55s cubic-bezier(.36,.07,.19,.97) both;
}

/* Card slam onto board */
@keyframes fx-slam {
  0% { transform: translate(-50%, -50%) scale(2.1); opacity: 0; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

/* Impact ring */
@keyframes fx-ring {
  0% { transform: translate(-50%, -50%) scale(0.25); opacity: 0.95; }
  100% { transform: translate(-50%, -50%) scale(2.6); opacity: 0; }
}

/* Sparks */
@keyframes fx-spark {
  0% { transform: translate(0, 0) scale(1); opacity: 1; }
  100% { transform: translate(var(--sx), var(--sy)) scale(0.2); opacity: 0; }
}

/* Node flash */
@keyframes fx-nodeflash {
  0% { opacity: 0; }
  25% { opacity: 1; }
  100% { opacity: 0; }
}

/* Holographic shimmer */
@keyframes fx-holo {
  0% { transform: translateX(-130%) skewX(-18deg); }
  100% { transform: translateX(430%) skewX(-18deg); }
}

/* Card deploy land (from old system, kept for compat) */
@keyframes card-land-new {
  0% { transform: translateY(-30px) scale(1.1); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

/* Pulse border for selected cards */
@keyframes pulse-border-new {
  0%, 100% { box-shadow: 0 0 18px rgba(253,200,47,0.4); }
  50% { box-shadow: 0 0 28px rgba(253,200,47,0.7); }
}

.card-mini-new.selected {
  animation: pulse-border-new 1.5s ease-in-out infinite;
}

/* Awakened card effects */
@keyframes awakened-glow-new {
  0%, 100% { box-shadow: 0 0 12px rgba(255,215,0,0.3); }
  50% { box-shadow: 0 0 24px rgba(255,215,0,0.6); }
}

@keyframes awakened-shimmer-new {
  0% { transform: translateX(-130%) skewX(-18deg); }
  100% { transform: translateX(430%) skewX(-18deg); }
}

.card-mini-new.awakened {
  animation: awakened-glow-new 3s ease-in-out infinite;
}

/* ═══════════════════════════════════════════════════════
   17. MATCH END OVERLAY (redesigned)
   ═══════════════════════════════════════════════════════ */
.match-end-new {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: me-fade 0.4s ease both;
  background: rgba(2,3,8,0.62);
  backdrop-filter: blur(9px);
  font-family: var(--f-body);
}

.match-end-wash {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.match-end-emblem {
  position: relative;
  animation: me-pop 0.6s cubic-bezier(.2,1.4,.4,1) both;
}

.match-end-title {
  margin: 6px 0 0;
  font-family: var(--f-display);
  font-size: 116px;
  line-height: 0.9;
  letter-spacing: 6px;
  position: relative;
  overflow: hidden;
  padding: 0 30px;
}

.match-end-title.victory { color: var(--hss-yellow); }
.match-end-title.defeat { color: var(--hss-red); }
.match-end-title.draw { color: #9fb4d8; }

.match-end-sub {
  margin-top: 2px;
  font-family: var(--f-labels);
  font-size: 13px;
  letter-spacing: 5px;
  color: rgba(220,235,255,0.7);
  animation: me-rise 0.5s ease 0.25s both;
}

.match-end-pips {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  animation: me-rise 0.5s ease 0.35s both;
}

.match-end-pip {
  width: 56px;
  height: 6px;
  clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%);
}

.match-end-pip.won { background: var(--hss-purple); box-shadow: 0 0 8px var(--hss-purple); }
.match-end-pip.lost { background: var(--hss-red); }
.match-end-pip.neutral { background: rgba(150,170,210,0.25); }

.match-end-stats {
  display: flex;
  gap: 12px;
  margin-top: 26px;
  animation: me-rise 0.5s ease 0.45s both;
}

.match-end-stat {
  min-width: 116px;
  padding: 12px 18px;
  text-align: center;
  background: linear-gradient(180deg, rgba(8,8,18,0.85), rgba(3,3,9,0.9));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}

.match-end-stat-label {
  font-family: var(--f-labels);
  font-size: 9px;
  letter-spacing: 1.6px;
  color: rgba(195,215,255,0.55);
  text-transform: uppercase;
}

.match-end-stat-value {
  font-family: var(--f-numbers);
  font-size: 32px;
  color: #fff;
  line-height: 1;
  margin-top: 5px;
}

.match-end-actions {
  display: flex;
  gap: 14px;
  margin-top: 30px;
  animation: me-rise 0.5s ease 0.55s both;
}

/* Match end animations */
@keyframes me-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes me-pop {
  0% { transform: scale(0.4) rotate(-12deg); opacity: 0; }
  60% { transform: scale(1.12) rotate(3deg); }
  80% { transform: scale(0.97) rotate(-1deg); }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}
@keyframes me-glow-victory {
  0%, 100% { text-shadow: 0 0 18px var(--hss-yellow), 0 0 40px rgba(253,200,47,0.3); }
  50% { text-shadow: 0 0 30px var(--hss-yellow), 0 0 70px rgba(253,200,47,0.5), 0 0 100px rgba(253,200,47,0.2); }
}
@keyframes me-glow-defeat {
  0%, 100% { text-shadow: 0 0 18px var(--hss-red), 0 0 40px rgba(227,6,19,0.3); }
  50% { text-shadow: 0 0 30px var(--hss-red), 0 0 70px rgba(227,6,19,0.5), 0 0 100px rgba(227,6,19,0.2); }
}
@keyframes me-rise {
  from { transform: translateY(22px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes me-streak {
  0% { transform: translateX(-120%) skewX(-18deg); }
  100% { transform: translateX(420%) skewX(-18deg); }
}

.match-end-title.victory { animation: me-glow-victory 2s ease-in-out infinite; }
.match-end-title.defeat { animation: me-glow-defeat 2s ease-in-out infinite; }

.match-end-shine {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 80px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.45), transparent);
  animation: me-streak 2.6s ease-in-out 0.5s infinite;
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════
   18. SYNC OVERLAY (redesigned)
   ═══════════════════════════════════════════════════════ */
.sync-overlay-new {
  position: absolute;
  inset: 0;
  z-index: 28;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: sy-fade 0.35s ease both;
  font-family: var(--f-body);
  background: rgba(2,4,10,0.7);
  backdrop-filter: blur(7px);
}

.sync-scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(180deg, transparent, rgba(30,156,230,0.13), transparent);
  animation: sy-scan 3.2s linear infinite;
  pointer-events: none;
}

.sync-panel {
  position: relative;
  width: 760px;
  padding: 30px 36px 34px;
  text-align: center;
  background: linear-gradient(180deg, rgba(6,10,20,0.96), rgba(3,5,12,0.97));
  border: 1px solid var(--hss-cyan);
  animation: sy-panel 0.45s cubic-bezier(.2,1,.3,1) both;
  box-shadow: 0 0 40px rgba(30,156,230,0.33), 0 20px 60px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.1);
  clip-path: polygon(20px 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, calc(100% - 20px) 100%, 20px 100%, 0 calc(100% - 20px), 0 20px);
}

.sync-panel-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.sync-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 8px;
  background: var(--hss-cyan);
  box-shadow: 0 0 10px var(--hss-cyan);
  animation: sy-pulse 1.2s infinite;
}

.sync-panel-kicker {
  font-family: var(--f-labels);
  font-size: 12px;
  letter-spacing: 5px;
  color: var(--hss-cyan);
}

.sync-panel-title {
  margin: 8px 0 0;
  font-family: var(--f-display);
  font-size: 60px;
  letter-spacing: 3px;
  color: #eaf6ff;
  line-height: 0.95;
  text-shadow: 0 0 20px rgba(30,156,230,0.53);
}

.sync-panel-sub {
  margin-top: 6px;
  font-family: var(--f-mono);
  font-size: 12px;
  color: rgba(200,225,255,0.7);
  letter-spacing: 0.5px;
}

.sync-panel-sub .highlight { color: var(--hss-yellow); }

.sync-countdown {
  position: relative;
  width: 70px;
  height: 70px;
  margin: 16px auto 4px;
}

.sync-countdown-num {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-numbers);
  font-size: 26px;
  color: #fff;
}

.sync-choices {
  display: flex;
  gap: 14px;
  margin-top: 14px;
  justify-content: center;
}

.sync-choice {
  position: relative;
  flex: 1;
  transition: transform 0.14s;
  cursor: pointer;
}

.sync-choice:hover {
  transform: translateY(-6px);
}

.sync-choice-feature {
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-family: var(--f-labels);
  font-size: 8px;
  letter-spacing: 2px;
  color: #160f02;
  background: var(--hss-yellow);
  padding: 2px 10px;
  box-shadow: 0 0 10px rgba(253,200,47,0.53);
  white-space: nowrap;
}

.sync-choice-box {
  padding: 18px 14px 16px;
  border: 1.5px solid;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.sync-choice-box.accept {
  border-color: var(--hss-cyan);
  background: linear-gradient(180deg, rgba(12,16,28,0.9), rgba(5,8,16,0.92));
  box-shadow: 0 0 12px rgba(30,156,230,0.2);
}

.sync-choice-box.counter {
  border-color: var(--hss-yellow);
  background: linear-gradient(180deg, rgba(253,200,47,0.15), rgba(6,10,20,0.9));
  box-shadow: 0 0 24px rgba(253,200,47,0.4);
}

.sync-choice-box.retreat {
  border-color: var(--hss-red);
  background: linear-gradient(180deg, rgba(12,16,28,0.9), rgba(5,8,16,0.92));
  box-shadow: 0 0 12px rgba(227,6,19,0.2);
}

.sync-choice-name {
  font-family: var(--f-display);
  font-size: 30px;
  letter-spacing: 1.5px;
  color: #fff;
}

.sync-choice-mult {
  font-family: var(--f-numbers);
  font-size: 26px;
}

.sync-choice-mult.accept { color: var(--hss-cyan); text-shadow: 0 0 10px var(--hss-cyan); }
.sync-choice-mult.counter { color: var(--hss-yellow); text-shadow: 0 0 10px var(--hss-yellow); }
.sync-choice-mult.retreat { color: var(--hss-red); text-shadow: 0 0 10px var(--hss-red); }

.sync-choice-desc {
  font-family: var(--f-body);
  font-size: 12px;
  line-height: 1.3;
  color: rgba(205,222,255,0.75);
  margin-top: 6px;
  min-height: 32px;
}

.sync-choice-select {
  margin-top: 10px;
  font-family: var(--f-labels);
  font-size: 10px;
  letter-spacing: 2px;
  padding: 5px 0;
  background: rgba(0,0,0,0.3);
  cursor: pointer;
  border: none;
  width: 100%;
}

.sync-choice-select.accept { color: var(--hss-cyan); border-top: 1px solid rgba(30,156,230,0.4); }
.sync-choice-select.counter { color: var(--hss-yellow); border-top: 1px solid rgba(253,200,47,0.4); }
.sync-choice-select.retreat { color: var(--hss-red); border-top: 1px solid rgba(227,6,19,0.4); }

/* Sync animations */
@keyframes sy-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sy-panel {
  from { transform: translateY(26px) scale(0.96); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
@keyframes sy-scan {
  from { transform: translateY(-100%); }
  to { transform: translateY(900%); }
}
@keyframes sy-pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}
@keyframes sy-ring {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: 295; }
}

/* ═══════════════════════════════════════════════════════
   19. DEPLOY SLAM FX
   ═══════════════════════════════════════════════════════ */
.deploy-slam {
  position: absolute;
  left: 50%;
  top: 53%;
  z-index: 8;
  pointer-events: none;
}

.deploy-slam-ring {
  position: absolute;
  left: 0;
  top: 0;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  animation: fx-ring 0.6s ease-out forwards;
}

.deploy-slam-ring.normal {
  border: 3px solid var(--hss-purple);
  box-shadow: 0 0 20px var(--hss-purple);
}

.deploy-slam-ring.signature {
  border: 4px solid #ffd700;
  box-shadow: 0 0 36px #ffd700;
}

.deploy-slam-spark {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 7px;
  animation: fx-spark 0.6s ease-out forwards;
}

.deploy-slam-spark.normal {
  background: var(--hss-purple);
  box-shadow: 0 0 8px var(--hss-purple);
}

.deploy-slam-spark.signature {
  background: #ffd700;
  box-shadow: 0 0 8px #ffd700;
}

.deploy-slam-card {
  animation: fx-slam 0.5s cubic-bezier(0.3, 1.4, 0.4, 1) both;
}

.deploy-slam-card.signature .card-full {
  border-color: #ffd700;
  box-shadow: 0 0 22px #ffd700, inset 0 0 16px rgba(255,215,0,0.4);
}

.deploy-slam-banner {
  position: absolute;
  left: 50%;
  top: -90px;
  transform: translateX(-50%);
  white-space: nowrap;
  text-align: center;
  animation: me-rise 0.4s ease both;
}

.deploy-slam-banner-title {
  font-family: var(--f-display);
  font-size: 26px;
  letter-spacing: 3px;
  color: #FDC82F;
  text-shadow: 0 0 14px #FDC82F, 0 0 30px rgba(253,200,47,0.53);
}

.deploy-slam-banner-sub {
  font-family: var(--f-labels);
  font-size: 10px;
  letter-spacing: 2px;
  color: rgba(255,235,180,0.9);
  margin-top: 2px;
}

/* ═══════════════════════════════════════════════════════
   20. RESPONSIVE
   ═══════════════════════════════════════════════════════ */
@media (max-width: 960px) {
  .arena-rail { display: none; }
  .corner-plate.player-plate { left: 14px; bottom: 196px; }
  .corner-plate.bot-plate { right: 14px; }
  .battle-log-new { width: 240px; right: 14px; }
  .arena-hand { max-width: 100%; padding: 0 14px; }
  .card-mini-new { width: 68px; height: 96px; }
  .sync-panel { width: 90vw; padding: 20px 24px; }
  .sync-panel-title { font-size: 42px; }
  .match-end-title { font-size: 72px; }
  .match-end-stats { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 560px) {
  .hud-redesign { flex-direction: column; height: auto; padding: 8px 14px; gap: 6px; }
  .hud-turn-frame { padding: 4px 16px; }
  .corner-plate { display: none; }
  .card-mini-new { width: 56px; height: 80px; }
  .card-mini-new .pip { width: 14px; height: 14px; font-size: 9px; }
  .arena-actions { left: 50%; transform: translateX(-50%); bottom: 130px; }
  .match-end-title { font-size: 48px; letter-spacing: 3px; }
  .match-end-stat { min-width: 80px; padding: 8px 12px; }
  .match-end-stat-value { font-size: 24px; }
}
