/* RUMBO — carta náutica: azul profundo, menta y amarillo PIQUE. Celular primero. */
:root{--bg:#081b2e;--panel:#0f2c49;--panel2:#143a5e;--edge:#2a5a86;--ink:#f7f1df;--muted:#a8c3d9;--mint:#6de1bc;--yellow:#ffd044;--red:#ff8f76;--sea:#0a2440;color-scheme:dark}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:radial-gradient(ellipse at 85% -10%,#1d4f7f99,transparent 55%),var(--bg);color:var(--ink);font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;font-size:15px;line-height:1.45;min-height:100vh}
button,input{font:inherit;color:inherit}
button{cursor:pointer;touch-action:manipulation}
button:disabled{cursor:not-allowed;opacity:.42}
a{color:inherit}
[hidden]{display:none!important}
button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid var(--yellow);outline-offset:2px}
h1,h2,h3,p{margin:0}

.top{display:flex;align-items:center;justify-content:space-between;gap:10px;background:#0a2238;border-bottom:1px solid var(--edge);padding:9px max(14px,calc((100vw - 1080px)/2));padding-top:max(9px,env(safe-area-inset-top))}
.brand{display:flex;align-items:center;gap:9px;text-decoration:none;min-height:44px}
.brand img{width:96px;height:35px;object-fit:contain}
.game-name{font-size:19px;font-weight:900;letter-spacing:.5px;color:var(--mint)}
.tag{font-size:14px;font-weight:900;letter-spacing:.4px;color:#ffe39c;border:1px solid #756539;background:#3b3422;padding:6px 9px;border-radius:7px;white-space:nowrap}
.exit,.subtle,.ghost{border:1px solid var(--edge);background:var(--panel2);color:var(--ink);border-radius:10px;padding:10px 13px;font-size:14px;font-weight:800;text-decoration:none;white-space:nowrap;display:inline-flex;align-items:center;justify-content:center;min-height:44px}
.ghost{background:transparent}
.wide{width:100%;margin-top:10px}
.shell{max-width:1080px;margin:0 auto;padding:16px 14px calc(34px + env(safe-area-inset-bottom))}
.eyebrow{font-size:14px;font-weight:900;letter-spacing:.8px;color:var(--mint)}
.muted{color:var(--muted);font-size:14px}
.center{text-align:center}
.mini{font-size:14px;color:var(--muted);margin-top:9px}
.split{display:flex;justify-content:space-between;align-items:center;gap:8px}
.pill{font-size:14px;font-weight:900;letter-spacing:.3px;border:1px solid var(--edge);background:#0b2540;border-radius:999px;padding:5px 10px;white-space:nowrap}
.pill.gold{color:#1c2a1f;background:var(--yellow);border-color:var(--yellow)}
.primary{border:0;background:var(--yellow);color:#17251d;border-radius:11px;font-weight:900;font-size:15px;padding:0 18px;min-height:48px;letter-spacing:.2px}
.primary.big{width:100%;min-height:54px;font-size:16px;margin-top:14px}
.primary:active{transform:translateY(1px)}
.card{background:linear-gradient(140deg,var(--panel2),var(--panel));border:1px solid var(--edge);border-radius:16px;padding:16px}
.card h2{font-size:19px;line-height:1.2;margin:7px 0 9px;font-weight:900;letter-spacing:-.2px}

/* ---- inicio ---- */
.home-top{display:flex;justify-content:flex-end;margin-bottom:2px}
.sound-toggle[aria-pressed="false"]{color:var(--muted);border-style:dashed}
.playhead-left{display:flex;gap:6px}
.playhead-left .sound-toggle{padding:10px 11px;font-size:15px}
.hero{display:flex;gap:16px;align-items:center;margin:6px 0 18px}
.rose{width:86px;height:86px;flex:none;color:var(--mint);animation:sway 9s ease-in-out infinite}
@keyframes sway{0%,100%{transform:rotate(-7deg)}50%{transform:rotate(9deg)}}
.hero h1{font-size:clamp(26px,6.2vw,44px);font-weight:900;letter-spacing:-1.2px;line-height:1.05;margin:7px 0 9px}
.hero h1 em{font-style:normal;color:var(--yellow)}
.lead{color:var(--muted);font-size:15px;max-width:560px}
.home-grid{display:grid;gap:13px}
.teaser{list-style:none;padding:0;margin:0;display:grid;gap:7px}
.teaser li{display:flex;align-items:center;gap:9px;background:#0b2540;border:1px solid #23507a;border-radius:10px;padding:9px 11px;font-size:14px}
.teaser li small{font-size:14px;font-weight:900;letter-spacing:.3px;color:var(--mint);width:106px;flex:none}
.teaser li b{font-weight:800}
.teaser li .done-mark{margin-left:auto;color:var(--yellow);letter-spacing:1px;white-space:nowrap}
.done-score{display:flex;align-items:baseline;justify-content:center;gap:7px;margin:12px 0 4px}
.done-score b{font-size:54px;font-weight:900;color:var(--yellow);line-height:1}
.done-score span{color:var(--muted);font-weight:800}
.share-preview{text-align:left;font-family:inherit;font-size:14px;line-height:1.6;background:#0b2540;border:1px dashed var(--edge);border-radius:10px;padding:10px 12px;margin:10px 0;white-space:pre-wrap;overflow-wrap:anywhere}
#daily-done .primary{width:100%}
#daily-done .muted{margin-top:6px}
.daily.locked{border-style:dashed;border-color:#3fae90}
.daily.locked h2{color:var(--mint)}
.next-daily{margin-top:12px;text-align:center;font-size:16px;font-weight:800;background:#0b2540;border:1px solid var(--edge);border-radius:11px;padding:11px}
.next-daily b{color:var(--yellow);font-variant-numeric:tabular-nums}
.regions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}
.regions button{border:1px solid var(--edge);background:#0b2540;border-radius:11px;min-height:48px;font-weight:800;font-size:14px;padding:6px 10px}
.regions button:first-child{grid-column:1/-1;border-color:var(--mint);color:var(--mint)}
.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:10px 0 14px}
.stats div{background:#0b2540;border-radius:11px;padding:10px 6px;text-align:center}
.stats b{display:block;font-size:26px;font-weight:900;color:var(--yellow);line-height:1.1}
.stats span{font-size:14px;color:var(--muted);font-weight:700}
.passport strong{font-size:14px;letter-spacing:.8px}
.passport span{font-size:14px;color:var(--muted);font-weight:800}
.track{height:9px;border-radius:9px;background:#0b2540;border:1px solid #23507a;overflow:hidden;margin:7px 0}
.track div{height:100%;width:0;background:linear-gradient(90deg,var(--mint),var(--yellow));border-radius:9px;transition:width .6s}
.how{margin:8px 0 12px;padding-left:20px;display:grid;gap:7px;font-size:14px;color:#dbe8f2}
.how b{color:var(--ink)}
.foot{font-size:14px;color:#8fb0ca;text-align:center;margin-top:20px;line-height:1.6}

/* ---- partida ---- */
.playhead{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:11px}
.dots{display:flex;gap:6px}
.dots span{width:30px;height:7px;border-radius:4px;background:#27507a}
.dots span.now{background:var(--yellow)}
.dots span.done{background:var(--mint)}
.dots span.lost{background:#8a5a55}
.grid{display:grid;gap:11px}
.grid>*{min-width:0}
.mission{background:linear-gradient(140deg,#17446e,#0f2c49);border:1px solid #3a73a6;border-radius:16px;padding:13px 14px}
.mission h2{font-size:21px;font-weight:900;letter-spacing:-.3px;line-height:1.1;margin:5px 0 10px}
.ends{display:flex;gap:7px;align-items:stretch}
.end{flex:1;min-width:0;background:#0b2540;border-radius:10px;padding:8px 10px;border:1px solid #23507a}
.end small{font-size:14px;font-weight:900;letter-spacing:.4px;color:var(--muted);display:block}
.end b{font-size:16px;display:block;margin-top:2px;overflow-wrap:anywhere;line-height:1.2}
.end.from{border-color:#3fae90}.end.from small{color:var(--mint)}
.end.to{border-color:#b8962e}.end.to small{color:var(--yellow)}
.arrow{display:flex;align-items:center;font-size:22px;font-weight:900;color:var(--yellow)}
.rules{list-style:none;margin:10px 0 0;padding:0;display:grid;gap:6px}
.rules li{display:flex;align-items:center;gap:8px;font-size:14px;line-height:1.3;background:#0d2a47;border:1px solid #23507a;border-radius:9px;padding:7px 9px}
.rules li .ico{width:20px;text-align:center;flex:none;font-size:14px}
.rules li .txt{flex:1}
.rules li .st{font-size:14px;font-weight:900;border-radius:6px;padding:3px 7px;background:#1a3f63;color:var(--muted);white-space:nowrap;flex:none}
.rules li.ok{border-color:#3fae90}.rules li.ok .st{background:#1d5a4c;color:#b5f5dd}
.rules li.bad{border-color:#b56a5a}.rules li.bad .st{background:#5a2f2a;color:#ffd7cc}

.mapbox{position:relative;background:var(--sea);border:1px solid var(--edge);border-radius:16px;overflow:hidden;aspect-ratio:4/3;max-height:46vh;width:100%}
#map{position:absolute;inset:0;width:100%;height:100%;display:block}
#map path,#map polyline,#map line,#map circle{vector-effect:non-scaling-stroke}
.g-line{stroke:#ffffff;stroke-opacity:.055;stroke-width:1;fill:none}
.c-ctx{fill:#15375a;stroke:#2f5f8c;stroke-width:.8}
.c-bg{fill:#12304f;stroke:#274f77;stroke-width:.6}
.c-on{fill:#2b8f78;stroke:#d9fff1;stroke-width:1.3;stroke-linejoin:round}
.c-start{fill:#3fbf9c}
.c-cur{fill:#57dcb4}
.c-new{animation:pop .7s ease-out}
@keyframes pop{0%{fill:#fff7c9;fill-opacity:.2}60%{fill:#fff3a8}100%{}}
.c-dest{fill:#ffd04426;stroke:var(--yellow);stroke-width:1.5;stroke-dasharray:5 4;stroke-linejoin:round}
.c-dest.reached{fill:#e0b83a;stroke:#fff3c4;stroke-dasharray:none}
.c-ctx[data-id],.c-on[data-id]{cursor:pointer}
.picked{fill:#3a6da0!important;stroke:#fff!important}
.c-on.picked{fill:#7ff0cc!important}
.c-hint{fill:#ffffff10;stroke:#fff;stroke-width:1.6;stroke-dasharray:3 4;animation:blink 1.4s ease-in-out infinite}
@keyframes blink{50%{stroke-opacity:.35}}
.route-line{fill:none;stroke:#fff;stroke-width:2.2;stroke-dasharray:1 6;stroke-linecap:round;stroke-opacity:.9}
.best-line{fill:none;stroke:var(--yellow);stroke-width:2;stroke-dasharray:6 5;stroke-linecap:round;stroke-opacity:.95}
.m-dot{fill:#fff;stroke:#0a2440;stroke-width:1.5}
.m-tiny{fill:#57dcb4;stroke:#fff;stroke-width:1.3}
.m-tiny.dest{fill:var(--yellow)}
.m-tiny.hint{fill:none;stroke-dasharray:2 3}
.m-flag{fill:var(--yellow);stroke:#0a2440;stroke-width:1.5}
.m-num circle{fill:#fff;stroke:#0a2440;stroke-width:1.2}
.m-num.alt circle{fill:var(--yellow)}
.m-num text{fill:#0a2440;font-weight:900;text-anchor:middle;dominant-baseline:central;font-family:inherit}
.compass{position:absolute;left:8px;top:8px;display:flex;align-items:center;gap:8px;background:#081b2ee6;border:1px solid var(--edge);border-radius:13px;padding:6px 11px 6px 6px;backdrop-filter:blur(3px)}
.compass svg{width:46px;height:46px;flex:none}
.compass .ring{fill:#0f2c49;stroke:var(--mint);stroke-width:1.6}
.compass .ticks{stroke:var(--muted);stroke-width:1.6}
.compass .n{fill:var(--yellow)}.compass .s{fill:#5d7f9c}.compass .hub{fill:var(--ink)}
#needle{transform-origin:30px 30px;transition:transform .7s cubic-bezier(.3,1.4,.5,1)}
.compass small{display:block;font-size:14px;font-weight:900;letter-spacing:.4px;color:var(--muted)}
.compass b{display:block;font-size:15px;line-height:1.15}
.compass span{font-size:14px;color:var(--mint);font-weight:800}
.fogtag{position:absolute;right:8px;bottom:8px;max-width:calc(100% - 16px);font-size:14px;font-weight:900;letter-spacing:.4px;color:#9cc0de;background:#081b2ecc;border-radius:7px;padding:4px 8px}

.route{list-style:none;margin:10px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:5px;align-items:center}
.route li{font-size:14px;font-weight:800;background:#134a48;border:1px solid #3fae90;border-radius:8px;padding:5px 8px;display:flex;align-items:center;gap:6px}
.route li i{font-style:normal;font-size:14px;font-weight:900;background:#fff;color:#0a2440;border-radius:50%;width:21px;height:21px;display:inline-flex;align-items:center;justify-content:center;flex:none}
.route li.cur{border-color:#fff;background:#1c6a5f}
.route li.detour{border-color:#ff9f43;background:#4a3414}
.route li.detour i{background:#ff9f43}
.route li.gap{background:none;border:0;color:var(--muted);padding:5px 2px;letter-spacing:2px}
.route li.goal{background:#3a3214;border:1px dashed var(--yellow);color:#ffe9a6}
.route li.goal.reached{background:#6b5714;border-style:solid;color:#fff}
.entry{margin-top:8px}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.inputrow{display:flex;gap:8px}
.inputrow input{flex:1;min-width:0;min-height:50px;padding:0 13px;border:2px solid #4b86b8;border-radius:11px;background:#081f36;font-size:17px;font-weight:700;outline:none}
.inputrow input::placeholder{color:#7fa3c2;font-weight:500}
.inputrow input:focus{border-color:var(--yellow)}
.inputrow .primary{min-height:50px;flex:none}
.shake{animation:shake .35s}
@keyframes shake{20%{transform:translateX(-6px)}40%{transform:translateX(6px)}60%{transform:translateX(-4px)}80%{transform:translateX(3px)}}
.status{margin-top:10px;border-radius:10px;padding:10px 12px;font-size:14px;line-height:1.4;background:#0f2c49;border:1px solid var(--edge);color:#dbe8f2;min-height:42px}
.status.good{background:#123f3a;border-color:#3fae90;color:#d5fbef}
.status.bad{background:#4a2824;border-color:#c9715f;color:#ffe1d8}
.status.warn{background:#3b3422;border-color:#8c7636;color:#ffecb3}
.status b{font-weight:900}
.toolbar{display:flex;gap:6px;margin-top:9px}
.toolbar button{border:1px solid var(--edge);background:#0f2c49;border-radius:9px;min-height:44px;font-size:14px;font-weight:800;padding:4px 6px;flex:1 1 auto;white-space:nowrap}
.toolbar button[aria-expanded="true"]{border-color:var(--yellow);color:var(--yellow)}
#giveup{color:#ffc2b4}
.hints{margin-top:9px;background:#0d2a47;border:1px dashed #4b86b8;border-radius:11px;padding:11px}
.hint-buttons{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-top:9px}
.hint-buttons button{border:1px solid var(--edge);background:var(--panel2);border-radius:10px;min-height:52px;padding:6px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px}
.hint-buttons b{font-size:14px}.hint-buttons span{font-size:14px;color:#ffc2b4;font-weight:800}

.result{margin-top:11px;background:linear-gradient(150deg,#17446e,#0f2c49);border:1px solid #3a73a6;border-radius:16px;padding:16px;text-align:center}
.result h2{font-size:21px;font-weight:900;margin:6px 0 2px}
.stars{font-size:30px;letter-spacing:5px;color:var(--yellow);line-height:1.2}
.stars .off{color:#32597f}
.points{font-size:52px;font-weight:900;color:var(--yellow);line-height:1.05}
.points small{font-size:17px;color:var(--muted);font-weight:800}
.parts{list-style:none;margin:10px auto;padding:0;max-width:360px;font-size:14px;display:grid;gap:4px;text-align:left}
.parts li{display:flex;justify-content:space-between;gap:10px;border-bottom:1px dashed #2a5a86;padding:3px 0}
.parts li b.neg{color:var(--red)}
.facts{font-size:14px;color:#dbe8f2;margin:10px 0;line-height:1.55;text-align:left;background:#0b2540;border-radius:10px;padding:10px 12px}
.facts p+p{margin-top:6px}
.facts .key{color:var(--yellow);font-weight:900}
.result .primary{width:100%;margin-top:6px}

/* ---- final ---- */
.summary{max-width:560px;margin:0 auto;text-align:center}
.summary h1{font-size:28px;font-weight:900;letter-spacing:-.6px;margin:8px 0 4px}
.summary .points{font-size:74px}
.rounds{list-style:none;padding:0;margin:14px 0;display:grid;gap:7px;text-align:left}
.rounds li{display:grid;grid-template-columns:1fr auto;gap:2px 10px;background:var(--panel);border:1px solid var(--edge);border-radius:11px;padding:10px 12px;align-items:center}
.rounds small{font-size:14px;font-weight:900;letter-spacing:.4px;color:var(--mint)}
.rounds b{font-size:15px}
.rounds .sc{grid-row:1/3;grid-column:2;text-align:right;font-weight:900;font-size:19px;color:var(--yellow)}
.rounds .sc span{display:block;font-size:14px;letter-spacing:2px}
.summary .actions{display:grid;gap:8px;margin-top:12px}
.summary .actions .primary{width:100%}

/* ---- diálogo y avisos ---- */
.overlay{position:fixed;inset:var(--pique-barra-alto,0px) 0 0 0;background:#040d17cc;display:flex;align-items:flex-end;justify-content:center;z-index:50;padding:0}
.sheet{background:var(--panel);border:1px solid var(--edge);border-radius:18px 18px 0 0;max-width:620px;width:100%;max-height:88vh;overflow:auto;padding:18px 18px calc(18px + env(safe-area-inset-bottom))}
.sheet h2{font-size:21px;font-weight:900;margin-bottom:10px}
.sheet h3{font-size:14px;letter-spacing:1px;color:var(--mint);margin:14px 0 5px;font-weight:900}
.sheet p,.sheet li{font-size:14px;color:#dbe8f2;line-height:1.55}
.sheet ul{margin:0;padding-left:19px;display:grid;gap:4px}
.sheet .row{display:flex;gap:8px;margin-top:16px}
.sheet .row button{flex:1}
.toast{position:fixed;left:50%;bottom:calc(22px + env(safe-area-inset-bottom));transform:translate(-50%,20px);background:var(--ink);color:#10243a;font-weight:800;font-size:14px;padding:10px 16px;border-radius:999px;opacity:0;pointer-events:none;transition:.25s;z-index:60;max-width:92vw;text-align:center}
.toast.show{opacity:1;transform:translate(-50%,0)}
.noscript{padding:30px;text-align:center}

@media (min-width:860px){
 .home-grid{grid-template-columns:1.1fr .9fr;align-items:start}
 .daily{grid-row:span 2}
 .grid{grid-template-columns:330px 1fr;align-items:start;gap:16px}
 .mapbox{aspect-ratio:16/10;max-height:none}
 .overlay{align-items:center;padding:20px}.sheet{border-radius:18px}
 .rose{width:120px;height:120px}
}
@media (max-width:380px){
 .tag{display:none}
 .mission h2{font-size:19px}
 .inputrow input::placeholder{font-size:15px}
}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
@media (max-width:430px){.playhead{gap:6px}.playhead .ghost{padding:10px 9px}.dots{gap:4px}.dots span{width:16px}.playhead .pill{padding:5px 8px}}

/* =========================================================================
   PANTALLA CÓMODA (pedido de Felo, 2026-11-12): la partida entra entera, sin ruedita.
   Alto disponible = pantalla visible (con el teclado del celular descontado, --vvh)
   menos la barra común de PIQUE (--pique-barra-alto, la pone el HUB)
   menos el encabezado propio cuando el juego se abre suelto (--rumbo-top, lo mide game.js).
   ========================================================================= */
body[data-view="play"]{min-height:0}
body[data-view="play"] .shell{padding:0;max-width:1440px}
.play{display:flex;flex-direction:column;overflow:hidden;
  height:calc(100vh - var(--pique-barra-alto,0px) - var(--rumbo-top,0px));
  height:calc(var(--vvh,100dvh) - var(--pique-barra-alto,0px) - var(--rumbo-top,0px));
  padding:10px 14px max(10px,env(safe-area-inset-bottom))}
.playhead{flex:none;margin-bottom:8px;min-height:44px}
.playhead-info{display:flex;align-items:center;gap:10px;min-width:0}
.playhead-tools{display:flex;gap:6px;flex:none}
.playhead .ghost{min-height:44px;padding:8px 12px}
.playhead .sound-toggle{padding:8px 11px;font-size:15px}
.menu{letter-spacing:.3px}
.grid{flex:1;min-height:0;display:flex;flex-direction:column;gap:8px}
.board{flex:1;min-height:0;display:flex;flex-direction:column}
.mapbox{flex:1 1 auto;min-height:96px;aspect-ratio:auto;max-height:none}
.route{flex:none;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;margin-top:6px;padding-bottom:2px;scrollbar-width:thin}
.route li{flex:none}
#controls{flex:none}
.status{margin-top:6px;min-height:0;padding:8px 11px;font-size:14px}
.entry{margin-top:6px}
.toolbar{margin-top:6px}
.hints{margin-top:6px;padding:9px}
.hint-buttons{margin-top:6px}
.result{flex:0 1 auto;min-height:0;max-height:58%;overflow:auto;margin-top:8px;padding:12px 14px}
.result>.primary{position:sticky;bottom:0;margin:6px 0 0;box-shadow:0 -6px 14px #0f2c49}

/* misión: en la compu, la tarjeta entera a la izquierda */
.m-summary{display:none}
.mission{flex:none}

/* celular y ventanas angostas: misión en una línea, el mapa ocupa el resto */
@media (max-width:859px){
 .m-summary{display:block;width:100%;text-align:left;background:none;border:0;padding:0;color:inherit;position:relative}
 .mission{padding:8px 34px 8px 11px;border-radius:13px;position:relative}
 .m-detail{display:none}
 .mission.open .m-detail{display:block;max-height:42vh;overflow:auto;margin-top:8px}
 .sum-top{display:flex;justify-content:space-between;align-items:center;gap:8px}
 .sum-ends{font-size:15px;font-weight:900;line-height:1.25;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .sum-ends span:first-child{color:var(--mint)}.sum-ends span:last-child{color:var(--yellow)}
 .sum-top .pill{font-size:14px;padding:3px 8px;flex:none}
 .sum-rules{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:14px;line-height:1.35;color:#dbe8f2;margin-top:3px}
 .sum-rules .ok{color:#9cf5ca;font-weight:800}
 .sum-more{position:absolute;right:-24px;top:50%;transform:translateY(-50%);font-size:15px;color:var(--muted);transition:transform .2s}
 .mission.open .sum-more{transform:translateY(-50%) rotate(180deg)}
 .play.typing .route{display:none}
 .play.typing .compass{transform:scale(.8);transform-origin:top left}
 .result{max-height:55%}
}
@media (min-width:860px){
 .grid{display:grid;grid-template-columns:340px minmax(0,1fr);grid-template-rows:minmax(0,1fr);align-items:stretch;gap:16px}
 .mission{align-self:start;max-height:100%;overflow:auto}
 .mapbox{aspect-ratio:auto}
 .result{max-height:46%}
}
@media (max-height:520px) and (max-width:859px){.toolbar button{min-height:44px}.inputrow input,.inputrow .primary{min-height:44px}}

/* ---- inicio: desafío de hoy y partida libre a la vista sin bajar ---- */
.hero{margin:2px 0 14px;gap:14px}
.hero-text{flex:1;min-width:0}
.hero-row{display:flex;justify-content:space-between;align-items:center;gap:10px}
.hero-row .sound-toggle{min-height:44px;padding:6px 11px;font-size:14px}
.rose{width:68px;height:68px}
.hero h1{font-size:clamp(23px,3.4vw,34px);margin:4px 0 5px;letter-spacing:-.8px}
.lead{font-size:14px}
#daily-done .done-score,#daily-done .share-preview{display:none} /* el total ya está en el título; la tarjeta completa, en el resultado */
#daily-done .primary{margin-top:10px}
.next-daily{margin-top:8px;padding:9px;font-size:15px}
@media (min-width:860px){.rose{width:84px;height:84px}}
@media (max-width:859px){
 body[data-view="home"] .shell{padding-top:10px}
 .rose{width:42px;height:42px}
 .lead{display:none}
 .hero{margin-bottom:10px}
 .hero h1{font-size:22px;margin:2px 0 0;letter-spacing:-.5px}
 .home-grid{gap:10px}
 .card{padding:12px 13px}
 .card h2{font-size:17px;margin:4px 0 8px}
 .teaser{gap:5px}
 .teaser li{padding:7px 10px;font-size:14px}
 .teaser li small{width:100px}
 .primary.big{min-height:50px;margin-top:10px}
 .home-grid>.card:nth-child(2) .muted{display:none}
 .regions{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin-top:6px}
 .regions button{min-height:44px;padding:4px;font-size:14px}
}

/* =========================================================================
   AYUDAS (pedido de Felo, 2026-11-12): cartel «Cómo se juega» al entrar y botón «💡 Ayudas».
   Preferencia común de PIQUE 'pique:ayudas'. Con las ayudas apagadas se esconden los textos de ayuda.
   ========================================================================= */
.hero-tools{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.hero-tools .ghost{min-height:44px;padding:6px 11px;font-size:14px}
.ayudas-toggle[aria-pressed="false"]{color:var(--muted);border-style:dashed}
.playhead .ayudas-toggle{padding:8px 11px;font-size:15px}
.sin-ayudas .ayuda-txt{display:none!important}
.how-buttons{display:flex;gap:8px;flex-wrap:wrap}
/* cartel propio, solo si el juego se abre suelto (sin la barra común de PIQUE) */
.cartel h2{font-size:24px;margin-bottom:4px}
.cartel .intro{font-size:16px;margin-bottom:12px;color:#dbe8f2}
.cartel ol{list-style:none;margin:0 0 16px;padding:0;display:grid;gap:12px}
.cartel li{display:flex;gap:12px;align-items:flex-start;font-size:16px;line-height:1.45;color:#eef4f8}
.cartel li .n{flex:none;width:34px;height:34px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:#0b2540;border:1px solid var(--mint);font-size:17px}
.cartel strong{color:var(--yellow)}
.cartel .primary{width:100%;min-height:54px;font-size:17px}
.cartel label{display:flex;gap:8px;align-items:center;justify-content:center;margin-top:8px;min-height:44px;font-size:15px;color:#dbe8f2;cursor:pointer}
.cartel label input{width:20px;height:20px;accent-color:var(--mint)}
@media (max-width:430px){.playhead .dots{display:none}}
@media (max-width:859px){.hero-row{flex-wrap:wrap;row-gap:6px}.hero-tools{flex-wrap:nowrap;justify-content:flex-start}}

/* ---- «▶ Seguir…»: arriba del inicio cuando hay una partida a medias (pedido de Felo, 2026-11-14) ---- */
.resume-bar{display:grid;gap:8px;margin:0 0 12px}
.resume-bar button{display:flex;align-items:center;gap:12px;width:100%;text-align:left;border:2px solid var(--yellow);background:#3b3422;color:var(--ink);border-radius:13px;padding:10px 14px;min-height:56px}
.resume-bar button .go{flex:none;width:34px;height:34px;border-radius:50%;background:var(--yellow);color:#17251d;display:inline-flex;align-items:center;justify-content:center;font-size:15px}
.resume-bar button b{display:block;font-size:16px;font-weight:900}
.resume-bar button small{display:block;font-size:14px;color:#ffe9a6;font-weight:700}
.resume-bar button.free{border-color:var(--mint);background:#123f3a}
.resume-bar button.free .go{background:var(--mint)}
.resume-bar button.free small{color:#b5f5dd}
@media (min-width:860px){.resume-bar{grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}}

/* ---- pantalla final más corta en el celular y en pantallas bajas, para que entren los otros juegos de PIQUE sin ruedita (2026-11-14) ---- */
@media (max-width:859px),(max-height:1100px){
 body[data-view="summary"] .shell{padding-top:10px;padding-bottom:max(10px,env(safe-area-inset-bottom))}
 .summary h1{font-size:23px;margin:4px 0 0}
 .summary .points{font-size:52px}
 .summary .rounds{margin:8px 0;gap:5px}
 .summary .rounds li{padding:6px 11px}
 .summary .rounds .sc{font-size:17px}
 .summary .share-preview{display:none} /* la tarjeta se comparte igual con el botón */
 .summary .actions{grid-template-columns:1fr 1fr;gap:6px;margin-top:8px}
 .summary .actions .primary{grid-column:1/-1;min-height:46px}
 .summary .actions .subtle,.summary .actions .ghost{min-height:44px;white-space:normal;font-size:14px;padding:6px 8px}
 .summary .foot{margin-top:8px}
 .summary .pique-otros{margin-top:10px}
}
.sum-rules [data-sep]::before{content:' · ';color:var(--muted);font-weight:400}
.toolbar button.nudge{border-color:var(--yellow);color:var(--yellow);background:#3b3422}
.lab .primary{width:100%;min-height:48px;margin:10px 0 2px}
.lab label{display:grid;grid-template-columns:1fr 44px;gap:2px 10px;align-items:center;margin-top:12px;font-size:14px;color:#dbe8f2}
.lab label span{grid-column:1/-1}
.lab label input{width:100%;accent-color:var(--mint)}
.lab label b{text-align:right;color:var(--yellow);font-size:15px}
.lab-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:14px}
.lab-grid button{min-height:44px;font-size:14px;padding:6px 8px;white-space:normal;line-height:1.25}
.star-note{font-size:14px;color:var(--muted);margin-top:2px}
.arch-open{width:100%;border:1px solid var(--mint);color:var(--mint);background:#0b2540;border-radius:11px;min-height:50px;font-weight:900;font-size:15px;margin-top:12px}
.arch-open:disabled{opacity:.4}
.arch-count{font-size:14px;color:var(--muted);text-align:center;margin-top:8px}
.archive{max-width:560px;margin:0 auto}
.arch-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}
.archive h1{font-size:24px;font-weight:900;line-height:1.15;margin-bottom:6px}
.arch-month{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:16px 0 8px}
.arch-month b{font-size:17px}
.arch-month button{min-width:46px;min-height:44px;font-size:22px;line-height:1}
.arch-month button:disabled{opacity:.3}
.arch-week,.arch-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}
.arch-week span{text-align:center;font-size:14px;font-weight:900;color:var(--muted)}
.arch-grid{margin-top:5px}
.arch-grid .day{border:1px solid var(--edge);background:var(--panel);border-radius:10px;min-height:50px;padding:3px 1px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px}
.arch-grid .day b{font-size:16px;font-weight:900}
.arch-grid .day small{font-size:14px;font-weight:800;color:var(--mint);white-space:nowrap}
.arch-grid .day:disabled{opacity:.3}
.arch-grid .day.today{opacity:.6;border-style:dashed}
.arch-grid .day.today small{color:var(--muted)}
.arch-grid .day.done{background:#123f3a;border-color:#3fae90}
.arch-grid .day.open{border-color:var(--yellow)}
.arch-grid .day.open small{color:var(--yellow)}
.arch-grid .day.picked{outline:2px solid var(--yellow);outline-offset:1px}
.arch-detail{margin-top:14px}
.arch-detail .teaser{margin-top:10px}
.arch-done{margin-top:12px;font-weight:900;font-size:15px;color:var(--mint)}

/* premio por atajo (puente o túnel) en el resultado final */
.summary .bonus{font-size:14px;color:var(--mint);font-weight:800;text-align:center;margin-top:2px}

/* vecinos del país donde te trabaste (al terminar) y sellos del pasaporte */
.c-vec{fill:#57dcb41f;stroke:#57dcb4;stroke-width:1.2;stroke-dasharray:3 3;stroke-linejoin:round}
.m-lab{fill:#eef4f8;font-weight:900;text-anchor:middle;dominant-baseline:central;font-family:inherit;paint-order:stroke;stroke:#081b2e;stroke-width:.35em;stroke-linejoin:round;pointer-events:none}
.facts .aprende{color:#d5fbef}
.sellos{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.sello{font-size:14px;font-weight:800;border:1px solid var(--edge);border-radius:999px;padding:4px 10px;color:var(--muted);white-space:nowrap}
.sello.ok{border-color:#3fae90;color:var(--mint);background:#123f3a}
@media (max-width:859px),(max-height:1100px){.summary .actions .ghost{grid-column:1/-1}}
