@font-face{font-family:Be Vietnam Pro;font-style:normal;font-display:swap;font-weight:500;src:url(./be-vietnam-pro-vietnamese-500-normal-DREgrEoJ.woff2)format("woff2"),url(./be-vietnam-pro-vietnamese-500-normal-CfdwVo8-.woff)format("woff");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Be Vietnam Pro;font-style:normal;font-display:swap;font-weight:500;src:url(./be-vietnam-pro-latin-ext-500-normal-h0Fp6aX0.woff2)format("woff2"),url(./be-vietnam-pro-latin-ext-500-normal-CK0UkkKf.woff)format("woff");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Be Vietnam Pro;font-style:normal;font-display:swap;font-weight:500;src:url(./be-vietnam-pro-latin-500-normal-B6LVzGNe.woff2)format("woff2"),url(./be-vietnam-pro-latin-500-normal-BJkVuMHw.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Be Vietnam Pro;font-style:normal;font-display:swap;font-weight:800;src:url(./be-vietnam-pro-vietnamese-800-normal-D4LFh2W4.woff2)format("woff2"),url(./be-vietnam-pro-vietnamese-800-normal-CA0HL1e4.woff)format("woff");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Be Vietnam Pro;font-style:normal;font-display:swap;font-weight:800;src:url(./be-vietnam-pro-latin-ext-800-normal-GEpNgheG.woff2)format("woff2"),url(./be-vietnam-pro-latin-ext-800-normal-BvOXQlBN.woff)format("woff");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Be Vietnam Pro;font-style:normal;font-display:swap;font-weight:800;src:url(./be-vietnam-pro-latin-800-normal-BpHZASpI.woff2)format("woff2"),url(./be-vietnam-pro-latin-800-normal-Cwp5p0gU.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}:root{--night:#141634;--night2:#2a2452;--ink:#1c1b2e;--paper:#f4ebd9;--text:#f4ebd9;--muted:#b3b0cf;--card:#262a55;--line:#1c1b2e;--red:#c8323c;--gold:#e8b44a;--r0:#e9b872;--r1:#8fb8c9;--r2:#a7c08a;--r3:#e8a0a8;--r4:#b7a3d1;--r5:#e7896b;--r6:#7fb7a6;--r7:#c9c5be;--r8:#c8c36a;--banner-h:0px}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body,body *{user-select:none;-webkit-touch-callout:none}html,body{touch-action:manipulation;overscroll-behavior:none}.board,.board *{touch-action:none}svg,img{pointer-events:none}.cell,button,.world{-webkit-user-drag:none}body{min-height:100vh;color:var(--text);user-select:none;background:radial-gradient(ellipse at 80% -10%, #3b3270 0, transparent 55%), linear-gradient(180deg, var(--night) 0, var(--night2) 100%) fixed;margin:0;font:500 16px/1.45 Be Vietnam Pro,system-ui,sans-serif}button,label.ghost{font:inherit;color:var(--paper);background:var(--card);cursor:pointer;border:2px solid #4a4f8c;border-radius:14px;justify-content:center;align-items:center;gap:6px;min-height:48px;padding:10px 14px;display:inline-flex}button:disabled{opacity:.4}button.primary{background:var(--red);border-color:#8e1f28;font-weight:800;box-shadow:0 3px #7a1a22}button.ghost,label.ghost{background:0 0}button.icon{min-width:48px;padding:8px 12px}.screen{max-width:520px;padding:max(16px, env(safe-area-inset-top)) 16px calc(20px + var(--banner-h) + env(safe-area-inset-bottom));margin:0 auto}.row{flex-wrap:wrap;justify-content:center;align-items:center;gap:8px;margin-top:14px;display:flex}.small{color:var(--muted);text-align:center;font-size:13px}.center{text-align:center}svg{display:block}.seal{background:var(--red);color:#fbe9e0;width:1.5em;height:1.5em;box-shadow:inset 0 0 0 2px #fbe9e0, 0 0 0 2px var(--red);vertical-align:middle;border-radius:6px;justify-content:center;align-items:center;font-size:.7em;font-weight:800;display:inline-flex;transform:rotate(-6deg)}.hero{text-align:center;padding-top:8px;position:relative}.skyline{opacity:.95;width:100%;height:auto;margin-bottom:-40px}.hero-cat{width:64px;animation:3s ease-in-out infinite peek;position:absolute;top:18px;left:14%;transform:rotate(-8deg)}@keyframes peek{50%{transform:translateY(6px)rotate(-8deg)}}.hero h1{letter-spacing:1px;text-shadow:0 3px #000a;align-items:center;gap:10px;margin:0;font-size:44px;font-weight:800;display:inline-flex;position:relative}.hero .sub{color:var(--gold);letter-spacing:6px;text-transform:uppercase;margin:0;font-weight:800}.tag{text-align:center;color:var(--muted);margin:10px 8px 0}.worlds{gap:10px;margin-top:18px;display:grid}.world{text-align:left;background:linear-gradient(90deg,#2c3062,#23264e);justify-content:flex-start;gap:12px;padding:10px 14px}.world .crest{flex:none;width:52px;height:52px}.wtxt{flex-direction:column;flex:1;display:flex}.wtxt b{font-size:18px;font-weight:800}.wtxt small{color:var(--muted);font-size:13px}.wnum{color:var(--gold);font-size:20px;font-weight:800}.wnum small{color:var(--muted);font-size:12px}.bar{justify-content:space-between;align-items:center;gap:8px;margin-bottom:14px;display:flex}.ttl{flex-direction:column;align-items:center;display:flex}.ttl b{font-size:18px;font-weight:800}.ttl small{color:var(--muted);font-size:12px}.bar .ttl .crest{width:36px;height:36px}.lives{gap:2px;display:flex}.shuri{width:28px;height:28px}.shuri.lost{opacity:.5}.levels{grid-template-columns:repeat(5,1fr);gap:8px;display:grid}.levels button{background:var(--paper);color:var(--ink);border:2px solid var(--ink);border-radius:8px;flex-direction:column;gap:0;min-height:58px;padding:6px 0}.levels button b{font-size:18px;font-weight:800}.levels button:disabled{color:#6e7099;opacity:1;background:#3a3d66;border-color:#2a2c50}.levels .boss{background:var(--red);color:#fff}.levels .boss .mini{font-size:9px}.levels .cur{box-shadow:0 0 0 3px var(--gold)}.mini{min-height:12px;display:flex}.mini .star{width:12px;height:12px}.board{grid-template-columns:repeat(var(--n), 1fr);border:4px solid var(--ink);touch-action:manipulation;background:var(--paper);background:var(--ink);border-radius:8px;width:min(100%,480px);margin:0 auto;display:grid;overflow:hidden;box-shadow:0 0 0 3px #6b5a3a,0 10px 30px #0008}.cell{aspect-ratio:1;--c:#ccc;--t:3px;--l:3px;--b:3px;--r:3px;background:linear-gradient(#1c1b2e2e, #1c1b2e2e), var(--c);box-shadow:inset 0 var(--lt,0) 0 var(--line), inset var(--ll,0) 0 0 var(--line), inset 0 calc(-1 * var(--lb,0px)) 0 var(--line), inset calc(-1 * var(--lr,0px)) 0 0 var(--line);justify-content:center;align-items:center;display:flex;position:relative}.cell.bt{--lt:2px}.cell.bl{--ll:2px}.cell.bb{--lb:2px}.cell.br{--lr:2px}.cell:before{content:"";inset:var(--t) var(--r) var(--b) var(--l);pointer-events:none;background:linear-gradient(160deg, #ffffff61 0, #fff0 45%, #0000001f 100%), var(--pat,none), var(--c);border-radius:5px;transition:filter .2s;position:absolute;box-shadow:inset 0 2px #ffffff73,inset 0 -3px #00000038}.cell>*{z-index:1;position:relative}.reg0{--c:var(--r0)}.reg1{--c:var(--r1)}.reg2{--c:var(--r2)}.reg3{--c:var(--r3)}.reg4{--c:var(--r4)}.reg5{--c:var(--r5)}.reg6{--c:var(--r6)}.reg7{--c:var(--r7)}.reg8{--c:var(--r8)}body.cb .reg1{--pat:repeating-linear-gradient(0deg, #0000001a 0 2px, transparent 2px 8px), repeating-linear-gradient(90deg, #0000001a 0 2px, transparent 2px 8px)}body.cb .reg2{--pat:conic-gradient(#0000001f 25%, transparent 0 50%, #0000001f 0 75%, transparent 0) 0 0 / 12px 12px}body.cb .reg3{--pat:radial-gradient(circle at 50% 50%, #00000029 1.6px, transparent 1.7px) 0 0 / 8px 8px}body.cb .reg4{--pat:repeating-linear-gradient(0deg, #0000001f 0 2px, transparent 2px 8px)}body.cb .reg5{--pat:radial-gradient(circle at 50% 50%, #00000029 3.5px, transparent 3.6px) 0 0 / 16px 16px}body.cb .reg6{--pat:repeating-linear-gradient(90deg, #00000021 0 5px, transparent 5px 14px)}body.cb .reg7{--pat:radial-gradient(circle at 50% 50%, transparent 3px, #00000024 3.2px, transparent 4.4px) 0 0 / 12px 12px}body.cb .reg8{--pat:repeating-linear-gradient(90deg, #0000001f 0 2px, transparent 2px 8px)}.cell.hid:before{background:radial-gradient(circle, #1c1b2e73 0, #1c1b2e00 70%), var(--c);box-shadow:inset 0 3px 6px #00000059}.cell .spr{width:82%;height:82%}.cell .mark{width:62%;height:62%}.cell .faint .mark{opacity:.3}.faint{display:contents}.cell.beam:after{content:"";inset:var(--t) var(--r) var(--b) var(--l);z-index:1;pointer-events:none;background:repeating-linear-gradient(135deg,#ffeca000 0 6px,#ffeca099 6px 10px),radial-gradient(circle,#ffd66673 0,#ffaa2840 75%);border-radius:5px;position:absolute;box-shadow:inset 0 0 0 2px #c87800b3,0 0 10px #ffbe3c99}.cell.guard,.cell.paw{--c:#2e3157;--pat:none}.cell.guard .spr{width:74%;height:74%}.lamp{border:7px solid #0000;width:0;height:0;position:absolute}.lamp.N{border-bottom-color:var(--gold);border-top:0;top:1px;left:calc(50% - 7px)}.lamp.S{border-top-color:var(--gold);border-bottom:0;bottom:1px;left:calc(50% - 7px)}.lamp.E{border-left-color:var(--gold);border-right:0;top:calc(50% - 7px);right:1px}.lamp.W{border-right-color:var(--gold);border-left:0;top:calc(50% - 7px);left:1px}.cell.paw b{color:var(--ink);font-weight:800;font-size:calc(min(100vw - 40px, 480px) / var(--n) * .42);text-shadow:0 0 4px #fff,0 0 2px #fff;position:absolute}.cell.paw.ok{filter:grayscale(.7)brightness(.8)}.cell.paw.bad b{color:var(--red)}.cell .rope{background:#f4ebd9d9;border-radius:6px;align-items:center;gap:1px;height:26%;padding:1px 2px;font-style:normal;display:flex;position:absolute;bottom:5px;left:5px;right:5px}.cell .rope b{color:var(--red);font-size:12px;font-weight:800;line-height:1}.cell.hid .spr{filter:drop-shadow(0 2px #00000059)}.cell.poof .spr{animation:.45s ease-out poof}.cell.spotted{z-index:2;animation:.4s shake}.cell .say{background:var(--red);color:#fff;white-space:nowrap;z-index:3;border-radius:8px;align-items:center;gap:3px;padding:2px 6px;font-size:12px;font-weight:800;animation:1.4s forwards fade;display:flex;position:absolute;bottom:88%}.cell .say .ico{width:16px;height:16px}.board.alarm{box-shadow:0 0 0 3px var(--red), 0 0 30px var(--red)}.board.won{animation:1s ease-out glow}@keyframes poof{0%{opacity:0;filter:blur(4px);transform:scale(.2)}70%{opacity:1;filter:none;transform:scale(1.12)}}@keyframes shake{20%{transform:translate(-5px)}40%{transform:translate(5px)}60%{transform:translate(-3px)}80%{transform:translate(3px)}}@keyframes fade{75%{opacity:1}to{opacity:0}}@keyframes glow{50%{box-shadow:0 0 0 3px var(--gold), 0 0 40px var(--gold)}}.tools button{white-space:nowrap;flex:1;padding:8px 6px;font-size:14px}.tools .ico{width:20px;height:20px}.modal{z-index:10;background:#080918b8;justify-content:center;align-items:center;padding:16px;display:flex;position:fixed;inset:0}.card{background:var(--paper);color:var(--ink);border-top:14px solid #6b4a2b;border-bottom:14px solid #6b4a2b;border-radius:6px;width:100%;max-width:420px;padding:22px 20px;animation:.3s ease-out unroll;box-shadow:0 20px 50px #000a}.card h2{text-align:center;margin:0 0 4px;font-weight:800}.card .small{color:#6e6680}.card button.ghost{color:var(--ink);border-color:#b9a98c}.rules{margin:12px 0;padding:0;list-style:none}.rules li{color:#6e6680;align-items:center;gap:10px;margin:8px 0;font-size:14px;display:flex}.rules li.new{color:var(--ink);font-weight:800}.rule-ex .board.mini{width:min(62%,190px);margin:2px auto}.rule-ex p{color:#6e6680;margin:4px 0 0}.learned{justify-content:center;align-items:center;gap:6px;display:flex}.learned .ra{border:2px solid #b9a98c;border-radius:8px;justify-content:center;align-items:center;width:32px;height:32px;padding:2px;display:flex}.learned .ra svg{width:100%;height:auto;max-height:26px}.rules .ra{flex:none;align-items:center;width:40px;height:40px;display:flex}.rules .ra svg{width:100%;height:auto;max-height:40px}.big{justify-content:center;display:flex}.big .ico{width:72px;height:72px}.stamp{justify-content:center;font-size:56px;animation:.35s ease-out stamp;display:flex}.stars{justify-content:center;gap:8px;margin:8px 0 0;display:flex}.stars .star{width:44px;height:44px}.stars .off{opacity:.35}@keyframes unroll{0%{opacity:0;transform:scaleY(.3)}}@keyframes stamp{0%{opacity:0;transform:scale(2.4)rotate(-20deg)}}.ad-standin{z-index:20;text-align:center;background:#000c;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}.ad-standin>div{color:#222;background:#fff;border-radius:12px;padding:24px}.ad-loading{z-index:20;background:#000c;border-radius:10px;padding:12px 18px;position:fixed;top:40%;left:50%;transform:translate(-50%)}#web-banner{color:#333;background:#ddd;justify-content:center;align-items:center;height:50px;font-size:12px;display:flex;position:fixed;bottom:0;left:0;right:0}.rank{background:#1a1c3d;border:2px solid #4a4f8c;border-radius:14px;align-items:center;gap:12px;margin-top:14px;padding:10px 14px;display:flex}.rank .seal{flex:none;font-size:30px}.rinfo{flex-direction:column;flex:1;display:flex}.rinfo b{color:var(--gold);font-size:18px;font-weight:800}.rinfo small{color:var(--muted);font-size:12px}.rbar{background:#33376a;border-radius:3px;height:6px;margin-top:5px;overflow:hidden}.rbar i{background:var(--gold);height:100%;display:block}.hud{flex-direction:column;align-items:flex-end;gap:2px;display:flex}.hud-top{align-items:center;gap:10px;display:flex}#cats{color:var(--text);font-variant-numeric:tabular-nums;align-items:center;gap:3px;font-size:14px;font-weight:800;display:flex}#cats .spr{width:22px;height:22px}#time{color:var(--gold);font-variant-numeric:tabular-nums;font-size:14px;font-weight:800}.score{text-align:center;margin-top:8px}.score>span{color:#6e6680;font-size:13px}.score table{border-collapse:collapse;margin:6px auto;font-size:14px}.score td{padding:1px 10px}.score td:last-child{text-align:right;font-weight:800}.score .total{color:var(--red);font-size:28px;font-weight:800;display:block}.score .rec,.score .rankup{background:var(--gold);color:var(--ink);border-radius:8px;margin:4px;padding:2px 10px;font-style:normal;font-weight:800;animation:.35s ease-out stamp;display:inline-block}.score .rankup{background:var(--red);color:#fff}.cats{justify-content:space-between;gap:8px;margin-top:12px;display:flex}.cathead{background:#1a1c3d;border:2px solid #4a4f8c;border-radius:12px;flex-direction:column;flex:1;align-items:center;gap:2px;padding:6px 0;display:flex}.cathead .spr{width:48px;height:48px}.cathead small{color:var(--gold);font-size:12px;font-weight:800}.cathead.off small{color:var(--muted)}.daily{text-align:left;border-color:var(--red);background:linear-gradient(90deg,#5a2340,#2c3062);justify-content:flex-start;gap:12px;width:100%;margin-top:10px;padding:10px 14px}.daily .crest{flex:none;width:44px;height:44px}.coach{background:var(--gold);color:var(--ink);border-radius:12px;align-items:center;gap:10px;max-width:480px;margin:0 auto 10px;padding:8px 12px;font-weight:800;animation:.3s ease-out stamp;display:flex}.coach span{flex:1}.coach button{min-height:36px;color:var(--ink);border-color:var(--ink);padding:4px 10px}.cell.coach-target{z-index:3}.cell .hand{border:6px solid var(--gold);outline:2px solid var(--ink);outline-offset:-1px;box-shadow:0 0 12px var(--gold);z-index:2;pointer-events:none;border-radius:50%;animation:1s ease-in-out infinite pulse;position:absolute;inset:8%}@keyframes pulse{50%{opacity:.6;transform:scale(.75)}}.home{padding-top:max(8px, env(safe-area-inset-top));padding-bottom:calc(var(--banner-h) + env(safe-area-inset-bottom) + 6px);flex-direction:column;gap:8px;display:flex}.home .hero{padding-top:0}.home .skyline{width:auto;max-height:96px;margin:0 auto -34px}.home .hero-cat{width:48px;top:6px;left:12%}.home .hero h1{font-size:36px}.home .hero .sub{letter-spacing:5px;font-size:13px}.home .tag{margin:0 8px;font-size:13px;line-height:1.35}.home .rank,.home .daily{min-height:0;margin-top:0;padding:8px 12px}.home .rank .seal{font-size:24px}.home .daily .crest{width:36px;height:36px}.home .cats{gap:6px;margin-top:0}.home .cathead{padding:4px 0}.home .cathead .spr{width:36px;height:36px}.home .cathead small{font-size:11px}.home .worlds{grid-template-columns:1fr 1fr;gap:8px;margin-top:0}.home .world{text-align:center;flex-direction:column;align-items:center;gap:4px;padding:8px 6px}.home .world .crest{width:40px;height:40px}.home .world .wtxt{align-items:center}.home .world .wtxt b{font-size:15px}.home .world .wtxt small{color:var(--gold);font-size:12px;font-weight:800}.home .world:disabled .wtxt small{color:var(--muted);font-weight:500}.home>.row{margin-top:0}.home>.row button,.home>.row label{min-height:40px;padding:6px 12px;font-size:14px}@media (max-height:720px){.home .tag{display:none}.home .skyline{max-height:72px}.home .hero h1{font-size:30px}.home .cathead small{display:none}.home .world{padding:6px}.home .world .crest{width:34px;height:34px}.levels{gap:6px}.levels button{min-height:46px}.bar{margin-bottom:8px}.home .legal-links{display:none}.sets{gap:5px}.set{min-height:44px;padding:4px 12px}.settings .row{margin-top:8px}}.legal-links{text-align:center;color:var(--muted);margin:0;font-size:12px}.legal-links a{color:var(--muted)}.gcard{background:var(--paper);color:var(--ink);border-top:10px solid #6b4a2b;border-bottom:10px solid #6b4a2b;border-radius:10px;padding:14px}.gcard>p:first-child{margin-top:0;font-size:15px}.gcard .small{color:#6e6680;margin-bottom:0}.gcard .shuri,.gcard .star,.gcard .ico{vertical-align:-3px;width:18px;height:18px;display:inline-block}.gcard .seal{font-size:14px}.board.mini{width:min(92%,320px);margin:10px auto}.board.mini .cell.bt{--lt:2px}.board.mini .cell.bl{--ll:2px}.board.mini .cell.bb{--lb:2px}.board.mini .cell.br{--lr:2px}.board.mini.focus .cell:not(.hl){filter:grayscale()brightness(.62)}.board.mini .cell.bad:before{background:#e46a6a}.board.mini .cell.bad{outline:3px solid var(--red);outline-offset:-3px}.board.mini .cell .rope{height:30%}.dots{justify-content:center;gap:6px;margin:12px 0 0;display:flex}.tabs{gap:8px;display:flex}.tabs button{flex:1;min-height:40px}.doc{background:var(--paper);color:var(--ink);border-radius:10px;margin-top:10px;padding:4px 16px 12px;font-size:14px}.doc h3{margin:14px 0 4px;font-size:15px}.doc p{margin:4px 0}.sets{flex-direction:column;gap:8px;display:flex}.set{background:#1a1c3d;border:2px solid #4a4f8c;border-radius:12px;justify-content:space-between;align-items:center;gap:10px;min-height:52px;padding:8px 12px;display:flex;position:relative}.set input{opacity:0;cursor:pointer;position:absolute;inset:0}.sw{background:#3a3d66;border-radius:13px;flex:none;width:46px;height:26px;transition:background .2s;position:relative}.sw:after{content:"";background:var(--paper);border-radius:50%;width:20px;height:20px;transition:transform .2s;position:absolute;top:3px;left:3px}.set input:checked+.sw:after{transform:translate(20px)}.seg{gap:4px;display:flex}.seg button{min-height:36px;padding:4px 10px;font-size:13px}.screen.enter{animation:.25s ease-out screenin}@keyframes screenin{0%{opacity:0;transform:translateY(8px)}}.cell.fresh .mark path{stroke-dasharray:80;stroke-dashoffset:80px;animation:.22s ease-out forwards draw}@keyframes draw{to{stroke-dashoffset:0}}.cell.charging:after{content:"";z-index:3;pointer-events:none;border:5px solid #f0ebe1e6;border-right-color:#0000;border-radius:50%;animation:.42s linear forwards charge;position:absolute;inset:12%}@keyframes charge{0%{opacity:.4;transform:rotate(0)scale(.6)}to{opacity:1;transform:rotate(360deg)scale(1)}}.cell .smoke{pointer-events:none;z-index:2;position:absolute;inset:0}.cell .smoke i{background:#e6e4f0d9;border-radius:50%;width:40%;height:40%;margin:-20% 0 0 -20%;animation:.6s ease-out forwards puff;position:absolute;top:50%;left:50%}.cell .smoke i:first-child{--x:-60%;--y:-50%}.cell .smoke i:nth-child(2){--x:60%;--y:-45%}.cell .smoke i:nth-child(3){--x:-55%;--y:55%}.cell .smoke i:nth-child(4){--x:55%;--y:60%}.cell .smoke i:nth-child(5){--x:0;--y:-80%}@keyframes puff{to{transform:translate(var(--x), var(--y)) scale(1.8);opacity:0}}.board.won .cell.hid .spr{animation:hop .5s ease-out var(--d,0s) 2}@keyframes hop{40%{transform:translateY(-22%)rotate(-8deg)}70%{transform:translateY(0)rotate(4deg)}}.stars .star{animation:.6s ease-out backwards spin}.stars .star:nth-child(2){animation-delay:.15s}.stars .star:nth-child(3){animation-delay:.3s}@keyframes spin{0%{transform:rotate(-360deg)scale(0)}}.world:not(:disabled):active,.daily:active,button:active{transform:scale(.97)}@media (prefers-reduced-motion:reduce){*,:before,:after{animation-duration:.01ms!important;animation-iteration-count:1!important}}@media (max-height:780px){.home .tag{display:none}}svg.ui{flex:none;width:22px;height:22px}button.icon svg.ui{width:24px;height:24px}.world small svg.ui{vertical-align:-2px;width:13px;height:13px;display:inline-block}.tools button{flex-direction:column;gap:2px;min-height:56px;padding:6px 4px;font-size:13px}.tools button .ico,.tools button svg.ui{width:22px;height:22px}.modal .row button svg.ui{width:18px;height:18px}.grp{letter-spacing:1.5px;text-transform:uppercase;color:var(--gold);margin:6px 2px 0;font-size:12px;font-weight:800}@media (max-height:720px){.grp{margin-top:2px}}.set.lang .seg,.set.lang .seg button{flex:1}.ii{vertical-align:-.15em;display:inline-flex}.ii svg.ui{width:1em;height:1em}.ad-loading{align-items:center;gap:8px;display:flex}.ad-loading.toast{pointer-events:none;top:auto;bottom:14%}.ad-loading svg.ui{width:18px;height:18px}:root{--p0:#ff8f8f;--p1:#ffc266;--p2:#ffe45c;--p3:#9be07a;--p4:#5fd6c2;--p5:#7eb3ff;--p6:#b394ff;--p7:#ff94d6;--p8:#d9c2a3;--frame:#f3e6cc;--wood:#6b4a2b;--wrong:#d9363e;--banner-reserve:60px}body{background:#1b1f3a url(../art/bg_castle.webp) 50%/cover fixed}body[data-screen=play]{background:#1b1f3a}svg{fill:currentColor}.ii svg{vertical-align:-2px;width:1em;height:1em}.play2{max-width:560px;padding:max(6px, env(safe-area-inset-top)) 8px env(safe-area-inset-bottom);flex-direction:column;gap:6px;margin:0 auto;display:flex;position:fixed;inset:0;overflow:hidden}.phead{flex:none;align-items:center;gap:6px;min-height:48px;display:flex}.phead .icon{min-width:44px;min-height:44px;padding:6px}.phead .icon svg{width:22px;height:22px}.phead .avatar{background:#2a2452;border-radius:50%;flex:none;width:40px;height:40px}.ptitle{overflow-wrap:anywhere;flex:1;min-width:0;font-size:15px;line-height:1.15}.pcats{align-items:center;gap:3px;font-weight:800;display:inline-flex}.pcats img{width:22px;height:22px}#time{font-variant-numeric:tabular-nums;text-align:right;min-width:38px;color:var(--muted);font-size:14px}.lanterns{flex:none;display:inline-flex}.lanterns img{width:18px;height:24px}@media (max-width:379px){.phead .avatar{display:none}}.hintline{text-align:center;color:var(--muted);flex:none;min-height:18px;margin:0;font-size:13px}.boardwrap{flex:auto;justify-content:center;align-items:center;min-height:0;display:flex}.modes{flex:none;gap:8px;display:flex}.modes button{background:#3a2a1e;border-color:#7a5634;border-radius:24px;flex:1;gap:6px;min-height:48px;font-size:15px;font-weight:800}.modes button svg.paw{fill:currentColor;width:22px;height:22px}.modes button img{width:24px;height:24px}.tools{flex:none;gap:6px;min-height:56px;display:flex}.tools .tool{background:0 0;border:0;flex-direction:column;flex:1;gap:0;min-height:56px;padding:2px;font-size:12px;line-height:1.1}.tools .tool img{width:36px;height:36px}.tools .tool:disabled{opacity:.35}.phint{flex:none;min-height:40px}:root[data-no-ads] .adslot{display:none}.adslot{height:calc(var(--banner-reserve) + 16px);border-top:1px solid #f3e6cc2e;flex:none}.board2{grid-template-columns:repeat(var(--n), 1fr);grid-template-rows:repeat(var(--n), 1fr);background:var(--frame);touch-action:none;border-radius:10px;width:300px;height:300px;padding:6px;display:grid;box-shadow:0 0 0 3px #c9a86a,0 6px 18px #00000073}.board2.boss{box-shadow:0 0 0 4px #e8b44a,0 0 18px #e8b44ab3}.board2 *{touch-action:none}.sq{--w:1.2px;--bt:0;--bl:0;--bb:0;--br:0;min-width:0;min-height:0;box-shadow:inset 0 calc(var(--bt) * var(--w)) 0 var(--wood), inset calc(var(--bl) * var(--w)) 0 0 var(--wood), inset 0 calc(var(--bb) * -1 * var(--w)) 0 var(--wood), inset calc(var(--br) * -1 * var(--w)) 0 0 var(--wood), inset 0 0 0 .5px #6b4a2b2e;justify-content:center;align-items:center;display:flex;position:relative}.c0{background:var(--p0)}.c1{background:var(--p1)}.c2{background:var(--p2)}.c3{background:var(--p3)}.c4{background:var(--p4)}.c5{background:var(--p5)}.c6{background:var(--p6)}.c7{background:var(--p7)}.c8{background:var(--p8)}.sq .paw{width:46%;height:46%;fill:var(--wood);opacity:.5}.sq.auto .paw{opacity:.25}.sq.locked .paw{opacity:.7;fill:#5a1a1e}.sq .catimg{object-fit:contain;width:86%;height:86%}.sq.drag{filter:brightness(.86)}.sq.wrongflash{animation:.7s wrongflash}@keyframes wrongflash{0%,60%{background:var(--wrong)}}.sq.poof .catimg{animation:.5s cubic-bezier(.3,1.6,.5,1) pop}@keyframes pop{0%{transform:scale(.2)}}.sq.nudge{animation:.25s nudge}@keyframes nudge{30%{transform:translate(-2px)}70%{transform:translate(2px)}}.board2.shake{animation:.45s shake}.board2.won .sq.cat .catimg{animation:.6s pop}.cb .c0{background-image:radial-gradient(#00000038 18%,#0000 20%);background-size:8px 8px}.cb .c1{background-image:repeating-linear-gradient(0deg,#0000002e 0 2px,#0000 2px 7px)}.cb .c2{background-image:repeating-linear-gradient(90deg,#00000029 0 2px,#0000 2px 7px)}.cb .c3{background-image:linear-gradient(#00000029 2px,#0000 2px),linear-gradient(90deg,#00000029 2px,#0000 2px);background-size:9px 9px}.cb .c4{background-image:radial-gradient(circle,#0000 35%,#0003 37% 47%,#0000 49%);background-size:12px 12px}.cb .c5{background-image:repeating-linear-gradient(0deg,#fff6 0 3px,#0000 3px 10px)}.cb .c6{background-image:radial-gradient(#ffffff8c 22%,#0000 24%);background-size:10px 10px}.cb .c7{background-image:repeating-linear-gradient(90deg,#ffffff73 0 3px,#0000 3px 10px)}.cb .c8{background-image:linear-gradient(#0003 3px,#0000 3px);background-size:100% 6px}.home2,.story2,.tower2,.puzzles2,.settings2{min-height:100vh;max-width:520px;min-height:100dvh;padding:max(12px, env(safe-area-inset-top)) 16px calc(16px + var(--banner-h) + env(safe-area-inset-bottom));flex-direction:column;gap:10px;margin:0 auto;display:flex}.home2{justify-content:center;gap:10px;position:relative}.logo{text-align:left;justify-content:center;align-items:center;gap:8px;display:flex}.logo h1{color:#ffe6a8;text-shadow:0 2px #6b4a2b,0 0 12px #10122ccc;margin:0;font-size:32px;font-weight:800;line-height:1.05}.logo p{color:var(--gold);letter-spacing:3px;text-transform:uppercase;text-shadow:0 1px 4px #10122c;margin:0;font-size:13px;font-weight:800}.hero-dog{flex:none;width:84px}.rankcard,.dailycard{text-align:left;background:#161836eb;border:2px solid #4a4f8c;border-radius:16px;justify-content:flex-start;gap:12px;padding:10px 14px}.rankcard>img,.dailycard>img{object-fit:contain;background:#2a2452;border-radius:50%;flex:none;width:48px;height:48px}.rankcard span,.dailycard span{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.rankcard b{color:var(--gold);font-size:18px;font-weight:800}.rankcard small,.dailycard small{color:var(--muted);font-size:13px}.rankcard .bar{background:#33386e;border-radius:3px;height:6px;margin-top:2px;display:block;overflow:hidden}.rankcard .bar i{background:var(--gold);border-radius:3px;min-width:6px;height:100%;display:block}.dailycard{border-color:var(--red);background:linear-gradient(90deg,#5a1a2ef2,#222452f2)}.dailycard b{font-size:18px;font-weight:800}.dailycard em{color:var(--gold);flex:none;font-size:28px;font-style:normal;font-weight:800}.tiles{grid-template-columns:repeat(3,1fr);gap:8px;display:grid}.tile{background:#222452f0;border:2px solid #5a5fa0;border-radius:16px;flex-direction:column;gap:2px;min-height:112px;padding:10px 4px;line-height:1.15}.tile .timg{display:block;position:relative}.tile .timg img{object-fit:contain;width:48px;height:48px;display:block}.tile b{text-align:center;font-size:15px;font-weight:800}.tile small{color:var(--gold);text-align:center;align-items:center;gap:3px;font-size:12px;font-weight:700;display:inline-flex}.tile.locked{background:#161836e6;border-color:#3a3f72}.tile.locked .timg img,.tile.locked b{opacity:.45}.tile.locked small{color:var(--muted)}.tile .timg>.lock{width:24px;height:24px;fill:var(--gold);border:2px solid var(--gold);background:#10122c;border-radius:50%;padding:3px;position:absolute;bottom:-4px;right:-8px}.tile small .lock{fill:currentColor;width:12px;height:12px}.homebtns{gap:8px;display:flex}.homebtns button{flex:1;font-weight:800}.homebtns button.ghost{background:#10122cd9}.homebtns svg{flex:none;width:22px;height:22px}.lockpic{text-align:center}.lockpic .lock{fill:#8b5a2b;width:44px;height:44px;margin:0 auto 4px;display:block}.bar .icon svg{width:24px;height:24px}.story2{text-align:center;justify-content:center}.story2 img{align-self:center;width:min(60vw,230px)}.story2 h2{color:#ffe6a8;margin:0}.dots{justify-content:center;gap:6px;display:flex}.dots i{background:#4a4f8c;border-radius:50%;width:8px;height:8px}.dots i.on{background:var(--gold)}.floors{flex-direction:column;gap:6px;margin:0;padding:0;list-style:none;display:flex}.floors li{background:#1a1c3de6;border:2px solid #4a4f8c;border-radius:12px;justify-content:space-between;align-items:center;padding:10px 14px;display:flex}.floors li.cur{border-color:var(--gold);background:#3a2a1e;font-weight:800}.floors li.done{opacity:.7}.floors li.locked{opacity:.45}.floors li.boss em{color:var(--gold);font-style:normal;font-weight:800}button.big{min-height:56px;font-size:18px}.pgrid{flex-direction:column;gap:8px;display:flex;overflow-y:auto}.pgroup{grid-template-columns:auto repeat(3,1fr);align-items:center;gap:6px;display:grid}.pgroup small{color:var(--muted);min-width:52px}.pgroup button{flex-direction:column;gap:0;padding:4px;font-weight:800}.pgroup.locked{opacity:.45}.mini-stars{gap:1px;display:flex}.mini-stars .st{width:12px;height:12px}.set small{color:var(--muted);font-size:12px;display:block}.card .dogpose{width:120px;margin:-8px auto 4px;display:block}.card .stars{text-align:center;margin:4px 0}.st{fill:#e8b44a;width:30px;height:30px}.st.off{fill:#cfc3a8}.card table.score{width:100%;font-size:14px}.card table.score td:last-child{text-align:right}.card .total{text-align:center;margin-top:6px;font-size:22px;display:block}.card small{text-align:center;color:#6e6680;display:block}.card .rankup,.card .badge{text-align:center;color:#8e1f28;margin:6px 0 0;font-weight:800}.card ul.rules{margin:8px 0;padding-left:18px}.card ul.rules .paw{width:18px;height:18px;fill:var(--wood)}.mini{grid-template-columns:repeat(var(--n), 34px);border:2px solid var(--wood);grid-auto-rows:34px;justify-content:center;gap:0;width:max-content;margin:6px auto;display:grid}.mini i{justify-content:center;align-items:center;display:flex;box-shadow:inset 0 0 0 .5px #6b4a2b4d}.mini img{width:26px;height:26px}.toast{left:50%;bottom:calc(24px + var(--banner-h));color:var(--paper);z-index:20;text-align:center;background:#262a55;border:2px solid #4a4f8c;border-radius:12px;max-width:calc(100vw - 32px);padding:10px 16px;position:fixed;transform:translate(-50%)}.story2{background:linear-gradient(#0000 0,#10122cd1 38%,#10122ce6 100%)}[hidden]{display:none!important}.settings2 .sets{flex-direction:column;gap:6px;display:flex}.settings2 .set{min-height:48px;padding:4px 12px}.settings2 .legal-links{text-align:center;margin:4px 0 0;font-size:13px;line-height:1.6}.settings2 .bar,.tower2 .bar,.puzzles2 .bar{margin-bottom:4px}@media (max-height:700px){.home2,.tower2,.settings2,.puzzles2{padding-top:max(6px, env(safe-area-inset-top));gap:6px}.logo h1{font-size:28px}.hero-dog{width:64px}.tile{min-height:96px;padding:6px 4px}.rankcard,.dailycard,.floors li{padding:6px 12px}.floors li:nth-child(n+6){display:none}.settings2 .set small{margin-left:4px;display:inline}}.chips{gap:6px;display:flex}.chip{text-align:center;background:#1a1c3d;border:2px solid #4a4f8c;border-radius:12px;flex:1;justify-content:center;align-items:center;min-height:48px;padding:4px;line-height:1.15;display:flex;position:relative}.chip input{opacity:0;cursor:pointer;position:absolute;inset:0}.chip:has(input:checked){border-color:var(--gold);background:#3a2a1e}.chip input:checked+span:before{content:"✓ ";color:var(--gold)}.howto-card .card{max-width:380px;padding:14px 14px 16px}.howto{text-align:center}.howto .step{color:#6e6680;margin:0;font-size:12px}.howto h2{font-size:20px}.howto p{margin:6px 0;line-height:1.35}.howto .pic{flex-direction:column;justify-content:center;align-items:center;min-height:150px;display:flex}.mini5{border:3px solid var(--wood);background:var(--frame);border-radius:4px;grid-template-columns:repeat(5,26px);grid-auto-rows:26px;display:grid}.mini5 i{justify-content:center;align-items:center;display:flex;position:relative;box-shadow:inset 0 0 0 .5px #6b4a2b59}.mini5 img{z-index:1;width:21px;height:21px;position:relative}.mini5 .paw{width:13px;height:13px;fill:var(--wood);opacity:.6}.mini5 i.hl:after{content:"";background:#ffffff47;position:absolute;inset:0;box-shadow:inset 0 0 0 2px #2b1a0c}.mini5 i.bad{background:var(--wrong)!important}.one .mini5{grid-template-columns:repeat(5,30px);grid-auto-rows:30px}.one .mini5 img{width:25px;height:25px}.pair{justify-content:center;gap:12px;display:flex}.pair figure{flex-direction:column;align-items:center;gap:4px;margin:0;display:flex}.pair figcaption{color:#fff;border-radius:10px;padding:1px 10px;font-size:14px;font-weight:800}.pair figcaption.ok{background:#2e8b57}.pair figcaption.no{background:var(--wrong)}.modesdemo{text-align:left;align-items:center;gap:6px;font-size:14px;display:flex;margin:4px 0!important}.chipm{color:var(--paper);background:#3a2a1e;border-radius:14px;flex:none;align-items:center;gap:4px;padding:3px 10px;font-size:13px;font-weight:800;display:inline-flex}.chipm.on{color:#2b1a0c;background:#f3b640}.chipm .paw{fill:currentColor;width:14px;height:14px}.chipm img{width:16px;height:16px}.lrow{justify-content:center;gap:8px;display:flex}.lrow img{width:36px;height:48px}.lrow img:last-child{opacity:.6}.howto .nav{justify-content:space-between;align-items:center;gap:6px;margin-top:8px;display:flex}.howto .nav button{min-width:96px;padding:8px 10px}.howto .nav button.ghost{color:var(--ink);border-color:#b9a98c}.howto .dots i{background:#cfc3a8}.howto .dots i.on{background:var(--wood)}.howto-card .card{position:relative}.howto-card .row{margin:0;position:absolute;top:4px;right:4px}.howto-card .row button.x{border:0;min-width:40px;min-height:40px;padding:4px;font-size:18px}.howto .nav button#ht-prev{min-width:52px}@media (max-height:700px){.mini5{grid-template-columns:repeat(5,22px);grid-auto-rows:22px}.mini5 img{width:18px;height:18px}.one .mini5{grid-template-columns:repeat(5,26px);grid-auto-rows:26px}.one .mini5 img{width:22px;height:22px}.howto h2{font-size:18px}.howto .pic{min-height:0}}.modal .card{color:#3a2414;background:linear-gradient(#fbf3e1,#f1e3c4);border:4px solid #8b5a2b;border-radius:20px;max-width:360px;padding:18px 16px 16px;position:relative;box-shadow:inset 0 0 0 3px #e7d3a8,0 18px 44px #000000a6}.modal .card h2{color:#3a2414;font-size:22px;line-height:1.2}.modal .card p{line-height:1.4}.modal .card .sub{color:#6e5a44;margin:4px 0 2px}.ribbon{text-align:center;text-shadow:0 2px #00000059;background:linear-gradient(#e0484f,#b5262e);border-radius:6px;padding:8px 20px;position:relative;box-shadow:0 4px #7e1a20;color:#fff!important;margin:2px -26px 10px!important;font-size:21px!important}.ribbon.gold{text-shadow:0 1px #ffffff73;background:linear-gradient(#f7c95a,#e09a22);box-shadow:0 4px #9a6411;color:#4a2a08!important}.ribbon:before,.ribbon:after{content:"";border:5px solid #5e1216;position:absolute;bottom:-10px}.ribbon:before{border-color:#5e1216 #5e1216 #0000 #0000;left:0}.ribbon:after{border-color:#5e1216 #0000 #0000 #5e1216;right:0}.ribbon.gold:before{border-color:#7a4e0c #7a4e0c #0000 #0000}.ribbon.gold:after{border-color:#7a4e0c #0000 #0000 #7a4e0c}.stars.top{z-index:1;gap:4px;margin:-6px 0 -2px;position:relative}.stars.top .st{filter:drop-shadow(0 3px #9a6411);stroke:#fff3c4;stroke-width:1px;width:46px;height:46px}.stars.top .st:nth-child(2){width:58px;height:58px;margin-top:-12px}.modal .card{max-height:calc(100vh - 16px);overflow:hidden auto}.modal{padding:8px 12px}.extras{flex-wrap:wrap;justify-content:center;gap:6px;margin-top:6px;display:flex}.extras p.pill{padding:2px 10px;font-size:13px;margin:0!important}@media (max-height:700px){.modal .card{padding:12px 14px}.modal .card .dogpose{width:64px;margin-bottom:0}.stars.top .st{width:34px;height:34px}.stars.top .st:nth-child(2){width:42px;height:42px;margin-top:-6px}.timebig{font-size:22px}ul.lines li{min-height:26px;font-size:14px}.totalrow b{font-size:24px}.modal .card .row{gap:8px;margin-top:8px}.modal .card .row button{min-height:46px}.ribbon{padding:6px 16px;margin-bottom:6px!important;font-size:19px!important}.modal.victory .row button{flex-basis:40%!important;min-height:46px!important}.modal.victory.rich .dogpose{display:none}.modal.victory .sheet{padding:6px 12px}}.modal .card .dogpose{width:104px;margin:0 auto 4px}.sheet{background:#fff9ec;border:2px solid #e2cda2;border-radius:14px;margin:6px 0 2px;padding:8px 12px}.timebig{font-variant-numeric:tabular-nums;justify-content:center;align-items:center;gap:8px;font-size:26px;font-weight:800;display:flex;margin:0 0 4px!important}.timebig .ico{width:26px;height:26px}ul.lines{margin:0;padding:0;list-style:none}ul.lines li{border-bottom:1px dashed #e2cda2;justify-content:space-between;align-items:center;gap:10px;min-height:30px;font-size:15px;display:flex}ul.lines li:last-child{border-bottom:0}ul.lines .lb{align-items:center;gap:8px;min-width:0;display:inline-flex}ul.lines b{font-variant-numeric:tabular-nums;white-space:nowrap;font-weight:800}ul.lines li.note{color:#8e1f28;min-height:24px;font-size:13px}.ico{fill:currentColor;object-fit:contain;flex:none;width:20px;height:20px}.ico.gold{fill:#e09a22}.totalrow{border-top:2px solid #c9a86a;justify-content:space-between;align-items:baseline;margin-top:4px;padding-top:6px;display:flex}.totalrow span{font-size:16px;font-weight:800}.totalrow b{color:#b5262e;font-variant-numeric:tabular-nums;font-size:28px;font-weight:800}.bestrow{text-align:center;color:#6e5a44;font-size:14px;margin:4px 0 0!important}.pill{border-radius:999px;align-items:center;gap:6px;padding:3px 12px;font-size:14px;font-style:normal;font-weight:800;display:inline-flex}.pill.gold,p.pill.gold{color:#4a2a08;background:linear-gradient(#ffe08a,#f2b33d);box-shadow:0 2px #b67a16}p.pill{justify-content:center;width:fit-content;display:flex;margin:6px auto 0!important}.mapid{text-align:center;margin-top:2px;font-size:11px;display:block;color:#9a8466!important}.modal .card .row{flex-wrap:wrap;gap:10px;margin-top:12px;display:flex}.modal .card .row button{color:#fff;text-shadow:0 1px #00000059;border:0;border-radius:16px;flex:40%;gap:6px;min-height:50px;font-size:17px;font-weight:800}.modal .card .row button.primary{background:linear-gradient(#73d04f,#3e9b2a);box-shadow:0 4px #2b6e1d,inset 0 2px #ffffff59}.modal .card .row button.blue{background:linear-gradient(#5aa8ff,#2f6fd6);box-shadow:0 4px #1f4e9c,inset 0 2px #ffffff4d}.modal .card .row button.danger{background:linear-gradient(#e85a60,#c3303a);box-shadow:0 4px #84161e,inset 0 2px #ffffff4d}.modal .card .row button.ghost{color:#3a2414;text-shadow:none;background:linear-gradient(#efe3c8,#d9c7a2);box-shadow:0 4px #a88d5e}.modal .card .row button .ico{fill:currentColor;width:18px;height:18px}.modal .card .row button{white-space:nowrap}.modal .card .row.stack button{flex-basis:100%}.modal .card .row:not(.stack) button{flex:auto;padding:8px 12px;font-size:16px}.modal .card .row.stack button.ghost{min-height:44px}.modal .card .row button:active{box-shadow:none;transform:translateY(3px)}.modal.alarm .row button{flex-basis:100%}.modal.victory .row button:last-child:not(:first-child),.modal.alarm .row button.ghost{min-height:44px}.card button.ad:before{content:none}.modal.dialog .card h2{margin-bottom:2px}.modal.alarm .card{border-color:#8b5a2b}.beltbox{color:#ffe6a8;background:#3a2414;border-radius:14px;align-items:center;gap:10px;margin-bottom:8px;padding:8px 12px;display:flex}.beltbox img{background:#5a3a22;border:2px solid #e8b44a;border-radius:50%;flex:none;width:44px;height:44px}.beltbox span{flex-direction:column;flex:1;gap:3px;min-width:0;display:flex}.beltbox b{font-size:17px}.beltbox small{color:#e9d7b0;text-align:left;font-size:12px}.beltbox .bar{background:#5a3a22;border-radius:4px;height:7px;display:block;overflow:hidden}.beltbox .bar i{background:#f2b33d;min-width:6px;height:100%;display:block}.modal.stats ul.lines{background:#fff9ec;border:2px solid #e2cda2;border-radius:14px;padding:2px 12px}.howto-card .row button.x{text-shadow:none;flex:none;box-shadow:none!important;color:#3a2414!important;background:0 0!important}.toast{background:#141020f0;border:2px solid #8b5a2b;border-radius:999px;padding:10px 18px;font-size:14px;font-weight:700}.phead .icon#back{background:radial-gradient(#7a4f2c,#4a2e18);border:3px solid #c98a3d;border-radius:50%;width:44px;min-width:44px;height:44px;padding:0;box-shadow:0 3px #2b1a0c}.phead .avatar{border:3px solid #e8b44a;box-shadow:0 2px #7a4e0c}.plaque{background:linear-gradient(#5a3a22,#3a2414);border:2px solid #8b5a2b;border-radius:12px;flex-direction:column;flex:1;align-items:center;gap:1px;min-width:0;padding:3px 8px;display:flex;box-shadow:inset 0 1px #ffffff26}.plaque .ptitle{text-align:center;color:#ffe6a8;flex:none;font-size:14px;line-height:1.15}.plaque .pstats{align-items:center;gap:12px;font-size:15px;font-weight:800;display:flex}.plaque .pcats img{width:20px;height:20px}.plaque .ptime{align-items:center;gap:4px;display:inline-flex}.plaque #time{color:var(--paper);text-align:left;min-width:0;font-size:15px}.plaque .ptime .ico{width:16px;height:16px}.modes button{color:#fff3dc;background:linear-gradient(#7a4f2c,#4a2e18);border:3px solid #a8743a;box-shadow:0 3px #2b1a0c}.modes button.on{color:#fff;background:linear-gradient(#5ab0ff,#1e64d8);border-color:#ffe29a;box-shadow:0 0 0 3px #ffe29a59,0 0 14px #5ab0ff99}.tools .tool span{color:#fff3dc;background:#3a2414;border:1px solid #8b5a2b;border-radius:8px;margin-top:-4px;padding:1px 8px;font-weight:700;position:relative}.hintline{color:#ffe6a8;background:#3a2414e6;border:1px solid #8b5a2b;border-radius:999px;align-self:center;padding:3px 14px}.dailycard{background:linear-gradient(#4e9bff,#2459c9);border:2px solid #9cc8ff;box-shadow:0 4px #173e8f}.dailycard small{color:#dcebff}.dailycard em{color:#ffe08a;text-shadow:0 2px #173e8f}.tile{border:2px solid #ffffff59}#m-intro{background:linear-gradient(#6ccb4a,#2f8f27);box-shadow:0 4px #1f6418}#m-tower{background:linear-gradient(#a26cf5,#6a36c9);box-shadow:0 4px #46208e}#m-puzzles{background:linear-gradient(#ffaa45,#e0731c);box-shadow:0 4px #9a4a0e}.tile small{color:#fff3c4}.tile b{text-shadow:0 1px #00000059}.tile.locked{background:linear-gradient(#4a4f7a,#2e3256)!important;box-shadow:0 4px #1c1f3a!important}.tile.locked .timg img{filter:grayscale()}.rankcard{background:linear-gradient(#5a3a22f2,#3a2414f2);border:2px solid #a8743a;box-shadow:0 4px #2b1a0c}.rankcard>img{border:2px solid #e8b44a}.rankcard small{color:#e9d7b0}.rankcard .bar{background:#2b1a0c}.floors li .tier{color:#fff;border-radius:999px;padding:2px 10px;font-size:13px;font-weight:800}.tier.easy{background:#3cb371}.tier.medium{background:#f4a261}.tier.hard{background:#e76f51}.tier.expert{background:#7b61ff}button.go{color:#fff;text-shadow:0 1px #00000059;background:linear-gradient(#73d04f,#3e9b2a);border:0;border-radius:18px;font-weight:800;box-shadow:0 4px #2b6e1d,inset 0 2px #ffffff59}button.go:active{box-shadow:none;transform:translateY(3px)}.bar .icon,.phead .icon#back{aspect-ratio:1;background:radial-gradient(#7a4f2c,#4a2e18);border:3px solid #c98a3d;border-radius:50%;flex:none;width:46px;min-width:46px;height:46px;min-height:46px;padding:0;font-size:24px;font-weight:800;box-shadow:0 3px #2b1a0c}.bar .ttl b{color:#ffe6a8;text-shadow:0 2px #3a2414;font-size:20px}.tower2{gap:8px}.bossnote{background:linear-gradient(#5a3a22f2,#3a2414f2);border:2px solid #a8743a;border-radius:14px;align-items:center;gap:10px;padding:8px 14px;display:flex}.bossnote img{width:26px;height:34px}.bossnote span{flex-direction:column;display:flex}.bossnote b{color:#ffe6a8}.bossnote small{color:#e9d7b0;font-size:13px}.tower2 .floors{gap:6px;padding:0 10px}.tower2 .floors li{background:#222452f0;border:2px solid #5a5fa0;border-radius:14px;justify-content:flex-start;gap:8px;min-height:44px;padding:6px 12px}.tower2 .floors li .fl{flex:1;font-weight:800}.tower2 .floors li .ok{color:#6ccb4a;text-align:center;width:22px;font-style:normal;font-weight:800}.tower2 .floors li .lk{text-align:center;opacity:.8;width:22px;font-size:14px;font-style:normal}.tower2 .floors li .me{background:#2a2452;border:2px solid #e8b44a;border-radius:50%;width:28px;height:28px;margin:-4px -3px}.tower2 .floors li.cur{background:linear-gradient(#5a3a22,#3a2414);border:3px solid #f2b33d;min-height:52px;margin:0 -10px;font-size:17px;box-shadow:0 0 14px #f2b33d8c}.tower2 .floors li.done{opacity:.8}.tower2 .floors li.locked{opacity:.6}.tower2 .floors li.boss{border-color:#e8b44a}.tower2 .floors li .crown{color:#ffe08a;font-size:13px;font-style:normal;font-weight:800}.tower2 .floors li .tier:empty{display:none}.tower2 #climb{min-height:56px;font-size:19px}.settings2 .sets{background:#161836f0;border:2px solid #4a4f8c;border-radius:16px;gap:0;padding:2px 12px}.settings2 .set{background:0 0;border:0;border-bottom:1px solid #b3b0cf38;border-radius:0;min-height:46px;padding:4px 0}.settings2 .set:last-child{border-bottom:0}.set input:checked+.sw{background:#2f8cff}.seg{background:#10122c;border-radius:999px;gap:0;padding:3px}.seg button{background:0 0;border:0;border-radius:999px;min-width:48px;min-height:32px;font-weight:800}.seg button.on{color:#fff;background:#2f8cff}.settings2 .legal-links a{color:#9cc8ff}.homebtns button{white-space:nowrap;padding:8px 10px;font-size:16px}.tile b{white-space:nowrap;letter-spacing:-.2px;font-size:14px}.tile small{white-space:nowrap}.ribbon{z-index:0;border-radius:4px;width:fit-content;max-width:calc(100% - 44px);margin:0 auto 14px!important;padding:7px 22px!important}.ribbon:before,.ribbon:after{content:"";z-index:-1;clip-path:polygon(0 0,100% 0,100% 100%,0 100%,10px 50%);background:#8e1f28;width:30px;position:absolute;top:7px;bottom:-7px;border:0!important}.ribbon:before{left:-20px}.ribbon:after{right:-20px;transform:scaleX(-1)}.ribbon.gold:before,.ribbon.gold:after{background:#b9781a}.modal .card{overflow-x:visible}@media (max-height:700px){.ribbon{margin-bottom:10px!important;padding:5px 18px!important}}.story2{position:relative}.storylang{top:max(10px, env(safe-area-inset-top));position:absolute;right:12px}.tools .tool{position:relative}.tools .tool .cnt{color:#fff;background:#2f8cff;border:2px solid #10122c;border-radius:10px;min-width:20px;height:20px;font-size:12px;font-style:normal;font-weight:800;line-height:20px;position:absolute;top:0;right:calc(50% - 30px)}.tools .tool.spent img{opacity:.35}.tools .tool.spent .cnt{background:#6e6680}.carryline{color:#ffe6a8;justify-content:center;align-items:center;gap:8px;margin:0;font-size:13px;font-weight:700;display:flex}.carryline img{width:16px;height:21px;margin-right:-6px}.carryline span{margin-left:8px}button.blue3,button.red3{color:#fff;text-shadow:0 1px #00000059;border:0;border-radius:16px;gap:6px;min-height:46px;font-weight:800}button.blue3{background:linear-gradient(#5aa8ff,#2f6fd6);box-shadow:0 4px #1f4e9c}button.red3{background:linear-gradient(#e85a60,#c3303a);box-shadow:0 4px #84161e}button.blue3 .ico,button.red3 .ico{fill:currentColor;width:18px;height:18px}.adrow{gap:8px;display:flex}.adrow button{white-space:nowrap;flex:auto;padding:6px 10px;font-size:15px}@media (max-height:700px){.tower2 .floors li:first-child{display:none}.tower2 .bossnote{padding:6px 12px}}.story2 .catrow{justify-content:center;align-items:flex-end;gap:4px;display:flex}.story2 .catrow img{width:min(26vw,100px)}.story2 .catrow img:nth-child(2){width:min(32vw,124px)}.settings2 button.set.link{width:100%;color:inherit;font:inherit;text-align:left;cursor:pointer;box-shadow:none;justify-content:space-between;align-items:center;display:flex}.settings2 button.set.link .chev{color:var(--muted);font-size:22px;font-style:normal}.story2>img{max-height:30vh;object-fit:contain;max-height:30dvh}.settings2 button.set.danger span{color:#ff9a8a}.modal .primary.danger{background:linear-gradient(#e0574a,#b3332a)}.settings2 .set{min-height:42px}.settings2 .legal-links{line-height:1.45}.sq.guide{z-index:2;animation:1.1s ease-in-out infinite guideglow;position:relative}@keyframes guideglow{0%,to{box-shadow:inset 0 0 0 3px #fff,inset 0 0 0 6px #e8590c,0 0 #e8590c00}50%{box-shadow:inset 0 0 0 3px #fff,inset 0 0 0 7px #ff7a1a,0 0 14px 4px #ff7a1ae6}}.modes button.guide{animation:1.1s ease-in-out infinite guideglow}.hintline.guide{border-radius:14px;padding:5px 12px;font-size:13px;line-height:1.3}@media (prefers-reduced-motion:reduce){.sq.guide,.modes button.guide{animation:none;box-shadow:inset 0 0 0 3px #fff,inset 0 0 0 6px #e8590c}}
