:root {
  --panel: #080c16;
  --text-main: #eef2ff;
  --text-muted: rgba(224, 232, 255, 0.62);
  --accent: #ff4a2a;
  --accent-2: #ffb800;
  --accent-ice: #3b9eff;
  --shadow: rgba(4, 8, 20, 0.44);
  --border: rgba(255, 255, 255, 0.12);
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: "Rajdhani", "Segoe UI", Arial, sans-serif;
  color: var(--text-main);
  background: var(--panel);
  padding: 0;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

.shell {
  min-height: 100dvh;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
}

main.shell {
  margin: 0;
}

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* ── PREVIEW MODE ────────────────────────────────────────────────── */
/* Targeted resets for preview grid iframes. No greedy wildcards.     */
html.preview-mode,
body.preview-mode {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: transparent !important;
}

body.preview-mode #soundToggle {
  display: none !important;
}

/* Structural containers — full bleed */
body.preview-mode .shell,
body.preview-mode .game-card,
body.preview-mode .canvas-wrap,
body.preview-mode .game-stage {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
  gap: 0 !important;
  display: block !important;
  overflow: hidden !important;
}

body.preview-mode #gameCanvas {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
}

/* Overlay containers — zero outer padding, keep inner layout intact */
body.preview-mode .picker-overlay,
body.preview-mode .gate-overlay {
  padding: 0 !important;
}

/* Panels — compact padding for preview thumbnails */
body.preview-mode .picker-panel,
body.preview-mode .gate-panel {
  padding: 8px !important;
}

body.preview-mode .result-card {
  padding: 8px !important;
}

/* Hide scrollbars in preview only on scroll containers */
body.preview-mode .picker-grid,
body.preview-mode .gate-panel,
body.preview-mode .result-card {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

body.preview-mode .picker-grid::-webkit-scrollbar,
body.preview-mode .gate-panel::-webkit-scrollbar,
body.preview-mode .result-card::-webkit-scrollbar {
  display: none !important;
}

body.preview-mode .picker-grid {
  width: 100%;
  max-width: 100%;
}


.game-card {
  position: relative;
  width: 100%;
  max-width: 100%;
  background: transparent;
  display: grid;
  gap: 12px;
  padding: 0;
}

.field {
  display: block;
  cursor: pointer;
}

.field span,
.result-label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-muted);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

button {
  cursor: pointer;
  font: inherit;
  border: 0;
  border-radius: 16px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition:
    transform 120ms ease,
    filter 120ms ease,
    opacity 120ms ease;
}

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

button:active {
  transform: translateY(1px);
}

button:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

.primary-button,
.secondary-button,
.ghost-button {
  min-height: 50px;
  padding: 0 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.primary-button {
  background: linear-gradient(135deg, var(--accent), #e63600);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(255, 74, 42, 0.32);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.secondary-button {
  background: linear-gradient(135deg, var(--accent-2), #ff9500);
  color: #0a0c14;
}

.ghost-button {
  width: 100%;
  background: transparent;
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.result-stats strong {
  display: block;
  font-size: 1.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.canvas-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: auto;
  padding: 0;
}

.game-stage {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 100svh;
  aspect-ratio: auto;
  border-radius: 0;
  overflow: hidden;
  border: none;
  box-shadow: none;
  touch-action: manipulation;
  overscroll-behavior: contain;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

canvas {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #87dfff 0%, #dff7ff 58%, #f4d17b 100%);
  touch-action: none;
  border-radius: 0;
}

/* Hard-kill rounded corners on the top container across every screen */
html,
body,
.shell,
main.shell,
.game-card,
.canvas-wrap,
.game-stage,
#gameCanvas {
  border-radius: 0 !important;
}

.sound-toggle {
  position: absolute;
  top: calc(14px + env(safe-area-inset-top, 0px));
  right: calc(14px + env(safe-area-inset-right, 0px));
  z-index: 6;
  min-width: 84px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 17, 28, 0.74);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.sound-toggle:hover {
  filter: brightness(1.02);
}

.canvas-message {
  position: absolute;
  inset: auto calc(16px + env(safe-area-inset-right, 0px)) calc(18px + env(safe-area-inset-bottom, 0px))
    calc(16px + env(safe-area-inset-left, 0px));
  z-index: 2;
  padding: 14px 18px;
  border-radius: 20px;
  text-align: center;
  background: rgba(10, 17, 28, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.canvas-title {
  font-weight: 700;
}

.canvas-subtitle {
  margin-top: 4px;
  color: var(--text-muted);
}

.gate-overlay {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: block;
  padding:
    env(safe-area-inset-top, 0px)
    env(safe-area-inset-right, 0px)
    env(safe-area-inset-bottom, 0px)
    env(safe-area-inset-left, 0px);
  background:
    radial-gradient(circle at top, rgba(59, 158, 255, 0.08), transparent 36%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.94));
  backdrop-filter: blur(14px);
}

.gate-panel {
  width: 100%;
  height: 100%;
  padding: 24px 18px 18px;
  border-radius: 0;
  background: rgba(8, 8, 8, 0.92);
  border: none;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.gate-panel,
.picker-grid,
.result-panel {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.gate-panel::-webkit-scrollbar,
.picker-grid::-webkit-scrollbar,
.result-panel::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.gate-panel-compact {
  justify-content: center;
}

.gate-title {
  margin: 6px 0 0;
  font-family: "Rajdhani", "Segoe UI", Arial, sans-serif;
  font-size: clamp(1.2rem, 4.4vw, 1.72rem);
  font-weight: 800;
  line-height: 1.04;
  color: var(--text-main);
}

.gate-copy {
  margin: 0 0 4px;
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.gate-field span {
  margin-bottom: 8px;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.gate-date-field {
  position: relative;
}

.gate-date-trigger {
  display: none;
}

.gate-date-trigger.has-value {
  color: var(--text-main);
}

.gate-date-chevron {
  font-size: 1rem;
  color: var(--accent-ice);
}

.gate-date-field:focus-within .gate-date-trigger {
  outline: 2px solid rgba(59, 158, 255, 0.44);
  outline-offset: 2px;
}

.gate-date-native {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  font: inherit;
  cursor: pointer;
  font-size: 16px;
  appearance: none;
  -webkit-appearance: none;
}

.gate-date-native::placeholder {
  color: rgba(247, 251, 255, 0.64);
  opacity: 1;
}

.gate-date-native:focus {
  outline: 2px solid rgba(59, 158, 255, 0.44);
  outline-offset: 2px;
}

.profile-spotlight {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(59, 158, 255, 0.12), rgba(255, 74, 42, 0.06)),
    rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.profile-spotlight-media {
  position: relative;
  width: 112px;
  height: 112px;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.profile-spotlight-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-spotlight-flag {
  position: absolute;
  right: 8px;
  bottom: 8px;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.58);
  font-size: 1rem;
}

.profile-spotlight-flag.has-asset {
  padding: 0;
  min-width: 36px;
  width: 36px;
  background:
    var(--flag-asset) center/cover no-repeat,
    rgba(0, 0, 0, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.24);
}

.profile-spotlight-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile-spotlight-tagline {
  color: var(--accent-2);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-spotlight-name {
  color: var(--text-main);
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.05;
}

.profile-spotlight-subline {
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.gate-consent-note {
  margin: 0;
  color: rgba(247, 251, 255, 0.74);
  font-size: 0.75rem;
  line-height: 1.4;
}

.gate-consent-note a {
  color: var(--accent-ice);
}

.gate-input {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  font: inherit;
}

.gate-input:focus {
  outline: 2px solid rgba(59, 158, 255, 0.44);
  outline-offset: 2px;
}

.gate-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-main);
  line-height: 1.45;
  cursor: pointer;
}

.gate-checkbox input {
  margin-top: 3px;
  flex: 0 0 auto;
}

.gate-checkbox a {
  color: var(--accent-ice);
}

.gate-error {
  margin: -2px 0 0;
  color: #ff6b6b;
  font-size: 0.88rem;
}

.gate-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.gate-button {
  width: 100%;
}

.picker-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: block;
  padding:
    env(safe-area-inset-top, 0px)
    env(safe-area-inset-right, 0px)
    env(safe-area-inset-bottom, 0px)
    env(safe-area-inset-left, 0px);
  background:
    radial-gradient(circle at top, rgba(59, 158, 255, 0.06), transparent 34%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.26), rgba(0, 0, 0, 0.92));
  backdrop-filter: blur(12px);
  touch-action: pan-y;
}

.picker-panel {
  width: 100%;
  height: 100%;
  padding: clamp(16px, 2vw, 24px) clamp(12px, 1.5vw, 18px) clamp(12px, 1.5vw, 18px);
  border-radius: 0;
  background:
    radial-gradient(circle at top, rgba(255, 132, 38, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(18, 12, 10, 0.98), rgba(8, 8, 8, 0.96));
  border: none;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  touch-action: pan-y;
}

.picker-kicker {
  /* Tier 2: Secondary text - smaller but readable */
  color: var(--accent-ice);
  font-size: clamp(11px, 1.5vw, 14px);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0;
}

.picker-kicker:empty {
  display: none;
}

.picker-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(8px, 1.5vw, 16px);
}

.picker-title {
  /* Tier 1: Primary headline - largest element, guides attention */
  margin: clamp(8px, 1.2vw, 12px) 0 clamp(6px, 1vw, 10px);
  font-family: "Rajdhani", "Segoe UI", Arial, sans-serif;
  font-size: clamp(1.8rem, 7vw, 2.6rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--text-main);
}

.picker-back {
  /* Premium back nav — frosted glass + chevron icon */
  display: inline-flex;
  align-items: center;
  gap: clamp(4px, 0.6vw, 6px);
  min-height: 44px;
  min-width: 44px;
  padding: clamp(6px, 0.8vw, 10px) clamp(10px, 1.2vw, 14px) clamp(6px, 0.8vw, 10px) clamp(8px, 1vw, 10px);
  border-radius: clamp(10px, 1.4vw, 14px);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: clamp(11px, 1.4vw, 13px);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.12s ease;
  flex-shrink: 0;
}

.picker-back::before {
  content: "\2039";
  font-size: 1.3em;
  font-weight: 700;
  line-height: 1;
  opacity: 0.85;
  transition: transform 0.2s ease;
}

.picker-back:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08));
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.picker-back:hover::before {
  transform: translateX(-2px);
}

.picker-back:active {
  transform: scale(0.96);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  box-shadow:
    0 0 2px rgba(0, 0, 0, 0.2),
    inset 0 1px 3px rgba(0, 0, 0, 0.15);
}

.picker-back:focus-visible {
  outline: 2px solid rgba(59, 158, 255, 0.6);
  outline-offset: 2px;
}

.picker-subtitle {
  /* Tier 2: Supporting text below title */
  margin: 0 0 clamp(12px, 1.5vw, 18px);
  color: var(--text-muted);
  line-height: 1.45;
  font-size: clamp(12px, 1.8vw, 16px);
}

.picker-subtitle.hidden {
  display: none;
}

.picker-heading-row:has(.picker-back:not(.hidden)) + .picker-subtitle {
  display: none;
}

.picker-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  /* Tier 3: Gaps between rival cards - can compress */
  gap: clamp(10px, 1.5vw, 16px);
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  /* Tier 3: Padding around grid - minimal, compresses first */
  padding: 0 clamp(4px, 0.8vw, 8px) clamp(8px, 1.2vw, 12px);
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  align-content: start;
  touch-action: pan-y;
}

.picker-grid,
.picker-grid::-webkit-scrollbar {
  scrollbar-width: none;
}

.picker-grid::-webkit-scrollbar {
  display: none;
}

.picker-bird {
  display: grid;
  justify-items: center;
  /* Tier 3: Spacing absorbs squeeze */
  gap: clamp(6px, 1vw, 12px);
  padding: clamp(6px, 1.2vw, 12px) clamp(5px, 1vw, 10px) clamp(4px, 0.8vw, 8px);
  background: transparent;
  color: var(--text-main);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.picker-bird:hover {
  /* Affordance: Scale photo, brighten background, add depth */
  transform: translateY(-4px) scale(1.03);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.32);
}

.picker-bird-circle {
  /* Tier 1: Photo is CRITICAL for emotional connection */
  /* Lock minimum 60px for face recognition threshold */
  min-width: 60px;
  min-height: 60px;
  width: clamp(60px, 35vw, 140px);
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  /* Scale border proportionally */
  border: clamp(2px, 0.4vw, 3px) solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  /* Scale shadow proportionally */
  box-shadow: 0 clamp(6px, 1.2vw, 12px) clamp(14px, 2.5vw, 28px) rgba(0, 0, 0, 0.28);
  transition: box-shadow 0.2s ease;
}

.picker-bird:hover .picker-bird-circle {
  /* Enhanced shadow on hover */
  box-shadow: 0 clamp(8px, 1.5vw, 16px) clamp(18px, 3vw, 36px) rgba(0, 0, 0, 0.4);
}

.picker-bird-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* PREVIEW MODE: Additional compression for tight spaces */
body.preview-mode .picker-bird {
  /* In preview, compress spacing more aggressively */
  gap: clamp(4px, 0.6vw, 8px);
  padding: clamp(3px, 0.8vw, 8px) clamp(2px, 0.6vw, 6px) clamp(2px, 0.5vw, 4px);
}

body.preview-mode .picker-bird-circle {
  /* Tier 1 minimums in preview mode */
  width: clamp(50px, 30vw, 120px);
}

body.preview-mode .picker-bird-name {
  /* In preview, slightly more aggressive compression */
  font-size: clamp(11px, 1.6vw, 15px);
}

body.preview-mode .picker-bird-meta {
  font-size: clamp(9px, 1.4vw, 13px);
}

.countdown-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  gap: 10px;
  background: radial-gradient(circle, rgba(4, 8, 16, 0.1), rgba(4, 8, 16, 0.48));
  pointer-events: none;
}

.countdown-number {
  font-family: "Rajdhani", "Segoe UI", Arial, sans-serif;
  font-size: clamp(5rem, 24vw, 8rem);
  font-weight: 900;
  line-height: 0.9;
  color: var(--text-main);
  text-shadow:
    0 10px 28px rgba(0, 0, 0, 0.42),
    0 0 22px rgba(59, 158, 255, 0.2);
}

.countdown-copy {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.picker-bird-name {
  /* Tier 2: Name - readable minimum 12px, grows with screen */
  font-size: clamp(12px, 2.2vw, 18px);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  margin: 0;
}

.picker-bird-meta {
  /* Tier 2: Meta - secondary info, readable minimum 10px */
  font-size: clamp(10px, 1.8vw, 14px);
  color: var(--text-muted);
  text-align: center;
  line-height: 1.3;
  margin: 0;
}

.picker-grid-battles {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-right: 0;
}

.picker-grid-hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
}

.picker-loading-card {
  display: grid;
  place-items: center;
  min-height: 280px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    rgba(10, 12, 18, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 18px 32px rgba(0, 0, 0, 0.24);
}

.picker-error-message {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.88rem;
  text-align: center;
}

.picker-retry-button {
  margin-top: 8px;
  min-width: 140px;
}

.picker-battle {
  display: block;
  flex: 0 0 auto;
  gap: 0;
  padding: 0;
  text-align: left;
  height: auto;
  border-radius: 24px;
  background: transparent;
  color: var(--text-main);
  border: none;
  overflow: hidden;
  contain: layout paint;
  cursor: pointer;
}

.picker-battle-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 6px;
  min-height: 0;
  position: relative;
  align-items: center;
  justify-items: center;
  padding: 18px 16px 10px;
}

.picker-battle-side {
  display: grid;
  gap: 4px;
  align-content: start;
  justify-items: center;
  width: 100%;
  min-width: 0;
  align-self: stretch;
  padding: 36px 12px 14px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(8, 10, 16, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 12px 24px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.picker-battle-side:first-child {
  background:
    linear-gradient(180deg, rgba(255, 158, 84, 0.08), rgba(255, 158, 84, 0.01)),
    rgba(14, 16, 22, 0.82);
  border-color: rgba(255, 172, 103, 0.1);
}

.picker-battle-side:last-child {
  background:
    linear-gradient(180deg, rgba(93, 148, 255, 0.08), rgba(93, 148, 255, 0.01)),
    rgba(10, 14, 24, 0.82);
  border-color: rgba(112, 162, 255, 0.1);
}

.picker-battle-photo {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 2px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  isolation: isolate;
}

.picker-battle-side:first-child .picker-battle-photo {
  animation: faceoffPortraitLeft 1.9s ease-in-out infinite;
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.28),
    0 0 0 3px rgba(255, 143, 51, 0.16),
    0 0 26px rgba(255, 143, 51, 0.2);
}

.picker-battle-side:last-child .picker-battle-photo {
  animation: faceoffPortraitRight 1.9s ease-in-out infinite;
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.28),
    0 0 0 3px rgba(56, 132, 255, 0.16),
    0 0 26px rgba(56, 132, 255, 0.2);
}

.picker-battle-photo::after {
  content: "";
  position: absolute;
  inset: -18% auto -18% -42%;
  width: 38%;
  transform: rotate(14deg);
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.24), transparent);
  mix-blend-mode: screen;
  opacity: 0;
  animation: faceoffShine 2.2s ease-in-out infinite;
  pointer-events: none;
}

.picker-battle-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.picker-battle-hero-name {
  width: 100%;
  text-align: center;
  margin-top: 10px;
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.1;
  color: var(--text-main);
}

.picker-battle-hero-name-warm {
  text-shadow:
    0 0 12px rgba(255, 160, 60, 0.7),
    0 0 28px rgba(255, 120, 20, 0.4);
}

.picker-battle-hero-name-cool {
  text-shadow:
    0 0 12px rgba(120, 180, 255, 0.7),
    0 0 28px rgba(60, 130, 255, 0.4);
}

.picker-battle-tagline {
  width: 100%;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
}

.picker-battle-tagline-warm {
  color: rgba(255, 180, 100, 0.95);
  text-shadow:
    0 0 12px rgba(255, 160, 60, 0.7),
    0 0 28px rgba(255, 120, 20, 0.4);
}

.picker-battle-tagline-cool {
  color: rgba(160, 200, 255, 0.95);
  text-shadow:
    0 0 12px rgba(120, 180, 255, 0.7),
    0 0 28px rgba(60, 130, 255, 0.4);
}

.picker-battle-side-metrics {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.picker-battle-side-metrics span {
  display: grid;
  gap: 2px;
  padding: 8px 6px;
  border-radius: 12px;
  background: rgba(3, 5, 10, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}

.picker-battle-side-metrics strong {
  font-size: 0.95rem;
  line-height: 1;
  color: var(--text-main);
}

.picker-battle-side-metrics em {
  font-style: normal;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.picker-battle-versus {
  align-self: center;
  justify-self: center;
  margin-top: -2px;
  width: 48px;
  height: 110px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(59, 158, 255, 0.12), rgba(59, 158, 255, 0.02));
  border-inline: 1px solid rgba(59, 158, 255, 0.18);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.34),
    inset 0 0 18px rgba(59, 158, 255, 0.14);
  font-size: 1.4rem;
  animation: faceoffSpark 1.05s ease-in-out infinite;
  clip-path: polygon(48% 0, 63% 0, 52% 36%, 73% 36%, 32% 100%, 44% 58%, 24% 58%);
}

.picker-battle-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 12px 16px 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    rgba(8, 9, 14, 0.72);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.picker-battle-footer-chip {
  min-width: 0;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  color: rgba(224, 232, 255, 0.86);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.picker-battle-footer-status {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(157, 255, 95, 0.12);
  border: 1px solid rgba(157, 255, 95, 0.22);
  color: #dfffc4;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.picker-battle-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 16px 16px;
}

.picker-battle-title {
  font-family: "Rajdhani", "Segoe UI", Arial, sans-serif;
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  text-align: center;
}

.picker-battle-copy {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.4;
  text-align: center;
}

.picker-battle-scene {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
  padding: 16px 16px 12px;
  min-height: 184px;
}

.picker-battle-side-left {
  background:
    linear-gradient(180deg, rgba(255, 158, 84, 0.18), rgba(255, 158, 84, 0.02)),
    rgba(24, 14, 9, 0.72);
  border-color: rgba(255, 172, 103, 0.16);
}

.picker-battle-side-right {
  background:
    linear-gradient(180deg, rgba(93, 148, 255, 0.18), rgba(93, 148, 255, 0.02)),
    rgba(10, 16, 28, 0.72);
  border-color: rgba(112, 162, 255, 0.16);
}

.picker-battle-side-top {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.picker-battle-role,
.picker-battle-flag {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(224, 232, 255, 0.92);
}

.picker-battle-side-left .picker-battle-role {
  background: rgba(34, 160, 80, 0.85);
  border-color: rgba(80, 220, 120, 0.3);
}

.picker-battle-side-right .picker-battle-role {
  background: rgba(200, 40, 40, 0.85);
  border-color: rgba(255, 100, 100, 0.3);
}

.picker-battle-role {
  top: -4px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.picker-battle-flag {
  bottom: -12px;
  min-width: 34px;
  font-size: 0.92rem;
}

.picker-battle-flag.has-asset,
.picker-hero-flag.has-asset {
  padding: 0;
  background:
    var(--flag-asset) center/cover no-repeat,
    rgba(0, 0, 0, 0.22);
  border-color: rgba(255, 255, 255, 0.18);
  color: transparent;
}

.picker-battle-flag.has-asset {
  min-width: 36px;
  width: 36px;
  height: 24px;
  min-height: 24px;
  border-radius: 4px;
}

.picker-battle-photo-ring {
  position: relative;
  width: 172px;
  height: 172px;
  margin: 0 auto;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background:
    var(--battle-ring-art, url("/assets/ui/arena/fire-ring.svg")) center/100% 100% no-repeat,
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.02) 60%, transparent 68%),
    rgba(255, 255, 255, 0.03);
  border: 0;
  box-shadow:
    inset 0 0 0 5px rgba(255, 255, 255, 0.02);
  overflow: visible;
}

.picker-battle-side-left .picker-battle-photo {
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.24),
    0 0 0 4px rgba(255, 143, 51, 0.12),
    0 0 22px rgba(255, 143, 51, 0.22);
}

.picker-battle-side-right .picker-battle-photo {
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.24),
    0 0 0 4px rgba(56, 132, 255, 0.12),
    0 0 22px rgba(56, 132, 255, 0.22);
}

.picker-battle-hero-name {
  font-size: 1.8rem;
  letter-spacing: 0.08em;
}
.picker-battle-tagline {
  font-size: 1.05rem;
  letter-spacing: 0.06em;
}

.picker-battle-divider {
  display: none;
}

.picker-battle-divider span {
  display: none;
}

.picker-battle-divider strong {
  display: none;
}

.picker-battle-strip {
  display: grid;
  gap: 6px;
  padding: 2px 14px 10px;
}

.picker-battle-strip-stats {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.picker-battle-strip-stats span {
  color: var(--text-muted);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.picker-battle-strip-stats strong {
  color: var(--text-main);
  font-weight: 800;
}

.picker-battle-strip-status {
  min-width: 180px;
  padding: 12px 28px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(30, 160, 100, 0.6), rgba(20, 120, 75, 0.7));
  border: 1px solid rgba(50, 200, 130, 0.3);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
}

.picker-battle-heroes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.picker-battle-hero {
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
}

.picker-battle-hero strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-main);
}

.picker-battle-hero span {
  display: block;
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 0.75rem;
  line-height: 1.35;
}

.picker-hero-card {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 12px 10px 12px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--hero-accent, rgba(255, 255, 255, 0.08)) 85%, rgba(4, 5, 8, 0.28)), rgba(12, 14, 22, 0.96) 36%, rgba(8, 8, 12, 0.98)),
    rgba(16, 16, 16, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-main);
  min-width: 0;
  box-shadow:
    0 22px 42px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.picker-hero-faceoff {
  grid-column: 1 / -1;
  width: 100%;
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.picker-hero-card-faceoff {
  flex: 1 1 0;
  min-width: 0;
  min-height: 100%;
}

.picker-hero-versus {
  flex: 0 0 30px;
  align-self: center;
  justify-self: center;
  width: 30px;
  min-height: 138px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 4px;
  color: var(--accent-2);
  text-shadow: 0 0 16px rgba(255, 184, 0, 0.28);
}

.picker-hero-versus span {
  font-size: 1.2rem;
  line-height: 1;
  animation: faceoffSpark 1.05s ease-in-out infinite;
}

.picker-hero-versus strong {
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.picker-hero-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.picker-hero-role {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.26);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(224, 232, 255, 0.84);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.picker-hero-portrait {
  position: relative;
  width: 88px;
  height: 88px;
  margin: 0 auto;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border: 3px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.26),
    0 0 0 6px color-mix(in srgb, var(--hero-accent, rgba(255, 255, 255, 0.08)) 72%, transparent),
    0 0 30px color-mix(in srgb, var(--hero-accent, rgba(255, 255, 255, 0.08)) 82%, transparent);
  animation: heroPortraitPulse 1.7s ease-in-out infinite;
}

.picker-hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.picker-hero-flag {
  min-width: 30px;
  height: 24px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
}

.picker-hero-name {
  display: block;
  text-align: center;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-main);
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.32);
}

.picker-hero-stats {
  width: 100%;
  display: grid;
  gap: 6px;
  padding: 8px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    rgba(7, 9, 14, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.picker-hero-stats div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 8px;
  border-radius: 12px;
  background: rgba(14, 16, 24, 0.62);
}

.picker-hero-stats span {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: left;
}

.picker-hero-stats strong {
  font-size: 0.82rem;
  color: var(--text-main);
}

.picker-hero-choose {
  width: 100%;
  min-height: 52px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-main);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.18;
  white-space: normal;
  padding: 10px 14px;
}

.picker-hero-choose-green {
  background: linear-gradient(180deg, rgba(72, 196, 116, 0.56), rgba(24, 118, 62, 0.84));
}

.picker-hero-choose-blue {
  background: linear-gradient(180deg, rgba(63, 133, 255, 0.58), rgba(22, 79, 188, 0.84));
}

.picker-hero-showdown {
  grid-column: 1 / -1;
  display: grid;
  grid-template-rows: minmax(0, 1fr) 36px minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
  padding: 14px 12px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    radial-gradient(circle at 50% 18%, rgba(255, 166, 64, 0.14), transparent 32%),
    rgba(7, 9, 14, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
  contain: layout paint;
  min-height: clamp(520px, 78vh, 720px);
}

.picker-hero-side {
  display: grid;
  gap: 14px;
  align-content: start;
  grid-template-rows: auto auto auto 1fr auto;
  padding: 14px 10px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--hero-accent, rgba(255, 255, 255, 0.08)) 80%, rgba(255, 255, 255, 0.04)), rgba(7, 11, 18, 0.96) 32%, rgba(5, 7, 12, 0.98)),
    rgba(7, 9, 14, 0.96);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 14px 26px rgba(0, 0, 0, 0.24);
  min-width: 0;
  overflow: hidden;
}

/* Keep in sync with .picker-battle-side-left / -right so both screens
   (Back Your Hero and Who Do You Fight For) look visually identical. */
.picker-hero-side-left {
  background:
    linear-gradient(180deg, rgba(255, 158, 84, 0.18), rgba(255, 158, 84, 0.02)),
    rgba(24, 14, 9, 0.72);
  border-color: rgba(255, 172, 103, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 196, 128, 0.14),
    0 0 0 1px rgba(255, 153, 72, 0.24),
    0 18px 30px rgba(0, 0, 0, 0.28);
}

.picker-hero-side-right {
  background:
    linear-gradient(180deg, rgba(93, 148, 255, 0.18), rgba(93, 148, 255, 0.02)),
    rgba(10, 16, 28, 0.72);
  border-color: rgba(112, 162, 255, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(160, 200, 255, 0.14),
    0 0 0 1px rgba(73, 139, 255, 0.28),
    0 18px 30px rgba(0, 0, 0, 0.28);
}

.picker-hero-role-score {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.14);
  flex: 0 0 auto;
}

.picker-hero-role-score span {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(224, 232, 255, 0.72);
}

.picker-hero-role-score strong {
  font-size: 0.92rem;
  font-weight: 800;
  color: #ffd76a;
  letter-spacing: 0.02em;
}

.picker-hero-side-right .picker-hero-role-score strong {
  color: #8ec4ff;
}

.picker-hero-side-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.picker-hero-side .picker-hero-role {
  min-height: 26px;
  padding: 0 10px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  flex: 0 0 auto;
}

.picker-hero-side .picker-hero-flag {
  min-width: 30px;
  height: 26px;
  padding: 0 7px;
  font-size: 0.84rem;
  flex: 0 0 auto;
}

.picker-hero-flag.has-asset {
  min-width: 34px;
  width: 34px;
  height: 22px;
  min-height: 22px;
  border-radius: 4px;
}

.picker-hero-portrait-ring {
  width: 108px;
  height: 108px;
  margin: 0 auto;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background:
    var(--hero-ring-art, url("/assets/ui/arena/fire-ring.svg")) center/100% 100% no-repeat,
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02) 60%, transparent 68%),
    rgba(255, 255, 255, 0.03);
  border: 0;
  box-shadow:
    inset 0 0 0 6px rgba(255, 255, 255, 0.02);
}

.picker-hero-showdown .picker-hero-portrait {
  width: 72px;
  height: 72px;
  border-width: 2px;
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.24),
    0 0 0 4px color-mix(in srgb, var(--hero-accent, rgba(255, 255, 255, 0.08)) 48%, rgba(255, 255, 255, 0.04)),
    0 0 22px color-mix(in srgb, var(--hero-accent, rgba(255, 255, 255, 0.08)) 68%, transparent);
}

.picker-hero-showdown .picker-hero-name {
  font-size: 1rem;
  letter-spacing: 0.05em;
}

.picker-hero-showdown .picker-hero-stats {
  width: 100%;
  padding: 9px;
  gap: 6px;
}

.picker-hero-showdown .picker-hero-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 9px;
  border-radius: 12px;
  background: rgba(10, 12, 20, 0.62);
}

.picker-hero-showdown .picker-hero-stats span {
  font-size: 0.75rem;
}

.picker-hero-showdown .picker-hero-stats strong {
  font-size: 0.82rem;
}

.picker-hero-showdown .picker-hero-choose {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  min-height: 56px;
  font-size: 0.75rem;
  padding-inline: 8px;
  line-height: 1.12;
  text-align: center;
  white-space: normal;
  background:
    url("/assets/ui/arena/action-button.svg") center/100% 100% no-repeat,
    transparent;
  border: 0;
  box-shadow: none;
}

.picker-hero-versus {
  display: grid;
  place-items: center;
  align-self: center;
  gap: 2px;
  color: var(--accent-2);
  text-shadow:
    0 0 14px rgba(255, 184, 0, 0.42),
    0 8px 18px rgba(0, 0, 0, 0.24);
}

.picker-hero-versus span {
  display: block;
  width: 44px;
  height: 58px;
  font-size: 0;
  line-height: 0;
  background: url("/assets/ui/arena/lightning-pack.svg") center/contain no-repeat;
  animation: faceoffSpark 1.05s ease-in-out infinite;
}

.picker-hero-versus strong {
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.picker-selecting .picker-bird,
.picker-selecting .picker-battle,
.picker-selecting .picker-hero-card {
  opacity: 0.72;
  pointer-events: none;
}

.picker-selecting .picker-bird-active,
.picker-selecting .picker-battle-active,
.picker-selecting .picker-hero-card-active {
  opacity: 1;
  box-shadow:
    0 18px 36px rgba(255, 184, 0, 0.26),
    inset 0 0 0 1px rgba(255, 184, 0, 0.24);
}

.picker-wait {
  margin-top: 4px;
  color: var(--accent-2);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.result-card {
  position: absolute;
  inset: 0;
  z-index: 7;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

.share-sheet {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 14px;
  padding:
    calc(24px + env(safe-area-inset-top, 0px))
    calc(20px + env(safe-area-inset-right, 0px))
    calc(24px + env(safe-area-inset-bottom, 0px))
    calc(20px + env(safe-area-inset-left, 0px));
  background:
    linear-gradient(180deg, rgba(7, 10, 18, 0.26), rgba(7, 10, 18, 0.94) 38%),
    rgba(5, 8, 14, 0.88);
  backdrop-filter: blur(14px);
}

.share-sheet-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(59, 158, 255, 0.14), rgba(255, 74, 42, 0.1)),
    rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(59, 158, 255, 0.16);
}

.share-sheet-card-kicker {
  color: var(--accent-2);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.share-sheet-card-title {
  margin: 0;
  font-size: 1.26rem;
  line-height: 1.08;
  color: var(--text-main);
}

.share-sheet-card-copy,
.share-sheet-card-tip {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.4;
}

.share-sheet-card-tip {
  font-size: 0.82rem;
  color: rgba(224, 232, 255, 0.78);
}

.share-sheet-status {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.45;
}

.share-sheet-options {
  display: grid;
  gap: 12px;
  margin-top: auto;
}

.share-option-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 20px;
  border-radius: 16px;
  border: none;
  background: linear-gradient(180deg, #25d366, #1fa855);
  color: #ffffff;
  font-size: 1.06rem;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.36);
}

.share-option-hero .share-option-icon {
  width: 24px;
  height: 24px;
  background: transparent;
}

.share-option-row {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.share-option-compact {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  cursor: pointer;
}

.share-option-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.92rem;
  font-weight: 800;
  color: #ffffff;
  justify-self: center;
}

.share-option-icon-whatsapp {
  background: transparent;
}

.share-option-icon-twitter {
  background: #0f1720;
}

.share-option-icon-facebook {
  background: #1877f2;
}

.share-option-icon-more,
.share-option-icon-copy {
  background: rgba(255, 255, 255, 0.14);
}

.share-sheet-busy .share-option,
.share-sheet-busy .share-sheet-back {
  pointer-events: none;
}

.share-sheet-back {
  margin-top: 2px;
}

.result-card h2 {
  margin: 6px 0 0;
  font-family: "Rajdhani", "Segoe UI", Arial, sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1.42rem;
  line-height: 1.15;
  color: var(--text-main);
}

.result-copy {
  margin: 8px 0 0;
  color: var(--text-muted);
  line-height: 1.42;
}

.result-hero {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding-right: clamp(16px, 12vw, 96px);
}

.result-avatar-frame {
  width: 92px;
  height: 92px;
  flex: 0 0 92px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    radial-gradient(circle at top, rgba(255, 215, 96, 0.14), transparent 55%),
    rgba(255, 255, 255, 0.04);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.32);
}

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

.result-score-pill {
  min-width: 84px;
  flex: 1 1 0;
  padding: 12px 12px 10px;
  border-radius: 20px;
  text-align: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.result-score-pill-secondary {
  background: rgba(255, 255, 255, 0.06);
}

.result-score-pill span {
  display: block;
  margin-bottom: 4px;
  color: var(--text-muted);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.result-score-pill strong {
  display: block;
  font-family: "Rajdhani", "Segoe UI", Arial, sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--accent-ice);
}

.share-button {
  width: 100%;
  margin-top: 6px;
  min-height: 62px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  animation:
    sharePulse 1.6s ease-in-out infinite,
    shareGlow 2.2s ease-in-out infinite;
}

.replay-link {
  width: 100%;
  min-height: 40px;
  background: transparent;
  color: rgba(247, 251, 255, 0.72);
  border: 0;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.replay-link:hover {
  color: #ffffff;
  filter: none;
}

.hidden {
  display: none !important;
}

@keyframes sharePulse {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-1px) scale(1.028);
  }
}

@keyframes shareGlow {
  0%,
  100% {
    box-shadow: 0 12px 24px rgba(255, 95, 31, 0.26);
  }

  50% {
    box-shadow:
      0 18px 36px rgba(255, 95, 31, 0.34),
      0 0 0 8px rgba(255, 184, 0, 0.12);
  }
}

@keyframes faceoffPortraitLeft {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.06);
  }
}

@keyframes faceoffPortraitRight {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.06);
  }
}

@keyframes faceoffShine {
  0%,
  100% {
    opacity: 0;
    transform: translateX(0) rotate(14deg);
  }

  35% {
    opacity: 0;
  }

  55% {
    opacity: 0.85;
    transform: translateX(248%) rotate(14deg);
  }

  70% {
    opacity: 0;
  }
}

@keyframes faceoffSpark {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.34);
  }

  50% {
    transform: scale(1.14);
    box-shadow:
      0 0 0 6px rgba(255, 212, 71, 0.08),
      0 16px 34px rgba(0, 0, 0, 0.38);
  }
}

@keyframes heroPortraitPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.26);
  }

  50% {
    transform: scale(1.05);
    box-shadow:
      0 14px 32px rgba(0, 0, 0, 0.32),
      0 0 0 5px rgba(59, 158, 255, 0.08);
  }
}

@media (max-width: 960px) {
  .canvas-wrap {
    min-height: auto;
  }
}

@media (max-width: 1200px) {
  /* ── UNIVERSAL MOBILE FULL-BLEED ──────────────────────────────── */
  /* Every screen (picker, profile gate, email gate, result, share)  */
  /* lives inside .game-stage. Kill all outer frames and make every  */
  /* overlay edge-to-edge. Inner panels get tight padding + no radius*/
  /* so they visually ARE the viewport.                              */

  .shell {
    display: block;
    min-height: 100svh;
    padding: 0;
  }

  .game-card {
    width: 100%;
    max-width: none;
    height: 100svh;
    gap: 0;
    display: block;
  }

  .canvas-wrap {
    width: 100%;
    height: 100%;
    min-height: auto;
    display: block;
    padding: 0;
  }

  .game-stage {
    width: 100%;
    max-width: 100%;
    height: 100svh;
    aspect-ratio: auto;
    border-radius: 0;
    border: none;
    box-shadow: none;
  }

  .canvas-message {
    inset: auto calc(14px + env(safe-area-inset-right, 0px)) calc(18px + env(safe-area-inset-bottom, 0px))
      calc(14px + env(safe-area-inset-left, 0px));
  }

  /* All absolute-positioned overlays: zero outer padding except safe area */
  .picker-overlay,
  .gate-overlay {
    display: block;
    padding:
      env(safe-area-inset-top, 0px)
      env(safe-area-inset-right, 0px)
      env(safe-area-inset-bottom, 0px)
      env(safe-area-inset-left, 0px);
  }

  /* All inner panels: full width/height, no frame, tight content padding */
  .picker-panel,
  .gate-panel {
    width: 100%;
    height: 100%;
    max-width: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 14px 12px 14px;
  }

  /* Result card is a pure full-bleed container — the inner state owns padding + bg */
  .result-card {
    width: 100%;
    height: 100%;
    max-width: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    background: transparent;
  }

  .result-state {
    padding:
      calc(14px + env(safe-area-inset-top, 0px))
      calc(14px + env(safe-area-inset-right, 0px))
      calc(14px + env(safe-area-inset-bottom, 0px))
      calc(14px + env(safe-area-inset-left, 0px));
  }

  .share-sheet {
    padding:
      calc(14px + env(safe-area-inset-top, 0px))
      calc(12px + env(safe-area-inset-right, 0px))
      calc(14px + env(safe-area-inset-bottom, 0px))
      calc(12px + env(safe-area-inset-left, 0px));
  }

  /* Sound toggle — compact, sits inside picker header top-right */
  .sound-toggle {
    top: calc(14px + env(safe-area-inset-top, 0px));
    right: calc(10px + env(safe-area-inset-right, 0px));
    min-width: 0;
    min-height: 34px;
    padding: 0 10px;
    font-size: 0.62rem;
    border-radius: 999px;
  }

  /* Reserve header right-side space so title does not run under the mute button */
  .picker-heading-row,
  .picker-kicker {
    padding-right: 64px;
  }

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

  .picker-grid-battles {
    grid-template-columns: 1fr;
  }

  .picker-kicker {
    font-size: 0.75rem;
  }

  .picker-title {
    margin: 8px 0 6px;
    font-size: clamp(1.46rem, 6vw, 1.96rem);
  }

  .picker-overlay.picker-mode-hero .picker-title {
    font-size: clamp(1.34rem, 5.6vw, 1.78rem);
    max-width: none;
  }

  .picker-overlay.picker-mode-hero .picker-heading-row {
    display: block;
  }

  .picker-overlay.picker-mode-hero .picker-back {
    display: inline-flex;
    margin-top: clamp(6px, 1vw, 10px);
    margin-left: auto;
  }

  .picker-subtitle {
    display: block;
    font-size: 0.85rem;
  }

  .picker-battle-scene {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 6px;
    padding: 12px 4px 8px;
    min-height: 150px;
  }

  .picker-battle-photo-ring {
    width: min(148px, 38vw);
    height: min(148px, 38vw);
  }

  .picker-battle-photo {
    width: 100%;
    height: 100%;
  }

  .picker-battle-side-top {
    gap: 4px;
  }

  .picker-battle-role {
    min-height: 20px;
    padding: 0 6px;
    font-size: 0.65rem;
    top: -2px;
  }

  .picker-battle-flag {
    min-width: 22px;
    min-height: 20px;
    font-size: 0.75rem;
    bottom: -10px;
  }

  .picker-battle-flag.has-asset {
    min-width: 28px;
    width: 28px;
    height: 20px;
    min-height: 20px;
  }

  .picker-battle-hero-name {
    font-size: 1.5rem;
  }
  .picker-battle-tagline {
    font-size: 1rem;
  }

  .picker-battle-divider span {
    display: none;
  }

  .picker-battle-divider strong {
    display: none;
  }

  .picker-battle-strip {
    gap: 6px;
    padding: 8px 10px 12px;
  }

  .picker-battle-strip-stats {
    gap: 4px;
  }

  .picker-battle-strip-stats span {
    font-size: 0.65rem;
  }

  .picker-battle-strip-status {
    min-width: 0;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    padding: 10px 16px;
  }

  .picker-battle-header {
    gap: 6px;
    padding: 12px 10px 8px;
  }

  .picker-battle-versus {
    margin-top: -2px;
    width: 42px;
    height: 96px;
    font-size: 1.24rem;
  }

  .picker-battle-side {
    padding: 8px 7px 9px;
  }

  .picker-battle-footer {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .picker-battle-footer-status {
    justify-self: center;
  }

  .picker-hero-card {
    padding: 12px 8px 10px;
  }

  .picker-grid-hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1 1 auto;
    padding-bottom: 12px;
  }

  .picker-hero-showdown {
    grid-template-rows: minmax(0, 1fr) 24px minmax(0, 1fr);
    gap: 4px;
    padding: 12px 10px;
    margin: auto 0;
    min-height: 396px;
  }

  .picker-hero-versus {
    min-height: 96px;
  }

  .picker-hero-versus span {
    width: 36px;
    height: 82px;
  }

  .picker-hero-versus strong {
    font-size: 0.75rem;
  }

  .picker-hero-portrait,
  .picker-hero-showdown .picker-hero-portrait {
    width: min(180px, 52vw, 26vh);
    height: min(180px, 52vw, 26vh);
    border-width: 4px;
  }

  .picker-hero-portrait-ring {
    width: min(220px, 62vw, 30vh);
    height: min(220px, 62vw, 30vh);
  }

  /* Make the ring dominate: it touches the top edge of each side card */
  /* while the LEADER/RIVAL header floats on top of it at high z-index. */
  /* Switch the side from grid to flex so children stack reliably and  */
  /* nothing spills out into the next hero card. */
  .picker-hero-side {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 0 10px 12px;
    overflow: hidden;
    min-height: 0;
  }

  .picker-hero-side-top {
    position: absolute;
    top: 10px;
    left: 12px;
    right: 12px;
    z-index: 10;
    pointer-events: none;
  }

  .picker-hero-side-top > * {
    pointer-events: auto;
  }

  .picker-hero-portrait-ring {
    margin-top: 0;
    grid-row: auto;
    flex: 0 0 auto;
  }

  .picker-hero-tagline {
    display: block;
    margin-top: 4px;
    font-family: "Rajdhani", "Segoe UI", Arial, sans-serif;
    font-size: clamp(0.8rem, 3vw, 1rem);
    font-weight: 700;
    font-style: italic;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-align: center;
  }

  .picker-hero-tagline-warm { color: #ff9a4b; }
  .picker-hero-tagline-cool { color: #6fb1ff; }

  .picker-hero-name {
    font-size: 0.92rem;
  }

  .picker-hero-showdown .picker-hero-choose {
    min-height: 60px;
    max-width: 92px;
    margin-inline: auto;
    font-size: 0.75rem;
    padding-inline: 4px;
  }

  .picker-bird-circle {
    width: 82px;
    height: 82px;
  }

  .gate-actions {
    grid-template-columns: 1fr;
  }

  .result-hero {
    align-items: center;
  }

  .result-avatar-frame {
    width: 82px;
    height: 82px;
    flex-basis: 82px;
  }

  .result-score-pill {
    min-width: 72px;
    padding: 10px 10px 9px;
  }

  .result-score-pill strong {
    font-size: 1.7rem;
  }

}

/* NUCLEAR LOSS/VICTORY SCREEN PSYCHOLOGY */

/* Base result state container */
.result-state {
  display: flex;
  flex-direction: column;
  gap: clamp(2px, 0.8vw, 6px);
  padding:
    calc(clamp(10px, 2vw, 18px) + env(safe-area-inset-top, 0px))
    calc(clamp(10px, 2vw, 16px) + env(safe-area-inset-right, 0px))
    calc(clamp(10px, 2vw, 18px) + env(safe-area-inset-bottom, 0px))
    calc(clamp(10px, 2vw, 16px) + env(safe-area-inset-left, 0px));
  width: 100%;
  min-height: 100%;
  flex: 1;
}

.result-state.hidden {
  display: none !important;
}

/* LOSS STATE - Full-bleed dark red */
.result-loss {
  background:
    linear-gradient(180deg, rgba(170, 24, 24, 0.98), rgba(70, 8, 8, 1) 70%),
    rgba(60, 10, 10, 1);
}

.result-loss-header,
.result-victory-header {
  text-align: center;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
  font-size: clamp(2.6rem, 11vw, 4.2rem);
  text-transform: uppercase;
  position: relative;
  z-index: 3;
}

.result-loss-header {
  color: #ffffff;
  text-shadow: 0 4px 12px rgba(139, 30, 30, 0.6);
}

.result-loss-header .opponent-name {
  color: #ffb700;
  font-weight: 900;
  text-shadow: 0 2px 8px rgba(255, 183, 0, 0.4);
}

/* VICTORY STATE - Full-bleed green */
.result-victory {
  background:
    linear-gradient(180deg, rgba(24, 148, 58, 0.98), rgba(8, 68, 28, 1) 70%),
    rgba(6, 52, 22, 1);
}

.result-victory-header {
  color: var(--accent-2);
  text-shadow: 0 4px 12px rgba(255, 184, 0, 0.4);
}

.result-victory-header .opponent-name {
  color: #ffffff;
  font-weight: 900;
  text-shadow: 0 2px 8px rgba(255, 255, 255, 0.3);
}

/* Hero score banner — big gold trophy-style plate under the outcome header.
   Pulled up under the YOU LOST/WON header so the header sits in front. */
.score-banner {
  position: relative;
  z-index: 1;
  margin-top: -80px;
  margin-bottom: -70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: clamp(20px, 6vw, 40px) clamp(12px, 4vw, 32px) clamp(8px, 2vw, 16px);
  background:
    url("/assets/ui/result/score-banner.avif") center center / contain no-repeat;
  min-height: clamp(160px, 34vw, 240px);
  width: 100%;
}

.score-banner-plate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: clamp(180px, 46vw, 300px);
  padding: clamp(10px, 2.4vw, 16px) clamp(20px, 5vw, 40px);
  margin-top: 55px;
}

.score-banner-label {
  font-family: "Rajdhani", "Segoe UI", Arial, sans-serif;
  font-size: clamp(1.2rem, 5vw, 2rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7a1d10;
  text-shadow: 0 2px 0 rgba(255, 224, 140, 0.7);
  white-space: nowrap;
}

.score-banner-number {
  font-family: "Rajdhani", "Segoe UI", Arial, sans-serif;
  font-size: clamp(2.4rem, 10vw, 4.2rem);
  font-weight: 900;
  color: #fff9e0;
  letter-spacing: 0.02em;
  line-height: 1;
  margin-top: 10px;
  text-shadow:
    0 4px 0 #111a2f,
    0 6px 20px rgba(0, 0, 0, 0.5);
  padding: 6px 22px;
  border-radius: 16px;
  background: rgba(10, 16, 30, 0.82);
  border: 2px solid rgba(255, 224, 120, 0.55);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

/* Score comparison layout — no container, floats on full-bleed bg */
.result-comparison {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(2px, 0.6vw, 6px);
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.result-comparison .player-column,
.result-comparison .opponent-column {
  align-items: center;
  text-align: center;
}

/* Action button rows — freed vertical space from banner pull-up goes here */
.result-actions-loss,
.result-actions-victory {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 3vw, 22px);
  margin-top: auto;
  padding-top: clamp(12px, 3vw, 20px);
}

.comparison-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-self: center;
  gap: clamp(2px, 0.6vw, 6px);
  width: 100%;
}

.comparison-column.player-column {
  order: 1;
}

.comparison-column.opponent-column {
  order: 3;
}

.comparison-vs {
  order: 2;
  font-weight: 900;
  font-size: clamp(1.2rem, 4vw, 1.8rem);
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Avatar display — circular duel-ring matching picker portraits */
.comparison-avatar {
  position: relative;
  width: clamp(120px, 32vw, 200px);
  height: clamp(120px, 32vw, 200px);
  margin: 0 auto;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border: 3px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.32),
    0 0 0 6px rgba(255, 255, 255, 0.08),
    0 0 30px rgba(255, 255, 255, 0.1);
  animation: heroPortraitPulse 1.7s ease-in-out infinite;
}

.comparison-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Score display */
.comparison-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: clamp(2px, 0.5vw, 4px);
  margin: 0 auto;
}

.comparison-score .score-label {
  display: block;
  font-size: clamp(10px, 1.8vw, 13px);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.comparison-score strong {
  display: block;
  font-size: clamp(1.8rem, 8vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--accent-ice);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Loss-specific comparison styling */
.result-loss .comparison-column.winner {
  opacity: 0.7;
}

.result-loss .comparison-score strong {
  color: #ff6b6b;
  text-shadow: 0 2px 8px rgba(139, 30, 30, 0.4);
}

/* Victory-specific comparison styling */
.result-victory .comparison-column.winner {
  transform: scale(1.08);
}

.result-victory .comparison-column.winner .comparison-avatar {
  border-color: rgba(255, 207, 61, 0.7);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.36),
    0 0 0 6px rgba(255, 207, 61, 0.42),
    0 0 36px rgba(255, 183, 0, 0.55);
}

/* Gap message - near-miss dopamine trigger */
.result-gap-message {
  text-align: center;
  padding: clamp(8px, 1.4vw, 12px) clamp(12px, 2vw, 16px);
  background: rgba(255, 255, 255, 0.06);
  border-radius: clamp(12px, 2vw, 16px);
  border-left: 3px solid var(--accent);
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: rgba(224, 232, 255, 0.9);
  line-height: 1.4;
  animation: gapMessagePulse 1.2s ease-in-out;
}

.result-gap-message strong {
  color: var(--accent-2);
  font-weight: 900;
  display: inline-block;
  padding: 0 4px;
}

/* Play Again — green pill with play-triangle icon (arkadium-style) */
.play-again-button {
  width: 100%;
  min-height: clamp(56px, 11vw, 72px);
  padding: clamp(12px, 2vw, 18px) clamp(20px, 4vw, 32px);
  border-radius: 999px;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: "Rajdhani", "Segoe UI", Arial, sans-serif;
  font-weight: 800;
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  letter-spacing: 0.02em;
  text-transform: none;
  color: #ffffff;
  background: linear-gradient(180deg, #41d47a 0%, #1fa855 100%);
  box-shadow:
    0 8px 0 #14703a,
    0 14px 24px rgba(0, 0, 0, 0.35),
    inset 0 2px 0 rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out;
}

.play-again-button:hover {
  filter: brightness(1.04);
}

.play-again-button:active {
  transform: translateY(4px);
  box-shadow:
    0 4px 0 #14703a,
    0 8px 14px rgba(0, 0, 0, 0.3),
    inset 0 2px 0 rgba(255, 255, 255, 0.25);
}

.play-again-icon {
  flex: 0 0 auto;
  stroke: #ffffff;
}

/* Clash button is a noticeably shorter variant of play-again-button */
.picker-battle-clash-btn {
  min-height: clamp(40px, 8vw, 52px);
  padding: clamp(6px, 1.2vw, 10px) clamp(18px, 3.6vw, 28px);
  font-size: clamp(0.95rem, 2.4vw, 1.2rem);
  box-shadow:
    0 5px 0 #14703a,
    0 10px 18px rgba(0, 0, 0, 0.32),
    inset 0 2px 0 rgba(255, 255, 255, 0.25);
}

.picker-battle-clash-btn:active {
  transform: translateY(3px);
  box-shadow:
    0 2px 0 #14703a,
    0 6px 12px rgba(0, 0, 0, 0.28),
    inset 0 2px 0 rgba(255, 255, 255, 0.25);
}

/* Primary action buttons - NUCLEAR urgency */
.retry-button-nuclear,
.share-button-nuclear {
  width: 100%;
  min-height: clamp(56px, 11vw, 72px);
  padding: clamp(12px, 2vw, 18px) clamp(20px, 4vw, 32px);
  border-radius: 999px;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: "Rajdhani", "Segoe UI", Arial, sans-serif;
  font-weight: 800;
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease-out;
  position: relative;
  overflow: hidden;
}

/* Loss state retry button - pulsing red */
.retry-button-nuclear {
  background: linear-gradient(135deg, var(--accent), #cc2200);
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  box-shadow:
    0 clamp(4px, 1vw, 8px) clamp(12px, 2vw, 20px) rgba(255, 74, 42, 0.5),
    inset 0 1px 2px rgba(255, 255, 255, 0.15);
  animation:
    retryButtonPulse 1.2s ease-in-out infinite,
    retryButtonGlow 1.8s ease-in-out infinite;
}

.retry-button-nuclear:active {
  transform: scale(0.96);
  animation: none;
  box-shadow:
    0 2px 8px rgba(255, 74, 42, 0.3),
    inset 0 1px 2px rgba(255, 255, 255, 0.15);
}

/* Victory state share button - electric gold */
.share-button-nuclear {
  background: linear-gradient(180deg, #ffcf3d 0%, #e69500 100%);
  color: #1a0f00;
  text-shadow: none;
  box-shadow:
    0 8px 0 #8a5a00,
    0 14px 24px rgba(0, 0, 0, 0.35),
    inset 0 2px 0 rgba(255, 255, 255, 0.35);
  animation:
    shareButtonPulse 1.4s ease-in-out infinite,
    shareButtonGlow 2s ease-in-out infinite;
}

.share-button-nuclear:active {
  transform: translateY(4px);
  animation: none;
  box-shadow:
    0 4px 0 #8a5a00,
    0 6px 12px rgba(0, 0, 0, 0.3),
    inset 0 2px 0 rgba(255, 255, 255, 0.25);
}

/* Secondary action buttons */
.secondary-action {
  width: 100%;
  min-height: clamp(40px, 9vw, 48px);
  padding: clamp(10px, 1.5vw, 14px);
  border-radius: clamp(12px, 2.5vw, 16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(247, 251, 255, 0.8);
  font-weight: 600;
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease-out;
}

.secondary-action:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.secondary-action:active {
  transform: scale(0.96);
}

/* ANIMATIONS */

@keyframes retryButtonPulse {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-2px) scale(1.04);
  }
}

@keyframes retryButtonGlow {
  0%,
  100% {
    box-shadow:
      0 clamp(4px, 1vw, 8px) clamp(12px, 2vw, 20px) rgba(255, 74, 42, 0.4),
      inset 0 1px 2px rgba(255, 255, 255, 0.2);
  }

  50% {
    box-shadow:
      0 clamp(8px, 2vw, 16px) clamp(20px, 3vw, 32px) rgba(255, 74, 42, 0.6),
      0 0 0 clamp(4px, 1vw, 8px) rgba(255, 74, 42, 0.2),
      inset 0 1px 2px rgba(255, 255, 255, 0.2);
  }
}

@keyframes shareButtonPulse {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(2px) scale(0.97);
  }
}

@keyframes shareButtonGlow {
  0%,
  100% {
    box-shadow:
      0 clamp(4px, 1vw, 8px) clamp(12px, 2vw, 20px) rgba(255, 184, 0, 0.4),
      inset 0 1px 2px rgba(255, 255, 255, 0.2);
  }

  50% {
    box-shadow:
      0 clamp(8px, 2vw, 16px) clamp(20px, 3vw, 32px) rgba(255, 184, 0, 0.6),
      0 0 0 clamp(4px, 1vw, 8px) rgba(255, 184, 0, 0.15),
      inset 0 1px 2px rgba(255, 255, 255, 0.2);
  }
}

@keyframes gapMessagePulse {
  0% {
    opacity: 0;
    transform: translateY(-8px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

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