:root{--cream: #fff6e9;--cream-deep: #ffe9d2;--ink: #4a3b32;--muted: #8a7466;--pink: #ffb3c1;--pink-deep: #ff7e9d;--mint: #bfe8d5;--blue: #7ec8e3;--yellow: #ffd166;--brown: #8b6b57;--wood: #d9a066;--line: #f0dfcb;--shadow: 0 12px 30px rgba(74, 59, 50, .16);--radius: 20px}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body{height:100%}body{margin:0;overflow:hidden;color:var(--ink);font-family:PingFang SC,Hiragino Sans GB,Microsoft YaHei,system-ui,-apple-system,sans-serif;background:radial-gradient(circle at 20% 20%,rgba(255,255,255,.5) 0 2px,transparent 3px) 0 0 / 54px 54px,radial-gradient(circle at 50% 0%,#ffe9d6,#f3d9c2 48%,#e6c4a8)}button{font-family:inherit;color:inherit}.hidden{display:none!important}#app{width:100%;height:100vh;height:100dvh;display:flex;align-items:center;justify-content:center}.stage{position:relative;width:100vw;height:100vh;height:100dvh;overflow:hidden;background:var(--cream)}@media (min-width: 700px){.stage{width:min(54dvh,480px);height:auto;aspect-ratio:9 / 16;max-height:96dvh;border-radius:30px;border:8px solid #fff8ef;box-shadow:0 24px 70px #462d1c4d}}.scene{position:absolute;inset:0}.btn{width:100%;min-height:48px;padding:0 18px;border:2px solid transparent;border-radius:16px;font-size:15px;font-weight:700;cursor:pointer;transition:transform .16s ease,box-shadow .16s ease,background .16s ease}.btn:active{transform:scale(.97)}.btn:disabled{opacity:.45;cursor:default;transform:none}.btn-primary{color:#fff;background:linear-gradient(180deg,#ff9fb4,#ff7e9d);box-shadow:0 6px #e46786,0 12px 20px #e6648240}.btn-secondary{color:#3f6b57;background:linear-gradient(180deg,#d7f3e6,#bfe8d5);box-shadow:0 5px #9bd3ba}.btn-ghost{color:var(--brown);background:#ffffff8c;border-color:#ead8c3}.btn-small{width:auto;min-height:44px;padding:0 14px;font-size:13px;border-radius:12px;box-shadow:none}.btn-wide{width:100%}.scene-intro{display:flex;flex-direction:column;overflow-y:auto;padding:max(20px,env(safe-area-inset-top)) 22px max(18px,env(safe-area-inset-bottom));background:radial-gradient(circle at 50% 12%,rgba(255,255,255,.85),transparent 42%),radial-gradient(circle at 50% 18%,#fff9f0,#ffe6cf 58%,#f6d3b3)}.intro-deco{position:absolute;inset:0;pointer-events:none;overflow:hidden}.float-paw{position:absolute;font-size:20px;opacity:.25;animation:floatSlow 6s ease-in-out infinite}.float-paw.p1{left:12%;top:14%;transform:rotate(-18deg)}.float-paw.p2{right:12%;top:24%;animation-delay:-2s;transform:rotate(16deg)}.float-paw.p3{left:18%;bottom:16%;animation-delay:-4s;transform:rotate(8deg)}.intro-inner{position:relative;margin:auto;width:100%;max-width:360px;display:flex;flex-direction:column;align-items:center;text-align:center}.intro-cat{font-size:62px;line-height:1;filter:drop-shadow(0 8px 12px rgba(180,110,60,.18));animation:bob 3.2s ease-in-out infinite}.intro-kicker{margin:12px 0 4px;font-size:11px;letter-spacing:.16em;color:#b08968}.intro-title{margin:0;font-size:32px;letter-spacing:.06em;color:#5a4030}.intro-subtitle{margin:4px 0 14px;font-size:17px;font-weight:700;letter-spacing:.28em;color:var(--pink-deep)}.story-card{width:100%;padding:14px 16px;text-align:left;font-size:13px;line-height:1.75;color:#6b5545;background:#fffcf6e6;border:3px solid #fff;border-radius:18px;box-shadow:var(--shadow)}.story-card p{margin:0 0 6px}.story-card p:last-child{margin-bottom:0}.story-card strong{color:var(--pink-deep)}.intro-actions{width:100%;display:flex;flex-direction:column;gap:9px;margin-top:16px}.privacy-note{margin:14px 0 0;font-size:10.5px;color:#a58c78;line-height:1.5}.scene-room{background:#f7e6d3}.hud{position:absolute;inset:0 0 auto;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:max(10px,env(safe-area-inset-top)) 12px 8px;background:linear-gradient(#fff6e9f5,#fff6e900)}.hud-brand{font-size:14px;font-weight:800;color:#6b503c;padding:0 4px;white-space:nowrap}.hud-actions{display:flex;gap:7px}.icon-btn{width:44px;height:44px;display:flex;align-items:center;justify-content:center;font-size:18px;background:#fffc;border:2px solid #fff;border-radius:14px;box-shadow:0 3px #b4916e40,0 6px 14px #7850321f;cursor:pointer;transition:transform .16s ease}.icon-btn:active{transform:scale(.93)}.room{position:absolute;inset:0;overflow:hidden}.wall{position:absolute;inset:0 0 24%;background:radial-gradient(circle at 18px 18px,rgba(255,255,255,.55) 2px,transparent 3px) 0 0 / 46px 46px,linear-gradient(#fdf0e0,#f6e3cd)}.wall:after{content:"";position:absolute;left:0;right:0;bottom:0;height:10px;background:#e4c5a3;box-shadow:0 -2px #ffffff80}.floor{position:absolute;left:0;right:0;bottom:0;height:26%;background:repeating-linear-gradient(180deg,transparent 0 22%,rgba(118,72,34,.22) 22% 23%),repeating-linear-gradient(90deg,#d9a066 0 46px,#cf9459 46px 49px),linear-gradient(#d9a066,#c88d54)}.rug{position:absolute;left:8%;top:79%;width:58%;height:12%;border-radius:50%;background:#f8d8c4;box-shadow:inset 0 0 0 4px #ffffff73,0 6px 14px #78461e1a;transform:rotate(-2deg)}.window{position:absolute;left:35%;top:10%;width:26%;height:16%;z-index:1;border:4px solid #fffaf2;border-radius:12px 12px 4px 4px;overflow:hidden;box-shadow:0 5px #b48c642e,inset 0 0 0 2px #c8d9e4}.window-sky{position:absolute;inset:0;background:linear-gradient(180deg,#26384f,#4b6584 60%,#7f9db8)}.moon{position:absolute;right:16%;top:14%;font-size:18px;filter:drop-shadow(0 0 6px rgba(255,240,180,.8))}.star{position:absolute;color:#fff5c8;font-size:7px;opacity:.9}.star.s1{left:16%;top:20%}.star.s2{left:44%;top:48%}.curtain{position:absolute;top:-4px;bottom:-4px;width:22%;background:repeating-linear-gradient(90deg,#ffb3c1 0 5px,#ff9fb4 5px 10px);border-radius:0 0 8px 8px}.curtain.left{left:-6px}.curtain.right{right:-6px}.window-sill{position:absolute;left:-8%;right:-8%;bottom:-4px;height:7px;background:#fffaf2;border-radius:4px;box-shadow:0 3px #966e5026}.hotspot{position:absolute;z-index:3;padding:0;border:0;background:transparent;cursor:pointer;-webkit-appearance:none;transition:transform .16s ease}.hotspot:active{transform:scale(.975)}.hotspot:after{content:"";position:absolute;inset:4%;z-index:-1;border-radius:16px;pointer-events:none;animation:breathe 3.4s ease-in-out infinite}.hotspot.is-solved:before{content:"✓";position:absolute;top:-4px;right:-4px;z-index:6;width:20px;height:20px;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:800;color:#fff;background:#6cc070;border-radius:50%;box-shadow:0 2px 6px #3c643c4d}.board{left:4%;top:12.5%;width:27%;height:17%;transform:rotate(-2deg);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;background:#d9a066;border:3px solid #b97f4a;border-radius:10px;box-shadow:0 6px 14px #78461e33}.board-title{font-size:9px;font-weight:800;letter-spacing:.12em;color:#6b4b33;background:#fff6e9;padding:1px 7px;border-radius:6px}.board-digits{display:flex;gap:3px}.mini-digit{width:18px;height:22px;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:800;color:#bda995;background:#fffdf7;border-radius:4px;box-shadow:inset 0 -2px #a082642e}.mini-digit.filled{color:#5a4030;background:#ffe9a8}.board-tape{position:absolute;top:-8px;left:50%;width:36%;height:11px;background:#fff9;transform:translate(-50%) rotate(-3deg);border-radius:1px}.shelf{left:68%;top:12.5%;width:28%;height:30%;padding:6% 5%;display:flex;flex-direction:column;justify-content:space-between;background:#c98f56;border:3px solid #a9713f;border-radius:8px;box-shadow:inset 0 0 0 2px #ffffff2e,0 6px 14px #6e411e2e}.shelf-frame{position:absolute;inset:0;border-radius:8px;pointer-events:none}.shelf-row{position:relative;height:29%;display:flex;align-items:flex-end;gap:2px;padding:0 4%;border-bottom:3px solid #a9713f}.book{display:block;width:14%;height:74%;border-radius:2px 2px 0 0;background:#e8a598;box-shadow:inset -2px 0 #0000001f}.book.b2{height:62%;background:#f7c948}.book.b3{height:80%;background:#bfe8d5}.book.b4{height:66%;background:#c9b6e4}.book.b5{height:72%;background:#f2b7a9}.book.b6{height:70%;background:#f7c948}.book.b7{height:82%;background:#bfe8d5}.book.b8{height:68%;background:#c9b6e4}.book.b9{height:74%;background:#8fb8de}.book.b10{height:64%;background:#f2b7a9}.book.b11{height:78%;background:#e8a598}.book.b12{height:70%;background:#bfe8d5}.book.blue{height:84%;background:#5aa9e6;box-shadow:inset -2px 0 #00000026,0 0 0 2px #5aa9e659}.sofa{left:4%;top:42%;width:54%;height:25%}.sofa-back{position:absolute;left:4%;right:4%;top:6%;height:52%;background:#e8a598;border:3px solid #c9877b;border-radius:18px 18px 8px 8px;box-shadow:inset 0 -8px #c8827326}.sofa-seat{position:absolute;left:2%;right:2%;top:54%;height:30%;background:#f2b7a9;border:3px solid #c9877b;border-radius:10px 10px 14px 14px}.sofa-arm{position:absolute;top:34%;z-index:2;width:14%;height:50%;background:#e8a598;border:3px solid #c9877b;border-radius:14px}.sofa-arm.left{left:0}.sofa-arm.right{right:0}.sofa-cushion{position:absolute;top:56%;z-index:3;width:36%;height:18%;background:#fbd4c8;border-radius:10px;box-shadow:inset 0 -3px #c88c7d2e}.sofa-cushion.c1{left:14%}.sofa-cushion.c2{right:14%}.paw-mark{position:absolute;right:2%;bottom:18%;z-index:4;font-size:14px;opacity:.9;filter:drop-shadow(0 1px 0 #fff)}.table{left:7%;top:67%;width:44%;height:15%}.table-top{position:absolute;left:0;right:0;top:0;height:36%;background:#d9a066;border:3px solid #b97f4a;border-radius:8px}.table-leg{position:absolute;top:32%;width:8%;height:68%;background:#b97f4a;border-radius:0 0 3px 3px}.table-leg.left{left:10%}.table-leg.right{right:10%}.paper{position:absolute;left:44%;top:-40%;z-index:2;width:32%;height:92%;padding:8% 7%;display:flex;flex-direction:column;gap:3px;background:#fffdf5;border-radius:3px;box-shadow:0 4px 8px #64412333;transform:rotate(6deg)}.paper i{display:block;height:2px;background:#d8cabb;border-radius:2px}.paper i:nth-child(1){width:82%}.paper i:nth-child(2){width:100%}.paper i:nth-child(3){width:64%}.cup{position:absolute;right:5%;top:-26%;font-size:17px}.fridge{left:68%;top:46%;width:28%;height:29%}.fridge-body{position:absolute;inset:0;background:#eef6f7;border:3px solid #b9d3d8;border-radius:10px;box-shadow:inset -7px 0 #b4cdd238,0 6px #785a3c1a}.fridge-line{position:absolute;left:6%;right:6%;top:36%;height:2px;background:#cddde1}.fridge-handle{position:absolute;right:9%;top:12%;width:6%;height:30%;background:#b9d3d8;border-radius:4px}.magnets{position:absolute;left:8%;right:8%;top:48%;display:flex;gap:2px;justify-content:center}.magnets i{width:18%;aspect-ratio:1;display:flex;align-items:center;justify-content:center;font-style:normal;font-size:8px;font-weight:800;color:#7a5a2e;background:#ffd166;border-radius:4px;box-shadow:0 2px #8c642840}.magnets i.q{color:#a33;background:#ffb3c1}.fridge-note{position:absolute;right:8%;top:7%;font-size:13px}.recorder{left:4%;top:84%;width:29%;height:13%}.cat-bed{position:absolute;left:0;right:0;bottom:0;height:70%;background:#c9b6e4;border:3px solid #a894c8;border-radius:50% 50% 16px 16px/40% 40% 16px 16px;box-shadow:inset 0 -6px #785f9626}.sleep-cat{position:absolute;left:24%;bottom:34%;font-size:22px}.tape-recorder{position:absolute;right:-2%;top:-6%;font-size:18px;filter:drop-shadow(0 2px 2px rgba(80,50,30,.2))}.drawer{left:37%;top:83%;width:22%;height:14%}.drawer-box{position:absolute;inset:0;background:#c98f56;border:3px solid #a9713f;border-radius:7px;box-shadow:0 5px 10px #6e411e26}.drawer-slot{position:absolute;left:9%;right:9%;top:14%;height:66%;background:#b97f4a;border-radius:4px;box-shadow:inset 0 2px 4px #0003}.drawer-handle{position:absolute;left:50%;top:52%;width:20px;height:20px;display:flex;align-items:center;justify-content:center;font-family:Georgia,Times New Roman,serif;font-size:14px;font-weight:800;color:#f7e6d3;background:#8b6b57;border-radius:50%;transform:translate(-50%,-50%);box-shadow:0 2px 3px #3c28194d}.safe{left:65%;top:82%;width:30%;height:15%}.safe-body{position:absolute;inset:0;background:#9aa8b0;border:3px solid #6f7f88;border-radius:8px;box-shadow:inset 0 3px #ffffff38,0 6px 12px #3c3c3c2e}.safe-dial{position:absolute;left:11%;top:22%;width:32%;aspect-ratio:1;background:#cfd8dd;border:3px solid #6f7f88;border-radius:50%}.safe-dial:before{content:"";position:absolute;left:50%;top:12%;width:3px;height:36%;background:#6f7f88;border-radius:2px;transform:translate(-50%)}.safe-slots{position:absolute;right:9%;top:26%;width:38%;display:grid;grid-template-columns:1fr 1fr;gap:3px}.safe-slots i{height:9px;background:#4a3b32;border-radius:2px}.safe-ready-badge{display:none}.safe-ready{animation:safeGlow 1.8s ease-in-out infinite}.safe-ready .safe-ready-badge{position:absolute;top:-9px;right:-7px;z-index:7;width:20px;height:20px;display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:800;color:#fff;background:var(--pink-deep);border-radius:50%;box-shadow:0 3px 8px #e6648273;animation:bob 1.6s ease-in-out infinite}.safe-pop{animation:pop .5s ease}.guide{position:absolute;left:50%;bottom:15%;z-index:30;display:flex;flex-direction:column;align-items:center;gap:6px;pointer-events:none;transform:translate(-50%);animation:fadeIn .5s ease}.guide-hand{font-size:30px;animation:tapGuide 1.5s ease-in-out infinite}.guide-text{padding:6px 12px;font-size:12px;font-weight:700;color:#6b503c;white-space:nowrap;background:#fffcf6f2;border:2px solid #fff;border-radius:999px;box-shadow:0 6px 16px #6441232e}.toast{position:fixed;left:50%;bottom:calc(22px + env(safe-area-inset-bottom));z-index:200;max-width:min(88vw,380px);padding:11px 18px;font-size:13px;line-height:1.4;text-align:center;color:#fff;background:#3a2a20f0;border-radius:999px;box-shadow:0 10px 24px #28190f4d;opacity:0;pointer-events:none;transform:translate(-50%,16px);transition:opacity .2s ease,transform .2s ease}.toast.show{opacity:1;transform:translate(-50%)}.toast.success{background:#3e825af5}.toast.warn{background:#be5f3cf5}.modal-backdrop{position:fixed;inset:0;z-index:100;display:flex;align-items:center;justify-content:center;padding:16px;background:#30201675;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);animation:fadeIn .2s ease}.modal{width:min(92vw,420px);max-height:88dvh;display:flex;flex-direction:column;overflow:hidden;background:#fffaf2;border:3px solid #fff;border-radius:24px;box-shadow:0 24px 60px #28190f59;animation:modalIn .24s cubic-bezier(.2,.9,.3,1.2)}.modal-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 16px 8px}.modal-head h2{margin:0;font-size:17px;letter-spacing:.02em;color:#5a4030}.modal-close{flex:0 0 auto;width:44px;height:44px;display:flex;align-items:center;justify-content:center;font-size:16px;color:var(--muted);background:#fff;border:2px solid var(--line);border-radius:13px;cursor:pointer}.modal-body{padding:2px 16px 18px;overflow-y:auto;overscroll-behavior:contain}.modal-text{margin:0 0 12px;font-size:13px;line-height:1.65;color:#7a6353}.modal-actions{display:flex;gap:10px;margin-top:18px}.modal-actions .btn{flex:1}.shake{animation:shake .45s ease}.digit-reveal{display:none;align-items:center;justify-content:center;gap:12px;margin-top:14px;padding:10px;background:linear-gradient(180deg,#fff6d8,#ffe9a8);border:2px dashed #e0b95a;border-radius:14px}.digit-reveal.show{display:flex;animation:popIn .4s ease}.digit-reveal span{font-size:12px;color:#96773c}.digit-reveal strong{font-size:32px;line-height:1;color:#c07a1f}.puzzle-status{margin:12px 0 0;font-size:12px;line-height:1.6;color:var(--muted)}.puzzle-status.ok{color:#3f8a5f;font-weight:700}.puzzle-status.warn{color:#cc5f4d}.row-actions{display:flex;justify-content:center;margin-top:12px}.paw-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.paw-btn{min-height:104px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:10px;background:#fff;border:2px solid var(--line);border-radius:18px;cursor:pointer;transform:rotate(var(--tilt));transition:transform .18s ease,box-shadow .18s ease}.paw-btn:active{transform:rotate(var(--tilt)) scale(.95)}.paw-btn svg{width:52px;height:52px;fill:var(--paw);filter:drop-shadow(0 3px 3px rgba(80,60,40,.14))}.paw-btn span{font-size:12px;font-weight:700;color:#7a6353}.paw-btn:disabled{opacity:.7}.paw-progress{display:flex;align-items:center;gap:8px;margin-top:14px;font-size:12px;color:var(--muted)}.paw-dots{display:flex;gap:6px}.paw-dots i{width:20px;height:20px;border:2px dashed #ddc9b0;border-radius:50%}.paw-dots i.on{border-style:solid;border-color:#00000014}.note-paper{position:relative;padding:16px 14px 22px;font-size:14.5px;line-height:2;color:#5c4a3c;background:repeating-linear-gradient(180deg,transparent 0 28px,#eee2d1 28px 29px),#fffdf5;border:2px solid #eadfce;border-radius:6px;box-shadow:0 8px 18px #6446281f;transform:rotate(-1deg)}.note-paper p{margin:0}.typo-word{padding:0 1px;font:inherit;color:inherit;background:transparent;border:0;border-radius:4px;cursor:pointer}.typo-word:active{background:#ffe9a8}.typo-word.found{color:#a35d2c;background:#ffe9a8;box-shadow:0 0 0 2px #ffe9a8;cursor:default}.typo-word sup{margin-left:1px;font-size:10px;color:#cc5f4d;vertical-align:super}.note-stamp{position:absolute;right:12px;bottom:8px;padding:2px 6px;font-size:9px;font-weight:800;letter-spacing:.1em;color:#d16a6a;border:2px solid #e9a3a3;border-radius:4px;opacity:.7;transform:rotate(-8deg)}.note-progress{margin:12px 0 0;font-size:12px;color:var(--muted)}.note-progress strong{color:#c07a1f}.bluebook-hint{display:none;align-items:center;gap:10px;margin-top:12px;padding:10px 12px;background:#eaf4ff;border:2px dashed #8fc6e0;border-radius:14px;flex-wrap:wrap}.bluebook-hint.show{display:flex;animation:popIn .35s ease}.bluebook-icon{font-size:26px}.bluebook-hint div{flex:1 1 150px}.bluebook-hint strong{font-size:13px;color:#2f6f96}.bluebook-hint p{margin:2px 0 0;font-size:11.5px;line-height:1.5;color:#5b8099}.shelf-panel{padding:10px 10px 4px;background:#c98f56;border:3px solid #a9713f;border-radius:12px;box-shadow:inset 0 0 0 2px #ffffff29}.shelf-panel .shelf-row{display:block;height:auto;padding:0;border-bottom:4px solid #a9713f}.shelf-panel .shelf-row:last-child{border-bottom:0}.shelf-line{display:flex;align-items:flex-end;gap:5px;padding:8px 6px 0}.shelf-book{width:44px;height:56px;display:flex;align-items:center;justify-content:center;font-size:18px;background:var(--book, #e8a598);border:2px solid rgba(90,50,25,.18);border-radius:4px 4px 2px 2px;box-shadow:inset -3px 0 #0000001f;cursor:pointer;transition:transform .16s ease}.shelf-book:active{transform:translateY(-3px)}.shelf-book.blue{color:#fff;font-size:16px}.shelf-book.ready{animation:bookGlow 1.5s ease-in-out infinite}.shelf-book.found{opacity:.55}.fridge-scene{display:flex;justify-content:center;margin:4px 0 10px}.fridge-face{width:210px;max-width:100%;padding:18px 14px 12px;background:#eef6f7;border:3px solid #b9d3d8;border-radius:14px;box-shadow:inset -8px 0 #b4cdd238,0 8px 16px #506e7326}.fridge-magnets{display:flex;gap:8px;justify-content:center}.fridge-magnets span,.magnet-q{width:44px;height:44px;display:flex;align-items:center;justify-content:center;font-size:20px;font-weight:800;color:#7a5a2e;background:#ffd166;border:0;border-radius:7px;box-shadow:0 3px #8c642847}.magnet-q{color:#a33;background:#ffb3c1;cursor:pointer}.magnet-q.revealed{color:#fff;background:#ff7e9d}.fridge-caption{margin:10px 0 0;font-size:10px;letter-spacing:.12em;text-align:center;color:#93a8ad}.letter-reveal{display:none;margin-top:10px;padding:10px 12px;font-size:12.5px;line-height:1.6;text-align:center;color:#2f6f96;background:#eaf4ff;border:2px dashed #8fc6e0;border-radius:12px}.letter-reveal.show{display:block;animation:popIn .3s ease}.letter-reveal strong{font-size:18px;color:#1f5d82}.drawer-scene{display:flex;justify-content:center;padding:14px 0 4px}.drawer-unit{position:relative;width:210px;height:130px;padding:0;background:#6b4b33;border:3px solid #a9713f;border-radius:10px;cursor:pointer;overflow:hidden;box-shadow:0 8px 18px #50321938}.drawer-inside{position:absolute;inset:0;display:flex;align-items:flex-end;justify-content:center;padding-bottom:10px;background:linear-gradient(#3b2a1e,#5a402c)}.drawer-card{width:120px;padding:8px 10px;display:flex;align-items:center;justify-content:space-between;background:#fff6d8;border:2px dashed #e0b95a;border-radius:20px}.drawer-card span{font-size:10px;color:#96773c}.drawer-card strong{font-size:26px;line-height:1;color:#c07a1f}.drawer-front{position:absolute;inset:0;z-index:2;display:flex;align-items:center;justify-content:center;background:repeating-linear-gradient(180deg,#d9a066 0 26px,#d1975c 26px 28px);border:3px solid #b97f4a;border-radius:6px;transition:transform .45s cubic-bezier(.2,.8,.3,1.1)}.drawer-unit.open .drawer-front{transform:translateY(-66%)}.drawer-pull{width:44px;height:44px;display:flex;align-items:center;justify-content:center;font-family:Georgia,Times New Roman,serif;font-size:22px;font-weight:800;color:#f7e6d3;background:#8b6b57;border-radius:50%;box-shadow:0 3px #3c28194d}.audio-list{display:flex;flex-direction:column;gap:8px}.audio-seg{display:flex;align-items:center;gap:10px;min-height:50px;padding:8px 12px;background:#fff;border:2px solid var(--line);border-radius:14px;cursor:pointer;transition:background .18s ease,border-color .18s ease}.audio-seg.playing{background:#fff3d6;border-color:#e8c983}.seg-no{flex:0 0 auto;width:26px;height:26px;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:800;color:#7a6353;background:#f6ece0;border-radius:50%}.seg-wave{display:flex;align-items:center;gap:3px;height:22px}.seg-wave i{width:3px;height:6px;background:#cbb49c;border-radius:3px}.audio-seg.playing .seg-wave i{background:#e2a84b;animation:wave .8s ease-in-out infinite}.seg-wave i:nth-child(2){animation-delay:.1s}.seg-wave i:nth-child(3){animation-delay:.2s}.seg-wave i:nth-child(4){animation-delay:.3s}.seg-wave i:nth-child(5){animation-delay:.4s}.seg-hint{flex:1;font-size:11.5px;color:var(--muted);text-align:left}.seg-play{flex:0 0 auto;width:28px;height:28px;display:flex;align-items:center;justify-content:center;font-size:10px;color:#fff;background:var(--pink-deep);border-radius:50%}.audio-tip{margin:12px 0 10px;font-size:11.5px;line-height:1.6;color:var(--muted)}.count-slots{display:flex;justify-content:center;gap:8px;margin-bottom:10px}.count-slot{width:48px;height:52px;display:flex;align-items:center;justify-content:center;font-size:22px;font-weight:800;color:#5a4030;background:#fff;border:2px dashed #e3cfb7;border-radius:10px}.count-slot.on{background:#fff6d8;border-style:solid;border-color:#e0b95a}.mini-keypad{display:grid;grid-template-columns:repeat(6,1fr);gap:6px;margin-bottom:10px}.mini-keypad button{min-height:44px;font-size:14px;font-weight:700;color:#5a4030;background:#fff;border:2px solid var(--line);border-radius:10px;cursor:pointer}.mini-keypad button:active{background:#f6ece0}.safe-tip{margin-bottom:10px;padding:8px 12px;font-size:12px;color:#8a6a2f;background:#fff6d8;border-radius:10px}.code-display{display:flex;justify-content:center;gap:10px;margin:6px 0 14px}.code-cell{width:54px;height:62px;display:flex;align-items:center;justify-content:center;font-size:26px;font-weight:800;color:#5a4030;background:#fff;border:2px solid #e3cfb7;border-radius:12px;box-shadow:inset 0 3px #dcc3a54d}.code-cell.on{background:#fff6d8;border-color:#e0b95a}.safe-keypad{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:12px}.safe-keypad button{min-height:48px;font-size:18px;font-weight:700;color:#5a4030;background:#fff;border:2px solid var(--line);border-radius:12px;box-shadow:0 3px #d2b99b59;cursor:pointer}.safe-keypad button:active{transform:translateY(2px);box-shadow:none}.hint-item{padding:10px 12px;margin-bottom:9px;background:#fff;border:2px solid var(--line);border-radius:14px}.hint-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.hint-head strong{font-size:13px;color:#5a4030}.hint-level{font-size:11px;font-weight:700;color:#a58c78;background:#f6ece0;padding:2px 8px;border-radius:999px}.hint-texts p{margin:8px 0 0;padding:7px 9px;font-size:12px;line-height:1.55;color:#6b5545;background:#fff8ee;border-radius:8px}.hint-texts p.hint-new{animation:fadeIn .3s ease}.hint-item .btn{margin-top:9px}.hint-total{margin:4px 0 0;font-size:12px;text-align:center;color:var(--muted)}.hint-total strong{color:#c07a1f}.board-code{padding:10px;margin-bottom:12px;font-family:Courier New,monospace;font-size:28px;font-weight:800;letter-spacing:.28em;text-align:center;color:#a58c78;background:#f6ece0;border-radius:12px}.board-code.ready{color:#ffe9a8;background:#4a3b32;box-shadow:0 0 0 3px #ffe9a8 inset}.clue-row{display:flex;align-items:center;gap:10px;padding:9px 4px;border-bottom:1px dashed #eadbc8}.clue-icon{font-size:20px}.clue-info{flex:1;display:flex;flex-direction:column;gap:1px}.clue-info strong{font-size:13px;color:#5a4030}.clue-info span{font-size:10.5px;color:#a58c78}.clue-digit{width:36px;height:40px;display:flex;align-items:center;justify-content:center;font-size:20px;font-weight:800;color:#bda995;background:#f6ece0;border-radius:9px}.clue-row.done .clue-digit{color:#8a5a17;background:#ffe9a8}.clue-row.done .clue-info span{color:#3f8a5f}.clue-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}.clue-tags span{padding:3px 9px;font-size:11px;color:#2f6f96;background:#eaf4ff;border-radius:999px}.board-foot{margin:12px 0 0;font-size:11.5px;text-align:center;color:var(--muted)}.rule-list{margin:0 0 12px;padding-left:18px;font-size:11.5px;line-height:1.7;color:var(--muted)}.video-meta{display:flex;flex-direction:column;gap:2px;padding:9px 12px;background:#fff;border:2px solid var(--line);border-radius:12px}.video-meta strong{font-size:12.5px;color:#5a4030;word-break:break-all}.video-meta span{font-size:10.5px;color:var(--muted)}.video-meta.empty{align-items:center;color:#a58c78;font-size:12px}.video-badge{align-self:flex-start;margin-top:3px;padding:1px 7px;font-size:9.5px;font-weight:700;color:#3f8a5f;background:#e7f6ed;border-radius:999px}.video-badge.warn{color:#b2512e;background:#ffeadf}.inline-warn{margin:8px 0 0;padding:7px 10px;font-size:10.5px;line-height:1.55;color:#b2512e;background:#ffeadf;border-radius:9px}.video-preview{margin-top:10px;aspect-ratio:16 / 9;display:flex;align-items:center;justify-content:center;overflow:hidden;background:#2c2320;border-radius:12px}.video-preview video{width:100%;height:100%;object-fit:contain;background:#2c2320}.video-placeholder{display:flex;flex-direction:column;align-items:center;gap:4px;font-size:26px;color:#ffffff73}.video-placeholder span{font-size:11px;letter-spacing:.1em}.video-missing{padding:16px;font-size:11.5px;line-height:1.6;text-align:center;color:#ffc9b5}.video-actions{display:flex;gap:8px;margin-top:10px}.video-privacy{margin:10px 0 0;font-size:10px;line-height:1.5;text-align:center;color:#a58c78}.scene-ending{display:flex;flex-direction:column;overflow-y:auto;padding:max(18px,env(safe-area-inset-top)) 18px max(18px,env(safe-area-inset-bottom));background:radial-gradient(circle at 50% 0%,rgba(255,255,255,.8),transparent 48%),radial-gradient(circle at 50% 10%,#fff4e2,#ffe0c7 58%,#f6c6a3)}.ending-inner{position:relative;z-index:2;width:100%;max-width:380px;margin:auto;display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center}.ending-cat{font-size:52px;line-height:1;animation:bob 3s ease-in-out infinite}.ending-title{margin:0;font-size:24px;line-height:1.3;color:#5a4030}.ending-sub{margin:0;font-size:12px;line-height:1.6;color:#967c67}.stats{width:100%;display:flex;gap:10px;margin:8px 0 2px}.stat{flex:1;padding:8px 10px;display:flex;flex-direction:column;gap:2px;background:#fffcf6e6;border:2px solid #fff;border-radius:14px;box-shadow:0 6px 14px #7850321a}.stat-label{font-size:10px;color:#a58c78}.stat strong{font-size:19px;letter-spacing:.04em;color:#5a4030}.egg-area{width:100%;margin-top:4px;padding:10px;background:#fffcf6f0;border:3px solid #fff;border-radius:18px;box-shadow:var(--shadow)}.egg-loading{padding:26px 0;font-size:12px;color:var(--muted)}.egg-default{display:flex;flex-direction:column;align-items:center;gap:4px;padding:18px 10px;background:repeating-linear-gradient(135deg,#fffaf0 0 10px,#fff6e6 10px 20px);border-radius:12px}.egg-stamp{font-size:34px}.egg-default strong{font-size:14px;color:#5a4030}.egg-default p{margin:0;font-size:11.5px;color:#967c67}.egg-default-tag{margin-top:4px;padding:2px 8px;font-size:9.5px;color:#a58c78;background:#f6ece0;border-radius:999px}.egg-video-wrap{position:relative;overflow:hidden;background:#2c2320;border-radius:12px}.egg-video{display:block;width:100%;aspect-ratio:16 / 9;background:#2c2320}.egg-play{position:absolute;left:50%;top:50%;min-height:44px;padding:0 16px;display:flex;align-items:center;gap:6px;font-size:12px;font-weight:800;color:#fff;background:#ff7e9deb;border:2px solid rgba(255,255,255,.8);border-radius:999px;box-shadow:0 8px 20px #78283c4d;transform:translate(-50%,-50%);cursor:pointer}.egg-play span{font-size:13px}.egg-caption{margin:7px 0 0;font-size:10px;color:#a58c78;text-align:center;word-break:break-all}.egg-fallback{display:flex;flex-direction:column;align-items:center;gap:4px;padding:16px 10px}.egg-cat{font-size:32px}.egg-fallback strong{font-size:13px;color:#b2512e}.egg-fallback p{margin:0;font-size:11px;line-height:1.5;color:#967c67}.egg-fallback .btn{margin-top:6px}.ending-actions{width:100%;margin-top:10px;display:grid;grid-template-columns:1fr 1fr;gap:8px}.ending-actions .btn{min-height:46px;font-size:13.5px}.ending-actions .btn-ghost{grid-column:1 / -1}.scene-ending .privacy-note{margin-top:4px}.confetti{position:absolute;inset:0;z-index:1;overflow:hidden;pointer-events:none}.confetti i{position:absolute;top:-10px;width:7px;height:11px;border-radius:2px;opacity:.8;animation:confettiFall 4.5s linear infinite}.confetti i:nth-child(1){left:8%;background:#ff7e9d;animation-delay:0s}.confetti i:nth-child(2){left:20%;background:#ffd166;animation-delay:.7s}.confetti i:nth-child(3){left:32%;background:#7ec8e3;animation-delay:1.4s}.confetti i:nth-child(4){left:44%;background:#bfe8d5;animation-delay:.3s}.confetti i:nth-child(5){left:56%;background:#ffb3c1;animation-delay:1.8s}.confetti i:nth-child(6){left:68%;background:#c9b6e4;animation-delay:1.1s}.confetti i:nth-child(7){left:78%;background:#ffd166;animation-delay:2.3s}.confetti i:nth-child(8){left:88%;background:#7ec8e3;animation-delay:.9s}.confetti i:nth-child(9){left:38%;background:#ff9fb4;animation-delay:2.8s}.confetti i:nth-child(10){left:64%;background:#bfe8d5;animation-delay:3.4s}.opening-scene{display:flex;flex-direction:column;align-items:center;gap:6px;padding:26px 10px;text-align:center}.opening-box{font-size:56px;animation:openBox 1.2s ease}.opening-scene p{margin:0;font-size:15px;font-weight:800;color:#5a4030}.opening-sub{font-size:11.5px!important;font-weight:400!important;color:#967c67!important}@keyframes bob{0%,to{transform:translateY(0)}50%{transform:translateY(-6px)}}@keyframes floatSlow{0%,to{transform:translateY(0) rotate(-8deg)}50%{transform:translateY(-12px) rotate(6deg)}}@keyframes breathe{0%,to{box-shadow:0 0 #ffb76900}50%{box-shadow:0 0 0 7px #ffb76929}}@keyframes safeGlow{0%,to{filter:drop-shadow(0 0 0 rgba(255,190,90,0))}50%{filter:drop-shadow(0 0 10px rgba(255,190,90,.75))}}@keyframes tapGuide{0%,to{transform:translateY(0) scale(1)}40%{transform:translateY(-10px) scale(.95)}}@keyframes wave{0%,to{height:6px}50%{height:20px}}@keyframes pop{0%{transform:scale(1)}40%{transform:scale(1.06)}to{transform:scale(1)}}@keyframes popIn{0%{opacity:0;transform:scale(.92)}to{opacity:1;transform:scale(1)}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes modalIn{0%{opacity:0;transform:translateY(14px) scale(.97)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes shake{0%,to{transform:translate(0)}20%{transform:translate(-7px)}40%{transform:translate(6px)}60%{transform:translate(-4px)}80%{transform:translate(3px)}}@keyframes bookGlow{0%,to{box-shadow:inset -3px 0 #0000001f,0 0 #5aa9e61a}50%{box-shadow:inset -3px 0 #0000001f,0 0 0 5px #5aa9e647}}@keyframes confettiFall{0%{transform:translateY(0) rotate(0);opacity:0}10%{opacity:.9}to{transform:translateY(105dvh) rotate(540deg);opacity:0}}@keyframes openBox{0%{transform:scale(.7) rotate(-4deg)}45%{transform:scale(1.12) rotate(4deg)}to{transform:scale(1) rotate(0)}}@media (prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
