  :root{ --bg1:#ffe9a8; --bg2:#ffc7d9; --ink:#4a2c6b; --accent:#ff7a3d; --accent2:#7c5cff; --ok:#34c47c; --bad:#ff4d6d; }
  *{box-sizing:border-box; -webkit-tap-highlight-color:transparent;}
  html,body{margin:0;height:100%;height:100dvh;overflow:hidden;overscroll-behavior:none;position:fixed;inset:0;width:100%;}
  body{font-family:"Rubik","Varela Round","IBM Plex Sans Hebrew","Arial Rounded MT Bold","Segoe UI",Arial,sans-serif;color:var(--ink);
    background:#ffb36b;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;touch-action:none;}
  button{font-family:inherit;color:inherit;cursor:pointer;border:none;touch-action:manipulation;}
  #cv{position:fixed;inset:0;width:100%;height:100%;display:block;touch-action:none;}
  .iconbtn{width:46px;height:46px;border-radius:50%;background:#fff;box-shadow:0 4px 0 #0002;font-size:23px;display:flex;align-items:center;justify-content:center;flex:none;padding:0}
  .hidden{display:none !important}
  .an-menu{--an-accent:#1f7a49}
body .an-menu{z-index:30}
  #mFace svg,#overHero svg{width:72px;height:72px;display:block}
  .chars{display:flex;gap:8px;justify-content:center}
  .ch{flex:1 1 0;min-width:0;max-width:136px;background:var(--an-card);color:var(--an-ink);border:1.5px solid var(--an-line);border-radius:var(--an-r);padding:8px 4px;display:flex;flex-direction:column;align-items:center;gap:2px;font-weight:700;font-size:15px;line-height:1.15;min-height:44px}
  .ch svg{width:74%;height:auto}
  .ch.sel{background:var(--an-tint);border-color:var(--an-accent)}
  .ch.locked{opacity:.6}
  .ch small{font-size:.85em;opacity:.85;font-weight:600}
  .foes{display:flex;gap:4px;justify-content:center;flex-wrap:wrap}
  .foe{display:flex;flex-direction:column;align-items:center;font-size:13px;font-weight:600;width:84px;line-height:1.1}
  .foe canvas{width:56px;height:56px}
  #hud{position:fixed;left:0;right:0;top:0;z-index:10;padding:max(6px,env(safe-area-inset-top)) 6px 6px;display:flex;align-items:center;gap:5px;
       background:linear-gradient(#ffffffa0,#ffffff50);border-bottom:3px solid #ffffffaa;box-shadow:0 4px 12px #0001}
  .pill{background:#fff;border-radius:999px;padding:4px 9px;font-size:clamp(15px,4.2vw,21px);font-weight:800;box-shadow:0 3px 0 #0002;white-space:nowrap;display:flex;align-items:center;gap:3px;height:42px}
  .pill b{color:var(--accent);font-size:1.1em}
  .grow{flex:1 0 auto;justify-content:center}
  #hud .iconbtn{width:44px;height:44px}
  .hearts svg{width:20px;height:20px;transition:transform .3s}
  .hearts svg.lost{opacity:.22;transform:scale(.8)}
  .pausebtn{font-size:0}
  .pausebtn::before,.pausebtn::after{content:"";width:6px;height:18px;border-radius:3px;background:var(--ink);margin:0 3px}
  #toast{position:fixed;left:50%;z-index:20;pointer-events:none;background:#fff;border-radius:22px;padding:6px 18px;font-size:clamp(18px,5vw,28px);font-weight:900;top:70px;
         box-shadow:0 0 0 4px var(--accent),0 6px 0 #0002;transform:translate(-50%,0) scale(0);transition:transform .3s cubic-bezier(.3,1.7,.5,1);white-space:nowrap;max-width:94vw;overflow:hidden;text-overflow:ellipsis}
  #toast.show{transform:translate(-50%,0) scale(1)}
  .stars{font-size:40px;letter-spacing:6px;line-height:1;color:#d9d2c6;direction:ltr}
  .stars span.on{color:#e6a800}
  .goals{display:flex;flex-direction:column;gap:5px;align-items:stretch}
  .goals div{background:var(--an-card);border:1px solid var(--an-line);border-radius:12px;padding:6px 12px;font-size:15px;font-weight:600;text-align:start}
  .goals div.ok{background:var(--an-tint);color:var(--an-ok)}
  #goalBar{position:fixed;right:8px;top:64px;z-index:15;display:none;flex-direction:column;gap:4px;align-items:flex-end;pointer-events:none}
  #goalBar.on{display:flex}
  #goalBar i{font-style:normal;background:#fffc;border-radius:999px;padding:2px 9px;font-size:13px;font-weight:900;box-shadow:0 2px 0 #0002;direction:ltr;white-space:nowrap}
  #goalBar i.ok{background:#bff0d4;color:#17683f}#goalBar i.daily{box-shadow:0 0 0 2px #ffc61a,0 2px 0 #0002}
  .top5{display:flex;flex-wrap:wrap;justify-content:center;gap:5px;direction:ltr;font-weight:700;font-size:15px}
  .top5:empty,.rec:empty,.unl:empty{display:none}
  .top5 i{font-style:normal;background:var(--an-card);border:1px solid var(--an-line);border-radius:999px;padding:2px 9px}.top5 i.me{background:var(--an-tint);border-color:var(--an-accent)}.top5 b{color:var(--an-accent)}
  .rec{font-size:20px;font-weight:700;color:var(--an-accent)}
  .unl{font-size:16px;font-weight:700;color:var(--an-ok)}
  #confetti{position:fixed;inset:0;pointer-events:none;z-index:50;width:100%;height:100%}
  .keys{display:none}
  .desk .keys{display:block}
  .desk .iconbtn,.desk #hud .iconbtn{width:48px;height:48px}
  #an-more-slot:empty{display:none}
/* playtest p3: phone landscape - the result card was one tall column so "play again" sat ~120px below the fold; use the two-column layout like the menu */
@media (orientation:landscape) and (max-height:520px){.an-menu#over .an-in.one{display:grid;max-width:none}}
