/* NOWAYOUT · Sala 1 · El Traslado — misma identidad (negro, ámbar/latón, rojo de alerta) llevada a una cámara corporal. */
:root {
  --bg: #050607; --bg2: #0b0e12; --bg3: #11161c; --line: #222b35; --line2: #2f3a46;
  --fg: #ebe5d6; --dim: #98a1ab; --mute: #66707b; --amber: #f2a541; --amber2: #ffcf7a; --red: #e2463a; --ok: #63c58f; --phos: #8fe0c9;
  --paper: #e6dcc4; --ink: #1d1a15; --brass: #b8893e;
  --f-display: 'Big Shoulders Display', 'Arial Narrow', sans-serif; --f-body: 'Archivo', system-ui, sans-serif; --f-mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px); --safe-l: env(safe-area-inset-left, 0px); --safe-r: env(safe-area-inset-right, 0px);
  --ss: 128px;
  color-scheme: dark;
}
html[data-stick="s"] { --ss: 96px; }
* { box-sizing: border-box; }
html, body { -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; height: 100%; margin: 0; background: var(--bg); color: var(--fg); font-family: var(--f-body); overscroll-behavior: none; -webkit-font-smoothing: antialiased; }
body { overflow: hidden; touch-action: auto; }
input, textarea { -webkit-user-select: text; user-select: text; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
[hidden] { display: none !important; }
.screen { position: fixed; inset: 0; overflow: hidden; }
.eyebrow { font-family: var(--f-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.fine { font-size: 13px; color: var(--mute); line-height: 1.45; }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }

/* marca */
.wordmark { font-family: var(--f-display); font-weight: 900; font-size: 30px; letter-spacing: .04em; line-height: 1; }
.wordmark .o { display: inline-block; width: .74em; height: .74em; border: .14em solid currentColor; border-radius: 50%; position: relative; vertical-align: -.02em; margin: 0 .01em; }
.wordmark .o::after { content: ''; position: absolute; left: 50%; top: 30%; width: .16em; height: .32em; background: currentColor; transform: translateX(-50%); border-radius: .08em; }
.lockline { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; color: #ffb4ab; border: 1px solid #5a2620; background: #1c0c0a; padding: 6px 12px; border-radius: 999px; text-transform: uppercase; }
.lockline::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 12px var(--red); animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .2; } }

/* botones de latón (los de la Sala 0) */
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid #4b3f26; background: linear-gradient(180deg, rgba(31, 37, 45, .94), rgba(13, 17, 22, .94)); box-shadow: inset 0 1px 0 rgba(255, 233, 190, .07), 0 6px 18px rgba(0, 0, 0, .35); font-weight: 600; letter-spacing: .02em; transition: background .2s, border-color .2s, box-shadow .25s, transform .1s; touch-action: manipulation; }
.btn:hover { border-color: #a07a35; }
.btn:active { transform: scale(.98); }
.btn.primary { color: #1b1203; border-color: #ffcf7a; background: radial-gradient(120% 140% at 50% 0%, #ffd58a 0%, #f6b04c 45%, #d98a2b 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -2px 6px rgba(120, 60, 0, .35), 0 0 22px rgba(242, 165, 65, .35), 0 8px 26px rgba(0, 0, 0, .45); }
.btn.primary::after { content: ''; position: absolute; top: -20%; bottom: -20%; width: 38%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .65), transparent); transform: skewX(-18deg); animation: lampSweep 15s linear infinite; pointer-events: none; }
@keyframes lampSweep { 0% { left: -60%; } 2% { left: 130%; } 2.01%, 100% { left: 130%; } }
.btn.ghost { background: rgba(6, 8, 11, .35); border-color: #3a3222; box-shadow: none; }
.btn.danger { border-color: #8a2a20; color: #ffd9d4; background: linear-gradient(180deg, rgba(60, 16, 12, .9), rgba(28, 8, 6, .9)); }
.btn.small { min-height: 38px; padding: 0 14px; font-size: 14px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 16px; }
.chip { font-family: var(--f-mono); font-size: 12px; padding: 5px 10px; border: 1px solid var(--line2); border-radius: 999px; color: var(--dim); white-space: nowrap; }
.chip.amber { color: var(--amber); border-color: #5b4219; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.cta .btn { flex: 1 1 200px; }
.check { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; color: var(--dim); }
.check input { accent-color: var(--amber); width: 18px; height: 18px; }
.sel { display: grid; gap: 4px; font-size: 13px; color: var(--dim); }
.sel select, .sel input { background: var(--bg3); border: 1px solid var(--line2); border-radius: 10px; padding: 8px; color: var(--fg); }

/* ---------------------------------------------------------------- EMBARQUE */
#lobby { background: radial-gradient(120% 80% at 70% 0%, #14202a 0%, var(--bg) 60%); overflow-y: auto; }
#lobby canvas.bg { position: fixed; inset: 0; width: 100%; height: 100%; opacity: .55; }
.lobby-wrap { position: relative; max-width: 980px; margin: 0 auto; padding: calc(var(--safe-t) + 18px) 16px calc(var(--safe-b) + 28px); display: grid; gap: 18px; }
.brand { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.ticket { display: grid; grid-template-columns: 1fr 210px; border-radius: 18px; overflow: hidden; background: linear-gradient(180deg, #121820, #0b0f14); border: 1px solid #2c2416; box-shadow: 0 30px 80px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 220, 160, .06); }
.tk-main { padding: 22px 22px 18px; }
.tk-main h1 { font-family: var(--f-display); font-weight: 900; font-size: clamp(44px, 9vw, 86px); line-height: .9; margin: 6px 0 10px; letter-spacing: .01em; text-transform: uppercase; }
.lead { color: #cfc8b8; line-height: 1.55; font-size: 16px; max-width: 60ch; }
.tk-stub { position: relative; padding: 22px 18px; border-left: 2px dashed #3a3020; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .012) 0 2px, transparent 2px 4px); font-family: var(--f-mono); display: grid; align-content: start; gap: 12px; }
.tk-stub::before, .tk-stub::after { content: ''; position: absolute; left: -12px; width: 22px; height: 22px; border-radius: 50%; background: var(--bg); }
.tk-stub::before { top: -11px; } .tk-stub::after { bottom: -11px; }
.stub-row { display: grid; gap: 2px; } .stub-row b { font-size: 10px; letter-spacing: .18em; color: var(--mute); } .stub-row span { font-size: 18px; color: var(--amber2); }
.barcode { height: 64px; margin-top: 10px; background: repeating-linear-gradient(90deg, #ddd 0 2px, transparent 2px 4px, #ddd 4px 5px, transparent 5px 9px, #ddd 9px 12px, transparent 12px 13px); opacity: .7; border-radius: 3px; }
.field { display: grid; gap: 6px; margin: 6px 0 10px; font-size: 13px; color: var(--dim); }
.field input, .join input { background: #07090c; border: 1px solid var(--line2); border-radius: 12px; padding: 13px 14px; font-size: 17px; color: var(--fg); }
.sex { gap: 0; } .seg { border: 1px solid var(--line2); background: transparent; padding: 9px 14px; color: var(--dim); font-size: 14px; } .seg:first-child { border-radius: 10px 0 0 10px; } .seg:last-child { border-radius: 0 10px 10px 0; border-left: 0; }
.seg.on { color: var(--amber2); border-color: #6b5022; background: rgba(242, 165, 65, .08); }
.join { display: flex; gap: 8px; margin-top: 12px; } .join input { flex: 1; text-transform: uppercase; letter-spacing: .3em; font-family: var(--f-mono); min-width: 0; }
.panel { background: rgba(12, 16, 21, .9); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.room-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: end; }
.room-code { font-family: var(--f-mono); font-size: 34px; letter-spacing: .3em; color: var(--amber2); }
.invite { display: flex; gap: 8px; flex-wrap: wrap; }
.manifest { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 6px; font-family: var(--f-mono); font-size: 14px; }
.manifest li { display: grid; grid-template-columns: 26px 1fr auto auto; gap: 10px; align-items: center; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; background: #080b0e; }
.manifest .seat { color: var(--mute); } .manifest .st { color: var(--mute); font-size: 12px; } .manifest .st.ok { color: var(--ok); }
.manifest .bar { width: 70px; height: 4px; background: #1a2028; border-radius: 2px; overflow: hidden; } .manifest .bar i { display: block; height: 100%; background: var(--amber); }
details.settings summary { cursor: pointer; font-family: var(--f-mono); letter-spacing: .12em; text-transform: uppercase; font-size: 13px; color: var(--dim); }
.set-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin: 14px 0; }
@media (max-width: 640px) { .ticket { grid-template-columns: 1fr; } .tk-stub { border-left: 0; border-top: 2px dashed #3a3020; grid-template-columns: repeat(4, 1fr); } .tk-stub::before, .tk-stub::after { display: none; } .barcode { display: none; } .stub-row span { font-size: 14px; } }

/* ---------------------------------------------------------------- CARGA */
#loading { display: grid; place-items: center; background: #000; }
.load-box { width: min(420px, 86vw); display: grid; gap: 14px; }
.loadline { height: 3px; background: #15191e; overflow: hidden; } .loadline i { display: block; height: 100%; width: 0; background: var(--amber); box-shadow: 0 0 12px var(--amber); transition: width .3s; }
.load-team { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; font-family: var(--f-mono); font-size: 12px; color: var(--mute); }

/* ---------------------------------------------------------------- SEPARACIÓN Y LLAMADA */
#pregame { background: #000; display: grid; place-items: center; }
.sep { text-align: center; display: grid; gap: 14px; padding: 20px; }
.sep-n { font-family: var(--f-display); font-weight: 900; font-size: 34vmin; line-height: .8; color: var(--red); text-shadow: 0 0 60px rgba(226, 70, 58, .5); }
.sep-t { font-family: var(--f-mono); font-size: 16px; letter-spacing: .06em; color: #ffcdc7; max-width: 30ch; margin: 0 auto; }
.sep.pulse .sep-n { animation: sepPulse 1s infinite; } @keyframes sepPulse { 0% { transform: scale(1.12); } 100% { transform: scale(1); } }
.call { position: absolute; inset: 0; display: grid; grid-template-rows: auto 1fr auto; padding: calc(var(--safe-t) + 60px) 30px calc(var(--safe-b) + 56px); background: linear-gradient(180deg, #1a2531 0%, #0a0e13 60%, #000 100%); text-align: center; color: #fff; font-family: -apple-system, 'SF Pro Text', Roboto, var(--f-body); }
.call-label { font-size: 15px; opacity: .7; } .call-name { font-size: 32px; font-weight: 500; margin-top: 8px; } .call-sub { opacity: .6; margin-top: 4px; }
.call-avatar { width: 120px; height: 120px; border-radius: 50%; margin: 40px auto; background: radial-gradient(circle at 50% 38%, #5d6b78 0 22%, transparent 23%), radial-gradient(circle at 50% 100%, #5d6b78 0 42%, transparent 43%), #2b3540; }
.call-btns { display: flex; justify-content: space-around; }
.cbtn { width: 76px; height: 76px; border-radius: 50%; border: 0; position: relative; }
.cbtn.ok { background: #31c55a; animation: ringPulse 1.2s infinite; } .cbtn.deny { background: #ff3b30; }
.cbtn::after { content: ''; position: absolute; inset: 22px; background: #fff; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E") center/contain no-repeat; }
.cbtn.deny::after { transform: rotate(135deg); }
@keyframes ringPulse { 0% { box-shadow: 0 0 0 0 rgba(49, 197, 90, .6); } 100% { box-shadow: 0 0 0 26px rgba(49, 197, 90, 0); } }
.call-live { display: grid; gap: 22px; justify-items: center; } .call-timer { font-size: 18px; opacity: .8; font-variant-numeric: tabular-nums; }
.call-wave { width: 220px; height: 40px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .25), transparent); -webkit-mask: repeating-linear-gradient(90deg, #000 0 3px, transparent 3px 6px); mask: repeating-linear-gradient(90deg, #000 0 3px, transparent 3px 6px); animation: wave .6s infinite alternate; }
@keyframes wave { to { transform: scaleY(.4); } }

/* ---------------------------------------------------------------- PARTIDA */
#game { background: #000; }
#gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
#world { position: absolute; inset: 0; pointer-events: none; }
/* sello de la cámara: texto blanco con sombra, como en los vídeos reales */
.stamp { position: absolute; top: calc(var(--safe-t) + 10px); right: calc(var(--safe-r) + 14px); display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; color: #f4f2ea; text-shadow: 0 0 2px #000, 0 1px 2px #000; pointer-events: none; opacity: .92; }
.stamp b { color: #ff4a3d; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.stamp .rec { position: absolute; right: 44px; top: 4px; width: 9px; height: 9px; border-radius: 50%; background: #ff2a1a; box-shadow: 0 0 8px #ff2a1a; animation: blink 1s steps(1) infinite; }
.batt { width: 28px; height: 11px; border: 1px solid #f4f2ea; border-radius: 2px; position: relative; } .batt::after { content: ''; position: absolute; right: -4px; top: 3px; width: 2px; height: 4px; background: #f4f2ea; }
.batt i { position: absolute; left: 1px; top: 1px; bottom: 1px; width: 80%; background: #f4f2ea; }
.fuel { position: absolute; top: calc(var(--safe-t) + 10px); left: 50%; transform: translateX(-50%); text-align: center; pointer-events: none; }
.fuel-k { font-family: var(--f-mono); font-size: 10px; letter-spacing: .3em; color: #c9b38a; }
.fuel-t { font-family: var(--f-display); font-weight: 800; font-size: 34px; line-height: 1; color: var(--amber2); text-shadow: 0 0 18px rgba(242, 165, 65, .45), 0 2px 3px #000; letter-spacing: .04em; }
.fuel.low .fuel-t { color: #ff6b5e; animation: blink .6s infinite; }
.fuel-o { font-size: 12px; color: #e8e2d2; max-width: 60vw; margin-top: 4px; text-shadow: 0 1px 2px #000, 0 0 8px #000; line-height: 1.35; }
.fuel-o b { color: var(--amber2); font-weight: 600; }
.edge-l, .edge-r { position: absolute; top: 50%; transform: translateY(-50%); display: grid; gap: 12px; }
.edge-l { left: calc(var(--safe-l) + 10px); } .edge-r { right: calc(var(--safe-r) + 10px); justify-items: end; }
.hb { position: relative; width: 52px; height: 52px; border-radius: 16px; border: 1px solid rgba(255, 220, 160, .14); background: rgba(5, 7, 9, .38); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); display: grid; place-items: center; padding: 0; transition: background .2s, border-color .2s, transform .1s; }
.hb svg { width: 28px; height: 28px; fill: none; stroke: #e9dfc8; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; opacity: .88; }
.hb .hb-l { position: absolute; left: 60px; font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em; color: #cfc6b3; white-space: nowrap; opacity: 0; transition: opacity .3s; text-shadow: 0 1px 2px #000; }
.edge-r .hb .hb-l { left: auto; right: 60px; }
.hb.first .hb-l { opacity: .85; }
.hb.on { border-color: rgba(255, 207, 122, .65); background: rgba(242, 165, 65, .14); } .hb.on svg { stroke: var(--amber2); } .hb .ray { opacity: 0; } .hb.on .ray { opacity: 1; }
.hb.glow { animation: hbGlow 2.4s ease-in-out infinite; } @keyframes hbGlow { 50% { box-shadow: 0 0 22px rgba(255, 207, 122, .5); } }
.hb:active { transform: scale(.94); }
.badge { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; border-radius: 10px; background: var(--amber); color: #1b1203; font: 600 11px/20px var(--f-mono); padding: 0 5px; }
.ptt { width: 92px; height: 112px; border-radius: 20px 20px 26px 26px; border: 1px solid rgba(255, 220, 160, .18); background: linear-gradient(180deg, rgba(20, 22, 24, .72), rgba(6, 7, 8, .72)); backdrop-filter: blur(3px); display: grid; place-items: center; align-content: center; gap: 6px; padding: 8px; touch-action: none; }
.ptt-led { width: 10px; height: 10px; border-radius: 50%; background: #2a2a2a; box-shadow: inset 0 1px 1px rgba(255, 255, 255, .2); }
.ptt.tx .ptt-led { background: #ff3020; box-shadow: 0 0 12px #ff3020; } .ptt.rx .ptt-led { background: #34e070; box-shadow: 0 0 12px #34e070; }
.ptt-ch { font-family: var(--f-mono); font-size: 13px; color: var(--phos); background: #061210; border: 1px solid #12302a; padding: 3px 6px; border-radius: 4px; letter-spacing: .05em; }
.ptt-l { font-family: var(--f-mono); font-size: 9px; letter-spacing: .12em; color: #bbb; text-align: center; }
.ptt.tx { border-color: #ff3020; transform: scale(.97); }
.gunb { border-color: rgba(226, 70, 58, .35); } .gunb.on { border-color: #ff4a3d; background: rgba(226, 70, 58, .18); } .gunb svg { stroke: #ffb4ab; }
.firebtn { width: 96px; height: 96px; border-radius: 50%; border: 2px solid #ff4a3d; background: radial-gradient(circle, rgba(120, 10, 5, .55), rgba(20, 0, 0, .55)); color: #ffd2cc; font: 700 13px var(--f-mono); letter-spacing: .14em; box-shadow: 0 0 24px rgba(255, 60, 40, .35); touch-action: none; }
.firebtn:active { transform: scale(.94); background: rgba(200, 20, 10, .7); }
/* palanca de moverse: siempre visible, casi transparente, bisel con marcas como el de la cámara */
.stick { position: absolute; left: calc(var(--safe-l) + 26px); bottom: calc(var(--safe-b) + 26px); width: var(--ss); height: var(--ss); opacity: .22; transition: opacity .25s; pointer-events: none; }
.stick.on { opacity: .72; }
.stick .bezel { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .55); background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, .5) 0 1.5deg, transparent 1.5deg 30deg), radial-gradient(circle, rgba(0, 0, 0, .25) 55%, rgba(0, 0, 0, .05) 70%); -webkit-mask: radial-gradient(circle, #000 64%, #000 66%, transparent 67%, #000 72%); }
.stick .knob { position: absolute; left: 50%; top: 50%; width: 40%; height: 40%; margin: -20% 0 0 -20%; border-radius: 50%; background: radial-gradient(circle at 40% 35%, rgba(255, 255, 255, .55), rgba(140, 140, 140, .35)); border: 1px solid rgba(255, 255, 255, .6); display: grid; place-items: center; }
.stick .knob i { width: 18%; height: 18%; border-radius: 50%; background: #ff3a2a; box-shadow: 0 0 6px #ff3a2a; }
@media (pointer: fine) and (hover: hover) { .stick { display: none; } }
/* subtítulos troceados */
.subs { position: absolute; left: 50%; bottom: calc(var(--safe-b) + 22px); transform: translateX(-50%); width: min(720px, 82vw); text-align: center; pointer-events: none; display: grid; gap: 4px; }
.subs .ln { font-size: 17px; line-height: 1.35; color: #fff; text-shadow: 0 0 3px #000, 0 2px 4px #000, 0 0 14px rgba(0, 0, 0, .9); animation: subIn .18s ease-out; }
.subs .who { font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; color: var(--amber2); text-transform: uppercase; margin-right: 6px; }
.subs .ln.radio { color: #cfe9e2; } .subs .ln.radio .who { color: var(--phos); }
.subs .ln.narr { font-style: italic; color: #e9e1cc; }
@keyframes subIn { from { opacity: 0; transform: translateY(4px); } }
.toast { position: absolute; top: calc(var(--safe-t) + 92px); left: 50%; transform: translateX(-50%); font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; color: #e8e0cf; background: rgba(0, 0, 0, .55); border-left: 2px solid var(--amber); padding: 7px 12px; pointer-events: none; opacity: 0; transition: opacity .3s; white-space: nowrap; max-width: 92vw; overflow: hidden; text-overflow: ellipsis; }
.toast.on { opacity: 1; } .toast.red { border-color: var(--red); color: #ffd3cd; }
/* enfoque de la cámara al tocar algo: esquinas que se cierran */
.focus { position: absolute; width: 120px; height: 120px; margin: -60px 0 0 -60px; pointer-events: none; opacity: 0; }
.focus i { position: absolute; width: 22px; height: 22px; border: 2px solid #fff; filter: drop-shadow(0 0 2px #000); }
.focus i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; } .focus i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; }
.focus i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; } .focus i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; }
.focus b { position: absolute; left: 50%; top: 100%; transform: translateX(-50%); margin-top: 6px; font: 600 11px var(--f-mono); letter-spacing: .12em; color: #fff; text-shadow: 0 0 3px #000, 0 1px 3px #000; white-space: nowrap; text-transform: uppercase; }
.focus.on { animation: focusIn .5s ease-out forwards; } @keyframes focusIn { 0% { opacity: 0; transform: scale(1.6); } 30% { opacity: 1; } 60% { transform: scale(.92); } 100% { opacity: 1; transform: scale(1); } }
.flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; mix-blend-mode: screen; }
.raul { position: absolute; left: calc(var(--safe-l) + 10px); top: calc(var(--safe-t) + 10px); width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--amber); background: rgba(0, 0, 0, .6); color: var(--amber2); font: 800 15px var(--f-display); }
/* marcadores de objetos en el mundo (brillo tenue que respira) */
.wm { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, rgba(255, 236, 200, .55), rgba(255, 220, 160, 0) 70%); animation: breathe 3.2s ease-in-out infinite; }
.wm.hint { width: 46px; height: 46px; margin: -23px 0 0 -23px; background: radial-gradient(circle, rgba(255, 210, 130, .35), rgba(255, 200, 120, 0) 70%); }
.wm .lb { position: absolute; left: 18px; top: -4px; font: 500 10px var(--f-mono); letter-spacing: .1em; color: rgba(255, 245, 225, .82); text-shadow: 0 1px 2px #000; white-space: nowrap; text-transform: uppercase; opacity: 0; transition: opacity .25s; }
.wm.near .lb { opacity: 1; }
@keyframes breathe { 50% { opacity: .35; transform: scale(.8); } }

/* ---------------------------------------------------------------- CAPAS (documentos, pruebas, equipo, teclado…) */
.layer { position: absolute; inset: 0; z-index: 20; display: grid; place-items: center; background: rgba(0, 0, 0, .45); padding: calc(var(--safe-t) + 12px) 12px calc(var(--safe-b) + 12px); }
.layer .close { position: absolute; top: calc(var(--safe-t) + 12px); right: calc(var(--safe-r) + 12px); width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: rgba(0, 0, 0, .5); color: #fff; font-size: 20px; z-index: 3; }
/* papel bajo la linterna: lo iluminado se lee */
.paper { position: relative; width: min(560px, 92vw); max-height: 84vh; overflow: auto; background: var(--paper); color: var(--ink); padding: 26px 26px 30px; border-radius: 3px; box-shadow: 0 30px 80px rgba(0, 0, 0, .7); transform: rotate(-.6deg); font-family: var(--f-mono); font-size: 14px; line-height: 1.55; }
.paper::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(70% 50% at 30% 20%, rgba(255, 255, 255, .12), transparent), repeating-linear-gradient(8deg, rgba(0, 0, 0, .02) 0 1px, transparent 1px 7px); }
.paper h3 { font-family: var(--f-display); font-size: 24px; letter-spacing: .03em; margin: 0 0 4px; text-transform: uppercase; }
.paper .from { font-size: 11px; letter-spacing: .1em; color: #6a6050; text-transform: uppercase; margin-bottom: 14px; }
.paper p { margin: 0 0 10px; }
.paper.card { width: min(420px, 92vw); background: #efe9da; border: 1px solid #c9bfa8; }
.paper.news { font-family: Georgia, 'Times New Roman', serif; }
.paper.phone { background: #0d1014; color: #dfe6ea; border-radius: 26px; border: 8px solid #1b1e22; font-family: -apple-system, Roboto, var(--f-body); }
.paper.phone p { background: #1d2833; padding: 8px 12px; border-radius: 14px 14px 14px 4px; width: fit-content; max-width: 90%; }
.torchmask { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle var(--tr, 150px) at var(--tx, 50%) var(--ty, 40%), transparent 0, transparent 55%, rgba(0, 0, 0, .94) 100%); transition: background .1s; }
.paper-wrap { position: relative; }
.paper-wrap.dark .paper { filter: brightness(.95); }
/* bolsas de pruebas */
.bags { width: min(760px, 94vw); display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.bag { position: relative; aspect-ratio: 3/4; border-radius: 6px; background: linear-gradient(180deg, rgba(220, 230, 235, .16), rgba(200, 210, 215, .08)); border: 1px solid rgba(220, 230, 240, .3); padding: 10px; display: grid; align-content: space-between; text-align: left; color: #eee; overflow: hidden; }
.bag::before { content: 'PRUEBA'; position: absolute; top: 0; left: 0; right: 0; height: 24px; background: #b8262a; color: #fff; font: 700 11px/24px var(--f-mono); letter-spacing: .3em; text-align: center; }
.bag .no { font: 600 26px var(--f-display); color: #fff; margin-top: 22px; } .bag .nm { font: 600 13px var(--f-body); } .bag .ds { font-size: 11px; color: #c6cdd2; }
/* tablero del equipo: polaroids de las manos */
.board { width: min(860px, 96vw); max-height: 86vh; overflow: auto; background: #2a2016 repeating-linear-gradient(45deg, rgba(0, 0, 0, .06) 0 2px, transparent 2px 6px); border: 10px solid #4a3622; border-radius: 6px; padding: 18px; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 18px; }
.polaroid { background: #f2efe6; color: #222; padding: 8px 8px 12px; box-shadow: 0 8px 20px rgba(0, 0, 0, .5); transform: rotate(var(--rot, -1deg)); font-family: var(--f-mono); font-size: 12px; position: relative; }
.polaroid canvas { width: 100%; aspect-ratio: 1; display: block; background: #222; }
.polaroid .pn { font-weight: 600; margin-top: 6px; } .polaroid .pt { color: #555; font-size: 11px; }
.polaroid .pin { position: absolute; top: -6px; left: 50%; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ff7a6a, #b81c10); }
.polaroid.det { filter: grayscale(.6); } .polaroid.det::after { content: 'DETENIDO'; position: absolute; top: 40%; left: -6px; right: -6px; text-align: center; background: rgba(184, 28, 16, .85); color: #fff; font: 700 13px var(--f-mono); letter-spacing: .3em; transform: rotate(-12deg); }
.polaroid .acts { display: flex; gap: 6px; margin-top: 8px; } .polaroid .acts button { flex: 1; font-size: 11px; padding: 6px 4px; border-radius: 4px; border: 1px solid #b9b2a2; background: #e7e1d3; color: #222; }
/* placas numeradas de escena del crimen alrededor del objeto */
.plates { position: absolute; inset: 0; pointer-events: none; }
.plate { position: absolute; pointer-events: auto; transform: translate(-50%, -50%); display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 8px; min-width: 150px; max-width: 64vw; padding: 8px 12px 8px 8px; border-radius: 4px; background: #f5c400; color: #111; border: 0; font: 600 14px var(--f-body); text-align: left; box-shadow: 0 8px 20px rgba(0, 0, 0, .55); animation: plateIn .3s ease-out backwards; }
.plate .n { width: 26px; height: 26px; display: grid; place-items: center; background: #111; color: #f5c400; font: 800 16px var(--f-display); border-radius: 2px; }
.plate.dim { background: #c9c3b2; } .plate.red { background: #d83a2c; color: #fff; } .plate.red .n { color: #d83a2c; }
@keyframes plateIn { from { opacity: 0; transform: translate(-50%, -30%) scale(.8); } }
.plate-title { position: absolute; left: 50%; top: calc(var(--safe-t) + 70px); transform: translateX(-50%); font: 600 12px var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 3px #000; pointer-events: none; text-align: center; }
.answer { position: absolute; left: 50%; bottom: calc(var(--safe-b) + 90px); transform: translateX(-50%); width: min(620px, 90vw); background: rgba(0, 0, 0, .78); border-left: 3px solid var(--amber); padding: 12px 16px; font-size: 16px; line-height: 1.45; color: #eee; }
.answer .who { font: 600 11px var(--f-mono); letter-spacing: .14em; color: var(--amber2); text-transform: uppercase; display: block; margin-bottom: 4px; }
/* teclado de la puerta */
.keypad { width: 260px; background: #15171a; border: 1px solid #333; border-radius: 10px; padding: 16px; box-shadow: 0 20px 60px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .06); }
.kp-scr { height: 46px; background: #0b1a12; color: #7dffb0; font: 600 26px var(--f-mono); letter-spacing: .3em; display: grid; place-items: center; border-radius: 4px; margin-bottom: 12px; text-shadow: 0 0 8px #3f9; }
.kp-leds { display: flex; gap: 8px; justify-content: center; margin-bottom: 12px; } .kp-leds i { width: 10px; height: 10px; border-radius: 50%; background: #333; } .kp-leds i.r { background: #f33; box-shadow: 0 0 8px #f33; } .kp-leds i.g { background: #3f6; box-shadow: 0 0 8px #3f6; }
.kp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kp-grid button { height: 52px; border-radius: 6px; border: 1px solid #3a3a3a; background: linear-gradient(180deg, #2a2d31, #1a1c1f); font: 600 20px var(--f-mono); color: #ddd; }
.kp-grid button:active { background: #3a3d41; }
/* walkie (canal y subtono) */
.walkie { width: min(340px, 92vw); background: linear-gradient(180deg, #23262a, #121416); border-radius: 26px 26px 34px 34px; padding: 22px 18px; border: 1px solid #3a3d41; box-shadow: 0 30px 70px rgba(0, 0, 0, .7); display: grid; gap: 14px; }
.wk-scr { background: #0b1d18; border: 2px solid #0a0f0e; border-radius: 8px; padding: 10px 12px; font-family: var(--f-mono); color: #8fe0c9; text-shadow: 0 0 6px rgba(143, 224, 201, .5); display: grid; gap: 4px; }
.wk-big { font-size: 34px; letter-spacing: .08em; } .wk-row { display: flex; justify-content: space-between; font-size: 12px; } .wk-sm { display: flex; gap: 2px; align-items: end; height: 14px; } .wk-sm i { width: 4px; background: #8fe0c9; opacity: .25; } .wk-sm i.on { opacity: 1; }
.wk-ctl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wk-ctl .knobset { display: grid; gap: 6px; text-align: center; font: 600 11px var(--f-mono); color: #aaa; letter-spacing: .1em; }
.wk-ctl .knobset div { display: flex; gap: 6px; justify-content: center; } .wk-ctl button { width: 46px; height: 40px; border-radius: 8px; border: 1px solid #444; background: #26292d; font: 600 18px var(--f-mono); color: #ddd; }
/* votación */
.vote { width: min(420px, 92vw); background: #120a09; border: 1px solid #5a2620; border-radius: 10px; padding: 18px; display: grid; gap: 12px; text-align: center; }
.vote h3 { margin: 0; font: 800 26px var(--f-display); letter-spacing: .04em; color: #ffcdc7; }
/* giro final: segundos contados, todo enorme */
.twist { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 18px; padding: 20px; overflow-y: auto; touch-action: pan-y; overscroll-behavior: contain; background: radial-gradient(circle, transparent 30%, rgba(60, 0, 0, .55) 100%); animation: twIn .5s ease-out; }
@keyframes twIn { from { opacity: 0; } }
.tw-t { font: 900 clamp(34px, 8vw, 64px) var(--f-display); letter-spacing: .03em; color: #fff; text-shadow: 0 0 30px rgba(255, 60, 40, .6), 0 3px 6px #000; text-align: center; text-transform: uppercase; }
.tw-s { font: 500 15px var(--f-mono); color: #ffd7d0; text-align: center; max-width: 34ch; text-shadow: 0 1px 3px #000; }
.tw-bar { width: min(420px, 80vw); height: 6px; background: rgba(255, 255, 255, .15); } .tw-bar i { display: block; height: 100%; background: #ff3b2a; box-shadow: 0 0 12px #ff3b2a; }
.tw-opts { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 720px; }
.tw-opts .btn { min-height: 56px; font-size: 16px; }
/* aviso de la pistola */
.gunwarn { width: min(460px, 92vw); background: #0e0f10; border: 1px solid #5a2620; border-radius: 6px; padding: 22px; display: grid; gap: 12px; box-shadow: 0 0 60px rgba(226, 70, 58, .2); }
.gunwarn h3 { margin: 0; font: 800 22px var(--f-display); letter-spacing: .06em; color: #ff8f84; text-transform: uppercase; }
.gunwarn p { margin: 0; color: #ddd; line-height: 1.5; font-size: 15px; }
/* cámara de la puerta (CDSS) */
.cctv { width: min(760px, 96vw); background: #090a0b; border: 1px solid #333; border-radius: 6px; padding: 12px; display: grid; gap: 10px; }
.cctv canvas { width: 100%; aspect-ratio: 4/3; background: #000; image-rendering: auto; }
.cctv .ctl { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; font: 600 11px var(--f-mono); color: #9aa; letter-spacing: .08em; }
.cctv .ctl label { display: grid; gap: 4px; } .cctv input[type=range] { accent-color: #8fe0c9; }
/* inspector 3D */
.insp { position: absolute; inset: 0; touch-action: none; } .insp canvas { width: 100%; height: 100%; display: block; touch-action: none; }
.insp .tools { position: absolute; left: 50%; bottom: calc(var(--safe-b) + 18px); transform: translateX(-50%); display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; width: min(560px, 96vw); max-width: 96vw; }
.insp .tools button { min-width: 64px; height: 54px; border-radius: 10px; border: 1px solid #554; background: rgba(15, 15, 15, .75); color: #eee; font: 600 11px var(--f-mono); letter-spacing: .06em; padding: 4px 8px; display: grid; place-items: center; }
.insp .tools button.on { border-color: var(--amber); color: var(--amber2); background: rgba(242, 165, 65, .14); }
.insp .info { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(var(--safe-b) + 30px + var(--insp-controls-height, 54px)); width: max-content; max-width: min(520px, 80vw); text-align: center; font: 500 12px var(--f-mono); line-height: 1.5; color: #e6e0d0; text-shadow: 0 1px 2px #000; background: rgba(0, 0, 0, .35); padding: 8px 10px; border-left: 2px solid var(--amber); }
/* cabina de mando: lectura rápida */
.fltbar { position: absolute; left: 50%; bottom: calc(var(--safe-b) + 150px); transform: translateX(-50%); display: flex; gap: 14px; font: 600 13px var(--f-mono); color: #9ff0c0; text-shadow: 0 0 6px rgba(80, 255, 140, .5), 0 1px 2px #000; pointer-events: none; }
.fltbar b { color: #fff; font-size: 16px; } .fltbar .warn { color: #ff6b5e; }
.thr { position: absolute; right: calc(var(--safe-r) + 120px); bottom: calc(var(--safe-b) + 24px); width: 70px; height: 210px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(0, 0, 0, .35); touch-action: none; }
.thr .det { position: absolute; left: 6px; right: 6px; height: 1px; background: rgba(255, 255, 255, .35); font: 600 9px var(--f-mono); color: #ccc; } .thr .det span { position: absolute; right: -2px; top: -12px; }
.thr .lever { position: absolute; left: 8px; right: 8px; height: 26px; border-radius: 6px; background: linear-gradient(180deg, #333, #111); border: 1px solid #777; }
.ctlhl { position: absolute; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; border: 3px solid #7dffb0; box-shadow: 0 0 22px #3f9, inset 0 0 12px #3f9; pointer-events: none; animation: hl 1s ease-in-out infinite; }
@keyframes hl { 50% { transform: scale(.75); opacity: .6; } }
/* ---------------------------------------------------------------- FINAL */
#ending { background: #000; }
#cine { position: absolute; inset: 0; width: 100%; height: 100%; }
.cine-titles { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; pointer-events: none; padding: 20px; }
.cine-titles .ct { font: 900 clamp(40px, 9vw, 96px) var(--f-display); letter-spacing: .02em; text-transform: uppercase; color: #f1ead9; opacity: 0; transition: opacity 1.5s; }
.cine-titles .cl { font: 500 clamp(15px, 2.4vw, 20px) var(--f-body); color: #d8d0bd; max-width: 46ch; margin: 18px auto 0; line-height: 1.55; opacity: 0; transition: opacity 2s; }
.cine-titles .on { opacity: 1; }
.report { position: absolute; inset: 0; overflow-y: auto; background: radial-gradient(120% 80% at 50% 0%, #161b22, #050607 65%); padding: calc(var(--safe-t) + 26px) 18px calc(var(--safe-b) + 30px); }
.report .in { max-width: 820px; margin: 0 auto; display: grid; gap: 18px; }
.report h2 { font: 900 clamp(38px, 8vw, 72px) var(--f-display); margin: 0; text-transform: uppercase; line-height: .9; }
.report .verdict { font: 700 14px var(--f-mono); letter-spacing: .2em; text-transform: uppercase; } .report .verdict.win { color: var(--ok); } .report .verdict.lose { color: var(--red); }
.report .lede { font-size: 18px; line-height: 1.55; color: #ddd4bf; font-style: italic; border-left: 3px solid var(--amber); padding-left: 14px; }
.report .secret { background: #120b0a; border: 1px solid #4a2018; border-radius: 10px; padding: 14px 16px; color: #f0d6d0; line-height: 1.5; }
.report .secret b { color: #ff8f84; }
.report .stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.report .stat { background: #0c1015; border: 1px solid var(--line); border-radius: 10px; padding: 12px; } .report .stat b { display: block; font: 800 26px var(--f-display); color: var(--amber2); } .report .stat span { font: 500 11px var(--f-mono); color: var(--dim); letter-spacing: .08em; text-transform: uppercase; }
.report .plist { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-family: var(--f-mono); font-size: 14px; }
.report .plist li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; }
.report .plist .mole { color: #ff8f84; } .report .dim { color: var(--mute); }
.report .cta .btn { flex: 1 1 220px; }
.reduce *, .reduce *::before, .reduce *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }

/* ---------- a los mandos ---------- */
#cockpitUI { position: absolute; inset: 0; pointer-events: none; }
#cockpitUI > * { pointer-events: auto; }
.fltbar { pointer-events: none !important; align-items: center; background: rgba(0, 0, 0, .28); padding: 6px 12px; border-radius: 8px; bottom: calc(var(--safe-b) + 12px); }
.fltbar span { min-width: 3.2ch; text-align: right; font-size: 16px; }
.fltbar .gear { display: flex; gap: 3px; min-width: 0; } .fltbar .gear i { width: 9px; height: 9px; border: 1px solid #666; transform: rotate(45deg); }
.fltbar .gear.tr i { background: #ff3b30; border-color: #ff3b30; } .fltbar .gear.ok i { background: #3bff6e; border-color: #3bff6e; }
.fltbar .gs { position: relative; width: 10px; height: 46px; border-left: 1px solid #fff; margin-left: 4px; } .fltbar .gs i { position: absolute; left: -6px; top: 18px; width: 10px; height: 10px; background: #ff4ff0; transform: rotate(45deg); }
.thr { height: 220px; right: calc(var(--safe-r) + 18px); bottom: calc(var(--safe-b) + 90px); background: linear-gradient(90deg, rgba(0,0,0,.5), rgba(20,20,20,.35)); }
.thr .det { top: calc(18px + var(--y) * 46px); font-size: 9px; text-align: left; padding-left: 2px; line-height: 0; color: #bbb; }
.thr .lever { top: calc(5px + var(--y, 2) * 46px); transition: top .12s; display: grid; place-items: center; font: 700 9px var(--f-mono); color: var(--amber2); box-shadow: 0 4px 12px rgba(0,0,0,.6); }
.brake { position: absolute; right: calc(var(--safe-r) + 100px); bottom: calc(var(--safe-b) + 96px); min-height: 64px; }
#stick.fly .bezel::after { content: 'PALANCA'; position: absolute; left: 50%; top: -18px; transform: translateX(-50%); font: 600 9px var(--f-mono); letter-spacing: .14em; color: rgba(255,255,255,.6); }
body.flying #btnHint, body.flying #btnBag { opacity: .35; }
.ctlhl span { position: absolute; left: 50%; top: 100%; transform: translate(-50%, 6px); font: 700 10px var(--f-mono); letter-spacing: .1em; color: #b8ffd4; text-shadow: 0 1px 3px #000; white-space: nowrap; }
.ctlhl.edge { width: 40px; height: 40px; margin: -20px 0 0 -20px; border-style: dashed; }
.twist.armed { align-content: start; padding-top: calc(var(--safe-t) + 70px); background: radial-gradient(circle, transparent 45%, rgba(60, 0, 0, .45) 100%); pointer-events: none; }
.twist.armed .tw-opts { pointer-events: auto; } .twist.armed .tw-opts .btn { min-height: 42px; font-size: 13px; }
.tw-opts .btn.on { outline: 2px solid #fff; }
.credits { opacity: 0; transition: opacity 2s; font: 500 clamp(15px, 2.4vw, 20px) var(--f-mono); color: #ddd4bf; line-height: 1.9; }
.credits.on { opacity: 1; } .credits p { margin: 0; } .credits .dim { color: var(--mute); }
.layer.clear { background: transparent !important; backdrop-filter: none !important; }
/* pantallas estrechas: el objetivo no pisa el sello de la cámara */
.fuel-o { max-width: min(60vw, calc(100vw - 2 * 200px)); }
@media (max-width: 760px) {
  .fuel-o { max-width: calc(100vw - 330px); font-size: 11px; }
  .stamp { font-size: 10px; }
  .fuel-t { font-size: 28px; }
}
@media (max-width: 520px) { .fuel-o { display: none; } .fuel.show-o .fuel-o { display: block; position: fixed; left: 12px; right: 12px; top: calc(var(--safe-t) + 92px); max-width: none; } }
.layer .close { top: calc(var(--safe-t) + 70px); }
.layer.clear .close { top: calc(var(--safe-t) + 12px); }

/* El dedo mueve el mundo, pero los documentos y menús conservan su desplazamiento nativo. */
#gl, #stick { touch-action: none; }
button, input, select { touch-action: manipulation; }
.paper, .board, .bags, .walkie, .vote { touch-action: pan-y; }
.bags { max-height: 82dvh; overflow-y: auto; }

/* Las mismas placas del diálogo no pueden superponerse en una pantalla de bolsillo. */
@media (max-width: 600px), (max-height: 520px) {
  .layer { overflow-y: auto; }
  .layer:has(.plates) { display: flex; flex-direction: column; align-items: stretch; gap: 14px; padding: calc(var(--safe-t) + 120px) max(18px, var(--safe-r)) calc(var(--safe-b) + 24px) max(18px, var(--safe-l)); }
  .plates { position: relative; inset: auto; display: grid; grid-template-columns: 1fr; gap: 10px; flex-shrink: 0; pointer-events: auto; touch-action: pan-y; }
  .plate { position: relative; left: auto !important; top: auto !important; transform: none; min-width: 0; max-width: none; min-height: 48px; width: 100%; animation-name: plateMobileIn; }
  .plate-title { top: calc(var(--safe-t) + 70px); max-width: calc(100vw - 140px); }
  .layer:has(.plates) .answer { position: relative; left: auto; bottom: auto; transform: none; width: 100%; flex-shrink: 0; font-size: 14px; }
  .polaroid .acts button { min-height: 44px; }
  .keypad { width: min(260px, 92vw); }
  .vote, .walkie { max-height: 82dvh; overflow-y: auto; }
  @keyframes plateMobileIn { from { opacity: 0; transform: translateY(12px) scale(.98); } }
}
@media (min-width: 601px) and (max-height: 520px) {
  .plates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .layer:has(.plates) { padding-top: calc(var(--safe-t) + 100px); }
  .keypad { padding: 10px; }
  .kp-grid { gap: 6px; }
  .kp-grid button { height: 44px; }
}

body.inspecting #obj { opacity: 0; transition: opacity .3s; }
.insp .info:empty { display: none; }
body.inspecting .subs { bottom: auto; top: calc(var(--safe-t) + 66px); }
/* a los mandos: la radio sube arriba a la derecha y encoge, la palanca de gases ocupa el borde */
body.flying .edge-r { top: calc(var(--safe-t) + 96px); right: calc(var(--safe-r) + 100px); transform: none; }
body.flying .edge-r .ptt { width: 74px; height: 86px; gap: 3px; padding: 5px; }
body.flying .edge-r .ptt-l { display: none; }

/* Petición de pantalla completa de NOWAYOUT, sólo durante los primeros cuatro segundos. */
.tr-fullscreen-entry { position: absolute; z-index: 60; left: 50%; bottom: calc(var(--safe-b) + 24px); transform: translateX(-50%); min-height: 44px; max-width: calc(100vw - 32px); padding: 13px 22px; border: 1px solid #741224; border-radius: 14px 9px 12px 6px; color: #f6d7d8; background: linear-gradient(160deg,#650b21,#21070e 65%); font: 800 12px var(--f-display); text-transform: uppercase; letter-spacing: .07em; box-shadow: inset 0 3px 7px #9c193e88,0 3px 15px #91052350; cursor: pointer; animation: tr-fullscreen-pulse 1.15s ease-in-out infinite; }
.tr-fullscreen-entry span { position: relative; z-index: 2; }
.tr-fullscreen-entry i { position: absolute; top: calc(100% - 4px); width: 5px; height: 13px; background: linear-gradient(#710a27,#a41529); border-radius: 0 0 60% 60%; transform-origin: top; animation: tr-fullscreen-drip 1.7s ease-in-out infinite; }
.tr-fullscreen-entry i:nth-of-type(1) { left: 12%; }
.tr-fullscreen-entry i:nth-of-type(2) { left: 31%; animation-delay: -.7s; height: 8px; }
.tr-fullscreen-entry i:nth-of-type(3) { left: 53%; animation-delay: -.2s; }
.tr-fullscreen-entry i:nth-of-type(4) { left: 74%; animation-delay: -1.1s; height: 9px; }
.tr-fullscreen-entry i:nth-of-type(5) { left: 90%; animation-delay: -.4s; }
@keyframes tr-fullscreen-pulse { 50% { box-shadow: inset 0 3px 7px #b61c4288,0 3px 19px #c8083866; } }
@keyframes tr-fullscreen-drip { 45% { transform: scaleY(1.45); } 75% { transform: scaleY(.8); } }
.tr-fullscreen-entry.is-still, .tr-fullscreen-entry.is-still i { animation: none; }
@media (prefers-reduced-motion: reduce) { .tr-fullscreen-entry, .tr-fullscreen-entry i { animation: none; } }

/* Identificación de la voz cercana: placa sobre la cabeza y orientación fuera de cuadro. */
.tr-speaker-cue { position: absolute; z-index: 10; transform: translate(-50%, -100%); display: grid; justify-items: center; gap: 4px; width: 176px; max-width: calc(100vw - 24px); padding: 9px 11px; border: 1px solid rgba(242,165,65,.62); border-radius: 4px; color: var(--amber2); background: rgba(5,7,10,.88); box-shadow: 0 5px 18px rgba(0,0,0,.6); pointer-events: none; text-align: center; }
.tr-speaker-cue::after { content: ''; position: absolute; top: 100%; left: calc(50% - 5px); border: 5px solid transparent; border-top-color: rgba(242,165,65,.75); }
.tr-speaker-cue.is-edge { transform: translate(-50%, -50%); }
.tr-speaker-cue.is-edge::after { display: none; }
.tr-speaker-name { font: 600 12px var(--f-mono); letter-spacing: .07em; text-transform: uppercase; }
.tr-speaker-status { color: var(--fg); font-size: 10px; line-height: 1.4; }
.tr-speaker-arrow { font-size: 22px; line-height: 1; }
.tr-speaker-interact { pointer-events: auto; min-height: 44px; width: 100%; margin-top: 3px; border: 1px solid var(--brass); border-radius: 3px; color: var(--amber2); background: rgba(242,165,65,.11); font: 600 12px var(--f-mono); text-transform: uppercase; touch-action: manipulation; }
.tr-speaker-interact:active { background: rgba(242,165,65,.23); }
