@charset "UTF-8";
:root{--paper:#f6efdf;--ink:#244f48;--muted:#7b806c;--red:#b94b35;--red-dark:#963c2b;--gold:#b79350;--line:#d7ceb6;--serif:"Yu Mincho","Hiragino Mincho ProN","Noto Serif JP",serif;--sans:"Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif;color-scheme:light;font-family:var(--sans);color:var(--ink);background:#e8e3d6;font-synthesis:none}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}body{margin:0;min-height:100svh;display:flex;align-items:center;justify-content:center;gap:clamp(24px,6vw,100px);overflow:hidden}button,a{font:inherit}button{cursor:pointer}button,a{-webkit-user-select:none;user-select:none}button:focus-visible,a:focus-visible{outline:3px solid var(--ink);outline-offset:5px}[hidden]{display:none!important}.game-shell{isolation:isolate;position:relative;overflow:hidden;width:min(100vw,460px);height:100svh;max-height:880px;min-height:420px;background:var(--paper);touch-action:none;box-shadow:0 22px 100px #4b49301d}.game-shell:after{position:absolute;inset:0;z-index:8;pointer-events:none;content:"";opacity:.16;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23a79e86' opacity='.3' filter='url(%23n)' d='M0 0h180v180H0z'/%3E%3C/svg%3E")}#scene{position:absolute;inset:0;width:100%;height:100%;z-index:0;display:block}.edge-frame{position:absolute;inset:12px;border:1px solid #ad956533;pointer-events:none;z-index:1}.edge-frame:before,.edge-frame:after{content:"✦";position:absolute;top:-9px;color:var(--gold);font-size:12px;background:var(--paper);padding:0 5px}.edge-frame:before{left:12px}.edge-frame:after{right:12px}.screen{position:absolute;inset:0;z-index:2}.menu-top{text-align:center;padding-top:max(32px,env(safe-area-inset-top))}.brand-line{display:flex;align-items:center;justify-content:center;gap:20px;font-size:10px;letter-spacing:.22em;color:var(--muted)}.tiny-flower{color:var(--gold);font-size:16px}.eyebrow{font-size:10px;font-weight:600;letter-spacing:.2em}.menu-top>.eyebrow{color:var(--gold);margin:25px 0 7px;font-size:9px;letter-spacing:.32em}h1,h2,p{margin:0}h1{position:relative;font-family:var(--serif);font-weight:700;font-size:49px;letter-spacing:.02em;line-height:1.35;display:inline-block}h1 span{font-size:43px}h1 i{position:absolute;font-family:var(--serif);font-style:normal;font-size:12px;line-height:1.2;letter-spacing:0;font-weight:400;color:var(--red);border:1px solid var(--red);padding:4px 3px;right:-23px;top:10px;transform:rotate(7deg)}.tagline{font-family:var(--serif);line-height:1.85;font-size:13px;letter-spacing:.12em;margin-top:10px}.menu-bottom{position:absolute;bottom:max(22px,env(safe-area-inset-bottom));left:30px;right:30px;text-align:center}.best-line{display:flex;align-items:baseline;justify-content:center;gap:8px;font-size:10px;letter-spacing:.08em;margin-bottom:15px}.best-line strong{font-family:Georgia,serif;font-weight:400;font-size:24px}.button{border:0;min-height:54px;border-radius:4px;display:flex;align-items:center;justify-content:space-between;gap:10px;text-align:center;padding:15px 22px;font-size:14px;font-weight:600;letter-spacing:.08em;text-decoration:none;touch-action:manipulation;transition:background .15s,transform .15s}.button:active{transform:translateY(2px)}.primary{width:100%;background:var(--red);color:#fff7e8;box-shadow:0 4px 0 var(--red-dark)}.primary:hover{background:var(--red-dark)}.button-arrow{font-size:22px;font-weight:400}.text-button{background:transparent;border:0;color:var(--ink);font-size:11px;letter-spacing:.1em;padding:14px 12px;min-height:44px;touch-action:manipulation}.text-button span{margin-left:8px}.device-note{font-size:9px;letter-spacing:.06em;color:var(--muted);margin-top:0}.hud{position:absolute;inset:0;z-index:2;pointer-events:none;padding:30px 30px 0;padding-top:max(30px,env(safe-area-inset-top))}.hud-top{display:flex;justify-content:space-between;align-items:flex-start}.ball-count>.eyebrow{font-size:10px}.ball-count>div{display:flex;align-items:baseline;gap:8px;margin-top:-5px}.ball-count strong{font-family:Georgia,serif;font-size:62px;font-weight:400;line-height:1.15}.ball-count>div>span{font-size:13px}.hud-right{display:flex;align-items:center;gap:12px}.record-label{font-size:10px;white-space:nowrap;letter-spacing:.04em}.record-label strong{font-size:18px;font-family:Georgia,serif;font-weight:400;padding:0 3px}.icon-button{border:1px solid var(--line);border-radius:50%;width:44px;height:44px;background:#f6efdfb8;color:var(--ink);font-size:19px;pointer-events:auto;touch-action:manipulation}.level-progress{height:3px;margin-top:12px;border-radius:2px;background:#c0b59555;overflow:hidden;width:100%}.level-progress div{height:100%;width:0;background:var(--red);transition:width .18s}.level-label{font-size:9px;letter-spacing:.05em;color:var(--muted);margin-top:7px}.play-bottom{position:absolute;left:22px;right:22px;bottom:max(31px,env(safe-area-inset-bottom));text-align:center}.finger-chip{display:inline-flex;align-items:center;gap:9px;background:#fff9eacc;border:1px solid #c8ba9477;border-radius:24px;padding:12px 16px;font-size:11px;letter-spacing:.04em;box-shadow:0 4px 15px #62533208}.pulse-dot{width:7px;height:7px;border-radius:50%;background:var(--red);box-shadow:0 0 0 3px #b94b3518}.combo{margin-top:12px;font-size:10px;letter-spacing:.09em;color:var(--muted)}.feedback{position:absolute;top:24%;left:0;right:0;text-align:center;font-family:var(--serif);color:var(--red);font-size:20px;letter-spacing:.16em;min-height:25px;transition:opacity .25s;opacity:0}.feedback.visible{opacity:1}.feedback small{display:block;font-family:var(--sans);font-size:9px;letter-spacing:.16em;margin-top:4px}.modal-backdrop{position:absolute;inset:0;z-index:5;background:#173b35a6;display:flex;align-items:center;justify-content:center;padding:24px;touch-action:manipulation}.modal-card{background:var(--paper);border-radius:5px;width:100%;padding:32px 24px;box-shadow:0 20px 80px #0b241c30;max-height:calc(100% - 10px);overflow:auto}.modal-card>.eyebrow{color:var(--red);font-size:9px}.modal-card h2{font-family:var(--serif);font-size:25px;line-height:1.6;margin-top:9px;letter-spacing:.03em}.rules-list{list-style:none;padding:0;margin:25px 0 20px;display:flex;flex-direction:column;gap:23px}.rules-list li{display:flex;gap:12px}.rule-number{display:flex;align-items:center;justify-content:center;border:1px solid var(--gold);color:var(--gold);font-family:var(--serif);flex:none;width:24px;height:24px;font-size:13px;border-radius:50%;margin-top:-2px}.rules-list strong{font-size:12px}.rules-list p{font-size:11px;line-height:1.9;color:var(--muted);margin-top:5px}.rules-footnote{font-size:9px;line-height:1.9;margin-bottom:20px;color:var(--muted)}.pause-card{text-align:center;padding-top:40px;padding-bottom:25px}.pause-card>p:not(.eyebrow){font-size:11px;color:var(--muted);margin:12px 0 28px}.pause-card>.button{margin-top:20px}.result-screen{background:#f6efdfda;display:flex;align-items:center;justify-content:center;padding:26px}.result-card{position:relative;width:100%;max-height:100%;overflow:auto;text-align:center;border:1px solid #cbb991;background:#faf4e7f7;border-radius:5px;padding:28px 23px 8px;box-shadow:0 14px 50px #5e50321a}.result-card:before{content:"✺";display:block;color:var(--gold);font-size:27px;line-height:1.2;margin-bottom:12px}.result-card>.eyebrow{font-size:9px;color:var(--muted)}.result-card h2{font-family:var(--serif);font-size:26px;margin-top:9px;font-weight:600;letter-spacing:.1em}.result-count{margin-top:6px;display:flex;align-items:baseline;justify-content:center;gap:10px}.result-count strong{font-family:Georgia,serif;font-size:89px;font-weight:400;line-height:1.2;color:var(--red)}.result-count span{font-family:var(--serif);font-size:16px}.result-title{font-family:var(--serif);font-size:18px;letter-spacing:.1em;margin:6px 0 0}.new-record{font-size:10px;color:var(--red);margin-top:10px;letter-spacing:.08em}.result-stats{display:flex;margin:24px 0;justify-content:center;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:14px 0}.result-stats>div{width:50%;display:flex;flex-direction:column;gap:6px}.result-stats>div+div{border-left:1px solid var(--line)}.result-stats>div>span{font-size:10px;color:var(--muted)}.result-stats strong{font-size:26px;font-family:Georgia,serif;font-weight:400}.result-stats strong span{font-size:10px;font-family:var(--sans);margin-left:5px}.share-actions{display:flex;gap:8px;margin-top:15px}.secondary{flex:1;min-height:44px;font-size:11px;padding:12px 10px;border:1px solid var(--line);background:transparent;color:var(--ink)}.secondary:hover{background:#ece3ce}.share-note{font-size:9px;line-height:1.9;margin:14px 0 2px;color:var(--muted)}.toast{position:absolute;z-index:10;bottom:28px;left:24px;right:24px;padding:14px 18px;text-align:center;border-radius:5px;background:var(--ink);color:var(--paper);font-size:11px;line-height:1.7;box-shadow:0 5px 20px #0002}.desktop-note{font-family:var(--serif);writing-mode:vertical-rl;display:flex;align-items:center;gap:22px;letter-spacing:.4em;font-size:13px;color:#6a7666}.note-line{width:1px;height:70px;background:#b0b4a1}.right-note{font-size:24px;writing-mode:horizontal-tb;display:flex;flex-direction:column;gap:7px;position:relative;letter-spacing:0}.right-note small{position:absolute;top:175px;font-family:var(--sans);white-space:nowrap;font-size:8px;letter-spacing:.14em;writing-mode:vertical-rl}.noscript{position:absolute;z-index:20;inset:0;background:var(--paper);padding:40px;line-height:2}
@media(min-width:700px){.game-shell{border:1px solid #d0c7b0;border-radius:6px}.edge-frame{inset:14px}body{padding:14px}.game-shell{height:calc(100svh - 28px)}}
@media(max-width:699px){.desktop-note{display:none}}
@media(max-height:700px){.menu-top{padding-top:max(23px,env(safe-area-inset-top))}.menu-top>.eyebrow{margin-top:16px}h1{font-size:43px}h1 span{font-size:38px}.tagline{font-size:11px;margin-top:3px}.menu-bottom{bottom:16px}.best-line{margin-bottom:9px}.text-button{padding:10px;min-height:38px}.button{min-height:49px}.device-note{font-size:8px}.modal-card{padding:22px}.modal-card h2{font-size:22px}.rules-list{gap:15px;margin:18px 0}.rules-footnote{margin-bottom:12px}.result-card{padding-top:17px}.result-card:before{font-size:22px;margin-bottom:8px}.result-count strong{font-size:67px}.result-card h2{font-size:22px}.result-stats{margin:16px 0;padding:10px 0}.hud{padding-top:22px}.ball-count strong{font-size:52px}.play-bottom{bottom:20px}}
@media(max-height:480px) and (min-width:500px){body{padding:0}.game-shell{height:100svh;width:calc(100svh * .61);min-height:0}.desktop-note{display:none}.menu-top{padding-top:15px}.brand-line,.tagline,.menu-top>.eyebrow,.device-note{display:none}h1{font-size:29px}h1 span{font-size:25px}.menu-bottom{left:20px;right:20px;bottom:10px}.best-line{margin-bottom:5px}.button{min-height:40px;padding:10px 12px;font-size:11px}.text-button{min-height:30px;padding:7px}.hud{padding:17px}.level-label{font-size:7px}.ball-count strong{font-size:35px}.ball-count>.eyebrow{font-size:7px}.record-label{font-size:8px}.icon-button{width:33px;height:33px}.play-bottom{bottom:12px}.finger-chip{font-size:8px;padding:8px}.combo{font-size:7px;margin-top:5px}.result-screen{padding:10px}.result-card{padding:13px}.result-card:before,.share-note{display:none}.result-card h2{font-size:17px}.result-count strong{font-size:44px}.result-title{font-size:13px}.result-stats{padding:6px 0;margin:10px 0}.result-stats strong{font-size:20px}.share-actions{margin-top:10px}.modal-backdrop{padding:14px}.modal-card{padding:17px}.modal-card h2{font-size:17px}.rules-list{gap:10px;margin:12px 0}.rules-list strong{font-size:9px}.rules-list p{font-size:8px}.rules-footnote{font-size:7px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;animation:none!important}}
.modal-card,.result-screen,.result-card{touch-action:pan-y}
#rules-title{font-size:clamp(18px,5.3vw,25px)}
.best-line{border-radius:20px;background:#f6efdfc9;width:max-content;max-width:100%;margin-left:auto;margin-right:auto;padding:3px 12px}
@media(max-width:360px){.rules-list p{font-size:10px}.rules-list strong{font-size:10.5px}.modal-card{padding-left:20px;padding-right:20px}}
