/* Un mismo bingo con varios juegos. La estructura es común; cada juego ([data-mode]) trae sus colores, tipografías y adornos.
   calle   — rojo tomate, ticket de papel con muescas, sello cobalto; Bungee + Nunito
   navidad — verde abeto, tarjeta crema con filete dorado, sello de lacre; Fraunces + Figtree
   coche   — asfalto, cabecera de cartel de autovía verde, línea amarilla; Overpass
   playa   — mar turquesa, cartón color arena con olas, sello coral; Fredoka + Nunito
   aeropuerto — terminal de noche, panel de salidas, tarjeta de embarque con código de barras, sello de maleta; Barlow
   oficina — azul corporativo, hoja cuadriculada con pinza, pósits, sello de taza de café; Space Grotesk */
:root{color-scheme:dark;
--bg:#1f1a17;--bg2:#15110f;--paper:#fffdf8;--cell:#fff;--ink:#1f1a17;--on:#fff;--hi:#ffd23f;--hiInk:#1f1a17;
--accent:#2546d8;--accentInk:#fff;--ghost:#efe7dc;--stamp:37,70,216;--line:#e4d9cb;--muted:#6f625a;--soft:#4a3f38;
--win:#fff4c2;--winB:#e0b100;--fD:Bungee,Impact,sans-serif;--fB:Nunito,system-ui,sans-serif;--r:14px;--rc:10px}
[data-mode=calle]{--bg:#e8432e;--bg2:#c8321f}
[data-mode=navidad]{--bg:#0f2e23;--bg2:#0a2119;--paper:#fbf6ec;--cell:#fffdf8;--ink:#2a1d17;--on:#f6efe0;--hi:#d9ac4f;--hiInk:#2a1d17;
 --accent:#b3202a;--ghost:#efe4cf;--stamp:179,32,42;--line:#e6d9c2;--muted:#7a675a;--soft:#4f4036;--win:#fbecc4;--winB:#d9ac4f;
 --fD:Fraunces,Georgia,serif;--fB:Figtree,system-ui,sans-serif;--r:10px;--rc:8px}
[data-mode=coche]{--bg:#1d2430;--bg2:#141922;--paper:#f4f5f7;--cell:#fff;--ink:#111827;--on:#f3f4f6;--hi:#f5c400;--hiInk:#111827;
 --accent:#0f7a43;--ghost:#e5e7eb;--stamp:15,122,67;--line:#d6d9de;--muted:#5b6472;--soft:#374151;--win:#fff6c2;--winB:#f5c400;
 --fD:Overpass,system-ui,sans-serif;--fB:Overpass,system-ui,sans-serif;--r:8px;--rc:6px}
[data-mode=playa]{--bg:#0b8fa8;--bg2:#07728a;--paper:#fff3d6;--cell:#fffbf0;--ink:#173a4a;--on:#fff;--hi:#ffd166;--hiInk:#173a4a;
 --accent:#f25f5c;--ghost:#fbe6bd;--stamp:242,95,92;--line:#f0dcae;--muted:#7a6a4f;--soft:#4b4636;--win:#ffe9a8;--winB:#f4a261;
 --fD:Fredoka,Nunito,sans-serif;--fB:Nunito,system-ui,sans-serif;--r:22px;--rc:14px}

[data-mode=aeropuerto]{--bg:#121826;--bg2:#0b101b;--paper:#fff;--cell:#fff;--ink:#121826;--on:#eef2f8;--hi:#ffc72c;--hiInk:#121826;
 --accent:#1d4ed8;--ghost:#e7ecf4;--stamp:29,78,216;--line:#d8dee9;--muted:#5b6678;--soft:#3a4457;--win:#fff3c4;--winB:#ffc72c;
 --fD:'Barlow Condensed',system-ui,sans-serif;--fB:Barlow,system-ui,sans-serif;--r:14px;--rc:6px}
[data-mode=oficina]{--bg:#1e3a5f;--bg2:#152b47;--paper:#fff;--cell:#fff;--ink:#1b2433;--on:#f1f5fb;--hi:#ffe066;--hiInk:#1b2433;
 --accent:#2563eb;--ghost:#e8edf5;--stamp:124,74,30;--line:#d5dde9;--muted:#5d6b80;--soft:#3a4659;--win:#fff4b8;--winB:#f2c200;
 --fD:'Space Grotesk',system-ui,sans-serif;--fB:'Space Grotesk',system-ui,sans-serif;--r:6px;--rc:4px}
*{box-sizing:border-box;min-width:0}
[hidden]{display:none!important}
body{margin:0;background:var(--bg);color:var(--on);font:16px/1.5 var(--fB);overflow-x:clip;transition:background .3s;
 padding:0 env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}
button,input,textarea{font:inherit}
button:focus-visible,input:focus-visible,textarea:focus-visible,a:focus-visible{outline:3px solid var(--hi);outline-offset:2px}
.kicker{margin:0;font-weight:800;font-size:13px;letter-spacing:.16em;text-transform:uppercase;color:var(--hi)}
h1{font:400 clamp(34px,9vw,54px)/1.05 var(--fD);margin:4px 0 0;text-wrap:balance}
h1 em{font-style:normal;color:var(--hi)}
.sub{margin:10px auto 0;max-width:36ch;opacity:.92;font-weight:600}
.sub b{color:var(--hi)}

/* ---------- Pantalla de elegir juego ---------- */
#picker{display:flex;flex-direction:column;min-height:100vh;min-height:100svh;max-width:680px;margin:0 auto;padding:calc(34px + env(safe-area-inset-top)) max(4vw,14px) 40px}
.phead{text-align:center;margin-bottom:24px}
.pfoot{text-align:center;margin-top:auto;padding-top:32px;font:600 13px/1.4 Nunito,sans-serif;opacity:.7}
.pfoot .pnote{font-weight:500;font-size:12px;opacity:.8}
.pfoot a{color:var(--hi);font-weight:800;text-decoration:underline;text-underline-offset:2px}
.phead h1{font:800 clamp(36px,10vw,56px)/1.05 Fraunces,Georgia,serif}
.tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));grid-auto-rows:1fr;gap:12px}
.tile{position:relative;display:flex;gap:14px;align-items:center;text-align:start;border:0;border-radius:18px;padding:18px;min-height:110px;cursor:pointer;overflow:hidden;
 background:var(--t);color:var(--tInk,#fff);box-shadow:0 6px 0 rgba(0,0,0,.25);transition:transform .15s}
.tile:hover{transform:translateY(-2px)}.tile:active{transform:translateY(2px);box-shadow:0 2px 0 rgba(0,0,0,.25)}
.tile svg{width:46px;height:46px;flex:none;color:var(--tHi)}
.tile b{display:block;font:var(--tFont);line-height:1.1}
.tile span{display:block;font:600 14px/1.35 Nunito,sans-serif;opacity:.9;margin-top:4px}
.tile .cont{position:absolute;top:10px;right:12px;font:800 11px Nunito,sans-serif;letter-spacing:.08em;text-transform:uppercase;background:rgba(0,0,0,.25);padding:3px 8px;border-radius:99px}
.t-calle{--t:#e8432e;--tHi:#ffd23f;--tFont:400 22px Bungee,sans-serif}
.t-navidad{--t:radial-gradient(circle,rgba(255,255,255,.55) 0 1.4px,transparent 2px) 0 0/34px 30px,radial-gradient(circle,rgba(255,255,255,.3) 0 1px,transparent 1.6px) 17px 15px/34px 30px,#0f2e23;--tHi:#d9ac4f;--tFont:italic 700 25px Fraunces,serif}
.t-coche{--t:#0f7a43;--tHi:#f5c400;--tFont:900 23px Overpass,sans-serif;box-shadow:inset 0 0 0 3px #0f7a43,inset 0 0 0 5px #fff,0 6px 0 rgba(0,0,0,.25)!important}
.t-aeropuerto{--t:linear-gradient(160deg,#1d3b6e,#121826 70%);--tHi:#ffc72c;--tFont:800 29px 'Barlow Condensed',sans-serif}
.t-aeropuerto::after{content:"";position:absolute;right:-40px;bottom:-56px;width:170px;height:100px;border:2px dashed rgba(255,199,44,.45);border-radius:50%}
.t-oficina{--t:linear-gradient(rgba(255,255,255,.07) 1px,transparent 1px) 0 0/18px 18px,linear-gradient(90deg,rgba(255,255,255,.07) 1px,transparent 1px) 0 0/18px 18px,#1e3a5f;--tHi:#ffe066;--tFont:700 24px 'Space Grotesk',sans-serif}
.t-oficina::after{content:"";position:absolute;right:14px;bottom:-8px;width:30px;height:30px;background:#ffe066;transform:rotate(8deg);box-shadow:0 2px 4px rgba(0,0,0,.3)}
.t-playa{--t:linear-gradient(180deg,#10b3c9,#0b8fa8 84%,#f2d9a0 84%);--tHi:#ffd166;--tFont:700 24px Fredoka,sans-serif}

/* ---------- Juego ---------- */
.deco{padding-top:env(safe-area-inset-top)}
.deco svg{display:none;width:100%}
[data-mode=calle] .d-calle{display:block;height:56px;order:2}
[data-mode=navidad] .d-navidad{display:block;height:84px;margin-bottom:-30px}
[data-mode=coche] .d-coche{display:block;height:22px}
[data-mode=playa] .d-playa{display:block;height:34px}
[data-mode=aeropuerto] .d-aeropuerto{display:block;height:44px}
[data-mode=oficina] .d-oficina{display:block;height:58px;margin-bottom:-18px}
[data-mode=calle] .deco{display:flex;flex-direction:column}
.bulbs ellipse{animation:blink 2.4s infinite ease-in-out}
.bulbs ellipse:nth-child(3n+2){animation-delay:.8s}.bulbs ellipse:nth-child(3n){animation-delay:1.6s}
@keyframes blink{0%,100%{opacity:1}50%{opacity:.35}}
.lane{animation:drive 1s linear infinite}@keyframes drive{to{stroke-dashoffset:-38}}
.wave{animation:sway 4s ease-in-out infinite alternate}@keyframes sway{to{transform:translateX(-50px)}}

.ghead{padding:10px max(5vw,16px) 0;text-align:center;position:relative}
.back{position:absolute;left:max(3vw,10px);top:4px;border:0;background:var(--bg2);color:var(--on);font-weight:800;font-size:14px;min-height:36px;padding:0 12px;border-radius:99px;cursor:pointer}
.ghead .kicker{margin-top:38px}
main{max-width:620px;margin:0 auto;padding:20px max(4vw,12px) 40px}
.bar{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;align-items:center;margin-bottom:16px}
.seg{display:flex;background:var(--bg2);border-radius:calc(var(--rc) + 3px);padding:3px}
.seg button{border:0;background:none;color:var(--on);font-weight:800;min-height:40px;padding:0 13px;border-radius:var(--rc);cursor:pointer}
.seg button[aria-pressed=true]{background:var(--hi);color:var(--hiInk)}
.btn{border:0;min-height:44px;padding:0 18px;border-radius:var(--rc);font-weight:800;cursor:pointer;background:var(--accent);color:var(--accentInk)}
.btn.hi{background:var(--hi);color:var(--hiInk)}
.btn.ghost{background:var(--ghost);color:var(--ink)}
.btn:active{transform:translateY(1px)}

.card{background:var(--paper);color:var(--ink);border-radius:var(--r);padding:14px;position:relative;box-shadow:0 18px 34px rgba(0,0,0,.3)}
.chead{display:flex;justify-content:space-between;align-items:flex-end;gap:8px;padding:2px 6px 10px;margin-bottom:12px;border-bottom:2px dashed var(--line)}
.chead .who{display:block;font:400 20px/1.15 var(--fD);color:var(--accent)}
.chead .table{font-size:13px;font-weight:700;color:var(--muted)}
.chead .table b{color:var(--ink);letter-spacing:.08em}
#clock{font-weight:800;color:var(--muted);font-size:14px;white-space:nowrap;font-variant-numeric:tabular-nums}
.grid{display:grid;gap:6px;grid-auto-rows:1fr}
.cell{position:relative;min-height:92px;border:2px solid var(--line);border-radius:var(--rc);background:var(--cell);color:var(--ink);padding:5px 4px;
 display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;text-align:center;cursor:pointer;font-weight:800;font-size:13.5px;line-height:1.14;
 hyphens:auto;overflow:hidden;-webkit-tap-highlight-color:transparent}
.g3 .cell{font-size:16px;min-height:110px}.g5 .cell{font-size:11.5px;padding:4px 2px;min-height:76px}
.cell svg.ic{width:20px;height:20px;flex:none;color:var(--c)}
.g3 .cell svg.ic{width:32px;height:32px}.g5 .cell svg.ic{width:15px;height:15px}
.cell .t{overflow-wrap:break-word;max-width:100%;position:relative}
.cell .stamp{position:absolute;left:8%;top:50%;width:84%;aspect-ratio:1;margin-top:-42%;border-radius:50%;pointer-events:none;mix-blend-mode:multiply;
 background:radial-gradient(circle at 36% 32%,rgba(var(--stamp),.5),rgba(var(--stamp),.78) 70%);
 transform:scale(0) rotate(-25deg);transition:transform .22s cubic-bezier(.3,1.6,.5,1)}
.cell.on .stamp{transform:scale(1) rotate(0)}
.cell.on{border-color:rgb(var(--stamp))}
.cell.win{background:var(--win);border-color:var(--winB)}
.cell.free{background:var(--hi);border-color:var(--winB);color:var(--hiInk);cursor:default}
.cell.free svg{width:26px;height:26px}
.cell.free .t{font:400 13px/1.1 var(--fD)}

.score{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:22px}
.score div{background:var(--bg2);border-radius:var(--r);padding:10px 6px;text-align:center}
.score b{display:block;font:400 clamp(22px,6vw,30px)/1.1 var(--fD);color:var(--hi);font-variant-numeric:tabular-nums}
.score span{font-size:13px;font-weight:700;opacity:.88}
.meter{height:10px;background:var(--bg2);border-radius:99px;margin-top:10px;overflow:hidden}
.meter i{display:block;height:100%;width:0;background:var(--hi);border-radius:99px;transition:width .3s}

.panel{background:var(--paper);color:var(--ink);border-radius:var(--r);padding:18px;margin-top:20px}
.panel h2{font:400 20px/1.2 var(--fD);margin:0 0 8px;color:var(--bg2)}
.panel p{margin:0 0 10px;color:var(--soft)}
.lbl{display:block;font-weight:800;font-size:14px;margin:4px 0 6px}.lbl span{font-weight:600;color:var(--muted)}
.tablecode{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;margin:16px 0 10px;padding-top:14px;border-top:2px dashed var(--line)}
.tablecode span{font-size:14px;font-weight:700;color:var(--muted)}
.tablecode b{font:400 28px/1 var(--fD);letter-spacing:.1em;color:var(--accent)}
.row{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.row input{flex:1 1 140px;min-height:44px;font-size:16px;border:2px solid var(--line);border-radius:var(--rc);padding:0 12px;background:#fff;color:var(--ink)}
.row input.up{text-transform:uppercase}
textarea{width:100%;min-height:110px;font-size:16px;border:2px solid var(--line);border-radius:var(--rc);padding:10px;background:#fff;color:var(--ink);resize:vertical}
.hint{font-size:14px;font-weight:700;color:var(--muted)!important;margin:8px 0 12px!important}
.msg{font-weight:800;color:var(--accent);min-height:1.5em;margin:8px 0 0}
ol{margin:0;padding-inline-start:20px;color:var(--soft)}ol li{margin:5px 0}
.foot{text-align:center;margin-top:26px}
.linkish{border:0;background:none;color:var(--on);font-weight:800;text-decoration:underline;cursor:pointer;min-height:44px}

.toast{position:fixed;left:50%;top:calc(18px + env(safe-area-inset-top));transform:translate(-50%,-170%);background:var(--hi);color:var(--hiInk);
 font:400 22px var(--fD);padding:12px 24px;border-radius:999px;box-shadow:0 10px 24px rgba(0,0,0,.3);transition:transform .35s cubic-bezier(.3,1.5,.5,1);z-index:20;white-space:nowrap}
.toast.show{transform:translate(-50%,0)}
.win-ov{position:fixed;inset:0;background:rgba(10,8,6,.74);display:none;place-items:center;z-index:30;padding:20px}
.win-ov.show{display:grid}
.win-card{background:var(--paper);color:var(--ink);border-radius:var(--r);padding:26px 22px 24px;text-align:center;max-width:360px;width:100%;box-shadow:0 20px 50px rgba(0,0,0,.5)}
.win-star{width:44px;height:44px;color:var(--hi)}
.win-card h2{font:400 clamp(44px,14vw,62px)/1 var(--fD);margin:2px 0 0;color:var(--accent)}
.win-card p{font-weight:700;margin:10px 0 18px;font-size:17px}
.qr-card h2{font-size:clamp(28px,8vw,36px)}
.qr-card p{margin:8px 0 14px;font-size:15px}
.qr-box{background:#fff;border-radius:12px;padding:6px;margin:0 auto;width:min(100%,280px);box-shadow:inset 0 0 0 1px var(--line)}
.qr-box svg{display:block;width:100%;height:auto}
.qr-card .qr-code{margin:12px 0 16px;font-weight:700;color:var(--muted)}
.qr-card .qr-code b{color:var(--ink);letter-spacing:.08em}
canvas#fx{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;z-index:40}

/* ---------- Detalles de cada juego ---------- */
/* Callejero: ticket de papel con muescas y sombra dura */
[data-mode=calle] .card{border-radius:18px;box-shadow:0 10px 0 var(--bg2),0 18px 30px rgba(0,0,0,.25)}
[data-mode=calle] .card::before,[data-mode=calle] .card::after{content:"";position:absolute;top:50%;width:22px;height:22px;border-radius:50%;background:var(--bg);transform:translateY(-50%)}
[data-mode=calle] .card::before{left:-11px}[data-mode=calle] .card::after{right:-11px}
[data-mode=calle] .chead .who{color:var(--bg2)}
[data-mode=calle] h1{text-shadow:0 3px 0 var(--bg2)}
[data-mode=calle] .seg,[data-mode=calle] .btn,[data-mode=calle] .back{border-radius:999px}
[data-mode=calle] .seg button{border-radius:999px}
[data-mode=calle] .btn.hi{box-shadow:0 3px 0 var(--bg2)}
[data-mode=calle] .win-card{background:var(--hi);box-shadow:0 12px 0 #b98d00}
[data-mode=calle] .win-star{color:var(--bg)}
[data-mode=calle] .win-card h2{color:var(--bg2)}

/* Navidad: tarjeta de felicitación con doble filete dorado y lazo */
[data-mode=navidad] body,body[data-mode=navidad]{background:
 radial-gradient(circle at 20% 30%,rgba(255,255,255,.07) 0 1.5px,transparent 2.5px) 0 0/90px 90px,
 radial-gradient(circle at 70% 60%,rgba(255,255,255,.05) 0 1px,transparent 2px) 0 0/60px 60px,var(--bg)}
[data-mode=navidad] h1{font-weight:800}
[data-mode=navidad] h1 em{font-style:italic;font-weight:700}
[data-mode=navidad] .card{margin-top:26px;padding:16px;box-shadow:inset 0 0 0 5px var(--paper),inset 0 0 0 6px var(--hi),inset 0 0 0 9px var(--paper),inset 0 0 0 10px var(--hi),0 20px 40px rgba(0,0,0,.4)}
[data-mode=navidad] .card::before{content:"";position:absolute;left:50%;top:-14px;width:34px;height:34px;transform:translateX(-50%) rotate(45deg);background:var(--accent);border-radius:4px 50% 4px 50%;box-shadow:0 3px 0 #8c1620}
[data-mode=navidad] .chead{padding-top:8px;border-bottom-style:solid;border-bottom-width:1px}
[data-mode=navidad] .chead .who,[data-mode=navidad] .win-card h2{font-style:italic;font-weight:700}
[data-mode=navidad] .chead .who{font-size:22px}
[data-mode=navidad] .cell{border-width:1px;font-weight:700}
[data-mode=navidad] .cell.free{background:var(--accent);border-color:#8c1620;color:#fff}
[data-mode=navidad] .cell.free svg{color:var(--hi)}
[data-mode=navidad] .cell.free .t,[data-mode=navidad] .toast{font-style:italic;font-weight:700}
[data-mode=navidad] .panel h2,[data-mode=navidad] .score b,[data-mode=navidad] .tablecode b{font-weight:800}
[data-mode=navidad] .seg,[data-mode=navidad] .score div{border:1px solid rgba(217,172,79,.3)}
[data-mode=navidad] .meter{height:8px}
[data-mode=navidad] .meter i{background:repeating-linear-gradient(-45deg,var(--accent) 0 8px,#fff 8px 16px)}
[data-mode=navidad] .win-card{box-shadow:inset 0 0 0 5px var(--paper),inset 0 0 0 6px var(--hi),0 20px 50px rgba(0,0,0,.5)}
[data-mode=navidad] .toast{border-radius:12px}

/* Viaje en coche: cabecera como cartel verde de autovía, rayas de carretera */
[data-mode=coche] h1,[data-mode=coche] .panel h2,[data-mode=coche] .score b,[data-mode=coche] .tablecode b,[data-mode=coche] .win-card h2,[data-mode=coche] .toast,[data-mode=coche] .chead .who,[data-mode=coche] .cell.free .t{font-weight:900}
[data-mode=coche] h1{letter-spacing:-.01em}
[data-mode=coche] .chead{background:var(--accent);color:#fff;border:0;border-radius:6px;padding:10px 12px;box-shadow:inset 0 0 0 2px var(--accent),inset 0 0 0 4px #fff}
[data-mode=coche] .chead .who{color:#fff}
[data-mode=coche] .chead .table,[data-mode=coche] #clock{color:rgba(255,255,255,.85)}
[data-mode=coche] .chead .table b{color:var(--hi)}
[data-mode=coche] .card{border-top:8px solid var(--hi)}
[data-mode=coche] .cell{font-weight:800}
[data-mode=coche] .meter i{background:repeating-linear-gradient(90deg,var(--hi) 0 18px,transparent 18px 28px)}
[data-mode=coche] .panel{border-left:6px solid var(--accent)}
[data-mode=coche] .panel h2{color:var(--accent)}

/* Playa: mar degradado, cartón color arena con borde de olas */
body[data-mode=playa]{background:linear-gradient(180deg,#10b3c9 0,#0b8fa8 340px,#087a90 100%) fixed}
[data-mode=playa] .deco{background:transparent}
[data-mode=playa] h1{font-weight:700}
[data-mode=playa] .panel h2,[data-mode=playa] .score b,[data-mode=playa] .tablecode b,[data-mode=playa] .win-card h2,[data-mode=playa] .toast,[data-mode=playa] .chead .who,[data-mode=playa] .cell.free .t{font-weight:700}
[data-mode=playa] .card{margin-top:18px;box-shadow:0 14px 0 #e8cf97,0 22px 34px rgba(0,0,0,.25)}
[data-mode=playa] .card::before{content:"";position:absolute;left:0;right:0;top:-12px;height:14px;
 background:radial-gradient(circle at 10px 14px,var(--paper) 10px,transparent 10.5px) 0 0/20px 14px repeat-x}
[data-mode=playa] .chead{border-bottom-style:dotted}
[data-mode=playa] .seg,[data-mode=playa] .btn,[data-mode=playa] .back,[data-mode=playa] .seg button{border-radius:999px}
[data-mode=playa] .panel h2{color:#07728a}

/* Aeropuerto: terminal de noche, panel de salidas y tarjeta de embarque con código de barras */
[data-mode=aeropuerto] h1,[data-mode=aeropuerto] .panel h2,[data-mode=aeropuerto] .score b,[data-mode=aeropuerto] .tablecode b,[data-mode=aeropuerto] .win-card h2,[data-mode=aeropuerto] .toast,[data-mode=aeropuerto] .chead .who,[data-mode=aeropuerto] .cell.free .t{font-weight:800;text-transform:uppercase;letter-spacing:.01em}
[data-mode=aeropuerto] .card{margin-top:22px;padding-bottom:48px;
 background:repeating-linear-gradient(90deg,#121826 0 2px,transparent 2px 5px,#121826 5px 6px,transparent 6px 9px,#121826 9px 12px,transparent 12px 15px,#121826 15px 16px,transparent 16px 20px) left 18px bottom 14px/calc(100% - 36px) 22px no-repeat,var(--paper)}
[data-mode=aeropuerto] .chead{position:relative;margin:-14px -14px 14px;padding:14px 18px;background:var(--accent);color:#fff;border:0;border-radius:var(--r) var(--r) 0 0;border-bottom:2px dashed rgba(255,255,255,.55)}
[data-mode=aeropuerto] .chead::before,[data-mode=aeropuerto] .chead::after{content:"";position:absolute;bottom:-12px;width:22px;height:22px;border-radius:50%;background:var(--bg)}
[data-mode=aeropuerto] .chead::before{left:-11px}
[data-mode=aeropuerto] .chead::after{right:-11px}
[data-mode=aeropuerto] .chead .who{color:#fff;font-size:24px}
[data-mode=aeropuerto] .chead .table,[data-mode=aeropuerto] #clock{color:rgba(255,255,255,.85)}
[data-mode=aeropuerto] .chead .table b{color:var(--hi)}
[data-mode=aeropuerto] .cell{font-weight:600}
[data-mode=aeropuerto] .cell.free{background:var(--hi);border-color:#e0ad00}
[data-mode=aeropuerto] .panel{border-left:6px solid var(--hi)}
[data-mode=aeropuerto] .panel h2{color:var(--accent)}
[data-mode=aeropuerto] .meter i{background:repeating-linear-gradient(90deg,var(--hi) 0 14px,transparent 14px 22px)}

/* Oficina: moqueta azul, hoja cuadriculada con pinza y pósits */
body[data-mode=oficina]{background:radial-gradient(circle,rgba(255,255,255,.05) 1px,transparent 1.5px) 0 0/8px 8px,var(--bg)}
[data-mode=oficina] h1,[data-mode=oficina] .panel h2,[data-mode=oficina] .score b,[data-mode=oficina] .tablecode b,[data-mode=oficina] .win-card h2,[data-mode=oficina] .toast,[data-mode=oficina] .chead .who,[data-mode=oficina] .cell.free .t{font-weight:700;letter-spacing:-.02em}
[data-mode=oficina] .card{margin-top:30px;background:linear-gradient(#e6edf7 1px,transparent 1px) 0 0/16px 16px,linear-gradient(90deg,#e6edf7 1px,transparent 1px) 0 0/16px 16px,var(--paper)}
[data-mode=oficina] .card::before{content:"";position:absolute;left:50%;top:-30px;width:80px;height:44px;transform:translateX(-50%);background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 44'%3E%3Cpath d='M22 22V8a6 6 0 0 1 6-6h24a6 6 0 0 1 6 6v14' fill='none' stroke='%239aa5b4' stroke-width='4'/%3E%3Cpath d='M8 20h64l-6 22H14z' fill='%231b2433'/%3E%3Cpath d='M14 24h52' stroke='%233a4659' stroke-width='2'/%3E%3C/svg%3E") center/contain no-repeat}
[data-mode=oficina] .chead{border-bottom:2px solid var(--accent)}
[data-mode=oficina] .cell{box-shadow:0 1px 0 var(--line);font-weight:700}
[data-mode=oficina] .cell .t{hyphens:auto;-webkit-hyphens:auto}
[data-mode=oficina] .g5 .cell{font-size:10.5px;letter-spacing:-.02em}
[data-mode=oficina] .cell.free{background:var(--hi);border-color:#e0c200;transform:rotate(-2deg);box-shadow:0 3px 6px rgba(0,0,0,.18)}
[data-mode=oficina] .panel{border-top:6px solid var(--hi)}
[data-mode=oficina] .panel h2{color:var(--accent)}
[data-mode=oficina] .meter i{background:repeating-linear-gradient(90deg,var(--accent) 0 10px,#5b8cf5 10px 20px)}

/* Navidad más festiva: guirnalda arriba (en el HTML), nieve cayendo, acebo en las esquinas del cartón y del menú */
[data-mode=navidad] #game{position:relative;z-index:1}
[data-mode=navidad] body::before,body[data-mode=navidad]::before{content:"";position:fixed;inset:0;pointer-events:none;z-index:0;
 background:radial-gradient(circle,rgba(255,255,255,.8) 0 2px,transparent 3px) 0 0/140px 140px,
  radial-gradient(circle,rgba(255,255,255,.55) 0 1.5px,transparent 2.5px) 60px 40px/220px 220px,
  radial-gradient(circle,rgba(255,255,255,.9) 0 2.6px,transparent 3.6px) 120px 90px/300px 300px;
 animation:snow 14s linear infinite}
@keyframes snow{to{background-position:0 280px,60px 260px,120px 390px}}
[data-mode=navidad] .card::after{content:"";position:absolute;inset:-12px -8px;pointer-events:none;
 background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 40'%3E%3Cg fill='%231d7a48' stroke='%230b3d26' stroke-width='1' stroke-linejoin='round'%3E%3Cpath d='M30 22L24 15 20 19 14 12 10 17 2 14 6 22 2 30 10 27 14 32 20 25 24 29Z'/%3E%3Cpath d='M30 22L36 15 40 19 46 12 50 17 58 14 54 22 58 30 50 27 46 32 40 25 36 29Z'/%3E%3C/g%3E%3Cg fill='%23c4212b' stroke='%237d1219' stroke-width='.8'%3E%3Ccircle cx='26' cy='25' r='4'/%3E%3Ccircle cx='34' cy='25' r='4'/%3E%3Ccircle cx='30' cy='19' r='4'/%3E%3C/g%3E%3Ccircle cx='29' cy='17.5' r='1.2' fill='%23fff' opacity='.7'/%3E%3C/svg%3E") left top/64px no-repeat,url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 40'%3E%3Cg fill='%231d7a48' stroke='%230b3d26' stroke-width='1' stroke-linejoin='round'%3E%3Cpath d='M30 22L24 15 20 19 14 12 10 17 2 14 6 22 2 30 10 27 14 32 20 25 24 29Z'/%3E%3Cpath d='M30 22L36 15 40 19 46 12 50 17 58 14 54 22 58 30 50 27 46 32 40 25 36 29Z'/%3E%3C/g%3E%3Cg fill='%23c4212b' stroke='%237d1219' stroke-width='.8'%3E%3Ccircle cx='26' cy='25' r='4'/%3E%3Ccircle cx='34' cy='25' r='4'/%3E%3Ccircle cx='30' cy='19' r='4'/%3E%3C/g%3E%3Ccircle cx='29' cy='17.5' r='1.2' fill='%23fff' opacity='.7'/%3E%3C/svg%3E") right bottom/64px no-repeat}
[data-mode=navidad] .panel{position:relative}
[data-mode=navidad] .panel::after{content:"";position:absolute;right:-8px;top:-14px;width:46px;height:31px;pointer-events:none;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 40'%3E%3Cg fill='%231d7a48' stroke='%230b3d26' stroke-width='1' stroke-linejoin='round'%3E%3Cpath d='M30 22L24 15 20 19 14 12 10 17 2 14 6 22 2 30 10 27 14 32 20 25 24 29Z'/%3E%3Cpath d='M30 22L36 15 40 19 46 12 50 17 58 14 54 22 58 30 50 27 46 32 40 25 36 29Z'/%3E%3C/g%3E%3Cg fill='%23c4212b' stroke='%237d1219' stroke-width='.8'%3E%3Ccircle cx='26' cy='25' r='4'/%3E%3Ccircle cx='34' cy='25' r='4'/%3E%3Ccircle cx='30' cy='19' r='4'/%3E%3C/g%3E%3Ccircle cx='29' cy='17.5' r='1.2' fill='%23fff' opacity='.7'/%3E%3C/svg%3E") center/contain no-repeat}
.t-navidad::after{content:"";position:absolute;right:6px;bottom:4px;width:52px;height:35px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 40'%3E%3Cg fill='%231d7a48' stroke='%230b3d26' stroke-width='1' stroke-linejoin='round'%3E%3Cpath d='M30 22L24 15 20 19 14 12 10 17 2 14 6 22 2 30 10 27 14 32 20 25 24 29Z'/%3E%3Cpath d='M30 22L36 15 40 19 46 12 50 17 58 14 54 22 58 30 50 27 46 32 40 25 36 29Z'/%3E%3C/g%3E%3Cg fill='%23c4212b' stroke='%237d1219' stroke-width='.8'%3E%3Ccircle cx='26' cy='25' r='4'/%3E%3Ccircle cx='34' cy='25' r='4'/%3E%3Ccircle cx='30' cy='19' r='4'/%3E%3C/g%3E%3Ccircle cx='29' cy='17.5' r='1.2' fill='%23fff' opacity='.7'/%3E%3C/svg%3E") center/contain no-repeat}
.t-navidad::before{content:"";position:absolute;left:0;right:0;top:0;height:14px;
 background:radial-gradient(ellipse 4px 6px at 50% 9px,#e5484d 90%,transparent) 0 0/44px 14px,radial-gradient(ellipse 4px 6px at 50% 9px,#f5c542 90%,transparent) 22px 0/44px 14px;
 border-top:2px solid #073220}
/* Sello de tachar: cada juego tacha con una forma suya, distinta de su icono (calle: chincheta de mapa, Navidad: abeto, coche: volante, playa: estrella de mar, oficina: taza de café, aeropuerto: maleta) */
[data-mode=calle] .cell .stamp{border-radius:0;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath fill-rule='evenodd' d='M50 3C29 3 15 18 15 38c0 27 35 59 35 59s35-32 35-59C85 18 71 3 50 3zm0 50a15 15 0 1 1 0-30 15 15 0 0 1 0 30z'/%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 100 100'%3E%3Cpath fill-rule='evenodd' d='M50 3C29 3 15 18 15 38c0 27 35 59 35 59s35-32 35-59C85 18 71 3 50 3zm0 50a15 15 0 1 1 0-30 15 15 0 0 1 0 30z'/%3E%3C/svg%3E") center/contain no-repeat}
[data-mode=navidad] .cell .stamp{border-radius:0;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 2L23 36h12L14 62h15L7 88h37v10h12V88h37L71 62h15L65 36h12z'/%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 100 100'%3E%3Cpath d='M50 2L23 36h12L14 62h15L7 88h37v10h12V88h37L71 62h15L65 36h12z'/%3E%3C/svg%3E") center/contain no-repeat}
[data-mode=coche] .cell .stamp{border-radius:0;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath fill-rule='evenodd' d='M50 4a46 46 0 1 0 0 92a46 46 0 1 0 0-92zm0 12a34 34 0 1 1 0 68a34 34 0 1 1 0-68z'/%3E%3Crect x='14' y='43' width='72' height='13' rx='5'/%3E%3Crect x='43.5' y='50' width='13' height='36'/%3E%3Ccircle cx='50' cy='50' r='15'/%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 100 100'%3E%3Cpath fill-rule='evenodd' d='M50 4a46 46 0 1 0 0 92a46 46 0 1 0 0-92zm0 12a34 34 0 1 1 0 68a34 34 0 1 1 0-68z'/%3E%3Crect x='14' y='43' width='72' height='13' rx='5'/%3E%3Crect x='43.5' y='50' width='13' height='36'/%3E%3Ccircle cx='50' cy='50' r='15'/%3E%3C/svg%3E") center/contain no-repeat}
[data-mode=playa] .cell .stamp{border-radius:0;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpolygon points='50%2C12 60.6%2C37.4 88%2C39.6 67.1%2C57.6 73.5%2C84.4 50%2C70 26.5%2C84.4 32.9%2C57.6 12%2C39.6 39.4%2C37.4' stroke='black' stroke-width='13' stroke-linejoin='round'/%3E%3Cg fill='white'%3E%3Ccircle cx='50' cy='30' r='2.6'/%3E%3Ccircle cx='70' cy='46' r='2.6'/%3E%3Ccircle cx='62' cy='70' r='2.6'/%3E%3Ccircle cx='38' cy='70' r='2.6'/%3E%3Ccircle cx='30' cy='46' r='2.6'/%3E%3C/g%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 100 100'%3E%3Cpolygon points='50%2C12 60.6%2C37.4 88%2C39.6 67.1%2C57.6 73.5%2C84.4 50%2C70 26.5%2C84.4 32.9%2C57.6 12%2C39.6 39.4%2C37.4' stroke='black' stroke-width='13' stroke-linejoin='round'/%3E%3Cg fill='white'%3E%3Ccircle cx='50' cy='30' r='2.6'/%3E%3Ccircle cx='70' cy='46' r='2.6'/%3E%3Ccircle cx='62' cy='70' r='2.6'/%3E%3Ccircle cx='38' cy='70' r='2.6'/%3E%3Ccircle cx='30' cy='46' r='2.6'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat}
[data-mode=oficina] .cell .stamp{border-radius:0;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M14 38h56v32a20 20 0 0 1-20 20H34a20 20 0 0 1-20-20z'/%3E%3Cpath fill-rule='evenodd' d='M68 44h8a15 15 0 0 1 0 30h-8V64h8a5 5 0 0 0 0-10h-8z'/%3E%3Cpath d='M30 10c-6 7 6 11 0 20M44 8c-6 7 6 11 0 20M58 10c-6 7 6 11 0 20' fill='none' stroke='black' stroke-width='6' stroke-linecap='round'/%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 100 100'%3E%3Cpath d='M14 38h56v32a20 20 0 0 1-20 20H34a20 20 0 0 1-20-20z'/%3E%3Cpath fill-rule='evenodd' d='M68 44h8a15 15 0 0 1 0 30h-8V64h8a5 5 0 0 0 0-10h-8z'/%3E%3Cpath d='M30 10c-6 7 6 11 0 20M44 8c-6 7 6 11 0 20M58 10c-6 7 6 11 0 20' fill='none' stroke='black' stroke-width='6' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat}
[data-mode=aeropuerto] .cell .stamp{border-radius:0;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M40 4h20a4 4 0 0 1 4 4v18h-7V11H43v15h-7V8a4 4 0 0 1 4-4z'/%3E%3Cpath fill-rule='evenodd' d='M28 26h44a10 10 0 0 1 10 10v44a10 10 0 0 1-10 10H28a10 10 0 0 1-10-10V36a10 10 0 0 1 10-10zM35 37v42h6V37zM59 37v42h6V37z'/%3E%3Ccircle cx='32' cy='94' r='5'/%3E%3Ccircle cx='68' cy='94' r='5'/%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 100 100'%3E%3Cpath d='M40 4h20a4 4 0 0 1 4 4v18h-7V11H43v15h-7V8a4 4 0 0 1 4-4z'/%3E%3Cpath fill-rule='evenodd' d='M28 26h44a10 10 0 0 1 10 10v44a10 10 0 0 1-10 10H28a10 10 0 0 1-10-10V36a10 10 0 0 1 10-10zM35 37v42h6V37zM59 37v42h6V37z'/%3E%3Ccircle cx='32' cy='94' r='5'/%3E%3Ccircle cx='68' cy='94' r='5'/%3E%3C/svg%3E") center/contain no-repeat}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
