
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    :root {
      --cinema-wallpaper: url('/bg/cinema_bg.webp');
      /* ── CLAYMORPHISM PALETTE (light pastel) ── */
      --bg-dark: #e9e4ff;
      --bg-light: #ffe9f3;
      --neon-pink: #ff7eb6;
      --neon-blue: #57c3e0;
      --neon-purple: #a06bd6;
      --gold: #f0a828;
      --white: #4a3d6b;
      /* clay "ink" — global text colour */
      --gray: #8a7bb0;
      --glass: rgba(255, 255, 255, 0.55);
      --glass-border: rgba(160, 120, 214, 0.30);
      --success: #3fbf8f;
      --warning: #f2a71b;
      --danger: #e5605e;
      --teal: #3fb9ad;
      /* clay helpers */
      --clay-surface: #f3eaff;
      --clay-surface-2: #efe6ff;
      --clay-ink: #4a3d6b;
      --clay-ink-soft: #7a6ba0;
      --clay-shadow-dark: #c9bce6;
      --clay-shadow-light: #ffffff;
      --clay-accent: #ff7eb6;
      --clay-accent-2: #a06bd6;
    }

    html, body {
      background: #F4EEDC var(--cinema-wallpaper) no-repeat center center fixed !important;
      background-size: cover !important;
      -webkit-background-size: cover !important;
      overflow-x: hidden !important;
    }

    #app {
      width: 100%;
      height: 100%;
      position: relative;
      z-index: 1;
      transition: background 0.7s ease;
    }

    .screen {
      display: none;
      width: 100%;
      height: 100%;
      position: absolute;
      top: 0;
      left: 0;
    }

    .screen.active {
      display: flex;
    }

    .screen-flash {
      position: fixed;
      inset: 0;
      background: #fff;
      opacity: 0;
      pointer-events: none;
      z-index: 9999;
    }

    .screen-flash.go {
      animation: flashOut .4s ease-out forwards;
    }

    @keyframes flashOut {
      0% {
        opacity: .95
      }

      100% {
        opacity: 0
      }
    }

    /* ══ NEOBRUTALISM HOME ══ */
    #homeScreen {
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 0;
      overflow: hidden;
      background: transparent !important;
      position: relative;
    }

    /* Decorative geometric shapes */
    .nb-shapes {
      position: absolute;
      inset: 0;
      pointer-events: none;
      z-index: 0;
      overflow: hidden;
    }

    .nb-shape {
      position: absolute;
      border: 3px solid var(--nb-ink, #1a1a1a);
      animation: nbFloat 6s ease-in-out infinite;
    }

    .nb-circle {
      width: 48px;
      height: 48px;
      border-radius: 50%;
    }

    .nb-square {
      width: 40px;
      height: 40px;
      border-radius: 0;
      transform: rotate(12deg);
    }

    .nb-diamond {
      width: 32px;
      height: 32px;
      border-radius: 0;
      transform: rotate(45deg);
    }

    .nb-star-shape {
      width: auto;
      height: auto;
      border: none;
      font-size: 36px;
      line-height: 1;
      filter: drop-shadow(2px 2px 0 var(--nb-ink, #1a1a1a));
    }

    .nb-sm { width: 28px; height: 28px; }
    .nb-xs { width: 18px; height: 18px; }
    .nb-sm.nb-star-shape, .nb-xs.nb-star-shape { width: auto; height: auto; font-size: 22px; }
    .nb-sm.nb-star-shape { font-size: 22px; }

    @keyframes nbFloat {
      0%, 100% { transform: translateY(0) rotate(var(--nb-rot, 0deg)); }
      50% { transform: translateY(-10px) rotate(var(--nb-rot, 0deg)); }
    }

    .nb-square { --nb-rot: 12deg; }
    .nb-diamond { --nb-rot: 45deg; }

    @keyframes nbFloat {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-12px); }
    }

    .nb-shape:nth-child(odd) { animation-delay: -2s; }
    .nb-shape:nth-child(3n) { animation-duration: 8s; }
    .nb-shape:nth-child(4n) { animation-duration: 5s; animation-delay: -1s; }

    /* Film strip marquee — neobrutalist */
    .h-filmstrip {
      position: absolute;
      top: 0;
      left: 0;
      width: max-content;
      min-width: 200%;
      display: flex;
      align-items: stretch;
      gap: 0;
      background: var(--nb-ink, #1a1a1a);
      border-bottom: 3px solid var(--nb-ink, #1a1a1a);
      z-index: 1;
      animation: filmScroll 30s linear infinite;
      transform: translateZ(0);
    }

    @keyframes filmScroll {
      0% { transform: translateX(0); }
      100% { transform: translateX(-50%); }
    }

    .h-film-cell {
      flex-shrink: 0;
      padding: 10px 20px;
      font-family: 'Space Mono', monospace;
      font-size: 12px;
      font-weight: 700;
      letter-spacing: 2px;
      color: var(--nb-bg, #FFFDF5);
      text-transform: uppercase;
      border-right: 2px solid rgba(255,253,245,.2);
      display: flex;
      align-items: center;
    }

    .h-film-cell:nth-child(5n+1) { background: var(--nb-pink, #FF6B9D); color: var(--nb-ink, #1a1a1a); }
    .h-film-cell:nth-child(5n+2) { background: var(--nb-ink, #1a1a1a); color: var(--nb-bg, #FFFDF5); }
    .h-film-cell:nth-child(5n+3) { background: var(--nb-blue, #3B82F6); color: #fff; }
    .h-film-cell:nth-child(5n+4) { background: var(--nb-yellow, #FACC15); color: var(--nb-ink, #1a1a1a); }
    .h-film-cell:nth-child(5n+5) { background: var(--nb-ink, #1a1a1a); color: var(--nb-bg, #FFFDF5); }

    .h-film-hole { display: none; }

    /* Hero block — neobrutalist */
    .h-hero {
      position: relative;
      z-index: 2;
      text-align: center;
      padding: 0 20px;
      margin-top: 30px;
      animation: nbHeroIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
    }

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

    .h-eyebrow {
      display: inline-block;
      font-family: 'Space Mono', monospace;
      font-size: clamp(11px, 1.6vw, 14px);
      font-weight: 700;
      letter-spacing: 3px;
      text-transform: uppercase;
      color: var(--nb-ink, #1a1a1a);
      padding: 7px 18px;
      border: 3px solid var(--nb-ink, #1a1a1a);
      border-radius: 0;
      background: var(--nb-yellow, #FACC15);
      box-shadow: 4px 4px 0 var(--nb-ink, #1a1a1a);
      margin-bottom: 24px;
      transform: rotate(-2deg);
    }

    .h-title-wrap {
      line-height: 1;
      margin-bottom: 8px;
    }

    .h-title {
      font-family: 'DM Sans', sans-serif;
      font-size: clamp(30px, 8vw, 80px);
      font-weight: 900;
      letter-spacing: 8px;
      padding-right: 8px;
      color: var(--nb-ink, #1a1a1a);
      margin: 0;
      text-transform: uppercase;
    }

    .h-title-accent {
      font-family: 'DM Sans', sans-serif;
      font-size: clamp(58px, 17vw, 170px);
      font-weight: 900;
      letter-spacing: -3px;
      line-height: 0.85;
      color: var(--nb-ink, #1a1a1a);
      text-shadow: 6px 6px 0 var(--nb-pink, #FF6B9D);
      transform: rotate(1deg);
      -webkit-text-fill-color: var(--nb-ink, #1a1a1a);
      background: none;
      background-clip: unset;
      -webkit-background-clip: unset;
      filter: none;
      animation: none;
    }

    .h-sub {
      font-family: 'Space Mono', monospace;
      font-size: clamp(12px, 1.8vw, 16px);
      font-weight: 400;
      color: var(--nb-ink, #1a1a1a);
      letter-spacing: 3px;
      text-transform: uppercase;
      margin-top: 18px;
      opacity: 0.7;
    }

    .h-sub strong {
      font-weight: 700;
      background: var(--nb-blue, #3B82F6);
      color: #fff;
      padding: 2px 12px;
      border: 2px solid var(--nb-ink, #1a1a1a);
      box-shadow: 2px 2px 0 var(--nb-ink, #1a1a1a);
      opacity: 1;
    }

    /* Action cards — neobrutalist */
    .h-cards {
      position: relative;
      z-index: 2;
      display: flex;
      flex-direction: column;
      gap: 14px;
      width: min(100%, 420px);
      padding: 0 24px;
      margin: 36px auto 0;
      animation: nbHeroIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
    }

    .h-card {
      position: relative;
      display: flex;
      align-items: center;
      gap: 0;
      padding: 20px 26px;
      border: 3px solid var(--nb-ink, #1a1a1a);
      border-radius: 0;
      background: var(--nb-pink, #FF6B9D);
      box-shadow: 5px 5px 0 var(--nb-ink, #1a1a1a);
      cursor: pointer;
      text-align: left;
      color: var(--nb-ink, #1a1a1a);
      font-family: inherit;
      overflow: hidden;
      transition: transform 0.15s ease, box-shadow 0.15s ease;
      backdrop-filter: none;
    }

    .h-card:hover {
      transform: translate(-3px, -3px);
      box-shadow: 8px 8px 0 var(--nb-ink, #1a1a1a);
      border-color: var(--nb-ink, #1a1a1a);
    }

    .h-card:active {
      transform: translate(2px, 2px);
      box-shadow: 2px 2px 0 var(--nb-ink, #1a1a1a);
    }

    .h-card-resume {
      background: var(--nb-yellow, #FACC15) !important;
    }

    .h-card-glow { display: none; }
    .h-card-arrow { display: none; }

    .h-card-body {
      flex: 1;
    }

    .h-card-title {
      font-family: 'DM Sans', sans-serif;
      font-size: clamp(18px, 3.2vw, 24px);
      font-weight: 900;
      letter-spacing: 0.5px;
      margin-bottom: 4px;
      text-transform: uppercase;
    }

    .h-card-desc {
      font-size: clamp(12px, 1.7vw, 14px);
      color: var(--nb-ink, #1a1a1a);
      font-weight: 500;
      opacity: 0.7;
    }

    /* Bottom caption — neobrutalist */
    .h-footer {
      position: relative;
      z-index: 2;
      font-family: 'Space Mono', monospace;
      font-size: clamp(11px, 1.5vw, 14px);
      color: var(--nb-ink, #1a1a1a);
      letter-spacing: 3px;
      text-transform: uppercase;
      font-weight: 700;
      margin-top: 40px;
      padding: 10px 24px;
      border: 3px solid var(--nb-ink, #1a1a1a);
      background: var(--nb-bg, #FFFDF5);
      box-shadow: 3px 3px 0 var(--nb-ink, #1a1a1a);
      animation: nbHeroIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both;
    }

    .h-footer em {
      font-style: italic;
      color: var(--nb-pink, #FF6B9D);
      font-weight: 700;
    }

    /* Secret hint — neobrutalist */
    .h-secret-hint {
      position: fixed;
      bottom: 18px;
      right: 20px;
      font-family: 'Space Mono', monospace;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 2px;
      text-transform: uppercase;
      color: var(--nb-ink, #1a1a1a);
      background: var(--nb-yellow, #FACC15);
      border: 3px solid var(--nb-ink, #1a1a1a);
      box-shadow: 3px 3px 0 var(--nb-ink, #1a1a1a);
      border-radius: 0;
      padding: 6px 14px;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.3s ease;
      z-index: 9999;
    }

    .h-secret-hint.show {
      opacity: 1;
    }

    /* Glowing orbs — hidden in neobrutalism */
    .h-orb { display: none; }
    .h-stars { display: none; }
    .h-star { display: none; }



    .btn-primary {
      padding: 16px 56px;
      font-size: clamp(15px, 2.4vw, 21px);
      font-weight: 600;
      font-family: inherit;
      border: none;
      border-radius: 50px;
      background: linear-gradient(135deg, var(--neon-pink), #ff6b6b);
      color: #fff;
      cursor: pointer;
      transition: all .3s;
      box-shadow: 0 10px 38px rgba(255, 46, 146, .38);
    }

    .btn-primary:disabled,
    .btn-start:disabled {
      opacity: 0.45;
      cursor: not-allowed;
      transform: none;
      box-shadow: none;
      filter: grayscale(0.3);
    }

    .btn-primary:hover:not(:disabled),
    .btn-start:hover:not(:disabled) {
      transform: scale(1.05);
      box-shadow: 0 14px 48px rgba(255, 46, 146, .58);
    }

    .btn-secondary {
      padding: 11px 28px;
      font-size: clamp(12px, 1.7vw, 15px);
      font-weight: 500;
      font-family: inherit;
      border: 1px solid var(--glass-border);
      border-radius: 28px;
      background: var(--glass);
      backdrop-filter: blur(10px);
      color: var(--gray);
      cursor: pointer;
      transition: all .3s;
    }

    .btn-secondary:hover {
      border-color: var(--gold);
      color: var(--gold);
    }


    .btn-outline {
      padding: 11px 28px;
      font-size: clamp(12px, 1.7vw, 15px);
      font-weight: 500;
      font-family: inherit;
      border: 1px solid rgba(0, 212, 255, .4);
      border-radius: 28px;
      background: rgba(0, 212, 255, .05);
      color: var(--neon-blue);
      cursor: pointer;
      transition: all .3s;
    }

    .btn-outline:hover {
      border-color: var(--neon-blue);
      background: rgba(0, 212, 255, .12);
      transform: scale(1.03);
    }



    .rule-screen {
      width: 100%;
      max-width: 1120px;
      min-height: min-content;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: clamp(18px, 3vw, 28px);
    }

    .rule-eyebrow {
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 3px;
      text-transform: uppercase;
      color: var(--neon-blue);
      padding: 5px 18px;
      border: 1px solid rgba(0, 212, 255, .3);
      border-radius: 28px;
      background: rgba(0, 212, 255, .08);
    }

    .rule-headline {
      font-size: clamp(34px, 7vw, 72px);
      font-weight: 900;
      text-align: center;
      background: linear-gradient(90deg, #fff 30%, rgba(255, 255, 255, .6));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      margin: -10px 0 0;
      letter-spacing: -1px;
    }

    .rule-cards {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 20px;
      width: 100%;
      align-items: stretch;
    }

    .rule-card {
      background: var(--glass);
      backdrop-filter: blur(18px);
      border-radius: 18px;
      padding: clamp(20px, 2.6vw, 28px);
      display: flex;
      flex-direction: column;
      gap: 11px;
      border: 1.5px solid var(--glass-border);
      transition: transform .25s ease, box-shadow .25s ease;
    }

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

    .rule-card.franchise {
      border-color: rgba(255, 46, 146, .35);
      box-shadow: 0 0 40px rgba(255, 46, 146, .1);
    }

    .rule-card.standalone {
      border-color: rgba(74, 222, 128, .35);
      box-shadow: 0 0 40px rgba(74, 222, 128, .1);
    }



    .rule-card-icon {
      font-size: 40px;
      line-height: 1;
    }

    .rule-card-tag {
      font-size: 10px;
      font-weight: 800;
      letter-spacing: 2.5px;
      text-transform: uppercase;
    }

    .franchise .rule-card-tag {
      color: var(--neon-pink);
    }

    .standalone .rule-card-tag {
      color: #4ade80;
    }



    .rule-card-title {
      font-size: clamp(20px, 2.7vw, 28px);
      font-weight: 900;
      color: var(--white);
      line-height: 1.15;
    }

    .rule-card-desc {
      font-size: clamp(13px, 1.6vw, 15px);
      color: var(--gray);
      line-height: 1.55;
    }

    .rule-card-desc strong {
      color: var(--white);
      font-weight: 700;
    }

    .round-summary-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 14px;
      width: 100%;
    }

    .round-summary-card {
      padding: 16px;
      border-radius: 14px;
      background: rgba(0, 0, 0, .25);
      border: 1px solid var(--glass-border);
      text-align: center;
    }

    .round-summary-card .label {
      font-size: 10px;
      font-weight: 800;
      letter-spacing: 2px;
      text-transform: uppercase;
      color: var(--gray);
      margin-bottom: 7px;
    }

    .round-summary-card .value {
      font-size: clamp(22px, 4vw, 34px);
      font-weight: 900;
      color: var(--white);
      line-height: 1;
    }

    .round-detail-list {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 18px;
      width: 100%;
    }

    .round-detail-card {
      background: var(--glass);
      border: 1.5px solid var(--glass-border);
      border-radius: 18px;
      padding: clamp(18px, 2.5vw, 24px);
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .round-detail-card:nth-child(3n+1) {
      border-color: rgba(255, 46, 146, .35);
    }

    .round-detail-card:nth-child(3n+2) {
      border-color: rgba(0, 212, 255, .35);
    }

    .round-detail-card:nth-child(3n) {
      border-color: rgba(255, 215, 0, .38);
    }

    .round-detail-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
    }

    .round-detail-name {
      font-size: clamp(18px, 2.2vw, 24px);
      font-weight: 900;
      color: var(--white);
      line-height: 1.15;
    }

    .round-detail-count {
      flex-shrink: 0;
      padding: 7px 11px;
      border-radius: 999px;
      background: rgba(255, 215, 0, .12);
      border: 1px solid rgba(255, 215, 0, .28);
      color: var(--gold);
      font-size: 12px;
      font-weight: 800;
    }

    .round-detail-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .round-detail-meta span {
      padding: 7px 9px;
      border-radius: 9px;
      background: rgba(255, 255, 255, .05);
      color: var(--gray);
      font-size: 12px;
      font-weight: 700;
    }

    .round-empty {
      width: 100%;
      padding: 24px;
      border: 1px dashed var(--glass-border);
      border-radius: 16px;
      color: var(--gray);
      text-align: center;
    }

    .rule-card-example {
      display: flex;
      flex-direction: column;
      gap: 8px;
      margin-top: auto;
      padding: 13px 14px;
      background: rgba(0, 0, 0, .25);
      border-radius: 12px;
      border: 1px solid rgba(255, 255, 255, .06);
    }

    .rule-list {
      display: flex;
      flex-direction: column;
      gap: 9px;
      margin-top: auto;
      padding: 13px 14px;
      background: rgba(0, 0, 0, .25);
      border-radius: 12px;
      border: 1px solid rgba(255, 255, 255, .06);
    }

    .rule-list span {
      display: flex;
      align-items: flex-start;
      gap: 8px;
      color: var(--white);
      font-size: clamp(12px, 1.25vw, 14px);
      line-height: 1.35;
      font-weight: 600;
    }

    .ex-wrong,
    .ex-right {
      display: flex;
      align-items: flex-start;
      gap: 8px;
      font-family: 'JetBrains Mono', 'Courier New', monospace;
      font-size: clamp(11px, 1.25vw, 13px);
      font-weight: 600;
      letter-spacing: .3px;
      line-height: 1.35;
    }

    .ex-wrong {
      color: #f87171;
    }

    .ex-right {
      color: #4ade80;
    }

    .ex-divider {
      display: block;
      height: 1px;
      background: rgba(255, 255, 255, .07);
      margin: 4px 0;
    }

    .rule-cta {
      display: flex;
      flex-direction: row;
      align-items: center;
      justify-content: center;
      gap: 14px;
      flex-wrap: wrap;
    }

    .rule-cta .btn-start {
      font-size: clamp(16px, 2.5vw, 20px);
      font-weight: 800;
      padding: 16px 44px;
      border-radius: 50px;
      border: none;
      background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple));
      color: #fff;
      cursor: pointer;
      letter-spacing: .5px;
      box-shadow: 0 8px 32px rgba(255, 46, 146, .4);
      transition: transform .2s ease, box-shadow .2s ease;
    }

    .rule-cta .btn-start:hover {
      transform: translateY(-3px) scale(1.03);
      box-shadow: 0 14px 48px rgba(255, 46, 146, .55);
    }

    .rule-cta .back-lnk {
      background: none;
      border: none;
      color: var(--gray);
      font-size: 14px;
      cursor: pointer;
      transition: color .2s;
    }

    .rule-cta .back-lnk:hover {
      color: var(--white);
    }

    .rule-points-info {
      display: flex;
      gap: 12px;
      justify-content: center;
      flex-wrap: wrap;
      width: 100%;
      color: var(--gray);
      font-size: 14px;
    }

    .rule-points-info span {
      padding: 9px 14px;
      border-radius: 999px;
      background: rgba(255, 255, 255, .05);
      border: 1px solid var(--glass-border);
    }

    /* ── KEYBOARD SHORTCUTS SECTION ── */
    .kbd-shortcuts {
      width: 100%;
      margin-top: 8px;
    }

    .kbd-shortcuts-title {
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 2.5px;
      text-transform: uppercase;
      color: var(--gray);
      text-align: center;
      margin-bottom: 12px;
    }

    .kbd-shortcuts-title svg {
      width: 14px;
      height: 14px;
      vertical-align: -2px;
      margin-right: 5px;
    }

    .kbd-list {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
      gap: 10px;
      list-style: none;
      padding: 0;
      margin: 0;
    }

    .kbd-item {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 10px 16px;
      border-radius: 14px;
      background: rgba(255, 255, 255, .05);
      border: 1px solid var(--glass-border);
      font-size: 13px;
      color: var(--gray);
      line-height: 1.4;
    }

    .kbd-key {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 38px;
      height: 30px;
      padding: 0 10px;
      border-radius: 8px;
      background: rgba(160, 107, 214, .15);
      border: 1px solid rgba(160, 107, 214, .3);
      color: var(--neon-purple);
      font-family: 'JetBrains Mono', monospace;
      font-size: 12px;
      font-weight: 700;
      flex-shrink: 0;
      letter-spacing: 0.5px;
    }

    .kbd-desc {
      color: var(--white);
      font-weight: 500;
    }

    .kbd-desc em {
      font-style: normal;
      color: var(--gray);
      font-weight: 400;
      font-size: 12px;
    }


    /* ══ MODAL ══ */
    .modal-overlay {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, .8);
      backdrop-filter: blur(10px);
      z-index: 1000;
      align-items: center;
      justify-content: center;
      padding: 18px;
    }

    .modal-overlay.active {
      display: flex;
    }

    .modal-content {
      background: linear-gradient(135deg, rgba(30, 30, 50, .96), rgba(20, 20, 35, .96));
      border: 1px solid var(--glass-border);
      border-radius: 22px;
      padding: 28px;
      max-width: 1100px;
      width: 100%;
      max-height: 90vh;
      overflow-y: auto;
    }

    .modal-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 28px;
      padding-bottom: 18px;
      border-bottom: 1px solid var(--glass-border);
    }

    .modal-header h2 {
      font-size: clamp(19px, 2.8vw, 26px);
      font-weight: 700;
    }

    .close-btn {
      width: 38px;
      height: 38px;
      border: none;
      border-radius: 50%;
      background: var(--glass);
      color: var(--gray);
      font-size: 22px;
      cursor: pointer;
      transition: all .3s;
    }

    .close-btn:hover {
      background: rgba(255, 46, 146, .2);
      color: var(--neon-pink);
    }

    .admin-tabs {
      display: flex;
      gap: 9px;
      margin-bottom: 22px;
      flex-wrap: wrap;
    }

    .admin-tab {
      padding: 11px 22px;
      font-size: 13px;
      font-family: inherit;
      font-weight: 500;
      border: 1px solid var(--glass-border);
      border-radius: 28px;
      background: var(--glass);
      color: var(--gray);
      cursor: pointer;
      transition: all .3s;
    }

    .admin-tab.active {
      background: linear-gradient(135deg, var(--neon-pink), #ff6b6b);
      border-color: var(--neon-pink);
      color: #fff;
    }

    .admin-tab .lock-icon {
      margin-left: 5px;
      font-size: 11px;
    }

    /* Password Lock Overlay */
    .pw-overlay {
      display: none;
      position: absolute;
      inset: 0;
      background: rgba(0, 0, 0, .85);
      backdrop-filter: blur(14px);
      z-index: 100;
      align-items: center;
      justify-content: center;
      border-radius: 22px;
    }

    .pw-overlay.active {
      display: flex;
    }

    .pw-box {
      background: linear-gradient(135deg, rgba(30, 30, 55, .98), rgba(20, 20, 40, .98));
      border: 1px solid rgba(255, 46, 146, .3);
      border-radius: 20px;
      padding: 36px 32px;
      max-width: 380px;
      width: 90%;
      text-align: center;
      animation: pwFadeIn .35s ease;
      position: relative;
      box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
    }

    @keyframes pwFadeIn {
      from {
        opacity: 0;
        transform: scale(.85) translateY(20px)
      }

      to {
        opacity: 1;
        transform: scale(1) translateY(0)
      }
    }

    .pw-box .pw-icon {
      font-size: 48px;
      margin-bottom: 14px;
      filter: drop-shadow(0 0 20px rgba(255, 46, 146, .5));
    }

    .pw-box h3 {
      font-size: 18px;
      font-weight: 700;
      color: var(--neon-pink);
      margin-bottom: 6px;
    }

    .pw-box p {
      font-size: 12px;
      color: var(--gray);
      margin-bottom: 20px;
      line-height: 1.5;
    }

    .pw-input-wrap {
      position: relative;
      margin-bottom: 16px;
    }

    .pw-input-wrap input {
      width: 100%;
      padding: 13px 44px 13px 16px;
      font-size: 14px;
      font-family: inherit;
      border: 2px solid var(--glass-border);
      border-radius: 12px;
      background: rgba(0, 0, 0, .4);
      color: var(--white);
      letter-spacing: 2px;
      transition: border-color .3s;
    }

    .pw-input-wrap input:focus {
      outline: none;
      border-color: var(--neon-pink);
      box-shadow: 0 0 20px rgba(255, 46, 146, .2);
    }

    .pw-input-wrap input.pw-error {
      border-color: var(--danger);
      animation: pwShake .4s ease;
    }

    @keyframes pwShake {

      0%,
      100% {
        transform: translateX(0)
      }

      20% {
        transform: translateX(-8px)
      }

      40% {
        transform: translateX(8px)
      }

      60% {
        transform: translateX(-5px)
      }

      80% {
        transform: translateX(5px)
      }
    }

    .pw-toggle {
      position: absolute;
      right: 12px;
      top: 50%;
      transform: translateY(-50%);
      background: none;
      border: none;
      color: var(--gray);
      font-size: 16px;
      cursor: pointer;
      padding: 4px;
    }

    .pw-submit {
      width: 100%;
      padding: 12px;
      font-size: 14px;
      font-weight: 600;
      font-family: inherit;
      border: none;
      border-radius: 12px;
      background: linear-gradient(135deg, var(--neon-pink), #ff6b6b);
      color: #fff;
      cursor: pointer;
      transition: all .3s;
      box-shadow: 0 8px 28px rgba(255, 46, 146, .35);
    }

    .pw-submit:hover {
      transform: translateY(-2px);
      box-shadow: 0 12px 36px rgba(255, 46, 146, .5);
    }

    .pw-error-msg {
      font-size: 11px;
      color: var(--danger);
      margin-top: 8px;
      min-height: 16px;
      opacity: 0;
      transition: opacity .3s;
    }

    .pw-error-msg.visible {
      opacity: 1;
    }

    .pw-cancel {
      background: none;
      border: none;
      color: var(--gray);
      font-family: inherit;
      font-size: 12px;
      cursor: pointer;
      margin-top: 12px;
      text-decoration: underline;
      text-underline-offset: 3px;
      transition: color .2s;
    }

    .pw-cancel:hover {
      color: var(--white);
    }

    .admin-tab-content {
      display: none;
    }

    .admin-tab-content.active {
      display: block;
    }

    .admin-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
      gap: 22px;
    }

    .admin-section {
      background: var(--glass);
      border: 1px solid var(--glass-border);
      border-radius: 15px;
      padding: 18px;
    }

    .admin-section.full-width {
      grid-column: 1/-1;
    }

    .admin-section h3 {
      font-size: 15px;
      font-weight: 600;
      margin-bottom: 14px;
      color: var(--gold);
    }

    .input-group {
      margin-bottom: 12px;
    }

    .input-group label {
      display: block;
      font-size: 11px;
      color: var(--gray);
      margin-bottom: 5px;
    }

    .input-group input,
    .input-group textarea,
    .input-group select {
      width: 100%;
      padding: 10px 14px;
      font-size: 13px;
      font-family: inherit;
      border: 1px solid var(--glass-border);
      border-radius: 9px;
      background: rgba(0, 0, 0, .3);
      color: var(--white);
      transition: all .3s;
    }

    .input-group input:focus,
    .input-group textarea:focus {
      outline: none;
      border-color: var(--neon-pink);
    }

    .input-group textarea {
      resize: vertical;
      min-height: 75px;
    }

    .section-list {
      display: flex;
      flex-direction: column;
      gap: 18px;
    }

    .section-card {
      background: rgba(0, 0, 0, .3);
      border: 1px solid var(--glass-border);
      border-radius: 15px;
      overflow: hidden;
    }

    .section-card.collapsed .section-content {
      display: none;
    }

    .section-card-header {
      display: flex;
      align-items: center;
      gap: 11px;
      padding: 14px 18px;
      background: linear-gradient(135deg, rgba(179, 71, 234, .2), rgba(0, 212, 255, .1));
      border-bottom: 1px solid var(--glass-border);
      cursor: pointer;
    }

    .section-icon-select {
      font-size: 18px;
      padding: 3px;
      border: 1px solid var(--glass-border);
      border-radius: 7px;
      background: rgba(0, 0, 0, .3);
      color: var(--white);
      cursor: pointer;
    }

    .section-card-header input[type=text] {
      flex: 1;
      padding: 7px 11px;
      font-size: 15px;
      font-weight: 600;
      font-family: inherit;
      border: 1px solid transparent;
      border-radius: 7px;
      background: transparent;
      color: var(--white);
    }

    .section-card-header input[type=text]:focus {
      outline: none;
      border-color: var(--neon-purple);
      background: rgba(0, 0, 0, .3);
    }

    .section-meta {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .section-meta .rc {
      font-size: 11px;
      color: var(--gray);
      background: var(--glass);
      padding: 3px 9px;
      border-radius: 11px;
    }

    .section-meta button {
      width: 30px;
      height: 30px;
      border: none;
      border-radius: 7px;
      background: var(--glass);
      color: var(--gray);
      cursor: pointer;
      transition: all .2s;
      font-size: 15px;
    }

    .section-meta button:hover {
      background: rgba(255, 46, 146, .2);
      color: var(--neon-pink);
    }

    .section-content {
      padding: 18px;
    }

    .frame-list {
      max-height: 380px;
      overflow-y: auto;
    }

    .frame-item {
      display: flex;
      flex-direction: column;
      gap: 9px;
      padding: 13px;
      background: rgba(0, 0, 0, .2);
      border-radius: 11px;
      margin-bottom: 10px;
      border: 1px solid var(--glass-border);
    }

    .frame-item-hdr {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .frame-item-hdr .fn {
      font-size: 11px;
      color: var(--neon-blue);
      font-weight: 600;
    }

    .frame-item-hdr button {
      width: 26px;
      height: 26px;
      border: none;
      border-radius: 5px;
      background: rgba(255, 46, 146, .2);
      color: var(--neon-pink);
      cursor: pointer;
      font-size: 15px;
    }

    .frame-item-row {
      display: flex;
      gap: 9px;
      align-items: center;
    }

    .frame-item-row label {
      font-size: 10px;
      color: var(--gray);
      min-width: 48px;
    }

    .frame-item-row input,
    .frame-item-row select {
      flex: 1;
      padding: 9px 11px;
      font-size: 12px;
      font-family: inherit;
      border: 1px solid var(--glass-border);
      border-radius: 7px;
      background: rgba(0, 0, 0, .3);
      color: var(--white);
    }

    .frame-item-row select option {
      background: var(--bg-dark);
    }

    .add-frame-btn,
    .add-section-btn,
    .add-player-btn {
      width: 100%;
      padding: 11px;
      border: 2px dashed var(--glass-border);
      border-radius: 9px;
      background: transparent;
      color: var(--gray);
      font-family: inherit;
      font-size: 13px;
      cursor: pointer;
      transition: all .3s;
    }

    .add-frame-btn:hover {
      border-color: var(--neon-blue);
      color: var(--neon-blue);
    }

    .add-section-btn {
      margin-top: 18px;
      border-color: var(--neon-purple);
      color: var(--neon-purple);
      font-weight: 600;
    }

    .add-section-btn:hover {
      background: rgba(179, 71, 234, .1);
    }

    .add-player-btn:hover {
      border-color: var(--gold);
      color: var(--gold);
    }

    .player-list {
      max-height: 230px;
      overflow-y: auto;
    }

    .player-item {
      display: flex;
      align-items: center;
      gap: 9px;
      margin-bottom: 7px;
    }

    .player-item input {
      flex: 1;
      padding: 9px 13px;
      font-size: 12px;
      font-family: inherit;
      border: 1px solid var(--glass-border);
      border-radius: 7px;
      background: rgba(0, 0, 0, .3);
      color: var(--white);
    }

    .player-item button {
      width: 30px;
      height: 30px;
      border: none;
      border-radius: 7px;
      background: rgba(255, 46, 146, .2);
      color: var(--neon-pink);
      cursor: pointer;
    }

    .judge-info-panel {
      background: linear-gradient(135deg, rgba(255, 215, 0, .09), rgba(255, 170, 0, .05));
      border: 1px solid rgba(255, 215, 0, .2);
      border-radius: 11px;
      padding: 14px;
      margin-top: 14px;
    }

    .judge-info-panel h4 {
      font-size: 13px;
      color: var(--gold);
      margin-bottom: 10px;
    }

    .judge-stats {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 9px;
    }

    .judge-stat {
      background: rgba(0, 0, 0, .2);
      padding: 9px 13px;
      border-radius: 7px;
    }

    .judge-stat .label {
      font-size: 10px;
      color: var(--gray);
      margin-bottom: 3px;
    }

    .judge-stat .value {
      font-size: 17px;
      font-weight: 700;
    }

    /* ══ GAME ══ */
    #gameScreen {
      flex-direction: column;
      background: var(--bg-dark);
      overflow: hidden;
    }

    .game-header {
      flex-shrink: 0;
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 11px 22px;
      background: var(--glass);
      border-bottom: 1px solid var(--glass-border);
      border-radius: 24px;
      flex-wrap: wrap;
      gap: 7px;
    }

    .game-header .logo {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: clamp(12px, 1.7vw, 16px);
      font-weight: 700;
    }

    .game-header .logo-img {
      width: clamp(56px, 8vw, 78px);
      height: auto;
      max-height: 32px;
      object-fit: contain;
      filter: drop-shadow(0 0 8px rgba(255, 255, 255, .45));
      flex: 0 0 auto;
    }

    .game-progress {
      display: flex;
      align-items: center;
      gap: 11px;
      flex-wrap: wrap;
    }

    .sec-badge {
      display: flex;
      align-items: center;
      gap: 7px;
      padding: 4px 11px;
      background: linear-gradient(135deg, rgba(179, 71, 234, .3), rgba(0, 212, 255, .2));
      border: 1px solid rgba(179, 71, 234, .5);
      border-radius: 18px;
      font-size: clamp(10px, 1.3vw, 12px);
      font-weight: 600;
      color: var(--neon-purple);
    }


    .round-info {
      font-size: clamp(10px, 1.5vw, 14px);
      font-weight: 500;
      color: var(--gold);
    }

    .judge-badge, #judgeBadge {
      display: none !important;
    }

    .judge-badge.jp {
      background: linear-gradient(135deg, rgba(255, 215, 0, .4), rgba(255, 170, 0, .3));
      border-color: var(--gold);
      box-shadow: 0 0 18px rgba(255, 215, 0, .28);
      animation: jGlow 1s ease-in-out infinite;
    }

    @keyframes jGlow {

      0%,
      100% {
        box-shadow: 0 0 18px rgba(255, 215, 0, .18)
      }

      50% {
        box-shadow: 0 0 36px rgba(255, 215, 0, .55)
      }
    }

    .judge-badge .jname {
      font-weight: 600;
      color: var(--gold);
    }

    .judge-badge .jrounds {
      font-size: 9px;
      color: var(--gray);
      background: rgba(0, 0, 0, .3);
      padding: 2px 7px;
      border-radius: 9px;
    }

    .game-main {
      flex: 1;
      display: flex;
      min-height: 0;
      overflow: hidden;
      gap: 12px;
      padding: 8px;
    }

    .frame-area {
      flex: 1;
      display: flex;
      flex-direction: column;
      overflow: hidden;
      position: relative;
      border-radius: 28px;
    }

    .state-ind {
      position: absolute;
      top: 11px;
      left: 11px;
      z-index: 5;
      padding: 4px 11px;
      background: var(--glass);
      border: 1px solid var(--glass-border);
      border-radius: 18px;
      font-size: 9px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 1px;
      pointer-events: none;
    }

    .state-ind.round-active {
      border-color: var(--success);
      color: var(--success);
    }

    .state-ind.judge-phase {
      border-color: var(--gold);
      color: var(--gold);
      animation: statePulse .5s ease-in-out infinite;
    }

    .state-ind.answer-reveal {
      border-color: var(--neon-pink);
      color: var(--neon-pink);
    }

    .state-ind.scoring-phase {
      border-color: var(--neon-blue);
      color: var(--neon-blue);
      box-shadow: 0 0 18px rgba(0, 212, 255, .28);
    }

    .state-ind.round-transition {
      border-color: var(--gray);
      color: var(--gray);
    }

    @keyframes statePulse {

      0%,
      100% {
        transform: scale(1)
      }

      50% {
        transform: scale(1.05)
      }
    }

    /* ══ FRAME DISPLAY ══ */
    .frame-display {
      flex: 1;
      min-height: 0;
      width: 100%;
      position: relative;
      overflow: hidden;
      background: linear-gradient(160deg, #e4dcf5, #f0e8ff);
      border-radius: 28px;
    }

    .frame-layer {
      position: absolute;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: filter .5s ease, opacity .4s ease;
    }

    .frame-layer.blurred {
      filter: blur(28px) brightness(.4);
    }

    .frame-layer img {
      width: 100%;
      height: 100%;
      object-fit: contain;
    }

    .frame-layer .frame-emoji-big {
      font-size: clamp(75px, 18vw, 190px);
      filter: none;
    }

    .frame-placeholder {
      position: absolute;
      inset: 0;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 12px;
      background: linear-gradient(135deg, #e4dcf5, #f0e8ff);
      transition: opacity .4s ease;
      pointer-events: none;
      z-index: 2;
    }

    .frame-placeholder.hidden {
      opacity: 0;
      pointer-events: none;
    }

    .frame-placeholder .emoji {
      font-size: clamp(38px, 9vw, 90px);
    }

    .frame-placeholder h2 {
      font-size: clamp(18px, 3.8vw, 34px);
      background: linear-gradient(90deg, var(--gold), #ffaa00);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    /* Dialogue specific styles */
    .frame-dialogue {
      position: absolute;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 40px;
      background: linear-gradient(135deg, #1a1a2e, #16213e);
      z-index: 1;
      opacity: 0;
      transition: opacity .35s ease;
    }

    .frame-dialogue.visible {
      opacity: 1;
    }

    .dialogue-content {
      width: min(900px, 100%);
      text-align: center;
    }

    .dialogue-quote {
      font-size: clamp(22px, 4.2vw, 48px);
      font-weight: 700;
      line-height: 1.4;
      color: var(--white);
      margin-bottom: 20px;
      font-style: italic;
      overflow-wrap: anywhere;
    }

    .dialogue-quote::before {
      content: '"';
      color: var(--neon-blue);
      font-size: 1.2em;
    }

    .dialogue-quote::after {
      content: '"';
      color: var(--neon-blue);
      font-size: 1.2em;
    }

    .dialogue-context {
      font-size: clamp(13px, 2vw, 18px);
      color: var(--gray);
      letter-spacing: 3px;
      text-transform: uppercase;
    }

    /* Image transition overlay for smooth loading */
    .frame-image-container {
      position: absolute;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 1;
    }

    .frame-image {
      max-width: 100%;
      max-height: 100%;
      object-fit: contain;
      opacity: 0;
      transition: opacity .15s ease;
      position: absolute;
    }

    .frame-image.loaded {
      opacity: 1;
    }

    .frame-image.eye-image {
      width: 100%;
      height: 100%;
      object-fit: contain;
      border-radius: 8px;
    }

    .frame-image.eye-full-reveal {
      z-index: 2;
      opacity: 0;
      transform: scale(1.12);
      filter: saturate(1.05) contrast(1.04);
      transition: opacity .7s ease, transform .9s cubic-bezier(.22, 1, .36, 1), filter .5s ease;
    }

    .frame-image.eye-full-reveal.visible {
      opacity: 1;
      transform: scale(1);
    }

    .answer-overlay {
      position: absolute;
      inset: 0;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 18px;
      background: rgba(0, 0, 0, .88);
      backdrop-filter: blur(4px);
      opacity: 0;
      pointer-events: none;
      transition: opacity .45s ease;
      z-index: 10;
      border-radius: 28px;
    }

    .answer-overlay.visible {
      opacity: 1;
    }

    .answer-overlay.eye-answer {
      justify-content: flex-end;
      padding: 0 24px clamp(34px, 7vh, 72px);
      background: linear-gradient(180deg, rgba(0, 0, 0, .08) 0%, rgba(0, 0, 0, .25) 42%, rgba(0, 0, 0, .82) 100%);
      backdrop-filter: none;
    }

    .answer-overlay .ans-year {
      font-size: clamp(13px, 2.2vw, 20px);
      color: var(--gray);
      letter-spacing: 4px;
      text-transform: uppercase;
      animation: ansSlideUp .5s .1s ease both;
    }

    .answer-overlay .ans-title {
      font-size: clamp(32px, 7vw, 88px);
      font-weight: 900;
      text-align: center;
      line-height: 1.05;
      padding: 0 24px;
      background: linear-gradient(90deg, var(--gold), #ffaa00, var(--gold));
      background-size: 200% auto;
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      animation: goldShimmer 2.5s linear infinite, ansSlideUp .5s ease both;
      filter: drop-shadow(0 0 30px rgba(255, 215, 0, .45));
      max-width: 100%;
      box-sizing: border-box;
      word-break: break-word;
      overflow-wrap: anywhere;
    }

    .answer-overlay .ans-divider {
      width: min(500px, 80vw);
      height: 3px;
      border-radius: 2px;
      background: linear-gradient(90deg, transparent, var(--neon-pink), var(--gold), var(--neon-blue), transparent);
      transform-origin: center;
      animation: ansRevealLine .6s .15s ease forwards;
    }

    .answer-overlay .ans-dialogue {
      font-size: clamp(14px, 2vw, 18px);
      color: var(--neon-blue);
      max-width: 700px;
      text-align: center;
      line-height: 1.6;
      margin-top: 18px;
      padding: 18px 24px;
      background: var(--glass);
      border: 1px solid var(--glass-border);
      border-radius: 12px;
      font-style: italic;
      animation: ansSlideUp .5s .2s ease both;
    }

    @keyframes ansRevealLine {
      from {
        transform: scaleX(0)
      }

      to {
        transform: scaleX(1)
      }
    }

    @keyframes ansSlideUp {
      from {
        opacity: 0;
        transform: translateY(30px)
      }

      to {
        opacity: 1;
        transform: translateY(0)
      }
    }

    .ctrl-panel {
      flex-shrink: 0;
      width: 270px;
      background: var(--glass);
      backdrop-filter: blur(12px);
      border-left: 1px solid var(--glass-border);
      border-radius: 24px;
      display: flex;
      flex-direction: column;
      overflow: hidden;
    }

    .panel-sec {
      padding: 14px;
      border-bottom: 1px solid var(--glass-border);
    }

    .panel-sec:last-child {
      border-bottom: none;
      flex: 1;
      overflow-y: auto;
    }

    .panel-sec h3 {
      font-size: 12px;
      font-weight: 600;
      color: var(--gold);
      margin-bottom: 11px;
    }

    .timer-block {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 9px;
      padding: 12px 0 5px;
    }

    .timer-circle {
      width: 68px;
      height: 68px;
      position: relative;
      flex-shrink: 0;
    }

    .timer-circle svg {
      transform: rotate(-90deg);
      width: 100%;
      height: 100%;
    }

    .timer-circle .tbg {
      fill: none;
      stroke: rgba(255, 255, 255, .1);
      stroke-width: 7;
    }

    .timer-circle .tpg {
      fill: none;
      stroke: var(--success);
      stroke-width: 7;
      stroke-linecap: round;
      transition: stroke-dashoffset .1s linear, stroke .3s;
    }

    .timer-circle .ttx {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      font-size: 17px;
      font-weight: 700;
    }

    .t-pulse {
      animation: tPulse .5s ease-in-out infinite;
    }

    @keyframes tPulse {

      0%,
      100% {
        transform: scale(1)
      }

      50% {
        transform: scale(1.06)
      }
    }

    .timer-label {
      font-size: 10px;
      font-weight: 600;
      color: var(--gray);
      text-transform: uppercase;
      letter-spacing: 1px;
      text-align: center;
      transition: all .3s;
    }

    .timer-label.jp {
      color: var(--gold);
      animation: statePulse .5s ease-in-out infinite;
    }

    .timer-label.sp {
      color: var(--neon-blue);
    }

    .leaderboard {
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    /* === LEADERBOARD CARD === */
    .lb-item {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 8px 12px 8px 8px;
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid rgba(255, 255, 255, 0.07);
      border-radius: 20px;
      transition: all .3s ease;
      position: relative;
      overflow: hidden;
    }

    .lb-item::before {
      content: '';
      position: absolute;
      left: 0;
      top: 0;
      bottom: 0;
      width: 3px;
      border-radius: 3px 0 0 3px;
      background: transparent;
      transition: background .3s;
    }

    /* Rank 1 — gold shimmer card */
    .lb-item.top {
      background: linear-gradient(135deg, rgba(255, 215, 0, .14), rgba(255, 170, 0, .07));
      border-color: rgba(255, 215, 0, .3);
    }

    .lb-item.top::before {
      background: var(--gold);
    }

    /* Active judge — blue accent */
    .lb-item.is-j::before {
      background: var(--neon-blue);
    }

    /* Judge + judging phase — pulsing gold glow */
    .lb-item.j-act {
      background: linear-gradient(135deg, rgba(255, 215, 0, .22), rgba(255, 170, 0, .13));
      border-color: rgba(255, 215, 0, .5);
      animation: jHL 1s ease-in-out infinite;
    }

    .lb-item.j-act::before {
      background: var(--gold);
    }

    @keyframes jHL {

      0%,
      100% {
        box-shadow: 0 0 8px rgba(255, 215, 0, .2)
      }

      50% {
        box-shadow: 0 0 20px rgba(255, 215, 0, .45)
      }
    }

    /* Circular avatar inside card */
    .lb-item .lb-av-wrap {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      overflow: hidden;
      flex-shrink: 0;
      position: relative;
      border: 2px solid rgba(255, 255, 255, 0.12);
      background: var(--glass);
    }

    .lb-item.top .lb-av-wrap {
      border-color: rgba(255, 215, 0, .5);
    }

    .lb-item.j-act .lb-av-wrap {
      border-color: var(--gold);
    }

    .lb-item .lb-av-wrap img,
    .lb-item .lb-av-wrap span {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 18px;
    }

    /* Rank badge */
    .lb-item .lb-rank {
      width: 20px;
      height: 20px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.08);
      font-size: 10px;
      font-weight: 700;
      color: var(--gray);
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    .lb-item.top .lb-rank {
      background: var(--gold);
      color: #000;
    }

    /* Name */
    .lb-item .lb-name {
      flex: 1;
      font-size: 12px;
      font-weight: 600;
      color: var(--white);
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .lb-item.j-act .lb-name {
      color: var(--gold);
    }

    /* Score */
    .lb-item .lb-score {
      font-size: 15px;
      font-weight: 800;
      color: var(--gold);
      position: relative;
      min-width: 28px;
      text-align: right;
    }

    .lb-score-tools, .score-controls, .lb-score-btn {
      display: none !important;
    }

    .lb-score-btn {
      width: 24px;
      height: 24px;
      border: 1px solid rgba(255, 255, 255, 0.12);
      border-radius: 7px;
      background: rgba(255, 255, 255, 0.07);
      color: var(--white);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: transform .16s ease, border-color .16s ease, background .16s ease, color .16s ease;
      position: relative;
      z-index: 1;
    }

    .lb-score-btn:hover:not(:disabled) {
      transform: translateY(-1px);
      border-color: rgba(255, 255, 255, 0.26);
      background: rgba(255, 255, 255, 0.12);
    }

    .lb-score-btn.plus {
      color: var(--white);
    }

    .lb-score-btn.minus {
      color: var(--white);
    }

    .lb-score-btn:disabled {
      opacity: .35;
      cursor: not-allowed;
    }

    .lb-score-btn .svg-icon {
      width: 13px;
      height: 13px;
    }

    .lb-item.is-j .lb-score {
      color: var(--neon-blue);
    }

    .lb-item.j-act .lb-score {
      color: var(--gold);
    }

    .score-pop {
      position: absolute;
      top: -18px;
      right: 0;
      font-size: 12px;
      font-weight: 700;
      color: var(--success);
      animation: spPop 1s ease-out forwards;
      pointer-events: none;
    }

    .score-pop.neg {
      color: var(--danger);
    }

    @keyframes spPop {
      0% {
        opacity: 1;
        transform: translateY(0)
      }

      100% {
        opacity: 0;
        transform: translateY(-18px)
      }
    }

    .nonk-panel {
      background: linear-gradient(135deg, rgba(239, 68, 68, .09), rgba(239, 68, 68, .04));
      border: 1px solid rgba(239, 68, 68, .28);
      border-radius: 11px;
      padding: 13px;
      margin-bottom: 11px;
      display: none;
    }

    .nonk-panel.on {
      display: block;
      animation: fadeUp .3s ease;
    }

    @keyframes fadeUp {
      from {
        opacity: 0;
        transform: translateY(-9px)
      }

      to {
        opacity: 1;
        transform: translateY(0)
      }
    }

    .nonk-btn {
      width: 100%;
      padding: 11px;
      border: 2px dashed rgba(239, 68, 68, .38);
      border-radius: 9px;
      background: transparent;
      color: var(--danger);
      font-family: inherit;
      font-size: 12px;
      font-weight: 600;
      cursor: pointer;
      transition: all .3s;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 7px;
    }

    .nonk-btn:hover:not(:disabled) {
      border-color: var(--danger);
      background: rgba(239, 68, 68, .1);
      transform: scale(1.02);
    }

    .nonk-btn:disabled {
      opacity: .4;
      cursor: not-allowed;
    }

    .skip-msg {
      text-align: center;
      padding: 7px;
      color: var(--gray);
      font-size: 11px;
      font-style: italic;
      margin-top: 7px;
      display: none;
    }

    .skip-msg.on {
      display: block;
      animation: fadeUp .3s ease;
    }

    .scoring-overlay {
      position: absolute;
      inset: 0;
      background: rgba(15, 15, 26, .95);
      backdrop-filter: blur(8px);
      display: none;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 22px;
      padding: 28px;
      z-index: 20;
      border-radius: 28px;
    }

    .scoring-overlay.on {
      display: flex;
      animation: sfadeIn .4s ease;
    }

    @keyframes sfadeIn {
      from {
        opacity: 0
      }

      to {
        opacity: 1
      }
    }

    .scoring-answer-badge {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 6px;
      padding: 14px 32px;
      background: linear-gradient(135deg, rgba(255, 215, 0, .12), rgba(255, 170, 0, .06));
      border: 1.5px solid rgba(255, 215, 0, .35);
      border-radius: 24px;
      animation: ansSlideUp .5s ease both;
      box-shadow: 0 0 28px rgba(255, 215, 0, .1);
    }

    .scoring-answer-badge .sab-label {
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 3px;
      text-transform: uppercase;
      color: var(--gray);
    }

    .scoring-answer-badge .sab-title {
      font-size: clamp(22px, 5vw, 42px);
      font-weight: 900;
      text-align: center;
      line-height: 1.1;
      background: linear-gradient(90deg, var(--gold), #ffaa00, var(--gold));
      background-size: 200% auto;
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      animation: goldShimmer 2.5s linear infinite;
      filter: drop-shadow(0 0 12px rgba(255, 215, 0, .3));
    }

    .scoring-answer-badge .sab-year {
      font-size: 12px;
      color: var(--neon-blue);
      font-weight: 500;
      letter-spacing: 2px;
    }

    .scoring-title {
      font-size: clamp(17px, 3.3vw, 24px);
      color: var(--neon-blue);
      font-weight: 600;
      text-align: center;
    }

    .scoring-sub {
      font-size: clamp(12px, 1.9vw, 15px);
      color: var(--gray);
      text-align: center;
    }

    .scoring-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
      justify-items: center;
      gap: 18px;
      max-width: 680px;
      width: 100%;
    }

    /* Wrapper: circle on top, name below */
    .sp-wrap {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 8px;
    }

    .sp-name {
      font-size: clamp(11px, 1.8vw, 14px);
      font-weight: 600;
      color: var(--white);
      text-align: center;
      letter-spacing: 0.5px;
      max-width: clamp(90px, 16vw, 130px);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .sp-wrap.is-j .sp-name {
      color: var(--gold);
    }


    .spbtn {
      width: clamp(90px, 16vw, 130px);
      height: clamp(90px, 16vw, 130px);
      padding: 0;
      border: 3px solid var(--glass-border);
      border-radius: 50%;
      background: var(--glass);
      cursor: pointer;
      transition: all .2s;
      position: relative;
      overflow: hidden;
      flex-shrink: 0;
    }

    /* Image fills the entire circle */
    .spbtn .sp-avatar.av-img {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      border-radius: 0;
      border: none;
      margin: 0;
      object-fit: cover;
      object-position: center;
    }

    /* Emoji fallback fills circle */
    .spbtn .sp-avatar:not(.av-img) {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: clamp(32px, 7vw, 52px);
      margin: 0;
    }

    .spbtn:hover:not(:disabled) {
      transform: scale(1.1);
      border-color: var(--neon-blue);
      box-shadow: 0 0 32px rgba(0, 212, 255, .55);
    }

    /* Judge player gets gold ring */
    .spbtn.is-j {
      border-color: rgba(255, 215, 0, .6);
      box-shadow: 0 0 18px rgba(255, 215, 0, .3);
    }

    .spbtn.is-j:hover:not(:disabled) {
      border-color: var(--gold);
      box-shadow: 0 0 36px rgba(255, 215, 0, .65);
    }



    .spbtn:disabled {
      opacity: .4;
      cursor: not-allowed;
      transform: scale(.95);
    }

    .spbtn.sel {
      animation: selPulse .6s ease;
      pointer-events: none;
    }

    @keyframes selPulse {
      0% {
        transform: scale(1);
        box-shadow: 0 0 18px var(--success)
      }

      50% {
        transform: scale(1.14);
        box-shadow: 0 0 46px var(--success)
      }

      100% {
        transform: scale(1.04);
        opacity: .6
      }
    }

    .locked-ind {
      display: none;
      align-items: center;
      gap: 9px;
      padding: 13px 26px;
      background: rgba(74, 222, 128, .14);
      border: 1px solid var(--success);
      border-radius: 28px;
      color: var(--success);
      font-weight: 600;
      font-size: 14px;
      animation: lkPulse 1s ease infinite;
    }

    .locked-ind.on {
      display: flex;
    }

    .skipped-ind {
      display: none;
      align-items: center;
      gap: 9px;
      padding: 13px 26px;
      background: rgba(239, 68, 68, .14);
      border: 1px solid var(--danger);
      border-radius: 28px;
      color: var(--danger);
      font-weight: 600;
      font-size: 14px;
    }

    .skipped-ind.on {
      display: flex;
      animation: fadeUp .4s ease;
    }

    @keyframes lkPulse {

      0%,
      100% {
        opacity: 1
      }

      50% {
        opacity: .55
      }
    }

    .leaderboard-actions {
      display: flex;
      flex-direction: column;
      gap: 8px;
      margin-top: 12px;
    }

    .skip-btn,
    .super-skip-btn {
      width: 100%;
      padding: 10px 14px;
      font-size: 12px;
      font-family: inherit;
      font-weight: 700;
      letter-spacing: .08em;
      text-transform: uppercase;
      border: 1px solid var(--glass-border);
      border-radius: 12px;
      background: var(--glass);
      color: var(--gray);
      cursor: pointer;
      transition: all .22s ease;
    }

    .skip-btn:hover {
      border-color: var(--neon-pink);
      color: var(--neon-pink);
      transform: translateY(-1px);
    }

    .super-skip-btn {
      background: rgba(239, 68, 68, .12);
      border-color: rgba(239, 68, 68, .45);
      color: var(--danger);
    }

    .super-skip-btn:hover {
      background: rgba(239, 68, 68, .18);
      border-color: var(--danger);
      transform: translateY(-1px);
    }

    .skip-btn:disabled,
    .super-skip-btn:disabled {
      opacity: .3;
      cursor: not-allowed;
      transform: none;
    }

    /* ══════════════════════════════════════════════════════
       CINEMATIC INTROS
    ══════════════════════════════════════════════════════ */

    /* ——— Shared overlay base ——— */
    .sec-intro-ov,
    .round-intro-ov,
    .judge-ov {
      display: none;
      position: fixed;
      inset: 0;
      z-index: 700;
      align-items: center;
      justify-content: center;
      flex-direction: column;
      overflow: hidden;
    }

    .sec-intro-ov.on,
    .round-intro-ov.on,
    .judge-ov.on {
      display: flex;
    }

    /* ——— SECTION INTRO ——— */
    .sec-intro-ov {
      background: #08080f;
      z-index: 750;
    }

    /* Glowing orb behind content */
    .sio-orb {
      position: absolute;
      width: min(90vw, 600px);
      height: min(90vw, 600px);
      border-radius: 50%;
      background: radial-gradient(circle, rgba(179, 71, 234, .28) 0%, rgba(0, 212, 255, .12) 45%, transparent 70%);
      filter: blur(60px);
      animation: orbPulse 3s ease-in-out infinite;
      pointer-events: none;
    }

    @keyframes orbPulse {

      0%,
      100% {
        transform: scale(1);
        opacity: .8;
      }

      50% {
        transform: scale(1.15);
        opacity: 1;
      }
    }

    /* Particle field */
    .sio-particles {
      position: absolute;
      inset: 0;
      pointer-events: none;
      overflow: hidden;
    }

    .sio-particle {
      position: absolute;
      border-radius: 50%;
      background: rgba(255, 255, 255, .55);
      animation: particleDrift linear infinite;
    }

    @keyframes particleDrift {
      0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
      }

      10% {
        opacity: 1;
      }

      90% {
        opacity: .4;
      }

      100% {
        transform: translateY(-20vh) scale(1.5);
        opacity: 0;
      }
    }

    /* Content block */
    .sio-content {
      position: relative;
      text-align: center;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 10px;
      animation: sioEnter .7s cubic-bezier(.22, 1, .36, 1) both;
    }

    @keyframes sioEnter {
      from {
        opacity: 0;
        transform: scale(.85) translateY(40px);
        filter: blur(12px);
      }

      to {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0);
      }
    }

    .sio-eyebrow {
      font-size: clamp(10px, 1.8vw, 13px);
      font-weight: 700;
      letter-spacing: 6px;
      padding-right: 6px;
      text-transform: uppercase;
      color: rgba(255, 255, 255, .35);
      margin-bottom: 4px;
    }

    .sio-icon {
      font-size: clamp(52px, 12vw, 90px);
      line-height: 1;
      filter: drop-shadow(0 0 28px rgba(179, 71, 234, .7));
      animation: sioIconFloat 2s ease-in-out infinite;
    }

    @keyframes sioIconFloat {

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

      50% {
        transform: translateY(-12px) scale(1.06);
      }
    }

    /* HUGE gradient category name */
    .sio-name {
      font-size: clamp(38px, 11vw, 96px);
      font-weight: 900;
      line-height: 1;
      letter-spacing: -2px;
      background: linear-gradient(135deg, #fff 0%, var(--neon-purple) 40%, var(--neon-blue) 70%, var(--neon-pink) 100%);
      background-size: 300% 300%;
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      animation: nameShimmer 3s ease infinite;
      filter: drop-shadow(0 0 30px rgba(179, 71, 234, .5));
    }

    @keyframes nameShimmer {

      0%,
      100% {
        background-position: 0% 50%;
      }

      50% {
        background-position: 100% 50%;
      }
    }

    .sio-meta {
      font-size: clamp(13px, 2.2vw, 17px);
      color: rgba(255, 255, 255, .4);
      letter-spacing: 2px;
      padding-right: 2px;
      text-transform: uppercase;
    }

    .sio-meta span {
      color: var(--neon-blue);
      font-weight: 700;
    }

    /* Thin accent line */
    .sio-line {
      width: clamp(40px, 10vw, 80px);
      height: 2px;
      background: linear-gradient(90deg, transparent, var(--neon-purple), var(--neon-blue), transparent);
      border-radius: 2px;
      margin: 4px 0;
    }

    .sio-ready {
      font-size: clamp(11px, 2vw, 14px);
      font-weight: 700;
      letter-spacing: 5px;
      padding-right: 5px;
      text-transform: uppercase;
      color: rgba(255, 255, 255, .3);
    }

    .sio-dots {
      display: flex;
      gap: 8px;
      margin-top: 8px;
      justify-content: center;
    }

    .sio-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: rgba(255, 255, 255, .15);
      transition: all .3s;
    }

    .sio-dot.a {
      background: var(--neon-purple);
      box-shadow: 0 0 12px var(--neon-purple);
      transform: scale(1.4);
    }

    .sio-dot.c {
      background: var(--gold);
      box-shadow: 0 0 10px var(--gold);
    }

    /* ——— ROUND INTRO ——— */
    .round-intro-ov {
      background: #07070e;
    }


    .rio-content {
      position: relative;
      text-align: center;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 8px;
    }

    /* "ROUND" badge */
    .rio-badge {
      font-size: clamp(11px, 2vw, 15px);
      font-weight: 800;
      letter-spacing: 7px;
      text-transform: uppercase;
      color: rgba(255, 255, 255, .35);
      padding: 5px 16px 5px 23px;
      border: 1px solid rgba(255, 255, 255, .1);
      border-radius: 50px;
    }

    /* GIANT round number — punch in */
    .rio-num {
      font-size: clamp(110px, 28vw, 240px);
      font-weight: 900;
      line-height: .9;
      background: linear-gradient(135deg, #fff 0%, var(--neon-pink) 50%, var(--gold) 100%);
      background-size: 200% 200%;
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      animation: rioNumIn .5s cubic-bezier(.34, 1.56, .64, 1) both,
        rioGlow 2s ease-in-out .5s infinite;
      filter: drop-shadow(0 0 60px rgba(255, 46, 146, .5));
    }

    @keyframes rioNumIn {
      from {
        transform: scale(2.5);
        opacity: 0;
        filter: blur(20px);
      }

      to {
        transform: scale(1);
        opacity: 1;
        filter: blur(0);
      }
    }

    @keyframes rioGlow {

      0%,
      100% {
        filter: drop-shadow(0 0 50px rgba(255, 46, 146, .4));
      }

      50% {
        filter: drop-shadow(0 0 90px rgba(255, 46, 146, .85)) drop-shadow(0 0 140px rgba(255, 215, 0, .3));
      }
    }

    /* "GET READY" label */
    .rio-tag {
      font-size: clamp(12px, 2.2vw, 18px);
      font-weight: 800;
      letter-spacing: 6px;
      padding-right: 6px;
      text-transform: uppercase;
      color: rgba(255, 255, 255, .45);
      animation: rioTagFade .8s ease .4s both;
    }

    @keyframes rioTagFade {
      from {
        opacity: 0;
        transform: translateY(16px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .rio-dots {
      display: flex;
      gap: 20px;
      margin-top: 28px;
      justify-content: center;
    }

    .rio-dot {
      width: clamp(10px, 2.5vw, 16px);
      height: clamp(10px, 2.5vw, 16px);
      border-radius: 50%;
      background: rgba(255, 255, 255, .12);
      border: 1.5px solid rgba(255, 255, 255, .08);
      transition: all .3s;
    }

    .rio-dot.a {
      background: var(--neon-pink);
      box-shadow: 0 0 20px var(--neon-pink), 0 0 40px rgba(255, 46, 146, .4);
      transform: scale(1.4);
      border-color: transparent;
    }

    

    .jo-content {
      text-align: center;
      animation: joFade .5s ease;
    }

    @keyframes joFade {
      from {
        opacity: 0;
        transform: translateY(28px)
      }

      to {
        opacity: 1;
        transform: translateY(0)
      }
    }

    .jo-icon {
      font-size: clamp(48px, 11vw, 76px);
      margin-bottom: 18px;
      animation: joIconPulse 1.5s ease infinite;
    }

    @keyframes joIconPulse {

      0%,
      100% {
        transform: scale(1);
        filter: drop-shadow(0 0 18px rgba(255, 215, 0, .48))
      }

      50% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 36px rgba(255, 215, 0, .78))
      }
    }

    .jo-content h2 {
      font-size: clamp(19px, 3.8vw, 30px);
      margin-bottom: 9px;
      color: var(--gold);
    }

    .jo-content .sub {
      font-size: clamp(11px, 1.9vw, 15px);
      color: var(--gray);
      margin-bottom: 36px;
    }

    .jo-candidates {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 18px;
      max-width: 680px;
      margin-bottom: 28px;
    }

    .jo-cand {
      width: clamp(75px, 14vw, 110px);
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 6px;
      transition: all .25s ease;
      flex-shrink: 0;
    }

    /* The circle photo container */
    .jo-cand .jo-circle {
      width: clamp(75px, 14vw, 110px);
      height: clamp(75px, 14vw, 110px);
      border-radius: 50%;
      border: 3px solid var(--glass-border);
      overflow: hidden;
      position: relative;
      flex-shrink: 0;
      transition: all .25s ease;
    }

    /* Photo fills the entire circle — zero gap */
    .jo-cand .c-avatar.av-img {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      border-radius: 0;
      object-fit: cover;
      object-position: center;
      display: block;
      border: none;
      margin: 0;
    }

    /* Emoji fallback fills circle */
    .jo-cand .c-avatar:not(.av-img) {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: clamp(28px, 6vw, 44px);
      background: var(--glass);
      margin: 0;
    }

    /* Name label below circle */
    .jo-cname {
      font-size: clamp(9px, 1.5vw, 12px);
      font-weight: 600;
      color: var(--gray);
      text-align: center;
      white-space: nowrap;
      letter-spacing: 0.4px;
      transition: color .25s ease;
    }

    .jo-cand.was {
      opacity: .35;
    }

    .jo-cand.was .jo-circle {
      border-color: rgba(255, 255, 255, .06);
    }

    .jo-cand.hl {
      transform: scale(1.12);
      transform-origin: center bottom;
    }

    .jo-cand.hl .jo-circle {
      border-color: var(--neon-pink);
      box-shadow: 0 0 28px rgba(255, 46, 146, .55);
    }

    /* Scale whole card upward so name never gets covered */
    .jo-cand.sel {
      transform: scale(1.36);
      transform-origin: center bottom;
    }

    .jo-cand.sel .jo-circle {
      border-color: var(--gold);
      box-shadow: 0 0 52px rgba(255, 215, 0, .9);
    }

    .jo-cand.sel .jo-cname {
      color: var(--gold);
      font-weight: 700;
    }

    .jo-sel-msg {
      font-size: clamp(15px, 2.8vw, 22px);
      color: var(--white);
      opacity: 0;
      transition: all .3s;
    }

    .jo-sel-msg.on {
      opacity: 1;
    }

    .jo-sel-msg .sn {
      color: var(--gold);
      font-weight: 700;
    }

    .jo-rot-info {
      margin-top: 28px;
      padding: 13px 22px;
      background: rgba(0, 0, 0, .3);
      border-radius: 11px;
      font-size: clamp(10px, 1.4vw, 13px);
      color: var(--gray);
    }

    .jo-rot-info span {
      color: var(--neon-blue);
      font-weight: 600;
    }

    /* ══════════════════════════════
       WINNER SCREEN — OLYMPIC PODIUM
    ══════════════════════════════ */
    #winnerScreen {
      flex-direction: column;
      align-items: center;
      justify-content: flex-start;
      gap: 22px;
      background: radial-gradient(ellipse at 50% 7%, rgba(255, 215, 0, .18) 0%, transparent 52%),
        radial-gradient(ellipse at 16% 28%, rgba(179, 71, 234, .14) 0%, transparent 42%),
        radial-gradient(ellipse at 86% 72%, rgba(0, 212, 255, .10) 0%, transparent 42%),
        linear-gradient(135deg, var(--bg-dark), var(--bg-light));
      padding: clamp(22px, 4vw, 42px) 20px;
      text-align: center;
      overflow-y: auto;
      position: relative;
    }

    #winnerScreen::before {
      content: "";
      position: fixed;
      inset: 0;
      pointer-events: none;
      opacity: .18;
      background-image:
        linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
      background-size: 44px 44px;
      mask-image: radial-gradient(circle at center, black, transparent 78%);
    }

    .podium-section {
      width: min(900px, 100%);
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 18px;
      position: relative;
      z-index: 1;
    }

    .trophy-txt {
      font-family: 'DM Sans', sans-serif;
      font-weight: 900;
      font-size: clamp(28px, 5.5vw, 44px);
      color: var(--nb-ink, #1a1a1a);
      text-transform: uppercase;
      display: inline-flex;
      align-items: center;
      gap: 10px;
    }
    .trophy-txt .svg-icon {
      display: inline-block;
    }

    /* Stage — 3 slots side by side, aligned to bottom */
    .podium-stage {
      display: flex;
      align-items: flex-end;
      justify-content: center;
      gap: clamp(7px, 2vw, 14px);
      width: 100%;
    }

    .podium-slot {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 8px;
      min-width: clamp(86px, 18vw, 138px);
    }

    /* Crown only for 1st */
    .crown {
      min-height: 30px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 0 12px;
      border: 1px solid rgba(255, 215, 0, .34);
      border-radius: 999px;
      background: rgba(255, 215, 0, .08);
      color: var(--gold);
      font-size: 11px;
      font-weight: 900;
      letter-spacing: 1px;
      text-transform: uppercase;
      animation: crownBob .9s ease-in-out infinite;
    }

    .crown .svg-icon {
      display: none;
    }

    .crown::before {
      content: "1ST PLACE";
    }

    @keyframes crownBob {

      0%,
      100% {
        transform: translateY(0) rotate(-6deg);
      }

      50% {
        transform: translateY(-7px) rotate(6deg);
      }
    }

    /* podium-avatar = flex row container for 1..N player circles */
    .podium-avatar {
      display: flex;
      flex-direction: row;
      align-items: center;
      justify-content: center;
      gap: 6px;
      flex-wrap: nowrap;
    }

    /* Individual player circle inside a podium slot */
    .p-circle {
      border-radius: 50%;
      overflow: hidden;
      position: relative;
      flex-shrink: 0;
      background: var(--glass);
    }

    /* Image fills each circle */
    .p-circle img,
    .p-circle span {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1em;
    }

    /* 1st place circles — gold, large, pulsing */
    .p1 .p-circle {
      width: clamp(78px, 13vw, 112px);
      height: clamp(78px, 13vw, 112px);
      border: 4px solid var(--gold);
      box-shadow: 0 0 44px rgba(255, 215, 0, .55);
      animation: p1Pulse 2.25s cubic-bezier(.45, 0, .2, 1) infinite;
      font-size: 40px;
      will-change: transform, box-shadow;
    }

    /* Shrink when 2+ tied for 1st */
    .p1 .podium-avatar[data-count="2"] .p-circle {
      width: 76px;
      height: 76px;
      font-size: 30px;
    }

    .p1 .podium-avatar[data-count="3"] .p-circle {
      width: 62px;
      height: 62px;
      font-size: 24px;
    }

    .p1 .podium-avatar[data-count="4"] .p-circle {
      width: 52px;
      height: 52px;
      font-size: 20px;
    }

    .p1 .podium-avatar[data-count="5"] .p-circle {
      width: 44px;
      height: 44px;
      font-size: 18px;
    }

    @keyframes p1Pulse {

      0%,
      100% {
        transform: translateY(0) scale(1);
        box-shadow: 0 0 30px rgba(255, 215, 0, .65);
      }

      50% {
        transform: translateY(-3px) scale(1.025);
        box-shadow: 0 0 50px rgba(255, 215, 0, .9), 0 0 82px rgba(255, 215, 0, .32);
      }
    }

    /* 2nd place circles — silver */
    .p2 .p-circle {
      width: clamp(58px, 10vw, 80px);
      height: clamp(58px, 10vw, 80px);
      border: 3px solid #C0C0C0;
      box-shadow: 0 0 20px rgba(192, 192, 192, .5);
      font-size: 32px;
    }

    .p2 .podium-avatar[data-count="2"] .p-circle {
      width: 62px;
      height: 62px;
      font-size: 24px;
    }

    .p2 .podium-avatar[data-count="3"] .p-circle {
      width: 52px;
      height: 52px;
      font-size: 20px;
    }

    .p2 .podium-avatar[data-count="4"] .p-circle {
      width: 44px;
      height: 44px;
      font-size: 18px;
    }

    /* 3rd place circles — bronze */
    .p3 .p-circle {
      width: clamp(54px, 9vw, 68px);
      height: clamp(54px, 9vw, 68px);
      border: 3px solid #CD7F32;
      box-shadow: 0 0 16px rgba(205, 127, 50, .5);
      font-size: 28px;
    }

    .p3 .podium-avatar[data-count="2"] .p-circle {
      width: 52px;
      height: 52px;
      font-size: 20px;
    }

    .p3 .podium-avatar[data-count="3"] .p-circle {
      width: 44px;
      height: 44px;
      font-size: 18px;
    }

    .p3 .podium-avatar[data-count="4"] .p-circle {
      width: 38px;
      height: 38px;
      font-size: 16px;
    }

    /* Podium blocks auto-widen for tied players */
    .podium-block {
      font-family: 'JetBrains Mono', monospace;
      font-size: 26px;
      font-weight: 900;
      color: rgba(255, 255, 255, 0.85);
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 12px 12px 5px 5px;
      width: 100%;
      min-width: clamp(86px, 16vw, 116px);
      transition: min-width .3s;
    }

    .p1-block {
      height: clamp(76px, 13vw, 100px);
      background: linear-gradient(180deg, rgba(255, 215, 0, .55), rgba(255, 170, 0, .35));
      border: 1.5px solid rgba(255, 215, 0, .5);
      color: var(--gold);
    }

    .p2-block {
      height: clamp(58px, 10vw, 72px);
      background: linear-gradient(180deg, rgba(192, 192, 192, .4), rgba(150, 150, 150, .2));
      border: 1.5px solid rgba(192, 192, 192, .4);
      color: #C0C0C0;
    }

    .p3-block {
      height: clamp(48px, 8vw, 56px);
      background: linear-gradient(180deg, rgba(205, 127, 50, .4), rgba(160, 100, 40, .2));
      border: 1.5px solid rgba(205, 127, 50, .4);
      color: #CD7F32;
    }

    .podium-name {
      max-width: 180px;
      min-height: 20px;
      color: var(--white);
      font-size: clamp(13px, 2vw, 16px);
      font-weight: 900;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .podium-score {
      min-height: 20px;
      color: var(--gold);
      font-family: 'JetBrains Mono', monospace;
      font-size: clamp(15px, 2.4vw, 20px);
      font-weight: 900;
    }

    .final-lb {
      background: var(--glass);
      backdrop-filter: blur(12px);
      border: 1px solid var(--glass-border);
      border-radius: 18px;
      padding: 22px;
      width: 100%;
      max-width: 430px;
      position: relative;
      z-index: 1;
    }

    .final-lb h3 {
      font-size: 17px;
      margin-bottom: 18px;
      color: var(--gold);
    }

    .msg-card {
      background: var(--glass);
      backdrop-filter: blur(20px);
      border: 3px solid var(--gold);
      border-radius: 24px;
      padding: 36px;
      max-width: 700px;
      box-shadow: 0 0 50px rgba(255, 215, 0, 0.2);
      animation: msgFloat 4s ease-in-out infinite;
      position: relative;
      z-index: 1;
    }

    @keyframes msgFloat {

      0%,
      100% {
        transform: translateY(0);
      }

      50% {
        transform: translateY(-8px);
      }
    }

    .msg-card h4 {
      font-size: 20px;
      font-weight: 900;
      text-transform: uppercase;
      letter-spacing: 3px;
      color: var(--gold);
      margin-bottom: 20px;
    }

    .msg-card p {
      font-size: 24px;
      font-weight: 700;
      color: var(--white);
      line-height: 1.4;
      text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
    }

    .msg-card.long-message {
      max-width: 820px;
      padding: 30px;
    }

    .msg-card.long-message p {
      font-size: clamp(17px, 2.2vw, 22px);
      font-weight: 650;
      line-height: 1.6;
    }

    .w-btns {
      display: flex;
      gap: 18px;
      flex-wrap: wrap;
      justify-content: center;
      position: relative;
      z-index: 1;
    }

    .confetti-box {
      position: fixed;
      inset: 0;
      pointer-events: none;
      z-index: 100;
      overflow: hidden;
    }

    .confetti {
      position: absolute;
      width: 9px;
      height: 9px;
      animation: cFall linear forwards;
    }

    @keyframes cFall {
      0% {
        transform: translateY(-100%) rotate(0deg);
        opacity: 1
      }

      100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0
      }
    }

    .snd-btn {
      position: fixed;
      bottom: 14px;
      left: 14px;
      width: 42px;
      height: 42px;
      border-radius: 50%;
      background: var(--glass);
      border: 1px solid var(--glass-border);
      color: var(--white);
      font-size: 17px;
      cursor: pointer;
      transition: all .3s;
      z-index: 1000;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    /* In a match the host controls bar sits at the bottom-left; keep the audio toggle above it */
    body:has(#gameScreen.active) .snd-btn {
      bottom: 64px;
      left: 14px;
    }
    body:has(#gameScreen.active) #stateInd.idle {
      display: none;
    }

    .snd-btn:hover {
      border-color: var(--neon-pink);
      transform: scale(1.1);
    }

    .snd-btn.muted {
      opacity: .45;
    }

    @media(max-width:900px) {
      .game-main {
        flex-direction: column;
      }

      .ctrl-panel {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        border-left: none;
        border-top: 1px solid var(--glass-border);
        flex-shrink: 0;
        max-height: 210px;
        overflow-y: auto;
      }

      .panel-sec {
        flex: 1;
        min-width: 155px;
        border-bottom: none;
        border-right: 1px solid var(--glass-border);
      }

      .panel-sec:last-child {
        border-right: none;
      }

      .timer-block {
        flex-direction: row;
        padding: 7px 0;
      }

      .spbtn {
        width: calc(50% - 9px);
        padding: 15px 17px;
      }

      .htp-steps {
        grid-template-columns: 1fr 1fr;
      }

      .round-summary-grid,
      .round-detail-list {
        grid-template-columns: 1fr 1fr;
      }

      .dialogue-quote {
        font-size: clamp(18px, 4vw, 36px);
      }
    }

    @media(max-width:500px) {
      .htp-steps {
        grid-template-columns: 1fr;
      }

      .htp-pts-grid {
        grid-template-columns: 1fr;
      }

      .round-summary-grid,
      .round-detail-list {
        grid-template-columns: 1fr;
      }

      .dialogue-quote {
        font-size: clamp(16px, 5vw, 28px);
      }
    }

    /* ══ PLAYER LOBBY ══ */
    #playerLobbyScreen {
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 28px;
      background: radial-gradient(ellipse at 30% 30%, rgba(179, 71, 234, .12) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 70%, rgba(0, 212, 255, .08) 0%, transparent 50%),
        linear-gradient(135deg, var(--bg-dark), var(--bg-light));
      padding: 36px 22px;
      overflow-y: auto;
    }

    .lobby-wrap {
      width: 100%;
      max-width: 520px;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 24px;
      text-align: center;
    }

    .lobby-head {
      text-align: center;
    }

    .lobby-badge {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      padding: 5px 16px;
      background: rgba(179, 71, 234, .1);
      border: none;
      border-radius: 28px;
      font-size: 11px;
      font-weight: 600;
      color: var(--neon-purple);
      letter-spacing: 2px;
      text-transform: uppercase;
      margin-bottom: 12px;
    }

    .lobby-head h1 {
      font-size: clamp(26px, 5vw, 42px);
      font-weight: 900;
      background: linear-gradient(135deg, var(--neon-purple), var(--neon-blue));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      margin-bottom: 6px;
    }

    .lobby-head p {
      font-size: clamp(12px, 1.8vw, 15px);
      color: var(--gray);
    }

    .lobby-players {
      display: grid !important;
      grid-template-columns: repeat(2, 1fr) !important;
      gap: 16px !important;
      width: 100% !important;
      max-width: 520px !important;
      margin: 4px 0 !important;
    }
    .lobby-player {
      display: flex !important;
      align-items: center !important;
      gap: 12px !important;
      padding: 12px 14px !important;
      border: 3px solid var(--nb-ink, #1a1a1a) !important;
      box-shadow: 4px 4px 0 var(--nb-ink, #1a1a1a) !important;
      border-radius: 0 !important;
      transition: transform 0.15s ease, box-shadow 0.15s ease !important;
    }
    .lobby-player:hover {
      transform: translate(-2px, -2px) !important;
      box-shadow: 6px 6px 0 var(--nb-ink, #1a1a1a) !important;
    }

    @keyframes stepIn {
      from {
        opacity: 0;
        transform: translate3d(-16px, 8px, 0) scale(.985);
      }

      to {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
      }
    }

    .lobby-player .lp-avatar {
      width: 42px;
      height: 42px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 22px;
      background: linear-gradient(135deg, rgba(179, 71, 234, .3), rgba(0, 212, 255, .2));
      border: none;
      box-shadow: none;
      flex-shrink: 0;
    }

    .lobby-player .lp-name {
      flex: 1;
      font-size: 15px;
      font-weight: 600;
      color: var(--white);
    }

    /* Avatar styles for LB, scoring, judge, etc */
    .lb-avatar {
      font-size: 14px;
      margin-right: 4px;
    }

    /* === Global rule: ALL avatar images fill their container === */
    img.av-img {
      object-fit: cover;
      object-position: center center;
      display: block;
      transition: transform .32s cubic-bezier(.22, 1, .36, 1), box-shadow .32s ease;
    }

    /* Zoom only in leaderboard and lobby — not inside buttons/circles */
    .lb-avatar.av-img:hover,
    .lp-avatar.av-img:hover {
      transform: scale(2.25);
      box-shadow: 0 0 30px rgba(179, 71, 234, 0.85);
      z-index: 10;
      position: relative;
    }

    /* Leaderboard: small inline circle */
    .lb-avatar.av-img {
      width: 26px;
      height: 26px;
      border-radius: 50%;
      vertical-align: middle;
      margin-right: 6px;
      border: 1.5px solid rgba(255, 255, 255, 0.25);
    }

    /* Scoring grid: absolute-fill circle (button is the circle) */
    .spbtn .sp-avatar,
    .spbtn .sp-avatar.av-img {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      border-radius: 0;
      border: none;
      margin: 0;
      display: block;
      object-fit: cover;
      object-position: center;
      font-size: clamp(32px, 7vw, 52px);
    }

    /* Judge roulette: absolute-fill (circle is the container) */
    .jo-cand .c-avatar,
    .jo-cand .c-avatar.av-img {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      border-radius: 0;
      border: none;
      margin: 0;
      font-size: clamp(28px, 6vw, 44px);
      display: flex;
      align-items: center;
      justify-content: center;
    }

    /* Winner screen: large centered circle */
    .w-avatar {
      font-size: clamp(42px, 10vw, 80px);
      margin-bottom: -8px;
      filter: drop-shadow(0 0 18px rgba(255, 215, 0, .5));
      animation: wTrophy 2s cubic-bezier(.45, 0, .2, 1) infinite;
      will-change: transform, filter;
    }

    .w-avatar.av-img {
      width: clamp(80px, 18vw, 140px);
      height: clamp(80px, 18vw, 140px);
      border-radius: 50%;
      margin: 0 auto -8px;
      border: 3px solid var(--gold);
      box-shadow: 0 0 32px rgba(255, 215, 0, 0.5);
      animation: wTrophy 2s cubic-bezier(.45, 0, .2, 1) infinite;
      will-change: transform, filter;
    }

    @keyframes wTrophy {

      0%,
      100% {
        transform: translate3d(0, 0, 0) scale(1);
        filter: drop-shadow(0 0 18px rgba(255, 215, 0, .45));
      }

      50% {
        transform: translate3d(0, -6px, 0) scale(1.035);
        filter: drop-shadow(0 0 28px rgba(255, 215, 0, .68));
      }
    }

    /* Player lobby: medium circle */
    .lp-avatar.av-img {
      width: 42px;
      height: 42px;
      border-radius: 50%;
      border: none;
      box-shadow: none;
    }

    /* Admin avatar picker */

    .player-item .av-pick {
      width: 38px;
      height: 38px;
      border-radius: 50%;
      border: 1px solid var(--glass-border);
      background: rgba(0, 0, 0, .3);
      font-size: 18px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all .3s;
      flex-shrink: 0;
      position: relative;
    }

    .player-item .av-pick:hover {
      border-color: var(--neon-purple);
      transform: scale(1.1);
    }

    .av-dropdown {
      display: none;
      position: absolute;
      bottom: calc(100% + 6px);
      left: 50%;
      transform: translateX(-50%);
      background: rgba(20, 20, 35, .97);
      border: 1px solid var(--glass-border);
      border-radius: 12px;
      padding: 8px;
      gap: 4px;
      flex-wrap: wrap;
      width: 200px;
      z-index: 50;
      box-shadow: 0 8px 32px rgba(0, 0, 0, .5);
    }

    .av-dropdown.open {
      display: flex;
    }

    .av-dropdown .av-opt {
      width: 32px;
      height: 32px;
      border: none;
      border-radius: 8px;
      background: transparent;
      font-size: 18px;
      cursor: pointer;
      transition: all .2s;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .av-dropdown .av-opt:hover {
      background: rgba(179, 71, 234, .2);
      transform: scale(1.2);
    }

    .lobby-player .lp-remove {
      width: 34px;
      height: 34px;
      border: none;
      border-radius: 50%;
      background: rgba(239, 68, 68, .15);
      color: var(--danger);
      font-size: 18px;
      cursor: pointer;
      transition: all .3s;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .lobby-player .lp-remove:hover {
      background: rgba(239, 68, 68, .3);
      transform: scale(1.15);
    }

    .lobby-player.removing {
      animation: lpRemove .35s ease forwards;
    }

    @keyframes lpRemove {
      0% {
        opacity: 1;
        transform: translateX(0);
        max-height: 80px
      }

      100% {
        opacity: 0;
        transform: translateX(60px);
        max-height: 0;
        padding: 0;
        margin: 0;
        overflow: hidden
      }
    }

    .lobby-count {
      font-size: 12px;
      color: var(--gray);
      text-align: center;
    }

    .lobby-count span {
      color: var(--neon-blue);
      font-weight: 700;
    }

    .lobby-min-warn {
      font-size: 11px;
      color: var(--warning);
      text-align: center;
      opacity: 0;
      transition: opacity .3s;
    }

    .lobby-min-warn.visible {
      opacity: 1;
    }

    .lobby-loading {
      width: 100%;
      margin: 8px 0 2px;
    }

    .lobby-load-card {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      padding: 9px 14px;
      border: none;
      border-radius: 999px;
      background: rgba(0, 212, 255, .07);
      box-shadow: none;
      color: var(--gray);
      font-size: 12px;
      font-weight: 700;
      letter-spacing: .2px;
    }

    .lobby-load-card strong {
      color: var(--neon-blue);
      font-weight: 900;
      min-width: 34px;
      text-align: right;
    }

    .lobby-load-dots {
      display: inline-flex;
      gap: 4px;
    }

    .lobby-load-dots span {
      width: 5px;
      height: 5px;
      border-radius: 50%;
      background: var(--neon-blue);
      opacity: .35;
      animation: loadDot 1s ease-in-out infinite;
    }

    .lobby-load-dots span:nth-child(2) {
      animation-delay: .14s;
    }

    .lobby-load-dots span:nth-child(3) {
      animation-delay: .28s;
    }

    @keyframes loadDot {

      0%,
      100% {
        opacity: .35;
        transform: translateY(0);
      }

      50% {
        opacity: 1;
        transform: translateY(-2px);
      }
    }

    .lobby-btns {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 12px;
      width: 100%;
    }

    .lobby-btns .btn-start {
      padding: 16px 68px;
      font-size: clamp(15px, 2.4vw, 21px);
      font-weight: 700;
      font-family: inherit;
      border: none;
      border-radius: 50px;
      background: linear-gradient(135deg, var(--neon-pink), #ff6b6b);
      color: #fff;
      cursor: pointer;
      transition: all .3s;
      box-shadow: 0 10px 38px rgba(255, 46, 146, .38);
      letter-spacing: 1px;
    }

    .lobby-btns .btn-start:hover:not(:disabled) {
      transform: scale(1.05);
      box-shadow: 0 14px 48px rgba(255, 46, 146, .62);
    }

    .lobby-btns .btn-start:disabled {
      opacity: .4;
      cursor: not-allowed;
      transform: none;
    }



    .lobby-btns .back-lnk {
      background: none;
      border: none;
      color: var(--gray);
      font-family: inherit;
      font-size: 13px;
      cursor: pointer;
      transition: color .2s;
      text-decoration: underline;
      text-underline-offset: 3px;
    }

    .lobby-btns .back-lnk:hover {
      color: var(--white);
    }


    /* ══ SOUNDS TAB ══ */
    .snd-category {
      margin-bottom: 22px;
    }

    .snd-category-title {
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 3px;
      text-transform: uppercase;
      color: var(--neon-purple);
      margin-bottom: 10px;
      padding-bottom: 6px;
      border-bottom: 1px solid rgba(179, 71, 234, .2);
    }

    .snd-row {
      display: grid;
      grid-template-columns: 26px 1fr auto auto auto auto;
      align-items: center;
      gap: 8px;
      padding: 7px 10px;
      border-radius: 9px;
      background: var(--glass);
      border: 1px solid var(--glass-border);
      margin-bottom: 6px;
      transition: border-color .2s;
    }

    .snd-row:hover {
      border-color: rgba(179, 71, 234, .3);
    }

    .snd-row.disabled {
      opacity: .45;
    }

    .snd-toggle-wrap {
      display: flex;
      align-items: center;
    }

    .snd-toggle {
      position: relative;
      width: 32px;
      height: 18px;
      flex-shrink: 0;
    }

    .snd-toggle input {
      opacity: 0;
      width: 0;
      height: 0;
    }

    .snd-slider-bg {
      position: absolute;
      inset: 0;
      background: rgba(255, 255, 255, .12);
      border-radius: 18px;
      cursor: pointer;
      transition: background .2s;
    }

    .snd-toggle input:checked+.snd-slider-bg {
      background: var(--neon-purple);
    }

    .snd-slider-bg::before {
      content: '';
      position: absolute;
      width: 12px;
      height: 12px;
      left: 3px;
      top: 3px;
      background: #fff;
      border-radius: 50%;
      transition: transform .2s;
    }

    .snd-toggle input:checked+.snd-slider-bg::before {
      transform: translateX(14px);
    }

    .snd-name {
      font-size: 12px;
      font-weight: 500;
      color: var(--white);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .snd-range-wrap {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 2px;
      min-width: 68px;
    }

    .snd-range-lbl {
      font-size: 9px;
      color: var(--gray);
    }

    .snd-range-wrap input[type=range] {
      width: 68px;
      height: 3px;
      accent-color: var(--neon-blue);
      cursor: pointer;
    }

    .snd-style-sel {
      font-size: 10px;
      background: rgba(0, 0, 0, .4);
      border: 1px solid var(--glass-border);
      color: var(--white);
      border-radius: 6px;
      padding: 3px 5px;
      cursor: pointer;
      font-family: inherit;
      min-width: 72px;
    }

    .snd-play-btn {
      width: 28px;
      height: 28px;
      border-radius: 50%;
      border: 1px solid var(--neon-pink);
      background: rgba(255, 46, 146, .1);
      color: var(--neon-pink);
      font-size: 13px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all .2s;
      flex-shrink: 0;
    }

    .snd-play-btn:hover {
      background: rgba(255, 46, 146, .28);
      transform: scale(1.15);
    }

    .snd-reset-bar {
      display: flex;
      justify-content: flex-end;
      margin-bottom: 14px;
    }

    .snd-reset-btn {
      font-size: 11px;
      padding: 5px 14px;
      border-radius: 20px;
      border: 1px solid var(--glass-border);
      background: var(--glass);
      color: var(--gray);
      cursor: pointer;
      font-family: inherit;
      transition: all .2s;
    }

    .snd-reset-btn:hover {
      border-color: var(--neon-pink);
      color: var(--neon-pink);
    }

    .snd-url-row {
      display: flex;
      align-items: center;
      gap: 6px;
      padding: 5px 10px 8px 44px;
      border-radius: 0 0 9px 9px;
      background: rgba(0, 0, 0, .18);
      border: 1px solid var(--glass-border);
      border-top: none;
      margin-top: -7px;
      margin-bottom: 6px;
    }

    .snd-url-lbl {
      font-size: 9px;
      color: var(--neon-blue);
      white-space: nowrap;
      flex-shrink: 0;
      font-weight: 600;
      letter-spacing: .5px;
    }


    /* ══ SPECTATOR ══ */
    .spectator-panel {
      position: fixed;
      bottom: 18px;
      right: 18px;
      z-index: 900;
      background: linear-gradient(135deg, rgba(20, 20, 40, .92), rgba(15, 15, 30, .95));
      backdrop-filter: blur(18px);
      border: 1px solid rgba(0, 212, 255, .25);
      border-radius: 18px;
      padding: 16px 20px;
      display: flex;
      flex-direction: column;
      gap: 10px;
      min-width: 220px;
      max-width: 320px;
      box-shadow: 0 12px 48px rgba(0, 0, 0, .45), 0 0 30px rgba(0, 212, 255, .08);
      animation: specPanelIn .5s cubic-bezier(.34, 1.56, .64, 1) both;
    }

    @keyframes specPanelIn {
      from {
        opacity: 0;
        transform: translateY(30px) scale(.9);
      }

      to {
        opacity: 1;
        transform: translateY(0) scale(1);
      }
    }

    .spectator-panel .sp-header {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 2px;
      text-transform: uppercase;
      color: var(--neon-blue);
    }

    .spectator-panel .sp-live-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: #ef4444;
      box-shadow: 0 0 8px #ef4444;
      animation: livePulse 1.2s ease infinite;
    }

    @keyframes livePulse {

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

      50% {
        opacity: .5;
        transform: scale(1.3);
      }
    }

    .spectator-panel .sp-code {
      font-size: 22px;
      font-weight: 900;
      letter-spacing: 6px;
      color: var(--white);
      text-align: center;
      padding: 6px 0;
    }

    .spectator-panel .sp-btns {
      display: flex;
      gap: 6px;
    }

    .spectator-panel .sp-btn {
      flex: 1;
      padding: 8px 10px;
      font-size: 11px;
      font-weight: 600;
      font-family: inherit;
      border: 1px solid var(--glass-border);
      border-radius: 10px;
      background: var(--glass);
      color: var(--gray);
      cursor: pointer;
      transition: all .2s;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 5px;
    }

    .spectator-panel .sp-btn:hover {
      border-color: var(--neon-blue);
      color: var(--neon-blue);
      background: rgba(0, 212, 255, .08);
    }

    .spectator-panel .sp-viewers {
      font-size: 10px;
      color: var(--gray);
      text-align: center;
    }

    .spectator-panel .sp-viewers span {
      color: var(--neon-blue);
      font-weight: 700;
    }

    .spectator-panel .sp-collapse-btn {
      position: absolute;
      top: -10px;
      right: -10px;
      width: 26px;
      height: 26px;
      border-radius: 50%;
      border: 1px solid var(--glass-border);
      background: rgba(20, 20, 40, .95);
      color: var(--gray);
      font-size: 12px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all .2s;
    }

    .spectator-panel .sp-collapse-btn:hover {
      border-color: var(--neon-blue);
      color: var(--neon-blue);
    }

    .spectator-panel.collapsed .sp-code,
    .spectator-panel.collapsed .sp-btns,
    .spectator-panel.collapsed .sp-viewers {
      display: none;
    }

    /* Spectating banner for viewers */
    .spectating-banner {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 950;
      padding: 8px 20px;
      background: linear-gradient(90deg, rgba(0, 212, 255, .15), rgba(179, 71, 234, .12), rgba(0, 212, 255, .15));
      border-bottom: 1px solid rgba(0, 212, 255, .25);
      backdrop-filter: blur(12px);
      text-align: center;
      font-size: 13px;
      font-weight: 600;
      color: var(--neon-blue);
      letter-spacing: 1px;
      animation: bannerGlow 3s ease infinite;
    }

    .spectating-banner.on {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
    }

    @keyframes bannerGlow {

      0%,
      100% {
        box-shadow: 0 2px 20px rgba(0, 212, 255, .1);
      }

      50% {
        box-shadow: 0 2px 30px rgba(0, 212, 255, .2);
      }
    }

    .spectating-banner .sb-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: #ef4444;
      box-shadow: 0 0 8px #ef4444;
      animation: livePulse 1.2s ease infinite;
    }

    /* Hide interactive elements for spectators */
    body.spectator-mode .skip-btn,
    body.spectator-mode .super-skip-btn,
    body.spectator-mode .nonk-panel,
    body.spectator-mode .spbtn,
    body.spectator-mode .scoring-sub,
    body.spectator-mode #waitingHostInd,
    body.spectator-mode .snd-btn,
    body.spectator-mode .spectator-panel {
      display: none !important;
    }

    body.spectator-mode .game-header {
      margin-top: 36px;
    }

    /* Connection status indicator */
    .connection-status {
      display: none;
      align-items: center;
      gap: 6px;
      padding: 4px 10px;
      background: var(--glass);
      border: 1px solid var(--glass-border);
      border-radius: 18px;
      font-size: 10px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 1px;
      position: fixed;
      top: 12px;
      right: 12px;
      z-index: 900;
      transition: all .3s;
    }

    .connection-status.online {
      display: flex;
    }

    .connection-status .cs-dot {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: var(--success);
      box-shadow: 0 0 8px var(--success);
      animation: livePulse 1.2s ease infinite;
    }

    .connection-status.connected {
      border-color: rgba(74, 222, 128, .3);
      color: var(--success);
    }

    .connection-status.syncing {
      border-color: rgba(251, 191, 36, .3);
      color: var(--warning);
    }

    .connection-status.syncing .cs-dot {
      background: var(--warning);
      box-shadow: 0 0 8px var(--warning);
    }

    .connection-status.disconnected {
      border-color: rgba(239, 68, 68, .3);
      color: var(--danger);
    }

    .connection-status.disconnected .cs-dot {
      background: var(--danger);
      box-shadow: 0 0 8px var(--danger);
      animation: none;
    }

    /* ═══ SVG ICON SYSTEM ═══ */
    /* Skill: currentColor inherits parent, em units scale with text */
    .svg-icon {
      width: 1.1em;
      height: 1.1em;
      display: inline-block;
      vertical-align: -0.125em;
      overflow: visible;
      flex-shrink: 0;
      /* stroke attrs set on root <svg> element, but use CSS as fallback */
      stroke: currentColor;
      fill: none;
    }

    .frame-emoji-big .svg-icon {
      width: 64px;
      height: 64px;
      stroke: currentColor;
      opacity: 0.6;
    }

    /* Contextual icon sizing */
    .sec-badge .svg-icon {
      width: 1em;
      height: 1em;
    }

    .judge-badge .svg-icon {
      width: 1.1em;
      height: 1.1em;
    }

    .lobby-badge .svg-icon {
      width: 1em;
      height: 1em;
    }

    .rule-eyebrow .svg-icon {
      width: 0.9em;
      height: 0.9em;
    }

    .rule-card-icon .svg-icon {
      width: 36px;
      height: 36px;
    }

    .snd-btn .svg-icon {
      width: 1.3em;
      height: 1.3em;
    }

    .scoring-title .svg-icon {
      width: 1.2em;
      height: 1.2em;
    }

    .btn-start .svg-icon,
    .btn-primary .svg-icon {
      width: 1.1em;
      height: 1.1em;
    }

    h3 .svg-icon {
      width: 1.1em;
      height: 1.1em;
    }

    .trophy-txt .svg-icon {
      width: 1.3em;
      height: 1.3em;
      color: var(--gold);
    }

    .av-opt .svg-icon {
      width: 20px;
      height: 20px;
    }

    .av-pick .svg-icon {
      width: 22px;
      height: 22px;
    }

    /* Judge badge fix  */
    .judge-badge>span:first-child {
      display: inline-flex;
      align-items: center;
    }

    /* Section badge icon display */
    #curSecIcon {
      display: inline-flex;
      align-items: center;
    }

    /* ═══ PREMIUM REDESIGN POLISH ═══ */

    /* Smoother screen transitions */
    .screen {
      transition: opacity 0.3s ease;
    }

    .screen.active {
      animation: screenFadeIn 0.35s ease;
    }

    @keyframes screenFadeIn {
      from {
        opacity: 0;
      }

      to {
        opacity: 1;
      }
    }

    /* Better scrollbar */
    ::-webkit-scrollbar {
      width: 5px;
    }

    ::-webkit-scrollbar-track {
      background: transparent;
    }

    ::-webkit-scrollbar-thumb {
      background: rgba(255, 255, 255, 0.15);
      border-radius: 10px;
    }

    ::-webkit-scrollbar-thumb:hover {
      background: rgba(255, 255, 255, 0.25);
    }

    /* Button micro-interactions */
    button:not(.spbtn):not(.h-card):not(.nonk-btn):not(.skip-btn):not(.super-skip-btn) {
      transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    }

    button:not(.spbtn):not(.h-card):not(.nonk-btn):not(.skip-btn):not(.super-skip-btn):active {
      transform: scale(0.97);
    }

    /* Glass panels enhanced */
    .ctrl-panel,
    .lobby-wrap,
    .modal-content {
      backdrop-filter: blur(20px) saturate(1.3);
      -webkit-backdrop-filter: blur(20px) saturate(1.3);
    }

    /* GPU acceleration for heavy animation elements */
    .h-orb,
    .h-star,
    .confetti,
    .h-filmstrip,

    /* Smoother image rendering */
    .frame-image {
      image-rendering: auto;
      will-change: opacity, filter;
    }

    /* Mobile responsiveness improvements */
    @media (max-width: 768px) {
      .ctrl-panel {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: auto;
        max-height: 45vh;
        border-radius: 20px 20px 0 0;
        z-index: 100;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
      }

      .frame-area {
        height: 55vh;
      }

      #frameDisplay .answer-overlay {
        padding: 8px !important;
      }
      #frameDisplay .answer-overlay .ans-card,
      #gameScreen .answer-overlay .ans-card {
        padding: 12px 14px !important;
        gap: 6px !important;
        max-height: calc(100% - 10px) !important;
        box-shadow: 4px 4px 0 var(--nb-ink, #1a1a1a) !important;
      }
      #frameDisplay .answer-overlay .ans-title,
      #gameScreen .answer-overlay .ans-title {
        font-size: clamp(16px, 4.5vw, 24px) !important;
        padding: 0 4px !important;
      }
      #frameDisplay .answer-overlay .ans-title.ans-title-long,
      #gameScreen .answer-overlay .ans-title.ans-title-long {
        font-size: clamp(13px, 3.2vw, 16px) !important;
        padding: 4px 6px !important;
      }
      #frameDisplay .answer-overlay .ans-title.ans-title-xlong,
      #gameScreen .answer-overlay .ans-title.ans-title-xlong {
        font-size: clamp(10.5px, 2.7vw, 12.5px) !important;
        padding: 6px 8px !important;
        max-height: 100px !important;
      }
      .ans-action-bar {
        margin-top: 6px !important;
      }
      .ans-next-round-btn {
        padding: 8px 18px !important;
        font-size: 13px !important;
      }

      .game-header {
        flex-wrap: wrap;
        gap: 6px;
        padding: 8px 12px;
      }

      .sec-badge {
        font-size: 11px;
      }

      .judge-badge {
        font-size: 11px;
      }

      .rule-cards {
        grid-template-columns: 1fr;
      }

      .rule-card {
        max-width: 100%;
      }

      .scoring-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
      }

      .h-title {
        font-size: clamp(36px, 10vw, 72px);
      }

      .h-title-accent {
        font-size: clamp(40px, 12vw, 80px);
      }

      /* Touch-friendly hit targets */
      button,
      .h-card,
      .spbtn {
        min-height: 44px;
      }
    }

    @media (max-width: 480px) {
      .lobby-player {
        padding: 10px 14px !important;
      }

      .lp-avatar {
        width: 38px !important;
        height: 38px !important;
      }

      .h-cards {
        padding: 0 10px;
      }

      .h-card {
        padding: 18px !important;
      }

      .admin-tabs {
        flex-wrap: wrap;
        gap: 4px;
      }

      .admin-tab {
        font-size: 12px !important;
        padding: 8px 12px !important;
      }
    }

    /* Smooth focus states for accessibility */
    button:focus-visible,
    input:focus-visible,
    select:focus-visible {
      outline: 2px solid var(--neon-blue);
      outline-offset: 2px;
    }

    /* Respect reduced motion preference */
    @media (prefers-reduced-motion: reduce) {

      *,
      *::before,
      *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
      }

      .h-filmstrip,
    }


    /* Loading skeleton animation */
    @keyframes shimmer {
      0% {
        background-position: -200% 0;
      }

      100% {
        background-position: 200% 0;
      }
    }

    /* ════════════════════════════════════════════════════════════════════
       NEOBRUTALISM THEME LAYER — bold flat colours, thick borders, hard shadows
       Replaces the claymorphism layer. Reskins the home screen while
       keeping other screens (rules, lobby, game, winner) on their original engine.
       ════════════════════════════════════════════════════════════════════ */

    :root {
      --nb-bg: #FFFDF5;
      --nb-ink: #1a1a1a;
      --nb-pink: #FF6B9D;
      --nb-blue: #3B82F6;
      --nb-yellow: #FACC15;
      --nb-green: #84CC16;
      --nb-orange: #FB923C;
      --nb-surface: #FFFFFF;
      --clay-radius: 26px;
    }

    html, body {
      font-family: 'DM Sans', 'Inter', 'Segoe UI', system-ui, sans-serif;
      background: linear-gradient(160deg, #e9e4ff 0%, #ffe9f3 100%) !important;
      color: var(--clay-ink);
    }
    #app { background: transparent !important; }

    /* Transparent screen layers so cinema wallpaper backdrop shows */
    #homeScreen,
    #playerLobbyScreen,
    #winnerScreen,
    #gameScreen {
      background: transparent !important;
    }
    /* frame-adaptive accents around the game */
    #gameScreen .frame-display {
      box-shadow: 0 0 0 4px var(--frame-accent, #ff9ecb), inset 0 2px 4px rgba(255,255,255,.1),
                  12px 14px 34px var(--frame-accent-2, #cabce6), -6px -6px 16px #fff !important;
      transition: box-shadow .7s ease !important;
    }
    

    .jo-cand .jo-circle img,
    .jo-cand .jo-circle .c-avatar.av-img {
      width: 100% !important;
      height: 100% !important;
      object-fit: cover !important;
      border-radius: 50% !important;
    }

    .jo-cname {
      font-family: 'DM Sans', sans-serif !important;
      font-weight: 800 !important;
      font-size: 14px !important;
      letter-spacing: 0.5px !important;
      text-transform: uppercase !important;
      color: var(--nb-ink, #1a1a1a) !important;
      white-space: nowrap !important;
      overflow: hidden !important;
      text-overflow: ellipsis !important;
      max-width: 100% !important;
    }

    /* Selected Winner State */
    .jo-cand.sel {
      transform: scale(1.08) !important;
      border: 3.5px solid var(--nb-ink, #1a1a1a) !important;
      box-shadow: 0 0 0 4px var(--nb-yellow, #FACC15), 8px 8px 0 var(--nb-ink, #1a1a1a) !important;
      z-index: 5 !important;
      animation: nbHeroIn 0.3s ease both !important;
    }
    .jo-cand.sel .jo-circle {
      box-shadow: 0 0 0 3px var(--nb-ink, #1a1a1a), 3px 3px 0 var(--nb-ink, #1a1a1a) !important;
    }

    /* Eliminated State */
    .jo-cand.was {
      opacity: 0.3 !important;
      filter: grayscale(1) !important;
      transform: scale(0.9) !important;
      box-shadow: 2px 2px 0 var(--nb-ink, #1a1a1a) !important;
    }

    /* Announcement Result Banner */
    .jo-sel-msg {
      display: none;
      width: 100%;
      max-width: 440px;
      margin: 14px 0 6px !important;
      padding: 12px 18px !important;
      background: var(--nb-pink, #FF6B9D) !important;
      color: var(--nb-ink, #1a1a1a) !important;
      border: 3.5px solid var(--nb-ink, #1a1a1a) !important;
      box-shadow: 5px 5px 0 var(--nb-ink, #1a1a1a) !important;
      border-radius: 0 !important;
      font-family: 'DM Sans', sans-serif !important;
      font-weight: 900 !important;
      font-size: clamp(16px, 3.5vw, 20px) !important;
      text-transform: uppercase !important;
      letter-spacing: 1px !important;
      transform: rotate(-1.5deg) !important;
      animation: nbHeroIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both !important;
    }
    .jo-sel-msg.on {
      display: block !important;
    }
    .jo-sel-msg .sn {
      text-decoration: underline;
      text-decoration-thickness: 3px;
    }

    /* Footer Info */
    .jo-footer {
      width: 100%;
      margin-top: 14px;
      padding-top: 12px;
      border-top: 2.5px dashed var(--nb-ink, #1a1a1a);
      display: flex;
      justify-content: center;
    }
    .jo-rot-info {
      font-family: 'Space Mono', monospace !important;
      font-size: 11px !important;
      font-weight: 700 !important;
      letter-spacing: 2px !important;
      color: var(--nb-ink, #1a1a1a) !important;
      background: var(--nb-yellow, #FACC15) !important;
      border: 2px solid var(--nb-ink, #1a1a1a) !important;
      box-shadow: 2.5px 2.5px 0 var(--nb-ink, #1a1a1a) !important;
      padding: 4px 12px !important;
      text-transform: uppercase !important;
    }
    .jo-rot-info span {
      font-weight: 900 !important;
      color: var(--nb-ink, #1a1a1a) !important;
    }
    /* ── BUTTONS (keep clay for non-home screens) ── */
    .btn-primary, .btn-start {
      background: linear-gradient(135deg, #ff9ecb, #ff7eb6) !important; color: #fff !important;
      border: none !important; border-radius: 20px !important;
      box-shadow: 6px 6px 16px #e491b8, -4px -4px 12px #fff !important;
      font-family: 'Fredoka', 'Inter', sans-serif !important; font-weight: 600 !important;
    }
    .btn-primary:hover, .btn-start:hover { transform: translateY(-3px); box-shadow: 8px 9px 20px #e08bb4, -6px -6px 14px #fff !important; }
    .btn-secondary {
      background: #efe6ff !important; color: #7a5db0 !important; border: none !important; border-radius: 20px !important;
      box-shadow: 6px 6px 16px #cebfe8, -4px -4px 12px #fff !important; font-weight: 600 !important;
    }
    .btn-secondary:hover { transform: translateY(-3px); }
    .btn-outline { display: none !important; }
    .back-lnk { color: #a06bd6 !important; opacity: .9; font-weight: 600; }
    .back-lnk:hover { color: #ff7eb6 !important; }

    /* ── RULES / HOW TO PLAY ── */
    .rule-screen {
      background: #f3eaff !important; border: none !important; border-radius: 34px !important;
      box-shadow: 12px 12px 34px #cabce6, -10px -10px 26px #fff !important; color: #5a4a8a !important;
    }
    .rule-eyebrow { color: #a06bd6 !important; }
    .rule-eyebrow, .lobby-badge { background: #eadcff !important; box-shadow: inset 2px 2px 6px #d6c6f0, inset -2px -2px 6px #fff !important; border: none !important; border-radius: 999px !important; }
    .rule-headline { color: #5a4a8a !important; }
    .round-summary-card, .round-detail-card, .judge-info-panel, .judge-stat {
      background: #efe6ff !important; border: none !important; border-radius: 20px !important;
      box-shadow: 6px 6px 16px #d0c0ec, -5px -5px 12px #fff !important;
    }
    .round-summary-card .label, .round-detail-count, .round-detail-meta span, .judge-stat .label { color: #8a7bb0 !important; }
    .round-summary-card .value, .round-detail-name, .judge-stat .value { color: #5a4a8a !important; }
    .round-detail-meta span { background: #f3eaff !important; box-shadow: inset 2px 2px 5px #ddd0f2, inset -2px -2px 5px #fff !important; border: none !important; }
    .round-empty { color: #8a7bb0 !important; }

    /* consistent, responsive section grid + full clay cards */
    .round-summary-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important; }
    .round-detail-list { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important; align-items: start !important; }
    .round-detail-card { gap: 14px !important; }
    .round-detail-name { color: #5a4a8a !important; -webkit-text-fill-color: #5a4a8a !important; background: none !important; }
    .round-detail-count { background: #fff4dd !important; border: none !important; color: #cf9a1f !important; box-shadow: inset 2px 2px 5px #efdcb0, inset -2px -2px 5px #fff !important; }

    .rule-points-info { display: none !important; }

    /* keyboard shortcuts — clay style */
    .kbd-shortcuts-title { color: #8a7bb0 !important; }
    .kbd-item {
      background: #efe6ff !important; border: none !important; border-radius: 16px !important;
      box-shadow: 4px 4px 10px #d0c0ec, -3px -3px 8px #fff !important;
    }
    .kbd-key {
      background: linear-gradient(135deg, #e4d4ff, #d6c4f8) !important;
      border: none !important;
      box-shadow: inset 2px 2px 4px #c8b4ec, inset -2px -2px 4px #f0e8ff, 2px 2px 6px #d0c0ec !important;
      color: #7c5cbf !important;
    }
    .kbd-desc { color: #5a4a8a !important; }
    .kbd-desc em { color: #8a7bb0 !important; }

    /* per-round number pills — removed per request */
    .round-chip-grid { display: none !important; }
    .round-chip-grid.__unused {
      display: grid; grid-template-columns: repeat(auto-fill, minmax(34px, 1fr)); gap: 6px; width: 100%;
    }
    .round-chip {
      display: grid; place-items: center; aspect-ratio: 1; border-radius: 10px;
      background: #efe6ff; box-shadow: 3px 3px 7px #ddd0f2, -2px -2px 6px #fff;
    }
    .round-chip .rc-num {
      font-family: 'Fredoka', 'Inter', sans-serif; font-weight: 700; font-size: 13px; color: #a06bd6;
    }
    .round-chip .rc-type { display: none; }

    /* ── PLAYER LOBBY (CLEAN NEOBRUTALISM) ── */
    

    /* ── WINNER ── */
    #winnerScreen { background: linear-gradient(160deg, #e9e4ff, #ffe9f3) !important; }
    .trophy-txt { color: #f0a828 !important; }
    .podium-name { color: #5a4a8a !important; }
    .podium-score { color: #ff7eb6 !important; }
    .podium-avatar, .p-circle { box-shadow: 5px 5px 14px #cabce6, -4px -4px 10px #fff !important; background: #f3eaff !important; }
    .podium-block { color: #fff !important; }
    .p1-block { background: linear-gradient(#ffd98a, #f0a828) !important; }
    .p2-block { background: linear-gradient(#d8c8f5, #a795d6) !important; }
    .p3-block { background: linear-gradient(#ffc09e, #e08a5b) !important; }
    .crown { color: #f0a828 !important; }
    .final-lb, .msg-card { background: #f3eaff !important; border: none !important; border-radius: 24px !important; box-shadow: 8px 8px 22px #cabce6, -6px -6px 16px #fff !important; }
    .final-lb h3, .msg-card h4 { color: #7a5db0 !important; }
    .msg-card p { color: #8a7bb0 !important; }

    /* ── ADMIN MODAL ── */
    .modal-overlay { background: rgba(90,74,138,.35) !important; backdrop-filter: blur(6px); }
    .modal-content { background: #f3eaff !important; border: none !important; border-radius: 30px !important; box-shadow: 16px 16px 44px rgba(120,90,180,.4), -10px -10px 26px #fff !important; color: #5a4a8a !important; }
    .modal-header { border-bottom: 1px solid rgba(160,120,214,.18) !important; }
    .modal-header h2 { color: #7a5db0 !important; }
    .close-btn { background: #ffd9e7 !important; color: #d5638c !important; border: none !important; box-shadow: 3px 3px 8px #e3b9cb, -2px -2px 6px #fff !important; }
    .admin-tab { background: #efe6ff !important; color: #7a6ba0 !important; border: none !important; border-radius: 14px !important; box-shadow: 3px 3px 9px #d6c6f0, -2px -2px 7px #fff !important; font-weight: 600 !important; }
    .admin-tab.active { background: linear-gradient(135deg, #ff9ecb, #ff7eb6) !important; color: #fff !important; box-shadow: inset 2px 2px 6px #e08bb4, inset -2px -2px 6px #ffc9e0 !important; }
    .admin-section, .section-card, .frame-item, .judge-info-panel {
      background: #efe6ff !important; border: none !important; border-radius: 20px !important;
      box-shadow: 6px 6px 16px #d3c3ef, -5px -5px 12px #fff !important;
    }
    .admin-section h3, .admin-section h4, .section-card h3 { color: #7a5db0 !important; }
    .input-group label { color: #8a7bb0 !important; }
    .input-group input, .input-group textarea, .input-group select,
    .section-card input, .section-card select, .frame-item input, .frame-item select,
    #onlinePlayerName, #onlineRoomCode, .player-item input {
      background: #f3eaff !important; color: #5a4a8a !important; border: none !important; border-radius: 12px !important;
      box-shadow: inset 3px 3px 7px #ddd0f2, inset -3px -3px 7px #fff !important;
    }
    .add-player-btn, .add-section-btn, .add-frame-btn, .snd-reset-btn, .snd-play-btn {
      background: #eadcff !important; color: #7a5db0 !important; border: none !important; border-radius: 14px !important;
      box-shadow: 4px 4px 10px #d6c6f0, -3px -3px 8px #fff !important; font-weight: 600 !important;
    }
    .player-item, .snd-card { background: #f3eaff !important; border: none !important; border-radius: 16px !important; box-shadow: 5px 5px 12px #ddd0f2, -4px -4px 10px #fff !important; }
    .judge-stat .value { color: #ff7eb6 !important; }
    .preview-winner-btn {
      width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px;
      padding: 14px; border: none; border-radius: 16px; cursor: pointer;
      font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 15px; color: #6a4a10;
      background: linear-gradient(135deg, #ffd98a, #f0a828);
      box-shadow: 5px 5px 14px rgba(217,178,104,.6), -4px -4px 10px #fff;
      transition: transform .2s ease, box-shadow .2s ease;
    }
    .preview-winner-btn:hover { transform: translateY(-2px); box-shadow: 7px 8px 18px rgba(217,178,104,.7), -5px -5px 12px #fff; }
    .preview-winner-btn svg { width: 20px; height: 20px; }

    /* ══════════════════════════════════════════════════════════════
       ESPORTS CINEMA ARENA — PRODUCTION-GRADE NEOBRUTALISM
       ══════════════════════════════════════════════════════════════ */
    #gameScreen {
      background: #ffffff !important;
      background-color: #ffffff !important;
      background-image: none !important;
      color: var(--nb-ink, #1a1a1a) !important;
      padding: 0 !important;
      overflow: hidden !important;
    }
    #gameScreen.active {
      display: flex !important;
      flex-direction: column !important;
      position: absolute !important;
      inset: 0 !important;
      width: 100% !important;
      height: 100% !important;
      max-height: 100vh !important;
    }

    /* ── HEADER TOOLBAR ── */
    #gameScreen .game-header {
      margin: 0 !important;
      padding: 6px 16px !important;
      background: #fff !important;
      border: 3px solid #1a1a1a !important;
      box-shadow: 4px 4px 0 #1a1a1a !important;
      border-radius: 12px !important;
      display: flex !important;
      justify-content: space-between !important;
      align-items: center !important;
      width: 100% !important;
      box-sizing: border-box !important;
    }

    /* ── OFFICIAL SCOOPCAST LOGO (IMAGE) ── */
    #gameScreen .header-logo-wrap {
      display: inline-flex !important;
      align-items: center !important;
      cursor: pointer !important;
      user-select: none !important;
      line-height: 0 !important;
      padding: 0 !important;
      transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    }
    #gameScreen .header-logo-wrap:hover {
      transform: translate(-1px, -1px) scale(1.04) rotate(-0.8deg) !important;
    }
    #gameScreen .header-logo-wrap:active {
      transform: translate(1px, 1px) scale(0.97) !important;
    }
    #gameScreen .header-logo-img {
      height: 42px !important;
      max-height: 42px !important;
      width: auto !important;
      object-fit: contain !important;
      display: block !important;
      filter: drop-shadow(1.5px 1.5px 0 var(--nb-ink, #1a1a1a)) !important;
    }

    #gameScreen .game-progress {
      display: flex !important;
      align-items: center !important;
      gap: 10px !important;
    }
    #gameScreen .sec-badge {
      background: var(--nb-blue, #3B82F6) !important;
      color: #fff !important;
      border: 2px solid var(--nb-ink, #1a1a1a) !important;
      border-radius: 0 !important;
      box-shadow: 2.5px 2.5px 0 var(--nb-ink, #1a1a1a) !important;
      padding: 5px 14px !important;
      font-family: 'Space Mono', monospace !important;
      font-weight: 700 !important;
      font-size: 11px !important;
      letter-spacing: 1px !important;
      text-transform: uppercase !important;
      display: flex !important;
      align-items: center !important;
      gap: 6px !important;
    }
    #gameScreen .sec-badge #curSecName { color: #fff !important; font-weight: 700 !important; }
    #gameScreen .sec-badge #curSecIcon svg { color: #fff !important; width: 14px; height: 14px; }

    #gameScreen .round-info {
      background: var(--nb-yellow, #FACC15) !important;
      color: var(--nb-ink, #1a1a1a) !important;
      border: 2px solid var(--nb-ink, #1a1a1a) !important;
      border-radius: 0 !important;
      box-shadow: 2.5px 2.5px 0 var(--nb-ink, #1a1a1a) !important;
      padding: 5px 12px !important;
      font-family: 'Space Mono', monospace !important;
      font-weight: 700 !important;
      font-size: 11px !important;
      letter-spacing: 1px !important;
      text-transform: uppercase !important;
    }

    #gameScreen .judge-badge {
      background: var(--nb-pink, #FF6B9D) !important;
      color: var(--nb-ink, #1a1a1a) !important;
      border: 2px solid var(--nb-ink, #1a1a1a) !important;
      border-radius: 0 !important;
      box-shadow: 2.5px 2.5px 0 var(--nb-ink, #1a1a1a) !important;
      padding: 5px 12px !important;
      font-family: 'DM Sans', sans-serif !important;
      font-weight: 800 !important;
      font-size: 12px !important;
      display: flex !important;
      align-items: center !important;
      gap: 6px !important;
      text-transform: uppercase !important;
    }
    #gameScreen .judge-badge svg { color: var(--nb-ink, #1a1a1a) !important; width: 14px; height: 14px; }
    #gameScreen .judge-badge .jname { color: var(--nb-ink, #1a1a1a) !important; font-weight: 900 !important; }
    #gameScreen .judge-badge .jrounds {
      background: var(--nb-yellow, #FACC15) !important;
      color: var(--nb-ink, #1a1a1a) !important;
      border: 1.5px solid var(--nb-ink, #1a1a1a) !important;
      padding: 1px 5px !important;
      font-family: 'Space Mono', monospace !important;
      font-size: 10px !important;
      font-weight: 700 !important;
      border-radius: 0 !important;
    }

    /* ── MAIN 2-COLUMN LAYOUT: HERO STAGE (LEFT) + CLEAN CONTROL PANEL (RIGHT) ── */
    #gameScreen .game-main {
      flex: 1 !important;
      padding: 16px 24px 20px !important;
      gap: 24px !important;
      display: flex !important;
      flex-direction: row !important;
      overflow: hidden !important;
    }

    /* ── HERO FRAME DISPLAY STAGE ── */
    #gameScreen .frame-area {
      flex: 1 !important;
      position: relative !important;
      background: #090c15 !important;
      background-image: radial-gradient(ellipse 95% 75% at 50% 45%, #151a2d 0%, #0b0e18 50%, #06070d 100%) !important;
      border: 3.5px solid var(--nb-ink, #1a1a1a) !important;
      box-shadow: 6px 6px 0 var(--nb-ink, #1a1a1a), 0 14px 44px var(--frame-accent, rgba(99, 102, 241, 0.22)) !important;
      border-radius: 0 !important;
      overflow: hidden !important;
      display: flex !important;
      flex-direction: column !important;
      transition: transform 0.2s ease, box-shadow 0.6s ease !important;
    }
    #gameScreen .frame-area::before, #gameScreen .frame-area::after { display: none !important; }

    #gameScreen .frame-display {
      flex: 1 !important;
      position: relative !important;
      background: #090c15 !important;
      border-radius: 0 !important;
      border: none !important;
      box-shadow: none !important;
      overflow: hidden !important;
    }

    /* Pinned Status Sticker */
    #gameScreen .state-ind {
      position: absolute !important;
      top: 16px !important;
      left: 16px !important;
      background: var(--nb-yellow, #FACC15) !important;
      color: var(--nb-ink, #1a1a1a) !important;
      border: 2px solid var(--nb-ink, #1a1a1a) !important;
      box-shadow: 2.5px 2.5px 0 var(--nb-ink, #1a1a1a) !important;
      border-radius: 0 !important;
      padding: 4px 12px !important;
      font-family: 'Space Mono', monospace !important;
      font-size: 11px !important;
      font-weight: 700 !important;
      letter-spacing: 2px !important;
      text-transform: uppercase !important;
      z-index: 10 !important;
    }
    #gameScreen .state-ind::before { content: '' !important; }

    /* ── DIALOGUE DISPLAY ── */
    #gameScreen .frame-dialogue {
      background: var(--nb-bg, #FFFDF5) !important;
      padding: clamp(24px, 5vw, 48px) !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
    }
    #gameScreen .frame-dialogue .dialogue-content {
      background: #fff !important;
      border: 3.5px solid var(--nb-ink, #1a1a1a) !important;
      box-shadow: 6px 6px 0 var(--nb-ink, #1a1a1a) !important;
      border-radius: 0 !important;
      padding: 32px 30px 26px !important;
      max-width: 720px !important;
      text-align: center !important;
      position: relative !important;
    }
    #gameScreen .dialogue-quote {
      color: var(--nb-ink, #1a1a1a) !important;
      font-family: 'DM Sans', sans-serif !important;
      font-weight: 700 !important;
      font-size: clamp(16px, 2.4vw, 24px) !important;
      line-height: 1.45 !important;
    }
    #gameScreen .dialogue-context {
      display: inline-block !important;
      margin-top: 18px !important;
      background: var(--nb-yellow, #FACC15) !important;
      color: var(--nb-ink, #1a1a1a) !important;
      border: 2px solid var(--nb-ink, #1a1a1a) !important;
      box-shadow: 2px 2px 0 var(--nb-ink, #1a1a1a) !important;
      padding: 4px 12px !important;
      border-radius: 0 !important;
      font-family: 'Space Mono', monospace !important;
      font-size: 11px !important;
      font-weight: 700 !important;
      letter-spacing: 2px !important;
      text-transform: uppercase !important;
    }

    /* ── ANSWER REVEAL OVERLAY ── */
    #frameDisplay .answer-overlay {
      background: rgba(26,26,26,0.85) !important;
      backdrop-filter: blur(4px) !important;
      display: none;
      position: absolute;
      inset: 0;
      z-index: 50;
      align-items: center;
      justify-content: center;
      padding: 20px;
    }
    #frameDisplay .answer-overlay.visible { display: flex !important; }
    #frameDisplay .answer-overlay .ans-card {
      background: var(--nb-bg, #FFFDF5) !important;
      border: 4px solid var(--nb-ink, #1a1a1a) !important;
      box-shadow: 8px 8px 0 var(--nb-ink, #1a1a1a) !important;
      border-radius: 0 !important;
      padding: clamp(16px, 3vh, 32px) clamp(16px, 3.5vw, 36px) !important;
      max-width: min(94%, 580px) !important;
      width: 100% !important;
      max-height: calc(100% - 16px) !important;
      box-sizing: border-box !important;
      overflow-y: auto !important;
      -webkit-overflow-scrolling: touch !important;
      display: flex !important;
      flex-direction: column !important;
      align-items: center !important;
      gap: clamp(6px, 1.5vh, 12px) !important;
      animation: nbHeroIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both !important;
      text-align: center !important;
      transform: none !important;
    }
    .ans-badge {
      font-family: 'Space Mono', monospace !important;
      font-weight: 700 !important;
      font-size: 11px !important;
      letter-spacing: 2px !important;
      text-transform: uppercase !important;
      background: var(--nb-pink, #FF6B9D) !important;
      color: var(--nb-ink, #1a1a1a) !important;
      border: 2px solid var(--nb-ink, #1a1a1a) !important;
      box-shadow: 2px 2px 0 var(--nb-ink, #1a1a1a) !important;
      border-radius: 0 !important;
      padding: 4px 14px !important;
    }
    #frameDisplay .answer-overlay .ans-year {
      font-family: 'Space Mono', monospace !important;
      font-size: 13px !important;
      font-weight: 700 !important;
      letter-spacing: 3px !important;
      background: var(--nb-yellow, #FACC15) !important;
      color: var(--nb-ink, #1a1a1a) !important;
      border: 2px solid var(--nb-ink, #1a1a1a) !important;
      box-shadow: 2px 2px 0 var(--nb-ink, #1a1a1a) !important;
      padding: 2px 10px !important;
    }
    #frameDisplay .answer-overlay .ans-divider {
      width: 100% !important;
      height: 0 !important;
      border-top: 2px dashed var(--nb-ink, #1a1a1a) !important;
      margin: 4px 0 !important;
    }
    #frameDisplay .answer-overlay .ans-title {
      font-family: 'DM Sans', sans-serif !important;
      font-weight: 900 !important;
      font-size: clamp(22px, 4.5vw, 42px) !important;
      letter-spacing: 0.5px !important;
      text-transform: uppercase !important;
      color: var(--nb-ink, #1a1a1a) !important;
      line-height: 1.15 !important;
      text-shadow: none !important;
      background: none !important;
      -webkit-text-fill-color: var(--nb-ink, #1a1a1a) !important;
      filter: none !important;
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      word-break: break-word !important;
      overflow-wrap: anywhere !important;
      hyphens: auto !important;
      padding: 0 10px !important;
    }
    #frameDisplay .answer-overlay .ans-title.ans-title-long,
    #gameScreen .answer-overlay .ans-title.ans-title-long,
    .answer-overlay .ans-title.ans-title-long {
      font-size: clamp(14px, 2.8vw, 20px) !important;
      line-height: 1.3 !important;
      letter-spacing: 0.2px !important;
      word-break: break-all !important;
      overflow-wrap: anywhere !important;
      padding: 4px 8px !important;
      max-width: 100% !important;
      box-sizing: border-box !important;
      text-transform: none !important;
    }
    #frameDisplay .answer-overlay .ans-title.ans-title-xlong,
    #gameScreen .answer-overlay .ans-title.ans-title-xlong,
    .answer-overlay .ans-title.ans-title-xlong {
      font-family: 'Space Mono', 'Consolas', 'Courier New', monospace !important;
      font-weight: 700 !important;
      font-size: clamp(11.5px, 2.3vw, 15px) !important;
      line-height: 1.35 !important;
      letter-spacing: 0px !important;
      word-break: break-all !important;
      overflow-wrap: anywhere !important;
      padding: 8px 12px !important;
      max-width: 100% !important;
      box-sizing: border-box !important;
      text-transform: none !important;
      background: rgba(0, 0, 0, 0.04) !important;
      border: 2px dashed var(--nb-ink, #1a1a1a) !important;
      border-radius: 6px !important;
      max-height: 120px !important;
      overflow-y: auto !important;
    }
    #frameDisplay .answer-overlay .ans-dialogue {
      color: var(--nb-ink, #1a1a1a) !important;
      background: #fff !important;
      border: 2.5px solid var(--nb-ink, #1a1a1a) !important;
      box-shadow: 3px 3px 0 var(--nb-ink, #1a1a1a) !important;
      border-radius: 0 !important;
      padding: 10px 16px !important;
      font-family: 'DM Sans', sans-serif !important;
      font-weight: 700 !important;
      font-size: 14px !important;
    }

    /* ════ EYE SECTION SPECIFIC REVEAL STYLES: FULL IMAGE + BOTTOM ANSWER ════ */
    #gameScreen .answer-overlay.eye-answer,
    #frameDisplay .answer-overlay.eye-answer {
      justify-content: flex-end !important;
      align-items: center !important;
      padding: 10px 16px 20px 16px !important;
      background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.45) 75%, rgba(0, 0, 0, 0.88) 100%) !important;
      backdrop-filter: none !important;
      -webkit-backdrop-filter: none !important;
      pointer-events: none !important;
    }

    #gameScreen .answer-overlay.eye-answer .ans-card,
    #frameDisplay .answer-overlay.eye-answer .ans-card {
      margin-top: auto !important;
      margin-bottom: 0 !important;
      width: 100% !important;
      max-width: min(94%, 560px) !important;
      background: rgba(255, 253, 245, 0.96) !important;
      backdrop-filter: blur(12px) !important;
      -webkit-backdrop-filter: blur(12px) !important;
      border: 3.5px solid var(--nb-ink, #1a1a1a) !important;
      box-shadow: 6px 6px 0 var(--nb-ink, #1a1a1a) !important;
      border-radius: 16px !important;
      padding: 14px 20px 16px 20px !important;
      gap: 6px !important;
      pointer-events: auto !important;
      animation: eyeCardSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) both !important;
      z-index: 105 !important;
    }

    #gameScreen .answer-overlay.eye-answer .ans-year,
    #frameDisplay .answer-overlay.eye-answer .ans-year {
      display: none !important;
    }

    #gameScreen .answer-overlay.eye-answer .ans-divider,
    #frameDisplay .answer-overlay.eye-answer .ans-divider {
      display: none !important;
    }

    #gameScreen .answer-overlay.eye-answer .ans-title,
    #frameDisplay .answer-overlay.eye-answer .ans-title {
      font-size: clamp(22px, 4.2vw, 34px) !important;
      line-height: 1.15 !important;
      letter-spacing: 0.5px !important;
      margin: 2px 0 !important;
      word-break: break-word !important;
      overflow-wrap: anywhere !important;
      max-width: 100% !important;
      box-sizing: border-box !important;
    }

    #gameScreen .answer-overlay.eye-answer .ans-dialogue,
    #frameDisplay .answer-overlay.eye-answer .ans-dialogue {
      margin: 2px 0 !important;
      padding: 6px 12px !important;
    }

    #gameScreen .answer-overlay.eye-answer .ans-action-bar,
    #frameDisplay .answer-overlay.eye-answer .ans-action-bar {
      margin-top: 8px !important;
    }

    #gameScreen .answer-overlay.eye-answer .ans-next-round-btn,
    #frameDisplay .answer-overlay.eye-answer .ans-next-round-btn {
      padding: 8px 24px !important;
      font-size: 13.5px !important;
    }

    /* Full reveal photo: 100% visible, centered, unblocked and crisp */
    .frame-image.eye-full-reveal,
    #gameScreen .frame-image.eye-full-reveal {
      position: absolute !important;
      inset: 0 !important;
      width: 100% !important;
      height: 100% !important;
      max-width: 100% !important;
      max-height: 100% !important;
      object-fit: contain !important;
      z-index: 4 !important;
      opacity: 0;
      transform: scale(1.02);
      filter: none !important;
      transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }

    .frame-image.eye-full-reveal.visible,
    #gameScreen .frame-image.eye-full-reveal.visible {
      opacity: 1 !important;
      transform: scale(1) !important;
    }

    @keyframes eyeCardSlideUp {
      from {
        opacity: 0;
        transform: translateY(28px) scale(0.97);
      }
      to {
        opacity: 1;
        transform: translateY(0) scale(1);
      }
    }

    /* ══════════════════════════════════════════════════════════
       🕊️ MEMORIAL TRIBUTE DISPLAY (100% UNOBSTRUCTED FULL PHOTO)
       ══════════════════════════════════════════════════════════ */
    #gameScreen .answer-overlay.tribute-answer,
    #frameDisplay .answer-overlay.tribute-answer {
      justify-content: center !important;
      align-items: center !important;
      flex-direction: row !important;
      gap: clamp(16px, 3vw, 36px) !important;
      padding: clamp(14px, 2.5vw, 28px) !important;
      background: rgba(10, 12, 16, 0.94) !important;
      backdrop-filter: blur(14px) !important;
      -webkit-backdrop-filter: blur(14px) !important;
      overflow-y: auto !important;
      pointer-events: auto !important;
    }

    .tribute-display {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      animation: tributeCardFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
    }

    @keyframes tributeCardFadeIn {
      from { opacity: 0; transform: translateY(16px) scale(0.96); }
      to { opacity: 1; transform: translateY(0) scale(1); }
    }

    .tribute-card {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      background: #000000;
      border: 3.5px solid #CBD5E1;
      box-shadow: 8px 8px 0px rgba(0, 0, 0, 0.75);
      border-radius: 20px;
      padding: 12px 12px 14px 12px;
      max-width: 100%;
      box-sizing: border-box;
    }

    .tribute-img-wrap {
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      background: #000000;
      border-radius: 12px;
      overflow: hidden;
    }

    .tribute-img {
      width: 100%;
      max-width: 360px;
      max-height: 48vh;
      object-fit: contain;
      display: block;
      border-radius: 10px;
    }

    .tribute-caption {
      margin-top: 12px;
      font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
      font-size: 16px;
      font-weight: 700;
      letter-spacing: 0.6px;
      color: #F8FAFC;
      text-align: center;
      font-style: italic;
      text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
      padding: 2px 10px;
    }

    #gameScreen .answer-overlay.tribute-answer .ans-card,
    #frameDisplay .answer-overlay.tribute-answer .ans-card {
      margin: 0 !important;
      max-width: 440px !important;
      flex: 1 1 auto;
      background: rgba(255, 253, 245, 0.98) !important;
      border: 3.5px solid #000000 !important;
      box-shadow: 8px 8px 0px #000000 !important;
      border-radius: 20px !important;
    }

    @media (max-width: 820px) {
      #gameScreen .answer-overlay.tribute-answer,
      #frameDisplay .answer-overlay.tribute-answer {
        flex-direction: column !important;
        gap: 14px !important;
        padding: 16px 12px !important;
        justify-content: flex-start !important;
      }
      .tribute-img {
        max-width: 240px;
        max-height: 32vh;
      }
      .tribute-caption {
        font-size: 14px;
        margin-top: 8px;
      }
      #gameScreen .answer-overlay.tribute-answer .ans-card,
      #frameDisplay .answer-overlay.tribute-answer .ans-card {
        max-width: 95% !important;
        width: 100% !important;
      }
    }

    /* ── SCORING OVERLAY (1.5X SCALE) ── */
    #gameScreen .scoring-overlay {
      position: absolute !important;
      inset: 0 !important;
      z-index: 60 !important;
      background: rgba(255, 253, 245, 0.98) !important;
      backdrop-filter: blur(8px) !important;
      display: none;
      flex-direction: column !important;
      align-items: center !important;
      justify-content: center !important;
      padding: 28px !important;
      text-align: center !important;
      overflow-y: auto !important;
      border: 3.5px solid var(--nb-ink, #1a1a1a) !important;
    }
    #gameScreen .scoring-overlay.on {
      display: flex !important;
      animation: nbHeroIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) both !important;
    }
    #gameScreen .scoring-answer-badge {
      background: #fff !important;
      border: 3px solid var(--nb-ink, #1a1a1a) !important;
      box-shadow: 4.5px 4.5px 0 var(--nb-ink, #1a1a1a) !important;
      border-radius: 0 !important;
      padding: 10px 24px !important;
      margin-bottom: 16px !important;
      display: inline-flex !important;
      align-items: center !important;
      gap: 12px !important;
      max-width: 90% !important;
    }
    #gameScreen .sab-label {
      font-family: 'Space Mono', monospace !important;
      font-weight: 700 !important;
      font-size: 13px !important;
      letter-spacing: 1px !important;
      text-transform: uppercase !important;
      background: var(--nb-green, #84CC16) !important;
      color: var(--nb-ink, #1a1a1a) !important;
      padding: 4px 10px !important;
      border: 1.8px solid var(--nb-ink, #1a1a1a) !important;
      display: inline-flex !important;
      align-items: center !important;
      gap: 6px !important;
    }
    #gameScreen .sab-label svg {
      width: 15px !important;
      height: 15px !important;
    }
    #gameScreen .sab-title {
      font-family: 'DM Sans', sans-serif !important;
      font-weight: 900 !important;
      font-size: clamp(20px, 4vw, 28px) !important;
      color: var(--nb-ink, #1a1a1a) !important;
      text-transform: uppercase !important;
    }
    #gameScreen .sab-year {
      font-family: 'Space Mono', monospace !important;
      font-size: 15px !important;
      font-weight: 700 !important;
      background: var(--nb-yellow, #FACC15) !important;
      color: var(--nb-ink, #1a1a1a) !important;
      padding: 3px 8px !important;
      border: 1.8px solid var(--nb-ink, #1a1a1a) !important;
    }
    #gameScreen .scoring-title {
      font-family: 'DM Sans', sans-serif !important;
      font-weight: 900 !important;
      font-size: clamp(28px, 5.5vw, 42px) !important;
      color: var(--nb-ink, #1a1a1a) !important;
      text-transform: uppercase !important;
      margin: 0 0 6px !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      gap: 10px !important;
    }
    #gameScreen .scoring-title svg {
      width: 36px !important;
      height: 36px !important;
      color: var(--nb-ink, #1a1a1a) !important;
    }
    #gameScreen .scoring-sub {
      font-family: 'Space Mono', monospace !important;
      font-size: 15px !important;
      font-weight: 700 !important;
      color: var(--nb-ink, #1a1a1a) !important;
      opacity: 0.85 !important;
      margin-bottom: 22px !important;
      text-transform: uppercase !important;
      letter-spacing: 1.5px !important;
    }
    #gameScreen .scoring-grid {
      display: flex !important;
      flex-wrap: wrap !important;
      justify-content: center !important;
      gap: 24px !important;
      max-width: 720px !important;
      margin: 0 auto !important;
    }
    #gameScreen .sp-wrap {
      position: relative !important;
      display: flex !important;
      flex-direction: column !important;
      align-items: center !important;
      gap: 8px !important;
    }
    #gameScreen .sp-btn-anchor {
      position: relative !important;
      display: inline-block !important;
      line-height: 0 !important;
    }
    #gameScreen .spbtn {
      width: 108px !important;
      height: 108px !important;
      border-radius: 50% !important;
      border: 3.5px solid var(--nb-ink, #1a1a1a) !important;
      box-shadow: 6px 6px 0 var(--nb-ink, #1a1a1a) !important;
      background: #fff !important;
      cursor: pointer !important;
      display: grid !important;
      place-items: center !important;
      overflow: hidden !important;
      transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.15s ease !important;
      position: relative !important;
      padding: 0 !important;
    }
    #gameScreen .spbtn:hover:not(:disabled) {
      transform: translate(-3px, -3px) scale(1.05) !important;
      box-shadow: 9px 9px 0 var(--nb-ink, #1a1a1a) !important;
    }
    #gameScreen .spbtn:active:not(:disabled) {
      transform: translate(3px, 3px) scale(0.98) !important;
      box-shadow: 2px 2px 0 var(--nb-ink, #1a1a1a) !important;
    }
    #gameScreen .spbtn.sel {
      box-shadow: 0 0 0 5px var(--nb-green, #84CC16), 8px 8px 0 var(--nb-ink, #1a1a1a) !important;
      transform: scale(1.1) !important;
    }
    #gameScreen .sp-judge-tag {
      font-family: 'Space Mono', monospace !important;
      font-size: 10px !important;
      font-weight: 700 !important;
      background: var(--nb-yellow, #FACC15) !important;
      color: var(--nb-ink, #1a1a1a) !important;
      border: 1px solid var(--nb-ink, #1a1a1a) !important;
      padding: 1px 4px !important;
      margin-left: 4px !important;
      border-radius: 0 !important;
      vertical-align: middle !important;
    }
    #gameScreen .spbtn img {
      position: absolute !important;
      inset: 0 !important;
      width: 100% !important;
      height: 100% !important;
      object-fit: cover !important;
      object-position: center !important;
      border-radius: 50% !important;
      display: block !important;
    }
    #gameScreen .sp-key {
      position: absolute !important;
      top: 0px !important;
      right: 0px !important;
      left: auto !important;
      width: 30px !important;
      height: 30px !important;
      border-radius: 0 !important;
      background: var(--nb-yellow, #FACC15) !important;
      color: var(--nb-ink, #1a1a1a) !important;
      border: 2.2px solid var(--nb-ink, #1a1a1a) !important;
      box-shadow: 2px 2px 0 var(--nb-ink, #1a1a1a) !important;
      font-family: 'Space Mono', monospace !important;
      font-weight: 700 !important;
      font-size: 15px !important;
      display: grid !important;
      place-items: center !important;
      z-index: 5 !important;
      pointer-events: none !important;
    }
    #gameScreen .sp-name {
      font-family: 'DM Sans', sans-serif !important;
      font-weight: 900 !important;
      font-size: 15px !important;
      color: var(--nb-ink, #1a1a1a) !important;
      text-transform: uppercase !important;
      background: #fff !important;
      border: 2px solid var(--nb-ink, #1a1a1a) !important;
      box-shadow: 2.5px 2.5px 0 var(--nb-ink, #1a1a1a) !important;
      padding: 3px 10px !important;
      border-radius: 0 !important;
      letter-spacing: 0.5px !important;
      display: inline-flex !important;
      align-items: center !important;
      justify-content: center !important;
      gap: 4px !important;
      white-space: nowrap !important;
    }
    
    /* ── SCORING RESULT INDICATORS (1.5X SCALE) ── */
    #gameScreen .locked-ind {
      display: none;
      align-items: center !important;
      gap: 10px !important;
      background: var(--nb-green, #84CC16) !important;
      color: var(--nb-ink, #1a1a1a) !important;
      border: 3px solid var(--nb-ink, #1a1a1a) !important;
      box-shadow: 5px 5px 0 var(--nb-ink, #1a1a1a) !important;
      border-radius: 0 !important;
      font-family: 'DM Sans', sans-serif !important;
      font-weight: 900 !important;
      font-size: 18px !important;
      padding: 12px 28px !important;
      margin-top: 20px !important;
      text-transform: uppercase !important;
    }
    #gameScreen .locked-ind.on {
      display: inline-flex !important;
      animation: nbHeroIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both !important;
    }
    #gameScreen .locked-ind svg {
      width: 22px !important;
      height: 22px !important;
      color: var(--nb-ink, #1a1a1a) !important;
    }
    
    #gameScreen .skipped-ind {
      display: none;
      align-items: center !important;
      gap: 10px !important;
      background: var(--nb-orange, #FB923C) !important;
      color: var(--nb-ink, #1a1a1a) !important;
      border: 3px solid var(--nb-ink, #1a1a1a) !important;
      box-shadow: 5px 5px 0 var(--nb-ink, #1a1a1a) !important;
      border-radius: 0 !important;
      font-family: 'DM Sans', sans-serif !important;
      font-weight: 900 !important;
      font-size: 18px !important;
      padding: 12px 28px !important;
      margin-top: 20px !important;
      text-transform: uppercase !important;
    }
    #gameScreen .skipped-ind.on {
      display: inline-flex !important;
      animation: nbHeroIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both !important;
    }

    /* ── RIGHT CONTROL SIDEBAR ── */
    #gameScreen .ctrl-panel {
      width: 320px !important;
      background: transparent !important;
      border: none !important;
      box-shadow: none !important;
      display: flex !important;
      flex-direction: column !important;
      gap: 16px !important;
      padding: 0 !important;
      overflow-y: auto !important;
      flex-shrink: 0 !important;
    }

    /* Modular Neobrutalist Cards */
    #gameScreen .panel-sec {
      background: #fff !important;
      border: 3.5px solid var(--nb-ink, #1a1a1a) !important;
      box-shadow: 5px 5px 0 var(--nb-ink, #1a1a1a) !important;
      border-radius: 0 !important;
      padding: 16px !important;
      display: flex !important;
      flex-direction: column !important;
      transition: transform 0.15s ease, box-shadow 0.15s ease !important;
    }
    #gameScreen .panel-sec:hover {
      box-shadow: 6px 6px 0 var(--nb-ink, #1a1a1a) !important;
    }
    #gameScreen .panel-sec h3 {
      font-family: 'DM Sans', sans-serif !important;
      font-weight: 900 !important;
      font-size: 14px !important;
      letter-spacing: 1px !important;
      text-transform: uppercase !important;
      color: var(--nb-ink, #1a1a1a) !important;
      display: flex !important;
      align-items: center !important;
      gap: 8px !important;
      margin-bottom: 12px !important;
      border-bottom: 2.5px solid var(--nb-ink, #1a1a1a) !important;
      padding-bottom: 8px !important;
    }
    #gameScreen .panel-sec h3 svg { color: var(--nb-ink, #1a1a1a) !important; width: 18px; height: 18px; }

    /* Timer Block */
    #gameScreen .timer-block {
      padding: 4px 0 !important;
      gap: 8px !important;
      display: flex !important;
      flex-direction: column !important;
      align-items: center !important;
    }
    #gameScreen .timer-circle {
      width: 100px !important;
      height: 100px !important;
      border-radius: 50% !important;
      border: 3.5px solid var(--nb-ink, #1a1a1a) !important;
      box-shadow: 4px 4px 0 var(--nb-ink, #1a1a1a) !important;
      background: var(--nb-bg, #FFFDF5) !important;
      position: relative !important;
      display: grid !important;
      place-items: center !important;
      transition: transform 0.15s ease, box-shadow 0.15s ease !important;
    }
    #gameScreen .timer-circle:hover {
      transform: scale(1.04) !important;
    }
    #gameScreen .timer-circle.t-pulse {
      animation: nbTimerUrgent 0.5s ease-in-out infinite alternate !important;
      box-shadow: 4px 4px 0 #ef4444 !important;
    }
    @keyframes nbTimerUrgent {
      from { transform: scale(1); }
      to { transform: scale(1.04); }
    }
    #gameScreen .timer-circle .tbg {
      stroke: #e5e5e5 !important;
      stroke-width: 8 !important;
    }
    #gameScreen .timer-circle .tpg {
      stroke-width: 8 !important;
      stroke-linecap: square !important;
      stroke: var(--nb-yellow, #FACC15) !important;
    }
    #gameScreen .ttx {
      font-family: 'DM Sans', sans-serif !important;
      font-weight: 900 !important;
      font-size: 36px !important;
      color: var(--nb-ink, #1a1a1a) !important;
    }
    #gameScreen .timer-label {
      font-family: 'Space Mono', monospace !important;
      font-size: 11px !important;
      font-weight: 700 !important;
      letter-spacing: 1.5px !important;
      text-transform: uppercase !important;
      color: var(--nb-ink, #1a1a1a) !important;
    }

    /* "No One Knows" Action Button */
    #gameScreen .nonk-btn {
      background: var(--nb-orange, #FB923C) !important;
      color: var(--nb-ink, #1a1a1a) !important;
      border: 3px solid var(--nb-ink, #1a1a1a) !important;
      box-shadow: 4px 4px 0 var(--nb-ink, #1a1a1a) !important;
      border-radius: 0 !important;
      padding: 10px 14px !important;
      font-family: 'DM Sans', sans-serif !important;
      font-weight: 800 !important;
      font-size: 13px !important;
      text-transform: uppercase !important;
      letter-spacing: 0.5px !important;
      width: 100% !important;
      cursor: pointer !important;
      transition: transform 0.15s ease, box-shadow 0.15s ease !important;
      margin-bottom: 10px !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      gap: 6px !important;
    }
    #gameScreen .nonk-btn:hover:not(:disabled) {
      transform: translate(-2px, -2px) !important;
      box-shadow: 6px 6px 0 var(--nb-ink, #1a1a1a) !important;
    }
    #gameScreen .nonk-btn:active:not(:disabled) {
      transform: translate(2px, 2px) !important;
      box-shadow: 1px 1px 0 var(--nb-ink, #1a1a1a) !important;
    }

    /* Leaderboard Items */
    #gameScreen .ctrl-panel {
      width: 350px !important;
      min-width: 330px !important;
      flex-shrink: 0 !important;
      background: transparent !important;
      border: none !important;
      box-shadow: none !important;
      display: flex !important;
      flex-direction: column !important;
      gap: 14px !important;
    }
    #gameScreen .panel-sec {
      background: #fff !important;
      border: 2.5px solid var(--nb-ink, #1a1a1a) !important;
      box-shadow: 4px 4px 0 var(--nb-ink, #1a1a1a) !important;
      border-radius: 0 !important;
      padding: 12px 14px !important;
      position: relative !important;
    }
    #gameScreen .leaderboard {
      display: flex !important;
      flex-direction: column !important;
      gap: 8px !important;
      background: transparent !important;
      overflow-y: auto !important;
      max-height: 260px !important;
      padding: 2px !important;
    }
    #gameScreen .lb-item {
      background: var(--nb-bg, #FFFDF5) !important;
      border: 2px solid var(--nb-ink, #1a1a1a) !important;
      box-shadow: 3px 3px 0 var(--nb-ink, #1a1a1a) !important;
      border-radius: 0 !important;
      padding: 5px 8px !important;
      display: flex !important;
      align-items: center !important;
      gap: 8px !important;
      transition: transform 0.15s ease, box-shadow 0.15s ease !important;
      min-height: 42px !important;
      overflow: visible !important;
    }
    #gameScreen .lb-item:hover {
      transform: translate(-1px, -1px) !important;
      box-shadow: 4px 4px 0 var(--nb-ink, #1a1a1a) !important;
    }
    #gameScreen .lb-item.top {
      background: var(--nb-yellow, #FACC15) !important;
      box-shadow: 3.5px 3.5px 0 var(--nb-ink, #1a1a1a) !important;
    }
    #gameScreen .lb-rank {
      width: 22px !important;
      height: 22px !important;
      min-width: 22px !important;
      border: 1.5px solid var(--nb-ink, #1a1a1a) !important;
      border-radius: 0 !important;
      background: #fff !important;
      color: var(--nb-ink, #1a1a1a) !important;
      font-family: 'Space Mono', monospace !important;
      font-weight: 700 !important;
      font-size: 11px !important;
      display: grid !important;
      place-items: center !important;
      flex-shrink: 0 !important;
    }
    #gameScreen .lb-item.top .lb-rank {
      background: var(--nb-pink, #FF6B9D) !important;
      color: var(--nb-ink, #1a1a1a) !important;
    }
    #gameScreen .lb-av-wrap {
      width: 32px !important;
      height: 32px !important;
      min-width: 32px !important;
      border: 1.8px solid var(--nb-ink, #1a1a1a) !important;
      border-radius: 50% !important;
      background: #fff !important;
      position: relative !important;
      overflow: hidden !important;
      flex-shrink: 0 !important;
    }
    #gameScreen .lb-name {
      flex: 1 1 auto !important;
      min-width: 0 !important;
      font-family: 'DM Sans', sans-serif !important;
      font-weight: 800 !important;
      font-size: 13px !important;
      color: var(--nb-ink, #1a1a1a) !important;
      white-space: nowrap !important;
      overflow: hidden !important;
      text-overflow: ellipsis !important;
      text-transform: uppercase !important;
      display: flex !important;
      align-items: center !important;
      gap: 4px !important;
    }
    .lb-judge-badge {
      font-size: 8.5px !important;
      background: var(--nb-pink, #FF6B9D) !important;
      color: var(--nb-ink, #1a1a1a) !important;
      border: 1px solid var(--nb-ink, #1a1a1a) !important;
      padding: 1px 4px !important;
      font-weight: 800 !important;
      font-family: 'Space Mono', monospace !important;
      flex-shrink: 0 !important;
    }
    #gameScreen .lb-score-cluster {
      display: flex !important;
      align-items: center !important;
      gap: 4px !important;
      margin-left: auto !important;
      flex-shrink: 0 !important;
    }
    #gameScreen .lb-score {
      font-family: 'Space Mono', monospace !important;
      font-weight: 700 !important;
      font-size: 12px !important;
      color: var(--nb-ink, #1a1a1a) !important;
      background: #fff !important;
      padding: 2px 6px !important;
      border: 1.5px solid var(--nb-ink, #1a1a1a) !important;
      box-shadow: 1.5px 1.5px 0 var(--nb-ink, #1a1a1a) !important;
      min-width: 30px !important;
      text-align: center !important;
      display: inline-block !important;
    }
    #gameScreen .lb-score-btn {
      width: 22px !important;
      height: 22px !important;
      min-width: 22px !important;
      min-height: 22px !important;
      border: 1.8px solid var(--nb-ink, #1a1a1a) !important;
      border-radius: 0 !important;
      background: #fff !important;
      color: var(--nb-ink, #1a1a1a) !important;
      font-family: 'Space Mono', monospace !important;
      font-weight: 900 !important;
      font-size: 13px !important;
      line-height: 1 !important;
      box-shadow: 1.5px 1.5px 0 var(--nb-ink, #1a1a1a) !important;
      cursor: pointer !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      padding: 0 !important;
      user-select: none !important;
      transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.1s ease !important;
    }
    #gameScreen .lb-score-btn:hover {
      background: var(--nb-green, #84CC16) !important;
      transform: translate(-1px, -1px) !important;
      box-shadow: 2.5px 2.5px 0 var(--nb-ink, #1a1a1a) !important;
    }
    #gameScreen .lb-score-btn.minus:hover {
      background: var(--nb-pink, #FF6B9D) !important;
    }
    #gameScreen .lb-score-btn:active {
      transform: translate(1px, 1px) !important;
      box-shadow: 0.5px 0.5px 0 var(--nb-ink, #1a1a1a) !important;
    }
    #gameScreen .leaderboard-actions {
      display: flex !important;
      gap: 8px !important;
      margin-top: 10px !important;
    }
    #gameScreen .skip-btn, #gameScreen .super-skip-btn {
      flex: 1 !important;
      background: var(--nb-bg, #FFFDF5) !important;
      color: var(--nb-ink, #1a1a1a) !important;
      border: 2px solid var(--nb-ink, #1a1a1a) !important;
      box-shadow: 2.5px 2.5px 0 var(--nb-ink, #1a1a1a) !important;
      border-radius: 0 !important;
      font-family: 'Space Mono', monospace !important;
      font-weight: 700 !important;
      font-size: 11px !important;
      text-transform: uppercase !important;
      padding: 6px !important;
      cursor: pointer !important;
    }
    #gameScreen .skip-btn:hover, #gameScreen .super-skip-btn:hover {
      transform: translate(-1px, -1px) !important;
      box-shadow: 3.5px 3.5px 0 var(--nb-ink, #1a1a1a) !important;
    }

    /* ── SECTION & ROUND INTRO OVERLAYS — NEOBRUTALISM ── */
    .sec-intro-ov, .round-intro-ov {
      display: none;
      position: fixed;
      inset: 0;
      z-index: 800;
      background: rgba(26,26,26,0.78) !important;
      backdrop-filter: blur(4px) !important;
      align-items: center;
      justify-content: center;
      padding: 16px;
    }
    .sec-intro-ov.on, .round-intro-ov.on { display: flex !important; }
    .sio-content {
      background: var(--nb-yellow, #FACC15) !important;
      border: 4px solid var(--nb-ink, #1a1a1a) !important;
      box-shadow: 10px 10px 0 var(--nb-ink, #1a1a1a) !important;
      border-radius: 0 !important;
      padding: 36px 40px !important;
      display: flex !important;
      flex-direction: column !important;
      align-items: center !important;
      text-align: center !important;
      gap: 12px !important;
      max-width: min(92vw, 540px) !important;
      animation: nbHeroIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both !important;
    }
    .sio-eyebrow {
      background: var(--nb-pink, #FF6B9D) !important;
      color: var(--nb-ink, #1a1a1a) !important;
      border: 2px solid var(--nb-ink, #1a1a1a) !important;
      box-shadow: 2.5px 2.5px 0 var(--nb-ink, #1a1a1a) !important;
      border-radius: 0 !important;
      font-family: 'Space Mono', monospace !important;
      font-size: 11px !important;
      font-weight: 700 !important;
      letter-spacing: 2px !important;
      text-transform: uppercase !important;
      padding: 4px 12px !important;
    }
    .sio-icon {
      width: 72px !important;
      height: 72px !important;
      border-radius: 50% !important;
      border: 3px solid var(--nb-ink, #1a1a1a) !important;
      box-shadow: 4px 4px 0 var(--nb-ink, #1a1a1a) !important;
      background: #fff !important;
      display: grid !important;
      place-items: center !important;
      color: var(--nb-ink, #1a1a1a) !important;
      margin: 4px auto !important;
    }
    .sio-icon svg { width: 36px !important; height: 36px !important; }
    .sio-name {
      font-family: 'DM Sans', sans-serif !important;
      font-weight: 900 !important;
      font-size: clamp(32px, 6vw, 52px) !important;
      color: var(--nb-ink, #1a1a1a) !important;
      text-transform: uppercase !important;
      line-height: 1.1 !important;
      background: none !important;
      -webkit-text-fill-color: var(--nb-ink, #1a1a1a) !important;
    }
    .sio-meta {
      background: #fff !important;
      color: var(--nb-ink, #1a1a1a) !important;
      border: 2px solid var(--nb-ink, #1a1a1a) !important;
      box-shadow: 3px 3px 0 var(--nb-ink, #1a1a1a) !important;
      border-radius: 0 !important;
      font-family: 'Space Mono', monospace !important;
      font-weight: 700 !important;
      font-size: 12px !important;
      padding: 4px 14px !important;
    }
    .sio-meta span { color: var(--nb-ink, #1a1a1a) !important; font-weight: 900 !important; }
    .sio-ready {
      font-family: 'Space Mono', monospace !important;
      font-size: 12px !important;
      font-weight: 700 !important;
      letter-spacing: 2px !important;
      text-transform: uppercase !important;
      color: var(--nb-ink, #1a1a1a) !important;
    }
    .sio-dots { display: flex; gap: 8px; justify-content: center; }
    .sio-dot {
      width: 12px !important;
      height: 12px !important;
      border: 2px solid var(--nb-ink, #1a1a1a) !important;
      border-radius: 0 !important;
      background: #fff !important;
    }
    .sio-dot.a { background: var(--nb-pink, #FF6B9D) !important; transform: scale(1.15); }
    .sio-dot.c { background: var(--nb-green, #84CC16) !important; }

    /* Round Intro modal */
    .rio-content {
      background: var(--nb-blue, #3B82F6) !important;
      border: 4px solid var(--nb-ink, #1a1a1a) !important;
      box-shadow: 10px 10px 0 var(--nb-ink, #1a1a1a) !important;
      border-radius: 0 !important;
      padding: 32px 40px !important;
      display: flex !important;
      flex-direction: column !important;
      align-items: center !important;
      gap: 10px !important;
      color: #fff !important;
      animation: nbHeroIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both !important;
    }
    .rio-badge {
      background: var(--nb-yellow, #FACC15) !important;
      color: var(--nb-ink, #1a1a1a) !important;
      border: 2px solid var(--nb-ink, #1a1a1a) !important;
      box-shadow: 2.5px 2.5px 0 var(--nb-ink, #1a1a1a) !important;
      border-radius: 0 !important;
      font-family: 'Space Mono', monospace !important;
      font-size: 11px !important;
      font-weight: 700 !important;
      letter-spacing: 2px !important;
      padding: 4px 12px !important;
    }
    .rio-num {
      font-family: 'DM Sans', sans-serif !important;
      font-weight: 900 !important;
      font-size: clamp(48px, 9vw, 84px) !important;
      color: #fff !important;
      line-height: 1 !important;
      text-shadow: 4px 4px 0 var(--nb-ink, #1a1a1a) !important;
    }
    .rio-tag {
      font-family: 'Space Mono', monospace !important;
      font-weight: 700 !important;
      font-size: 13px !important;
      letter-spacing: 2px !important;
      color: #fff !important;
    }
    .rio-dots { display: flex; gap: 8px; }
    .rio-dot {
      width: 14px !important;
      height: 14px !important;
      border: 2px solid var(--nb-ink, #1a1a1a) !important;
      border-radius: 0 !important;
      background: #fff !important;
    }
    .rio-dot.a {
      background: var(--nb-yellow, #FACC15) !important;
      box-shadow: 2px 2px 0 var(--nb-ink, #1a1a1a) !important;
    }

    /* Home "Resume Game" card */
    .h-card-resume { border: 3px solid var(--nb-ink) !important; }
    .h-card-resume .h-card-title { color: var(--nb-ink) !important; }
    .h-card-resume .h-card-desc { color: var(--nb-ink) !important; }

    /* ── responsive: stack on narrow screens ── */
    @media (max-width: 860px) {
      .cw-center-stage-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
      }
      .cw-left-col .cw-msg-card {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: unset !important;
      }
      .cw-right-col {
        width: 100% !important;
        max-height: none !important;
      }
      #gameScreen .ctrl-panel { width: 100% !important; flex-direction: row !important; flex-wrap: wrap !important; }
      #gameScreen .panel-sec { flex: 1 1 240px !important; }
      #gameScreen .game-main { flex-direction: column !important; }
    }

    /* ══════════════════════════════════════════════════════════════
       NEOBRUTALISM ESPORTS CHAMPIONSHIP VICTORY ARENA
       ══════════════════════════════════════════════════════════════ */
    #winnerScreen {
      display: none;
      flex-direction: column !important;
      align-items: center !important;
      justify-content: flex-start !important;
      background: var(--nb-bg, #FFFDF5) !important;
      padding: 36px 20px 60px !important;
      gap: 24px !important;
      position: relative !important;
      overflow-y: auto !important;
      min-height: 100vh !important;
      z-index: 10 !important;
    }
    #winnerScreen.active {
      display: flex !important;
      animation: nbHeroIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both !important;
    }

    /* Podium Container */
    #winnerScreen .podium-section {
      display: flex !important;
      flex-direction: column !important;
      align-items: center !important;
      gap: 14px !important;
      width: 100% !important;
      max-width: 800px !important;
      margin-top: 10px !important;
      position: relative !important;
      z-index: 2 !important;
    }
    #winnerScreen .trophy-txt {
      font-family: 'DM Sans', sans-serif !important;
      font-weight: 900 !important;
      font-size: clamp(28px, 5.5vw, 44px) !important;
      color: var(--nb-ink, #1a1a1a) !important;
      -webkit-text-fill-color: var(--nb-ink, #1a1a1a) !important;
      -webkit-background-clip: border-box !important;
      background-clip: border-box !important;
      text-transform: uppercase !important;
      display: inline-flex !important;
      align-items: center !important;
      justify-content: center !important;
      gap: 12px !important;
      background: var(--nb-yellow, #FACC15) !important;
      border: 3.5px solid var(--nb-ink, #1a1a1a) !important;
      box-shadow: 5px 5px 0 var(--nb-ink, #1a1a1a) !important;
      border-radius: 0 !important;
      padding: 8px 26px !important;
      letter-spacing: 1px !important;
      transform: rotate(-1deg) !important;
      opacity: 1 !important;
      visibility: visible !important;
    }
    #winnerScreen .trophy-txt .svg-icon,
    #winnerScreen .trophy-txt svg {
      display: inline-block !important;
      width: 32px !important;
      height: 32px !important;
      color: var(--nb-ink, #1a1a1a) !important;
      stroke: var(--nb-ink, #1a1a1a) !important;
      fill: none !important;
      flex-shrink: 0 !important;
    }

    /* Stepped Olympic Podium */
    #winnerScreen .podium-stage {
      display: flex !important;
      align-items: flex-end !important;
      justify-content: center !important;
      gap: 16px !important;
      width: 100% !important;
      margin-top: 24px !important;
    }
    #winnerScreen .podium-slot {
      display: flex !important;
      flex-direction: column !important;
      align-items: center !important;
      flex: 1 !important;
      max-width: 220px !important;
      position: relative !important;
    }
    #winnerScreen .podium-avatar {
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      margin-bottom: 8px !important;
      position: relative !important;
      background: transparent !important;
      box-shadow: none !important;
    }
    #winnerScreen .crown {
      position: absolute !important;
      top: -24px !important;
      background: var(--nb-yellow, #FACC15) !important;
      border: 2px solid var(--nb-ink, #1a1a1a) !important;
      box-shadow: 2.5px 2.5px 0 var(--nb-ink, #1a1a1a) !important;
      border-radius: 0 !important;
      padding: 4px 8px !important;
      display: grid !important;
      place-items: center !important;
      z-index: 5 !important;
      animation: nbFloat 3s ease-in-out infinite !important;
    }
    #winnerScreen .crown svg {
      width: 20px !important;
      height: 20px !important;
      color: var(--nb-ink, #1a1a1a) !important;
    }

    /* Champion Trophy Video Canvas / Poster */
    #winnerScreen .trophy-vid {
      display: block !important;
      height: clamp(160px, 24vw, 220px) !important;
      width: auto !important;
      background: transparent !important;
      border: none !important;
      box-shadow: none !important;
      filter: drop-shadow(4px 4px 0 var(--nb-ink, #1a1a1a)) !important;
    }
    #winnerScreen .trophy-fig {
      width: clamp(110px, 16vw, 150px) !important;
      aspect-ratio: 1 !important;
      border: 3px solid var(--nb-ink, #1a1a1a) !important;
      box-shadow: 5px 5px 0 var(--nb-ink, #1a1a1a) !important;
      border-radius: 0 !important;
      object-fit: cover !important;
      background: #fff !important;
      display: block !important;
    }
    #winnerScreen .p-circle {
      width: 76px !important;
      height: 76px !important;
      border-radius: 50% !important;
      border: 3px solid var(--nb-ink, #1a1a1a) !important;
      box-shadow: 4px 4px 0 var(--nb-ink, #1a1a1a) !important;
      background: #fff !important;
      position: relative !important;
      overflow: hidden !important;
    }
    #winnerScreen .p-circle img {
      position: absolute !important;
      inset: 0 !important;
      width: 100% !important;
      height: 100% !important;
      object-fit: cover !important;
      object-position: center !important;
      border-radius: 50% !important;
    }
    #winnerScreen .p1 .p-circle {
      width: 96px !important;
      height: 96px !important;
      border: 3.5px solid var(--nb-ink, #1a1a1a) !important;
      box-shadow: 5px 5px 0 var(--nb-ink, #1a1a1a) !important;
    }
    #winnerScreen .trophy-fig.is-fallback {
      width: 84px !important;
      height: 84px !important;
      border-radius: 50% !important;
      border: 3px solid var(--nb-ink, #1a1a1a) !important;
      box-shadow: 4px 4px 0 var(--nb-ink, #1a1a1a) !important;
      display: grid !important;
      place-items: center !important;
      background: #fff !important;
    }
    #winnerScreen .podium-name {
      font-family: 'DM Sans', sans-serif !important;
      font-weight: 900 !important;
      font-size: 14px !important;
      color: var(--nb-ink, #1a1a1a) !important;
      text-transform: uppercase !important;
      background: #fff !important;
      border: 2px solid var(--nb-ink, #1a1a1a) !important;
      box-shadow: 2px 2px 0 var(--nb-ink, #1a1a1a) !important;
      padding: 2px 8px !important;
      margin-bottom: 4px !important;
      max-width: 95% !important;
      white-space: nowrap !important;
      overflow: hidden !important;
      text-overflow: ellipsis !important;
      border-radius: 0 !important;
    }
    #winnerScreen .podium-score {
      font-family: 'Space Mono', monospace !important;
      font-weight: 700 !important;
      font-size: 12px !important;
      color: var(--nb-ink, #1a1a1a) !important;
      background: var(--nb-yellow, #FACC15) !important;
      border: 1.8px solid var(--nb-ink, #1a1a1a) !important;
      box-shadow: 2px 2px 0 var(--nb-ink, #1a1a1a) !important;
      padding: 1px 6px !important;
      margin-bottom: 6px !important;
      border-radius: 0 !important;
    }
    #winnerScreen .podium-block {
      width: 100% !important;
      border: 3.5px solid var(--nb-ink, #1a1a1a) !important;
      box-shadow: 5px 5px 0 var(--nb-ink, #1a1a1a) !important;
      border-radius: 0 !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      font-family: 'DM Sans', sans-serif !important;
      font-weight: 900 !important;
      font-size: 32px !important;
      color: #fff !important;
      text-shadow: 2px 2px 0 var(--nb-ink, #1a1a1a) !important;
    }
    #winnerScreen .p1-block {
      min-height: 125px !important;
      background: var(--nb-yellow, #FACC15) !important;
      color: var(--nb-ink, #1a1a1a) !important;
      text-shadow: none !important;
    }
    #winnerScreen .p2-block {
      min-height: 90px !important;
      background: var(--nb-blue, #3B82F6) !important;
    }
    #winnerScreen .p3-block {
      min-height: 65px !important;
      background: var(--nb-orange, #FB923C) !important;
    }

    /* Bento Grid Columns */
    #winnerScreen .winner-cols-container {
      display: grid !important;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
      gap: 18px !important;
      width: 100% !important;
      max-width: 960px !important;
      margin: 10px auto 0 !important;
      z-index: 2 !important;
      position: relative !important;
    }
    #winnerScreen .final-lb {
      background: #fff !important;
      border: 3px solid var(--nb-ink, #1a1a1a) !important;
      box-shadow: 4.5px 4.5px 0 var(--nb-ink, #1a1a1a) !important;
      border-radius: 0 !important;
      padding: 16px 18px !important;
    }
    #winnerScreen .final-lb h3 {
      font-family: 'DM Sans', sans-serif !important;
      font-weight: 900 !important;
      font-size: 15px !important;
      color: var(--nb-ink, #1a1a1a) !important;
      text-transform: uppercase !important;
      margin: 0 0 12px !important;
      display: flex !important;
      align-items: center !important;
      gap: 6px !important;
    }
    #winnerScreen .final-lb h3 svg {
      width: 18px !important;
      height: 18px !important;
    }
    #winnerScreen .lb-item {
      background: var(--nb-bg, #FFFDF5) !important;
      border: 2px solid var(--nb-ink, #1a1a1a) !important;
      box-shadow: 2.5px 2.5px 0 var(--nb-ink, #1a1a1a) !important;
      border-radius: 0 !important;
      padding: 6px 10px !important;
      margin-bottom: 6px !important;
      display: flex !important;
      align-items: center !important;
      gap: 8px !important;
    }
    #winnerScreen .lb-item.top {
      background: var(--nb-yellow, #FACC15) !important;
    }
    #winnerScreen .lb-rank {
      width: 22px !important;
      height: 22px !important;
      border: 1.5px solid var(--nb-ink, #1a1a1a) !important;
      background: #fff !important;
      color: var(--nb-ink, #1a1a1a) !important;
      font-family: 'Space Mono', monospace !important;
      font-weight: 700 !important;
      font-size: 11px !important;
      display: grid !important;
      place-items: center !important;
      border-radius: 0 !important;
      flex-shrink: 0 !important;
    }
    #winnerScreen .lb-item.top .lb-rank {
      background: var(--nb-pink, #FF6B9D) !important;
      color: var(--nb-ink, #1a1a1a) !important;
    }
    #winnerScreen .lb-name {
      flex: 1 !important;
      font-family: 'DM Sans', sans-serif !important;
      font-weight: 800 !important;
      font-size: 13px !important;
      color: var(--nb-ink, #1a1a1a) !important;
      text-transform: uppercase !important;
    }
    #winnerScreen .lb-score {
      font-family: 'Space Mono', monospace !important;
      font-weight: 700 !important;
      font-size: 12px !important;
      color: var(--nb-ink, #1a1a1a) !important;
      background: #fff !important;
      border: 1.5px solid var(--nb-ink, #1a1a1a) !important;
      box-shadow: 1.5px 1.5px 0 var(--nb-ink, #1a1a1a) !important;
      padding: 2px 6px !important;
      border-radius: 0 !important;
    }
    #winnerScreen .msg-card {
      background: #fff !important;
      border: 3px solid var(--nb-ink, #1a1a1a) !important;
      box-shadow: 4.5px 4.5px 0 var(--nb-ink, #1a1a1a) !important;
      border-radius: 0 !important;
      padding: 16px 18px !important;
      display: flex !important;
      flex-direction: column !important;
      gap: 8px !important;
    }
    #winnerScreen .msg-card h4 {
      font-family: 'DM Sans', sans-serif !important;
      font-weight: 900 !important;
      font-size: 14px !important;
      color: var(--nb-ink, #1a1a1a) !important;
      text-transform: uppercase !important;
      margin: 0 !important;
      display: flex !important;
      align-items: center !important;
      gap: 6px !important;
    }
    #winnerScreen .msg-card h4 svg {
      width: 16px !important;
      height: 16px !important;
    }
    #winnerScreen .msg-card p {
      font-family: 'DM Sans', sans-serif !important;
      font-size: 13px !important;
      line-height: 1.5 !important;
      color: var(--nb-ink, #1a1a1a) !important;
      margin: 0 !important;
    }

    /* Buttons Deck */
    #winnerScreen .w-btns {
      display: flex !important;
      gap: 14px !important;
      justify-content: center !important;
      width: 100% !important;
      max-width: 480px !important;
      margin-top: 8px !important;
      z-index: 2 !important;
    }
    #winnerScreen .w-btns button {
      flex: 1 !important;
      padding: 12px 20px !important;
      border: 3px solid var(--nb-ink, #1a1a1a) !important;
      box-shadow: 4px 4px 0 var(--nb-ink, #1a1a1a) !important;
      border-radius: 0 !important;
      font-family: 'DM Sans', sans-serif !important;
      font-weight: 900 !important;
      font-size: 15px !important;
      text-transform: uppercase !important;
      letter-spacing: 0.5px !important;
      cursor: pointer !important;
      display: inline-flex !important;
      align-items: center !important;
      justify-content: center !important;
      gap: 8px !important;
      transition: transform 0.15s ease, box-shadow 0.15s ease !important;
    }
    #winnerScreen .btn-primary {
      background: var(--nb-green, #84CC16) !important;
      color: var(--nb-ink, #1a1a1a) !important;
    }
    #winnerScreen .btn-secondary {
      background: #fff !important;
      color: var(--nb-ink, #1a1a1a) !important;
    }
    #winnerScreen .w-btns button:hover {
      transform: translate(-2px, -2px) !important;
      box-shadow: 6px 6px 0 var(--nb-ink, #1a1a1a) !important;
    }
    #winnerScreen .w-btns button:active {
      transform: translate(2px, 2px) !important;
      box-shadow: 1px 1px 0 var(--nb-ink, #1a1a1a) !important;
    }

    /* ── HIDE eyebrow/badge labels per request ── */
    .h-eyebrow, .rule-eyebrow, .lobby-badge, .sio-eyebrow { display: none !important; }

    /* ── HIDE dropped features (cinematic · spectator) ── */
    .spectating-banner, .spectator-panel,



    /* Winner Screen Row Layout */
    .winner-cols-container {
      display: flex;
      flex-direction: row;
      align-items: stretch;
      justify-content: center;
      gap: 24px;
      width: 100%;
      max-width: 1200px;
      margin: 0 auto;
      z-index: 1;
      position: relative;
    }

    #winnerScreen .winner-cols-container .msg-card,
    #winnerScreen .winner-cols-container .final-lb {
      margin: 0 !important;
      max-width: none !important;
      height: auto;
    }

    .winner-cols-container .msg-card.long-message {
      flex: 1.2;
    }

    .winner-cols-container .final-lb {
      flex: 1;
    }

    .winner-cols-container .msg-card:not(.long-message) {
      flex: 0.8;
    }

    @media (max-width: 1024px) {
      .winner-cols-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
      }
      #winnerScreen .winner-cols-container .msg-card,
      #winnerScreen .winner-cols-container .final-lb {
        width: 100%;
        max-width: 500px !important;
        flex: none !important;
      }
    }

    /* ── LOBBY CHAT ── */
    .lobby-chat {
      width: 100%; display: flex; flex-direction: column; gap: 10px;
      background: #f5eeff; border-radius: 24px; padding: 16px 16px 14px;
      box-shadow: inset 4px 4px 10px #d6c6f0, inset -4px -4px 10px #fff;
    }
    .lobby-chat-head {
      display: flex; align-items: center; justify-content: center; gap: 6px;
      font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 13px;
      color: #7a6ba0; text-transform: uppercase; letter-spacing: 1.5px;
    }
    .lobby-chat-msgs {
      height: 170px; overflow-y: auto; display: flex; flex-direction: column;
      gap: 8px; padding: 4px 6px; scroll-behavior: smooth;
    }
    .lobby-chat-msgs::-webkit-scrollbar { width: 6px; }
    .lobby-chat-msgs::-webkit-scrollbar-thumb { background: #d3c3ef; border-radius: 3px; }
    .lobby-chat-empty { margin: auto; color: #a99ac9; font-size: 13px; }
    .lobby-chat-msg { display: flex; flex-direction: column; align-items: flex-start; max-width: 85%; }
    .lobby-chat-msg.mine { align-self: flex-end; align-items: flex-end; }
    .lcm-name { font-size: 10px; font-weight: 700; color: #a08bc8; margin: 0 8px 2px; letter-spacing: .5px; }
    .lobby-chat-msg.mine .lcm-name { color: #e58bb4; }
    .lcm-bubble {
      background: #fff; color: #4a3d6b; font-size: 13.5px; line-height: 1.4;
      padding: 8px 14px; border-radius: 16px 16px 16px 5px; text-align: left;
      box-shadow: 4px 4px 10px #d9cbf2, -2px -2px 6px #fff; word-break: break-word;
    }
    .lobby-chat-msg.mine .lcm-bubble {
      background: linear-gradient(135deg, #ffd3e6, #ffc2dc); color: #8a3d62;
      border-radius: 16px 16px 5px 16px;
      box-shadow: 4px 4px 10px #e5b7cd, -2px -2px 6px #fff;
    }
    .lobby-chat-inputrow { display: flex; gap: 8px; }
    .lobby-chat-inputrow input {
      flex: 1; padding: 11px 16px; font-size: 13.5px; font-family: inherit; font-weight: 600;
      border: none; border-radius: 999px; background: #fff; color: #4a3d6b;
      box-shadow: inset 3px 3px 7px #ddd0f2, inset -3px -3px 7px #fff;
    }
    .lobby-chat-inputrow input::placeholder { color: #a99ac9; font-weight: 500; }
    .lobby-chat-inputrow input:focus { outline: none; box-shadow: inset 3px 3px 7px #ddd0f2, inset -3px -3px 7px #fff, 0 0 0 3px #ffb7d5; }
    .lobby-chat-inputrow button {
      width: 44px; height: 44px; border: none; border-radius: 50%; cursor: pointer;
      background: linear-gradient(135deg, #ff9ecb, #ff7eb6); color: #fff; font-size: 16px;
      box-shadow: 5px 5px 12px #e491b8, -3px -3px 8px #fff;
      transition: transform .15s ease;
      display: grid; place-items: center; flex-shrink: 0;
    }
    .lobby-chat-inputrow button:hover { transform: translateY(-2px) scale(1.05); }
    .lobby-chat-inputrow button:active { transform: scale(.95); }

    /* in-game chat — compact version inside the side panel */
    .game-chat { padding: 12px; border-radius: 20px; }
    .game-chat .lobby-chat-msgs { height: 150px; }
    .game-chat .lobby-chat-inputrow input { padding: 9px 14px; font-size: 13px; }
    .game-chat .lobby-chat-inputrow button { width: 38px; height: 38px; font-size: 14px; }

  
    /* ══════════════════════════════════════════════════════════════
       FINAL POLISHED NEOBRUTALISM WHO'S PLAYING (PLAYER LOBBY)
    /* ══════════════════════════════════════════════════════════════
       PREMIUM NEOBRUTALIST PLAYER LOBBY REDESIGN
       ══════════════════════════════════════════════════════════════ */
    #playerLobbyScreen {
      background: transparent !important;
      min-height: 100vh !important;
      padding: clamp(14px, 2.5vh, 28px) 16px !important;
      display: none !important;
      flex-direction: column !important;
      align-items: center !important;
      justify-content: center !important;
      overflow-y: auto !important;
      box-sizing: border-box !important;
      position: relative !important;
    }
    #playerLobbyScreen.active {
      display: flex !important;
      animation: none !important;
    }
    #playerLobbyScreen.active > main {
      animation: scoopcast-surface-in 250ms cubic-bezier(0.22, 1, 0.36, 1) both;
    }
    @media (min-width: 768px) {
      #playerLobbyScreen .lobby-chat-col {
        position: relative !important;
        width: 100% !important;
        height: 100% !important;
        min-height: 0 !important;
      }
      #playerLobbyScreen .lobby-chat-card {
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        max-height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
      }
    }
    @media (max-width: 767px) {
      #playerLobbyScreen .lobby-chat-card {
        height: 320px !important;
        max-height: 360px !important;
        display: flex !important;
        flex-direction: column !important;
      }
    }
    #lobbyChatStream {
      flex: 1 1 0% !important;
      min-height: 0 !important;
      overflow-y: auto !important;
      display: flex !important;
      flex-direction: column !important;
      scrollbar-width: thin !important;
      scrollbar-color: var(--nb-ink, #1a1a1a) rgba(0, 0, 0, 0.05) !important;
    }
    #lobbyChatStream::before {
      content: "" !important;
      display: block !important;
      flex: 1 1 0% !important;
      min-height: 0 !important;
      pointer-events: none !important;
    }
    #lobbyChatStream::-webkit-scrollbar {
      width: 6px;
    }
    #lobbyChatStream::-webkit-scrollbar-track {
      background: rgba(0, 0, 0, 0.05);
      border-radius: 3px;
    }
    #lobbyChatStream::-webkit-scrollbar-thumb {
      background: var(--nb-ink, #1a1a1a);
      border-radius: 3px;
    }
    #lobbyChatStream::-webkit-scrollbar-thumb:hover {
      background: #3b82f6;
    }
    #playerLobbyScreen .lobby-wrap {
      width: 100% !important;
      max-width: 440px !important;
      display: flex !important;
      flex-direction: column !important;
      align-items: center !important;
      gap: 10px !important;
      position: relative !important;
      z-index: 2 !important;
      margin: auto !important;
    }
    
    /* Header Marquee Card */
    #playerLobbyScreen .lobby-header-card {
      width: 100% !important;
      display: flex !important;
      flex-direction: column !important;
      align-items: center !important;
      gap: 4px !important;
      text-align: center !important;
    }
    #playerLobbyScreen .lobby-eyebrow {
      display: inline-flex !important;
      align-items: center !important;
      gap: 6px !important;
      font-family: 'DM Sans', sans-serif !important;
      font-weight: 900 !important;
      font-size: 11px !important;
      letter-spacing: 1.2px !important;
      text-transform: uppercase !important;
      color: var(--nb-ink, #1a1a1a) !important;
      background: var(--nb-yellow, #FACC15) !important;
      border: 2px solid var(--nb-ink, #1a1a1a) !important;
      box-shadow: 2px 2px 0 var(--nb-ink, #1a1a1a) !important;
      padding: 3px 10px !important;
      margin-bottom: 2px !important;
    }
    #playerLobbyScreen .lobby-title-box {
      background: #ffffff !important;
      border: 3.5px solid var(--nb-ink, #1a1a1a) !important;
      box-shadow: 4px 4px 0 var(--nb-ink, #1a1a1a) !important;
      padding: 8px 18px !important;
      width: 100% !important;
      box-sizing: border-box !important;
      text-align: center !important;
    }
    #playerLobbyScreen .lobby-title-text {
      font-family: 'DM Sans', sans-serif !important;
      font-weight: 900 !important;
      font-size: clamp(22px, 5vw, 28px) !important;
      letter-spacing: 0.5px !important;
      color: var(--nb-ink, #1a1a1a) !important;
      margin: 0 !important;
      line-height: 1.1 !important;
      text-transform: uppercase !important;
    }

    /* Counter Badge */
    #playerLobbyScreen .lobby-count {
      display: inline-flex !important;
      align-items: center !important;
      justify-content: center !important;
      gap: 8px !important;
      font-family: 'DM Sans', sans-serif !important;
      font-weight: 900 !important;
      font-size: 11.5px !important;
      letter-spacing: 0.8px !important;
      text-transform: uppercase !important;
      color: var(--nb-ink, #1a1a1a) !important;
      background: #ffffff !important;
      border: 2px solid var(--nb-ink, #1a1a1a) !important;
      box-shadow: 2px 2px 0 var(--nb-ink, #1a1a1a) !important;
      padding: 3px 12px !important;
      margin: 0 auto !important;
      line-height: 1 !important;
    }
    #playerLobbyScreen .lobby-dots {
      display: inline-flex !important;
      align-items: center !important;
      gap: 4px !important;
    }
    #playerLobbyScreen .lobby-dot {
      width: 7px !important;
      height: 7px !important;
      border-radius: 50% !important;
      border: 1.5px solid var(--nb-ink, #1a1a1a) !important;
      background: #d1d5db !important;
      display: inline-block !important;
    }
    #playerLobbyScreen .lobby-dot.active {
      background: var(--nb-green, #84CC16) !important;
      box-shadow: 0 0 4px rgba(132, 204, 22, 0.8) !important;
    }

    /* 2x2 Square Player Grid */
    #playerLobbyScreen .lobby-players {
      display: grid !important;
      grid-template-columns: repeat(2, 1fr) !important;
      gap: 12px !important;
      width: 100% !important;
      max-width: 400px !important;
      margin: 2px auto 4px !important;
      box-sizing: border-box !important;
    }
    #playerLobbyScreen .lobby-player {
      position: relative !important;
      display: flex !important;
      flex-direction: column !important;
      align-items: center !important;
      justify-content: space-between !important;
      aspect-ratio: 1 / 1 !important;
      width: 100% !important;
      height: auto !important;
      border: 3.5px solid var(--nb-ink, #1a1a1a) !important;
      box-shadow: 4px 4px 0 var(--nb-ink, #1a1a1a) !important;
      border-radius: 0 !important;
      padding: 8px !important;
      box-sizing: border-box !important;
      min-width: 0 !important;
      transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.18s ease !important;
    }
    #playerLobbyScreen .lobby-player:hover {
      transform: translate(-3px, -3px) !important;
      box-shadow: 6.5px 6.5px 0 var(--nb-ink, #1a1a1a) !important;
    }
    #playerLobbyScreen .lobby-player.removing {
      transform: scale(0.65) rotate(-6deg) !important;
      opacity: 0 !important;
      transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }
    
    /* Top Bar in Card */
    #playerLobbyScreen .lp-top-bar {
      width: 100% !important;
      display: flex !important;
      align-items: center !important;
      justify-content: space-between !important;
      pointer-events: none !important;
      z-index: 3 !important;
    }
    #playerLobbyScreen .lp-tag {
      font-family: 'DM Sans', sans-serif !important;
      font-weight: 900 !important;
      font-size: 10.5px !important;
      color: var(--nb-ink, #1a1a1a) !important;
      background: #ffffff !important;
      border: 2px solid var(--nb-ink, #1a1a1a) !important;
      box-shadow: 1.5px 1.5px 0 var(--nb-ink, #1a1a1a) !important;
      padding: 1px 5px !important;
      line-height: 1.2 !important;
      pointer-events: auto !important;
      border-radius: 0 !important;
    }
    #playerLobbyScreen .lp-remove {
      width: 22px !important;
      height: 22px !important;
      min-width: 22px !important;
      min-height: 22px !important;
      font-family: 'DM Sans', sans-serif !important;
      font-weight: 900 !important;
      font-size: 11px !important;
      color: var(--nb-ink, #1a1a1a) !important;
      background: #ffffff !important;
      border: 2px solid var(--nb-ink, #1a1a1a) !important;
      box-shadow: 1.5px 1.5px 0 var(--nb-ink, #1a1a1a) !important;
      border-radius: 0 !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      cursor: pointer !important;
      pointer-events: auto !important;
      padding: 0 !important;
      line-height: 1 !important;
      transition: all 0.15s ease !important;
    }
    #playerLobbyScreen .lp-remove:hover {
      background: #ef4444 !important;
      color: #ffffff !important;
      transform: scale(1.15) rotate(90deg) !important;
    }
    
    /* Avatar Wrap */
    #playerLobbyScreen .lp-avatar-wrap {
      width: clamp(76px, 20vw, 98px) !important;
      height: clamp(76px, 20vw, 98px) !important;
      min-width: clamp(76px, 20vw, 98px) !important;
      max-width: clamp(76px, 20vw, 98px) !important;
      aspect-ratio: 1 / 1 !important;
      border: none !important;
      box-shadow: none !important;
      border-radius: 50% !important;
      flex-shrink: 0 !important;
      position: relative !important;
      background: transparent !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      box-sizing: border-box !important;
      margin: auto 0 !important;
    }
    #playerLobbyScreen .lp-avatar-wrap img {
      position: relative !important;
      width: 100% !important;
      height: 100% !important;
      object-fit: contain !important;
      display: block !important;
      border-radius: 50% !important;
      filter: drop-shadow(3px 3px 0px var(--nb-ink, #1a1a1a)) !important;
    }
    
    /* Name Plaque Badge */
    #playerLobbyScreen .lp-name-badge {
      background: #ffffff !important;
      border: 2px solid var(--nb-ink, #1a1a1a) !important;
      box-shadow: 2px 2px 0 var(--nb-ink, #1a1a1a) !important;
      padding: 3px 6px !important;
      width: 94% !important;
      box-sizing: border-box !important;
      text-align: center !important;
      z-index: 2 !important;
    }
    #playerLobbyScreen .lp-name-text {
      font-family: 'DM Sans', sans-serif !important;
      font-weight: 900 !important;
      font-size: 13px !important;
      color: var(--nb-ink, #1a1a1a) !important;
      letter-spacing: 0.8px !important;
      text-transform: uppercase !important;
      display: block !important;
      white-space: nowrap !important;
      overflow: hidden !important;
      text-overflow: ellipsis !important;
      line-height: 1.2 !important;
    }

    /* Preload Progress Card */
    #playerLobbyScreen .lobby-loading {
      width: 100% !important;
      max-width: 400px !important;
      margin: 0 auto !important;
    }
    #playerLobbyScreen .nb-load-card {
      background: #ffffff !important;
      border: 3px solid var(--nb-ink, #1a1a1a) !important;
      box-shadow: 3.5px 3.5px 0 var(--nb-ink, #1a1a1a) !important;
      padding: 9px 12px !important;
      display: flex !important;
      flex-direction: column !important;
      gap: 6px !important;
    }
    #playerLobbyScreen .nb-load-header {
      display: flex !important;
      align-items: center !important;
      justify-content: space-between !important;
      font-family: 'DM Sans', sans-serif !important;
      font-weight: 900 !important;
      font-size: 11.5px !important;
      letter-spacing: 0.5px !important;
      color: var(--nb-ink, #1a1a1a) !important;
      text-transform: uppercase !important;
    }
    #playerLobbyScreen .nb-load-title {
      display: flex !important;
      align-items: center !important;
      gap: 6px !important;
    }
    #playerLobbyScreen .nb-load-percent {
      font-family: 'DM Sans', sans-serif !important;
      font-weight: 900 !important;
      font-size: 11px !important;
      background: var(--nb-yellow, #FACC15) !important;
      border: 1.5px solid var(--nb-ink, #1a1a1a) !important;
      padding: 1px 6px !important;
    }
    #playerLobbyScreen .nb-load-track {
      width: 100% !important;
      height: 12px !important;
      background: #f3f4f6 !important;
      border: 2px solid var(--nb-ink, #1a1a1a) !important;
      box-sizing: border-box !important;
      overflow: hidden !important;
    }
    #playerLobbyScreen .nb-load-bar {
      height: 100% !important;
      background: var(--nb-green, #84CC16) repeating-linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0.35) 0,
        rgba(255, 255, 255, 0.35) 8px,
        transparent 8px,
        transparent 16px
      ) !important;
      transition: width 0.3s ease !important;
    }

    /* Action Buttons */
    #playerLobbyScreen .lobby-btns {
      display: flex !important;
      flex-direction: column !important;
      gap: 8px !important;
      width: 100% !important;
      max-width: 400px !important;
      margin-top: 2px !important;
    }
    #playerLobbyScreen .h-card-play {
      background: var(--nb-green, #84CC16) !important;
      border: 3.5px solid var(--nb-ink, #1a1a1a) !important;
      box-shadow: 4.5px 4.5px 0 var(--nb-ink, #1a1a1a) !important;
      height: 48px !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      cursor: pointer !important;
      border-radius: 0 !important;
      transition: all 0.15s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    }
    #playerLobbyScreen .h-card-play:hover:not(:disabled) {
      transform: translate(-2px, -2px) !important;
      box-shadow: 6.5px 6.5px 0 var(--nb-ink, #1a1a1a) !important;
      background: #9beb1d !important;
    }
    #playerLobbyScreen .h-card-play:active:not(:disabled) {
      transform: translate(2px, 2px) !important;
      box-shadow: 2px 2px 0 var(--nb-ink, #1a1a1a) !important;
    }
    #playerLobbyScreen .h-card-play:disabled {
      opacity: 0.55 !important;
      cursor: not-allowed !important;
      filter: grayscale(0.5) !important;
    }
    #playerLobbyScreen .h-card-play .h-card-title {
      font-family: 'DM Sans', sans-serif !important;
      font-weight: 900 !important;
      font-size: 16px !important;
      letter-spacing: 0.8px !important;
      text-transform: uppercase !important;
      color: var(--nb-ink, #1a1a1a) !important;
    }
    #playerLobbyScreen .h-card-back {
      background: #ffffff !important;
      border: 2.5px solid var(--nb-ink, #1a1a1a) !important;
      box-shadow: 3px 3px 0 var(--nb-ink, #1a1a1a) !important;
      height: 40px !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      cursor: pointer !important;
      border-radius: 0 !important;
      transition: all 0.15s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    }
    #playerLobbyScreen .h-card-back:hover {
      transform: translate(-2px, -2px) !important;
      box-shadow: 4.5px 4.5px 0 var(--nb-ink, #1a1a1a) !important;
      background: #f8fafc !important;
    }
    #playerLobbyScreen .h-card-back:active {
      transform: translate(1.5px, 1.5px) !important;
      box-shadow: 1.5px 1.5px 0 var(--nb-ink, #1a1a1a) !important;
    }
    #playerLobbyScreen .h-card-back .h-card-title {
      font-family: 'DM Sans', sans-serif !important;
      font-weight: 900 !important;
      font-size: 13.5px !important;
      letter-spacing: 0.5px !important;
      color: var(--nb-ink, #1a1a1a) !important;
    }

  
    /* ══════════════════════════════════════════════════════════════
       CLEAN NEOBRUTALISM JUDGE SELECTION OVERLAY (NO DARK BACKGROUND)
       ══════════════════════════════════════════════════════════════ */
    .judge-ov {
      position: fixed !important;
      inset: 0 !important;
      background: rgba(255, 253, 245, 0.88) !important;
      backdrop-filter: blur(8px) !important;
      -webkit-backdrop-filter: blur(8px) !important;
      z-index: 1000 !important;
      display: none !important;
      align-items: center !important;
      justify-content: center !important;
      padding: 20px !important;
    }
    .judge-ov.on {
      display: flex !important;
      animation: nbHeroIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both !important;
    }
    .judge-ov .jo-window {
      background: #FFFDF5 !important;
      border: 4px solid var(--nb-ink, #1a1a1a) !important;
      box-shadow: 10px 10px 0 var(--nb-ink, #1a1a1a) !important;
      border-radius: 0 !important;
      width: 100% !important;
      max-width: 600px !important;
      overflow: hidden !important;
      position: relative !important;
      z-index: 10 !important;
    }
    .judge-ov .jo-win-bar {
      background: var(--nb-yellow, #FACC15) !important;
      border-bottom: 3.5px solid var(--nb-ink, #1a1a1a) !important;
      padding: 10px 16px !important;
      display: flex !important;
      align-items: center !important;
      justify-content: space-between !important;
    }
    .judge-ov .jo-win-tag {
      font-family: 'Space Mono', monospace !important;
      font-weight: 700 !important;
      font-size: 13px !important;
      letter-spacing: 1px !important;
      color: var(--nb-ink, #1a1a1a) !important;
      text-transform: uppercase !important;
    }
    .judge-ov .jo-win-body {
      padding: 28px 20px !important;
      display: flex !important;
      flex-direction: column !important;
      align-items: center !important;
      gap: 16px !important;
      text-align: center !important;
      background: #FFFDF5 !important;
    }
    .judge-ov .jo-title {
      font-family: 'DM Sans', sans-serif !important;
      font-weight: 900 !important;
      font-size: clamp(24px, 5vw, 36px) !important;
      color: var(--nb-ink, #1a1a1a) !important;
      text-transform: uppercase !important;
      margin: 0 !important;
      letter-spacing: 0.5px !important;
    }
    .judge-ov .jo-sub {
      font-family: 'Space Mono', monospace !important;
      font-size: 13px !important;
      font-weight: 700 !important;
      color: var(--nb-ink, #1a1a1a) !important;
      margin: -6px 0 6px !important;
      letter-spacing: 1px !important;
    }
    .judge-ov .jo-candidates {
      display: flex !important;
      gap: 14px !important;
      justify-content: center !important;
      flex-wrap: wrap !important;
      width: 100% !important;
      margin: 6px 0 !important;
    }
    .judge-ov .jo-cand {
      display: flex !important;
      flex-direction: column !important;
      align-items: center !important;
      gap: 8px !important;
      padding: 12px 10px !important;
      border: 3px solid var(--nb-ink, #1a1a1a) !important;
      box-shadow: 4px 4px 0 var(--nb-ink, #1a1a1a) !important;
      border-radius: 0 !important;
      width: 110px !important;
      transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.15s ease, filter 0.2s ease !important;
      position: relative !important;
      background: #fff !important;
      box-sizing: border-box !important;
    }
    .judge-ov .jo-cand .jo-circle {
      width: 72px !important;
      height: 72px !important;
      border-radius: 50% !important;
      border: 2.5px solid var(--nb-ink, #1a1a1a) !important;
      box-shadow: 2px 2px 0 var(--nb-ink, #1a1a1a) !important;
      overflow: hidden !important;
      position: relative !important;
      background: #fff !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
    }
    .judge-ov .jo-cand .jo-circle img {
      position: absolute !important;
      inset: 0 !important;
      width: 100% !important;
      height: 100% !important;
      object-fit: cover !important;
      object-position: center !important;
      border-radius: 50% !important;
      display: block !important;
    }
    .judge-ov .jo-cand .jo-cname {
      font-family: 'DM Sans', sans-serif !important;
      font-weight: 900 !important;
      font-size: 13px !important;
      color: var(--nb-ink, #1a1a1a) !important;
      text-transform: uppercase !important;
      white-space: nowrap !important;
      overflow: hidden !important;
      text-overflow: ellipsis !important;
      max-width: 100% !important;
    }
    /* Active Roulette Highlight (Spinner) */
    .judge-ov .jo-cand.hl {
      transform: translateY(-8px) scale(1.1) !important;
      box-shadow: 0 0 0 4px var(--nb-yellow, #FACC15), 7px 7px 0 var(--nb-ink, #1a1a1a) !important;
      z-index: 5 !important;
      background: #fff !important;
    }
    /* Selected Judge Winner */
    .judge-ov .jo-cand.sel {
      transform: scale(1.14) !important;
      box-shadow: 0 0 0 5px var(--nb-green, #84CC16), 8px 8px 0 var(--nb-ink, #1a1a1a) !important;
      z-index: 10 !important;
      animation: nbHeroIn 0.35s ease both !important;
    }
    /* Non-eligible or eliminated */
    .judge-ov .jo-cand.was {
      opacity: 0.35 !important;
      filter: grayscale(1) !important;
      transform: scale(0.92) !important;
    }
    .judge-ov .jo-sel-msg {
      display: none;
      width: 100%;
      max-width: 480px;
      margin: 8px 0 0 !important;
      padding: 12px 20px !important;
      background: var(--nb-pink, #FF6B9D) !important;
      color: var(--nb-ink, #1a1a1a) !important;
      border: 3.5px solid var(--nb-ink, #1a1a1a) !important;
      box-shadow: 5px 5px 0 var(--nb-ink, #1a1a1a) !important;
      border-radius: 0 !important;
      font-family: 'DM Sans', sans-serif !important;
      font-weight: 900 !important;
      font-size: clamp(16px, 3.5vw, 20px) !important;
      text-transform: uppercase !important;
      letter-spacing: 0.5px !important;
      transform: rotate(-1.5deg) !important;
    }
    .judge-ov .jo-sel-msg.on {
      display: block !important;
      animation: nbHeroIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both !important;
    }
    .judge-ov .jo-rot-info {
      font-family: 'Space Mono', monospace !important;
      font-weight: 700 !important;
      font-size: 11px !important;
      color: var(--nb-ink, #1a1a1a) !important;
      letter-spacing: 1px !important;
      background: #fff !important;
      border: 1.5px solid var(--nb-ink, #1a1a1a) !important;
      padding: 4px 10px !important;
    }

  
    /* ══ JUDGE ELIMINATION ANIMATION STYLES ══ */
    .judge-ov .jo-cand.eliminated {
      opacity: 0.28 !important;
      filter: grayscale(1) !important;
      transform: scale(0.78) translateY(6px) !important;
      box-shadow: 2px 2px 0 var(--nb-ink, #1a1a1a) !important;
      transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    }
    .judge-ov .jo-elim-stamp {
      position: absolute !important;
      inset: 0 !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      font-size: 38px !important;
      color: #ef4444 !important;
      font-weight: 900 !important;
      z-index: 6 !important;
      animation: nbHeroIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) both !important;
      text-shadow: 2.5px 2.5px 0 #1a1a1a !important;
      pointer-events: none !important;
    }

  
    
    #playerLobbyScreen .h-title {
      background: var(--nb-yellow, #FACC15) !important;
      color: var(--nb-ink, #1a1a1a) !important;
      border: 3.5px solid var(--nb-ink, #1a1a1a) !important;
      box-shadow: 4.5px 4.5px 0 var(--nb-ink, #1a1a1a) !important;
      padding: 6px 22px !important;
      display: inline-block !important;
      letter-spacing: 1.5px !important;
      font-weight: 900 !important;
      text-transform: uppercase !important;
      margin-top: 10px !important;
    }

    /* ══════════════════════════════════════════════════════════════
       NEOBRUTALISM FRAME LOADING BAR (WHO'S PLAYING PAGE)
       ══════════════════════════════════════════════════════════════ */
    #playerLobbyScreen .lobby-loading {
      width: 100% !important;
      max-width: 520px !important;
      margin: 8px auto 4px !important;
      display: block !important;
    }
    #playerLobbyScreen .nb-load-card {
      background: #fff !important;
      border: 3.5px solid var(--nb-ink, #1a1a1a) !important;
      box-shadow: 4.5px 4.5px 0 var(--nb-ink, #1a1a1a) !important;
      border-radius: 0 !important;
      padding: 14px 18px !important;
      display: flex !important;
      flex-direction: column !important;
      gap: 10px !important;
      box-sizing: border-box !important;
    }
    #playerLobbyScreen .nb-load-header {
      display: flex !important;
      align-items: center !important;
      justify-content: space-between !important;
      width: 100% !important;
    }
    #playerLobbyScreen .nb-load-title {
      display: flex !important;
      align-items: center !important;
      gap: 8px !important;
      font-family: 'DM Sans', sans-serif !important;
      font-weight: 900 !important;
      font-size: 14px !important;
      color: var(--nb-ink, #1a1a1a) !important;
      text-transform: uppercase !important;
      letter-spacing: 0.5px !important;
    }
    #playerLobbyScreen .nb-load-title svg {
      width: 18px !important;
      height: 18px !important;
      color: var(--nb-pink, #FF6B9D) !important;
    }
    #playerLobbyScreen .nb-load-percent {
      font-family: 'Space Mono', monospace !important;
      font-weight: 900 !important;
      font-size: 13px !important;
      background: var(--nb-yellow, #FACC15) !important;
      color: var(--nb-ink, #1a1a1a) !important;
      border: 2px solid var(--nb-ink, #1a1a1a) !important;
      box-shadow: 2px 2px 0 var(--nb-ink, #1a1a1a) !important;
      padding: 3px 8px !important;
      border-radius: 0 !important;
    }
    #playerLobbyScreen .nb-load-track {
      width: 100% !important;
      height: 18px !important;
      background: #f1f0ea !important;
      border: 2.5px solid var(--nb-ink, #1a1a1a) !important;
      border-radius: 0 !important;
      overflow: hidden !important;
      position: relative !important;
      box-shadow: inset 2px 2px 0 rgba(0, 0, 0, 0.1) !important;
      box-sizing: border-box !important;
    }
    #playerLobbyScreen .nb-load-bar {
      height: 100% !important;
      background: linear-gradient(135deg, var(--nb-green, #84CC16) 25%, #a3e635 25%, #a3e635 50%, var(--nb-green, #84CC16) 50%, var(--nb-green, #84CC16) 75%, #a3e635 75%, #a3e635 100%) !important;
      background-size: 24px 24px !important;
      animation: nbBarberPole 0.8s linear infinite !important;
      transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
      border-right: 2.5px solid var(--nb-ink, #1a1a1a) !important;
      box-sizing: border-box !important;
    }
    @keyframes nbBarberPole {
      0% { background-position: 0 0; }
      100% { background-position: 24px 0; }
    }

  
        /* ══════════════════════════════════════════════════════════════
       AVATAR BLOOM MAGNIFIER (POPS UP DIRECTLY FROM AVATAR)
       ══════════════════════════════════════════════════════════════ */
    .lp-avatar-wrap,
    .lb-av-wrap,
    .jo-circle,
    .p-circle,
    .spbtn {
      cursor: pointer !important;
      transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease !important;
      transform-origin: center center !important;
      will-change: transform, box-shadow !important;
      position: relative !important;
    }

    .nb-av-popover {
      position: fixed !important;
      pointer-events: none !important;
      z-index: 100000 !important;
      display: flex !important;
      flex-direction: column !important;
      align-items: center !important;
      gap: 6px !important;
      opacity: 0 !important;
      transform: scale(0.35) !important;
      transition: opacity 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
      transform-origin: center 70px !important;
      filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.22)) !important;
      will-change: transform, opacity !important;
    }
    .nb-av-popover.visible {
      opacity: 1 !important;
      transform: scale(1) !important;
    }
    .nb-av-popover .nb-popover-circle {
      width: 140px !important;
      height: 140px !important;
      border-radius: 50% !important;
      border: 4px solid var(--nb-ink, #1a1a1a) !important;
      box-shadow: 6px 6px 0 var(--nb-ink, #1a1a1a) !important;
      background: #fff !important;
      overflow: hidden !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
    }
    .nb-av-popover .nb-popover-circle img {
      width: 100% !important;
      height: 100% !important;
      object-fit: cover !important;
      object-position: center !important;
      border-radius: 50% !important;
      display: block !important;
      transform: scale(1.08) !important;
    }
    .nb-av-popover .nb-popover-name {
      font-family: 'DM Sans', sans-serif !important;
      font-weight: 900 !important;
      font-size: 13px !important;
      text-transform: uppercase !important;
      letter-spacing: 0.5px !important;
      background: var(--nb-yellow, #FACC15) !important;
      color: var(--nb-ink, #1a1a1a) !important;
      border: 2.5px solid var(--nb-ink, #1a1a1a) !important;
      box-shadow: 3px 3px 0 var(--nb-ink, #1a1a1a) !important;
      padding: 4px 12px !important;
      white-space: nowrap !important;
    }

  
                    /* ══════════════════════════════════════════════════════════════
       SOFT-BLURRED CINEMA WALLPAPER & FOCUSED CENTER SCRIM
       ══════════════════════════════════════════════════════════════ */
    html, body {
      width: 100% !important;
      height: 100% !important;
      margin: 0 !important;
      padding: 0 !important;
      background: #F4EEDC !important;
      font-family: 'DM Sans', 'Inter', system-ui, sans-serif !important;
      color: var(--nb-ink, #1a1a1a) !important;
      overflow-x: hidden !important;
    }

    .bg-backdrop {
      position: fixed !important;
      top: -10px !important;
      left: -10px !important;
      width: calc(100vw + 20px) !important;
      height: calc(100vh + 20px) !important;
      background: #F4EEDC var(--cinema-wallpaper) no-repeat center center !important;
      background-size: cover !important;
      -webkit-background-size: cover !important;
      filter: blur(3.5px) saturate(0.92) brightness(0.96) !important;
      transform: translate3d(0, 0, 0) scale(1.02) !important;
      -webkit-transform: translate3d(0, 0, 0) scale(1.02) !important;
      backface-visibility: hidden !important;
      -webkit-backface-visibility: hidden !important;
      perspective: 1000px !important;
      z-index: 0 !important;
      pointer-events: none !important;
      will-change: transform !important;
      contain: strict !important;
    }

    .bg-focus-scrim {
      position: fixed !important;
      top: 0 !important;
      left: 0 !important;
      width: 100vw !important;
      height: 100vh !important;
      background: radial-gradient(circle at 50% 48%, rgba(255, 253, 245, 0.65) 0%, rgba(255, 253, 245, 0.35) 45%, rgba(20, 20, 20, 0.18) 100%) !important;
      z-index: 0 !important;
      pointer-events: none !important;
    }

    #app {
      width: 100% !important;
      height: 100% !important;
      position: relative !important;
      z-index: 1 !important;
      background: transparent !important;
    }

    .screen {
      display: none;
      width: 100% !important;
      height: 100% !important;
      position: absolute !important;
      top: 0 !important;
      left: 0 !important;
      background: transparent !important;
      overflow-y: auto !important;
      box-sizing: border-box !important;
    }

    .screen.active {
      display: flex !important;
    }

    .nb-shapes {
      display: none !important;
    }

    /* 1. HOME SCREEN (HERO LOGO FOCUS) */
    #homeScreen {
      flex-direction: column !important;
      align-items: center !important;
      justify-content: center !important;
      min-height: 100vh !important;
      padding: 60px 20px 30px !important;
    }
    #homeScreen .h-hero {
      background: transparent !important;
      backdrop-filter: none !important;
      -webkit-backdrop-filter: none !important;
      border: none !important;
      box-shadow: none !important;
      padding: 0 !important;
      display: flex !important;
      flex-direction: column !important;
      align-items: center !important;
      text-align: center !important;
      width: 100% !important;
      max-width: 600px !important;
      box-sizing: border-box !important;
      margin-top: 10px !important;
      margin-bottom: 32px !important;
    }
    .h-logo-img {
      width: 100% !important;
      max-width: clamp(260px, 30vw, 360px) !important;
      height: auto !important;
      object-fit: contain !important;
      filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.28)) !important;
      transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
      display: block !important;
      margin: 0 auto !important;
      user-select: none !important;
      -webkit-user-drag: none !important;
    }
    .h-logo-img:hover {
      transform: scale(1.03) rotate(-1deg) !important;
    }
    #homeScreen .h-cards {
      width: 100% !important;
      max-width: 480px !important;
      display: flex !important;
      flex-direction: column !important;
      gap: 12px !important;
    }

    /* 2. PLAYER LOBBY */
    #playerLobbyScreen {
      flex-direction: column !important;
      align-items: center !important;
      justify-content: center !important;
      min-height: 100vh !important;
      padding: 30px 20px 40px !important;
    }
    #playerLobbyScreen .lobby-wrap {
      background: rgba(255, 253, 245, 0.96) !important;
      backdrop-filter: blur(10px) !important;
      -webkit-backdrop-filter: blur(10px) !important;
      border: 4px solid var(--nb-ink, #1a1a1a) !important;
      box-shadow: 8px 8px 0 var(--nb-ink, #1a1a1a) !important;
      padding: 22px 20px 18px !important;
      width: 100% !important;
      max-width: 500px !important;
      box-sizing: border-box !important;
      display: flex !important;
      flex-direction: column !important;
      align-items: center !important;
      gap: 12px !important;
      margin: 0 auto !important;
    }
    #playerLobbyScreen .h-title {
      background: var(--nb-yellow, #FACC15) !important;
      color: var(--nb-ink, #1a1a1a) !important;
      border: 3px solid var(--nb-ink, #1a1a1a) !important;
      box-shadow: 3.5px 3.5px 0 var(--nb-ink, #1a1a1a) !important;
      padding: 6px 18px !important;
      display: inline-block !important;
      letter-spacing: 1px !important;
      font-weight: 900 !important;
      text-transform: uppercase !important;
      margin: 0 !important;
      font-size: clamp(20px, 4vw, 32px) !important;
    }

        
    
    /* ═══════════════════════════════════════════════════════════════════
       PRECISION RESTORATION: AVATAR CARDS, LEADERBOARD & SIDEBAR
       ═══════════════════════════════════════════════════════════════════ */

    /* ── 1. AVATAR CIRCLE COMPONENT ── */
    .lp-avatar-wrap, .lb-av-wrap, .jo-cwrap, .podium-av, .spbtn {
      border-radius: 50% !important;
      position: relative !important;
      overflow: hidden !important;
      background: #fff !important;
      box-sizing: border-box !important;
      flex-shrink: 0 !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
    }

    .av-img-elem, .lp-avatar-wrap img, .lb-av-wrap img, .jo-cwrap img, .podium-av img, .spbtn img {
      position: absolute !important;
      inset: 0 !important;
      width: 100% !important;
      height: 100% !important;
      object-fit: cover !important;
      object-position: center 15% !important;
      border-radius: 50% !important;
      display: block !important;
    }

    /* ── 2. LOBBY PLAYER CARDS (BALANCED GRID & ROW ALIGNMENT) ── */
/* [REMOVED: bare .lobby-player duplicate — authority lives in #playerLobbyScreen block] */

/* [REMOVED: earlier #gameScreen .lb-item duplicate — authority lives in later block] */

    /* Name + Judge Badge Column (Flexible, never pushes buttons) */
    #gameScreen .lb-name-group {
      flex: 1 1 auto !important;
      min-width: 0 !important;
      display: flex !important;
      align-items: center !important;
      gap: 5px !important;
      overflow: hidden !important;
    }

    #gameScreen .lb-name {
      font-family: 'DM Sans', sans-serif !important;
      font-weight: 900 !important;
      font-size: 13px !important;
      color: var(--nb-ink, #1a1a1a) !important;
      white-space: nowrap !important;
      overflow: hidden !important;
      text-overflow: ellipsis !important;
      text-transform: uppercase !important;
    }

    #gameScreen .lb-judge-badge {
      font-family: 'Space Mono', monospace !important;
      font-weight: 800 !important;
      font-size: 8.5px !important;
      background: var(--nb-pink, #FF6B9D) !important;
      color: var(--nb-ink, #1a1a1a) !important;
      border: 1.2px solid var(--nb-ink, #1a1a1a) !important;
      padding: 1px 4px !important;
      border-radius: 0 !important;
      flex-shrink: 0 !important;
      letter-spacing: 0.5px !important;
      line-height: 1.2 !important;
    }

    /* Score + Buttons Column (Fixed Alignment) */
    #gameScreen .lb-score-cluster {
      display: flex !important;
      align-items: center !important;
      gap: 5px !important;
      margin-left: auto !important;
      flex-shrink: 0 !important;
    }

    #gameScreen .lb-score {
      font-family: 'Space Mono', monospace !important;
      font-weight: 800 !important;
      font-size: 12.5px !important;
      color: var(--nb-ink, #1a1a1a) !important;
      background: #fff !important;
      height: 24px !important;
      min-width: 32px !important;
      border: 1.5px solid var(--nb-ink, #1a1a1a) !important;
      box-shadow: 1.5px 1.5px 0 var(--nb-ink, #1a1a1a) !important;
      display: grid !important;
      place-items: center !important;
      padding: 0 4px !important;
    }

    #gameScreen .score-controls {
      display: flex !important;
      gap: 3px !important;
      align-items: center !important;
    }

    #gameScreen .lb-score-btn {
      width: 24px !important;
      height: 24px !important;
      min-width: 24px !important;
      min-height: 24px !important;
      border: 1.5px solid var(--nb-ink, #1a1a1a) !important;
      box-shadow: 1.5px 1.5px 0 var(--nb-ink, #1a1a1a) !important;
      border-radius: 0 !important;
      background: #fff !important;
      color: var(--nb-ink, #1a1a1a) !important;
      font-family: 'Space Mono', monospace !important;
      font-weight: 900 !important;
      font-size: 13px !important;
      line-height: 1 !important;
      display: grid !important;
      place-items: center !important;
      cursor: pointer !important;
      user-select: none !important;
      padding: 0 !important;
      transition: background 0.1s ease, transform 0.1s ease !important;
    }

    #gameScreen .lb-score-btn:hover {
      background: var(--nb-green, #84CC16) !important;
      transform: translate(-1px, -1px) !important;
    }

    #gameScreen .lb-score-btn.minus:hover {
      background: var(--nb-pink, #FF6B9D) !important;
    }

/* [REMOVED: earlier sidebar skip-btn duplicate — authority lives in later block] */

    /* ═══════════════════════════════════════════════════════════════════
       UNIFIED NEOBRUTALIST GAME UI & AVATAR BORDER DESIGN SYSTEM
       ═══════════════════════════════════════════════════════════════════ */

    /* ── 1. AVATAR CIRCLE FRAME STANDARDIZATION ── */
    .lp-avatar-wrap, .lb-av-wrap, .jo-cwrap, .podium-av, .spbtn {
      border-radius: 50% !important;
      position: relative !important;
      overflow: hidden !important;
      background: #fff !important;
      box-sizing: border-box !important;
      transform: translateZ(0) !important;
      -webkit-transform: translateZ(0) !important;
    }

    .av-img-elem, .lp-avatar-wrap img, .lb-av-wrap img, .jo-cwrap img, .podium-av img, .spbtn img {
      position: absolute !important;
      inset: 0 !important;
      width: 100% !important;
      height: 100% !important;
      max-width: 100% !important;
      max-height: 100% !important;
      object-fit: cover !important;
      object-position: center 20% !important;
      border-radius: 50% !important;
      display: block !important;
      image-rendering: -webkit-optimize-contrast !important;
      image-rendering: crisp-edges !important;
    }

/* [REMOVED: bare .lobby-player L8080 duplicate — #playerLobbyScreen block is authoritative] */

    /* ── 3. IN-GAME LEADERBOARD ROWS & SCORE CONTROLS ── */
    #gameScreen .leaderboard {
      display: flex !important;
      flex-direction: column !important;
      gap: 8px !important;
      background: transparent !important;
      overflow-y: auto !important;
      max-height: 280px !important;
      padding: 2px !important;
    }
    #gameScreen .lb-item {
      min-height: 46px !important;
      height: 46px !important;
      background: var(--nb-bg, #FFFDF5) !important;
      border: 3px solid var(--nb-ink, #1a1a1a) !important;
      box-shadow: 3px 3px 0 var(--nb-ink, #1a1a1a) !important;
      border-radius: 0 !important;
      padding: 0 10px !important;
      display: flex !important;
      align-items: center !important;
      gap: 8px !important;
      box-sizing: border-box !important;
      transition: transform 0.12s ease, box-shadow 0.12s ease !important;
    }
    #gameScreen .lb-item:hover {
      transform: translate(-1px, -1px) !important;
      box-shadow: 4.5px 4.5px 0 var(--nb-ink, #1a1a1a) !important;
    }
    #gameScreen .lb-item.top {
      background: var(--nb-yellow, #FACC15) !important;
    }
    #gameScreen .lb-rank {
      width: 24px !important;
      height: 24px !important;
      min-width: 24px !important;
      border: 2px solid var(--nb-ink, #1a1a1a) !important;
      border-radius: 0 !important;
      background: #fff !important;
      color: var(--nb-ink, #1a1a1a) !important;
      font-family: 'Space Mono', monospace !important;
      font-weight: 700 !important;
      font-size: 11px !important;
      display: grid !important;
      place-items: center !important;
      flex-shrink: 0 !important;
    }
    #gameScreen .lb-av-wrap {
      width: 32px !important;
      height: 32px !important;
      min-width: 32px !important;
      border: 2px solid var(--nb-ink, #1a1a1a) !important;
      box-shadow: 1px 1px 0 var(--nb-ink, #1a1a1a) !important;
      border-radius: 50% !important;
      flex-shrink: 0 !important;
    }
    #gameScreen .lb-name {
      flex: 1 1 auto !important;
      min-width: 0 !important;
      font-family: 'DM Sans', sans-serif !important;
      font-weight: 900 !important;
      font-size: 13.5px !important;
      color: var(--nb-ink, #1a1a1a) !important;
      white-space: nowrap !important;
      overflow: hidden !important;
      text-overflow: ellipsis !important;
      text-transform: uppercase !important;
      display: flex !important;
      align-items: center !important;
      gap: 6px !important;
    }
    #gameScreen .lb-judge-badge {
      font-family: 'Space Mono', monospace !important;
      font-weight: 800 !important;
      font-size: 8.5px !important;
      background: var(--nb-pink, #FF6B9D) !important;
      color: var(--nb-ink, #1a1a1a) !important;
      border: 1.5px solid var(--nb-ink, #1a1a1a) !important;
      padding: 1px 5px !important;
      border-radius: 0 !important;
      flex-shrink: 0 !important;
      letter-spacing: 0.5px !important;
    }
    #gameScreen .lb-score-cluster {
      display: flex !important;
      align-items: center !important;
      gap: 5px !important;
      margin-left: auto !important;
      flex-shrink: 0 !important;
    }
    #gameScreen .lb-score {
      font-family: 'Space Mono', monospace !important;
      font-weight: 800 !important;
      font-size: 13px !important;
      color: var(--nb-ink, #1a1a1a) !important;
      background: #fff !important;
      height: 26px !important;
      min-width: 34px !important;
      border: 2px solid var(--nb-ink, #1a1a1a) !important;
      box-shadow: 1.5px 1.5px 0 var(--nb-ink, #1a1a1a) !important;
      display: grid !important;
      place-items: center !important;
      padding: 0 4px !important;
    }
    #gameScreen .lb-score-btn {
      width: 26px !important;
      height: 26px !important;
      min-width: 26px !important;
      min-height: 26px !important;
      border: 2px solid var(--nb-ink, #1a1a1a) !important;
      box-shadow: 1.5px 1.5px 0 var(--nb-ink, #1a1a1a) !important;
      border-radius: 0 !important;
      background: #fff !important;
      color: var(--nb-ink, #1a1a1a) !important;
      font-family: 'Space Mono', monospace !important;
      font-weight: 900 !important;
      font-size: 14px !important;
      line-height: 1 !important;
      display: grid !important;
      place-items: center !important;
      cursor: pointer !important;
      user-select: none !important;
      transition: background 0.1s ease, transform 0.1s ease !important;
    }
    #gameScreen .lb-score-btn:hover {
      background: var(--nb-green, #84CC16) !important;
      transform: translate(-1px, -1px) !important;
    }
    #gameScreen .lb-score-btn.minus:hover {
      background: var(--nb-pink, #FF6B9D) !important;
    }

    /* ── 4. SIDEBAR CONTROL CARDS & ACTIONS ── */
    #gameScreen .ctrl-panel {
      width: 340px !important;
      min-width: 320px !important;
      flex-shrink: 0 !important;
      display: flex !important;
      flex-direction: column !important;
      gap: 16px !important;
    }
    #gameScreen .panel-sec {
      background: #fff !important;
      border: 3px solid var(--nb-ink, #1a1a1a) !important;
      box-shadow: 4px 4px 0 var(--nb-ink, #1a1a1a) !important;
      border-radius: 0 !important;
      padding: 14px 16px !important;
    }
    #gameScreen .panel-sec h3 {
      font-family: 'DM Sans', sans-serif !important;
      font-weight: 900 !important;
      font-size: 14px !important;
      letter-spacing: 1px !important;
      text-transform: uppercase !important;
      color: var(--nb-ink, #1a1a1a) !important;
      border-bottom: 2.5px solid var(--nb-ink, #1a1a1a) !important;
      padding-bottom: 8px !important;
      margin-bottom: 12px !important;
      display: flex !important;
      align-items: center !important;
      gap: 8px !important;
    }
    #gameScreen .skip-btn, #gameScreen .super-skip-btn {
      height: 38px !important;
      min-height: 38px !important;
      border: 3px solid var(--nb-ink, #1a1a1a) !important;
      box-shadow: 3px 3px 0 var(--nb-ink, #1a1a1a) !important;
      border-radius: 0 !important;
      font-family: 'Space Mono', monospace !important;
      font-weight: 800 !important;
      font-size: 11.5px !important;
      text-transform: uppercase !important;
      letter-spacing: 0.5px !important;
      background: var(--nb-bg, #FFFDF5) !important;
      color: var(--nb-ink, #1a1a1a) !important;
      cursor: pointer !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease !important;
    }
    #gameScreen .skip-btn:hover {
      background: var(--nb-yellow, #FACC15) !important;
      transform: translate(-1.5px, -1.5px) !important;
      box-shadow: 4.5px 4.5px 0 var(--nb-ink, #1a1a1a) !important;
    }
    #gameScreen .super-skip-btn:hover {
      background: var(--nb-orange, #FB923C) !important;
      transform: translate(-1.5px, -1.5px) !important;
      box-shadow: 4.5px 4.5px 0 var(--nb-ink, #1a1a1a) !important;
    }

    /* ── 5. GAME STAGE CONTAINER BORDERS ── */
    #gameScreen .frame-area {
      border: 3.5px solid var(--nb-ink, #1a1a1a) !important;
      box-shadow: 6px 6px 0 var(--nb-ink, #1a1a1a) !important;
      border-radius: 0 !important;
      background: #0a0b10 !important;
    }
    #gameScreen .game-header {
      border: 3px solid var(--nb-ink, #1a1a1a) !important;
      box-shadow: 4px 4px 0 var(--nb-ink, #1a1a1a) !important;
      border-radius: 0 !important;
      background: #fff !important;
    }

    /* Mobile & Tablet Responsive Scoring Overlay */
    @media (max-width: 768px) {
      #gameScreen .scoring-overlay {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        z-index: 1000 !important;
        overflow-y: auto !important;
        padding: 24px 16px 80px !important;
        box-sizing: border-box !important;
        background: rgba(255, 253, 245, 0.98) !important;
        backdrop-filter: blur(12px) !important;
        -webkit-backdrop-filter: blur(12px) !important;
      }
      #gameScreen .scoring-answer-badge {
        padding: 8px 16px !important;
        margin-bottom: 12px !important;
      }
      #gameScreen .sab-title {
        font-size: clamp(16px, 4.5vw, 22px) !important;
      }
      #gameScreen .scoring-title {
        font-size: clamp(20px, 5.5vw, 28px) !important;
        margin-bottom: 4px !important;
      }
      #gameScreen .scoring-sub {
        font-size: 13px !important;
        margin-bottom: 16px !important;
      }
      #gameScreen .scoring-grid {
        gap: 16px !important;
      }
      #gameScreen .spbtn {
        width: 80px !important;
        height: 80px !important;
      }
      #gameScreen .sp-name {
        font-size: 13px !important;
      }
    }

    /* Mobile Responsive Optimizations */
    @media (max-width: 767px) {
      #playerLobbyScreen {
        justify-content: flex-start !important;
        padding-top: 16px !important;
        padding-bottom: 220px !important;
      }
    }
    @media (max-width: 480px) {
      #playerLobbyScreen {
        justify-content: flex-start !important;
        padding: 12px 10px 220px 10px !important;
      }
      #playerLobbyScreen .lobby-wrap {
        max-width: 360px !important;
        gap: 8px !important;
      }
      #playerLobbyScreen .lobby-players {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        max-width: 340px !important;
        margin: 2px auto !important;
      }
      #playerLobbyScreen .lobby-player {
        aspect-ratio: 1 / 1 !important;
        padding: 6px !important;
      }
      #playerLobbyScreen .lp-avatar-wrap {
        width: 72px !important;
        height: 72px !important;
        min-width: 72px !important;
        max-width: 72px !important;
        margin: auto 0 !important;
      }
      #playerLobbyScreen .lp-name-text {
        font-size: 11.5px !important;
      }
      #playerLobbyScreen .lp-tag {
        font-size: 9.5px !important;
        padding: 0 4px !important;
      }
      #playerLobbyScreen .lp-remove {
        width: 20px !important;
        height: 20px !important;
        min-width: 20px !important;
        min-height: 20px !important;
        font-size: 10px !important;
      }
    }

  
    /* ══════════════════════════════════════════════════════════════════
       ONLINE MULTIPLAYER BUTTONS (COMPACT & BOLD NEOBRUTALIST)
       ══════════════════════════════════════════════════════════════════ */
    .h-cards-multiplayer {
      display: flex;
      justify-content: center;
      align-items: center;
      flex-wrap: wrap;
      gap: 14px;
      width: 100%;
      max-width: 600px;
      margin: 14px auto 0;
      padding: 0 16px;
      z-index: 10;
      box-sizing: border-box;
    }
    .h-card-mp {
      flex: 0 1 auto;
      min-width: 160px;
      height: 50px;
      border: 3px solid #1a1a1a;
      border-radius: 14px;
      padding: 0 22px;
      cursor: pointer;
      font-family: 'Lilita One', 'DM Sans', sans-serif;
      display: inline-flex;
      flex-direction: row;
      align-items: center;
      justify-content: center;
      gap: 9px;
      white-space: nowrap;
      transition: transform 0.12s ease, box-shadow 0.12s ease;
      position: relative;
      text-align: center;
      box-sizing: border-box;
      user-select: none;
    }
    .h-card-mp .h-btn-svg {
      width: 20px;
      height: 20px;
      flex-shrink: 0;
      display: block;
    }
    .h-card-create {
      background: #FF6B9D;
      box-shadow: 4px 4px 0 #1a1a1a;
      color: #FFFFFF;
    }
    .h-card-create:hover {
      transform: translate(-2px, -2px);
      box-shadow: 6px 6px 0 #1a1a1a;
    }
    .h-card-join {
      background: #3B82F6;
      box-shadow: 4px 4px 0 #1a1a1a;
      color: #FFFFFF;
    }
    .h-card-join:hover {
      transform: translate(-2px, -2px);
      box-shadow: 6px 6px 0 #1a1a1a;
    }
    .h-card-mp:active {
      transform: translate(2px, 2px);
      box-shadow: 1px 1px 0 #1a1a1a;
    }
    .h-card-title-lg {
      font-size: 16px;
      font-weight: 900;
      letter-spacing: 0.8px;
      text-transform: uppercase;
      color: inherit;
    }

    @media (max-width: 720px) {
      #homeScreen {
        padding: 50px 16px 30px !important;
      }
      #homeScreen .h-hero {
        margin-top: 8px !important;
        margin-bottom: 20px !important;
      }
      .h-cards-multiplayer {
        flex-direction: row;
        justify-content: center;
        gap: 12px;
        margin: 0 auto;
        padding: 0 16px;
      }
      .h-card-mp {
        flex: 1 1 135px;
        max-width: 175px;
        min-width: 130px;
        height: 46px;
        padding: 0 12px;
        gap: 6px;
        white-space: nowrap;
      }
      .h-card-mp .h-btn-svg {
        width: 17px;
        height: 17px;
      }
      .h-card-title-lg {
        font-size: 13.5px;
        letter-spacing: 0.5px;
      }
      .h-footer {
        margin-top: 24px !important;
      }
    }
    @media (max-width: 360px) {
      .h-cards-multiplayer {
        flex-direction: column;
        align-items: center;
      }
      .h-card-mp {
        width: 100%;
        max-width: 240px;
      }
    }

    /* ══ MATCH CONFIGURATION COMPACT REDESIGN ══ */
    .match-config-header {
      background-color: var(--nb-purple, #9747FF);
      border-bottom: 4px solid #1a1c19;
      padding: 0 16px;
      height: 42px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-shrink: 0;
      box-sizing: border-box;
    }
    .match-config-title {
      font-family: 'DM Sans', sans-serif;
      font-weight: 900;
      font-size: 14px;
      text-transform: uppercase;
      letter-spacing: 0.04em;
      color: #1a1c19;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      line-height: 1;
      margin: 0;
      white-space: nowrap;
    }
    .match-config-title svg {
      width: 17px;
      height: 17px;
      flex-shrink: 0;
      display: block;
    }
    .match-config-badge {
      background: #ffffff;
      border: 2px solid #1a1c19;
      border-radius: 6px;
      padding: 0 10px;
      height: 24px;
      font-family: 'DM Sans', sans-serif;
      font-weight: 900;
      font-size: 12px;
      text-transform: uppercase;
      color: #1a1c19;
      box-shadow: 2px 2px 0px 0px rgba(0,0,0,1);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      line-height: 1;
      white-space: nowrap;
      flex-shrink: 0;
    }
    .match-config-top-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 8px;
      align-items: stretch;
    }
    @media (min-width: 1024px) {
      .match-config-top-grid {
        grid-template-columns: 1fr 1fr;
      }
    }
    .match-config-mode-btns {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 6px;
    }
    .match-config-cards-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 8px;
      align-items: stretch;
    }
    .match-mode-btn {
      height: 36px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 5px;
      padding: 0 4px;
      border: 2px solid #1a1c19;
      border-radius: 8px;
      font-size: 11.5px;
      font-weight: 900;
      text-transform: uppercase;
      letter-spacing: 0.02em;
      cursor: pointer;
      user-select: none;
      box-shadow: 2px 2px 0px 0px rgba(0,0,0,1);
      transition: all 0.15s ease;
      line-height: 1;
    }
    .match-mode-btn:hover {
      transform: translateY(-1px);
    }
    .match-mode-btn:active {
      transform: translateY(1px);
      box-shadow: 1px 1px 0px 0px rgba(0,0,0,1);
    }
    .match-mode-panel {
      background-color: rgba(230, 230, 220, 0.2);
      border: 2px solid #1a1c19;
      border-radius: 12px;
      padding: 10px 12px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      box-sizing: border-box;
      min-width: 0;
    }
    .match-section-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      min-width: 0;
      width: 100%;
      box-sizing: border-box;
      padding: 0 2px;
    }
    .match-section-title {
      font-family: 'DM Sans', sans-serif;
      font-size: 11.5px;
      font-weight: 900;
      text-transform: uppercase;
      letter-spacing: 0.04em;
      color: #1a1c19;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      line-height: 1;
      white-space: nowrap;
      flex-shrink: 0;
      user-select: none;
    }
    .match-section-title svg {
      width: 13px;
      height: 13px;
      flex-shrink: 0;
      display: block;
    }
    .match-section-meta {
      font-family: 'DM Sans', sans-serif;
      font-size: 9px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      color: #74796e;
      line-height: 1;
      white-space: nowrap;
      flex-shrink: 0;
      user-select: none;
    }
    .match-timer-panel {
      background-color: rgba(230, 230, 220, 0.2);
      border: 2px solid #1a1c19;
      border-radius: 12px;
      padding: 10px 12px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      box-sizing: border-box;
      min-width: 0;
    }
    .match-timer-stepper {
      height: 38px;
      display: inline-flex;
      align-items: center;
      background: #9b59b6;
      border: 2px solid #1a1c19;
      border-radius: 9px;
      box-shadow: 2px 2px 0px 0px rgba(0,0,0,1);
      padding: 3px;
      gap: 3px;
      width: fit-content;
      max-width: 100%;
      flex-shrink: 0;
      user-select: none;
      box-sizing: border-box;
    }
    .match-timer-btn {
      width: 28px !important;
      height: 28px !important;
      min-height: 28px !important;
      max-height: 28px !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      background: #ffffff !important;
      color: #1a1c19 !important;
      border: 2px solid #1a1c19 !important;
      border-radius: 6px !important;
      cursor: pointer !important;
      flex-shrink: 0 !important;
      box-shadow: 1px 1px 0px 0px rgba(0,0,0,1) !important;
      transition: all 0.15s ease !important;
      padding: 0 !important;
      box-sizing: border-box !important;
      touch-action: manipulation !important;
      user-select: none !important;
      -webkit-user-select: none !important;
    }
    .match-timer-btn:hover {
      background: #f4f4ee !important;
      transform: translateY(-0.5px) !important;
    }
    .match-timer-btn:active {
      transform: translateY(1px) !important;
      box-shadow: 0px 0px 0px 0px rgba(0,0,0,1) !important;
    }
    .match-timer-value {
      min-width: 50px;
      padding: 0 4px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      line-height: 1;
      box-sizing: border-box;
    }
    .match-timer-val-text {
      font-family: 'DM Sans', sans-serif;
      font-size: 15px;
      font-weight: 900;
      color: #ffffff;
      text-transform: uppercase;
      letter-spacing: 0.04em;
      line-height: 1;
    }
    .match-timer-unit-text {
      font-family: 'DM Sans', sans-serif;
      font-size: 7.5px;
      font-weight: 900;
      color: rgba(255, 255, 255, 0.9);
      text-transform: uppercase;
      letter-spacing: 0.08em;
      line-height: 1;
      margin-top: 1.5px;
    }
    .match-card-btn {
      height: 28px;
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      border: 2px solid #1a1c19;
      border-radius: 6px;
      cursor: pointer;
      box-shadow: 1px 1px 0px 0px rgba(0,0,0,1);
      transition: all 0.15s ease;
      user-select: none;
      -webkit-user-select: none;
      touch-action: manipulation;
    }
    .match-card-btn:active {
      transform: translateY(1px);
      box-shadow: 0px 0px 0px 0px rgba(0,0,0,1);
    }
    .match-card-title {
      font-size: 11.5px;
      font-weight: 900;
      text-transform: uppercase;
      letter-spacing: 0.025em;
      display: flex;
      align-items: center;
      gap: 3.5px;
      min-width: 0;
      line-height: 1;
    }
    .match-card-rounds-count {
      font-size: 28px;
      font-weight: 900;
      line-height: 1;
      letter-spacing: -0.02em;
    }
    .match-card-rounds-label {
      font-size: 9.5px;
      font-weight: 900;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      color: #74796e;
      margin-top: 2px;
      line-height: 1;
    }
    @media (max-width: 640px) {
      .match-config-header {
        padding: 0 12px;
        height: 38px;
      }
      .match-config-title {
        font-size: 12px;
        gap: 6px;
      }
      .match-config-title svg {
        width: 15px;
        height: 15px;
      }
      .match-config-badge {
        height: 22px;
        padding: 0 8px;
        font-size: 10.5px;
      }
      .match-config-mode-btns {
        gap: 4px;
      }
      .match-config-cards-grid {
        gap: 5px;
      }
      .match-mode-btn {
        height: 34px;
        font-size: 10.5px;
        gap: 3px;
        padding: 0 2px;
      }
      .match-mode-panel {
        padding: 8px 10px;
      }
      .match-section-header {
        padding: 0 2px;
        gap: 6px;
      }
      .match-section-title {
        font-size: 11px;
        gap: 5px;
      }
      .match-section-title svg {
        width: 12px;
        height: 12px;
      }
      .match-section-meta {
        font-size: 8.5px;
      }
      .match-timer-panel {
        padding: 8px 10px;
      }
      .match-timer-stepper {
        height: 34px;
        padding: 2px;
        gap: 2px;
      }
      .match-timer-btn {
        width: 26px !important;
        height: 26px !important;
        min-height: 26px !important;
        max-height: 26px !important;
      }
      .match-timer-value {
        min-width: 44px;
        padding: 0 2px;
      }
      .match-timer-val-text {
        font-size: 13.5px;
      }
      .match-timer-unit-text {
        font-size: 7px;
      }
      .match-card-btn {
        height: 26px;
      }
      .match-card-title {
        font-size: 8.5px;
        gap: 2px;
      }
      .match-card-title svg {
        width: 11px !important;
        height: 11px !important;
      }
      .match-card-rounds-count {
        font-size: 20px;
      }
      .match-card-rounds-label {
        font-size: 7.5px;
      }
    }

    /* Modal dialogs for Multiplayer */
    .mp-modal-overlay {
      position: fixed;
      inset: 0;
      background: rgba(30, 20, 50, 0.75);
      backdrop-filter: blur(8px);
      display: none;
      align-items: center;
      justify-content: center;
      z-index: 10000;
      padding: 16px;
    }
    .mp-modal-overlay.active {
      display: flex;
    }
    .mp-modal-box {
      background: #FFFDF5;
      border: 4px solid #1a1a1a;
      border-radius: 20px;
      box-shadow: 8px 8px 0 #1a1a1a;
      width: 100%;
      max-width: 520px;
      padding: 28px;
      position: relative;
      animation: modalPop 250ms cubic-bezier(0.22, 1, 0.36, 1) both;
    }
    @keyframes modalPop {
      0% { transform: translateY(8px) scale(0.96); opacity: 0; }
      100% { transform: scale(1); opacity: 1; }
    }
    .mp-modal-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 20px;
    }
    .mp-modal-title {
      font-size: 24px;
      font-weight: 900;
      color: #1a1a1a;
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .mp-modal-close {
      background: #ff7eb6;
      border: 2px solid #1a1a1a;
      border-radius: 8px;
      width: 36px;
      height: 36px;
      font-size: 20px;
      font-weight: 900;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 2px 2px 0 #1a1a1a;
    }
    .mp-modal-close:hover {
      background: #ff529a;
      transform: translate(-1px, -1px);
      box-shadow: 3px 3px 0 #1a1a1a;
    }
    .mp-form-group {
      margin-bottom: 18px;
    }
    .mp-label {
      display: block;
      font-size: 13px;
      font-weight: 800;
      color: #1a1a1a;
      letter-spacing: 0.5px;
      margin-bottom: 8px;
      text-transform: uppercase;
    }
    .mp-input {
      width: 100%;
      padding: 14px 16px;
      border: 3px solid #1a1a1a;
      border-radius: 12px;
      font-size: 16px;
      font-weight: 700;
      font-family: inherit;
      background: #fff;
      color: #1a1a1a;
      outline: none;
      box-shadow: 3px 3px 0 rgba(0,0,0,0.1);
      transition: border-color 0.2s, box-shadow 0.2s;
    }
    .mp-input:focus {
      border-color: #a06bd6;
      box-shadow: 4px 4px 0 #a06bd6;
    }
    .mp-code-input {
      letter-spacing: 6px;
      font-size: 24px;
      text-align: center;
      text-transform: uppercase;
      font-weight: 900;
      background: #fff;
    }

    /* Avatar Grid in Modal */
    .mp-avatar-grid {
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 8px;
    }
    @media (max-width: 480px) {
      .mp-avatar-grid {
        grid-template-columns: repeat(3, 1fr);
      }
    }
    .mp-avatar-option {
      border: 3px solid #1a1a1a;
      border-radius: 12px;
      padding: 10px;
      text-align: center;
      cursor: pointer;
      background: #fff;
      transition: all 0.15s ease;
      box-shadow: 2px 2px 0 #1a1a1a;
    }
    .mp-avatar-option:hover {
      transform: translateY(-2px);
      box-shadow: 4px 4px 0 #1a1a1a;
    }
    .mp-avatar-option.selected {
      background: #ffe9f3;
      border-color: #ff7eb6;
      box-shadow: 4px 4px 0 #ff7eb6;
      transform: translateY(-2px);
    }
    .mp-avatar-option img {
      width: 48px;
      height: 48px;
      object-fit: contain;
      border: 2px solid #1a1a1a;
      display: block;
      margin: 0 auto 6px;
    }
    .mp-avatar-name {
      font-size: 12px;
      font-weight: 800;
      color: #1a1a1a;
      text-transform: capitalize;
    }
    .mp-btn-primary {
      width: 100%;
      padding: 16px;
      border: 3px solid #1a1a1a;
      border-radius: 14px;
      background: #ff7eb6;
      font-size: 18px;
      font-weight: 900;
      font-family: inherit;
      color: #1a1a1a;
      cursor: pointer;
      box-shadow: 4px 4px 0 #1a1a1a;
      transition: all 0.15s ease;
      margin-top: 10px;
    }
    .mp-btn-primary:hover {
      background: #ff65a8;
      transform: translate(-2px, -2px);
      box-shadow: 6px 6px 0 #1a1a1a;
    }
    .mp-btn-primary:active {
      transform: translate(2px, 2px);
      box-shadow: 2px 2px 0 #1a1a1a;
    }

    /* Room Banner & Share in Lobby */
    .room-header-bar {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      background: #fff;
      border: 3px solid #1a1a1a;
      border-radius: 16px;
      padding: 14px 20px;
      box-shadow: 5px 5px 0 #1a1a1a;
      margin-bottom: 18px;
      width: 100%;
      max-width: 800px;
    }
    .room-code-badge {
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .room-code-label {
      font-size: 12px;
      font-weight: 900;
      letter-spacing: 1px;
      color: #666;
    }
    .room-code-val {
      font-size: 28px;
      font-weight: 900;
      color: #1a1a1a;
      letter-spacing: 4px;
      background: #FFF9DB;
      padding: 4px 12px;
      border-radius: 8px;
      border: 2px solid #1a1a1a;
    }
    .room-actions {
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .room-btn {
      padding: 8px 14px;
      border: 2px solid #1a1a1a;
      border-radius: 8px;
      font-size: 13px;
      font-weight: 800;
      font-family: inherit;
      cursor: pointer;
      background: #E8F7FF;
      box-shadow: 2px 2px 0 #1a1a1a;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      transition: all 0.15s ease;
    }
    .room-btn:hover {
      transform: translate(-1px, -1px);
      box-shadow: 3px 3px 0 #1a1a1a;
    }
    .room-btn:active {
      transform: translate(1px, 1px);
      box-shadow: 1px 1px 0 #1a1a1a;
    }

    /* Host Settings in Lobby */
    .host-settings-box {
      background: #F3EAFF;
      border: 3px solid #1a1a1a;
      border-radius: 16px;
      padding: 16px 20px;
      box-shadow: 4px 4px 0 #a06bd6;
      margin-bottom: 20px;
      width: 100%;
      max-width: 800px;
    }
    .host-settings-title {
      font-size: 15px;
      font-weight: 900;
      color: #1a1a1a;
      margin-bottom: 12px;
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .host-options-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
      gap: 12px;
    }
    .host-select-group {
      display: flex;
      flex-direction: column;
      gap: 4px;
    }
    .host-select-group label {
      font-size: 11px;
      font-weight: 800;
      color: #4a3d6b;
      text-transform: uppercase;
    }
    .host-select {
      padding: 8px 12px;
      border: 2px solid #1a1a1a;
      border-radius: 8px;
      font-size: 13px;
      font-weight: 700;
      font-family: inherit;
      background: #fff;
      color: #1a1a1a;
      cursor: pointer;
    }

    /* Live In-Game Guess Panel */
    .online-guess-panel {
      position: fixed;
      bottom: 24px;
      left: 50%;
      transform: translateX(-50%);
      width: calc(100% - 32px);
      max-width: 680px;
      z-index: 100;
      display: none;
      flex-direction: column;
      align-items: center;
      gap: 8px;
    }
    .online-guess-panel.active {
      display: flex;
    }
    .online-guess-form {
      display: flex;
      align-items: stretch;
      width: 100%;
      gap: 8px;
      background: #FFFDF5;
      border: 4px solid #1a1a1a;
      border-radius: 18px;
      padding: 6px;
      box-shadow: 6px 6px 0 #1a1a1a;
    }
    .online-guess-input {
      flex: 1;
      border: none;
      background: transparent;
      padding: 12px 18px;
      font-size: 17px;
      font-weight: 800;
      font-family: inherit;
      color: #1a1a1a;
      outline: none;
    }
    .online-guess-input::placeholder {
      color: #999;
      font-weight: 600;
    }
    .online-guess-btn {
      background: #ff7eb6;
      border: 3px solid #1a1a1a;
      border-radius: 12px;
      padding: 0 24px;
      font-size: 16px;
      font-weight: 900;
      font-family: inherit;
      color: #1a1a1a;
      cursor: pointer;
      box-shadow: 2px 2px 0 #1a1a1a;
      transition: all 0.15s ease;
      white-space: nowrap;
    }
    .online-guess-btn:hover {
      background: #ff60a5;
      transform: translate(-1px, -1px);
      box-shadow: 3px 3px 0 #1a1a1a;
    }
    .online-guess-btn:active {
      transform: translate(1px, 1px);
      box-shadow: 1px 1px 0 #1a1a1a;
    }
    .guess-feedback-pill {
      padding: 6px 16px;
      border-radius: 20px;
      font-size: 13px;
      font-weight: 900;
      border: 2px solid #1a1a1a;
      display: none;
      animation: feedbackBounce 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }
    @keyframes feedbackBounce {
      0% { transform: scale(0.6); }
      100% { transform: scale(1); }
    }
    .guess-feedback-correct {
      display: inline-flex;
      background: #3FBF8F;
      color: #fff;
      box-shadow: 3px 3px 0 #1a1a1a;
    }
    .guess-feedback-wrong {
      display: inline-flex;
      background: #FF6B6B;
      color: #fff;
      box-shadow: 3px 3px 0 #1a1a1a;
    }
    .shake-input {
      animation: shakeAnim 0.35s ease;
    }
    @keyframes shakeAnim {
      0%, 100% { transform: translateX(0); }
      20%, 60% { transform: translateX(-8px); }
      40%, 80% { transform: translateX(8px); }
    }

    /* Floating Host Controls Bar */
    .host-floating-bar {
      position: fixed;
      top: 18px;
      left: 50%;
      transform: translateX(-50%);
      background: #FFF9DB;
      border: 3px solid #1a1a1a;
      border-radius: 14px;
      padding: 6px 16px;
      box-shadow: 4px 4px 0 #1a1a1a;
      display: flex;
      align-items: center;
      gap: 10px;
      z-index: 999;
    }
    .hfb-label {
      font-size: 11px;
      font-weight: 900;
      color: #1a1a1a;
    }
    .hfb-btn {
      padding: 4px 10px;
      border: 2px solid #1a1a1a;
      border-radius: 6px;
      font-size: 12px;
      font-weight: 800;
      font-family: inherit;
      cursor: pointer;
      background: #fff;
      box-shadow: 1px 1px 0 #1a1a1a;
    }
    .hfb-btn:hover {
      background: #eee;
    }

    /* Winner Spotlight Badge in Answer Reveal */
    .winners-spotlight {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: center;
      gap: 10px;
      margin-top: 14px;
    }
    .winner-pill {
      padding: 6px 12px;
      border: 2px solid #1a1a1a;
      border-radius: 10px;
      font-size: 13px;
      font-weight: 800;
      display: flex;
      align-items: center;
      gap: 6px;
      box-shadow: 2px 2px 0 #1a1a1a;
    }
    .winner-pill-1 { background: #FFD700; }
    .winner-pill-2 { background: #E0E0E0; }
    .winner-pill-3 { background: #CD7F32; color: #fff; }


    /* ══════════════════════════════════════════════════════════════════
       LIVE CHAT & GUESS STREAM STYLES
       ══════════════════════════════════════════════════════════════════ */
    .game-layout-container {
      display: flex;
      flex-direction: row;
      gap: 20px;
      width: 100%;
      max-width: 1350px;
      margin: 0 auto;
      align-items: stretch;
    }

    .game-main-stage {
      flex: 1;
      min-width: 0;
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    .live-chat-panel {
      width: 340px;
      flex-shrink: 0;
      background: #ffffff;
      border: 3px solid #1a1a1a;
      border-radius: 20px;
      box-shadow: 6px 6px 0 #1a1a1a;
      display: flex;
      flex-direction: column;
      height: calc(100vh - 160px);
      max-height: 720px;
      min-height: 480px;
      overflow: hidden;
      transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    .chat-header {
      padding: 14px 18px;
      background: #FEF08A;
      border-bottom: 3px solid #1a1a1a;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .chat-header-title {
      font-size: 15px;
      font-weight: 900;
      color: #1a1a1a;
      display: flex;
      align-items: center;
      gap: 8px;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    .chat-close-btn {
      display: none;
      background: #ff6b6b;
      border: 2px solid #1a1a1a;
      border-radius: 8px;
      font-weight: 900;
      color: #fff;
      padding: 4px 8px;
      cursor: pointer;
    }

    .chat-stream {
      flex: 1;
      padding: 14px;
      overflow-y: auto;
      display: flex;
      flex-direction: column;
      gap: 10px;
      background: #fdfcf9;
    }

    .chat-stream::-webkit-scrollbar {
      width: 6px;
    }
    .chat-stream::-webkit-scrollbar-thumb {
      background: #cbd5e1;
      border-radius: 3px;
    }

    .chat-msg {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      animation: chatMsgIn 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    @keyframes chatMsgIn {
      from { opacity: 0; transform: translateY(8px) scale(0.96); }
      to { opacity: 1; transform: translateY(0) scale(1); }
    }

    .chat-avatar {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      border: 2px solid #1a1a1a;
      overflow: hidden;
      flex-shrink: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      background: #ff7eb6;
    }

    .chat-avatar img {
      width: 26px;
      height: 26px;
      object-fit: contain;
    }

    .chat-msg-body {
      flex: 1;
      background: #ffffff;
      border: 2px solid #1a1a1a;
      border-radius: 12px;
      padding: 8px 12px;
      box-shadow: 2px 2px 0 #1a1a1a;
      word-break: break-word;
    }

    .chat-msg-header {
      font-size: 11px;
      font-weight: 900;
      color: #64748b;
      margin-bottom: 2px;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .chat-badge-guessed {
      background: #22c55e;
      color: #ffffff;
      font-size: 9px;
      padding: 1px 5px;
      border-radius: 4px;
      border: 1px solid #1a1a1a;
      font-weight: 900;
    }

    .chat-msg-text {
      font-size: 13px;
      font-weight: 700;
      color: #1a1a1a;
      line-height: 1.35;
    }

    .chat-msg-winner {
      background: linear-gradient(135deg, #FEF08A, #FDE047);
      border: 2.5px solid #1a1a1a;
      border-radius: 12px;
      padding: 10px 14px;
      box-shadow: 3px 3px 0 #1a1a1a;
      display: flex;
      align-items: center;
      gap: 10px;
      animation: winnerBannerPulse 0.4s ease;
    }

    @keyframes winnerBannerPulse {
      0% { transform: scale(0.9); opacity: 0; }
      50% { transform: scale(1.04); }
      100% { transform: scale(1); opacity: 1; }
    }

    .chat-winner-text {
      font-size: 13px;
      font-weight: 900;
      color: #1a1a1a;
    }

    .chat-msg-round {
      text-align: center;
      font-size: 11px;
      font-weight: 900;
      color: #94a3b8;
      background: #f1f5f9;
      padding: 4px 10px;
      border-radius: 20px;
      border: 1.5px dashed #cbd5e1;
      margin: 4px auto;
      width: fit-content;
      text-transform: uppercase;
    }

    .chat-input-form {
      padding: 12px 14px;
      background: #ffffff;
      border-top: 3px solid #1a1a1a;
      display: flex;
      gap: 8px;
      align-items: center;
    }

    .chat-input-box {
      flex: 1;
      padding: 10px 14px;
      font-size: 14px;
      font-weight: 700;
      border: 2.5px solid #1a1a1a;
      border-radius: 12px;
      background: #f8fafc;
      color: #1a1a1a;
      outline: none;
      box-shadow: 2px 2px 0 #1a1a1a;
    }

    .chat-input-box:focus {
      background: #ffffff;
      border-color: #3b82f6;
    }

    .chat-send-btn {
      padding: 10px 16px;
      background: #3b82f6;
      color: #ffffff;
      font-weight: 900;
      font-size: 14px;
      border: 2.5px solid #1a1a1a;
      border-radius: 12px;
      cursor: pointer;
      box-shadow: 2px 2px 0 #1a1a1a;
      transition: transform 0.1s ease;
    }

    .chat-send-btn:active {
      transform: translate(2px, 2px);
      box-shadow: 0 0 0 #1a1a1a;
    }

    .mobile-chat-toggle-btn,
    .mobile-bottom-bar,
    .mobile-chat-backdrop {
      display: none;
    }

    @media (max-width: 900px) {
      .game-layout-container {
        flex-direction: column;
      }
      .live-chat-panel {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 78vh;
        max-height: 85vh;
        z-index: 999999 !important;
        border-radius: 24px 24px 0 0;
        border-bottom: none;
        transform: translateY(100%);
        box-shadow: 0 -12px 36px rgba(0,0,0,0.35);
      }
      .chat-input-form {
        padding-bottom: max(20px, env(safe-area-inset-bottom, 20px));
        position: relative;
        z-index: 1000000 !important;
      }
      .live-chat-panel.mobile-open,
      .live-chat-panel.active {
        transform: translateY(0) !important;
      }
      .chat-close-btn {
        display: block;
      }
      .mobile-chat-toggle-btn {
        display: none !important;
      }
    }

  
    .neo-shadow { box-shadow: 6px 6px 0px 0px rgba(0,0,0,1) !important; }
    .neo-shadow-sm { box-shadow: 3px 3px 0px 0px rgba(0,0,0,1) !important; }
    .cinematic-transition { display: none !important; position: fixed !important; inset: 0 !important; pointer-events: none !important; z-index: 9999; }
    .cinematic-transition.active { display: flex !important; pointer-events: auto !important; }
    .mp-modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.85); backdrop-filter: blur(12px); z-index: 99999 !important; align-items: center; justify-content: center; padding: 16px; }
    .mp-modal-overlay.active { display: flex !important; }
    .modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.85); backdrop-filter: blur(12px); z-index: 99999 !important; align-items: center; justify-content: center; padding: 16px; }
    .modal-overlay.active { display: flex !important; }

  
    /* ══════════════════════════════════════════════════════════════
       PROPORTIONAL 2-COLUMN GAME SCREEN LAYOUT WITH FULL-WIDTH TOP BAR
       ══════════════════════════════════════════════════════════════ */
    #gameScreen {
      display: none;
      width: 100vw !important;
      height: 100vh !important;
      height: 100dvh !important;
      padding: 10px 14px !important;
      box-sizing: border-box !important;
      overflow: hidden !important;
      background: radial-gradient(circle at 50% 20%, #ffffff 0%, #f6f7fc 55%, #edf0f8 100%) !important;
      background-color: #f8f9fd !important;
      background-image: radial-gradient(circle at 50% 20%, #ffffff 0%, #f6f7fc 55%, #edf0f8 100%) !important;
      position: fixed !important;
      inset: 0 !important;
    }
    #gameScreen.active {
      display: flex !important;
      flex-direction: row !important;
      align-items: stretch !important;
      background: radial-gradient(circle at 50% 20%, #ffffff 0%, #f6f7fc 55%, #edf0f8 100%) !important;
      background-color: #f8f9fd !important;
      background-image: radial-gradient(circle at 50% 20%, #ffffff 0%, #f6f7fc 55%, #edf0f8 100%) !important;
    }

    /* ONLY GAME PAGE BACKGROUND TO FULL WHITE WITH SUBTLE AMBIENT LIGHTING */
    body.in-game-screen,
    body:has(#gameScreen.active) {
      background: radial-gradient(circle at 50% 20%, #ffffff 0%, #f6f7fc 55%, #edf0f8 100%) !important;
      background-color: #f8f9fd !important;
      background-image: radial-gradient(circle at 50% 20%, #ffffff 0%, #f6f7fc 55%, #edf0f8 100%) !important;
    }
    body.in-game-screen #bgBackdrop,
    body.in-game-screen #bgFocusScrim,
    body:has(#gameScreen.active) #bgBackdrop,
    body:has(#gameScreen.active) #bgFocusScrim {
      display: none !important;
      opacity: 0 !important;
      visibility: hidden !important;
    }

    /* TOP HEADER BAR (FULL WIDTH ROW 1) */
    #gameScreen .game-header {
      width: 100% !important;
      display: flex !important;
      align-items: center !important;
      justify-content: space-between !important;
      background: #ffffff !important;
      border: 3px solid #1a1a1a !important;
      border-radius: 12px !important;
      padding: 6px 16px !important;
      box-shadow: 3px 3px 0 #1a1a1a !important;
      box-sizing: border-box !important;
      flex-shrink: 0 !important;
      gap: 12px !important;
      height: 48px !important;
    }

    /* MAIN GAMEPLAY 2-COLUMN ROW (ROW 2) */
    #gameScreen .game-main-row {
      flex: 1 1 0% !important;
      min-height: 0 !important;
      width: 100% !important;
      display: flex !important;
      flex-direction: row !important;
      align-items: stretch !important;
      gap: 12px !important;
      overflow: hidden !important;
    }

    /* LEFT HERO STAGE COLUMN */
    #gameScreen .game-stage-col {
      flex: 1 1 0% !important;
      min-width: 0 !important;
      height: 100% !important;
      display: flex !important;
      flex-direction: column !important;
      gap: 8px !important;
      overflow: hidden !important;
    }
    #gameScreen .header-logo-wrap {
      display: flex !important;
      align-items: center !important;
      cursor: pointer !important;
      flex-shrink: 0 !important;
      text-decoration: none !important;
    }
    #gameScreen .header-brand-badge {
      font-family: 'Lilita One', 'DM Sans', cursive, sans-serif !important;
      font-size: 14px !important;
      font-weight: 900 !important;
      letter-spacing: 0.8px !important;
      color: #1a1a1a !important;
      background: #FFE814 !important;
      border: 2.5px solid #1a1a1a !important;
      border-radius: 8px !important;
      padding: 4px 10px !important;
      box-shadow: 2px 2px 0 #1a1a1a !important;
      text-transform: uppercase !important;
      display: inline-flex !important;
      align-items: center !important;
      line-height: 1.2 !important;
      user-select: none !important;
      transition: transform 0.1s ease, box-shadow 0.1s ease !important;
    }
    #gameScreen .header-brand-badge:hover {
      transform: translate(-1px, -1px) !important;
      box-shadow: 3px 3px 0 #1a1a1a !important;
    }
    #gameScreen .header-brand-badge:active {
      transform: translate(1px, 1px) !important;
      box-shadow: 1px 1px 0 #1a1a1a !important;
    }
    #gameScreen .host-floating-bar {
      display: none;
      position: static !important;
      transform: none !important;
      top: auto !important;
      left: auto !important;
      background: #FEF08A !important;
      border: 2px solid #1a1a1a !important;
      border-radius: 8px !important;
      padding: 3px 10px !important;
      box-shadow: 2px 2px 0 #1a1a1a !important;
      align-items: center !important;
      gap: 6px !important;
      flex-shrink: 0 !important;
      margin: 0 !important;
    }
    #gameScreen .game-progress {
      display: flex !important;
      align-items: center !important;
      gap: 6px !important;
      flex-wrap: nowrap !important;
      flex-shrink: 0 !important;
      margin-left: auto !important;
    }

    /* HOST CONTROLS BAR */
    #gameScreen .host-floating-bar {
      display: none;
      background: #FEF08A !important;
      border: 2px solid #1a1a1a !important;
      border-radius: 8px !important;
      padding: 3px 8px !important;
      box-shadow: 2px 2px 0 #1a1a1a !important;
      align-items: center !important;
      gap: 6px !important;
      flex-shrink: 0 !important;
    }
    #gameScreen .host-floating-bar.active {
      display: flex !important;
    }
    #gameScreen .hfb-label {
      font-size: 11px !important;
      font-weight: 900 !important;
      text-transform: uppercase !important;
    }
    #gameScreen .hfb-btn {
      background: #ffffff !important;
      border: 1.5px solid #1a1a1a !important;
      border-radius: 6px !important;
      padding: 2px 8px !important;
      font-size: 11px !important;
      font-weight: 800 !important;
      cursor: pointer !important;
    }

    /* CINEMATIC FRAME AREA — EXTENDED CUT AMBIENT BACKDROP */
    #gameScreen .frame-area {
      flex: 1 1 0% !important;
      min-height: 0 !important;
      width: 100% !important;
      background: #090c15 !important;
      background-image: radial-gradient(ellipse 95% 75% at 50% 45%, #151a2d 0%, #0b0e18 50%, #06070d 100%) !important;
      border: 3.5px solid #1a1a1a !important;
      border-radius: 16px !important;
      box-shadow: 6px 6px 0 #1a1a1a, 0 14px 44px var(--frame-accent, rgba(99, 102, 241, 0.22)), 0 2px 10px rgba(0, 0, 0, 0.08) !important;
      position: relative !important;
      overflow: hidden !important;
      display: flex !important;
      flex-direction: column !important;
      transition: box-shadow 0.6s ease !important;
    }
    #gameScreen .frame-display {
      flex: 1 1 0% !important;
      width: 100% !important;
      height: 100% !important;
      position: relative !important;
      overflow: hidden !important;
      background: #090c15 !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
    }
    #gameScreen .frame-ambient-glow {
      position: absolute !important;
      inset: -24px !important;
      width: calc(100% + 48px) !important;
      height: calc(100% + 48px) !important;
      background-size: cover !important;
      background-position: center center !important;
      background-repeat: no-repeat !important;
      filter: blur(52px) saturate(1.85) brightness(0.82) !important;
      transform: scale(1.12) translateZ(0) !important;
      opacity: 0;
      transition: opacity 250ms ease-out !important;
      pointer-events: none !important;
      z-index: 0 !important;
      will-change: opacity, transform !important;
    }
    #gameScreen .frame-ambient-glow.active {
      opacity: 0.88 !important;
    }
    #gameScreen .frame-ambient-glow::after {
      content: '' !important;
      position: absolute !important;
      inset: 0 !important;
      background: radial-gradient(ellipse at 50% 50%, rgba(9, 12, 21, 0.12) 30%, rgba(9, 12, 21, 0.55) 75%, #090c15 100%) !important;
      pointer-events: none !important;
    }
    #gameScreen .frame-display::before {
      content: '' !important;
      display: block !important;
      position: absolute !important;
      inset: 6% 8% !important;
      background: radial-gradient(ellipse at 50% 50%, var(--frame-accent, rgba(99, 102, 241, 0.22)) 0%, var(--frame-accent-2, rgba(168, 85, 247, 0.14)) 42%, transparent 75%) !important;
      filter: blur(48px) !important;
      pointer-events: none !important;
      z-index: 0 !important;
      opacity: 0.85 !important;

    }
    #gameScreen .frame-image-container {
      position: absolute !important;
      inset: 0 !important;
      width: 100% !important;
      height: 100% !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      overflow: hidden !important;
    }
    #gameScreen .frame-image {
      width: 100% !important;
      height: 100% !important;
      object-fit: contain !important;
    }
    #gameScreen .frame-placeholder {
      display: flex !important;
      flex-direction: column !important;
      align-items: center !important;
      justify-content: center !important;
      color: rgba(255,255,255,0.4) !important;
      gap: 12px !important;
    }
    #gameScreen .frame-placeholder .emoji {
      font-size: 48px !important;
    }
    #gameScreen .state-ind {
      position: absolute !important;
      top: 14px !important;
      left: 14px !important;
      background: #FACC15 !important;
      color: #1a1a1a !important;
      border: 2px solid #1a1a1a !important;
      border-radius: 6px !important;
      padding: 2px 8px !important;
      font-weight: 900 !important;
      font-size: 11px !important;
      text-transform: uppercase !important;
      letter-spacing: 1px !important;
      z-index: 10 !important;
      box-shadow: 2px 2px 0 #1a1a1a !important;
    }

    /* RIGHT SIDEBAR COLUMN */
    #gameScreen .game-sidebar-col {
      width: 350px !important;
      min-width: 320px !important;
      max-width: 360px !important;
      flex-shrink: 0 !important;
      height: 100% !important;
      display: flex !important;
      flex-direction: column !important;
      gap: 10px !important;
      overflow-y: auto !important;
      overflow-x: hidden !important;
      overscroll-behavior-y: contain !important;
      -webkit-overflow-scrolling: touch !important;
      padding: 0 4px 6px 0 !important;
      box-sizing: border-box !important;
    }

    #gameScreen .game-sidebar-col::-webkit-scrollbar {
      width: 7px;
    }
    #gameScreen .game-sidebar-col::-webkit-scrollbar-track {
      background: #f1ede4;
      border-radius: 4px;
    }
    #gameScreen .game-sidebar-col::-webkit-scrollbar-thumb {
      background: #1a1a1a;
      border-radius: 4px;
    }
    #gameScreen .game-sidebar-col::-webkit-scrollbar-thumb:hover {
      background: #FF6B9D;
    }

    /* TOP STRIP CONTAINER (DEFAULT: VERTICALLY STACKED) */
    #gameScreen .sidebar-top-strip {
      display: flex;
      flex-direction: column;
      gap: 10px;
      width: 100%;
      flex-shrink: 0;
    }


    #gameScreen .chat-hint-btn {
      margin-left: auto !important;
      height: 26px !important;
      padding: 0 8px !important;
      box-sizing: border-box !important;
      display: inline-flex !important;
      align-items: center !important;
      justify-content: center !important;
      font-size: 11px !important;
      font-weight: 800 !important;
      white-space: nowrap !important;
      border: 1.5px solid #1a1a1a !important;
      border-radius: 6px !important;
      cursor: pointer !important;
    }
    #gameScreen .chat-close-btn {
      display: none !important;
    }

    #gameScreen .panel-sec {
      background: #ffffff !important;
      border: 3px solid #1a1a1a !important;
      border-radius: 14px !important;
      box-shadow: 4px 4px 0 #1a1a1a !important;
      padding: 10px 14px !important;
      flex-shrink: 0 !important;
    }
    #gameScreen .panel-sec h3 {
      font-size: 13px !important;
      font-weight: 900 !important;
      text-transform: uppercase !important;
      margin-bottom: 6px !important;
      display: flex !important;
      align-items: center !important;
      gap: 6px !important;
    }

    /* LIVE CHAT & GUESS STREAM PANEL */
    #gameScreen .live-chat-panel {
      flex: 1 0 280px !important;
      min-height: 280px !important;
      width: 100% !important;
      background: #ffffff !important;
      border: 3px solid #1a1a1a !important;
      border-radius: 14px !important;
      box-shadow: 4px 4px 0 #1a1a1a !important;
      display: flex !important;
      flex-direction: column !important;
      overflow: hidden !important;
    }
    #gameScreen .chat-header {
      padding: 8px 12px !important;
      background: #FEF08A !important;
      border-bottom: 2.5px solid #1a1a1a !important;
      display: flex !important;
      align-items: center !important;
      justify-content: space-between !important;
      flex-shrink: 0 !important;
    }
    #gameScreen .chat-header-title {
      font-size: 12px !important;
      font-weight: 900 !important;
      color: #1a1a1a !important;
      text-transform: uppercase !important;
      display: flex !important;
      align-items: center !important;
      gap: 6px !important;
    }
    #gameScreen .chat-stream {
      flex: 1 1 0% !important;
      min-height: 0 !important;
      padding: 10px !important;
      overflow-y: auto !important;
      display: flex !important;
      flex-direction: column !important;
      gap: 8px !important;
      background: #fdfcf9 !important;
    }
    #gameScreen .chat-input-form {
      padding: 6px 8px !important;
      height: 48px !important;
      box-sizing: border-box !important;
      background: #ffffff !important;
      border-top: 2.5px solid #1a1a1a !important;
      display: flex !important;
      align-items: center !important;
      gap: 6px !important;
      flex-shrink: 0 !important;
    }
    #gameScreen .chat-input-box {
      flex: 1 1 0% !important;
      height: 36px !important;
      padding: 0 10px !important;
      box-sizing: border-box !important;
      border: 2px solid #1a1a1a !important;
      border-radius: 8px !important;
      font-size: 16px !important; /* Prevents auto-zoom on touch/mobile devices */
      font-weight: 700 !important;
      outline: none !important;
      background: #fafaf4 !important;
      color: #1a1a1a !important;
    }
    #gameScreen .chat-send-btn {
      height: 36px !important;
      padding: 0 14px !important;
      box-sizing: border-box !important;
      background: #3B82F6 !important;
      color: #ffffff !important;
      border: 2px solid #1a1a1a !important;
      border-radius: 8px !important;
      font-size: 13px !important;
      font-weight: 900 !important;
      cursor: pointer !important;
      box-shadow: 2px 2px 0 #1a1a1a !important;
      display: inline-flex !important;
      align-items: center !important;
      justify-content: center !important;
    }

    /* MOBILE RESPONSIVENESS */
    @media (max-width: 900px) {
      #gameScreen {
        position: relative !important;
        height: auto !important;
        max-height: none !important;
        min-height: 100vh !important;
        overflow-y: auto !important;
        padding: 8px 10px 80px !important;
      }
      #gameScreen.active {
        flex-direction: column !important;
        gap: 10px !important;
      }
      #gameScreen .game-header {
        height: auto !important;
        min-height: 44px !important;
        padding: 6px 10px !important;
        gap: 6px !important;
        flex-wrap: wrap !important;
      }
      #gameScreen .header-brand-badge {
        font-size: 11.5px !important;
        padding: 3px 8px !important;
      }
      #gameScreen .sec-badge {
        padding: 3px 6px !important;
        font-size: 11px !important;
      }
      #gameScreen .round-info {
        padding: 3px 6px !important;
        font-size: 11px !important;
      }
      #gameScreen .judge-badge {
        display: none !important;
      }
      #gameScreen .game-stage-col {
        height: auto !important;
        flex: none !important;
        width: 100% !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 50 !important;
        background: #fdfcf9 !important;
      }
      #gameScreen .frame-area {
        min-height: 160px !important;
        height: 36vh !important;
        max-height: 280px !important;
        flex: none !important;
      }
      #gameScreen .game-sidebar-col {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        flex: none !important;
        overflow-y: visible !important;
        padding: 0 !important;
      }
      #gameScreen .live-chat-panel {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 52vh !important;
        min-height: 0 !important;
        max-height: 55vh !important;
        flex: none !important;
        z-index: 999999 !important;
        border-radius: 20px 20px 0 0 !important;
        border-bottom: none !important;
        transform: translateY(100%) !important;
        transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
        background: #ffffff !important;
      }
      #gameScreen .live-chat-panel.active,
      #gameScreen .live-chat-panel.mobile-open {
        transform: translateY(0) !important;
      }

      /* ══════════════════════════════════════════════════════════
         MOBILE TYPING & KEYBOARD-VISIBLE LOCKED ZERO-SCROLL MODE
         Ensures both the movie frame AND typed answer remain 100% in view!
         ══════════════════════════════════════════════════════════ */
      body.mobile-typing,
      body.keyboard-visible,
      body:has(#mobileQuickInput:focus) {
        height: 100% !important;
        overflow: hidden !important;
        position: fixed !important;
        width: 100% !important;
      }
      body.mobile-typing #app,
      body.keyboard-visible #app,
      body:has(#mobileQuickInput:focus) #app {
        height: 100% !important;
        width: 100% !important;
        overflow: hidden !important;
      }
      body.mobile-typing #gameScreen,
      body.keyboard-visible #gameScreen,
      body:has(#mobileQuickInput:focus) #gameScreen {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        /* Use the JS-driven visual viewport height; fallback to 100dvh */
        height: calc(var(--visual-vh, 100) * 1px) !important;
        max-height: calc(var(--visual-vh, 100) * 1px) !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
        padding: 4px 6px !important;
        box-sizing: border-box !important;
        gap: 4px !important;
        /* Kill any transform/scroll that iOS might inject */
        transform: translateY(0) !important;
      }
      body.mobile-typing #gameScreen .game-main-row,
      body.keyboard-visible #gameScreen .game-main-row,
      body:has(#mobileQuickInput:focus) #gameScreen .game-main-row {
        flex: 1 1 0% !important;
        min-height: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        overflow: hidden !important;
        gap: 6px !important;
      }
      body.mobile-typing #gameScreen .game-stage-col,
      body.keyboard-visible #gameScreen .game-stage-col,
      body:has(#mobileQuickInput:focus) #gameScreen .game-stage-col {
        flex: 1 1 0% !important;
        min-height: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        overflow: hidden !important;
        gap: 6px !important;
        position: relative !important;
        top: auto !important;
      }
      body.mobile-typing #gameScreen .game-header,
      body.keyboard-visible #gameScreen .game-header,
      body:has(#mobileQuickInput:focus) #gameScreen .game-header {
        flex: 0 0 auto !important;
        height: 38px !important;
        min-height: 38px !important;
        padding: 4px 8px !important;
        margin: 0 !important;
      }
      body.mobile-typing #gameScreen .frame-area,
      body.keyboard-visible #gameScreen .frame-area,
      body:has(#mobileQuickInput:focus) #gameScreen .frame-area {
        flex: 1 1 0% !important;
        min-height: 0 !important;
        height: 100% !important;
        max-height: 100% !important;
        width: 100% !important;
        position: relative !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
        margin: 0 !important;
      }
      body.mobile-typing #gameScreen .frame-display,
      body.keyboard-visible #gameScreen .frame-display,
      body:has(#mobileQuickInput:focus) #gameScreen .frame-display {
        flex: 1 1 0% !important;
        min-height: 0 !important;
        height: 100% !important;
        width: 100% !important;
        position: relative !important;
      }
      body.mobile-typing #gameScreen .frame-image-container,
      body.keyboard-visible #gameScreen .frame-image-container,
      body:has(#mobileQuickInput:focus) #gameScreen .frame-image-container {
        height: 100% !important;
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        position: absolute !important;
        inset: 0 !important;
      }
      body.mobile-typing #gameScreen .frame-image-container img,
      body.keyboard-visible #gameScreen .frame-image-container img,
      body:has(#mobileQuickInput:focus) #gameScreen .frame-image-container img {
        max-width: 100% !important;
        max-height: 100% !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
      }
      body.mobile-typing #gameScreen .game-sidebar-col,
      body.keyboard-visible #gameScreen .game-sidebar-col,
      body:has(#mobileQuickInput:focus) #gameScreen .game-sidebar-col {
        display: none !important;
      }
      body.mobile-typing #gameScreen .host-floating-bar,
      body.keyboard-visible #gameScreen .host-floating-bar,
      body:has(#mobileQuickInput:focus) #gameScreen .host-floating-bar {
        display: none !important;
      }
      body.mobile-typing .mobile-bottom-bar,
      body.keyboard-visible .mobile-bottom-bar,
      body:has(#mobileQuickInput:focus) .mobile-bottom-bar {
        flex: 0 0 auto !important;
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-shadow: none !important;
        border-top: none !important;
      }
      body.mobile-typing #sndBtn,
      body.keyboard-visible #sndBtn,
      body:has(#mobileQuickInput:focus) #sndBtn {
        display: none !important;
      }
      #gameScreen .chat-close-btn {
        display: block !important;
      }
      #gameScreen .chat-input-box {
        font-size: 16px !important; /* CRITICAL: Prevents iOS Safari auto-zoom */
        min-height: 46px !important;
        height: 46px !important;
        background: #ffffff !important;
        color: #111827 !important;
        -webkit-text-fill-color: #111827 !important;
        border: 2.5px solid #1a1a1a !important;
        border-radius: 12px !important;
        padding: 0 12px !important;
        caret-color: #2563EB !important;
      }
      #gameScreen .chat-send-btn {
        height: 46px !important;
        min-height: 46px !important;
        font-size: 15px !important;
        padding: 0 18px !important;
      }
      #gameScreen .mobile-chat-toggle-btn {
        display: none !important;
      }

      /* Dedicated Mobile Sticky Bottom Guess Bar */
      .mobile-bottom-bar {
        display: flex !important;
        flex-direction: column !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        z-index: 99990 !important;
        background: #ffffff !important;
        border-top: 3px solid #1a1a1a !important;
        padding: 6px 10px max(10px, env(safe-area-inset-bottom, 10px)) !important;
        box-shadow: 0 -6px 20px rgba(0,0,0,0.18) !important;
        gap: 6px !important;
        box-sizing: border-box !important;
      }
      .mobile-bottom-bar-row {
        display: flex !important;
        width: 100% !important;
        gap: 6px !important;
        align-items: center !important;
      }
      .mobile-hint-banner {
        display: none;
        align-items: center;
        justify-content: center;
        gap: 6px;
        background: #FEF08A !important;
        border: 2px solid #1a1a1a !important;
        border-radius: 8px !important;
        padding: 3px 8px !important;
        box-shadow: 2px 2px 0 #1a1a1a !important;
        width: 100% !important;
        box-sizing: border-box !important;
        animation: ansSlideUp 0.2s ease forwards !important;
      }
      .mhb-badge {
        font-size: 10px !important;
        font-weight: 900 !important;
        color: #854D0E !important;
      }
      .mhb-text {
        font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
        font-size: 13.5px !important;
        font-weight: 800 !important;
        color: #1a1a1a !important;
        letter-spacing: 0.2px !important;
        line-height: 1.3 !important;
        word-break: break-word !important;
      }
      .mobile-bar-hint-btn {
        height: 46px !important;
        width: 44px !important;
        min-width: 44px !important;
        background: #FDE047 !important;
        color: #1a1a1a !important;
        border: 2.5px solid #1a1a1a !important;
        border-radius: 12px !important;
        cursor: pointer !important;
        box-shadow: 2px 2px 0 #1a1a1a !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
        font-size: 18px !important;
        transition: all 0.15s ease !important;
      }
      .mobile-bar-hint-btn:active {
        transform: translate(2px, 2px) !important;
        box-shadow: 0 0 0 #1a1a1a !important;
      }
      .mobile-bar-hint-btn:disabled {
        opacity: 0.55 !important;
        cursor: not-allowed !important;
      }
      .mobile-guess-form {
        display: flex !important;
        flex: 1 !important;
        gap: 6px !important;
        align-items: center !important;
        margin: 0 !important;
      }
      .mobile-quick-input {
        flex: 1 !important;
        height: 46px !important;
        min-height: 46px !important;
        border: 2.5px solid #1a1a1a !important;
        border-radius: 12px !important;
        padding: 0 12px !important;
        font-size: 16px !important; /* CRITICAL: Prevents iOS Safari auto-zoom */
        font-weight: 700 !important;
        background: #ffffff !important;
        color: #111827 !important;
        -webkit-text-fill-color: #111827 !important;
        outline: none !important;
        box-shadow: 2px 2px 0 #1a1a1a !important;
        box-sizing: border-box !important;
        caret-color: #2563EB !important;
      }
      .mobile-quick-input:focus {
        border-color: #3B82F6 !important;
        background: #ffffff !important;
      }
      .mobile-quick-input::placeholder {
        color: #6b7280 !important;
        font-size: 14px !important;
        font-weight: 600 !important;
      }
      .mobile-quick-btn {
        height: 46px !important;
        min-height: 46px !important;
        background: #FACC15 !important;
        color: #1a1a1a !important;
        border: 2.5px solid #1a1a1a !important;
        border-radius: 12px !important;
        padding: 0 16px !important;
        font-size: 14px !important;
        font-weight: 900 !important;
        cursor: pointer !important;
        box-shadow: 2px 2px 0 #1a1a1a !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        letter-spacing: 0.5px !important;
        flex-shrink: 0 !important;
      }
      .mobile-quick-btn:active {
        transform: translate(2px, 2px) !important;
        box-shadow: 0 0 0 #1a1a1a !important;
      }
      .mobile-bar-chat-btn {
        height: 46px !important;
        width: 46px !important;
        min-width: 46px !important;
        background: #3B82F6 !important;
        color: #ffffff !important;
        border: 2.5px solid #1a1a1a !important;
        border-radius: 12px !important;
        cursor: pointer !important;
        box-shadow: 2px 2px 0 #1a1a1a !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        position: relative !important;
        flex-shrink: 0 !important;
      }
      .mobile-bar-chat-btn:active {
        transform: translate(2px, 2px) !important;
        box-shadow: 0 0 0 #1a1a1a !important;
      }
      .mobile-chat-badge {
        position: absolute !important;
        top: -6px !important;
        right: -6px !important;
        background: #ef4444 !important;
        color: #ffffff !important;
        font-size: 11px !important;
        font-weight: 900 !important;
        padding: 2px 6px !important;
        border-radius: 9999px !important;
        border: 1.5px solid #1a1a1a !important;
        line-height: 1 !important;
      }
      .mobile-chat-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 999998 !important;
      }
      .mobile-chat-backdrop.active {
        display: block !important;
      }

      /* Float audio toggle above sticky bottom bar when game is active on mobile, hide when chat drawer open */
      body.in-game-screen #sndBtn,
      body:has(#gameScreen.active) #sndBtn {
        bottom: 74px !important;
        left: 12px !important;
        z-index: 99995 !important;
      }
      body:has(#mobileHintBanner[style*="display: flex"]) #sndBtn,
      body:has(#mobileHintBanner[style*="display:flex"]) #sndBtn {
        bottom: 104px !important;
      }
      body.mobile-chat-open #sndBtn,
      body:has(.live-chat-panel.mobile-open) #sndBtn,
      body:has(.live-chat-panel.active) #sndBtn {
        display: none !important;
      }
    }

    
    #gameScreen .answer-overlay {
      z-index: 100 !important;
      pointer-events: auto !important;
    }
    #gameScreen .frame-image-container {
      z-index: 1 !important;
      pointer-events: none !important;
    }
    #gameScreen .ans-card {
      pointer-events: auto !important;
      z-index: 101 !important;
    }
    #gameScreen .ans-next-round-btn {
      pointer-events: auto !important;
      cursor: pointer !important;
      z-index: 102 !important;
    }
/* Manual Next Round Controls */
    .ans-action-bar {
      margin-top: 18px !important;
      display: flex !important;
      flex-direction: column !important;
      align-items: center !important;
      justify-content: center !important;
      width: 100% !important;
    }
    .ans-next-round-btn {
      background: #FACC15 !important;
      color: #1a1a1a !important;
      border: 3px solid #1a1a1a !important;
      border-radius: 12px !important;
      padding: 10px 28px !important;
      font-size: 15px !important;
      font-weight: 900 !important;
      text-transform: uppercase !important;
      cursor: pointer !important;
      box-shadow: 4px 4px 0 #1a1a1a !important;
      transition: all 0.15s ease !important;
      display: inline-flex;
      align-items: center;
      gap: 8px;
    }
    .ans-next-round-btn:hover {
      transform: translate(-2px, -2px) !important;
      box-shadow: 6px 6px 0 #1a1a1a !important;
      background: #fde047 !important;
    }
    .ans-next-round-btn:active {
      transform: translate(2px, 2px) !important;
      box-shadow: 2px 2px 0 #1a1a1a !important;
    }
    .ans-waiting-host-pill {
      background: #FEF08A !important;
      color: #854d0e !important;
      border: 2px solid #1a1a1a !important;
      border-radius: 9999px !important;
      padding: 8px 20px !important;
      font-size: 13px !important;
      font-weight: 800 !important;
      box-shadow: 2px 2px 0 #1a1a1a !important;
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }

    /* ══════════════════════════════════════════════════════════════
       GLOBAL ROBUST SCROLLING & SCROLLBAR SYSTEM
       ══════════════════════════════════════════════════════════════ */
    html, body {
      min-height: 100% !important;
      width: 100% !important;
      margin: 0 !important;
      padding: 0 !important;
      overflow-x: hidden !important;
      overflow-y: auto !important;
      scroll-behavior: smooth !important;
      -webkit-overflow-scrolling: touch !important;
      background-color: #FFFDF5 !important;
      scrollbar-width: thin !important;
      scrollbar-color: #1a1a1a #FFFDF5 !important;
    }

    /* Clean Neo-Brutalist Scrollbars */
    ::-webkit-scrollbar {
      width: 8px !important;
      height: 8px !important;
    }
    ::-webkit-scrollbar-track {
      background: #FFFDF5 !important;
    }
    ::-webkit-scrollbar-thumb {
      background: #1a1a1a !important;
      border-radius: 4px !important;
      border: 1.5px solid #FFFDF5 !important;
    }
    ::-webkit-scrollbar-thumb:hover {
      background: #FACC15 !important;
    }

    .screen {
      width: 100% !important;
      min-height: 100vh !important;
      box-sizing: border-box !important;
      position: relative !important;
    }
    .screen.active {
      display: flex !important;
    }

    #homeScreen {
      flex-direction: column !important;
      align-items: center !important;
      justify-content: center !important;
      min-height: 100vh !important;
      padding: 70px 20px 40px !important;
      box-sizing: border-box !important;
    }
    #playerLobbyScreen {
      flex-direction: column !important;
      align-items: center !important;
      justify-content: flex-start !important;
      min-height: 100vh !important;
      height: auto !important;
      padding: 30px 20px 60px !important;
    }
    #winnerScreen {
      flex-direction: column !important;
      align-items: center !important;
      justify-content: flex-start !important;
      min-height: 100vh !important;
      height: auto !important;
      padding: 40px 20px 80px !important;
    }


    /* HINT STYLES */
    .chat-hint-btn {
      background: #FDE047 !important;
      color: #1a1a1a !important;
      border: 2px solid #1a1a1a !important;
      border-radius: 8px !important;
      padding: 3px 10px !important;
      font-size: 11px !important;
      font-weight: 800 !important;
      cursor: pointer !important;
      box-shadow: 2px 2px 0 #1a1a1a !important;
      transition: all 0.15s ease !important;
      display: inline-flex !important;
      align-items: center !important;
      gap: 4px !important;
    }
    .chat-hint-btn:hover {
      transform: translate(-1px, -1px) !important;
      box-shadow: 3px 3px 0 #1a1a1a !important;
      background: #fef08a !important;
    }
    .chat-hint-btn:active {
      transform: translate(1px, 1px) !important;
      box-shadow: none !important;
    }
    .chat-active-hint {
      background: #FEF08A;
      border-bottom: 2.5px solid #1a1a1a;
      padding: 6px 12px;
      display: flex;
      flex-direction: column;
      gap: 2px;
      box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
      animation: ansSlideUp 0.25s ease forwards;
    }
    .cah-label {
      font-size: 10px;
      font-weight: 900;
      color: #854d0e;
      letter-spacing: 0.5px;
      text-transform: uppercase;
    }
    .cah-text {
      font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
      font-size: 15px;
      font-weight: 800;
      color: #1a1a1a;
      letter-spacing: 0.2px;
      line-height: 1.35;
      word-break: break-word;
    }
    .chat-msg-hint {
      background: #FEF9C3;
      border: 2.5px solid #1a1a1a;
      border-radius: 10px;
      padding: 8px 12px;
      margin: 6px 0;
      box-shadow: 3px 3px 0 #1a1a1a;
      text-align: center;
      animation: ansSlideUp 0.3s ease both;
    }
    .cmh-header {
      font-size: 10px;
      font-weight: 900;
      color: #b45309;
      letter-spacing: 1px;
      text-transform: uppercase;
      margin-bottom: 4px;
    }
    .cmh-body {
      font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
      font-size: 15.5px;
      font-weight: 800;
      color: #1a1a1a;
      letter-spacing: 0.3px;
      line-height: 1.35;
      word-break: break-word;
    }
    .chat-msg-system {
      background: #f1f5f9;
      border: 1.5px solid #cbd5e1;
      border-radius: 8px;
      padding: 4px 8px;
      font-size: 11px;
      color: #475569;
      margin: 4px 0;
      text-align: center;
    }


    /* ACTIVE HINT PILL ON SIDE OF HOST CONTROLS */
    .hfb-active-hint-pill {
      display: none;
      align-items: center;
      gap: 6px;
      background: #ffffff !important;
      border: 2px solid #1a1a1a !important;
      border-radius: 8px !important;
      padding: 3px 10px !important;
      box-shadow: 2px 2px 0 #1a1a1a !important;
      margin-left: 8px !important;
      animation: ansSlideUp 0.2s ease forwards;
    }
    .hahp-badge {
      font-size: 11px !important;
      font-weight: 900 !important;
      color: #b45309 !important;
      letter-spacing: 0.5px !important;
      text-transform: uppercase !important;
    }
    .hahp-text {
      font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
      font-size: 13.5px !important;
      font-weight: 800 !important;
      color: #1a1a1a !important;
      letter-spacing: 0.2px !important;
      line-height: 1.3 !important;
    }

    /* ── CHAT REACTIONS & SUBTLE NON-HIGHLIGHTED NOTICES ── */
    .chat-msg-reactions {
      display: flex;
      align-items: center;
      gap: 6px;
      margin-top: 5px;
      padding-top: 4px;
      border-top: 1px dashed #e2e8f0;
    }
    .chat-reaction-btn {
      display: inline-flex;
      align-items: center;
      gap: 3px;
      padding: 2px 7px;
      border-radius: 6px;
      border: 1.5px solid #cbd5e1;
      background: #f8fafc;
      font-size: 11px;
      font-weight: 800;
      color: #475569;
      cursor: pointer;
      transition: all 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275);
      user-select: none;
    }
    .chat-reaction-btn:hover {
      transform: scale(1.08);
      border-color: #1a1a1a;
      background: #fff;
    }
    .chat-reaction-btn:active {
      transform: scale(0.95);
    }
    .chat-reaction-btn.chat-like-btn.active {
      background: #bbf7d0 !important;
      border-color: #1a1a1a !important;
      color: #14532d !important;
      box-shadow: 1.5px 1.5px 0 #1a1a1a !important;
    }
    .chat-reaction-btn.chat-dislike-btn.active {
      background: #fecdd3 !important;
      border-color: #1a1a1a !important;
      color: #881337 !important;
      box-shadow: 1.5px 1.5px 0 #1a1a1a !important;
    }
    .chat-reaction-btn .reaction-count {
      font-size: 10px;
      font-weight: 900;
      font-family: var(--font-mono, monospace);
    }

    /* Subtle non-highlighted notice */
    .chat-notice-subtle {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 5px;
      font-size: 11px;
      font-weight: 600;
      color: #64748b;
      padding: 3px 8px;
      margin: 2px auto;
      width: fit-content;
      user-select: none;
      animation: chatMsgIn 0.15s ease-out;
    }
    .chat-notice-subtle .cns-icon {
      font-size: 12px;
      line-height: 1;
    }
    .chat-notice-subtle .cns-text {
      font-style: italic;
      color: #64748b;
    }

    .chat-reaction-btn.chat-self-disabled {
      opacity: 0.55;
      cursor: not-allowed;
      background: #f1f5f9;
      border-color: #e2e8f0;
      pointer-events: none;
    }

    
    /* ══════════════════════════════════════════════════════════════
       🏆 REDESIGNED CINEMA AWARDS GALA WINNER SCREEN (NEO-BRUTALIST)
       ══════════════════════════════════════════════════════════════ */
    #winnerScreen {
      display: none;
      width: 100vw !important;
      height: 100vh !important;
      height: 100dvh !important;
      max-height: 100vh !important;
      overflow: hidden !important;
      align-items: center !important;
      justify-content: center !important;
      padding: clamp(8px, 1.6vw, 18px) !important;
      position: fixed !important;
      inset: 0 !important;
      background: transparent !important;
      z-index: 50 !important;
      box-sizing: border-box !important;
    }
    #winnerScreen.active {
      display: flex !important;
      animation: none !important;
    }

    #winnerScreen.active > .comic-winner-card {
      animation: scoopcast-surface-in 250ms cubic-bezier(0.22, 1, 0.36, 1) both;
    }
    @keyframes scoopcast-surface-in {
      from { opacity: 0; translate: 0 8px; }
      to { opacity: 1; translate: 0 0; }
    }

    /* Master Gala Card */
    .gala-wrap {
      width: 100%;
      max-width: 1180px;
      height: 100%;
      max-height: 840px;
      background: #FFFDF5;
      border: 3.5px solid #111827;
      box-shadow: 8px 8px 0 #111827;
      display: flex;
      flex-direction: column;
      padding: clamp(12px, 1.8vw, 20px);
      gap: clamp(8px, 1.2vw, 14px);
      position: relative;
      z-index: 10;
      box-sizing: border-box;
      overflow: hidden;
    }

    /* ── GALA HEADER ── */
    .gala-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      border-bottom: 3.5px solid #111827;
      padding-bottom: clamp(6px, 1vw, 10px);
      flex-shrink: 0;
      gap: 12px;
    }
    .gala-title-group {
      display: flex;
      align-items: center;
      gap: 12px;
    }
    .gala-clapper-icon {
      font-size: clamp(24px, 3.2vw, 36px);
      line-height: 1;
      filter: drop-shadow(2px 2px 0 #111827);
    }
    .gala-kicker {
      font-family: 'Space Mono', monospace;
      font-size: clamp(10px, 1.1vw, 12px);
      font-weight: 800;
      color: #b45309;
      letter-spacing: 1.5px;
      text-transform: uppercase;
      line-height: 1.1;
    }
    .gala-headline {
      font-family: 'DM Sans', sans-serif;
      font-weight: 900;
      font-size: clamp(20px, 2.5vw, 30px);
      color: #111827;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      line-height: 1.1;
      margin: 0;
    }
    .gala-meta-badges {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
    }
    .gala-chip {
      font-family: 'Space Mono', monospace;
      font-size: 11px;
      font-weight: 800;
      padding: 5px 12px;
      border: 2px solid #111827;
      box-shadow: 2px 2px 0 #111827;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      text-transform: uppercase;
    }
    .chip-gold {
      background: #FACC15;
      color: #111827;
    }
    .chip-ink {
      background: #ffffff;
      color: #111827;
    }

    /* ── GALA BODY (2-COLUMNS) ── */
    .gala-body {
      display: grid;
      grid-template-columns: 1.15fr 0.85fr;
      gap: clamp(10px, 1.5vw, 18px);
      flex: 1;
      min-height: 0;
      align-items: stretch;
    }

    /* ── LEFT COLUMN: STAGE & CHAMPION ── */
    .gala-stage-col {
      display: flex;
      flex-direction: column;
      gap: clamp(8px, 1.2vw, 12px);
      min-height: 0;
    }

    /* 🏆 Grand Champion Spotlight Card */
    .champion-hero-card {
      background: radial-gradient(circle at 50% 25%, #FEF08A 0%, #FACC15 45%, #EAB308 100%);
      border: 3.5px solid #111827;
      box-shadow: 6px 6px 0 #111827;
      padding: clamp(12px, 1.8vw, 22px);
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      overflow: hidden;
      flex: 1.35;
      min-height: 0;
    }
    .champ-sparkles-layer {
      position: absolute;
      inset: 0;
      pointer-events: none;
      overflow: hidden;
    }
    .c-sparkle {
      position: absolute;
      font-size: 20px;
      color: #ffffff;
      text-shadow: 2px 2px 0 #111827;
      animation: sparkleFloat 3s ease-in-out infinite;
    }
    .c-sparkle.s1 { top: 12px; left: 16px; font-size: 24px; animation-delay: 0s; }
    .c-sparkle.s2 { bottom: 14px; left: 24px; font-size: 20px; color: #111827; animation-delay: 0.8s; }
    .c-sparkle.s3 { top: 18px; right: 28px; font-size: 22px; color: #111827; animation-delay: 1.5s; }
    .c-sparkle.s4 { bottom: 16px; right: 20px; font-size: 26px; animation-delay: 2.2s; }
    @keyframes sparkleFloat {
      0%, 100% { transform: translateY(0) scale(1) rotate(0deg); opacity: 0.85; }
      50% { transform: translateY(-6px) scale(1.15) rotate(12deg); opacity: 1; }
    }

    .champ-center-wrap {
      display: flex;
      align-items: center;
      gap: clamp(16px, 2.5vw, 28px);
      position: relative;
      z-index: 2;
      width: 100%;
      max-width: 600px;
    }

    .champ-crown-float {
      font-size: clamp(36px, 4.5vw, 50px);
      filter: drop-shadow(2px 3px 0 #111827);
      animation: crownBob 2.4s ease-in-out infinite;
      user-select: none;
      z-index: 5;
      margin-bottom: -10px;
      line-height: 1;
    }
    @keyframes crownBob {
      0%, 100% { transform: translateY(0) rotate(-6deg); }
      50% { transform: translateY(-8px) rotate(8deg); }
    }

    .champ-avatar-frame {
      display: flex;
      flex-direction: column;
      align-items: center;
      position: relative;
      flex-shrink: 0;
      z-index: 2;
    }
    .champ-laurel-badge {
      background: #111827;
      color: #FACC15;
      border: 2px solid #111827;
      box-shadow: 2.5px 2.5px 0 #111827;
      font-family: 'Space Mono', monospace;
      font-size: 10px;
      font-weight: 900;
      padding: 3px 12px;
      margin-top: -12px;
      z-index: 3;
      text-transform: uppercase;
      letter-spacing: 0.8px;
    }
    .champ-avatar-circle {
      width: clamp(86px, 10.5vw, 116px);
      height: clamp(86px, 10.5vw, 116px);
      border-radius: 50%;
      background: #ffffff;
      border: 4px solid #111827;
      box-shadow: 5px 5px 0 #111827, 0 0 35px rgba(250, 204, 21, 0.7);
      overflow: hidden;
      display: grid;
      place-items: center;
    }
    .champ-avatar-circle img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .champ-details {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      text-align: left !important;
      gap: 5px;
      z-index: 2;
      flex: 1;
      min-width: 0;
    }
    .champ-trophy-tag {
      font-family: 'Space Mono', monospace;
      font-size: clamp(11px, 1.2vw, 12px);
      font-weight: 900;
      color: #713f12;
      letter-spacing: 1px;
      text-transform: uppercase;
      display: flex;
      align-items: center;
      gap: 4px;
    }
    .champ-name {
      font-family: 'Anybody', 'DM Sans', sans-serif;
      font-weight: 900;
      font-size: clamp(26px, 3.8vw, 42px);
      color: #111827;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      line-height: 1.05;
      margin: 0;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .champ-score-row {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-wrap: wrap;
      margin-top: 4px;
    }
    .champ-score-badge {
      font-family: 'Space Mono', monospace;
      font-weight: 900;
      font-size: clamp(15px, 2vw, 20px);
      background: #111827;
      color: #FACC15;
      border: 2px solid #111827;
      box-shadow: 3px 3px 0 rgba(0,0,0,0.3);
      padding: 4px 14px;
      letter-spacing: 1px;
    }
    .champ-accolade-pill {
      font-family: 'DM Sans', sans-serif;
      font-weight: 800;
      font-size: 11px;
      background: #ffffff;
      border: 2px solid #111827;
      box-shadow: 2px 2px 0 #111827;
      padding: 4px 10px;
      color: #111827;
      text-transform: uppercase;
    }

    /* 🥈🥉 Runner-Up Wings Row (2nd & 3rd Place) */
    .runners-wings-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: clamp(8px, 1.2vw, 14px);
      flex: 1;
      min-height: 0;
    }
    .runner-card {
      border: 3.5px solid #111827;
      box-shadow: 5px 5px 0 #111827;
      padding: clamp(12px, 1.5vw, 18px);
      display: flex;
      flex-direction: column;
      justify-content: center;
      position: relative;
      background: #ffffff;
      transition: transform 0.15s ease;
    }
    .runner-card:hover {
      transform: translateY(-2px);
    }
    .silver-card {
      background: linear-gradient(140deg, #F0F9FF, #BAE6FD);
    }
    .bronze-card {
      background: linear-gradient(140deg, #FFF7ED, #FFEDD5);
    }
    .runner-medal-ribbon {
      position: absolute;
      top: -11px;
      left: 14px;
      font-family: 'Space Mono', monospace;
      font-size: 10px;
      font-weight: 900;
      padding: 3px 9px;
      border: 2px solid #111827;
      box-shadow: 2px 2px 0 #111827;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }
    .silver-ribbon {
      background: #0284C7;
      color: #ffffff;
    }
    .bronze-ribbon {
      background: #EA580C;
      color: #ffffff;
    }
    .runner-card-content {
      display: flex;
      align-items: center;
      gap: 14px;
      width: 100%;
      margin-top: 4px;
    }
    .runner-avatar-circle {
      width: clamp(60px, 7.2vw, 76px);
      height: clamp(60px, 7.2vw, 76px);
      border-radius: 50%;
      border: 3.5px solid #111827;
      box-shadow: 3.5px 3.5px 0 #111827;
      background: #ffffff;
      overflow: hidden;
      display: grid;
      place-items: center;
      flex-shrink: 0;
    }
    .runner-avatar-circle img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    .runner-info {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 4px;
      flex: 1;
      min-width: 0;
      text-align: left !important;
    }
    .runner-name {
      font-family: 'DM Sans', sans-serif;
      font-weight: 900;
      font-size: clamp(15px, 1.8vw, 19px);
      color: #111827;
      text-transform: uppercase;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      letter-spacing: 0.5px;
      text-align: left !important;
      width: 100%;
    }
    .runner-score-badge {
      font-family: 'Space Mono', monospace;
      font-weight: 900;
      font-size: 12px;
      padding: 3px 10px;
      border: 2px solid #111827;
      box-shadow: 2px 2px 0 #111827;
      width: fit-content;
      letter-spacing: 0.5px;
    }
    .silver-score {
      background: #0284C7;
      color: #ffffff;
    }
    .bronze-score {
      background: #EA580C;
      color: #ffffff;
    }

    /* ── RIGHT COLUMN: BOX OFFICE LEADERBOARD ── */
    .gala-roster-col {
      display: flex;
      flex-direction: column;
      gap: clamp(8px, 1.2vw, 12px);
      min-height: 0;
    }

    /* Box Office Standings Card */
    .box-office-card {
      background: #ffffff;
      border: 3.5px solid #111827;
      box-shadow: 5px 5px 0 #111827;
      display: flex;
      flex-direction: column;
      padding: clamp(10px, 1.2vw, 14px);
      flex: 1;
      min-height: 0;
    }
    .bo-card-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      border-bottom: 2.5px solid #111827;
      padding-bottom: 6px;
      margin-bottom: 8px;
      flex-shrink: 0;
    }
    .bo-header-title {
      font-family: 'DM Sans', sans-serif;
      font-weight: 900;
      font-size: clamp(12px, 1.3vw, 14px);
      color: #111827;
      display: flex;
      align-items: center;
      gap: 6px;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }
    .bo-icon {
      font-size: 16px;
    }
    .bo-header-subtitle {
      font-family: 'Space Mono', monospace;
      font-size: 10px;
      font-weight: 800;
      color: #64748b;
      text-transform: uppercase;
    }

    /* Ticket Stream Rows */
    .bo-ticket-stream {
      display: flex;
      flex-direction: column;
      gap: 6px;
      overflow-y: auto;
      flex: 1;
      padding-right: 4px;
    }
    .bo-ticket-stream::-webkit-scrollbar {
      width: 6px;
    }
    .bo-ticket-stream::-webkit-scrollbar-track {
      background: #f1f5f9;
      border: 1px solid #111827;
    }
    .bo-ticket-stream::-webkit-scrollbar-thumb {
      background: #111827;
    }

    /* Individual Ticket Row */
    .bo-ticket-item {
      display: flex;
      align-items: center;
      gap: 10px;
      background: #FFFDF5;
      border: 2.5px solid #111827;
      box-shadow: 3px 3px 0 #111827;
      padding: 7px 12px;
      transition: all 0.15s ease;
      position: relative;
    }
    .bo-ticket-item:hover {
      transform: translateX(3px);
      background: #ffffff;
      box-shadow: 4px 4px 0 #111827;
    }
    .bo-ticket-item.is-champ {
      background: #FEF08A;
      border-color: #111827;
      box-shadow: 3.5px 3.5px 0 #111827;
    }

    .bo-rank-badge {
      width: 24px;
      height: 24px;
      border-radius: 4px;
      border: 1.5px solid #111827;
      font-family: 'Space Mono', monospace;
      font-weight: 900;
      font-size: 11px;
      display: grid;
      place-items: center;
      color: #111827;
      flex-shrink: 0;
      background: #e2e8f0;
    }
    .bo-rank-badge.rank-1 { background: #FACC15; }
    .bo-rank-badge.rank-2 { background: #38BDF8; color: #fff; }
    .bo-rank-badge.rank-3 { background: #FB923C; color: #fff; }

    .bo-avatar-mini {
      width: 28px;
      height: 28px;
      border-radius: 50%;
      border: 1.5px solid #111827;
      background: #ffffff;
      overflow: hidden;
      flex-shrink: 0;
    }
    .bo-avatar-mini img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .bo-name-wrap {
      flex: 1;
      display: flex;
      align-items: center;
      gap: 6px;
      min-width: 0;
    }
    .bo-player-name {
      font-family: 'DM Sans', sans-serif;
      font-weight: 800;
      font-size: 13px;
      color: #111827;
      text-transform: uppercase;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .bo-you-tag {
      font-family: 'Space Mono', monospace;
      font-size: 9px;
      font-weight: 900;
      background: #3B82F6;
      color: #ffffff;
      padding: 1px 4px;
      border-radius: 3px;
    }

    .bo-score-pill {
      font-family: 'Space Mono', monospace;
      font-weight: 900;
      font-size: 12px;
      background: #ffffff;
      color: #111827;
      border: 1.5px solid #111827;
      padding: 2px 7px;
      box-shadow: 1px 1px 0 #111827;
      flex-shrink: 0;
    }
    .bo-ticket-item.is-champ .bo-score-pill {
      background: #111827;
      color: #FACC15;
    }

    /* Festival Credits Card */
    .festival-credits-card {
      background: #FFFDF5;
      border: 2.5px solid #111827;
      box-shadow: 3px 3px 0 #111827;
      padding: 8px 12px;
      flex-shrink: 0;
    }
    .fcc-header {
      font-family: 'Space Mono', monospace;
      font-weight: 900;
      font-size: 10px;
      color: #854d0e;
      letter-spacing: 0.5px;
      text-transform: uppercase;
      display: flex;
      align-items: center;
      gap: 5px;
      margin-bottom: 3px;
    }
    .fcc-names {
      font-family: 'DM Sans', sans-serif;
      font-size: 11px;
      font-weight: 600;
      color: #475569;
      line-height: 1.35;
      margin: 0;
    }

    /* ── GALA FOOTER: TACTILE BUTTONS DECK ── */
    .gala-footer {
      display: flex;
      gap: 12px;
      justify-content: center;
      flex-shrink: 0;
      padding-top: 4px;
      border-top: 3px solid #111827;
    }
    .gala-btn {
      flex: 1;
      padding: clamp(9px, 1.2vw, 13px) 16px;
      font-family: 'DM Sans', sans-serif;
      font-weight: 900;
      font-size: clamp(12px, 1.4vw, 15px);
      color: #111827;
      border: 3px solid #111827;
      box-shadow: 4px 4px 0 #111827;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      transition: transform 0.12s ease, box-shadow 0.12s ease;
      user-select: none;
    }
    .gala-btn:hover {
      transform: translate(-2px, -2px);
      box-shadow: 6px 6px 0 #111827;
    }
    .gala-btn:active {
      transform: translate(2px, 2px);
      box-shadow: 1px 1px 0 #111827;
    }
    .gala-btn-rematch {
      background: #10B981 !important;
      color: #ffffff !important;
      animation: rematchPulse 2.5s ease-in-out infinite;
    }
    @keyframes rematchPulse {
      0%, 100% { box-shadow: 4px 4px 0 #111827; }
      50% { box-shadow: 4px 4px 0 #111827, 0 0 14px rgba(16, 185, 129, 0.45); }
    }
    .gala-btn-lobby {
      background: #FACC15 !important;
      color: #111827 !important;
    }
    .gala-btn-home {
      background: #ffffff !important;
      color: #111827 !important;
    }
    .btn-icon {
      font-size: 16px;
      line-height: 1;
    }



    
    
    /* ══════════════════════════════════════════════════════════════
       🏆 PRODUCTION POLISHED COMIC GALA WINNER SCREEN WITH SCOREBOARD
       ══════════════════════════════════════════════════════════════ */

    * { margin: 0; padding: 0; box-sizing: border-box; }
    body {
      background: #FAF7EF;
      font-family: 'DM Sans', sans-serif;
      min-height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 0;
      margin: 0;
      overflow: hidden;
    }

    /* ══════════════════════════════════════════════════════════
       🏆 EXACT PIXEL-PERFECT NEO-BRUTALIST VICTORY SCREEN
       ══════════════════════════════════════════════════════════ */
    #winnerScreen {
      display: none;
      position: fixed;
      inset: 0;
      width: 100vw;
      height: 100vh;
      height: 100dvh;
      max-height: 100vh;
      overflow: hidden;
      align-items: center;
      justify-content: center;
      padding: clamp(6px, 1.2vh, 16px) clamp(8px, 1.4vw, 20px);
      background: rgba(0, 0, 0, 0.45);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      box-sizing: border-box;
      z-index: 9999;
    }
    #winnerScreen.active {
      display: flex !important;
    }
    #winnerScreen.active ~ #sndBtn,
    body:has(#winnerScreen.active) #sndBtn {
      display: none !important;
    }

    /* Confetti Layer (Front Celebration Overlay) */
    .comic-confetti-layer {
      position: fixed;
      inset: 0;
      pointer-events: none;
      z-index: 1000;
      overflow: hidden;
    }
    .comic-confetti-piece {
      position: absolute;
      top: -20px;
      pointer-events: none;
      animation: confettiFall linear infinite;
    }
    @keyframes confettiFall {
      0% { transform: translateY(0) rotate(0deg); opacity: 1; }
      100% { transform: translateY(105vh) rotate(720deg); opacity: 0; }
    }

    /* Confetti Cannon Burst Particles */
    .comic-confetti-burst {
      position: absolute;
      pointer-events: none;
      z-index: 1001;
      animation: confettiBurstAnim 1.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    }
    @keyframes confettiBurstAnim {
      0% { transform: translate(0, 0) rotate(0deg) scale(0.5); opacity: 1; }
      70% { opacity: 0.95; }
      100% { transform: translate(var(--bx, var(--tx, 0px)), var(--by, var(--ty, 0px))) rotate(var(--rot, 0deg)) scale(1.1); opacity: 0; }
    }

    /* ── PARTY POPPER CANNONS (HIDDEN VISUALLY, WORKING MECHANICALLY) ── */
    .cw-party-popper {
      display: none !important;
    }
    .cw-party-popper:hover {
      transform: scale(1.15) rotate(var(--popper-rot, 24deg));
    }
    .cw-party-popper.popper-left:hover { --popper-rot: 24deg; }
    .cw-party-popper.popper-right:hover { --popper-rot: -24deg; }
    .cw-party-popper:active,
    .cw-party-popper.popping {
      animation: popperRecoil 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
    @keyframes popperRecoil {
      0% { transform: scale(1); }
      30% { transform: scale(0.82) rotate(var(--popper-rot, 24deg)) translateY(8px); }
      60% { transform: scale(1.22) rotate(var(--popper-rot, 24deg)) translateY(-4px); }
      100% { transform: scale(1) rotate(var(--popper-rot, 24deg)); }
    }
    .popper-cone {
      filter: drop-shadow(4px 4px 0 #000000);
      animation: popperBob 3s ease-in-out infinite alternate;
    }
    @keyframes popperBob {
      0% { transform: translateY(0); }
      100% { transform: translateY(-5px); }
    }
    .popper-blast-lines {
      position: absolute;
      top: -14px;
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      gap: 6px;
    }
    .popper-blast-lines span {
      display: block;
      width: 3.5px;
      height: 12px;
      background: #FACC15;
      border: 1px solid #000;
      border-radius: 999px;
      animation: blastPulse 1.5s infinite;
    }
    .popper-blast-lines span:nth-child(1) { transform: rotate(-22deg); height: 10px; background: #FF5E97; }
    .popper-blast-lines span:nth-child(2) { transform: rotate(0deg); height: 14px; background: #FACC15; }
    .popper-blast-lines span:nth-child(3) { transform: rotate(22deg); height: 10px; background: #38BDF8; }
    @keyframes blastPulse {
      0%, 100% { opacity: 0.4; transform: translateY(0); }
      50% { opacity: 1; transform: translateY(-4px); }
    }
    .popper-tooltip {
      background: #111111;
      color: #FACC15;
      font-family: 'Lilita One', cursive, sans-serif;
      font-size: 11px;
      letter-spacing: 0.5px;
      padding: 3px 9px;
      border-radius: 6px;
      margin-top: 4px;
      border: 2px solid #FACC15;
      box-shadow: 2px 2px 0 #000000;
      white-space: nowrap;
      pointer-events: none;
    }

    /* Main Modal Card */
    .comic-winner-card {
      width: 100%;
      max-width: 1040px;
      height: 584px;
      max-height: 96vh;
      background: #FAF7EE;
      border: 4px solid #000000;
      box-shadow: 8px 8px 0px #000000;
      border-radius: 28px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: space-between;
      padding: 14px 22px 18px;
      position: relative;
      z-index: 10;
      box-sizing: border-box;
      overflow: hidden;
    }

    /* Corner Accent Polygons */
    .corner-poly {
      position: absolute;
      pointer-events: none;
      z-index: 1;
    }
    /* Top-Left: Blue triangle pointing right */
    .poly-top-left {
      top: 26px;
      left: 0;
      width: 55px;
      height: 110px;
      background: #3B82F6;
      clip-path: polygon(0 0, 100% 50%, 0 100%);
    }
    /* Bottom-Left: Pink right triangle */
    .poly-bottom-left {
      bottom: 0;
      left: 0;
      width: 95px;
      height: 95px;
      background: #EC4899;
      clip-path: polygon(0 0, 0 100%, 100% 100%);
    }
    /* Bottom-Right: Yellow right triangle */
    .poly-bottom-right {
      bottom: 0;
      right: 0;
      width: 110px;
      height: 120px;
      background: #FACC15;
      clip-path: polygon(100% 0, 0 100%, 100% 100%);
    }

    /* ── VICTORY HEADER ── */
    .cw-victory-section {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      margin-top: 0px;
      position: relative;
      z-index: 5;
      width: 100%;
    }
    .cw-victory-banner-wrap {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 12px;
      position: relative;
    }
    .cw-burst-dashes {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 36px;
      height: 44px;
      flex-shrink: 0;
    }
    .cw-burst-dashes svg {
      width: 100%;
      height: 100%;
      display: block;
    }
    .cw-victory-badge {
      background: #FACC15;
      border: 3.5px solid #000000;
      border-radius: 8px;
      box-shadow: 5px 5px 0px #000000;
      transform: rotate(-2.5deg);
      padding: 6px 36px;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .cw-victory-title {
      font-family: 'Lilita One', cursive, sans-serif;
      font-weight: 900;
      font-size: 52px;
      color: #111827;
      text-transform: uppercase;
      letter-spacing: 3px;
      line-height: 1;
      margin: 0;
    }

    /* ── 3-COLUMN MAIN STAGE GRID ── */
    .cw-center-stage-grid {
      display: grid;
      grid-template-columns: 236px 1fr 236px;
      align-items: flex-end;
      gap: 16px;
      width: 100%;
      margin: 0;
      position: relative;
      z-index: 5;
    }

    /* ── LEFT COLUMN: MESSAGE CARD ── */
    .cw-left-col {
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      height: 100%;
    }
    .cw-msg-card {
      background: #FFFFFF;
      border: 3.5px solid #000000;
      border-radius: 18px;
      box-shadow: 4px 4px 0px #000000;
      padding: 12px 14px 12px;
      display: flex;
      flex-direction: column;
      height: 254px;
      box-sizing: border-box;
      overflow-y: auto;
      scrollbar-width: thin;
    }
    .cw-info-header {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 6px;
    }
    .cw-info-header .msg-icon-wrap {
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .cw-info-header span:last-child {
      font-family: 'Space Grotesk', 'DM Sans', sans-serif;
      font-weight: 900;
      font-size: 14.5px;
      color: #0F172A;
      letter-spacing: 0.8px;
    }
    .cw-info-text {
      font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
      font-size: 12.2px;
      line-height: 1.46;
      font-weight: 600;
      color: #0F172A;
      margin: 0;
      letter-spacing: -0.1px;
    }
    .cw-info-closing {
      display: inline-block;
      margin-top: 5px;
      font-weight: 800;
      color: #4338CA;
      letter-spacing: 0.2px;
    }

    /* ── NEOBRUTALIST QR POP-UP (LEFT SIDE / BESIDE MESSAGE BOX) ── */
    #cwQrPopup {
      display: none;
      position: fixed;
      top: 24px;
      left: 24px;
      z-index: 10050;
      width: 272px;
      background: #FFFDF5;
      border: 3.5px solid #111827;
      border-radius: 18px;
      box-shadow: 6px 6px 0px #111827;
      transform: rotate(-1.5deg);
      transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
      animation: qrPopupSpringIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
      overflow: hidden;
      box-sizing: border-box;
    }
    #winnerScreen.active #cwQrPopup.active {
      display: block !important;
    }
    #cwQrPopup:hover {
      transform: rotate(0deg) scale(1.02);
      box-shadow: 8px 8px 0px #111827;
    }
    @keyframes qrPopupSpringIn {
      0% {
        opacity: 0;
        transform: translateY(-20px) scale(0.85) rotate(-6deg);
      }
      70% {
        transform: translateY(4px) scale(1.03) rotate(0.5deg);
      }
      100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotate(-1.5deg);
      }
    }
    /* ── NEOBRUTALIST QR POP-UP (RIGHT SIDE / INSTAGRAM SUBMISSION) ── */
    #cwQrPopupRight {
      display: none;
      position: fixed;
      top: 24px;
      right: 24px;
      z-index: 10050;
      width: 272px;
      background: #FFFDF5;
      border: 3.5px solid #111827;
      border-radius: 18px;
      box-shadow: 6px 6px 0px #111827;
      transform: rotate(1.5deg);
      transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
      animation: qrPopupSpringInRight 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
      overflow: hidden;
      box-sizing: border-box;
    }
    #winnerScreen.active #cwQrPopupRight.active {
      display: block !important;
    }
    #cwQrPopupRight:hover {
      transform: rotate(0deg) scale(1.02);
      box-shadow: 8px 8px 0px #111827;
    }
    @keyframes qrPopupSpringInRight {
      0% {
        opacity: 0;
        transform: translateY(-20px) scale(0.85) rotate(6deg);
      }
      70% {
        transform: translateY(4px) scale(1.03) rotate(-0.5deg);
      }
      100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotate(1.5deg);
      }
    }
    .cw-qr-header-insta {
      background: #F472B6 !important;
    }
    .cw-qr-link-badge-insta {
      background: #FDF2F8 !important;
      border-color: #BE185D !important;
      color: #9D174D !important;
    }
    .cw-qr-link-badge-insta:hover {
      background: #FCE7F3 !important;
      color: #831843 !important;
    }
    .cw-qr-pill-trigger-right {
      left: auto !important;
      right: 24px !important;
      transform: rotate(2deg) !important;
    }
    .cw-qr-pill-trigger-right:hover {
      transform: rotate(0deg) scale(1.05) translateY(-2px) !important;
    }
    .cw-qr-popup-inner {
      display: flex;
      flex-direction: column;
      width: 100%;
    }
    .cw-qr-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 8px 12px;
      background: #FACC15;
      border-bottom: 3px solid #111827;
    }
    .cw-qr-badge {
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .cw-qr-icon {
      font-size: 15px;
      line-height: 1;
    }
    .cw-qr-title {
      font-family: 'Lilita One', cursive, sans-serif;
      font-size: 14.5px;
      color: #111827;
      letter-spacing: 0.6px;
      text-transform: uppercase;
    }
    .cw-qr-close-btn {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 25px;
      height: 25px;
      background: #FFFFFF;
      border: 2px solid #111827;
      border-radius: 50%;
      font-family: 'Space Grotesk', sans-serif;
      font-weight: 900;
      font-size: 12px;
      color: #111827;
      cursor: pointer;
      box-shadow: 2px 2px 0px #111827;
      transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.1s ease;
      padding: 0;
      line-height: 1;
    }
    .cw-qr-close-btn:hover {
      background: #FF5E97;
      color: #FFFFFF;
      transform: translate(-1px, -1px);
      box-shadow: 3px 3px 0px #111827;
    }
    .cw-qr-close-btn:active {
      transform: translate(1px, 1px);
      box-shadow: 1px 1px 0px #111827;
    }
    .cw-qr-body {
      padding: 12px 14px 14px;
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      gap: 8px;
    }
    .cw-qr-canvas-wrap {
      width: 172px;
      height: 172px;
      background: #FFFFFF;
      border: 3px solid #111827;
      border-radius: 12px;
      box-shadow: 3.5px 3.5px 0px #111827;
      padding: 6px;
      display: flex;
      align-items: center;
      justify-content: center;
      box-sizing: border-box;
      transition: transform 0.15s ease;
    }
    .cw-qr-canvas-wrap:hover {
      transform: scale(1.03);
    }
    .cw-qr-svg {
      width: 100%;
      height: 100%;
      display: block;
    }
    .cw-qr-link-badge {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      padding: 4px 10px;
      background: #3B82F6;
      color: #FFFFFF;
      font-family: 'Space Mono', 'JetBrains Mono', monospace;
      font-size: 11px;
      font-weight: 700;
      text-decoration: none;
      border: 2px solid #111827;
      border-radius: 8px;
      box-shadow: 2px 2px 0px #111827;
      transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.1s ease;
      letter-spacing: -0.2px;
    }
    .cw-qr-link-badge:hover {
      background: #2563EB;
      color: #FFFFFF;
      transform: translate(-1px, -1px);
      box-shadow: 3px 3px 0px #111827;
    }
    .cw-qr-link-badge:active {
      transform: translate(1px, 1px);
      box-shadow: 1px 1px 0px #111827;
    }
    .cw-qr-desc {
      font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
      font-size: 11.5px;
      line-height: 1.42;
      font-weight: 600;
      color: #1F2937;
      margin: 0;
      letter-spacing: -0.1px;
    }

    /* Floating re-open trigger pill when pop-up closed */
    .cw-qr-pill-trigger {
      display: none;
      position: fixed;
      top: 24px;
      left: 24px;
      z-index: 10050;
      align-items: center;
      gap: 6px;
      padding: 7px 14px;
      background: #FACC15;
      border: 2.5px solid #111827;
      border-radius: 999px;
      box-shadow: 4px 4px 0px #111827;
      font-family: 'Lilita One', cursive, sans-serif;
      font-size: 13px;
      color: #111827;
      cursor: pointer;
      transform: rotate(-2deg);
      transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
      letter-spacing: 0.5px;
      user-select: none;
    }
    #winnerScreen.active .cw-qr-pill-trigger.active {
      display: inline-flex !important;
    }
    .cw-qr-pill-trigger:hover {
      transform: rotate(0deg) scale(1.06);
      box-shadow: 5px 5px 0px #111827;
      background: #FEF08A;
    }
    .cw-qr-pill-trigger:active {
      transform: translate(2px, 2px);
      box-shadow: 1px 1px 0px #111827;
    }
    .cw-qr-pill-trigger .pill-dot {
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: #10B981;
      border: 1.5px solid #111827;
      display: inline-block;
      animation: pillPulse 1.8s infinite;
    }

    @media (min-width: 1480px) {
      #cwQrPopup {
        top: 24px;
        transform: rotate(-1.5deg);
        left: max(24px, calc(50vw - 520px - 295px));
      }
      #cwQrPopupRight {
        top: 24px;
        transform: rotate(1.5deg);
        right: max(24px, calc(50vw - 520px - 295px));
      }
      #cwQrPillTrigger {
        top: 24px;
        transform: rotate(-2deg);
        left: max(24px, calc(50vw - 520px - 220px));
      }
      #cwQrPillTriggerRight {
        top: 24px;
        transform: rotate(2deg);
        right: max(24px, calc(50vw - 520px - 220px));
      }
      .cw-meme-popup-left {
        bottom: 24px;
        left: max(24px, calc(50vw - 520px - 340px));
      }
      .cw-meme-popup-right {
        bottom: 24px;
        right: max(24px, calc(50vw - 520px - 340px));
      }
      .cw-meme-pill-left {
        bottom: 24px;
        left: max(24px, calc(50vw - 520px - 220px));
      }
      .cw-meme-pill-right {
        bottom: 24px;
        right: max(24px, calc(50vw - 520px - 220px));
      }
    }

    /* ── CENTER COLUMN: PODIUM ── */
    .cw-center-col {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: flex-end;
    }
    .cw-stage-section {
      display: flex;
      align-items: flex-end;
      justify-content: center;
      gap: 14px;
      width: 100%;
    }
    .cw-runner-col {
      display: flex;
      flex-direction: column;
      align-items: center;
      position: relative;
    }
    .cw-card-burst {
      position: absolute;
      top: -18px;
      pointer-events: none;
      z-index: 2;
    }
    .burst-left {
      left: 6px;
    }
    .burst-right {
      right: 6px;
    }

    /* Runner Cards (Enlarged Heroic Podium Cards) */
    .cw-runner-card {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: space-between;
      border: 3.5px solid #000000;
      box-shadow: 5px 5px 0px #000000;
      position: relative;
      box-sizing: border-box;
      transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.28s ease;
      cursor: default;
    }
    .runner-blue {
      background: #3B82F6;
      width: 144px;
      height: 208px;
      border-radius: 20px;
      padding: 12px 10px 12px;
      animation: runnerSpringLeft 0.75s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
    }
    .runner-gold {
      background: #FACC15;
      width: 172px;
      height: 246px;
      border-radius: 22px;
      border-width: 4px;
      padding: 14px 10px 14px;
      z-index: 2;
      box-shadow: 6px 6px 0px #000000, 0 0 24px rgba(250, 204, 21, 0.45);
      animation: runnerSpringCenter 0.85s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both,
                 champVictoryFloat 3.2s ease-in-out 1.1s infinite alternate;
    }
    .runner-orange {
      background: #EA580C;
      width: 144px;
      height: 208px;
      border-radius: 20px;
      padding: 12px 10px 12px;
      animation: runnerSpringRight 0.75s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s both;
    }

    /* Card Interactive Hover Effects */
    .runner-blue:hover {
      transform: translateY(-8px) rotate(-1.5deg) scale(1.04);
      box-shadow: 8px 8px 0px #000000;
    }
    .runner-orange:hover {
      transform: translateY(-8px) rotate(1.5deg) scale(1.04);
      box-shadow: 8px 8px 0px #000000;
    }
    .runner-gold:hover {
      transform: translateY(-10px) scale(1.05);
      box-shadow: 9px 9px 0px #000000, 0 0 32px rgba(250, 204, 21, 0.65);
    }
    .cw-runner-card:hover .runner-avatar-frame {
      transform: scale(1.1) rotate(4deg);
    }
    .cw-runner-card:hover .champ-avatar-frame {
      transform: scale(1.1) rotate(-3deg);
    }

    /* Keyframe Animations for Runner Cards */
    @keyframes runnerSpringLeft {
      0% {
        opacity: 0;
        transform: translateY(60px) translateX(-30px) rotate(-8deg) scale(0.85);
      }
      70% {
        opacity: 1;
        transform: translateY(-8px) translateX(4px) rotate(2deg) scale(1.03);
      }
      100% {
        opacity: 1;
        transform: translateY(0) translateX(0) rotate(0deg) scale(1);
      }
    }
    @keyframes runnerSpringRight {
      0% {
        opacity: 0;
        transform: translateY(60px) translateX(30px) rotate(8deg) scale(0.85);
      }
      70% {
        opacity: 1;
        transform: translateY(-8px) translateX(-4px) rotate(-2deg) scale(1.03);
      }
      100% {
        opacity: 1;
        transform: translateY(0) translateX(0) rotate(0deg) scale(1);
      }
    }
    @keyframes runnerSpringCenter {
      0% {
        opacity: 0;
        transform: translateY(80px) scale(0.7);
      }
      60% {
        opacity: 1;
        transform: translateY(-16px) scale(1.08);
      }
      80% {
        transform: translateY(4px) scale(0.98);
      }
      100% {
        opacity: 1;
        transform: translateY(0) scale(1);
      }
    }
    @keyframes champVictoryFloat {
      0% {
        transform: translateY(0px);
      }
      50% {
        transform: translateY(-6px);
      }
      100% {
        transform: translateY(0px);
      }
    }

    /* Rank Tabs */
    .runner-rank-tab {
      position: absolute;
      top: -14px;
      left: 50%;
      transform: translateX(-50%);
      width: 28px;
      height: 24px;
      border: 2px solid #000000;
      border-radius: 7px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 900;
      font-size: 14px;
      color: #FFFFFF;
      z-index: 4;
      box-shadow: 2px 2px 0 #000000;
    }
    .blue-tab {
      background: #3B82F6;
    }
    .gold-tab {
      background: #FACC15;
      width: 36px;
      height: 28px;
      top: -16px;
      border-radius: 7px;
    }
    .gold-tab svg {
      width: 20px;
      height: 17px;
      transform-origin: 50% 85%;
      animation: crownVictoryWiggle 2.6s cubic-bezier(0.34, 1.56, 0.64, 1) infinite;
    }
    @keyframes crownVictoryWiggle {
      0%, 65%, 100% { transform: rotate(0deg) scale(1); }
      72% { transform: rotate(-12deg) scale(1.14); }
      80% { transform: rotate(10deg) scale(1.14); }
      88% { transform: rotate(-6deg) scale(1.08); }
      94% { transform: rotate(3deg) scale(1.04); }
    }
    .orange-tab {
      background: #EA580C;
    }

    /* Avatar Frames (Enlarged Heroic) */
    .runner-avatar-frame {
      width: 68px;
      height: 68px;
      border-radius: 50%;
      box-shadow: 0 0 0 2.5px #FFFFFF, 0 0 0 5px #000000;
      overflow: hidden;
      display: flex;
      align-items: center;
      justify-content: center;
      background: #FFFFFF;
      margin-top: 2px;
      transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
    .champ-avatar-frame {
      width: 86px;
      height: 86px;
      box-shadow: 0 0 0 3px #FFFFFF, 0 0 0 6px #000000;
      margin-top: 2px;
    }
    .runner-avatar-frame img,
    .champ-avatar-frame img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    /* Nameplates (Enlarged) */
    .runner-nameplate {
      background: #FFFFFF;
      border: 2.5px solid #000000;
      border-radius: 9px;
      width: 112px;
      max-width: 92%;
      padding: 3.5px 4px;
      text-align: center;
      font-weight: 900;
      font-size: 14px;
      color: #000000;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      box-sizing: border-box;
    }
    .champ-nameplate {
      width: 134px;
      max-width: 92%;
      padding: 4px 6px;
      font-size: 16px;
    }

    /* Score Tags (Enlarged) */
    .runner-score-tag {
      background: #000000;
      border-radius: 999px;
      padding: 3.5px 12px;
      font-weight: 900;
      font-size: 10.5px;
      color: #FFFFFF;
      letter-spacing: 0.5px;
      text-transform: uppercase;
      white-space: nowrap;
    }
    .gold-score-tag {
      padding: 4.5px 16px;
      font-size: 12px;
      color: #FACC15;
    }

    /* ── CREDITS PILL BAR (Directly below podium) ── */
    .cw-credits-pill-bar {
      margin: 0 auto;
      align-self: center;
      width: 100%;
      max-width: 994px;
      height: auto;
      min-height: 40px;
      background: #FFFFFF;
      border: 3px solid #000000;
      border-radius: 999px;
      box-shadow: 4px 4px 0px #000000;
      padding: 5px 20px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 12px;
      box-sizing: border-box;
      position: relative;
      z-index: 5;
    }
    .cw-credit-item {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-shrink: 1;
      min-width: 0;
    }
    .cw-credit-badge {
      background: #FACC15;
      border: 2px solid #000000;
      border-radius: 6px;
      box-shadow: 1.5px 1.5px 0px #000000;
      padding: 2.5px 8px;
      font-family: 'Space Grotesk', 'DM Sans', sans-serif;
      font-weight: 900;
      font-size: 10.5px;
      color: #000000;
      letter-spacing: 0.5px;
      white-space: nowrap;
      flex-shrink: 0;
    }
    .cw-credit-badge.credit-badge-blue {
      background: #38BDF8;
    }
    .cw-credit-names {
      font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
      font-size: 11.5px;
      font-weight: 700;
      color: #0F172A;
      letter-spacing: 0px;
      white-space: nowrap;
    }
    .cw-credit-divider {
      font-size: 14px;
      font-weight: 900;
      color: #64748B;
      line-height: 1;
      flex-shrink: 0;
    }

    @media (max-width: 1020px) and (min-width: 769px) {
      .cw-credits-pill-bar {
        border-radius: 18px;
        padding: 8px 16px;
        flex-wrap: wrap;
        gap: 8px 14px;
      }
      .cw-credit-names {
        font-size: 11px;
      }
    }

    /* ── RIGHT COLUMN: SCOREBOARD ── */
    .cw-right-col {
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      height: 100%;
    }
    .cw-scoreboard-card {
      background: #FFFFFF;
      border: 3px solid #000000;
      border-radius: 18px;
      box-shadow: 4px 4px 0px #000000;
      padding: 12px 12px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      height: 252px;
      box-sizing: border-box;
    }
    .cw-scoreboard-header {
      display: flex;
      align-items: center;
      gap: 7px;
      margin-bottom: 4px;
    }
    .cw-scoreboard-header .trophy-icon {
      font-size: 15px;
    }
    .cw-scoreboard-header span:last-child {
      font-weight: 900;
      font-size: 13.5px;
      color: #111827;
      letter-spacing: 0.5px;
    }
    .cw-sb-list {
      display: flex;
      flex-direction: column;
      gap: 4px;
      flex: 1;
      justify-content: space-between;
    }
    .sb-row {
      background: #FFFFFF;
      border: 2px solid #000000;
      border-radius: 8px;
      padding: 3px 8px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      height: 36px;
      box-sizing: border-box;
    }
    .sb-row.sb-champ {
      background: #FEF9C3;
    }
    .sb-left {
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .sb-rank {
      font-weight: 900;
      font-size: 12px;
      width: 14px;
      color: #000000;
      text-align: center;
    }
    .sb-avatar-mini {
      width: 26px;
      height: 26px;
      border-radius: 50%;
      border: 1.5px solid #000000;
      overflow: hidden;
      display: flex;
      align-items: center;
      justify-content: center;
      background: #FFFFFF;
    }
    .sb-avatar-mini img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    .sb-name {
      font-weight: 900;
      font-size: 12px;
      color: #000000;
      text-transform: uppercase;
      letter-spacing: 0.3px;
    }
    .sb-score {
      background: #000000;
      border-radius: 5px;
      padding: 2px 7px;
      font-weight: 900;
      font-size: 10.5px;
      color: #FFFFFF;
      letter-spacing: 0.3px;
      white-space: nowrap;
    }
    .sb-champ .sb-score {
      color: #FACC15;
    }

    /* ── BOTTOM ACTION BUTTONS ── */
    .cw-buttons-deck {
      display: flex;
      align-items: center;
      gap: 14px;
      width: 100%;
      margin: 0;
      position: relative;
      z-index: 5;
    }
    .cw-btn {
      flex: 1;
      height: 48px;
      border: 3px solid #000000;
      border-radius: 12px;
      box-shadow: 4px 4px 0px #000000;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      font-family: inherit;
      font-weight: 900;
      font-size: 15px;
      cursor: pointer;
      text-decoration: none;
      transition: transform 0.1s ease, box-shadow 0.1s ease;
      box-sizing: border-box;
    }
    .cw-btn:hover {
      transform: translate(-1px, -1px);
      box-shadow: 5px 5px 0px #000000;
    }
    .cw-btn:active {
      transform: translate(2px, 2px);
      box-shadow: 2px 2px 0px #000000;
    }
    .btn-play-again {
      background: #FACC15;
      color: #000000;
    }
    .btn-rematch {
      background: #3B82F6;
      color: #FFFFFF;
    }
    .btn-lobby {
      background: #FFFFFF;
      color: #000000;
    }
    .cw-btn-icon {
      font-size: 15px;
      line-height: 1;
    }
    .cw-btn-text {
      letter-spacing: 0.5px;
      white-space: nowrap;
    }

    /* ── MOBILE RESPONSIVENESS ── */
    @media (max-width: 768px) {
      #winnerScreen {
        padding: 12px 10px;
        align-items: flex-start;
        overflow-y: auto;
      }
      .comic-winner-card {
        height: auto;
        min-height: auto;
        max-height: none;
        padding: 16px 12px 20px;
        gap: 12px;
        border-radius: 20px;
      }
      .cw-victory-title {
        font-size: 32px;
      }
      .cw-victory-badge {
        padding: 4px 20px;
      }
      .cw-center-stage-grid {
        grid-template-columns: 1fr;
        gap: 12px;
      }
      .cw-stage-section {
        gap: 6px;
      }
      .runner-blue, .runner-orange {
        width: 98px;
        height: 154px;
        border-radius: 14px;
        padding: 8px 6px 8px;
      }
      .runner-gold {
        width: 118px;
        height: 178px;
        border-radius: 16px;
        padding: 10px 8px 10px;
      }
      .runner-avatar-frame {
        width: 44px;
        height: 44px;
      }
      .champ-avatar-frame {
        width: 54px;
        height: 54px;
      }
      .runner-nameplate {
        width: 82px;
        max-width: 90%;
        font-size: 10px;
        padding: 2px 2px;
      }
      .champ-nameplate {
        width: 98px;
        max-width: 90%;
        font-size: 11.5px;
        padding: 2.5px 2px;
      }
      .runner-score-tag {
        font-size: 8.5px;
        padding: 2px 6px;
      }
      .gold-score-tag {
        font-size: 9.5px;
        padding: 2px 8px;
      }
      .runner-rank-tab {
        width: 22px;
        height: 19px;
        font-size: 11px;
        top: -10px;
      }
      .gold-tab {
        width: 28px;
        height: 22px;
        top: -12px;
      }
      .gold-tab svg {
        width: 14px;
        height: 12px;
      }
      .cw-center-col {
        order: 1;
      }
      .cw-right-col {
        order: 2;
      }
      .cw-left-col {
        order: 3;
      }
      .cw-msg-card,
      .cw-scoreboard-card {
        height: auto;
      }
      .cw-msg-card {
        padding: 16px 16px 18px;
      }
      .cw-info-text {
        font-size: 13.5px;
        line-height: 1.55;
      }
      #cwQrPopup {
        top: auto;
        bottom: 20px;
        left: 14px;
        right: 14px;
        width: auto;
        max-width: 310px;
        margin: 0 auto;
        transform: none !important;
        box-shadow: 5px 5px 0px #111827;
      }
      #cwQrPopupRight {
        top: auto;
        bottom: 20px;
        left: 14px;
        right: 14px;
        width: auto;
        max-width: 310px;
        margin: 0 auto;
        transform: none !important;
        box-shadow: 5px 5px 0px #111827;
      }
      #cwQrPillTrigger {
        top: auto;
        bottom: 16px;
        left: 16px;
        right: auto;
        transform: none !important;
      }
      #cwQrPillTriggerRight {
        top: auto;
        bottom: 16px;
        left: auto;
        right: 16px;
        transform: none !important;
      }
      .cw-credits-pill-bar {
        width: 100%;
        height: auto;
        min-height: auto;
        flex-shrink: 0;
        flex-direction: column;
        gap: 8px;
        border-radius: 14px;
        padding: 10px 12px;
      }
      .cw-credit-divider {
        display: none;
      }
      .cw-credit-item {
        flex-direction: column;
        align-items: center;
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
      }
      .cw-credit-badge {
        font-size: 11px;
        padding: 2.5px 8px;
      }
      .cw-credit-names {
        font-size: 12px;
        white-space: normal;
        text-align: center;
        line-height: 1.45;
      }
      .cw-buttons-deck {
        flex-direction: column;
        gap: 8px;
      }
      .cw-btn {
        width: 100%;
        height: 44px;
      }
      .cw-party-popper {
        bottom: 8px;
        transform: scale(0.78) rotate(var(--popper-rot, 24deg));
      }
      .cw-party-popper.popper-left { left: 8px; --popper-rot: 24deg; }
      .cw-party-popper.popper-right { right: 8px; --popper-rot: -24deg; }
      .popper-tooltip { display: none; }
    }
  
    /* ════ HOW TO ANSWER GUIDE SCREEN (NEOBRUTAL ARCADE HOW TO PLAY) ════ */
    #howToAnswerScreen {
      display: none;
      align-items: center;
      justify-content: center;
      width: 100vw;
      height: 100vh;
      overflow-y: auto;
    }
    #howToAnswerScreen.active {
      display: flex !important;
    }
    .hta-modal-card {
      background: #ffffff !important;
      border: 4px solid #111111 !important;
      border-radius: 36px !important;
      box-shadow: 0 12px 0 #111111, 0 20px 35px rgba(0, 0, 0, 0.45) !important;
      width: 100%;
      max-width: 980px;
      padding: 24px 32px 26px;
      display: flex;
      flex-direction: column;
      gap: 16px;
      position: relative;
      margin: auto;
      box-sizing: border-box;
      opacity: 1 !important;
      animation: ansSlideUp 0.3s ease both;
    }
    .hta-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      position: relative;
      padding-bottom: 4px;
      gap: 12px;
    }
    .hta-badge {
      background: #FF5E97;
      color: #ffffff;
      border: 3.5px solid #111111;
      border-radius: 999px;
      padding: 6px 18px;
      font-family: 'Lilita One', 'Anybody', sans-serif;
      font-size: 15px;
      font-weight: 900;
      letter-spacing: 0.8px;
      text-transform: uppercase;
      box-shadow: 0 4px 0 #111111;
      line-height: 1;
    }
    .hta-title-wrap {
      display: flex;
      align-items: center;
      gap: 12px;
    }
    .hta-title-burst {
      width: 22px;
      height: 22px;
      flex-shrink: 0;
    }
    .hta-title-burst.right {
      transform: scaleX(-1);
    }
    .hta-title {
      font-family: 'Lilita One', 'Anybody', cursive, sans-serif;
      font-size: 44px;
      font-weight: 900;
      color: #111111;
      margin: 0;
      line-height: 1;
      text-transform: uppercase;
      letter-spacing: 1px;
      text-align: center;
    }
    .hta-timer-badge {
      display: flex;
      align-items: center;
      gap: 10px;
      background: #FFDE59;
      border: 3.5px solid #111111;
      border-radius: 20px;
      padding: 6px 16px;
      box-shadow: 0 4px 0 #111111;
    }
    .hta-timer-icon {
      font-size: 26px;
      line-height: 1;
    }
    .hta-timer-text-wrap {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      line-height: 1.05;
    }
    .hta-timer-digits {
      font-family: 'Lilita One', 'Space Mono', sans-serif;
      font-size: 26px;
      font-weight: 900;
      color: #111111;
      line-height: 1;
    }
    .hta-timer-label {
      font-family: 'DM Sans', sans-serif;
      font-size: 9px;
      font-weight: 900;
      color: #111111;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      margin-top: 2px;
    }
    .hta-timer-bar-wrap {
      width: 100%;
      height: 8px;
      background: #E5E7EB;
      border: 2.5px solid #111111;
      border-radius: 999px;
      overflow: hidden;
      margin-top: -6px;
    }
    .hta-timer-bar-fill {
      height: 100%;
      background: #10B981;
      width: 100%;
      transition: width 1s linear;
    }
    .hta-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 16px;
    }
    .hta-step-card {
      border: 3.5px solid #111111;
      border-radius: 24px;
      padding: 20px 18px 18px;
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      gap: 10px;
      box-shadow: 0 5px 0 #111111;
      transition: transform 0.15s ease;
      position: relative;
    }
    .hta-step-card:hover {
      transform: translateY(-2px);
    }
    .hta-step-card.step-1 { background: #FFFBD6; }
    .hta-step-card.step-2 { background: #E0F4FF; }
    .hta-step-card.step-3 { background: #D7F8E6; }
    .hta-hero-art {
      height: 68px;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 2px;
    }
    .hta-svg-hero {
      height: 64px;
      width: auto;
      max-width: 90px;
    }
    .hta-step-title {
      font-family: 'Lilita One', 'Anybody', sans-serif;
      font-size: 18px;
      font-weight: 900;
      color: #111111;
      margin: 0;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      line-height: 1.15;
    }
    .hta-step-desc {
      font-family: 'DM Sans', sans-serif;
      font-size: 13.5px;
      font-weight: 700;
      color: #374151;
      margin: 0;
      line-height: 1.35;
      min-height: 36px;
    }
    .hta-bottom-pill {
      border: 3px solid #111111;
      border-radius: 999px;
      padding: 6px 22px;
      font-family: 'Lilita One', 'Anybody', sans-serif;
      font-size: 14px;
      font-weight: 900;
      letter-spacing: 0.5px;
      box-shadow: 0 3px 0 #111111;
      margin-top: auto;
      color: #111111;
      text-transform: uppercase;
    }
    .hta-bottom-pill.pill-yellow { background: #FFDE59; }
    .hta-bottom-pill.pill-green { background: #34D399; }
    .hta-search-pill {
      background: #FFFFFF;
      border: 3px solid #111111;
      border-radius: 999px;
      padding: 4px 6px 4px 14px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      width: 100%;
      box-sizing: border-box;
      box-shadow: 0 3px 0 #111111;
      margin-top: auto;
      gap: 6px;
    }
    .hsp-search-icon {
      font-size: 14px;
      color: #111111;
    }
    .hsp-search-text {
      font-family: 'Lilita One', 'Space Mono', sans-serif;
      font-size: 14px;
      font-weight: 900;
      color: #111111;
      letter-spacing: 0.5px;
      flex: 1;
      text-align: left;
    }
    .hsp-typo-badge {
      background: #22C55E;
      color: #FFFFFF;
      border: 2px solid #111111;
      border-radius: 999px;
      padding: 2px 10px;
      font-family: 'Lilita One', 'Space Mono', sans-serif;
      font-size: 11px;
      font-weight: 900;
      letter-spacing: 0.5px;
      text-transform: uppercase;
    }
    /* POINTING SYSTEM HEADER & STRIP */
    .hta-pointing-header {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-top: 4px;
    }
    .hta-pointing-title {
      display: flex;
      align-items: center;
      gap: 8px;
      font-family: 'Lilita One', 'Anybody', sans-serif;
      font-size: 16px;
      font-weight: 900;
      color: #111111;
      letter-spacing: 0.8px;
      text-transform: uppercase;
      white-space: nowrap;
    }
    .hta-divider-line {
      flex: 1;
      height: 3.5px;
      background: #111111;
      opacity: 0.18;
      border-radius: 999px;
    }
    .hta-scoring-strip {
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 12px;
    }
    .hta-score-pill {
      border: 3.5px solid #111111;
      border-radius: 18px;
      padding: 8px 10px;
      display: flex;
      align-items: center;
      gap: 10px;
      box-shadow: 0 4px 0 #111111;
      background: #ffffff;
    }
    .hta-score-pill.pill-gold { background: #FFDF40; }
    .hta-score-pill.pill-silver { background: #E2E8F0; }
    .hta-score-pill.pill-bronze { background: #FED7AA; }
    .hta-score-pill.pill-hint { background: #F3E8FF; }
    .hta-score-pill.pill-wrong { background: #F1F5F9; }
    .hsp-icon-wrap {
      width: 34px;
      height: 34px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }
    .hsp-medal-svg {
      width: 32px;
      height: 32px;
    }
    .hsp-info {
      display: flex;
      flex-direction: column;
      line-height: 1.15;
    }
    .hsp-place {
      font-family: 'DM Sans', sans-serif;
      font-size: 10.5px;
      font-weight: 800;
      color: #4B5563;
      text-transform: uppercase;
    }
    .hsp-pts {
      font-family: 'Lilita One', 'Space Mono', sans-serif;
      font-size: 17px;
      font-weight: 900;
      color: #111111;
      line-height: 1.1;
    }
    .hsp-pts.minus { color: #111111; }
    .hsp-pts.zero { color: #111111; }
    /* CENTERED FOOTER ACTION */
    .hta-footer-center {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 10px;
      margin-top: 2px;
    }
    .hta-btn-container {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 16px;
    }
    .hta-action-rays {
      display: flex;
      flex-direction: column;
      gap: 5px;
    }
    .hta-action-rays span {
      display: block;
      height: 4px;
      background: #111111;
      border-radius: 999px;
    }
    .hta-action-rays.left span:nth-child(1) { width: 14px; transform: rotate(-25deg); }
    .hta-action-rays.left span:nth-child(2) { width: 22px; margin-left: -4px; }
    .hta-action-rays.left span:nth-child(3) { width: 14px; transform: rotate(25deg); }
    .hta-action-rays.right span:nth-child(1) { width: 14px; transform: rotate(25deg); }
    .hta-action-rays.right span:nth-child(2) { width: 22px; }
    .hta-action-rays.right span:nth-child(3) { width: 14px; transform: rotate(-25deg); }
    .hta-start-btn {
      background: #22C55E;
      color: #ffffff;
      border: 4px solid #111111;
      border-radius: 999px;
      padding: 12px 52px;
      font-family: 'Lilita One', 'Anybody', cursive, sans-serif;
      font-size: 26px;
      font-weight: 900;
      letter-spacing: 1px;
      text-transform: uppercase;
      cursor: pointer;
      box-shadow: 0 6px 0 #111111;
      transition: all 0.15s ease;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 12px;
      line-height: 1;
    }
    .hta-start-btn:hover:not(:disabled) {
      transform: translateY(-2px);
      box-shadow: 0 8px 0 #111111;
      background: #16A34A;
    }
    .hta-start-btn:active:not(:disabled) {
      transform: translateY(4px);
      box-shadow: 0 2px 0 #111111;
    }
    .hta-start-btn:disabled {
      background: #E2E8F0 !important;
      color: #64748B !important;
      cursor: not-allowed !important;
      box-shadow: 0 4px 0 #111111 !important;
      transform: none !important;
      font-size: 18px;
      padding: 12px 36px;
    }
    .hta-play-icon {
      font-size: 22px;
      line-height: 1;
    }
    .hta-client-status {
      display: flex;
      align-items: center;
      gap: 8px;
      background: #f1f5f9;
      border: 2px solid #111111;
      border-radius: 12px;
      padding: 8px 16px;
      font-size: 13px;
      font-weight: 800;
      color: #334155;
      box-shadow: 0 2px 0 #111111;
    }
    @media (max-width: 860px) {
      .hta-modal-card { padding: 18px 14px; border-radius: 26px !important; gap: 12px; }
      .hta-header { flex-direction: column; align-items: center; gap: 8px; }
      .hta-title { font-size: 30px; }
      .hta-grid { grid-template-columns: 1fr; gap: 12px; }
      .hta-step-card { padding: 14px; gap: 8px; }
      .hta-step-desc { min-height: auto; }
      .hta-scoring-strip { grid-template-columns: repeat(2, 1fr); gap: 8px; }
      .hta-scoring-strip .hta-score-pill:last-child { grid-column: span 2; }
      .hta-action-rays { display: none; }
      .hta-btn-container { width: 100%; }
      .hta-start-btn { width: 100%; padding: 12px 20px; font-size: 20px; }
    }

    /* ── WINNER SCREEN 4-CORNER FLANKING MEME POP-UPS (BIGGER 330px SIZE) ── */
    .cw-meme-popup {
      display: none;
      position: fixed;
      z-index: 10040;
      width: 330px;
      background: #FFFDF5;
      border: 3.5px solid #111827;
      border-radius: 18px;
      box-shadow: 7px 7px 0px #111827;
      overflow: hidden;
      box-sizing: border-box;
      transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
    }
    #winnerScreen.active .cw-meme-popup.active {
      display: block !important;
    }
    .cw-meme-popup-left {
      bottom: 24px;
      left: 24px;
      transform: rotate(-1.5deg);
      animation: cwMemeSpringInLeft 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    }
    .cw-meme-popup-left:hover {
      transform: rotate(0deg) scale(1.02);
      box-shadow: 9px 9px 0px #111827;
    }
    .cw-meme-popup-right {
      bottom: 24px;
      right: 24px;
      transform: rotate(1.5deg);
      animation: cwMemeSpringInRight 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    }
    .cw-meme-popup-right:hover {
      transform: rotate(0deg) scale(1.02);
      box-shadow: 9px 9px 0px #111827;
    }
    @keyframes cwMemeSpringInLeft {
      0% { opacity: 0; transform: translateY(30px) scale(0.85) rotate(-5deg); }
      70% { transform: translateY(-4px) scale(1.02) rotate(0.5deg); }
      100% { opacity: 1; transform: translateY(0) scale(1) rotate(-1.5deg); }
    }
    @keyframes cwMemeSpringInRight {
      0% { opacity: 0; transform: translateY(30px) scale(0.85) rotate(5deg); }
      70% { transform: translateY(-4px) scale(1.02) rotate(-0.5deg); }
      100% { opacity: 1; transform: translateY(0) scale(1) rotate(1.5deg); }
    }
    .cw-meme-popup-inner {
      display: flex;
      flex-direction: column;
      width: 100%;
    }
    .cw-meme-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 9px 12px;
      border-bottom: 3px solid #111827;
    }
    .cw-meme-header-left {
      background: #4ADE80;
    }
    .cw-meme-header-right {
      background: #FB923C;
    }
    .cw-meme-badge {
      display: flex;
      align-items: center;
      gap: 7px;
    }
    .cw-meme-icon {
      font-size: 16px;
      line-height: 1;
    }
    .cw-meme-title {
      font-family: 'Space Grotesk', -apple-system, sans-serif;
      font-size: 12px;
      font-weight: 800;
      letter-spacing: 0.05em;
      color: #111827;
      text-transform: uppercase;
    }
    .cw-meme-close-btn {
      background: #FFFDF5;
      border: 2px solid #111827;
      border-radius: 7px;
      width: 24px;
      height: 24px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 12px;
      font-weight: 900;
      color: #111827;
      cursor: pointer;
      box-shadow: 2px 2px 0px #111827;
      padding: 0;
      transition: all 0.15s ease;
    }
    .cw-meme-close-btn:hover {
      background: #EF4444;
      color: #FFF;
      transform: translate(-1px, -1px);
      box-shadow: 3px 3px 0px #111827;
    }
    .cw-meme-body {
      padding: 12px;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 10px;
      background: #FFFDF5;
    }
    .cw-meme-img-wrap {
      width: 100%;
      border-radius: 12px;
      overflow: hidden;
      border: 3px solid #111827;
      background: #111827;
      box-shadow: 3px 3px 0px #111827;
    }
    .cw-meme-img {
      display: block;
      width: 100%;
      height: auto;
      max-height: 280px;
      object-fit: cover;
    }
    .cw-meme-caption {
      font-family: 'Space Grotesk', -apple-system, sans-serif;
      font-size: 11.5px;
      font-weight: 800;
      color: #1F2937;
      text-align: center;
      line-height: 1.35;
    }
    .cw-meme-pill-trigger {
      display: none;
      position: fixed;
      z-index: 10045;
      bottom: 24px;
      background: #FFFDF5;
      border: 3px solid #111827;
      border-radius: 9999px;
      box-shadow: 4px 4px 0px #111827;
      padding: 7px 16px;
      align-items: center;
      gap: 8px;
      cursor: pointer;
      font-family: 'Space Grotesk', -apple-system, sans-serif;
      font-size: 11.5px;
      font-weight: 800;
      letter-spacing: 0.04em;
      color: #111827;
      transition: transform 0.15s ease, box-shadow 0.15s ease;
    }
    .cw-meme-pill-left {
      left: 24px;
      transform: rotate(-2deg);
    }
    .cw-meme-pill-right {
      right: 24px;
      transform: rotate(2deg);
    }
    .cw-meme-pill-trigger:hover {
      transform: scale(1.05) translateY(-2px);
      box-shadow: 6px 6px 0px #111827;
    }
    #winnerScreen.active .cw-meme-pill-trigger.active {
      display: inline-flex !important;
    }

    /* ── ZERO-OVERLAP GUARANTEE FOR ALL 4 WINNER POP-UPS ── */
    @media (max-height: 879px), (max-width: 1499px) {
      #winnerScreen.active .cw-meme-popup:not(.modal-mode) {
        display: none !important;
      }
      #winnerScreen.active .cw-meme-pill-trigger {
        display: inline-flex !important;
      }
      #winnerScreen.active .cw-meme-popup.modal-mode {
        display: block !important;
        top: 50% !important;
        left: 50% !important;
        bottom: auto !important;
        right: auto !important;
        transform: translate(-50%, -50%) !important;
        width: min(350px, 92vw) !important;
        z-index: 10070 !important;
        box-shadow: 10px 10px 0px #111827 !important;
      }
    }

  
/* Keep small-screen controls inside the viewport and clear of the safe area. */
.mp-modal-overlay .mp-modal-box {
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

@media (max-width: 767px) {
  #playerLobbyScreen.active {
    justify-content: flex-start !important;
    height: 100dvh !important;
    min-height: 0 !important;
    max-height: 100dvh !important;
    overflow-y: auto !important;
    padding: 16px 12px calc(144px + env(safe-area-inset-bottom)) !important;
  }
  #playerLobbyScreen > main {
    flex: 0 0 auto;
    padding-inline: 0;
    min-width: 0;
  }
  #playerLobbyScreen.active > main {
    animation-name: scoopcast-fade-in;
  }
  #playerLobbyScreen .lobby-mobile-actions {
    background: #fffdf5;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
  }
  #playerLobbyScreen .lobby-mobile-actions button {
    min-height: 44px;
  }
  #playerLobbyScreen .chat-input-box,
  .mp-modal-overlay input {
    font-size: 16px !important;
  }
  #winnerScreen.active {
    justify-content: flex-start !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    padding-bottom: calc(32px + env(safe-area-inset-bottom)) !important;
  }
}

@keyframes scoopcast-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  :is(#homeScreen, #playerLobbyScreen, #howToAnswerScreen, #gameScreen, #winnerScreen).active,
  #playerLobbyScreen.active > main,
  #winnerScreen.active > .comic-winner-card,
  .mp-modal-overlay.active .mp-modal-box,
  #gameScreen .timer-circle.t-pulse,
  #homeScreen .h-filmstrip,
  #winnerScreen .popper-cone,
  #winnerScreen .cw-party-popper {
    animation: none !important;
    transition: none !important;
  }
  #gameScreen .frame-ambient-glow,
  #gameScreen .frame-image {
    transition: none !important;
  }
}


@media (max-width: 767px), (max-width: 1500px) and (max-resolution: 1.5dppx) {
  :root { --cinema-wallpaper: url('/bg/cinema_bg-mobile.webp'); }
}
