.home-view{padding:52px 0 24px}.home-heading h1{font-size:clamp(43px,5vw,68px);line-height:1.06;margin:16px 0 17px;letter-spacing:-3px}.home-heading p{color:var(--muted);margin:0;font-size:15px}.mode-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;margin-top:38px}.mode-card{--accent:var(--green);background:#191d16;border:1px solid #343d2b;padding:24px;border-radius:13px;text-align:left;min-width:0;transition:transform .2s,border-color .2s;display:flex;flex-direction:column;color:var(--text)}.mode-card:hover{transform:translateY(-5px);border-color:var(--accent)}.mode-number{font:11px var(--mono);letter-spacing:1.3px;color:var(--muted)}.mode-art{height:170px;margin:17px 0 22px;position:relative;overflow:hidden;border-radius:6px;background:#242d1c}.mode-card-tag{font:10px var(--mono);color:var(--accent);letter-spacing:1.1px}.mode-card h2{font:500 clamp(22px,2vw,28px) var(--mono);margin:11px 0 12px;letter-spacing:-.8px}.mode-card p{font-size:14px;line-height:1.75;color:#a9b49b;margin:0 0 26px}.mode-enter{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #38412f;padding-top:18px;margin-top:auto;font-size:13px;font-weight:500}.mode-enter>span{font-size:24px;color:var(--accent)}.ambient-card{--accent:#a4c8fa}.ambient-art{background:#202b39}.tiles-card{--accent:#d3b6fe}.tiles-art{background:#2a2236}.rhythm-art{display:flex;align-items:center;justify-content:center;gap:7px}.rhythm-art>span{border:1px solid #81965b;border-bottom-width:4px;border-radius:7px;background:#354621;padding:9px 15px;font:33px var(--mono);color:var(--green);z-index:1;transform:translateY(-10px)}.rhythm-art>span:nth-child(2){background:var(--green);color:#233015;transform:translateY(-3px)}.rhythm-art i{position:absolute;bottom:20px;left:30%;height:4px;width:8px;background:#718c46}.rhythm-art i:nth-of-type(2){left:40%;height:12px}.rhythm-art i:nth-of-type(3){left:50%;height:19px}.rhythm-art i:nth-of-type(4){left:60%;height:12px}.rhythm-art i:nth-of-type(5){left:70%}.ambient-art>span{display:block;text-align:center;font-size:59px;margin-top:17px;color:#a4c8fa}.ambient-art>div{position:absolute;left:15%;right:15%;bottom:30px;height:22px;display:flex;align-items:center;justify-content:space-between}.ambient-art i{width:5px;height:14px;background:#6c91c3;border-radius:3px}.ambient-art i:nth-child(3n){height:30px}.ambient-art i:nth-child(2n){height:7px}.tiles-art{display:flex;padding:0 17px;gap:8px;align-items:flex-start}.tiles-art:after{content:'';position:absolute;bottom:26px;left:0;width:100%;height:2px;background:#d3b6fe}.tiles-art>span{width:25%;height:60px;margin-top:80px;display:grid;place-items:center;background:#4b395f;border:1px solid #8a6ba9;border-radius:5px;font:24px var(--mono);color:#e3ceff}.tiles-art>span:nth-child(2){margin-top:-15px}.tiles-art>span:nth-child(3){margin-top:30px;background:#d3b6fe;color:#342047}.tiles-art>span:nth-child(4){margin-top:-37px}.home-bottom{display:flex;gap:34px;margin-top:28px;color:var(--muted);font-size:12px;flex-wrap:wrap}.home-check{margin-right:7px;color:var(--green)}.back-link{background:none;border:0;padding:0;color:var(--muted);font-size:12px;margin-bottom:17px}.back-link:hover{color:var(--green)}#modeBadge{font:11px var(--mono);letter-spacing:1px;width:auto;height:auto;background:none}.link-form{margin-top:19px}.link-form label{font-size:12px;color:#c9d0c0}.link-form>div{display:flex;margin-top:8px}.link-form input{min-width:0;width:100%;background:#10150e;border:1px solid #454f38;border-radius:5px 0 0 5px;padding:9px;font-size:13px;color:var(--text)}.link-form button{border:1px solid #454f38;border-left:0;background:#2b3621;color:var(--green);border-radius:0 5px 5px 0;width:38px;font-size:23px}.link-form p,.tile-settings p{font-size:12px;color:var(--muted);line-height:1.55;margin:8px 0 0}.source-message{font-size:12px;color:var(--green);line-height:1.6;margin:8px 0 0}.source-message:empty{display:none}.source-message.error{color:#f4ab9f}#toleranceControl{margin-bottom:20px}.tile-settings{margin:18px 0 24px}.tile-settings label{font-size:12px;color:#c9d0c0;display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px}.tile-settings input[type=number]{width:65px;border:1px solid #515e40;background:#11170b;border-radius:5px;color:var(--green);padding:6px;font-family:var(--mono)}.tile-settings output{white-space:nowrap;color:var(--muted);font:11px var(--mono)}.tile-mode-label{font:12px var(--mono);letter-spacing:1px;color:#d3b6fe}.tiles-game{margin-top:18px}.tile-board{position:relative;height:345px;background:#11140f;border:1px solid #39452e;border-radius:8px 8px 0 0;overflow:hidden;isolation:isolate}.lane-lines{position:absolute;inset:0;display:flex;pointer-events:none}.lane-lines i{width:25%;border-right:1px solid #333d29}.lane-lines i:last-child{border:0}.lane-lines i:nth-child(2n){background:#161c11}.hit-line{position:absolute;left:0;right:0;top:82%;height:2px;background:var(--green);box-shadow:0 0 15px #d5fa7544;pointer-events:none}.hit-line span{position:absolute;right:8px;top:9px;font:8px var(--mono);letter-spacing:1px;color:#a9c17e}.falling-note{position:absolute;top:0;left:calc(var(--lane)*25% + 2%);width:21%;height:54px;border:1px solid #91ac64;border-bottom:4px solid #7b9b4d;border-radius:5px;background:#c9f274;color:#213410;display:grid;place-items:center;font:600 25px var(--mono);will-change:transform;pointer-events:none}.falling-note:nth-child(3n){background:#d9c0ff;border-color:#a482cd}.falling-note.hit{opacity:0}.falling-note.miss{background:#a05448;border-color:#bd6a5e;color:#ffe3dc;opacity:.45}.lane-buttons{display:grid;grid-template-columns:repeat(4,1fr);gap:0}.lane-buttons button{height:48px;background:#222b19;color:#d5e4be;border:1px solid #465337;border-top:0;font:500 18px var(--mono);touch-action:manipulation}.lane-buttons button:first-child{border-radius:0 0 0 7px}.lane-buttons button:last-child{border-radius:0 0 7px 0}.lane-buttons button.pressed,.lane-buttons button:active{background:var(--green);color:#20320e}.tile-overlay{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#11170dc9;font:500 22px var(--mono);text-align:center;z-index:3;color:var(--text);pointer-events:none}.tile-overlay small{margin-top:15px;font-size:17px;letter-spacing:5px;color:var(--green)}.tile-judgment{position:absolute;top:18px;left:0;right:0;text-align:center;font:600 19px var(--mono);color:var(--green);text-shadow:0 2px 5px #000;pointer-events:none;z-index:2}.tile-judgment.bad{color:#ffa893}.tiles-caption{display:flex;justify-content:space-between;color:var(--muted);font:11px var(--mono);margin:11px 0 18px}.youtube-panel{border:1px solid #45513a;border-radius:10px;padding:18px;background:#171d12;margin:0 0 20px}.youtube-heading{display:flex;justify-content:space-between;gap:15px;font:10px var(--mono);color:#cbd6bf;margin-bottom:14px}.youtube-heading>span:last-child{color:var(--muted);font-family:'DM Sans',sans-serif}#youtubeMount{width:100%;min-height:220px;aspect-ratio:16/9;background:#080a07}#youtubeMount>div,#youtubeMount iframe{width:100%;height:100%;min-height:220px;border:0;display:block}.youtube-panel p{font-size:12px;color:var(--muted);line-height:1.6;margin:12px 0 0}#playView[data-mode=ambient] .game-panel.playing{border-color:#5e7894}#playView[data-mode=tiles] .game-panel{padding-bottom:22px}#playView[data-mode=tiles] .flow-status{margin-top:18px}#playView[data-mode=tiles] .game-actions{padding-top:18px}#playView[data-mode=tiles] .stats>div:nth-child(3) strong{color:#d3b6fe}.primary:disabled{opacity:.5;cursor:wait}
@media(max-width:1000px){.mode-grid{gap:14px}.mode-card{padding:19px}.mode-art{height:145px}.rhythm-art>span{font-size:25px;padding:8px 10px}.home-bottom{gap:20px}.home-heading h1{font-size:53px}}
@media(max-width:760px){.home-view{padding-top:30px}.home-heading h1{font-size:46px}.mode-grid{grid-template-columns:1fr;margin-top:28px}.mode-card{display:grid;grid-template-columns:1fr 120px;column-gap:20px;position:relative;padding:22px}.mode-art{grid-column:2;grid-row:1/5;height:145px;margin:0;align-self:center}.mode-number{font-size:10px;margin-bottom:18px}.mode-card-tag{font-size:9px}.mode-card h2{font-size:25px;margin:9px 0}.mode-card p{font-size:12px;margin-bottom:15px}.mode-enter{grid-column:1/-1;padding-top:12px}.rhythm-art{gap:4px}.rhythm-art>span{font-size:20px;padding:6px}.tiles-art{padding:0 6px;gap:4px}.tiles-art>span{font-size:17px}.ambient-art>span{font-size:44px}.mode-card:hover{transform:none}.home-bottom{font-size:11px;gap:12px 20px}.setup{display:block}.setup .track-art{height:150px;width:100%;margin-top:18px}.setup .track-info{padding:15px 0}.setup .file-note{margin-top:10px}.setup .upload{font-size:14px}.setup .settings-label{margin:24px 0 20px}.setup .range-captions{margin-bottom:20px}.setup .tip{margin-top:20px;padding-top:15px}.source-message{font-size:13px}.link-form input{font-size:16px}#tileBoard{height:310px}.youtube-heading{flex-direction:column;gap:6px}#youtubeMount,#youtubeMount iframe{min-height:220px}.home-heading p{font-size:14px}}
@media(max-width:380px){.mode-card{grid-template-columns:1fr 85px;gap:12px}.mode-art{height:130px}.mode-card h2{font-size:21px}.mode-card-tag{font-size:8px}.rhythm-art>span{font-size:16px;padding:4px}}
.brand{font-size:25px;letter-spacing:-1px;white-space:nowrap}@media(max-width:760px){.brand{font-size:20px;gap:7px}.brand-icon{width:30px;height:30px;font-size:26px}.header-note{display:none}}
.text-tools{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-top:17px}.draw-text{border:1px solid #697d49;background:#26331c;color:var(--green);border-radius:6px;padding:9px 13px;font-size:13px;white-space:nowrap}.draw-text:hover{background:#374927}.text-credit{font-size:12px;line-height:1.6;flex:1;min-width:180px}.text-credit a{color:#d3dfc0;text-decoration:underline;text-underline-offset:3px}.text-credit span{display:block;color:var(--muted);font-size:11px}
.home-intro{display:grid;grid-template-columns:minmax(0,1fr) 336px;align-items:center;gap:40px}.ad-space{min-width:0;border:1px solid #30362a;border-radius:8px;background:#141811;padding:12px;text-align:center}.ad-label{display:block;font:10px var(--mono);letter-spacing:1.6px;color:#9aa58b;margin-bottom:10px}.ad-content{width:100%;min-height:100px;display:grid;place-items:center}.ad-placeholder{font-size:12px;color:#758168;line-height:1.6;padding:12px}.ad-home .ad-content{min-height:180px}.ad-home{width:336px;justify-self:end}.ad-footer{width:100%;max-width:970px;margin:64px auto 0}.ad-footer .ad-content{min-height:90px}#playView:not([hidden])~.ad-footer{margin-top:160px}@media(max-width:1000px){.home-intro{grid-template-columns:minmax(0,1fr) 300px;gap:24px}.ad-home{width:300px}.ad-home .ad-content{min-height:160px}}@media(max-width:760px){.home-intro{display:block}.ad-home{display:none}.ad-footer{margin-top:38px}.ad-footer .ad-content{min-height:100px}#playView:not([hidden])~.ad-footer{margin-top:160px}}
.free-editor{padding:20px 28px}.free-editor label{display:block;color:#d5fa75;font-size:14px}.free-editor p{color:#a2a894;font-size:12px;line-height:1.6}.free-editor textarea{display:block;box-sizing:border-box;width:100%;min-height:220px;resize:vertical;padding:16px;border:1px solid #424a35;border-radius:8px;background:#111510;color:#e9eddf;font:20px/1.7 monospace;caret-color:#d5fa75}.free-editor textarea:focus{outline:2px solid #d5fa75;outline-offset:2px}.free-editor>span{display:block;margin-top:12px;font-size:12px;color:#a2a894}.home-demo{margin-top:24px;color:#a2a894;font-size:13px}.home-demo summary{cursor:pointer}.home-demo p{line-height:1.8;max-width:760px}.mode-tabs{flex-wrap:wrap}.game-top{flex-wrap:wrap;gap:12px}@media(max-width:600px){.free-editor{padding:16px}.mode-tabs button{padding:9px 10px;font-size:12px}}
/* Free practice keeps the original open typing surface, without a form box. */
.free-editor{padding:18px 0 0}.free-editor textarea{background:transparent;border:0;border-radius:0;resize:none;padding:12px 0;min-height:200px;color:var(--text);font:24px/1.8 var(--mono);box-shadow:none}.free-editor textarea:focus{outline:none}.free-editor textarea::placeholder{color:var(--muted);opacity:.65}.free-editor>span{font:11px var(--mono);color:var(--muted);text-align:right}.mode-tabs{flex-wrap:wrap}
