/* ElosPlay Experience V4.8 — Siga o Ritmo; independent renderer */
.ep48-settings {border:1px solid #cce5e4;border-radius:16px;padding:18px;background:#f4faf9}
.ep48-settings legend{font-weight:800;color:#123e4d;padding:0 6px}
.ep48-settings>p{margin:4px 0 14px;color:#51717b;font-size:14px}
.ep48-settings-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.ep48-settings-grid label{display:flex;flex-direction:column;gap:7px;font-weight:700;font-size:13px}
.ep48-settings-grid select{min-height:45px;border:1px solid #c9dfe3;background:white;border-radius:10px;padding:10px;width:100%;color:#113a4a}
.ep48-settings>small{display:block;margin:12px 0 0;color:#587480;line-height:1.5}
.ep48-game{min-height:100vh;padding:0!important;background:linear-gradient(155deg,#eff9fa,#f8fcfc 75%);color:#123949;font-family:inherit}
.ep48-bar{height:70px;display:flex;align-items:center;justify-content:space-between;gap:16px;background:white;padding:10px clamp(16px,3vw,42px);border-bottom:1px solid #deebee}
.ep48-brand,.ep48-bar-tools{display:flex;align-items:center;gap:10px}
.ep48-brand img{width:38px;height:38px}.ep48-brand strong{font-size:21px}.ep48-brand span{font-size:13px;color:#77909a}.ep48-bar-tools>span{font-size:13px;padding:9px 14px;border-radius:30px;background:#d9f6ef;color:#006b60;font-weight:800}
.ep48-body{max-width:1600px;margin:0 auto;padding:26px clamp(16px,3vw,44px) 44px}
.ep48-heading{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:17px}
.ep48-kicker{display:block;font-size:11px;font-weight:850;color:#008678;letter-spacing:1.3px;margin-bottom:6px}
.ep48-heading h1{margin:0;font-size:clamp(27px,2.5vw,37px);font-weight:850;line-height:1.14;color:#10394a}
.ep48-heading p{margin:7px 0 0;font-size:15px;color:#60808a}
.ep48-phase{background:#e0f7f2;color:#008a79;border:1px solid #c7e6e2;border-radius:25px;font-weight:850;font-size:13px;padding:9px 16px;white-space:nowrap}
.ep48-progress{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:16px;background:white;border:1px solid #dfebee;border-radius:16px;padding:13px 18px;margin-bottom:19px;box-shadow:0 5px 20px #0c51630b}
.ep48-progress b,.ep48-progress>span{font-size:14px}.ep48-progress>span{font-weight:800;color:#007c74}
.ep48-progress-track{height:12px;border-radius:20px;background:#e3ecee;overflow:hidden}
.ep48-progress-track i{display:block;height:100%;background:linear-gradient(90deg,#13b4a8,#0a857a);border-radius:20px;transition:width .25s ease}
.ep48-layout{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(315px,.95fr);gap:18px;align-items:stretch}
.ep48-stage{background:linear-gradient(145deg,#0b4254,#086878 65%,#0f8e8b);border-radius:25px;min-height:485px;padding:23px;box-shadow:0 14px 32px #0a52611c;display:flex;flex-direction:column;color:white;overflow:hidden}
.ep48-stage-top{display:flex;align-items:center;justify-content:space-between;gap:12px;font-weight:750;font-size:14px;min-height:34px}
.ep48-note-ref{display:inline-flex;align-items:center;gap:8px;background:#ffffff1c;border:1px solid #ffffff30;padding:8px 12px;border-radius:18px;font-size:13px}
.ep48-note-ref i{height:14px;width:14px;border-radius:50%;flex:none}
.ep48-percussion{display:flex;flex-direction:column;align-items:center;text-align:center;justify-content:center;flex:1;position:relative;gap:10px}
.ep48-stage-prompt{font-size:12px;letter-spacing:1.7px;font-weight:800;color:#c2f1ea}.ep48-stage-state{font-size:clamp(27px,4vw,48px);font-weight:950;letter-spacing:1px;color:#fff}
.ep48-drum-holder{width:260px;height:193px;position:relative;display:flex;align-items:end;justify-content:center;margin:6px auto}
.ep48-drumsticks{position:absolute;top:-1px;left:50%;width:160px;height:100px;transform:translateX(-50%);z-index:2}
.ep48-drumsticks i{position:absolute;top:16px;width:10px;height:110px;border-radius:7px;background:linear-gradient(90deg,#a86c32,#ffc07f,#92521e);transform-origin:bottom}
.ep48-drumsticks i:first-child{left:53px;transform:rotate(-44deg)}.ep48-drumsticks i:last-child{right:53px;transform:rotate(44deg)}
.ep48-drum{position:relative;width:220px;height:116px;border-radius:19px 19px 70px 70px;background:linear-gradient(90deg,#8e2439,#e95d62,#b92a45);border:6px solid #c83f49;box-shadow:inset 0 -18px 20px #5d1c2c45,0 16px 25px #092c3e40}
.ep48-drum:before{content:"";position:absolute;top:-24px;left:-8px;right:-8px;height:53px;border-radius:50%;background:linear-gradient(150deg,#ffede1,#fffdf0,#c9c8c1);border:7px solid #d1dbe1;box-shadow:0 4px 8px #11111131}
.ep48-drum:after{content:"";position:absolute;left:15px;right:15px;top:31px;height:60px;border-left:4px solid #ffd6d3;border-right:4px solid #ffd6d3;border-radius:7px}
.ep48-tap-button,.ep48-external-mode{border-radius:40px;min-width:230px;min-height:57px;display:flex;align-items:center;justify-content:center;font-size:23px;font-weight:900;letter-spacing:1px;color:white;background:linear-gradient(175deg,#16d3c5,#008f89);border:2px solid #9cece6;box-shadow:0 8px 24px #00bfaf55;touch-action:manipulation}
.ep48-tap-button:not(:disabled):active{transform:scale(.97);background:#0da399}.ep48-tap-button:focus-visible{outline:4px solid #fce062;outline-offset:3px}.ep48-tap-button:disabled{opacity:.52;cursor:not-allowed}
.ep48-tap-button.is-rest{background:linear-gradient(140deg,#cf3340,#a91635);border-color:#ffadad}
.ep48-external-mode{background:#f4fbff22;box-shadow:none;border:1px solid #ffffff77;color:#fff;padding:10px 20px;font-size:16px;letter-spacing:0}
.ep48-stage-note{margin:6px 0 0;max-width:440px;line-height:1.4;font-size:14px;color:#cbefee}
.ep48-percussion.is-rest .ep48-drum-holder{filter:grayscale(.7);opacity:.7}
.ep48-idle{display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;flex:1;gap:17px;padding:15px}
.ep48-idle-icon{font-size:55px;display:grid;place-items:center;height:94px;width:94px;border:1px solid #ffffff50;border-radius:50%;background:#ffffff20}
.ep48-idle strong{font-size:clamp(22px,2.8vw,32px);line-height:1.15}.ep48-idle p{color:#ccebea;font-size:15px;line-height:1.45;max-width:420px;margin:0}
.ep48-time{font-size:55px;background:#ffffff1f;border:1px solid #ffffff55;border-radius:22px;padding:15px 32px;font-weight:950;font-variant-numeric:tabular-nums}
.ep48-beat-progress{display:flex;gap:8px;align-items:center;justify-content:center;margin:15px auto 0;width:100%}
.ep48-beat-dot{width:23px;height:11px;border-radius:50px;background:#ffffff45;border:1px solid #ffffff66}.ep48-beat-dot.now{background:#5be7dc;box-shadow:0 0 0 4px #5be7dc2c}.ep48-beat-dot.done{background:#98e3dc}
.ep48-side{display:flex;flex-direction:column;gap:14px;min-width:0}
.ep48-mode-overview,.ep48-observe,.ep48-controls{border:1px solid #d9e9ec;border-radius:19px;background:white;padding:19px;box-shadow:0 6px 20px #13515e0b}
.ep48-mode-overview{background:linear-gradient(135deg,#effdf9,#fff)}.ep48-mode-overview h2{margin:0 0 7px;font-size:21px;color:#123c4a}.ep48-mode-overview p{font-size:14px;line-height:1.5;color:#57747d;margin:0}
.ep48-observe header{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:6px;margin-bottom:12px}.ep48-observe header strong{font-size:16px}.ep48-observe header small{font-size:12px;color:#6b8590}
.ep48-observe-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.ep48-observe-grid button{background:#f7fbfb;color:#183f4f;border:1px solid #cadfe3;border-radius:11px;min-height:45px;padding:9px;font-weight:750;font-size:13px;cursor:pointer}
.ep48-observe-grid button:not(:disabled):hover{background:#e1f5ef;border-color:#0d998e}.ep48-observe-grid button:disabled{opacity:.48;cursor:not-allowed}
.ep48-auto-status{margin:14px 0 8px;padding:11px 12px;border-radius:12px;background:#e6f7f2;display:flex;flex-wrap:wrap;gap:8px;justify-content:space-between;font-size:12px;color:#27605b}.ep48-auto-status strong{color:#00786c}.ep48-auto-status b{font-variant-numeric:tabular-nums}
.ep48-next{display:block;width:100%;margin:8px auto 0}
.ep48-controls{margin-top:auto}.ep48-controls h3{font-size:15px;margin:0 0 12px}.ep48-controls>div{display:flex;flex-wrap:wrap;gap:9px}.ep48-controls .button{flex:1;min-width:135px;min-height:43px}.ep48-stats{margin:12px 0 0;font-size:13px;color:#67818b}
.ep48-clinical{background:white;border:1px solid #dbecef;border-radius:16px;margin-top:15px;overflow:hidden}
.ep48-clinical>summary{cursor:pointer;display:flex;justify-content:space-between;gap:10px;padding:17px 20px;color:#124454;font-weight:800;list-style:none}.ep48-clinical>summary::-webkit-details-marker{display:none}.ep48-clinical>summary span{font-size:12px;color:#6f939a;font-weight:500}.ep48-clinical-body{padding:0 20px 20px;display:grid;grid-template-columns:1fr 2fr;gap:14px}
.ep48-clinical-body label{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:750}.ep48-clinical-body select,.ep48-clinical-body textarea{border:1px solid #d2e4e7;border-radius:10px;padding:11px;font:inherit;background:white;width:100%;color:#173c4b}
.ep48-game.high-contrast{filter:contrast(1.12)}
@media(max-width:1080px){.ep48-layout{grid-template-columns:minmax(0,1fr) minmax(275px,.85fr)}.ep48-stage{min-height:420px}.ep48-drum-holder{transform:scale(.88);margin:-2px auto}.ep48-side .ep48-controls .button{font-size:12px}}
@media(max-width:750px){.ep48-settings-grid{grid-template-columns:1fr}.ep48-bar{height:62px;padding:8px 15px}.ep48-brand strong{font-size:18px}.ep48-brand span{display:none}.ep48-bar-tools>span{font-size:11px;padding:8px}.ep48-bar-tools .button{font-size:12px;min-height:38px}.ep48-body{padding:18px 12px 32px}.ep48-heading h1{font-size:29px}.ep48-heading p{font-size:13px}.ep48-phase{font-size:11px;padding:7px 10px}.ep48-progress{grid-template-columns:1fr auto;padding:13px;gap:9px}.ep48-progress-track{grid-column:1/-1;grid-row:2}.ep48-layout{grid-template-columns:minmax(0,1fr)}.ep48-stage{min-height:415px;padding:16px;border-radius:20px}.ep48-drum-holder{height:180px}.ep48-mode-overview,.ep48-observe,.ep48-controls{padding:15px}.ep48-controls{margin-top:0}.ep48-clinical-body{grid-template-columns:1fr}.ep48-note-ref{font-size:11px}.ep48-stage-top{font-size:12px}}
@media(max-width:380px){.ep48-bar-tools>span{display:none}.ep48-stage{min-height:395px}.ep48-drum-holder{transform:scale(.76);height:158px;margin:-11px auto}.ep48-tap-button,.ep48-external-mode{min-width:180px;min-height:49px;font-size:19px}.ep48-observe-grid button{font-size:12px}.ep48-heading h1{font-size:25px}}
@media(prefers-reduced-motion:reduce){.ep48-game *, .ep48-game *:before, .ep48-game *:after{animation:none!important;transition:none!important}}.ep48-game.calm *{animation:none!important;transition:none!important}
