:root{
  --bg:#eef2f3;--surface:#ffffff;--surface2:#f5f8f9;--ink:#1c2a33;--muted:#5b6b75;--line:#cfd8dc;--line2:#e3e9ec;
  --accent:#0a6d9e;--accent-ink:#ffffff;--accent-soft:#e3f0f7;--accent-deep:#0a4f73;
  --ok:#2e7d32;--ok-soft:#e3f1e4;--bad:#c62828;--bad-soft:#fbe4e4;--bad-ink:#8e1c1c;
  --star:#f2b705;--star-off:#c9d4da;--fire:#d9480f;--fire-soft:#fff1e6;--fire-ink:#b23c0a;
  --map:#f7fafb;--shadow:0 -6px 24px rgba(20,40,50,.16);
  --display:"Barlow Condensed","Arial Narrow",Arial,sans-serif;--body:Barlow,system-ui,-apple-system,"Segoe UI",sans-serif;
}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){
  color-scheme:dark;--bg:#111a1f;--surface:#1a252c;--surface2:#162027;--ink:#e4ebef;--muted:#9aabb5;--line:#2e3c45;--line2:#25323a;
  --accent:#4fb3e3;--accent-ink:#06202d;--accent-soft:#16384a;--accent-deep:#9fd6f0;
  --ok:#7cc882;--ok-soft:#1d3521;--bad:#ef7a7a;--bad-soft:#3d2020;--bad-ink:#f5b1b1;
  --star:#f5c533;--star-off:#3c4b54;--fire:#ff8a4c;--fire-soft:#3a2418;--fire-ink:#ffb08a;--shadow:0 -6px 24px rgba(0,0,0,.45)}}
:root[data-theme="dark"]{
  color-scheme:dark;--bg:#111a1f;--surface:#1a252c;--surface2:#162027;--ink:#e4ebef;--muted:#9aabb5;--line:#2e3c45;--line2:#25323a;
  --accent:#4fb3e3;--accent-ink:#06202d;--accent-soft:#16384a;--accent-deep:#9fd6f0;
  --ok:#7cc882;--ok-soft:#1d3521;--bad:#ef7a7a;--bad-soft:#3d2020;--bad-ink:#f5b1b1;
  --star:#f5c533;--star-off:#3c4b54;--fire:#ff8a4c;--fire-soft:#3a2418;--fire-ink:#ffb08a;--shadow:0 -6px 24px rgba(0,0,0,.45)}
*{box-sizing:border-box}
[hidden]{display:none!important}
html,body{height:100%}
body{background:var(--bg);color:var(--ink);font-family:var(--body);font-size:15px;margin:0}
button{font-family:inherit;color:inherit}
button:focus-visible,a:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.flag{display:inline-block;vertical-align:middle;border-radius:2px;box-shadow:0 0 0 1px rgba(0,0,0,.08)}
.star{width:16px;height:16px;fill:var(--star-off)}
.star.on{fill:var(--star)}
.btn{height:48px;border-radius:12px;border:1px solid var(--line);background:var(--surface);font-weight:600;font-size:15px;cursor:pointer;padding:0 14px;display:inline-flex;align-items:center;justify-content:center;gap:6px;line-height:1.1}
.btn:hover{border-color:var(--accent)}
.btn.primary{background:var(--accent);border-color:var(--accent);color:var(--accent-ink);font-weight:700}
.btn:disabled{opacity:.45;cursor:default}
.link{border:0;background:transparent;color:var(--accent);font-weight:600;font-size:14px;cursor:pointer;padding:4px 2px;text-decoration:underline;text-underline-offset:3px}
.seg{display:flex;background:var(--surface);border:1px solid var(--line);border-radius:999px;padding:3px;gap:2px}
.seg button{flex:1;height:38px;border:0;border-radius:999px;background:transparent;color:var(--muted);font-weight:600;font-size:14px;cursor:pointer;padding:0 10px}
.seg button[aria-pressed="true"]{background:var(--accent);color:var(--accent-ink)}
.label{font-size:12px;font-weight:700;color:var(--muted);letter-spacing:.09em;text-transform:uppercase}

/* ---------- capas del mapa ---------- */
.layer{position:absolute;left:0;top:0;width:1000px;transform-origin:0 0}
.layer>img,.layer>svg{position:absolute;left:0;top:0;width:100%;height:100%;max-width:none;pointer-events:none;-webkit-user-drag:none;user-select:none}
.mf path{stroke:none;transition:fill .7s ease}
.mh path{fill:none;vector-effect:non-scaling-stroke;stroke-linejoin:round}
.mh .ok{stroke:#2e7d32;stroke-width:4;animation:hlout 1.4s forwards}
.mh .bad{stroke:#c62828;stroke-width:3.5;fill:rgba(198,40,40,.14);animation:hlout 1.6s forwards}
.mh .show{stroke:#0a6d9e;stroke-width:3.5;stroke-dasharray:8 6;fill:rgba(10,109,158,.14);animation:dash 1s linear infinite}
.mh .home{stroke:#0a4f73;stroke-width:3;fill:rgba(10,109,158,.12)}
@keyframes hlout{0%,70%{opacity:1}100%{opacity:0}}
@keyframes dash{to{stroke-dashoffset:-28}}
.pin{position:absolute;transform:translate(-50%,-100%);z-index:5;pointer-events:none;width:calc(var(--u,1px)*30);height:calc(var(--u,1px)*38)}
.pin svg{width:100%;height:100%;display:block;filter:drop-shadow(0 2px 2px rgba(0,0,0,.3))}

/* ---------- Inicio ---------- */
#home{min-height:100%;display:grid;grid-template-columns:minmax(0,1.05fr) minmax(340px,460px)}
.mymap{position:sticky;top:0;height:100vh;height:100dvh;background:var(--map);overflow:hidden;display:flex;flex-direction:column}
.mymap .mapbox{position:relative;flex:1;min-height:320px;overflow:hidden}
.mymap .legend{position:absolute;left:16px;bottom:16px;right:16px;display:flex;flex-wrap:wrap;gap:6px 14px;align-items:center;background:rgba(255,255,255,.9);border:1px solid #d5dee2;border-radius:12px;padding:10px 14px;color:#1c2a33;font-size:13px;max-width:560px}
.mymap .legend b{font-family:var(--display);font-size:20px;font-weight:800;margin-right:2px}
.sw{display:inline-block;width:14px;height:14px;border-radius:3px;vertical-align:-2px;margin-right:5px;border:1px solid rgba(0,0,0,.15)}
.mymap .maptitle{position:absolute;left:16px;top:14px;display:flex;flex-direction:column;gap:2px;color:#1c2a33;pointer-events:none}
.mymap .maptitle b{font-family:var(--display);font-weight:800;font-size:26px;line-height:1}
.mymap .maptitle span{font-size:13px;color:#46565f}
.controls{padding:26px 26px 26px;display:flex;flex-direction:column;gap:16px;background:var(--bg);overflow:auto}
.brand h1{margin:0;font-family:var(--display);font-weight:800;font-size:clamp(44px,5vw,64px);line-height:.92}
.brand .sub{display:flex;align-items:center;gap:10px;font-size:18px;font-weight:600;color:var(--accent-deep);margin-top:4px}
.homeline{display:flex;align-items:center;gap:10px;flex-wrap:wrap;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:10px 12px;font-size:14px;line-height:1.35}
.homeline svg{width:22px;height:22px;flex:none;stroke:var(--accent);fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.homeline .txt{flex:1;min-width:0}
.stats{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.stat{background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:8px 12px;display:flex;align-items:center;gap:10px}
.stat b{display:block;font-family:var(--display);font-weight:700;font-size:22px;line-height:1;font-variant-numeric:tabular-nums}
.stat span{font-size:12px;color:var(--muted)}
.stat svg{width:22px;height:22px;flex:none}
.routes{display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--line);border-radius:12px;overflow:hidden}
.route{display:flex;align-items:center;gap:12px;min-height:58px;padding:8px 14px;border:0;border-bottom:1px solid var(--line2);background:var(--surface);text-align:left;cursor:pointer;width:100%}
.route:last-child{border-bottom:0}
.route:hover{background:var(--surface2)}
.route[aria-pressed="true"]{background:var(--accent-soft)}
.route[aria-pressed="true"] .rname{color:var(--accent-deep);font-weight:700}
.route .rmain{flex:1;display:flex;flex-direction:column;gap:3px;min-width:0}
.rname{font-size:16px;font-weight:600}
.rsub{font-size:13px;color:var(--muted)}
.route .stars{display:flex;gap:1px;flex:none}
.route.locked{cursor:not-allowed}
.route.locked .rname{color:var(--muted)}
.route.rv .rname{display:flex;align-items:center;gap:8px}
.badge{display:inline-flex;align-items:center;justify-content:center;min-width:24px;height:22px;padding:0 7px;border-radius:999px;background:var(--fire);color:#fff;font-size:13px;font-weight:700;font-variant-numeric:tabular-nums}
.badge.zero{background:var(--line);color:var(--muted)}
.home-actions{display:flex;gap:8px;margin-top:auto}
.home-actions .btn{flex:1}
.home-actions .btn.primary{flex:2}
.note{font-size:13px;color:var(--muted);margin:0;line-height:1.4}
@media (max-width:820px){
  #home{display:flex;flex-direction:column;gap:14px;padding-inline:16px;padding-block:16px 22px}
  .controls{display:contents}
  .controls>*{order:3}
  .controls>.brand{order:0}
  .controls>.homeline{order:1}
  .mymap{order:2;position:relative;height:auto;min-height:0;border:1px solid var(--line);border-radius:14px}
  .mymap .mapbox{height:400px;min-height:0;flex:none}
  .mymap .legend{position:static;border:0;border-top:1px solid #d5dee2;border-radius:0;max-width:none;background:#fff}
  .mymap .legend{padding:10px 12px;font-size:12.5px}
  .mymap .maptitle b{font-size:22px}
}

/* ---------- Juego ---------- */
#game{height:100%;display:grid;grid-template-columns:minmax(0,1fr) 370px;grid-template-rows:auto minmax(0,1fr);grid-template-areas:"map top" "map sheet";background:var(--bg)}
.topbar{grid-area:top;display:flex;align-items:center;gap:8px;padding:10px 12px;background:var(--surface);border-bottom:1px solid var(--line);border-left:1px solid var(--line)}
.iconbtn{width:44px;height:44px;border:0;background:transparent;border-radius:10px;display:flex;align-items:center;justify-content:center;cursor:pointer;flex:none}
.iconbtn:hover{background:var(--surface2)}
.iconbtn svg{width:22px;height:22px;stroke:var(--ink);fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.prog{flex:1;display:flex;flex-direction:column;gap:5px;min-width:0}
.prog .row{display:flex;flex-direction:column;gap:0;font-size:14px;line-height:1.25;min-width:0}
.prog .row b{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.prog .row span{color:var(--muted);white-space:nowrap;font-size:12.5px;font-variant-numeric:tabular-nums;overflow:hidden;text-overflow:ellipsis}
.pbar{height:6px;border-radius:3px;background:var(--line2);overflow:hidden}
.pbar i{display:block;height:100%;background:var(--accent);transition:width .3s}
.streak{height:36px;padding:0 10px;border-radius:999px;background:var(--fire-soft);color:var(--fire-ink);display:flex;align-items:center;gap:3px;font-family:var(--display);font-weight:800;font-size:18px;flex:none;font-variant-numeric:tabular-nums}
.streak svg{width:18px;height:18px;stroke:var(--fire);fill:none;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.streak.bump{animation:bump .4s}
@keyframes bump{40%{transform:scale(1.18)}}
.mapwrap{grid-area:map;position:relative;overflow:hidden;background:var(--map);touch-action:none;cursor:grab;user-select:none;-webkit-user-select:none}
.mapwrap.panning{cursor:grabbing}
.layer.anim{transition:transform .45s cubic-bezier(.2,.7,.2,1)}
.lbl{position:absolute;transform:translate(-50%,-50%);font-family:"Barlow Condensed","Arial Narrow",Arial,sans-serif;color:#1d1d1d;white-space:nowrap;text-align:center;line-height:1.02;
  font-size:var(--fs,12px);text-shadow:0 0 2px #fff,0 0 2px #fff,0 0 1px #fff;pointer-events:none;z-index:3;border-radius:3px;padding:0 .15em}
.lbl.dep{font-weight:700;letter-spacing:.01em}
.lbl.cap{font-weight:500;font-size:calc(var(--fs,12px)*1.02)}
.lbl.free{pointer-events:auto;cursor:grab;touch-action:none;background:rgba(255,255,255,.6);box-shadow:0 0 0 1px rgba(10,109,158,.35)}
.lbl.good{background:rgba(46,125,50,.2);box-shadow:0 0 0 1.5px #2e7d32}
.lbl.wrong{background:rgba(198,40,40,.18);box-shadow:0 0 0 1.5px #c62828;color:#8e1c1c}
.lbl.reveal{color:#b3261e}
.lbl.flash{animation:flash 1.1s ease-out}
@keyframes flash{0%{background:rgba(46,125,50,.6)}100%{background:transparent}}
.ring{position:absolute;border-radius:50%;transform:translate(-50%,-50%);pointer-events:none;z-index:4}
.ring.mark{width:calc(var(--u)*36);height:calc(var(--u)*36);border:calc(var(--u)*3) solid #0a6d9e;background:rgba(10,109,158,.18)}
.ring.mark::after{content:"";position:absolute;left:50%;top:50%;width:calc(var(--u)*8);height:calc(var(--u)*8);border-radius:50%;background:#0a6d9e;transform:translate(-50%,-50%)}
.ring.miss{width:calc(var(--u)*40);height:calc(var(--u)*40);border:calc(var(--u)*3) solid #c62828;animation:fade 1.6s forwards}
.ring.hint{border:calc(var(--u)*3) dashed #d9480f;background:rgba(217,72,15,.12)}
.ring.showcap{width:calc(var(--u)*34);height:calc(var(--u)*34);border:calc(var(--u)*3) dashed #0a6d9e;background:rgba(10,109,158,.16)}
@keyframes fade{0%{opacity:1;transform:translate(-50%,-50%) scale(.6)}20%{transform:translate(-50%,-50%) scale(1)}80%{opacity:1}100%{opacity:0}}
.zoom{position:absolute;right:12px;top:12px;display:flex;flex-direction:column;gap:6px;z-index:6}
.zoom button{width:44px;height:44px;border-radius:10px;border:1px solid #c3cfd5;background:#fff;color:#1c2a33;font-size:22px;cursor:pointer;display:flex;align-items:center;justify-content:center;box-shadow:0 1px 3px rgba(0,0,0,.12)}
.zoom svg{width:20px;height:20px;stroke:#1c2a33;fill:none;stroke-width:2;stroke-linecap:round}
.toast{position:absolute;left:50%;bottom:22px;transform:translateX(-50%);padding:9px 16px;border-radius:14px;font-weight:600;font-size:14px;z-index:7;pointer-events:none;box-shadow:0 4px 14px rgba(0,0,0,.18);transition:opacity .25s;width:max-content;max-width:min(92%,520px);text-align:center;line-height:1.35}
.toast.ok{background:#2e7d32;color:#fff}
.toast.bad{background:#c62828;color:#fff}
.toast.info{background:#1c2a33;color:#fff}
.dragghost{position:fixed;z-index:60;pointer-events:none;transform:translate(-50%,-50%) rotate(-2deg);box-shadow:0 8px 20px rgba(0,0,0,.25)}
.sheet{grid-area:sheet;background:var(--surface);border-left:1px solid var(--line);display:flex;flex-direction:column;gap:14px;padding:16px;min-height:0;overflow:auto}
.handle{display:none}
.qcard{display:flex;flex-direction:column;gap:6px}
.qcard .ask{font-size:13px;color:var(--muted);display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.again{font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--fire-ink);background:var(--fire-soft);border-radius:999px;padding:2px 8px}
.qcard .qname{font-family:var(--display);font-weight:800;font-size:40px;line-height:1;letter-spacing:.015em;overflow-wrap:anywhere}
.qcard .qname.cap{letter-spacing:0}
.qcard .how{font-size:13px;color:var(--muted);line-height:1.4}
.qactions{display:flex;gap:8px}
.qactions .btn{flex:1}
.qactions .btn.primary{flex:1.6}
.qactions svg{width:18px;height:18px;stroke:#b7801b;fill:none;stroke-width:2;stroke-linecap:round}
.listhead{display:flex;justify-content:space-between;align-items:baseline}
.listhead button{border:0;background:transparent;color:var(--accent);font-weight:600;font-size:13px;cursor:pointer;padding:4px}
.bank{display:flex;flex-wrap:wrap;gap:6px;align-content:flex-start}
.chip{border:1px solid var(--line);background:var(--surface2);border-radius:6px;padding:6px 10px;font:500 14px "Barlow Condensed","Arial Narrow",sans-serif;cursor:pointer;user-select:none;-webkit-user-select:none;line-height:1.15;min-height:34px}
.chip.dep{font-weight:700;text-transform:uppercase;letter-spacing:.03em;font-size:13.5px}
.chip.cur{background:var(--accent-soft);border-color:var(--accent);color:var(--accent-deep)}
.chip.mouse{cursor:grab}
.freeres{border-radius:10px;padding:10px 12px;font-weight:600;font-size:14px}
.freeres.ok{background:var(--ok-soft);color:var(--ok)}
.freeres.mix{background:var(--fire-soft);color:var(--fire-ink)}
.sheet .foot{display:flex;gap:8px;flex-wrap:wrap;margin-top:auto}
.sheet .foot .btn{flex:1;height:42px;font-size:14px}
.selhint{display:block;font-size:13px;color:var(--accent-deep);background:var(--accent-soft);border-radius:8px;padding:8px 10px;line-height:1.35}
.homeq h2{margin:0;font-family:var(--display);font-weight:800;font-size:34px;line-height:1}
.homeq p{margin:0;font-size:14px;line-height:1.45;color:var(--muted)}
.homeq .where{font-size:16px;font-weight:600;color:var(--ink)}
@media (max-width:820px){
  #game{display:block;position:relative;height:100%}
  .mapwrap{position:absolute;inset:0}
  .topbar{position:absolute;left:0;right:0;top:0;z-index:10;border-left:0;padding:8px}
  .zoom{top:72px}
  .sheet{position:absolute;left:0;right:0;bottom:0;z-index:10;border-left:0;border-radius:18px 18px 0 0;box-shadow:var(--shadow);max-height:52%;padding:6px 16px calc(16px + env(safe-area-inset-bottom,0px));gap:12px;transition:max-height .3s}
  .sheet.open{max-height:78%}
  .handle{display:flex;justify-content:center;padding:6px 0 2px;border:0;background:transparent;cursor:pointer;width:100%}
  .handle i{width:40px;height:5px;border-radius:3px;background:var(--line)}
  .sheet:not(.open) .bank{flex-wrap:nowrap;overflow-x:auto;padding-bottom:4px;scrollbar-width:thin}
  .sheet:not(.open) .chip{flex:none}
  .sheet:not(.open) .listhead button{display:none}
  .sheet:not(.open) .foot{display:none}
  .qcard .qname{font-size:36px}
  .homeq h2{font-size:28px}
  .toast{bottom:auto;top:76px}
}

/* ---------- modos nuevos, postales, tutorial ---------- */
.statbtn{cursor:pointer;text-align:left;font:inherit;color:inherit;grid-column:1/-1}
.statbtn:hover{border-color:var(--accent)}
.silbox{height:150px;display:flex;align-items:center;justify-content:center;background:var(--surface2);border:1px solid var(--line2);border-radius:12px}
.silbox svg{height:130px;width:auto;max-width:90%;overflow:visible}
.silbox path{fill:var(--accent);stroke:var(--accent-deep);stroke-width:1.5;vector-effect:non-scaling-stroke}
.opts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.opt{min-height:48px;border-radius:10px;border:1px solid var(--line);background:var(--surface);font:700 15px var(--display);letter-spacing:.03em;text-transform:uppercase;cursor:pointer;padding:6px 8px;line-height:1.1}
.opt:hover{border-color:var(--accent)}
.opt.right{background:var(--ok-soft);border-color:var(--ok);color:var(--ok)}
.opt.wrongopt{background:var(--bad-soft);border-color:var(--bad);color:var(--bad-ink);text-decoration:line-through}
.opt:disabled{cursor:default}
.nbdots{display:flex;flex-wrap:wrap;gap:6px}
.nbdots span{min-width:34px;height:30px;padding:0 10px;border-radius:999px;border:1.5px dashed var(--line);display:inline-flex;align-items:center;justify-content:center;font:700 13px var(--display);letter-spacing:.03em;text-transform:uppercase;color:var(--muted)}
.nbdots span.found{border:1.5px solid var(--ok);background:var(--ok-soft);color:var(--ok)}
.nbdots span.shown{border:1.5px solid var(--accent);background:var(--accent-soft);color:var(--accent-deep)}
.iconbtn .off{stroke:var(--muted)}
.card{border-radius:16px;overflow:hidden;background:#fffdf7;color:#1c2a33;border:1px solid #e6dfcc;box-shadow:0 6px 18px rgba(0,0,0,.12)}
.card .art{display:block;width:100%;height:auto;aspect-ratio:320/150}
.card .ctext{padding:12px 14px 14px;display:flex;flex-direction:column;gap:4px}
.card .ckicker{font-size:11px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:#b23c0a}
.card h3{margin:0;font-family:var(--display);font-weight:800;font-size:24px;line-height:1.05}
.card .cplace{font-size:13px;color:#5b6b75}
.card p{margin:4px 0 0;font-size:14px;line-height:1.45;color:#34454f}
.card.locked{background:var(--surface2);border:1.5px dashed var(--line);box-shadow:none;color:var(--muted)}
.card.locked .ctext{padding:22px 14px}
.gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:14px}
.sheetmodal{width:min(760px,100%);max-height:100%;overflow:auto;border-radius:22px;background:var(--bg);box-shadow:0 20px 60px rgba(0,0,0,.35);padding:20px;display:flex;flex-direction:column;gap:14px}
.sheetmodal header{display:flex;justify-content:space-between;align-items:center;gap:10px}
.sheetmodal h2{margin:0;font-family:var(--display);font-weight:800;font-size:32px;line-height:1}
.tut{width:min(420px,100%);border-radius:22px;background:var(--bg);box-shadow:0 20px 60px rgba(0,0,0,.35);overflow:hidden}
.tut .tart{height:150px;background:var(--accent-soft);display:flex;align-items:center;justify-content:center}
.tut .tart svg{width:120px;height:120px}
.tut .tbody{padding:18px 20px 20px;display:flex;flex-direction:column;gap:10px}
.tut .step{font-size:12px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--accent)}
.tut h2{margin:0;font-family:var(--display);font-weight:800;font-size:30px;line-height:1.05}
.tut p{margin:0;font-size:15px;line-height:1.5;color:var(--muted)}
.tut .tact{display:flex;gap:8px;margin-top:6px}
.tut .tact .btn{flex:1}
.dots{display:flex;gap:6px}
.dots i{width:8px;height:8px;border-radius:50%;background:var(--line)}
.dots i.on{background:var(--accent)}
#confetti{position:fixed;inset:0;pointer-events:none;z-index:90}
@media (max-width:820px){.silbox{height:120px}.silbox svg{height:104px}}

/* ---------- Resultado ---------- */
.overlay{position:fixed;inset:0;z-index:80;background:rgba(8,24,32,.55);display:flex;align-items:center;justify-content:center;padding:16px}
.result{width:min(420px,100%);max-height:100%;overflow:auto;border-radius:22px;background:var(--bg);box-shadow:0 20px 60px rgba(0,0,0,.35)}
.result .top{background:#0a4f73;color:#fff;padding:28px 20px 30px;display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center}
.result .bigstars{display:flex;align-items:flex-end;gap:6px}
.result .bigstars svg{width:52px;height:52px}
.result .bigstars svg:nth-child(2){width:72px;height:72px}
.result .kicker{font-size:13px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:#FCD116}
.result h2{margin:0;font-family:var(--display);font-weight:800;font-size:42px;line-height:1}
.result .top p{margin:0;font-size:15px;color:#cfe3ee;max-width:32ch;line-height:1.4}
.result .body{padding:18px 20px 20px;display:flex;flex-direction:column;gap:16px}
.rstats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.rstats div{background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:10px 12px}
.rstats b{display:block;font-family:var(--display);font-weight:800;font-size:26px;line-height:1;font-variant-numeric:tabular-nums}
.rstats span{font-size:12px;color:var(--muted)}
.review{display:flex;flex-wrap:wrap;gap:6px}
.review span{padding:6px 10px;border-radius:6px;background:var(--bad-soft);color:var(--bad-ink);font-weight:600;font-size:14px}
.review span.dep{font-weight:700;text-transform:uppercase;font-size:13px;letter-spacing:.03em}
.tip{font-size:14px;color:var(--muted);line-height:1.45;margin:0}
.ractions{display:flex;flex-direction:column;gap:8px}
.ractions .row{display:flex;gap:8px}
.ractions .row .btn{flex:1}
@media (prefers-reduced-motion:reduce){.layer.anim,.lbl.flash,.ring.miss,.streak.bump,.mf path{transition:none;animation:none}.mh .show{animation:none}}

/* ---------- profes, proyector, contrarreloj, reto del día ---------- */
.teacherbtn{display:flex;align-items:center;gap:10px;border:1px dashed var(--line);background:transparent;border-radius:12px;padding:10px 12px;font-size:14px;font-weight:600;color:var(--accent-deep);cursor:pointer;text-align:left;line-height:1.35}
.teacherbtn:hover{border-color:var(--accent);background:var(--surface)}
.teacherbtn svg{width:22px;height:22px;flex:none;stroke:var(--accent);fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.tsec{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:14px 16px;display:flex;flex-direction:column;gap:10px}
.tsec h3{margin:0;font-family:var(--display);font-weight:800;font-size:22px}
.trow{display:flex;flex-wrap:wrap;gap:10px}
.trow label{display:flex;flex-direction:column;gap:4px;font-size:13px;font-weight:600;color:var(--muted);flex:1;min-width:180px}
.trow select{height:44px;border-radius:10px;border:1px solid var(--line);background:var(--surface2);color:var(--ink);font:500 15px var(--body);padding:0 10px}
.pdfs{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px}
.pdfs .btn{text-decoration:none;color:var(--ink);font-size:14px;height:44px}
.btn.danger{background:var(--bad-soft);border-color:var(--bad);color:var(--bad-ink)}
.share{display:flex;flex-direction:column;gap:6px}
.sharerow{display:flex;gap:8px;align-items:center}
.sharerow output{flex:1;min-width:0;background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:10px 12px;font-size:14px;line-height:1.35;user-select:all}
.sharerow .btn{height:44px;flex:none}
#game.proj{grid-template-columns:minmax(0,1fr) 440px}
#game.proj .qcard .qname{font-size:64px}
#game.proj .qcard .ask{font-size:18px}
#game.proj .qcard .how{font-size:15px}
#game.proj .qactions .btn{height:56px;font-size:17px}
#projblock{display:flex;flex-direction:column;gap:12px}
.layer.tiny .lbl{text-shadow:0 0 1px #fff,0 0 1px #fff}
.seg button{padding:0 6px}
@media (max-width:820px){#game.proj .qcard .qname{font-size:40px}.seg button{font-size:13px}}
