:root{font-family:system-ui,-apple-system,"Segoe UI",sans-serif;background:#071226;color:#f2f6ff;--accent:#71d9ed;--border:#344c70;--muted:#b5c8e3;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-width:300px;min-height:100svh;background:radial-gradient(ellipse at top right,#173c6266,transparent 55%),#071226}button,input,select{font:inherit}button,summary,a,input,select{touch-action:manipulation}a{color:inherit;text-decoration:none}button{cursor:pointer;border:1px solid #55749b;border-radius:11px;background:#203757;color:#f2f6ff;padding:11px 16px;font-weight:650;min-height:44px;transition:background .15s,transform .15s}button:hover:not(:disabled){background:#2c4c74;transform:translateY(-1px)}button:disabled{opacity:.42;cursor:default}button.primary{background:var(--accent);border-color:var(--accent);color:#08243d;font-weight:800}button.primary:hover:not(:disabled){filter:brightness(1.08)}button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--accent);outline-offset:3px}[hidden]{display:none!important}.app{width:min(1280px,100%);padding:0 30px;margin:auto;min-height:100svh;display:flex;flex-direction:column}.header{display:flex;align-items:center;gap:22px;padding:17px 0;border-bottom:1px solid #38507188}.school-brand{flex-shrink:0;display:block;background:#e43433;border-radius:12px;padding:8px 12px;line-height:0}.school-brand img{display:block;width:170px;height:auto}.heading{flex:1;min-width:0}.heading h1{font-size:clamp(23px,3vw,34px);margin:0;letter-spacing:-.8px}.heading p{color:var(--muted);margin:6px 0 0;font-size:13px}.header-actions{display:flex;gap:8px;align-items:center}.header-actions a{padding:10px 12px;border:1px solid #55749b;border-radius:10px;font-size:13px;min-height:44px;display:grid;place-items:center}.header-actions button{font-size:13px}main{flex:1;padding:22px 0}.settings{background:#12243d;border:1px solid var(--border);border-radius:16px;padding:15px 19px;margin-bottom:18px}.settings summary{font-size:15px;font-weight:750;cursor:pointer;color:#dbe8fc}.settings-content{padding-top:15px}.settings-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}label.field{display:flex;flex-direction:column;gap:7px;align-items:stretch;font-size:12px;color:#c9d9ef;font-weight:650}select,input[type=number]{width:100%;min-width:0;background:#0a192d;color:#f2f6ff;border:1px solid #6682a5;border-radius:9px;padding:10px;min-height:43px}input[type=range]{width:125px;accent-color:var(--accent)}.check-field{display:flex;align-items:center;gap:9px;font-size:13px;color:#c9d9ef}.check-field input{accent-color:var(--accent);width:17px;height:17px;flex-shrink:0}.settings-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:15px}.save-note{font-size:12px;line-height:1.6;color:#a9c0dd;margin:10px 0 0}.save-note:empty{display:none}.summary-row{display:flex;gap:12px;flex-wrap:wrap;align-items:center;justify-content:space-between;font-size:12px;color:#bcd0eb;margin-bottom:12px}.pill{border:1px solid #5a7a9c;color:var(--accent);background:#132c48;border-radius:20px;padding:6px 12px;font-size:11px;font-weight:800;letter-spacing:1px}.stage{position:relative;background:linear-gradient(130deg,#152c49,#0c1c32);border:1px solid #41618a;border-radius:23px;padding:24px;overflow:hidden;min-height:390px}.stage-head{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:18px}.stage-head h2{font-size:clamp(22px,3vw,32px);letter-spacing:-.7px;margin:0}.time{color:var(--accent);font-variant-numeric:tabular-nums;font-size:27px;font-weight:800;white-space:nowrap}.instruction{color:#c5d8f1;text-align:center;font-size:15px;line-height:1.7;margin:15px 0 0;min-height:25px}.progress{height:5px;background:#2f496b;border-radius:9px;overflow:hidden;margin-top:20px}.progress>div{height:100%;width:0;background:var(--accent);border-radius:9px;transition:width .12s linear}.actions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin:18px 0 12px}.status{color:#bdd2ec;text-align:center;line-height:1.6;font-size:13px;min-height:22px;margin:10px 0}.answer{border:1px solid #76d2c2;background:#12433e;color:#dbfff5;border-radius:13px;padding:14px 18px;margin-top:16px;text-align:center;line-height:1.7;font-size:16px}.help{padding:12px 17px;background:#112139;border:1px solid var(--border);border-radius:12px;color:#b5cae5;font-size:13px;line-height:1.7;margin-top:18px}.help summary{cursor:pointer;font-weight:700}.help p{margin-bottom:0}.footer{padding:20px 0 23px;display:flex;justify-content:space-between;gap:15px;border-top:1px solid #38507188;color:#9eb5d1;font-size:11px}.welcome-message{display:flex;min-height:220px;align-items:center;justify-content:center;flex-direction:column;gap:9px;text-align:center;color:#d1e5ff}.welcome-message strong{font-size:29px;letter-spacing:-.6px}.welcome-message p{max-width:480px;line-height:1.8;color:#aec7e3;margin:8px 0}fieldset{min-width:0}.difficulty{display:flex;gap:8px;flex-wrap:wrap}.difficulty button{font-size:12px;padding:9px 14px}.difficulty-label{font-size:12px;color:var(--muted)}@media(max-width:820px){.app{padding:0 20px}.header{gap:15px}.school-brand img{width:145px}.header-actions{flex-direction:column}.header-actions button,.header-actions a{font-size:11px;padding:8px 10px;width:100%}.heading h1{font-size:25px}.settings-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.stage{padding:20px}}@media(max-width:560px){.app{padding:0 14px}.header{flex-wrap:wrap;padding:14px 0;gap:14px}.school-brand img{width:125px}.heading h1{font-size:23px}.heading p{font-size:11px}.header-actions{width:100%;flex-direction:row}.header-actions button,.header-actions a{font-size:12px;flex:1;min-height:40px}.settings{padding:13px 15px}.settings-grid{gap:11px}.stage{padding:17px 13px;border-radius:18px;min-height:330px}.stage-head{align-items:flex-start;margin-bottom:15px}.stage-head h2{font-size:23px}.time{font-size:23px}.instruction{font-size:13px}.actions{gap:8px}.actions button{font-size:12px;padding:10px 12px}.footer{font-size:10px}.welcome-message strong{font-size:24px}.welcome-message p{font-size:13px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
:root{--accent:#f8c675}body{background:radial-gradient(ellipse at top right,#67452b44,transparent 55%),#071226}.sound-options{display:flex;flex-direction:column;justify-content:space-around;gap:12px}.composer{border:1px solid #4a6585;border-radius:13px;padding:14px 16px;margin:18px 0 0}.composer legend{color:#f3d9ad;font-size:14px;font-weight:750;padding:0 7px}.composer p{color:var(--muted);font-size:12px;line-height:1.6;margin:0 0 13px}.composer-actions{display:flex;gap:8px;flex-wrap:wrap}.composer-actions button{font-size:12px}.draft{display:flex;list-style:none;gap:7px;flex-wrap:wrap;margin:14px 0;padding:0;min-height:36px}.draft li{padding:9px 12px;border:1px solid #6f83a0;border-radius:8px;font-size:12px;background:#1a314e}.draft:empty:after{content:"Tu patrón aparecerá aquí.";color:#95acc9;font-size:13px}#draft-count{color:#c4d3e7;font-size:12px}.cue{min-height:175px;display:flex;align-items:center;justify-content:center;gap:10px;flex-direction:column;text-align:center;padding:10px}.cue>span:first-child{width:78px;height:78px;border:1px solid #d0b27f;border-radius:50%;background:#493d2d;display:grid;place-items:center;font-size:41px;line-height:1;color:#ffda9f}.cue strong{font-size:clamp(24px,3.2vw,37px);line-height:1.3}.cue>span:last-child{font-size:13px;color:#bed0e9;line-height:1.5}.cue.pulse>span:first-child{box-shadow:0 0 0 7px #f8c67522;background:#775624}.pattern{padding:0;list-style:none;display:grid;grid-template-columns:repeat(auto-fit,minmax(72px,1fr));gap:10px;margin:20px 0 0}.beat{min-height:88px;border:1px solid #57769d;border-radius:13px;background:#18324e;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:0;padding:7px 3px;position:relative}.beat .beat-index{position:absolute;top:5px;left:8px;font-size:9px;color:#a7bdd8}.beat .beat-icon{font-size:29px;line-height:1.2;margin-top:5px}.beat .beat-label{font-size:10px;font-weight:700;text-align:center}.beat.current{outline:3px solid #f9cb80;outline-offset:1px;background:#625039}.beat.concealed{color:#9bb1ce;background:#122840}.beat.concealed .beat-icon{font-size:25px}#audio-status:empty{display:none}.stage.echo{border-color:#7cd6cb}.stage.echo .cue>span:first-child{border-color:#80e1d4;color:#a1f7e9;background:#174b4b}@media(max-width:560px){.cue{min-height:170px;padding:10px 0}.cue>span:first-child{width:65px;height:65px;font-size:34px}.cue>span:last-child{font-size:12px}.pattern{gap:9px;grid-template-columns:repeat(4,minmax(0,1fr))}.beat{min-height:80px}.beat .beat-label{font-size:9px}.composer{padding:13px 10px}.composer-actions button{flex:1;min-width:95px}.sound-options{gap:13px;grid-column:1/-1}.check-field{font-size:12px}}
