.challenge-launch{border:1px solid #9b88ff;border-radius:20px;background:#322659;color:#fff;padding:8px 12px;cursor:pointer;white-space:nowrap;font:600 12px system-ui}
.challenge-dialog{width:min(640px,calc(100% - 24px));max-height:85dvh;box-sizing:border-box;overflow:auto;margin:auto;padding:24px;border:1px solid #8e74c6;border-radius:24px;background:radial-gradient(ellipse at top,#30234b,#100d1c 70%);color:#f2edff;font:15px/1.6 system-ui;color-scheme:dark}.challenge-dialog::backdrop{background:#070411cc;backdrop-filter:blur(6px)}.challenge-dialog header{display:flex;align-items:center;justify-content:space-between;gap:12px}.challenge-dialog h2{margin:0;font-size:24px}.challenge-dialog p{color:#c8bddb}.challenge-dialog button,.challenge-hud button{min-height:44px;padding:10px 14px;border-radius:12px;border:1px solid #bba6e550;background:#ffffff0c;color:#fff;cursor:pointer;font:600 13px system-ui;margin:4px}.challenge-dialog button:disabled{opacity:.4;cursor:default}.challenge-dialog .challenge-primary{background:#9470fa;border-color:#b3a0ff}.challenge-dialog select{width:100%;min-height:44px;border-radius:10px;padding:10px;background:#241b38;color:white}.challenge-players{list-style:none;padding:0;display:grid;gap:8px}.challenge-players li{padding:12px 16px;border:1px solid #baa0ff30;border-radius:14px;display:flex;align-items:center;flex-wrap:wrap;gap:8px}.challenge-players p{margin:0;width:100%;font-size:12px}.challenge-lives{color:#ff8daf!important;font-size:22px;font-weight:700;margin-left:auto}.challenge-out{opacity:.55}.challenge-out strong{text-decoration:line-through}.challenge-hud{position:absolute;z-index:8;top:12px;left:12px;padding:8px 12px;background:#110c22ee;border:1px solid #bca3f450;border-radius:16px;max-width:calc(100% - 24px);font:12px system-ui;box-sizing:border-box}.challenge-hud[hidden]{display:none}.challenge-hud p{margin:4px 0}.challenge-hud .challenge-skip,.challenge-dialog .challenge-skip{background:#80264c}.challenge-podium{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:28px 0}.podium-place{min-width:0;text-align:center;padding:18px 10px;border:1px solid #d6b3ff55;border-radius:18px;background:#ffffff08;overflow-wrap:anywhere;animation:podium-rise .55s ease-out both}.podium-place span{font-size:36px}.podium-place h3{margin:8px 0}.podium-place p{font-size:12px}.place-1{border-color:#edc463;background:#b8882020}.place-2{animation-delay:.1s}.place-3{animation-delay:.2s}@keyframes podium-rise{from{opacity:0;transform:translateY(24px) scale(.95)}to{opacity:1;transform:none}}
.challenge-running #btn-pp,.challenge-running #seek-slider,.challenge-running #btn-loop{opacity:.35;pointer-events:none}.challenge-dialog button:focus-visible,.challenge-hud button:focus-visible,.challenge-launch:focus-visible{outline:2px solid #ffd984;outline-offset:3px}
@media(max-width:700px){.challenge-dialog{padding:18px}.challenge-launch{padding:6px 9px;font-size:11px}.challenge-hud{top:8px;left:8px;padding:6px 8px}.challenge-hud button{padding:8px 10px}.challenge-podium{grid-template-columns:1fr}.podium-place{padding:12px}.challenge-dialog h2{font-size:21px}}
@media(prefers-reduced-motion:reduce){.podium-place{animation:none}}
.room-feature-actions{display:flex;gap:8px;margin:0 20px 12px;flex-shrink:0}.room-feature-actions>button{flex:1;min-width:0;min-height:40px;margin:0;border-radius:10px}.room-feature-actions .music-open{margin:0;font-size:11px}.challenge-launch{background:#ffffff08;border-color:#ffffff25}.challenge-dialog:not(.challenge-results){width:min(480px,calc(100% - 24px));background:#171321;border-color:#ffffff20;border-radius:18px}.challenge-subtitle{margin:0 0 20px;font-size:13px}.challenge-content>p{font-size:14px}.challenge-content>.challenge-primary{margin:12px 0 0;width:100%}.challenge-players li{padding:10px 12px;border:0;border-radius:10px;background:#ffffff04}.challenge-players p{font-size:11px}.challenge-options{border-top:1px solid #ffffff15;padding-top:12px;margin-top:16px;font-size:13px}.challenge-options summary{cursor:pointer;color:#bdb3ce;padding:8px 0}.challenge-options button{display:block;width:100%;margin:6px 0}.challenge-hud{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:8px 12px;border-radius:12px}.challenge-hud .challenge-lives{font-size:18px}.challenge-hud button{margin:0;min-height:36px;padding:7px 10px}.challenge-hud p:first-child{max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.feature-tip{position:fixed;inset:auto;margin:0;box-sizing:border-box;width:280px;max-width:calc(100vw - 24px);padding:14px 38px 14px 14px;border:1px solid #a98bff60;border-radius:12px;background:#29203b;color:#f6efff;font:13px/1.5 system-ui;box-shadow:0 8px 30px #0006;z-index:10000}.feature-tip button{position:absolute;right:3px;top:3px;width:32px;height:32px;border:0;background:transparent;color:#e5d9ff;font-size:20px;cursor:pointer}.feature-tip[hidden]{display:none}
@media(max-width:700px){.feature-desktop{display:none}.room-feature-actions.feature-mobile{margin:0 14px 10px}.challenge-hud{gap:8px}.challenge-hud p:first-child{max-width:125px}}
@media(min-width:701px){.feature-mobile{display:none}}
.room-feature-actions>button.music-open,.room-feature-actions>button.challenge-launch{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:9px 8px;border:1px solid transparent;border-radius:10px;font:600 11px/1.25 system-ui;white-space:normal;text-align:center;box-shadow:inset 0 1px 0 #ffffff30;transition:filter .15s,transform .15s}.room-feature-actions>button.music-open[hidden]{display:none}.room-feature-actions>button.challenge-launch{background:#b49aff;border-color:#b49aff;color:#201239}.room-feature-actions>button:hover{filter:brightness(1.1)}.room-feature-actions>button:active{transform:translateY(1px)}
.challenge-dialog:not(.challenge-results){width:min(600px,calc(100% - 24px))}.challenge-content h3{margin:22px 0 4px;font-size:18px}.challenge-content h3+p{margin:0 0 16px}.challenge-category-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.challenge-dialog button.challenge-category{display:flex;flex-direction:column;align-items:stretch;padding:0 0 14px;margin:0;overflow:hidden;text-align:left;border:1px solid #ffffff20;background:#ffffff05;border-radius:14px;transition:border-color .15s,transform .15s}.challenge-category:hover{border-color:#b49aff!important;transform:translateY(-2px)}.challenge-category-art{position:relative;aspect-ratio:16/10;overflow:hidden;background:radial-gradient(ellipse at 20% 10%,hsl(var(--card-hue) 65% 65% / .65),transparent 75%),linear-gradient(140deg,hsl(var(--card-hue) 45% 28%),#161224);display:grid;place-items:center;margin-bottom:12px}.challenge-category-art>span{font-size:52px;color:#ffffff90}.challenge-category-art img{position:absolute;width:100%;height:100%;object-fit:cover;inset:0}.challenge-category strong{font-size:17px;overflow-wrap:anywhere;padding:0 14px}.challenge-category-count{padding:4px 14px 0;color:#bdb3ce;font-size:12px;font-weight:400}.challenge-ready{margin-left:auto;color:#8ee0b0;font-size:12px}.challenge-content>.challenge-subtitle{margin:10px 0 18px}
@media(max-width:380px){.challenge-category-grid{gap:8px}.challenge-category strong{font-size:15px;padding:0 10px}.challenge-category-count{padding-left:10px}.challenge-dialog:not(.challenge-results){padding:16px}.challenge-dialog header h2{font-size:19px}}
@media(prefers-reduced-motion:reduce){.challenge-category,.room-feature-actions>button{transition:none!important;transform:none!important}}
.room-feature-actions>button{text-transform:uppercase}
.room-feature-actions>button.music-open,.room-feature-actions>button.challenge-launch{flex:1 1 0;align-self:stretch;min-width:0}
.room-feature-actions>button.music-open>span{min-width:0}
#music-close,.challenge-dialog .room-dialog-close{display:grid;place-items:center;flex-shrink:0;width:40px;height:40px;min-height:40px;margin:0;padding:0;border:0;border-radius:50%;background:#ffffff0a;color:#f2edff;font:22px/1 system-ui;cursor:pointer}
#music-close:hover,.challenge-dialog .room-dialog-close:hover{background:#ffffff18}
#music-dialog,#minigames-dialog{width:min(640px,calc(100% - 24px));max-height:90dvh;padding:24px;border:1px solid #7563ad;border-radius:18px;background:radial-gradient(ellipse at top left,#7c6fff19,transparent 60%),#10101c;box-shadow:0 30px 100px #0009}
#music-dialog::backdrop,#minigames-dialog::backdrop{background:#05050ccc;backdrop-filter:blur(6px)}
@media(max-width:600px){#music-dialog,#minigames-dialog{padding:20px}}
.challenge-lives{display:inline-flex;align-items:center;gap:5px;padding:6px 8px;border:1px solid #f48fb12b;border-radius:999px;background:#ff79a00b;font:600 12px/1 system-ui;white-space:nowrap}.challenge-heart{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#ff769b16}.challenge-heart svg{width:17px;height:17px;stroke:#ffb7ca;stroke-width:1.2}.challenge-heart.is-alive{color:#ff719b;filter:drop-shadow(0 1px 4px #ff427c40)}.challenge-heart.is-lost{color:transparent;background:#ffffff04}.challenge-heart.is-lost svg{stroke:#74687d;stroke-dasharray:3 2}.challenge-life-count{font:600 11px/1 system-ui;color:#eac5d3;margin-left:2px}.challenge-hud .challenge-lives{margin:0;font-size:12px}.challenge-out{opacity:.8}.challenge-out strong{text-decoration:none;color:#a99aaf}.challenge-out .challenge-lives{border-color:#ffffff15;background:#ffffff04}.challenge-out .challenge-life-count{color:#ad9db7}
