:root{
  --bg:#fff4f8; --ink:#3a2340; --muted:#8b7591; --pink:#ff8fb8; --pinkd:#d94a82; --card:#ffffff;
  --line:#3a2340; --thin:rgba(58,35,64,.14);
  --r0:#ff9aa2; --r1:#ffc48c; --r2:#fff09a; --r3:#b9f2a1; --r4:#a8eef0; --r5:#a9c7ff; --r6:#cdb6ff; --r7:#e3c9a8; --r8:#ffc2e2;
  --font: ui-rounded, "SF Pro Rounded", "Nunito", "Varela Round", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
*{box-sizing:border-box}
html,body{margin:0;height:100%;overflow:hidden;overscroll-behavior:none;touch-action:manipulation;-webkit-text-size-adjust:100%}
button,.cell,.tab,.ctl{touch-action:manipulation}
body{background:radial-gradient(120% 70% at 50% 0%, #ffe3ee 0%, var(--bg) 55%, #eaf7ff 100%) fixed;color:var(--ink);font-family:var(--font);
  -webkit-tap-highlight-color:transparent; -webkit-user-select:none; user-select:none; overflow-x:hidden}
button{font-family:inherit;color:inherit;cursor:pointer}
button:focus-visible{outline:3px solid #6b5bff;outline-offset:2px}
.app{max-width:520px;margin:0 auto;padding:max(8px,env(safe-area-inset-top)) 12px max(10px,env(safe-area-inset-bottom));height:100vh;height:100dvh;height:var(--app-h,100dvh);display:flex;flex-direction:column;overflow:hidden}
.top{display:flex;align-items:center;justify-content:space-between;gap:8px}
.top-right{display:flex;gap:8px}
.brand{margin:0;font-size:1.55rem;font-weight:900;letter-spacing:-.02em;display:flex;align-items:center;gap:6px;color:var(--pinkd)}
.brand-axo{width:38px;height:38px;object-fit:contain}
.icon-btn{width:42px;height:42px;border-radius:14px;border:0;background:var(--card);box-shadow:0 2px 0 rgba(58,35,64,.12);font-size:1.15rem;font-weight:800}
.icon-btn.lang{font-size:.9rem}
.tabs{display:flex;gap:6px;background:rgba(255,255,255,.7);padding:5px;border-radius:18px;margin:12px 0 10px;box-shadow:inset 0 0 0 1px var(--thin)}
.tab{flex:1;border:0;background:transparent;padding:10px 8px;border-radius:14px;font-weight:800;font-size:1rem;color:var(--muted)}
.tab b{font-weight:900}
.tab.active{background:var(--pink);color:#fff;box-shadow:0 3px 0 var(--pinkd)}
main{flex:1;min-height:0;display:flex;flex-direction:column;align-items:center}
.hud{display:flex;gap:8px;justify-content:center;width:100%;margin-bottom:10px}
.pill{background:var(--card);border-radius:999px;padding:7px 14px;font-weight:800;font-variant-numeric:tabular-nums;box-shadow:0 2px 0 rgba(58,35,64,.1);font-size:1rem}
.board-wrap{flex:1;min-height:120px;width:100%;display:flex;align-items:center;justify-content:center}
.board{-webkit-touch-callout:none;--n:7;--bs:min(100%, 480px);width:var(--bs);height:var(--bs);flex:none;display:grid;grid-template-columns:repeat(var(--n),minmax(0,1fr));grid-template-rows:repeat(var(--n),minmax(0,1fr));
  border:3.5px solid var(--line);border-radius:14px;overflow:hidden;touch-action:none;background:var(--line);gap:0;box-shadow:0 8px 24px rgba(217,74,130,.18)}
.cell{position:relative;border:0;padding:0;margin:0;min-width:0;min-height:0;overflow:hidden;box-shadow:inset 0 0 0 .5px var(--thin);transition:filter .12s}
.cell:active{filter:brightness(.93)}
.c0{background:var(--r0)}.c1{background:var(--r1)}.c2{background:var(--r2)}.c3{background:var(--r3)}.c4{background:var(--r4)}.c5{background:var(--r5)}.c6{background:var(--r6)}.c7{background:var(--r7)}.c8{background:var(--r8)}
.cell .x{pointer-events:none;overflow:visible}
.cell .x line{stroke:#2b1b2e;stroke-width:15;stroke-linecap:round}
.cell .x .halo{stroke:rgba(255,255,255,.75);stroke-width:27}
.cell .dot{position:absolute;left:41%;top:41%;width:18%;height:18%;border-radius:50%;background:rgba(58,35,64,.28);pointer-events:none}
.cell .piece{position:absolute;inset:7%;width:86%;height:86%;object-fit:contain;pointer-events:none;-webkit-user-drag:none;animation:pop .28s cubic-bezier(.3,1.6,.5,1)}
.cell svg.x{position:absolute;inset:28%;width:44%;height:44%;animation:xin .12s ease-out}
@keyframes xin{from{transform:scale(.4);opacity:.3}}
.cell.bad{background-image:repeating-linear-gradient(45deg, rgba(230,40,70,.32) 0 6px, transparent 6px 12px)}
.cell.bad .piece{animation:shake .35s}
.cell.hint{animation:glow 1s ease 2}
.board.won .cell .piece{animation:wave .9s ease both;animation-delay:calc(var(--i) * 70ms)}
@keyframes pop{0%{transform:scale(.2) rotate(-20deg)}100%{transform:scale(1)}}
@keyframes shake{0%,100%{transform:translateX(0)}25%{transform:translateX(-12%)}75%{transform:translateX(12%)}}
@keyframes wave{0%{transform:translateY(0) scale(1)}35%{transform:translateY(-28%) scale(1.18) rotate(-8deg)}70%{transform:translateY(4%) scale(.96)}100%{transform:none}}
@keyframes glow{0%,100%{filter:none}50%{filter:brightness(1.25) saturate(1.6)}}
.goal{margin:12px 6px 4px;text-align:center;font-weight:700;color:var(--muted);font-size:.98rem;line-height:1.35;max-width:440px}
.progress{display:flex;gap:5px;justify-content:center;min-height:16px;margin:4px 0 6px}
.progress i{width:14px;height:14px;border-radius:50%;background:rgba(58,35,64,.12);transition:background .2s, transform .2s}
.progress i.on{background:var(--pink);transform:scale(1.15)}
.controls{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;width:100%;max-width:480px;margin-top:6px}
.ctl{border:0;background:var(--card);border-radius:16px;padding:9px 4px 7px;display:flex;flex-direction:column;align-items:center;gap:2px;font-size:1.3rem;box-shadow:0 3px 0 rgba(58,35,64,.12);min-height:56px}
.ctl small{font-size:.74rem;font-weight:800;color:var(--muted)}
.ctl.on{background:#ffe1ee;box-shadow:0 3px 0 var(--pinkd)}
.ctl.on small{color:var(--pinkd)}
.ctl:active,.big-btn:active,.icon-btn:active,.tab:active{transform:translateY(2px)}
.tip{font-size:.8rem;color:var(--muted);text-align:center;margin:10px 0 0;font-weight:600}
.pausa-foot,.pausa-help{text-align:center;margin:6px 0 0;font-size:.74rem;font-weight:700}
.pausa-help{margin:12px 0 0;font-size:.85rem}
.pausa-foot a,.pausa-help a{color:var(--muted);text-decoration:none;opacity:.85;padding:4px 8px;border-radius:999px}
.pausa-foot a:active,.pausa-help a:active{background:#ffe1ee}
.modal{position:fixed;inset:0;background:rgba(58,35,64,.45);display:flex;align-items:flex-end;justify-content:center;z-index:20;padding:12px;animation:fade .2s}
.modal[hidden]{display:none}
.sheet{background:#fff;border-radius:26px;padding:22px 20px 18px;width:100%;max-width:440px;max-height:92vh;overflow:auto;animation:up .3s cubic-bezier(.2,1.2,.4,1);text-align:center}
.sheet h2{margin:2px 0 10px;font-size:1.6rem;font-weight:900;color:var(--pinkd)}
.rules{text-align:left;font-size:1rem;line-height:1.4}
.rules p{margin:8px 0;padding-left:30px;position:relative}
.rules p::before{content:"🩷";position:absolute;left:0}
.mini{width:180px;height:180px;margin:12px auto;display:grid;grid-template-columns:repeat(4,1fr);border:3px solid var(--line);border-radius:10px;overflow:hidden}
.big-btn{display:block;width:100%;border:0;border-radius:18px;background:var(--pink);color:#fff;font-weight:900;font-size:1.15rem;padding:15px;margin-top:10px;box-shadow:0 4px 0 var(--pinkd)}
.big-btn.share{background:#ff5a36;box-shadow:0 5px 0 #c63a1c;font-size:1.25rem;padding:17px}
.big-btn.second{background:#fff;color:#e2401c;box-shadow:inset 0 0 0 3px #ff5a36,0 4px 0 #c63a1c}
.big-btn.alt{background:#fff;color:var(--pinkd);box-shadow:inset 0 0 0 2.5px var(--pink),0 4px 0 var(--pinkd)}
.ghost{display:block;width:100%;border:0;background:none;color:var(--muted);font-weight:800;font-size:.98rem;padding:12px 8px 4px;text-decoration:underline;text-underline-offset:3px}
.ghost[hidden]{display:none}
.challenge-banner{display:flex;align-items:center;justify-content:center;gap:8px;background:#fff1ec;color:#c63a1c;border-radius:14px;padding:7px 12px;font-weight:900;margin:0 0 8px;box-shadow:inset 0 0 0 2px #ffb4a1}
.challenge-banner[hidden]{display:none}
.vs{font-weight:900;font-size:1.05rem;margin:2px 0 8px;color:#c63a1c}
.vs:empty{display:none}
.link-btn{border:0;background:none;color:var(--muted);font-weight:800;margin-top:10px;padding:8px;font-size:.95rem}
.win-axo{width:84px;height:84px;object-fit:contain;animation:bob 1.2s ease-in-out infinite}
@keyframes bob{0%,100%{transform:translateY(0) rotate(-4deg)}50%{transform:translateY(-10px) rotate(4deg)}}
.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:6px 0 10px}
.stats div{background:#fff0f6;border-radius:16px;padding:10px 4px}
.stats b{display:block;font-size:1.5rem;font-variant-numeric:tabular-nums}
.stats small{color:var(--muted);font-weight:700}
.hearts{font-size:1.5rem;letter-spacing:2px;min-height:1.6em}
.next-daily{color:var(--muted);font-weight:700;margin:12px 0 0}
.toast{position:fixed;left:50%;top:calc(env(safe-area-inset-top) + 14px);transform:translate(-50%,-140%);background:var(--ink);color:#fff;padding:10px 18px;border-radius:999px;font-weight:800;z-index:40;transition:transform .25s;max-width:90vw;text-align:center}
.toast.show{transform:translate(-50%,0)}
.confetti{position:fixed;inset:0;pointer-events:none;z-index:30;overflow:hidden}
.confetti span{position:absolute;top:-40px;font-size:22px;animation:fall var(--d) linear forwards;animation-delay:var(--dl)}
@keyframes fall{to{transform:translate(var(--dx),110vh) rotate(var(--rot))}}
@keyframes fade{from{opacity:0}}
@keyframes up{from{transform:translateY(60px);opacity:.3}}
@media (min-width:700px){.modal{align-items:center}}
@media (max-height:760px){.tip{display:none}.pausa-foot{margin-top:2px}.goal{font-size:.86rem;margin:6px 6px 2px}.progress{margin:2px 0 4px;min-height:12px}.progress i{width:11px;height:11px}}
@media (max-height:680px){.icon-btn{width:36px;height:36px;border-radius:12px}.brand{font-size:1.3rem}.brand-axo{width:30px;height:30px}.tabs{margin:6px 0 6px;padding:3px}.tab{padding:7px 6px;font-size:.92rem}.chips{margin-bottom:6px}.chip{min-height:40px;padding:4px}.hud{margin-bottom:6px}.pill{padding:4px 11px;font-size:.92rem}.ctl{min-height:46px;padding:5px 4px 4px;font-size:1.1rem}.goal{display:none}}
@media (max-height:600px){.progress{display:none}.chip .sub{display:none}.chip{min-height:32px}}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
.chips{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin:0 0 10px}
.chips[hidden]{display:none}
.chip{border:0;background:#fff;border-radius:14px;padding:7px 4px;display:flex;flex-direction:column;align-items:center;gap:1px;box-shadow:0 2px 0 rgba(58,35,64,.1);min-height:48px}
.chip .nm{font-weight:900;font-size:.92rem}
.chip .sub{font-size:.78rem;font-weight:800;color:var(--muted);font-variant-numeric:tabular-nums}
.chip.active{box-shadow:inset 0 0 0 2.5px var(--pinkd),0 2px 0 var(--pinkd)}
.chip.done{background:#eafbe6}
.chip.done .sub{color:#2f8a3a}
.summary{display:grid;gap:6px;margin:4px 0 8px}
.summary[hidden]{display:none}
.srow{display:flex;justify-content:space-between;background:#f6f1f8;border-radius:12px;padding:9px 14px;font-weight:800}
.srow.ok{background:#eafbe6}
.srow b{font-variant-numeric:tabular-nums}
.big-btn[hidden]{display:none}
.hearts:empty{display:none}

/* v3: first-win warm-up + spoiler-free share preview */
body.intro .tabs,body.intro .chips,body.intro .tip,body.intro .progress,body.intro .goal{display:none}
body.intro .challenge-banner{font-weight:800;font-size:.95rem;line-height:1.3;text-align:center;margin:4px 0 10px;padding:9px 12px}
.link-btn[hidden],.stats[hidden],.share-box[hidden]{display:none}
.share-box{margin:6px 0 2px;text-align:left}
.share-box small{display:block;color:var(--muted);font-weight:800;font-size:.8rem;margin:0 0 4px 4px}
.share-preview{margin:0;padding:10px 14px;background:#fff7fa;border:2px dashed #ffc2d6;border-radius:16px;font:700 15px/1.45 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;color:#3a2340;white-space:pre-wrap;word-break:break-word;-webkit-user-select:text;user-select:text}
.sheet.intro-win .vs{font-size:1.05rem;font-weight:800;margin:4px 0 6px}
@media (max-height:700px){.win-axo{width:60px;height:60px}.sheet{padding:16px 16px 12px}.sheet h2{font-size:1.4rem;margin-bottom:6px}.share-preview{font-size:14px;line-height:1.35;padding:8px 12px}.big-btn{padding:13px;margin-top:8px}.big-btn.share{padding:15px}}
.sheet.win:not(.intro-win) .win-axo{width:56px;height:56px}
.sheet.win:not(.intro-win) h2{margin:0 0 6px}
.sheet.win:not(.intro-win) .stats{margin:4px 0 6px}.sheet.win:not(.intro-win) .stats div{padding:6px 4px}.sheet.win:not(.intro-win) .stats b{font-size:1.3rem}
.sheet.win .next-daily{margin:6px 0 0}
@media (max-height:700px){.sheet.win:not(.intro-win) .win-axo{width:44px;height:44px}.sheet.win:not(.intro-win) .stats b{font-size:1.15rem}.sheet.win:not(.intro-win) .stats small{font-size:.75rem}.share-box small{display:none}}

/* Oct 9: Nivel 1 first-move glow + celebratory Level-1 win */
.cell.first::after{content:"";position:absolute;inset:6%;border-radius:22%;box-shadow:0 0 0 3px #ff5a36,0 0 14px 4px rgba(255,90,54,.55);animation:firstglow 1.2s ease-in-out infinite;pointer-events:none}
@keyframes firstglow{0%,100%{opacity:.35;transform:scale(.9)}50%{opacity:1;transform:scale(1)}}
.sheet.lvl1-win h2{font-size:1.75rem}
.sheet.lvl1-win .vs{font-size:1.1rem;margin:0 0 8px}
.sheet.lvl1-win .big-btn.share{font-size:1.35rem;padding:19px;animation:sharepulse 1.6s ease-in-out .8s infinite}
@keyframes sharepulse{0%,100%{transform:scale(1)}50%{transform:scale(1.035)}}
.sheet.lvl1-win #btnChallenge.ghost{padding:10px 8px 2px}
@media (prefers-reduced-motion:reduce){.cell.first::after,.sheet.lvl1-win .big-btn.share{animation:none}}

/* ---- portal builds (CrazyGames): nothing that navigates out of the game ---- */
html.portal .pausa-foot,html.portal .pausa-help{display:none}
/* ---- practice nudge once today's three are done ---- */
.tab.nudge:not(.active){color:var(--pinkd);box-shadow:inset 0 0 0 2px var(--pink);animation:tabnudge 1.6s ease-in-out infinite}
@keyframes tabnudge{0%,100%{transform:scale(1)}50%{transform:scale(1.05)}}
/* ---- come-back-tomorrow card on the win sheet ---- */
.sheet.win .next-daily{display:flex;flex-direction:column;gap:3px;background:#fff4f8;border-radius:14px;padding:8px 10px;margin:10px 0 0;box-shadow:inset 0 0 0 1px var(--thin)}
.sheet.win .next-daily:empty{display:none}
.next-daily .nd-streak{color:#e2401c;font-weight:900;font-size:.98rem}
.next-daily .nd-time{font-variant-numeric:tabular-nums;font-size:.9rem}
/* ---- wide & short screens (phone landscape, portal iframes): board left, everything else right ---- */
@media (min-aspect-ratio:4/3) and (max-height:760px){
  .app{max-width:1040px;display:grid;grid-template-columns:minmax(0,1fr) minmax(250px,330px);grid-template-rows:repeat(11,auto) 1fr;column-gap:18px;align-items:start;padding-left:max(12px,env(safe-area-inset-left));padding-right:max(12px,env(safe-area-inset-right))}
  main{display:contents}
  .app>*,main>*{grid-column:2}
  .board-wrap{grid-column:1;grid-row:1/-1;height:100%;min-height:0;align-self:stretch}
  .top{margin-top:2px}
  .tabs{margin:8px 0 6px}
  .hud{margin:4px 0 4px}
  .goal{margin:4px 2px 2px;font-size:.88rem}
  .controls{margin-top:8px;max-width:none}
  .challenge-banner{margin:0 0 6px}
  body:not(.intro) .goal{display:block}
  body:not(.intro) .tip{display:block;margin:8px 0 0}
}
@media (min-aspect-ratio:4/3) and (max-height:430px){
  .icon-btn{width:34px;height:34px;border-radius:11px}.brand{font-size:1.2rem}.brand-axo{width:28px;height:28px}
  .tabs{margin:4px 0 4px;padding:3px}.tab{padding:6px 6px;font-size:.88rem}
  .chips{margin-bottom:4px}.chip{min-height:30px;padding:2px}.chip .sub{display:none}
  .hud{margin:2px 0}.pill{padding:4px 10px;font-size:.88rem}
  .goal{font-size:.8rem;margin:2px}
  .progress{display:none}
  body:not(.intro) .tip{display:none}
  .controls{gap:6px;margin-top:4px}.ctl{padding:5px 2px;min-height:44px;font-size:1.1rem}
}

/* ---- Oct 16: win sheet on wide & short screens (CrazyGames desktop frame ~835x430, phone landscape): two columns, nothing below the fold ---- */
.win-info,.win-actions{display:block}
@media (min-width:640px) and (max-height:520px){
  .modal{align-items:center;padding:8px}
  .sheet.win:not(.intro-win){max-width:720px;max-height:calc(100vh - 16px);padding:10px 16px 10px;display:grid;grid-template-columns:1fr 1fr;column-gap:16px;align-items:center}
  .sheet.win:not(.intro-win) .win-info{grid-column:1}
  .sheet.win:not(.intro-win) .win-actions{grid-column:2}
  .sheet.win:not(.intro-win) .win-axo{width:40px;height:40px}
  .sheet.win:not(.intro-win) h2{margin:0 0 4px;font-size:1.25rem}
  .sheet.lvl1-win h2{font-size:1.3rem}
  .sheet.win:not(.intro-win) .vs{font-size:.92rem;margin:0 0 6px}
  .sheet.win:not(.intro-win) .stats{margin:2px 0 6px;gap:6px}
  .sheet.win:not(.intro-win) .stats div{padding:5px 4px}
  .sheet.win:not(.intro-win) .stats b{font-size:1.05rem}
  .sheet.win:not(.intro-win) .stats small{font-size:.72rem}
  .sheet.win .share-box{margin:0}
  .sheet.win .share-box small{display:none}
  .sheet.win .share-preview{font-size:12px;line-height:1.3;padding:6px 10px}
  .sheet.win .big-btn.share{font-size:1.15rem;padding:14px;margin-top:0}
  .sheet.lvl1-win .big-btn.share{font-size:1.2rem;padding:15px;animation:none}
  .sheet.win .big-btn.second,.sheet.win .big-btn.alt{padding:11px;margin-top:8px;font-size:1.05rem}
  .sheet.win .ghost{padding:6px 4px 2px;font-size:.9rem}
  .sheet.win .next-daily{margin:6px 0 0;padding:6px 8px}
  .next-daily .nd-streak{font-size:.88rem}
  .next-daily .nd-time{font-size:.8rem}
  .sheet.win .link-btn{margin-top:2px;padding:4px}
}
/* stronger glow while the warm-up guides each step */
body.intro .cell.first::after{box-shadow:0 0 0 4px #ff5a36,0 0 18px 6px rgba(255,90,54,.75)}

/* ---- v6 (Oct 18 2026) ---- */
/* help lives in the controls row on portal builds (CrazyGames' login bar covers the header for the first seconds) */
.ctl-help{display:none}
html.portal .ctl-help{display:flex}
html.portal .controls{grid-template-columns:repeat(5,1fr)}
html.portal #btnHelp{visibility:hidden;pointer-events:none}
/* idle nudge on the Hint button */
.ctl.nudge{animation:ctlnudge .9s ease-in-out 3;background:#fff3c4;box-shadow:0 3px 0 #e0a800}
@keyframes ctlnudge{0%,100%{transform:scale(1)}50%{transform:scale(1.12)}}
/* auto-continue: a bar fills along the bottom of the Next button */
.big-btn.auto{position:relative;overflow:hidden}
.big-btn.auto::after{content:"";position:absolute;left:0;bottom:0;height:5px;width:100%;background:currentColor;opacity:.45;transform-origin:left center;animation:autofill var(--auto,3s) linear forwards}
@keyframes autofill{from{transform:scaleX(0)}to{transform:scaleX(1)}}
.toast{max-width:min(92vw,420px);white-space:normal;text-align:center;border-radius:20px;pointer-events:none}
/* portal: CrazyGames draws its own bar over the top of the frame, so toasts rise from the bottom there */
html.portal .toast{top:auto;bottom:calc(env(safe-area-inset-bottom) + 12px);transform:translate(-50%,170%)}
html.portal .toast.show{transform:translate(-50%,0)}

/* ---- Oct 20 2026: rules card + labelled rules button ---- */
.icon-btn.help-pill{width:auto;padding:0 12px 0 6px;display:flex;align-items:center;gap:6px;font-size:.95rem;font-weight:900;color:var(--pinkd);box-shadow:inset 0 0 0 2px var(--pink),0 2px 0 rgba(58,35,64,.12)}
.help-pill b{display:inline-grid;place-items:center;width:26px;height:26px;border-radius:50%;background:var(--pink);color:#fff;font-size:1rem;line-height:1}
@media (max-width:389px){.icon-btn.help-pill{padding:0 9px 0 5px;gap:4px;font-size:.88rem}.help-pill b{width:23px;height:23px}.brand{font-size:1.35rem}.brand-axo{width:32px;height:32px}}
.sheet.rules-sheet{max-width:460px;padding:18px 18px 14px}
.rules-sheet h2{margin:0 0 8px;font-size:1.75rem;line-height:1.1}
.rules-sheet small.alt{display:block;font-size:.8rem;font-weight:700;color:var(--muted);line-height:1.25;margin-top:2px}
.rules-sheet h2 small.alt{font-size:.9rem;margin-top:3px}
.rules2{list-style:none;margin:0;padding:0;text-align:left;display:grid;gap:7px}
.rules2 li{display:flex;align-items:center;gap:11px;background:#fff4f8;border-radius:16px;padding:9px 12px;box-shadow:inset 0 0 0 1px var(--thin)}
.rules2 .ri{flex:none;width:32px;font-size:1.45rem;text-align:center}
.rules2 .rt{display:block;font-size:1.12rem;font-weight:700;line-height:1.25;color:var(--ink)}
.rules2 .rt b{color:var(--pinkd);font-weight:900}
.rules2 small.alt b{font-weight:800}
.ex-row{display:flex;justify-content:center;align-items:flex-end;gap:22px;margin:12px 0 2px}
.ex{margin:0;display:flex;flex-direction:column;align-items:center;gap:5px}
.ex figcaption{font-size:.9rem;font-weight:900}
.ex-yes figcaption{color:#2f8a3a}.ex-no figcaption{color:#c63a1c}
.rules-sheet .mini{width:112px;height:112px;margin:0;border-width:3px}
.rules-sheet .mini-no{width:58px;height:58px;grid-template-columns:repeat(2,1fr);border-color:#c63a1c}
.mini-no .cell.bad{box-shadow:inset 0 0 0 3px #e2401c}
.rules-sheet .big-btn{font-size:1.3rem;padding:14px;margin-top:12px}
.rules-sheet .big-btn small.alt{color:rgba(255,255,255,.92);font-size:.82rem;margin-top:1px}
.rules-sheet .pausa-help{margin:6px 0 0}
@media (max-height:700px){.sheet.rules-sheet{padding:12px 14px 8px;max-height:calc(100vh - 20px);max-height:calc(100dvh - 20px)}.rules-sheet h2{font-size:1.45rem;margin-bottom:6px}.rules-sheet h2 small.alt{display:inline;font-size:.85rem;margin:0 0 0 4px}
  .rules2{gap:5px}.rules2 li{padding:6px 10px;gap:9px}.rules2 .ri{font-size:1.25rem;width:28px}.rules2 .rt{font-size:1.02rem}.rules-sheet small.alt{font-size:.74rem}
  .rules-sheet .mini{width:84px;height:84px}.rules-sheet .mini-no{width:46px;height:46px}.ex-row{margin:7px 0 0;gap:18px}.ex figcaption{font-size:.84rem}
  .rules-sheet .big-btn{padding:9px;margin-top:7px;font-size:1.2rem}.rules-sheet .pausa-help{margin:1px 0 0;font-size:.72rem}.rules-sheet .pausa-more{font-size:.72rem!important;margin-top:2px!important}}
@media (max-height:600px){.rules-sheet h2{font-size:1.3rem;margin-bottom:4px}.rules2{gap:4px}.rules2 li{padding:5px 9px}.rules2 .rt{font-size:.97rem;line-height:1.2}.rules-sheet small.alt{font-size:.7rem;line-height:1.2}
  .ex-row{margin:5px 0 0}.rules-sheet .mini{width:68px;height:68px}.rules-sheet .mini-no{width:38px;height:38px}.ex figcaption{font-size:.78rem}.ex{gap:3px}.rules-sheet .big-btn{padding:8px;margin-top:6px}}
@media (min-aspect-ratio:4/3) and (max-height:520px){.sheet.rules-sheet{max-width:760px;display:grid;grid-template-columns:1.4fr 1fr;column-gap:16px;align-items:center;max-height:calc(100vh - 16px)}
  .rules-sheet h2{grid-column:1;grid-row:1;margin:0 0 6px}.rules2{grid-column:1;grid-row:2/5}.ex-row{grid-column:2;grid-row:1/3;margin:0}.rules-sheet .big-btn{grid-column:2;grid-row:3}.rules-sheet .pausa-more{grid-column:2;grid-row:4}.rules-sheet .pausa-help{display:none}}

/* ---- Oct 20 QA pass (task b206dcb5): fit on every device ---- */
/* the hearts row is always empty: don't reserve 38px of blank space in the win sheet */
.hearts:empty{display:none}
/* narrow phones (Android 360/ small iPhones) get the compact rules card even when tall, so nothing scrolls */
@media (max-width:374px){.sheet.rules-sheet{padding:12px 14px 8px}.rules-sheet h2{font-size:1.45rem;margin-bottom:6px}.rules-sheet h2 small.alt{display:inline;font-size:.85rem;margin:0 0 0 4px}
  .rules2{gap:5px}.rules2 li{padding:6px 10px;gap:9px}.rules2 .ri{font-size:1.25rem;width:28px}.rules2 .rt{font-size:1.02rem}.rules-sheet small.alt{font-size:.74rem}
  .rules-sheet .mini{width:84px;height:84px}.rules-sheet .mini-no{width:46px;height:46px}.ex-row{margin:7px 0 0;gap:18px}.ex figcaption{font-size:.84rem}
  .rules-sheet .big-btn{padding:10px;margin-top:7px;font-size:1.2rem}.rules-sheet .pausa-help{margin:1px 0 0;font-size:.72rem}.rules-sheet .pausa-more{font-size:.72rem!important;margin-top:2px!important}}
/* level win sheet on portrait screens up to ~880px tall (iPhone SE/14, Android 360x800, laptops 768px): everything visible without scrolling */
@media (max-height:880px) and (max-aspect-ratio:4/3){.sheet.win:not(.intro-win) .win-axo{width:46px;height:46px}
  .sheet.win .share-preview{font-size:14px;line-height:1.32;padding:7px 12px}.sheet.win .next-daily{padding:6px 10px;gap:2px}.sheet.win #btnWinClose{margin-top:4px}}
@media (min-width:700px) and (max-height:880px){.sheet.win:not(.intro-win) .win-axo{width:46px;height:46px}.sheet.win .share-preview{font-size:14px;line-height:1.32;padding:7px 12px}.sheet.win .next-daily{padding:6px 10px;gap:2px}.sheet.win #btnWinClose{margin-top:4px}}
@media (max-height:700px) and (max-aspect-ratio:4/3){.sheet.lvl1-win h2{font-size:1.45rem}.sheet.lvl1-win .vs{font-size:1rem;margin:0 0 4px}
  .sheet.win:not(.intro-win) .win-axo{width:40px;height:40px}.sheet.win:not(.intro-win) .stats{margin:2px 0 4px}.sheet.win:not(.intro-win) .stats div{padding:4px}
  .sheet.win .share-box{margin:2px 0 0}.sheet.win .share-preview{font-size:12.5px;line-height:1.25;padding:5px 10px}
  .sheet.lvl1-win .big-btn.share{font-size:1.25rem;padding:14px}.sheet.win .big-btn.second{padding:12px;margin-top:8px}
  .sheet.win .next-daily{padding:4px 8px;margin:6px 0 0;gap:1px}.sheet.win .ghost{padding:7px 8px 2px}.sheet.win #btnWinClose{margin-top:2px;padding-top:6px;padding-bottom:6px}}
/* very short (Safari with bars on iPhone SE): drop the share preview, the share button still shares the same text */
@media (max-height:600px) and (max-aspect-ratio:4/3){.sheet.win:not(.intro-win) .share-box{display:none}}
/* phone landscape: 44px tap targets for the win buttons and a taller rules pill */
@media (min-width:640px) and (max-height:520px){.sheet.win .big-btn.second,.sheet.win .big-btn.alt{padding:12px}}
@media (min-aspect-ratio:4/3) and (max-height:430px){.icon-btn.help-pill{height:40px}}

/* ---- Oct 20 2026: add-to-home-screen offer on the daily win card ---- */
.next-daily .a2-pill{align-self:center;border:0;background:#fff;color:var(--pinkd);font-weight:900;font-size:.86rem;padding:6px 12px;margin-top:3px;border-radius:999px;box-shadow:inset 0 0 0 2px var(--pink);min-height:32px;cursor:pointer}
.a2-modal{z-index:30;align-items:center}
.a2-sheet{max-width:380px;text-align:left}
.a2-sheet .a2-icon{display:block;margin:0 auto 6px;width:64px;height:64px;border-radius:15px;box-shadow:0 2px 8px rgba(58,35,64,.18)}
.a2-sheet h2{text-align:center;margin:0 0 4px;font-size:1.35rem}
.a2-sub{text-align:center;color:var(--muted);margin:0 0 10px;font-size:.95rem}
.a2-steps{margin:0 0 4px;padding-left:1.4em;display:flex;flex-direction:column;gap:8px;font-size:1rem;line-height:1.35}
.a2-steps .a2-ic{display:inline-block;padding:0 6px;border-radius:6px;background:#eaf2ff;color:#1a73e8;font-weight:900}
.a2-sheet .link-btn{display:block;margin:4px auto 0}
@media (min-aspect-ratio:4/3) and (max-height:760px){.next-daily .a2-pill{font-size:.78rem;padding:4px 10px;min-height:28px;margin-top:1px}}
/* the offer takes the share-preview's room on shorter phones (the share button still shares the same text) */
@media (max-height:820px) and (max-aspect-ratio:4/3){.sheet.win.has-a2 .share-box{display:none}}
@media (max-height:500px){.a2-sheet .a2-icon{display:none}.a2-sheet h2{font-size:1.15rem}.a2-sub{margin-bottom:6px;font-size:.88rem}.a2-steps{gap:4px;font-size:.92rem}.a2-sheet{padding:14px 18px 10px}}
.next-daily .a2-pill{white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}
@media (max-width:374px){.next-daily .a2-pill{font-size:.78rem;padding:5px 10px}}

/* ---- Oct 21 2026: "remind me tomorrow" button on the come-back row ---- */
.next-daily .nd-row{display:flex;align-items:center;justify-content:center;flex-wrap:nowrap;gap:4px 10px;width:100%}
.next-daily .nd-row>.nd-time{flex:0 1 auto;min-width:0;width:auto;display:inline;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.next-daily .nd-row>.rem-btn,.next-daily .nd-row>.rem-ok{flex:0 0 auto;width:auto;margin:0}
.next-daily .rem-btn{border:0;background:#c2386f;color:#fff;font-weight:900;font-size:.8rem;padding:4px 10px;border-radius:999px;min-height:28px;cursor:pointer;white-space:nowrap;line-height:1.1}
.next-daily .rem-btn:focus-visible{outline:3px solid var(--pinkd);outline-offset:2px}
.next-daily .rem-ok{font-size:.78rem;font-weight:800;color:var(--pinkd);white-space:nowrap}
.rem-sheet{text-align:center}
.rem-sheet .a2-sub{margin-bottom:12px}
.rem-sheet .rem-alt{display:block;width:100%;margin-top:6px}
.rem-note{font-size:.85rem;color:var(--muted);margin:8px 0 0}
@media (max-width:374px){.next-daily .rem-btn{font-size:.74rem;padding:4px 8px}}
@media (max-width:339px){.next-daily .nd-row{gap:4px 6px}.next-daily .nd-row>.nd-time{font-size:.74rem}.next-daily .rem-btn{font-size:.7rem;padding:3px 7px;min-height:26px}}

/* Oct 24 2026: "your week" strip on the daily win card (last 5 days · today · tomorrow pill) */
.next-daily .wk{display:flex;justify-content:center;align-items:center;gap:4px;margin:0 0 3px}
.wk-d{display:block;padding:0;border:0;background:none;font:inherit;color:inherit;-webkit-tap-highlight-color:transparent}
.wk-d .wk-o{width:26px;height:26px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#fff;box-shadow:inset 0 0 0 2px #f1c9d8;font-size:.7rem;font-weight:800;color:#b48a9b;line-height:1}
.wk-d .wk-o img{width:21px;height:21px;object-fit:contain;pointer-events:none}
.wk-d.done .wk-o{background:#d9f7e4;box-shadow:inset 0 0 0 2px #3fbf73}
.wk-d.today .wk-o{box-shadow:inset 0 0 0 2px #3fbf73,0 0 0 2px #fff,0 0 0 4px #e2401c}
.wk-d.today{margin:0 3px}
.wk-d.pop .wk-o{animation:wkpop .7s cubic-bezier(.2,1.6,.4,1) .5s both}
.wk-d.miss{cursor:pointer}
.wk-d.miss:hover .wk-o,.wk-d.miss:focus-visible .wk-o{box-shadow:inset 0 0 0 2px #e2407a;color:#e2407a}
.wk-d.off{opacity:.35}
.wk-d.next .wk-o{width:auto;border-radius:13px;padding:0 9px;background:transparent;box-shadow:none;border:2px dashed #e2407a;color:#e2407a;font-size:.72rem;font-weight:900;white-space:nowrap}
@keyframes wkpop{0%{transform:scale(.4)}60%{transform:scale(1.25)}100%{transform:scale(1)}}
@media (prefers-reduced-motion:reduce){.wk-d.pop .wk-o{animation:none}}
@media (max-height:700px){.wk-d .wk-o{width:24px;height:24px}.wk-d .wk-o img{width:19px;height:19px}.wk-d.next .wk-o{height:24px}}
@media (max-height:600px){.sheet.win.has-a2:not(.intro-win) .win-axo{width:34px;height:34px}.sheet.win.has-a2:not(.intro-win) h2{font-size:1.3rem;margin:0 0 2px}.sheet.win.has-a2:not(.intro-win) .stats{margin:2px 0 4px}.sheet.win.has-a2 .next-daily{padding:6px 10px;margin-top:8px}}
@media (max-height:600px){.sheet.win.has-a2.lvl1-win .big-btn.share{padding:14px;font-size:1.25rem}.sheet.win.has-a2:not(.intro-win) .big-btn.second{padding:10px}}
@media (max-height:600px){.sheet.win.has-a2.lvl1-win .vs{font-size:.95rem;margin:0 0 4px}}
@media (max-width:359px){.next-daily .wk .wk-d:nth-child(-n+2){display:none}}

/* v7: recovery guide — a misplaced pondito pulses red with a "take me back" ring (warm-up always; easy boards after idle) */
.cell.fix::after{content:"";position:absolute;inset:4%;border-radius:22%;box-shadow:0 0 0 3px #e2401c,0 0 14px 4px rgba(226,64,28,.55);animation:fixpulse 1s ease-in-out infinite;pointer-events:none}
@keyframes fixpulse{0%,100%{opacity:.4;transform:scale(.92)}50%{opacity:1;transform:scale(1.02)}}
@media (prefers-reduced-motion:reduce){.cell.fix::after{animation:none;opacity:1}}
