:root{font-family:Pretendard,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#fff9ec;background:#21134a;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}button:focus-visible,a:focus-visible{outline:3px solid #ffe179;outline-offset:4px}.app{display:flex;min-height:100dvh}.sidebar{width:260px;flex:none;background:#1d103f;display:flex;flex-direction:column;padding:30px 18px 18px;position:relative;z-index:1}.brand{display:flex;align-items:center;gap:11px;padding:2px 10px 30px;color:#fff9ec;text-decoration:none;border-bottom:1px solid #ffffff1a;font-size:21px;font-weight:850;letter-spacing:-.065em}.brand-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:13px;background:#c7f16d;color:#24134c;font-size:24px}.brand small{display:block;color:#a99ac9;font-size:9px;letter-spacing:.13em;margin-top:2px}.side-label{font-size:11px;color:#a79bc2;letter-spacing:.07em;font-weight:700;margin:30px 10px 12px}.side-selected{min-height:83px;border:1px solid #a795d244;background:#ffffff0c;border-radius:16px;display:flex;align-items:center;gap:14px;padding:16px;color:#fff9ec;font-size:16px;font-weight:800}.side-selected small{display:block;font-size:11px;font-weight:500;color:#bdb0d5;margin-top:6px}.side-play{font-size:13px;color:#d3f18d}.side-bottom{margin-top:auto;background:#34235e;border:1px solid #ffffff1c;border-radius:19px;padding:16px;display:grid;grid-template-columns:52px 1fr;gap:12px}.beat-art{display:grid;place-items:center;width:52px;height:52px;border-radius:12px;background:#d7ef9d;color:#51329a;font-size:29px;font-weight:800}.beat-info{display:flex;flex-direction:column;gap:4px;min-width:0}.beat-info strong{font-size:14px}.beat-info span{font-size:11px;color:#c2b3d8}.icon-button{grid-column:1/-1;min-height:42px;border:1px solid #ffffff30;border-radius:10px;background:#ffffff0d;color:#fff;font-size:12px;font-weight:700}.icon-button:hover,.secondary:hover{background:#ffffff20}.playground{flex:1;min-width:0;min-height:100dvh;position:relative;overflow:hidden;background:radial-gradient(ellipse at 48% 18%,#714de0 0,#5937bd 43%,#3b247e 100%);display:flex;flex-direction:column;padding:28px clamp(24px,4vw,68px)}.playground:before,.playground:after{content:"";position:absolute;pointer-events:none;border:1px solid #ffffff12;border-radius:50%}.playground:before{width:740px;height:740px;left:-260px;top:-380px}.playground:after{width:560px;height:560px;right:-120px;bottom:-260px}.topbar,.game,.how{position:relative;z-index:1}.topbar{display:flex;justify-content:space-between;color:#e5dcfc;font-size:12px;font-weight:700}.live-dot,.stage-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#d2f087;margin-right:6px}.top-note{color:#d5c8f2;font-weight:500}.game{width:min(100%,620px);margin:auto;display:flex;align-items:center;flex-direction:column;text-align:center;padding:24px 0}.game-title .eyebrow{font-size:10px;letter-spacing:.19em;font-weight:800;color:#d7c8ff}.game-title h1{font-size:clamp(42px,5vw,66px);line-height:1;letter-spacing:-.085em;margin:12px 0;color:#fff9ef;font-weight:900}.game-title h1 em{font-style:normal;color:#d9f397}.game-title p{font-size:14px;color:#e0d6f6;margin:16px 0 24px;letter-spacing:-.03em}.stage{width:100%;background:#231452a8;border:1px solid #ffffff2c;border-radius:23px;box-shadow:0 16px 45px #1d0e4d30;padding:20px 24px 0}.stage-top,.stage-bottom{display:flex;justify-content:space-between;align-items:center;font-size:11px;font-weight:700;color:#d6caeb}.stage-top>span:last-child,.stage-bottom span:last-child{font-variant-numeric:tabular-nums}.word-area{min-height:160px;display:flex;flex-direction:column;justify-content:center;align-items:center}.word-label{font-size:12px;font-weight:700;color:#d0c0ed;margin-bottom:12px}.word{font-size:clamp(34px,4.4vw,52px);font-weight:850;letter-spacing:-.07em;line-height:1.2;word-break:keep-all}.word-area p{font-size:12px;color:#d3c6e9;margin:13px 0 0;letter-spacing:-.025em}.beat-row{display:flex;justify-content:center;gap:9px;padding:0 0 20px}.beat-row span{width:8px;height:8px;border-radius:50%;background:#8872b5;transition:transform .1s,background .1s}.beat-row span.active{background:#d9f397;transform:scale(1.4)}.stage-bottom{padding-bottom:14px}.progress{height:4px;margin:0 -24px;background:#ffffff18;overflow:hidden;border-radius:0 0 23px 23px}.progress div{height:100%;width:0;background:#d9f397;transition:width .2s linear}.controls{display:flex;flex-direction:column;align-items:center;margin-top:20px;gap:12px}.primary{border:0;background:none;color:#ecf7cd;display:flex;align-items:center;flex-direction:column;gap:10px;font-size:15px;font-weight:850;letter-spacing:-.03em}.play-icon{display:grid;place-items:center;width:76px;height:76px;border-radius:50%;background:#d6f28d;color:#291755;font-size:22px;box-shadow:0 8px 22px #1c104c44;transition:transform .15s,background .15s}.primary:hover .play-icon{transform:scale(1.06);background:#e5ffab}.primary:active .play-icon{transform:scale(.97)}.secondary-controls{display:flex;gap:8px}.secondary{min-height:42px;border:1px solid #ffffff45;border-radius:11px;background:#ffffff10;color:#fff;padding:0 18px;font-size:12px;font-weight:700}[hidden]{display:none!important}.message{min-height:16px;margin:13px 0 0;color:#e0d5f4;font-size:11px}.how{width:min(100%,620px);margin:12px auto 0;border:1px solid #ffffff22;background:#24154e92;border-radius:18px;padding:17px 22px;display:flex;justify-content:space-between;align-items:center;gap:12px;color:#e6def5;font-size:12px}.how-heading{font-weight:800;color:#fff}.how b{font-size:10px;color:#d6f28d;margin-right:5px}@media(max-width:700px){.app{display:block}.sidebar{width:100%;height:70px;display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding:0 20px}.brand{border:0;padding:0;font-size:17px}.brand-icon{width:36px;height:36px;font-size:21px}.side-label,.side-selected,.beat-art,.beat-info{display:none}.side-bottom{margin:0;padding:0;border:0;background:none;display:block}.icon-button{min-width:44px;min-height:44px;border-radius:50%;font-size:18px}.icon-button span{display:none}.playground{min-height:calc(100dvh - 70px);padding:20px 20px 24px}.topbar{font-size:11px}.game{padding:28px 0 16px}.game-title h1{font-size:46px}.game-title p{margin:13px 0 20px;font-size:13px}.stage{padding:18px 20px 0}.word-area{min-height:150px}.word{font-size:36px}.progress{margin:0 -20px}.how{font-size:10px;gap:8px;flex-wrap:wrap;padding:15px}.how-heading{width:100%;font-size:11px}.controls{margin-top:18px}.play-icon{width:70px;height:70px}}@media(max-height:600px) and (orientation:landscape){.sidebar{width:190px;padding:15px}.brand{padding-bottom:14px}.side-label{margin-top:15px}.side-selected{min-height:55px}.playground{padding-top:15px}.game{padding:8px 0}.game-title h1{font-size:34px;margin:6px}.game-title p{margin:7px 0 10px}.word-area{min-height:80px}.word{font-size:30px}.word-area p{margin:6px 0 0}.beat-row{padding-bottom:9px}.controls{margin-top:10px}.play-icon{width:48px;height:48px;font-size:15px}.how{margin-top:8px;padding:10px}.side-bottom{padding:10px}}
/* Light palette drawn from the supplied black-and-ivory wordmark. */
:root{color:#191a18;background:#f5f4ef}.sidebar{background:#faf9f5;border-right:1px solid #e4e2d9}.brand{color:#171816;border-color:#e7e5dc}.brand-icon{background:#1c1d1a;color:#fff}.brand small,.side-label{color:#77786f}.side-selected{border-color:#deded5;background:#f0efe9;color:#20211e}.side-selected small,.beat-info span{color:#70736a}.side-play{color:#41443d}.side-bottom{background:#eeede7;border-color:#e1e0d8}.beat-art{background:#deded4;color:#292b27}.beat-info strong{color:#22231f}.icon-button{border-color:#d3d3c9;background:#faf9f5;color:#242621}.icon-button:hover,.secondary:hover{background:#e4e4dd}.playground{background:radial-gradient(ellipse at 48% 18%,#fff 0,#f7f6f1 58%,#eae9e2 100%)}.playground:before,.playground:after{border-color:#2428200c}.topbar{color:#4a4d45}.live-dot,.stage-dot{background:#666c5f}.top-note{color:#777a70}.game-title .eyebrow{color:#75776e}.game-title h1{margin:8px 0 0;line-height:0}.game-title h1 img{display:block;width:clamp(150px,16vw,210px);height:auto;mix-blend-mode:multiply}.game-title p{color:#686b61;margin:14px 0 22px}.stage{background:#fffefa;border-color:#dfdfd6;box-shadow:0 14px 40px #272c1c0c}.stage-top,.stage-bottom{color:#6e7169}.word-label{color:#77796f}.word{color:#1c1d1a}.word-area p{color:#777a70}.beat-row span{background:#dddcd4}.beat-row span.active{background:#535950}.progress{background:#ebebe5}.progress div{background:#585d50}.primary{color:#242620}.play-icon{background:#20221e;color:#fff;box-shadow:0 8px 22px #2d302323}.primary:hover .play-icon{background:#464a40}.secondary{border-color:#cfcfc6;background:#fffefa;color:#282a25}.message{color:#777a70}.how{border-color:#e1e0d8;background:#fffefa;color:#66695f}.how-heading{color:#262820}.how b{color:#565b50}@media(max-width:700px){.sidebar{border-bottom:1px solid #e5e4dc}.game-title h1 img{width:155px}.game-title p{margin:10px 0 18px}}
/* Keep the game and its primary controls visible within the viewport. */
@media (max-width:700px) and (orientation:portrait){
 .sidebar{height:60px}.playground{min-height:calc(100dvh - 60px);height:calc(100dvh - 60px);padding:12px 16px 14px}.topbar{flex:none}.game{flex:1;min-height:0;justify-content:center;padding:8px 0}.game-title .eyebrow{font-size:9px}.game-title h1{margin:5px 0 0}.game-title h1 img{width:clamp(82px,14vh,130px)}.game-title p{font-size:12px;margin:6px 0 10px}.stage{padding:12px 16px 0;border-radius:17px}.word-area{min-height:clamp(78px,15vh,125px)}.word-label{margin-bottom:7px;font-size:11px}.word{font-size:clamp(27px,7vw,36px)}.word-area p{margin:7px 0 0;font-size:11px}.beat-row{padding-bottom:11px}.stage-bottom{padding-bottom:10px}.progress{margin:0 -16px}.controls{margin-top:10px;gap:6px}.play-icon{width:clamp(48px,8vh,64px);height:clamp(48px,8vh,64px);font-size:18px}.primary{gap:5px;font-size:13px}.secondary{min-height:36px}.message{font-size:10px;margin:7px 0 0}.how{margin:0 auto;padding:10px 14px;flex:none;gap:5px}.how-heading{width:auto}.how span{white-space:nowrap}
}
@media(max-width:390px){.how{font-size:9px}.how-heading{width:100%}.how b{margin-right:3px}}
@media(max-height:480px) and (orientation:landscape){.playground{height:100dvh;min-height:0;overflow:auto}.game{padding:3px 0}.game-title h1 img{width:75px}.game-title p{margin:3px 0 5px}.stage{padding-top:8px}.word-area{min-height:55px}.beat-row{padding-bottom:5px}.stage-bottom{padding-bottom:6px}.controls{margin-top:5px}.message{margin-top:4px}.how{display:none}}
@media(min-width:701px) and (min-height:601px){.playground{height:100dvh;min-height:0;padding-top:20px;padding-bottom:20px}.game{flex:1;min-height:0;justify-content:center;margin:0 auto;padding:8px 0}.game-title h1 img{width:clamp(100px,16vh,165px)}.game-title p{margin:8px 0 14px}.stage{padding-top:14px}.word-area{min-height:clamp(90px,16vh,145px)}.beat-row{padding-bottom:12px}.stage-bottom{padding-bottom:10px}.controls{margin-top:12px;gap:6px}.play-icon{width:clamp(54px,8vh,72px);height:clamp(54px,8vh,72px)}.message{margin-top:8px}.how{flex:none;margin-top:0}}
.game-title h1 img{mix-blend-mode:normal}
.setup-dialog{border:0;padding:0;margin:0;max-width:none;max-height:none;width:100%;height:100%;background:#f6f5f0;color:#20211e}.setup-dialog::backdrop{background:#17181480}.setup-shell{min-height:100%;display:flex;flex-direction:column;max-width:1500px;margin:auto;padding:0 clamp(20px,4vw,64px) 26px}.setup-header{height:84px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;border-bottom:1px solid #dfdfd6;gap:12px}.setup-header h2{font-size:21px;letter-spacing:-.05em;margin:0}.setup-header-note{text-align:right;color:#898b81;font-size:12px}.setup-back{width:44px;height:44px;border:1px solid #deded5;background:#fffefa;border-radius:13px;font-size:22px;color:#30322d}.setup-content{flex:1;display:grid;grid-template-columns:1fr 1fr;gap:28px;align-content:center;padding:28px 0}.setup-heading{display:flex;align-items:flex-start;gap:12px;margin:0 0 18px}.setup-heading>span{display:grid;place-items:center;width:34px;height:34px;border-radius:11px;background:#242621;color:#fff;font-weight:800;font-size:11px}.setup-heading h3{margin:0;font-size:18px;letter-spacing:-.04em}.setup-heading p{margin:5px 0 0;color:#85877e;font-size:12px}.setup-panel{background:#fffefa;border:1px solid #dfdfd6;border-radius:22px;padding:22px;min-height:360px;display:flex;flex-direction:column}.beat-option{display:flex;align-items:center;gap:13px;padding:13px;background:#f5f4ee;border:1px solid #e8e7df;border-radius:15px}.beat-cover{width:52px;height:52px;border-radius:12px;background:#252720;color:white;display:grid;place-items:center;font-size:25px}.beat-option strong,.beat-option small,.word-panel-top strong,.word-panel-top small{display:block}.beat-option strong,.word-panel-top strong{font-size:14px}.beat-option small,.word-panel-top small{font-size:11px;color:#888a80;margin-top:5px}.selected-mark{margin-left:auto;font-size:11px;font-weight:700;color:#4b5146}.beat-description{margin-top:auto;padding:25px 4px 12px}.beat-description>span{display:block;color:#92958b;font-size:10px;font-weight:800;letter-spacing:.1em}.beat-description>strong{display:block;margin-top:9px;font-size:20px}.beat-description p,.setup-note{font-size:12px;color:#85877e}.beat-bars{display:flex;align-items:center;gap:5px;height:38px;margin-top:15px}.beat-bars i{display:block;width:6px;border-radius:5px;background:#999d91;height:35%}.beat-bars i:nth-child(3n){height:90%}.beat-bars i:nth-child(3n+1){height:58%}.setup-note{margin:15px 0 0}.word-panel-top{display:flex;justify-content:space-between;align-items:center;gap:10px}.word-panel-top button{border:1px solid #d9dbd1;background:#f8f8f3;border-radius:10px;padding:10px 12px;font-size:12px;font-weight:700;color:#33372f}.word-preview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:auto 0;padding:26px 0}.word-preview span{display:grid;place-items:center;min-height:68px;padding:6px;background:#f0efe8;border:1px solid #e4e3da;border-radius:13px;font-weight:800;font-size:clamp(14px,1.5vw,19px);word-break:keep-all}.setup-footer{display:flex;align-items:center;justify-content:space-between;gap:20px;border-top:1px solid #dfdfd6;padding-top:20px;color:#878a80;font-size:12px}.setup-footer button{min-width:250px;min-height:56px;border:0;border-radius:15px;background:#20221e;color:#fff;font-weight:800;font-size:15px}.setup-footer button:hover{background:#45493f}.setup-dialog button:focus-visible{outline:3px solid #7c8873;outline-offset:3px}@media(max-width:700px){.setup-dialog{overflow:auto}.setup-shell{padding:0 16px 20px}.setup-header{height:62px}.setup-header h2{font-size:17px}.setup-header-note{display:none}.setup-content{grid-template-columns:1fr;gap:18px;padding:20px 0}.setup-heading{margin-bottom:10px}.setup-heading h3{font-size:16px}.setup-panel{min-height:0;padding:15px;border-radius:17px}.beat-description{padding:15px 3px 0}.beat-description>strong{font-size:17px}.beat-bars{height:20px;margin-top:8px}.word-preview{gap:7px;padding:18px 0 0}.word-preview span{min-height:48px;font-size:14px}.setup-footer{position:sticky;bottom:0;background:#f6f5f0;padding:12px 0 0}.setup-footer span{display:none}.setup-footer button{width:100%;min-height:52px}}
@media(max-width:700px){.setup-content{gap:14px;padding:14px 0}.setup-heading p{margin-top:3px}.setup-panel{padding:12px}.beat-description{display:none}.beat-panel .setup-note{margin-top:10px}.word-preview{padding-top:12px}.words-panel .setup-note{margin-top:10px}}
.play-screen{position:fixed;inset:0;z-index:5;background:#f6f5f0;color:#20211e;overflow:auto}.play-header{height:72px;display:flex;align-items:center;gap:12px;padding:0 clamp(16px,3vw,44px);border-bottom:1px solid #dfdfd6}.play-header button{min-height:44px;border:1px solid #ddded4;border-radius:13px;background:#fffefa;color:#242620;padding:0 16px;font-weight:800}.play-header button:first-child{font-size:22px;padding:0;width:44px}.play-header span{margin:auto;font-size:14px;font-weight:800}.play-header #play-sound{width:44px;padding:0;font-size:19px}.play-content{min-height:calc(100dvh - 72px);display:flex;flex-direction:column;align-items:center;justify-content:center;padding:12px 20px 24px}.play-logo{width:clamp(70px,11vh,105px);height:auto}.play-board-wrap{width:min(100%,820px)}.ball-track{position:relative;height:48px}.rhythm-ball{position:absolute;left:12.5%;bottom:3px;width:27px;height:27px;background:radial-gradient(circle at 33% 25%,#a5aa9e,#454a40 75%);border-radius:50%;box-shadow:0 4px 7px #1416112e;will-change:left,transform}.play-board{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.board-cell{height:clamp(48px,8vh,65px);border:1px solid #dedfd6;border-radius:12px;background:#eae9e2;transition:background .12s}.board-current{background:#e3e3db}.board-current.board-active{background:#c2c7ba;border-color:#b8c0b2}.board-word{display:grid;place-items:center;background:#d5d9cd;border-color:#c9cec1;color:#22251f;font-weight:850;font-size:clamp(16px,2vw,22px);box-shadow:0 3px 0 #bfc6b7;word-break:keep-all}.board-current.board-word.board-active{background:#9cae94}.board-word.board-empty{background:#f0efe9;box-shadow:none}.play-note{text-align:center;color:#777b70;font-size:12px;margin:18px 0}.play-player{display:grid;grid-template-columns:1fr auto;gap:10px;padding:16px 20px;border-radius:20px;background:#fffefa;border:1px solid #e0e0d6}.play-track-info{display:flex;align-items:center;gap:12px}.play-album{height:48px;width:48px;border-radius:12px;background:#22251f;color:white;display:grid;place-items:center;font-size:25px}.play-track-info strong,.play-track-info small{display:block}.play-track-info strong{font-size:14px}.play-track-info small{font-size:11px;color:#83877b;margin-top:5px}.play-player button{width:48px;height:48px;border:0;border-radius:50%;background:#20221e;color:#fff;font-size:17px}.play-progress{grid-column:1/-1;display:flex;align-items:center;gap:9px;color:#777b70;font-size:10px;font-variant-numeric:tabular-nums}.play-progress>div{height:4px;flex:1;border-radius:4px;background:#e5e6dd;overflow:hidden}.play-progress i{display:block;height:100%;width:0;background:#777f6e}@media(max-width:700px){.play-header{height:60px;padding:0 14px}.play-content{min-height:calc(100dvh - 60px);padding:10px 14px 16px}.play-logo{width:clamp(62px,10vh,80px)}.ball-track{height:39px}.rhythm-ball{width:23px;height:23px}.play-board{gap:5px}.board-cell{height:clamp(41px,8vh,54px);border-radius:9px}.board-word{font-size:15px}.play-note{margin:14px 0;font-size:11px}.play-player{padding:12px;border-radius:15px}.play-album,.play-player button{width:43px;height:43px}.play-header span{font-size:12px}}@media(max-height:500px) and (orientation:landscape){.play-content{justify-content:flex-start}.play-logo{width:50px}.ball-track{height:30px}.board-cell{height:35px}.play-note{margin:8px}.play-player{padding:8px}.play-header{height:56px}}
/* Consecutive pairs keep their colors as the board advances. */
.board-word.pair-0,.word-preview .pair-0{background:#f5d0a2;border-color:#e5b778;color:#332211;box-shadow:0 3px 0 #d6a36f}
.board-word.pair-1,.word-preview .pair-1{background:#b6d9e7;border-color:#8abecf;color:#102f3c;box-shadow:0 3px 0 #82b5c5}
.board-current.board-word.board-active.pair-0{background:#eeae69}
.board-current.board-word.board-active.pair-1{background:#83bcd3}
.play-content{gap:0}.ball-track{height:70px}.rhythm-ball{width:30px;height:30px}
.play-header button:focus-visible,.play-player button:focus-visible{outline:3px solid #667e5d;outline-offset:3px}
.play-header button:disabled,.play-player button:disabled{opacity:.55;cursor:wait}
@media(max-width:700px){.ball-track{height:55px}.rhythm-ball{width:25px;height:25px}}
@media(max-height:500px) and (orientation:landscape){.ball-track{height:42px}}
@media(prefers-reduced-motion:reduce){.board-cell{transition:none}}
/* The mark is centered independently of the width of the surrounding text. */
.game-title{width:100%;display:flex;flex-direction:column;align-items:center;text-align:center}
.game-title h1{display:flex;align-items:center;justify-content:center;width:100%;margin:6px 0 0;line-height:0}
.game-title h1 img{display:block;flex:none;width:min(240px,26vh,55vw);height:auto;max-width:100%;object-fit:contain;margin:0 auto;mix-blend-mode:normal}
@media(max-width:700px) and (orientation:portrait){.game-title h1 img{width:min(190px,24vh,52vw)}.game-title p{margin:4px 0 8px}.word-area{min-height:clamp(68px,12vh,100px)}.beat-row{padding-bottom:7px}.controls{margin-top:8px}.message{margin-top:5px}}
@media(max-height:480px) and (orientation:landscape){.game-title h1 img{width:min(105px,19vh,18vw)}}
@media(max-width:700px) and (max-height:480px) and (orientation:landscape){
 .sidebar{height:50px}.playground{height:calc(100dvh - 50px);min-height:0;padding:6px 20px 7px;overflow:auto}.topbar{font-size:10px}.game{flex:1;min-height:0;padding:2px 0;justify-content:center}.game-title .eyebrow{font-size:8px}.game-title h1{margin:2px 0 0}.game-title h1 img{width:min(100px,18vh,20vw)}.game-title p{font-size:10px;margin:2px 0 4px}.stage{padding:7px 15px 0;border-radius:13px}.stage-top,.stage-bottom{font-size:9px}.word-area{min-height:43px}.word-label{font-size:9px;margin:2px 0}.word{font-size:22px}.word-area p{font-size:9px;margin:2px 0}.beat-row{padding:2px 0 5px}.beat-row span{width:6px;height:6px}.stage-bottom{padding-bottom:5px}.progress{margin:0 -15px}.controls{margin-top:4px;gap:3px}.primary{font-size:10px;gap:2px}.play-icon{width:35px;height:35px;font-size:12px}.message{font-size:9px;margin:3px 0 0;min-height:11px}.how{display:none}
}
@media(max-width:700px) and (max-height:480px) and (orientation:landscape){.sidebar{width:100%;padding:0 14px}.brand{padding:0;white-space:nowrap}.brand small{white-space:nowrap}.playground{overflow:hidden}.playground:before,.playground:after{display:none}.side-bottom{padding:0}.game-title{min-width:0}}
/* Two offset blocks keep the hand-made lettering expressive and centered. */
.game-title h1.logo-stack{width:min(340px,36vh,70vw);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;margin:6px auto 15px;line-height:1}
.logo-strip{display:block;position:relative;flex:none;width:100%;aspect-ratio:2/1;background-image:url('/logo-characters-large.png');background-repeat:no-repeat;background-size:100% 200%;border-radius:20px;box-shadow:0 4px 0 #d8d6ca;}
.logo-top{background-color:#fffdf6;background-position:center top;transform:rotate(-2deg) translateX(-3px)}
.logo-bottom{background-color:#eae9e1;background-position:center bottom;transform:rotate(1.6deg) translateX(3px)}
.brand-icon,.beat-art,.beat-cover,.play-album{overflow:hidden;background:#eae9e1}
.brand-icon img,.beat-art img,.beat-cover img,.play-album img{width:100%;height:100%;object-fit:contain;display:block}
.setup-footer{justify-content:flex-end}
@media(max-width:700px) and (orientation:portrait){.game-title h1.logo-stack{width:min(245px,33vh,70vw);gap:4px;margin:3px auto 10px}.logo-strip{border-radius:13px;box-shadow:0 3px 0 #d8d6ca}.word-area{min-height:clamp(55px,10vh,80px)}.stage{padding-top:8px}.beat-row{padding-bottom:6px}.controls{margin-top:7px}}
@media(max-width:700px) and (max-height:480px) and (orientation:landscape){.game-title h1.logo-stack{width:min(110px,24vh,22vw);gap:3px;margin:2px auto 4px}.logo-strip{border-radius:8px;box-shadow:0 2px 0 #d8d6ca}}
.word-label:empty,.word-area p:empty,.message:empty{display:none}
/* Gentle background motion stays behind every interactive element. */
.floating-notes{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:0;color:#92988a}
.floating-notes span{position:absolute;display:block;bottom:-12%;font-family:Georgia,serif;font-size:clamp(20px,2.5vw,34px);font-weight:700;opacity:0;animation:note-float 17s linear infinite;user-select:none}
.floating-notes span:nth-child(1){left:8%;animation-delay:-3s;animation-duration:18s}
.floating-notes span:nth-child(2){left:23%;animation-delay:-13s;animation-duration:22s;font-size:24px}
.floating-notes span:nth-child(3){left:38%;animation-delay:-8s;animation-duration:19s;font-size:23px}
.floating-notes span:nth-child(4){left:55%;animation-delay:-17s;animation-duration:23s;font-size:29px}
.floating-notes span:nth-child(5){left:70%;animation-delay:-5s;animation-duration:21s;font-size:24px}
.floating-notes span:nth-child(6){left:84%;animation-delay:-15s;animation-duration:24s;font-size:27px}
.floating-notes span:nth-child(7){left:94%;animation-delay:-10s;animation-duration:20s;font-size:20px}
@keyframes note-float{0%{transform:translate3d(0,0,0) rotate(-12deg);opacity:0}15%{opacity:.21}80%{opacity:.16}100%{transform:translate3d(18px,-115vh,0) rotate(14deg);opacity:0}}
@media(prefers-reduced-motion:reduce){.floating-notes span{animation-play-state:paused}}

.playground[data-motion="on"] .floating-notes span{animation-play-state:running}
.playground[data-motion="off"] .floating-notes span{animation-play-state:paused}
.ambient-toggle{position:absolute;z-index:2;right:clamp(12px,2vw,24px);bottom:clamp(12px,2vw,24px);display:flex;align-items:center;justify-content:center;gap:2px;min-width:44px;min-height:44px;padding:0 8px;border:1px solid #d7dad1;border-radius:13px;background:#fffefa;color:#4c534a;font-size:18px;box-shadow:0 2px 8px #303a2510}.ambient-toggle:hover{background:#eeefe9}.ambient-state{font-size:10px}.ambient-toggle:focus-visible{outline:3px solid #667e5d;outline-offset:3px}
@media(max-width:700px){.ambient-toggle{right:12px;bottom:12px;min-width:44px;min-height:44px}}
/* Preview follows the four-beat board used during play. */
.preview-area{display:grid;grid-template-columns:36px minmax(0,1fr) 36px;gap:8px;align-items:center;margin:auto 0}
.word-preview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:0;padding:18px 0}
.word-preview .preview-cell{display:grid;place-items:center;min-width:0;min-height:54px;padding:4px;border:1px solid #dedfd6;border-radius:10px;background:#efeee8;box-shadow:none;font-size:clamp(12px,1.1vw,16px);word-break:keep-all}
.word-preview .preview-word.pair-0{background:#f5d0a2;border-color:#e5b778;color:#332211;box-shadow:0 3px 0 #d6a36f}
.word-preview .preview-word.pair-1{background:#b6d9e7;border-color:#8abecf;color:#102f3c;box-shadow:0 3px 0 #82b5c5}
.preview-arrow{height:44px;width:36px;border:0;border-radius:10px;background:transparent;color:#494e45;font-size:30px;line-height:1}.preview-arrow:hover:not(:disabled){background:#efeee8}.preview-arrow:disabled{opacity:.25;cursor:default}
.word-set{display:flex;align-items:center;justify-content:center;gap:10px;background:#f2f1eb;border:1px solid #e3e3da;border-radius:14px;padding:10px;text-align:left}.word-set-icon{display:grid;place-items:center;background:#d7dfd1;color:#344333;border-radius:8px;width:32px;height:32px;font-size:15px;font-weight:800}.word-set strong,.word-set small{display:block}.word-set strong{font-size:13px}.word-set small{color:#777b70;font-size:11px;margin-top:3px}
.word-settings{display:flex;justify-content:space-between;align-items:center;margin-top:12px;padding:10px 12px;background:#f7f6f1;border:1px solid #e3e3da;border-radius:12px}.word-settings label{font-size:12px;font-weight:750;color:#555a51}.word-settings select{font:inherit;font-size:13px;font-weight:750;color:#272a25;border:0;background:transparent;padding:5px;cursor:pointer}.word-settings select:focus-visible{outline:2px solid #667e5d;outline-offset:2px}
@media(max-width:700px){.preview-area{grid-template-columns:30px minmax(0,1fr) 30px;gap:4px}.preview-arrow{width:30px}.word-preview{gap:5px;padding:12px 0}.word-preview .preview-cell{min-height:42px;font-size:13px}.word-set{padding:8px}.word-settings{margin-top:9px;padding:7px 10px}}
@media(max-width:700px){.setup-header{height:52px;flex:none}.setup-content{gap:9px;padding:10px 0}.setup-heading{align-items:center;margin-bottom:7px}.setup-heading>span{width:28px;height:28px;border-radius:9px}.setup-heading h3{font-size:15px}.setup-heading p{display:none}.setup-panel{padding:10px}.beat-option{padding:8px}.beat-cover{width:42px;height:42px}.beat-panel .setup-note,.words-panel .setup-note{display:none}.word-settings{margin-top:8px}.word-preview{padding:9px 0}.word-preview .preview-cell{min-height:34px}.word-set{padding:6px}.word-set-icon{width:27px;height:27px}.setup-footer{padding-top:9px}}
