/* =====================
   GLOBAL UI TEXT RULE
   All instructional text and UI labels must be bright gold or bright white.
   Never dark, muted, or low-opacity.
   ===================== */

/* =====================
   RESET + BASE
   ===================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  height: 100%;
  width: 100%;
  overflow: hidden;
  background: #0a0a0a;
  color: #ffffff;
  font-family: 'Arial Black', 'Impact', 'Haettenschweiler', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  touch-action: manipulation;
}

/* =====================
   SCREENS
   ===================== */
.screen {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 1;
}

.screen.active {
  opacity: 1;
  pointer-events: all;
  z-index: 2;
}

/* =====================
   SCREEN 1 — INTRO
   ===================== */
#screen-intro {
  background: #000;
  overflow: hidden;
}

#intro-scene {
  position: absolute;
  inset: 0;
}

/* ── CHIP AREA (puck + pyramid, centered) ── */
#intro-chip-area {
  position: absolute;
  left: 50%;
  top: 50%;
  /* container: 126px wide, 110px tall
     visual center of pyramid ≈ (63, 67)
     so offset by (-63, -67) to screen-center the pyramid */
  transform: translate(-63px, -67px);
  width: 126px;
  height: 110px;
}

/* ── PUCK ── */
#intro-puck {
  position: absolute;
  width: 50px;
  height: 22px;
  left: 38px;   /* (126-50)/2 = 38 → centers puck horizontally */
  top: 80px;    /* bottom-row center (90px) - puck_half (11px) = 79px */
  background: radial-gradient(ellipse at 40% 35%, #2e2e2e, #080808);
  border-radius: 50%;
  border: 2px solid #444;
  box-shadow: 0 3px 10px rgba(0,0,0,0.9);
  /* Start way off-screen to the left */
  transform: translateX(calc(-100vw - 120px));
  opacity: 1;
}

#intro-puck.flying {
  animation: puckFly 2.08s cubic-bezier(0.15, 0, 0.5, 1) forwards;
}

/* Speed streak — extends left of puck while flying */
#intro-puck.flying::after {
  content: '';
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  width: 220px;
  height: 10px;
  background: linear-gradient(to right,
    transparent 0%,
    rgba(255,255,255,0.04) 30%,
    rgba(255,255,255,0.18) 65%,
    rgba(255,255,255,0.45) 100%
  );
  border-radius: 50%;
  pointer-events: none;
}

#intro-scene.impacted #intro-puck {
  opacity: 0;
}

@keyframes puckFly {
  to { transform: translateX(0); }
}

/* ── PYRAMID CHIPS ── */
#intro-pyramid {
  position: absolute;
  inset: 0;
}

.py-chip {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: none;
}

/* Chip positions — 3-2-1 pyramid */
/* Bottom row */
#pc4 { left: 0;   top: 70px; }
#pc5 { left: 43px; top: 70px; }
#pc6 { left: 86px; top: 70px; }
/* Middle row */
#pc2 { left: 22px; top: 35px; }
#pc3 { left: 64px; top: 35px; }
/* Top */
#pc1 { left: 43px; top: 0;   }

/* Black chip */
.py-b {
  background: radial-gradient(circle at 35% 35%, #3a3a3a, #0e0e0e);
  border: 3px solid #555;
  box-shadow: 0 4px 12px rgba(0,0,0,0.8);
}

/* White chip */
.py-w {
  background: radial-gradient(circle at 35% 35%, #ffffff, #cccccc);
  border: 3px solid #999;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

/* ── IMPACT STATE ── */
#intro-scene.impacted {
  animation: sceneShake 0.35s ease forwards;
}

#intro-scene.impacted .py-chip {
  transition:
    transform 0.75s cubic-bezier(0.2, 0, 0.4, 1),
    opacity   0.75s 0.2s ease;
  transform: translate(var(--sx), var(--sy)) rotate(var(--sr));
  opacity: 0;
}

/* ── IMPACT FLASH ── */
#intro-flash {
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
  pointer-events: none;
}

#intro-scene.impacted #intro-flash {
  animation: flashOut 0.2s ease forwards;
}

@keyframes flashOut {
  0%   { opacity: 0.9; }
  100% { opacity: 0; }
}

/* ── TAGLINE ── */
#intro-tagline {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%) scale(0);
  text-align: center;
  font-size: clamp(28px, 9vw, 52px);
  font-weight: 900;
  letter-spacing: 3px;
  line-height: 1.0;
  text-transform: uppercase;
  color: #ffffff;
  opacity: 0;
  pointer-events: none;
}

#intro-scene.tagline-active #intro-tagline {
  animation: taglineSlam 0.22s cubic-bezier(0.2, 0, 0.3, 1) forwards;
}

@keyframes taglineSlam {
  from { opacity: 0; transform: translateY(-50%) scale(0); }
  to   { opacity: 1; transform: translateY(-50%) scale(1); }
}

/* ── LOGO ── */
#intro-logo-wrap {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%) scale(0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
  pointer-events: none;
  background: #000;        /* covers tagline behind it */
  padding: 48px 0;
  z-index: 2;
}

#intro-scene.logo-active #intro-logo-wrap {
  animation: logoZoom 0.38s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Logo covers tagline — sits above it */
#intro-logo-wrap { z-index: 2; }
#intro-tagline   { z-index: 1; }

@keyframes logoZoom {
  to { opacity: 1; transform: translateY(-50%) scale(1); }
}

.intro-logo-badge {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #c8a415;
  color: #000000;
  font-size: 28px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 1px;
}

.intro-logo-text {
  font-size: clamp(40px, 13vw, 72px);
  font-weight: 900;
  text-align: center;
  line-height: 0.9;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #ffffff;
}

/* ── TAP HINT ── */
.intro-tap-hint {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  color: #c8a415;
  font-family: Arial, sans-serif;
  font-weight: bold;
  letter-spacing: 2px;
  white-space: nowrap;
  pointer-events: none;
  text-transform: uppercase;
}

/* =====================
   SCREEN 2 — PLAYER COUNT
   ===================== */
#screen-playerCount {
  background: #0a0a0a;
}

.screen-content {
  width: 100%;
  padding: 40px 32px;
}

.screen-content.center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

.screen-title {
  font-size: clamp(28px, 8vw, 48px);
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
  line-height: 1.1;
  letter-spacing: 2px;
  color: #ffffff;
}

.player-count-control {
  display: flex;
  align-items: center;
  gap: 32px;
}

.count-display-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.team-split-preview {
  font-size: 15px;
  color: #c8a415;
  font-family: Arial, sans-serif;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.8;
}

.count-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #1a1a1a;
  border: 2px solid rgba(200,164,21,0.35);
  color: #ffffff;
  font-size: 36px;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 0.15s, transform 0.1s;
  font-family: Arial, sans-serif;
}

.count-btn:active {
  background: #252505;
  border-color: rgba(200,164,21,0.7);
  transform: scale(0.93);
}

.count-display {
  font-size: clamp(72px, 22vw, 120px);
  font-weight: 900;
  color: #ffffff;
  min-width: 140px;
  text-align: center;
  line-height: 1;
}

.btn-primary {
  width: 100%;
  max-width: 320px;
  padding: 22px 32px;
  background: #c8a415;
  color: #000000;
  border: none;
  border-radius: 6px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer;
  font-family: 'Arial Black', Arial, sans-serif;
  transition: background 0.15s, transform 0.1s;
}

.btn-primary:active {
  background: #a8870f;
  transform: scale(0.97);
}

/* =====================
   SCREEN 3 — PICK
   ===================== */
#screen-pick {
  background: #0a0a0a;
  justify-content: space-between;
  overflow: hidden; /* clip ripples */
}

.pick-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 64px;
  gap: 4px;
}

.remaining-label {
  font-size: 13px;
  color: #c8a415;
  font-family: Arial, sans-serif;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.remaining-count {
  font-size: clamp(72px, 22vw, 120px);
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
}

.team-tally {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.tally-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.tally-dot-black {
  background: #666;
  border: 1.5px solid #888;
}

.tally-dot-white {
  background: #ddd;
  border: 1.5px solid #bbb;
}

.tally-count {
  font-size: 18px;
  font-weight: 900;
  color: #ffffff;
  min-width: 20px;
  text-align: center;
}

.tally-sep {
  color: rgba(255,255,255,0.5);
  font-size: 16px;
  font-family: Arial, sans-serif;
}

.tap-area {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.tap-instruction {
  font-size: clamp(28px, 9vw, 52px);
  font-weight: 900;
  text-align: center;
  letter-spacing: 3px;
  color: #ffffff;
  line-height: 1.2;
  text-transform: uppercase;
  user-select: none;
  animation: tapPulse 2.4s ease-in-out infinite;
}

/* Ripple on tap */
.tap-ripple {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(200,164,21,0.2);
  transform: translate(-50%, -50%) scale(0);
  pointer-events: none;
  animation: rippleOut 0.55s ease-out forwards;
}

/* Counter pop when number changes */
.remaining-count.count-pop {
  animation: countPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Last chip drawn indicator — top-right corner of pick screen */
.last-chip-indicator {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 52px;
  height: 52px;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

.last-chip-indicator.visible {
  opacity: 1;
  transform: scale(1);
}

.last-chip-indicator .chip {
  width: 52px;
  height: 52px;
}

.admin-bar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 16px 24px 40px;
}

.admin-btn {
  background: none;
  border: 1px solid rgba(200,164,21,0.6);
  color: #c8a415;
  font-size: 13px;
  font-family: Arial, sans-serif;
  padding: 10px 18px;
  border-radius: 4px;
  cursor: pointer;
  letter-spacing: 1px;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.admin-btn:active {
  color: #000;
  background: #c8a415;
  border-color: #c8a415;
}

.admin-btn-add {
  color: #c8a415;
  border-color: rgba(200,164,21,0.6);
}

.admin-btn-add:active {
  color: #000;
  background: #c8a415;
  border-color: #c8a415;
}

/* =====================
   SCREEN 4 — REVEAL
   ===================== */
#screen-reveal {
  background: #0a0a0a;
  justify-content: space-between;
}

.reveal-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

/* 3D flip card */
.chip-flip-container {
  width: clamp(160px, 50vw, 240px);
  height: clamp(160px, 50vw, 240px);
  perspective: 700px;
}

.chip-flip-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
}

.chip-flip-inner.flipping {
  animation: chipFlip 0.55s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.chip-face {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Front = neutral/dark face-down chip */
.chip-front {
  background: radial-gradient(circle at 35% 35%, #2c2c2c, #0d0d0d);
  border: 6px solid #333;
  box-shadow: 0 8px 32px rgba(0,0,0,0.9);
}

/* Back face starts pre-rotated 180deg */
.chip-back {
  transform: rotateY(180deg);
}

.chip-back.black {
  background: radial-gradient(circle at 35% 35%, #3a3a3a, #111111);
  border: 6px solid #666;
  box-shadow: 0 8px 32px rgba(0,0,0,0.8), inset 0 2px 6px rgba(255,255,255,0.08);
}

.chip-back.white {
  background: radial-gradient(circle at 35% 35%, #ffffff, #d8d8d8);
  border: 6px solid #bbb;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5), inset 0 2px 6px rgba(255,255,255,0.7);
}

.chip-team-label {
  font-size: clamp(32px, 10vw, 56px);
  font-weight: 900;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #ffffff;
}

.chip-team-label.black {
  color: #aaaaaa;
}

.chip-team-label.white {
  color: #ffffff;
}

.tap-area-continue {
  width: 100%;
  padding: 32px 0 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.continue-hint {
  font-size: 14px;
  color: #c8a415;
  font-family: Arial, sans-serif;
  letter-spacing: 2px;
  font-weight: bold;
  text-transform: uppercase;
  user-select: none;
}

/* =====================
   SCREEN 5 — INSULT
   ===================== */
#screen-insult {
  background: #2a0000;
  justify-content: space-between;
}

.insult-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
  gap: 32px;
}

.insult-text {
  font-size: clamp(22px, 7vw, 40px);
  font-weight: 900;
  text-align: center;
  line-height: 1.2;
  color: #ffffff;
  text-transform: uppercase;
}

.insult-text.shake-active {
  animation: shake 0.5s ease 0.1s both;
}

.insult-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.4);
  font-family: Arial, sans-serif;
  font-weight: normal;
  font-style: italic;
  letter-spacing: 1px;
}

/* Delayed hint fade-in is handled via JS opacity toggle with CSS transition */
#screen-insult .continue-hint {
  transition: opacity 0.4s ease;
}

/* =====================
   SCREEN 6 — FINAL
   ===================== */
#screen-final {
  background: #0a0a0a;
}

.final-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  padding: 40px 32px;
  width: 100%;
}

/* Staggered entrance */
.final-content.final-enter > * {
  animation: fadeInUp 0.5s ease both;
}
.final-content.final-enter > *:nth-child(1) { animation-delay: 0.05s; }
.final-content.final-enter > *:nth-child(2) { animation-delay: 0.25s; }
.final-content.final-enter > *:nth-child(3) { animation-delay: 0.45s; }

.final-title {
  font-size: clamp(48px, 14vw, 88px);
  font-weight: 900;
  text-align: center;
  line-height: 0.9;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #c8a415;
  animation: goldShimmer 2.8s ease-in-out infinite;
}

.final-teams {
  display: flex;
  gap: 40px;
  align-items: center;
}

.final-vs {
  font-size: 20px;
  font-weight: 900;
  color: rgba(200,164,21,0.4);
  letter-spacing: 3px;
}

.final-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.final-chip {
  width: 56px;
  height: 56px;
  border-radius: 50%;
}

.chip-black-sm {
  background: radial-gradient(circle at 35% 35%, #3a3a3a, #111111);
  border: 3px solid #555;
  box-shadow: 0 4px 12px rgba(0,0,0,0.8);
}

.chip-white-sm {
  background: radial-gradient(circle at 35% 35%, #ffffff, #cccccc);
  border: 3px solid #aaa;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.final-team-count {
  font-size: 56px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
}

.final-team-count.count-land {
  animation: countLand 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.final-team-label {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  font-family: Arial, sans-serif;
  font-weight: normal;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* =====================
   OVERRIDE PANEL
   ===================== */
.override-panel {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.override-panel.hidden {
  display: none;
}

.override-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
}

.override-sheet {
  position: relative;
  background: #1a1a1a;
  border-radius: 16px 16px 0 0;
  padding: 32px 32px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  animation: slideUp 0.25s cubic-bezier(0.32, 0.72, 0, 1) forwards;
}

.override-title {
  font-size: 16px;
  color: #c8a415;
  font-family: Arial, sans-serif;
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.override-chips {
  display: flex;
  gap: 48px;
  align-items: center;
}

.override-chip-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.override-chip-btn span {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  font-family: Arial, sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.chip {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  transition: transform 0.15s;
}

.override-chip-btn:active .chip {
  transform: scale(0.9);
}

.chip-black {
  background: radial-gradient(circle at 35% 35%, #3a3a3a, #111111);
  border: 4px solid #555;
  box-shadow: 0 4px 16px rgba(0,0,0,0.8);
}

.chip-white {
  background: radial-gradient(circle at 35% 35%, #ffffff, #cccccc);
  border: 4px solid #aaa;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

.override-close-btn {
  background: none;
  border: 1px solid rgba(200,164,21,0.25);
  color: rgba(200,164,21,0.5);
  font-size: 15px;
  font-family: Arial, sans-serif;
  padding: 14px 40px;
  border-radius: 6px;
  cursor: pointer;
  letter-spacing: 1px;
  width: 100%;
  max-width: 280px;
}

.override-remaining {
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  font-family: Arial, sans-serif;
  font-weight: normal;
  letter-spacing: 0.5px;
}

.override-chip-btn:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.override-chip-btn:disabled .chip {
  filter: grayscale(1);
}

/* Reset button armed state */
.admin-btn-armed {
  color: #e05a5a !important;
  border-color: rgba(224, 90, 90, 0.4) !important;
}

/* =====================
   ANIMATIONS
   ===================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes sceneShake {
  0%   { transform: translate(0,    0); }
  15%  { transform: translate(-9px, -5px); }
  30%  { transform: translate( 9px,  4px); }
  45%  { transform: translate(-7px,  3px); }
  60%  { transform: translate( 5px, -3px); }
  75%  { transform: translate(-3px,  2px); }
  90%  { transform: translate( 2px, -1px); }
  100% { transform: translate(0,    0); }
}

@keyframes chipFlip {
  0%   { transform: rotateY(0deg); }
  100% { transform: rotateY(180deg); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-10px); }
  40%       { transform: translateX(10px); }
  60%       { transform: translateX(-8px); }
  80%       { transform: translateX(8px); }
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

@keyframes tapPulse {
  0%, 100% { opacity: 0.7; }
  50%       { opacity: 1; }
}

@keyframes rippleOut {
  to { transform: translate(-50%, -50%) scale(28); opacity: 0; }
}

@keyframes countPop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.18); }
  100% { transform: scale(1); }
}

@keyframes countLand {
  from { transform: scale(0.5); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

@keyframes flipBounce {
  0%   { transform: rotateY(180deg); }
  35%  { transform: rotateY(196deg); }
  65%  { transform: rotateY(172deg); }
  85%  { transform: rotateY(184deg); }
  100% { transform: rotateY(180deg); }
}

.chip-flip-inner.flip-bounce {
  animation: flipBounce 0.38s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes labelSlideUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.chip-team-label.label-slide-up {
  animation: labelSlideUp 0.32s cubic-bezier(0.2, 0, 0.3, 1) forwards;
}

@keyframes insultFlash {
  0%   { opacity: 0.55; }
  100% { opacity: 0; }
}

#screen-insult.active::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #cc0000;
  animation: insultFlash 0.35s ease forwards;
  pointer-events: none;
  z-index: 10;
}

@keyframes goldShimmer {
  0%, 100% { text-shadow: 0 0 20px rgba(200,164,21,0.25); }
  50%       { text-shadow: 0 0 48px rgba(200,164,21,0.65), 0 0 90px rgba(200,164,21,0.25); }
}

/* =====================
   SCREEN: MODE SELECT
   ===================== */
#screen-modeSelect {
  background: #0a0a0a;
}

.mode-select-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 320px;
}

.mode-btn {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  padding: 22px 24px;
  background: #141414;
  border: 2px solid rgba(200,164,21,0.2);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
  text-align: left;
}

.mode-btn:active {
  background: #1e1a00;
  border-color: rgba(200,164,21,0.7);
  transform: scale(0.97);
}

.mode-btn-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mode-btn-icon .chip {
  width: 52px;
  height: 52px;
}

.mode-btn-emoji {
  font-size: 36px;
  line-height: 1;
  width: 52px;
  text-align: center;
  flex-shrink: 0;
}

.mode-btn-text {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.mode-btn-label {
  display: block;
  font-size: 20px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: 'Arial Black', Arial, sans-serif;
}

.mode-btn-sub {
  display: block;
  font-size: 12px;
  color: rgba(200,164,21,0.7);
  font-family: Arial, sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* =====================
   SCREEN: SKILL ROSTER
   ===================== */
#screen-skillRoster {
  background: #0a0a0a;
  justify-content: flex-start;
}

.skill-roster-header {
  flex-shrink: 0;
  width: 100%;
  padding: 52px 24px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skill-roster-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.skill-back-btn {
  background: none;
  border: none;
  color: #c8a415;
  font-size: 14px;
  font-family: Arial, sans-serif;
  font-weight: bold;
  letter-spacing: 1px;
  cursor: pointer;
  padding: 4px 0;
  text-transform: uppercase;
}

.skill-quick-btns {
  display: flex;
  gap: 8px;
}

.skill-quick-btn {
  background: none;
  border: 1px solid rgba(200,164,21,0.4);
  color: #c8a415;
  font-size: 12px;
  font-family: Arial, sans-serif;
  font-weight: bold;
  letter-spacing: 1px;
  padding: 6px 14px;
  border-radius: 4px;
  cursor: pointer;
  text-transform: uppercase;
  transition: background 0.15s;
  touch-action: manipulation; /* removes 300ms tap delay on mobile Chrome */
  -webkit-tap-highlight-color: rgba(200,164,21,0.2);
}

.skill-quick-btn:active {
  background: rgba(200,164,21,0.2);
}

.skill-roster-title {
  font-size: clamp(22px, 7vw, 36px) !important;
  margin-top: 8px;
}

.skill-roster-status {
  font-size: 12px;
  color: #c8a415;
  font-family: Arial, sans-serif;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Skill grade badges */
.skill-badge {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 900;
  flex-shrink: 0;
  font-family: 'Arial Black', Arial, sans-serif;
  letter-spacing: 0;
}

.skill-badge-A    { background: #c3e6cb; color: #155724; }
.skill-badge-B    { background: #cce5ff; color: #004085; }
.skill-badge-C    { background: #fff3cd; color: #856404; }
.skill-badge-D    { background: #f5c6cb; color: #491217; }
.skill-badge-F    { background: #e2c2c2; color: #6b1a1a; }
.skill-badge-none { background: #222222; color: rgba(255,255,255,0.25); border: 1px solid rgba(255,255,255,0.1); }


.skill-check-icon {
  font-size: 17px;
  color: #c8a415;
  opacity: 0;
  transition: opacity 0.12s;
  flex-shrink: 0;
}

.skill-player-row.selected {
  background: #c8a415;
  border-bottom-color: rgba(0,0,0,0.15);
}
.skill-player-row.selected .skill-player-name {
  color: #0a0a0a;
}
.skill-player-row.selected .skill-check-icon {
  opacity: 1;
  color: #0a0a0a;
}
.skill-player-row.selected .skill-badge {
  background: rgba(0,0,0,0.18);
  color: #0a0a0a;
}

/* Footer bar */
.skill-roster-footer {
  flex-shrink: 0;
  width: 100%;
  padding: 14px 24px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: #0a0a0a;
}

.skill-selected-count {
  font-size: 12px;
  color: #c8a415;
  font-family: Arial, sans-serif;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* =====================
   SCREEN: SKILL FINAL
   ===================== */
#screen-skillFinal {
  background: #0a0a0a;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  justify-content: flex-start;
}

.skill-final-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  padding: 56px 20px 48px;
  width: 100%;
  min-height: 100%;
}

.skill-final-content.final-enter > * {
  animation: fadeInUp 0.5s ease both;
}
.skill-final-content.final-enter > *:nth-child(1) { animation-delay: 0.05s; }
.skill-final-content.final-enter > *:nth-child(2) { animation-delay: 0.25s; }
.skill-final-content.final-enter > *:nth-child(3) { animation-delay: 0.45s; }

/* Two-column team layout */
.skill-teams-grid {
  display: flex;
  width: 100%;
  max-width: 420px;
  align-items: flex-start;
}

.skill-team-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.skill-team-hd {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  width: 100%;
}

.skill-team-nm {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #ffffff;
  font-family: 'Arial Black', Arial, sans-serif;
}

.skill-team-wt {
  font-size: 11px;
  color: rgba(200,164,21,0.85);
  font-family: Arial, sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: bold;
}

.skill-vs-divider {
  width: 1px;
  background: rgba(255,255,255,0.08);
  align-self: stretch;
  margin: 0 10px;
}

/* Player name list */
.skill-player-ul {
  list-style: none;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0 6px;
}

.skill-player-li {
  display: flex;
  align-items: center;
  gap: 7px;
}

.skill-badge-sm {
  width: 20px !important;
  height: 20px !important;
  font-size: 9px !important;
  flex-shrink: 0;
}

.skill-player-li-name {
  font-size: 12px;
  font-family: Arial, sans-serif;
  font-weight: bold;
  color: #ffffff;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  line-height: 1.3;
}

/* =====================
   FIX 1: Skill Pick default highlight
   ===================== */
.mode-btn-primary {
  border-color: rgba(200,164,21,0.55);
  background: rgba(200,164,21,0.07);
}
.mode-btn-primary .mode-btn-label {
  color: #c8a415;
}
.mode-btn-primary .mode-btn-sub {
  color: rgba(200,164,21,0.9);
}

/* =====================
   FIX 2: Two-column roster grid + mobile scroll fix
   ===================== */
.skill-player-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-content: start;
  min-height: 0;        /* critical: lets flex child shrink on iOS Safari */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
  width: 100%;
}

.skill-player-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 11px 10px;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: #ffffff;
  cursor: pointer;
  text-align: left;
  transition: background 0.12s;
  min-width: 0;         /* allow grid cell to shrink below content size */
}

.skill-player-name {
  flex: 1;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  font-family: 'Arial Black', Arial, sans-serif;
  color: #ffffff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

/* =====================
   FIX 5: Inactive players section
   ===================== */
.skill-inactive-header {
  grid-column: 1 / -1;
  font-size: 10px;
  color: rgba(200,164,21,0.5);
  font-family: Arial, sans-serif;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 14px 12px 6px;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 4px;
}

.skill-player-inactive {
  opacity: 0.45;
}
.skill-player-inactive:active {
  opacity: 1;
  background: rgba(200,164,21,0.1);
}
.skill-player-inactive .skill-check-icon {
  color: rgba(200,164,21,0.6);
  opacity: 1;           /* always show the + icon */
  font-size: 15px;
}

/* =====================
   FIX 1: Add Player panel
   ===================== */
.skill-add-btn {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0;
  padding: 6px 12px;
}

.skill-add-sheet {
  gap: 20px;
}

.skill-add-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}

.skill-add-input {
  width: 100%;
  padding: 14px 16px;
  background: #111111;
  border: 1px solid rgba(200,164,21,0.3);
  border-radius: 6px;
  color: #ffffff;
  font-size: 18px;
  font-family: Arial, sans-serif;
  outline: none;
  -webkit-appearance: none;
}
.skill-add-input:focus {
  border-color: rgba(200,164,21,0.7);
}
.skill-add-input::placeholder {
  color: rgba(255,255,255,0.25);
}

.skill-grade-row {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.skill-grade-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.12);
  background: #1a1a1a;
  font-size: 20px;
  font-weight: 900;
  color: rgba(255,255,255,0.45);
  cursor: pointer;
  font-family: 'Arial Black', Arial, sans-serif;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.skill-grade-btn[data-grade="A"].active { background: #c3e6cb; color: #155724; border-color: #c3e6cb; }
.skill-grade-btn[data-grade="B"].active { background: #cce5ff; color: #004085; border-color: #cce5ff; }
.skill-grade-btn[data-grade="C"].active { background: #fff3cd; color: #856404; border-color: #fff3cd; }
.skill-grade-btn[data-grade="D"].active { background: #f5c6cb; color: #491217; border-color: #f5c6cb; }
.skill-grade-btn[data-grade="F"].active { background: #e2c2c2; color: #6b1a1a; border-color: #e2c2c2; }
.skill-grade-btn:not(.active):active {
  border-color: rgba(200,164,21,0.5);
  color: #c8a415;
}

/* =====================
   FIX 4: Mobile layout hardening
   ===================== */
#screen-skillRoster {
  align-items: stretch;
}
.skill-roster-header {
  width: 100%;
}
.skill-roster-footer {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 12px 16px 20px;
}

/* Inactive Players footer button */
.skill-inactive-footer-btn {
  display: block;
  background: none;
  border: 1px solid rgba(200,164,21,0.35);
  border-radius: 8px;
  color: rgba(200,164,21,0.8);
  font-size: 13px;
  font-family: Arial, sans-serif;
  font-weight: bold;
  letter-spacing: 0.5px;
  padding: 8px 20px;
  cursor: pointer;
  width: 100%;
  text-align: center;
  transition: background 0.15s, border-color 0.15s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(200,164,21,0.2);
}
.skill-inactive-footer-btn:active {
  background: rgba(200,164,21,0.1);
  border-color: rgba(200,164,21,0.7);
}
.skill-inactive-footer-btn.hidden {
  display: none !important;
}

/* Inactive panel sheet */
.skill-inactive-sheet {
  gap: 16px;
  max-height: 70vh;
}
.skill-inactive-hint {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  font-family: Arial, sans-serif;
  margin: 0;
  text-align: center;
}
.skill-inactive-panel-list {
  width: 100%;
  max-height: 45vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.skill-inactive-panel-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 10px;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: #ffffff;
  cursor: pointer;
  text-align: left;
  width: 100%;
  border-radius: 6px;
  transition: background 0.12s;
}
.skill-inactive-panel-row:active {
  background: rgba(200,164,21,0.12);
}
.skill-inactive-panel-name {
  flex: 1;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  font-family: 'Arial Black', Arial, sans-serif;
  color: rgba(255,255,255,0.75);
}
.skill-inactive-panel-add {
  font-size: 18px;
  color: rgba(200,164,21,0.7);
  font-weight: 900;
}


/* =====================
   PART 2: ONBOARDING + MANAGE PLAYERS
   ===================== */
.hc-hidden { display: none !important; }

.skill-add-sheet {
  max-height: 92vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  gap: 14px;
  padding: 24px 24px 36px;
}
.skill-add-form { gap: 10px; align-items: center; }
.skill-add-form .btn-primary { margin-top: 6px; }

.hc-name-row { display: flex; gap: 10px; width: 100%; }
.hc-name-row .skill-add-input { flex: 1; min-width: 0; font-size: 17px; }

.hc-field-label {
  align-self: flex-start;
  font-size: 11px;
  color: #c8a415;
  font-family: Arial, sans-serif;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 6px;
}
.hc-optional { color: rgba(255,255,255,0.45); letter-spacing: 1px; font-weight: normal; }

.skill-grade-row .skill-grade-btn { width: 50px; height: 50px; font-size: 18px; }

.skill-adv-row, .hc-status-row { display: flex; gap: 8px; justify-content: center; width: 100%; }
.skill-adv-btn, .manage-status-btn {
  flex: 1;
  max-width: 54px;
  height: 42px;
  border-radius: 8px;
  border: 2px solid rgba(255,255,255,0.12);
  background: #1a1a1a;
  color: rgba(255,255,255,0.6);
  font-size: 15px;
  font-weight: 900;
  font-family: 'Arial Black', Arial, sans-serif;
  cursor: pointer;
}
.manage-status-btn { max-width: 140px; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; }
.skill-adv-btn.active, .manage-status-btn.active {
  background: #c8a415; color: #0a0a0a; border-color: #c8a415;
}

.hc-error {
  min-height: 16px;
  font-size: 13px;
  color: #e05a5a;
  font-family: Arial, sans-serif;
  font-weight: bold;
  text-align: center;
}

.hc-invite { display: flex; flex-direction: column; align-items: center; gap: 16px; width: 100%; }
.hc-invite-text {
  font-size: 17px; color: #ffffff; font-family: Arial, sans-serif; font-weight: bold;
  text-align: center; line-height: 1.4;
}
.hc-invite-hint { font-size: 12px; color: rgba(255,255,255,0.6); font-family: Arial, sans-serif; text-align: center; }
.hc-whatsapp-btn { background: #25d366; color: #0a0a0a; font-size: 18px; letter-spacing: 1px; }
.hc-whatsapp-btn:active { background: #1da851; }

.hc-delete-btn {
  background: none;
  border: 1px solid rgba(224,90,90,0.6);
  color: #e05a5a;
  font-size: 14px;
  font-family: Arial, sans-serif;
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 12px 24px;
  border-radius: 6px;
  width: 100%;
  max-width: 280px;
  cursor: pointer;
}
.hc-delete-solid { background: #c0392b; border-color: #c0392b; color: #ffffff; font-size: 16px; padding: 18px 24px; }

/* Mode select → Manage Players */
.manage-open-btn {
  background: none;
  border: none;
  color: rgba(200,164,21,0.8);
  font-size: 13px;
  font-family: Arial, sans-serif;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 10px 16px;
  cursor: pointer;
}

/* Tomb warning */
.hc-tomb-sheet {
  background: linear-gradient(180deg, #2a2108 0%, #141008 100%);
  border-top: 2px solid #c8a415;
  gap: 22px;
}
.hc-tomb-glyphs { font-size: 26px; color: #c8a415; letter-spacing: 6px; }
.hc-tomb-text {
  font-size: 19px;
  line-height: 1.4;
  color: #f3e3a8;
  text-align: center;
  font-family: 'Papyrus', 'Herculanum', Georgia, serif;
  font-weight: bold;
  max-width: 340px;
}

/* Manage list */
#screen-manage { background: #0a0a0a; justify-content: flex-start; align-items: stretch; }
.manage-list {
  flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch;
  width: 100%; padding: 0 12px 40px;
}
.manage-row {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 12px 10px; background: none; border: none;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  color: #ffffff; cursor: pointer; text-align: left;
}
.manage-row:active { background: rgba(200,164,21,0.12); }
.manage-row-name {
  flex: 1; min-width: 0; font-size: 14px; font-weight: 900; text-transform: uppercase;
  font-family: 'Arial Black', Arial, sans-serif; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.manage-row-meta {
  font-size: 12px; color: #c8a415; font-family: Arial, sans-serif; font-weight: bold;
  letter-spacing: 1px; text-transform: uppercase; white-space: nowrap;
}
.manage-row-inactive { opacity: 0.5; }


/* =====================
   CHECK-IN
   ===================== */
#screen-checkin { background: #0a0a0a; justify-content: flex-start; align-items: stretch; }
.ci-header { flex-shrink: 0; padding: 48px 20px 10px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.ci-title { font-size: clamp(30px, 9vw, 44px) !important; }
.ci-counts { display: flex; gap: 14px; width: 100%; max-width: 360px; }
.ci-count {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 12px 8px; border-radius: 12px; background: #141414; border: 2px solid rgba(255,255,255,0.1);
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.ci-num { font-size: 44px; font-weight: 900; color: #ffffff; line-height: 1; }
.ci-lbl { font-size: 11px; font-family: Arial, sans-serif; font-weight: bold; letter-spacing: 2px; text-transform: uppercase; color: #c8a415; text-align: center; }
.ci-goalies.ci-g0 { border-color: rgba(224,90,90,0.6); }
.ci-goalies.ci-g0 .ci-lbl, .ci-goalies.ci-g1 .ci-lbl { color: #e05a5a; }
.ci-goalies.ci-g1 { border-color: rgba(224,150,60,0.7); }
.ci-goalies.ci-g2 {
  background: #c8a415; border-color: #c8a415;
  box-shadow: 0 0 24px rgba(200,164,21,0.55);
  animation: goalieGlow 2.4s ease-in-out infinite;
}
.ci-goalies.ci-g2 .ci-num, .ci-goalies.ci-g2 .ci-lbl { color: #0a0a0a; }
@keyframes goalieGlow {
  0%, 100% { box-shadow: 0 0 18px rgba(200,164,21,0.45); }
  50%      { box-shadow: 0 0 40px rgba(200,164,21,0.85); }
}
.ci-status { text-align: center; }
.ci-status.ci-closed { color: #e05a5a !important; }

.ci-list { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 0 14px 20px; }
.ci-section {
  font-size: 11px; color: #c8a415; font-family: Arial, sans-serif; font-weight: bold;
  letter-spacing: 2px; text-transform: uppercase; padding: 16px 6px 6px;
}
.ci-row {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 13px 10px; background: none; border: none; border-bottom: 1px solid rgba(255,255,255,0.07);
  color: #ffffff; cursor: pointer; text-align: left;
}
.ci-row:active { background: rgba(200,164,21,0.12); }
.ci-row:disabled { cursor: default; }
.ci-row-name {
  flex: 1; min-width: 0; font-size: 15px; font-weight: 900; text-transform: uppercase;
  font-family: 'Arial Black', Arial, sans-serif; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ci-pill {
  font-size: 11px; font-family: Arial, sans-serif; font-weight: bold; letter-spacing: 1px;
  text-transform: uppercase; padding: 5px 10px; border-radius: 20px; white-space: nowrap;
  border: 1px solid rgba(255,255,255,0.15); color: rgba(255,255,255,0.45);
}
.ci-pill-in { background: #c8a415; color: #0a0a0a; border-color: #c8a415; }
.ci-pill-goalie { background: #ffffff; color: #0a0a0a; border-color: #ffffff; }
.ci-pill-out { color: #e05a5a; border-color: rgba(224,90,90,0.5); }
.ci-row-out .ci-row-name { color: rgba(255,255,255,0.45); }

.ci-footer { flex-shrink: 0; padding: 10px 16px 28px; border-top: 1px solid rgba(255,255,255,0.08); }

.ci-sheet { gap: 14px; padding: 26px 24px 36px; }
.ci-action-name {
  font-size: 26px; font-weight: 900; color: #ffffff; text-transform: uppercase; letter-spacing: 2px; text-align: center;
}
.ci-goalie-btn { background: #ffffff; color: #0a0a0a; }
.ci-goalie-btn:active { background: #dddddd; }

/* Celebration */
.ci-celebrate {
  position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 45%, rgba(200,164,21,0.95) 0%, rgba(120,95,10,0.95) 45%, rgba(10,10,10,0.97) 100%);
  animation: celeIn 0.25s ease-out both; overflow: hidden;
}
@keyframes celeIn { from { opacity: 0; } to { opacity: 1; } }
.ci-cele-inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.ci-cele-icons { font-size: 64px; animation: celeBounce 0.9s cubic-bezier(0.34,1.56,0.64,1) both; }
.ci-cele-text {
  font-size: clamp(52px, 16vw, 96px); font-weight: 900; line-height: 0.92; text-align: center; letter-spacing: 3px;
  color: #ffffff; text-shadow: 0 6px 0 #0a0a0a, 0 0 40px rgba(255,255,255,0.5);
  animation: taglineSlamCele 0.35s 0.15s cubic-bezier(0.2,0,0.3,1) both;
}
.ci-cele-sub {
  font-size: 15px; font-family: Arial, sans-serif; font-weight: bold; letter-spacing: 4px; text-transform: uppercase;
  color: #0a0a0a; animation: fadeInUp 0.4s 0.6s ease both;
}
@keyframes taglineSlamCele { from { opacity: 0; transform: scale(3); } to { opacity: 1; transform: scale(1); } }
@keyframes celeBounce { 0% { transform: translateY(-120px) scale(0.4); opacity: 0; } 100% { transform: none; opacity: 1; } }
.ci-cele-burst { position: absolute; left: 50%; top: 45%; width: 0; height: 0; z-index: 1; }
.ci-chip {
  position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%;
  transition: transform 1.3s cubic-bezier(0.15,0.6,0.35,1), opacity 1.3s ease 0.5s;
}
.ci-chip.b { background: radial-gradient(circle at 35% 35%, #3a3a3a, #0e0e0e); border: 3px solid #555; }
.ci-chip.w { background: radial-gradient(circle at 35% 35%, #ffffff, #cccccc); border: 3px solid #999; }

/* Skill Pick check-in bar */
.ci-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 12px; border: 1px solid rgba(200,164,21,0.35); border-radius: 10px; background: rgba(200,164,21,0.06);
}
.ci-bar-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ci-bar-text { font-size: 12px; color: #ffffff; font-family: Arial, sans-serif; font-weight: bold; letter-spacing: 1px; text-transform: uppercase; }
.ci-bar-sub { font-size: 11px; color: rgba(255,255,255,0.65); font-family: Arial, sans-serif; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ci-bar-btns { display: flex; gap: 6px; flex-shrink: 0; }
.ci-bar.ci-bar-closed { border-color: rgba(224,90,90,0.45); background: rgba(224,90,90,0.06); }


/* Inactive panel multi-select */
.skill-inactive-panel-row.picked { background: #c8a415; }
.skill-inactive-panel-row.picked .skill-inactive-panel-name,
.skill-inactive-panel-row.picked .skill-inactive-panel-add { color: #0a0a0a; }
.skill-inactive-hint { color: rgba(255,255,255,0.75) !important; }

/* =====================
   v14: 4-column rosters (active list + inactive panel)
   Names wrap to 2 lines instead of cutting off; gold fill shows "selected".
   ===================== */
.skill-player-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  padding: 2px;
}
.skill-player-row {
  justify-content: center;
  text-align: center;
  padding: 10px 3px;
  min-height: 46px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}
.skill-player-name {
  font-size: 11px;
  letter-spacing: 0;
  line-height: 1.2;
  white-space: normal;
  overflow-wrap: anywhere;
  text-overflow: clip;
}
.skill-player-row .skill-check-icon { display: none; }

.skill-inactive-panel-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
}
.skill-inactive-panel-row {
  justify-content: center;
  text-align: center;
  padding: 10px 3px;
  min-height: 46px;
  min-width: 0;
  border: 1px solid rgba(255,255,255,0.08);
}
.skill-inactive-panel-name {
  flex: 1;
  font-size: 11px;
  letter-spacing: 0;
  line-height: 1.2;
  overflow-wrap: anywhere;
  min-width: 0;
}
.skill-inactive-panel-add { display: none; }
.skill-inactive-group {
  grid-column: 1 / -1;
  font-size: 10px;
  color: rgba(200,164,21,0.7);
  font-family: Arial, sans-serif;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 10px 2px 2px;
}

/* v14: share teams */
.skill-share-row {
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: 320px;
  margin: 18px auto 10px;
}
.skill-share-btn {
  flex: 1;
  padding: 16px 10px;
  font-size: 16px;
  letter-spacing: 2px;
}
.skill-copy-btn {
  flex: 0 0 96px;
  padding: 16px 8px;
  background: none;
  border: 1px solid rgba(200,164,21,0.6);
  border-radius: 6px;
  color: #c8a415;
  font-family: 'Arial Black', Arial, sans-serif;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
}
.skill-copy-btn:active { background: rgba(200,164,21,0.12); }
