4단계 방·대기실: 방 만들기(게스트 포함)·6자리 코드·열린 방 목록(🔒 비밀번호 방), 인원 무제한 대기실(방장·준비·넘기기·내보내기·60초 자리 유지), 방 설정 전체 즉시 반영, 조건에 맞는 곡 N곡 + 원곡 확인 중 곡 수(1분마다 다시 셈), 대기실 채팅, 서버 재시작 안내
- 서버 테스트 49개, 브라우저 e2e(e2e/rooms.e2e.ts, 3명) 11단계 - 사용자 결정(추천안)은 docs/12 "4단계 확인" Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -191,6 +191,95 @@ textarea.input { padding: 10px 14px; min-height: 90px; resize: vertical; }
|
||||
.rooms-head { display: flex; align-items: center; gap: 12px; margin: 30px 0 12px; flex-wrap: wrap; }
|
||||
.empty { border: 2px dashed var(--line); border-radius: 16px; padding: 28px; text-align: center; color: var(--text-sub); font-weight: 650; }
|
||||
|
||||
/* home: room cards, code join */
|
||||
.rooms { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
|
||||
.room-card { background: var(--surface); border: 1.5px solid var(--line); border-radius: 16px; padding: 16px 18px; display: flex; flex-direction: column; gap: 9px; }
|
||||
.room-card .t { font-weight: 800; font-size: 1.1rem; letter-spacing: -0.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.room-card .meta { display: flex; flex-wrap: wrap; gap: 5px; }
|
||||
.code-join { margin-top: 12px; position: relative; }
|
||||
.code-join .input { max-width: 200px; border-color: #1e1b18; background: #fffdf8; color: #1e1b18; }
|
||||
|
||||
/* room (docs/03 대기실) */
|
||||
.roombar { display: flex; align-items: center; gap: 12px; padding: 10px 28px; border-bottom: 1.5px solid var(--line); background: var(--surface-2); flex-wrap: wrap; }
|
||||
.room-title { font-size: 1.25rem; max-width: 40vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.room-code { font-weight: 800; letter-spacing: 0.12em; background: var(--surface); border: 2px dashed var(--ink); border-radius: 9px; padding: 3px 10px; font-variant-numeric: tabular-nums; }
|
||||
.room-main { display: grid; grid-template-columns: minmax(0, 1fr) 560px; gap: 22px; padding: 22px 28px; max-width: 1440px; margin: 0 auto; align-items: start; }
|
||||
.players { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
|
||||
.pl { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 12px; background: var(--surface); border: 1.5px solid var(--line); font-weight: 700; position: relative; min-width: 0; }
|
||||
.pl .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.pl .r { margin-left: auto; flex: none; }
|
||||
.pl.host { border: 2px solid var(--ink); }
|
||||
.pl.off { opacity: 0.55; }
|
||||
.pl-actions { display: none; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: var(--surface); border-radius: 8px; box-shadow: 0 0 0 1.5px var(--line); }
|
||||
.pl:hover .pl-actions, .pl:focus-within .pl-actions { display: flex; }
|
||||
.pool-banner { display: flex; align-items: center; gap: 16px; background: #1f6f78; color: #fff; border: 2px solid var(--ink); border-radius: 16px; padding: 18px 20px; box-shadow: 4px 4px 0 var(--ink); }
|
||||
.pool-banner h2 { font-size: 1.3rem; }
|
||||
.pool-banner .btn:not(.btn-mustard):not(.btn-primary) { color: #1e1b18; }
|
||||
.settings { padding: 0; overflow: hidden; }
|
||||
/* chat (docs/06 한 줄 로그; waiting room) */
|
||||
.chat { display: flex; flex-direction: column; gap: 8px; position: relative; padding: 14px 16px; }
|
||||
.chat-log { height: 280px; overflow-y: auto; font-size: 0.95rem; line-height: 1.7; overscroll-behavior: contain; }
|
||||
.chat-line { padding: 0 6px; border-radius: 6px; overflow-wrap: anywhere; }
|
||||
.chat-line b { font-weight: 800; margin-right: 8px; color: hsl(var(--name-h, 200) 55% 38%); }
|
||||
.chat-line.me { background: var(--surface-2); }
|
||||
:root[data-theme='dark'] .chat-line b { color: hsl(var(--name-h, 200) 65% 72%); }
|
||||
@media (prefers-color-scheme: dark) {
|
||||
:root[data-theme='auto'] .chat-line b { color: hsl(var(--name-h, 200) 65% 72%); }
|
||||
}
|
||||
.chat-line.pending { opacity: 0.55; }
|
||||
.chat-sys { text-align: center; font-size: 0.8rem; color: var(--text-sub); }
|
||||
.chat-new { position: absolute; right: 22px; bottom: 70px; box-shadow: 2px 2px 0 var(--ink); }
|
||||
.chat-input { display: flex; gap: 8px; }
|
||||
.chat-input .input { flex: 1; }
|
||||
.settings .hd { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 2px solid var(--ink); background: var(--mustard); color: #1e1b18; }
|
||||
.settings .bd { padding: 4px 20px 18px; }
|
||||
.sec { padding: 14px 0; border-bottom: 1.5px dashed var(--line); }
|
||||
.sec:last-child { border-bottom: 0; }
|
||||
.label { font-size: 0.83rem; font-weight: 700; color: var(--text-sub); margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
|
||||
.subbox { margin-top: 10px; background: var(--surface-2); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
|
||||
.seg { display: flex; border: 2px solid var(--ink); border-radius: 11px; overflow: hidden; background: var(--surface); }
|
||||
.seg button { flex: 1; min-height: 38px; border: 0; border-right: 1.5px solid var(--ink); background: transparent; font: inherit; font-weight: 700; font-size: 0.88rem; color: var(--ink); padding: 0 6px; cursor: pointer; }
|
||||
.seg button:last-child { border-right: 0; }
|
||||
.seg button.on { background: var(--ink); color: var(--surface); }
|
||||
.seg button:disabled { cursor: default; color: var(--text-sub); }
|
||||
.seg button.on:disabled { color: var(--surface); }
|
||||
.chipgroup { display: grid; grid-template-columns: 40px 1fr; gap: 6px 8px; align-items: start; }
|
||||
.chipgroup .g { font-size: 0.8rem; font-weight: 700; color: var(--text-sub); padding-top: 6px; }
|
||||
.chip:disabled { cursor: default; }
|
||||
.chip.x::after { content: '×'; font-weight: 800; opacity: 0.8; }
|
||||
.toggle { min-height: 36px; padding: 0 12px; border-radius: 9px; border: 2px solid var(--ink); display: inline-flex; align-items: center; gap: 8px; font: inherit; font-weight: 700; font-size: 0.9rem; background: var(--surface); color: var(--ink); cursor: pointer; }
|
||||
.toggle i { width: 26px; height: 15px; border-radius: 9px; background: var(--surface-3); position: relative; display: inline-block; }
|
||||
.toggle i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 11px; height: 11px; border-radius: 50%; background: #fff; border: 1.5px solid var(--ink); box-sizing: border-box; transition: left 0.12s; }
|
||||
.toggle.on { background: var(--primary-soft); }
|
||||
.toggle.on i { background: var(--primary); }
|
||||
.toggle.on i::after { left: 13px; }
|
||||
.toggle:disabled { cursor: default; }
|
||||
.info { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--text-sub); color: var(--text-sub); font-size: 11px; font-weight: 900; display: inline-flex; align-items: center; justify-content: center; position: relative; top: -4px; cursor: help; }
|
||||
.info:hover::after, .info:focus::after { content: attr(data-tip); position: absolute; left: 22px; top: -6px; background: var(--ink); color: var(--surface); font-size: 0.8rem; font-weight: 600; padding: 7px 10px; border-radius: 8px; white-space: nowrap; z-index: 5; }
|
||||
.diff { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
|
||||
.diff .t { flex: 1; min-width: 160px; }
|
||||
.diff .t b { font-size: 1.1rem; font-weight: 850; letter-spacing: -0.03em; display: block; }
|
||||
.diff .t span { font-size: 0.83rem; color: var(--text-sub); }
|
||||
.stars { display: flex; gap: 1px; }
|
||||
.star-btn { background: none; border: 0; padding: 1px; cursor: pointer; line-height: 0; }
|
||||
.star-btn:disabled { cursor: default; }
|
||||
.tiers { display: flex; gap: 10px; margin-top: 8px; font-size: 0.77rem; color: var(--text-sub); font-weight: 650; flex-wrap: wrap; }
|
||||
.tiers i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; }
|
||||
.yr { position: relative; height: 62px; margin: 0 10px; }
|
||||
.yr .track { position: absolute; top: 27px; left: 0; right: 0; height: 7px; border-radius: 9px; background: var(--surface-3); }
|
||||
.yr .fill { position: absolute; top: 27px; height: 7px; background: var(--primary); border-radius: 9px; }
|
||||
.yr .bub { position: absolute; margin-left: -24px; width: 48px; text-align: center; background: var(--primary); color: #fff; font-weight: 800; font-size: 0.85rem; border-radius: 7px; padding: 1px 0; pointer-events: none; }
|
||||
.yr .bub.up { top: 0; }
|
||||
.yr .bub.dn { top: 42px; }
|
||||
.yr input[type='range'] { position: absolute; top: 20px; left: -10px; width: calc(100% + 20px); margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; height: 21px; }
|
||||
.yr input[type='range']::-webkit-slider-thumb { pointer-events: auto; -webkit-appearance: none; width: 21px; height: 21px; border-radius: 50%; background: #fff; border: 2.5px solid var(--ink); cursor: pointer; }
|
||||
.yr input[type='range']::-moz-range-thumb { pointer-events: auto; width: 17px; height: 17px; border-radius: 50%; background: #fff; border: 2.5px solid var(--ink); cursor: pointer; }
|
||||
.yr input[type='range']:disabled::-webkit-slider-thumb { cursor: default; }
|
||||
.year-sel { flex: 1; text-align: center; font-weight: 800; }
|
||||
.artist-hits { display: flex; flex-direction: column; border: 1.5px solid var(--line); border-radius: 10px; max-height: 220px; overflow-y: auto; background: var(--surface); }
|
||||
.artist-hit { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 12px; border: 0; border-bottom: 1px solid var(--line); background: none; font: inherit; color: var(--text); cursor: pointer; text-align: left; }
|
||||
.artist-hit[aria-selected='true'] { background: var(--primary-soft); }
|
||||
|
||||
/* ---------------------------------------------------------------- admin (docs/02: side menu + content, .data-table) */
|
||||
.admin-layout { display: grid; grid-template-columns: 220px 1fr; min-height: calc(100vh - 66px); }
|
||||
.admin-side { background: var(--surface-2); border-right: 2px solid var(--ink); padding: 16px 12px; display: flex; flex-direction: column; gap: 3px; }
|
||||
@@ -248,6 +337,8 @@ input.input.sm { width: 76px; }
|
||||
.admin-side .sep { display: none; }
|
||||
.admin-side a { white-space: nowrap; }
|
||||
.admin-main { padding: 16px; }
|
||||
.room-main { grid-template-columns: 1fr; padding: 16px; }
|
||||
.roombar { padding: 10px 16px; }
|
||||
}
|
||||
@media (max-width: 600px) {
|
||||
.site-header-inner { padding: 0 12px; gap: 10px; }
|
||||
|
||||
Reference in New Issue
Block a user