/* =============================================================================
   public/player/player.css
   KONTROLER GRACZA SMARTFON & WEB (ARCADE GAMEPAD)
   Kompletny i samowystarczalny arkusz stylów kontrolera mobilnego
   Tożsamość wizualna: Arcade 3D Studio & Neon Game Show (Buzzin)
   ============================================================================= */

/* ── 1. IMPORT CZCIONEK TELETURNIEJU ────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Titan+One&family=Fredoka:wght@400;500;600;700;800;900&family=Outfit:wght@600;700;800;900&family=Space+Mono:wght@700&display=swap');

/* ── 2. DESIGN TOKENS & ZMIENNE MOTYWU STUDIA ARCADE 3D ─────────────────────── */
:root,
body.theme-arcade-3d,
body.player-body {
  /* Typografia teleturniejowa */
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Space Mono', monospace;

  /* ── Paleta Barw Jackbox Party ─────────────────────────────────────────────── */
  --primary: #6c5ce7;
  --primary-light: #a29bfe;
  --primary-dark: #4834d4;

  --accent: #ffca28;               /* Główny kolor brandu - Słoneczny Żółty */
  --accent-bright: #ffe082;
  --accent-dark: #f57f17;

  --success: #2ed573;
  --success-light: #7bed9f;
  --error: #ff4757;
  --error-light: #ff6b81;
  --warning: #ffa502;
  --neutral: #747d8c;

  /* Tła Studia Telewizyjnego Jackbox Party */
  --bg-dark: #120d26;
  --bg-stage: #191236;
  --bg-card: #201742;
  --bg-card-light: #2c2057;
  --bg-surface: #261b4d;

  /* Tekst */
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.90);
  --text-muted: rgba(255, 255, 255, 0.65);
  --text-dark: #181824;
  --text-gold: #ffca28;
  --text-lime: #2ed573;

  /* Krawędzie i Twarde Cienie Pop-Art */
  --ink-color: #181824;
  --ink-shadow: #0e091b;
  --border-ink: 3px solid var(--ink-color);
  --border-ink-thick: 4px solid var(--ink-color);
  --border-gold: 3px solid var(--accent);
  --border-blue: 3px solid var(--primary);
  --border-card: 3px solid var(--ink-color);

  --shadow-sm: 2px 2px 0 var(--ink-shadow);
  --shadow-3d-sm: 3px 3px 0 var(--ink-color);
  --shadow-3d: 5px 5px 0 var(--ink-shadow);
  --shadow-3d-lg: 8px 8px 0 var(--ink-shadow);
  --shadow-card: 5px 5px 0 var(--ink-shadow);
  --shadow-btn: 0 5px 0 var(--ink-color), 0 8px 16px rgba(0, 0, 0, 0.35);

  /* Blaski Neonowe - Wyczyszczone do zera */
  --glow-lime: none;
  --glow-cyan: none;
  --glow-coral: none;
  --glow-gold: none;
  --glow-blue: none;

  /* Gradienty Studia i Elementów Gry */
  --gradient-bg: linear-gradient(180deg, #1f1638 0%, #120d26 100%);
  --gradient-card: linear-gradient(180deg, #251b4c 0%, #1a123a 100%);
  --gradient-gold: linear-gradient(180deg, #ffca28 0%, #ffa502 100%);
  --gradient-lime: linear-gradient(180deg, #2ed573 0%, #10ac84 100%);
  --gradient-success: linear-gradient(180deg, #2ed573 0%, #10ac84 100%);
  --gradient-error: linear-gradient(180deg, #ff4757 0%, #ee5253 100%);

  /* Kolory Przycisków Odpowiedzi Jackbox Party */
  --opt-a: #ff4757;
  --opt-a-dark: #181824;
  --opt-b: #1e90ff;
  --opt-b-dark: #181824;
  --opt-c: #ffa502;
  --opt-c-dark: #181824;
  --opt-d: #2ed573;
  --opt-d-dark: #181824;

  /* Zaokrąglenia i Przejścia */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --transition: 0.15s ease;
  --transition-fast: 0.08s ease;
  --transition-slow: 0.3s ease;
}

/* ── 3. TYPOGRAFIA & PODSTAWY KONTROLERA JACKBOX PARTY ──────────────────────── */
body.theme-arcade-3d.player-body,
body.player-body {
  font-family: var(--font-body);
  background-color: #120d26;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(108, 92, 231, 0.22) 0%, transparent 60%),
    linear-gradient(180deg, #1f1638 0%, #120d26 100%);
  color: var(--text-primary);
}

body.theme-arcade-3d h1,
body.theme-arcade-3d h2,
body.theme-arcade-3d h3,
body.theme-arcade-3d .logo-title,
body.theme-arcade-3d .game-title,
body.theme-arcade-3d .screen-title {
  font-family: var(--font-display);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

body.theme-arcade-3d .game-title {
  color: #ffca28;
  -webkit-text-fill-color: #ffca28;
  background: none;
  text-shadow: 
    2px 2px 0 #181824,
    4px 4px 0 #0e091b;
  font-size: clamp(2rem, 5vw, 3rem);
}

body.theme-arcade-3d .logo-star {
  color: #ffca28;
  text-shadow: 2px 2px 0 #181824;
}

/* ── 4. PRZYCISKI W STYLU JACKBOX PARTY ────────────────────────────────────── */
body.theme-arcade-3d .btn,
body.theme-arcade-3d button {
  font-family: var(--font-heading);
  font-weight: 800;
  border-radius: 16px;
  border: 3px solid #181824;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

body.theme-arcade-3d .btn-gold,
body.theme-arcade-3d .btn-lime,
body.theme-arcade-3d .btn-primary {
  background: linear-gradient(180deg, #ffca28 0%, #ffa502 100%);
  color: #181824;
  border: 3px solid #181824;
  box-shadow: 
    inset 0 2px 0 rgba(255, 255, 255, 0.4),
    0 6px 0 #181824,
    0 10px 18px rgba(0, 0, 0, 0.35);
}

body.theme-arcade-3d .btn-gold:hover,
body.theme-arcade-3d .btn-lime:hover,
body.theme-arcade-3d .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 
    inset 0 2px 0 rgba(255, 255, 255, 0.5),
    0 8px 0 #181824,
    0 14px 22px rgba(0, 0, 0, 0.4);
}

body.theme-arcade-3d .btn-gold:active,
body.theme-arcade-3d .btn-lime:active,
body.theme-arcade-3d .btn-primary:active,
body.theme-arcade-3d .btn-gold.pressed {
  transform: translateY(4px);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 2px 0 #181824;
}

body.theme-arcade-3d .btn-outline,
body.theme-arcade-3d .btn-secondary {
  background: #2c2057;
  color: #ffffff;
  border: 3px solid #181824;
  box-shadow: 
    inset 0 2px 0 rgba(255, 255, 255, 0.15),
    0 5px 0 #181824,
    0 8px 16px rgba(0, 0, 0, 0.3);
}

body.theme-arcade-3d .btn-outline:active,
body.theme-arcade-3d .btn-secondary:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #181824;
}

body.theme-arcade-3d .btn-outline:active,
body.theme-arcade-3d .btn-secondary:active {
  transform: translateY(4px);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 1px 0 #12092c,
    0 3px 6px rgba(0, 0, 0, 0.3);
}

/* ── 5. FORMULARZ DOŁĄCZANIA & WYBÓR AWATARA ──────────────────────────────── */
body.theme-arcade-3d .join-card {
  background: linear-gradient(180deg, #251b4c 0%, #171035 100%);
  border: 3.5px solid #181824;
  border-radius: 24px;
  box-shadow: 6px 6px 0 #0e091b;
  padding: 22px 18px;
}

body.theme-arcade-3d .card {
  background: linear-gradient(180deg, #251b4c 0%, #1a123a 100%);
  border: 3px solid #181824;
  border-radius: 20px;
  box-shadow: 5px 5px 0 #0e091b;
}

body.theme-arcade-3d .join-card .form-input,
body.theme-arcade-3d .form-input {
  background: #140d2b;
  border: 3px solid #181824;
  color: #ffffff;
  border-radius: 16px;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.6);
}

body.theme-arcade-3d .join-card .form-input:focus,
body.theme-arcade-3d .form-input:focus {
  border-color: #ffd23f;
  box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.6), 0 0 0 2.5px #ffd23f;
  caret-color: #ffd23f;
  outline: none;
}

body.theme-arcade-3d .join-card .form-input.gkb-active-field,
body.theme-arcade-3d .form-input.gkb-active-field {
  background: #fffdf0 !important;
  color: #181824 !important;
  border-color: #ffd23f !important;
  border-width: 3.5px !important;
  box-shadow: 0 0 0 3.5px rgba(255, 210, 63, 0.45), 4px 4px 0 #181824 !important;
  caret-color: #181824 !important;
}

body.theme-arcade-3d .gender-pill {
  background: #190e38;
  border: 2.5px solid #181824;
  color: rgba(255, 255, 255, 0.85);
  box-shadow: 2px 2px 0 #0e091b;
  border-radius: 999px;
}

body.theme-arcade-3d .gender-pill.active {
  background: #ffca28;
  color: #181824;
  border-color: #181824;
  box-shadow: 3px 3px 0 #0e091b;
}

body.theme-arcade-3d .avatar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 12px 2px;
}

body.theme-arcade-3d .avatar-btn {
  background: radial-gradient(circle at 50% 120%, rgba(255, 255, 255, 0.09) 0%, #160e2e 70%);
  border: 2.8px solid #070410;
  border-radius: 18px;
  box-shadow: 
    inset 0 1.5px 0 rgba(255, 255, 255, 0.2),
    0 5px 0 #070410,
    0 10px 18px rgba(0, 0, 0, 0.45);
  aspect-ratio: 1 / 1;
  height: auto;
  min-height: 64px;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
}

body.theme-arcade-3d .avatar-btn:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 #070410, 0 4px 8px rgba(0, 0, 0, 0.4);
}

body.theme-arcade-3d .avatar-btn.selected {
  border-color: #b6e84a;
  background: radial-gradient(circle at 50% 120%, rgba(182, 232, 74, 0.35) 0%, #1e1342 70%);
  box-shadow: 
    inset 0 2px 0 rgba(255, 255, 255, 0.4),
    0 0 22px rgba(182, 232, 74, 0.75),
    0 4px 0 #070410;
  transform: translateY(2px) scale(1.04);
}

body.theme-arcade-3d .avatar-btn .avatar-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.4));
  pointer-events: none;
  animation: char3DBreathe 3.6s ease-in-out infinite alternate;
}

body.theme-arcade-3d .player-avatar-big {
  width: 120px;
  height: 120px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #201742;
  border: 3.5px solid #181824;
  box-shadow: 6px 6px 0 #0e091b;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

body.theme-arcade-3d .player-avatar-big .avatar-render-img,
body.theme-arcade-3d .player-avatar-big img {
  width: 115%;
  height: 115%;
  object-fit: contain;
  transform: translateY(-6px);
  filter: drop-shadow(3px 5px 0 #0e091b);
  animation: char3DBreathe 3.2s ease-in-out infinite alternate;
}

body.theme-arcade-3d .selected-avatar-preview {
  background: #170e33;
  border: 2.8px solid #070410;
  border-radius: 20px;
  box-shadow: 
    inset 0 2px 0 rgba(255, 255, 255, 0.15),
    0 6px 0 #070410,
    0 12px 24px rgba(0, 0, 0, 0.45);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

body.theme-arcade-3d .sap-img-wrap {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 120%, rgba(182, 232, 74, 0.3) 0%, #22144d 70%);
  border: 2.5px solid #070410;
  box-shadow: 0 4px 0 #070410;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

body.theme-arcade-3d .sap-img-wrap img {
  width: 115%;
  height: 115%;
  object-fit: contain;
  transform: translateY(-4px);
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5));
  animation: charWinBounce 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) 1;
}

body.theme-arcade-3d #btn-join {
  background: linear-gradient(135deg, #b6e84a 0%, #cbff55 100%);
  color: #090514;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: 1px;
  border: 3.5px solid #070410;
  border-radius: 20px;
  box-shadow: 
    inset 0 3px 0 rgba(255, 255, 255, 0.55),
    0 8px 0 #6e9612,
    0 16px 28px rgba(0, 0, 0, 0.65),
    0 0 25px rgba(182, 232, 74, 0.6);
  min-height: 60px;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}

body.theme-arcade-3d #btn-join:active:not(:disabled) {
  transform: translateY(6px);
  box-shadow: 
    inset 0 2px 0 rgba(255, 255, 255, 0.3),
    0 2px 0 #6e9612,
    0 6px 12px rgba(0, 0, 0, 0.4);
}

body.theme-arcade-3d #btn-join:disabled {
  opacity: 0.5;
  filter: grayscale(60%);
  box-shadow: 0 4px 0 #070410;
}

/* ── 6. BUZZIN 2-ETAPOWY JOIN WIZARD & KARUZELA POSTACI ─────────────────────── */
.buzzin-join-header-deco {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}

.buzzin-mini-buzzer {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #ff4757;
  border: 3px solid #181824;
  box-shadow: 0 4px 0 #181824, 0 6px 12px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  animation: miniBuzzerPulse 2.4s ease-in-out infinite alternate;
}

.buzzin-step-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.4rem, 4.5vw, 1.8rem);
  color: #ffca28;
  text-align: center;
  letter-spacing: 1px;
  text-shadow: 2px 2px 0 #181824;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.buzzin-name-input {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 14px 16px;
}

.btn-buzzin-step {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: 1.2px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #ffca28;
  color: #181824;
  border: 3px solid #181824;
  border-radius: 16px;
  box-shadow: 0 5px 0 #181824, 0 8px 16px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.btn-buzzin-step:hover {
  background: #ffa502;
  transform: translateY(-2px);
  box-shadow: 0 7px 0 #181824, 0 10px 18px rgba(0, 0, 0, 0.4);
}

.btn-buzzin-step:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 #181824;
}

.btn-step-back-link {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  margin-top: 12px;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
  display: block;
  width: 100%;
  text-align: center;
}

.btn-step-back-link:hover {
  color: #ffd23f;
  background: rgba(255, 255, 255, 0.05);
}

.avatar-carousel-stage {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  margin: 12px 0 18px 0;
  position: relative;
  user-select: none;
  touch-action: pan-y;
}

.btn-carousel-nav {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffd23f 0%, #f59e0b 100%);
  border: 3px solid #070410;
  box-shadow: 
    inset 0 2px 0 rgba(255, 255, 255, 0.5),
    0 5px 0 #92400e,
    0 8px 16px rgba(0, 0, 0, 0.5);
  color: #090514;
  font-size: 1.8rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.btn-carousel-nav:active {
  transform: translateY(4px);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.3), 0 1px 0 #92400e, 0 4px 8px rgba(0, 0, 0, 0.3);
}

.avatar-carousel-figure-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 200px;
}

.avatar-carousel-glow {
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(182, 232, 74, 0.35) 0%, rgba(157, 78, 221, 0.15) 60%, transparent 80%);
  filter: blur(12px);
  z-index: 1;
  pointer-events: none;
}

.avatar-carousel-img-container {
  width: 100%;
  height: clamp(150px, 26vh, 210px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  animation: char3DBreathe 3s ease-in-out infinite alternate;
}

.avatar-carousel-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.75));
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.avatar-carousel-name-pill {
  position: relative;
  z-index: 3;
  margin-top: 8px;
  background: #0d0722;
  color: #ffd23f;
  border: 2.5px solid #ffd23f;
  border-radius: 999px;
  padding: 4px 18px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: 1px;
  box-shadow: 0 4px 0 #070410, 0 0 14px rgba(255, 210, 63, 0.6);
  white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════════════════════════
   STYLIZOWANY WYBÓR POSTACI W MOTYWIE JACKBOX PARTY (SMARTFON)
   ═══════════════════════════════════════════════════════════════════════════ */
#join-step-2 {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Filtr płci */
.avatar-gender-filter {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 4px 0 6px;
}

.gender-pill {
  background: #24143a;
  color: #fff;
  border: 2.5px solid #181824;
  border-radius: 999px;
  padding: 6px 14px;
  font-family: var(--font-heading, inherit);
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 3px 0 #181824;
  transition: transform 0.1s ease, background 0.15s ease, color 0.15s ease;
}

.gender-pill:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #181824;
}

.gender-pill.active {
  background: #ffd23f;
  color: #181824;
  border-color: #181824;
  box-shadow: 0 3px 0 #181824;
}

/* Karuzela / Duży podgląd postaci */
.avatar-carousel-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 4px 0 8px;
}

.carousel-nav-btn {
  background: #ff5964;
  color: #fff;
  border: 3px solid #181824;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 4px 0 #181824;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
  flex-shrink: 0;
}

.carousel-nav-btn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #181824;
}

.avatar-carousel-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.avatar-carousel-img-container {
  width: clamp(120px, 34vw, 150px);
  height: clamp(120px, 34vw, 150px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-carousel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 4px solid #181824;
  border-radius: 20px;
  box-shadow: 0 6px 0 #181824, 0 10px 20px rgba(0, 0, 0, 0.4);
  background: #24143a;
  aspect-ratio: 1 / 1;
}

.avatar-carousel-emoji {
  font-size: 4.5rem;
  line-height: 1;
}

.avatar-carousel-name {
  background: #ffd23f;
  color: #181824;
  border: 2.5px solid #181824;
  border-radius: 999px;
  padding: 4px 14px;
  font-family: var(--font-heading, inherit);
  font-weight: 900;
  font-size: 0.95rem;
  letter-spacing: 1px;
  box-shadow: 0 3px 0 #181824;
}

/* Siatka miniatur postaci */
.avatar-grid-wrapper {
  margin-top: 4px;
  background: rgba(24, 18, 48, 0.6);
  border: 3px solid #181824;
  border-radius: 18px;
  padding: 10px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4);
}

.avatar-grid-header {
  margin-bottom: 6px;
  text-align: left;
}

.avatar-grid-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: #ffd23f;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.avatar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  max-height: 190px;
  overflow-y: auto;
  padding: 4px 2px;
  scrollbar-width: thin;
  scrollbar-color: #ffd23f #181824;
}

.avatar-btn {
  background: #24143a;
  border: 2.5px solid #181824;
  border-radius: 14px;
  box-shadow: 0 3px 0 #181824;
  aspect-ratio: 1 / 1;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: transform 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}

.avatar-btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #181824;
}

.avatar-btn .avatar-icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 9px;
  pointer-events: none;
}

.avatar-btn.selected {
  border-color: #ffd23f;
  box-shadow: 0 3px 0 #181824, 0 0 0 2.5px #ffd23f;
  transform: scale(1.05);
}

.avatar-btn.selected::after {
  content: '✓';
  position: absolute;
  top: -4px;
  right: -4px;
  background: #35b276;
  color: #fff;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #181824;
  box-shadow: 0 2px 0 #181824;
}

.avatar-btn.taken {
  filter: grayscale(0.9) opacity(0.45);
  cursor: not-allowed;
  pointer-events: none;
}

/* Ogólna stylizowana ramka awatara */
.avatar-frame,
img.avatar-render-img.avatar-frame {
  border: 3px solid #181824;
  border-radius: 14px;
  box-shadow: 0 3px 0 #181824;
  background: #24143a;
  object-fit: cover;
  aspect-ratio: 1 / 1;
}

/* ── 7. PRZYCISKI ODPOWIEDZI ABCD NA SMARTFONIE (PADY 3D) ───────────────────── */
body.theme-arcade-3d .option-btn,
body.theme-arcade-3d .answer-btn {
  border: 3px solid #070410;
  border-radius: 22px;
  font-family: var(--font-body);
  font-weight: 800;
  padding: 16px 14px;
  transition: transform 0.08s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.08s ease;
  position: relative;
  overflow: hidden;
}

body.theme-arcade-3d .option-btn:active,
body.theme-arcade-3d .answer-btn:active,
body.theme-arcade-3d .option-btn.pressed {
  transform: translateY(6px) scale(0.98);
}

body.theme-arcade-3d .option-btn.opt-a,
body.theme-arcade-3d .option-btn[data-answer="A"],
body.theme-arcade-3d .option-btn[data-letter="A"],
body.theme-arcade-3d #btn-opt-a {
  background: #ff3366;
  color: #ffffff;
  box-shadow: 
    inset 0 3px 0 rgba(255, 255, 255, 0.45),
    0 8px 0 #aa0038,
    0 16px 24px rgba(0, 0, 0, 0.5);
}

body.theme-arcade-3d .option-btn.opt-a:active,
body.theme-arcade-3d .option-btn[data-answer="A"]:active,
body.theme-arcade-3d #btn-opt-a:active {
  box-shadow: 
    inset 0 2px 0 rgba(255, 255, 255, 0.2),
    0 1px 0 #aa0038,
    0 4px 8px rgba(0, 0, 0, 0.4);
}

body.theme-arcade-3d .option-btn.opt-b,
body.theme-arcade-3d .option-btn[data-answer="B"],
body.theme-arcade-3d .option-btn[data-letter="B"],
body.theme-arcade-3d #btn-opt-b {
  background: #00e5ff;
  color: #090514;
  box-shadow: 
    inset 0 3px 0 rgba(255, 255, 255, 0.6),
    0 8px 0 #008fa6,
    0 16px 24px rgba(0, 0, 0, 0.5);
}

body.theme-arcade-3d .option-btn.opt-b:active,
body.theme-arcade-3d .option-btn[data-answer="B"]:active,
body.theme-arcade-3d #btn-opt-b:active {
  box-shadow: 
    inset 0 2px 0 rgba(255, 255, 255, 0.3),
    0 1px 0 #008fa6,
    0 4px 8px rgba(0, 0, 0, 0.4);
}

body.theme-arcade-3d .option-btn.opt-c,
body.theme-arcade-3d .option-btn[data-answer="C"],
body.theme-arcade-3d .option-btn[data-letter="C"],
body.theme-arcade-3d #btn-opt-c {
  background: #ffd23f;
  color: #090514;
  box-shadow: 
    inset 0 3px 0 rgba(255, 255, 255, 0.6),
    0 8px 0 #b88600,
    0 16px 24px rgba(0, 0, 0, 0.5);
}

body.theme-arcade-3d .option-btn.opt-c:active,
body.theme-arcade-3d .option-btn[data-answer="C"]:active,
body.theme-arcade-3d #btn-opt-c:active {
  box-shadow: 
    inset 0 2px 0 rgba(255, 255, 255, 0.3),
    0 1px 0 #b88600,
    0 4px 8px rgba(0, 0, 0, 0.4);
}

body.theme-arcade-3d .option-btn.opt-d,
body.theme-arcade-3d .option-btn[data-answer="D"],
body.theme-arcade-3d .option-btn[data-letter="D"],
body.theme-arcade-3d #btn-opt-d {
  background: #b6e84a;
  color: #090514;
  box-shadow: 
    inset 0 3px 0 rgba(255, 255, 255, 0.6),
    0 8px 0 #6e9612,
    0 16px 24px rgba(0, 0, 0, 0.5);
}

body.theme-arcade-3d .option-btn.opt-d:active,
body.theme-arcade-3d .option-btn[data-answer="D"]:active,
body.theme-arcade-3d #btn-opt-d:active {
  box-shadow: 
    inset 0 2px 0 rgba(255, 255, 255, 0.3),
    0 1px 0 #6e9612,
    0 4px 8px rgba(0, 0, 0, 0.4);
}

body.theme-arcade-3d .option-btn .opt-letter {
  background: #090514;
  color: #ffffff;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.4);
  font-family: var(--font-display);
}

/* ── 8. GIGANTYCZNY BUZZER 3D (SZYBKIE PALCE / KARTOFEL) ─────────────────────── */
body.theme-arcade-3d .buzzer-btn,
body.theme-arcade-3d .potato-btn,
body.theme-arcade-3d .fast-fingers-buzzer,
body.theme-arcade-3d .buzz-button {
  background: #ff4757;
  border: 4.5px solid #181824;
  box-shadow: 
    inset 0 8px 0 rgba(255, 255, 255, 0.35),
    inset 0 -10px 0 #d63031,
    0 10px 0 #181824,
    0 16px 26px rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

body.theme-arcade-3d .buzzer-btn:active,
body.theme-arcade-3d .potato-btn:active,
body.theme-arcade-3d .fast-fingers-buzzer:active,
body.theme-arcade-3d .buzz-button:active:not(:disabled) {
  transform: translateY(8px) scale(0.97) !important;
  box-shadow: 
    inset 0 4px 0 rgba(255, 255, 255, 0.2),
    inset 0 -4px 0 #d63031,
    0 2px 0 #181824,
    0 4px 10px rgba(0, 0, 0, 0.3) !important;
}

/* ── 9. AWATAR REAKCJI NA EKRANIE WYNIKU GRACZA ────────────────────────────── */
.result-avatar-wrap {
  width: 100px;
  height: 100px;
  margin: 0 auto 12px;
  border-radius: 50%;
  border: 3.5px solid #181824;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 6px 0 #181824;
}

.result-avatar-wrap.win {
  background: #2ed573;
  box-shadow: 0 6px 0 #181824;
  animation: charWinBounce 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) infinite alternate;
}

.result-avatar-wrap.wrong {
  background: #ff4757;
  box-shadow: 0 6px 0 #181824;
}

.result-avatar-wrap img,
.result-avatar-wrap .avatar-render-img {
  width: 115%;
  height: 115%;
  object-fit: contain;
  transform: translateY(-6px);
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.5));
}

.result-avatar-wrap:has(.sp-talking-head),
.player-avatar-big:has(.sp-talking-head) {
  overflow: visible !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* ── 10. ANIMACJE I MIKRORUCHY POSTACI 3D ──────────────────────────────────── */
@keyframes char3DBreathe {
  0%   { transform: translateY(-4px) scale(1, 1); }
  50%  { transform: translateY(-7px) scale(1.03, 0.98); }
  100% { transform: translateY(-3px) scale(0.98, 1.02); }
}

@keyframes charWinBounce {
  0%   { transform: translateY(0) scale(1); }
  35%  { transform: translateY(-16px) scale(1.16, 0.92); }
  70%  { transform: translateY(3px) scale(0.94, 1.08); }
  100% { transform: translateY(0) scale(1); }
}

@keyframes charWinCheer {
  0%   { transform: translateY(-4px) rotate(0deg) scale(1); }
  25%  { transform: translateY(-18px) rotate(-7deg) scale(1.15, 0.92); }
  65%  { transform: translateY(2px) rotate(7deg) scale(0.94, 1.1); }
  85%  { transform: translateY(-8px) rotate(-3deg) scale(1.06); }
  100% { transform: translateY(-4px) rotate(0deg) scale(1.02); }
}

@keyframes charWrongShake {
  0%   { transform: translateY(-4px) rotate(0deg); }
  15%  { transform: translateY(2px) rotate(-10deg) scale(0.95, 0.95); }
  30%  { transform: translateY(5px) rotate(10deg) scale(0.93, 0.94); }
  45%  { transform: translateY(4px) rotate(-7deg) scale(0.94, 0.95); }
  60%  { transform: translateY(4px) rotate(5deg) scale(0.95, 0.95); }
  75%  { transform: translateY(3px) rotate(-2deg) scale(0.96, 0.96); }
  100% { transform: translateY(4px) rotate(0deg) scale(0.95, 0.96); }
}

@keyframes bubbleWinFloat {
  0%   { transform: translateY(0) scale(1) rotate(0deg); }
  50%  { transform: translateY(-7px) scale(1.22) rotate(10deg); }
  100% { transform: translateY(0) scale(1) rotate(-10deg); }
}

@keyframes bubbleWrongDrop {
  0%   { transform: translateY(0) scale(1); }
  50%  { transform: translateY(4px) scale(0.92); }
  100% { transform: translateY(2px) scale(0.95); }
}

@keyframes miniBuzzerPulse {
  0% { transform: scale(0.96); box-shadow: 0 4px 0 #800016, 0 8px 16px rgba(217, 4, 41, 0.4); }
  100% { transform: scale(1.05); box-shadow: 0 7px 0 #800016, 0 14px 26px rgba(217, 4, 41, 0.7); }
}


/* ---- Podstawy & Reset Pudełkowy Smartfona ---- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  -webkit-text-size-adjust: 100%;
  box-sizing: border-box;
}
body {
  height: 100%;
  height: 100dvh;
  min-height: 100%;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  display: flex;
  flex-direction: column;
  background: var(--gradient-bg);
  padding: 0;
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
}

/* Obudowa i Viewport Smartfona */
.phone-casing-notch {
  display: none;
}

.player-app-shell {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  position: relative;
  overflow: hidden;
  flex: 1;
  box-sizing: border-box;
}

.player-screens-viewport {
  flex: 1;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

/* ---- Ekrany ---- */
.screen {
  display: none;
  height: 100%;
  min-height: 100%;
  width: 100%;
  max-width: 100%;
  position: relative;
  z-index: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  box-sizing: border-box;
}
.screen:not(.active) {
  display: none !important;
}
.screen.active { 
  display: flex; 
  flex-direction: column; 
}

.screen-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px 16px 24px;
  gap: 16px;
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}
.screen-inner.center {
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* ---- Logo / Nagłówek ---- */
.game-logo { text-align: center; padding: clamp(4px, 1.2vh, 10px) 0 2px; }
.logo-icon { font-size: clamp(2rem, 3.5vh, 2.7rem); display: block; animation: pulse 2s infinite; }
.logo-title { font-size: clamp(1.4rem, 2.8vh, 1.8rem); font-weight: 900; color: var(--accent); text-shadow: var(--glow-gold); letter-spacing: 2px; margin-top: 2px; }
.logo-sub { color: var(--text-secondary); font-size: 0.8rem; letter-spacing: 2px; text-transform: uppercase; }

/* ---- Formularz dołączania ---- */
.join-card { display: flex; flex-direction: column; gap: clamp(10px, 1.5vh, 15px); }
.section-title { font-size: 1.15rem; font-weight: 700; color: var(--accent); text-align: center; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-label { font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 1px; }

input[type="text"], input[type="number"], input[type="range"], select, textarea {
  width: 100%;
  padding: clamp(9px, 1.3vh, 12px) 14px;
  background: rgba(255,255,255,0.08);
  border: 2px solid rgba(255,215,0,0.3);
  border-radius: var(--radius-md);
  color: white;
  font-size: 16px;
  outline: none;
  transition: var(--transition);
  -webkit-appearance: none;
  box-sizing: border-box;
}
input[type="text"]:focus, input[type="number"]:focus {
  border-color: var(--accent);
  background: rgba(255,255,255,0.12);
  box-shadow: var(--glow-gold);
}
input::placeholder { color: rgba(255,255,255,0.3); }

.char-count { font-size: 0.75rem; color: var(--text-muted); text-align: right; }

/* ---- Przełącznik płci awatarów (Męskie / Damskie / Wszystkie) ---- */
.avatar-gender-filter {
  display: flex;
  background: rgba(255, 255, 255, 0.07);
  padding: 4px;
  border-radius: var(--radius-xl);
  border: 1.5px solid rgba(255, 215, 0, 0.25);
  gap: 4px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.3);
}

.gender-pill {
  flex: 1;
  padding: 8px 10px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  touch-action: manipulation;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.gender-pill:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.gender-pill.active {
  background: var(--gradient-gold);
  color: #0d1b5e;
  box-shadow: var(--shadow-btn), 0 2px 8px rgba(255, 215, 0, 0.4);
  font-weight: 800;
}

.gender-pill:active {
  transform: scale(0.95);
}

/* ---- Siatka awatarów ---- */
.avatar-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-auto-rows: auto;
  gap: 8px;
  max-height: clamp(140px, 22vh, 190px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 4px 2px;
  border-radius: var(--radius-sm);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 215, 0, 0.4) transparent;
}
.avatar-grid::-webkit-scrollbar {
  width: 4px;
}
.avatar-grid::-webkit-scrollbar-thumb {
  background: rgba(255, 215, 0, 0.4);
  border-radius: 4px;
}
.avatar-btn {
  aspect-ratio: 1;
  min-width: 44px;
  min-height: 44px;
  background: rgba(255,255,255,0.06);
  border: 2px solid rgba(255,215,0,0.2);
  border-radius: var(--radius-md);
  font-size: 1.6rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 2px;
}
.avatar-btn img,
.avatar-btn .avatar-icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
  display: block;
  pointer-events: none;
}
.avatar-btn:active { transform: scale(0.92); }
.avatar-btn.selected {
  border-color: var(--accent);
  background: rgba(255,215,0,0.2);
  box-shadow: var(--glow-gold);
}
.avatar-btn.selected::after {
  content: '✓';
  position: absolute;
  top: 4px; right: 4px;
  width: 20px;
  height: 20px;
  background: var(--accent);
  color: var(--primary-dark);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
  z-index: 3;
}

/* ---- Awatar zajęty przez innego gracza ---- */
.avatar-btn.taken {
  opacity: 0.35;
  filter: grayscale(100%);
  cursor: not-allowed;
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.45);
}
.avatar-btn.taken:active {
  transform: none;
}
.avatar-btn.taken::after {
  content: '🔒';
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

/* ---- Podgląd wybranego awatara ---- */
.selected-avatar-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding: 10px 14px;
  background: rgba(250, 204, 21, 0.08);
  border: 1.5px solid rgba(250, 204, 21, 0.55);
  border-radius: var(--radius-md);
  animation: popIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}
.sap-img-wrap {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--accent);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: rgba(13, 27, 94, 0.7);
}
.sap-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sap-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.sap-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.sap-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--accent);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sap-clear-btn {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--text-muted);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  cursor: pointer;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.sap-clear-btn:hover {
  background: rgba(239,68,68,0.2);
  border-color: rgba(239,68,68,0.5);
  color: #fca5a5;
}

/* ---- Przyciski ---- */
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 16px 24px; border: none; border-radius: var(--radius-md); font-size: 1rem; font-weight: 700; cursor: pointer; text-transform: uppercase; letter-spacing: 1px; transition: var(--transition); -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.btn-lg { padding: 18px 28px; font-size: 1.1rem; min-height: 60px; }
.btn-gold { background: var(--gradient-gold); color: var(--primary-dark); }
.btn-gold:active { transform: scale(0.97); filter: brightness(0.9); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none !important; }

.btn-full { width: 100%; }

.btn-icon { font-size: 1.2rem; }

#btn-wait-change-profile {
  min-height: 48px;
  height: 48px;
  padding: 12px 20px;
  flex-shrink: 0;
  box-sizing: border-box;
}

.error-msg { color: var(--error-light); font-size: 0.9rem; text-align: center; animation: shake 0.4s ease; }

.join-hint-msg {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 8px;
  transition: opacity 0.3s ease;
}
.join-hint-msg.hidden {
  opacity: 0;
  pointer-events: none;
}

/* ---- Czekanie ---- */
.player-avatar-big {
  font-size: 5rem;
  animation: popIn 0.5s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.avatar-render-img {
  width: 1.15em;
  height: 1.15em;
  border-radius: 50%;
  object-fit: cover;
  vertical-align: middle;
}
.player-avatar-big img,
.player-avatar-big .avatar-render-img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 3.5px solid #181824;
  box-shadow: 4px 4px 0 #0e091b;
}
.player-name-big {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  color: #ffca28;
  margin-top: 8px;
  text-shadow: 2px 2px 0 #181824;
  text-transform: uppercase;
}
.waiting-pulse { position: relative; width: 80px; height: 80px; margin: 16px auto; }
.pulse-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid #ffca28;
  animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
  opacity: 0;
}
.pulse-ring.delay-1 { animation-delay: 0.5s; }
.pulse-ring.delay-2 { animation-delay: 1s; }
@keyframes ping { 75%, 100% { transform: scale(2); opacity: 0; } 0% { opacity: 0.6; } }
.waiting-text {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
}
.player-count-badge {
  background: #ffca28;
  border: 2px solid #181824;
  border-radius: 999px;
  padding: 6px 16px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 900;
  color: #181824;
  margin-top: 8px;
  box-shadow: 2px 2px 0 #0e091b;
}
.other-players { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 12px; }
.other-player-chip {
  background: #201742;
  border: 2px solid #181824;
  border-radius: 999px;
  padding: 6px 14px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 2px 2px 0 #0e091b;
}

#btn-wait-change-profile {
  background: #1e153d !important;
  border: 2.5px solid #181824 !important;
  color: #ffffff !important;
  font-family: 'Outfit', sans-serif !important;
  font-weight: 800 !important;
  border-radius: 14px !important;
  box-shadow: 3px 3px 0 #0e091b !important;
  transition: transform 0.1s ease, box-shadow 0.1s ease !important;
}

#btn-wait-change-profile:hover {
  background: #2a1f56 !important;
  transform: translateY(-2px);
  box-shadow: 4px 4px 0 #0e091b !important;
}

#btn-wait-change-profile:active {
  transform: translateY(2px) !important;
  box-shadow: 1px 1px 0 #0e091b !important;
}

/* ---- Ekran Intro Konkurencji na Telefonie ---- */
.player-intro-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  padding: 16px 14px;
  max-width: 500px;
  margin: 0 auto;
  width: 100%;
}

.player-intro-title {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 900;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 4px 0 0 0;
  text-shadow: 3px 3px 0 #181824;
  line-height: 1.2;
}

.player-intro-desc {
  font-size: 1rem;
  color: #ffd23f;
  font-family: var(--font-display);
  text-shadow: 1px 1px 0 #181824;
  font-weight: 800;
  line-height: 1.45;
  margin-bottom: 2px;
}

.player-intro-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.player-intro-card {
  background: #251b4c;
  border: 3px solid #181824;
  border-radius: 18px;
  padding: 16px 18px;
  text-align: left;
  box-shadow: 5px 5px 0 #0e091b;
}

.player-goal-card {
  border-top: 6px solid #ffd23f;
}

.player-controls-card {
  border-top: 6px solid #38bdf8;
}

.player-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.player-card-icon {
  font-size: 1.5rem;
  line-height: 1;
  filter: drop-shadow(1px 1px 0 #181824);
}

.player-card-label {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 900;
  color: #ffd23f;
  text-shadow: 1px 1px 0 #181824;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.player-controls-card .player-card-label {
  color: #38bdf8;
}

.player-card-text {
  font-size: 0.95rem;
  color: #ffffff;
  line-height: 1.5;
  font-weight: 600;
}

.player-intro-timer-box {
  width: 100%;
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.player-intro-timer-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: #cbd5e1;
}

.player-intro-timer-text strong {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: #ffd23f;
  text-shadow: 2px 2px 0 #181824;
  margin-left: 4px;
}

/* ── Sekwencja wejścia elementów Intro na telefonie ──────────────────────── */
#screen-competition-intro.active .category-badge,
#screen-competition-intro.active #player-intro-badge {
  animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

#screen-competition-intro.active .player-intro-title {
  animation: slideInUp 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

#screen-competition-intro.active .player-intro-desc {
  animation: fadeIn 0.45s ease 0.35s both;
}

#screen-competition-intro.active .player-goal-card {
  animation: slideInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}

#screen-competition-intro.active .player-controls-card {
  animation: slideInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.65s both;
}

#screen-competition-intro.active .player-intro-timer-box {
  animation: popIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 0.8s both;
}

/* ---- Nagłówek sekcji ---- */
.section-header { text-align: center; }
.section-header h2 { font-size: 1.4rem; color: var(--accent); }

/* ---- Timer pasek ---- */
.timer-bar-wrap { width: 100%; height: 8px; background: rgba(255,255,255,0.1); border-radius: 100px; overflow: hidden; margin: 8px 0; }
.timer-bar-wrap.big { height: 14px; }
.timer-bar { height: 100%; width: 100%; background: var(--gradient-gold); border-radius: 100px; transform-origin: left; transition: width 1s linear; }
.timer-text { font-size: 1.2rem; font-weight: 700; color: var(--accent); }

/* ---- Głosowanie ---- */
.voting-categories { display: flex; flex-direction: column; gap: 14px; }
.vote-cat-btn {
  padding: 18px 20px;
  background: #251b4c;
  border: 3px solid #181824;
  border-radius: 18px;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  text-shadow: 1px 1px 0 #181824;
  cursor: pointer;
  text-align: left;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 5px 0 #181824, 0 8px 16px rgba(0, 0, 0, 0.35);
}
.vote-cat-btn:nth-child(1) { border-left: 10px solid #ff4757; }
.vote-cat-btn:nth-child(2) { border-left: 10px solid #1e90ff; }
.vote-cat-btn:nth-child(3) { border-left: 10px solid #ffd23f; }
.vote-cat-btn:nth-child(4) { border-left: 10px solid #2ed573; }

.vote-cat-btn:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 #181824;
}
.vote-cat-btn.voted {
  border-color: #181824;
  background: #ffd23f;
  color: #181824;
  text-shadow: none;
  box-shadow: 0 4px 0 #181824;
}
.vote-cat-icon { font-size: 1.6rem; filter: drop-shadow(1px 1px 0 #181824); }

.voted-confirm {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px;
  background: #251b4c;
  border: 3px solid #181824;
  border-radius: 20px;
  box-shadow: 5px 5px 0 #0e091b;
  text-align: center;
  margin-top: 16px;
}
#voted-confirm-title {
  font-family: var(--font-display);
  color: #ffd23f;
  text-shadow: 2px 2px 0 #181824;
  font-size: 1.4rem;
  margin: 0;
}
.voted-icon { font-size: 3.2rem; filter: drop-shadow(2px 2px 0 #181824); }

.solo-wait-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px;
  background: #251b4c;
  border: 3px solid #181824;
  border-radius: 20px;
  box-shadow: 5px 5px 0 #0e091b;
  text-align: center;
  margin-top: 16px;
}
.solo-wait-icon { font-size: 3rem; filter: drop-shadow(2px 2px 0 #181824); }
.solo-wait-title {
  font-family: var(--font-display);
  color: #ffd23f;
  text-shadow: 2px 2px 0 #181824;
  font-size: 1.3rem;
  margin: 0;
}
.solo-wait-desc {
  color: #cbd5e1;
  font-weight: 700;
  font-size: 0.95rem;
  margin: 0;
}

/* ---- Pytanie ABCD ---- */
.category-badge {
  background: #ffd23f;
  border: 2.5px solid #181824;
  border-radius: 100px;
  padding: 5px 16px;
  font-size: clamp(0.75rem, 2.5vw, 0.9rem);
  line-height: 1.3;
  color: #181824;
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 2px 2px 0 #0e091b;
  align-self: flex-start;
  white-space: normal;
  word-break: break-word;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
}

.options-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; flex: 1; }
.option-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 16px 14px;
  border: 3px solid #181824;
  border-radius: 18px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 900;
  cursor: pointer;
  text-align: left;
  line-height: 1.3;
  min-height: 85px;
  box-shadow: 0 5px 0 #181824, 0 8px 16px rgba(0, 0, 0, 0.35);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  gap: 6px;
}
.opt-a { background: #ff4757; color: #ffffff; }
.opt-b { background: #1e90ff; color: #ffffff; }
.opt-c { background: #ffa502; color: #181824; }
.opt-d { background: #2ed573; color: #181824; }

.option-btn:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 #181824;
}
.option-btn.selected {
  border-color: #ffffff;
  box-shadow: 0 4px 0 #181824, 0 0 0 3px #ffffff;
}
.option-btn.disabled { opacity: 0.4; cursor: not-allowed; }

.opt-letter {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
}
.opt-a .opt-letter,
.opt-b .opt-letter {
  color: #ffffff;
  text-shadow: 2px 2px 0 #181824;
}
.opt-c .opt-letter,
.opt-d .opt-letter {
  color: #181824;
  text-shadow: none;
}

.opt-text {
  font-family: var(--font-display), 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 900;
}
.opt-a .opt-text,
.opt-b .opt-text {
  color: #ffffff;
  text-shadow: 1px 1px 0 #181824;
}
.opt-c .opt-text,
.opt-d .opt-text {
  color: #181824;
  text-shadow: none;
}

/* ---- Prawda/Fałsz ---- */
#tf-question {
  font-family: var(--font-display), 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  line-height: 1.35;
  text-align: center;
  color: #ffffff;
  text-shadow: 2px 2px 0 #181824;
  padding: 6px 8px 12px 8px;
}
.tf-grid { display: grid; grid-template-columns: 1fr; gap: 18px; flex: 1; padding: 8px 0; }
.tf-btn {
  padding: 26px 20px;
  border: 3.5px solid #181824;
  border-radius: 22px;
  font-family: var(--font-display), 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  box-shadow: 0 6px 0 #181824, 0 8px 16px rgba(0, 0, 0, 0.35);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn-true { background: #2ed573; color: #181824; }
.btn-false { background: #ff4757; color: #ffffff; text-shadow: 2px 2px 0 #181824; }
.tf-btn:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 #181824;
}
.tf-btn.selected {
  border-color: #ffffff;
  box-shadow: 0 5px 0 #181824, 0 0 0 3px #ffffff;
}

/* ---- Szybkie Palce: Komiksowy Przycisk BUZZ i pole tekstowe Jackbox ---- */
.buzz-question {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  line-height: 1.35;
  text-align: center;
  color: #ffffff;
  text-shadow: 2px 2px 0 #181824;
  padding: 0 8px;
}
.buzz-button {
  width: clamp(140px, 22vh, 180px);
  height: clamp(140px, 22vh, 180px);
  border-radius: 50%;
  background: #ff4757;
  border: 4.5px solid #181824;
  cursor: pointer;
  box-shadow: 0 8px 0 #181824, 0 14px 24px rgba(0, 0, 0, 0.4);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  margin: 14px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.buzz-button:disabled {
  opacity: 0.45;
  filter: grayscale(80%);
  cursor: not-allowed;
  box-shadow: 0 4px 0 #181824;
  border-color: #3b3552;
  transform: none !important;
}
.buzz-button:not(:disabled) {
  animation: buzzComicReady 1.2s infinite ease-in-out;
}
@keyframes buzzComicReady {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 8px 0 #181824, 0 14px 24px rgba(0, 0, 0, 0.4);
  }
  50% {
    transform: scale(1.04);
    box-shadow: 0 10px 0 #181824, 0 18px 28px rgba(0, 0, 0, 0.45);
  }
}
.buzz-button:not(:disabled):active {
  transform: translateY(6px) !important;
  box-shadow: 0 2px 0 #181824, 0 4px 10px rgba(0, 0, 0, 0.3) !important;
}
.buzz-inner {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 3px 3px 0 #181824;
  letter-spacing: 0.5px;
}
.buzz-pc-hint {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  color: #ffd23f;
  text-shadow: 1.5px 1.5px 0 #181824;
  margin-top: 2px;
}
.buzz-hint {
  font-family: var(--font-display), 'Outfit', sans-serif;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  font-weight: 800;
  text-align: center;
  margin-top: 6px;
  text-shadow: 1px 1px 0 #181824;
  transition: color 0.2s ease;
}
.buzz-hint.active {
  color: #ffd23f;
}
.buzz-answer-area {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 0 8px;
}
.buzz-answer-area .form-input,
#buzz-answer-input {
  width: 100%;
  font-family: var(--font-display), 'Fredoka', sans-serif;
  font-size: 1.25rem;
  text-align: center;
  font-weight: 900;
  padding: 14px 16px;
  border-radius: 18px;
  background: #ffffff;
  color: #181824;
  border: 3.5px solid #181824;
  box-shadow: 4px 4px 0 #0e091b;
  box-sizing: border-box;
}
#buzz-answer-input:focus,
#buzz-answer-input.gkb-active-field {
  border-color: #ffd23f !important;
  background-color: #fffdf0 !important;
  box-shadow: 0 0 0 3.5px rgba(255, 210, 63, 0.45), 5px 5px 0 #0e091b !important;
  color: #181824 !important;
  caret-color: #181824 !important;
  outline: none !important;
}

/* ---- Odpowiedź tekstowa ---- */
.text-answer-area { display: flex; flex-direction: column; gap: 12px; }

/* ---- Szeregowanie (kolejność) Jackbox ---- */
.order-label {
  font-family: var(--font-display), 'Outfit', sans-serif;
  color: #ffd23f;
  font-size: 1rem;
  font-weight: 800;
  text-align: center;
  text-shadow: 1.5px 1.5px 0 #181824;
}

/* Paski skali na górze i dole: stylizowane na komiksowe wskaźniki */
.order-scale-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 14px;
  background: #ffd23f;
  border: 3px solid #181824;
  box-shadow: 3px 3px 0 #0e091b;
}
.order-scale-top {
  margin-bottom: 4px;
}
.order-scale-bottom {
  margin-top: 4px;
}
.order-scale-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #181824;
  color: #ffd23f;
  border-radius: 8px;
  padding: 4px 10px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 900;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.5px;
}
.order-scale-arrow {
  color: #ffffff;
  font-size: 0.9rem;
}
.order-scale-text {
  flex: 1;
  text-align: right;
  font-family: var(--font-display), 'Outfit', sans-serif;
  font-weight: 900;
  color: #181824;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  word-break: break-word;
}

.order-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  position: relative;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  padding: 4px 0;
}

.order-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #251b4c;
  border: 3.5px solid #181824;
  border-radius: 18px;
  padding: 12px 14px;
  font-size: 1rem;
  font-weight: 800;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  position: relative;
  will-change: transform, box-shadow;
  box-shadow: 0 5px 0 #181824, 0 8px 16px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.order-item:hover:not(.locked):not(.is-dragging) {
  border-color: #ffd23f;
  background: #312363;
}

.order-item.is-dragging {
  cursor: grabbing;
  z-index: 100;
  transform: scale(1.04) rotate(-1deg);
  background: #382970;
  border-color: #ffd23f;
  box-shadow: 0 12px 0 #181824, 0 16px 28px rgba(0, 0, 0, 0.5);
  transition: none !important;
}

.order-item.locked {
  cursor: default;
  opacity: 0.85;
}

.order-pos {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid #181824;
  color: #181824;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: 0.5px;
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 2px 2px 0 #0e091b;
  pointer-events: none;
}

.order-text {
  flex: 1;
  font-family: var(--font-display), 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: #ffffff;
  text-shadow: 1px 1px 0 #181824;
  line-height: 1.35;
  pointer-events: none;
  word-break: break-word;
}

.order-drag-handle {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffd23f;
  flex-shrink: 0;
  border-radius: 10px;
  background: #191136;
  border: 2.5px solid #181824;
  box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.3);
  pointer-events: none;
  transition: color 0.15s ease, background 0.15s ease;
}

.order-item:hover:not(.locked) .order-drag-handle {
  color: #181824;
  background: #ffd23f;
  border-color: #181824;
}

.order-item.is-dragging .order-drag-handle {
  background: #ffd23f;
  color: #181824;
}

/* Zachowanie kompatybilności wstecznej dla przycisków strzałek */
.order-arrows { display: none; }
.order-arrow { display: none; }

/* ---- Zgadnij liczbę: Retro Miernik i Suwak Jackbox ---- */
.number-input-area { display: flex; flex-direction: column; gap: 16px; align-items: center; }

#screen-answer-number .number-control-card,
.number-control-card {
  background: #251b4c !important;
  border: 3.5px solid #181824 !important;
  border-radius: 22px !important;
  box-shadow: 6px 6px 0 #0e091b !important;
  padding: 22px 18px !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

#screen-answer-number .number-display,
.number-display {
  font-family: var(--font-display) !important;
  font-size: 2.8rem !important;
  font-weight: 900 !important;
  color: #ffd23f !important;
  text-shadow: 3px 3px 0 #181824 !important;
  min-width: 160px;
  text-align: center;
  background: #191136 !important;
  border: 3px solid #181824 !important;
  border-radius: 16px !important;
  padding: 8px 24px !important;
  box-shadow: inset 3px 3px 0 rgba(0, 0, 0, 0.5), 0 3px 0 #181824 !important;
  letter-spacing: 1px;
}

#num-min-label,
#num-max-label,
.num-range-labels span {
  font-family: var(--font-display) !important;
  font-weight: 800 !important;
  font-size: 1rem !important;
  color: #ffd23f !important;
  text-shadow: 1px 1px 0 #181824 !important;
}

/* Suwak retro linijka */
#num-slider,
.range-slider,
.num-slider {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 16px;
  background: #181824 !important;
  border-radius: 12px !important;
  border: 2.5px solid #181824 !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6) !important;
  outline: none;
  cursor: pointer;
  touch-action: pan-y;
  margin: 6px 0;
}

#num-slider::-webkit-slider-thumb,
.range-slider::-webkit-slider-thumb,
.num-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffd23f;
  border: 3.5px solid #181824;
  box-shadow: 0 4px 0 #181824, inset 0 3px 0 rgba(255, 255, 255, 0.6), inset 0 -3px 0 #e67e22;
  cursor: grab;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

#num-slider::-webkit-slider-thumb:active,
.range-slider::-webkit-slider-thumb:active,
.num-slider::-webkit-slider-thumb:active {
  cursor: grabbing;
  transform: scale(1.12);
  box-shadow: 0 2px 0 #181824;
}

#num-slider::-moz-range-thumb,
.range-slider::-moz-range-thumb,
.num-slider::-moz-range-thumb {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffd23f;
  border: 3.5px solid #181824;
  box-shadow: 0 4px 0 #181824, inset 0 3px 0 rgba(255, 255, 255, 0.6), inset 0 -3px 0 #e67e22;
  cursor: grab;
}

#num-exact,
.num-exact-input {
  font-family: var(--font-display) !important;
  font-size: 1.25rem !important;
  font-weight: 900 !important;
  color: #181824 !important;
  background: #ffffff !important;
  border: 3px solid #181824 !important;
  border-radius: 14px !important;
  box-shadow: 3px 3px 0 #0e091b !important;
  text-align: center !important;
  padding: 8px 14px !important;
}

#num-exact:focus,
#num-exact.gkb-active-field,
.num-exact-input:focus,
.num-exact-input.gkb-active-field {
  background: #fffdf0 !important;
  border-color: #ffd23f !important;
  border-width: 3.5px !important;
  box-shadow: 0 0 0 3.5px rgba(255, 210, 63, 0.45), 4px 4px 0 #0e091b !important;
  color: #181824 !important;
  caret-color: #181824 !important;
  outline: none !important;
}

label[for="num-exact"] {
  font-family: var(--font-display) !important;
  font-weight: 800 !important;
  font-size: 0.95rem !important;
  color: #ffffff !important;
  text-shadow: 1px 1px 0 #181824 !important;
}

.num-range-labels { display: flex; justify-content: space-between; width: 100%; font-size: 0.8rem; color: var(--text-muted); }
.num-hint {
  font-family: var(--font-display), 'Outfit', sans-serif;
  color: #ffd23f;
  font-size: 0.95rem;
  font-weight: 800;
  text-align: center;
  text-shadow: 1.5px 1.5px 0 #181824;
}

/* ---- Gorący kartofel Jackbox Party ---- */
.hot-potato-holder { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 16px; }
.potato-emoji { font-size: 5rem; animation: bounce 0.8s ease infinite alternate; filter: drop-shadow(2px 2px 0 #181824); }
@keyframes bounce { from { transform: translateY(0); } to { transform: translateY(-12px); } }
.potato-holder-name { font-family: var(--font-display); font-size: 1.4rem; font-weight: 900; color: #ffd23f; text-shadow: 1.5px 1.5px 0 #181824; }
.potato-category {
  background: #ffd23f;
  border: 3px solid #181824;
  border-radius: 100px;
  padding: 6px 18px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 900;
  color: #181824;
  box-shadow: 3px 3px 0 #0e091b;
}
.potato-used { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; max-height: 100px; overflow-y: auto; padding: 8px 0; }
.used-word,
#potato-used-list span {
  background: #ffffff;
  border: 2px solid #181824;
  border-radius: 10px;
  padding: 4px 10px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 900;
  color: #181824;
  box-shadow: 2px 2px 0 #0e091b;
}
.my-turn-label {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 900;
  color: #ff4757;
  text-shadow: 2px 2px 0 #181824;
  animation: pulse 0.8s infinite;
  text-align: center;
}
.potato-turn-area {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}
.potato-turn-area p {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.15rem;
  color: #ff4757;
  text-shadow: 1.5px 1.5px 0 #181824;
  text-align: center;
}
#potato-answer-input {
  width: 100%;
  background: #ffffff;
  color: #181824;
  border: 3.5px solid #181824;
  border-radius: 18px;
  box-shadow: 4px 4px 0 #0e091b;
  font-family: var(--font-display), 'Fredoka', sans-serif;
  font-size: 1.25rem;
  font-weight: 900;
  text-align: center;
  padding: 12px 14px;
  box-sizing: border-box;
}
#potato-answer-input:focus,
#potato-answer-input.gkb-active-field {
  border-color: #ffd23f !important;
  background-color: #fffdf0 !important;
  box-shadow: 0 0 0 3.5px rgba(255, 210, 63, 0.45), 5px 5px 0 #0e091b !important;
  color: #181824 !important;
  caret-color: #181824 !important;
  outline: none !important;
}
.potato-wait-area {
  background: #251b4c;
  border: 3.5px solid #181824;
  border-radius: 20px;
  box-shadow: 5px 5px 0 #0e091b;
  padding: 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
  box-sizing: border-box;
}
.potato-wait-icon { font-size: 3rem; }
.potato-wait-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.35rem;
  color: #ffd23f;
  text-shadow: 2px 2px 0 #181824;
  margin: 0;
}
.potato-wait-desc {
  font-family: var(--font-display), 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: #ffffff;
  text-shadow: 1px 1px 0 #181824;
  margin: 2px 0;
}
.potato-waiting-holder-name {
  color: #ff4757;
  font-weight: 900;
}
.potato-wait-sub {
  font-family: var(--font-display), 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}
.potato-elim {
  background: #251b4c;
  border: 3.5px solid #ff4757;
  border-radius: 20px;
  box-shadow: 5px 5px 0 #0e091b;
  padding: 18px;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}
.potato-elim h3 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.3rem;
  color: #ff4757;
  text-shadow: 2px 2px 0 #181824;
  margin: 6px 0;
}
.potato-elim p {
  font-family: var(--font-display), 'Outfit', sans-serif;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  margin: 0;
}

/* ---- Kalambury ---- */
.role-label { font-size: 1.3rem; font-weight: 800; color: var(--accent); text-align: center; }
.secret-word-box { background: rgba(255,215,0,0.1); border: 3px solid var(--accent); border-radius: var(--radius-lg); padding: 24px; text-align: center; margin: 8px 0; }
.secret-label { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 8px; }
.secret-word { font-size: 2.5rem; font-weight: 900; color: var(--accent); text-shadow: var(--glow-gold); }
.kalambury-rules { display: flex; flex-direction: column; gap: 6px; }
.kalambury-rules p { font-size: 0.9rem; color: var(--text-secondary); }
.guessed-count { font-size: 1rem; color: var(--text-secondary); }
.describer-info { display: flex; align-items: center; gap: 10px; font-size: 1rem; color: var(--text-secondary); padding: 12px; background: var(--bg-card); border-radius: var(--radius-md); }
.wrong-msg { color: var(--error-light); font-size: 0.95rem; animation: shake 0.4s ease; }

/* ---- Wynik odpowiedzi ---- */
.result-icon {
  font-size: 5rem;
  animation: popIn 0.5s ease;
  filter: drop-shadow(3px 3px 0 #181824);
}
.result-title {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 900;
  text-shadow: 2px 2px 0 #181824;
}
.result-title.correct { color: #2ed573; }
.result-title.wrong { color: #ff4757; }
.result-title.pending { color: #ffd23f; animation: pulse 2s infinite; }
.result-title.suspense-phone { color: #ffd23f; animation: pulse 1s infinite alternate; }
.result-title.majority { color: #2ed573; }
.result-title.minority { color: #a55eea; }
.result-title.tie { color: #1e90ff; }
.result-feedback {
  font-family: var(--font-display);
  color: #d0cce6;
  font-size: 1rem;
  font-weight: 700;
  text-shadow: 1px 1px 0 #181824;
}
.result-points {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 900;
  color: #ffd23f;
  text-shadow: 2.5px 2.5px 0 #181824;
}
.result-points.majority { color: #2ed573; }
.result-points.minority { color: #a55eea; }
.result-points.tie { color: #1e90ff; }
.result-points.wrong { color: #ff4757; }
.points-plus { font-size: 2rem; color: #ffd23f; font-weight: 900; }
.points-num { font-size: 3.5rem; font-weight: 900; color: #ffd23f; text-shadow: 2.5px 2.5px 0 #181824; }
.points-label { font-size: 1.2rem; color: #ffd23f; font-weight: 900; }
.result-streak {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: #181824;
  background: #ffa502;
  border: 2.5px solid #181824;
  border-radius: 999px;
  padding: 4px 16px;
  box-shadow: 2px 2px 0 #0e091b;
  font-weight: 900;
  margin-top: 10px;
  display: inline-flex;
}

/* ---- TV Ranking Notice (Ranking tylko na TV) ---- */
.tv-watch-card {
  text-align: center;
  margin: auto 0;
  padding: 28px 20px;
  background: #251b4c;
  border: 3.5px solid #181824;
  border-radius: 24px;
  width: 100%;
  box-shadow: 6px 6px 0 #0e091b;
  box-sizing: border-box;
}

.tv-watch-icon {
  font-size: 3.8rem;
  animation: tvIconPulse 1.8s ease-in-out infinite alternate;
  display: inline-block;
  margin-bottom: 8px;
  filter: drop-shadow(3px 3px 0 #181824);
}

@keyframes tvIconPulse {
  0% { transform: scale(1) translateY(0); }
  100% { transform: scale(1.08) translateY(-5px); }
}

.tv-watch-title {
  font-family: var(--font-display);
  color: #ffd23f;
  font-size: 1.65rem;
  font-weight: 900;
  text-shadow: 2px 2px 0 #181824;
  margin: 6px 0 8px;
}

.tv-watch-desc {
  font-family: var(--font-display);
  color: #d0cce6;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.45;
  margin: 0 auto 16px;
  max-width: 290px;
  text-shadow: 1px 1px 0 #181824;
}

.tv-watch-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: #ffd23f;
  border: 2.5px solid #181824;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 900;
  color: #181824;
  box-shadow: 0 3px 0 #181824;
}

.my-round-score-box {
  background: #191136;
  border: 2.5px solid #181824;
  border-radius: 16px;
  padding: 12px 18px;
  margin-top: 14px;
  box-shadow: inset 2px 2px 0 rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.my-round-score-lbl {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 800;
  color: #d0cce6;
}

.my-score-val {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: #ffd23f;
  text-shadow: 2px 2px 0 #181824;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PODSUMOWANIE KONKURENCJI NA SMARTFONIE (Jackbox Party Style)
   ═══════════════════════════════════════════════════════════════════════════ */

#player-comp-end-icon {
  font-size: 3.5rem;
  line-height: 1;
  filter: drop-shadow(2px 2px 0 #181824);
  margin-bottom: 6px;
}

#player-comp-end-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  color: #ffd23f;
  text-shadow: 2.5px 2.5px 0 #181824;
  margin: 6px 0 2px;
}

#player-comp-end-subtitle {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: #d0cce6;
  text-shadow: 1px 1px 0 #181824;
  margin-bottom: 12px;
}

#player-comp-my-card {
  width: 100%;
  box-sizing: border-box;
  background: #251b4c;
  border: 3.5px solid #181824;
  border-radius: 20px;
  box-shadow: 5px 5px 0 #0e091b;
  padding: 16px;
  text-align: center;
  margin-bottom: 12px;
}

.player-comp-added-badge {
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 900;
  text-shadow: 2.5px 2.5px 0 #181824;
  margin: 8px 0;
  line-height: 1.1;
}

.player-comp-stat-box {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: #181032;
  border: 2.5px solid #181824;
  border-radius: 14px;
  padding: 10px 8px;
  box-shadow: inset 2px 2px 0 rgba(0, 0, 0, 0.4);
}

.player-comp-stat-lbl {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 1px;
  color: #ffd23f;
  text-shadow: 1px 1px 0 #181824;
}

.player-comp-stat-val {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 1.5px 1.5px 0 #181824;
}

.player-comp-stat-rank {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  color: #ffd23f;
  text-shadow: 1.5px 1.5px 0 #181824;
}

.player-comp-stat-divider {
  width: 2.5px;
  height: 38px;
  background: #181824;
  border-radius: 2px;
}

#player-comp-awards {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.player-comp-award-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffd23f;
  border: 3px solid #181824;
  border-radius: 16px;
  box-shadow: 4px 4px 0 #0e091b;
  padding: 10px 14px;
  color: #181824;
  text-align: left;
}

.player-comp-award-badge .award-badge-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.player-comp-award-badge .award-badge-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1rem;
  color: #181824;
}

.player-comp-award-badge .award-badge-desc {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  color: #2b1f48;
}

.tv-comp-ranking-notice {
  background: #251b4c;
  border: 3px solid #181824;
  border-radius: 16px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  margin-top: 10px;
  box-shadow: 4px 4px 0 #0e091b;
}

.tv-comp-ranking-notice .tv-notice-icon {
  font-size: 1.6rem;
  line-height: 1;
}

.tv-comp-ranking-notice .tv-notice-title {
  font-family: var(--font-display);
  font-weight: 900;
  color: #ffd23f;
  text-shadow: 1px 1px 0 #181824;
  font-size: 1rem;
}

.tv-comp-ranking-notice .tv-notice-sub {
  font-family: var(--font-display);
  font-weight: 700;
  color: #d0cce6;
  font-size: 0.85rem;
}

/* ── Sekwencja wejścia elementów Podsumowania Konkurencji na telefonie ───── */
#screen-competition-end.active #player-comp-end-icon {
  animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

#screen-competition-end.active .category-badge,
#screen-competition-end.active #player-comp-end-badge {
  animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
}

#screen-competition-end.active #player-comp-end-title {
  animation: slideInUp 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.18s both;
}

#screen-competition-end.active #player-comp-end-subtitle {
  animation: fadeIn 0.45s ease 0.35s both;
}

#screen-competition-end.active #player-comp-my-card {
  animation: slideInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.48s both;
}

#screen-competition-end.active #player-comp-awards {
  animation: fadeIn 0.5s ease 0.62s both;
}

#screen-competition-end.active .tv-comp-ranking-notice {
  animation: slideInUp 0.45s ease 0.75s both;
}

/* ---- Animacja losowania kategorii na telefonie ---- */
.category-draw-player {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 16px;
  width: 100%;
}

.draw-player-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.draw-player-status h3 {
  font-family: var(--font-display);
  color: #ffd23f;
  text-shadow: 2px 2px 0 #181824;
  font-size: 1.3rem;
  margin: 0;
}

.draw-spin-icon {
  font-size: 2.2rem;
  filter: drop-shadow(2px 2px 0 #181824);
  animation: spinSlot 0.8s linear infinite;
  display: inline-block;
}

@keyframes spinSlot {
  0% { transform: rotate(0deg); }
  50% { transform: rotate(180deg) scale(1.1); }
  100% { transform: rotate(360deg); }
}

.draw-player-roller {
  width: 100%;
  margin-bottom: 12px;
}

.draw-player-card {
  background: #251b4c;
  border: 3.5px solid #181824;
  border-radius: 22px;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  box-shadow: 6px 6px 0 #0e091b;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.draw-player-card.winner {
  border-color: #181824;
  background: #2ed573;
  box-shadow: 8px 8px 0 #0e091b;
  animation: playerWinnerPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.draw-player-card.winner .draw-player-cat-name {
  color: #181824;
  text-shadow: none;
}

@keyframes playerWinnerPop {
  0% { transform: scale(0.95); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.draw-player-cat-icon {
  font-size: 3rem;
  filter: drop-shadow(2px 2px 0 #181824);
}

.draw-player-cat-name {
  font-size: 1.5rem;
  font-family: var(--font-display);
  font-weight: 900;
  color: #ffffff;
  text-shadow: 2px 2px 0 #181824;
}

.draw-player-subtext {
  color: #cbd5e1;
  font-weight: 700;
  font-size: 0.95rem;
  margin-top: 8px;
}

/* ---- Finał ---- */
.my-final-result { background: rgba(255,215,0,0.1); border: 2px solid var(--accent); border-radius: var(--radius-lg); padding: 20px; text-align: center; }
.my-stats { background: var(--bg-card); border-radius: var(--radius-md); padding: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat-item { text-align: center; }
.stat-value { font-size: 1.5rem; font-weight: 800; color: var(--accent); }
.stat-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; }

/* ---- Czekanie na pytanie ---- */
.waiting-icon { font-size: 3.5rem; animation: pulse 1.5s infinite; }
.competition-name-badge { background: var(--bg-card); border: var(--border-gold); border-radius: 100px; padding: 8px 20px; font-size: 0.95rem; color: var(--accent); font-weight: 600; margin-top: 12px; }

/* ---- Spinner ---- */
.answer-sent { display: flex; align-items: center; gap: 12px; color: var(--text-secondary); font-size: 0.95rem; padding: 8px 0; }
.spinner { width: 24px; height: 24px; border: 3px solid rgba(255,215,0,0.3); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Kalambury Mobile Jackbox Party ---- */
.kalam-word-btn {
  background: #251b4c;
  border: 3.5px solid #181824;
  border-radius: 18px;
  padding: 18px 16px;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 900;
  text-shadow: 1px 1px 0 #181824;
  text-align: center;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 0 #181824, 0 8px 16px rgba(0, 0, 0, 0.3);
  touch-action: manipulation;
}
.kalam-word-btn:hover {
  background: #312363;
  border-color: #ffd23f;
}
.kalam-word-btn:active, .kalam-word-btn.selected {
  background: #ffd23f;
  color: #181824;
  text-shadow: none;
  transform: translateY(4px);
  box-shadow: 0 1px 0 #181824;
}
.kalam-word-btn:disabled {
  opacity: 0.45;
  filter: grayscale(70%);
  cursor: not-allowed;
  pointer-events: none;
}

.kalam-draw-word-banner {
  background: #ffd23f;
  color: #181824;
  border: 3px solid #181824;
  border-radius: 14px;
  box-shadow: 3px 3px 0 #0e091b;
  font-family: var(--font-display);
  font-weight: 900;
  padding: 6px 14px;
  font-size: 1.1rem;
}
.kalam-draw-word-title {
  color: #181824;
  text-decoration: underline;
}

.kalam-canvas-container {
  background: #8b5a2b !important;
  background-image: repeating-linear-gradient(90deg, #8b5a2b 0, #8b5a2b 20px, #784820 20px, #784820 40px) !important;
  border: 3.5px solid #181824 !important;
  border-radius: 18px !important;
  box-shadow: 0 6px 0 #0e091b !important;
  padding: 6px !important;
  box-sizing: border-box;
}
#kalam-mobile-canvas {
  border: 2px solid #181824 !important;
  border-radius: 12px !important;
}

.kalam-color-palette {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
}

.kalam-color-btn {
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  border-radius: 50% !important;
  border: 3.5px solid #181824 !important;
  box-shadow: 0 4px 0 #181824;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  touch-action: manipulation;
  cursor: pointer;
}
.kalam-color-btn:active {
  transform: translateY(2px) scale(0.96);
  box-shadow: 0 2px 0 #181824;
}
.kalam-color-btn.active {
  transform: scale(1.15) translateY(-3px);
  box-shadow: 0 6px 0 #181824, 0 0 0 3px #ffffff;
}

#btn-kalam-clear {
  background: #ff4757 !important;
  color: #ffffff !important;
  border: 2.5px solid #181824 !important;
  border-radius: 12px !important;
  box-shadow: 0 3px 0 #181824 !important;
  font-family: var(--font-display) !important;
  font-weight: 900 !important;
  padding: 8px 12px !important;
}
#btn-kalam-clear:active {
  transform: translateY(3px) !important;
  box-shadow: none !important;
}

#btn-kalam-guessed {
  background: #2ed573 !important;
  color: #181824 !important;
  border: 3.5px solid #181824 !important;
  border-radius: 18px !important;
  box-shadow: 0 5px 0 #181824 !important;
  font-family: var(--font-display) !important;
  font-weight: 900 !important;
  font-size: 1.15rem !important;
  letter-spacing: 0.5px;
}
#btn-kalam-guessed:active {
  transform: translateY(4px) !important;
  box-shadow: 0 1px 0 #181824 !important;
}

#btn-kalam-nobody {
  background: #251b4c !important;
  color: #ff6b81 !important;
  border: 3px solid #181824 !important;
  border-radius: 18px !important;
  box-shadow: 0 4px 0 #181824 !important;
  font-family: var(--font-display) !important;
  font-weight: 800 !important;
  font-size: 1rem !important;
}
#btn-kalam-nobody:active {
  transform: translateY(3px) !important;
  box-shadow: 0 1px 0 #181824 !important;
}

#kalam-select-guesser-box {
  background: #251b4c !important;
  border: 3.5px solid #181824 !important;
  border-radius: 18px !important;
  box-shadow: 5px 5px 0 #0e091b !important;
  padding: 12px !important;
}

.kalam-claim-player-btn {
  background: #ffd23f !important;
  border: 2.5px solid #181824 !important;
  color: #181824 !important;
  border-radius: 12px !important;
  padding: 10px 8px !important;
  font-family: var(--font-display) !important;
  font-size: 0.95rem !important;
  font-weight: 900 !important;
  box-shadow: 0 3px 0 #181824 !important;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  touch-action: manipulation;
}
.kalam-claim-player-btn:active {
  transform: translateY(3px) !important;
  box-shadow: none !important;
}
.kalam-claim-player-btn:disabled {
  opacity: 0.45;
  pointer-events: none;
}

/* Ekran zgadującego: komiksowa chmurka i usta */
.kalam-guess-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.8rem;
  color: #ffd23f;
  text-shadow: 2.5px 2.5px 0 #181824;
  margin: 8px 0;
}
.kalam-guess-sub {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: #ffffff;
  text-shadow: 1.5px 1.5px 0 #181824;
}
.kalam-guess-instructions {
  background: #ffffff !important;
  border: 4px solid #181824 !important;
  border-radius: 20px !important;
  box-shadow: 6px 6px 0 #0e091b !important;
  padding: 18px !important;
  margin-top: 16px;
  max-width: 340px;
  color: #181824 !important;
  position: relative;
}
.kalam-guess-instructions p:first-child {
  color: #ff4757 !important;
  font-family: var(--font-display) !important;
  font-weight: 900 !important;
  font-size: 1.25rem !important;
  margin-bottom: 8px;
}
.kalam-guess-instructions p:last-child {
  font-family: var(--font-display), 'Outfit', sans-serif !important;
  font-size: 0.95rem !important;
  color: #181824 !important;
  font-weight: 700 !important;
  line-height: 1.4;
}

/* ═══════════════════════════════════════════════════════════════════════════
   GALA WIELKIEGO FINAŁU (UROCZYSTE WRĘCZANIE ODZNAK NA ŻYWO NA TELEFONIE)
   ═══════════════════════════════════════════════════════════════════════════ */

.ceremony-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 12px 10px 24px 10px;
  box-sizing: border-box;
}

.ceremony-header {
  text-align: center;
  margin-bottom: 12px;
}

.ceremony-crown {
  font-size: 2.4rem;
  letter-spacing: 4px;
  filter: drop-shadow(2px 2px 0 #181824);
  animation: bounce 1.8s infinite ease-in-out;
}

.ceremony-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: #ffd23f;
  text-transform: uppercase;
  margin: 4px 0;
  text-shadow: 2.5px 2.5px 0 #181824;
}

.ceremony-sub {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  color: #d0cce6;
  text-shadow: 1px 1px 0 #181824;
  margin: 0;
}

/* Mini wizytówka gracza */
.ceremony-player-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: #251b4c;
  border: 2.5px solid #181824;
  border-radius: 999px;
  padding: 8px 16px;
  margin-bottom: 14px;
  box-shadow: 3px 3px 0 #0e091b;
  box-sizing: border-box;
}

.cpp-avatar {
  font-size: 2rem;
  display: flex;
  align-items: center;
  margin-right: 10px;
}

.cpp-info {
  flex: 1;
  text-align: left;
}

.cpp-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 1px 1px 0 #181824;
}

.cpp-score {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 900;
  color: #ffd23f;
  text-shadow: 1px 1px 0 #181824;
}

.cpp-rank {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 900;
  color: #181824;
  background: #ffd23f;
  border: 2px solid #181824;
  padding: 4px 12px;
  border-radius: 999px;
  box-shadow: 2px 2px 0 #0e091b;
  letter-spacing: 0.5px;
}

/* Scena główna odznaki */
.ceremony-stage {
  width: 100%;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.ceremony-waiting-box {
  width: 100%;
  background: #251b4c;
  border: 3.5px solid #181824;
  border-radius: 20px;
  box-shadow: 5px 5px 0 #0e091b;
  padding: 26px 16px;
  text-align: center;
  box-sizing: border-box;
}

.ceremony-spotlight {
  font-size: 3.2rem;
  line-height: 1;
  filter: drop-shadow(2px 2px 0 #181824);
  animation: bounce 1.8s infinite ease;
  margin-bottom: 10px;
}

.ceremony-waiting-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 900;
  color: #ffd23f;
  text-shadow: 1.5px 1.5px 0 #181824;
  margin-bottom: 6px;
}

.ceremony-waiting-desc {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: #d0cce6;
  line-height: 1.4;
  max-width: 320px;
  margin: 0 auto;
}

/* Karta odznaki w trakcie ceremonii */
.ceremony-card {
  width: 100%;
  box-sizing: border-box;
  background: #251b4c;
  border: 3.5px solid #181824;
  border-radius: 20px;
  padding: 18px 16px;
  text-align: center;
  box-shadow: 5px 5px 0 #0e091b;
  position: relative;
  overflow: hidden;
}

.ceremony-card.animate-pop-in {
  animation: popIn 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ceremony-card.animate-victory-pop {
  animation: victoryPop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ccc-progress {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 900;
  color: #ffd23f;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.ccc-icon {
  font-size: 3.8rem;
  margin-bottom: 6px;
  display: inline-block;
  line-height: 1;
  filter: drop-shadow(2.5px 2.5px 0 #181824);
  transition: transform 0.3s ease;
}

.ccc-icon.big-glow {
  transform: scale(1.15);
}

.ccc-category {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #181824;
  background: #ffd23f;
  border: 2px solid #181824;
  padding: 3px 12px;
  border-radius: 999px;
  box-shadow: 2px 2px 0 #0e091b;
  margin-bottom: 8px;
}

.ccc-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 900;
  color: #ffd23f;
  text-shadow: 2px 2px 0 #181824;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.ccc-desc {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 1px 1px 0 #181824;
  line-height: 1.4;
  margin-bottom: 14px;
}

/* Pudełko tajemnicy (Suspense Kto to taki) */
.ccc-mystery-box {
  background: #181032;
  border: 2.5px dashed #ffd23f;
  border-radius: 14px;
  padding: 12px;
  margin-top: 10px;
  box-shadow: 3px 3px 0 #0e091b;
  animation: pulse 1.5s infinite;
}

.mystery-q {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 900;
  color: #ffd23f;
  text-shadow: 1px 1px 0 #181824;
  margin-bottom: 2px;
}

.mystery-hint {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  color: #d0cce6;
}

/* Kryteria odznak w telefonie gracza */
.ccc-criteria-box {
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 210, 63, 0.4);
  border-radius: 12px;
  padding: 8px 12px;
  margin: 6px 0 10px;
  text-align: center;
}

.criteria-label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 900;
  color: #ffd23f;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 3px;
}

.criteria-body {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
}

.ccc-criteria-box-winner {
  background: rgba(0, 0, 0, 0.08);
  border: 1.5px solid rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  padding: 6px 12px;
  margin: 6px 0 8px;
}

.ccc-criteria-box-winner .criteria-body {
  color: #181824;
  font-size: 0.86rem;
  font-weight: 800;
}

.ccc-criteria-box-other {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 6px 10px;
  margin: 6px 0 8px;
}

.ccc-criteria-box-other .criteria-body {
  font-size: 0.82rem;
  color: #d0cce6;
}

.cwb-verdict {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  color: #ffd23f;
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 10px;
  border-radius: 8px;
  margin-top: 6px;
  display: inline-block;
}

.my-winner-banner .cwb-verdict {
  color: #ffd23f;
  background: rgba(255, 255, 255, 0.08);
}

/* Karta gdy wygrał TEN gracz */
.ceremony-card.is-my-award {
  border-color: #181824;
  background: #ffd23f;
  box-shadow: 6px 6px 0 #0e091b;
  color: #181824;
}

.ceremony-card.is-my-award .ccc-title,
.ceremony-card.is-my-award .ccc-desc {
  color: #181824;
  text-shadow: none;
}

.ccc-ribbon {
  background: #181824;
  color: #ffd23f;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 1.5px;
  padding: 6px 0;
  margin: -18px -16px 12px -16px;
  text-transform: uppercase;
  border-bottom: 2.5px solid #181824;
}

.my-winner-banner {
  background: #181824;
  border: 2.5px solid #181824;
  border-radius: 14px;
  padding: 12px;
  margin-top: 10px;
  box-shadow: 3px 3px 0 #0e091b;
}

.cwb-sparkle {
  font-size: 1.4rem;
  margin-bottom: 2px;
}

.cwb-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 900;
  color: #ffd23f;
  letter-spacing: 0.5px;
}

.cwb-sub {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
  margin-top: 2px;
}

/* Karta gdy wygrał inny gracz */
.other-winner-banner {
  background: #181032;
  border: 2.5px solid #181824;
  border-radius: 14px;
  padding: 10px 12px;
  margin-top: 10px;
  box-shadow: 3px 3px 0 #0e091b;
}

.cwb-label {
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 900;
  color: #ffd23f;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.cwb-winner-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #251b4c;
  border: 2px solid #181824;
  border-radius: 999px;
  padding: 5px 16px;
  margin: 4px 0;
  box-shadow: 2px 2px 0 #0e091b;
}

.cwb-av {
  font-size: 1.3rem;
  display: inline-flex;
  align-items: center;
}

.cwb-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 900;
  color: #ffffff;
}

.cwb-tag {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  color: #ffd23f;
}

.cwb-cheer {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: #d0cce6;
  margin-top: 4px;
}

/* Półka zdobytych odznak na dole */
.ceremony-shelf {
  width: 100%;
  background: #181032;
  border: 2.5px solid #181824;
  border-radius: 16px;
  padding: 10px 12px;
  margin-bottom: 14px;
  box-sizing: border-box;
  box-shadow: 3px 3px 0 #0e091b;
}

.ceremony-shelf-header {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 900;
  color: #ffd23f;
  letter-spacing: 1px;
  margin-bottom: 8px;
  text-align: left;
}

.ceremony-shelf-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.shelf-badge-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffd23f;
  border: 2px solid #181824;
  border-radius: 999px;
  color: #181824;
  font-family: var(--font-display);
  font-weight: 900;
  padding: 4px 12px;
  box-shadow: 2px 2px 0 #0e091b;
}

.sbi-icon {
  font-size: 1.1rem;
}

.sbi-title {
  font-size: 0.82rem;
  font-weight: 900;
  color: #181824;
}

/* Przycisk pominięcia ceremonii */
.ceremony-skip-btn {
  background: #251b4c;
  border: 2.5px solid #181824;
  color: #ffd23f;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  padding: 8px 18px;
  border-radius: 999px;
  box-shadow: 3px 3px 0 #0e091b;
  cursor: pointer;
  transition: transform 0.15s ease;
  margin-top: 4px;
}

.ceremony-skip-btn:active {
  transform: translateY(2px);
  box-shadow: 1px 1px 0 #0e091b;
}

/* Skrzynka zakończenia ceremonii */
.ceremony-complete-box {
  width: 100%;
  background: #251b4c;
  border: 3.5px solid #181824;
  border-radius: 20px;
  padding: 24px 16px;
  text-align: center;
  box-sizing: border-box;
  box-shadow: 5px 5px 0 #0e091b;
}

.ccb-icon {
  font-size: 2.8rem;
  line-height: 1;
  filter: drop-shadow(2px 2px 0 #181824);
  margin-bottom: 8px;
}

.ccb-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 900;
  color: #ffd23f;
  text-shadow: 1.5px 1.5px 0 #181824;
  margin-bottom: 6px;
}

.ccb-desc {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  color: #d0cce6;
  margin-bottom: 12px;
}

.ccb-trans {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: #ffd23f;
  font-weight: 900;
  letter-spacing: 0.5px;
}

@keyframes victoryPop {
  0% { transform: scale(0.7); opacity: 0; }
  60% { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); }
}

@keyframes pulseBorder {
  0% { border-color: rgba(255, 215, 0, 0.3); box-shadow: 0 0 0 rgba(255, 215, 0, 0); }
  100% { border-color: rgba(255, 215, 0, 0.8); box-shadow: 0 0 15px rgba(255, 215, 0, 0.35); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   EKRAN FINAŁOWY GRACZA (Jackbox Party Style)
   ═══════════════════════════════════════════════════════════════════════════ */

#player-final-trophy {
  font-size: 3.5rem;
  line-height: 1;
  filter: drop-shadow(2px 2px 0 #181824);
  margin-bottom: 4px;
}

#player-final-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: 1px;
  color: #ffd23f;
  text-shadow: 2.5px 2.5px 0 #181824;
  margin: 4px 0 10px;
}

#my-final-result {
  width: 100%;
  box-sizing: border-box;
  background: #251b4c;
  border: 3.5px solid #181824;
  border-radius: 20px;
  box-shadow: 5px 5px 0 #0e091b;
  padding: 16px;
  text-align: center;
  margin: 12px 0;
}

.my-badges-section {
  width: 100%;
  margin-bottom: 12px;
}

.my-badges-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
  padding: 0 4px;
}

.my-badges-title {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 900;
  color: #ffd23f;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 1px 1px 0 #181824;
}

.my-badges-hint {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: #d0cce6;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: 100%;
  margin-bottom: 12px;
}

.my-badges-carousel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
  padding: 4px 0 8px 0;
}

.my-badge-card {
  width: 100%;
  box-sizing: border-box;
  background: #251b4c;
  border: 3.5px solid #181824;
  border-radius: 18px;
  padding: 14px 16px;
  text-align: center;
  box-shadow: 4px 4px 0 #0e091b;
  position: relative;
  transition: transform 0.2s ease;
  animation: popIn 0.5s ease;
}

.my-badge-card.is-single {
  width: 100%;
}

.my-badge-card.is-new-award {
  border-color: #ffd23f;
  box-shadow: 5px 5px 0 #0e091b;
}

.mbc-icon {
  font-size: 2.8rem;
  line-height: 1;
  filter: drop-shadow(2px 2px 0 #181824);
  margin-bottom: 4px;
}

.mbc-category {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #181824;
  background: #ffd23f;
  border: 2px solid #181824;
  padding: 3px 12px;
  border-radius: 999px;
  box-shadow: 2px 2px 0 #0e091b;
  margin-bottom: 6px;
}

.mbc-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 900;
  color: #ffd23f;
  text-shadow: 1.5px 1.5px 0 #181824;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.mbc-desc {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  color: #d0cce6;
  line-height: 1.35;
}

.badge-empty-card {
  width: 100%;
  padding: 14px;
  text-align: center;
  background: #181032;
  border: 2.5px dashed #181824;
  border-radius: 16px;
  color: #d0cce6;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════════
   KARTA PODSUMOWANIA TURNIEJU DO UDOSTĘPNIENIA (SHAREABLE CARD)
   ═══════════════════════════════════════════════════════════════ */

.shareable-card-section {
  width: 100%;
  margin: 16px 0;
  padding: 18px 14px;
  text-align: center;
  background: #251b4c;
  border: 3.5px solid #181824;
  box-shadow: 5px 5px 0 #0e091b;
  border-radius: 24px;
  animation: fadeIn 0.6s ease;
}

.shareable-card-header {
  margin-bottom: 14px;
}

.shareable-card-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 900;
  color: #181824;
  background: #ffd23f;
  border: 2px solid #181824;
  padding: 4px 12px;
  border-radius: 999px;
  box-shadow: 2px 2px 0 #0e091b;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.shareable-card-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  color: #ffd23f;
  text-shadow: 2px 2px 0 #181824;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}

.shareable-card-sub {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: #d0cce6;
  line-height: 1.4;
  max-width: 90%;
  margin: 0 auto;
}

.shareable-card-preview-wrap {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 9 / 16;
  margin: 14px auto 6px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 5px 5px 0 #0e091b;
  border: 3.5px solid #181824;
  background: #fdfbf7;
  position: relative;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  touch-action: manipulation;
}

.shareable-card-hint {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  color: #ffd23f;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.shareable-card-loading {
  padding: 30px 16px;
  color: #181824;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
}

.shareable-card-spinner {
  font-size: 2.2rem;
  margin-bottom: 10px;
  animation: pulse 1.2s infinite;
}

.shareable-card-preview-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.25s ease;
}

.shareable-card-preview-img:active {
  transform: scale(0.99);
}

.shareable-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

.share-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: 0.3px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

#btn-download-card {
  background: #ffd23f !important;
  border: 3px solid #181824 !important;
  border-radius: 16px !important;
  color: #181824 !important;
  font-family: var(--font-display) !important;
  font-weight: 900 !important;
  box-shadow: 0 5px 0 #181824 !important;
  padding: 14px !important;
  cursor: pointer;
}

#btn-download-card:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #181824 !important;
}

#btn-share-card {
  background: #4ade80 !important;
  border: 3px solid #181824 !important;
  border-radius: 16px !important;
  color: #181824 !important;
  font-family: var(--font-display) !important;
  font-weight: 900 !important;
  box-shadow: 0 5px 0 #181824 !important;
  padding: 14px !important;
  cursor: pointer;
}

#btn-share-card:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #181824 !important;
}

/* Lightbox pełnego podglądu karty w HD */
.shareable-card-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(14, 9, 27, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.25s ease;
}

.shareable-card-lightbox-img {
  max-width: 92vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 6px 6px 0 #0e091b;
  border: 3.5px solid #181824;
}

.shareable-card-lightbox-close {
  margin-top: 14px;
  background: #ffd23f;
  border: 2.5px solid #181824;
  color: #181824;
  padding: 8px 24px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.95rem;
  box-shadow: 3px 3px 0 #0e091b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  touch-action: manipulation;
}

.shareable-card-lightbox-close:active {
  transform: translateY(2px);
  box-shadow: 1px 1px 0 #0e091b;
}

/* Dostosowanie dla wąskich ekranów (np. iPhone SE 375px/320px) */
@media (max-width: 380px) {
  .shareable-card-section {
    padding: 14px 10px;
  }
  .shareable-card-title {
    font-size: 1.18rem;
  }
  .shareable-card-sub {
    font-size: 0.78rem;
  }
  .shareable-card-preview-wrap {
    max-width: 270px;
  }
  .share-action-btn {
    font-size: 0.88rem;
    padding: 12px 8px;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   VA BANQUE (Konkurencja 10) – Mobile Styling
   ═══════════════════════════════════════════════════════════════════════════ */

.vb-bet-screen-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 16px 12px;
}

.vb-mobile-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.vb-mob-category {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 900;
  color: #ffd23f;
  text-shadow: 2px 2px 0 #181824;
  margin: 4px 0;
  line-height: 1.25;
}

.vb-mob-sub {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  color: #d0cce6;
  margin: 0;
  text-shadow: 1px 1px 0 #181824;
}

.vb-bet-card {
  background: #251b4c;
  border: 3.5px solid #181824;
  border-radius: 20px;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  box-shadow: 5px 5px 0 #0e091b;
}

.vb-bet-display {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  background: #191136;
  border: 3px solid #181824;
  border-radius: 16px;
  padding: 10px 24px;
  box-shadow: inset 3px 3px 0 rgba(0, 0, 0, 0.4);
}

.vb-bet-val {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 900;
  color: #ffd23f;
  line-height: 1;
  text-shadow: 3px 3px 0 #181824;
  font-variant-numeric: tabular-nums;
}

.vb-bet-unit {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 1.5px 1.5px 0 #181824;
  letter-spacing: 0.05em;
}

.vb-bet-payout {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
  color: #ffd23f;
  background: #191136;
  border: 2px solid #181824;
  padding: 8px 14px;
  border-radius: 14px;
  width: 100%;
  box-sizing: border-box;
  box-shadow: 2px 2px 0 #0e091b;
}

.vb-stepper {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.vb-step-btn {
  background: #ffd23f;
  border: 3px solid #181824;
  color: #181824;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  flex-shrink: 0;
  box-shadow: 0 4px 0 #181824;
}

.vb-step-btn:active {
  background: #ffd23f;
  color: #181824;
  transform: translateY(3px);
  box-shadow: 0 1px 0 #181824;
}

.vb-slider {
  flex: 1;
  accent-color: #ffd23f;
  height: 12px;
  border-radius: 6px;
  background: #191136;
  border: 2px solid #181824;
  cursor: pointer;
}

.vb-quick-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  width: 100%;
}

.vb-quick-btn {
  background: #392f58;
  border: 2.5px solid #181824;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 900;
  padding: 10px 4px;
  border-radius: 12px;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  text-align: center;
  box-shadow: 0 4px 0 #181824;
}

#vb-quick-pass {
  background: #ff4757;
  color: #ffffff;
}

#vb-quick-min {
  background: #2ed573;
  color: #181824;
}

#vb-quick-mid {
  background: #ffa502;
  color: #181824;
}

#vb-quick-max {
  background: #ffd23f;
  color: #181824;
}

.vb-quick-btn:active,
.vb-quick-btn.active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #181824;
  border-color: #181824;
}

.vb-limits-info {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: #d0cce6;
  text-align: center;
}

.vb-submit-btn {
  width: 100%;
  padding: 14px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 900;
  background: #ffd23f;
  color: #181824;
  border: 3.5px solid #181824;
  border-radius: 18px;
  box-shadow: 0 6px 0 #181824;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.vb-submit-btn:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 #181824;
}

.vb-pass-card {
  background: #251b4c;
  border: 3.5px solid #181824;
  border-radius: 22px;
  padding: 24px 18px;
  text-align: center;
  max-width: 400px;
  box-shadow: 6px 6px 0 #0e091b;
}

.vb-pass-card h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 2px 2px 0 #181824;
}

.vb-pass-icon {
  font-size: 3.5rem;
  margin-bottom: 12px;
  filter: drop-shadow(3px 3px 0 #181824);
}

.vb-pass-desc {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: #d0cce6;
  line-height: 1.4;
  margin: 10px 0;
  text-shadow: 1px 1px 0 #181824;
}

.vb-pass-cat {
  display: inline-block;
  background: #ffd23f;
  color: #181824;
  border: 3px solid #181824;
  padding: 8px 18px;
  border-radius: 14px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1rem;
  margin-top: 6px;
  box-shadow: 0 4px 0 #181824;
}

.vabanque-stake-badge {
  background: #ffd23f;
  border: 3px solid #181824;
  border-radius: 14px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 900;
  color: #181824;
  box-shadow: 0 4px 0 #181824;
}

/* Przycisk 50/50 w Va Banque */
.vb-5050-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  margin-bottom: 10px;
  border: 3px solid #181824;
  border-radius: 16px;
  background: #5352ed;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  box-shadow: 0 5px 0 #181824;
}
.vb-5050-btn:hover:not(:disabled) {
  background: #3742fa;
  transform: translateY(-2px);
  box-shadow: 0 7px 0 #181824;
}
.vb-5050-btn:active:not(:disabled) {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #181824;
}
.vb-5050-btn.used,
.vb-5050-btn:disabled {
  opacity: 0.55;
  cursor: default;
  border-color: #181824;
  background: #3b3552;
  color: #8f8ba3;
  box-shadow: 0 2px 0 #181824;
  transform: none;
}
.vb-5050-icon {
  font-size: 1.2rem;
}
.vb-5050-text {
  font-weight: 900;
  font-size: 0.95rem;
}
.vb-5050-cost {
  font-size: 0.8rem;
  font-weight: 700;
  opacity: 0.9;
}

/* Wyeliminowane odpowiedzi 50/50 */
.option-btn.eliminated-5050 {
  opacity: 0.2 !important;
  pointer-events: none !important;
  transform: scale(0.95);
  filter: grayscale(0.8);
  text-decoration: line-through;
  transition: all 0.4s ease;
}

/* ════════════════════════════════════════════════════
   FAMILIADA – STYLES DLA KONTROLERA MOBILNEGO
   ════════════════════════════════════════════════════ */
.fam-screen-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
  padding-bottom: 20px;
  min-height: 100%;
  justify-content: flex-start;
}

.fam-instruction {
  font-family: var(--font-display), 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffd23f;
  text-shadow: 1px 1px 0 #181824;
  margin-top: 6px;
  line-height: 1.35;
}

.fam-inputs-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.fam-inputs-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.fam-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  position: relative;
  transition: transform 0.15s ease;
}

.fam-row-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #ffd23f;
  border: 3px solid #181824;
  color: #181824;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.1rem;
  box-shadow: 2px 2px 0 #0e091b;
  transition: background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

/* Wskaźnik aktywnego pola / wiersza Familiady */
.fam-input-row.is-active .fam-row-num,
.fam-input-row:has(.fam-input:focus) .fam-row-num,
.fam-input-row:has(.gkb-active-field) .fam-row-num {
  background: #00f2fe !important;
  color: #181824 !important;
  border-color: #181824 !important;
  box-shadow: 0 0 14px rgba(0, 242, 254, 0.85), 3px 3px 0 #0e091b !important;
  transform: scale(1.14);
  animation: famActiveNumPulse 1.6s ease-in-out infinite;
}

@keyframes famActiveNumPulse {
  0%, 100% {
    transform: scale(1.14);
    box-shadow: 0 0 14px rgba(0, 242, 254, 0.85), 3px 3px 0 #0e091b;
  }
  50% {
    transform: scale(1.18);
    box-shadow: 0 0 20px rgba(0, 242, 254, 1), 3px 3px 0 #0e091b;
  }
}

/* Pływająca ikona aktywnego pisania na wierszu */
.fam-input-row.is-active::after,
.fam-input-row:has(.fam-input:focus)::after,
.fam-input-row:has(.gkb-active-field)::after {
  content: '✍️';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.15rem;
  pointer-events: none;
  animation: famCaretBounce 0.85s ease-in-out infinite alternate;
  z-index: 5;
}

@keyframes famCaretBounce {
  0% { transform: translateY(-50%) scale(1); opacity: 0.85; }
  100% { transform: translateY(calc(-50% - 3px)) scale(1.18); opacity: 1; }
}

.fam-input-row .form-input.fam-input,
.fam-input {
  flex: 1;
  min-height: 46px;
  padding: 10px 14px;
  font-family: var(--font-display), 'Fredoka', sans-serif !important;
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  background: #ffffff !important;
  border: 3px solid #181824 !important;
  border-radius: 14px !important;
  box-shadow: 3px 3px 0 #0e091b !important;
  color: #181824 !important;
  caret-color: #181824 !important;
  transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s, padding-right 0.15s;
  touch-action: manipulation;
}

.fam-input-row .form-input.fam-input::placeholder,
.fam-input::placeholder {
  color: #7a708c !important;
  font-family: var(--font-display), 'Fredoka', sans-serif !important;
  font-weight: 700 !important;
  opacity: 0.85;
}

/* Pełne podświetlenie aktywnego pola (focus lub zaznaczenie przez GameKeyboard) */
.fam-input-row.is-active .form-input.fam-input,
.fam-input-row .form-input.fam-input.gkb-active-field,
.fam-input-row .form-input.fam-input:focus,
.fam-input.gkb-active-field,
.fam-input:focus {
  background: #fffdf0 !important;
  border-color: #ffd23f !important;
  border-width: 3.5px !important;
  box-shadow: 0 0 0 3.5px rgba(255, 210, 63, 0.45), 4px 4px 0 #0e091b !important;
  color: #181824 !important;
  caret-color: #181824 !important;
  padding-right: 42px !important;
  outline: none !important;
}

.fam-input:disabled {
  background: #e2e8f0 !important;
  color: #64748b !important;
  border-color: #3b3552 !important;
}

.fam-submit-btn {
  min-height: 50px;
  background: #ffd23f !important;
  color: #181824 !important;
  border: 3.5px solid #181824 !important;
  border-radius: 18px !important;
  box-shadow: 0 6px 0 #181824 !important;
  font-family: var(--font-display) !important;
  font-weight: 900 !important;
  font-size: 1.15rem !important;
  letter-spacing: 0.5px;
  margin-top: 6px;
  touch-action: manipulation;
}
.fam-submit-btn:active {
  transform: translateY(4px) !important;
  box-shadow: 0 2px 0 #181824 !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   ADAPTACJE PLATFORMOWE (SMARTFON VS PC DESKTOP VS TABLET)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── 1. Fizyczna haptyka i mikrointerakcje dotykowe (Mobile Touch) ────────── */
button,
.btn,
.option-btn,
.tf-btn,
.buzz-button,
.avatar-btn {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

button:active,
.btn:active,
.avatar-btn:active {
  transform: scale(0.96) !important;
  transition: transform 0.08s cubic-bezier(0.2, 0.8, 0.4, 1) !important;
}

/* ── 2. Ostrzeżenie o orientacji poziomej na smartfonie ───────────────────── */
.player-orientation-overlay {
  display: none;
}

@media (orientation: landscape) and (max-height: 520px) {
  html.device-mobile .player-orientation-overlay,
  body.device-mobile .player-orientation-overlay,
  html.is-small-landscape .player-orientation-overlay {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(8, 12, 22, 0.95);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
  }
}

.orientation-notice-box {
  background: #24143a;
  border: 3.5px solid #181824;
  border-radius: 20px;
  padding: 24px 28px;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  box-shadow: 6px 6px 0 #0e091b;
  color: #ffffff;
}

.orientation-icon-wrapper {
  position: relative;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orientation-phone-icon {
  font-size: 2.2rem;
  animation: phoneRotateAnim 2.4s infinite ease-in-out;
}

.orientation-turn-arrow {
  position: absolute;
  top: -2px;
  right: -2px;
  font-size: 1.3rem;
  color: #ffd23f;
  animation: arrowSpinAnim 2.4s infinite linear;
}

@keyframes phoneRotateAnim {
  0%, 15% { transform: rotate(90deg); }
  50%, 85% { transform: rotate(0deg); }
  100% { transform: rotate(90deg); }
}

@keyframes arrowSpinAnim {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(-360deg); }
}

.orientation-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 900;
  color: #ffd23f;
  text-shadow: 0 2px 0 #181824;
}

.orientation-desc {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #cbd5e1;
}

/* ── 3. Etykiety klawiszy PC (ukryte domyślnie na telefonie) ───────────────── */
.pc-key-hint {
  display: none;
}

/* ── 4. Pasek nagłówkowy gracza na PC ───────────────────────────────────────── */
.player-desktop-bar {
  display: none;
}

/* ── 5. Tryb PC Desktop (Ramka Smartfona & Klawiatura) ───────────────────────── */
@media (min-width: 768px) {
  html.device-desktop .player-desktop-bar,
  body.device-desktop .player-desktop-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 50px;
    width: 100%;
    padding: 0 24px;
    background: rgba(10, 16, 26, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    flex-shrink: 0;
    user-select: none;
  }

  .desktop-bar-left {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .desktop-indicator-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 10px #22c55e;
  }

  .desktop-bar-title {
    font-weight: 800;
    font-size: 0.95rem;
    color: #ffffff;
    letter-spacing: 0.5px;
  }

  .desktop-badge-pill {
    padding: 2px 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent, #ffd700);
  }

  .desktop-bar-shortcuts {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: 600;
  }

  .desktop-key-hint {
    display: inline-flex;
    align-items: center;
    gap: 4px;
  }

  .desktop-key-hint kbd {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 4px;
    padding: 1px 6px;
    font-size: 0.75rem;
    font-family: inherit;
    font-weight: 800;
    color: #ffffff;
    box-shadow: 0 1px 2px rgba(0,0,0,0.4);
  }

  .btn-desktop-frame-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 5px 12px;
    color: #e2e8f0;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .btn-desktop-frame-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent, #ffd700);
    color: #ffffff;
    transform: translateY(-1px);
  }

  /* Stylistyka obudowy telefonu na ekranie PC (Domyślny Phone Shell) */
  html.device-desktop body,
  body.device-desktop {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background: radial-gradient(circle at 50% 25%, rgba(30, 41, 59, 0.6) 0%, rgba(5, 10, 24, 0.98) 100%);
    overflow-x: hidden;
  }

  html.device-desktop .player-app-shell,
  body.device-desktop .player-app-shell {
    margin: auto 0;
    width: min(430px, 92vw);
    height: min(870px, calc(100vh - 74px));
    border-radius: 46px;
    border: 11px solid #1a2233;
    box-shadow: 0 25px 65px -10px rgba(0, 0, 0, 0.85), 0 0 45px rgba(223, 177, 91, 0.2);
    overflow: hidden;
    position: relative;
    background: var(--gradient-bg);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  html.device-desktop .phone-casing-notch,
  body.device-desktop .phone-casing-notch {
    display: flex;
    justify-content: center;
    padding-top: 10px;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    pointer-events: none;
  }

  .phone-dynamic-island {
    width: 120px;
    height: 26px;
    background: #000000;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    box-shadow: inset 0 0 2px rgba(255, 255, 255, 0.2);
  }

  .notch-speaker {
    width: 38px;
    height: 3.5px;
    background: #334155;
    border-radius: 2px;
  }

  .notch-camera {
    width: 9px;
    height: 9px;
    background: #0f172a;
    border: 1.5px solid #1e293b;
    border-radius: 50%;
    box-shadow: inset 0 0 3px #38bdf8;
  }

  /* Pokaż etykiety klawiszy PC na przyciskach */
  html.device-desktop .pc-key-hint,
  body.device-desktop .pc-key-hint {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--accent, #ffd700);
    font-family: monospace;
    font-size: 0.8rem;
    font-weight: 800;
    margin-left: auto;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  }

  .buzz-pc-hint {
    margin-top: 8px;
    font-size: 0.9rem;
    padding: 3px 10px;
  }

  /* Tryb rozszerzonego okna na PC (Wide Mode) */
  body.desktop-wide-view .player-app-shell {
    width: min(840px, 94vw);
    height: calc(100vh - 66px);
    border-radius: 20px;
    border-width: 2px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  }

  body.desktop-wide-view .phone-casing-notch {
    display: none;
  }
}

/* ── 6. Kompaktowe smartfony (iPhone SE, małe Androidy <= 380px i <= 680px) ── */
@media (max-width: 380px) {
  .screen-inner {
    padding: 12px 10px 16px;
    gap: 12px;
  }
  .game-logo {
    padding: 2px 0;
  }
  .logo-icon {
    font-size: 2rem;
  }
  .logo-title {
    font-size: 1.35rem;
  }
  .avatar-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 6px !important;
  }
  .avatar-btn {
    font-size: 1.7rem !important;
    padding: 6px 4px !important;
  }
  .btn-lg {
    min-height: 48px !important;
    font-size: 1rem !important;
  }
}

@media (max-height: 680px) {
  .screen-inner {
    padding: 10px 12px 14px;
    gap: 10px;
  }
  .join-card {
    gap: 10px;
  }
  .buzz-button {
    width: clamp(140px, 28vh, 180px);
    height: clamp(140px, 28vh, 180px);
  }
  .buzz-inner {
    font-size: 1.4rem;
  }
}

/* ---- Animacja dodawania / naliczania punktów na telefonie ---- */
.score-bump {
  animation: scoreBumpPop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  color: #10b981 !important;
  text-shadow: 0 0 16px rgba(16, 185, 129, 0.45);
}

@keyframes scoreBumpPop {
  0% { transform: scale(1); }
  40% { transform: scale(1.22); }
  100% { transform: scale(1); }
}

.score-gain-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  margin-left: 8px;
  animation: scoreGainPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  vertical-align: middle;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.score-gain-pill.positive {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
}

.score-gain-pill.loss {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
}

.score-gain-pill.absorbing {
  opacity: 0;
  transform: scale(0.65) translateY(-6px);
}

@keyframes scoreGainPop {
  0% { transform: scale(0.4); opacity: 0; }
  60% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

/* ══════════════════════════════════════════════════════════════
   PILOT GOSPODARZA (HOST REMOTE) NA TELEFONIE
   ══════════════════════════════════════════════════════════════ */
.host-remote-panel {
  background: #201742;
  border: 3.5px solid #181824;
  border-radius: 20px;
  padding: 16px 14px;
  margin-top: 18px;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
  box-shadow: 6px 6px 0 #0e091b;
}

.host-remote-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.host-remote-crown {
  font-size: 1.35rem;
  line-height: 1;
  filter: drop-shadow(2px 2px 0 #181824);
}

.host-remote-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  margin: 0;
  color: #ffca28;
  text-shadow: 2px 2px 0 #181824;
}

.host-remote-desc {
  font-family: 'Outfit', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 14px 0;
  line-height: 1.35;
}

.host-step-section {
  margin-top: 14px;
  width: 100%;
}

.host-step-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 0.86rem;
  color: #ffffff;
  margin-bottom: 8px;
}

.host-step-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffca28;
  color: #181824;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1.5px solid #181824;
}

/* Krok 1: Przełącznik trybów (Pill buttons) */
.host-mode-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  width: 100%;
  box-sizing: border-box;
}

.host-mode-pill {
  background: #140d2b;
  border: 2.5px solid #181824;
  border-radius: 14px;
  padding: 8px 4px 7px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  transition: all 0.15s ease;
  min-height: 56px;
  box-sizing: border-box;
  box-shadow: 3px 3px 0 #0e091b;
}

.host-mode-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.host-mode-title {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 900;
  color: #ffffff;
  white-space: nowrap;
}

.host-mode-badge {
  font-family: 'Outfit', sans-serif;
  font-size: 0.65rem;
  font-weight: 900;
  color: #2ed573;
}

.host-mode-pill.active {
  background: #ffca28;
  border-color: #181824;
  box-shadow: 4px 4px 0 #0e091b;
  transform: translateY(-2px);
}

.host-mode-pill.active .host-mode-title {
  color: #181824;
  font-weight: 900;
}

.host-mode-pill.active .host-mode-badge {
  color: #181824;
  font-weight: 900;
}

.host-mode-pill:active {
  transform: translateY(2px);
  box-shadow: 1px 1px 0 #0e091b;
}

.host-mode-description {
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffffff;
  background: #140d2b;
  border-radius: 10px;
  border: 2px solid #181824;
  border-left: 5px solid #ffca28;
  padding: 7px 10px;
  margin-top: 6px;
  line-height: 1.35;
}

/* Krok 2A: Dropdown wyboru pojedynczej gry */
.host-dropdown-wrapper {
  position: relative;
  width: 100%;
}

.host-dropdown-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #140d2b;
  border: 2.5px solid #181824;
  border-radius: 14px;
  box-sizing: border-box;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
  box-shadow: 3px 3px 0 #0e091b;
}

.host-dropdown-trigger:hover,
.host-dropdown-trigger.open {
  border-color: #ffca28;
}

.host-dropdown-current {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.host-current-icon {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
}

.host-current-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.host-current-name {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 900;
  color: #ffca28;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.host-current-desc {
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.host-dropdown-arrow {
  font-size: 0.75rem;
  color: #ffca28;
  font-weight: 900;
  margin-left: 8px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.host-dropdown-trigger.open .host-dropdown-arrow {
  transform: rotate(180deg);
}

.host-dropdown-menu {
  margin-top: 6px;
  background: #201742;
  border: 3px solid #181824;
  border-radius: 14px;
  box-shadow: 6px 6px 0 #0e091b;
  max-height: 230px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 4px;
  box-sizing: border-box;
}

.host-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background 0.12s ease;
  margin-bottom: 2px;
}

.host-dropdown-item:hover,
.host-dropdown-item:active {
  background: #2b1f58;
}

.host-dropdown-item.selected {
  background: #ffca28 !important;
  border-color: #181824 !important;
}

.host-dropdown-item.selected .host-item-name {
  color: #181824 !important;
}

.host-dropdown-item.selected .host-item-desc {
  color: rgba(24, 24, 36, 0.8) !important;
}

.host-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.host-item-icon {
  font-size: 1.3rem;
  line-height: 1;
  flex-shrink: 0;
}

.host-item-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.host-item-name {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 900;
  color: #ffffff;
}

.host-item-desc {
  font-family: 'Outfit', sans-serif;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 210px;
}

.host-item-check {
  font-size: 0.88rem;
  font-weight: 900;
  color: transparent;
  margin-left: 6px;
  flex-shrink: 0;
}

.host-dropdown-item.selected .host-item-check {
  color: #181824;
}

/* Krok 2B: Custom multi-selection */
.host-custom-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.host-custom-count-badge {
  font-family: 'Outfit', sans-serif;
  font-size: 0.76rem;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 999px;
  background: #ffca28;
  color: #181824;
  border: 1.5px solid #181824;
  box-shadow: 1px 1px 0 #0e091b;
}

.host-custom-actions {
  display: flex;
  gap: 5px;
}

.host-action-btn {
  background: #140d2b;
  border: 1.5px solid #181824;
  border-radius: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 4px 8px;
  color: #ffffff;
  cursor: pointer;
  box-shadow: 2px 2px 0 #0e091b;
  transition: all 0.1s ease;
}

.host-action-btn:hover {
  background: #221545;
}

.host-action-btn:active {
  transform: translateY(1px);
  box-shadow: 0 0 0 #0e091b;
}

.host-custom-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 230px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 2px 1px;
}

.host-custom-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  background: #140d2b;
  border: 2px solid #181824;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.12s ease;
  user-select: none;
  box-shadow: 2px 2px 0 #0e091b;
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
}

.host-custom-item.checked {
  background: #1b2e28;
  border-color: #2ed573;
}

.host-custom-checkbox {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid #181824;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: transparent;
  flex-shrink: 0;
  margin-left: 8px;
  transition: all 0.12s ease;
}

.host-custom-item.checked .host-custom-checkbox {
  background: #2ed573;
  border-color: #181824;
  color: #181824;
  font-weight: 900;
}

/* Przycisk Start & Status */
.host-launch-wrap {
  margin-top: 16px;
  width: 100%;
}

.btn-host-start {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 16px;
  width: 100%;
  box-sizing: border-box;
  background: #2ed573;
  color: #181824;
  border: 3px solid #181824;
  box-shadow: 0 5px 0 #181824, 0 8px 16px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.btn-host-start:hover {
  background: #26af5f;
  transform: translateY(-2px);
  box-shadow: 0 7px 0 #181824, 0 10px 18px rgba(0, 0, 0, 0.4);
}

.btn-host-start:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 #181824;
}

.btn-host-start-icon {
  font-size: 1.35rem;
  line-height: 1;
}

.btn-host-start-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.btn-host-start-main {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  line-height: 1.15;
}

.btn-host-start-sub {
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  opacity: 0.9;
  line-height: 1.15;
}

.host-players-readiness {
  margin-top: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  color: #ffffff;
  text-align: center;
}

.host-start-status {
  margin-top: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  color: #ff4757;
  background: rgba(255, 71, 87, 0.15);
  border: 1.5px solid #ff4757;
  border-radius: 8px;
  padding: 6px 10px;
  text-align: center;
}

/* ═══════════════════════════════════════════════════════
   PAUZA KOLEJKOWA DLA GRACZA / HOSTA
   ═══════════════════════════════════════════════════════ */
.player-floating-pause-wrap {
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 1000;
}

.btn-player-pause {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #251b4c;
  border: 2.5px solid #181824;
  border-radius: 999px;
  color: #ffd23f;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 3px 3px 0 #0e091b;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.btn-player-pause:hover {
  transform: translateY(-2px);
  background: #2f235e;
}

.btn-player-pause:active {
  transform: translateY(2px);
  box-shadow: 1px 1px 0 #0e091b;
}

.btn-player-pause.is-scheduled {
  background: #ff4757;
  border-color: #181824;
  color: #ffffff;
  animation: pulseSchedule 2s infinite ease-in-out;
}

@keyframes pulseSchedule {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.player-pause-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(15, 10, 30, 0.94);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease-out;
}

.player-pause-card {
  max-width: 420px;
  width: 100%;
  background: #251b4c;
  border: 3.5px solid #181824;
  border-radius: 24px;
  padding: 28px 24px;
  text-align: center;
  box-shadow: 6px 6px 0 #0e091b;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.player-pause-icon {
  font-size: 3.5rem;
  line-height: 1;
  filter: drop-shadow(2px 2px 0 #181824);
}

.player-pause-badge {
  background: #ffd23f;
  border: 2px solid #181824;
  color: #181824;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 1.5px;
  padding: 4px 14px;
  border-radius: 999px;
  box-shadow: 2px 2px 0 #0e091b;
  text-transform: uppercase;
}

.player-pause-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 2px 2px 0 #181824;
  margin: 0;
}

.player-pause-desc {
  font-size: 0.95rem;
  color: #cbd5e1;
  font-weight: 600;
  margin: 0;
  line-height: 1.45;
}

.player-pause-host-ctrl {
  width: 100%;
  margin-top: 8px;
}

.btn-player-resume-btn {
  padding: 16px 20px;
  font-size: 1.05rem;
  font-family: var(--font-display);
  font-weight: 900;
  background: #2ed573 !important;
  color: #181824 !important;
  border: 3px solid #181824 !important;
  border-radius: 16px;
  box-shadow: 0 5px 0 #181824 !important;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.btn-player-resume-btn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #181824 !important;
}

.player-pause-waiting-msg {
  width: 100%;
  margin-top: 4px;
}

.player-pause-waiting-text {
  font-size: 0.88rem;
  font-weight: 700;
  color: #cbd5e1;
  margin: 0;
}

/* ════════════════════════════════════════════════════
   EKRAN POWITANIA PROWADZĄCEGO (SMARTFON)
   ════════════════════════════════════════════════════ */

.player-welcome-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  padding: 1.5rem 1rem;
  text-align: center;
}

.player-welcome-icon-wrap {
  position: relative;
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffd23f;
  border: 3.5px solid #181824;
  border-radius: 50%;
  box-shadow: 4px 4px 0 #0e091b;
  margin-top: 0.5rem;
}

.player-welcome-icon {
  font-size: 2.8rem;
  filter: drop-shadow(2px 2px 0 #181824);
}

.player-welcome-pulse-ring {
  display: none;
}

.player-welcome-title {
  font-size: 1.7rem;
  font-family: var(--font-display);
  font-weight: 900;
  color: #ffffff;
  margin: 0;
  text-shadow: 3px 3px 0 #181824;
}

.player-welcome-host {
  font-size: 1.1rem;
  font-family: var(--font-display);
  color: #ffd23f;
  font-weight: 900;
  background: #251b4c;
  padding: 0.45rem 1.4rem;
  border-radius: 20px;
  border: 2.5px solid #181824;
  box-shadow: 3px 3px 0 #0e091b;
  text-shadow: 1px 1px 0 #181824;
}

.player-welcome-desc {
  font-size: 0.95rem;
  color: #cbd5e1;
  font-weight: 600;
  line-height: 1.5;
  margin: 0;
  max-width: 320px;
}

.player-welcome-timer {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1.05rem;
  font-weight: 800;
  font-family: var(--font-display);
  color: #cbd5e1;
  margin-top: 0.4rem;
}

.player-welcome-timer-num {
  font-size: 1.4rem;
  font-weight: 900;
  font-family: var(--font-display);
  color: #ffd23f;
  text-shadow: 2px 2px 0 #181824;
}

.player-welcome-timer-bar-wrap {
  width: 100%;
  max-width: 280px;
  height: 12px;
  background: #160f2e;
  border-radius: 999px;
  overflow: hidden;
  border: 2.5px solid #181824;
  box-shadow: 2px 2px 0 #0e091b;
}

.player-welcome-timer-bar {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #ffd23f, #2ed573);
  border-radius: 999px;
  transition: width 0.2s linear;
}

.player-welcome-status {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #251b4c;
  border: 2.5px solid #181824;
  box-shadow: 3px 3px 0 #0e091b;
  padding: 0.5rem 1.2rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-family: var(--font-display);
  font-weight: 800;
  color: #38bdf8;
  text-shadow: 1px 1px 0 #181824;
  margin-top: 0.4rem;
}

.player-welcome-dot {
  width: 12px;
  height: 12px;
  background: #2ed573;
  border: 50%;
  border: 2px solid #181824;
  animation: pulse 1.5s infinite;
}

/* =============================================================================
   TRYB PEŁNOEKRANOWY NA SMARTFONIE (FULLSCREEN BEZ PASKA PRZEGLĄDARKI)
   ============================================================================= */
.player-fullscreen-wrap {
  position: fixed;
  top: calc(10px + env(safe-area-inset-top, 0px));
  right: 12px;
  z-index: 998;
  display: flex;
  align-items: center;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* W widoku symulatora desktopowego PC pozycjonuj wewnątrz obudowy telefonu */
html.device-desktop .player-fullscreen-wrap,
body.device-desktop .player-fullscreen-wrap {
  position: absolute;
  top: 14px;
  right: 14px;
}

.btn-player-fullscreen {
  background: #231647;
  border: 2px solid #ffd23f;
  border-radius: 999px;
  color: #ffd23f;
  padding: 5px 12px;
  font-size: 0.8rem;
  font-weight: 800;
  font-family: var(--font-display);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 3px 0 #181824, 0 4px 12px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.btn-player-fullscreen:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #181824;
  background: #342066;
}

.player-fs-icon {
  font-size: 0.95rem;
  line-height: 1;
}

/* Stan gdy pełny ekran jest aktywny (dyskretny tryb w rogu) */
.player-fullscreen-wrap.is-fullscreen .btn-player-fullscreen {
  background: rgba(35, 22, 71, 0.6);
  border-color: rgba(255, 210, 63, 0.4);
  color: rgba(255, 210, 63, 0.85);
  padding: 4px 8px;
  font-size: 0.72rem;
  backdrop-filter: blur(4px);
  opacity: 0.75;
}

.player-fullscreen-wrap.is-fullscreen .btn-player-fullscreen:hover,
.player-fullscreen-wrap.is-fullscreen .btn-player-fullscreen:active {
  opacity: 1;
  background: #231647;
  border-color: #ffd23f;
  color: #ffd23f;
}

/* Gdy otwarta jest klawiatura ekranowa, ukryj przycisk pełnego ekranu, aby nie zasłaniał podglądu */
#player-app-shell.keyboard-open .player-fullscreen-wrap {
  display: none !important;
}

/* Reguły natywnego pseudoelementu :fullscreen dla przeglądarki */
:fullscreen,
:-webkit-full-screen {
  width: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
  background: var(--gradient-bg, #120d26) !important;
}

:fullscreen body,
:-webkit-full-screen body {
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  background: var(--gradient-bg, #120d26) !important;
}

:fullscreen .player-app-shell,
:-webkit-full-screen .player-app-shell {
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-width: 100% !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  margin: 0 !important;
}

:fullscreen .phone-casing-notch,
:-webkit-full-screen .phone-casing-notch {
  display: none !important;
}







