:root{font-synthesis:none;color:#274d57;background:#10363f;font-family:Hiragino Maru Gothic ProN,Yu Gothic,sans-serif;font-weight:600}*{box-sizing:border-box}body{margin:0}button,input,textarea{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer;touch-action:manipulation;color:inherit;background:#e8eadf;border:0;border-radius:15px;min-height:44px;padding:12px 14px;font-weight:800;transition:transform .15s,filter .15s}button:active{transform:translateY(2px)}button:disabled{opacity:.48;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible{outline-offset:3px;outline:3px solid #e7aa3b}h1:focus{outline:none}h1,h2,p{margin:0}a{color:inherit}.magirekomi{background:radial-gradient(at top,#2a6770,#0b2d36 85%);min-height:100svh}.game-shell{background:#fbf4e5;width:min(100%,470px);min-height:100svh;margin:auto;padding:14px 12px 20px;box-shadow:0 0 100px #0003}.screen-title,.screen-summary{background:#103b44;padding:0}.eyebrow{letter-spacing:1.5px;text-transform:uppercase;color:#82958d;font-size:10px}.primary,.gold{color:#3d4b42;background:linear-gradient(160deg,#ffdd83,#eeb453);box-shadow:0 4px #bd8335,0 6px 15px #87683224}.primary{color:#fffdf0;background:linear-gradient(150deg,#f9a876,#e67e59);width:100%;box-shadow:0 4px #bf6344}.teal{color:#fff8db;background:linear-gradient(145deg,#3f9097,#286870);box-shadow:0 4px #174c57}.secondary{color:#346770;background:#e7eee5}.quiet{box-shadow:none;background:0 0;font-size:12px}.action-row{gap:8px;display:flex}.action-row>button{flex:1;min-width:0}.action-row>.secondary{flex:0 0 34%;font-size:12px}.micro{color:#738078;text-align:center;margin-top:10px;font-size:11px;line-height:1.65}.instruction{text-align:center;margin-bottom:10px;font-size:12px;line-height:1.7}.save-warning{color:#745733;background:#fff0ca;border-radius:12px;margin:12px;padding:10px 14px;font-size:12px;line-height:1.6}.hero{isolation:isolate;color:#fff6d9;background:#103d47;height:min(900px,100svh - 12px);min-height:650px;position:relative;overflow:hidden}.hero-art{object-fit:cover;object-position:center;z-index:-3;width:100%;height:100%;animation:12s ease-in-out infinite alternate hero-breathe;position:absolute;inset:0}.hero:after{content:"";z-index:-2;background:linear-gradient(#0a344644 0%,#0000 30% 61%,#082f3be8 80%,#082f3b 100%);position:absolute;inset:0}.hero-copy{text-align:center;position:absolute;top:6%;left:4%;right:4%}.hero-copy p{letter-spacing:5px;color:#dbcca0;font-size:10px}.hero-copy p span{letter-spacing:0;border:1px solid #d9c59270;border-radius:50%;margin-left:7px;padding:6px;display:inline-block}.hero h1{letter-spacing:1px;color:#fff1b2;text-shadow:0 3px #be862d,0 6px 14px #032733;margin:15px 0 10px;font-size:clamp(30px,8.8vw,43px);line-height:1.35}.hero h1 small{letter-spacing:11px;color:#f9d178;margin-left:11px;font-size:20px;display:block}.hero-tagline{letter-spacing:2px;color:#f2e5c4;font-size:12px}.hero-actions{gap:12px;display:grid;position:absolute;bottom:2.8%;left:6%;right:6%}.hero-actions>.gold{min-height:44px}.mode-buttons{gap:12px;display:flex}.mode-buttons button{border:1px solid #fff1bc50;flex:1;min-height:74px;padding:15px 7px}.mode-buttons b{letter-spacing:2px;font-size:21px;display:block}.mode-buttons small{white-space:nowrap;letter-spacing:0;margin-top:7px;font-size:10px;font-weight:600;display:block}.hero-links{justify-content:center;align-items:center;gap:2px;font-size:11px;display:flex}.hero-links button{min-height:36px;padding:7px 10px;font-size:11px}.hero-links a{padding:10px;text-decoration:none}.best{text-align:center;letter-spacing:1px;color:#dddfc7;font-size:10px}.load-status{text-align:center;color:#c5d9ce;min-height:14px;font-size:10px}.hero-beam{filter:blur(8px);z-index:-1;background:linear-gradient(90deg,#0000,#fff0a517,#0000);width:100%;height:53%;animation:8s ease-in-out infinite alternate beam;position:absolute;top:17%;left:40%;transform:rotate(32deg)}.hero-dust{pointer-events:none;z-index:-1;position:absolute;inset:0}.hero-dust i{left:var(--x);top:var(--y);width:3px;height:3px;animation:dust 6s var(--delay) ease-in-out infinite alternate;background:#ffe393;border-radius:50%;position:absolute;box-shadow:0 0 7px #ffe393}.game-header{align-items:center;gap:10px;min-height:47px;margin:1px 0 13px;display:flex}.game-header h1{margin-top:3px;font-size:18px;line-height:1.4}.icon-button{background:#e8e6d6;flex-shrink:0;width:38px;min-height:38px;padding:8px}.progress{gap:4px;margin-left:auto;display:flex}.progress span{color:#939780;background:#e8e3d1;border-radius:50%;place-items:center;width:23px;height:23px;font-size:11px;display:grid}.progress .won{color:#fff;background:#e7b650}.progress .lost{color:#fff;background:#d9a48a}.room-stage{aspect-ratio:2/3;isolation:isolate;background:#e6ca98;border-radius:22px;width:min(100%,350px);margin:0 auto;position:relative;overflow:hidden;box-shadow:0 6px 22px #88674120}.room-stage canvas{touch-action:manipulation;width:100%;height:100%;display:block}.scene-vignette{border-radius:inherit;pointer-events:none;position:absolute;inset:0;box-shadow:inset 0 0 35px #6e54201c}.control-card{background:#fffcf3;border:1px solid #e8e3cf;border-radius:21px;margin:12px auto 0;padding:13px;box-shadow:0 5px 12px #826b2910}.spot-options{grid-template-columns:repeat(4,1fr);gap:5px;margin-bottom:9px;display:grid}.spot-options button{background:#f6f1e4;border:2px solid #0000;min-width:0;padding:3px 2px 7px;font-size:10px;line-height:1.4}.spot-options img{object-fit:contain;width:100%;height:38px;margin:3px auto;display:block}.spot-options button:first-child img{object-fit:cover;object-position:left;width:35px}.spot-options [aria-pressed=true],.pose-options [aria-pressed=true]{background:#eaf3e8;border-color:#42949c}.pose-options{grid-template-columns:repeat(3,1fr);gap:6px;margin-bottom:10px;display:grid}.pose-options button{background:#f0efe4;border:2px solid #0000;justify-content:center;align-items:center;gap:3px;padding:2px 5px;font-size:11px;display:flex}.pose-options canvas{width:33px;height:33px}.painting{background:linear-gradient(#f2e9d080,#fff9e880),url(/524pop-play/assets/room-Cqz4oVZP.webp) 50%/cover;border-radius:25px;padding:12px;overflow:hidden}.target-color{background:#fffdf0e8;border-radius:15px;align-items:center;gap:10px;padding:7px 10px;font-size:12px;display:flex}.target-color img{object-fit:contain;width:42px;height:42px}.target-color>div{flex:1;gap:4px;display:grid}.target-color span{color:#788378;font-size:10px}.target-color button{background:#deeee1;min-height:38px;padding:8px;font-size:11px}.paint-paper{background:#fffbeeef;border-radius:48% 46% 44% 47%;width:min(100%,310px);margin:12px auto 3px;padding:15px 10px 18px;box-shadow:0 7px 15px #85775424}.paint-paper canvas{aspect-ratio:1;touch-action:none;cursor:crosshair;width:100%;display:block}.paint-paper p{text-align:center;color:#869078;margin-top:-2px;font-size:10px;line-height:1.5}.palette{gap:5px;margin-bottom:10px;display:flex}.palette button{background:0 0;border-radius:10px;flex:1;min-width:0;padding:3px 0}.palette i{background:var(--pigment);border:3px solid #fff9e8;border-radius:45% 49% 44% 43%;outline:2px solid #0000;place-items:center;width:38px;height:36px;margin:0 auto 7px;display:grid;box-shadow:inset 1px -3px 3px #31494318,0 2px 2px #8a794520}.palette [aria-pressed=true] i{outline-color:#348c96;transform:translateY(-2px)}.palette span{opacity:0;color:#fffdf4;font-size:19px;font-style:normal}.assist .palette span{opacity:1}.palette small{font-size:10px}.paint-tools{gap:6px;margin-bottom:11px;display:flex}.paint-tools button{flex:1;min-height:38px;padding:9px 3px;font-size:11px}.depth{align-items:center;gap:9px;margin:9px 3px 15px;font-size:12px;display:flex}.depth span{white-space:nowrap}.depth input{accent-color:#3c9299;width:100%;min-height:36px}.search-hud,.find-hud{text-align:center;background:#fffbecec;border-radius:30px;padding:10px 5px;font-size:13px;position:absolute;top:3%;left:5%;right:5%;box-shadow:0 3px 12px #72562f20}.finder canvas{cursor:crosshair}.accessible-find{text-align:center;margin:12px 0 0;font-size:11px}.accessible-find summary{cursor:pointer;min-height:36px;padding:8px}.named-spots{grid-template-columns:1fr 1fr;gap:6px;display:grid}.named-spots button{font-size:11px}.round-result{text-align:center}.round-result h2{color:#d28441;margin:5px 0;font-size:28px}.result-reason{font-size:13px;line-height:1.6}.round-stats{justify-content:center;align-items:center;gap:25px;margin:7px 0;display:flex}.round-stats>strong{color:#397f89;font-size:35px}.round-stats small{margin-left:3px;font-size:12px}.round-stats>span{color:#7a8979;text-align:left;font-size:11px;line-height:1.8}.round-stats>span b{color:#528177;font-size:21px}.round-stats>span small{margin:0;font-size:10px;display:block}.round-result .primary{margin-top:12px}.result-scene{width:min(100%,310px);animation:.5s ease-out reveal-pop}.result-scene.success{box-shadow:0 0 30px #e8bc5c60}.screen-result .game-header{margin-bottom:9px}.summary-scene{isolation:isolate;color:#fff2d5;min-height:100svh;position:relative;overflow:hidden}.summary-art{object-fit:cover;opacity:.3;z-index:-2;width:100%;height:100%;position:absolute;inset:0}.summary-scene:after{content:"";z-index:-1;background:linear-gradient(#103d47a8,#0d333cea);position:absolute;inset:0}.summary-content{text-align:center;gap:11px;padding:25px 24px 30px;display:grid}.summary-content .eyebrow{color:#d2cda9}.badge-art{object-fit:contain;filter:drop-shadow(0 0 20px #ffcf5550);justify-self:center;width:200px;height:200px;animation:.7s ease-out reveal-pop}.summary-content h1{color:#ffe398;font-size:31px}.total-score{color:#fff6dc;text-shadow:0 3px #b68a36;font-size:63px;line-height:1.1}.total-score small{margin-left:8px;font-size:20px}.summary-content>p{font-size:12px}.result-list{grid-template-columns:repeat(3,1fr);gap:8px;margin:8px 0;display:grid}.result-list>div{background:#fff4d714;border:1px solid #e3d39233;border-radius:14px;gap:8px;padding:14px 3px;font-size:11px;display:grid}.result-list b{color:#f5d990;font-size:12px}.result-list strong{font-size:19px}.summary-content .micro{color:#c6d5bc;margin-top:0}.summary-content>.gold{padding:16px 8px;font-size:16px}.share-screen,.paper-screen{padding:18px 7px}.share-screen h1,.paper-screen h1{margin:8px 0 15px;font-size:26px}.share-screen>p{font-size:12px;line-height:1.7}.card-preview{text-align:center;min-height:60px;margin:16px auto}.card-preview img{border-radius:16px;width:min(100%,330px);margin:auto;display:block;box-shadow:0 7px 20px #40656c30}.share-screen label{margin:20px 0 8px;font-size:12px;display:block}.share-screen textarea{resize:none;color:#45636b;background:#fffdf5;border:1px solid #d5ddd3;border-radius:13px;width:100%;padding:13px;font-size:12px;line-height:1.8;display:block;overflow:hidden}.share-screen>button{width:100%;margin-top:10px}.share-screen .action-row button{flex:1;font-size:12px}.paper-screen>p{font-size:13px;line-height:1.85}.paper-screen h2{margin:22px 0 10px;font-size:18px}.paper-screen>.primary{margin-top:24px}.lesson{background:#fffdf5;border:1px solid #e6e6d4;border-radius:18px;align-items:center;gap:13px;margin:12px 0;padding:12px;display:flex}.lesson img{object-fit:contain;width:63px;height:82px}.lesson:first-of-type img{object-fit:cover;object-position:left}.lesson b{font-size:13px}.lesson p{margin-top:8px;font-size:12px;line-height:1.7}.setting{border-bottom:1px solid #dedfce;justify-content:space-between;align-items:center;gap:15px;padding:24px 2px;font-size:15px;display:flex}.setting small{margin-top:8px;font-size:11px;font-weight:400;display:block}.setting input{accent-color:#348d93;width:23px;height:23px}footer{justify-content:center;gap:14px;margin-top:8px;display:flex}footer button{min-height:35px;padding:6px;font-size:10px}.modal-backdrop{z-index:99;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);background:#0b354abf;place-items:center;padding:20px;display:grid;position:fixed;inset:0}.pause-dialog{text-align:center;background:#fff6e3;border:2px solid #f9d988;border-radius:26px;gap:15px;width:min(100%,350px);padding:25px;display:grid;box-shadow:0 10px 60px #0005}.pause-dialog h2{font-size:25px}.pause-dialog p{font-size:12px;line-height:1.8}.reduced *,.reduced :before,.reduced :after{scroll-behavior:auto!important;transition:none!important;animation:none!important}.reduced .hero-beam,.reduced .hero-dust{display:none}@keyframes hero-breathe{to{transform:scale(1.035)translateY(-.4%)}}@keyframes beam{to{opacity:.35;transform:rotate(22deg)translate(-15%)}}@keyframes dust{to{opacity:.2;transform:translate(7px,-28px)}}@keyframes reveal-pop{0%{opacity:.4;transform:translateY(8px)scale(.94)}70%{transform:scale(1.02)}to{opacity:1;transform:scale(1)}}@media (width<=350px){.game-shell{padding:10px 9px 14px}.screen-title,.screen-summary{padding:0}.game-header{gap:7px}.game-header h1{font-size:16px}.progress span{width:20px;height:20px;font-size:10px}.control-card{padding:10px}.spot-options button{font-size:9px}.pose-options button{padding:1px;font-size:10px}.pose-options canvas{width:28px;height:28px}.hero{min-height:620px}.hero-copy{top:5%}.hero h1{font-size:30px}.hero-actions{gap:10px;left:5%;right:5%}.mode-buttons{gap:8px}.mode-buttons b{font-size:18px}.mode-buttons small{font-size:9px}.palette i{width:34px;height:33px}.primary{font-size:13px}.target-color{padding:6px}.target-color button{font-size:10px}.paint-paper p{font-size:9px}.summary-content{padding:22px 18px}.badge-art{width:170px;height:170px}.total-score{font-size:54px}}.screen-place .room-stage{width:min(100%,66.67svh - 233.345px);min-width:230px}.screen-find .action-row>button{white-space:nowrap;flex:1;font-size:12px}.screen-find .room-stage{width:min(100%,66.67svh - 190.01px);min-width:230px}.pause-button{min-width:44px;min-height:44px}
