/* Geolite - STEAM DECK (v0.2.32): letra minima. Valve pide que ningun caracter baje de 9 px a 1280x800 (recomienda 12): la letra pixel
   de las etiquetas (Silkscreen) tiene mayusculas del 63 % de su tamano, asi que en la Deck sube a 16 px exactos (el doble de su rejilla: nitida).
   Solo con html[data-dev="deck"] (index.html lo pone antes de pintar nada); en PC todo sigue igual. Reglas sacadas midiendo el juego real. */
html[data-dev="deck"] .btn-ink { font-size: 16px; }   /* «Siguiente» revelado */
html[data-dev="deck"] .dlf-r span { font-size: 16px; }   /* «Visitas» ajustes-data */
html[data-dev="deck"] .lg-label, html[data-dev="deck"] .lg-row { font-size: 16px; }   /* «Puntos del nivel» partida,revelado */
html[data-dev="deck"] .np-t em { font-size: 16px; }   /* «1/21» ajustes-sound */
html[data-dev="deck"] .plate-top { font-size: 16px; }   /* «Nº 01 / 10» partida,revelado */
html[data-dev="deck"] .rd.plan .rd-h b { font-size: 16px; }   /* «Acto I» hub-adventure */
html[data-dev="deck"] .rd.plan .rd-n em { font-size: 16px; }   /* «1» hub-adventure */
html[data-dev="deck"] .rd.plan .rd-n.inf em { font-size: 16px; }   /* «Infinito» hub-adventure */
html[data-dev="deck"] .seg button { font-size: 16px; }   /* «Ventana» ajustes-general,ajustes-video */
@media (min-width: 901px) { html[data-dev="deck"] .seg.s4 button { font-size: 16px; } }   /* «Ninguno» ajustes-video */
html[data-dev="deck"] .set-back { font-size: 16px; }   /* «Cerrar» ajustes-general,ajustes-sound,ajustes-vi */
html[data-dev="deck"] .set-keys { font-size: 16px; }   /* «Pantalla completa» ajustes-general,ajustes-sound,ajustes-vi */
html[data-dev="deck"] .set-ver { font-size: 16px; }   /* «GEOLITE · V» ajustes-general,ajustes-sound,ajustes-vi */
html[data-dev="deck"] .sn-no { font-size: 16px; }   /* «Nº 3528» ajustes-general */
html[data-dev="deck"] .stp-tag { font-size: 16px; }   /* «Personalizado» ajustes-general */
html[data-dev="deck"] .tk-pin { font-size: 16px; }   /* «Tu chincheta:» revelado */
html[data-dev="deck"] .tk-rows dt { font-size: 16px; }   /* «Distancia» revelado */
html[data-dev="deck"] body #plate .tag { font-size: 16px; }   /* «Ciudad» partida,revelado */
html[data-dev="deck"] body .plq-tag > span { font-size: 16px; }   /* «0 / 4967» portada */
html[data-dev="deck"] body .tk-total > span:first-child { font-size: 16px; }   /* «Total» revelado */
html[data-dev="deck"] kbd { font-size: 16px; }   /* «P» ajustes-general,ajustes-sound,ajustes-vi */
html[data-dev="deck"] .set-keys em, html[data-dev="deck"] .osk-legend { font-size: 16px; }   /* leyendas con mando */

/* selectores que no caben con la letra a 16 px: Unidades en dos filas y Modo daltonico en 2x2; la ficha dorada pasa a ser el fondo del elegido */
html[data-dev="deck"] .seg[data-seg="units"], html[data-dev="deck"] .seg[data-seg="cb"] { grid-auto-flow: row; gap: 4px; border-radius: 12px; }
html[data-dev="deck"] .seg[data-seg="cb"] { grid-template-columns: 1fr 1fr; }
html[data-dev="deck"] .seg[data-seg="units"] > i, html[data-dev="deck"] .seg[data-seg="cb"] > i { display: none; }
html[data-dev="deck"] .seg[data-seg="units"] button, html[data-dev="deck"] .seg[data-seg="cb"] button { border-radius: 9px; letter-spacing: 0; }
html[data-dev="deck"] .seg[data-seg="units"] button.on, html[data-dev="deck"] .seg[data-seg="cb"] button.on { background: linear-gradient(180deg, var(--brass-lt), var(--brass)); box-shadow: 0 2px 0 rgba(0, 0, 0, .3); }
html[data-dev="deck"] .seg button { letter-spacing: 0; line-height: 1.05; }

/* v0.2.33: textos en Jersey / Pixelify (mayusculas del 55 % de su tamano): a 16 px se quedaban en 8,8 px; en la Deck van a 18 */
html[data-dev="deck"] .rd.plan .rd-n.inf em, html[data-dev="deck"] .tk-pin,
html[data-dev="deck"] #settings .set-keys em, html[data-dev="deck"] .osk-legend { font-size: 18px; }

/* v0.2.34: retos de cuarta pared sin imitar al sistema (en una consola, un aviso falso se confundiria con uno real) */
/* No responde: paneles de la mesa en vez de ventanas de Windows */
html[data-dev="deck"] .chx-win { padding: 0; border-radius: 14px; overflow: hidden; font: 18px/1.25 var(--sans); color: var(--paper); background: linear-gradient(#143a29, #0c2018); box-shadow: inset 0 0 0 2px #f8b449, inset 0 0 0 5px #1f5c40, 0 18px 44px rgba(0, 0, 0, .6); }
html[data-dev="deck"] .cw-bar { height: 38px; padding: 0 8px 0 12px; gap: 8px; background: rgba(0, 0, 0, .35); border-bottom: 2px solid rgba(248, 180, 73, .35); }
html[data-dev="deck"] .cw-bar b { font: 16px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--brass-lt); }
html[data-dev="deck"] .cw-app { width: 24px; height: 24px; background-image: url(../assets/icons/chips.webp); }
html[data-dev="deck"] .cw-x, html[data-dev="deck"] .cw-b { border-radius: 9px; color: #ffe7ae; background: #1f5c40; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .32), inset 0 0 0 1px rgba(255, 231, 174, .14); }
html[data-dev="deck"] .cw-x { width: 26px; height: 26px; font: 700 14px/1 var(--mono); }
html[data-dev="deck"] .cw-x:hover, html[data-dev="deck"] .cw-b:hover { background: #f8b449; color: #16241c; }
html[data-dev="deck"] .cw-b { min-width: 96px; height: 36px; font: 16px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; }
html[data-dev="deck"] .cw-b.cw-def { outline: 0; background: #fe5f55; color: #fff3cf; }
html[data-dev="deck"] .cw-body { padding: 16px 16px 10px; } html[data-dev="deck"] .cw-body p { font-size: 18px; color: rgba(242, 233, 214, .9); }
html[data-dev="deck"] .cw-sign { width: 38px; height: 38px; font: 22px/1 var(--mono); box-shadow: 0 2px 0 rgba(0, 0, 0, .35), inset 0 0 0 3px rgba(255, 255, 255, .55), inset 0 0 0 6px rgba(140, 12, 12, .9); }
html[data-dev="deck"] .cw-foot { padding: 4px 14px 14px; gap: 10px; }
html[data-dev="deck"] .cw-prog { margin: 0 14px 14px; border-radius: 6px; box-shadow: inset 0 0 0 2px rgba(248, 180, 73, .4); }
html[data-dev="deck"] .cw-prog > i { border-radius: 4px; background: repeating-linear-gradient(90deg, #f8b449 0 8px, transparent 8px 11px); }
/* Apagon: la luz de la mesa (un rayo y una barra de laton), no una bateria */
html[data-dev="deck"] #chxBat { gap: 10px; padding: 8px 14px 8px 10px; border-radius: 999px; font: 18px/1 var(--sans); background: rgba(10, 26, 18, .9); box-shadow: inset 0 0 0 2px rgba(248, 180, 73, .55), 0 8px 24px rgba(0, 0, 0, .5); }
html[data-dev="deck"] #chxBat::before { content: ""; width: 26px; height: 26px; background: url(../assets/icons/flash.webp) center / contain no-repeat; image-rendering: pixelated; }
html[data-dev="deck"] .cb-cell { width: 70px; height: 14px; padding: 2px; border: 0; border-radius: 7px; background: rgba(0, 0, 0, .45); box-shadow: inset 0 0 0 2px rgba(248, 180, 73, .45); }
html[data-dev="deck"] .cb-cell::after { display: none; }
html[data-dev="deck"] .cb-lvl { border-radius: 5px; background: linear-gradient(#ffe08a, #f8b449); }
html[data-dev="deck"] #chxBat.save .cb-lvl { background: linear-gradient(#ffc06a, #e98a2a); } html[data-dev="deck"] #chxBat.crit .cb-lvl { background: linear-gradient(#ff8a7a, #e4574c); }
html[data-dev="deck"] .cb-pct { color: #ffe7ae; }
html[data-dev="deck"] .cb-toast { bottom: 50px; padding: 12px 16px; border-radius: 14px; background: linear-gradient(#143a29, #0c2018); box-shadow: inset 0 0 0 2px #f8b449, 0 12px 30px rgba(0, 0, 0, .55); }
html[data-dev="deck"] .cb-toast b { font: 16px/1.1 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--brass-lt); }
html[data-dev="deck"] .cb-toast span { font: 18px/1.2 var(--sans); opacity: .85; }
html[data-dev="deck"] #chxDead { font: 22px/1.2 var(--sans); color: rgba(255, 231, 174, .75); background: #030705; }
html[data-dev="deck"] #chxDead .cd-bat { width: 96px; height: 96px; border: 0; border-radius: 0; background: url(../assets/icons/flash.webp) center / contain no-repeat; image-rendering: pixelated; filter: grayscale(.6) brightness(.8); }
html[data-dev="deck"] #chxDead .cd-bat::after, html[data-dev="deck"] #chxDead .cd-bat i { display: none; }
/* Pantallazo: la mesa del crupier, no la pantalla azul de Windows */
html[data-dev="deck"] #bsodFx { background: radial-gradient(ellipse 900px 600px at 50% 30%, #1f5c40, #0c2018 70%, #060d09); color: var(--paper); }
html[data-dev="deck"] #bsodFx .bs-in { left: 50%; top: 50%; transform: translate(-50%, -50%); max-width: 820px; width: calc(100% - 80px); text-align: center; }
html[data-dev="deck"] #bsodFx .bs-sad { width: 132px; height: 132px; margin: 0 auto 3vh; font-size: 0; background: url(../assets/icons/boss_hat.webp) center / contain no-repeat; image-rendering: pixelated; animation: bs-hat 1.2s steps(4, end) infinite; }
@keyframes bs-hat { 50% { transform: rotate(-8deg) translateY(-6px); } }
html[data-dev="deck"] #bsodFx p { font-family: var(--sans); font-size: 30px; color: var(--paper); }
html[data-dev="deck"] #bsodFx .bs-c { font-family: var(--mono); font-size: 18px; letter-spacing: .06em; text-transform: uppercase; color: var(--brass-lt); }
html[data-dev="deck"] #bsodFx .bs-row { justify-content: center; font-family: var(--mono); font-size: 16px; color: rgba(242, 233, 214, .6); }
html[data-dev="deck"] #bsodFx .bs-qr { width: 64px; background: url(../assets/icons/chips.webp) center / contain no-repeat; image-rendering: pixelated; }
html.reduce-motion[data-dev="deck"] #bsodFx .bs-sad { animation: none; }
html[data-dev="deck"] .cb-toast { max-width: 360px; } html[data-dev="deck"] .cb-toast b { white-space: nowrap; }
html[data-dev="deck"] #bsodFx .bs-qr { border: 0; outline: 0; box-shadow: none; background-color: transparent; padding: 0; }
