5~7단계 게임: 숨긴 유튜브 동기화 재생(전원 준비·버퍼링이면 모두 멈춤·30초 늦은 사람 제외·재생 오류 곡 교체), 정답 판정·점수·정답 블록, 입력 중·단축키, 힌트·스킵·다시듣기 투표, 3모드, 결과·이어풀기·다시 하기, 퀴즈 저장·불러오기 + 마지막 사람이 나가면 방 바로 닫기
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -328,6 +328,100 @@ input.input.sm { width: 76px; }
|
||||
.sheet { background: var(--surface); border: 2px solid var(--ink); border-radius: 18px; box-shadow: 6px 6px 0 var(--ink); padding: 22px; width: min(420px, 100%); display: flex; flex-direction: column; gap: 14px; }
|
||||
.sheet:focus { outline: none; }
|
||||
|
||||
/* ---------------------------------------------------------------- game (docs/03 게임 화면, mockups/game.html) */
|
||||
.kbd { display: inline-block; font-size: 0.72rem; font-weight: 750; padding: 0 5px; border-radius: 5px; border: 1.5px solid currentColor; opacity: 0.7; line-height: 1.5; }
|
||||
.game { display: flex; flex-direction: column; min-height: calc(100vh - 64px - 56px); }
|
||||
.gbar { display: flex; align-items: center; gap: 12px; padding: 9px 24px; background: #1e1b18; color: #f5efe3; flex-wrap: wrap; }
|
||||
.gbar .q { font-weight: 850; font-size: 1.15rem; letter-spacing: -0.02em; }
|
||||
.gbar .q span { opacity: 0.55; font-weight: 700; }
|
||||
.badge.dark { background: #3a352f; color: #f5efe3; }
|
||||
.gbtn { background: #2a2622; color: #fff; border-color: #f5efe3; box-shadow: 0 2px 0 #f5efe3; }
|
||||
.gbtn.on { background: var(--mustard); color: #1e1b18; }
|
||||
.gbtn:disabled { opacity: 0.45; }
|
||||
.vol { display: inline-flex; align-items: center; gap: 6px; font-size: 0.9rem; }
|
||||
.vol input { width: 90px; accent-color: var(--mustard); }
|
||||
.ggrid { flex: 1; display: grid; grid-template-columns: 250px minmax(0, 1fr) 280px; gap: 16px; padding: 16px 20px; min-height: 0; max-width: 1600px; width: 100%; margin: 0 auto; }
|
||||
.side { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 14px; overflow-y: auto; max-height: calc(100vh - 190px); }
|
||||
.side h3 { font-size: 0.85rem; font-weight: 800; color: var(--text-sub); margin-bottom: 8px; }
|
||||
.scoreboard ol { list-style: none; margin: 0; padding: 0; }
|
||||
.sb { display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: 10px; font-weight: 700; font-size: 0.93rem; transition: transform 0.3s; }
|
||||
.sb .rk { width: 20px; text-align: center; font-weight: 850; color: var(--text-sub); }
|
||||
.sb .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
|
||||
.sb .sc { margin-left: auto; font-weight: 850; font-size: 1.05rem; }
|
||||
.sb.me { background: var(--primary-soft); }
|
||||
.sb.first .rk { color: var(--mustard); font-size: 1.1rem; }
|
||||
.sb.off { opacity: 0.5; }
|
||||
.gcenter { display: flex; flex-direction: column; gap: 12px; min-width: 0; min-height: 0; }
|
||||
.stage { min-height: 190px; flex: none; background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius); display: flex; align-items: center; gap: 26px; padding: 16px 28px; position: relative; overflow: hidden; }
|
||||
.stage .lp, .reveal .art.lp { width: 150px; height: 150px; border-radius: 50%; background: repeating-radial-gradient(circle at center, #1c1a1f 0 5px, #2a2830 5px 6.5px); position: relative; flex: none; box-shadow: 6px 6px 0 #174f56; }
|
||||
.stage .lp::after { content: '?'; position: absolute; inset: 47px; border-radius: 50%; background: var(--mustard); display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 30px; color: #1e1b18; }
|
||||
.stage .lp.spin { animation: lpspin 1.8s linear infinite; }
|
||||
@keyframes lpspin { to { transform: rotate(360deg); } }
|
||||
@media (prefers-reduced-motion: reduce) { .stage .lp.spin { animation: none; } }
|
||||
.sinfo { flex: 1; min-width: 0; }
|
||||
.sinfo .mode { font-size: 0.87rem; font-weight: 750; color: var(--text-sub); }
|
||||
.sinfo .big { font-size: 1.7rem; font-weight: 850; letter-spacing: -0.03em; margin: 4px 0 10px; }
|
||||
.countdown { font-size: 3.2rem; font-weight: 900; line-height: 1.1; color: var(--primary); }
|
||||
.bar { height: 10px; border-radius: 9px; background: var(--surface-3); overflow: hidden; }
|
||||
.bar i { display: block; height: 100%; background: var(--primary); transition: width 0.2s linear; }
|
||||
.times { display: flex; justify-content: space-between; color: var(--text-sub); font-weight: 700; margin-top: 4px; }
|
||||
.limit { margin-top: 4px; }
|
||||
.hint { display: inline-flex; align-items: center; gap: 10px; background: #fbf3e0; color: #1e1b18; border: 2px dashed #1e1b18; border-radius: 12px; padding: 6px 14px; font-weight: 850; font-size: 1.4rem; letter-spacing: 0.14em; }
|
||||
.hint small { font-size: 0.75rem; letter-spacing: 0; font-weight: 750; color: #6b6157; }
|
||||
.lyrics-card { background: var(--surface-2); border-radius: 12px; padding: 10px 16px; font-size: 1.1rem; font-weight: 700; line-height: 1.75; margin-bottom: 8px; }
|
||||
.stage-note { position: absolute; left: 0; right: 0; bottom: 0; background: var(--warning-soft); padding: 6px 16px; font-weight: 700; font-size: 0.87rem; }
|
||||
.late { position: absolute; right: 14px; top: 12px; display: flex; flex-direction: column; gap: 6px; }
|
||||
.reveal { display: flex; align-items: center; gap: 24px; width: 100%; }
|
||||
.reveal .art { width: 150px; height: 150px; object-fit: cover; border: 2px solid var(--ink); border-radius: 12px; flex: none; box-shadow: 5px 5px 0 #174f56; }
|
||||
.chat.big { flex: 1; min-height: 340px; border: 2px solid var(--ink); padding: 12px 18px 14px; }
|
||||
.chat.big .chat-log { height: auto; flex: 1; min-height: 240px; max-height: 52vh; font-size: 1.07rem; line-height: 1.62; }
|
||||
.chat.big .input { min-height: 56px; font-size: 1.15rem; border-width: 2.5px; }
|
||||
.chat-line.ok, .chat-line.ok b { color: var(--correct) !important; font-weight: 800; }
|
||||
.ans-gap { height: 1.62em; }
|
||||
.ans-text { height: 1.62em; text-align: center; font-weight: 900; font-size: 1.3rem; letter-spacing: -0.02em; }
|
||||
.ans-text span { border-bottom: 4px solid var(--mustard); padding: 0 6px; }
|
||||
.answer-item.none .ans-text { color: var(--text-sub); }
|
||||
.answer-item.none .ans-text span { border-bottom-color: var(--line); }
|
||||
.typing { font-size: 0.83rem; color: var(--text-sub); font-weight: 650; min-height: 1.3em; display: flex; align-items: center; gap: 6px; }
|
||||
.dots { display: inline-flex; gap: 3px; }
|
||||
.dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--text-sub); animation: dot 1s infinite; }
|
||||
.dots i:nth-child(2) { animation-delay: 0.15s; }
|
||||
.dots i:nth-child(3) { animation-delay: 0.3s; }
|
||||
@keyframes dot { 50% { opacity: 0.2; } }
|
||||
.hist .h { padding: 8px 4px; border-bottom: 1.5px dashed var(--line); font-size: 0.9rem; }
|
||||
.hist .h:last-child { border-bottom: 0; }
|
||||
.hist .t { font-weight: 800; }
|
||||
.hist .m { color: var(--text-sub); font-size: 0.8rem; margin-top: 2px; display: flex; align-items: center; gap: 6px; }
|
||||
.hist .n { display: inline-block; width: 22px; font-weight: 850; color: var(--text-sub); }
|
||||
.mini-stars { font-weight: 850; font-size: 0.8rem; }
|
||||
.unlock-overlay { position: fixed; inset: 0; z-index: 40; background: rgba(20, 18, 14, 0.55); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: #fff; text-align: center; padding: 20px; }
|
||||
.unlock-overlay .btn { font-size: 1.3rem; min-height: 64px; padding: 0 28px; }
|
||||
.sound-card { background: var(--warning-soft); border-color: var(--ink); }
|
||||
.result .rank td, .result .rank th { font-size: 0.95rem; }
|
||||
.songlist { margin: 0; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
|
||||
.songlist a { font-size: 0.85rem; }
|
||||
.saved-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; max-height: 50vh; overflow-y: auto; }
|
||||
.saved-list li { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); border-radius: 10px; padding: 8px 10px; }
|
||||
@media (max-width: 1100px) {
|
||||
.ggrid { grid-template-columns: minmax(0, 1fr); }
|
||||
.ggrid .side { max-height: none; }
|
||||
.scoreboard { order: 2; }
|
||||
.scoreboard ol { display: flex; gap: 6px; overflow-x: auto; }
|
||||
.scoreboard .sb { flex: none; border: 1.5px solid var(--line); }
|
||||
.hist { order: 3; max-height: 220px !important; }
|
||||
}
|
||||
@media (max-width: 600px) {
|
||||
.gbar { padding: 8px 12px; gap: 8px; }
|
||||
.gbar .kbd { display: none; }
|
||||
.ggrid { padding: 10px; gap: 10px; }
|
||||
.stage { min-height: 0; padding: 10px 14px; gap: 14px; }
|
||||
.stage .lp, .reveal .art, .reveal .art.lp { width: 72px; height: 72px; box-shadow: 3px 3px 0 #174f56; }
|
||||
.stage .lp::after { inset: 24px; font-size: 16px; }
|
||||
.sinfo .big { font-size: 1.2rem; margin: 2px 0 6px; }
|
||||
.countdown { font-size: 2.2rem; }
|
||||
.chat.big .chat-log { max-height: 46vh; }
|
||||
}
|
||||
|
||||
/* ---------------------------------------------------------------- responsive */
|
||||
@media (max-width: 960px) {
|
||||
.hero { grid-template-columns: 1fr; }
|
||||
|
||||
Reference in New Issue
Block a user