@font-face{font-family:Club;src:url('/assets/club.woff2') format('woff2');font-display:swap}*{box-sizing:border-box} :root{--paper:#f6f2e9;--ink:#182c43;--blue:#254de8;--sky:#d7e9f9;--yellow:#f9ce58;--muted:#647082;--border:#deded5;--green:#177858;--red:#b83443}body{margin:0;background:var(--paper);color:var(--ink);font-family:Club,'Trebuchet MS',sans-serif;font-size:16px}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.55;cursor:wait}button:focus-visible,a:focus-visible{outline:3px solid var(--blue);outline-offset:4px}input:focus,select:focus{outline:3px solid #97b6ef}a{color:inherit}.masthead{max-width:1280px;margin:auto;display:flex;align-items:center;gap:24px;padding:26px 40px;border-bottom:1px solid var(--border)}.brand{text-decoration:none;display:flex;align-items:center;font-size:29px;font-weight:900;letter-spacing:-1.7px}.brand-club{font-weight:500}.brand-icon{display:grid;place-items:center;background:var(--blue);color:#fff4d4;width:39px;height:42px;transform:rotate(-8deg);border-radius:12px;margin-right:12px;font-family:Georgia,serif;box-shadow:0 3px 0 #173399}.header-note{font-size:10px;letter-spacing:1.8px;margin-left:auto;font-weight:800}.header-note span{font-size:25px;color:#bd8400;vertical-align:middle;margin-left:15px}#app{max-width:1200px;margin:auto;padding:35px 40px 50px;min-height:75vh}.eyebrow{font-size:11px;text-transform:uppercase;letter-spacing:2px;font-weight:800;color:var(--blue);display:flex;align-items:center;gap:9px}.eyebrow:before{content:'';width:7px;height:7px;border-radius:50%;background:var(--blue)}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(45px,5.5vw,76px);letter-spacing:-3.7px;line-height:.99;font-weight:900;margin:25px 0}h1 em{font-family:Georgia,serif;font-weight:400;color:var(--blue)}h2{font-size:32px;letter-spacing:-1.3px;margin-bottom:12px}h3{font-size:19px;letter-spacing:-.4px}p{line-height:1.65;color:var(--muted)}.hero{display:grid;grid-template-columns:1.04fr 1fr;align-items:center;gap:28px;margin-bottom:36px}.hero-copy{padding:20px 0}.hero p{max-width:400px;font-size:17px}.hero-art{position:relative;min-width:0}.hero-art img{width:112%;margin-left:-6%;mix-blend-mode:multiply;display:block;border-radius:35px}.sticker{position:absolute;bottom:1%;right:4%;background:var(--yellow);padding:13px 21px;border-radius:7px;transform:rotate(-7deg);box-shadow:3px 5px 0 #c4a745;font-size:12px;font-weight:900}.tag-row{display:flex;gap:10px;flex-wrap:wrap;margin-top:24px}.tag{border:1px solid var(--border);border-radius:30px;padding:7px 12px;font-size:11px;font-weight:700;background:#fff8}.setup{display:grid;grid-template-columns:1.5fr 1fr;gap:30px;border-top:1px solid var(--border);padding-top:30px}.section-label{font-size:10px;letter-spacing:1.8px;font-weight:800;color:var(--muted);margin-bottom:16px}.choices{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.choice{background:#fffc;border:1px solid var(--border);border-radius:17px;text-align:left;padding:17px 14px;color:var(--ink);min-height:110px;transition:transform .15s,border-color .15s}.choice:hover{transform:translateY(-3px)}.choice.selected{border:2px solid var(--blue);background:#e9efff;padding:16px 13px}.choice .emoji{font-size:25px;display:block;margin-bottom:12px}.choice strong{display:block;font-size:15px}.choice small{color:var(--muted);font-size:11px;display:block;margin-top:5px}.topics{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}.topic{border:1px solid var(--border);background:transparent;padding:10px 13px;border-radius:25px;font-size:12px;min-height:42px}.topic.selected{background:var(--ink);color:white;border-color:var(--ink)}.play-card{background:#fff;border-radius:23px;padding:25px;border:1px solid var(--border);display:flex;flex-direction:column;gap:13px}.play-card p{font-size:13px;margin:0}.primary,.secondary,.danger{border:0;border-radius:13px;padding:16px 22px;font-weight:800;min-height:52px;display:inline-flex;gap:12px;align-items:center;justify-content:center;text-decoration:none}.primary{background:var(--blue);color:white;box-shadow:0 4px 0 #1736b4}.primary:hover{background:#2044ce}.secondary{background:#e7ecf3;color:var(--ink)}.danger{background:#f9e1de;color:var(--red)}.text-button{border:0;background:none;color:var(--muted);font-size:13px;padding:12px;text-decoration:underline}.check{display:flex;align-items:flex-start;gap:10px;font-size:13px;line-height:1.5}.check input{width:19px;height:19px;accent-color:var(--blue);flex-shrink:0}.login{max-width:380px;margin-top:25px}.field{display:grid;gap:7px;margin-bottom:15px;font-size:12px;font-weight:800}.field input,.answer-input{width:100%;min-height:52px;border:1px solid #c8ced5;border-radius:12px;padding:14px;background:white;color:var(--ink)}.login .primary{width:100%}.form-error{color:var(--red);font-size:13px;min-height:20px}.mini-info{font-size:11px;color:var(--muted);line-height:1.6}.game-layout{max-width:860px;margin:auto}.game-top{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}.player{font-weight:800;font-size:17px}.subtle{font-size:12px;color:var(--muted)}.timer{font-variant-numeric:tabular-nums;background:var(--ink);color:white;border-radius:14px;padding:11px 17px;font-size:20px;font-weight:900}.timer.urgent{background:var(--red)}.game-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px;align-items:center}.arena{position:relative;aspect-ratio:1;max-width:400px;margin:auto;width:100%;background:radial-gradient(circle,#e4ebf8 0,transparent 70%)}.ring{position:absolute;inset:4.5%;border:2.5px solid rgba(255,255,255,.92);border-radius:50%;box-shadow:0 0 28px rgba(255,255,255,.9),0 0 55px rgba(255,255,255,.45),inset 0 0 24px rgba(255,255,255,.5)}.letter{position:absolute;left:50%;top:50%;width:29px;height:29px;margin:-14.5px;display:grid;place-items:center;background:var(--ink);color:white;border-radius:50%;font-size:12px;font-weight:800;box-shadow:0 3px 0 #091727}.letter.current{background:var(--yellow);color:var(--ink);outline:3px solid white;z-index:2}.letter.correct{background:var(--green)}.letter.wrong{background:var(--red)}.letter.passed{background:#c59229}.arena-center{position:absolute;inset:22%;display:grid;place-content:center;text-align:center;border-radius:50%;overflow:hidden;background:#d9e7f5}.arena-center video{width:100%;height:100%;object-fit:cover;position:absolute;transform:scaleX(-1)}.center-text{position:relative;color:var(--blue);z-index:1}.center-text b{display:block;font-size:70px;line-height:1}.center-text span{font-size:11px;font-weight:800}.arena.has-camera .center-text{background:#f6f2e9d9;padding:5px 15px;border-radius:14px;align-self:end;margin-bottom:10px}.arena.has-camera .center-text b{font-size:24px}.score-row{display:flex;justify-content:center;gap:22px;margin-top:12px;font-size:12px}.score-row b{font-size:20px}.good{color:var(--green)}.bad{color:var(--red)}.question-card{background:white;border:1px solid var(--border);border-radius:22px;padding:25px}.question-tag{color:var(--blue);font-weight:900;font-size:12px;letter-spacing:.8px}.clue{font-size:23px;line-height:1.4;letter-spacing:-.5px;margin:17px 0 20px;color:var(--ink);min-height:94px}.question-tools{display:flex;justify-content:space-between;align-items:center}.question-tools button{font-size:12px}.answer-form{display:grid;gap:10px}.answer-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px}.answer-actions button{padding:14px 10px;font-size:13px}.speech-button{border:1px solid var(--border);border-radius:12px;min-height:48px;background:#fff;color:var(--ink)}.speech-button.listening{background:#ffedce;border-color:#d5992b}.feedback{min-height:44px;margin:12px 0 0;font-size:13px;font-weight:700;line-height:1.5}.feedback.correct{color:var(--green)}.feedback.wrong{color:var(--red)}.game-foot{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-top:24px}.result{max-width:730px;margin:auto;text-align:center}.result-hero{width:145px;height:100px;object-fit:cover;mix-blend-mode:multiply}.result h1{font-size:52px;margin:12px 0 22px}.result-score{background:var(--blue);color:white;border-radius:25px;padding:30px;position:relative;overflow:hidden}.result-score:after{content:'✦';position:absolute;font-size:130px;right:5%;top:5%;color:#ffffff15}.result-score .big-score{font-size:80px;letter-spacing:-4px;font-weight:900;line-height:1}.result-score p{color:#dbe4ff;margin:12px 0 0}.result-stats{display:flex;justify-content:center;gap:35px;margin-top:20px;font-size:13px}.share-options{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:22px 0}.share-options button{min-height:65px}.result video{width:200px;max-height:355px;border-radius:15px;display:block;margin:15px auto}.review{text-align:left;border-top:1px solid var(--border);margin-top:30px;padding-top:20px}.review summary{cursor:pointer;font-weight:800}.review-item{padding:13px 0;border-bottom:1px solid var(--border);font-size:13px;line-height:1.5}.review-item strong{display:block}.history{margin-top:25px}.history-item{display:flex;justify-content:space-between;padding:12px 0;border-bottom:1px solid var(--border);font-size:13px}.loading{text-align:center;padding:100px 20px;color:var(--blue);font-weight:800}.loading:before{content:'R';display:grid;place-items:center;width:65px;height:65px;margin:0 auto 25px;background:var(--blue);color:white;border-radius:20px;font-size:42px;animation:bob 1.5s infinite}.loading p{margin-top:15px;font-size:13px}#notice:not(:empty){position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:var(--ink);color:white;border-radius:14px;padding:14px 22px;z-index:10;max-width:90vw;font-size:13px;box-shadow:0 5px 30px #0003}footer{max-width:1200px;margin:auto;padding:22px 40px;border-top:1px solid var(--border);display:flex;justify-content:space-between;font-size:11px;color:var(--muted)}[hidden]{display:none!important}@keyframes bob{50%{transform:translateY(-8px) rotate(6deg)}}@media(max-width:700px){.masthead{padding:19px 22px}.brand{font-size:25px}.header-note{font-size:0}.header-note span{font-size:23px;margin:0}#app{padding:24px 22px 35px}.hero{grid-template-columns:1fr;gap:0;margin-bottom:25px}.hero-copy{padding:0}.hero h1{font-size:54px;max-width:390px;margin:18px 0;letter-spacing:-2.8px}.hero p{font-size:15px;margin-bottom:0}.hero-art{max-width:350px;margin:-3px auto 10px;order:2}.hero-art img{width:100%;margin:0}.sticker{font-size:10px;padding:9px 14px}.tag-row{margin-top:17px;gap:7px}.tag{font-size:10px;padding:6px 9px}.setup{grid-template-columns:1fr;gap:23px;padding-top:22px}.choice{padding:13px 10px;min-height:102px}.choice.selected{padding:12px 9px}.choice strong{font-size:13px}.choice small{font-size:10px}.choice .emoji{font-size:22px;margin-bottom:8px}.play-card{padding:20px}.login{margin:25px auto 0;max-width:none}.login-hero .hero-art{display:none}.game-grid{grid-template-columns:1fr;gap:12px}.arena{max-width:300px}.game-top{margin-bottom:4px}.letter{width:24px;height:24px;margin:-12px;font-size:10px}.center-text b{font-size:55px}.score-row{margin-top:3px}.question-card{padding:18px}.clue{font-size:21px;min-height:0;margin:12px 0 17px}.question-tools{margin-bottom:5px}.game-foot{margin-top:12px}.game-layout .feedback{min-height:23px}.result h1{font-size:39px;letter-spacing:-2px}.result-stats{gap:20px}.share-options{grid-template-columns:1fr}.result-score .big-score{font-size:70px}footer{padding:20px 22px;gap:15px;font-size:10px}footer span{text-align:right}.hero-art{max-height:230px;overflow:hidden;width:100%}.hero-art img{height:245px;object-fit:cover}.hero-art .sticker{bottom:10%}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}@media(max-width:360px){#app{padding-left:14px;padding-right:14px}.hero h1{font-size:47px}.choice strong{font-size:12px}.arena{max-width:260px}}
.family-dialog{border:0;border-radius:24px;padding:30px;max-width:580px;width:92vw;max-height:88vh;overflow-y:auto;background:var(--paper);color:var(--ink);box-shadow:0 25px 80px rgba(0,0,0,.35)}.family-dialog::backdrop{background:#182c4388;backdrop-filter:blur(4px)}.family-dialog h2{margin:10px 0 6px;font-size:28px}.family-dialog p{font-size:14px;margin-bottom:16px}.family-dialog .primary{width:100%;margin-top:12px}.family-row{display:grid;grid-template-columns:1.2fr 1fr;gap:10px;margin:12px 0}.family-row input,.family-row select{width:100%;min-width:0;padding:12px;border:1px solid var(--border);border-radius:10px;background:white;font-size:13px}
.room-chips-label{font-size:11px;letter-spacing:1.5px;font-weight:800;color:var(--muted);margin:16px 0 8px;text-transform:uppercase}
.room-chips{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}
.room-chip{border:1px solid var(--border);background:#fff;border-radius:20px;padding:7px 13px;font-size:12px;font-weight:700;cursor:pointer;transition:all .15s;color:var(--ink);box-shadow:0 1px 2px rgba(0,0,0,.04)}
.room-chip:hover{background:#eef4ff;border-color:var(--blue);transform:translateY(-1px)}
.room-chip.selected{background:var(--blue);color:#fff;border-color:var(--blue);box-shadow:0 3px 0 #1736b4}
.room-field{display:grid;gap:6px;margin:12px 0;font-size:12px;font-weight:800;color:var(--ink)}
.room-field input,.room-field select{width:100%;padding:12px 14px;border:1px solid var(--border);border-radius:12px;background:#fff;font-size:14px;color:var(--ink)}
.room-players-head{display:flex;justify-content:space-between;align-items:center;margin:20px 0 10px}
.room-players-head strong{font-size:13px;letter-spacing:1px;text-transform:uppercase;color:var(--muted)}
.room-player-row{display:grid;grid-template-columns:1.4fr 1fr auto;gap:8px;align-items:center;margin:8px 0}
.room-player-row.with-topic{grid-template-columns:1.2fr 1fr 1fr auto}
.room-player-row input,.room-player-row select{width:100%;min-width:0;padding:11px 12px;border:1px solid var(--border);border-radius:10px;background:#fff;font-size:13px;color:var(--ink)}
.room-remove-player{background:none;border:1px solid var(--border);border-radius:10px;color:var(--red);width:38px;height:40px;display:grid;place-items:center;cursor:pointer;font-weight:900;font-size:15px;transition:all .15s}
.room-remove-player:hover{background:#fee2e2;border-color:var(--red)}
.room-pill{display:inline-flex;align-items:center;gap:6px;background:#e9efff;color:var(--blue);border:1px solid #bfdbfe;border-radius:20px;padding:4px 12px;font-size:12px;font-weight:800;margin-left:8px;vertical-align:middle}
.room-banner{background:linear-gradient(135deg,#eef4ff 0%,#dbeafe 100%);border:1.5px solid #93c5fd;border-radius:18px;padding:16px 20px;margin-bottom:24px;display:flex;align-items:center;justify-content:space-between;gap:14px;box-shadow:0 4px 12px rgba(37,77,232,.08)}
.room-banner-info{flex:1}
.room-banner-title{font-size:15px;font-weight:900;color:var(--blue);letter-spacing:-.3px}
.room-banner-subtitle{font-size:13px;color:var(--ink);margin-top:3px;font-weight:700}
.room-banner-actions{display:flex;gap:8px;flex-wrap:wrap}
.room-banner-actions button{padding:8px 14px;font-size:12px;min-height:36px;border-radius:10px}
.turn-handoff{background:linear-gradient(135deg,#f0fdf4 0%,#dcfce7 100%);border:2px solid #86efac;border-radius:22px;padding:24px 20px;margin:22px 0;text-align:center;box-shadow:0 6px 20px rgba(22,101,52,.08)}
.turn-handoff-icon{font-size:44px;margin-bottom:6px;line-height:1}
.turn-handoff-title{font-size:14px;color:#166534;font-weight:800;letter-spacing:.5px;text-transform:uppercase}
.turn-handoff-next{font-size:26px;font-weight:900;color:#14532d;margin:8px 0 16px;letter-spacing:-.8px}
.turn-handoff-next strong{color:#15803d;text-decoration:underline}
.handoff-btn{font-size:17px;padding:16px 28px;width:100%;max-width:380px;margin:auto}
.podium-container{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px;margin:24px 0}
.podium-card{background:#fff;border:1.5px solid var(--border);border-radius:20px;padding:18px 12px;text-align:center;position:relative;box-shadow:0 4px 12px rgba(0,0,0,.04)}
.podium-card.first{border:2.5px solid #eab308;background:linear-gradient(180deg,#fffdf0 0%,#fef08a 100%);box-shadow:0 6px 24px rgba(234,179,8,.3);order:-1}
.podium-card.second{border:2px solid #94a3b8;background:linear-gradient(180deg,#f8fafc 0%,#e2e8f0 100%)}
.podium-card.third{border:2px solid #d97706;background:linear-gradient(180deg,#fffbf0 0%,#fed7aa 100%)}
.podium-medal{font-size:36px;display:block;margin-bottom:6px;line-height:1}
.podium-name{font-size:17px;font-weight:900;color:var(--ink);word-break:break-word}
.podium-score{font-size:28px;font-weight:900;color:var(--blue);margin:8px 0 2px;line-height:1}
.podium-card.first .podium-score{color:#854d0e}
.podium-meta{font-size:11px;color:var(--muted);font-weight:700}
.standings-table{width:100%;border-collapse:collapse;margin:20px 0;text-align:left;font-size:13px;background:#fff;border-radius:14px;overflow:hidden;border:1px solid var(--border)}
.standings-table th{background:#f8fafc;border-bottom:2px solid var(--border);padding:10px 14px;font-weight:800;color:var(--muted);font-size:11px;letter-spacing:1px;text-transform:uppercase}
.standings-table td{border-bottom:1px solid var(--border);padding:12px 14px}
.standings-table tr.highlight{background:#eff6ff;font-weight:800}
@media(max-width:700px){body:has(.game-layout) .masthead{padding-top:13px;padding-bottom:13px}body:has(.game-layout) #app{padding-top:12px;padding-bottom:14px}body:has(.game-layout) footer{display:none}.game-layout .arena{max-width:238px}.game-layout .letter{width:22px;height:22px;margin:-11px;font-size:10px}.game-layout .center-text b{font-size:47px}.game-layout .center-text span{font-size:9px}.game-layout .game-grid{gap:8px}.game-layout .question-card{padding:16px}.game-layout .clue{font-size:19px;line-height:1.4;margin:10px 0 13px}.game-layout .feedback{margin-top:9px;font-size:12px}.game-layout .question-card .mini-info{margin-bottom:0;line-height:1.4;font-size:10px}.game-layout .answer-input{min-height:48px;padding:12px}.game-layout .game-foot{margin-top:8px}}

.live-panel{background:#182c43;color:#fff;padding:18px;border-radius:20px;margin-bottom:20px}.live-panel strong{font-size:12px;letter-spacing:.1em}.live-panel p{font-size:16px;min-height:44px;margin:12px 0}.live-panel .secondary{background:#fff;color:#182c43;padding:10px 16px}.live-dot{display:inline-block;width:9px;height:9px;background:#f9ce58;border-radius:50%;margin-right:9px;box-shadow:0 0 0 5px #f9ce581c}

.question-card .live-panel p{color:#e0eaf5}

.speech-button{touch-action:none;user-select:none;font-weight:900;transition:transform .12s,box-shadow .12s,background .12s}.speech-button.listening{background:var(--red);border-color:var(--red);color:#fff;box-shadow:0 0 0 5px rgba(184,52,67,.16),0 8px 24px rgba(184,52,67,.28);transform:scale(.98)}.live-panel{position:relative;overflow:hidden}.live-panel:after{content:'';position:absolute;inset:auto 0 0;height:3px;background:linear-gradient(90deg,var(--yellow),#fff0 70%)}


/* ===== Modo reel · cámara a pantalla completa =====
   Columna flex: el canvas ocupa lo que sobra y se encoge solo.
   Nada de reservar espacio con números fijos: por eso antes se solapaba. */
body:has(.camera-layout){background:#05070f;overscroll-behavior:none}
body:has(.camera-layout) .masthead,body:has(.camera-layout) footer{display:none}
body:has(.camera-layout) #app{padding:0;max-width:none;margin:0}
.camera-layout{position:fixed;inset:0;height:100dvh;max-width:none;margin:0;z-index:30;
  display:flex;flex-direction:column;background:#05070f;padding-bottom:env(safe-area-inset-bottom)}
.player-stage{order:1;flex:1 1 auto;min-height:0;display:flex;align-items:center;justify-content:center;overflow:hidden}
.player-stage canvas{max-width:100%;max-height:100%;width:auto;height:auto;display:block}
.camera-layout .game-top,.camera-layout .score-row{display:none}
.camera-layout .game-grid{display:contents}
.camera-layout .game-grid>div:not(.question-card){display:none}

/* Dock único: estado y acciones, sin apilar controles secundarios. */
.camera-dock{order:2;flex:none;position:relative;display:grid;gap:5px;padding:5px 12px max(8px,env(safe-area-inset-bottom));
  background:linear-gradient(180deg,rgba(5,7,15,.18),rgba(5,7,15,.98) 22%);box-shadow:0 -12px 30px rgba(0,0,0,.18)}
.camera-layout .live-panel{display:flex;align-items:center;gap:9px;margin:0;padding:7px 12px;
  border-radius:14px;background:rgba(18,22,35,.84);border:1px solid rgba(255,255,255,.14);box-shadow:none}
.camera-layout .live-panel strong{display:none}
.camera-layout .live-panel .live-dot{margin:0;flex:none}
.camera-layout .live-panel p{flex:1;min-width:0;margin:0;min-height:0;font-size:12px;line-height:1.25;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mic-meter{--mic:0;display:flex;align-items:center;justify-content:center;gap:2px;width:31px;height:28px;flex:none;padding:5px;border-radius:50%;background:rgba(34,231,255,.11);box-shadow:0 0 calc(7px + var(--mic)*18px) rgba(34,231,255,.65)}
.mic-meter i{display:block;width:3px;border-radius:5px;background:linear-gradient(#ffd028,#22e7ff);height:calc(5px + var(--mic)*13px);transition:height 70ms ease}
.mic-meter i:nth-child(2),.mic-meter i:nth-child(3){height:calc(8px + var(--mic)*15px)}
.mic-meter i:nth-child(4){transition-delay:35ms}

.camera-tools{display:grid;grid-template-columns:1fr 1.35fr 1fr;gap:8px;margin:0;width:100%;align-items:stretch}
.camera-tools #camera-keyboard{
  width:auto;
  min-width:0;
  min-height:56px;
  border-radius:16px;
  border:2px solid #38bdf8;
  background:linear-gradient(180deg,#0284c7 0%,#0369a1 60%,#075985 100%);
  color:#ffffff;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  font-size:11.5px;
  font-weight:900;
  letter-spacing:.8px;
  padding:6px 8px;
  box-shadow:0 5px 0 #082f49,0 8px 18px rgba(2,132,199,.45),inset 0 2px 4px rgba(255,255,255,.45),inset 0 -2px 4px rgba(0,0,0,.3);
  cursor:pointer;
  transition:transform .08s ease,box-shadow .08s ease;
}
.camera-tools #camera-keyboard:active{
  transform:translateY(3px);
  box-shadow:0 2px 0 #082f49,0 4px 10px rgba(2,132,199,.6),inset 0 2px 4px rgba(255,255,255,.45);
}

/* 3D Tactile Arcade Buttons: Hablar y Pasapalabra */
.camera-tools .speech-button{
  width:auto;
  min-width:0;
  min-height:56px;
  border-radius:16px;
  border:2.5px solid #34d399;
  background:linear-gradient(180deg,#10b981 0%,#059669 60%,#047857 100%);
  color:#ffffff;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding:6px 8px;
  box-shadow:0 5px 0 #064e3b,0 10px 22px rgba(16,185,129,.5),inset 0 2.5px 5px rgba(255,255,255,.55),inset 0 -3px 5px rgba(0,0,0,.3);
  cursor:pointer;
  user-select:none;
  touch-action:none;
  text-transform:none;
  transition:transform .08s ease,box-shadow .08s ease;
}
.camera-tools .speech-button:active{
  transform:translateY(3px);
  box-shadow:0 2px 0 #064e3b,0 4px 12px rgba(16,185,129,.6),inset 0 2px 4px rgba(255,255,255,.5);
}
.camera-tools .speech-button.listening{
  border-color:#fca5a5 !important;
  background:linear-gradient(180deg,#ef4444 0%,#dc2626 60%,#991b1b 100%) !important;
  box-shadow:0 3px 0 #7f1d1d,0 0 25px rgba(239,68,68,.8),inset 0 2px 4px rgba(255,255,255,.6) !important;
  transform:translateY(2px);
}

.camera-tools #skip{
  width:auto;
  min-width:0;
  min-height:56px;
  border-radius:16px;
  border:2px solid #fde047;
  background:linear-gradient(180deg,#fbbf24 0%,#f59e0b 60%,#d97706 100%);
  color:#0f172a;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:4px;
  font-size:11px;
  font-weight:900;
  letter-spacing:.4px;
  padding:6px 8px;
  box-shadow:0 5px 0 #78350f,0 8px 18px rgba(245,158,11,.45),inset 0 2px 4px rgba(255,255,255,.55),inset 0 -2px 4px rgba(0,0,0,.25);
  cursor:pointer;
  user-select:none;
  touch-action:none;
  transition:transform .08s ease,box-shadow .08s ease;
}
.camera-tools #skip:active{
  transform:translateY(3px);
  box-shadow:0 2px 0 #78350f,0 4px 10px rgba(245,158,11,.6),inset 0 2px 4px rgba(255,255,255,.55);
}
.camera-layout.keyboard-open .camera-dock{display:none}

/* El teclado queda totalmente guardado hasta que la persona elige Escribir. */
.camera-layout .question-card{order:3;flex:none;height:0;overflow:hidden;margin:0;
  border:0;border-top:1px solid rgba(255,255,255,.16);border-radius:22px 22px 0 0;background:rgba(8,12,24,.96);
  color:#fff;padding:0 18px;transition:height .3s cubic-bezier(.22,1,.36,1)}
.camera-layout.keyboard-open .question-card{height:min(72dvh,600px);overflow:auto;padding-bottom:max(18px,env(safe-area-inset-bottom))}
.sheet-handle{display:flex;align-items:center;gap:11px;width:100%;min-height:48px;padding:0;background:none;border:0;
  color:#fff;font:inherit;font-weight:800;font-size:12px;letter-spacing:.08em;text-transform:uppercase;cursor:pointer}
.sheet-handle span{width:42px;height:5px;border-radius:99px;background:rgba(255,255,255,.42)}
.sheet-handle i{margin-left:auto;font-style:normal;color:#22e7ff;transition:transform .3s}
.sheet-settings{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:14px}.sheet-light{display:flex;align-items:center;gap:8px;width:100%;padding:11px 14px;border:1px solid rgba(255,255,255,.2);
  border-radius:999px;background:rgba(255,255,255,.06);color:#fff;font:inherit;font-weight:800;font-size:12px;letter-spacing:.05em;text-transform:uppercase;cursor:pointer}
.sheet-light span{margin-left:auto;color:#ffd028}
.camera-layout .question-tag{color:#22e7ff}
.camera-layout .clue{font-size:17px;color:rgba(255,255,255,.86);min-height:0;margin:10px 0 14px}
.camera-layout .answer-input{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.24);color:#fff;font-size:17px}
.camera-layout .answer-input::placeholder{color:rgba(255,255,255,.45)}
.camera-layout .answer-actions{grid-template-columns:1fr}
.camera-layout .question-card .text-button,.camera-layout .feedback,.camera-layout .question-card .mini-info{color:rgba(255,255,255,.78)}
@media(max-width:360px){.camera-tools{grid-template-columns:40px 1fr 1fr;gap:8px}.camera-tools #camera-keyboard{width:38px;height:38px;min-width:38px;min-height:38px;font-size:12px}.camera-tools .speech-button,.camera-tools #skip{width:68px;height:68px;min-width:68px;min-height:68px;font-size:8.5px;padding:4px}}
@media(prefers-reduced-motion:reduce){.camera-layout .question-card{transition:none}}

#finish{color:var(--red);border:1px solid #efb6bc;border-radius:12px;padding:10px 15px;text-decoration:none;font-weight:900;background:#fff}.camera-exit{position:absolute;top:6px;right:12px;width:auto;min-height:0;padding:3px 9px;border-radius:999px;border:1px solid rgba(255,255,255,.14);background:rgba(5,7,15,.75);color:rgba(255,130,140,.85);font:inherit;font-size:10px;font-weight:900;letter-spacing:.05em;text-transform:uppercase;cursor:pointer;z-index:5}.camera-exit:active{color:#ff4d64;border-color:#ff4d64;background:rgba(255,77,100,.15)}.camera-layout .game-foot #finish{display:none}
.answer-reveal{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:-8px -8px 18px;padding:13px 16px;border-radius:15px;border:1px solid}.answer-reveal span{font-size:11px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.answer-reveal strong{font-size:22px;letter-spacing:-.4px;text-align:right}.answer-reveal.correct{color:#116447;background:#e7f7ef;border-color:#9bd6bd}.answer-reveal.wrong{color:#a52939;background:#fff0f1;border-color:#efb6bc}

/* Notebook y PC táctil: usa el ancho real, conserva blancos cómodos y agranda el juego. */
@media (min-width:701px) and (max-height:900px){body:has(.game-layout) .masthead{padding:14px 32px}body:has(.game-layout) #app{max-width:1400px;padding:14px 32px 20px}body:has(.game-layout) footer{display:none}.game-layout .game-top{margin-bottom:8px}.game-layout .game-grid{grid-template-columns:minmax(460px,1.08fr) minmax(430px,.92fr);gap:clamp(28px,4vw,64px)}.game-layout .arena{width:min(100%,calc(100dvh - 205px));max-width:520px}.game-layout .letter{width:32px;height:32px;margin:-16px;font-size:13px}.game-layout .center-text b{font-size:82px}.game-layout .question-card{padding:28px}.game-layout .clue{font-size:clamp(24px,2vw,30px);min-height:104px}.game-layout .answer-input,.game-layout .speech-button,.game-layout .answer-actions button{min-height:58px}.game-layout .game-foot{margin-top:14px}}
@media (min-width:701px) and (pointer:coarse){.primary,.secondary,.danger,.topic,.choice{min-height:58px}.game-layout button,.game-layout input{font-size:max(15px,1em)}.speech-button{touch-action:none}.question-card{box-shadow:0 12px 35px rgba(24,44,67,.08)}}

/* Notebook compacta: contempla el escalado 125/150% de Windows sin deformar el rosco ni mandar controles fuera de pantalla. */
@media (min-width:701px) and (max-width:1150px),(min-width:701px) and (max-height:700px){body:has(.game-layout) .masthead{height:52px;padding:6px 24px}body:has(.game-layout) .brand{font-size:22px}body:has(.game-layout) .brand-icon{width:32px;height:34px;margin-right:9px}body:has(.game-layout) .header-note{font-size:8px}body:has(.game-layout) .header-note span{font-size:19px;margin-left:8px}body:has(.game-layout) #app{max-width:none;min-height:0;padding:8px 20px 10px}body:has(.game-layout) footer{display:none}.game-layout{position:relative;display:grid;grid-template-rows:auto minmax(0,1fr);height:calc(100dvh - 70px);max-width:none}.game-layout .game-top{min-height:42px;margin:0 0 4px;padding-right:190px}.game-layout .player{font-size:15px}.game-layout .subtle{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.game-layout .timer{padding:8px 13px;border-radius:12px;font-size:18px}.game-layout .game-grid{grid-template-columns:minmax(280px,.82fr) minmax(380px,1.18fr);gap:18px;min-height:0;align-items:center}.game-layout .arena{width:min(100%,calc(100dvh - 170px));max-width:390px}.game-layout .letter{width:27px;height:27px;margin:-13.5px;font-size:11px}.game-layout .center-text b{font-size:58px}.game-layout .center-text span{font-size:9px}.game-layout .score-row{gap:12px;margin-top:5px;font-size:10px}.game-layout .score-row b{font-size:17px}.game-layout .question-card{max-height:calc(100dvh - 112px);padding:16px 18px;border-radius:18px}.game-layout .live-panel{display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto auto;column-gap:10px;margin:0 0 8px;padding:8px 11px;border-radius:13px}.game-layout .live-panel .mic-meter{grid-row:1/3}.game-layout .live-panel strong{font-size:9px}.game-layout .live-panel p{min-height:0;margin:1px 0 0;font-size:11px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.game-layout .question-tools{margin:0}.game-layout .question-tag{font-size:10px}.game-layout .question-tools button{padding:5px;font-size:10px}.game-layout .clue{min-height:0;margin:8px 0 10px;font-size:clamp(18px,2.15vw,23px);line-height:1.25}.game-layout .answer-form{grid-template-columns:minmax(0,1fr) minmax(135px,.55fr);grid-template-rows:48px 48px;gap:8px}.game-layout .answer-input{grid-column:1;grid-row:1;min-height:48px;padding:10px 12px;font-size:14px}.game-layout .speech-button{grid-column:1;grid-row:2;min-height:48px;padding:7px 9px;font-size:12px}.game-layout .answer-actions{display:contents}.game-layout .answer-actions .primary{grid-column:2;grid-row:1}.game-layout .answer-actions #skip{grid-column:2;grid-row:2}.game-layout .answer-actions button{min-height:48px;padding:7px 9px;font-size:12px}.game-layout .feedback{min-height:17px;margin:7px 0 0;font-size:11px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.game-layout .question-card>.mini-info{display:none}.game-layout .answer-reveal{margin:-6px -7px 9px;padding:8px 10px;border-radius:11px}.game-layout .answer-reveal span{font-size:9px}.game-layout .answer-reveal strong{font-size:18px}.game-layout .game-foot{position:absolute;z-index:3;top:0;right:78px;margin:0}.game-layout .game-foot>.mini-info{display:none}.game-layout #finish{min-height:42px;padding:7px 11px;font-size:11px}}

/* Onboarding: dos decisiones, sin ruido. */
.mode-intro,.room-lobby,.ranking-page{max-width:920px;margin:0 auto;padding-top:18px}.mode-intro>p,.room-lobby .lobby-head p,.ranking-page>p{max-width:540px;font-size:17px}.mode-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:34px 0 22px}.mode-card{position:relative;min-height:310px;border:1px solid var(--border);border-radius:28px;padding:26px;text-align:left;display:flex;flex-direction:column;align-items:flex-start;overflow:hidden;transition:transform .2s,box-shadow .2s;background:#fff;color:var(--ink)}.mode-card:hover{transform:translateY(-5px);box-shadow:0 18px 45px rgba(24,44,67,.13)}.mode-card.room{background:var(--blue);color:#fff;border-color:var(--blue);box-shadow:0 7px 0 #1736b4}.mode-card:after{content:'R';position:absolute;right:-12px;bottom:-50px;font-family:Georgia,serif;font-size:190px;font-weight:900;opacity:.06;transform:rotate(-12deg)}.mode-number{font-size:11px;letter-spacing:2px;font-weight:900;opacity:.65}.mode-icon{font-size:46px;line-height:1;margin:40px 0 20px}.mode-card strong{font-size:31px;letter-spacing:-1.2px}.mode-card small{font-size:14px;line-height:1.5;max-width:230px;margin-top:7px;color:inherit;opacity:.72}.mode-cta{margin-top:auto;font-size:13px;font-weight:900}.ranking-link{width:100%;display:grid;grid-template-columns:44px 1fr auto;align-items:center;gap:12px;text-align:left;padding:17px 20px;border:1px solid var(--border);border-radius:18px;background:#fff;color:var(--ink)}.ranking-link>span:first-child{width:38px;height:38px;display:grid;place-items:center;border-radius:12px;background:var(--yellow);font-size:20px}.ranking-link strong,.ranking-link small{display:block}.ranking-link small{margin-top:2px;color:var(--muted);font-size:11px}.back-link{border:0;background:transparent;color:var(--muted);padding:8px 0;margin-bottom:22px;font-size:13px;font-weight:800}.lobby-head{display:flex;justify-content:space-between;align-items:end;gap:28px;margin-bottom:28px}.lobby-head h1,.ranking-page h1{margin-bottom:16px}.create-room{white-space:nowrap;margin-bottom:26px}.active-room,.saved-room{display:flex;align-items:center;gap:18px;border-radius:20px;padding:18px 20px;margin-bottom:12px}.active-room{background:var(--ink);color:white;border:2px solid var(--yellow)}.active-room>span{background:var(--yellow);color:var(--ink);padding:5px 8px;border-radius:7px;font-size:9px;font-weight:900;letter-spacing:1px}.active-room>div,.saved-room>div:first-child{flex:1}.active-room h3,.saved-room h3{margin:0 0 4px}.active-room p,.saved-room p{margin:0;font-size:12px}.saved-rooms-head{display:flex;align-items:center;gap:9px;margin:32px 0 14px}.saved-rooms-head h2{margin:0;font-size:23px}.saved-rooms-head span{background:var(--sky);border-radius:99px;padding:3px 9px;font-size:11px;font-weight:900}.saved-room{background:#fff;border:1px solid var(--border)}.room-theme{font-size:10px;color:var(--blue);font-weight:900;letter-spacing:.6px}.saved-room-actions{display:flex;align-items:center;gap:6px}.saved-room-actions .primary{min-height:42px;padding:10px 18px}.empty-rooms{text-align:center;padding:45px 24px;border:1px dashed #b9c0c8;border-radius:22px}.empty-rooms>span{font-size:36px;color:var(--blue)}.empty-rooms h3{margin:12px 0 4px}.empty-rooms p{margin:0}.ranking-board{display:grid;gap:10px;margin:28px 0}.ranking-row{display:grid;grid-template-columns:56px 1fr auto;align-items:center;gap:12px;background:#fff;border:1px solid var(--border);border-radius:17px;padding:15px 18px}.ranking-row.top{border-width:2px}.ranking-row.top-1{background:#fff9d9;border-color:#e0b935}.ranking-position{font-weight:900;font-size:18px}.ranking-player strong,.ranking-player small,.ranking-points strong,.ranking-points small{display:block}.ranking-player strong{font-size:17px}.ranking-player small,.ranking-points small{color:var(--muted);font-size:11px;margin-top:2px}.ranking-points{text-align:right}.ranking-points strong{font-size:25px;color:var(--blue)}.ranking-play{width:100%}
@media(max-width:700px){.mode-intro,.room-lobby,.ranking-page{padding-top:4px}.mode-intro h1,.room-lobby h1,.ranking-page h1{font-size:49px}.mode-grid{grid-template-columns:1fr;gap:13px;margin-top:24px}.mode-card{min-height:190px;padding:20px}.mode-icon{position:absolute;right:22px;top:32px;margin:0;font-size:38px}.mode-card strong{font-size:26px;margin-top:32px}.mode-card small{max-width:75%}.lobby-head{display:block}.create-room{width:100%;margin:5px 0 10px}.active-room,.saved-room{align-items:flex-start;flex-wrap:wrap}.active-room .primary,.saved-room-actions{width:100%}.saved-room-actions .primary{flex:1}.ranking-row{grid-template-columns:44px 1fr auto;padding:14px 12px}.ranking-player strong{font-size:15px}}

/* ===== Multijugador Online (Celulares en simultáneo) ===== */
.online-section{margin-bottom:34px;background:#fff;border:1.5px solid var(--border);border-radius:24px;padding:26px;box-shadow:0 8px 30px rgba(24,44,67,.05)}
.online-section-head{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;margin-bottom:20px;flex-wrap:wrap}
.online-section-head h2{margin:0 0 6px;font-size:26px;letter-spacing:-.8px}
.online-section-head p{margin:0;font-size:14px;color:var(--muted)}
.online-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.online-card{background:var(--paper);border:1px solid var(--border);border-radius:18px;padding:20px;display:flex;flex-direction:column;gap:12px}
.online-card.create-online{background:linear-gradient(135deg,#eef4ff 0%,#dbeafe 100%);border-color:#93c5fd}
.online-card h3{margin:0;font-size:18px;display:flex;align-items:center;gap:8px}
.online-card p{margin:0;font-size:13px;color:var(--ink);line-height:1.5}
.online-card .primary,.online-card .secondary{margin-top:auto}
.online-join-form{display:grid;gap:10px;margin-top:auto}
.online-join-input{text-transform:uppercase;font-weight:900;letter-spacing:2px;text-align:center;font-size:18px;min-height:48px;border-radius:12px;border:1.5px solid var(--border);background:#fff;padding:10px}
.online-code-banner{background:linear-gradient(135deg,#182c43 0%,#091727 100%);color:#fff;border-radius:24px;padding:28px 24px;margin:20px 0 28px;text-align:center;box-shadow:0 12px 35px rgba(24,44,67,.25);position:relative;overflow:hidden}
.online-code-banner:after{content:'☀';position:absolute;font-size:140px;right:-20px;top:-40px;opacity:.08;color:var(--yellow);pointer-events:none}
.online-code-banner .code-label{display:block;font-size:11px;font-weight:900;letter-spacing:2px;text-transform:uppercase;color:var(--yellow);margin-bottom:8px}
.online-code-banner .code-value{font-size:clamp(42px,9vw,64px);font-weight:900;letter-spacing:6px;color:#fff;font-family:Club,monospace;margin:4px 0 12px;text-shadow:0 4px 15px rgba(0,0,0,.4)}
.online-code-banner .code-instructions{font-size:14px;color:#d7e9f9;max-width:440px;margin:0 auto 18px;line-height:1.5}
.online-code-actions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap}
.online-code-actions button{min-height:44px;font-size:13px;border-radius:12px}
.online-members-head{display:flex;justify-content:space-between;align-items:center;margin:24px 0 12px}
.online-members-head h3{margin:0;font-size:18px;color:var(--ink)}
.online-members-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:12px;margin-bottom:28px}
.online-member-card{background:#fff;border:1.5px solid var(--border);border-radius:18px;padding:14px 16px;display:flex;flex-direction:column;gap:4px;position:relative;box-shadow:0 2px 8px rgba(0,0,0,.03)}
.online-member-card.is-host{border-color:#fbbf24;background:#fffdf0}
.online-member-card.is-me{border-color:var(--blue);box-shadow:0 0 0 2px rgba(37,77,232,.15)}
.member-avatar{font-size:26px;line-height:1;margin-bottom:4px}
.online-member-card strong{font-size:15px;color:var(--ink);display:flex;align-items:center;gap:6px}
.online-member-card small{font-size:11px;color:var(--muted);font-weight:700}
.host-pill{position:absolute;top:12px;right:12px;background:#fef3c7;color:#92400e;font-size:9px;font-weight:900;letter-spacing:1px;padding:3px 7px;border-radius:6px;text-transform:uppercase}
.online-waiting-banner{display:flex;align-items:center;justify-content:center;gap:12px;background:#eef4ff;color:var(--blue);border:1.5px dashed #93c5fd;border-radius:18px;padding:18px;font-size:14px;font-weight:800;margin:20px 0}
.turn-alert-box{background:linear-gradient(135deg,#f0fdf4 0%,#dcfce7 100%);border:2.5px solid #22c55e;border-radius:24px;padding:30px 24px;margin:24px 0;text-align:center;box-shadow:0 12px 35px rgba(34,197,94,.18);animation:pulse-turn 2s infinite alternate}
@keyframes pulse-turn{0%{transform:scale(1)}100%{transform:scale(1.015)}}
.turn-alert-icon{font-size:52px;line-height:1;margin-bottom:10px}
.turn-alert-box h2{font-size:32px;letter-spacing:-1px;color:#14532d;margin:0 0 8px}
.turn-alert-box p{font-size:15px;color:#166534;max-width:440px;margin:0 auto 20px}
.turn-alert-box .primary{font-size:17px;padding:16px 36px;border-radius:14px;background:#16a34a;box-shadow:0 4px 0 #15803d}
.turn-alert-box .primary:hover{background:#15803d}
.turn-waiting-box{background:#fff;border:1.5px solid var(--border);border-radius:24px;padding:30px 24px;margin:24px 0;text-align:center;box-shadow:0 8px 30px rgba(0,0,0,.04)}
.turn-pulse-icon{font-size:46px;line-height:1;margin-bottom:12px}
.turn-waiting-box h2{font-size:26px;letter-spacing:-.8px;margin:0 0 8px}
.turn-waiting-box h2 em{color:var(--blue);font-style:normal;font-weight:900}
.turn-waiting-box p{font-size:14px;color:var(--muted);max-width:420px;margin:0 auto 16px}
.status-badge{display:inline-flex;align-items:center;gap:6px;padding:6px 14px;border-radius:20px;font-size:12px;font-weight:800}
.status-badge.done{background:#dcfce7;color:#15803d}
.status-badge.wait{background:#fef3c7;color:#92400e}
@media(max-width:700px){.online-grid{grid-template-columns:1fr}.online-section{padding:18px}.online-code-banner{padding:22px 16px}.online-code-banner .code-value{letter-spacing:3px}.turn-alert-box{padding:22px 16px}.turn-alert-box h2{font-size:26px}}

/* =========================================================
   ROSCO CLUB · NEON ARCADE TV STAGE (Mobile & Web Full Match)
   ========================================================= */

html:has(.neon-arcade-layout),
body:has(.neon-arcade-layout) {
  background: #060913 !important;
  color: #ffffff;
  overflow-x: hidden !important;
  max-width: 100vw;
}
body:has(.neon-arcade-layout) .masthead,
body:has(.neon-arcade-layout) footer {
  display: none !important;
}
body:has(.neon-arcade-layout) #app {
  padding: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  min-height: 100dvh;
}

.neon-arcade-layout {
  max-width: 440px;
  margin: 0 auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 0 10px max(10px, env(safe-area-inset-bottom));
  box-sizing: border-box;
  background: #060913;
  position: relative;
}

/* Header: rosco club. + EN VIVO pill */
.neon-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 8px 6px;
}
.brand-arcade {
  font-family: Club, "Trebuchet MS", sans-serif;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -1.2px;
  line-height: 1;
}
.brand-arcade-rosco {
  color: #ffffff;
}
.brand-arcade-club {
  color: #00d2ff;
  margin-left: 2px;
}
.brand-arcade-dot {
  color: #ffd028;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(18, 25, 46, 0.9);
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  padding: 5px 14px;
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}
.live-pill-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff2a4b;
  box-shadow: 0 0 8px #ff2a4b, 0 0 16px #ff2a4b;
  animation: pulse-live 2s infinite;
}
@keyframes pulse-live {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.65; transform: scale(0.88); }
}
.live-pill-text {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: #f8fafc;
}

/* Subheader: Player card + Glowing Cyan Timer */
.player-timer-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 4px 0 8px;
}
.player-card,
.timer-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(10, 18, 38, 0.9);
  border: 1.5px solid rgba(0, 180, 255, 0.35);
  border-radius: 16px;
  padding: 8px 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.1);
  min-height: 48px;
  box-sizing: border-box;
}
.player-avatar-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid #00d2ff;
  display: grid;
  place-items: center;
  color: #00d2ff;
  background: rgba(0, 210, 255, 0.12);
  flex-shrink: 0;
}
.player-name {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player-card .room-pill {
  font-size: 10px;
  padding: 2px 7px;
  margin-left: auto;
}

.timer-card {
  justify-content: flex-start;
}
.timer-icon-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid #00e5ff;
  display: grid;
  place-items: center;
  color: #00e5ff;
  background: rgba(0, 229, 255, 0.1);
  flex-shrink: 0;
}
.neon-arcade-layout .timer {
  font-family: Club, "Trebuchet MS", sans-serif;
  font-size: 26px;
  font-weight: 900;
  color: #00f0ff;
  letter-spacing: 1px;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 14px rgba(0, 240, 255, 0.7);
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
}
.neon-arcade-layout .timer.urgent {
  color: #ff3355 !important;
  text-shadow: 0 0 18px rgba(255, 51, 85, 0.85) !important;
}

/* Score Pills Row (Green, Red, Purple) */
.scores-pill-group {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}
.score-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 14px;
  background: rgba(10, 16, 32, 0.85);
  backdrop-filter: blur(8px);
}
.score-pill.pill-green {
  border: 2px solid #00e676;
  box-shadow: 0 0 12px rgba(0, 230, 118, 0.3), inset 0 0 8px rgba(0, 230, 118, 0.15);
}
.score-pill.pill-green .pill-icon {
  color: #00e676;
  font-weight: 900;
  font-size: 15px;
}
.score-pill.pill-red {
  border: 2px solid #ff1744;
  box-shadow: 0 0 12px rgba(255, 23, 68, 0.3), inset 0 0 8px rgba(255, 23, 68, 0.15);
}
.score-pill.pill-red .pill-icon {
  color: #ff1744;
  font-weight: 900;
  font-size: 15px;
}
.score-pill.pill-purple {
  border: 2px solid #a855f7;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.3), inset 0 0 8px rgba(168, 85, 247, 0.15);
}
.score-pill.pill-purple .pill-icon {
  color: #a855f7;
  font-weight: 900;
  font-size: 15px;
}
.pill-num {
  color: #ffffff;
  font-weight: 900;
  font-size: 18px;
  line-height: 1;
}

/* Rosco Perimeter Squircle Arena */
.rosco-perimeter-arena {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  grid-template-rows: repeat(9, minmax(0, 1fr));
  gap: clamp(2px, 0.7vw, 4px);
  width: 100%;
  margin: 0 auto;
  position: relative;
  padding: 4px;
  box-sizing: border-box;
  aspect-ratio: 7 / 9;
  background: radial-gradient(circle at 50% 50%, rgba(14, 25, 52, 0.75) 0%, rgba(6, 10, 22, 0.98) 100%);
  border: 2px solid rgba(0, 180, 255, 0.3);
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), inset 0 0 40px rgba(0, 140, 255, 0.08);
}

.letter-tile {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(10, 18, 36, 0.92);
  border: 2px solid var(--tile-border, #38bdf8);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.5), inset 0 1px 2px rgba(255, 255, 255, 0.2);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  user-select: none;
}
.tile-letter {
  font-family: Club, "Trebuchet MS", sans-serif;
  font-size: clamp(10px, 2.6vw, 13px);
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
}

/* Active Tile with Golden Sunburst Rays */
.letter-tile.current {
  background: radial-gradient(circle at 40% 35%, #fff176 0%, #ffd028 65%, #f59e0b 100%) !important;
  border-color: #ffffff !important;
  box-shadow: 0 0 22px rgba(255, 208, 40, 0.95), 0 0 45px rgba(255, 208, 40, 0.5), inset 0 2px 4px rgba(255, 255, 255, 0.8) !important;
  transform: scale(1.12);
  z-index: 5;
}
.letter-tile.current .tile-letter {
  color: #0c1427 !important;
  font-weight: 900;
}
.active-rays {
  position: absolute;
  bottom: calc(100% + 3px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: flex-end;
  gap: 3px;
  pointer-events: none;
}
.active-rays i {
  display: block;
  width: 2.5px;
  background: #ffd028;
  border-radius: 2px;
  box-shadow: 0 0 6px #ffd028;
}
.active-rays i:nth-child(1) { height: 6px; transform: rotate(-25deg); }
.active-rays i:nth-child(2) { height: 9px; }
.active-rays i:nth-child(3) { height: 6px; transform: rotate(25deg); }

/* Tile States */
.letter-tile.correct {
  background: #00c853 !important;
  border-color: #69f0ae !important;
  box-shadow: 0 0 14px rgba(0, 200, 83, 0.7) !important;
}
.letter-tile.correct .tile-letter { color: #ffffff !important; }
.letter-tile.wrong {
  background: #d50000 !important;
  border-color: #ff5252 !important;
  box-shadow: 0 0 14px rgba(213, 0, 0, 0.7) !important;
}
.letter-tile.wrong .tile-letter { color: #ffffff !important; }
.letter-tile.passed {
  border-color: #ffd028 !important;
  background: rgba(255, 208, 40, 0.18) !important;
  box-shadow: 0 0 10px rgba(255, 208, 40, 0.45) !important;
}

/* Interior Arena Center: Radar, Watermark, Video & Slogans */
.rosco-arena-center {
  grid-column: 2 / 7;
  grid-row: 2 / 9;
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 16px;
  background: #02040a;
}
.camera-frame-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  overflow: hidden;
  border: 1.5px solid rgba(0, 229, 255, 0.4);
  box-shadow: inset 0 0 24px rgba(0, 229, 255, 0.14), 0 0 16px rgba(0, 229, 255, 0.12);
  background: rgba(6, 12, 24, 0.72);
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.camera-frame-wrapper #camera {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
  opacity: 0.95;
}
.viewfinder-corner {
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: #00e5ff;
  border-style: solid;
  pointer-events: none;
  z-index: 2;
  opacity: 0.85;
}
.viewfinder-corner.tl { top: 6px; left: 6px; border-width: 2px 0 0 2px; }
.viewfinder-corner.tr { top: 6px; right: 6px; border-width: 2px 2px 0 0; }
.viewfinder-corner.bl { bottom: 6px; left: 6px; border-width: 0 0 2px 2px; }
.viewfinder-corner.br { bottom: 6px; right: 6px; border-width: 0 2px 2px 0; }
.radar-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0, 180, 255, 0.18);
  pointer-events: none;
  z-index: 1;
}
.radar-circle-1 { width: 120px; height: 120px; }
.radar-circle-2 { width: 180px; height: 180px; }
.radar-circle-3 { width: 240px; height: 240px; }

.arena-watermark-letter {
  position: absolute;
  font-family: Club, "Trebuchet MS", sans-serif;
  font-size: 110px;
  font-weight: 900;
  color: rgba(0, 180, 255, 0.12);
  user-select: none;
  pointer-events: none;
  line-height: 1;
}

.arena-slogan {
  position: absolute;
  display: flex;
  flex-direction: column;
  font-size: 8px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.8px;
  color: rgba(148, 163, 184, 0.65);
  text-transform: uppercase;
  pointer-events: none;
}
.slogan-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: #00d2ff;
  border-radius: 2px;
  margin-top: 3px;
  box-shadow: 0 0 6px #00d2ff;
}
.slogan-tl { top: 8px; left: 10px; text-align: left; }
.slogan-tr { top: 8px; right: 10px; text-align: right; align-items: flex-end; }
.slogan-bl { bottom: 8px; left: 10px; text-align: left; }
.slogan-br { bottom: 8px; right: 10px; text-align: right; align-items: flex-end; }

.rosco-arena-center video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
  opacity: 0.65;
  border-radius: 18px;
}

/* Clue Card */
.question-card-neon {
  position: relative;
  background: rgba(8, 15, 32, 0.95);
  border: 1.5px solid rgba(0, 180, 255, 0.25);
  border-radius: 20px;
  padding: 14px 18px;
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), inset 0 1px 2px rgba(255, 255, 255, 0.08);
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
}
.neon-card-main {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  width: 100%;
}
.neon-arcade-layout .answer-reveal {
  width: 100%;
  margin: 0 0 10px !important;
  box-sizing: border-box;
}
.neon-card-accent {
  width: 5px;
  align-self: stretch;
  border-radius: 999px;
  background: linear-gradient(180deg, #00f0ff 0%, #d946ef 100%);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.7);
  flex-shrink: 0;
}
.neon-card-content {
  flex: 1;
  min-width: 0;
  z-index: 1;
}
.question-card-neon .question-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.question-card-neon .question-tag {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1px;
  color: #00f0ff;
  text-transform: uppercase;
}
.read-voice-btn {
  background: none;
  border: 0;
  color: rgba(0, 240, 255, 0.75);
  padding: 2px;
  cursor: pointer;
  border-radius: 4px;
  display: flex;
  align-items: center;
}
.read-voice-btn:hover {
  color: #00f0ff;
}
.question-card-neon .clue {
  font-size: clamp(15px, 3.8vw, 18px);
  font-weight: 700;
  line-height: 1.35;
  color: #f8fafc;
  margin: 4px 0 6px;
  letter-spacing: -0.3px;
  min-height: 0;
}
.question-card-neon .feedback {
  min-height: 0;
  margin: 4px 0 0;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
}
.neon-card-watermark {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #00d2ff;
  pointer-events: none;
  z-index: 0;
}

/* Animated Conductor Bar */
.neon-conductor-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(8, 14, 28, 0.9);
  border: 1px solid rgba(0, 240, 255, 0.18);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}
.conductor-wave-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 230, 118, 0.15);
  border: 1.5px solid #00e676;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(0, 230, 118, 0.35);
}
.conductor-wave-bars {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 12px;
}
.conductor-wave-bars i {
  width: 2px;
  border-radius: 2px;
  background: #00e676;
  animation: wave-bounce 1.2s ease-in-out infinite alternate;
}
.conductor-wave-bars i:nth-child(1) { height: 5px; animation-delay: 0s; }
.conductor-wave-bars i:nth-child(2) { height: 12px; animation-delay: 0.2s; }
.conductor-wave-bars i:nth-child(3) { height: 9px; animation-delay: 0.4s; }
.conductor-wave-bars i:nth-child(4) { height: 6px; animation-delay: 0.1s; }
@keyframes wave-bounce {
  0% { transform: scaleY(0.4); }
  100% { transform: scaleY(1.1); }
}

.neon-conductor-bar #voice-status {
  font-size: 11.5px;
  font-weight: 700;
  color: #94a3b8;
  margin: 0;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.conductor-spectrum {
  display: flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 12px;
  flex-shrink: 0;
  opacity: 0.6;
}
.conductor-spectrum i {
  width: 2.5px;
  background: #00d2ff;
  border-radius: 2px;
}
.conductor-spectrum i:nth-child(1) { height: 5px; }
.conductor-spectrum i:nth-child(2) { height: 11px; }
.conductor-spectrum i:nth-child(3) { height: 7px; }
.conductor-spectrum i:nth-child(4) { height: 12px; }

/* 3D Arcade Dock */
.neon-arcade-dock {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 2px 0 6px;
}
.neon-tools {
  display: grid;
  grid-template-columns: 1fr 1.35fr 1fr;
  gap: 8px;
  width: 100%;
  align-items: stretch;
}

.btn-arcade {
  border-radius: 16px;
  border: none;
  font-family: Club, "Trebuchet MS", sans-serif;
  cursor: pointer;
  user-select: none;
  touch-action: none;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform 0.08s ease, box-shadow 0.08s ease, filter 0.12s ease;
  min-height: 56px;
  padding: 6px 10px;
  box-sizing: border-box;
}
.btn-arcade:active {
  transform: translateY(3px) !important;
}

/* Left Blue Button: Escribir */
.btn-arcade-blue {
  background: linear-gradient(180deg, #0284c7 0%, #0369a1 60%, #075985 100%);
  border: 2px solid #38bdf8;
  box-shadow: 0 5px 0 #082f49, 0 8px 18px rgba(2, 132, 199, 0.45), inset 0 2px 4px rgba(255, 255, 255, 0.45), inset 0 -2px 4px rgba(0, 0, 0, 0.3);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 900;
  letter-spacing: 0.8px;
}
.btn-arcade-blue:active {
  box-shadow: 0 2px 0 #082f49, 0 4px 10px rgba(2, 132, 199, 0.6), inset 0 2px 4px rgba(255, 255, 255, 0.45);
}

/* Center Green Button: Hablar */
.btn-arcade-green {
  background: linear-gradient(180deg, #10b981 0%, #059669 60%, #047857 100%);
  border: 2.5px solid #34d399;
  box-shadow: 0 5px 0 #064e3b, 0 10px 22px rgba(16, 185, 129, 0.5), inset 0 2.5px 5px rgba(255, 255, 255, 0.55), inset 0 -3px 5px rgba(0, 0, 0, 0.3);
  color: #ffffff;
}
.btn-arcade-green:active {
  box-shadow: 0 2px 0 #064e3b, 0 4px 12px rgba(16, 185, 129, 0.6), inset 0 2px 4px rgba(255, 255, 255, 0.5);
}
.btn-arcade-green .btn-mic-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.btn-arcade-green .btn-text-block {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.1;
}
.btn-arcade-green .btn-subtext {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.6px;
  opacity: 0.92;
}
.btn-arcade-green .btn-maintext {
  font-size: 13.5px;
  font-weight: 900;
  letter-spacing: 0.5px;
}

/* Listening state */
.btn-arcade-green.listening {
  background: linear-gradient(180deg, #ef4444 0%, #dc2626 60%, #991b1b 100%) !important;
  border-color: #fca5a5 !important;
  box-shadow: 0 3px 0 #7f1d1d, 0 0 25px rgba(239, 68, 68, 0.8), inset 0 2px 4px rgba(255, 255, 255, 0.6) !important;
  transform: translateY(2px);
}
.rec-dot {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 10px #ffffff;
  animation: pulse-live 1s infinite;
}

/* Right Gold Button: Pasapalabra */
.btn-arcade-gold {
  background: linear-gradient(180deg, #fbbf24 0%, #f59e0b 60%, #d97706 100%);
  border: 2px solid #fde047;
  box-shadow: 0 5px 0 #78350f, 0 8px 18px rgba(245, 158, 11, 0.45), inset 0 2px 4px rgba(255, 255, 255, 0.55), inset 0 -2px 4px rgba(0, 0, 0, 0.25);
  color: #0f172a;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.4px;
}
.btn-arcade-gold:active {
  box-shadow: 0 2px 0 #78350f, 0 4px 10px rgba(245, 158, 11, 0.6), inset 0 2px 4px rgba(255, 255, 255, 0.55);
}
.btn-skip-sub { font-size: 13px; margin-left: 2px; font-weight: 900; }

/* Exit Link */
.neon-arcade-layout #finish.btn-neon-exit {
  background: none !important;
  border: none !important;
  color: #64748b !important;
  font-family: Club, "Trebuchet MS", sans-serif !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  padding: 4px 12px !important;
  margin: 2px auto 0 !important;
  cursor: pointer !important;
  position: static !important;
  transition: color 0.15s ease, text-shadow 0.15s ease;
  min-height: 0 !important;
}
.neon-arcade-layout #finish.btn-neon-exit:hover,
.neon-arcade-layout #finish.btn-neon-exit:active {
  color: #f43f5e !important;
  text-shadow: 0 0 10px rgba(244, 63, 94, 0.6) !important;
}

/* Slide-up Answer Drawer */
.answer-sheet {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(6, 11, 24, 0.98);
  border-top: 2px solid rgba(0, 180, 255, 0.35);
  border-radius: 26px 26px 0 0;
  padding: 14px 18px max(18px, env(safe-area-inset-bottom));
  box-shadow: 0 -15px 40px rgba(0, 0, 0, 0.7);
  z-index: 100;
  box-sizing: border-box;
}
.neon-arcade-layout.keyboard-open .answer-sheet,
.camera-layout.keyboard-open .answer-sheet {
  display: block;
}
.sheet-handle {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0 0 12px;
  cursor: pointer;
}
.sheet-handle span {
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.3);
}
.sheet-handle i {
  margin-left: auto;
  font-style: normal;
  color: #00d2ff;
}
.answer-submit-btn {
  width: 100%;
  margin-top: 8px;
}

/* Hide elements when in .camera-layout */
.camera-layout .neon-top-bar,
.camera-layout .player-timer-bar,
.camera-layout .scores-pill-group,
.camera-layout .rosco-perimeter-arena,
.camera-layout .neon-conductor-bar {
  display: none !important;
}

/* Ronda: una mesa fija. El rosco ocupa el borde y los avisos flotan sobre él. */
.quick-options{margin:18px 0 22px;padding:16px;border:1px solid var(--border);border-radius:18px;background:#fff}
.quick-options .topics{margin:7px 0 15px}.quick-options .topics:last-child{margin-bottom:0}.quick-label{font-size:10px;font-weight:900;letter-spacing:1.4px;color:var(--muted)}
html:has(.neon-arcade-layout),
body:has(.neon-arcade-layout) {
  height: 100%;
  overflow: hidden !important;
}

.voice-preloader {
  min-height: 70dvh;
  display: grid;
  place-content: center;
  text-align: center;
}
.loading-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}
.loading-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue);
  animation: voice-ready 0.9s infinite alternate;
}
.loading-dots i:nth-child(2) { animation-delay: 0.18s; }
.loading-dots i:nth-child(3) { animation-delay: 0.36s; }
@keyframes voice-ready {
  to { transform: translateY(-9px); background: var(--yellow); }
}

/* =========================================================
   ROSCO CLUB · TV ARCADE STAGE (2026 Optimized Layout)
   - Top: Header with player & score pills & timer
   - Center: 7x9 Rosco arena with closed bottom & portrait camera
   - Bottom: Deck with Cuadrado Naranja (Question + Reveal) on left
             and Stacked buttons (Hablar green + Pasapalabra yellow) on right
   ========================================================= */

.neon-arcade-layout {
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  max-width: 460px !important;
  margin: 0 auto !important;
  height: 100dvh !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  padding: max(4px, env(safe-area-inset-top)) 8px max(8px, env(safe-area-inset-bottom)) 8px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  background: #060913 !important;
  z-index: 1;
}

/* Header */
.neon-arcade-layout .neon-top-bar {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100% !important;
  min-height: 38px !important;
  height: 38px !important;
  padding: 0 4px !important;
  box-sizing: border-box !important;
  flex-shrink: 0 !important;
  z-index: 10 !important;
}
.neon-arcade-layout .brand-arcade {
  font-family: Club, "Trebuchet MS", sans-serif;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1;
  flex-shrink: 0;
}
.top-bar-center {
  display: flex;
  align-items: center;
  gap: 8px;
}
.player-pill {
  display: flex;
  align-items: center;
  gap: 4px;
}
.neon-arcade-layout .player-name {
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
  max-width: 90px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.neon-arcade-layout .scores-pill-group {
  display: flex !important;
  position: static !important;
  transform: none !important;
  width: auto !important;
  margin: 0 !important;
  gap: 4px !important;
}
.neon-arcade-layout .score-pill {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  border-radius: 8px;
  background: rgba(10, 18, 36, 0.85);
}
.neon-arcade-layout .score-pill.pill-green {
  border: 1.5px solid #00e676;
  box-shadow: 0 0 8px rgba(0, 230, 118, 0.25);
}
.neon-arcade-layout .score-pill.pill-red {
  border: 1.5px solid #ff1744;
  box-shadow: 0 0 8px rgba(255, 23, 68, 0.25);
}
.neon-arcade-layout .score-pill.pill-purple {
  border: 1.5px solid #a855f7;
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.25);
}
.neon-arcade-layout .pill-num {
  font-size: 13px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}
.top-bar-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.neon-arcade-layout .timer {
  font-family: Club, monospace;
  font-size: 18px;
  font-weight: 900;
  color: #00f0ff;
  letter-spacing: 0.5px;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.6);
}
.neon-arcade-layout #finish.btn-neon-exit {
  background: rgba(239, 68, 68, 0.15) !important;
  border: 1px solid rgba(239, 68, 68, 0.4) !important;
  color: #fca5a5 !important;
  border-radius: 8px !important;
  font-size: 10px !important;
  font-weight: 900 !important;
  letter-spacing: 0.6px !important;
  padding: 4px 8px !important;
  cursor: pointer !important;
  position: static !important;
  min-height: 0 !important;
  height: auto !important;
  width: auto !important;
  margin: 0 !important;
}

/* Center Rosco Arena (7 cols x 9 rows) */
.neon-arcade-layout .rosco-perimeter-arena {
  position: relative !important;
  inset: auto !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  width: 100% !important;
  max-width: 440px !important;
  margin: 2px auto !important;
  padding: 4px !important;
  box-sizing: border-box !important;
  display: grid !important;
  grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
  grid-template-rows: repeat(9, minmax(0, 1fr)) !important;
  gap: clamp(2px, 0.7vw, 4px) !important;
  aspect-ratio: 7 / 9 !important;
  border-radius: 22px !important;
  background: radial-gradient(circle at 50% 50%, rgba(14, 25, 52, 0.7) 0%, rgba(6, 10, 22, 0.96) 100%) !important;
  border: 2px solid rgba(0, 180, 255, 0.3) !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5) !important;
}

.neon-arcade-layout .letter-tile {
  border-radius: 7px !important;
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 1 !important;
  max-height: none !important;
  min-width: 0 !important;
  min-height: 0 !important;
  display: grid !important;
  place-items: center !important;
  position: relative !important;
  background: rgba(10, 18, 36, 0.94) !important;
  border: 2px solid var(--tile-border, #38bdf8) !important;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.5) !important;
}
.neon-arcade-layout .tile-letter {
  font-family: Club, "Trebuchet MS", sans-serif !important;
  font-size: clamp(9px, 2.3vw, 13px) !important;
  font-weight: 900 !important;
  color: #ffffff !important;
  line-height: 1 !important;
}

.neon-arcade-layout .letter-tile.current {
  background: radial-gradient(circle at 40% 35%, #fff176 0%, #ffd028 65%, #f59e0b 100%) !important;
  border-color: #ffffff !important;
  box-shadow: 0 0 16px rgba(255, 208, 40, 0.95), inset 0 1px 3px #fff !important;
  transform: scale(1.08) !important;
  z-index: 5 !important;
}
.neon-arcade-layout .letter-tile.current .tile-letter {
  color: #0c1427 !important;
}
.neon-arcade-layout .letter-tile.correct {
  background: #00c853 !important;
  border-color: #69f0ae !important;
  box-shadow: 0 0 10px rgba(0, 200, 83, 0.7) !important;
}
.neon-arcade-layout .letter-tile.wrong {
  background: #d50000 !important;
  border-color: #ff5252 !important;
  box-shadow: 0 0 10px rgba(213, 0, 0, 0.7) !important;
}
.neon-arcade-layout .letter-tile.passed {
  border-color: #ffd028 !important;
  background: rgba(255, 208, 40, 0.18) !important;
  box-shadow: 0 0 8px rgba(255, 208, 40, 0.45) !important;
}

/* Argentine Sun Tile at Top Center (Col 4, Row 1) */
.neon-arcade-layout .letter-tile.sun-tile {
  grid-column: 4;
  grid-row: 1;
  background: radial-gradient(circle at 50% 50%, #fff176 0%, #ffd028 70%, #d97706 100%) !important;
  border-color: #fde047 !important;
  box-shadow: 0 0 12px rgba(255, 208, 40, 0.65), inset 0 1px 2px rgba(255, 255, 255, 0.8) !important;
}
.tile-sun-icon {
  font-size: clamp(11px, 2.7vw, 15px);
  color: #78350f;
  font-weight: 900;
  line-height: 1;
}

/* Center Camera Viewfinder (Cols 2-6, Rows 2-8: 5x7 cell vertical ratio) */
.neon-arcade-layout .rosco-arena-center {
  position: relative !important;
  grid-column: 2 / 7 !important;
  grid-row: 2 / 9 !important;
  width: 100% !important;
  height: 100% !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  background: #02040a !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
  min-height: 0 !important;
}
.neon-arcade-layout .camera-frame-wrapper {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  border: 1.5px solid rgba(0, 229, 255, 0.35) !important;
  box-shadow: inset 0 0 24px rgba(0, 229, 255, 0.12) !important;
  background: #02040a !important;
}
.neon-arcade-layout .camera-frame-wrapper #camera {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transform: scaleX(-1) !important;
  filter: none !important;
  opacity: 0.94 !important;
}
.neon-arcade-layout .arena-watermark-letter {
  position: absolute !important;
  font-family: Club, "Trebuchet MS", sans-serif !important;
  font-size: clamp(55px, 14vw, 95px) !important;
  font-weight: 900 !important;
  color: rgba(0, 229, 255, 0.14) !important;
  line-height: 1 !important;
  pointer-events: none !important;
  z-index: 1 !important;
}

/* =========================================================
   BOTTOM GAME CONTROL DECK (Matches User Sketch)
   - Left: Cuadrado Naranja (Question Card + Interactive Reveal Badge)
   - Right: Stacked Buttons (Cuadrado Verde Hablar + Cuadrado Amarillo Pasapalabra)
   ========================================================= */

.game-control-deck {
  display: grid !important;
  grid-template-columns: minmax(0, 1.4fr) minmax(115px, 1fr) !important;
  gap: 8px !important;
  width: 100% !important;
  max-width: 440px !important;
  margin: 2px auto 0 !important;
  flex-shrink: 0 !important;
  min-height: 122px !important;
  max-height: 140px !important;
  box-sizing: border-box !important;
  align-items: stretch !important;
}

/* Cuadrado Naranja: Question Card with interactive reveal */
.neon-arcade-layout .question-card.question-card-neon {
  position: relative !important;
  inset: auto !important;
  transform: none !important;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 8px 10px !important;
  border-radius: 16px !important;
  background: rgba(7, 12, 26, 0.95) !important;
  border: 2px solid #f97316 !important;
  box-shadow: 0 0 16px rgba(249, 115, 22, 0.28), inset 0 1px 2px rgba(255, 255, 255, 0.1) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  backdrop-filter: blur(8px) !important;
}

.question-card-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: 2px !important;
}
.neon-arcade-layout .question-card .question-tag {
  font-size: 9.5px !important;
  font-weight: 900 !important;
  letter-spacing: 0.8px !important;
  color: #fb923c !important;
  text-transform: uppercase !important;
}
.question-header-tools {
  display: flex !important;
  gap: 5px !important;
  align-items: center !important;
}
.btn-read-compact,
.btn-keyboard-compact {
  width: 26px !important;
  height: 26px !important;
  min-width: 26px !important;
  min-height: 26px !important;
  border-radius: 7px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #38bdf8 !important;
  display: grid !important;
  place-items: center !important;
  cursor: pointer !important;
  padding: 0 !important;
  transition: background 0.1s ease, border-color 0.1s ease !important;
}
.btn-read-compact:active,
.btn-keyboard-compact:active {
  background: rgba(56, 189, 248, 0.2) !important;
  border-color: #38bdf8 !important;
}

/* Interactive Reveal Badge: prominent feedback inside question card */
.feedback-reveal-badge {
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
  padding: 3px 7px !important;
  border-radius: 8px !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  min-height: 24px !important;
  box-sizing: border-box !important;
  width: 100% !important;
  margin: 2px 0 !important;
  overflow: hidden !important;
}
.feedback-reveal-badge .badge-icon {
  font-size: 11px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  flex-shrink: 0 !important;
}
.feedback-reveal-badge .badge-status {
  font-size: 9.5px !important;
  font-weight: 900 !important;
  letter-spacing: 0.5px !important;
  line-height: 1 !important;
  flex-shrink: 0 !important;
}
.feedback-reveal-badge .badge-word {
  font-size: 12px !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.6px !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.feedback-reveal-badge.correct {
  background: rgba(16, 185, 129, 0.25) !important;
  border: 1.5px solid #10b981 !important;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.4) !important;
}
.feedback-reveal-badge.correct .badge-icon { color: #34d399 !important; }
.feedback-reveal-badge.correct .badge-status { color: #6ee7b7 !important; }
.feedback-reveal-badge.correct .badge-word { color: #ffffff !important; text-shadow: 0 0 8px rgba(52, 211, 153, 0.8) !important; }

.feedback-reveal-badge.wrong {
  background: rgba(239, 68, 68, 0.25) !important;
  border: 1.5px solid #ef4444 !important;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.4) !important;
}
.feedback-reveal-badge.wrong .badge-icon { color: #f87171 !important; }
.feedback-reveal-badge.wrong .badge-status { color: #fca5a5 !important; }
.feedback-reveal-badge.wrong .badge-word { color: #ffffff !important; text-shadow: 0 0 8px rgba(248, 113, 113, 0.8) !important; }

.feedback-reveal-badge.passed {
  background: rgba(245, 158, 11, 0.22) !important;
  border: 1.5px solid #f59e0b !important;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.35) !important;
}
.feedback-reveal-badge.passed .badge-icon { color: #fbbf24 !important; }
.feedback-reveal-badge.passed .badge-status { color: #fde68a !important; }

.feedback-reveal-badge.neutral {
  background: rgba(14, 165, 233, 0.12) !important;
  border: 1px solid rgba(14, 165, 233, 0.28) !important;
}
.feedback-reveal-badge.neutral .badge-icon { color: #38bdf8 !important; font-size: 7px !important; }
.feedback-reveal-badge.neutral .badge-status { color: #94a3b8 !important; font-size: 9.5px !important; font-weight: 700 !important; }

.neon-arcade-layout .question-card .clue {
  font-size: clamp(11.5px, 2.5vw, 13.5px) !important;
  line-height: 1.22 !important;
  color: #f8fafc !important;
  font-weight: 600 !important;
  margin: 2px 0 0 !important;
  min-height: 0 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* Columna Derecha: Stacked Action Buttons */
.action-buttons-column {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  justify-content: space-between !important;
  height: 100% !important;
}

/* Cuadrado Verde: HABLAR */
.neon-arcade-layout .action-buttons-column #speak.btn-arcade-green {
  flex: 1 1 50% !important;
  min-height: 54px !important;
  max-height: 64px !important;
  border-radius: 14px !important;
  background: linear-gradient(180deg, #10b981 0%, #059669 55%, #047857 100%) !important;
  border: 2.5px solid #34d399 !important;
  box-shadow: 0 4px 0 #064e3b, 0 6px 14px rgba(16, 185, 129, 0.4), inset 0 2px 3px rgba(255, 255, 255, 0.5) !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  cursor: pointer !important;
  user-select: none !important;
  touch-action: none !important;
  padding: 6px 8px !important;
  box-sizing: border-box !important;
  transition: transform 0.08s ease, box-shadow 0.08s ease !important;
}
.neon-arcade-layout .action-buttons-column #speak.btn-arcade-green:active {
  transform: translateY(2px) !important;
  box-shadow: 0 2px 0 #064e3b, 0 3px 8px rgba(16, 185, 129, 0.5) !important;
}
.neon-arcade-layout .action-buttons-column #speak.listening {
  background: linear-gradient(180deg, #ef4444 0%, #dc2626 55%, #991b1b 100%) !important;
  border-color: #fca5a5 !important;
  box-shadow: 0 2px 0 #7f1d1d, 0 0 20px rgba(239, 68, 68, 0.7) !important;
  transform: translateY(2px) !important;
}

/* Cuadrado Amarillo: PASAPALABRA */
.neon-arcade-layout .action-buttons-column #skip.btn-arcade-gold {
  flex: 1 1 50% !important;
  min-height: 54px !important;
  max-height: 64px !important;
  border-radius: 14px !important;
  background: linear-gradient(180deg, #fbbf24 0%, #f59e0b 55%, #d97706 100%) !important;
  border: 2px solid #fde047 !important;
  box-shadow: 0 4px 0 #78350f, 0 6px 14px rgba(245, 158, 11, 0.4), inset 0 2px 3px rgba(255, 255, 255, 0.5) !important;
  color: #0f172a !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  cursor: pointer !important;
  user-select: none !important;
  padding: 6px 8px !important;
  box-sizing: border-box !important;
  transition: transform 0.08s ease, box-shadow 0.08s ease !important;
}
.neon-arcade-layout .action-buttons-column #skip.btn-arcade-gold:active {
  transform: translateY(2px) !important;
  box-shadow: 0 2px 0 #78350f, 0 3px 8px rgba(245, 158, 11, 0.5) !important;
}
.btn-skip-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-skip-icon {
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
}

@media(min-width: 701px) {
  .neon-arcade-layout {
    max-width: 500px !important;
  }
}
@media(max-height: 560px) {
  .neon-arcade-layout .rosco-perimeter-arena {
    padding: 3px !important;
    gap: 2px !important;
  }
  .game-control-deck {
    min-height: 110px !important;
    max-height: 120px !important;
  }
  .neon-arcade-layout .action-buttons-column #speak.btn-arcade-green,
  .neon-arcade-layout .action-buttons-column #skip.btn-arcade-gold {
    min-height: 48px !important;
    max-height: 56px !important;
  }
}

/* Two rows keep score, clock and both actions inside narrow phone screens. */
.neon-arcade-layout .neon-top-bar {display:grid!important;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;height:auto!important;min-height:66px!important;gap:4px!important;}
.neon-top-bar .brand-arcade {grid-column:1;grid-row:1;}
.neon-top-bar .top-bar-right {grid-column:2;grid-row:1;gap:4px;}
.neon-top-bar .top-bar-center {grid-column:1 / -1;grid-row:2;justify-content:space-between;min-width:0;}
.neon-top-bar .player-pill {min-width:0;overflow:hidden;}
.neon-top-bar .room-pill {max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.neon-top-bar .brand-arcade {font-size:16px!important;}
.neon-top-bar #pause-game {font-size:10px;padding:5px 7px;min-height:30px;border-radius:8px;background:#17394a;color:#fff;border:1px solid #58c8ed;}
.pause-dialog {max-width:min(420px,90vw);padding:24px;border:1px solid #58c8ed;border-radius:18px;background:#101b2e;color:#fff;}
.pause-dialog::backdrop {background:#000b;}
.pause-dialog button {display:block;width:100%;margin-top:12px;}

.voice-progress {font-size:11px;margin:2px 0;color:#b7e5ff;}
.voice-progress:empty {display:none;}

/* La pista dispone de su propia fila: controles y avisos nunca ocupan su tarjeta. */
.neon-arcade-layout{display:grid!important;grid-template-rows:auto minmax(80px,1fr) auto!important;gap:6px!important;justify-content:stretch!important}
.neon-arcade-layout .rosco-perimeter-arena{height:100%!important;aspect-ratio:auto!important;max-width:none!important;margin:0!important}
.neon-arcade-layout .letter-tile{aspect-ratio:auto!important}
.neon-arcade-layout .game-control-deck{display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto auto auto!important;gap:5px!important;height:auto!important;min-height:0!important;max-height:none!important;flex:none!important;padding:0!important;margin:0!important;overflow:visible!important}
.neon-arcade-layout .game-control-deck .question-card{position:relative!important;inset:auto!important;transform:none!important;width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;padding:12px 14px!important;margin:0!important;overflow:visible!important;display:block!important}
.neon-arcade-layout .question-card-header{margin:0 0 5px!important;min-height:0!important}
.neon-arcade-layout .question-card .clue{font-size:16px!important;line-height:1.3!important;display:block!important;-webkit-line-clamp:unset!important;white-space:normal!important;overflow:visible!important;max-height:none!important;height:auto!important;margin:0!important;overflow-wrap:anywhere}
.neon-arcade-layout .action-buttons-column{display:grid!important;grid-template-columns:44px minmax(0,1fr) minmax(0,1fr)!important;gap:6px!important;height:auto!important;align-items:stretch!important}
.neon-arcade-layout .question-header-tools{flex-direction:column!important;justify-content:center!important;gap:3px!important}
.neon-arcade-layout .question-header-tools button{width:40px!important;height:28px!important}
.neon-arcade-layout .action-buttons-column #speak.btn-arcade-green,.neon-arcade-layout .action-buttons-column #skip.btn-arcade-gold{grid-area:auto!important;width:100%!important;height:60px!important;min-height:60px!important;max-height:60px!important;min-width:0!important;flex-direction:row!important}
.neon-arcade-layout .round-status{min-width:0;min-height:22px;display:flex;align-items:center;gap:6px}
.neon-arcade-layout .round-status .feedback-reveal-badge{width:auto!important;max-width:100%;flex-shrink:0;margin:0!important}
.neon-arcade-layout .round-status .feedback-reveal-badge.neutral{display:none!important}
.neon-arcade-layout .voice-progress{margin:0;line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.transcript-word{font-size:22px;color:#fff;overflow-wrap:anywhere}
@media(max-height:500px) and (min-width:600px){
 .neon-arcade-layout{max-width:100%!important;grid-template-columns:minmax(150px,1fr) minmax(280px,1.3fr)!important;grid-template-rows:auto minmax(0,1fr)!important}
 .neon-arcade-layout .neon-top-bar{grid-column:1 / -1}
 .neon-arcade-layout .game-control-deck{align-self:center}
 .neon-arcade-layout .question-card .clue{font-size:14px!important}
}
