    :root {
      --bg: #0b0f19;
      --surface-1: #1a2235;
      --surface-2: #0f172a;
      --surface-3: #1e293b;
      --card-bg: rgba(26, 34, 53, 0.95);
      --primary: #ff6b00;
      --primary-strong: #ea580c;
      --primary-glow: rgba(255, 107, 0, 0.35);
      --secondary: #6366f1;
      --text: #ffffff;
      --text-muted: #94a3b8;
      --success: #10b981;
      --danger: #ef4444;
      --border: rgba(255, 255, 255, 0.08);
      --shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    }

    body.light-theme {
      --bg: #f1f5f9;
      --surface-1: #ffffff;
      --surface-2: #f8fafc;
      --surface-3: #e2e8f0;
      --card-bg: rgba(255, 255, 255, 0.96);
      --text: #0f172a;
      --text-muted: #64748b;
      --border: rgba(15, 23, 42, 0.12);
      --primary-glow: rgba(234, 88, 12, 0.22);
      --shadow: 0 15px 35px rgba(15, 23, 42, 0.14);
      background: radial-gradient(circle at top, #e2e8f0 0%, #cbd5e1 70%) !important;
    }
    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
      font-family: "Trebuchet MS", "Segoe UI", sans-serif;
      -webkit-tap-highlight-color: transparent;
      touch-action: manipulation;
    }

    html, body {
      touch-action: manipulation;
    }

    body {
      background: radial-gradient(circle at top, #1e1b4b 0%, var(--bg) 70%);
      color: var(--text);
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
      align-items: center;
      padding: 16px;
      overflow-x: hidden;
      position: relative;
    }

    .top-action-btn {
      position: absolute;
      top: 16px;
      z-index: 999;
      background: var(--card-bg);
      border: 1.5px solid var(--border);
      width: 42px;
      height: 42px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      font-size: 1.2rem;
      box-shadow: 0 4px 12px rgba(0,0,0,0.25);
      opacity: 0.75;
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      transition: transform 0.2s ease, opacity 0.2s ease;
      user-select: none;
    }

    .top-action-btn:hover {
      opacity: 1;
      transform: scale(1.06);
    }

    .top-action-btn:active {
      transform: scale(0.92);
    }

    #sound-toggle-btn {
      left: 16px;
    }

    #theme-toggle-btn {
      right: 16px;
    }

    .game-container {
      width: 100%;
      max-width: 440px;
      position: relative;
      margin-top: 16px;
    }

    .screen {
      display: none;
      flex-direction: column;
      gap: 16px;
    }

    .screen.active {
      display: flex;
    }

    .brand-header {
      text-align: center;
      margin-bottom: 4px;
    }

    .game-title {
      font-size: 2.2rem;
      font-weight: 900;
      background: linear-gradient(135deg, #ff8a00 0%, #ff5100 100%);
      background-clip: text;
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      letter-spacing: -0.5px;
    }

    .subtitle {
      color: var(--text-muted);
      font-size: 0.9rem;
      margin-top: 4px;
    }

    .card {
      background: var(--card-bg);
      border: 1px solid var(--border);
      padding: 20px;
      border-radius: 20px;
      box-shadow: var(--shadow);
      display: flex;
      flex-direction: column;
      gap: 14px;
    }

    label {
      font-size: 0.82rem;
      font-weight: 600;
      color: #cbd5e1;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    input, select, textarea {
      width: 100%;
      padding: 13px;
      border-radius: 12px;
      background: var(--surface-2);
      border: 1.5px solid #334155;
      color: #fff;
      font-size: 1rem;
      outline: none;
      transition: all 0.2s ease;
      cursor: pointer;
    }

    textarea {
      resize: none;
      height: 90px;
    }

    select {
      appearance: none;
      -webkit-appearance: none;
      background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff6b00' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
      background-repeat: no-repeat;
      background-position: right 14px center;
      background-size: 16px;
      font-weight: 600;
    }

    select option {
      background: #0f172a;
      color: #fff;
      padding: 10px;
    }

    input:focus, select:focus, textarea:focus {
      border-color: var(--primary);
      box-shadow: 0 0 15px var(--primary-glow);
    }

    button, [role="button"], .mode-btn, .lobby-tab-btn {
      -webkit-tap-highlight-color: transparent;
    }

    button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible,
    [role="button"]:focus-visible, .mode-btn:focus-visible, .lobby-tab-btn:focus-visible {
      outline: 3px solid rgba(56, 189, 248, 0.75);
      outline-offset: 3px;
    }

    .tab-box {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .option-group {
      display: flex;
      flex-direction: column;
      gap: 5px;
    }

    .option-label {
      font-size: 0.76rem;
      color: #94a3b8;
      font-weight: 700;
      text-transform: uppercase;
    }

    .mode-selector {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 6px;
    }

    .mode-btn {
      padding: 10px 4px;
      border-radius: 12px;
      border: 2px solid #334155;
      background: var(--surface-2);
      color: var(--text-muted);
      font-weight: 700;
      font-size: 0.78rem;
      cursor: pointer;
      text-align: center;
      transition: all 0.2s ease;
    }

    .mode-btn.active {
      border-color: var(--primary);
      color: #fff;
      background: rgba(255, 107, 0, 0.15);
      box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.08);
    }

    .btn {
      width: 100%;
      padding: 14px;
      border-radius: 12px;
      border: none;
      font-size: 1rem;
      font-weight: 800;
      cursor: pointer;
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 8px;
      transition: transform 0.1s ease, filter 0.15s ease;
    }

    .btn:active {
      transform: scale(0.97);
    }

    .btn-primary {
      background: linear-gradient(135deg, #ff7a00, #ff5100);
      color: #fff;
      box-shadow: 0 6px 20px var(--primary-glow);
    }

    .btn-secondary {
      background: var(--surface-3);
      color: var(--text);
      border: 1px solid var(--border);
    }

    .btn-start {
      background: linear-gradient(135deg, #10b981, #059669);
      color: #fff;
      font-size: 1.15rem;
      box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
    }

    .btn-danger-outline {
      background: rgba(239, 68, 68, 0.12);
      border: 1.5px solid #ef4444;
      color: #fca5a5;
      font-size: 0.88rem;
      padding: 10px 14px;
      border-radius: 10px;
      cursor: pointer;
      font-weight: 700;
      transition: all 0.2s ease;
    }

    .btn-danger-outline:hover {
      background: #ef4444;
      color: #fff;
    }

    .btn-submit {
      background: var(--primary);
      color: #fff;
      padding: 0 24px;
      white-space: nowrap;
    }

    .divider {
      display: flex;
      align-items: center;
      text-align: center;
      color: #64748b;
      font-size: 0.75rem;
      font-weight: 700;
      margin: 2px 0;
    }

    .divider::before, .divider::after {
      content: '';
      flex: 1;
      border-bottom: 1px solid #334155;
    }

    .divider span { padding: 0 12px; }

    .room-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 0 4px;
    }

    .badge {
      background: #1e293b;
      border: 1px solid var(--border);
      color: #38bdf8;
      padding: 6px 14px;
      border-radius: 20px;
      font-size: 0.85rem;
      font-weight: 700;
    }

    .room-rules-badge {
      display: flex;
      gap: 6px;
      font-size: 0.76rem;
      color: #94a3b8;
    }

    .room-rules-badge span {
      background: #0f172a;
      border: 1px solid var(--border);
      padding: 3px 8px;
      border-radius: 8px;
    }

    .player-list-card ul {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .player-list-card li {
      background: #0f172a;
      border: 1px solid var(--border);
      padding: 10px 14px;
      border-radius: 10px;
      font-weight: 600;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .waiting-text {
      text-align: center;
      color: var(--text-muted);
      font-size: 0.9rem;
    }

    /* AVATAR STÜDYOSU */
    .avatar-toggle {
      width: 100%;
      justify-content: center;
      gap: 8px;
      margin-top: 4px;
      padding: 12px 14px;
      font-size: 0.9rem;
      font-weight: 800;
    }

    .avatar-studio-panel {
      display: none;
      flex-direction: column;
      gap: 10px;
      margin-top: 6px;
    }

    .avatar-studio-panel.open {
      display: flex;
    }

    /* ==================== CHIBI MASKOT 2.0 CANLI DANS & RİTİM MOTORU ==================== */
    
    /* 1. Gövde Dans & Ritmik Yaylanma (Bouncy 2-Step Chibi Groove) */
    @keyframes avatarChibiDance {
      0%, 100% {
        transform: translateY(0) rotate(0deg) scale(1, 1);
      }
      20% {
        /* Sol Adım & Hafif Eğilme */
        transform: translateY(-4px) rotate(-2deg) scale(0.98, 1.02);
      }
      40% {
        /* Merkeze İniş & Tatlı Yaylanma (Squash) */
        transform: translateY(1px) rotate(0.5deg) scale(1.02, 0.98);
      }
      60% {
        /* Sağ Adım & Hafif Eğilme */
        transform: translateY(-4px) rotate(2deg) scale(0.98, 1.02);
      }
      80% {
        /* Merkeze İniş & Tatlı Yaylanma (Squash) */
        transform: translateY(1px) rotate(-0.5deg) scale(1.02, 0.98);
      }
    }

    /* 2. Kafa Ritim & Sevimli Baş Sallama (Head Bop) */
    @keyframes avatarHeadGroove {
      0%, 100% {
        transform: rotate(0deg) translateY(0);
      }
      20% {
        transform: rotate(-3.8deg) translateY(-0.8px);
      }
      40% {
        transform: rotate(0.8deg) translateY(0.6px);
      }
      60% {
        transform: rotate(3.8deg) translateY(-0.8px);
      }
      80% {
        transform: rotate(-0.8deg) translateY(0.6px);
      }
    }

    /* 3. Sol Kol & El Sallanma / Ritim Tutma */
    @keyframes avatarArmLeftDance {
      0%, 100% {
        transform: rotate(0deg);
      }
      20% {
        transform: rotate(16deg);
      }
      40% {
        transform: rotate(-5deg);
      }
      60% {
        transform: rotate(-10deg);
      }
      80% {
        transform: rotate(4deg);
      }
    }

    /* 4. Sağ Kol & El Ritmik Karşıt Hareket */
    @keyframes avatarArmRightDance {
      0%, 100% {
        transform: rotate(0deg);
      }
      20% {
        transform: rotate(-10deg);
      }
      40% {
        transform: rotate(4deg);
      }
      60% {
        transform: rotate(16deg);
      }
      80% {
        transform: rotate(-5deg);
      }
    }

    /* 5. Sol Ayak / Bacak Adım Hareketi */
    @keyframes avatarLegLeftStep {
      0%, 100% {
        transform: translateY(0) scaleY(1);
      }
      20% {
        transform: translateY(-2px) scaleY(0.96);
      }
      40%, 80% {
        transform: translateY(0) scaleY(1.02);
      }
      60% {
        transform: translateY(0) scaleY(1);
      }
    }

    /* 6. Sağ Ayak / Bacak Adım Hareketi */
    @keyframes avatarLegRightStep {
      0%, 100% {
        transform: translateY(0) scaleY(1);
      }
      20% {
        transform: translateY(0) scaleY(1);
      }
      40%, 80% {
        transform: translateY(0) scaleY(1.02);
      }
      60% {
        transform: translateY(-2px) scaleY(0.96);
      }
    }

    /* 7. Dinamik Zemin Gölgesi (Nefes & Adıma Göre Nabız) */
    @keyframes avatarShadowDance {
      0%, 100% {
        transform: scale(1);
        opacity: 0.32;
      }
      20%, 60% {
        transform: scale(0.82);
        opacity: 0.18;
      }
      40%, 80% {
        transform: scale(1.08);
        opacity: 0.4;
      }
    }

    /* 8. Doğal Göz Kırpma */
    @keyframes avatarBlink {
      0%, 92%, 100% {
        transform: scaleY(1);
      }
      96% {
        transform: scaleY(0.08);
      }
    }

    .turuncu-chibi-avatar {
      overflow: visible;
    }

    .turuncu-chibi-avatar .avatar-dance-body,
    .turuncu-chibi-avatar .avatar-bobbing-body {
      animation: avatarChibiDance 2.4s ease-in-out infinite;
      transform-origin: 50px 96px;
    }

    .turuncu-chibi-avatar .avatar-head-group {
      animation: avatarHeadGroove 2.4s ease-in-out infinite;
      transform-box: fill-box;
      transform-origin: 50% 90%;
    }

    .turuncu-chibi-avatar .avatar-arm-left {
      animation: avatarArmLeftDance 2.4s ease-in-out infinite;
      transform-box: fill-box;
      transform-origin: 90% 12%;
    }

    .turuncu-chibi-avatar .avatar-arm-right {
      animation: avatarArmRightDance 2.4s ease-in-out infinite;
      transform-box: fill-box;
      transform-origin: 10% 12%;
    }

    .turuncu-chibi-avatar .avatar-leg-left {
      animation: avatarLegLeftStep 2.4s ease-in-out infinite;
      transform-box: fill-box;
      transform-origin: 50% 0%;
    }

    .turuncu-chibi-avatar .avatar-leg-right {
      animation: avatarLegRightStep 2.4s ease-in-out infinite;
      transform-box: fill-box;
      transform-origin: 50% 0%;
    }

    .turuncu-chibi-avatar .avatar-ground-shadow {
      animation: avatarShadowDance 2.4s ease-in-out infinite;
      transform-origin: 50px 107px;
    }

    .turuncu-chibi-avatar .avatar-eyes {
      animation: avatarBlink 4.2s ease-in-out infinite;
      transform-box: fill-box;
      transform-origin: 50% 50%;
    }

    .avatar-thumb-btn {
      flex: 1 1 calc(25% - 8px);
      min-width: 76px;
      height: auto;
      min-height: 52px;
      background: rgba(15, 23, 42, 0.85);
      border: 1.5px solid rgba(255, 255, 255, 0.08);
      border-radius: 12px;
      padding: 6px 8px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 4px;
      cursor: pointer;
      transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
      font-size: 0.82rem;
      font-weight: 700;
      color: #cbd5e1;
      user-select: none;
    }

    .avatar-thumb-btn:hover {
      background: rgba(30, 41, 59, 0.95);
      border-color: rgba(249, 115, 22, 0.4);
      transform: translateY(-2px);
    }

    .avatar-thumb-btn:active {
      transform: scale(0.95);
    }

    .avatar-thumb-btn.selected {
      border-color: var(--primary);
      background: rgba(249, 115, 22, 0.2);
      color: #ffedd5;
      box-shadow: 0 0 14px rgba(249, 115, 22, 0.35);
      transform: scale(1.03);
    }

    .avatar-thumb-btn .thumb-icon {
      font-size: 1.25rem;
      line-height: 1;
    }
    .avatar-thumb-btn .thumb-label {
      font-size: 0.72rem;
      font-weight: 700;
      letter-spacing: -0.01em;
    }

    .avatar-studio-shell {
      display: flex;
      flex-direction: column;
      gap: 12px;
      background: linear-gradient(180deg, rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.98));
      border: 1.5px solid rgba(255, 122, 0, 0.35);
      border-radius: 22px;
      padding: 16px;
      margin-top: 8px;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

    .avatar-preview-box {
      display: flex;
      align-items: center;
      justify-content: center;
      min-height: 145px;
      background: radial-gradient(circle at 50% 45%, rgba(249, 115, 22, 0.2) 0%, rgba(15, 23, 42, 0.95) 75%);
      border: 1.5px solid rgba(249, 115, 22, 0.45);
      border-radius: 20px;
      box-shadow: inset 0 0 35px rgba(0, 0, 0, 0.7), 0 10px 25px rgba(0, 0, 0, 0.4);
      padding: 12px;
      position: relative;
    }

    .avatar-preview-box svg {
      width: 125px;
      height: 125px;
      overflow: visible;
      filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.45));
    }

    .studio-tab-nav {
      display: flex;
      gap: 6px;
      overflow-x: auto;
      padding-bottom: 4px;
      scrollbar-width: none;
    }
    .studio-tab-nav::-webkit-scrollbar { display: none; }

    .studio-tab-btn {
      padding: 8px 12px;
      border-radius: 10px;
      border: 1px solid rgba(255, 255, 255, 0.08);
      background: rgba(30, 41, 59, 0.65);
      color: #94a3b8;
      font-size: 0.78rem;
      font-weight: 700;
      cursor: pointer;
      white-space: nowrap;
      display: flex;
      align-items: center;
      gap: 5px;
      transition: all 0.2s ease;
    }
    .studio-tab-btn:hover {
      background: rgba(255, 255, 255, 0.12);
      color: #f8fafc;
    }
    .studio-tab-btn.active {
      background: rgba(249, 115, 22, 0.2);
      border-color: #f97316;
      color: #f97316;
      box-shadow: 0 0 10px rgba(249, 115, 22, 0.3);
    }

    .studio-tab-pane {
      display: none !important;
      flex-wrap: wrap;
      gap: 8px;
      padding: 8px 0;
      animation: tabFadeIn 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .studio-tab-pane.active {
      display: flex !important;
    }

    @keyframes tabFadeIn {
      from {
        opacity: 0;
        transform: translateY(5px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .avatar-random-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      background: linear-gradient(135deg, rgba(168, 85, 247, 0.22) 0%, rgba(249, 115, 22, 0.25) 100%);
      border: 1.5px solid rgba(249, 115, 22, 0.5);
      border-radius: 12px;
      color: #ffedd5;
      font-size: 0.88rem;
      font-weight: 800;
      cursor: pointer;
      padding: 10px 14px;
      transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
      box-shadow: 0 4px 14px rgba(249, 115, 22, 0.2);
      user-select: none;
    }

    .avatar-random-btn:hover {
      background: linear-gradient(135deg, rgba(168, 85, 247, 0.38) 0%, rgba(249, 115, 22, 0.45) 100%);
      border-color: #ff7a00;
      transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba(249, 115, 22, 0.35);
      color: #fff;
    }

    .avatar-random-btn:active {
      transform: scale(0.96);
    }

    .avatar-customizer {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .avatar-group {
      background: rgba(15, 23, 42, 0.9);
      border: 1px solid rgba(148, 163, 184, 0.2);
      border-radius: 12px;
      overflow: hidden;
    }

    .avatar-group-header {
      width: 100%;
      background: transparent;
      border: none;
      color: #cbd5e1;
      font-size: 0.72rem;
      font-weight: 800;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      display: flex;
      align-items: center;
      justify-content: space-between;
      cursor: pointer;
      padding: 12px 12px 10px;
      text-align: left;
    }

    .avatar-group-header span:last-child {
      transition: transform 0.2s ease;
      color: #f59e0b;
    }

    .avatar-group.is-open .avatar-group-header span:last-child {
      transform: rotate(180deg);
    }

    .avatar-options {
      display: none;
      padding: 0 10px 10px;
    }

    .avatar-group.is-open .avatar-options {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .avatar-choice-grid {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .avatar-choice-grid .avatar-thumb-btn {
      flex: 0 0 calc(25% - 6px);
      min-width: 42px;
    }

    .team-choice {
      flex: 1 1 calc(25% - 6px) !important;
      min-width: 58px !important;
      font-size: 0.78rem;
      font-weight: 900;
      letter-spacing: 0.02em;
    }

    .team-choice.gs { color: #b91c1c; }
    .team-choice.fb { color: #facc15; }
    .team-choice.ts { color: #2563eb; }
    .team-choice.bjk { color: #f8fafc; }

    .team-flag-wave {
      transform-box: fill-box;
      transform-origin: bottom center;
      animation: teamFlagWave 1.1s ease-in-out infinite;
    }

    @keyframes teamFlagWave {
      0%, 100% { transform: rotate(-4deg); }
      50% { transform: rotate(7deg); }
    }

    /* SEKMELİ ODA KUR / KATIL */
    .lobby-action-tabs {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 8px;
      margin-bottom: 4px;
    }

    .lobby-tab-btn {
      padding: 12px;
      border-radius: 12px;
      border: 2px solid #334155;
      background: #0f172a;
      color: #94a3b8;
      font-weight: 800;
      font-size: 0.85rem;
      cursor: pointer;
      text-align: center;
      transition: all 0.2s ease;
    }

    .lobby-tab-btn.active {
      border-color: var(--primary);
      color: #fff;
      background: rgba(255, 107, 0, 0.18);
    }

    .lobby-section {
      display: none;
      flex-direction: column;
      gap: 10px;
    }

    .lobby-section.active {
      display: flex;
    }

    /* AÇIKLA BAKALIM YAZAR TAHMİN BUTONLARI */
    .explain-guess-btn {
      padding: 7px 13px;
      border-radius: 18px;
      background: #1e293b;
      border: 1.5px solid #334155;
      color: #e2e8f0;
      font-size: 0.82rem;
      font-weight: 700;
      cursor: pointer;
      transition: all 0.2s ease;
      display: inline-flex;
      align-items: center;
      gap: 5px;
    }
    .explain-guess-btn:hover:not(:disabled) {
      border-color: #38bdf8;
      background: #334155;
      transform: translateY(-1px);
    }
    .explain-guess-btn.selected {
      background: linear-gradient(135deg, #0284c7, #0369a1);
      color: #fff;
      border-color: #38bdf8;
      font-weight: 800;
      box-shadow: 0 0 12px rgba(56, 189, 248, 0.5);
    }
    .explain-guess-btn.correct {
      background: linear-gradient(135deg, #10b981, #059669) !important;
      color: #fff !important;
      border-color: #10b981 !important;
      font-weight: 800;
      box-shadow: 0 0 12px rgba(16, 185, 129, 0.5);
    }
    .explain-guess-btn.wrong {
      background: rgba(239, 68, 68, 0.25) !important;
      color: #fca5a5 !important;
      border-color: #ef4444 !important;
      text-decoration: line-through;
      opacity: 0.7;
    }

    /* FLAPPY ROTA OYUN ALANI */
    .flappy-canvas-wrap {
      width: 100%;
      height: 400px;
      background: linear-gradient(to bottom, #7dd3fc 0%, #bae6fd 58%, #d9f99d 58%, #86efac 100%);
      border-radius: 18px;
      border: 2px solid var(--primary);
      position: relative;
      overflow: hidden;
      box-shadow: 0 10px 30px var(--primary-glow);
      cursor: pointer;
      touch-action: manipulation;
    }

    .flappy-canvas-wrap::before {
      content: '';
      position: absolute;
      inset: 0;
      pointer-events: none;
      background: radial-gradient(circle at 18% 20%, rgba(255,255,255,0.75) 0 18px, transparent 19px), radial-gradient(circle at 82% 28%, rgba(255,255,255,0.65) 0 24px, transparent 25px);
      opacity: 0.8;
    }

    /* YÖNETİCİ GEÇİŞ EKRANI */
    .transit-stage {
      background: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%);
      border: 2px solid var(--primary);
      border-radius: 20px;
      padding: 30px 16px;
      text-align: center;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 20px;
      min-height: 340px;
      position: relative;
      overflow: visible;
      box-shadow: 0 10px 30px var(--primary-glow);
    }

    .transit-avatars-container {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 30px;
      flex-wrap: wrap;
      margin-top: 35px;
      width: 100%;
    }

    .transit-avatar-card {
      display: flex;
      flex-direction: column;
      align-items: center;
      position: relative;
      margin: 10px;
      animation: floatAvatar 3s ease-in-out infinite alternate;
    }

    @keyframes floatAvatar {
      0% { transform: translateY(0px); }
      100% { transform: translateY(-8px); }
    }

    .transit-bubble {
      background: #fff;
      color: #0b0f19;
      font-weight: 800;
      font-size: 0.78rem;
      padding: 6px 14px;
      border-radius: 14px;
      position: absolute;
      top: -46px;
      white-space: nowrap;
      box-shadow: 0 4px 15px rgba(0,0,0,0.6);
      z-index: 20;
      animation: bubblePop 0.3s ease;
    }

    .transit-bubble::after {
      content: '';
      position: absolute;
      bottom: -5px;
      left: 50%;
      transform: translateX(-50%);
      border-width: 5px 5px 0;
      border-style: solid;
      border-color: #fff transparent;
      display: block;
      width: 0;
    }

    /* YATAY OYUNCU ŞERİDİ */
    .game-player-strip {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 6px 10px;
      background: rgba(15, 23, 42, 0.82);
      border: 1px solid var(--border);
      border-radius: 16px;
      overflow-x: auto;
      scrollbar-width: none;
      -ms-overflow-style: none;
      -webkit-overflow-scrolling: touch;
      min-height: 44px;
      box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
    }

    .game-player-strip::-webkit-scrollbar {
      display: none;
    }

    .strip-player-chip {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 3px 8px 3px 4px;
      background: rgba(30, 41, 59, 0.85);
      border: 1.5px solid rgba(255, 255, 255, 0.08);
      border-radius: 20px;
      white-space: nowrap;
      flex-shrink: 0;
      transition: all 0.2s ease;
      user-select: none;
    }

    .strip-player-chip.is-me {
      border-color: rgba(255, 107, 0, 0.7);
      background: rgba(255, 107, 0, 0.15);
      box-shadow: 0 0 10px rgba(255, 107, 0, 0.25);
    }

    .strip-player-chip.ready {
      border-color: rgba(16, 185, 129, 0.55);
      background: rgba(16, 185, 129, 0.12);
    }

    .strip-player-chip.active-turn {
      border-color: rgba(239, 68, 68, 0.75);
      background: rgba(239, 68, 68, 0.12);
      animation: pulseTurn 1s infinite alternate;
    }

    @keyframes pulseTurn {
      0% { transform: scale(1); box-shadow: 0 0 4px rgba(239, 68, 68, 0.3); }
      100% { transform: scale(1.04); box-shadow: 0 0 12px rgba(239, 68, 68, 0.6); }
    }

    .strip-avatar-wrap {
      width: 26px;
      height: 26px;
      border-radius: 50%;
      background: #0b0f19;
      border: 1px solid rgba(255, 255, 255, 0.14);
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      flex-shrink: 0;
    }

    .strip-avatar-wrap svg {
      width: 100%;
      height: 100%;
      display: block;
    }

    .strip-player-name {
      font-size: 0.76rem;
      font-weight: 700;
      color: #e2e8f0;
      max-width: 82px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .strip-player-chip.is-me .strip-player-name {
      color: #ff9800;
      font-weight: 800;
    }

    .strip-crown {
      font-size: 0.7rem;
      margin-left: -2px;
    }

    .strip-status-badge {
      font-size: 0.72rem;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }

    /* KART İÇİ KÖŞE METASI VE SAYACI */
    .card-corner-meta {
      position: absolute;
      top: 10px;
      left: 12px;
      display: flex;
      align-items: center;
      gap: 6px;
      z-index: 10;
      pointer-events: none;
    }

    .screen-title {
      font-size: 1.55rem;
      font-weight: 900;
      letter-spacing: -0.2px;
      text-align: center;
      color: var(--text);
    }

    .top-meta {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    #question-index {
      font-weight: 800;
      font-size: 0.78rem;
      color: #cbd5e1;
      background: rgba(15, 23, 42, 0.75);
      border: 1px solid rgba(255, 255, 255, 0.12);
      padding: 3px 8px;
      border-radius: 8px;
      backdrop-filter: blur(4px);
      -webkit-backdrop-filter: blur(4px);
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    }

    #grid-badge {
      background: rgba(99, 102, 241, 0.18);
      border: 1px solid rgba(99, 102, 241, 0.4);
      color: #a5b4fc;
      font-size: 0.72rem;
      padding: 2px 7px;
      border-radius: 8px;
      font-weight: 700;
    }

    .card-corner-timer {
      position: absolute;
      top: 10px;
      right: 12px;
      z-index: 10;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .timer {
      background: linear-gradient(135deg, #ef4444, #dc2626);
      color: #fff;
      font-weight: 900;
      font-size: 1.05rem;
      width: 38px;
      height: 38px;
      min-width: 38px;
      border-radius: 50%;
      padding: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 0 14px rgba(239, 68, 68, 0.45);
      transition: transform 0.15s ease;
      flex-shrink: 0;
    }

    .timer.pulse {
      transform: scale(1.15);
    }

    .question-card {
      background: linear-gradient(145deg, var(--surface-3) 0%, var(--surface-1) 100%);
      border: 1px solid rgba(255, 107, 0, 0.25);
      padding: 56px 18px 22px;
      border-radius: 18px;
      text-align: center;
      min-height: 105px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      position: relative;
    }

    .fact-card {
      padding: 56px 18px 22px !important;
      position: relative;
    }

    @media (max-width: 600px) {
      .card-corner-meta {
        top: 8px;
        left: 10px;
      }
      .card-corner-timer {
        top: 7px;
        right: 10px;
      }
      .timer {
        width: 34px;
        height: 34px;
        min-width: 34px;
        font-size: 0.92rem;
      }
      #question-index {
        font-size: 0.72rem;
        padding: 2px 6px;
      }
      .question-card, .fact-card {
        padding-top: 52px !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
      }
      #fact-statement-text {
        font-size: 1.15rem !important;
        line-height: 1.45 !important;
        margin: 8px 0 !important;
      }
    }

    .question-card h2 {
      font-size: 1.25rem;
      font-weight: 700;
      line-height: 1.45;
    }

    .answer-box {
      display: flex;
      gap: 8px;
    }

    .status-msg {
      text-align: center;
      font-weight: 600;
      color: var(--primary);
      font-size: 0.9rem;
      min-height: 22px;
    }

    body.light-theme .game-player-strip,
    body.light-theme .question-card,
    body.light-theme .mini-leaderboard,
    body.light-theme .player-list-card,
    body.light-theme .room-header + .card {
      background: var(--surface-1) !important;
      color: var(--text);
      box-shadow: var(--shadow);
    }

    body.light-theme .strip-player-chip {
      background: rgba(241, 245, 249, 0.95) !important;
      border-color: rgba(15, 23, 42, 0.12) !important;
    }

    body.light-theme .strip-player-name {
      color: #1e293b !important;
    }

    body.light-theme .strip-avatar-wrap {
      background: #e2e8f0 !important;
      border-color: rgba(15, 23, 42, 0.12) !important;
    }

    body.light-theme #question-index {
      background: rgba(255, 255, 255, 0.9) !important;
      color: #1e293b !important;
      border-color: rgba(15, 23, 42, 0.12) !important;
      box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06) !important;
    }

    body.light-theme input,
    body.light-theme select,
    body.light-theme textarea,
    body.light-theme .mode-btn,
    body.light-theme .lobby-tab-btn,
    body.light-theme .player-list-card li,
    body.light-theme .room-rules-badge span {
      background: var(--surface-2) !important;
      color: var(--text) !important;
      border-color: var(--border) !important;
    }

    body.light-theme .btn-secondary {
      background: var(--surface-3);
      color: var(--text);
    }

    body.light-theme .avatar-studio-shell {
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 245, 249, 0.98)) !important;
      border-color: rgba(234, 88, 12, 0.35);
      box-shadow: var(--shadow);
    }

    body.light-theme .avatar-preview-box {
      background: radial-gradient(circle at 50% 22%, #ffffff 0%, #e0f2fe 48%, #bfdbfe 100%) !important;
    }

    body.light-theme .avatar-toggle,
    body.light-theme .btn.btn-secondary {
      background: var(--surface-3) !important;
      color: var(--text) !important;
      border-color: var(--border) !important;
    }

    body.light-theme label,
    body.light-theme .option-label,
    body.light-theme .divider,
    body.light-theme .subtitle {
      color: var(--text-muted) !important;
    }


    .color-grid {
      display: grid;
      width: 100%;
      max-width: 380px;
      margin: 0 auto;
      aspect-ratio: 1 / 1;
      padding: 10px;
      background: #0f172a;
      border-radius: 18px;
      border: 1px solid var(--border);
      box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.4);
    }

    .color-box {
      cursor: pointer;
      border: 2px solid transparent;
      transition: transform 0.08s ease, border-color 0.12s ease;
      touch-action: manipulation;
    }

    .color-box:active {
      transform: scale(0.92);
    }

    .color-box.selected {
      border-color: #fff !important;
      transform: scale(0.94);
      box-shadow: 0 0 12px #fff;
    }

    .memory-preview-container {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 14px;
      background: #0f172a;
      padding: 20px;
      border-radius: 18px;
      border: 1px solid var(--border);
    }

    .memory-grid-view {
      display: grid;
      gap: 6px;
      padding: 10px;
      background: #1e293b;
      border-radius: 14px;
      border: 1px solid var(--border);
    }

    .memory-cell {
      width: 48px;
      height: 48px;
      border-radius: 8px;
    }

    .memory-palette {
      display: flex;
      gap: 10px;
      justify-content: center;
      padding: 10px;
      background: #1e293b;
      border-radius: 12px;
      width: 100%;
    }

    .palette-item {
      width: 40px;
      height: 40px;
      border-radius: 8px;
      cursor: pointer;
      border: 2px solid transparent;
      transition: transform 0.1s ease;
    }

    .palette-item:active {
      transform: scale(0.9);
    }

    .palette-item.active-palette {
      border-color: #fff;
      transform: scale(1.1);
      box-shadow: 0 0 10px #fff;
    }

    .timer-intro-card {
      background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
      border: 2px solid var(--primary);
      border-radius: 20px;
      padding: 36px 20px;
      text-align: center;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 12px;
      box-shadow: 0 10px 30px var(--primary-glow);
    }

    .intro-count-big {
      font-size: 4rem;
      font-weight: 900;
      color: #ff7a00;
      line-height: 1;
      animation: pulsePop 0.8s ease infinite;
    }

    @keyframes pulsePop {
      0% { transform: scale(0.9); opacity: 0.7; }
      50% { transform: scale(1.15); opacity: 1; }
      100% { transform: scale(0.9); opacity: 0.7; }
    }

    .stickman-stage {
      display: flex;
      gap: 12px;
      overflow-x: auto;
      padding: 18px 8px 12px 8px;
      background: #0f172a;
      border: 1px solid var(--border);
      border-radius: 18px;
      min-height: 190px;
      align-items: flex-end;
      justify-content: center;
      scrollbar-width: none;
    }

    .stickman-stage::-webkit-scrollbar {
      display: none;
    }

    .stickman-slot {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 4px;
      position: relative;
      flex: 0 0 68px;
    }

    .stickman-time-tag {
      font-size: 0.72rem;
      font-weight: 800;
      background: #1e293b;
      padding: 2px 6px;
      border-radius: 6px;
      color: #38bdf8;
      border: 1px solid var(--border);
      min-height: 18px;
    }

    .stickman-body {
      transition: transform 0.18s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    .stickman-body svg {
      width: 100%;
      height: 100%;
      display: block;
      overflow: visible;
    }

    .stickman-body.dead-stickman svg {
      opacity: 0.35;
      filter: grayscale(1);
    }

    .stickman-body.pressed {
      transform: translateY(12px) scale(0.96);
    }

    .stickman-name {
      font-size: 0.72rem;
      font-weight: 700;
      color: #94a3b8;
      max-width: 65px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .stickman-btn-base {
      width: 32px;
      height: 12px;
      background: #334155;
      border-radius: 4px 4px 0 0;
      position: relative;
      margin-top: -4px;
    }

    .stickman-btn-cap {
      width: 24px;
      height: 7px;
      background: #ef4444;
      border-radius: 3px 3px 0 0;
      margin: -5px auto 0 auto;
      transition: all 0.1s ease;
      box-shadow: 0 0 6px rgba(239, 68, 68, 0.6);
    }

    .stickman-slot.has-pressed .stickman-btn-cap {
      background: #10b981;
      height: 3px;
      margin-top: -2px;
      box-shadow: 0 0 10px #10b981;
    }

    .big-buzzer-btn {
      width: 100%;
      padding: 22px;
      border-radius: 16px;
      border: none;
      font-size: 1.25rem;
      font-weight: 900;
      color: #fff;
      background: linear-gradient(135deg, #ff7a00, #ff3700);
      box-shadow: 0 8px 30px rgba(255, 107, 0, 0.5);
      cursor: pointer;
      transition: transform 0.08s ease, filter 0.1s ease;
      touch-action: manipulation;
    }

    .big-buzzer-btn:active {
      transform: scale(0.96);
    }

    .big-buzzer-btn:disabled {
      background: #334155;
      box-shadow: none;
      filter: grayscale(0.8);
      cursor: not-allowed;
    }

    .bomb-arena {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 12px;
    }

    .bomb-icon-box {
      font-size: 3.5rem;
      animation: bombTick 0.5s ease-in-out infinite alternate;
      position: relative;
    }

    @keyframes bombTick {
      0% { transform: rotate(-8deg) scale(0.98); }
      100% { transform: rotate(8deg) scale(1.08); }
    }

    .syllable-display {
      font-size: 2.2rem;
      font-weight: 900;
      color: #ff7a00;
      letter-spacing: 2px;
      background: rgba(255, 107, 0, 0.15);
      border: 2px dashed #ff7a00;
      padding: 8px 24px;
      border-radius: 16px;
    }

    .bomb-turn-banner {
      font-size: 0.95rem;
      font-weight: 800;
      color: #38bdf8;
    }

    .dead-stickman {
      filter: grayscale(1) brightness(0.25);
      opacity: 0.7;
      transform: rotate(90deg) translateY(-14px);
    }

    .ghost-icon {
      font-size: 1.3rem;
      position: absolute;
      top: -24px;
      animation: ghostFloat 1s ease-in-out infinite alternate;
    }

    @keyframes ghostFloat {
      0% { transform: translateY(0); }
      100% { transform: translateY(-8px); }
    }

    .judge-panel {
      background: #1e293b;
      border: 2px solid #ff7a00;
      border-radius: 14px;
      padding: 14px;
      text-align: center;
      display: flex;
      flex-direction: column;
      gap: 8px;
      animation: bubblePop 0.3s ease;
    }

    .judge-actions {
      display: flex;
      gap: 8px;
    }

    .btn-judge-accept {
      background: #10b981;
      color: #fff;
      flex: 1;
      padding: 10px;
      border-radius: 8px;
      font-weight: 800;
      border: none;
      cursor: pointer;
    }

    .btn-judge-reject {
      background: #ef4444;
      color: #fff;
      flex: 1;
      padding: 10px;
      border-radius: 8px;
      font-weight: 800;
      border: none;
      cursor: pointer;
    }

    .round-theater-stage {
      background: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%);
      border: 1px solid var(--border);
      border-radius: 18px;
      padding: 30px 10px 14px 10px;
      display: flex;
      justify-content: center;
      gap: 32px;
      align-items: flex-end;
      min-height: 195px;
      position: relative;
      overflow: visible;
      margin-bottom: 8px;
    }

    .theater-character {
      display: flex;
      flex-direction: column;
      align-items: center;
      position: relative;
      min-width: 90px;
    }

    .speech-bubble {
      background: #fff;
      color: #0b0f19;
      font-weight: 900;
      font-size: 0.78rem;
      padding: 6px 12px;
      border-radius: 12px;
      position: absolute;
      top: -46px;
      white-space: nowrap;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
      z-index: 20;
      animation: bubblePop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    }

    .speech-bubble::after {
      content: '';
      position: absolute;
      bottom: -6px;
      left: 50%;
      transform: translateX(-50%);
      border-width: 6px 6px 0;
      border-style: solid;
      border-color: #fff transparent;
      display: block;
      width: 0;
    }

    @keyframes bubblePop {
      0% { transform: scale(0); opacity: 0; }
      100% { transform: scale(1); opacity: 1; }
    }

    .laugh-body {
      animation: laughShake 0.4s ease-in-out infinite alternate;
    }

    @keyframes laughShake {
      0% { transform: rotate(-5deg) translateY(0); }
      100% { transform: rotate(10deg) translateY(-8px); }
    }

    .sad-body {
      animation: sadSag 1.2s ease forwards;
    }

    @keyframes sadSag {
      0% { transform: translateY(0); }
      100% { transform: translateY(8px) scale(0.95); opacity: 0.85; }
    }

    .theater-avatar-wrap {
      position: relative;
      user-select: none;
      transition: transform 0.2s ease;
    }
    .theater-avatar-wrap svg {
      width: 100%;
      height: 100%;
      overflow: visible;
    }

    .theater-name {
      font-size: 0.78rem;
      font-weight: 800;
      margin-top: 6px;
      max-width: 90px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      text-align: center;
    }

    .theater-role {
      font-size: 0.65rem;
      font-weight: 700;
      color: #94a3b8;
    }

    .mini-leaderboard {
      background: var(--card-bg);
      border: 1px solid var(--border);
      padding: 14px;
      border-radius: 14px;
    }

    .mini-leaderboard h4 {
      margin-bottom: 8px;
      color: var(--text-muted);
      font-size: 0.8rem;
      text-transform: uppercase;
    }

    #mini-scores {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
    }

    #mini-scores div {
      background: #0f172a;
      border: 1px solid var(--border);
      padding: 5px 10px;
      border-radius: 8px;
      font-size: 0.85rem;
      font-weight: 700;
    }

    .correct-answer-banner {
      background: linear-gradient(135deg, #10b981, #059669);
      padding: 16px;
      border-radius: 16px;
      text-align: center;
      box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
    }

    .correct-answer-banner span {
      display: block;
      font-size: 0.85rem;
      opacity: 0.9;
    }

    .correct-answer-banner strong {
      font-size: 1.8rem;
      font-weight: 900;
      letter-spacing: 0.5px;
    }

    .result-card ul {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .result-item {
      background: var(--surface-2);
      border: 1px solid var(--border);
      padding: 12px 14px;
      border-radius: 12px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 12px;
      transition: transform 0.15s ease, border-color 0.15s ease;
    }

    .result-item:hover {
      transform: translateY(-1px);
      border-color: rgba(255, 107, 0, 0.42);
    }

    .result-left {
      display: flex;
      flex-direction: column;
      gap: 3px;
    }

    .player-name-row {
      font-size: 1rem;
      font-weight: 700;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .player-guess-sub {
      font-size: 0.82rem;
      color: var(--text-muted);
    }

    .player-guess-sub b {
      color: #38bdf8;
      font-size: 0.95rem;
    }

    .result-right {
      text-align: right;
    }

    .points-earned {
      font-size: 1.05rem;
      font-weight: 800;
      color: #10b981;
    }

    .diff-badge {
      font-size: 0.75rem;
      color: var(--text-muted);
      display: block;
    }

    .next-round-text {
      text-align: center;
      color: var(--text-muted);
      font-size: 0.9rem;
    }

    /* 🏆 3 BASAMAKLI ANİMASYONLU OLİMPİYAT PODYUMU */
    .podium-stage {
      display: flex;
      justify-content: center;
      align-items: flex-end;
      gap: 12px;
      padding: 30px 10px 15px;
      min-height: 270px;
      position: relative;
      margin-bottom: 20px;
    }

    .podium-step {
      display: flex;
      flex-direction: column;
      align-items: center;
      flex: 1;
      max-width: 125px;
      opacity: 0;
      transform: translateY(40px) scale(0.85);
      transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    .podium-step.revealed {
      opacity: 1;
      transform: translateY(0) scale(1);
    }

    .podium-avatar-wrapper {
      width: 58px;
      height: 58px;
      border-radius: 50%;
      background: #0f172a;
      border: 3px solid #334155;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      margin-bottom: 6px;
      box-shadow: 0 8px 20px rgba(0,0,0,0.5);
      position: relative;
      z-index: 2;
    }

    .podium-avatar-wrapper svg {
      width: 100%;
      height: 100%;
      display: block;
      transform: scale(1.15) translateY(4px);
    }

    .step-1 .podium-avatar-wrapper {
      width: 72px;
      height: 72px;
      border-color: #fbbf24;
      box-shadow: 0 0 25px rgba(251, 191, 36, 0.55);
      animation: championFloat 2.2s ease-in-out infinite alternate;
    }

    @keyframes championFloat {
      0% { transform: translateY(0); }
      100% { transform: translateY(-7px); }
    }

    .crown-icon {
      position: absolute;
      top: -24px;
      left: 50%;
      transform: translateX(-50%);
      font-size: 1.8rem;
      filter: drop-shadow(0 2px 8px rgba(251, 191, 36, 0.8));
      animation: crownBob 1.5s ease-in-out infinite alternate;
      z-index: 5;
    }

    @keyframes crownBob {
      0% { transform: translateX(-50%) rotate(-4deg); }
      100% { transform: translateX(-50%) rotate(4deg) translateY(-3px); }
    }

    .podium-player-name {
      font-weight: 900;
      font-size: 0.85rem;
      color: #f1f5f9;
      max-width: 110px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      text-align: center;
      margin-bottom: 2px;
    }

    .podium-player-score {
      font-size: 0.78rem;
      font-weight: 800;
      color: #94a3b8;
      margin-bottom: 8px;
    }

    .podium-pedestal {
      width: 100%;
      border-radius: 14px 14px 4px 4px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: flex-start;
      padding-top: 10px;
      box-shadow: 0 10px 25px rgba(0,0,0,0.4);
      position: relative;
      border-top: 2px solid rgba(255,255,255,0.25);
    }

    .step-1 .podium-pedestal {
      height: 125px;
      background: linear-gradient(180deg, #f59e0b 0%, #b45309 100%);
      border-color: #fde68a;
      box-shadow: 0 10px 30px rgba(245, 158, 11, 0.35);
    }

    .step-2 .podium-pedestal {
      height: 95px;
      background: linear-gradient(180deg, #94a3b8 0%, #475569 100%);
      border-color: #cbd5e1;
    }

    .step-3 .podium-pedestal {
      height: 70px;
      background: linear-gradient(180deg, #d97706 0%, #78350f 100%);
      border-color: #fcd34d;
    }

    .pedestal-rank {
      font-size: 1.6rem;
      font-weight: 900;
      color: #fff;
      text-shadow: 0 2px 8px rgba(0,0,0,0.5);
      line-height: 1;
    }

    .pedestal-medal {
      font-size: 1.1rem;
      margin-top: 2px;
    }

    /* 4. ve Sonrakiler Listesi */
    .podium-others-list {
      display: flex;
      flex-direction: column;
      gap: 8px;
      margin-top: 12px;
      border-top: 1px solid #334155;
      padding-top: 14px;
    }

    .podium-other-item {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 10px 14px;
      background: rgba(15, 23, 42, 0.6);
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 12px;
      font-size: 0.92rem;
      font-weight: 700;
      opacity: 0;
      transform: translateY(15px);
      transition: all 0.4s ease;
    }

    .podium-other-item.revealed {
      opacity: 1;
      transform: translateY(0);
    }

    .host-dismiss-container {
      margin-top: 10px;
      display: flex;
      justify-content: center;
    }
    body.light-theme .round-theater-stage,
    body.light-theme .emoji-bar,
    body.light-theme .result-item,
    body.light-theme #mini-scores div {
      background: var(--surface-2) !important;
      color: var(--text);
      border-color: var(--border);
      box-shadow: none;
    }

    body.light-theme .round-theater-stage {
      background: linear-gradient(145deg, #ffffff, #e2e8f0) !important;
    }

    @media (max-width: 380px) {
      .result-item {
        align-items: flex-start;
        flex-direction: column;
      }

      .result-right {
        display: flex;
        align-items: center;
        gap: 8px;
        text-align: left;
      }

      .diff-badge {
        display: inline-block;
      }
    }

    /* EMOJI SABOTAJ ÇUBUĞU */
    .emoji-bar {
      display: flex;
      justify-content: center;
      gap: 8px;
      background: var(--surface-3);
      padding: 8px;
      border-radius: 12px;
      border: 1px solid var(--border);
    }

    .emoji-btn {
      background: var(--surface-2);
      border: 1px solid #334155;
      font-size: 1.2rem;
      padding: 6px 10px;
      border-radius: 8px;
      cursor: pointer;
      transition: transform 0.1s ease, opacity 0.25s ease, filter 0.25s ease;
      user-select: none;
    }

    .emoji-btn:active {
      transform: scale(0.85);
    }

    .emoji-btn.cooldown {
      opacity: 0.35;
      filter: grayscale(0.7);
      cursor: not-allowed;
      pointer-events: none;
      transform: scale(0.95);
    }

    .floating-emoji {
      position: fixed;
      display: flex;
      flex-direction: column;
      align-items: center;
      pointer-events: none;
      z-index: 99999;
      animation: floatUpEmoji 1.4s cubic-bezier(0.2, 0.8, 0.3, 1) forwards;
      transform-origin: center bottom;
    }

    .floating-emoji .emoji-symbol {
      font-size: 2.8rem;
      line-height: 1;
      filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
    }

    .floating-emoji .emoji-sender {
      font-size: 0.72rem;
      font-weight: 800;
      color: #fff;
      background: rgba(15, 23, 42, 0.88);
      border: 1px solid rgba(255, 122, 0, 0.45);
      border-radius: 999px;
      padding: 2px 8px;
      margin-top: 2px;
      white-space: nowrap;
      box-shadow: 0 3px 10px rgba(0,0,0,0.4);
      letter-spacing: 0.02em;
    }

    @keyframes floatUpEmoji {
      0% {
        transform: translateY(0) scale(0.5);
        opacity: 0;
      }
      15% {
        transform: translateY(-25px) scale(1.2);
        opacity: 1;
      }
      75% {
        transform: translateY(-120px) scale(1);
        opacity: 1;
      }
      100% {
        transform: translateY(-170px) scale(0.85);
        opacity: 0;
      }
    }

    /* BİLDİRİM BALONCUĞU (YENİ OYUNCU KATILDI) */
    .join-toast {
      background: rgba(15, 23, 42, 0.94);
      border: 1.5px solid #10b981;
      color: #38bdf8;
      padding: 8px 18px;
      border-radius: 999px;
      font-size: 0.88rem;
      font-weight: 700;
      box-shadow: 0 6px 22px rgba(0,0,0,0.5);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      pointer-events: none;
      animation: toastSlideDown 0.35s cubic-bezier(0.2, 0.8, 0.3, 1) forwards;
      text-align: center;
      line-height: 1.3;
    }

    .join-toast b {
      color: #f59e0b;
    }

    .join-toast.fade-out {
      animation: toastFadeOut 0.4s ease forwards;
    }

    @keyframes toastSlideDown {
      0% { transform: translateY(-20px) scale(0.9); opacity: 0; }
      100% { transform: translateY(0) scale(1); opacity: 1; }
    }

    @keyframes toastFadeOut {
      0% { opacity: 1; transform: scale(1); }
      100% { opacity: 0; transform: scale(0.92); }
    }

    /* SAYI YAĞMURU (DİJİTAL YAĞMUR EFEKTİ) */
    .chaos-number {
      position: absolute;
      top: -40px;
      font-weight: 800;
      font-family: monospace, sans-serif;
      color: #ff7a00;
      pointer-events: none;
      user-select: none;
      white-space: nowrap;
      animation-name: fallChaosRain;
      animation-timing-function: linear;
      animation-iteration-count: infinite;
      will-change: transform, opacity;
    }

    @keyframes fallChaosRain {
      0% {
        transform: translateY(-20px);
        opacity: 0;
      }
      15% {
        opacity: 0.55;
      }
      85% {
        opacity: 0.55;
      }
      100% {
        transform: translateY(480px);
        opacity: 0;
      }
    }
/* ŞEKİL EŞLEŞTİRME KARTLARI */
    .match-card {
      aspect-ratio: 1 / 1;
      background: #1e293b;
      border: 2px solid #334155;
      border-radius: 12px;
      font-size: 1.8rem;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: transform 0.15s ease, background-color 0.15s ease;
      user-select: none;
    }
    .match-card:active {
      transform: scale(0.92);
    }
    .match-card.flipped {
      background: rgba(255, 107, 0, 0.2);
      border-color: var(--primary);
    }
    .match-card.matched {
      background: rgba(16, 185, 129, 0.2);
      border-color: #10b981;
      opacity: 0.6;
      cursor: default;
    }

    /* ======== BUGÜN TARİHTE KARTI ======== */
    #wiki-card {
      width: 100%;
      max-width: 440px;
      box-sizing: border-box;
      margin-top: 14px;
      margin-bottom: 16px;
    }

    #wiki-card-inner {
      background: rgba(13, 18, 36, 0.94);
      border: 1.5px solid rgba(255, 122, 0, 0.35);
      border-radius: 14px;
      padding: 10px 14px 11px 14px;
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      box-shadow: 0 4px 24px rgba(0,0,0,0.45);
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    #wiki-card-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    #wiki-card-title {
      font-size: 0.67rem;
      font-weight: 800;
      color: #ff7a00;
      letter-spacing: 0.07em;
      text-transform: uppercase;
      display: flex;
      align-items: center;
      gap: 5px;
    }

    #wiki-card-nav {
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .wiki-nav-btn {
      background: rgba(255,122,0,0.12);
      border: 1px solid rgba(255,122,0,0.3);
      color: #ff7a00;
      width: 24px;
      height: 24px;
      border-radius: 6px;
      font-size: 0.7rem;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background 0.15s ease;
      padding: 0;
    }

    .wiki-nav-btn:hover {
      background: rgba(255,122,0,0.25);
    }

    .wiki-nav-btn:active {
      transform: scale(0.9);
    }

    #wiki-card-counter {
      font-size: 0.62rem;
      color: #64748b;
      min-width: 36px;
      text-align: center;
    }

    #wiki-card-body {
      font-size: 0.75rem;
      color: #cbd5e1;
      line-height: 1.45;
      min-height: 2.2em;
      display: flex;
      align-items: flex-start;
      gap: 6px;
    }

    #wiki-card-year {
      color: #ff7a00;
      font-weight: 800;
      font-size: 0.78rem;
      white-space: nowrap;
      flex-shrink: 0;
      padding-top: 1px;
    }

    #wiki-card-text {
      flex: 1;
    }

    /* ================= GÜVEN Mİ İHANET Mİ (SCAM LINE) STİLLERİ ================= */
    .trust-arena-card {
      display: flex;
      justify-content: space-between;
      align-items: center;
      background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.9));
      border: 2px solid rgba(255, 122, 0, 0.4);
      border-radius: 20px;
      padding: 16px 12px;
      box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
      position: relative;
      overflow: hidden;
    }

    .trust-arena-card::before {
      content: '';
      position: absolute;
      top: 0; left: 50%;
      transform: translateX(-50%);
      width: 60%;
      height: 2px;
      background: linear-gradient(90deg, transparent, #ff7a00, transparent);
    }

    .trust-fighter {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 6px;
      flex: 1;
      text-align: center;
    }

    .trust-avatar-wrap {
      width: 68px;
      height: 68px;
      background: rgba(0, 0, 0, 0.4);
      border-radius: 50%;
      border: 2px solid rgba(255, 255, 255, 0.15);
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
      transition: transform 0.2s ease;
    }

    .trust-avatar-wrap svg {
      width: 90%;
      height: 90%;
    }

    .trust-fighter-info {
      display: flex;
      flex-direction: column;
      gap: 2px;
    }

    .trust-name {
      font-size: 1rem;
      color: #fff;
      font-weight: 800;
      letter-spacing: 0.3px;
    }

    .trust-score {
      font-size: 0.78rem;
      color: #38bdf8;
      font-weight: 700;
    }

    .trust-status-badge {
      font-size: 0.72rem;
      font-weight: 700;
      padding: 3px 8px;
      border-radius: 12px;
      background: rgba(148, 163, 184, 0.15);
      color: #94a3b8;
      border: 1px solid rgba(148, 163, 184, 0.3);
      transition: all 0.3s ease;
    }

    .trust-status-badge.ready {
      background: rgba(16, 185, 129, 0.2);
      color: #10b981;
      border-color: #10b981;
      box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
    }

    .trust-vs-badge {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      width: 44px;
      height: 44px;
      border-radius: 50%;
      background: linear-gradient(135deg, #ff7a00, #ea580c);
      color: #fff;
      font-weight: 900;
      font-size: 0.95rem;
      box-shadow: 0 0 16px rgba(255, 122, 0, 0.5);
      flex-shrink: 0;
      margin: 0 6px;
      animation: trustVsPulse 2s infinite ease-in-out;
    }

    @keyframes trustVsPulse {
      0%, 100% { transform: scale(1); box-shadow: 0 0 14px rgba(255, 122, 0, 0.4); }
      50% { transform: scale(1.1); box-shadow: 0 0 24px rgba(255, 122, 0, 0.8); }
    }

    .trust-choice-buttons {
      display: flex;
      gap: 12px;
      width: 100%;
    }

    .btn-trust {
      flex: 1;
      padding: 16px 12px;
      border-radius: 18px;
      border: 2px solid transparent;
      cursor: pointer;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 6px;
      text-align: center;
      transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
      position: relative;
    }

    .btn-trust.green {
      background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.3));
      border-color: #10b981;
      box-shadow: 0 4px 20px rgba(16, 185, 129, 0.2);
    }

    .btn-trust.green:hover {
      background: linear-gradient(135deg, rgba(16, 185, 129, 0.35), rgba(5, 150, 105, 0.45));
      transform: translateY(-2px);
    }

    .btn-trust.green.selected {
      background: linear-gradient(135deg, #10b981, #059669);
      outline: 3px solid #fff;
      transform: scale(1.03);
      box-shadow: 0 8px 30px rgba(16, 185, 129, 0.6);
    }

    .btn-trust.red {
      background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(220, 38, 38, 0.3));
      border-color: #ef4444;
      box-shadow: 0 4px 20px rgba(239, 68, 68, 0.2);
    }

    .btn-trust.red:hover {
      background: linear-gradient(135deg, rgba(239, 68, 68, 0.35), rgba(220, 38, 38, 0.45));
      transform: translateY(-2px);
    }

    .btn-trust.red.selected {
      background: linear-gradient(135deg, #ef4444, #dc2626);
      outline: 3px solid #fff;
      transform: scale(1.03);
      box-shadow: 0 8px 30px rgba(239, 68, 68, 0.6);
    }

    .trust-btn-icon {
      font-size: 1.6rem;
    }

    .trust-btn-title {
      font-size: 1.05rem;
      font-weight: 900;
      color: #fff;
      letter-spacing: 0.5px;
    }

    .trust-btn-sub {
      font-size: 0.72rem;
      color: #cbd5e1;
      font-weight: 700;
    }

    .trust-choice-status {
      font-size: 0.85rem;
      font-weight: 700;
      text-align: center;
      padding: 8px 12px;
      border-radius: 12px;
      background: #0f172a;
      border: 1px solid var(--border);
    }

    .trust-bluff-bar {
      background: #0f172a;
      border: 1px solid var(--border);
      border-radius: 14px;
      padding: 10px;
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    .trust-bluff-btns {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 6px;
    }

    .btn-bluff {
      background: #1e293b;
      border: 1px solid #334155;
      color: #cbd5e1;
      padding: 8px 6px;
      font-size: 0.75rem;
      font-weight: 700;
      border-radius: 10px;
      cursor: pointer;
      text-align: center;
      transition: all 0.15s ease;
    }

    .btn-bluff:hover {
      background: #334155;
      color: #fff;
      transform: scale(1.02);
    }

    .spectator-header-box {
      background: rgba(56, 189, 248, 0.1);
      border: 1.5px dashed rgba(56, 189, 248, 0.4);
      padding: 10px 14px;
      border-radius: 14px;
      text-align: center;
      display: flex;
      flex-direction: column;
      gap: 2px;
    }

    .spectator-bets-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
      margin-top: 4px;
    }

    .spectator-bet-card {
      background: #0f172a;
      border: 1px solid var(--border);
      border-radius: 14px;
      padding: 10px;
      display: flex;
      flex-direction: column;
      gap: 8px;
      text-align: center;
    }

    .bet-target-title {
      font-size: 0.82rem;
      color: #e2e8f0;
    }

    .bet-btn-row {
      display: flex;
      gap: 6px;
    }

    .btn-bet {
      flex: 1;
      padding: 8px 4px;
      border-radius: 10px;
      border: 1px solid #334155;
      background: #1e293b;
      color: #cbd5e1;
      font-size: 0.78rem;
      font-weight: 800;
      cursor: pointer;
      transition: all 0.2s ease;
    }

    .btn-bet.green.active {
      background: #10b981;
      color: #fff;
      border-color: #10b981;
      box-shadow: 0 0 12px rgba(16, 185, 129, 0.5);
    }

    .btn-bet.red.active {
      background: #ef4444;
      color: #fff;
      border-color: #ef4444;
      box-shadow: 0 0 12px rgba(239, 68, 68, 0.5);
    }

    .trust-bluff-box {
      background: rgba(15, 23, 42, 0.6);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 8px 12px;
      display: flex;
      flex-direction: column;
      gap: 4px;
    }

    .trust-bluff-feed {
      display: flex;
      flex-direction: column;
      gap: 4px;
      max-height: 80px;
      overflow-y: auto;
    }

    .trust-bluff-item {
      font-size: 0.75rem;
      color: #cbd5e1;
      background: rgba(30, 41, 59, 0.7);
      padding: 4px 8px;
      border-radius: 6px;
      animation: fadeIn 0.2s ease;
    }

    .points-lost {
      color: #ef4444;
      font-weight: 800;
      background: rgba(239, 68, 68, 0.15);
      border: 1px solid rgba(239, 68, 68, 0.3);
      border-radius: 8px;
      padding: 2px 8px;
    }

    /* Bil Bakalım Dramatik Sunum Efektleri */
    #guess-showcase-panel {
      animation: fadeIn 0.3s ease-out;
    }

    .reveal-avatar-pop {
      animation: revealAvatarPop 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    }

    @keyframes revealAvatarPop {
      0% {
        transform: scale(0.6);
        opacity: 0.3;
      }
      70% {
        transform: scale(1.15);
      }
      100% {
        transform: scale(1);
        opacity: 1;
      }
    }

    #btn-reveal-guess-author {
      position: relative;
      overflow: hidden;
      animation: pulseAttention 2s infinite ease-in-out;
    }

    @keyframes pulseAttention {
      0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(255, 122, 0, 0.4);
      }
      50% {
        transform: scale(1.02);
        box-shadow: 0 6px 22px rgba(255, 122, 0, 0.7);
      }
    }

    .total-score-pill {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      background: linear-gradient(135deg, rgba(251, 191, 36, 0.18), rgba(245, 158, 11, 0.12));
      color: #fbbf24;
      border: 1px solid rgba(251, 191, 36, 0.4);
      font-size: 0.84rem;
      font-weight: 800;
      padding: 4px 10px;
      border-radius: 8px;
      letter-spacing: 0.3px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    }

/* ========================================================
   🎭 DOĞRU MU YALAN MI? (GERÇEK Mİ EFSANE Mİ?) STILLERI
   ======================================================== */
.fact-action-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  width: 100%;
  margin-top: 6px;
}

@media (max-width: 480px) {
  .fact-action-buttons {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
}

.btn-fact {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px 12px;
  border-radius: 18px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.btn-fact:active:not(:disabled) {
  transform: translateY(3px) scale(0.97);
}

.fact-btn-icon {
  font-size: 2.2rem;
  line-height: 1;
  margin-bottom: 6px;
  transition: transform 0.2s ease;
}

.btn-fact:hover:not(:disabled) .fact-btn-icon {
  transform: scale(1.18);
}

.fact-btn-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.fact-btn-title {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.fact-btn-sub {
  font-size: 0.72rem;
  font-weight: 700;
  opacity: 0.85;
  letter-spacing: 0.3px;
}

/* 🟢 DOĞRU (GERÇEK) BUTONU */
.btn-fact-true {
  background: linear-gradient(145deg, #059669, #047857);
  border-color: #34d399;
  color: #fff;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

.btn-fact-true:hover:not(:disabled) {
  background: linear-gradient(145deg, #10b981, #059669);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
}

/* 🔴 YALAN (EFSANE) BUTONU */
.btn-fact-false {
  background: linear-gradient(145deg, #dc2626, #b91c1c);
  border-color: #f87171;
  color: #fff;
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.3);
}

.btn-fact-false:hover:not(:disabled) {
  background: linear-gradient(145deg, #ef4444, #dc2626);
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.5);
}

/* Seçilmiş / Kilitlenmiş Durum */
.btn-fact.selected {
  outline: 3px solid #fff;
  outline-offset: 3px;
  transform: scale(1.02);
  filter: brightness(1.2);
}

/* 🃏 SORU KARTI OY BUTONLARI */
.card-vote-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 14px;
  cursor: pointer;
  border: 2px solid rgba(245, 158, 11, 0.35);
  background: linear-gradient(145deg, #1e293b, #0f172a);
  color: #fff;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  width: 100%;
}

.card-vote-btn:hover {
  border-color: #f59e0b;
  transform: translateY(-1px);
}

.card-vote-btn:active {
  transform: translateY(2px) scale(0.98);
}

.card-vote-btn.selected {
  border-color: #fbbf24;
  background: linear-gradient(145deg, #b45309, #92400e);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.card-vote-name {
  font-size: 1.05rem;
  font-weight: 800;
}

.card-vote-count {
  font-size: 0.8rem;
  font-weight: 700;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.15);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.btn-fact:disabled:not(.selected) {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.6);
  transform: none;
}

/* Tur Sonu Sonuç Damgası */
.fact-result-stamp {
  display: inline-block;
  font-size: 1.6rem;
  font-weight: 900;
  padding: 10px 24px;
  border-radius: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 6px 0;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  animation: stampPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.fact-result-stamp.fact-true {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(5, 150, 105, 0.35));
  border: 2px solid #10b981;
  color: #34d399;
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.4);
}

.fact-result-stamp.fact-false {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.25), rgba(185, 28, 28, 0.35));
  border: 2px solid #ef4444;
  color: #f87171;
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.4);
}

@keyframes stampPop {
  0% {
    transform: scale(0.6) rotate(-4deg);
    opacity: 0;
  }
  60% {
    transform: scale(1.1) rotate(1deg);
    opacity: 1;
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}
.math-answer-row {
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}

.math-input,
#input-math-answer {
  flex: 1 1 auto;
  width: auto;
  min-width: 110px;
  font-size: 1.6rem;
  font-weight: 900;
  text-align: center;
  padding: 14px 16px;
  border-radius: 14px;
  border: 2px solid #6366f1;
  background: #0f172a;
  color: #fff;
  outline: none;
  appearance: textfield;
  -moz-appearance: textfield;
}

.math-input::-webkit-outer-spin-button,
.math-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.math-input:focus {
  border-color: #818cf8;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

.math-submit-btn,
#btn-submit-math {
  width: auto;
  flex: 0 0 auto;
  font-weight: 900;
  font-size: 1.05rem;
  padding: 14px 28px;
  border-radius: 14px;
  white-space: nowrap;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
}

#math-expression {
  font-size: clamp(1.35rem, 5.5vw, 2rem);
  letter-spacing: 1px;
  overflow-wrap: anywhere;
  white-space: normal;
}

@media (max-width: 560px) {
  .math-answer-row {
    flex-direction: column;
    gap: 8px;
  }

  .math-input,
  #input-math-answer {
    width: 100%;
    min-width: 0;
    font-size: 1.9rem;
    padding: 16px;
    border-radius: 16px;
  }

  .math-submit-btn,
  #btn-submit-math {
    width: 100%;
    font-size: 1.1rem;
    padding: 16px;
  }
}

/* ========================================================
   🔌 BAĞLANTI KOPMA VE YENİDEN BAĞLANMA BİLDİRİMİ
   ======================================================== */
.connection-pill {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  z-index: 9999999;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.2px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.connection-pill.hidden {
  transform: translateX(-50%) translateY(-60px);
  opacity: 0;
  pointer-events: none;
}

.connection-pill.offline {
  background: rgba(239, 68, 68, 0.94);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.connection-pill.offline .pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  animation: pulse-dot 1s infinite alternate;
}

.connection-pill.online {
  background: rgba(16, 185, 129, 0.94);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.connection-pill.online .pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
}

@keyframes pulse-dot {
  from { opacity: 0.4; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1.15); }
}

/* ======================================================== */
/* 🕵️ ARAMIZDAKİ CASUS MODU STİLLERİ                         */
/* ======================================================== */

.spy-role-banner {
  border-radius: 18px;
  padding: 22px 18px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.45);
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
}

.spy-role-banner.spy-theme {
  background: radial-gradient(circle at center, #3b0764 0%, #1e1b4b 60%, #0f172a 100%);
  border: 2px solid #e11d48;
  box-shadow: 0 0 25px rgba(225, 29, 72, 0.4);
}

.spy-role-banner.innocent-theme {
  background: radial-gradient(circle at center, #064e3b 0%, #0f172a 100%);
  border: 2px solid #10b981;
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.35);
}

.spy-role-badge {
  display: inline-block;
  background: rgba(225, 29, 72, 0.3);
  color: #f43f5e;
  border: 1px solid #e11d48;
  font-weight: 900;
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 1px;
}

.innocent-role-badge {
  display: inline-block;
  background: rgba(16, 185, 129, 0.25);
  color: #34d399;
  border: 1px solid #10b981;
  font-weight: 900;
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.spy-role-title {
  color: #f43f5e;
  font-size: 1.6rem;
  font-weight: 900;
  margin: 10px 0 6px 0;
  letter-spacing: 0.5px;
  animation: pulse-dot 1.5s infinite alternate;
}

.innocent-location-title {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 900;
  margin: 6px 0;
}

.spy-role-desc, .innocent-role-desc {
  font-size: 0.9rem;
  color: #cbd5e1;
  line-height: 1.45;
  margin-top: 6px;
}

.btn-spy-directory {
  margin-top: 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px dashed #f43f5e;
  color: #cbd5e1;
  padding: 9px 16px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-spy-directory:hover {
  background: rgba(225, 29, 72, 0.2);
  color: #fff;
}

.spy-clues-box {
  background: #090d16;
  border: 1.5px solid #1e293b;
  border-radius: 14px;
  padding: 12px;
  max-height: 220px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.spy-clue-bubble {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 8px 12px;
  max-width: 85%;
  align-self: flex-start;
}

.spy-clue-bubble.my-clue {
  background: rgba(16, 185, 129, 0.2);
  border-color: #10b981;
  align-self: flex-end;
}

.spy-clue-author {
  font-size: 0.72rem;
  font-weight: 800;
  color: #38bdf8;
  margin-bottom: 2px;
}

.spy-clue-bubble.my-clue .spy-clue-author {
  color: #34d399;
}

.spy-clue-text {
  font-size: 0.88rem;
  color: #f1f5f9;
  line-height: 1.35;
  word-break: break-word;
}

.spy-vote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
}

.spy-vote-card {
  background: #1e293b;
  border: 2px solid #334155;
  border-radius: 14px;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.spy-vote-card:hover {
  border-color: #f43f5e;
  transform: translateY(-2px);
}

.spy-vote-card.selected {
  background: rgba(225, 29, 72, 0.2);
  border-color: #e11d48;
  box-shadow: 0 0 16px rgba(225, 29, 72, 0.4);
}

.spy-vote-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spy-vote-name {
  font-size: 0.9rem;
  font-weight: 800;
  color: #f8fafc;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spy-vote-tally {
  font-size: 0.78rem;
  font-weight: 800;
  color: #94a3b8;
  background: #0f172a;
  padding: 3px 8px;
  border-radius: 8px;
}

.spy-guess-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 8px;
  max-height: 300px;
  overflow-y: auto;
  padding-right: 4px;
}

.spy-guess-loc-btn {
  background: #1e293b;
  border: 1px solid #334155;
  color: #f8fafc;
  padding: 10px 8px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
}

.spy-guess-loc-btn:hover {
  background: #e11d48;
  border-color: #f43f5e;
  color: #fff;
}

.spy-dir-item {
  background: #1e293b;
  border: 1px solid #334155;
  padding: 8px 12px;
  border-radius: 10px;
}