:root{--ink:#354d52;--muted:#718080;--mint:#70c4b4;--purple:#9985cf;--paper:#fcf7ed;--field-width:240px;color-scheme:light}.cabinet{scroll-margin-top:12px}
.chain-pop{position:absolute;inset:0;z-index:6;pointer-events:none;background:none;overflow:visible;user-select:none}
.ending-cast{display:flex;flex-wrap:wrap;justify-content:center;gap:2px;max-width:220px;margin:-5px 0 0}.ending-cast img{display:block;width:56px;height:56px;object-fit:contain;filter:drop-shadow(0 3px 0 #ffffff77);animation:ending-friend .6s cubic-bezier(.2,1.5,.5,1) both}.ending-cast img:nth-child(2n){animation-delay:.12s}.ending-cast img:nth-child(3n){animation-delay:.24s}.ending-note{font-size:10px!important;margin:5px 0!important;color:#9571a7!important;font-weight:800}.field-overlay.is-over .gameover-comment{font-size:13px;line-height:1.7;max-width:220px;margin:10px 0}.field-overlay.is-over h2{margin:8px 0;font-size:21px}.field-overlay.is-over{padding:15px 10px}.result-history-panel{margin:12px 0;border-top:1px dashed #d8cce2;padding-top:10px;color:#8c789d;font-size:10px}.result-history-panel summary{cursor:pointer;font-weight:800}.result-history-panel p{font-size:9px}.result-history-panel ol{list-style:none;padding:0;margin:8px 0}.result-history-panel li{display:flex;flex-wrap:wrap;justify-content:space-between;gap:3px 8px;padding:7px 0;border-bottom:1px solid #e5ddec}.result-history-panel b{color:#ca8c4e;font-size:9px}@keyframes ending-friend{from{opacity:0;transform:translateY(15px) scale(.6) rotate(-10deg)}to{opacity:1;transform:none}}@media(prefers-reduced-motion:reduce){.ending-cast img{animation:none}}
.chain-lettering{position:absolute;left:3%;right:3%;top:37%;display:flex;align-items:center;flex-direction:column;transform:rotate(-5deg);animation:chain-party 1.5s both;filter:drop-shadow(0 5px 4px #20253b80);isolation:isolate}
.chain-lettering strong,.chain-lettering b{position:relative;display:block;white-space:nowrap;font-family:"Hiragino Maru Gothic ProN","Yu Gothic",Meiryo,system-ui,sans-serif;font-weight:1000;line-height:1.18;paint-order:stroke fill;-webkit-text-stroke:3px #65366e;letter-spacing:-.055em;color:var(--face);text-shadow:0 2px 0 var(--depth),0 4px 0 var(--depth),0 6px 0 #65366e}
.chain-lettering strong::before,.chain-lettering b::before{content:attr(data-ink);position:absolute;inset:0;color:transparent;-webkit-text-stroke:10px #fffaf2;text-shadow:0 6px 0 #65366e;z-index:-1}
.chain-lettering strong{--face:#83e9d6;--depth:#259b9b;font-size:clamp(21px,7.6vw,var(--chain-title-size))}
.chain-lettering b{--face:#ffdc59;--depth:#e99a2b;font-size:clamp(36px,15vw,var(--chain-count-size));margin-top:3px}
.chain-stars{color:#ffe16a;font-size:25px;letter-spacing:.38em;-webkit-text-stroke:2px #fff;paint-order:stroke fill;text-shadow:0 3px 0 #bf7135}
.chain-tier-3 strong{--face:#ff9acb;--depth:#df5696}.chain-tier-4 strong{--face:#c9b0ff;--depth:#9368d0}.chain-tier-5 strong{--face:#ffe46a;--depth:#f19c2b}
.chain-tier-5.is-final .chain-lettering{animation-duration:2.2s;top:36%}
.chain-tier-5.is-final .chain-lettering b{--face:#fff09a;--depth:#eea12c}
.chain-tier-5.is-final .chain-stars{font-size:36px;letter-spacing:.4em}
.chain-pop.is-held .chain-lettering{animation:none;opacity:1;transform:rotate(-5deg)}
.chain-confetti{position:absolute;inset:0;overflow:hidden;pointer-events:none}
.chain-paper{position:absolute;top:-20px;left:var(--x);width:6px;height:12px;background:hsl(var(--hue) 85% 70%);border-radius:2px;animation:chain-confetti 1.65s var(--delay) both ease-out}
.chain-paper:nth-child(3n){border-radius:50%;width:8px;height:8px}
.chain-burst{position:absolute;left:var(--bx);top:var(--by);width:1px;height:1px}
.chain-tier-5.is-final .chain-burst::before{content:"";position:absolute;width:5px;height:28px;border-radius:50%;background:linear-gradient(transparent,#ffe89b);box-shadow:0 0 8px #ffcf5f;animation:chain-rocket .28s var(--wait) both ease-out}
.chain-burst i{position:absolute;display:block;width:5px;height:12px;border-radius:60%;background:var(--spark);box-shadow:0 0 5px var(--spark);animation:chain-spark .85s var(--wait) both cubic-bezier(.08,.65,.22,1)}
.chain-tier-5.is-final .chain-burst i{animation-duration:1.05s;animation-delay:calc(var(--wait) + .23s)}
.chain-burst i:nth-child(3n){width:7px;height:7px;border-radius:50%}
@keyframes chain-rocket{0%{opacity:0;transform:translateY(130px) scaleY(1.4)}30%{opacity:.9}100%{opacity:0;transform:translateY(0) scaleY(.2)}}
@keyframes chain-spark{0%{opacity:0;transform:scale(.2)}15%{opacity:1}58%{opacity:.95}100%{opacity:0;transform:translate(var(--dx),var(--dy)) rotate(calc(var(--rot) + 90deg)) scale(.35)}}
.chain-demo-label{display:flex;gap:8px;align-items:center;justify-content:space-between;font-size:11px;color:#8e7e67;padding:0 4px}.chain-demo-label select{min-width:0;max-width:75%;border:1px solid #d6cab6;border-radius:10px;padding:8px;color:#806d8d;background:#fffaf2}
@keyframes chain-party{0%{opacity:0;transform:translateY(18px) rotate(-10deg) scale(.35)}16%{opacity:1;transform:translateY(-10px) rotate(-5deg) scale(1.12)}30%,78%{opacity:1;transform:rotate(-6deg) scale(1)}100%{opacity:0;transform:translateY(-22px) rotate(-3deg) scale(1.06)}}
@keyframes chain-confetti{0%{opacity:0;transform:translateY(-10px) rotate(0)}10%{opacity:1}85%{opacity:1}100%{opacity:0;transform:translate(var(--drift),650px) rotate(var(--turn))}}
@media(max-width:620px){.chain-lettering strong,.chain-lettering b{-webkit-text-stroke-width:2px}.chain-lettering strong::before,.chain-lettering b::before{-webkit-text-stroke-width:7px}.chain-stars{font-size:20px}.chain-tier-5.is-final .chain-stars{font-size:28px}}
@media(prefers-reduced-motion:reduce){.chain-lettering{animation:none!important;transform:none}.chain-confetti{display:none}}
*{box-sizing:border-box}body{margin:0;color:var(--ink);font-family:"Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,system-ui,sans-serif;background:radial-gradient(circle at 14% 18%,#f9e1ce 0,transparent 27%),radial-gradient(circle at 86% 45%,#e2e2f6 0,transparent 29%),var(--paper)}body:before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;background-image:radial-gradient(#c5baab50 1px,transparent 1px);background-size:22px 22px}main{max-width:1000px;margin:auto;padding:20px 28px 0}button,select{font:inherit}button{cursor:pointer;touch-action:manipulation}button:disabled{opacity:.42;cursor:default}button:focus-visible,select:focus-visible,a:focus-visible{outline:3px solid #9985cf;outline-offset:4px}button:active:not(:disabled){transform:translateY(2px)}[hidden]{display:none!important}
.site-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding-bottom:22px;border-bottom:1px solid #e9e0cf}.brand{width:190px;text-decoration:none;color:#7c8b87}.brand img{display:block;width:100%;height:auto}.brand span{display:block;font-weight:800;font-size:8px;letter-spacing:.2em;text-align:center;margin-top:5px}.header-tag{font-size:11px;background:#fffdf8;border:1px solid #e6dbc7;border-radius:30px;padding:10px 16px;color:#8b7965}.page-title{display:flex;align-items:center;justify-content:space-between;min-height:126px;padding:16px 0}.eyebrow{font-size:9px;letter-spacing:.14em;font-weight:800;color:#9483b3}h1{font-size:clamp(27px,3.5vw,42px);letter-spacing:-.045em;margin:8px 0;line-height:1.45}h1 em{font-style:normal;color:#ed9b74}p{line-height:1.8}.page-title p{font-size:12px;color:var(--muted);margin:0}.title-friend{display:flex;align-items:center;gap:0;margin-right:25px}.title-friend img{width:105px;height:105px;object-fit:contain;transform:rotate(5deg)}.title-friend span{border-radius:50%;background:#fff9e2;color:#977954;font-size:11px;font-weight:800;padding:16px;transform:rotate(7deg)}
.layout{display:grid;grid-template-columns:minmax(0,550px) minmax(240px,1fr);gap:24px;align-items:start}.cabinet{position:relative;isolation:isolate;padding:15px;background:#f5eee1;border:2px solid #d3bfa4;border-radius:26px;box-shadow:0 7px 0 #dccaaf,0 16px 30px #a78a6620}.cabinet:before,.cabinet:after{content:"";position:absolute;top:-12px;width:40px;height:45px;background:#f5eee1;border:2px solid #d3bfa4;border-bottom:0;z-index:-1}.cabinet:before{left:27px;border-radius:5px 30px 0 0;transform:rotate(-22deg)}.cabinet:after{right:27px;border-radius:30px 5px 0 0;transform:rotate(22deg)}.cabinet-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:13px}.cabinet-label{font-size:10px;font-weight:900;letter-spacing:.16em}.cabinet-label b{font-size:18px;letter-spacing:-.05em;color:#a187c6;margin-left:5px}.cabinet-label i{font-style:normal;color:#e9b657;margin-left:12px}.sound{background:#fffaf2;color:#7d7f77;border:1px solid #dcd2be;border-radius:20px;padding:6px 12px;font-size:10px;min-height:30px}.scorebar{display:flex;justify-content:space-around;align-items:center;background:#fffdf5;border:1px solid #e3d7c1;border-radius:14px;padding:8px 3px;margin-bottom:13px}.scorebar>div{display:flex;align-items:baseline;gap:5px;flex-wrap:wrap;justify-content:center;padding:0 7px}.scorebar small{display:block;flex-basis:100%;text-align:center;font-size:8px;letter-spacing:.05em;color:#8e8a7c}.scorebar b{font-size:24px;line-height:1.3;color:#526b65;font-variant-numeric:tabular-nums}.scorebar>div:first-child b{color:#9a7fc8}.scorebar span{font-size:9px}
.stage-grid{display:grid;grid-template-columns:minmax(50px,1fr) minmax(0,var(--field-width)) minmax(70px,1fr);gap:13px;justify-content:center;align-items:start}.field-rim{padding:7px;border:2px solid #507a78;background:#7eaaa2;border-radius:17px;box-shadow:inset 0 0 0 2px #c2dfd0,0 4px 0 #355e61;min-width:0}.field-wrap{position:relative;border-radius:8px;overflow:hidden;background:#203b46}canvas{display:block;width:100%;height:auto;aspect-ratio:3/7;touch-action:none;background:#203b46}.field-overlay{position:absolute;inset:0;background:#18323ccf;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:14px;color:#fff9e8;backdrop-filter:blur(2px);z-index:2}.field-overlay>span{font-size:10px;letter-spacing:.15em;color:#ffe3a4;font-weight:900}.field-overlay h2{font-size:clamp(16px,2.1vw,23px);margin:17px 0 8px;line-height:1.6}.field-overlay p{font-size:11px;margin:0 0 22px;color:#d4e7de}.field-overlay button{border:0;border-radius:30px;background:#ffdc87;color:#58614a;padding:13px 18px;font-size:13px;font-weight:900;box-shadow:0 4px 0 #bd9144;min-height:44px}
.cheer-rail{display:flex;flex-direction:column;align-items:center;justify-content:space-between;align-self:stretch;padding:20px 0 10px;pointer-events:none}.cheer-rail img{width:min(100%,98px);height:auto;object-fit:contain;filter:drop-shadow(0 5px 2px #a9957625);animation:cat-sway 6s ease-in-out infinite}.cheer-rail img:nth-of-type(2){animation-delay:-3s}.cheer-word{font-size:10px;font-weight:900;color:#9a84ad;text-align:center;line-height:1.7;transform:rotate(-7deg);background:#fffaf1;border-radius:22px;padding:10px}.rail-spark{color:#e7b251;font-size:23px}.rail-caption{font-size:8px;letter-spacing:.18em;line-height:1.6;color:#a69784;text-align:center}.next-rail{display:flex;flex-direction:column;gap:18px;align-items:center;min-width:0}.next-box{background:#fffdf6;border:1px solid #ddccb1;border-radius:15px;width:100%;padding:10px 3px;box-shadow:0 3px 0 #e9decc}.next-box h2{text-align:center;margin:0 0 8px;font-size:10px;letter-spacing:.15em;color:#8a759e}.next-piece{position:relative;width:72px;height:72px;margin:auto}.next-number{display:grid;place-items:center;position:absolute;left:calc(var(--x)*18px);top:calc(var(--y)*18px);width:17px;height:17px;border-radius:5px;background:var(--tile);font-size:11px;font-weight:900;color:#334c53;box-shadow:inset 0 2px 0 #ffffff80,inset 0 -2px 0 #0000000c}.next-second{transform:scale(.83);margin-top:-3px;margin-bottom:-6px;opacity:.7}.next-arrow{display:block;text-align:center;font-size:11px;color:#c3b6a1;margin:-3px 0}.rail-mike{position:relative;width:100%;padding-top:7px;text-align:center}.mike{width:180px;height:180px;background:url('assets/mikemike-reactions.png') 0 0/200% 200% no-repeat;flex-shrink:0}.mike-joy{background-position:0 0}.mike-surprise{background-position:100% 0}.mike-clap{background-position:0 100%}.mike-encourage{background-position:100% 100%}.rail-mike .mike{width:100%;height:auto;aspect-ratio:1;margin:auto}.rail-mike span{display:block;font-size:10px;font-weight:800;line-height:1.65;color:#9a7758;background:#fff5da;border-radius:15px;padding:7px 2px;margin-top:7px}.rail-stars{font-size:20px;line-height:2;color:#b8a7cc;text-align:center}.guest-cheer{width:100%;text-align:center;animation:guest-arrive .5s ease-out both}.guest-cheer img{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:contain}.guest-cheer span{display:block;font-size:9px;line-height:1.6;color:#9b759d;background:#fff4e2;padding:6px 2px;border-radius:12px}
.controls{display:grid;grid-template-columns:1fr 1.35fr 1fr;gap:8px;max-width:360px;margin:17px auto 0}.controls button{min-height:44px;border:1px solid #c3bca8;border-bottom-width:3px;border-radius:13px;background:#fffdf8;color:#65776c;font-weight:900;font-size:18px;padding:9px}.controls #rotate{font-size:13px}.controls .drop{grid-column:1/-1;background:#f4c78b;border-color:#c5a16d;color:#6e593c;font-size:15px}.control-note{font-size:9px;line-height:1.7;text-align:center;color:#958875;margin:10px 0 12px}.control-note span{white-space:nowrap}.cabinet-bottom{display:flex;justify-content:space-between;align-items:center;gap:8px;border-top:1px dashed #d9cbb5;padding-top:12px}.cabinet-bottom>button{background:#688e82;color:white;border:0;border-bottom:3px solid #45695e;border-radius:12px;font-size:11px;font-weight:800;min-height:40px;padding:8px 12px}.speed-label{display:flex;align-items:center;gap:6px;font-size:9px;color:#8f806b}.speed-label select{border:1px solid #d3c5af;border-radius:9px;padding:8px 5px;background:#fffaf0;font-size:11px;color:#7b705d;max-width:100%}
.side{min-width:0;display:flex;flex-direction:column;gap:17px}.coach-card{background:#fffdfa;border:1px solid #e7dac5;border-radius:24px;overflow:hidden;text-align:center}.coach-art{height:156px;background:radial-gradient(ellipse at 50% 90%,#fff1cd 0,transparent 63%);display:flex;align-items:center;justify-content:center;position:relative;margin-top:7px}.coach-art>.mike{width:156px;height:156px;transform-origin:center bottom;animation:cat-sway 7s ease-in-out infinite}.coach-art>span{position:absolute;color:#eab85d;left:20%;top:12px;font-size:26px}.coach-copy{padding:8px 20px 19px}.coach-copy #message{font-size:17px;font-weight:900;line-height:1.7;margin:8px 0;min-height:30px}.coach-copy #detail{font-size:11px;color:#938271;line-height:1.8;margin:0;min-height:38px}.progress-card,.record-card{background:#fffdfa;border:1px solid #e5d9c7;border-radius:20px;padding:18px}.card-heading .eyebrow{display:block;font-size:8px;letter-spacing:.12em;margin-bottom:7px}.card-heading>b{font-size:12px}.card-heading h2{font-size:13px;line-height:1.7;margin:0}.remaining{font-size:30px;font-weight:900;letter-spacing:-.04em;color:#8e79ad;margin:9px 0 12px}.remaining small{font-size:12px;letter-spacing:0;font-weight:600;margin-left:5px;color:#9b8c7a}.level-meter{height:9px;border-radius:10px;background:#ece7df;overflow:hidden}.level-meter>div{height:100%;background:linear-gradient(90deg,#b7d8bd,#85bcae);border-radius:10px;transition:width .3s}.level-detail{font-size:10px;color:#9a8b79;margin:9px 0 0}.progress-card #log{font-size:11px;color:#bd885b;margin:6px 0 0;font-weight:800}.record-card{background:#f4f0fa;border-color:#e2d6ed}.record-stats{display:grid;grid-template-columns:1fr 1fr 1fr;gap:6px;text-align:center;margin:15px 0 9px}.record-stats span{display:block;font-size:8px;color:#9986a5;white-space:nowrap}.record-stats b{display:block;font-size:23px;margin-top:4px;color:#8a73a5}.record-stats small{font-size:8px;white-space:nowrap}.previous{margin:12px 0 6px;padding-top:10px;border-top:1px dashed #d8cce2;font-size:10px;color:#8c789d}.save-status{font-size:9px;line-height:1.8;color:#9e8fa8;margin:0}.save-status.save-error{color:#aa6857}.secondary-actions{display:flex;flex-direction:column;gap:9px}.secondary-actions button{border:1px solid #d6cab6;border-radius:13px;min-height:42px;padding:10px;font-size:11px;font-weight:700;color:#8e7e67;background:#fffaf2}.secondary-actions #reset{background:transparent;border-style:dashed;color:#a08e77}
.how-to{margin-top:42px;border-top:1px solid #e4d9c9;padding-top:20px}.how-heading{display:flex;align-items:center;gap:12px}.how-heading img{width:80px;height:80px;object-fit:contain;transform:rotate(-7deg)}.how-heading h2{font-size:20px;line-height:1.5;margin:6px 0}.how-to ol{list-style:none;display:grid;grid-template-columns:repeat(3,1fr);gap:22px;margin:14px 0;padding:0}.how-to li{background:#fffaf3;border:1px solid #e9dfcf;padding:20px 17px 15px;border-radius:17px;position:relative}.how-to li>span{display:block;font-size:10px;font-weight:900;color:#b396bd;letter-spacing:.2em;margin-bottom:8px}.how-to li>b{font-size:12px}.how-to li p{font-size:11px;color:#9b8c7d;margin:8px 0 0}.rules-note{font-size:9px;color:#a79885;text-align:center;margin:17px 0}footer{position:relative;text-align:center;padding:28px 100px 30px;margin-top:20px;border-top:1px solid #e7dcc9}footer>img{position:absolute;right:9px;bottom:18px;width:93px;height:93px;object-fit:contain}footer>p{font-size:12px;font-weight:900;letter-spacing:.08em;margin:0 0 10px;color:#93849f}footer>p b{color:#c29a75}footer>p span{display:block;font-size:8px;font-weight:400;letter-spacing:.13em;color:#b0a492;margin-top:5px}footer>small{font-size:9px;line-height:1.8;color:#a89b89}
.cabinet.is-demo{border-color:#ad98ca}.cabinet.is-chain .rail-mike,.coach-art.is-excited .mike{animation:celebrate .6s ease-in-out infinite}.cabinet.is-level-up .scorebar{animation:level-pop .6s ease-out 1}.cabinet.is-danger .field-rim{border-color:#d99c83;box-shadow:inset 0 0 0 2px #f0cbb6,0 4px 0 #ba8c77}.cabinet.is-danger .rail-mike{animation:cat-worry .8s ease-in-out infinite}@keyframes cat-sway{0%,65%,100%{transform:rotate(-2deg)}78%{transform:translateY(-3px) rotate(3deg)}90%{transform:rotate(-3deg)}}@keyframes celebrate{0%,100%{transform:translateY(0)}40%{transform:translateY(-7px) rotate(-4deg)}70%{transform:rotate(3deg)}}@keyframes level-pop{50%{background:#fff0bd;transform:scale(1.025)}}@keyframes guest-arrive{from{opacity:0;transform:translateX(8px) rotate(6deg)}to{opacity:1;transform:none}}@keyframes cat-worry{0%,100%{transform:rotate(-3deg)}50%{transform:rotate(3deg)}}
@media(min-width:1000px){.stage-grid{gap:15px}.layout{gap:24px}.next-piece{width:76px}.coach-art{height:168px}.coach-art>.mike{width:168px;height:168px}.side{gap:19px}}
@media(max-width:800px){main{padding:18px 20px 0}.layout{grid-template-columns:minmax(0,1.4fr) minmax(220px,1fr);gap:19px}.stage-grid{grid-template-columns:minmax(0,var(--field-width)) 73px;gap:10px}.cheer-rail{display:none}.cabinet{padding:14px}.coach-art{height:144px}.coach-art>.mike{width:145px;height:145px}.coach-copy{padding:5px 15px 16px}.title-friend{margin-right:0}.title-friend img{width:90px;height:90px}.title-friend span{padding:12px;font-size:9px}.coach-copy #message{font-size:15px}.cabinet-bottom{flex-wrap:wrap}.record-stats b{font-size:21px}}
@media(max-width:620px){main{padding:13px 16px 0}.site-header{padding-bottom:12px;gap:8px}.brand{width:151px}.brand span{font-size:6px}.header-tag{padding:7px 9px;font-size:8px}.page-title{min-height:116px;padding:14px 0 19px}.page-title .eyebrow{font-size:7px;letter-spacing:.09em}h1{font-size:27px;margin:6px 0}.page-title p{font-size:10px}.title-friend img{width:72px;height:72px}.title-friend span{display:none}.layout{display:flex;flex-direction:column;gap:23px}.cabinet{width:100%;max-width:390px;margin:0 auto;padding:12px;border-radius:22px;--field-width:clamp(180px,24svh,240px)}.cabinet-top{margin-bottom:10px}.scorebar{padding:7px 1px;margin-bottom:12px}.scorebar b{font-size:21px}.scorebar small{font-size:7px}.stage-grid{grid-template-columns:minmax(0,var(--field-width)) 73px;justify-content:center;gap:12px}.field-rim{padding:5px;border-radius:13px}.next-rail{gap:17px}.rail-stars{font-size:15px;line-height:2.2}.controls{max-width:100%;gap:7px;margin-top:14px}.controls button{padding:8px}.control-note{font-size:8px;margin:8px 0 10px}.cabinet-bottom{flex-wrap:nowrap}.cabinet-bottom>button{flex:1;max-width:205px}.speed-label{font-size:8px;gap:5px}.speed-label select{font-size:10px;min-height:39px;padding:7px}.side{width:100%;gap:13px}.coach-card{display:flex;align-items:center;text-align:left;padding:9px 12px;min-height:110px}.coach-art{width:100px;height:100px;flex:0 0 100px;margin:0;background:none}.coach-art>.mike{width:100px;height:100px}.coach-art>span{left:0;top:0;font-size:18px}.coach-copy{padding:5px 0 5px 10px;min-width:0}.coach-copy .eyebrow{font-size:7px}.coach-copy #message{font-size:14px;min-height:0;margin:5px 0}.coach-copy #detail{font-size:10px;min-height:0}.progress-card{padding:16px;display:grid;grid-template-columns:96px 1fr;gap:8px;align-items:center}.progress-card .eyebrow{font-size:7px}.progress-card .card-heading>b{font-size:11px}.remaining{font-size:26px;margin:0 0 7px}.remaining small{font-size:10px}.level-detail{margin:5px 0 0;font-size:9px}.progress-card #log{grid-column:1/-1;font-size:10px;margin:0}.record-card{padding:16px}.record-stats{margin:12px 0 9px}.record-stats span{font-size:9px}.record-stats b{font-size:25px}.record-stats small{font-size:9px}.previous{font-size:11px}.save-status{font-size:10px}.secondary-actions{flex-direction:row;gap:9px}.secondary-actions #demo{flex:1.5}.secondary-actions #reset{flex:1}.how-to{margin-top:29px;padding-top:14px}.how-heading{gap:8px}.how-heading img{width:63px;height:63px}.how-heading h2{font-size:16px}.how-heading .eyebrow{font-size:8px}.how-to ol{grid-template-columns:1fr;gap:9px;margin-top:12px}.how-to li{padding:14px 15px 14px 49px}.how-to li>span{position:absolute;left:16px;top:17px}.how-to li p{margin-top:4px}.rules-note{font-size:9px;text-align:left;margin:13px 3px}footer{padding:20px 72px 25px 3px;text-align:left;margin-top:15px}footer>img{width:68px;height:68px;right:0;bottom:20px}footer>small{font-size:8px}.field-overlay h2{font-size:18px}.field-overlay p{font-size:10px}}
@media(max-width:360px){main{padding:12px 10px 0}.brand{width:140px}.header-tag{font-size:7px}h1{font-size:25px}.title-friend img{width:60px;height:60px}.stage-grid{gap:9px;grid-template-columns:minmax(0,var(--field-width)) 62px}.next-piece{width:64px;transform:scale(.9);transform-origin:center}.next-second{transform:scale(.76)}.scorebar>div{padding:0 3px}.scorebar span{font-size:8px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Floating type only: the board stays visible and controls remain usable. */
.stage-grid{position:relative}
.levelup-pop{position:absolute;inset:28% -5px auto;z-index:4;text-align:center;pointer-events:none;user-select:none;background:none}
.levelup-lettering{position:relative;display:inline-block;padding:12px 9px;isolation:isolate}
.levelup-letters{display:flex;justify-content:center;white-space:nowrap;line-height:1.35;font-family:"Hiragino Maru Gothic ProN","Yu Gothic",Meiryo,system-ui,sans-serif;font-size:clamp(31px,5vw,54px);font-weight:1000;letter-spacing:-.065em}
.levelup-letters>span{display:inline-block;color:#ff807c;-webkit-text-stroke:5px #fff;paint-order:stroke fill;text-shadow:0 5px 0 #3f5963,0 7px 14px #102b4366;transform-origin:50% 80%}
.levelup-letters>span:nth-child(2),.levelup-letters>span:nth-child(5){color:#ffd04f}
.levelup-letters>span:nth-child(3),.levelup-letters>span:nth-child(6){color:#69d2c2}
.levelup-letters>span:nth-child(4),.levelup-letters>span:nth-child(7){color:#c5a1ef}
.levelup-value{display:block;color:#ffe59f;font-size:clamp(26px,4vw,40px);font-weight:1000;line-height:1.3;letter-spacing:-.025em;-webkit-text-stroke:4px #fff;paint-order:stroke fill;text-shadow:0 4px 0 #42616b,0 6px 15px #102b4355}
.levelup-value b{font-size:1.2em;margin-left:3px}
.levelup-spark{position:absolute;font-style:normal;font-size:35px;color:#ffe490;-webkit-text-stroke:2px #fff;paint-order:stroke fill;text-shadow:0 3px 8px #1f444e44}
.levelup-spark-left{left:-4px;top:-16px;transform:rotate(-10deg)}
.levelup-spark-right{right:-3px;bottom:4px;font-size:43px;color:#8fe1ce;transform:rotate(12deg)}
.levelup-pop.is-playing{animation:levelup-reveal 2.3s both}
.is-playing .levelup-letters>span{animation:levelup-letter .62s cubic-bezier(.22,.8,.3,1.25) both;animation-delay:calc(var(--letter,0)*.045s)}
.levelup-letters>span:nth-child(2){--letter:1}.levelup-letters>span:nth-child(3){--letter:2}.levelup-letters>span:nth-child(4){--letter:3}.levelup-letters>span:nth-child(5){--letter:4}.levelup-letters>span:nth-child(6){--letter:5}.levelup-letters>span:nth-child(7){--letter:6}
.is-playing .levelup-value{animation:levelup-letter .65s .23s both}
.is-playing .levelup-spark{animation:levelup-spark .8s .1s both}
@keyframes levelup-reveal{0%{opacity:0;transform:translateY(12px) scale(.88)}10%,80%{opacity:1;transform:none}100%{opacity:0;transform:translateY(-16px) scale(1.03)}}
@keyframes levelup-letter{0%{opacity:0;transform:translateY(20px) scale(.35) rotate(-14deg)}50%{opacity:1;transform:translateY(-8px) scale(1.16) rotate(5deg)}75%{transform:translateY(3px) scale(.97) rotate(-2deg)}100%{opacity:1;transform:none}}
@keyframes levelup-spark{0%{opacity:0;scale:.3}60%{opacity:1;scale:1.3}100%{opacity:1;scale:1}}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.audio-controls{display:flex;gap:6px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.audio-controls .sound{min-height:36px;padding:6px 9px;font-size:10px}
.music-toggle[aria-pressed=true]{color:#5b7c70;background:#eff8e9;border-color:#c4d6b8}
.music-toggle[aria-pressed=false]{background:#f8f4ed;color:#9a9184}
.music-status{font-size:10px;color:#96744f;margin:7px 0;text-align:center}
footer .music-credit{font-size:8px;font-weight:400;letter-spacing:0;line-height:1.8;margin:10px 0 0;color:#9b8e80}
.music-credit a{color:inherit;text-underline-offset:3px}
@media(max-width:620px){.levelup-pop{inset:30% -5px auto}.levelup-letters{font-size:clamp(29px,7.6vw,39px)}.levelup-letters>span{-webkit-text-stroke-width:4px}.levelup-value{font-size:29px}.levelup-spark-left{left:0;top:-12px}.levelup-spark-right{right:0}.cabinet-label i{display:none}.audio-controls{gap:5px}.audio-controls .sound{font-size:9px;padding:6px 8px;min-height:36px}}
@media(max-width:360px){.cabinet-label{font-size:8px;letter-spacing:.08em}.cabinet-label b{font-size:15px;margin-left:3px}.audio-controls .sound{font-size:8px;padding:5px 7px}}
@media(prefers-reduced-motion:reduce){.levelup-pop.is-playing,.is-playing .levelup-letters>span,.is-playing .levelup-value,.is-playing .levelup-spark{animation:none!important;opacity:1;transform:none;scale:1}}

/* Instant press/hold controls and a compact, taller 6 × 14 field. */
.controls #left,.controls #right{touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.rail-mike .mike{max-width:96px}
.guest-cheer img{max-width:84px;margin:auto}
.field-overlay .over-mike{width:94px;height:94px;margin:0 auto -5px}
.field-overlay.is-over{padding:12px 9px;background:#18323ce0}
.field-overlay.is-over h2{font-size:19px;margin:10px 0 7px}
.field-overlay .gameover-comment{font-size:12px;font-weight:800;line-height:1.8;color:#ffe3a4;margin:0 0 11px;text-wrap:balance}
.field-overlay.is-over #overlay-detail{font-size:10px;margin:0 0 15px}
@media(max-width:620px){.next-rail{gap:12px}.rail-mike .mike{max-width:64px}.guest-cheer img{max-width:54px}.guest-cheer span{font-size:8px;line-height:1.45;padding:4px 2px}.field-overlay .over-mike{width:80px;height:80px}.field-overlay.is-over h2{font-size:17px}.field-overlay .gameover-comment{font-size:11px}.field-overlay.is-over #overlay-detail{font-size:9px}}

.field-overlay .continue-button{margin-top:10px;background:#fffaf0;color:#45695e;border:2px solid #688e82;box-shadow:none;font-size:12px;min-height:42px;padding:9px 16px}

/* Pastel arcade control deck: recessed sockets and raised circular caps. */
.controls{position:relative;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:center;justify-items:center;gap:10px;max-width:360px;margin:19px auto 0;padding:19px 12px 23px;border:2px solid #c5b79e;border-radius:19px 19px 24px 24px;background:linear-gradient(155deg,#fff9e9 0%,#e9dfcb 65%,#d8cab1 100%);box-shadow:inset 0 2px 0 #fffdf4,0 5px 0 #b7a486,0 8px 11px #79664b20}
.controls:before,.controls:after{content:'';position:absolute;top:7px;width:5px;height:5px;border-radius:50%;background:linear-gradient(135deg,#b4a58c 43%,#7e725e 45%,#7e725e 55%,#d5c9b5 57%);box-shadow:0 1px 0 #fff9e8}.controls:before{left:8px}.controls:after{right:8px}
.controls button,.controls #rotate,.controls .drop{--cap:#a5d9c9;--edge:#689d8e;--text:#244e44;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;grid-column:auto;width:min(100%,66px);aspect-ratio:1;min-height:48px;padding:3px;border:3px solid #fff9e6;border-radius:50%;background:radial-gradient(ellipse at 36% 18%,#ffffffb8,transparent 51%),var(--cap);color:var(--text);font-size:24px;line-height:1;font-weight:900;box-shadow:0 5px 0 var(--edge),0 7px 0 3px #b9ac96,0 9px 5px #66594540,inset 0 -3px 1px #00000013,inset 0 2px 0 #ffffffc9;text-shadow:0 1px 0 #ffffff80;transition:transform .07s,box-shadow .07s;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.controls button small{font-size:9px;line-height:1.4;letter-spacing:.02em}.controls #rotate{--cap:#cdb5ec;--edge:#9373b4;--text:#51396b;font-size:29px}.controls .drop{--cap:#f6b78c;--edge:#c58156;--text:#704125}
.controls button:active:not(:disabled){transform:translateY(4px);box-shadow:0 1px 0 var(--edge),0 3px 0 3px #b9ac96,0 4px 3px #66594530,inset 0 2px 5px #00000012}
.controls button:disabled{opacity:.48;filter:saturate(.55)}
@media(max-width:360px){.controls{gap:8px;padding:17px 8px 21px}.controls button small{font-size:8px}}
@media(prefers-reduced-motion:reduce){.controls button{transition:none}}
/* Give the playfield the viewport; move large information cards below it. */
main{max-width:900px;padding:10px 14px 0}.site-header{padding-bottom:8px}.brand{width:132px}.brand span{display:none}.header-tag{padding:6px 10px;font-size:9px}.page-title{min-height:0;padding:10px 0 15px}.page-title .eyebrow,.page-title p,.title-friend{display:none}h1{font-size:20px;margin:0;line-height:1.3}
.layout{display:flex;flex-direction:column;align-items:center;gap:16px}.cabinet{width:100%;max-width:520px;padding:9px 12px 10px;scroll-margin-top:6px}.cabinet-top{margin-bottom:6px}.scorebar{padding:4px 0;margin-bottom:6px}.scorebar>div{align-items:center;gap:4px}.scorebar small{flex-basis:auto;font-size:8px}.scorebar b{font-size:20px}.scorebar span{font-size:8px}
.stage-grid{position:relative;display:flex;flex-direction:column;align-items:center;gap:5px}.cheer-rail{display:none}.field-rim{width:min(100%,calc((100svh - 300px)*3/7));min-width:190px;padding:5px;order:2}.next-rail{order:1;display:flex;flex-direction:row;justify-content:center;gap:8px;width:100%;height:46px}.next-box{display:flex;align-items:center;gap:5px;width:auto;height:44px;padding:2px 7px;border-radius:11px;box-shadow:none}.next-box h2{font-size:8px;margin:0}.next-box .next-piece{width:46px;height:40px;margin:0;transform:none}.next-box .next-number{left:calc(var(--x)*11px);top:calc(var(--y)*10px);width:10px;height:9px;border-radius:3px;font-size:7px;line-height:1}.next-box .next-arrow{margin:0;transform:rotate(-90deg)}.next-box .next-second{opacity:.65}
.rail-mike{display:flex;align-items:center;width:auto;max-width:150px;padding:0;gap:4px}.rail-mike .mike{width:44px;height:44px;flex:0 0 44px}.rail-mike span{margin:0;background:transparent;font-size:8px;padding:0;max-width:80px}.next-rail .rail-stars{display:none}.guest-cheer{display:flex;align-items:center;width:auto;gap:3px}.guest-cheer img{width:38px;height:38px}.guest-cheer span{font-size:8px;max-width:64px;background:none;padding:0}
.controls{margin-top:9px;max-width:320px;padding:10px 12px 14px;gap:12px}.controls button,.controls #rotate,.controls .drop{width:54px;min-height:48px}.controls:before,.controls:after{top:5px}.control-note{margin:8px 0 5px;font-size:8px}.cabinet-bottom{padding-top:5px}.cabinet-bottom>button{min-height:33px;padding:5px 12px}.speed-label select{min-height:32px;padding:5px}.audio-controls .sound{min-height:28px;font-size:9px;padding:4px 8px}
.side{display:grid;grid-template-columns:1fr 1fr;gap:10px;width:100%;max-width:680px}.coach-card{display:flex;align-items:center;grid-column:1/-1;padding:8px 12px;min-height:0;text-align:left}.coach-art{width:64px;height:64px;flex:0 0 64px;margin:0;background:none}.coach-art>.mike{width:64px;height:64px}.coach-art>span{display:none}.coach-copy{padding:0 0 0 8px}.coach-copy .eyebrow{display:none}.coach-copy #message{font-size:13px;min-height:0;margin:0}.coach-copy #detail{font-size:10px;min-height:0;margin:3px 0 0}.progress-card,.record-card{padding:12px}.remaining{font-size:25px;margin:10px 0}.record-card h2{font-size:12px}.record-stats{margin:10px 0}.record-stats b{font-size:21px}.record-stats span{font-size:8px}.previous,.save-status{font-size:9px}.secondary-actions{grid-column:1/-1;display:flex;flex-wrap:wrap;justify-content:center}.how-to{margin-top:25px}
@media(max-width:620px){main{padding:7px 7px 0}.site-header{padding:0 5px 7px}.brand{width:108px}.header-tag{font-size:8px}.page-title{padding:7px 5px 12px}h1{font-size:17px}.cabinet{max-width:100%;padding:7px 7px 9px;border-radius:16px}.cabinet:before,.cabinet:after{width:25px;height:25px;top:-8px}.cabinet-top{margin-bottom:5px}.cabinet-label{font-size:8px;letter-spacing:.08em}.cabinet-label b{font-size:15px}.field-rim{width:min(100%,calc((100svh - 270px)*3/7));min-width:190px}.next-rail{gap:4px}.rail-mike span{max-width:65px}.guest-cheer span{display:none}.scorebar{margin-bottom:4px}.scorebar b{font-size:18px}.controls{max-width:300px}.control-note span{display:none}.side{grid-template-columns:1fr 1fr;gap:7px}.progress-card{display:block}.record-card .eyebrow{display:none}.record-stats{gap:4px}.record-stats b{font-size:18px}.record-card h2{font-size:10px}.coach-card{min-height:0}.coach-art{width:55px;height:55px;flex-basis:55px}.coach-art>.mike{width:55px;height:55px}}
@media(max-width:360px){.controls{padding:10px 10px 14px;gap:8px}.next-rail .rail-mike span{display:none}.scorebar small{font-size:7px}}
/* Preserve square cells at every viewport size; fit width and derive height. */
.field-rim{width:min(100%,max(220px,calc((100svh - 270px)*3/7 + 14px)));min-width:0;max-width:none}.field-wrap canvas{width:100%;height:auto;aspect-ratio:3/7}.controls{max-width:360px;width:100%}
@media(max-width:620px){.field-rim{width:min(100%,max(210px,calc((100svh - 250px)*3/7 + 14px)));min-width:0}.field-wrap canvas{height:auto;aspect-ratio:3/7}}

.color-pop{position:absolute;top:12px;left:4px;right:4px;z-index:7;pointer-events:none;text-align:center;font-size:clamp(13px,3vw,20px);font-weight:900;color:#fff0a0;text-shadow:0 2px 0 #8f6338,1px 0 #8f6338,-1px 0 #8f6338;animation:bonus-arrive .24s ease-out}.bonus-record{font-size:10px;color:#927348;margin:5px 0}.scorebar>div:last-child b{color:#b0783d}.scorebar>div{padding:0 4px}.scorebar small{flex-basis:100%}.scorebar b{font-size:18px}
@keyframes bonus-arrive{from{opacity:0;transform:translateY(-8px) scale(.85)}to{opacity:1;transform:none}}@media(prefers-reduced-motion:reduce){.color-pop{animation:none}}

/* Bonus celebration is attached to the score, keeping the playfield unobstructed. */
.scorebar{position:relative;overflow:visible}.color-pop{inset:auto 0 auto auto;top:calc(100% - 2px);width:250px;max-width:90%;z-index:12;display:flex;flex-direction:column;align-items:center;gap:0;transform-origin:80% 0;animation:bonus-celebrate 2.1s both;font-family:'Hiragino Maru Gothic ProN','Yu Gothic',Meiryo,sans-serif;font-weight:1000;line-height:1.2;filter:drop-shadow(0 3px 0 #a267ae55);text-shadow:none}.bonus-caption{font-size:clamp(15px,4vw,21px);color:#e76aaa;-webkit-text-stroke:5px #fffdf3;paint-order:stroke fill;transform:rotate(-5deg)}.color-pop strong{font-size:clamp(27px,7vw,39px);color:#ef9d37;-webkit-text-stroke:6px #fffdf3;paint-order:stroke fill;transform:rotate(-5deg)}.bonus-spark{position:absolute;font-size:25px;-webkit-text-stroke:2px #fff;paint-order:stroke fill;animation:bonus-spark .7s ease-out both}.spark-one{left:5%;top:15px;color:#e7b138}.spark-two{right:5%;top:5px;color:#ba8edf;animation-delay:.07s}.spark-three{right:12%;bottom:-8px;color:#77c8ad;animation-delay:.13s}.bonus-score-pop{animation:bonus-score .55s ease-out}
@keyframes bonus-celebrate{0%{opacity:0;transform:translateY(6px) scale(.35)}16%{opacity:1;transform:translateY(4px) scale(1.15)}27%,78%{opacity:1;transform:translateY(4px) scale(1)}100%{opacity:0;transform:translateY(-12px) scale(1.04)}}@keyframes bonus-spark{0%{opacity:0;transform:scale(.2) rotate(-40deg)}45%{opacity:1;transform:scale(1.3) rotate(12deg)}100%{opacity:1;transform:scale(1) rotate(0)}}@keyframes bonus-score{0%,100%{transform:scale(1)}40%{transform:scale(1.4);color:#e9779c}}@media(prefers-reduced-motion:reduce){.color-pop,.bonus-spark,.bonus-score-pop{animation:none}}

/* Side-stage scoreboard and cheering friends; preserve the square playfield. */
.cabinet{max-width:680px}
.stage-grid{display:grid;grid-template-columns:minmax(50px,1fr) minmax(0,320px) minmax(88px,1fr);gap:12px;align-items:start}
.field-rim{grid-column:2;grid-row:1;order:0;width:100%}
.cheer-rail{grid-column:1;grid-row:1;display:flex;gap:18px;justify-content:space-around;padding:16px 0;min-width:0}
.cheer-rail .rail-mike{display:flex;flex-direction:column;max-width:100%;width:100%;gap:5px}
.cheer-rail .rail-mike .mike{width:min(100%,110px);height:auto;max-width:110px;aspect-ratio:1;flex:none}
.cheer-rail .rail-mike span{display:block;max-width:100%;font-size:11px;background:#fff3d4;border:2px solid #fff;border-radius:14px;padding:6px;box-shadow:0 3px 0 #e6d6bc}
.cheer-word{font-size:11px}.cheer-rail>img{width:100%;max-width:105px}.rail-caption{font-size:8px}
.next-rail{grid-column:3;grid-row:1;order:0;flex-direction:column;justify-content:flex-start;gap:13px;width:100%;height:auto}
.scorebar{display:grid;grid-template-columns:1fr;gap:9px;width:100%;padding:0;margin:0;background:none;border:0;border-radius:0}
.scorebar>div{position:relative;display:flex;gap:3px;padding:9px 4px 10px;background:#fffdf6;border:2px solid #e5d7bf;border-radius:16px;box-shadow:0 4px 0 #dfd0b7;transform:rotate(2deg)}
.scorebar>div:nth-child(2){background:#edf7ee;border-color:#c1daca;transform:rotate(-2deg);box-shadow:0 4px 0 #b9d3c4}
.scorebar>div:nth-child(3){background:#f2eafa;border-color:#d7c7e9;box-shadow:0 4px 0 #cdb9e1}
.scorebar>div:nth-child(4){background:#fff0d7;border-color:#ebce98;transform:rotate(-2deg);box-shadow:0 4px 0 #e3c48c}
.scorebar small{font-size:9px;font-weight:800;color:#817167;flex-basis:100%;letter-spacing:0}.scorebar b{font-size:27px}.scorebar span{font-size:9px}.scorebar #color-bonus{color:#c08236}
.next-box{width:100%;height:auto;display:flex;flex-direction:column;gap:3px;padding:8px 4px}.next-box h2{font-size:9px}.next-box .next-piece{width:54px;height:34px}.next-box .next-number{left:calc(var(--x)*16px);top:calc(var(--y)*16px);width:15px;height:15px;font-size:10px}.next-box .next-arrow{transform:none}
.side-friend{width:100%;text-align:center;pointer-events:none}.side-friend img{display:block;width:100%;max-width:110px;height:auto;margin:auto;animation:cat-sway 5s infinite}.side-friend span{font-size:11px;color:#a17bb0;font-weight:800}
.guest-cheer{flex-direction:column;width:100%}.guest-cheer img{width:100%;height:auto;max-width:95px}.guest-cheer span{display:block;font-size:10px;max-width:100%;background:#fff7df;border-radius:12px;padding:5px}
.scorebar .color-pop{top:100%;right:-4px;width:160px;max-width:none;transform-origin:80% 0}.scorebar .bonus-caption{font-size:17px}.scorebar .color-pop strong{font-size:30px}.scorebar .bonus-spark{font-size:22px}
.cabinet.is-chain .cheer-rail>img,.cabinet.is-chain .side-friend img,.cabinet.is-level-up .cheer-rail>img{animation:celebrate .65s infinite}
@media(max-width:620px){
 .stage-grid{grid-template-columns:clamp(30px,9vw,55px) minmax(0,1fr) 76px;gap:6px}
 .cheer-rail{gap:14px;padding:14px 0}.cheer-rail .rail-mike span{font-size:8px;padding:4px 1px;border-width:1px}.cheer-word{font-size:8px;padding:5px 1px;line-height:1.6}.rail-caption{display:none}.rail-spark{font-size:16px}
 .next-rail{gap:10px}.scorebar{gap:7px}.scorebar>div{padding:6px 2px;border-radius:12px}.scorebar small{font-size:8px}.scorebar b{font-size:22px}.scorebar span{font-size:8px}
 .side-friend span{font-size:9px}.guest-cheer span{font-size:8px}.next-box{padding:5px 2px}.scorebar .color-pop{width:140px;right:0}.scorebar .bonus-caption{font-size:15px}.scorebar .color-pop strong{font-size:27px}
 .field-overlay h2{font-size:16px}.field-overlay{padding:10px 6px}
}
@media(max-width:360px){.stage-grid{grid-template-columns:28px minmax(0,1fr) 66px;gap:5px}.cheer-word{font-size:7px}.scorebar small{font-size:7px}.scorebar b{font-size:20px}}
@media(prefers-reduced-motion:reduce){.side-friend img,.cabinet.is-chain .cheer-rail>img,.cabinet.is-chain .side-friend img,.cabinet.is-level-up .cheer-rail>img{animation:none}}
/* Reserve room for tall previews, including older saved four-cell pieces. */
.next-box .next-piece{height:64px;width:64px}
.obstacle-notice{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:2px 5px;width:100%;padding:7px 5px;background:#edf0f5;border:1px dashed #a5afbd;border-radius:12px;text-align:center;color:#6c7786}.obstacle-notice>span{grid-row:1/3;font-size:24px}.obstacle-notice small{font-size:8px}.obstacle-notice b{font-size:15px}.obstacle-notice.is-soon{background:#fff0d5;border-color:#d59c6b;color:#a5653c}
.enemy-pop{position:absolute;top:12%;left:0;right:0;z-index:13;text-align:center;pointer-events:none;animation:bonus-celebrate 2.3s both;font-weight:1000;filter:drop-shadow(0 3px 0 #67488666)}.enemy-pop strong{display:block;color:#b183d1;font-size:clamp(26px,5vw,40px);-webkit-text-stroke:5px #fffbea;paint-order:stroke fill;transform:rotate(-5deg)}.enemy-pop span{display:block;color:#e99246;font-size:clamp(16px,3vw,23px);-webkit-text-stroke:4px #fffbea;paint-order:stroke fill}.enemy-icon{color:#a681c3;text-shadow:0 1px 0 #66518b}.enemy-icon:after{content:'••';color:#fff;position:absolute;font-size:10px;left:50%;top:50%;transform:translate(-50%,-50%)}.obstacle-notice>.enemy-icon{position:relative}
@media(prefers-reduced-motion:reduce){.enemy-pop{animation:none}}

/* Only the board determines the stage height; cheering never moves controls. */
.stage-grid{align-items:start}
.next-rail,.cheer-rail{position:absolute;top:0;bottom:0;min-height:0;height:auto;overflow:hidden}
.next-rail{gap:6px}
.cheer-rail{width:100%}
.next-rail .scorebar,.next-rail .obstacle-notice,.next-rail .next-box{flex-shrink:0}
.next-rail .scorebar{gap:5px}
.next-rail .scorebar>div{padding:4px 2px}
.next-rail .scorebar b{font-size:20px;line-height:1.15}
.next-rail .next-box{padding:4px 2px;gap:0}
.next-box .next-piece{width:48px;height:48px}
.next-box .next-number{left:calc(var(--x)*12px);top:calc(var(--y)*12px);width:11px;height:11px;font-size:8px}
.next-rail .side-friend,.next-rail .guest-cheer{flex:1;min-height:0;overflow:hidden}
.side-friend img,.guest-cheer img{width:auto;max-width:100%;height:calc(100% - 30px);max-height:95px;object-fit:contain;margin:auto}
.next-rail:has(.guest-cheer:not([hidden])) .side-friend{display:none}
.guest-cheer span{flex-shrink:0;line-height:1.3;padding:2px;font-size:8px}
.double-charge{position:relative;display:flex;align-items:center;flex-wrap:wrap;gap:5px 10px;margin:4px 0 9px;padding:7px 10px;background:#f5eafa;border:1px solid #dbc4e8;border-radius:12px;font-size:11px;color:#89639d}
.double-charge b{font-size:19px;color:#b274ba}.double-charge small{font-size:10px}.double-charge progress{flex:1;min-width:45px;width:65px;height:10px;accent-color:#bd83c9}.double-charge>strong{font-size:10px}
.double-pop{position:absolute;top:100%;left:0;right:0;z-index:14;text-align:center;pointer-events:none;font-size:clamp(19px,5vw,28px);font-weight:1000;color:#cf76a4;-webkit-text-stroke:4px #fffbea;paint-order:stroke fill;animation:bonus-celebrate 2.3s both}
@media(max-width:360px){.next-rail{gap:4px}.next-rail .scorebar b{font-size:18px}.obstacle-notice{padding:4px 2px}.double-charge{gap:3px 6px;padding:5px}.double-charge>strong{font-size:9px}}
@media(prefers-reduced-motion:reduce){.double-pop{animation:none}}
.cheer-rail{grid-column:1 / 2;left:0;right:0;width:auto}
.next-rail{grid-column:3 / 4;left:0;right:0;width:auto}

/* Let score celebrations extend inward without being clipped by the side rail. */
.next-rail{overflow:visible}
.scorebar .color-pop{right:8px;left:auto;transform-origin:100% 0;white-space:nowrap}
.next-rail .guest-cheer{position:relative;overflow:visible;padding-bottom:54px}
.guest-cheer img{height:100%;min-height:0;max-height:95px;flex-shrink:1}
.guest-cheer span{position:absolute;right:0;bottom:0;width:100%;max-width:none;padding:4px 2px;font-size:9px;line-height:1.4;overflow-wrap:anywhere;white-space:normal;z-index:5;box-shadow:0 2px 0 #d8c6a5}

/* Supplied transparent TEN artwork, identical across entry points. */
.page-title{justify-content:center;padding:0 0 8px}.page-title h1{width:min(100%,300px);margin:0;line-height:0}.ten-title-logo{display:block;width:100%;height:auto;object-fit:contain}.cabinet-label{display:block;min-width:0;width:100px;flex:0 1 100px;line-height:0}.ten-footer-title .ten-title-logo{width:180px;height:auto;margin:0 auto}.cabinet-top{gap:8px}@media(max-width:620px){.page-title h1{width:220px}.page-title{padding:0 0 5px}.cabinet-label{width:82px;flex-basis:82px}}

/* NEKOMEKI warm-pop celebration family: expressive CM-like lettering, honey and cream. */
.levelup-letters,.levelup-value,.enemy-pop,.double-pop,.scorebar .color-pop,.field-overlay.is-over h2{
 font-family:"Hiragino Maru Gothic ProN","Yu Gothic",Meiryo,system-ui,sans-serif;font-weight:1000;
}
.levelup-letters>span,.levelup-value,.enemy-pop strong,.enemy-pop span,.double-pop,.scorebar .bonus-caption,.scorebar .color-pop strong,.field-overlay.is-over h2{
 --warm-face:#ffc45c;--warm-edge:#a76a42;--warm-depth:#d69349;
 color:var(--warm-face);paint-order:stroke fill;-webkit-text-stroke:5px #fff8e9;
 text-shadow:0 1px 0 var(--warm-edge),0 3px 0 var(--warm-depth),0 5px 0 var(--warm-edge),0 7px 10px #51382555;
 letter-spacing:-.055em;
}
.levelup-pop{inset:25% 3% auto;z-index:5}
.levelup-lettering{padding:15px 10px;filter:drop-shadow(0 4px 3px #51382535)}
.levelup-letters{font-size:clamp(24px,7.2vw,52px);line-height:1.35}
.levelup-letters>span{--warm-face:#ff987b;--warm-depth:#ce795d;--warm-edge:#a75f50}
.levelup-letters>span:nth-child(2),.levelup-letters>span:nth-child(5){--warm-face:#ffd16c;--warm-depth:#d7983f}
.levelup-letters>span:nth-child(3),.levelup-letters>span:nth-child(6){--warm-face:#98ddbf;--warm-depth:#549a82;--warm-edge:#568270}
.levelup-letters>span:nth-child(4),.levelup-letters>span:nth-child(7){--warm-face:#ffc0aa;--warm-depth:#d88770}
.levelup-value{--warm-face:#ffdf8a;--warm-edge:#9b633c;font-size:clamp(25px,5vw,42px);margin-top:3px}
.levelup-spark{color:#ffd36b;text-shadow:0 3px 0 #b67a40;-webkit-text-stroke:2px #fff8e9}
.levelup-spark-right{color:#ffc2a8}
.levelup-lettering::before,.levelup-lettering::after{content:"✦";position:absolute;top:6%;font-size:18px;color:#ffedab;text-shadow:0 2px 0 #bc8648;opacity:0;pointer-events:none}
.levelup-lettering::before{left:12%;--warm-dx:-38px;--warm-dy:-30px}
.levelup-lettering::after{right:11%;--warm-dx:38px;--warm-dy:-30px}
.is-playing .levelup-lettering::before,.is-playing .levelup-lettering::after{animation:warm-twinkle 1.25s .15s both}
.scorebar .bonus-caption{--warm-face:#f9a38e;--warm-edge:#a55b54;--warm-depth:#ce7969;-webkit-text-stroke-width:3px}
.scorebar .color-pop strong{--warm-face:#ffc75c;--warm-edge:#9b6540;--warm-depth:#dd953b;-webkit-text-stroke-width:4px}
.bonus-spark{color:#ffd36b;-webkit-text-stroke-color:#fff8e9}.spark-two{color:#f5a89f}.spark-three{color:#92d8b9}
.enemy-pop{top:12%;filter:drop-shadow(0 4px 3px #51382545)}
.enemy-pop strong{--warm-face:#a9dec2;--warm-edge:#537e66;--warm-depth:#699f84;font-size:clamp(25px,6.9vw,42px)}
.enemy-pop span{--warm-face:#ffca70;--warm-edge:#98643e;font-size:clamp(17px,4.5vw,25px);-webkit-text-stroke-width:4px}
.warm-spark{position:absolute;top:10%;font-size:29px;font-style:normal;color:#ffd46b;text-shadow:0 3px 0 #b67a40;-webkit-text-stroke:2px #fff8e9;paint-order:stroke fill;animation:warm-twinkle 1.3s both}
.warm-spark-left{left:16%;--warm-dx:-20px;--warm-dy:-19px}
.warm-spark-right{right:16%;--warm-dx:20px;--warm-dy:-19px;animation-delay:.12s;color:#ffb29b}
.double-pop{--warm-face:#f8aa91;--warm-edge:#985c4b;--warm-depth:#d2826b;padding:0 5px;font-size:clamp(17px,4.7vw,27px);-webkit-text-stroke-width:4px}
.double-pop.is-complete{--warm-face:#ffe189;--warm-edge:#956238;--warm-depth:#dc9a43}
.double-pop.is-complete::before,.double-pop.is-complete::after{content:"✦";color:#ffd06c;margin:0 5px}
@keyframes warm-twinkle{0%{opacity:0;transform:scale(.3)}25%{opacity:1;transform:scale(1.3)}70%{opacity:1}100%{opacity:0;transform:translate(var(--warm-dx),var(--warm-dy)) scale(.65)}}
.field-overlay.is-over{background:radial-gradient(ellipse at 50% 23%,#75554d 0%,#423d48 55%,#292e37 100%);isolation:isolate}
.field-overlay.is-over h2{--warm-face:#ffcf9a;--warm-edge:#8c5749;--warm-depth:#cc8a69;font-size:clamp(20px,5vw,28px);line-height:1.25;-webkit-text-stroke-width:3px;margin:9px 0 8px}
.field-overlay.is-over #overlay-kicker{color:#ffdfac;text-shadow:0 1px 2px #492e2b;letter-spacing:.12em}
.field-overlay.is-over .gameover-comment{color:#fff1d6;text-shadow:0 1px 2px #3b2b29;font-size:clamp(11px,2.6vw,13px)}
.field-overlay.is-over .ending-note{color:#ffdda9!important}
.field-overlay.is-over #overlay-detail{color:#f6e4d4}
.field-overlay.is-over #overlay-play{background:#ffda91;color:#765033;box-shadow:0 4px 0 #b9804a}
.field-overlay.is-record h2{--warm-face:#ffe085;--warm-edge:#946034;--warm-depth:#d79743}
.ending-fireworks{display:none;position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:-1}
.is-record .ending-fireworks{display:block}
.ending-fireworks i{position:absolute;left:20%;top:22%;width:5px;height:5px;border-radius:50%;background:#ffe691;color:#ffe691;box-shadow:0 -34px #ffe691,17px -29px #ffc2a4,30px -17px #f5d178,34px 0 #b2ebce,30px 17px #ffe691,17px 29px #ffc2a4,0 34px #b2ebce,-17px 29px #ffe691,-30px 17px #ffc2a4,-34px 0 #b2ebce,-30px -17px #ffe691,-17px -29px #ffc2a4;animation:warm-firework 1.6s .05s both}
.ending-fireworks i:nth-child(2){left:80%;top:18%;animation-delay:.28s}
.ending-fireworks i:nth-child(3){left:50%;top:9%;animation-delay:.56s}
@keyframes warm-firework{0%{opacity:0;transform:translateY(45px) scale(.1)}28%{opacity:.95;transform:scale(.65)}62%{opacity:.85;transform:scale(1.4)}100%{opacity:0;transform:translateY(15px) scale(1.65)}}
@media(max-width:620px){
 .levelup-letters>span,.levelup-value,.enemy-pop strong,.double-pop{-webkit-text-stroke-width:4px}
 .levelup-letters{font-size:clamp(25px,7.4vw,39px)}
 .field-overlay.is-over h2{font-size:clamp(17px,4.8vw,25px)}
 .warm-spark{font-size:22px}.warm-spark-left{left:8%}.warm-spark-right{right:8%}
}
@media(prefers-reduced-motion:reduce){.ending-fireworks,.warm-spark,.levelup-lettering::before,.levelup-lettering::after{display:none!important}}
/* Original LINE animation assets appear briefly in the existing mascot slots only. */
.mike[data-motion]{position:relative;background-image:none!important}
.mike[data-motion]>.mike-motion{position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:contain;animation:none!important;filter:none;pointer-events:none}
.cabinet.is-chain .rail-mike:has(.mike-motion),.coach-art.is-excited .mike[data-motion]{animation:none}
@media(prefers-reduced-motion:reduce){.mike[data-motion]{background-image:url('assets/mikemike-reactions.png')!important}.mike-motion{display:none!important}}

/* Touches on the cabinet, side rails, and operation buttons must not pan the page. */
body.is-ten-active .cabinet{touch-action:none;overscroll-behavior:contain;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
body.is-ten-active .cabinet .controls button,body.is-ten-active .cabinet .field-rim{touch-action:none}
@font-face{font-family:NekomekiPopNumbers;src:url('../assets/fonts/nekomeki-pop-numbers.ttf') format('truetype');font-style:normal;font-weight:400 900;font-display:swap}
@font-face{font-family:NekomekiMochiy;src:url('../assets/fonts/crane-pop.ttf') format('truetype');font-style:normal;font-weight:400;font-display:swap}
.chain-lettering b,.levelup-value,.scorebar .color-pop strong,.enemy-pop span,.double-pop{
 font-family:NekomekiPopNumbers,NekomekiMochiy,"Hiragino Maru Gothic ProN","Yu Gothic",Meiryo,system-ui,sans-serif;font-weight:900;letter-spacing:-.025em;
}
.scorebar .color-pop strong{--warm-face:#ffc963;--warm-edge:#99603a;--warm-depth:#dd8738;text-shadow:0 2px 0 var(--warm-edge),0 4px 0 var(--warm-depth),0 6px 0 var(--warm-edge),0 8px 8px #51382555;-webkit-text-stroke-width:5px}
.scorebar .bonus-caption,.enemy-pop strong,.levelup-letters>span,.chain-lettering strong,.field-overlay.is-over h2{font-family:NekomekiMochiy,"Hiragino Maru Gothic ProN","Yu Gothic",Meiryo,system-ui,sans-serif; font-weight:900}

/* Readable round display text: one restrained edge, no duplicate white outline. */
@font-face{font-family:NekomekiMaruDisplay;src:url('../assets/fonts/nekomeki-maru-display.ttf') format('truetype');font-weight:400 900;font-style:normal;font-display:swap}
.chain-lettering strong,.chain-lettering b,.levelup-letters>span,.levelup-value,.enemy-pop strong,.enemy-pop span,.double-pop,.scorebar .bonus-caption,.scorebar .color-pop strong,.field-overlay.is-over h2{
 font-family:NekomekiPopNumbers,NekomekiMaruDisplay,"Hiragino Maru Gothic ProN","Yu Gothic",Meiryo,sans-serif;
 font-weight:400;letter-spacing:0;paint-order:stroke fill;-webkit-text-stroke:1.5px #fff8e9;
 text-shadow:0 1px 1px #593d3655,0 2px 3px #593d3644;
}
.chain-lettering strong::before,.chain-lettering b::before{content:none;display:none}
.chain-lettering{filter:drop-shadow(0 2px 3px #302a2560)}
.chain-lettering strong,.chain-lettering b{-webkit-text-stroke-width:2px;text-shadow:0 2px 0 #664c3d,0 3px 4px #302a2555}
.levelup-lettering,.scorebar .color-pop,.enemy-pop{filter:drop-shadow(0 2px 2px #51382525)}
.scorebar .color-pop{gap:4px;padding:8px 8px 7px;max-width:none;background:#fff9ecf5;border:1px solid #ecd2aa;border-radius:17px;box-shadow:0 2px 8px #654a3633;transform-origin:100% 0}
.scorebar .bonus-caption{--warm-face:#934b52;color:#934b52;font-size:clamp(16px,4.5vw,20px);line-height:1.35;transform:none;-webkit-text-stroke:0;text-shadow:none}
.scorebar .color-pop strong{--warm-face:#a55e24;color:#a55e24;transform:none;line-height:1.15;-webkit-text-stroke:.5px #fff8e9;text-shadow:0 1px 0 #f5ce8f}
.double-pop{--warm-face:#9b4d51;color:var(--warm-face);-webkit-text-stroke-width:1px}
.double-pop.is-complete{--warm-face:#a16a24}
.enemy-pop span{-webkit-text-stroke-width:1px}
.field-overlay.is-over h2{line-height:1.45;-webkit-text-stroke-width:1px}
@media(max-width:620px){
 .chain-lettering strong,.chain-lettering b{ -webkit-text-stroke-width:1.2px }
 .levelup-letters>span,.levelup-value,.enemy-pop strong,.enemy-pop span,.double-pop,.field-overlay.is-over h2{-webkit-text-stroke-width:1px}
 .scorebar .color-pop{width:min(147px,44vw);padding:6px 5px}
 .scorebar .bonus-caption{font-size:17px}
 .scorebar .color-pop strong{font-size:28px}
}
/* Decorative stars frame the bonus instead of covering its letters. */
.scorebar .color-pop .bonus-spark{font-size:17px;pointer-events:none;z-index:-1}
.scorebar .color-pop .spark-one{left:-7px;top:45%;bottom:auto}
.scorebar .color-pop .spark-two{right:-7px;top:45%;bottom:auto}
.scorebar .color-pop .spark-three{right:13px;bottom:-8px;top:auto}

/* Adopted transparent art. Character and lettering layers stay independent. */
.chain-pop [hidden],.levelup-pop [hidden],.scorebar [hidden]{display:none!important}
.chain-pop .chain-lettering{top:34%;left:3%;right:3%;transform:none;filter:none;isolation:isolate}
.chain-pop.is-final .chain-lettering{top:26%;animation-duration:2.2s}
.chain-pop.is-held .chain-lettering{transform:none}
.chain-front{position:relative;z-index:2;width:100%;display:flex;flex-direction:column;align-items:center;filter:drop-shadow(0 3px 3px #302a2540)}
.chain-art{display:block;width:100%;height:auto;max-width:490px}
.chain-praise,.chain-all-clear{display:block;width:62%;height:auto;margin:0 auto}
.chain-pop .chain-front strong{font-size:clamp(18px,4vw,26px);margin:3px 0 0}
.chain-pop .chain-front b{max-width:100%;font-size:clamp(28px,9vw,65px)}
.chain-cast{position:relative;z-index:1;display:flex;align-items:flex-end;justify-content:center;width:95%;margin-bottom:-6%;gap:0}
.chain-cat{display:block;flex:0 0 calc(100% / max(4,var(--cast-size)));max-width:110px;aspect-ratio:1;animation:chain-cat-arrive .35s calc(var(--cat-index)*.045s) both}
.chain-cat img{display:block;width:100%;height:100%;object-fit:contain;animation:chain-cat-cheer .6s calc(var(--cat-index)*.085s) 3 ease-in-out;filter:drop-shadow(0 2px 2px #302a2540)}
.chain-pop.is-single-clear .chain-lettering{top:36%}
.chain-pop.is-single-clear .chain-all-clear{width:90%}
.levelup-art{display:block;width:100%;height:auto;max-width:500px;margin:auto}
.levelup-badge{display:block;width:36%;max-width:145px;height:auto;margin:-3% auto 0}
.levelup-pop .levelup-spark{display:none}
.levelup-pop .levelup-value{margin-top:0}
.scorebar .level-badge{display:block;width:100%;max-width:100px;height:auto;margin:0 auto}
.scorebar .color-pop{width:150px;max-width:44vw;gap:2px;padding:0;background:none;border:0;box-shadow:none;filter:drop-shadow(0 2px 2px #51382540)}
.bonus-art{display:block;width:100%;height:auto}
.points-art{display:block;width:90%;height:auto;margin:auto}
@keyframes chain-cat-arrive{from{opacity:0;transform:translateY(14px) scale(.75)}to{opacity:1;transform:none}}
@keyframes chain-cat-cheer{0%,100%{transform:translateY(0) rotate(-3deg)}50%{transform:translateY(-8px) rotate(3deg)}}
@media(max-width:620px){.chain-pop .chain-lettering{left:1%;right:1%}.chain-pop.is-final .chain-lettering{top:25%}.chain-praise,.chain-all-clear{width:68%}.levelup-pop{inset:22% 1% auto}.levelup-lettering{padding:10px 0}.levelup-badge{width:32%}.scorebar .level-badge{width:100%;max-width:82px}}
@media(prefers-reduced-motion:reduce){.chain-pop .chain-lettering,.chain-cat,.chain-cat img{animation:none!important;transform:none}.chain-cat[data-character="mikemike"] img{content:url('assets/mikemike-clap-still.png')}}

/* Readability: each message stays in its own measured lane. */
.stage-grid>.chain-pop{left:var(--feedback-left,0px);right:auto;width:var(--feedback-width,70%);overflow:hidden}
.stage-grid .chain-pop .chain-lettering{left:5%;right:5%;top:34%;transform:none;animation:feedback-enter .18s ease-out both}
.stage-grid .chain-pop.is-final .chain-lettering{top:26%;animation:feedback-enter .2s ease-out both}
.stage-grid .chain-pop.is-held .chain-lettering{animation:none;opacity:1;transform:none}
.chain-pop .chain-art{width:88%;max-width:230px}
.chain-pop:not(.is-final) .chain-art{width:66%;max-width:175px}
.chain-pop .chain-praise,.chain-pop .chain-all-clear{width:76%;max-width:195px;margin:12px auto 0}
.chain-pop .chain-front b{font-size:clamp(26px,6vw,42px);line-height:1.25;white-space:normal;text-align:center;overflow-wrap:anywhere}
.chain-pop .chain-front strong{font-size:clamp(16px,3vw,22px);line-height:1.4;margin-top:10px;white-space:normal;text-align:center}
.chain-pop .chain-cast{width:96%;margin-bottom:-3%;gap:1px}
.chain-pop .chain-cat{max-width:64px;animation:feedback-enter .2s ease-out both}
.chain-pop .chain-cat img{animation:chain-cat-cheer .8s calc(var(--cat-index)*.05s) 2 ease-in-out}
.chain-pop .chain-burst,.chain-pop .chain-paper{opacity:.55}
.stage-grid>.levelup-pop{left:calc(var(--feedback-left,0px) + var(--feedback-width,70%)*.07);right:auto;top:31%;width:calc(var(--feedback-width,70%)*.86)}
.levelup-pop .levelup-lettering{display:block;padding:0;animation:feedback-enter .2s ease-out both}
.levelup-pop .levelup-art{width:100%;max-width:240px}
.levelup-pop .levelup-badge{width:40%;max-width:96px;margin:12px auto 0}
.levelup-pop .levelup-lettering::before,.levelup-pop .levelup-lettering::after{display:none}
.scorebar .color-pop{top:var(--points-top,40%);right:0;left:0;width:100%;max-width:100%;gap:0;padding:0;animation:feedback-enter .18s ease-out both;filter:none}
.scorebar .color-pop .bonus-art,.scorebar .color-pop .bonus-spark{display:none}
.scorebar .color-pop strong{font-size:clamp(16px,4vw,24px);line-height:1.3;white-space:nowrap;-webkit-text-stroke:0;text-shadow:0 1px 0 #fff}
.scorebar .color-pop .points-art{width:100%;max-width:88px;margin:0 auto}
.scorebar:has(.color-pop:not([hidden])) #color-bonus{visibility:hidden}
.double-charge .double-pop{top:100%;left:3%;right:3%;font-size:clamp(11px,2.8vw,15px);line-height:1.5;padding:3px 6px;color:#684760;background:#fff8efef;border-radius:7px;-webkit-text-stroke:0;text-shadow:none;animation:feedback-enter .18s ease-out both}
.stage-grid>.enemy-pop{top:7%;left:var(--feedback-left,0px);right:auto;width:var(--feedback-width,70%);animation:feedback-enter .18s ease-out both;filter:none}
.enemy-pop strong{font-size:clamp(17px,3.6vw,24px);line-height:1.5;transform:none}
.enemy-pop span{font-size:clamp(13px,2.8vw,17px);line-height:1.5}
.enemy-pop .warm-spark{display:none}
@keyframes feedback-enter{from{opacity:0;translate:0 5px}to{opacity:1;translate:0 0}}
@media(prefers-reduced-motion:reduce){.stage-grid .chain-pop .chain-lettering,.levelup-pop .levelup-lettering,.scorebar .color-pop,.double-charge .double-pop,.stage-grid>.enemy-pop{animation:none!important}}

/* Final result is one composition: visible faces, chain word, praise, level. */
.chain-pop .chain-level{display:flex;align-items:center;justify-content:center;gap:6px;margin-top:8px;padding:4px 9px;border-radius:14px;background:#fff9e6f2;color:#76522d;font:800 12px/1.4 NekomekiMochiy,sans-serif;box-shadow:0 2px 0 #dfc888}.chain-level img{display:block;width:36px;height:auto}.chain-pop .chain-praise{width:68%;max-width:170px;margin-top:8px}.chain-pop .chain-cat{max-width:70px}.chain-pop .chain-cat img{animation:chain-cat-cheer .8s calc(var(--cat-index)*.05s) 2 ease-in-out}

/* Show the adopted level-up lettering together with the reached level. */
.chain-pop .chain-level{width:90%;gap:8px;padding:0;margin-top:10px;background:none;box-shadow:none;border-radius:0;min-height:34px}
.chain-level .chain-level-label{width:68%;max-width:155px;height:auto}
.chain-level #chain-level-art{width:25%;max-width:54px;height:auto}
.chain-level #chain-level-text{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.chain-level:has(#chain-level-art[hidden]) #chain-level-text{position:static;width:auto;height:auto;clip-path:none;font-size:16px}
.chain-level:has(#chain-level-art[hidden]) .chain-level-label{display:none}

/* TEN-MOBILE-20261206: fit the full cabinet inside the visible browser area. */
.next-rail .side-friend img,.next-rail .guest-cheer img{transform:scaleX(-1)}
#pause{min-height:44px;padding:6px 12px;border:1px solid #45695e;border-radius:12px;background:#688e82;color:#fff;font-size:12px;font-weight:800;white-space:nowrap}
.ten-viewport-fit .cabinet{scroll-margin-top:8px;padding-bottom:calc(8px + env(safe-area-inset-bottom,0px))}
.ten-viewport-fit .cabinet-top{gap:6px;min-height:44px;margin-bottom:5px}
.ten-viewport-fit .cabinet-label .ten-title-logo{width:72px;max-height:40px;object-fit:contain}
.ten-viewport-fit .audio-controls{gap:4px;flex-wrap:nowrap}
.ten-viewport-fit .audio-controls .sound{min-height:36px;padding:4px 6px;font-size:9px}
.ten-viewport-fit #pause{min-height:44px;font-size:11px;padding:6px 8px}
.ten-viewport-fit .stage-grid{grid-template-columns:28px minmax(0,var(--ten-field-width,180px)) 76px;gap:6px;justify-content:center}
.ten-viewport-fit .field-rim{width:100%;min-width:0}
.ten-viewport-fit .controls{max-width:300px;margin-top:8px;padding:7px 10px 10px;gap:8px}
.ten-viewport-fit .controls button,.ten-viewport-fit .controls #rotate,.ten-viewport-fit .controls .drop{width:48px;height:48px;min-height:48px;padding:3px}
.ten-viewport-fit .controls button span{font-size:24px;line-height:1}
.ten-viewport-fit .controls button small{font-size:9px;line-height:1.2}
.ten-viewport-fit .control-note{margin:5px 0;font-size:8px;line-height:1.4}
.ten-viewport-fit .cabinet-bottom{justify-content:center;padding-top:4px}
.ten-viewport-fit .speed-label select{min-height:32px}
.ten-viewport-fit .next-rail{gap:4px}
.ten-viewport-fit .next-rail .scorebar{gap:4px}
.ten-viewport-fit .next-rail .scorebar>div{padding:3px 2px;border-width:1px;border-radius:10px;box-shadow:none;transform:none}
.ten-viewport-fit .next-rail .scorebar small{font-size:8px;line-height:1.2}
.ten-viewport-fit .next-rail .scorebar b{font-size:17px;line-height:1.1}
.ten-viewport-fit .scorebar .level-badge{max-width:52px}
.ten-viewport-fit .next-rail .side-friend img,.ten-viewport-fit .next-rail .guest-cheer img{max-width:38px}
.ten-viewport-fit .next-rail .obstacle-notice{padding:3px 2px;gap:1px 2px}
.ten-viewport-fit .next-rail .obstacle-notice>span{font-size:16px}
.ten-viewport-fit .next-rail .obstacle-notice b{font-size:13px}
.ten-short-viewport .next-rail .side-friend,.ten-short-viewport .next-rail .guest-cheer,.ten-short-viewport .rail-stars{display:none}
.ten-short-viewport .next-rail .scorebar>div{padding:1px 2px}
.ten-short-viewport .next-rail .scorebar small{font-size:7px}
.ten-short-viewport .control-note{display:none}

/* NEXT-20261206: 28px previews, double the previously adopted 14px. */
.next-box .next-piece{flex-shrink:0;margin:8px auto}
.next-box .next-second{opacity:.9}
.next-box .next-number{border-radius:6px;line-height:1;font-weight:900}
/* TEN-UI-20261206-02: NEXT stays above LEVEL in the right rail. */
@media(max-width:620px){
 .next-rail .next-box{padding:3px 1px;gap:0}
 .next-rail .next-box h2{font-size:9px;margin:0 0 2px}
 .next-rail .next-box .next-piece{zoom:.78;margin:2px auto}
 .next-rail .next-box .next-arrow{font-size:9px;line-height:1;margin:0}
}
/* The reference uses the existing plain score font; only its value changes. */
.scorebar #color-bonus{visibility:visible!important;font-family:inherit;font-variant-numeric:tabular-nums;animation:none!important;transition:none!important;transform:none!important}
.scorebar .color-pop{display:none!important}
