:root{color:#294354;background:#fff8df;font-family:Hiragino Maru Gothic ProN,"M PLUS Rounded 1c",Yu Gothic,sans-serif;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;--ink: #294354;--cream: #fff8df;--orange: #ff7a4e;--yellow: #ffd653;--green: #53b779;--blue: #56b9d5}*{box-sizing:border-box}html,body,#root{width:100%;min-width:320px;min-height:100%;margin:0}body{overflow:hidden}button{color:inherit;font:inherit;border:0;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation}button:focus-visible{outline:5px solid #355dff;outline-offset:3px}.app{position:relative;width:100%;height:100dvh;overflow:hidden}.app--intro{display:grid;grid-template-rows:auto minmax(0,1fr);padding:clamp(10px,1.8vw,24px) clamp(18px,3vw,42px) clamp(18px,3vw,42px);background:radial-gradient(circle at 10% 12%,rgba(255,220,106,.95) 0 6%,transparent 6.2%),radial-gradient(circle at 91% 82%,rgba(103,205,189,.7) 0 9%,transparent 9.2%),linear-gradient(145deg,#fff3c5,#fffaf0 44%,#dcf7ee)}.intro-home-bar{position:relative;z-index:3;display:flex;align-items:center;width:min(1180px,96vw);min-height:clamp(54px,7dvh,64px);margin:0 auto}.site-home-button{display:inline-flex;align-items:center;gap:8px;min-height:48px;padding:7px 15px 7px 11px;border:2px solid rgba(255,255,255,.9);border-radius:17px;color:#355d52;background:#ffffffe6;box-shadow:0 6px #5d8b7b38,0 10px 24px #3e655724;font-size:clamp(.9rem,1.5vw,1.05rem);font-weight:900;transition:box-shadow .12s ease,transform .12s ease}.site-home-button svg{width:30px;height:30px;fill:currentColor}.site-home-button:active{transform:translateY(4px);box-shadow:0 2px #5d8b7b38,0 5px 12px #3e65571f}.bubble{position:absolute;border:3px solid rgba(255,255,255,.65);border-radius:50%;pointer-events:none}.bubble--one{top:6%;right:13%;width:54px;height:54px;box-shadow:74px 45px 0 -12px #ffffff73}.bubble--two{bottom:7%;left:8%;width:34px;height:34px;box-shadow:66px -32px 0 -8px #ffffff80}.intro-card{position:relative;place-self:center;display:grid;grid-template-columns:minmax(310px,.95fr) minmax(300px,1.05fr);gap:clamp(22px,4vw,64px);align-items:center;width:min(1180px,96vw);max-height:calc(100dvh - 100px);padding:clamp(24px,4vw,58px);border:3px solid rgba(255,255,255,.8);border-radius:clamp(30px,4vw,52px);background:#ffffffd1;box-shadow:0 30px 70px #4d68502e;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}.intro-copy{position:relative;z-index:2;display:flex;flex-direction:column;align-items:flex-start}.brand-mark{position:absolute;top:-8px;right:4px;display:grid;place-items:center;width:clamp(64px,8vw,92px);aspect-ratio:1;border-radius:25px;color:#fff;background:linear-gradient(145deg,#ff9872,#ff6a4c);box-shadow:0 14px #e7513b,0 18px 25px #e2533b3d;transform:rotate(5deg)}.brand-mark span{font-size:clamp(2rem,4vw,3.2rem);transform:rotate(-5deg)}.eyebrow{margin:0 0 2px;color:#55816a;font-size:clamp(.82rem,1.5vw,1rem);font-weight:800;letter-spacing:.15em}.intro-copy h1{margin:0;color:var(--ink);font-size:clamp(3.2rem,8vw,6.2rem);font-weight:900;line-height:1;letter-spacing:-.06em}.intro-lead{margin:clamp(14px,2.3vh,24px) 0;color:#526977;font-size:clamp(1.05rem,2.1vw,1.45rem);font-weight:700;line-height:1.65}.feature-list{display:flex;flex-wrap:wrap;gap:8px}.feature-list span{display:inline-flex;align-items:center;min-height:40px;padding:6px 12px 6px 8px;border:2px solid #e7eee8;border-radius:999px;color:#466372;background:#fff;font-size:clamp(.75rem,1.4vw,.92rem);font-weight:800}.feature-list b{margin-right:5px;font-size:1.15rem}.time-picker{display:grid;grid-template-columns:auto auto minmax(100px,auto) auto;align-items:center;gap:10px;margin:clamp(16px,2.4vh,26px) 0}.time-picker__label{margin-right:4px;color:#486575;font-size:1rem;font-weight:900}.time-picker strong{text-align:center;font-size:clamp(1.6rem,3vw,2.15rem);font-weight:900}.time-picker small,.moves-box small,.progress-box small{margin-left:3px;font-size:.55em}.round-button{display:grid;place-items:center;width:50px;height:50px;border:2px solid #dce8df;border-radius:50%;background:#fff;box-shadow:0 7px #d8e2dc;font-size:1.55rem;font-weight:900;transition:transform .12s ease,box-shadow .12s ease}.round-button:active:not(:disabled){transform:translateY(5px);box-shadow:0 2px #d8e2dc}.round-button:disabled{cursor:default;opacity:.35}.start-button{display:flex;align-items:center;justify-content:center;gap:22px;min-width:min(100%,310px);min-height:76px;padding:10px 18px 10px 34px;border-radius:26px;color:#fff;background:linear-gradient(145deg,#ff8b5d,#ff6847);box-shadow:0 12px #df4e38,0 18px 30px #e04f3847;font-size:clamp(1.5rem,3vw,2rem);font-weight:900;transition:transform .12s ease,box-shadow .12s ease}.start-button b{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;color:#ef5b3e;background:#fff;font-size:1.1rem}.start-button:active{transform:translateY(7px);box-shadow:0 5px #df4e38,0 10px 18px #e04f3838}.intro-preview{position:relative;display:grid;place-items:center;min-width:0}.sample-board{display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(4px,.7vw,8px);width:min(45vw,58dvh,500px);max-width:100%;aspect-ratio:1;padding:clamp(8px,1.2vw,13px);border:clamp(8px,1.4vw,15px) solid #fff;border-radius:clamp(26px,4vw,44px);background:#fff;box-shadow:0 25px 50px #37656c38;transform:rotate(1.5deg)}.sample-piece{border-radius:clamp(8px,1.1vw,14px);background-repeat:no-repeat;background-size:300% 300%;box-shadow:inset 0 0 0 2px #ffffff8c}.sample-piece--1,.sample-piece--9{transform:rotate(-2deg)}.sample-piece--3,.sample-piece--7{transform:rotate(2deg)}.preview-caption{position:absolute;right:2%;bottom:4%;display:grid;padding:9px 20px;border:4px solid white;border-radius:18px;color:#fff;background:#4cad7a;box-shadow:0 8px 18px #26694640;text-align:center;transform:rotate(-4deg)}.preview-caption span{font-size:.75rem;font-weight:800}.preview-caption strong{font-size:clamp(1rem,2vw,1.35rem)}.preview-spark{position:absolute;z-index:2;color:#ffcf48;font-size:2.5rem}.preview-spark--one{top:-6%;right:2%;transform:rotate(14deg)}.preview-spark--two{bottom:13%;left:-1%;color:#68cbb0;font-size:1.3rem}.app--game{display:grid;grid-template-rows:auto minmax(0,1fr);padding:12px clamp(12px,2vw,28px) clamp(12px,2vw,22px);background:radial-gradient(circle at 8% 78%,rgba(255,215,97,.38),transparent 20%),radial-gradient(circle at 92% 22%,rgba(93,200,183,.3),transparent 21%),linear-gradient(150deg,#fffaf0,#effaf3)}.game-header{z-index:3;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:22px;min-height:68px;max-width:1440px;width:100%;margin:0 auto 8px}.game-brand{display:flex;align-items:center;gap:10px}.game-brand>span{display:grid;place-items:center;width:50px;height:50px;border-radius:17px;background:#ff7952;box-shadow:0 5px #dc4f38;font-size:1.75rem}.game-brand div{display:grid}.game-brand small{color:#648174;font-size:.68rem;font-weight:800;letter-spacing:.08em}.game-brand strong{font-size:clamp(1.35rem,2.3vw,1.85rem);font-weight:900;line-height:1.1}.game-instruction{justify-self:center;margin:0;padding:8px 22px;border-radius:999px;color:#4d6875;background:#ffffffd1;box-shadow:0 5px 18px #42615914;font-size:clamp(.88rem,1.55vw,1.08rem);font-weight:800}.quit-button{min-height:48px;padding:0 19px;border:2px solid #e1e8e3;border-radius:16px;background:#fff;box-shadow:0 5px #d8dfda;font-weight:900}.quit-button:active{transform:translateY(3px);box-shadow:0 2px #d8dfda}.game-layout{z-index:2;display:grid;grid-template-columns:minmax(150px,.68fr) minmax(340px,1.45fr) minmax(165px,.66fr);align-items:center;gap:clamp(10px,1.6vw,24px);width:min(1440px,100%);min-height:0;margin:0 auto}.reference-card,.status-card{align-self:center;min-width:0;padding:clamp(12px,1.5vw,20px);border:3px solid rgba(255,255,255,.9);border-radius:clamp(22px,2.7vw,34px);background:#ffffffc7;box-shadow:0 18px 42px #385b5424;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.panel-heading{display:flex;align-items:center;gap:10px;margin-bottom:12px}.panel-heading>span{display:grid;place-items:center;width:42px;height:42px;border-radius:14px;background:#ffe38b;font-size:1.35rem}.panel-heading div{display:grid}.panel-heading small{color:#6e827c;font-size:clamp(.66rem,1vw,.8rem);font-weight:800}.panel-heading strong{font-size:clamp(1.15rem,2vw,1.55rem);font-weight:900;line-height:1.05}.reference-card img{display:block;width:100%;border:7px solid #fff;border-radius:clamp(14px,2vw,24px);box-shadow:0 10px 22px #375b602b}.reference-card p{margin:12px 0 0;overflow:hidden;font-size:clamp(1rem,2vw,1.5rem);font-weight:900;text-align:center;text-overflow:ellipsis;white-space:nowrap}.puzzle-area{display:grid;place-items:center;min-width:0;min-height:0}.puzzle-board{display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,minmax(0,1fr));gap:clamp(4px,.6vw,8px);width:min(67dvh,44vw,620px);aspect-ratio:1;padding:clamp(8px,1.1vw,14px);border:clamp(8px,1.1vw,14px) solid #fff;border-radius:clamp(24px,3vw,38px);background:#fff;box-shadow:0 22px 55px #32596038,0 8px #dbe8e4}.puzzle-piece{position:relative;width:100%;height:100%;min-width:0;min-height:0;padding:0;overflow:hidden;border:3px solid transparent;border-radius:clamp(8px,1.2vw,15px);background-color:#e8f2ef;box-shadow:inset 0 0 0 1px #fff6;contain:layout paint;isolation:isolate;transition:box-shadow .13s ease,border-color .13s ease,filter .13s ease}.puzzle-piece:not(:disabled):active{filter:brightness(.94)}.puzzle-piece.is-selected{z-index:2;border-color:#ffb32c;box-shadow:0 0 0 5px #ffe58c,0 8px 20px #b97e1247}.puzzle-piece:disabled{cursor:default}.puzzle-piece__image{position:absolute;z-index:0;display:block;width:300%;max-width:none;height:300%;object-fit:fill;pointer-events:none;-webkit-user-select:none;user-select:none;-webkit-user-drag:none}.correct-mark{position:absolute;z-index:1;top:5px;right:5px;display:grid;place-items:center;width:clamp(22px,3vw,32px);aspect-ratio:1;border:3px solid #fff;border-radius:50%;color:#fff;background:#4eb879;box-shadow:0 3px 8px #25694440;font-size:clamp(.72rem,1.4vw,1rem);font-weight:900}.tap-hint{min-height:30px;margin:14px 0 0;padding:6px 18px;border-radius:999px;color:#526f7a;background:#fffc;font-size:clamp(.8rem,1.4vw,1rem);font-weight:900;text-align:center}.status-card{display:grid;gap:12px}.timer-box,.progress-box,.moves-box{display:grid;padding:clamp(12px,1.6vw,18px);border-radius:22px;text-align:center}.timer-box{color:#fff;background:linear-gradient(145deg,#56bbd4,#419ebd);box-shadow:0 8px #338ca8}.timer-box.is-urgent{background:linear-gradient(145deg,#ff8c65,#ed5e51);box-shadow:0 8px #ce493f;animation:timer-pulse .9s ease-in-out infinite alternate}.timer-box>span,.progress-box>span,.moves-box>span{font-size:clamp(.72rem,1.2vw,.9rem);font-weight:800}.timer-box strong{margin:2px 0 8px;font-size:clamp(1.9rem,4vw,3.1rem);font-weight:900;letter-spacing:.03em;line-height:1}.timer-track{height:9px;overflow:hidden;border-radius:999px;background:#ffffff52}.timer-track i{display:block;height:100%;border-radius:inherit;background:#fff;transition:width .4s linear}.progress-box{background:#fff3bd;box-shadow:0 7px #ead88d}.progress-box strong,.moves-box strong{font-size:clamp(1.9rem,3.7vw,2.8rem);font-weight:900;line-height:1.2}.dot-progress{display:grid;grid-template-columns:repeat(3,10px);justify-content:center;gap:5px;margin-top:5px}.dot-progress i{width:10px;height:10px;border-radius:50%;background:#d9cb91}.dot-progress i.is-on{background:#f3ad2e}.moves-box{background:#dff3e7;box-shadow:0 7px #b9dcc7}.result-box{display:grid;place-items:center;padding:10px 2px 4px;text-align:center}.result-emoji{font-size:clamp(3rem,6vw,5rem);animation:result-bounce .65s cubic-bezier(.2,.8,.2,1.2) both}.result-box h2{margin:5px 0 2px;color:#e45e42;font-size:clamp(1.55rem,3vw,2.4rem);font-weight:900;line-height:1.05}.result-box--time h2{color:#4b94af}.result-box p{margin:8px 0 18px;color:#63777c;font-size:clamp(.78rem,1.3vw,.95rem);font-weight:800}.next-button,.home-button{width:100%;min-height:58px;border-radius:18px;font-weight:900}.next-button{display:flex;align-items:center;justify-content:center;gap:8px;color:#fff;background:linear-gradient(145deg,#ff8c5f,#ff6948);box-shadow:0 7px #db4f39;font-size:clamp(1rem,1.8vw,1.25rem)}.next-button:active{transform:translateY(4px);box-shadow:0 3px #db4f39}.home-button{margin-top:13px;color:#506b76;background:#edf3f0}.confetti{position:fixed;z-index:10;inset:0;overflow:hidden;pointer-events:none}.confetti i{--color: #ff6d55;position:absolute;top:-5%;left:calc(4% + var(--i) * 5.35%);width:11px;height:22px;border-radius:3px;background:var(--color);animation:confetti-fall 2.6s calc(var(--i) * -.07s) ease-in both}.confetti i:nth-child(4n+2){--color: #ffd14f;transform:rotate(40deg)}.confetti i:nth-child(4n+3){--color: #51bb86;transform:rotate(75deg)}.confetti i:nth-child(4n+4){--color: #4db6d2;transform:rotate(110deg)}@keyframes timer-pulse{to{transform:scale(1.025)}}@keyframes result-bounce{0%{opacity:0;transform:scale(.45) rotate(-12deg)}70%{transform:scale(1.14) rotate(5deg)}to{opacity:1;transform:scale(1) rotate(0)}}@keyframes confetti-fall{0%{opacity:1;translate:0 -4vh;rotate:0deg}to{opacity:.9;translate:calc((var(--i) - 8) * 1.2vw) 108vh;rotate:780deg}}@media(max-width:850px){.intro-card{grid-template-columns:minmax(300px,.95fr) minmax(280px,1.05fr);gap:24px;padding:28px}.brand-mark{top:0;right:0}.game-layout{grid-template-columns:minmax(132px,.62fr) minmax(320px,1.55fr) minmax(142px,.62fr);gap:10px}.reference-card,.status-card{padding:11px}.panel-heading>span{width:36px;height:36px}.puzzle-board{width:min(64dvh,43vw,520px)}}@media(max-height:680px){.intro-card{padding-top:20px;padding-bottom:20px}.intro-lead{margin:10px 0;line-height:1.45}.time-picker{margin:12px 0}.start-button{min-height:64px}.feature-list span{min-height:34px}.game-header{min-height:58px;margin-bottom:4px}.game-brand>span{width:44px;height:44px}.puzzle-board{width:min(64dvh,44vw,560px)}.tap-hint{margin-top:8px}}@media(max-width:680px){body{overflow:auto}.app{min-height:100dvh;height:auto;overflow:auto}.intro-card{grid-template-columns:1fr;max-height:none}.intro-preview{display:none}.game-header{grid-template-columns:1fr auto}.game-instruction{display:none}.game-layout{grid-template-columns:1fr}.reference-card{display:grid;grid-template-columns:auto 90px 1fr;align-items:center;gap:10px}.reference-card .panel-heading{margin:0}.reference-card img{width:90px}.reference-card p{margin:0}.puzzle-board{width:min(92vw,60dvh)}.status-card{grid-template-columns:repeat(3,1fr)}.result-box{grid-column:1 / -1}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
