@font-face{font-family:'Rubik';font-style:normal;font-weight:400 800;font-display:swap;src:url(fonts/rubik-arabic.woff2) format('woff2');unicode-range:U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;}
@font-face{font-family:'Rubik';font-style:normal;font-weight:400 800;font-display:swap;src:url(fonts/rubik-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Rubik';font-style:normal;font-weight:400 800;font-display:swap;src:url(fonts/rubik-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}

:root{
  --bg:#FFF7EC; --bg2:#FDEBD3; --ink:#1E1B3A; --muted:#6B6785; --card:#FFFFFF;
  --pri:#6A4CF5; --pri2:#8B73FF; --pri-ink:#FFFFFF; --acc:#FFB020; --ok:#16A34A; --bad:#E5484D;
  --line:#ECE3D6; --shadow:0 6px 20px rgba(40,25,90,.10), 0 1px 3px rgba(40,25,90,.08);
  --r:22px; --safe-t:env(safe-area-inset-top,0px); --safe-b:env(safe-area-inset-bottom,0px);
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;height:100%;background:var(--bg);color:var(--ink);font-family:'Rubik',system-ui,-apple-system,'Segoe UI',Roboto,'Noto Sans Arabic',sans-serif;}
body{overscroll-behavior:none;-webkit-user-select:none;user-select:none;touch-action:manipulation}
button{font:inherit;color:inherit;cursor:pointer;border:0;background:none;padding:0}
button:focus-visible,[tabindex]:focus-visible,a:focus-visible{outline:3px solid var(--pri);outline-offset:3px;border-radius:12px}
a{color:var(--pri)}
#app{position:relative;max-width:520px;margin:0 auto;min-height:100%;display:flex;flex-direction:column}
.screen{flex:1;display:flex;flex-direction:column;padding:calc(12px + var(--safe-t)) 16px calc(16px + var(--safe-b));min-height:100vh;min-height:100dvh}
.topbar{display:flex;align-items:center;gap:10px;min-height:52px}
.topbar h1{flex:1;margin:0;font-size:20px;font-weight:700;text-align:center}
.iconbtn{width:46px;height:46px;border-radius:15px;background:var(--card);box-shadow:var(--shadow);display:grid;place-items:center;font-size:22px;flex:none}
.iconbtn svg{width:24px;height:24px}
[dir=rtl] .flip{transform:scaleX(-1)}
.pill{display:inline-flex;align-items:center;gap:6px;background:var(--card);box-shadow:var(--shadow);border-radius:999px;padding:0 14px;height:46px;font-weight:700;font-size:17px;flex:none}
.btn{display:flex;align-items:center;justify-content:center;gap:10px;min-height:56px;padding:0 22px;border-radius:18px;font-weight:700;font-size:19px;background:var(--pri);color:var(--pri-ink);box-shadow:0 5px 0 #4B31C9, 0 10px 20px rgba(106,76,245,.25);transition:transform .08s, box-shadow .08s}
.btn:active{transform:translateY(3px);box-shadow:0 2px 0 #4B31C9}
.btn.sec{background:var(--card);color:var(--ink);box-shadow:0 5px 0 var(--line), 0 8px 18px rgba(40,25,90,.08)}
.btn.sec:active{box-shadow:0 2px 0 var(--line)}
.btn.warm{background:var(--acc);color:#3A2500;box-shadow:0 5px 0 #D18A00,0 10px 20px rgba(255,176,32,.3)}
.btn[disabled]{opacity:.45;cursor:not-allowed}
.btn.small{min-height:46px;font-size:16px;padding:0 16px;border-radius:14px}
.muted{color:var(--muted)}
/* home */
.home{align-items:stretch;gap:14px}
.logo{margin:18px auto 6px;text-align:center}
.logo .mark{width:112px;height:112px;margin:0 auto 10px;display:block;filter:drop-shadow(0 10px 18px rgba(106,76,245,.35))}
.logo h2{margin:0;font-size:46px;letter-spacing:-.5px;font-weight:800;line-height:1.1}
.logo h2 span{color:var(--pri)}
.logo p{margin:6px 0 0;color:var(--muted);font-size:17px}
.homecard{background:var(--card);border-radius:var(--r);box-shadow:var(--shadow);padding:18px}
.wallcard{background:linear-gradient(135deg,#2B2250,#4A2FB8);color:#fff;border-radius:var(--r);padding:18px;box-shadow:0 12px 26px rgba(60,30,160,.3);text-align:start;width:100%;display:flex;gap:14px;align-items:center;position:relative;overflow:hidden}
.wallcard .bricks{position:absolute;inset:0;opacity:.13;background-image:linear-gradient(#fff 2px,transparent 2px),linear-gradient(90deg,#fff 2px,transparent 2px);background-size:46px 24px;pointer-events:none}
.wallcard .wi{font-size:40px;flex:none}
.wallcard b{display:block;font-size:20px}
.wallcard small{display:block;opacity:.85;font-size:14px;margin-top:3px}
.homerow{display:flex;gap:10px}
.homerow .btn{flex:1;font-size:17px;padding:0 10px;white-space:nowrap}
.progressbar{height:10px;background:var(--bg2);border-radius:99px;overflow:hidden;margin-top:10px}
.progressbar i{display:block;height:100%;background:linear-gradient(90deg,var(--pri),var(--pri2));border-radius:99px}
.gift{background:#FFF1CC;border:2px dashed #F2B53A;border-radius:16px;padding:10px 14px;font-weight:600;text-align:center}
/* map */
.chapter{margin:16px 0 6px}
.chapter h3{margin:0 0 10px;font-size:18px;display:flex;align-items:center;gap:8px}
.chapter h3 small{font-weight:500;color:var(--muted);font-size:14px;margin-inline-start:auto}
.grid5{display:grid;grid-template-columns:repeat(5,1fr);gap:10px}
.lvl{aspect-ratio:1;border-radius:16px;background:var(--card);box-shadow:var(--shadow);display:flex;flex-direction:column;align-items:center;justify-content:center;font-weight:700;font-size:19px;position:relative}
.lvl .st{font-size:12px;letter-spacing:-1px;color:var(--acc);height:14px;line-height:14px}
.lvl.locked{background:#F1EAE0;color:#B9AF9F;box-shadow:none}
.lvl.cur{background:var(--pri);color:#fff;box-shadow:0 4px 0 #4B31C9;animation:pulse 1.6s infinite}
.lvl.done{background:#EEE9FF}
@keyframes pulse{50%{transform:scale(1.06)}}
/* play */
.play{gap:10px}
.qcard{position:relative;z-index:2}
.q{background:var(--card);border-radius:var(--r);box-shadow:var(--shadow);padding:16px 18px;font-size:21px;font-weight:600;line-height:1.45;text-align:center;position:relative;z-index:2;touch-action:none}
.q .tk{display:inline;border-radius:8px;padding:0 2px}
.under{position:absolute;inset:0;display:grid;place-items:center;z-index:1}
.stage{flex:1;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;min-height:300px;padding:6px 0}
.stage.shake{animation:shake .45s}
@keyframes shake{20%,60%{transform:translateX(-9px)}40%,80%{transform:translateX(9px)}}
.opts{display:grid;gap:12px;width:100%}
.opt{background:var(--card);border-radius:18px;box-shadow:var(--shadow);min-height:64px;padding:10px;display:flex;align-items:center;justify-content:center;font-size:20px;font-weight:600;text-align:center;line-height:1.3;transition:transform .08s}
.opt:active{transform:scale(.96)}
.opt.emo{font-size:44px;min-height:92px}
.opt.wrong{background:#FFE4E4}
.lvlhdr{display:flex;flex-direction:column;align-items:center;flex:1;line-height:1.1}
.lvlhdr .n{font-size:22px;font-weight:800}
.lvlhdr .c{font-size:13px;color:var(--muted);font-weight:500}
.hintbtn{background:var(--acc);color:#3A2500;box-shadow:0 4px 0 #D18A00}
/* keypad */
.kp{width:100%;max-width:340px;display:flex;flex-direction:column;gap:10px}
.kp .disp{height:64px;border-radius:18px;background:var(--card);box-shadow:inset 0 0 0 3px var(--line);display:flex;align-items:center;justify-content:center;font-size:32px;font-weight:800;letter-spacing:2px;direction:ltr}
.kp .disp.empty{color:#C9C0B3}
.kp .keys{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;direction:ltr}
.kp .keys button{height:54px;border-radius:15px;background:var(--card);box-shadow:0 3px 0 var(--line);font-size:24px;font-weight:700}
.kp .keys button:active{transform:translateY(2px);box-shadow:none}
.kp .keys .ok{background:var(--ok);color:#fff;box-shadow:0 3px 0 #0E7A37}
/* letters */
.slots{display:flex;gap:8px;justify-content:center;flex-wrap:wrap}
.slot{width:48px;height:58px;border-radius:14px;background:var(--card);box-shadow:inset 0 -4px 0 var(--line), var(--shadow);display:grid;place-items:center;font-size:28px;font-weight:800}
.slot.blank{background:#F4EEFF;box-shadow:inset 0 0 0 3px var(--pri2)}
.slot.fixed{color:var(--ink)}
.pool{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;max-width:330px}
.tile{width:56px;height:56px;border-radius:15px;background:var(--pri);color:#fff;font-size:28px;font-weight:800;box-shadow:0 4px 0 #4B31C9;display:grid;place-items:center}
.tile.used{visibility:hidden}
/* scene */
.scene{position:relative;width:100%;max-width:380px;aspect-ratio:1/1.05;border-radius:var(--r);background:#EAF6FF;overflow:hidden;box-shadow:var(--shadow);direction:ltr;touch-action:none}
.spr{position:absolute;transform:translate(-50%,-50%);line-height:1;display:grid;place-items:center;transition:left .4s,top .4s,transform .3s,opacity .3s;touch-action:none}
.spr.dragging{transition:none;z-index:50;filter:drop-shadow(0 8px 10px rgba(0,0,0,.25))}
.drag{cursor:grab}
.gridx{display:grid;gap:6px;direction:ltr}
.cell{display:grid;place-items:center;border-radius:10px;background:var(--card);box-shadow:var(--shadow);font-weight:700}
.toast{position:fixed;left:50%;bottom:calc(28px + var(--safe-b));transform:translate(-50%,40px);opacity:0;background:var(--ink);color:#fff;padding:12px 20px;border-radius:14px;font-weight:600;font-size:16px;transition:.25s;z-index:200;max-width:88vw;text-align:center;pointer-events:none}
.toast.on{opacity:1;transform:translate(-50%,0)}
/* sheet & modal */
.veil{position:fixed;inset:0;background:rgba(20,15,45,.45);z-index:100;display:flex;align-items:flex-end;justify-content:center;animation:fade .2s}
.veil.center{align-items:center}
@keyframes fade{from{opacity:0}}
.sheet{background:var(--bg);width:100%;max-width:520px;border-radius:26px 26px 0 0;padding:20px 18px calc(20px + var(--safe-b));max-height:88vh;overflow:auto;animation:up .25s}
.veil.center .sheet{border-radius:26px;margin:16px;width:auto;max-width:440px;min-width:300px}
@keyframes up{from{transform:translateY(60px)}}
.sheet h2{margin:0 0 12px;font-size:22px;text-align:center}
.hint{background:var(--card);border-radius:16px;box-shadow:var(--shadow);padding:14px;margin-bottom:10px;font-size:17px;line-height:1.5}
.hint.locked{display:flex;align-items:center;justify-content:space-between;gap:10px;color:var(--muted)}
.hint .lab{font-size:13px;font-weight:700;color:var(--pri);display:block;margin-bottom:4px}
.adslot{border:2px dashed #CFC6B8;border-radius:16px;padding:12px;text-align:center;color:#A99F90;font-size:14px;margin-top:6px}
.win{text-align:center}
.win .big{font-size:64px;margin:0 0 4px;animation:pop .5s}
@keyframes pop{0%{transform:scale(.3)}70%{transform:scale(1.15)}100%{transform:scale(1)}}
.win .stars{font-size:38px;letter-spacing:4px;margin:4px 0 6px}
.win .stars .off{filter:grayscale(1);opacity:.3}
.why{background:var(--card);border-radius:16px;padding:12px 14px;font-size:16px;line-height:1.5;margin:12px 0;text-align:start;box-shadow:var(--shadow)}
.burst{position:fixed;pointer-events:none;z-index:300;font-size:26px;animation:fly 1s ease-out forwards}
@keyframes fly{to{transform:translate(var(--dx),var(--dy)) rotate(var(--rot));opacity:0}}
/* settings / text pages */
.list{display:flex;flex-direction:column;gap:10px;margin-top:8px}
.row{background:var(--card);border-radius:18px;box-shadow:var(--shadow);min-height:64px;padding:12px 16px;display:flex;align-items:center;gap:12px;font-size:18px;font-weight:600;text-align:start;width:100%}
.row .sp{flex:1}
.sw{width:54px;height:32px;border-radius:99px;background:#DDD3C5;position:relative;transition:.2s;flex:none}
.sw::after{content:'';position:absolute;top:3px;inset-inline-start:3px;width:26px;height:26px;border-radius:50%;background:#fff;transition:.2s;box-shadow:0 2px 4px rgba(0,0,0,.2)}
.sw.on{background:var(--ok)}
.sw.on::after{inset-inline-start:25px}
.seg{display:flex;background:var(--bg2);border-radius:12px;padding:3px}
.seg button{padding:8px 14px;border-radius:10px;font-weight:700;font-size:16px}
.seg button.on{background:var(--card);box-shadow:var(--shadow)}
.prose{font-size:17px;line-height:1.65}
.prose h3{margin:18px 0 6px}
/* wall */
.wall{gap:12px}
.wallhero{background:linear-gradient(160deg,#241B47,#4A2FB8);color:#fff;border-radius:var(--r);padding:20px;position:relative;overflow:hidden;text-align:center}
.wallhero .bricks{position:absolute;inset:0;opacity:.12;background-image:linear-gradient(#fff 2px,transparent 2px),linear-gradient(90deg,#fff 2px,transparent 2px);background-size:46px 24px}
.wallhero h2{margin:4px 0;font-size:28px;position:relative}
.wallhero .pct{font-size:38px;font-weight:800;margin:8px 0 0;position:relative}
.wallhero p{margin:6px 0 0;opacity:.9;position:relative;font-size:16px}
.tries{display:flex;gap:6px;justify-content:center;margin-top:10px;position:relative}
.tries i{width:14px;height:14px;border-radius:50%;background:#fff}
.tries i.used{background:rgba(255,255,255,.25)}
.sharebox{display:flex;flex-direction:column;gap:10px;align-items:center}
.sharebox img{width:100%;max-width:340px;border-radius:18px;box-shadow:var(--shadow)}
/* special widgets */
.pans{display:flex;justify-content:space-between;width:100%;max-width:360px;align-items:flex-start}
.pan{width:44%;min-height:70px;border-radius:0 0 60px 60px;background:#E8DFD1;border-top:5px solid #8D7B63;display:flex;flex-wrap:wrap;gap:3px;justify-content:center;align-content:flex-start;padding:6px;transition:transform .5s}
.beam{width:100%;max-width:360px;height:8px;background:#8D7B63;border-radius:4px;transition:transform .5s;position:relative}
.coins{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;max-width:360px}
.coin{width:46px;height:46px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#FFE58A,#E8A817);box-shadow:inset 0 -3px 0 #B9800A,0 2px 4px rgba(0,0,0,.15);display:grid;place-items:center;font-weight:800;font-size:17px;color:#6B4600}
.coin.L{outline:3px solid #3B82F6;outline-offset:2px}
.coin.R{outline:3px solid #E5484D;outline-offset:2px}
.coin.sm{width:30px;height:30px;font-size:12px}
.legend{display:flex;gap:14px;font-size:14px;color:var(--muted);justify-content:center;flex-wrap:wrap}
.match{direction:ltr;display:flex;gap:8px;align-items:center;justify-content:center;background:#1E1B3A;border-radius:18px;padding:18px 10px;width:100%;max-width:380px}
.mch{position:relative;width:58px;height:104px;flex:none}
.mop{position:relative;width:40px;height:104px;flex:none}
.seg7{position:absolute;border-radius:5px;background:transparent;border:1.5px dashed rgba(255,255,255,.16);cursor:pointer}
.seg7.on{border:0}
.seg7::before{content:'';position:absolute;inset:-12px -10px}
.seg7.on{background:linear-gradient(90deg,#F7D9A6,#E9B96E)}
.seg7.on::after{content:'';position:absolute;width:8px;height:8px;border-radius:50%;background:#E5484D}
.seg7.h.on::after{right:-2px;top:-1px}
.seg7.v.on::after{top:-2px;left:-1px}
.seg7.sel{box-shadow:0 0 0 3px #8B73FF}
.seg7.fixed{pointer-events:none}
.seg7.h{height:10px;width:38px}
.seg7.v{width:10px;height:42px}
.hanoi{display:flex;justify-content:space-between;width:100%;max-width:380px;gap:8px}
.peg{flex:1;height:200px;position:relative;display:flex;flex-direction:column-reverse;align-items:center;border-radius:14px;padding-bottom:10px}
.peg::before{content:'';position:absolute;bottom:10px;width:10px;top:20px;background:#C9B79C;border-radius:5px;left:calc(50% - 5px)}
.peg::after{content:'';position:absolute;bottom:0;left:4%;right:4%;height:12px;background:#A8916F;border-radius:6px}
.peg.sel{background:#EEE9FF}
.disk{height:24px;border-radius:12px;margin-top:3px;position:relative;z-index:1;box-shadow:inset 0 -3px 0 rgba(0,0,0,.15)}
.jug{display:flex;flex-direction:column;align-items:center;gap:8px}
.jugbody{width:84px;border:4px solid #7AA7D6;border-top:none;border-radius:0 0 18px 18px;position:relative;background:#F5FAFF;overflow:hidden}
.jugbody .water{position:absolute;left:0;right:0;bottom:0;background:linear-gradient(#7CC4FF,#3B8BEB);transition:height .4s}
.jugbody .lvlt{position:absolute;inset:0;display:grid;place-items:center;font-weight:800;font-size:22px;color:#123}

/* review-1 fixes */
.lvlhdr .n{min-height:44px;padding:10px 14px;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;cursor:pointer}
.lvlhdr{line-height:1}
@media (max-height:760px){.kp .keys button{height:46px}.kp .disp{height:52px;font-size:28px}.kp{gap:8px}.stage{gap:8px}.q{padding:12px 16px;font-size:20px}}
.wallnote{font-size:14px;color:var(--muted);text-align:center;margin:-4px 0 4px}

/* v1.0.1 hint pool */
.hpill{flex-direction:column;justify-content:center;gap:0;line-height:1.05}
.hpill .hcd{display:none;font-size:11px;font-weight:700;font-variant-numeric:tabular-nums;letter-spacing:.2px;opacity:.85}
.hpill.cool .hp1{font-size:15px}
.hpill.cool .hcd{display:block}
.hpool{text-align:center;margin:-4px 0 6px}
.hpool .bulbs{font-size:26px;letter-spacing:4px}
.hpool .bulbs .off{filter:grayscale(1);opacity:.28}
.hrule{font-size:14px;line-height:1.5;color:var(--muted);text-align:center;margin:4px 6px 12px}
.cdbox{background:#FFF1CC;border:2px solid #F2B53A;border-radius:16px;padding:12px 14px;text-align:center;margin-bottom:4px}
.cdbox b{display:block;font-size:17px}
.cdline{font-size:16px;margin-top:4px}
.cdclock{font-size:24px;font-weight:800;font-variant-numeric:tabular-nums;color:#3A2500;display:inline-block;margin-inline-start:4px}
.cdbox small{display:block;color:var(--muted);font-size:13px;margin-top:4px}
.btn[aria-disabled=true]{opacity:.55}
.adslot{width:100%;font:inherit;background:none;cursor:not-allowed;display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap}
.adslot .soon{background:#EEE8DE;color:#8A8070;border-radius:999px;padding:2px 10px;font-size:12px;font-weight:700}

/* ===== v1.1.0: daily puzzle, streak, archive, share, chapter 6, Hmm+ ===== */
.logo.small{margin:2px auto 10px;display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap}
.logo.small .mark{width:54px;height:54px;margin:0;filter:drop-shadow(0 6px 10px rgba(106,76,245,.3))}
.logo.small h2{font-size:34px;margin:0}
.logo.small p{width:100%;margin:0;font-size:15px}
.spill{gap:4px;color:#9A8F80;padding:0 12px}
.spill.on{color:#C2410C;background:#FFF1E6}
.dailycard{background:linear-gradient(135deg,#FFF4DE,#FFE2C4);border:2px solid #FFC078;border-radius:var(--r);box-shadow:var(--shadow);padding:14px 16px;margin-bottom:12px;display:flex;flex-direction:column;gap:9px}
.dc-top{display:flex;align-items:center;justify-content:space-between;font-size:18px}
.chip{background:#fff;border-radius:999px;padding:3px 10px;font-size:13px;font-weight:700;color:#B45309;box-shadow:0 1px 2px rgba(0,0,0,.06)}
.dc-fam{display:flex;align-items:center;gap:8px;font-size:17px;font-weight:600}
.dc-fam small{margin-inline-start:auto;color:var(--muted);font-weight:500;font-size:14px}
.dc-ic{font-size:26px}
.dnudge{font-size:14.5px;font-weight:600;color:#9A3412;background:rgba(255,255,255,.65);border-radius:12px;padding:7px 10px;line-height:1.35}
.dnudge.soft{color:#6B4E16}
.dnudge.ok{color:#166534}
.dc-row{display:flex;gap:10px}
.dc-row .btn{min-height:48px;font-size:17px}
.dailycard .btn{min-height:52px}
.dc-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:14px;color:#7C5A2A;flex-wrap:wrap}
.dnext{font-weight:800;font-variant-numeric:tabular-nums}
.linkbtn{font-weight:700;color:var(--pri);font-size:14px;padding:6px 2px;min-height:36px}
.dc-best{font-size:12.5px;color:#9A7B50;margin-top:-4px}
.sponsor{display:block;text-align:center;font-size:12.5px;color:#A08868;text-decoration:none;border-top:1px dashed #F2C38E;padding-top:7px;margin-top:2px}
.sponsor.on{display:flex;align-items:center;justify-content:center;gap:8px;color:var(--ink)}
.sponsor.on small{color:var(--muted)}
.wall-sponsor{margin-top:14px}
.wall-sponsor .sponsor{border-top-color:#D8CFEA}
.archnote{background:#EEF2FF;color:#3730A3;border-radius:14px;padding:8px 12px;font-size:14px;font-weight:600;margin:4px 0 8px;text-align:center}
.archnote2{text-align:center;font-size:15px;margin:6px 0 4px}
.dmeta{display:flex;justify-content:space-between;gap:8px;font-size:13px;color:var(--muted);margin-top:8px;flex-wrap:wrap}
.dstars{color:#D97706;letter-spacing:1px}
.daily .q{white-space:normal}
.seqrow{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;max-width:340px}
.seqrow .sq{min-width:46px;height:50px;padding:0 8px;border-radius:14px;background:var(--card);box-shadow:var(--shadow);display:grid;place-items:center;font-size:22px;font-weight:800;font-variant-numeric:tabular-nums}
.seqrow .sq.q{background:var(--pri);color:#fff}
.opts.doors{max-width:360px}
.opts.doors .opt{justify-content:flex-start;gap:12px;text-align:start;font-size:16px;padding:10px 14px;min-height:70px}
.opts.doors .dn{display:flex;flex-direction:column;align-items:center;flex:none;width:42px}
.opts.doors .de{font-size:28px;line-height:1}
.opts.doors .dn b{background:#1E1B3A;color:#fff;border-radius:7px;padding:0 8px;font-size:14px;margin-top:2px}
.opts.doors .dsg{flex:1;line-height:1.35}
.nono{display:grid;gap:3px;align-items:end;justify-content:center}
.nono .ccl{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;font-size:14px;font-weight:700;line-height:1.15;color:var(--ink);padding-bottom:3px}
.nono .rcl{font-size:14px;font-weight:700;white-space:nowrap;align-self:center;text-align:end;padding-inline-end:6px}
.nono .nc{background:#fff;border-radius:6px;box-shadow:inset 0 0 0 1.5px #D9CFC0;font-size:20px;color:#B4A898;font-weight:700}
.nono .nc.on{background:var(--ink);box-shadow:none}
.nono .nc.given{outline:2px solid var(--pri2);outline-offset:-2px}
.nono .nc.br{margin-right:3px}.nono .nc.bb{margin-bottom:3px}
.gridtip{font-size:13px;text-align:center;margin:2px 0 0;max-width:330px}
.cage{display:grid;justify-content:center;background:#1E1B3A;padding:2px;border-radius:10px;gap:0}
.cage .kc{position:relative;background:#fff;border-style:solid;border-color:#1E1B3A;display:grid;place-items:center;border-radius:0}
.cage .kc .lab{position:absolute;top:2px;left:4px;font-size:13px;font-weight:800;color:#5B3CE8;line-height:1}
.cage .kc .v{font-size:26px;font-weight:800}
.cage .kc.sel{background:#FFF1CC}
.cage .kc.given .v{color:#6A4CF5}
.cage .kc.dup .v{color:var(--bad)}
.kpad{display:flex;gap:6px;justify-content:center;flex-wrap:wrap;margin-top:6px}
.kpad .kk{width:48px;height:50px;border-radius:14px;background:var(--pri);color:#fff;font-size:24px;font-weight:800;box-shadow:0 4px 0 #4B31C9}
.kpad .kk.del{background:var(--card);color:var(--ink);box-shadow:var(--shadow)}
/* v1.1.0: keypad stays one row (7 keys for 6x6 cages) so ⌫ never drops below the fold */
.kpad{flex-wrap:nowrap;width:100%;max-width:360px}
.kpad .kk{flex:1 1 0;min-width:0;max-width:48px}
@media (max-height:760px){.kpad .kk{height:46px}.kpad{margin-top:4px}}
.lamps{display:grid;justify-content:center;gap:2px;background:#C9BFAF;padding:2px;border-radius:8px}
.lamps .lc{background:#fff;font-size:24px;color:#9C8F7D;font-weight:800;border-radius:3px;line-height:1}
.lamps .lc.lit{background:#FFF0B3}
.lamps .lc.bad{background:#FFC9C9}
.lamps .lc.given{box-shadow:inset 0 0 0 2px var(--pri2)}
.lamps .lw{background:#1E1B3A;color:#fff;display:grid;place-items:center;font-weight:800;font-size:20px;border-radius:3px}
.lamps .lw.ok{color:#4ADE80}
.lamps .lw.over{color:#F87171}
.solvedbar{display:flex;align-items:center;justify-content:center;gap:10px;background:#E8F8EE;color:#166534;border-radius:14px;padding:8px 12px;font-weight:700;font-size:15px;width:100%;max-width:360px}
.dstreak{font-size:20px;font-weight:800;color:#C2410C;margin-top:4px}
.sharetxt{white-space:pre-line;background:var(--card);border-radius:14px;padding:10px 14px;font-size:14.5px;line-height:1.5;box-shadow:var(--shadow);width:100%;text-align:start}
.sharebox img{border-radius:18px;box-shadow:var(--shadow);max-width:72vw;height:auto}
.arow{min-height:66px}
.arow .a-ic{font-size:26px}
.arow .sp{display:flex;flex-direction:column;gap:2px;flex:1}
.arow .sp small{font-size:13px;color:var(--muted);font-weight:500}
.arow .a-st{font-size:20px}
.premrow{margin-top:10px;border:2px dashed #D6CCF5;box-shadow:none;background:#FAF8FF;color:#5B4BA8;font-size:16px}
.soon{background:#EEE8DE;color:#8A8070;border-radius:999px;padding:2px 10px;font-size:12px;font-weight:700;white-space:nowrap}
.chapter h3 .newbadge{background:#E5484D;color:#fff;font-size:12px;border-radius:999px;padding:2px 9px;margin-inline-start:8px;vertical-align:middle;font-weight:800}
.newch .lvl:not(.locked){box-shadow:0 0 0 2px #FFC078, var(--shadow)}
.teaser{display:flex;gap:12px;align-items:center;background:var(--card);border:2px dashed #FFC078;border-radius:var(--r);padding:14px 16px;margin:18px 0 0}
.teaser .tz-ic{font-size:32px}
.teaser b{display:block;font-size:17px}.teaser small{color:var(--muted);font-size:14px}
.premch{display:flex;flex-direction:column;gap:10px;width:100%;margin:14px 0 4px;background:linear-gradient(135deg,#2B2250,#4A2FB8);color:#fff;border-radius:var(--r);padding:14px 16px;text-align:start}
.premch .pc-top{display:flex;justify-content:space-between;align-items:center;font-weight:800;font-size:17px}
.premch .pc-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}
.premch .pc-grid i{font-style:normal;aspect-ratio:1;border-radius:12px;background:rgba(255,255,255,.12);display:grid;place-items:center;font-size:18px}
.premch small{color:rgba(255,255,255,.8);font-size:13.5px}
.plushero{text-align:center;margin:8px 0 6px}
.plushero .ph-ic{font-size:54px}
.plushero h2{margin:4px 0;font-size:30px}
.plushero p{margin:0;color:var(--muted)}
.plusben .row{font-size:16px;min-height:56px}
.prices{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:14px 0}
.price{background:var(--card);border-radius:18px;box-shadow:var(--shadow);padding:12px;display:flex;flex-direction:column;align-items:center;gap:2px}
.price b{font-size:15px}.price span{font-size:20px;font-weight:800;direction:ltr;unicode-bidi:isolate}.price small{font-size:12px;color:var(--muted)}

/* v1.1.1 owner banner + announcement (admin panel) */
.hmm-banner{background:#EEE8FF;color:var(--ink);font-size:14px;line-height:1.4;padding:8px 14px;text-align:center;border-bottom:1px solid #DDD3FF;padding-top:max(8px,env(safe-area-inset-top))}
.hmm-banner.maint{background:#FFF1D6;border-color:#F5D9A0}
.hmm-ann-veil{position:fixed;inset:0;background:rgba(20,15,45,.45);display:flex;align-items:center;justify-content:center;z-index:9999;padding:20px}
.hmm-ann-box{background:var(--card);border-radius:20px;padding:22px 20px 18px;max-width:340px;width:100%;text-align:center;box-shadow:0 12px 40px rgba(20,15,45,.25)}
.hmm-ann-ico{font-size:40px}.hmm-ann-txt{font-size:17px;line-height:1.55;white-space:pre-line;margin:10px 0 16px}

/* ---------- leaderboards (v1.2.0) ---------- */
.lvlhdr .lbt{font-size:12px;font-weight:600;color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap}.lvlhdr .lbsep{margin:0 5px}
.lbhome{width:100%;font-size:17px}
.lbseg{margin:4px 0 12px}.lbseg button{flex:1;min-height:44px;font-size:15px;padding:6px 6px}
.lbbody{display:flex;flex-direction:column;gap:10px;padding-bottom:calc(20px + var(--safe-b))}
.lbcard{background:var(--card);border-radius:18px;box-shadow:var(--shadow);padding:14px 16px}
.lbinfo{font-size:15px;line-height:1.55;color:var(--muted)}
.lbrank{display:flex;gap:14px;align-items:stretch;justify-content:space-between}
.lbr-l,.lbr-r{display:flex;flex-direction:column;gap:2px;min-width:0}
.lbr-r{text-align:end;align-items:flex-end}
.lbrank small{font-size:13px;font-weight:600;color:var(--muted)}
.lbr-n{font-size:34px;font-weight:800;color:var(--ink);font-variant-numeric:tabular-nums;line-height:1.1}
.lbr-r b{font-size:18px;font-variant-numeric:tabular-nums;margin-bottom:4px}
.lbr-none{font-size:20px;font-weight:800;margin:2px 0}
.lbme-line{display:flex;align-items:center;gap:4px;font-size:15px;color:var(--muted);padding:0 4px;flex-wrap:wrap}
.lbme-line .lbnick{color:var(--ink);font-weight:700}
.lblink{color:var(--pri);font-weight:700;font-size:15px;min-height:44px;padding:0 6px;text-align:start}
.lblink.small{font-size:14px;margin-inline-start:auto}
.lbh{margin:6px 4px 0;font-size:16px}
.lbhead,.lbrow{display:grid;grid-template-columns:40px 1fr auto 76px;align-items:center;gap:8px}
.lb .lbhead{font-size:12px;font-weight:700;color:var(--muted);padding:0 14px;text-transform:none}
.lblist{list-style:none;margin:0;padding:0;background:var(--card);border-radius:18px;box-shadow:var(--shadow);overflow:hidden}
.lbrow{min-height:48px;padding:6px 14px;border-top:1px solid var(--line);font-size:15px}
.lbrow:first-child{border-top:0}
.lbrow.me{background:#F1EDFF}
.lbpos{font-weight:800;font-variant-numeric:tabular-nums;color:var(--muted)}
.lbrow.top .lbpos{color:var(--pri)}
.lbwho{display:flex;align-items:center;gap:6px;min-width:0}
.lbwho .lbnick{font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lbflag{flex:none;font-size:16px}
.lbsv{font-weight:700;font-variant-numeric:tabular-nums;text-align:center;min-width:36px}
.lbtm{font-variant-numeric:tabular-nums;text-align:end;font-weight:600}
.lbnote{font-size:13px;text-align:center;margin:4px 8px;line-height:1.5}
.lbname h3{margin:0 0 6px;font-size:18px}.lbname p{font-size:14px;line-height:1.5;margin:0 0 10px}
.lbinput{width:100%;min-height:50px;border:2px solid var(--line);border-radius:14px;padding:0 14px;font:inherit;font-size:18px;font-weight:600;background:#fff;color:var(--ink);-webkit-user-select:text;user-select:text}
.lbinput:focus{outline:none;border-color:var(--pri)}
.lbchk{display:flex;align-items:center;gap:10px;min-height:44px;font-size:15px;font-weight:600;margin:6px 0}
.lbchk input{width:22px;height:22px;accent-color:var(--pri)}
.lberr{color:var(--bad);font-size:14px;font-weight:600;min-height:18px;margin-bottom:8px}
.lbwin{margin:8px 0 2px;padding:10px 12px;border-radius:14px;background:#F5F2FF;font-size:15px}
.lbw1{font-weight:700;font-variant-numeric:tabular-nums}
.lbw2{font-size:13px;color:var(--muted);margin-top:2px}
.lbbest{display:inline-block;margin-inline-start:8px;padding:1px 8px;border-radius:99px;background:var(--ok);color:#fff;font-size:12px;font-weight:700}
.lbwin .lblink{min-height:36px;font-size:14px;padding:0}

/* v1.5.0 leaderboard: 5 tabs, friends panel, early-board card */
.lbseg{overflow-x:auto;scrollbar-width:none}.lbseg::-webkit-scrollbar{display:none}
.lbseg button{flex:1 0 auto;min-width:0;padding:6px 8px;font-size:14px;white-space:nowrap}
.lbearly,.lbfr{display:flex;flex-direction:column;gap:8px;text-align:start}
.lbearly{align-items:center;text-align:center}
.lbe-ic{font-size:28px;line-height:1}
.lbfr-top{display:flex;gap:10px;align-items:flex-start}.lbfr-top>div{display:flex;flex-direction:column;gap:2px;min-width:0}
.lbfr-row{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:8px 10px;border-radius:12px;background:var(--soft,rgba(255,255,255,.05))}
.lbfr-code{font-size:20px;font-weight:800;letter-spacing:3px;font-family:ui-monospace,Menlo,monospace}
.lbfr-add{display:flex;gap:8px}.lbfr-add .lbinput{flex:1;min-width:0;margin:0;text-transform:uppercase;letter-spacing:2px}.lbfr-add .btn{flex:0 0 auto;padding-inline:16px}
.lbpioneer{margin:-4px 0 10px;font-size:13px;font-weight:700;color:#ffc94d;text-align:center}

/* v1.6.0: backup/restore, comeback, first-run polish */
.rvbody{padding:4px 16px 28px;display:flex;flex-direction:column;gap:14px;max-width:520px;margin:0 auto}
.rvcard{background:var(--card,#fff);border-radius:22px;padding:18px 16px;box-shadow:0 6px 22px rgba(40,20,110,.08);display:flex;flex-direction:column;gap:10px}
.rvcard h2,.rvcard h3{margin:0;text-align:center}.rvcard p{margin:0;text-align:center;line-height:1.55}
.rvbig{font-size:46px;text-align:center;line-height:1.1}
.rvlist{margin:0;padding-inline-start:20px;line-height:1.9}
.rvcode{font:800 26px/1.2 ui-monospace,Menlo,Consolas,monospace;letter-spacing:2px;text-align:center;background:rgba(108,75,244,.10);color:var(--pri,#6C4BF4);border-radius:14px;padding:12px 8px;word-break:break-all;user-select:all;-webkit-user-select:all}
.rvcode.big{font-size:28px;margin:8px 0}
.rvrow{display:flex;gap:8px}.rvrow .btn{flex:1}
.rvsync{display:block;text-align:center}
.rvin{width:100%;box-sizing:border-box;font:700 22px ui-monospace,Menlo,monospace;letter-spacing:2px;text-align:center;padding:12px;border-radius:14px;border:2px solid rgba(108,75,244,.3);background:transparent;color:inherit;text-transform:uppercase}
.rvin:focus{outline:none;border-color:var(--pri,#6C4BF4)}
.rvmsg{min-height:20px;text-align:center;font-size:14px;font-weight:600}
.rvnudge{display:flex;align-items:center;gap:10px;background:linear-gradient(90deg,rgba(108,75,244,.12),rgba(226,68,122,.10));border-radius:18px;padding:10px 12px;margin:0 0 4px}
.rvni{font-size:26px}.rvnt{flex:1;display:flex;flex-direction:column;min-width:0}.rvnt b{font-size:15px}.rvnt small{opacity:.75;font-size:12.5px}
.rvx{background:none;border:0;font-size:22px;color:inherit;opacity:.5;padding:4px 6px;cursor:pointer}
.cbbulbs{font-size:34px;letter-spacing:6px;animation:cbpop .7s ease-out both}
@keyframes cbpop{0%{transform:scale(.4);opacity:0}70%{transform:scale(1.15);opacity:1}100%{transform:scale(1)}}
.firstline{background:rgba(255,196,0,.16);border-radius:14px;padding:8px 12px;font-weight:700;margin:4px 0 6px}
.win .stars.pop span{display:inline-block;animation:starpop .45s cubic-bezier(.3,1.6,.5,1) both}
.win .stars.pop span.off{animation-name:starfade}
@keyframes starpop{0%{transform:scale(0) rotate(-40deg);opacity:0}100%{transform:scale(1) rotate(0);opacity:1}}
@keyframes starfade{0%{opacity:0}100%{opacity:.3}}
.lvshare{width:100%;margin-top:8px}
@media (prefers-reduced-motion:reduce){.win .stars.pop span,.cbbulbs{animation:none}}
.rvbody a.btn,.rvnew a.btn,.sharebox a.btn{text-decoration:none}
.rvbody .btn,.rvnew .btn{white-space:nowrap}
.rvlist{list-style:none;padding-inline-start:4px}

/* v1.7.0 hand-drawn art over emoji (art.js) */
.ea{display:inline-block;position:relative;width:1.22em;height:1.22em;line-height:1.22em;text-align:center;vertical-align:-.22em;overflow:hidden;background-repeat:no-repeat;background-position:center;background-size:contain;pointer-events:none;text-indent:0}
.ea>.et{opacity:0;display:inline-block}
.ea.ea-x{background-image:none!important}.ea.ea-x>.et{opacity:1}

/* ---- v1.8.0 (r4): trick levels, win card, mascot, juice ---- */
.q .tk,.tkq{color:inherit;background:none;border:0;padding:0;font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent;border-radius:6px}
.tkred{color:#ff5a5a;font-weight:800}
.tkwin{animation:tkpop .5s ease}
@keyframes tkpop{0%{transform:scale(1)}40%{transform:scale(1.35)}100%{transform:scale(1)}}
.ridart{display:block;margin:6px auto 10px;width:min(56vw,190px);height:auto;max-height:190px;object-fit:contain}
.win .winnext{width:100%;font-size:19px;padding:16px;margin-top:14px}
.winicons{display:flex;justify-content:center;gap:10px;margin-top:12px}
.winicon{flex:1;max-width:110px;background:var(--card,rgba(255,255,255,.06));border:1px solid var(--line,rgba(255,255,255,.12));color:inherit;border-radius:14px;padding:8px 4px;display:flex;flex-direction:column;align-items:center;gap:2px;font:inherit;cursor:pointer;min-height:56px}
.winicon .wi-ic{font-size:22px;line-height:1;display:inline-flex}
.winicon small{font-size:12px;opacity:.8}
.mascot{width:92px;height:92px;margin:0 auto 4px;animation:mbob 1.6s ease-in-out infinite}
.mascot.m-win{animation:mjump .7s cubic-bezier(.3,1.6,.5,1) both,mbob 1.6s ease-in-out .7s infinite}
@keyframes mbob{0%,100%{transform:translateY(0)}50%{transform:translateY(-5px)}}
@keyframes mjump{0%{transform:scale(.3) translateY(30px);opacity:0}100%{transform:scale(1);opacity:1}}
.mascot-peek{position:fixed;width:74px;height:74px;bottom:calc(84px + env(safe-area-inset-bottom));inset-inline-end:10px;z-index:60;pointer-events:none;animation:mpeek .35s cubic-bezier(.3,1.5,.5,1) both}
.mascot-peek.out{transition:transform .3s,opacity .3s;transform:translateY(40px);opacity:0}
@keyframes mpeek{0%{transform:translateY(60px) rotate(-12deg);opacity:0}100%{transform:translateY(0) rotate(0);opacity:1}}
.hj-burst{position:fixed;left:50%;top:42%;width:0;height:0;z-index:9998;pointer-events:none}
.hj-burst i{position:absolute;width:9px;height:9px;border-radius:3px;animation:hjp 1.1s cubic-bezier(.15,.7,.3,1) forwards}
@keyframes hjp{0%{transform:translate(0,0) rotate(0);opacity:1}100%{transform:translate(var(--x),calc(var(--y) + 160px)) rotate(540deg);opacity:0}}
#app.hj-in>.screen{animation:hjin .22s ease-out}
@keyframes hjin{from{opacity:.4;transform:translateY(8px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion: reduce){.mascot,.mascot.m-win,#app.hj-in>.screen{animation:none}}
.dgrid{font-size:22px;letter-spacing:2px;text-align:center;margin:8px 0;direction:ltr}
.chprev{background:var(--card,rgba(255,255,255,.06));border-radius:14px;padding:10px 12px;margin:8px 0;font-size:14px;line-height:1.5;text-align:start}

/* r5 Gulf tricks */
.tk-say{position:absolute;left:50%;top:9%;transform:translateX(-50%) scale(.9);background:#fff;color:#1E1A4A;border:3px solid #1E1A4A;border-radius:16px;padding:6px 12px;font-weight:800;font-size:15px;white-space:nowrap;opacity:0;transition:opacity .2s,transform .2s;z-index:5;pointer-events:none}
.tk-say.on{opacity:1;transform:translateX(-50%) scale(1)}
.tk-sky{position:absolute;inset:0;background:linear-gradient(#0b1240,#2a1f5c);opacity:0;transition:opacity .9s;pointer-events:none;z-index:1;border-radius:inherit}
.scene.tk-night .tk-sky{opacity:.6}
.tk-gp{background:none;border:0;padding:0;cursor:pointer;touch-action:manipulation;flex:none}
.tk-bub{position:relative;background:#fff;color:#1E1A4A;border:3px solid #1E1A4A;border-radius:18px;padding:10px 14px;font-weight:800;font-size:18px;margin-bottom:70px;max-width:170px}
.tk-bub.me{background:#d6ffe9}

/* r5 daily: main trick card + bonus word hunt */
.dc-kicker{font-size:12px;font-weight:800;letter-spacing:.02em;color:var(--accent,#ffc83d);margin-bottom:4px;text-transform:uppercase}
.dc-bonus{display:flex;flex-direction:column;gap:2px;margin:18px 2px 8px;padding-top:14px;border-top:2px dashed var(--line,rgba(255,255,255,.15))}
.dc-bonus b{font-size:16px}.dc-bonus .muted{font-size:13px}
.daily2 .trickday{border:2px solid var(--accent,#ffc83d)}
.mascot-peek.m-cheer{animation:mpeek .35s cubic-bezier(.3,1.5,.5,1) both,mjump .6s cubic-bezier(.3,1.6,.5,1) .3s both}
.lbcc-row{display:flex;flex-direction:column;gap:4px;margin:10px 0 4px}.lbcc-sel{appearance:auto;-webkit-appearance:menulist;font-size:16px}

/* ---- r6 (2026-11-09) ---- */
.tk-say{white-space:normal;max-width:86%;width:max-content;text-align:center;line-height:1.35}
.tk-hit{position:absolute;transform:translate(-50%,-50%);background:transparent;border:0;border-radius:50%;z-index:4;cursor:pointer;padding:0;-webkit-tap-highlight-color:transparent}
.tk-honk{animation:tkhonk .35s ease 2}
@keyframes tkhonk{0%,100%{transform:translate(-50%,-50%) scale(1)}50%{transform:translate(-50%,-50%) scale(.9)}}
.tk-pop{animation:tkpop .5s cubic-bezier(.3,1.6,.5,1)}
@keyframes tkpop{0%{transform:translate(-50%,-50%) scale(.3);opacity:0}100%{transform:translate(-50%,-50%) scale(1);opacity:1}}
.tk-chat{width:100%;max-width:360px;margin:0 auto 12px;background:#0b141a;border-radius:18px;padding:0 0 10px;overflow:hidden;border:3px solid #1E1A4A;box-shadow:0 8px 20px rgba(0,0,0,.25);display:flex;flex-direction:column;gap:8px}
[data-theme=light] .tk-chat{background:#efe7dd}
.tk-chathead{display:flex;align-items:center;gap:10px;background:#1f2c34;color:#e9edef;padding:10px 12px}
[data-theme=light] .tk-chathead{background:#008069;color:#fff}
.tk-chathead b{display:block;font-size:16px}.tk-chathead small{display:block;opacity:.75;font-size:12px}
.tk-av{width:36px;height:36px;border-radius:50%;background:#7c5cff;color:#fff;display:inline-flex;align-items:center;justify-content:center;font-weight:900}
.tk-msg{max-width:78%;margin:0 10px;padding:8px 10px 6px;border-radius:12px;font:inherit;font-size:16px;text-align:start;border:0;display:flex;flex-direction:column;gap:2px;color:#e9edef}
.tk-msg small{font-size:11px;opacity:.75;align-self:flex-end}
.tk-msg.me{align-self:flex-end;background:#005c4b;cursor:pointer}
.tk-msg.him{align-self:flex-start;background:#202c33}
[data-theme=light] .tk-msg{color:#111b21}[data-theme=light] .tk-msg.me{background:#d9fdd3}[data-theme=light] .tk-msg.him{background:#fff}
.tk-ticks{font-style:normal;color:#53bdeb;font-weight:900;font-size:15px;letter-spacing:-4px;margin-inline-start:4px}
.tk-info{display:none;margin:4px 10px 0;padding:10px 12px;border-radius:12px;background:#fff;color:#1E1A4A;border:3px solid #1E1A4A;font-size:15px;line-height:1.6}
.tk-info.on{display:block;animation:tkfade .3s}.tk-read{color:#0a7ad1;font-weight:900}
@keyframes tkfade{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.tk-corner{position:absolute;width:30%;height:30%}
.tk-bars{position:absolute;left:50%;top:22%;transform:translateX(-50%);font-size:22px;font-weight:900;color:#fff;pointer-events:none}
.tk-phmsg{position:absolute;left:50%;top:52%;transform:translateX(-50%);background:#fff;color:#1E1A4A;border-radius:10px;padding:3px 7px;font-size:12px;font-weight:800;white-space:nowrap;pointer-events:none}
.tk-phmsg.ok{background:#22c55e;color:#fff}
.tk-face{cursor:grab;user-select:none;-webkit-user-select:none;will-change:transform}
.tk-lens{position:absolute;left:68%;top:26%;width:46%;aspect-ratio:1;transform:translate(-50%,-50%) scale(.2);border-radius:50%;background:radial-gradient(circle at 50% 50%,#2a3478,#0c1033 70%);border:5px solid #c99a3b;box-shadow:0 0 0 4px #1E1A4A,0 10px 30px rgba(0,0,0,.5);opacity:0;pointer-events:none;transition:transform .5s cubic-bezier(.3,1.4,.5,1),opacity .3s;z-index:6;display:flex;align-items:center;justify-content:center}
.tk-lens.on{opacity:1;transform:translate(-50%,-50%) scale(1);pointer-events:auto}
.tk-moon{background:transparent;border:0;padding:6px;cursor:pointer;transition:transform .3s}
.rvpillrow{display:flex;justify-content:center;align-items:center;gap:6px;margin:2px 0 10px}.rvpill{font-size:13px;font-weight:800;padding:6px 12px}.rvpillrow .rvx{background:transparent;border:0;color:var(--muted,#9aa);font-size:18px;cursor:pointer}
.hj-conf{position:fixed;inset:0;pointer-events:none;z-index:9999;overflow:hidden}
.hj-conf i{position:absolute;top:-16px;width:9px;height:9px;border-radius:2px;animation:hjfall 2s cubic-bezier(.25,.4,.5,1) forwards}
@keyframes hjfall{0%{transform:translate(0,0) rotate(0);opacity:1}85%{opacity:1}100%{transform:translate(var(--dx),105vh) rotate(var(--r));opacity:0}}
.win .mascot{animation:mbounce .9s cubic-bezier(.3,1.6,.5,1) both, mwiggle 1.6s ease-in-out .9s 2}
@keyframes mbounce{0%{transform:scale(.2) translateY(30px);opacity:0}60%{transform:scale(1.12) translateY(-6px);opacity:1}100%{transform:none}}
@keyframes mwiggle{0%,100%{transform:rotate(0)}25%{transform:rotate(-7deg)}75%{transform:rotate(7deg)}}
@media (prefers-reduced-motion: reduce){.win .mascot{animation:none}}

/* ---- r7 ---- */
/* one designed chip style for answers in the opening (L1–30, daily trick): flat card, indigo outline, a pressed-button lip */
.opts.optd .opt:not(.emo){background:var(--card);border:2.5px solid #251d3b;box-shadow:0 4px 0 #251d3b;border-radius:16px;min-height:54px;font-size:17px;font-weight:800;color:var(--ink,inherit);gap:10px;padding:10px 12px}
[data-theme=dark] .opts.optd .opt:not(.emo){border-color:#8f7bff;box-shadow:0 4px 0 #4b3bb0}
.opts.optd .opt:not(.emo):active{transform:translateY(3px);box-shadow:0 1px 0 #251d3b}
.opts.optd .opt.wrong{background:#FFE4E4;color:#251d3b}
.optdot{width:26px;height:26px;border-radius:50%;flex:none;border:2.5px solid #251d3b;box-shadow:0 0 0 2px #fff}
.opt:has(.optdot){display:flex;align-items:center;justify-content:center;gap:10px}
/* sticker-look inline SVG (same look as the art5 set) */
.svst .svwb *{fill:#fff!important;stroke:#fff!important;stroke-width:13px!important;stroke-linejoin:round!important}
.svst .svin *:not(line){stroke:#251d3b;stroke-width:5px;stroke-linejoin:round}
.svst .svin line{stroke-width:3px}
.tk-tvbtn{position:absolute;right:calc(5% - 9px);bottom:calc(20% - 9px);width:48px;height:48px;border-radius:12px;background:transparent;border:0;padding:0;display:flex;align-items:center;justify-content:center}
.tk-tvbtn::after{content:'';width:11px;height:11px;border-radius:50%;background:#ff5a5a;border:3px solid #251d3b;box-shadow:0 0 0 2px #fff}
/* idle nudge: the thing you can touch wobbles once */
@keyframes hmnudge{0%,100%{rotate:0deg;scale:1}20%{rotate:-9deg;scale:1.08}45%{rotate:8deg;scale:1.08}70%{rotate:-4deg}}
.hm-nudge{animation:hmnudge .9s ease-in-out 2}
@media (prefers-reduced-motion: reduce){.hm-nudge{animation:none;outline:3px dashed #ffc83d;outline-offset:4px}}

.winhero{position:relative;display:flex;justify-content:center;align-items:center;min-height:96px}
.winrays{position:absolute;left:50%;top:50%;width:0;height:0;pointer-events:none}
.winrays i{position:absolute;width:10px;height:10px;border-radius:3px;left:-5px;top:-5px;opacity:0;animation:wray 1.1s cubic-bezier(.2,.8,.3,1) .1s forwards, wtw 1.6s ease-in-out 1.2s infinite alternate}
.winrays i:nth-child(3n){border-radius:50%;width:8px;height:8px}
.winrays i:nth-child(4n){width:6px;height:14px}
@keyframes wray{0%{transform:translate(0,0) scale(.2) rotate(0);opacity:0}30%{opacity:1}100%{transform:translate(var(--x),var(--y)) scale(1) rotate(200deg);opacity:1}}
@keyframes wtw{from{opacity:1}to{opacity:.45}}
@media (prefers-reduced-motion: reduce){.winrays i{animation:none;opacity:.9;transform:translate(var(--x),var(--y))}}
/* r7: the name ask on the win card is a proper small button, not a bare link line */
.lbwin .lbname-ask{display:inline-flex;align-items:center;gap:6px;margin:6px auto 0;min-height:38px;padding:6px 14px;border-radius:999px;border:2px solid rgba(124,92,255,.55);background:rgba(124,92,255,.12);color:inherit;font:inherit;font-size:14px;font-weight:800}

.lbcc-row{flex-direction:row!important;flex-wrap:wrap;align-items:center;gap:6px 10px!important}.lbcc-row>small{flex-basis:100%}
.lbcc-cur{font-weight:800;font-size:16px}.lbcc-row .lbcc-sel{flex-basis:100%}

html{touch-action:manipulation}
.play.gesture .stage,.play.gesture .stage *{touch-action:none}
.play.gesture .stage{overscroll-behavior:contain;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.play .hintbtn{touch-action:none;-webkit-touch-callout:none}
.play.gesture .stage .opts,.play.gesture .stage .opts *{touch-action:manipulation}
.dc-bonus{display:block;width:100%;text-align:center;font-weight:800;margin-top:10px}

div.dc-bonus{display:flex!important;flex-direction:column;align-items:center;gap:2px;text-align:center;margin:12px 0 4px}div.dc-bonus .muted{font-size:13px;font-weight:600}

/* r8: no iOS callout / magnifier / selection on long-press inside a scene */
.stage,.stage .scene,.scene{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}
.hj-conf.in-veil{position:absolute;z-index:0}
.veil>.sheet{position:relative;z-index:1}
/* r8: the pre-card bursts sit under the veil (z 100), never over the card text */
.hj-burst{z-index:99}.burst{z-index:99}
/* r8: per-level payoff animations (0.5–1 s), CSS only on the existing stickers; independent translate/rotate/scale so the sprite's own transform stays */
.pf-hop{animation:pfhop .7s cubic-bezier(.3,1.5,.5,1)}
@keyframes pfhop{0%{translate:0 0}35%{translate:0 -22px}60%{translate:0 0}78%{translate:0 -7px}100%{translate:0 0}}
.pf-sway{animation:pfsway .85s ease-in-out}
@keyframes pfsway{0%{rotate:0deg}25%{rotate:7deg}55%{rotate:-6deg}80%{rotate:3deg}100%{rotate:0deg}}
.pf-glow{animation:pfglow 1s ease-out}
@keyframes pfglow{0%{filter:drop-shadow(0 0 0 rgba(255,214,90,0))}40%{filter:drop-shadow(0 0 16px rgba(255,214,90,.95))}100%{filter:drop-shadow(0 0 0 rgba(255,214,90,0))}}
.pf-pop{animation:pfpop .6s cubic-bezier(.3,1.6,.5,1)}
@keyframes pfpop{0%{scale:1}40%{scale:1.22}100%{scale:1}}
.pf-sp{position:absolute;width:20px;height:20px;margin:-10px 0 0 -10px;pointer-events:none;z-index:30;opacity:0;animation:pfsp .85s ease-out forwards}
@keyframes pfsp{0%{opacity:0;scale:.3;translate:0 0}25%{opacity:1}100%{opacity:0;scale:1.1;translate:var(--dx) var(--dy)}}
.pf-rise{position:absolute;pointer-events:none;z-index:30;opacity:0;animation:pfrise 1.1s ease-out forwards}
@keyframes pfrise{0%{opacity:0;translate:0 0;scale:.6}20%{opacity:1}100%{opacity:0;translate:var(--dx,0) -95px;scale:1.1}}
.pf-gone{transition:left .8s ease-in,opacity .8s!important;opacity:0}
.pf-fadein{animation:pffade .5s ease-out both}@keyframes pffade{from{opacity:0;scale:.6}}
@media (prefers-reduced-motion:reduce){.pf-hop,.pf-sway,.pf-glow,.pf-pop,.pf-sp,.pf-rise{animation:none}}
.backlab{font-size:14px;font-weight:800;margin-inline-start:4px;white-space:nowrap}
.iconbtn.haslab{width:auto;padding:0 10px;gap:2px;display:inline-flex;align-items:center}
.l8guards{display:flex;align-items:center;justify-content:center;gap:8px}
.tkchat{width:100%;max-width:340px;margin:0 auto;background:#ece5dd;border-radius:22px;border:3px solid #251d3b;overflow:hidden;box-shadow:0 6px 0 #251d3b}
.tkchat .ch-h{background:#128c7e;color:#fff;font-weight:800;padding:8px 12px;font-size:15px;display:flex;align-items:center;gap:8px}
.tkchat .ch-b{padding:10px 10px 6px;min-height:230px;display:flex;flex-direction:column;gap:8px}
.tkchat .msg{align-self:flex-start;background:#fff;border-radius:14px;padding:6px 10px;color:#1e1a4a;font-size:14px;font-weight:700;max-width:86%;box-shadow:0 1px 0 rgba(0,0,0,.15)}
.tkchat .msg.me{align-self:flex-end;background:#dcf8c6}
.tkchat .msg small{display:block;color:#128c7e;font-size:12px;font-weight:800}
.tkchat .ch-in{display:flex;gap:8px;padding:8px;background:#f6f6f6}
.tkchat .ch-in span{flex:1;background:#fff;border-radius:18px;padding:8px 12px;color:#999;font-size:14px}

/* ---- r9 (2026-11-09) ---- */
/* the mascot peek lives in a reserved slot in the level top bar (between the hint pill and the title): never over the scene or a button */
.play>.topbar{position:relative}
.mslot{position:absolute;top:50%;inset-inline-end:84px;width:42px;height:42px;transform:translateY(-50%);pointer-events:none;z-index:2}
.mslot .mascot-peek{position:absolute;inset:0;width:42px;height:42px;bottom:auto;margin:0;z-index:2}
.mslot .mascot-peek.out{transform:translateY(-14px)}
.msvg .svwb *{fill:#fff!important;stroke:#fff!important;stroke-width:9px!important;stroke-linejoin:round!important}
.msvg .svin *{stroke:#251d3b;stroke-width:4px;stroke-linejoin:round}
/* L3 dark room you can make out */
.l3beam{position:absolute;left:46%;top:30%;width:52%;height:70%;background:linear-gradient(200deg,rgba(170,190,255,.18),rgba(170,190,255,0) 70%);clip-path:polygon(70% 0,100% 0,60% 100%,0 100%);pointer-events:none;transition:opacity .6s;z-index:0}
.l3ghost{width:46px}
/* L8 */
.l8safe{width:128px;transition:transform .3s}
.l8safe.open{transform:scale(1.08)}
.l8key{width:120px;height:120px;border-radius:28px;touch-action:none;-webkit-touch-callout:none;user-select:none;-webkit-user-select:none;display:flex;align-items:center;justify-content:center}
.l8key svg{transition:transform .2s}
.l8key.turned svg{transform:rotate(90deg)}
/* L10 arrival tag */
.l10eta{position:absolute;left:50%;top:12%;transform:translateX(-50%);background:#fff;color:#1E1A4A;border:3px solid #251d3b;border-radius:14px;padding:4px 12px;font-weight:900;font-size:15px;z-index:8;animation:pop .4s;white-space:nowrap}
/* L18: the line is never under the bukhoor smoke */
.tk-say{z-index:40}
.l18say{top:4%}
/* L19 bars sticker */
.tk-bars{font-size:0;line-height:0}
/* L20: the power button is a quiet bezel button with a small standby light, not a big red dot */
.tk-tvbtn::after{width:10px;height:10px;background:#ff8a8a;border:2px solid #3b3a5a;box-shadow:0 0 0 2px #5b5a7a;opacity:.85}
.l20z{font:900 18px system-ui;color:#251d3b}
/* win card: the particle ring stays above/around the mascot, never down on the title; title and stars sit close */
.win .winhero{min-height:88px;margin-bottom:-4px}
.win h2{margin:2px 0 0}
.win .stars{margin:0 0 6px}
.shico{display:inline-flex;vertical-align:-3px;margin-inline-end:2px}
.lblist.lbfew .lbpos{display:none}
.lblist.lbfew .lbrow{grid-template-columns:1fr auto auto}

.cta-main{min-height:56px;font-size:18px;font-weight:900;text-decoration:none!important;border-radius:16px}
.dblnote{position:absolute;left:38%;top:24%;width:30px;height:20px;padding:0;border:2px solid #251d3b;border-radius:4px;background:#fffbe0;font:800 8px system-ui;color:#251d3b;display:flex;align-items:center;justify-content:center;transform:rotate(-6deg);z-index:4;transition:all .25s}
.dblnote::before{content:'';position:absolute;inset:-12px}
.dblnote.big{width:180px;height:auto;left:50%;top:-30%;transform:translate(-50%,-50%);padding:8px 10px;flex-direction:column;gap:4px;font-size:14px;border-width:3px;border-radius:10px;box-shadow:0 6px 18px rgba(0,0,0,.25)}
.dblnote.big .dblnum{font-size:18px;font-weight:900;color:#1d6f42}
.dblnote.called{opacity:0}
.lbhead.lbfew .lbpos{display:none}
.lbhead.lbfew{grid-template-columns:1fr auto 76px}

/* r10: result facts as chips (no «·» joins) */
.dmeta2{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin:6px 0 10px}.dmeta2 .dchip{display:inline-block;unicode-bidi:isolate;white-space:nowrap;background:rgba(127,127,127,.12);border-radius:999px;padding:3px 10px;font-size:13.5px;font-weight:700;color:var(--muted,#6b6b80)}
.lbmiss{width:100%;flex-basis:100%;margin-top:8px;padding-top:8px;border-top:1px dashed rgba(127,127,127,.3);text-align:center;opacity:.85;line-height:1.5}
.tk-smiled{font-weight:800;font-size:13px;color:#16a34a;margin-top:2px;text-align:center}

/* ===== r11 (2026-11-09) ===== */
/* 44×44 hit areas on small solution objects (visible size unchanged) */
.hitpad::after,.hitpadb::before{content:'';position:absolute;left:50%;top:50%;width:max(44px,100%);height:max(44px,100%);transform:translate(-50%,-50%);border-radius:12px;background:transparent;pointer-events:auto}
/* L11 hint 1: the hint bulb glows until the level is solved */
.hintbtn.hb-glow{animation:hbglow 1.1s ease-in-out infinite;box-shadow:0 4px 0 #D18A00,0 0 0 4px rgba(255,214,90,.55),0 0 22px 6px rgba(255,214,90,.8)}
@keyframes hbglow{0%,100%{transform:scale(1) rotate(0)}25%{transform:scale(1.12) rotate(-8deg)}50%{transform:scale(1.18) rotate(0)}75%{transform:scale(1.12) rotate(8deg)}}
@media (prefers-reduced-motion: reduce){.hintbtn.hb-glow{animation:none}}
/* L15: no iOS callout / selection on the long-press */
.nocallout,.nocallout *{-webkit-touch-callout:none!important;-webkit-user-select:none!important;user-select:none!important}
.tk-msg.pressing{transform:scale(.97);filter:brightness(.92);transition:transform .2s,filter .2s}
/* the companion beside the question */
.qcard.has-hero .q{padding-inline-end:62px}
.qhero{position:absolute;inset-inline-end:8px;top:50%;width:48px;height:48px;margin-top:-24px;z-index:3;pointer-events:none;transform-origin:50% 90%}
.qhero svg{width:100%;height:100%;display:block}
.qhero.h-idle{animation:mbob 2.2s ease-in-out infinite}
.qhero.h-think{animation:hthink 1.2s ease-in-out infinite}
.qhero.h-fail{animation:hfail .55s ease-in-out both}
.qhero.h-win{animation:hwin .7s cubic-bezier(.3,1.6,.5,1) both}
@keyframes hthink{0%,100%{transform:rotate(0)}50%{transform:rotate(-7deg) translateY(-2px)}}
@keyframes hfail{0%{transform:none}20%{transform:translateX(-5px) rotate(-10deg)}45%{transform:translateX(5px) rotate(9deg)}70%{transform:translateX(-3px) rotate(-5deg)}100%{transform:rotate(-4deg) translateY(2px) scale(.96)}}
@keyframes hwin{0%{transform:scale(.9)}40%{transform:translateY(-14px) scale(1.15)}70%{transform:translateY(0) scale(.98)}100%{transform:scale(1.06)}}
@media (prefers-reduced-motion: reduce){.qhero{animation:none!important}}
/* one illustrated world per chapter: behind the stickers, and full-bleed behind the play screen */
.scene .chband{position:absolute;left:0;right:0;bottom:0;height:34%;pointer-events:none;z-index:0;opacity:.62}
.scene .chband svg,.chback svg{width:100%;height:100%;display:block}
.screen.play.has-world{position:relative;isolation:isolate}
.chback{position:absolute;left:0;right:0;bottom:0;aspect-ratio:10/3;max-height:240px;z-index:-1;pointer-events:none;overflow:hidden;-webkit-mask-image:linear-gradient(transparent,#000 35%);mask-image:linear-gradient(transparent,#000 35%)}
.chback svg{opacity:.75}
.chback::before{content:'';position:absolute;inset:0;background:linear-gradient(transparent,var(--chtint,rgba(139,115,255,.16)))}
.screen.play[data-ch="0"]{--chtint:rgba(232,170,100,.18)}.screen.play[data-ch="1"]{--chtint:rgba(150,120,230,.2)}.screen.play[data-ch="2"]{--chtint:rgba(110,150,210,.2)}
.screen.play[data-ch="3"]{--chtint:rgba(230,190,120,.18)}.screen.play[data-ch="4"]{--chtint:rgba(90,190,200,.18)}.screen.play[data-ch="5"]{--chtint:rgba(120,130,200,.2)}
html[data-theme=light] .chback svg{filter:invert(1);opacity:.55}
/* chapter end card */
.chdone{display:grid;grid-template-columns:56px 1fr;gap:4px 10px;align-items:center;text-align:start;background:linear-gradient(135deg,rgba(255,200,61,.22),rgba(139,115,255,.18));border:2px solid rgba(255,200,61,.55);border-radius:16px;padding:10px 12px;margin:6px 0 8px;animation:starpop .5s cubic-bezier(.3,1.6,.5,1) .5s both}
.chdone .chd-badge{grid-row:span 2}
.chdone .chd-t b{display:block;font-size:17px}
.chdone .chd-t span{font-weight:700}
.chdone .chd-next{font-weight:700;font-size:14px}
.chdone .chd-note{grid-column:1/-1;font-size:13px}
.chdone .chd-row{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.rvwin{background:transparent;border:0;color:inherit;opacity:.85;font:700 13px inherit;text-decoration:underline;cursor:pointer;padding:8px 4px;min-height:44px}

/* r12: the win card is a compact bottom sheet; the solved scene stays visible above it */
/* r14: no padding/scroll on win; the page is locked under the fixed sheet */html:has(body.winning),body.winning{overflow:hidden;overscroll-behavior:none}
.veil.winveil{position:fixed;inset:0}
.veil.winveil .sheet.nudge{animation:wnudge .35s}
@keyframes wnudge{30%{transform:translateY(-8px)}60%{transform:translateY(2px)}}
.win.wsheet .winnext{min-height:56px}
.veil.winveil{background:linear-gradient(to top,rgba(10,8,30,.6),rgba(10,8,30,.1) 50%,rgba(10,8,30,0) 60%)!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;animation:fade .25s}
.win.wsheet .lbwin{padding:6px 10px;font-size:14px}
.win.wsheet .lbname-ask{padding:6px 12px;font-size:14px;min-height:40px}
.win.wsheet .lbw1,.win.wsheet .lbw2{font-size:14px;margin:0}
.veil.winveil .sheet{max-height:56vh;overflow-y:auto;padding:12px 16px calc(12px + var(--safe-b));border-radius:24px 24px 0 0;box-shadow:0 -10px 30px rgba(0,0,0,.35);animation:wsheetup .32s cubic-bezier(.2,1.2,.4,1)}
@keyframes wsheetup{from{transform:translateY(100%)}}
.win.wsheet .wtop{display:flex;align-items:center;gap:20px;justify-content:center;text-align:start}
.win.wsheet .winhero{min-height:0;width:64px;height:64px;margin:0;flex:0 0 64px}
.win.wsheet .winhero .mascot{width:60px;height:60px;margin:0}
.win.wsheet .winhero .big{font-size:44px}
.win.wsheet .winrays{transform:scale(.6)}
.win.wsheet .wtt{display:flex;flex-direction:column;align-items:flex-start}
.win.wsheet h2{margin:0;font-size:20px;text-align:start}
.win.wsheet .stars{font-size:26px;letter-spacing:2px;margin:0}
.win.wsheet .firstline{margin:6px 0 0;font-size:14px}
.win.wsheet .lbwin{margin:6px 0 0}
.win.wsheet .lbwin.notime [data-k=lbw-time],.win.wsheet .lbwin.notime .lbw2:not([data-k]){display:none}
.why.wsmall{font-size:14px;line-height:1.45;padding:8px 12px;margin:8px 0 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;cursor:pointer}
.why.wsmall.open{display:block}
.win.wsheet .winnext{margin-top:10px;padding:13px;font-size:18px}
.win.wsheet .winicons{margin-top:8px;gap:8px}
.win.wsheet .winicon{min-height:44px;padding:4px 10px}
/* r12: chapter end = its own full screen */
.veil.chfull{align-items:stretch;background:radial-gradient(circle at 50% 30%,rgba(255,200,61,.35),rgba(20,15,45,.96) 70%)}
.veil.chfull .sheet{background:transparent;max-height:none;height:100%;border-radius:0;display:flex;flex-direction:column;justify-content:center;padding:24px 20px calc(24px + var(--safe-b));box-shadow:none}
.chscreen{max-width:420px;margin:0 auto;width:100%}
.chscreen .chdone{display:flex;flex-direction:column;align-items:center;text-align:center;gap:12px;padding:22px 16px;background:var(--bg)}
.chscreen .chd-badge svg{width:96px;height:96px;animation:starpop .6s cubic-bezier(.3,1.6,.5,1) .2s both}
.chscreen .chd-t{display:flex;flex-direction:column;align-items:center;gap:4px}
.chscreen .chd-k{font-size:22px;font-weight:900;color:var(--fg,inherit)}
.chscreen .chd-t b{font-size:18px;opacity:.9}
.chd-st{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;font-weight:800}
.chscreen .chd-st .chip{font-size:17px;padding:6px 14px}
.chscreen .chd-row{justify-content:center}
.chscreen .winnext{width:100%;margin-top:14px;font-size:19px;padding:16px}
/* r12: daily streak on the result card */
.dstreak2{display:flex;align-items:center;justify-content:center;gap:8px;margin:8px auto 0;padding:8px 14px;border-radius:999px;background:linear-gradient(135deg,rgba(255,138,61,.25),rgba(255,200,61,.22));border:2px solid rgba(255,160,61,.6);font-weight:900;font-size:17px;width:max-content;max-width:100%}
.dstreak2 .fl{font-size:24px;display:inline-block;animation:flame 1s ease-in-out 3}
.dstreak2 .num{display:inline-block;min-width:1ch;font-size:22px}
.dstreak2 .num.bump{animation:starpop .5s cubic-bezier(.3,1.6,.5,1) both}
@keyframes flame{0%,100%{transform:scale(1) rotate(0)}50%{transform:scale(1.25) rotate(-6deg)}}
@media (prefers-reduced-motion:reduce){.dstreak2 .fl,.dstreak2 .num.bump,.chscreen .chd-badge svg{animation:none}}
.lbt.frozen{opacity:.7}

/* r12: in chapter 1 the solve line carries no time; an empty result box is not shown at all */
.win.wsheet .lbwin.notime:not(:has([data-k=lbw-name])):not(:has([data-k=lbw-see])){display:none}

/* r13: generated-level flavour line (decoration only) */
.qcard .flv{display:flex;align-items:center;justify-content:center;gap:6px;margin:8px auto 0;padding:5px 12px;max-width:calc(100% - 60px);border-radius:999px;background:rgba(255,196,77,.14);color:var(--fg,inherit);font-size:13.5px;font-weight:600;line-height:1.35;pointer-events:none;position:relative;z-index:2;text-align:center}
.qcard .flv .flvi{font-size:16px;flex:none}
.win .flvwin{text-align:center;font-size:14px;font-weight:700;margin:2px 0 4px;opacity:.9}
.lbt.bonust{margin-inline-start:6px;font-weight:600;opacity:.8}

/* r14 */.hpill.bump{animation:hbump .6s}
@keyframes hbump{30%{transform:scale(1.25)}}
.solrow{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.solrow>span:first-child{flex:1 1 100%}.solwait{font-weight:800;font-size:15px;padding:6px 10px}
.dearn{margin:8px auto 0;font-weight:800;font-size:15px;color:#ffc83d;text-align:center}
.win.wsheet .winnext{position:sticky;bottom:0;z-index:2}
/* r14: with the win sheet up, the question card folds away (no document scroll) so the solved scene moves up into view above the sheet */
.play .qcard{transition:max-height .35s ease,opacity .25s,margin .35s,padding .35s}
body.wsheet-on .play .qcard{max-height:0!important;opacity:0;margin-top:0!important;margin-bottom:0!important;padding-top:0!important;padding-bottom:0!important;overflow:hidden;border-width:0}

/* r15: hint sheet fits the screen, ✕ in the header and a sticky close; «جاهز» badge on the 💡 pill */
.veil.hsveil .sheet{max-height:min(88vh,calc(100dvh - 16px));padding-top:0;padding-bottom:0}
.hshead{position:sticky;top:0;z-index:2;background:var(--bg);display:flex;align-items:center;justify-content:center;padding:14px 40px 8px;margin:0 -2px}
.hshead h2{margin:0!important}
.hshead .hsx{position:absolute;inset-inline-end:0;top:8px;width:44px;height:44px;font-size:20px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:transparent;color:inherit;border:0}
.hsfoot{position:sticky;bottom:0;z-index:2;background:var(--bg);padding:10px 0 calc(12px + var(--safe-b));margin-top:8px}
.hint.locked.ready{outline:2px solid #2ecc71;outline-offset:-2px}
.hint.locked .solwait,.hint.locked [data-k=solwait]{margin-inline-start:6px}
.hintbtn{position:relative}
.hintbtn .hready{position:absolute;top:-9px;inset-inline-end:-8px;background:#22b55e;color:#fff;font-size:11px;font-weight:800;line-height:1;border-radius:10px;padding:3px 6px;box-shadow:0 2px 6px rgba(0,0,0,.3);pointer-events:none}
.hintbtn.ready{animation:hpulse 1.1s ease-in-out 3}
@keyframes hpulse{50%{transform:scale(1.12);box-shadow:0 0 0 6px rgba(34,181,94,.35)}}
@media (prefers-reduced-motion:reduce){.hintbtn.ready{animation:none}}

.hshead,.hsfoot{background:var(--card-solid,var(--bg))}
html[data-theme=dark] .hshead,html[data-theme=dark] .hsfoot{background:#121429}
.hshead{margin:0 -18px;padding:14px 52px 8px}
.hsfoot{margin:8px -18px 0;padding:10px 18px calc(12px + var(--safe-b))}
.hshead .hsx{inset-inline-end:6px;background:var(--soft,transparent)}
.hint.locked{flex-wrap:wrap}
.hint.locked [data-k=solwait],.hint.locked [data-k=solwait-left]{flex:1 0 100%;margin-inline-start:0;text-align:center;justify-content:center}

/* r15 leaderboard: folded name form, own row, today's numbers */
.lbfold{display:flex;align-items:center;justify-content:space-between;width:100%;padding:14px 16px;font:inherit;font-weight:700;color:inherit;cursor:pointer;text-align:start;min-height:52px}
.lbfold-go{opacity:.6;font-size:20px}
.lbme-own .lbr-none{font-size:26px;font-weight:900}
.lbstats{display:flex;justify-content:space-around;gap:8px;text-align:center;padding:14px 10px}
.lbstats .lbst{display:flex;flex-direction:column;gap:2px;min-width:0}
.lbstats .lbst b{font-size:24px;font-weight:900}
.lbstats .lbst small{opacity:.75;font-size:12.5px}
.lbrow.me[data-k=lbrow-me]{outline:2px dashed var(--pri,#7c5cff);outline-offset:-2px}

/* r15 L16 message menu, L20 plug */
.tk-menu{display:flex;gap:6px;justify-content:flex-end;margin:6px 0 4px;flex-wrap:wrap;animation:fade .15s}
.tk-mitem{min-height:44px;padding:8px 14px;border-radius:14px;border:1px solid var(--line,#ccc);background:var(--card-solid,#fff);color:var(--ink,#222);font:inherit;font-weight:700}
.tk-plug{cursor:grab;touch-action:none}
.tk-sock{pointer-events:none}

.l10eta{top:26%!important}
.l3pulse{animation:l3p 1s ease-in-out 3}
@keyframes l3p{50%{transform:translate(-50%,-50%) scale(1.18)}}

/* r15: a more compact win sheet so the payoff above it stays in view */
.win.wsheet .wtt h2{margin:0 0 2px;font-size:22px}
.win.wsheet .winicons{margin-top:6px}
.win.wsheet .winicon{flex-direction:row;gap:6px;min-height:44px;padding:4px 10px;justify-content:center}
.win.wsheet .why{margin-top:6px}
.win.wsheet .wtt{flex-direction:row!important;align-items:center!important;gap:10px;flex-wrap:wrap}
.win.wsheet .wtt .stars{margin:0}
[data-k=lbme-name]{white-space:nowrap}

/* ---- r16 (v1.20.0): chapter-2 openers L21–L25 ---- */
.r16-sign{position:absolute;left:50%;top:58%;transform:translate(-50%,-50%) rotate(-3deg);background:#fff;color:#b42318;border:3px solid #251d3b;border-radius:10px;padding:3px 8px;font-weight:900;font-size:13px;white-space:nowrap;box-shadow:0 3px 0 rgba(0,0,0,.2);transition:color .3s}
.r16-sign.open{color:#15803d;transform:translate(-50%,-50%) rotate(0)}
.r16-clock{position:absolute;left:8%;top:8%;background:#251d3b;color:#fff;border-radius:10px;padding:3px 9px;font-weight:800;font-size:14px;z-index:3}
.scene.r16-salah::after{content:'';position:absolute;inset:0;background:#0b1030;opacity:0;transition:opacity .5s;pointer-events:none;z-index:6}
.scene.r16-pray::after{opacity:.45}
.r16-water{position:absolute;left:44%;top:62%;transform:translate(-50%,-50%);z-index:7;animation:r16pop .5s ease-out both}
@keyframes r16pop{from{transform:translate(-50%,-10%) scale(.4);opacity:0}to{transform:translate(-50%,-50%) scale(1);opacity:1}}
.r16-shelf{position:absolute;left:8%;top:42%;width:44%;height:4%;background:#8a5a33;border:3px solid #251d3b;border-radius:6px;z-index:1}
.r16-stk{position:absolute;left:30%;top:36%;transform:translate(-50%,-50%) scale(.6);opacity:0;pointer-events:none;background:#fffbe6;border:2.5px dashed #251d3b;border-radius:8px;padding:4px 8px;display:flex;flex-direction:column;align-items:center;color:#251d3b;z-index:3;transition:opacity .3s,transform .3s;min-height:44px;min-width:96px;justify-content:center}
.r16-stk.on{opacity:1;pointer-events:auto;transform:translate(-50%,-50%) scale(1)}
.r16-stk small{font-size:10px;font-weight:700;opacity:.7}.r16-stk b{font-size:16px;letter-spacing:1px}
.r16-stk.copied{background:#dcfce7;border-style:solid}
.r16-ph{position:absolute;left:73%;top:64%;transform:translate(-50%,-50%);width:40%;background:#111827;color:#fff;border:3px solid #251d3b;border-radius:18px;padding:10px 8px;display:flex;flex-direction:column;gap:8px;z-index:4;box-shadow:0 6px 14px rgba(0,0,0,.25)}
.r16-net{font-size:12px;font-weight:700;text-align:center}
.r16-pw{min-height:44px;border-radius:10px;border:2px solid #9ca3af;background:#fff;color:#6b7280;font-weight:800;font-size:13px;font-family:inherit}
.r16-pw.ok{color:#15803d;border-color:#22c55e}
.r16-dash{position:absolute;left:0;right:0;top:40%;height:10%;background:#2b2f40;border-bottom:4px solid #1b1e2b;z-index:1}
.r16-temp{position:absolute;left:10%;top:30%;background:#fff;color:#b42318;border:3px solid #251d3b;border-radius:10px;padding:2px 8px;font-weight:900;font-size:15px;z-index:3}
.r16-hot img{filter:drop-shadow(0 0 10px #ff6a3d) saturate(1.2)}
.r16-hot::after{content:'♨';position:absolute;left:50%;top:-6%;transform:translateX(-50%);font-size:24px;color:#ff6a3d;animation:r16steam 1.4s ease-in-out infinite;pointer-events:none}
@keyframes r16steam{0%,100%{opacity:.25;transform:translate(-50%,4px)}50%{opacity:.9;transform:translate(-50%,-6px)}}
.r16-ac{position:absolute;left:70%;top:45%;transform:translate(-50%,-50%);min-height:44px;min-width:64px;border-radius:12px;border:3px solid #251d3b;background:#dbeafe;color:#1e3a8a;font-weight:900;font-family:inherit;z-index:3}
.scene.r16-go{animation:r16go .9s ease-in both}
@keyframes r16go{40%{transform:translateX(-6px)}100%{transform:translateX(0)}}
.r16-cs{position:absolute;left:58%;top:52%;transform:translate(-50%,-50%);width:62%;background:linear-gradient(#3b4252,#1f2430);color:#fff;border:3px solid #251d3b;border-radius:22px;padding:12px 10px;display:flex;flex-direction:column;gap:10px;z-index:3}
.r16-bell{display:inline-block;font-size:22px;opacity:0}
.r16-cs.ring .r16-bell{opacity:1;animation:r16ring .45s ease-in-out infinite}
.r16-cs.ring{box-shadow:0 0 0 4px rgba(34,197,94,.35),0 6px 14px rgba(0,0,0,.25)}
@keyframes r16ring{0%,100%{transform:rotate(0)}25%{transform:rotate(-14deg)}75%{transform:rotate(14deg)}}
.r16-who{display:flex;flex-direction:column;align-items:center}.r16-who b{font-size:20px}.r16-who small{opacity:.75;font-size:12px}
.r16-row1,.r16-row2{display:flex;justify-content:space-around;gap:8px}
.r16-small{min-height:44px;flex:1;border-radius:12px;border:0;background:rgba(255,255,255,.16);color:#fff;font-weight:800;font-size:13px;font-family:inherit}
.r16-big{width:56px;height:56px;border-radius:50%;border:3px solid #251d3b;font-size:24px}
.r16-no{background:#ef4444}.r16-yes{background:#22c55e}
.r16-reps{display:none;flex-direction:column;gap:6px}
.r16-reps.on{display:flex}
.r16-rep{min-height:44px;border-radius:12px;border:2px solid #251d3b;background:#fff;color:#251d3b;font-weight:800;font-size:12.5px;font-family:inherit;padding:4px 8px;line-height:1.3}
.r16-rep.wrong{background:#FFE4E4;animation:shake .4s}
.r16-cs:has(.r16-reps.on) .r16-row2{display:none}
.r16-heart{font-size:22px}
.r16-tap{position:absolute;left:14%;top:72%;transform:translate(-50%,-50%);min-width:48px;min-height:48px;border-radius:12px;border:3px solid #251d3b;background:#e5e7eb;font-size:26px;z-index:3}
.r16-drop{animation:r16rain .7s ease-in both}
@keyframes r16rain{from{transform:translate(-50%,-90%);opacity:0}to{transform:translate(-50%,-30%);opacity:1}}
/* r16: a wrong pick on a choice level shakes the chip and says one short line right under the choices (same on every choice level) */
.opt.wrong{animation:shake .4s}
.r16-bark{min-height:0;margin:6px auto 0;max-width:92%;text-align:center;font-weight:800;font-size:14px;color:#b42318;opacity:0;transform:translateY(-4px);transition:opacity .2s,transform .2s}
.r16-bark.on{opacity:1;transform:none}
[data-theme=dark] .r16-bark{color:#ffb4a8}
.r16-cs.reping .r16-row1{display:none}
.r16-cs.reping{top:50%}
.r16-wh{position:relative;display:flex;align-items:center;justify-content:center;padding:0 44px}
.r16-wx{position:absolute;inset-inline-end:-6px;top:50%;transform:translateY(-50%);width:44px;height:44px;border-radius:50%;border:0;background:rgba(127,127,127,.18);color:inherit;font-size:18px;font-weight:900;cursor:pointer}
.dchip .dearn{margin:0;font-size:inherit}
.kp.kp-tight{gap:6px}.kp.kp-tight .disp{height:44px;font-size:24px}.kp.kp-tight .keys{gap:6px}.kp.kp-tight .keys button{height:44px}

/* r17: the daily win sheet fits 375×740 with no inner scroll: small mascot in the header row, compact streak/meta rows, two-line explanation */
.win.dwin .r16-wh{gap:6px;padding:0 46px 0 0}
[dir=rtl] .win.dwin .r16-wh{padding:0 0 0 46px}
.win.dwin .r16-wh .mascot{width:44px;height:44px;flex:0 0 44px;margin:0}
.win.dwin .r16-wh .mascot svg{width:44px;height:44px}
.win.dwin h2{font-size:19px;line-height:1.25;margin:0}
.win.dwin .dgrid{margin:4px 0;font-size:20px}
.win.dwin .dstreak2{margin-top:2px;transform:scale(.86);transform-origin:50% 0;margin-bottom:-8px}
.win.dwin .dmeta2{margin:4px 0 6px}
.win.dwin .dwhyw{margin:8px 0}
.win.dwin .why.dwhy{margin:0;font-size:14px;line-height:1.5}
.win.dwin .dwhy .dclamp{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.win.dwin .dwhy.open .dclamp{display:block;-webkit-line-clamp:unset;overflow:visible}
.win.dwin .dmore{font-size:13px;min-height:32px;padding:4px 8px}
.win.dwin .winnext{margin-top:6px;min-height:48px;padding-top:10px;padding-bottom:10px}
.win.dwin .lbwin{margin-top:6px}

/* ---------- r17: new chapter-2 openers ---------- */
@keyframes r17fill{from{transform:scaleX(0)}to{transform:scaleX(1)}}
/* L24 */
.r17-ppl{position:absolute;inset-inline-end:4%;top:5%;display:flex;gap:0;z-index:2;transform:scale(.8);transform-origin:top}
.r17-ppl img{display:inline-block!important;animation:r17glare 1s ease-in-out infinite}
.scene.r17-calm .r17-ppl img{animation:none}
@keyframes r17glare{50%{transform:translateY(-3px) rotate(-4deg)}}
.r17-cs{left:62%;width:58%;overflow:visible}
.r17-vol{position:absolute;inset-inline-start:-13px;top:22%;width:11px;height:54px;border-radius:6px 0 0 6px;border:2px solid #251d3b;background:#6b7280;padding:0;cursor:pointer}
[dir=rtl] .r17-vol{border-radius:0 6px 6px 0}
.r17-vol::before{content:'';position:absolute;inset:-14px -16px}
.r17-cs.quiet .r16-bell{opacity:.9;animation:none}
.r17-cs.quiet{box-shadow:0 6px 14px rgba(0,0,0,.25)}
.r17-chips{display:none;flex-direction:column;gap:6px}
.r17-chips.on{display:flex}
.r17-cs:has(.r17-chips.on) .r16-row1,.r17-cs:has(.r17-chips.on) .r16-row2{display:none}
.r17-typed{background:#fff;color:#251d3b;border-radius:10px;padding:6px 8px;font-weight:800;font-size:13px;min-height:32px}
.r17-chip{min-height:44px;border-radius:999px;border:2px solid #251d3b;background:#e0f2fe;color:#0c4a6e;font-weight:800;font-size:12.5px;font-family:inherit;padding:4px 8px}
.r17-chip.wrong{background:#FFE4E4;animation:shake .4s}
.r17-cus{background:#fef9c3}
/* L26 */
.r17-ac{position:absolute;left:50%;top:15%;transform:translateX(-50%);width:62%;height:17%;background:#f8fafc;border:3px solid #251d3b;border-radius:14px;z-index:2}
.r17-led{position:absolute;inset-inline-end:8%;top:24%;width:9px;height:9px;border-radius:50%;background:#9ca3af}
.r17-vent{position:absolute;left:8%;right:8%;bottom:16%;height:8px;border-radius:4px;background:repeating-linear-gradient(90deg,#cbd5e1 0 6px,#e2e8f0 6px 10px)}
.r17-wind{position:absolute;left:50%;top:104%;transform:translateX(-50%);font-size:18px;opacity:0;white-space:nowrap;color:#38bdf8}
.r17-ac.on .r17-led{background:#22c55e;box-shadow:0 0 8px #22c55e}
.r17-ac.on .r17-wind{opacity:1;animation:r16steam 1.2s ease-in-out infinite}
.r17-t{left:6%;top:40%}
.r17-remote{position:absolute;left:58%;top:62%;transform:translate(-50%,-50%);width:36%;height:68%;background:linear-gradient(#f1f5f9,#d7dde7);border:3px solid #251d3b;border-radius:22px;z-index:4;display:flex;flex-direction:column;align-items:center;padding:7px 6px;gap:6px}
.r17-lcd{width:84%;height:22px;border-radius:6px;background:#a3b18a;border:2px solid #251d3b;font:800 13px/18px monospace;text-align:center;color:#1f2937}
.r17-keys{display:grid;grid-template-columns:1fr 1fr;gap:5px;width:88%}
.r17-k{min-height:36px;border-radius:10px;border:2px solid #251d3b;background:#fff;font-weight:900;font-size:16px;color:#251d3b;padding:0}
.r17-pw{grid-column:1/3;background:#fecaca;color:#991b1b;font-size:20px}
.r17-bay{position:absolute;left:8%;right:8%;bottom:5%;height:30%;border-radius:10px;background:#cbd5e1;border:2px dashed #475569;display:flex;justify-content:space-around;align-items:center}
.r17-mark{position:absolute;top:-2px;left:0;right:0;text-align:center;font-size:10px;font-weight:900;color:#475569}
.r17-bat{position:relative;width:30%;height:76%;border-radius:6px;border:2px solid #251d3b;background:linear-gradient(#1f2937 0 62%,#f59e0b 62%);color:#fff;font-weight:900;padding:0;transition:transform .25s;display:flex;flex-direction:column;align-items:center;justify-content:space-between}
.r17-bat::before{content:'';position:absolute;top:-6px;left:35%;width:30%;height:5px;background:#9ca3af;border:1.5px solid #251d3b;border-radius:2px 2px 0 0}
.r17-bat i{font-style:normal;font-size:14px;line-height:1.1}
.r17-bat span{font-size:9px;color:#251d3b;padding-bottom:1px}
.r17-bat.flip{transform:rotate(180deg)}
.r17-cover{position:absolute;left:6%;right:6%;bottom:3%;height:34%;border-radius:12px;background:repeating-linear-gradient(180deg,#e2e8f0 0 5px,#cbd5e1 5px 8px);border:3px solid #251d3b;z-index:2;display:flex;align-items:flex-end;justify-content:center;font-weight:900;color:#475569;cursor:grab;touch-action:none;transition:opacity .25s}
.r17-cover.off{opacity:0;pointer-events:none;transform:translateY(110px)!important;transition:transform .3s,opacity .3s}
/* L27 */
.r17-wm{position:absolute;left:52%;top:56%;transform:translate(-50%,-50%);width:66%;height:80%;background:#f8fafc;border:3px solid #251d3b;border-radius:16px;z-index:2;display:flex;flex-direction:column;align-items:center;padding:8px}
.r17-panel{display:flex;align-items:center;justify-content:space-between;width:100%;gap:6px;padding-bottom:6px;border-bottom:3px solid #251d3b}
.r17-scr{background:#0f172a;color:#86efac;font:800 13px/24px monospace;border-radius:6px;padding:0 6px;min-width:62px;text-align:center}
.r17-lock{position:relative;overflow:hidden;width:58px;min-height:48px;border-radius:12px;border:2.5px solid #251d3b;background:#fef3c7;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:0;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;touch-action:none}
.r17-lock svg{display:none}
.r17-lock span{font-size:18px;line-height:1;position:relative;z-index:1}.r17-lock small{font-size:10px;font-weight:900;position:relative;z-index:1}
.r17-ring{position:absolute;left:0;bottom:0;height:100%;width:100%;background:rgba(34,197,94,.45);transform:scaleX(0);transform-origin:left;pointer-events:none}
.r17-lock.done{background:#dcfce7}.r17-lock.done .r17-ring{display:none}
.r17-pp{min-width:48px;min-height:48px;border-radius:12px;border:2.5px solid #251d3b;background:#fff;font-size:18px}
.r17-port{position:relative;flex:1;width:100%;display:flex;align-items:center;justify-content:center}
.r17-drum{width:150px;height:150px;border-radius:50%;background:radial-gradient(circle,#bfdbfe 0 55%,#93c5fd 56% 70%,#64748b 71%);border:4px solid #251d3b;display:flex;align-items:center;justify-content:center;position:relative}
.r17-drum.spin .r17-thobe{animation:r17spin 1.2s linear infinite}
@keyframes r17spin{to{transform:rotate(360deg)}}
.r17-thobe{width:64px;height:84px;background:#fff;border:3px solid #251d3b;border-radius:20px 20px 8px 8px;position:relative;cursor:pointer}
.r17-pocket{position:absolute;left:14px;top:26px;width:16px;height:12px;border:2px solid #251d3b;border-top:0;border-radius:0 0 5px 5px}
.r17-door{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:164px;height:164px;border-radius:50%;border:8px solid #94a3b8;background:rgba(191,219,254,.35);padding:0;transition:transform .35s;transform-origin:0 50%}
.r17-door.open{transform:translate(-50%,-50%) perspective(400px) rotateY(-75deg);pointer-events:none}
.r17-note{position:absolute;left:52%;top:30%;transform:translate(-50%,-50%) rotate(-8deg);background:#86c39a;color:#14532d;border:3px solid #14532d;border-radius:6px;padding:6px 14px;font:900 20px/1 system-ui;z-index:8;animation:r16pop .5s ease-out both}
.r17-plug{position:absolute;inset-inline-end:3%;bottom:4%;min-width:48px;min-height:48px;border-radius:12px;border:2.5px solid #251d3b;background:#fff;font-size:22px;z-index:3}
/* L28 */
.r17-lane{position:absolute;left:0;right:0;top:64%;height:3px;background:repeating-linear-gradient(90deg,#fff 0 18px,transparent 18px 32px);z-index:1}
.r17-zz{position:absolute;left:70%;top:-14%;font-size:16px;animation:r16steam 1.6s ease-in-out infinite}
.r17-bell{position:absolute;left:30%;top:52%;font-size:15px}
.r17-sh{cursor:pointer}
.r17-sh.r17-baa{animation:shake .4s}
.r17-horn{position:absolute;inset-inline-end:4%;bottom:3%;min-height:44px;border-radius:12px;border:3px solid #251d3b;background:#fde68a;font-weight:900;font-family:inherit;z-index:5;padding:0 10px}
/* L29 */
.r17-tm{position:absolute;left:50%;top:70%;transform:translate(-50%,-50%);width:200px;height:132px;border-radius:50%;background:radial-gradient(circle at 30% 40%,#8b5a2b 0 3px,transparent 4px) 0 0/26px 22px,radial-gradient(ellipse,#f6c983 0 50%,#d99749 70%,#a8662c 100%);border:3px solid #251d3b;z-index:3;touch-action:none;cursor:pointer}
.r17-tm .r17-hl,.r17-tm .r17-hr{display:none}
.r17-tm.cut{background:none;border:0}
.r17-tm.cut .r17-hl,.r17-tm.cut .r17-hr{display:block;position:absolute;top:0;width:50%;height:100%;background:radial-gradient(ellipse at right,#fff1d6 0 30%,#f6c983 50%,#c9843d 100%);border:3px solid #251d3b}
.r17-tm.cut .r17-hl{left:-8%;border-radius:100% 0 0 100%/50% 0 0 50%;transform:rotate(-8deg)}
.r17-tm.cut .r17-hr{right:-8%;border-radius:0 100% 100% 0/0 50% 50% 0;transform:rotate(8deg) scaleX(-1)}
.r17-tm.cut::after{content:'💨';position:absolute;left:50%;top:-30%;transform:translateX(-50%);font-size:30px;animation:r16steam 1s ease-out both}
.r17-blow{position:absolute;inset-inline-start:4%;bottom:4%;min-height:44px;border-radius:12px;border:3px solid #251d3b;background:#e0f2fe;font-weight:900;font-family:inherit;z-index:5;padding:0 10px}
/* L30 */
.r17-pit{width:86px;height:46px;border-radius:50%;background:radial-gradient(ellipse,#3f2a1a 0 55%,#6b6b6b 56% 100%);border:3px solid #251d3b;z-index:3}
.r17-pit .r17-logs{display:none}
.r17-pit.wood .r17-logs{display:block;position:absolute;left:18%;right:18%;top:28%;height:14px;background:linear-gradient(90deg,#7c4a1e,#a0642c);border:2px solid #251d3b;border-radius:8px;transform:rotate(-12deg)}
.r17-fire{position:absolute;left:50%;top:-58%;transform:translate(-50%,-50%);z-index:4}
.r17-wood{width:70px;height:34px;background:linear-gradient(180deg,#a0642c 0 45%,#7c4a1e 45%);border:3px solid #251d3b;border-radius:10px;cursor:grab;touch-action:none}
.r17-gust{position:absolute;inset-inline-end:14%;top:62%;font-size:22px;color:#e5e7eb;z-index:2;animation:r17gust 1s linear infinite}
[dir=rtl] .r17-gust{inset-inline-end:auto;right:14%}
@keyframes r17gust{from{transform:translateX(0);opacity:.9}to{transform:translateX(-60px);opacity:0}}
.scene.r17-calm .r17-gust{display:none}
.r17-match{position:absolute;inset-inline-end:4%;top:4%;min-height:44px;border-radius:12px;border:3px solid #251d3b;background:#fecaca;font-weight:900;font-family:inherit;z-index:6;padding:0 10px}
/* map: «جديد ✨» on the new openers for a returning player */
.lvl.nw{outline:2px dashed #f59e0b;outline-offset:-3px}
.lvl .nwb{position:absolute;left:50%;bottom:-7px;transform:translateX(-50%);font-size:9px;font-weight:900;background:#f59e0b;color:#251d3b;border-radius:999px;padding:1px 5px;white-space:nowrap;line-height:1.3}

.scene.r17-kashta{background-image:radial-gradient(circle at 20% 18%,#fff 0 1px,transparent 2px),radial-gradient(circle at 64% 10%,#fff 0 1px,transparent 2px),radial-gradient(circle at 82% 26%,#fff 0 1.2px,transparent 2px),radial-gradient(circle at 40% 30%,#fff 0 1px,transparent 2px),linear-gradient(#0e1a3a,#26305a 56%,#c79a62 56%)!important}
.r17-cold{position:absolute;left:78%;top:-8%;font-size:18px;animation:r17glare 1s ease-in-out infinite}

/* ===== r18 (v1.22.0): L31–L40 scenes, L24 word chips, L27 countdown, L29 tear guide, hint wait label ===== */
.r18-btn{position:absolute;min-height:44px;border-radius:12px;border:3px solid #251d3b;background:#fde68a;color:#251d3b;font-weight:900;font-family:inherit;font-size:14px;z-index:7;padding:0 10px}
.r18-wl{font-weight:800}
/* L31 */
.r18-road{position:absolute;left:28%;right:28%;top:40%;bottom:0;background:#2b2e36;border-inline:3px dashed #e5e7eb44}
.r18-cross{position:absolute;left:0;right:0;top:40%;height:14%;background:#2b2e36}
.r18-stop{position:absolute;left:28%;right:28%;top:56%;height:6px;background:#f8fafc}
.r18-loop{position:absolute;left:36%;right:36%;top:58%;height:13%;border:3px dashed #fbbf24;border-radius:6px;opacity:.75}
.r18-tl{position:absolute;inset-inline-end:14%;top:6%;width:44px;height:112px;background:#111827;border:3px solid #251d3b;border-radius:12px;display:flex;flex-direction:column;justify-content:space-around;align-items:center;z-index:3}
.r18-tl i{width:26px;height:26px;border-radius:50%;background:#374151}
.r18-tl .r18-r.on{background:#ef4444;box-shadow:0 0 14px #ef4444}.r18-tl .r18-y.on{background:#f59e0b;box-shadow:0 0 14px #f59e0b}.r18-tl .r18-g.on{background:#22c55e;box-shadow:0 0 16px #22c55e}
.r18-cam{position:absolute;inset-inline-start:10%;top:16%;font-size:26px;background:#e5e7eb;border:3px solid #251d3b;border-radius:10px;padding:2px 6px;z-index:3}
.r18-cam.flash{animation:r18flash .6s}
@keyframes r18flash{0%,100%{box-shadow:none}30%{box-shadow:0 0 0 400px rgba(255,255,255,.85)}}
.r18-gas{inset-inline-end:3%;bottom:3%;background:#bbf7d0}.r18-horn{inset-inline-start:3%;bottom:3%}.r18-wait{inset-inline-start:3%;bottom:calc(3% + 52px);background:#e0f2fe}
.r18-junc .r18-car{z-index:4}
/* L32 */
.r18-dune .r18-stuck{filter:drop-shadow(0 6px 0 rgba(0,0,0,.12))}
.r18-stuck img{transform:rotate(-4deg)}
.r18-spin{animation:r18shake .45s}
@keyframes r18shake{25%{transform:translate(-50%,-50%) translateX(-4px)}75%{transform:translate(-50%,-50%) translateX(4px)}}
.r18-tyre{position:absolute;width:56px;height:56px;margin:-28px 0 0 -28px;border-radius:50%;background:radial-gradient(#9ca3af 0 22%,#1f2937 23% 100%);border:3px solid #251d3b;z-index:4;display:grid;place-items:center;transition:transform .3s,border-radius .3s}
.r18-tyre.flat{transform:scaleY(.82) translateY(5px);border-radius:46% 46% 40% 40%}
.r18-psi{position:absolute;top:-24px;background:#fff;border:2px solid #251d3b;border-radius:8px;padding:0 6px;font:900 13px/18px system-ui;color:#251d3b}
.r18-tyre.flat .r18-psi{background:#bbf7d0}
.r18-sandpile{position:absolute;left:24%;right:14%;top:73%;height:12%;background:#e7b56b;border-radius:50% 50% 0 0;z-index:5;pointer-events:none}
.r18-gas{z-index:8}.r18-push{inset-inline-start:3%;top:3%;background:#e0f2fe}.r18-dig{inset-inline-start:3%;top:calc(3% + 52px);background:#fef3c7}
.r18-dune .r18-gas{inset-inline-end:3%;bottom:3%}
/* L33 */
.r18-map{position:relative}
.r18-city{position:absolute;top:50%;transform:translateY(-50%);background:#fff;border:3px solid #251d3b;border-radius:14px;padding:6px 10px;text-align:center;font-weight:900;color:#251d3b;display:flex;flex-direction:column;gap:2px}
.r18-city span{font:900 20px/1 system-ui}.r18-ruh{right:8%}.r18-jed{left:8%}[dir=ltr] .r18-ruh{right:8%}
.r18-plane{position:absolute;left:50%;top:44%;transform:translate(-50%,-50%) scaleX(-1);font-size:30px}
/* L34 */
.r18-me{position:absolute;left:34%;top:52%;transform:translate(-50%,-50%);width:120px;height:190px;z-index:3}
.r18-head{position:absolute;left:50%;top:0;transform:translateX(-50%)}
.r18-thobe{position:absolute;left:50%;top:62px;transform:translateX(-50%);width:96px;height:124px;background:#fff;border:3px solid #251d3b;border-radius:30px 30px 10px 10px}
.r18-btns{position:absolute;left:50%;top:6px;width:4px;height:40px;transform:translateX(-50%);background:repeating-linear-gradient(#cbd5e1 0 4px,transparent 4px 10px)}
.r18-stain{position:absolute;right:8px;top:40px;width:30px;height:38px;border-radius:48% 52% 60% 40%;background:#a16207;opacity:.75}
.r18-me.wet .r18-stain{width:42px;height:52px;opacity:.55}
.r18-me.worn .r18-thobe::after{content:'';position:absolute;inset:-6px -12px -4px;border-radius:30px 30px 8px 8px;background:linear-gradient(90deg,#3b2414 0 34%,transparent 34% 66%,#3b2414 66%);border-inline:4px solid #d4a017}
.r18-cab{position:absolute;left:78%;top:46%;transform:translate(-50%,-50%);width:96px;height:170px;background:#8b5a2b;border:3px solid #251d3b;border-radius:8px;z-index:2;cursor:pointer}
.r18-dl,.r18-dr{position:absolute;top:0;bottom:0;width:50%;background:#a0693a;border:2px solid #251d3b;transition:transform .3s;transform-origin:left;z-index:3}
.r18-dl{left:0;transform-origin:left}.r18-dr{right:0;transform-origin:right}
.r18-cab.open .r18-dl{transform:perspective(200px) rotateY(-70deg)}.r18-cab.open .r18-dr{transform:perspective(200px) rotateY(70deg)}
.r18-bisht{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:66px;height:120px;background:#3b2414;border-radius:24px 24px 8px 8px;border-inline:4px solid #d4a017;z-index:2}
.r18-cab:not(.open) .r18-bisht{visibility:hidden;pointer-events:none}
.r18-zari{position:absolute;left:50%;top:0;width:24px;height:30px;transform:translateX(-50%);border:3px solid #d4a017;border-top:0;border-radius:0 0 14px 14px}
.r18-wash{inset-inline-start:3%;bottom:3%;background:#e0f2fe}.r18-wipe{inset-inline-start:3%;bottom:calc(3% + 52px);background:#fef3c7}.r18-home{inset-inline-end:3%;bottom:3%;background:#fecaca}
/* L35 */
.r18-house{position:absolute;inset-inline-end:6%;top:24%;width:58%;height:40%;background:#e9d5b5;border:3px solid #251d3b;border-radius:4px;z-index:1}
.r18-parapet{position:absolute;left:-3px;right:-3px;top:-14px;height:14px;background:repeating-linear-gradient(90deg,#e9d5b5 0 14px,transparent 14px 22px);border-bottom:3px solid #251d3b}
.r18-win{position:absolute;left:20%;top:30%;width:26px;height:30px;background:#93c5fd;border:3px solid #251d3b}
.r18-roofzone{position:absolute;inset-inline-end:6%;top:8%;width:58%;height:18%}
.r18-door{position:absolute;inset-inline-end:14%;top:46%;width:40px;height:66px;background:#7c3f1d;border:3px solid #251d3b;border-radius:18px 18px 0 0;z-index:2}
.r18-stick{width:16px;height:96px;margin:-48px 0 0 -8px;border-radius:6px;background:#b45309;border:2.5px solid #251d3b;cursor:grab}
.r18-stick i{position:absolute;left:50%;bottom:-14px;transform:translateX(-50%);width:44px;height:22px;border:2.5px solid #251d3b;border-radius:4px 4px 10px 10px}
.r18-broom i{background:repeating-linear-gradient(90deg,#fbbf24 0 4px,#d97706 4px 6px)}
.r18-mop i{background:#e5e7eb;border-radius:10px}
.r18-mop.pole{height:170px;margin-top:-85px;background:linear-gradient(#b45309 0 50%,#92400e 50%)}
.r18-jump{inset-inline-start:3%;bottom:3%;background:#e0f2fe}
/* L36 */
.r18-cats{display:flex;align-items:center;justify-content:space-around;padding:6px 4px}
.r18-cat{position:relative;width:70px;height:70px}
.r18-wink{position:absolute;left:19%;top:51%;width:26%;height:21%;background:#fda731;border-radius:0 0 50% 50%;border-bottom:3px solid #292f33}
.r18-cush{position:absolute;left:-6%;top:36%;width:58%;height:70%;background:linear-gradient(135deg,#be123c,#9f1239);border:3px solid #251d3b;border-radius:16px;transform:rotate(-8deg)}
/* L37 */
.r18-bath{overflow:hidden}
.r18-strip{position:absolute;inset:0}
.r18-room{position:absolute;inset:0;transition:opacity .35s ease,visibility .35s}
.r18-strip:not(.p1) .r18-hw,.r18-strip.p1 .r18-br{opacity:0;visibility:hidden}
.r18-tiles{position:absolute;inset:0;background:repeating-linear-gradient(0deg,#e2ecf5 0 38px,#cbd9e6 38px 40px),#e2ecf5;background-blend-mode:multiply}
.r18-shower{position:absolute;left:50%;top:10%;transform:translateX(-50%);width:20px;height:50%}
.r18-shower .r18-head{position:absolute;left:-22px;top:0;width:64px;height:20px;background:#94a3b8;border:3px solid #251d3b;border-radius:0 0 30px 30px}
.r18-drops{position:absolute;left:-14px;top:24px;width:48px;height:0;background:repeating-linear-gradient(90deg,#60a5fa 0 2px,transparent 2px 8px);transition:height .4s}
.r18-drops.run{height:140px}.r18-drops.steam::after{content:'♨️♨️';position:absolute;left:-6px;top:30px;font-size:26px;animation:r16steam 1.2s ease-in-out infinite}
.r18-taps{position:absolute;left:50%;top:66%;transform:translateX(-50%);display:flex;gap:26px}
.r18-tap{width:52px;height:52px;border-radius:50%;border:3px solid #251d3b;background:#f1f5f9;font-size:22px}
.r18-hallbtn,.r18-backbtn{position:absolute;inset-inline-end:4%;top:36%;width:52px;height:84px;border-radius:10px 10px 4px 4px;border:3px solid #251d3b;background:#c08457;font-size:26px;z-index:3}
.r18-backbtn{inset-inline-end:auto;inset-inline-start:4%;background:#e0f2fe;height:60px}
[dir=rtl] .r18-hallbtn{inset-inline-end:auto;inset-inline-start:4%}[dir=rtl] .r18-backbtn{inset-inline-start:auto;inset-inline-end:4%}
.r18-wallpaper{position:absolute;inset:0;background:#f5ecdc}
.r18-heaterbox{position:absolute;left:50%;top:10%;transform:translateX(-50%);width:110px;height:120px;background:#f8fafc;border:3px solid #251d3b;border-radius:40px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;font-weight:900;color:#251d3b}
.r18-bar{width:70%;height:10px;border-radius:5px;background:#e5e7eb;position:relative;overflow:hidden}
.r18-bar::after{content:'';position:absolute;inset:0;width:0;background:linear-gradient(90deg,#f59e0b,#ef4444)}
.r18-bar.fill::after{width:100%;transition:width 2.3s linear}
.r18-switch{position:absolute;left:50%;top:62%;transform:translateX(-50%);width:62px;height:62px;border-radius:12px;border:3px solid #251d3b;background:#fff;display:grid;place-items:center}
.r18-switch .r18-led{width:20px;height:20px;border-radius:50%;background:#7f1d1d}
.r18-switch.on .r18-led{background:#ef4444;box-shadow:0 0 14px #ef4444}
.r18-wait2{inset-inline-start:50%;transform:translateX(-50%);bottom:3%;background:#e0f2fe}
/* L38 */
.r18-pot{position:absolute;left:50%;top:44%;transform:translate(-50%,-50%);width:150px;height:92px;background:linear-gradient(#cbd5e1,#94a3b8);border:3px solid #251d3b;border-radius:10px 10px 30px 30px;z-index:3}
.r18-handle{position:absolute;top:18px;width:22px;height:14px;border:3px solid #251d3b;background:#64748b;border-radius:6px}.r18-hl{left:-24px}.r18-hr{right:-24px}
.r18-foam{position:absolute;left:-8px;right:-8px;top:-18px;height:22px;background:#fff;border:2.5px solid #251d3b;border-radius:14px;opacity:0;transition:opacity .4s}
.r18-foam.boil{opacity:1;animation:r18boil .7s ease-in-out infinite}
@keyframes r18boil{50%{transform:translateY(-4px) scaleX(1.04)}}
.r18-kitchen .r18-lid{position:absolute;left:50%;top:26%;transform:translate(-50%,-50%);width:150px;height:22px;background:#64748b;border:3px solid #251d3b;border-radius:30px 30px 6px 6px;z-index:4;cursor:pointer;padding:0}
.r18-kitchen .r18-lid::after{content:'〰️';position:absolute;left:50%;top:-34px;transform:translateX(-50%);font-size:18px;animation:r18rattle .25s infinite}
.r18-kitchen .r18-lid.off::after{display:none}
.r18-kitchen .r18-lid i{position:absolute;left:50%;top:-12px;transform:translateX(-50%);width:26px;height:12px;background:#334155;border:3px solid #251d3b;border-radius:6px 6px 0 0}
.r18-kitchen .r18-lid.off{left:84%;top:16%;transform:translate(-50%,-50%) rotate(-20deg);animation:none}
@keyframes r18rattle{50%{transform:translateX(-50%) translateY(-3px)}}
.r18-fire{position:absolute;left:50%;top:66%;transform:translate(-50%,-50%);z-index:2;transition:transform .4s}
.r18-fire.small{transform:translate(-50%,-30%) scale(.45)}
.r18-knob{position:absolute;left:50%;top:86%;transform:translate(-50%,-50%);width:58px;height:58px;border-radius:50%;background:radial-gradient(#f8fafc 0 55%,#cbd5e1 56%);border:3px solid #251d3b;z-index:5;touch-action:none}
.r18-tick{position:absolute;left:50%;top:4px;width:6px;height:18px;margin-left:-3px;background:#251d3b;border-radius:3px}
.r18-addw{inset-inline-start:3%;bottom:3%;background:#e0f2fe}.r18-blow2{inset-inline-end:3%;bottom:3%;background:#fef3c7}
/* L39 */
.r18-bet{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);background:#bbf7d0;border:3px solid #251d3b;border-radius:10px;padding:4px 10px;font:900 18px/1.2 system-ui;color:#14532d}
/* L40 */
.r18-faucet{position:absolute;left:12%;top:8%;width:70px;height:60px;z-index:2}
.r18-spout{position:absolute;left:0;top:0;width:64px;height:16px;background:#94a3b8;border:3px solid #251d3b;border-radius:4px 10px 10px 4px}
.r18-spout::after{content:'';position:absolute;right:-3px;top:10px;width:16px;height:22px;background:#94a3b8;border:3px solid #251d3b;border-top:0;border-radius:0 0 6px 6px}
.r18-stream{position:absolute;right:6px;top:34px;width:6px;height:0;background:#60a5fa;transition:height .3s}
.r18-faucet.run .r18-stream{height:60px}
.r18-base{position:absolute;left:22%;top:74%;width:84px;height:12px;margin-left:-42px;background:#334155;border-radius:6px}
.r18-kettle{width:76px;height:84px;margin:-42px 0 0 -38px;background:linear-gradient(#e5e7eb,#9ca3af);border:3px solid #251d3b;border-radius:16px 16px 10px 10px;overflow:hidden}
.r18-water{position:absolute;left:0;right:0;bottom:0;height:0;background:#93c5fd;transition:height .5s}
.r18-kettle.full .r18-water{height:60%}
.r18-kettle.heat{animation:r18shake2 .3s infinite}.r18-kettle.boiled::after{content:'♨️';position:absolute;left:50%;top:-4px;transform:translateX(-50%);font-size:20px}
@keyframes r18shake2{50%{transform:translateX(1.5px)}}
.r18-kh{position:absolute;right:-2px;top:20px;width:12px;height:36px;border:3px solid #251d3b;border-left:0;border-radius:0 10px 10px 0}
.r18-ksw{position:absolute;left:22%;top:84%;transform:translate(-50%,-50%);width:48px;height:48px;border-radius:50%;border:3px solid #251d3b;background:#fecaca;font-size:20px;font-weight:900;z-index:6}
.r18-ksw.on{background:#22c55e;color:#fff}
.r18-col{position:absolute;left:68%;top:6%;width:30%;height:58%;transform:translateX(-50%);border:2px dashed #a16207aa;border-radius:12px;display:flex;flex-direction:column}
.r18-hi{flex:1}.r18-lo{height:28%}
.r18-glass{position:absolute;left:68%;top:72%;transform:translate(-50%,-50%);width:40px;height:56px;border:3px solid #251d3b;border-radius:6px 6px 14px 14px;background:rgba(255,255,255,.6);overflow:hidden;z-index:3}
.r18-tealvl{position:absolute;left:0;right:0;bottom:0;height:0;background:#9a3412;transition:height .6s}
.r18-froth{position:absolute;left:0;right:0;height:0;background:#fde68a;transition:height .6s,bottom .6s;bottom:0}
.r18-glass.flat .r18-tealvl{height:70%}.r18-glass.frothy .r18-tealvl{height:62%}.r18-glass.frothy .r18-froth{height:16%;bottom:62%}
.r18-teapot{width:64px;height:52px;margin:-26px 0 0 -32px;background:linear-gradient(#fcd34d,#d97706);border:3px solid #251d3b;border-radius:30px 30px 14px 14px}
.r18-tspout{position:absolute;right:-22px;top:12px;width:24px;height:10px;background:#d97706;border:3px solid #251d3b;border-radius:0 8px 8px 0;transform:rotate(-24deg)}
.r18-teapot.pour{transform:rotate(-28deg)}
/* L24 word chips */
.r18-words{display:flex;flex-wrap:wrap;gap:5px}
.r18-words .r17-chip{min-height:38px;font-size:12px;padding:2px 8px}
.r18-words .r17-chip.on{background:#bbf7d0;color:#14532d}
.r18-send{background:#fde68a;color:#251d3b}
/* L27 */
.r17-scr.r18-low{color:#ef4444;animation:r18blink 1s steps(2) infinite}
@keyframes r18blink{50%{opacity:.4}}
/* L29 */
.r18-tearline{position:absolute;left:8%;right:8%;top:50%;height:0;border-top:3px dashed #7c2d12;opacity:0;transition:opacity .3s;pointer-events:none}
.r18-swipe{position:absolute;left:10%;top:44%;font-size:26px;opacity:0;pointer-events:none;font-style:normal}
.r17-tm.r18-guide .r18-tearline{opacity:.8}
.r17-tm.r18-guide .r18-swipe{opacity:1;animation:r18swipe 1.6s ease-in-out infinite}
.r17-tm.cut .r18-tearline,.r17-tm.cut .r18-swipe{display:none}
@keyframes r18swipe{0%{left:8%}60%,100%{left:78%}}

/* ---------- r19 (v1.23.0): L41–L60 scenes ---------- */
.r19-o{position:absolute;transform:translate(-50%,-50%);z-index:4;line-height:1;user-select:none;-webkit-user-select:none;-webkit-tap-highlight-color:transparent}
.r19-o img{display:block}
button.r19-o{font-family:inherit}
.r18-btn.r19-b{position:absolute}
.r19-cal{width:70px;height:78px;background:#fff;border:3px solid #251d3b;border-radius:8px;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;overflow:hidden;cursor:pointer}
.r19-cal b{display:block;width:100%;background:#ef4444;color:#fff;font-size:13px;padding:4px 0;text-align:center}
.r19-cal i{font-style:normal;font-weight:900;font-size:30px;color:#251d3b;margin-top:8px}
.r19-cal.torn{animation:r19flip .5s}
@keyframes r19flip{0%{transform:translate(-50%,-50%) rotateX(0)}50%{transform:translate(-50%,-50%) rotateX(80deg)}100%{transform:translate(-50%,-50%) rotateX(0)}}
.r19-ring{animation:r19ring .25s infinite}
@keyframes r19ring{0%,100%{transform:translate(-50%,-50%) rotate(-8deg)}50%{transform:translate(-50%,-50%) rotate(8deg)}}
.r19-bed{width:150px;height:60px;background:#93c5fd;border:3px solid #251d3b;border-radius:14px;cursor:pointer}
.r19-bed i{position:absolute;left:8px;top:8px;width:46px;height:26px;background:#fff;border:2px solid #251d3b;border-radius:10px}
.r19-bed.sleep::after{content:'💤';position:absolute;right:6px;top:-26px;font-size:28px}
.r19-car{filter:grayscale(1) brightness(1.9) contrast(.9);cursor:pointer;padding:4px}
.r19-car.flash{animation:r19flash .3s 4;filter:grayscale(1) brightness(2.2) drop-shadow(0 0 12px #fde047)}
@keyframes r19flash{0%,100%{opacity:1}50%{opacity:.35}}
.r19-park::before{content:'';position:absolute;inset:24% 0 0;background:repeating-linear-gradient(90deg,transparent 0 31%,#e5e7eb 31% 32.5%)}
.r19-slot{width:22px;height:78%;background:#0b0f19;border-radius:12px;border:2px solid #4b5563}
.r19-g{width:40px;height:40px;border-radius:10px;background:#1f2937;color:#e5e7eb;border:2px solid #6b7280;display:flex;align-items:center;justify-content:center;font-weight:900;font-size:18px}
.r19-lever{width:46px;height:46px;border-radius:50%;background:radial-gradient(#9ca3af,#374151);border:3px solid #e5e7eb;z-index:6;cursor:grab}
.r19-start{width:86px;height:86px;border-radius:50%;background:#111827;color:#f87171;border:4px solid #9ca3af;font-weight:900;font-size:15px}
.r19-start.on{color:#4ade80;box-shadow:0 0 18px #4ade80}
.r19-dial{color:#9ca3af;font-size:14px;letter-spacing:1px;white-space:nowrap}
.r19-env{width:96px;height:62px;background:#fefce8;border:3px solid #a16207;border-radius:6px;z-index:6;display:flex;align-items:center;justify-content:center;cursor:grab}
.r19-env::before{content:'';position:absolute;inset:0;background:linear-gradient(155deg,transparent 49%,#a16207 50%,transparent 52%),linear-gradient(25deg,transparent 49%,#a16207 50%,transparent 52%)}
.r19-note{font-style:normal;font-weight:900;font-size:26px;color:#166534;opacity:0;transition:opacity .4s}
.r19-env.lit{background:#fffbeb;box-shadow:0 0 30px #fde047}
.r19-env.lit .r19-note{opacity:.55}
.r19-lamp{filter:drop-shadow(0 0 14px #fde047)}
.r19-thermos{width:62px;height:120px;background:linear-gradient(90deg,#b91c1c,#ef4444 40%,#b91c1c);border:3px solid #251d3b;border-radius:14px 14px 10px 10px;z-index:5;cursor:grab}
.r19-thermos.pour{transform:translate(-50%,-50%) rotate(-70deg)}
.r19-tlid{width:66px;height:36px;background:#fbbf24;border:3px solid #251d3b;border-radius:12px;z-index:7;touch-action:none;cursor:grab}
.r19-tlid i{position:absolute;inset:6px 10px;background:repeating-linear-gradient(90deg,#b45309 0 3px,transparent 3px 9px);border-radius:6px}
.r19-tlid.off{opacity:.8}
.r19-mel{cursor:pointer}
.r19-mel.shiny{filter:saturate(1.4) drop-shadow(0 0 6px #fff)}
.r19-awn{width:100%;height:16%;background:repeating-linear-gradient(90deg,#dc2626 0 12%,#fff 12% 24%)}
.r19-alarm{width:64px;height:64px;border-radius:50%;background:#f8fafc;border:3px solid #251d3b;font-size:28px;z-index:6}
.r19-alarm.on{animation:r19flash .5s infinite;box-shadow:0 0 18px #ef4444}
.r19-window{width:64px;height:84px;background:linear-gradient(#bae6fd,#e0f2fe);border:4px solid #7c4f2f;border-radius:6px}
.r19-window i{position:absolute;left:50%;top:0;bottom:0;width:4px;background:#7c4f2f}
.r19-mab{z-index:6;cursor:grab}
.r19-smoke{opacity:.8;transition:left .3s,top .3s;animation:r19puff 1.6s infinite}
@keyframes r19puff{0%{transform:translate(-50%,-50%) scale(.8)}50%{transform:translate(-50%,-60%) scale(1.1)}100%{transform:translate(-50%,-50%) scale(.8)}}
.r19-sofa{width:190px;height:70px;background:#a78bfa;border:3px solid #251d3b;border-radius:18px 18px 10px 10px}
.r19-cush{width:84px;height:30px;background:#c4b5fd;border:3px solid #251d3b;border-radius:12px;z-index:6;cursor:pointer;transition:top .3s}
.r19-cush.up{top:36%!important;transform:translate(-50%,-50%) rotate(-12deg)}
.r19-remote{z-index:5}
.r19-remote.hidden{visibility:hidden;pointer-events:none}
.r19-baby.cry::after{content:'😭';position:absolute;right:-18px;top:-12px;font-size:24px}
.r19-rail{width:100%;height:10px;background:repeating-linear-gradient(90deg,#fff 0 18px,#ef4444 18px 36px)}
.r19-camel{z-index:5}
.r19-rem{width:150px;height:66px;background:#1f2937;border:3px solid #251d3b;border-radius:14px}
.r19-scr{position:absolute;left:10px;top:10px;width:40px;height:20px;background:#111;border-radius:4px}
.r19-rem.on .r19-scr{background:#4ade80;box-shadow:0 0 10px #4ade80}
.r19-cover,.r19-bat{min-width:92px;height:44px;border-radius:10px;border:3px dashed #9ca3af;background:#374151;color:#e5e7eb;font-weight:800;font-size:13px;z-index:6;padding:0 8px}
.r19-bat{border-style:solid;background:#111827;font-size:18px;display:flex;align-items:center;gap:6px;justify-content:center}
.r19-bat b{color:#f87171}.r19-bat.ok b{color:#4ade80}
.r19-cover.hidden,.r19-bat.hidden,.r19-stop.hidden{display:none}
.r19-bed2{width:200px;height:62px;background:#334155;border:3px solid #0f172a;border-radius:14px}
.r19-phone{width:96px;height:44px;background:#0f172a;color:#e2e8f0;border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:14px;z-index:3}
.r19-phone.ring{animation:r19ring .25s infinite;box-shadow:0 0 14px #38bdf8}
.r19-pillow{width:120px;height:52px;background:#f1f5f9;border:3px solid #0f172a;border-radius:22px;z-index:6;cursor:grab}
.r19-stop{z-index:7;min-width:84px;height:44px;border-radius:22px;background:#ef4444;color:#fff;border:3px solid #fff;font-weight:900;font-family:inherit}
.r19-away{width:28%;height:40%}
.r19-ringtxt{animation:r19ring .3s infinite}
.r19-star{width:40px;height:40px;border:0;background:transparent;color:#fef9c3;font-size:22px;padding:0;z-index:5}
.r19-star.on{color:#fde047;text-shadow:0 0 12px #fde047;font-size:28px}
.r19-star.faint{opacity:.55;font-size:18px}.r19-star.faint.on{opacity:1}
.r19-star.bright{font-size:34px;color:#fff;text-shadow:0 0 16px #fff}
.r19-star.dim{opacity:.5;font-size:20px}
.r19-line{width:0;height:36%;border-left:2px dashed #fde047;opacity:.8}
.r19-gate2{width:58px;height:120px;background:#78350f;border:4px solid #451a03;border-radius:8px;z-index:3;padding:0}
.r19-gate2.open{background:linear-gradient(90deg,#78350f 0 22%,#d6c3a3 22%);}
.r19-sheep{z-index:5;transition:transform .3s}
.r19-sheep.look{transform:translate(-50%,-50%) scaleX(-1)}
.r19-sheep.outside{opacity:.85}
.r19-bucket{z-index:6;cursor:grab}
.ridart.r19-reveal{animation:r19pop .5s}
@keyframes r19pop{0%{transform:scale(.4)}70%{transform:scale(1.15)}100%{transform:scale(1)}}

/* ---------- r20 (v1.24.0, 2026-11-12): L61–L80 scenes + chapter-3 text cards ---------- */
.r20-shop{width:150px;height:110px;background:#fff7ed;border:3px solid #251d3b;border-radius:10px;display:flex;flex-direction:column;align-items:center;overflow:hidden}
.r20-shop b{display:block;width:100%;background:#16a34a;color:#fff;font-size:12px;padding:4px 0;text-align:center}
.r20-glass{font-style:normal;margin-top:6px;width:60px;height:60px;background:linear-gradient(135deg,#bae6fd,#e0f2fe);border:2px solid #64748b;border-radius:6px}
.r20-drink{background:none;border:0;opacity:.85;z-index:6}.r20-shop.open{box-shadow:0 0 0 4px #4ade80}
.r20-door{background:#7c4f2f;border:3px solid #251d3b;border-radius:6px;width:46px;height:80px;color:#fff}.r20-door.open{background:#fde68a}
.r20-sign{background:#fef2f2;border:2px solid #b91c1c;color:#7f1d1d;border-radius:8px;font-weight:800;font-size:12px;padding:4px 8px;z-index:7;font-family:inherit;white-space:nowrap}
.r20-mosque{background:none;border:0}.r20-clock{background:#111827;color:#4ade80;font-weight:900;font-size:16px;padding:3px 8px;border-radius:6px;letter-spacing:1px;direction:ltr}
.r20-split{width:170px;height:40px;background:#f8fafc;border:3px solid #251d3b;border-radius:10px}
.r20-air{font-size:22px;letter-spacing:2px;transition:color .3s}.r20-air.hot{color:#ef4444}.r20-air.dry{color:#a3a3a3}.r20-air.cold{color:#0ea5e9}
.r20-remote{width:120px;height:150px;background:#f1f5f9;border:3px solid #251d3b;border-radius:18px;padding-top:12px;display:flex;justify-content:center}
.r20-scr{display:block;background:#0f172a;color:#e2e8f0;font-size:20px;font-weight:900;padding:6px 10px;border-radius:8px;height:30px;direction:ltr}
.r20-rb{width:46px;height:34px;border-radius:10px;background:#334155;color:#fff;border:2px solid #0f172a;font-weight:900;font-size:13px;z-index:6;font-family:inherit}
.r20-pow{background:#b91c1c}
.r20-car{width:230px;height:100px;background:#e5e7eb;border:3px solid #251d3b;border-radius:40px 60px 18px 18px}
.r20-car i{position:absolute;left:30px;right:30px;top:12px;height:34px;background:#bfdbfe;border-radius:16px 26px 4px 4px;border:2px solid #251d3b}
.r20-cwin{width:56px;height:30px;background:#93c5fd;border:3px solid #1e3a8a;border-radius:8px;z-index:6}.r20-cwin.open{background:#fff;border-style:dashed}
.r20-cdoor{width:66px;height:60px;background:rgba(255,255,255,.35);border:3px dashed #251d3b;border-radius:10px;z-index:6}.r20-cdoor.swing{animation:r20swing .45s}
@keyframes r20swing{0%,100%{transform:translate(-50%,-50%)}50%{transform:translate(-80%,-50%) perspective(200px) rotateY(50deg)}}
.r20-therm{background:#fff;border:2px solid #251d3b;border-radius:12px;padding:4px 10px;font-size:18px}.r20-therm b{color:#dc2626}
.r20-sill{width:90px;height:12px;background:#a16207;border-radius:4px}
.r20-table{width:110px;height:56px;background:#94a3b8;border:3px solid #251d3b;border-radius:10px;box-shadow:inset 0 -14px 0 rgba(0,0,0,.15)}
.r20-socket{width:54px;height:54px;background:#fff;border:3px solid #251d3b;border-radius:8px;display:flex;gap:8px;align-items:center;justify-content:center}.r20-socket i{width:8px;height:16px;background:#251d3b;border-radius:2px}
.r20-sw{width:30px;height:20px;background:#e5e7eb;border:2px solid #251d3b;border-radius:4px;z-index:6}.r20-sw.on{background:#ef4444;box-shadow:0 0 8px #ef4444}
.r20-cable{z-index:5}
.r20-phone{width:52px;height:88px;background:#111827;border:3px solid #6b7280;border-radius:12px;color:#f87171;display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:7;cursor:grab}
.r20-phone b{font-size:16px}.r20-phone i{font-style:normal;font-size:18px;min-height:20px}
.r20-hill{width:110px;height:50px;background:#92400e;border-radius:80px 80px 0 0;opacity:.75}
.r20-cannon{width:60px;height:22px;background:#1f2937;border-radius:6px 14px 14px 6px;border:2px solid #000;transform:translate(-50%,-50%) rotate(-12deg)}
.r20-smoke{opacity:0;transition:opacity .25s}.r20-smoke.on{opacity:1;animation:r20puff 1.6s ease-out}
@keyframes r20puff{from{transform:translate(-50%,-50%) scale(.4)}to{transform:translate(-50%,-80%) scale(1.6)}}
.r20-boom{font-weight:900;font-size:26px;color:#7c2d12;opacity:0}.r20-boom.on{opacity:1;animation:r19flash .4s 2}
.r20-dates,.r20-water{background:#fff7ed;border:3px solid #251d3b;border-radius:50%;width:92px;height:92px;display:flex;align-items:center;justify-content:center;z-index:6}
.r20-water{width:70px;height:70px}
.r20-palm.fruit::after{content:'🟤🟤🟤';position:absolute;left:50%;top:30%;transform:translateX(-50%);font-size:16px}
.r20-male{background:none;border:0}.r20-talaa{z-index:8;cursor:grab}
.r20-guest{z-index:4}.r20-wave{position:absolute;top:-16px;left:50%;transform:translateX(-50%);background:#fff;border:2px solid #251d3b;border-radius:10px;font-size:11px;padding:1px 6px;white-space:nowrap}
.r20-dal{z-index:8;cursor:grab}.r20-hand{background:#fff;border:2px solid #251d3b;border-radius:12px;font-size:13px;font-weight:800;padding:4px 10px;white-space:nowrap;font-family:inherit}
.r20-rh{background:#fef3c7;z-index:6}.r20-rh.on{background:#bbf7d0}
.r20-flag{background:none;border:0;width:60px;height:70px}.r20-flag i{position:absolute;left:44px;top:6px;width:4px;height:62px;background:#78350f}.r20-flag b{position:absolute;left:4px;top:0;font-size:36px;transform:scaleX(1)}
.r20-tent.shake{animation:r20shake .5s infinite}@keyframes r20shake{0%,100%{transform:translate(-50%,-50%) rotate(0)}50%{transform:translate(-50%,-50%) rotate(-3deg)}}
.r20-flap{width:40px;height:44px;background:rgba(124,45,18,.35);border:2px dashed #7c2d12;border-radius:20px 20px 4px 4px;z-index:6}.r20-flap.shut{background:#7c2d12}
.r20-peg{z-index:5}.r20-peg.done{filter:drop-shadow(0 0 6px #22c55e)}.r20-ham{z-index:8;cursor:grab}
.r20-wrap{width:220px;height:110px;background:#fde68a;border:3px solid #a16207;border-radius:50%/40%;transition:all .4s}
.r20-fill{position:absolute;left:30%;right:30%;top:20%;bottom:20%;background:repeating-linear-gradient(90deg,#b45309 0 8px,#fef3c7 8px 14px,#4ade80 14px 18px);border-radius:10px}
.r20-wrap.folded{border-bottom-width:12px}.r20-wrap.rolled{width:90px;height:110px;border-radius:30px}
.r20-fold{background:#fef3c7;border:2px solid #a16207;border-radius:10px;font-size:20px;width:56px;height:36px;z-index:6}.r20-fold.done{background:#bbf7d0}
.r20-roll{z-index:8;cursor:grab}.r20-end{width:60px;height:110px;border:2px dashed rgba(161,98,7,.5);border-radius:10px}
.r20-camel{transition:transform .5s;z-index:3}.r20-camel.knelt{transform:translate(-50%,-30%) scaleY(.7)}
.r20-rope{background:#fff7ed;border:2px solid #92400e;border-radius:50%;width:52px;height:52px;z-index:6}.r20-rope.on{background:#bbf7d0}
.r20-saddle{background:#92400e;border:2px solid #451a03;border-radius:10px;width:54px;height:30px;z-index:6;transition:top .5s}
.r20-words{position:absolute;left:3%;right:3%;bottom:3%;display:grid;grid-template-columns:repeat(4,1fr);gap:6px;z-index:6}
.r18-btn.r20-w{position:static;font-size:13px;padding:6px 2px;min-height:40px}
.r20-grill{width:200px;height:28px;background:#374151;border-radius:6px}
.r20-coals{background:none;border:0;width:170px;height:70px;z-index:5}.r20-coals i{position:absolute;width:22px;height:18px;background:#1f2937;border-radius:40%;transition:all .4s}
.r20-coals.spread i:nth-child(1){left:4px;top:40px}.r20-coals.spread i:nth-child(2){left:40px;top:28px}.r20-coals.spread i:nth-child(3){left:76px;top:44px}.r20-coals.spread i:nth-child(4){left:112px;top:30px}.r20-coals.spread i:nth-child(5){left:144px;top:42px}
.r20-coals.pile i:nth-child(1){left:60px;top:40px}.r20-coals.pile i:nth-child(2){left:86px;top:40px}.r20-coals.pile i:nth-child(3){left:73px;top:24px}.r20-coals.pile i:nth-child(4){left:48px;top:44px}.r20-coals.pile i:nth-child(5){left:98px;top:44px}
.r20-coals.pile i{background:#7f1d1d}.r20-coals.lit i{background:#f97316;box-shadow:0 0 14px #f59e0b}
.r20-card{z-index:8;cursor:grab}
.r20-scale{background:#0f172a;color:#f87171;font-weight:900;font-size:20px;padding:6px 12px;border-radius:10px;direction:ltr;white-space:nowrap}.r20-scale.ok{color:#4ade80}.r20-scale small{color:#94a3b8;font-size:13px}
.r20-item{background:#fff;border:2px solid #251d3b;border-radius:12px;padding:4px 6px;display:flex;flex-direction:column;align-items:center;z-index:8;cursor:grab}.r20-item span{font-size:30px}.r20-item small{font-size:11px;font-weight:800;direction:ltr}
.r20-hand-bag,.r20-me,.r20-bin{z-index:4}.r20-hand-bag.full{filter:drop-shadow(0 0 6px #22c55e)}.r20-me.worn::after{content:'🧥';position:absolute;left:50%;top:40%;transform:translate(-50%,-50%);font-size:30px}
.r19-o.hidden,.r20-item.hidden{display:none}
.r20-blanket{width:230px;height:120px;background:repeating-linear-gradient(45deg,#7c3aed 0 14px,#8b5cf6 14px 28px);border:3px solid #251d3b;border-radius:18px;touch-action:none;z-index:4}
.r20-spot{position:absolute;left:8%;bottom:6%;width:64px;height:48px;border-radius:14px;cursor:pointer}
.r20-meter{display:flex;align-items:center;gap:6px;background:#0f172a;border:2px solid #475569;border-radius:12px;padding:4px 8px}.r20-meter b{font-size:20px}
.r20-meter i{display:block;width:90px;height:10px;background:#1e293b;border-radius:6px;overflow:hidden}.r20-meter u{display:block;height:100%;width:16%;background:#22c55e;transition:width .2s}.r20-meter.hot u{background:#f59e0b}
.r20-card2{display:flex;align-items:center;justify-content:center}
.r20-bigword{font-size:56px;font-weight:900;color:#251d3b;direction:rtl;letter-spacing:2px}
.r20-card2 .r20-bigword{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%)}
.r20-cal3{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);background:#fff;border-radius:12px;padding:8px 16px;text-align:center}.r20-cal3 b{display:block;color:#b91c1c}.r20-cal3 i{font-style:normal;font-size:24px;font-weight:900;color:#251d3b;direction:ltr;display:block}
.r20-finart{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:flex;gap:16px;align-items:flex-end}

.bz-pl-price{margin-top:6px;display:flex;flex-direction:column;gap:2px;background:rgba(20,10,40,.28);color:inherit;border-radius:10px;padding:6px 10px}.bz-pl-price b{font-size:15px}.bz-pl-price small{font-size:12px;opacity:.8}
.bz-winsup{display:flex;flex-direction:column;align-items:center;gap:1px;margin:8px auto 0;padding:6px 14px;background:#ecfdf5;border:1.5px solid #10b981;color:#065f46}.bz-winsup small{font-size:11px;opacity:.85}

/* r21: L65/71/79 + L81–L100 scenes */
.r18-btn.r21-b{font-size:13px;min-height:40px;padding:0 8px;max-width:46%}
.r21-chips{position:absolute;left:3%;right:3%;bottom:3%;display:flex;flex-wrap:wrap;gap:6px;justify-content:center;z-index:8}
.r21-chips.hidden,.r21-app.hidden{display:none}
.r18-btn.r21-chip{position:static;font-size:13px;min-height:38px;padding:0 10px}
.r21-app{background:#fff;border:3px solid #251d3b;border-radius:14px;padding:6px;bottom:22%}
.r21-arch{background:#251d3b;color:#fde68a;font-weight:900;font-size:14px;padding:6px 12px;border-radius:12px;white-space:nowrap}
.r21-badge{width:58px;height:34px;border-radius:6px;border:2px solid #251d3b;background:#e5e7eb;color:#64748b;font-weight:900;font-size:16px;z-index:6;font-family:inherit}
.r21-badge.on{width:auto;padding:0 8px;background:#fff;color:#251d3b;font-size:14px}
.r21-frame{width:58%;height:56%;border:8px solid #92400e;border-radius:8px;background:#fffbeb}
.r21-gm{display:flex;flex-direction:column;align-items:center}.r21-eyes{font-size:18px;margin-top:-58px;margin-bottom:40px;letter-spacing:4px;opacity:0}
.r21-gm.shut img{filter:brightness(.92)}.r21-gm.shut .r21-eyes{opacity:1}
.r21-count{font-size:40px;font-weight:900;color:#c2410c}
.r21-wall{background:#78350f;color:#fde68a;font-weight:900;font-size:13px;padding:5px 10px;border-radius:10px;white-space:nowrap}
.r21-cushion{width:70px;height:38px;border-radius:12px;background:#991b1b;border:3px solid #251d3b}.r21-cushion.top{background:#b91c1c;box-shadow:0 0 0 3px #fde68a}
.r21-rack{background:#a16207;border:2px solid #251d3b;border-radius:8px;padding:2px 6px}.r21-rack.full{box-shadow:0 0 0 3px #4ade80}
.r21-guest,.r21-nal,.r21-tool,.r21-hose,.r21-runner,.r21-clamp,.r21-dallah,.r21-cyl{cursor:grab;z-index:7}
.r21-board{background:#78350f;color:#fde68a;font-weight:900;font-size:12px;padding:4px 8px;border-radius:8px;white-space:nowrap}
.r21-key{background:#fef3c7;border:2px solid #251d3b;border-radius:8px;font-weight:900;font-size:12px;padding:4px 6px;font-family:inherit;white-space:nowrap;z-index:6}
.r21-key.on{background:#4ade80}
.r21-car{background:none;border:0;padding:0}.r21-car.gone{left:90%!important;top:88%!important;opacity:.5;transition:all .5s}
.r21-plate{background:#fff;border:3px solid #251d3b;border-radius:6px;padding:2px 6px;font-family:inherit;z-index:6;position:absolute}
.r21-pl{display:flex;gap:10px;font-weight:900;font-size:16px;color:#251d3b}.r21-flow{display:block;font-size:12px;line-height:1}
.r21-sign{width:64px;height:64px;border-radius:50%;background:#fff;border:6px solid #dc2626;display:flex;flex-direction:column;align-items:center;justify-content:center;font-weight:900;font-size:20px}
.r21-sign small{font-size:10px}
.r21-cam{background:#1e293b;color:#fff;font-size:12px;font-weight:900;padding:4px 8px;border-radius:8px;white-space:nowrap}
.r21-dial{width:110px;height:110px;border-radius:50%;background:#0f172a;border:6px solid #94a3b8;color:#f8fafc;display:flex;align-items:center;justify-content:center;font-size:36px;font-weight:900}
.r21-unit{background:#0f172a;color:#cbd5e1;border:2px solid #94a3b8;border-radius:6px;font-size:10px;font-weight:900;padding:4px 8px;font-family:inherit;z-index:6}
.r21-road.flash{filter:brightness(2)}
.r21-toaster{width:120px;height:84px;background:#cbd5e1;border:4px solid #251d3b;border-radius:18px;display:flex;align-items:flex-start;justify-content:center}
.r21-tam{font-style:normal;font-size:34px;margin-top:-22px}.r21-smoke{position:absolute;top:-40px;left:60%;font-size:22px}.r21-toaster.off .r21-smoke{opacity:.3}.r21-toaster.done .r21-tam,.r21-toaster.done .r21-smoke{display:none}
.r21-plug{background:none;border:0;z-index:6}.r21-plug.out{transform:translate(-30%,-50%) rotate(-30deg)}
.r21-cord{width:70px;height:4px;background:#251d3b}
.r21-tool{display:flex;flex-direction:column;align-items:center;background:#fff;border:2px solid #251d3b;border-radius:10px;padding:2px 6px;font-size:26px}.r21-tool small{font-size:10px;font-weight:900}
.r21-wac{background:#e2e8f0;border:4px solid #251d3b;border-radius:8px;padding:12px 18px;font-weight:900;font-size:14px}
.r21-drops{white-space:pre;font-size:16px;line-height:1.6}
.r21-hose{font-size:26px;background:#d1fae5;border:2px solid #047857;border-radius:10px;padding:0 6px}.r21-hose.long{box-shadow:0 0 0 3px #4ade80}
.r21-pot{font-size:40px}.r21-pot.bloom{transform:translate(-50%,-50%) scale(1.15)}
.r21-zone{width:120px;height:40px;border:2px dashed rgba(255,255,255,.5);border-radius:8px}
.r21-crowd{display:flex;gap:2px}.r21-crowd.thin img:nth-child(n+2){display:none}
.r21-bag{background:#334155;border:2px solid #0f172a;border-radius:8px;font-size:24px;padding:2px 4px;position:absolute;font-family:inherit}.r21-bag i{font-style:normal;font-size:12px;display:block}
.r21-bag.gone{display:none}
.r21-hot{width:62px;height:40px;border-radius:12px;background:rgba(255,255,255,.35);border:2px dashed #251d3b;font-size:20px;z-index:6}.r21-hot.done{opacity:.4}
.r21-cat{transition:all .6s}.r21-cat.run{z-index:5!important;left:96%!important;top:88%!important}
.r21-sea{background:none;border:0;font-size:22px;width:94%;height:14%;z-index:5}
.r21-wet{width:94%;height:8%;background:#a16207;border-radius:10px;border:0;opacity:.85;z-index:3}
.r21-umb{background:none;border:0;z-index:5}
.r21-shade{width:64px;height:30px;border-radius:50%;background:rgba(68,64,60,.45);border:0;z-index:4}
.r21-me{z-index:6;transition:left .3s,top .3s}
.r21-pole{width:8px;height:62%;background:#57534e}
.r21-canopy{width:40px;height:90px;background:#dc2626;border-radius:40% 40% 10px 10px;border:3px solid #251d3b;transition:all .4s}
.r21-canopy.loose{width:56px}.r21-canopy.open{width:240px;height:46px;border-radius:120px 120px 10px 10px}
.r21-top{width:50px;height:30px}
.r21-strap{background:none;border:0;z-index:6}
.r21-runner{width:34px;height:16px;border-radius:8px;background:#fbbf24;border:3px solid #251d3b}
.r21-stove{background:#e7e5e4;border:3px solid #251d3b;border-radius:12px;padding:6px 10px;font-size:28px;font-family:inherit;z-index:6}.r21-flame{display:none;font-style:normal}.r21-stove.lit .r21-flame{display:inline}
.r21-gspot{width:62px;height:90px;border:2px dashed #78716c;border-radius:12px}
.r21-cyl{width:54px;height:84px;border-radius:14px 14px 8px 8px;border:3px solid #251d3b;display:flex;align-items:center;justify-content:center;font-size:10px;font-weight:900}
.r21-cyl.empty{background:#9ca3af}.r21-cyl.full{background:#ef4444;color:#fff}
.r21-valve{background:none;border:0;font-size:22px;z-index:8}
.r21-joint{background:#fff;border:2px solid #251d3b;border-radius:50%;width:38px;height:38px;display:flex;align-items:center;justify-content:center;z-index:6}
.r21-lift{width:140px;height:180px;background:#a8a29e;border:5px solid #57534e;border-radius:6px;display:flex;flex-direction:column;align-items:center}
.r21-floor{background:#0f172a;color:#4ade80;font-size:16px;padding:2px 10px;border-radius:4px;margin-top:4px}
.r21-in{display:flex;flex-wrap:wrap;justify-content:center;gap:2px;margin-top:20px;width:120px}
.r21-call{width:44px;height:44px;border-radius:50%;background:#fff;border:3px solid #251d3b;font-size:20px;z-index:6}
.r21-baby{font-size:42px}.r21-baby i{font-style:normal;font-size:18px}
.r21-door2,.r21-bell,.r21-phone{background:none;border:0;z-index:6;padding:0}.r21-bell.ring{transform:translate(-50%,-50%) rotate(20deg)}
.r21-eta{background:#fff;border:2px solid #251d3b;border-radius:10px;font-weight:900;font-size:13px;padding:4px 10px;white-space:nowrap}
.r21-lbl{background:#251d3b;color:#fff;font-size:11px;font-weight:900;padding:3px 8px;border-radius:8px;white-space:nowrap}
.r21-batt{font-size:40px}.r21-batt.dead{filter:grayscale(1)}
.r21-term{min-width:34px;height:34px;border-radius:50%;background:#fff;border:3px solid #251d3b;display:flex;align-items:center;justify-content:center;font-weight:900;font-size:18px}
.r21-term.metal{border-radius:10px;font-size:12px;padding:0 6px;white-space:nowrap}
.r21-term.r{background:#fecaca;border-color:#dc2626}.r21-term.b{background:#cbd5e1;border-color:#0f172a}
.r21-clamp{font-size:34px}
.r21-clock2{background:#0f172a;color:#fde68a;font-weight:900;padding:4px 8px;border-radius:8px}
.r21-bed{background:#e0e7ff;border:3px solid #251d3b;border-radius:16px;padding:4px 10px;display:flex;align-items:center;gap:4px;font-family:inherit;z-index:5}
.r21-bed i{font-style:normal;font-size:20px}.r21-bed.up{background:#bbf7d0}.r21-bed.seen{background:#fef9c3}
.r21-env{background:none;border:0;z-index:6}

.bz-pvbar{position:fixed;top:6px;left:50%;transform:translateX(-50%);z-index:9999;background:#7c3aed;color:#fff;font-weight:900;font-size:12px;padding:4px 10px;border-radius:999px;pointer-events:none;white-space:nowrap}
