/* 음악퀴즈 — "동네 레코드 가게" (docs/03-ui-design.md). Hand-written CSS variables, no framework (same approach as joke-app). */ :root { --bg: #f5efe3; --surface: #fffdf8; --surface-2: #efe6d3; --surface-3: #e6dac2; --ink: #1e1b18; --text: #1e1b18; --text-sub: #6b6157; --line: #ddd2be; --primary: #1f6f78; --primary-press: #185960; --primary-soft: #d7eae8; --on-primary: #fff; --mustard: #f2b544; --coral: #e4573d; --correct: #24733d; /* docs/03 #2F8F4E, darkened for 4.5:1 text contrast (axe) */ --correct-soft: #ddf0e2; --danger: #b3261e; --danger-soft: #f8dcd6; --warning-soft: #fdebc7; --discord: #5865f2; --star-1: #f2b544; --star-2: #ef8a3a; --star-3: #dc4b3e; --star-4: #6b3fb5; --radius: 14px; --radius-sm: 10px; --shadow-key: 0 3px 0 var(--ink); --font: 'Pretendard Variable', Pretendard, -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif; color-scheme: light; } :root[data-theme='dark'] { --bg: #17150f; --surface: #221f1a; --surface-2: #2c2821; --surface-3: #39342b; --ink: #e9dfc9; --text: #efe7d6; --text-sub: #b3a891; --line: #3f392f; --primary: #4fa9b2; --primary-press: #3e8f97; --primary-soft: #1d3a3d; --on-primary: #10221f; --correct: #5cc07c; --correct-soft: #1c3324; --danger: #ff8a7a; --danger-soft: #3d1f1a; --warning-soft: #3d311a; color-scheme: dark; } @media (prefers-color-scheme: dark) { :root[data-theme='auto'] { --bg: #17150f; --surface: #221f1a; --surface-2: #2c2821; --surface-3: #39342b; --ink: #e9dfc9; --text: #efe7d6; --text-sub: #b3a891; --line: #3f392f; --primary: #4fa9b2; --primary-press: #3e8f97; --primary-soft: #1d3a3d; --on-primary: #10221f; --correct: #5cc07c; --correct-soft: #1c3324; --danger: #ff8a7a; --danger-soft: #3d1f1a; --warning-soft: #3d311a; color-scheme: dark; } } :root[data-font-scale='large'] { font-size: 17px; } :root[data-font-scale='xlarge'] { font-size: 19px; } *, *::before, *::after { box-sizing: border-box; } html { font-size: 15px; } body { margin: 0; background: var(--bg); /* very subtle paper grain */ background-image: radial-gradient(color-mix(in srgb, var(--ink) 4%, transparent) 1px, transparent 1px); background-size: 5px 5px; color: var(--text); font-family: var(--font); font-weight: 500; letter-spacing: -0.01em; word-break: keep-all; line-height: 1.5; -webkit-font-smoothing: antialiased; } h1, h2, h3 { margin: 0; letter-spacing: -0.03em; font-weight: 800; } h1 { font-size: 1.6rem; } h2 { font-size: 1.15rem; } p { margin: 0; } a { color: var(--primary); } :focus-visible { outline: 3px solid var(--mustard); outline-offset: 2px; } .muted { color: var(--text-sub); } .small { font-size: 0.87rem; } .mono { font-variant-numeric: tabular-nums; } .stack { display: flex; flex-direction: column; gap: 12px; } .row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .grow { flex: 1; } .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } /* ---------------------------------------------------------------- buttons (keycap: 2px ink + 3px solid shadow) */ .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 12px; border: 2px solid var(--ink); background: var(--surface); color: var(--ink); font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none; white-space: nowrap; box-shadow: var(--shadow-key); cursor: pointer; transition: transform 0.05s, box-shadow 0.05s; } .btn:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); } .btn:disabled { opacity: 0.5; cursor: not-allowed; } .btn-primary { background: var(--primary); color: var(--on-primary); } .btn-mustard { background: var(--mustard); color: #1e1b18; } .btn-discord { background: var(--discord); color: #fff; } .btn-danger { background: var(--danger); color: #fff; } .btn-ghost { border-color: transparent; box-shadow: none; background: transparent; color: var(--text-sub); } .btn-sm { min-height: 34px; padding: 0 12px; font-size: 0.87rem; border-radius: 9px; box-shadow: 0 2px 0 var(--ink); } .btn-lg { min-height: 52px; font-size: 1.07rem; } .btn-block { width: 100%; } /* ---------------------------------------------------------------- form */ .field { display: flex; flex-direction: column; gap: 6px; font-size: 0.87rem; font-weight: 700; color: var(--text-sub); } .input, textarea.input, select.input { min-height: 48px; width: 100%; border: 2px solid var(--ink); border-radius: 12px; padding: 0 14px; background: var(--surface); color: var(--text); font: inherit; font-weight: 600; font-size: 1rem; } textarea.input { padding: 10px 14px; min-height: 90px; resize: vertical; } .field-error { color: var(--danger); font-weight: 700; font-size: 0.9rem; } .check { display: flex; align-items: center; gap: 8px; font-weight: 700; } .check input { width: 20px; height: 20px; accent-color: var(--primary); } /* ---------------------------------------------------------------- cards, badges, chips */ .card { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 18px; } .card.ink { border: 2px solid var(--ink); } .badge { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 0.8rem; font-weight: 750; background: var(--surface-2); color: var(--text-sub); } .badge.teal { background: var(--primary-soft); color: var(--primary); } .badge.live { background: #b83a24; color: #fff; } .badge.ok { background: var(--correct-soft); color: #22693a; } :root[data-theme='dark'] .badge.ok, :root[data-theme='dark'] .badge.teal { color: #9fd9de; } @media (prefers-color-scheme: dark) { :root[data-theme='auto'] .badge.ok, :root[data-theme='auto'] .badge.teal { color: #9fd9de; } } .badge.warn { background: var(--warning-soft); color: #8a5a00; } :root[data-theme='dark'] .badge.warn { color: var(--mustard); } .chip { min-height: 30px; padding: 0 11px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font: inherit; font-weight: 650; font-size: 0.87rem; display: inline-flex; align-items: center; gap: 5px; color: var(--text); cursor: pointer; } .chip[aria-pressed='true'] { border: 2px solid var(--ink); background: var(--primary); color: var(--on-primary); } /* ---------------------------------------------------------------- site header */ .site-header { position: sticky; top: 0; z-index: 20; background: var(--surface); border-bottom: 2px solid var(--ink); } .site-header-inner { height: 64px; max-width: 1440px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 18px; } .site-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.35rem; letter-spacing: -0.04em; color: var(--ink); text-decoration: none; } .site-logo img { width: 36px; height: 36px; } .site-nav { display: flex; gap: 16px; } .site-nav a { color: var(--text-sub); text-decoration: none; font-weight: 700; padding: 6px 2px; } .site-nav a.active { color: var(--ink); box-shadow: inset 0 -3px 0 var(--mustard); } .header-user { display: flex; align-items: center; gap: 8px; font: inherit; font-weight: 700; color: var(--ink); background: none; border: 0; cursor: pointer; padding: 4px; text-decoration: none; } .theme-toggle { width: 40px; height: 40px; border-radius: 10px; border: 2px solid var(--ink); background: var(--surface); cursor: pointer; font-size: 18px; } .account-menu { position: relative; } .account-menu-list { position: absolute; right: 0; top: calc(100% + 6px); min-width: 180px; background: var(--surface); border: 2px solid var(--ink); border-radius: 12px; box-shadow: 4px 4px 0 var(--ink); padding: 6px; display: flex; flex-direction: column; z-index: 30; } .account-menu-list button { text-align: left; font: inherit; font-weight: 700; padding: 10px 12px; border-radius: 8px; border: 0; background: none; color: var(--text); cursor: pointer; } .account-menu-list button:hover, .account-menu-list button:focus-visible { background: var(--surface-2); } .avatar { border-radius: 50%; border: 2px solid var(--ink); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; overflow: hidden; flex: none; } .avatar img { width: 100%; height: 100%; object-fit: cover; } .announcement { background: var(--primary-soft); padding: 8px 16px; text-align: center; font-weight: 700; border-bottom: 1.5px solid var(--line); } .announcement.maintenance { background: var(--warning-soft); } /* 업데이트 알림 (same as joke-app): a card at the top, never reloads by itself */ .update-banner { position: fixed; top: calc(8px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); z-index: 70; width: min(94vw, 480px); display: flex; align-items: center; gap: 10px; background: var(--surface); color: var(--text); border: 2px solid var(--primary); border-radius: var(--radius); box-shadow: 4px 4px 0 var(--ink); padding: 10px 8px 10px 16px; animation: update-in 0.2s ease; } @keyframes update-in { from { opacity: 0; transform: translate(-50%, -8px); } } .update-banner .update-text { flex: 1; min-width: 0; font-weight: 700; } .update-banner .btn { white-space: nowrap; } .update-close { flex: none; width: 40px; height: 40px; border: 0; background: transparent; color: var(--text-sub); font-size: 1.2rem; cursor: pointer; border-radius: var(--radius-sm); } .update-close:hover { background: var(--surface-2); } /* ---------------------------------------------------------------- pages */ .page { max-width: 1440px; margin: 0 auto; padding: 28px 40px; } .page.narrow { max-width: 520px; } /* home */ .hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: stretch; } .welcome { background: #1f6f78; color: #fff; border: 2px solid var(--ink); border-radius: 20px; padding: 30px 34px; position: relative; overflow: hidden; box-shadow: 6px 6px 0 var(--ink); min-height: 280px; } .welcome h1 { font-size: 2.25rem; font-weight: 850; letter-spacing: -0.045em; line-height: 1.22; position: relative; } .welcome p { opacity: 0.9; margin-top: 10px; font-size: 1.03rem; line-height: 1.6; max-width: 420px; position: relative; } .welcome .acts { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; position: relative; } .welcome .acts .btn { color: #1e1b18; border-color: #1e1b18; box-shadow: 0 3px 0 #1e1b18; } .welcome .acts .btn:not(.btn-mustard) { background: #fffdf8; } .welcome .bigLP { position: absolute; right: -70px; bottom: -90px; width: 300px; height: 300px; border-radius: 50%; background: repeating-radial-gradient(circle, #1c1a1f 0 6px, #2a2830 6px 8px); } .welcome .bigLP::after { content: ''; position: absolute; inset: 105px; border-radius: 50%; background: var(--mustard); } .welcome .note { position: relative; margin-top: 18px; font-size: 0.85rem; font-weight: 700; opacity: 0.85; } .login-card { background: var(--surface); border: 2px solid var(--ink); border-radius: 20px; padding: 26px 28px; display: flex; flex-direction: column; gap: 12px; } .or { display: flex; align-items: center; gap: 10px; color: var(--text-sub); font-size: 0.83rem; font-weight: 700; } .or::before, .or::after { content: ''; flex: 1; height: 1.5px; background: var(--line); } .guest-warning { background: var(--warning-soft); border-radius: 10px; padding: 8px 12px; } .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) 60% 30%); } .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: var(--on-primary); 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; } .admin-side a { display: flex; align-items: center; gap: 9px; padding: 9px 12px; border-radius: 10px; font-weight: 700; color: var(--text-sub); text-decoration: none; } .admin-side a.active { background: var(--ink); color: var(--surface); } .admin-side a.soon { opacity: 0.55; } .admin-side .sep { font-size: 0.77rem; font-weight: 800; color: var(--text-sub); padding: 12px 12px 4px; letter-spacing: 0.04em; } .admin-main { padding: 22px 26px; display: flex; flex-direction: column; gap: 16px; min-width: 0; } .stat-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; } .stat { background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; } .stat b { display: block; font-size: 1.4rem; font-weight: 850; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; } .stat span { font-size: 0.8rem; color: var(--text-sub); font-weight: 700; } .table-wrap { overflow-x: auto; } .data-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 2px solid var(--ink); border-radius: 12px; overflow: hidden; font-size: 0.9rem; } .data-table th { background: var(--surface-2); text-align: left; font-size: 0.8rem; color: var(--text-sub); font-weight: 800; padding: 9px 10px; border-bottom: 2px solid var(--ink); white-space: nowrap; } .data-table td { padding: 8px 10px; border-bottom: 1.5px solid var(--line); font-weight: 600; vertical-align: middle; } .data-table tr:last-child td { border-bottom: 0; } .form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; } /* admin songs (docs/02 노래 관리 화면) */ .songs-layout { display: grid; grid-template-columns: 1fr; gap: 18px; align-items: start; } .songs-layout.with-panel { grid-template-columns: minmax(0, 1fr) 400px; } .song-panel { position: sticky; top: 80px; max-height: calc(100vh - 96px); overflow-y: auto; background: var(--surface); border: 2px solid var(--ink); border-radius: 14px; padding: 16px 18px; } .data-table tr.sel td { background: var(--primary-soft); } .data-table tbody tr:hover td { background: color-mix(in srgb, var(--primary-soft) 50%, transparent); } .linklike { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--text); cursor: pointer; text-align: left; } .filters { gap: 14px; } .field-inline { display: inline-flex; align-items: center; gap: 6px; font-size: 0.87rem; font-weight: 700; color: var(--text-sub); } .input.sm { min-height: 36px; width: auto; padding: 0 8px; font-size: 0.9rem; border-radius: 9px; } input.input.sm { width: 76px; } .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .yt-preview { aspect-ratio: 16 / 9; border: 2px solid var(--ink); border-radius: 10px; overflow: hidden; background: #000; } .yt-preview iframe { width: 100%; height: 100%; border: 0; } .cand { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 1.5px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--text); font: inherit; font-size: 0.85rem; font-weight: 650; cursor: pointer; } .cand.on { border-color: var(--ink); background: var(--primary-soft); } .yt-progress { width: 100%; height: 10px; accent-color: var(--primary); } .yt-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; } .yt-stat { display: flex; flex-direction: column; gap: 2px; background: var(--surface-2); border-radius: var(--radius-sm); padding: 8px 10px; min-width: 0; } .yt-stat b { font-size: 1.05rem; } .yt-split { display: flex; gap: 2px; height: 8px; border-radius: 4px; overflow: hidden; } .yt-split > span { flex-basis: 0; min-width: 0; } .yt-split .m { background: var(--correct); } .yt-split .c { background: var(--mustard); } .yt-split .n { background: var(--text-sub); } .yt-recent, .yt-log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; } .yt-recent li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; } .yt-log { max-height: 220px; overflow: auto; margin-top: 6px; } .lyrics { white-space: pre-wrap; font: inherit; font-size: 0.85rem; background: var(--surface-2); padding: 10px; border-radius: 8px; max-height: 260px; overflow: auto; } @media (max-width: 1100px) { .songs-layout.with-panel { grid-template-columns: 1fr; } .song-panel { position: static; max-height: none; } } /* ---------------------------------------------------------------- toasts */ .toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 100; pointer-events: none; } .toast { background: var(--ink); color: var(--surface); padding: 10px 16px; border-radius: 10px; font-weight: 700; box-shadow: 0 3px 0 color-mix(in srgb, var(--ink) 50%, transparent); } .toast.error { background: var(--danger); color: #fff; } /* ---------------------------------------------------------------- sheet (confirm dialog) */ .sheet-backdrop { position: fixed; inset: 0; background: rgba(20, 18, 14, 0.45); display: flex; align-items: center; justify-content: center; z-index: 90; padding: 16px; } .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 h2, .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; display: inline-flex; align-items: center; gap: 1px; color: var(--text); } .mini-stars svg { width: 11px; height: 11px; } .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; } .page { padding: 20px 16px; } .admin-layout { grid-template-columns: 1fr; } .admin-side { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 2px solid var(--ink); padding: 8px; } .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; } .site-logo span { display: none; } .welcome { padding: 24px; } .welcome .bigLP { width: 170px; height: 170px; right: -60px; bottom: -70px; } .welcome .bigLP::after { inset: 60px; } .welcome .acts { margin-bottom: 60px; } .welcome h1 { font-size: 1.75rem; } .header-user-name { display: none; } } .bulk-bar { background: var(--primary-soft); border: 2px solid var(--ink); border-radius: 12px; padding: 8px 12px; position: sticky; top: 72px; z-index: 5; }