/* V5.0: motion and tactile feedback. Existing colors remain unchanged. */
:root{--motion-ease:cubic-bezier(.2,.75,.25,1);--motion-spring:cubic-bezier(.18,.9,.28,1.16)}
button,.game-nav,.qr-download{position:relative;transition:transform .24s var(--motion-spring),box-shadow .24s var(--motion-ease),filter .22s ease,opacity .22s ease;touch-action:manipulation; -webkit-tap-highlight-color:transparent}
button:not(:disabled):active,.game-nav:active{transform:scale(.95);box-shadow:0 0 0 2px #e99cd64a}
button:disabled{transition:opacity .22s ease;cursor:not-allowed}
button:not(:disabled):focus-visible,.game-nav:focus-visible{outline-offset:4px}
@media(hover:hover) and (pointer:fine){button:not(:disabled):hover,.game-nav:hover{transform:translateY(-3px) scale(1.025);box-shadow:0 6px 20px #ff75c83b}}
.song,.queueitem{transition:background .25s ease,border-color .25s ease,box-shadow .25s ease;animation:v5-enter .3s var(--motion-ease) both}
.song:focus-within,.song:has(.art.tilting),.queueitem:has(.art.tilting){background:#ffffff08}
@keyframes v5-enter{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
/* Rounded outer frame, no crop, overlay, filter or modification of album artwork. */
.song .art,.queueitem .art,.mobile-now-art,.editrow .art{border-radius:12px;overflow:visible;padding:3px;box-sizing:border-box;background:#30203e;border:1px solid #80567c;transform:perspective(420px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)) scale(var(--lift,1));transform-origin:center;transition:transform .4s var(--motion-spring),box-shadow .35s var(--motion-ease),border-color .2s ease;box-shadow:0 3px 7px #0004;touch-action:pan-y;position:relative;z-index:1}
.song .art img,.queueitem .art img,.mobile-now-art img,.editrow .art img{display:block;width:100%;height:100%;object-fit:contain;border-radius:0;pointer-events:none;user-select:none;-webkit-user-drag:none}
.art.tilting,.mobile-now-art.tilting{--lift:1.15;z-index:3;transition:transform .10s ease-out,box-shadow .2s ease;box-shadow:0 8px 17px #0009,0 0 12px #ef9ad44d;border-color:#e4a8d3}
.guest-layout .song button[data-request]{min-height:48px;min-width:76px;border-radius:13px}
.guest-layout .tabs button{border-radius:13px}.guest-layout .songinfo strong{line-height:1.25}
.my-request{background:linear-gradient(130deg,#342044,#1b132a);border:1px solid #805b85;border-radius:16px;padding:14px 16px;margin-bottom:12px;animation:v5-enter .35s var(--motion-ease)}
.my-request strong,.my-request small{display:block;overflow-wrap:anywhere}.my-request strong{font-size:18px;margin:4px 0;color:#fff4fd}.my-request small{font-size:13px;color:#d2bfdc;line-height:1.45}
.turn-card,.mobile-now{transition:background .4s ease,border-color .4s ease,box-shadow .4s ease}.turn-card.ready{box-shadow:0 0 16px #6bba9e20}
#v4-overlay:not([hidden]){animation:v5-overlay .32s var(--motion-ease) both}#v4-overlay:not([hidden]) .game-full{animation:v5-pop .46s var(--motion-spring) both}.vote-track i{transition:width .45s var(--motion-ease)}.vote-card{transition:transform .24s ease,box-shadow .24s ease}.vote-card:focus-within{box-shadow:0 0 18px #dd9ad638}.game-winner{animation:v5-pop .45s var(--motion-spring) both}
@keyframes v5-overlay{from{opacity:0}to{opacity:1}}@keyframes v5-pop{from{opacity:0;transform:translateY(12px) scale(.97)}to{opacity:1;transform:translateY(0) scale(1)}}
.v5-console{margin:0 0 18px;padding:20px}.v5-console h2{margin:8px 0 15px}.v5-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:12px 0}.v5-stats>div{background:#ffffff08;border:1px solid #80567c;border-radius:12px;padding:10px;min-width:0}.v5-stats small,.v5-stats strong{display:block;overflow-wrap:anywhere}.v5-stats small{font-size:12px;color:var(--muted)}.v5-stats strong{margin-top:5px;font-size:16px;color:var(--text)}.v5-shortcuts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:14px}.v5-shortcuts>*{min-height:48px;display:flex;align-items:center;justify-content:center;text-align:center;border-radius:12px}.v5-shortcuts .game-nav{font-size:14px}.v5-banner{border:1px solid #d59bc7;padding:16px;border-radius:16px;margin-bottom:12px;background:#39224d;animation:v5-pop .5s var(--motion-spring);text-align:center}.v5-banner strong{display:block;color:#ffd4eb;font-size:20px}
@media(max-width:760px){.v5-stats,.v5-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr))}.guest-layout .song .art,.guest-layout .song .cover{width:58px;height:58px}.guest-layout .song{padding:12px 0}.guest-layout .songinfo strong{font-size:15px}.guest-layout .tabs{padding-bottom:10px}.guest-layout #search{border-radius:14px}}
@media(prefers-reduced-motion:reduce){.art,.mobile-now-art,button,.game-nav{transform:none!important;transition:none!important}.v5-banner,.my-request,#v4-overlay,.game-full{animation:none!important}}

/* V5.1: larger interactive Now Playing artwork, with an isolated touch area. */
.mobile-now.has-art{gap:16px;padding:18px;align-items:center}
.mobile-now-art{width:100px;height:100px;perspective:650px;touch-action:none;user-select:none;-webkit-user-select:none;cursor:grab;transform:perspective(650px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)) scale(var(--lift,1));border-radius:16px;padding:5px}
.mobile-now-art.tilting{--lift:1.10;cursor:grabbing;box-shadow:0 14px 24px #0009,0 0 17px #ef9ad455}
.mobile-now:not(.has-art) .mobile-now-art{width:56px;height:56px;touch-action:auto;cursor:default}
.now-gesture-hint{opacity:.82;font-size:11px!important;margin-top:7px!important}
.now-motion-toggle{font-size:12px!important;padding:8px 12px!important;min-height:38px;margin-top:8px}
@media(max-width:760px){.guest-layout .mobile-now.has-art{display:grid;grid-template-columns:1fr auto;text-align:center;gap:12px;padding:18px 16px 14px}.guest-layout .mobile-now.has-art .mobile-now-art{grid-column:1/-1;justify-self:center;width:clamp(120px,40vw,170px);height:clamp(120px,40vw,170px)}.guest-layout .mobile-now.has-art>div:nth-child(2){grid-column:1/-1;justify-self:stretch;min-width:0}.guest-layout .mobile-now.has-art .mobile-eq{grid-column:1/-1;justify-content:center;height:16px}.guest-layout .mobile-now.has-art strong{font-size:clamp(18px,5vw,24px)}}
/* Respect reduced motion unless the guest explicitly enables this one effect. */
@media(prefers-reduced-motion:reduce){.mobile-now-art.motion-opt-in{transform:perspective(650px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)) scale(var(--lift,1))!important;transition:transform .38s var(--motion-spring),box-shadow .25s ease!important}.mobile-now-art.motion-opt-in.tilting{transition:transform .1s ease-out!important}}
