:root{--bg:#f6f6fb;--white:#fff;--ink:#24243d;--muted:#77798f;--line:#e9e8f2;--accent:#6b55ed;--accent-dark:#4e39cb;--accent-light:#f0edff;--pink:#fff0f7;--shadow:0 18px 42px rgba(52,42,106,.065)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;min-height:100vh;background:var(--bg);color:var(--ink);font-family:system-ui,-apple-system,'Pretendard','Apple SD Gothic Neo','Noto Sans KR',sans-serif;font-size:15px;letter-spacing:-.025em}button,input,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.55;cursor:not-allowed}.hidden{display:none!important}h1,h2,p{margin:0}main{max-width:1200px;margin:0 auto;padding:0 25px 65px}.card{background:var(--white);border:1px solid var(--line);border-radius:22px;box-shadow:var(--shadow)}.site-header{height:82px;padding:0 max(25px,calc((100vw - 1150px)/2));display:flex;align-items:center;gap:24px;background:#fff;border-bottom:1px solid var(--line)}.logo{display:flex;gap:8px;align-items:center;font-size:25px;letter-spacing:-.065em;font-weight:850;color:var(--ink);text-decoration:none;white-space:nowrap}.logo-symbol{display:grid;place-items:center;background:var(--accent);color:white;width:37px;height:37px;border-radius:12px;font-size:24px;letter-spacing:0}.logo-dot{color:var(--accent);margin-left:-7px}.header-note{color:var(--muted);font-size:12px}.connection{margin-left:auto;font-size:12px;color:var(--accent-dark);background:var(--accent-light);border-radius:99px;padding:8px 11px}.live-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#59c997;vertical-align:1px;margin-right:5px}.welcome{display:grid;grid-template-columns:1.12fr .88fr;gap:75px;align-items:center;min-height:calc(100vh - 155px);padding:70px 8px}.eyebrow{font-size:12px;letter-spacing:.13em;color:var(--accent);font-weight:850}.eyebrow .live-dot{background:var(--accent)}.intro h1{font-size:clamp(40px,4.3vw,62px);letter-spacing:-.072em;line-height:1.2;margin:24px 0}.intro h1 span{color:var(--accent)}.intro p{line-height:1.8;font-size:16px;color:#73748b}.intro p strong{color:var(--accent)}.steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin-top:42px}.steps>div{display:flex;align-items:flex-start;flex-direction:column;gap:4px}.step-icon{display:grid;place-items:center;font-size:26px;width:54px;height:54px;border-radius:17px;background:#eae8fe;margin-bottom:10px}.steps>div:nth-child(2) .step-icon{background:#fff0f8}.steps>div:nth-child(3) .step-icon{background:#fff6e4}.steps strong{font-size:14px}.steps small{font-size:12px;color:var(--muted)}.entry{padding:35px}.entry h2{display:flex;justify-content:space-between;font-size:24px;letter-spacing:-.05em}.entry-sub{margin:8px 0 27px;color:var(--muted);font-size:13px}.input-label{display:block;font-size:13px;font-weight:750;color:#4e4e69;margin-bottom:9px;margin-top:19px}input:not([type=file]),select{height:49px;padding:0 14px;border-radius:12px;border:1px solid #deddeb;outline:none;color:var(--ink);background:#fff;width:100%}input:focus,select:focus{border-color:var(--accent);box-shadow:0 0 0 3px #6b55ed19}input::placeholder{color:#a4a4b4}.button{border:none;border-radius:12px;min-height:47px;padding:12px 19px;font-weight:800;white-space:nowrap;transition:transform .12s,filter .12s}.button:hover:not(:disabled){filter:brightness(.98);transform:translateY(-1px)}.button-primary{background:var(--accent);color:white}.button-secondary{background:var(--accent-light);color:var(--accent-dark)}.button-ghost{background:#f4f4f8;color:#5f5d76}.button-light{background:#f4f2ff;color:var(--accent-dark);border:1px solid #e0dcff}.entry>.button{width:100%;margin-top:18px}.splitter{display:flex;align-items:center;gap:11px;margin:24px 0 21px;color:#9696a8;font-size:12px}.splitter:before,.splitter:after{content:"";height:1px;flex:1;background:var(--line)}.join-row{display:flex;gap:8px}.join-row input{min-width:0;letter-spacing:.16em;text-transform:uppercase}.join-row button{flex-shrink:0}.entry-hint{font-size:12px;line-height:1.6;color:var(--muted);background:#faf9ff;padding:13px;border-radius:12px;margin-top:25px}
.game{padding-top:39px}.room-top{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:25px}.eyebrow.tiny{font-size:10px}.room-top h1{font-size:27px;letter-spacing:-.055em;margin:9px 0 5px}.room-badge{display:inline-flex;padding:5px 10px;font-size:15px;letter-spacing:.09em;color:var(--accent);background:var(--accent-light);border-radius:9px;vertical-align:middle;margin-left:7px}.room-buttons{display:flex;gap:9px}.button.small{min-height:40px;padding:9px 12px;font-size:12px}.muted{color:var(--muted)}.room-top .muted{font-size:12px}.game-layout{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(335px,.9fr);gap:20px;align-items:start}.main-col{min-width:0;display:flex;flex-direction:column;gap:20px}.quiz-card{padding:27px 30px 30px}.quiz-heading{display:flex;justify-content:space-between;align-items:center}.round-pill,.phase-tag{font-weight:750;font-size:12px;border-radius:9px;padding:8px 11px}.round-pill{color:var(--accent-dark);background:var(--accent-light)}.phase-tag{color:#8a8a9d;background:#f5f5f9}.music-box{min-height:215px;display:flex;align-items:center;justify-content:center;gap:42px;margin:6px 0 13px;position:relative}.record{width:122px;height:122px;display:grid;place-items:center;position:relative;background:linear-gradient(145deg,#927ff5,#5d46e4);border-radius:50%;box-shadow:0 16px 32px #6b55ed3a;color:white;font-size:55px;flex-shrink:0}.record:after{content:"";position:absolute;inset:15px;border:2px solid #ffffff39;border-radius:50%}.record span{position:relative;z-index:1}.wave{height:80px;display:flex;align-items:center;gap:6px}.wave b{width:6px;height:16px;border-radius:8px;background:#a59bf7;opacity:.65;animation:pulse .55s ease-in-out infinite alternate;animation-play-state:paused}.wave b:nth-child(3n){animation-duration:.8s}.wave b:nth-child(4n){animation-duration:.37s}.wave b:nth-child(2n){animation-delay:-.3s}.music-box.playing .wave b{animation-play-state:running;opacity:1}.music-box.playing .record{animation:spin 7s linear infinite}.big-title{text-align:center;font-size:30px;letter-spacing:-.055em}.round-description{text-align:center;font-size:13px;color:var(--muted);min-height:40px;margin:12px 0 20px;line-height:1.6;overflow-wrap:anywhere}.timer-line{display:flex;justify-content:space-between;align-items:end;font-size:12px;color:var(--muted)}.timer-line strong{color:var(--ink);font-size:26px;font-variant-numeric:tabular-nums}.timer-track{height:9px;background:#f1f0fa;border-radius:20px;overflow:hidden;margin-top:10px}.timer-track>div{height:100%;width:0%;background:linear-gradient(90deg,#b1a6ff,var(--accent));border-radius:20px;transition:width .12s linear}.listen-row{display:flex;align-items:center;gap:13px;flex-wrap:wrap;margin-top:23px}.listen-row .button{font-size:12px;padding:10px 15px;min-height:39px}.sound-status{font-size:11px;color:var(--muted)}.host-quick{display:flex;gap:9px;flex-wrap:wrap;margin-top:18px}.host-quick>.button{flex:1}.ranking,.host-panel{padding:24px 26px}.section-header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}.section-eyebrow{font-size:10px;color:#9c91ed;font-weight:850;letter-spacing:.14em}.section-header h2,.chat-head h2{font-size:18px;margin-top:5px}.member-count,.count-tag{font-size:12px;color:var(--muted);white-space:nowrap}.count-tag{background:var(--accent-light);color:var(--accent-dark);padding:7px 10px;border-radius:8px}.scoreboard{display:flex;flex-direction:column;gap:8px}.player{display:flex;align-items:center;gap:12px;background:#f9f9fe;padding:11px 13px;border-radius:12px}.player.me{border:1px solid #c9c1ff;background:#f5f2ff}.player-rank{display:grid;place-items:center;width:28px;font-weight:900;color:var(--accent)}.player-name{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:720;font-size:13px}.host-tag{font-weight:700;color:#9a86e7;background:#eeeaff;padding:3px 6px;border-radius:5px;font-size:10px;margin-left:8px}.player-score{font-weight:900;font-size:18px;color:var(--accent);font-variant-numeric:tabular-nums}.player-score small{font-size:10px;margin-left:2px}.help-text{font-size:12px;line-height:1.7}.track-title-row{display:flex;justify-content:space-between;align-items:center;margin:18px 0 9px}.track-title-row strong{font-size:13px}.text-button{border:0;background:transparent;color:var(--accent);font-size:12px;cursor:pointer;font-weight:750}.track-list{border:1px solid var(--line);border-radius:12px;padding:3px 11px;max-height:180px;overflow-y:auto}.track-item{display:flex;gap:9px;padding:11px 3px;align-items:center;font-size:13px;border-bottom:1px solid var(--line);cursor:pointer}.track-item:last-child{border-bottom:0}.track-item input{width:17px;height:17px;accent-color:var(--accent)}.track-item span{overflow-wrap:anywhere}.setting-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:17px 0;font-size:13px;font-weight:700}.setting-row select{width:125px;height:41px}.upload-box{border:1px solid #e4defc;border-radius:13px;background:#fbfaff;overflow:hidden}.upload-box summary{font-size:13px;color:var(--accent-dark);font-weight:800;padding:14px 16px;cursor:pointer}.upload-inner{padding:0 16px 16px}.upload-inner .input-label:first-child{margin-top:5px}.upload-inner input[type=file]{width:100%;font-size:12px;color:var(--muted)}.upload-inner .button{margin-top:16px;width:100%}.upload-help{font-size:11px;line-height:1.6;margin-top:13px}
.chat{display:flex;flex-direction:column;min-height:665px;position:sticky;top:20px;overflow:hidden}.chat-head{display:flex;justify-content:space-between;align-items:center;padding:23px 23px 14px}.live-indicator{font-size:11px;color:#35a77d;background:#effcf5;border-radius:9px;padding:8px 10px;font-weight:800}.chat-caption{font-size:12px;line-height:1.7;color:var(--muted);padding:0 23px 17px;border-bottom:1px solid var(--line)}kbd{border:1px solid var(--line);border-bottom-width:2px;border-radius:5px;padding:1px 4px;font-size:10px;background:#fff}.messages{padding:18px 20px;min-height:390px;max-height:550px;overflow-y:auto;display:flex;flex-direction:column;gap:11px;flex:1}.message{display:flex;flex-direction:column;gap:4px;font-size:13px;overflow-wrap:anywhere}.message .who{color:#a0a0ae;font-size:11px;font-weight:800}.message .bubble{background:#f6f5fc;border-radius:12px 12px 12px 3px;padding:10px 12px;align-self:flex-start;max-width:100%;line-height:1.55}.message.system{font-size:12px;color:#818095;align-items:center;text-align:center;line-height:1.65;background:#faf9ff;padding:9px 12px;border-radius:10px}.message.reveal{font-size:13px;color:var(--accent-dark);font-weight:850;background:var(--accent-light);border-radius:11px;padding:13px 15px;text-align:center}.chat-form{display:flex;gap:9px;padding:15px;border-top:1px solid var(--line)}.chat-form input{min-width:0;flex:1}.chat-form .button{font-size:13px}.toast{position:fixed;bottom:23px;left:50%;transform:translateX(-50%);z-index:10;max-width:min(420px,90vw);background:#28213f;color:white;border-radius:12px;padding:13px 20px;box-shadow:0 15px 35px #1c173e44;font-size:13px;text-align:center;overflow-wrap:anywhere}@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse{from{height:10px}to{height:62px}}
@media(max-width:1030px){.welcome{gap:25px}.game-layout{grid-template-columns:minmax(0,1fr) minmax(310px,.8fr)}.quiz-card{padding:25px}.music-box{gap:26px}}
@media(max-width:790px){.site-header{height:70px}.header-note{display:none}.welcome{display:block;min-height:auto;padding:60px 0}.intro{margin-bottom:37px}.intro h1{font-size:clamp(37px,7vw,55px)}.entry{max-width:500px}.game-layout{display:flex;flex-direction:column}.main-col,.chat{width:100%}.chat{order:0;position:static;min-height:420px}.main-col{display:contents}.quiz-card{order:-1;width:100%}.ranking{order:1;width:100%}.host-panel{order:2;width:100%}.messages{min-height:270px;max-height:370px}.room-top{align-items:flex-start;flex-direction:column}.room-buttons{width:100%}.room-buttons .button{flex:1}.music-box{min-height:180px}}
@media(max-width:480px){main{padding-left:13px;padding-right:13px}.site-header{padding:0 14px}.logo{font-size:21px}.logo-symbol{width:33px;height:33px}.welcome{padding-top:35px}.intro h1{font-size:36px}.intro p{font-size:14px}.steps{gap:7px;margin-top:24px}.steps strong{font-size:11px}.steps small{font-size:10px}.step-icon{width:44px;height:44px;font-size:21px}.entry{padding:24px 21px}.entry h2{font-size:21px}.game{padding-top:23px}.room-top h1{font-size:22px}.quiz-card,.ranking,.host-panel{padding:19px}.record{width:95px;height:95px;font-size:41px}.music-box{gap:20px;min-height:165px}.wave{gap:4px}.wave b{width:4px}.big-title{font-size:26px}.chat-head{padding:18px}.chat-caption{padding:0 18px 13px}.messages{padding:14px}.chat-form{padding:11px}.chat-form .button{padding:10px}.room-buttons{flex-wrap:wrap}}

/* 60초 선착순 다중 득점 안내 */
.round-progress{margin:0 auto 20px;max-width:520px;background:#f1edff;color:#5744c6;border-radius:12px;padding:12px 14px;font-size:12px;font-weight:750;text-align:center;line-height:1.65}
.correct-tag{font-size:10px;background:#e8f9f0;color:#17804b;padding:3px 6px;border-radius:7px;margin-left:7px;white-space:nowrap}
.message.correct{font-size:12px;font-weight:800;color:#207950;text-align:center;background:#eaf9f0;border-radius:10px;padding:11px 13px}

/* 투표식 스킵 및 방장 강제 스킵 */
.skip-panel{margin-top:20px;border:1px solid #e5e0fd;border-radius:14px;padding:15px 17px;background:#fbfaff}
.skip-status{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:13px;font-weight:800}
.skip-status strong{font-variant-numeric:tabular-nums;color:var(--accent-dark)}
.skip-guide{font-size:12px;color:var(--muted);line-height:1.55;margin-top:8px}
.skip-progress{height:8px;background:#ebe8f6;border-radius:9px;overflow:hidden;margin:12px 0}
.skip-progress>div{height:100%;width:0;background:linear-gradient(90deg,#ac9bff,#6654dc);transition:width .2s ease;border-radius:9px}
.skip-button{display:block;width:100%;min-height:44px}
.button-danger{background:#fff1f0;color:#b73442;border:1px solid #ffc7cf;font-weight:800}
.button-danger:hover{background:#ffe2e0}
.message.skip{color:#8040ac;background:#f3eaff;border-radius:10px;font-size:12px;font-weight:800;padding:11px 13px;text-align:center}
/* Saved quiz lists + time-gated hints */
.hint-box{border:1px solid #e6e1fe;border-radius:13px;padding:12px 15px;margin:4px 0 19px;background:#faf9ff}
.hint-heading{font-size:13px;font-weight:850;color:#5e48d4;margin-bottom:7px}
.hint-line{font-size:12px;line-height:1.75;color:#9390a7}
.hint-line.revealed{font-size:13px;font-weight:850;color:#4438a2}
.quiz-library{margin-top:15px;padding:15px;background:#f8f7ff;border:1px solid #e7e3ff;border-radius:13px}
.quiz-library input,.quiz-library select{width:100%}
.quiz-actions{display:flex;flex-wrap:wrap;gap:7px;margin:12px 0}
.quiz-actions .button{flex:1;white-space:nowrap}
.quiz-help{font-size:11px;line-height:1.6}
#editBox{margin-bottom:10px}
#editTrackPicker{width:100%}
