/* ── Reset & Variables ────────────────────────────────────────── */ *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; } :root { --bg: #0a0a0a; --surface: #111; --border: #1c1c1c; --text: #ededed; --text-dim: #888; --text-muted: #444; --accent: #D97757; --serif: 'DM Serif Display', Georgia, serif; --sans: 'Inter', -apple-system, sans-serif; --mono: 'JetBrains Mono', 'SF Mono', monospace; } body { background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; min-height: 100vh; min-height: 100dvh; } /* ── Layout ──────────────────────────────────────────────────── */ .app { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; } .layout { flex: 1; display: flex; flex-direction: column; min-height: 0; } .main { flex: 1; padding: 20px; overflow-y: auto; display: flex; flex-direction: column; } /* ── Header ──────────────────────────────────────────────────── */ .header { flex-shrink: 0; margin-bottom: 28px; display: flex; align-items: center; justify-content: space-between; gap: 12px; } .logo { display: inline-flex; text-decoration: none; } .logo img { height: 20px; width: auto; } .viewer-pill { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.4px; text-transform: uppercase; color: var(--text-dim); border: 1px solid var(--border); background: rgba(255, 255, 255, 0.02); border-radius: 999px; padding: 6px 10px; white-space: nowrap; } .viewer-pill__dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45); animation: viewer-pulse 1.8s ease-out infinite; } @keyframes viewer-pulse { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45); } 70% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } } /* ── Arena ────────────────────────────────────────────────────── */ .arena { flex: 1; display: flex; flex-direction: column; } .arena__meta { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 24px; flex-shrink: 0; } .arena__round { font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; } .arena__round .dim { color: var(--text-muted); } .arena__phase { font-family: var(--mono); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--text-dim); } /* ── Prompt ───────────────────────────────────────────────────── */ .prompt { margin-bottom: 32px; flex-shrink: 0; } .prompt__by { font-family: var(--mono); font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; } .prompt__text { font-family: var(--serif); font-size: clamp(28px, 5vw, 52px); line-height: 1.15; color: var(--text); letter-spacing: -0.5px; border-left: 3px solid var(--accent); padding-left: 20px; } .prompt__text--loading { color: var(--text-muted); border-left-color: var(--border); } .prompt__text--error { color: #ef4444; font-family: var(--mono); font-size: 16px; border-left-color: #ef4444; } /* ── Showdown ─────────────────────────────────────────────────── */ .showdown { display: flex; flex-direction: column; gap: 16px; flex: 1; min-height: 0; } /* ── Contestant ───────────────────────────────────────────────── */ .contestant { border-left: 3px solid var(--accent); padding: 16px 20px; display: flex; flex-direction: column; gap: 12px; transition: background 0.3s; } .contestant--winner { border-left-width: 4px; background: rgba(255, 255, 255, 0.03); animation: winner-reveal 1.5s ease-out; } @keyframes winner-reveal { 0% { background: rgba(255, 255, 255, 0); } 30% { background: rgba(255, 255, 255, 0.06); } 100% { background: rgba(255, 255, 255, 0.03); } } .contestant__head { display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; } .win-tag { font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: 1px; padding: 3px 8px; background: var(--text); color: var(--bg); border-radius: 3px; } .contestant__body { flex: 1; min-height: 0; } .answer { font-family: var(--serif); font-size: clamp(20px, 3.5vw, 28px); line-height: 1.3; color: var(--text-dim); letter-spacing: -0.3px; } .contestant--winner .answer { color: var(--text); } .answer--loading { color: var(--text-muted); } .answer--error { color: #ef4444; font-family: var(--mono); font-size: 13px; } .contestant__foot { display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; } /* ── Vote Bar ─────────────────────────────────────────────────── */ .vote-bar { height: 3px; background: var(--border); border-radius: 2px; overflow: hidden; } .vote-bar__fill { height: 100%; border-radius: 2px; transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1); } .vote-meta { display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 12px; } .vote-meta__count { font-weight: 700; font-size: 16px; } .vote-meta__label { color: var(--text-muted); } .vote-meta__dots { display: flex; gap: 4px; margin-left: auto; } .voter-dot { width: 16px; height: 16px; border-radius: 50%; object-fit: contain; opacity: 0.7; } .voter-dot--letter { font-size: 10px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; } /* ── Tie ──────────────────────────────────────────────────────── */ .tie-label { text-align: center; font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); padding: 16px 0; } /* ── Standings ────────────────────────────────────────────────── */ .standings { border-top: 1px solid var(--border); background: var(--surface); padding: 16px 20px; display: flex; flex-direction: column; gap: 12px; max-height: 220px; overflow-y: auto; flex-shrink: 0; } .standings__head { display: flex; align-items: baseline; justify-content: space-between; } .standings__title { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-dim); } .standings__link { font-family: var(--mono); font-size: 11px; color: var(--text-muted); text-decoration: none; transition: color 0.2s; } .standings__link:hover { color: var(--text); } .standings__list { display: flex; flex-direction: column; gap: 4px; } .standing { display: flex; align-items: center; gap: 10px; padding: 5px 0; } .standing--active { opacity: 1; } .standing__rank { width: 22px; text-align: center; font-family: var(--mono); font-size: 12px; color: var(--text-muted); flex-shrink: 0; } .standing__bar { flex: 1; height: 3px; background: var(--border); border-radius: 2px; overflow: hidden; min-width: 40px; } .standing__fill { height: 100%; border-radius: 2px; transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1); } .standing__score { font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--text-dim); min-width: 16px; text-align: right; } /* ── Connecting ───────────────────────────────────────────────── */ .connecting { height: 100vh; height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; background: var(--bg); } .connecting__logo { display: flex; } .connecting__logo img { height: 64px; width: auto; } .connecting__sub { font-family: var(--mono); font-size: 13px; color: var(--text-muted); letter-spacing: 1px; text-transform: uppercase; } /* ── Waiting ──────────────────────────────────────────────────── */ .waiting { flex: 1; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 28px; color: var(--text-muted); } /* ── Game Over ────────────────────────────────────────────────── */ .game-over { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 28px; padding: 48px 0; } .game-over__label { font-family: var(--mono); font-size: 14px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--text-muted); } .game-over__winner { display: flex; flex-direction: column; align-items: center; gap: 16px; } .game-over__crown { font-size: 40px; } .game-over__name { font-family: var(--serif); font-size: clamp(32px, 7vw, 56px); line-height: 1.1; display: flex; align-items: center; gap: 16px; } .game-over__name img { width: 40px; height: 40px; } .game-over__sub { font-size: 14px; color: var(--text-dim); } /* ── Next Round Toast ─────────────────────────────────────────── */ .next-toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--surface); border: 1px solid var(--border); padding: 10px 20px; border-radius: 20px; font-family: var(--mono); font-size: 12px; color: var(--text-dim); display: flex; align-items: center; gap: 6px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6); z-index: 100; animation: toast-in 0.3s cubic-bezier(0.22, 1, 0.36, 1); white-space: nowrap; max-width: calc(100vw - 40px); } @keyframes toast-in { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } } /* ── Model Tag ────────────────────────────────────────────────── */ .model-tag { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; white-space: nowrap; } .model-tag--sm { font-size: 12px; gap: 4px; } .model-tag__logo { width: 18px; height: 18px; object-fit: contain; } .model-tag--sm .model-tag__logo { width: 14px; height: 14px; } /* ── Utility ──────────────────────────────────────────────────── */ .dots span { animation: blink 1.4s infinite; } .dots span:nth-child(2) { animation-delay: 0.2s; } .dots span:nth-child(3) { animation-delay: 0.4s; } @keyframes blink { 0%, 80%, 100% { opacity: 0.15; } 40% { opacity: 1; } } ::-webkit-scrollbar { width: 6px; } ::-webkit-scrollbar-track { background: transparent; } ::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; } /* ── Desktop (1024px+) ───────────────────────────────────────── */ @media (min-width: 1024px) { body { height: 100vh; overflow: hidden; } .app { height: 100vh; } .layout { flex-direction: row; overflow: hidden; } .main { padding: 32px 48px; position: relative; align-items: center; } .header { position: absolute; top: 32px; left: 48px; right: 48px; margin-bottom: 0; } .arena { max-width: 900px; width: 100%; margin: auto 0; } .prompt { margin-bottom: 40px; } .prompt__text { padding-left: 24px; } .showdown { flex-direction: row; align-items: flex-start; gap: 32px; } .contestant { flex: 1; } .standings { width: 280px; border-top: none; border-left: 1px solid var(--border); max-height: none; overflow-y: auto; padding: 24px; } }