:root{font-family:Noto Sans JP,sans-serif;color:#15372d;background:#f6f5ef;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;touch-action:manipulation}button:focus-visible,a:focus-visible{outline:3px solid #e39635;outline-offset:4px}.app{max-width:480px;min-height:100dvh;margin:auto;padding:calc(24px + env(safe-area-inset-top)) 24px calc(18px + env(safe-area-inset-bottom));display:flex;flex-direction:column}header{display:flex;align-items:center;justify-content:space-between;gap:12px}.brand{font-size:15px;font-weight:900;letter-spacing:1px;text-decoration:none;color:inherit}.brand span{color:#a9b6a5}.badge{font-size:8px;letter-spacing:1px;border:1px solid #cdd4c9;padding:6px 8px;border-radius:20px}.intro{padding-top:52px}.eyebrow{font-size:11px;font-weight:700;letter-spacing:2px;color:#66786d}h1{font-size:42px;line-height:1.4;letter-spacing:-2px;margin:16px 0}h1 em{font-style:normal;color:#df763e;font-size:64px}.lead{font-size:13px;line-height:1.9;color:#6a786f}.example{display:flex;align-items:center;justify-content:center;gap:10px;padding:24px 10px;margin:25px 0;background:#e9ede3;border-radius:16px}.example span{font-size:28px;font-weight:700}.example b{color:#82927d;font-size:19px}.example small{font-size:20px;font-weight:700}.primary{width:100%;border:0;border-radius:14px;background:#193f32;color:#fff;padding:19px 20px;font-weight:700;display:flex;justify-content:space-between;align-items:center;box-shadow:0 6px #d7dfd2}.primary:active{transform:translateY(2px)}.best{text-align:center;font-size:10px;letter-spacing:2px;margin:25px 0}.best strong{font-size:22px;margin-left:12px;letter-spacing:0}.best span{margin-left:4px;letter-spacing:0}.rules{border-top:1px solid #dce1d5;padding-top:14px}.rules h2{font-size:12px}.rules p{font-size:11px;line-height:1.9;color:#69786c}footer{margin-top:auto;padding-top:30px;text-align:center;font-size:8px;letter-spacing:2px;color:#8b968b}.play{padding-top:40px}.stats{display:flex;justify-content:space-between}.stats>div{display:flex;flex-direction:column}.stats span{font-size:10px;letter-spacing:2px;color:#788675}.stats strong{font-size:38px;font-variant-numeric:tabular-nums}.stats small{font-size:12px;margin-left:6px}.urgent{color:#cc603b}.timer{height:5px;background:#e0e6d9;margin-top:12px;border-radius:10px;overflow:hidden}.timer>div{height:100%;background:#db8854;transition:width .05s linear}.puzzle-label{text-align:center;margin-top:48px}.game-title{text-align:center;font-size:21px;letter-spacing:0}.puzzle{display:flex;justify-content:center;align-items:center;margin-top:34px}.pair{display:flex;align-items:center;gap:5px}.digit{font-size:36px;font-weight:700;width:35px;text-align:center}.slot{background:#e6ebdf;border:2px solid transparent;color:#45664e;width:40px;height:52px;border-radius:10px;font-size:24px;padding:0;margin-right:5px}.slot.selected{border-color:#dc8752;background:#fff9ed;box-shadow:0 0 0 3px #dc87521a}.target{text-align:center;font-size:24px;color:#809078;margin-top:14px}.target strong{color:#173d2e;font-size:42px}.feedback{min-height:42px;text-align:center;font-size:12px;margin:25px 0 16px;color:#657862;line-height:1.7}.operators{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.operators button{border:1px solid #ced8c7;border-bottom:4px solid #c8d2c1;border-radius:14px;background:#fff;height:76px;font-size:34px;color:#214635}.operators button:active{background:#e8eee0}.hint{text-align:center;font-size:10px;color:#8a9682;margin-top:20px}.result{text-align:center;padding-top:70px}.result h1{font-size:29px;letter-spacing:0}.result-score{margin:25px 0;background:#e9ede3;border-radius:24px;padding:25px}.result-score strong{display:block;font-size:88px;line-height:1.2}.result-score span{font-size:13px}.record{font-size:13px;margin-bottom:34px}.secondary{border:0;background:none;color:#657b67;font-size:12px;margin-top:24px;padding:10px}@media(max-width:350px){.app{padding-left:16px;padding-right:16px}.digit{width:29px;font-size:30px}.slot{width:34px;margin-right:3px}.pair{gap:3px}h1{font-size:36px}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}.bonus-space{height:24px;position:relative}.stats .time-bonus{display:inline-block;color:#276c42;background:#e2efd9;border-radius:20px;padding:3px 10px;font-size:14px;font-weight:900;letter-spacing:0;animation:bonus-pop .9s ease-out both}@keyframes bonus-pop{0%{opacity:0;transform:translateY(8px) scale(.8)}20%,75%{opacity:1;transform:translateY(0) scale(1)}to{opacity:0;transform:translateY(-10px)}}.gate-info{text-align:center;font-size:11px;color:#63735e}.gate-link{display:block;margin:10px auto}.gate-link:disabled{opacity:.55;cursor:default}.gate-clear{text-align:center;font-size:12px;color:#276c42}.gate-clear .secondary{margin-top:0}.memory{padding-top:25px}.phase-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.phase-heading h1{font-size:22px;letter-spacing:0}.phase-heading strong{font-size:42px;font-variant-numeric:tabular-nums}.phase-heading small{font-size:13px;margin-left:4px}.answer .phase-heading{color:#bb602d}.memory-guide{font-size:12px;min-height:20px}.memory-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;width:100%;margin:20px 0}.memory-cell{aspect-ratio:1;border-radius:8px;display:flex;align-items:center;justify-content:center;font-size:30px;border:1px solid transparent}.memory-cell.white{background:#fff;border-color:#b9c2b5}.memory-cell.black{background:#111}.memory-cell.blank{background:#aab1b4}.memory-cell.hidden{background:#dce2d5;border-color:#cbd3c3}.memory-cell.current{outline:4px solid #d87733;outline-offset:-2px;background:#fff0d9;color:#ab4d15;box-shadow:0 0 0 3px #e8b780}.memory-legend{display:flex;justify-content:space-around;font-size:11px}.answer-progress{text-align:center;font-size:13px}.memory-buttons{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.memory-buttons button{height:70px;font-size:20px;font-weight:700;border-radius:12px;border:1px solid #a5b39c;background:#fff}.memory-buttons button:nth-child(2){background:#111;color:#fff}.memory-buttons button:nth-child(3){background:#aab1b4;color:#17251c}.memory-result .result-score strong{font-size:52px}.trial-toggle{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:24px;font-size:12px;color:#657b67;cursor:pointer}.trial-toggle input{width:20px;height:20px;accent-color:#193f32}.flick-game{padding-top:15px}.flick-game h1{font-size:25px;letter-spacing:0;margin:8px 0}.flick-time{text-align:center;font-size:44px;font-weight:900;font-variant-numeric:tabular-nums}.flick-time small{font-size:14px;margin-left:6px}.flick-prompt{display:grid;grid-template-columns:repeat(10,1fr);gap:4px;margin:15px 0;font-size:24px;font-weight:700;text-align:center}.flick-prompt span{border-bottom:3px solid transparent;padding-bottom:4px}.flick-prompt .entered{color:#879682;background:#e2ebdc;border-radius:4px}.flick-prompt .current-char{color:#bb602d;border-color:#d87733;background:#fff0d9}.flick-keyboard{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;touch-action:none;user-select:none;-webkit-user-select:none}.flick-key{position:relative;height:72px;border:1px solid #bac8b4;border-bottom:4px solid #b8c7ae;border-radius:12px;background:#fff;color:#214635;touch-action:none;padding:0}.flick-key:active{background:#e9f0e1}.wa-key{grid-column:2}.key-center{font-size:25px;font-weight:700}.flick-key>span:not(.key-center){position:absolute;font-size:11px;color:#7a8971}.key-left{left:8px;top:28px}.key-right{right:8px;top:28px}.key-up{top:3px;left:50%;transform:translate(-50%)}.key-down{bottom:2px;left:50%;transform:translate(-50%)}.flick-preview{grid-column:1/-1;text-align:center;font-size:12px;min-height:20px;color:#687b5d}.flick-result strong{font-size:56px!important}@media(max-width:350px){.flick-prompt{font-size:20px}.flick-key{height:65px}}@media(max-height:730px){.flick-game{padding-top:5px}.flick-time{font-size:34px}.flick-key{height:62px}.flick-game .hint{margin-top:10px}.flick-game .answer-progress{margin:8px 0}}.puzzle-game{padding-top:8px}.puzzle-heading{display:flex;justify-content:space-between;align-items:center}.puzzle-heading h1{font-size:23px;letter-spacing:0;margin:8px 0}.puzzle-heading strong{font-size:36px;font-variant-numeric:tabular-nums}.puzzle-heading small{font-size:12px;margin-left:4px}.jigsaw-board{display:block;width:100%;max-height:48dvh;background:#768377;border:1px solid #768377;overflow:visible}.jigsaw-piece{fill:#e7dfcb;stroke:#8d8b7d;stroke-width:1.2;stroke-linejoin:round}.jigsaw-hole{fill:#556358;stroke:#394b3e;stroke-width:1.4;cursor:pointer}.jigsaw-hole:focus-visible{outline:none;stroke:#dd7639;stroke-width:5}.jigsaw-tray{display:grid;grid-template-columns:repeat(5,1fr);gap:4px;margin-top:14px;touch-action:none}.tray-piece{padding:0;border:2px solid transparent;background:transparent;border-radius:8px;touch-action:none;user-select:none;-webkit-user-select:none}.tray-piece svg{width:100%;display:block}.selected-piece{border-color:#d87733}.tray-empty{aspect-ratio:1}.jigsaw-drag{position:fixed;transform:translate(-50%,-50%);width:85px;height:85px;pointer-events:none;z-index:10;filter:drop-shadow(0 3px 3px #0004)}.puzzle-result strong{font-size:56px!important}.puzzle-game .hint{margin-top:10px}.jigsaw-board{width:min(100%,40dvh);max-height:none;margin-inline:auto}.returns-game .puzzle-label{margin-top:25px}.returns-title{font-size:25px!important;letter-spacing:0}.completion{border:1px solid #bcc8aa;border-radius:20px;padding:25px;margin:30px 0;background:#e9ede3}.completion strong{font-size:34px;color:#315634}.completion p{font-size:14px}.returns-result h1{font-size:26px}.jigsaw-board{width:min(100%,45dvh)}.jigsaw-tray{grid-template-columns:repeat(4,1fr);max-width:360px;margin-inline:auto}.tray-piece svg{max-height:72px}.tray-empty{height:72px;aspect-ratio:auto}.title-ten{font-size:64px;font-weight:900;color:#df763e;font-variant-numeric:lining-nums;letter-spacing:0}.mode-selector{display:flex;flex-direction:column;gap:12px;border:1px solid #ccd5c5;border-radius:14px;padding:14px;margin:18px 0;font-size:13px}.mode-selector legend{font-size:11px;color:#687b5d}.mode-selector label{display:flex;align-items:center;gap:8px;cursor:pointer}.mode-selector input{width:20px;height:20px;accent-color:#193f32}.practice-label{text-align:center;font-size:12px;color:#a65c2e;margin:14px 0 0}.clock-game{padding-top:10px}.clock-game h1{font-size:24px;letter-spacing:0}.analog-clock{display:block;width:min(100%,29dvh);margin:8px auto}.clock-face{fill:#fffdf6;stroke:#193f32;stroke-width:3}.clock-tick{stroke:#a2ad9c;stroke-width:1}.clock-tick.major{stroke:#193f32;stroke-width:2}.analog-clock text{font-size:17px;font-weight:700;fill:#193f32}.clock-hour{stroke:#193f32;stroke-width:7;stroke-linecap:round}.clock-minute{stroke:#193f32;stroke-width:3;stroke-linecap:round}.clock-question{text-align:center;font-size:13px;margin:10px 0}.angle-input{display:block;text-align:center;font-size:34px;font-weight:700;min-height:48px}.angle-input small{font-size:14px;margin-left:8px}.number-pad{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin:12px 0}.number-pad button{min-height:44px;background:#fff;border:1px solid #cbd4c5;border-radius:9px;font-size:20px;color:#193f32}.number-pad button:nth-child(10){font-size:13px}.clock-submit{padding:13px 20px}.clock-submit:disabled{opacity:.45;cursor:default}.jigsaw-tray{grid-template-columns:repeat(5,1fr)}.gate-start{padding-top:54px}.gate-start h1,.gate-start h1.returns-title{font-size:29px!important;letter-spacing:0;line-height:1.4;margin:16px 0}.gate-start .lead{margin-bottom:28px;line-height:1.9}.gate-start .mode-selector{text-align:left}.gate-start,.gate-start .eyebrow,.gate-start h1,.gate-start .lead{text-align:center;width:100%}.gate-start .eyebrow,.gate-start h1,.gate-start .lead{margin-left:auto;margin-right:auto}.gate-intro{padding-top:28px}.gate-intro-hero{position:relative;isolation:isolate;padding:40px 16px 30px;border:1px solid #dce2d1;border-radius:28px;background:radial-gradient(ellipse at 50% 0%,#fffdf5,#eff1e5 70%);overflow:hidden}.gate-intro-hero:before,.gate-intro-hero:after{content:"";position:absolute;z-index:-1;width:180px;height:180px;border:1px solid #d2dcc9;border-radius:50%;pointer-events:none}.gate-intro-hero:before{top:-120px;right:-50px;box-shadow:0 0 0 18px #d2dcc920,0 0 0 36px #d2dcc912}.gate-intro-hero:after{bottom:-145px;left:-80px;width:220px;height:220px;border-color:#dda77b50}.gate-intro-hero .eyebrow{font-size:11px;letter-spacing:4px;color:#72806b;margin-top:0}.gate-intro .gate-intro-hero h1{font-size:48px!important;font-weight:900;letter-spacing:2px;line-height:1.3;margin:16px auto 20px;color:#1c4232}.gate-intro-hero h1:after{content:"";display:block;width:28px;height:3px;margin:20px auto 0;border-radius:8px;background:#d58a56}.gate-intro .gate-intro-hero .lead{font-size:13px;line-height:2;margin-bottom:0;color:#63705e}.gate-intro .mode-selector{margin:24px 0 18px;background:#ffffff70;border-color:#d8dfd0;border-radius:16px;padding:16px;gap:14px}.gate-intro>.primary{padding:20px 24px;border-radius:16px;background:#1c4232;box-shadow:0 5px #d7dfd2,0 10px 22px #193f3210}.gate-intro>.primary span{font-size:21px;font-weight:400}.gate-intro .trial-toggle{margin-top:27px}.gate-intro .gate-info{margin:22px 0 16px;font-size:10px;line-height:1.8}.gate-intro .gate-link{width:100%;margin:9px 0;padding:14px 12px;border:1px solid #dce2d5;border-radius:12px;background:#fff5;font-size:12px}.gate-intro .gate-link:enabled:hover{background:#e9eee2;border-color:#b8c9aa}.gate-intro .gate-link:disabled{background:transparent;color:#6f7a68;opacity:.65}.gate-intro .best{margin:25px 0 0;padding:20px 0 0;border-top:1px solid #dce2d5;color:#77836e}.gate-intro .best strong{color:#254733;font-size:27px}@media(max-width:350px){.gate-intro .gate-intro-hero h1{font-size:40px!important}.gate-intro-hero{padding:30px 10px 24px}}.gate-intro>.gate-intro-hero+.primary{margin-top:24px}.gate-intro .gate-intro-hero .returns-title{font-size:30px!important;letter-spacing:0}@media(max-width:350px){.gate-intro .gate-intro-hero .returns-title{font-size:25px!important}}.mode-copy{display:flex;flex-direction:column;gap:5px;text-align:left}.mode-copy small{font-size:11px;line-height:1.6;color:#718067}.mode-selector input{flex-shrink:0}.app--compact-play{height:100dvh;min-height:0;padding:calc(8px + env(safe-area-inset-top)) 20px calc(8px + env(safe-area-inset-bottom));gap:4px}.app--compact-play>header,.app--compact-play>footer{display:none}.app--compact-play>.practice-label{margin:0;font-size:10px;line-height:16px;flex-shrink:0}.app--compact-play>section{flex:1;min-height:0}.app--compact-play>.play{display:flex;flex-direction:column;justify-content:center;gap:clamp(5px,1.2dvh,12px);padding-top:0}.app--compact-play .play .stats strong{font-size:32px;line-height:1.25}.app--compact-play .play .bonus-space{height:20px}.app--compact-play .play .timer{margin:0;min-height:5px;flex-shrink:0}.app--compact-play .play .puzzle-label,.app--compact-play .play .game-title,.app--compact-play .play .puzzle,.app--compact-play .play .target,.app--compact-play .play .hint{margin:0}.app--compact-play .play .game-title{font-size:20px;line-height:1.4}.app--compact-play .play .target{line-height:1.1}.app--compact-play .play .target strong{font-size:36px}.app--compact-play .play .feedback{margin:0;min-height:28px;display:flex;align-items:center;justify-content:center;line-height:1.5}.app--compact-play .play .operators button{height:clamp(48px,10dvh,72px)}.app--compact-play .play .gate-clear{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap}.app--compact-play .play .gate-clear .secondary{padding:6px;margin:0}.app--compact-play .play .hint{line-height:1.5}.app--compact-play>.clock-game{padding:0;display:grid;grid-template-rows:auto auto minmax(96px,1fr) auto auto auto auto;gap:clamp(3px,.7dvh,7px)}.app--compact-play .clock-game>.eyebrow{margin:0;line-height:16px}.app--compact-play .clock-game .puzzle-heading{gap:8px}.app--compact-play .clock-game h1{font-size:22px;margin:0;line-height:1.3}.app--compact-play .clock-game .puzzle-heading strong{font-size:32px;line-height:1.2}.app--compact-play .analog-clock{width:100%;height:100%;min-height:0;max-width:240px;margin:0 auto}.app--compact-play .clock-question{margin:0;font-size:12px;line-height:1.5;text-align:center}.app--compact-play .angle-input{min-height:0;font-size:30px;line-height:1.2}.app--compact-play .number-pad{gap:6px;margin:0}.app--compact-play .number-pad button{min-height:clamp(36px,6.5dvh,48px);padding:4px;font-size:20px}.app--compact-play .number-pad button:nth-child(10){font-size:13px}.app--compact-play .clock-submit{min-height:44px;padding:10px 18px;box-shadow:0 3px #d7dfd2;align-self:end}@media(max-width:350px){.app--compact-play{padding-left:14px;padding-right:14px}}.app--compact-play>.secondary{display:none}html.memory-viewport-locked{overflow:hidden;overscroll-behavior:none;touch-action:none}body.memory-viewport-locked{position:fixed;top:0;right:0;bottom:0;left:0;width:100%;height:100dvh;overflow:hidden;overscroll-behavior:none;touch-action:none}.app--compact-play>.memory{padding:0;display:flex;flex-direction:column;align-items:stretch;justify-content:center;gap:6px;overscroll-behavior:none;touch-action:none}.app--compact-play .memory>.eyebrow{margin:0;line-height:16px}.app--compact-play .memory .phase-heading h1{font-size:21px;line-height:1.3;margin:0}.app--compact-play .memory .phase-heading strong{font-size:34px;line-height:1.2}.app--compact-play .memory-guide{margin:0;min-height:0;font-size:12px;line-height:18px}.app--compact-play .memory-grid{width:min(100%,calc(100dvh - 330px - env(safe-area-inset-top) - env(safe-area-inset-bottom)));align-self:center;aspect-ratio:1;flex-shrink:0;gap:6px;margin:0}.app--compact-play .memory-cell{min-width:0;min-height:0;aspect-ratio:auto}.app--compact-play .memory .answer-progress{margin:0;font-size:12px;line-height:18px}.app--compact-play .memory-buttons button{height:clamp(48px,8dvh,60px);min-height:48px;touch-action:none}.app--compact-play .memory .hint{margin:0;line-height:15px}.app--compact-play .memory-legend{min-height:18px;align-items:center}.app--compact-play .memory-grid{grid-template-rows:repeat(4,minmax(0,1fr))}
