/* «Повтори звук» поверх общих стилей FUNBASE. Сначала телефон, потом шире */
#game { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.card-flat { background: var(--surface); border-radius: 14px; padding: 16px; }
.muted-text { color: var(--muted); font-size: 13px; font-weight: 600; }

/* Выбор паков в лобби */
.packs-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.packs-head b { font-size: 15px; }
.packs-head span { flex: 1; color: var(--muted); font-size: 13px; font-weight: 600; }
.pack-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; margin-bottom: 14px; max-height: 420px; overflow-y: auto; padding: 2px; }
.pack { position: relative; display: grid; grid-template-rows: auto 1fr; text-align: left; padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; background: var(--surface-2); color: var(--text); cursor: pointer; font: inherit; }
.pack img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: #0d0d0f; opacity: .45; transition: opacity .15s; }
.pack span { padding: 7px 9px 8px; display: grid; gap: 2px; min-width: 0; }
.pack b { font-size: 13px; line-height: 1.2; overflow-wrap: anywhere; }
.pack small { color: var(--muted); font-size: 12px; font-weight: 600; }
.pack.on { border-color: var(--accent); }
.pack.on img { opacity: 1; }
.pack.on::after { content: ''; position: absolute; top: 7px; right: 7px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 16px no-repeat; }
.pack:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.pack-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pack-list span { display: inline-flex; align-items: center; gap: 6px; background: var(--surface-2); border-radius: 99px; padding: 4px 10px 4px 4px; font-size: 13px; font-weight: 700; }
.pack-list img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }

/* Нейросеть в верхней панели */
.ai-chip { cursor: default; gap: 7px; }
.ai-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px rgba(52,199,123,.7); }
.ai-chip[data-s="error"] { color: var(--accent-hover); }
.spin { display: inline-block; width: 12px; height: 12px; border: 2px solid var(--surface-3); border-top-color: var(--text); border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -2px; }
.spin.big { width: 22px; height: 22px; border-width: 3px; margin-right: 10px; vertical-align: -5px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Сцена ---------- */
.mstage { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 10px; min-height: 0; }
.mstage > * { min-width: 0; }

/* Лобби */
.lobby { display: grid; gap: 10px; }
.lobby h2 { font-size: 17px; margin: 0 0 10px; }
.lobby-note { margin: 8px 0 0; font-size: 14px; }
.result-banner { background: linear-gradient(135deg, #3a0d14, #1c1c21); border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; font-weight: 700; }
.result-banner b { color: #ffd21f; }
.how { display: grid; gap: 8px; margin-bottom: 14px; }
.how div { display: flex; align-items: center; gap: 12px; background: var(--surface-2); border-radius: 10px; padding: 10px 12px; font-size: 14px; font-weight: 600; }
.how b { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; font: 900 14px var(--font); }
.miccheck { background: var(--surface-2); border-radius: 12px; padding: 12px; display: grid; gap: 10px; margin-bottom: 16px; }
.mc-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.mc-head span { color: var(--muted); font-size: 13px; }
.miccheck[data-ok="1"] .mc-head span { color: var(--ok); }
.miccheck[data-ok="0"] .mc-head span { color: var(--accent-hover); }
.miccheck .meter { background: var(--surface-3); }
.miccheck .btn { justify-self: start; }
.queue { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.queue li { display: flex; align-items: center; gap: 10px; background: var(--surface-2); border-radius: 10px; padding: 8px 10px; }
.queue .n { flex: 1; min-width: 0; font-weight: 800; display: flex; align-items: center; gap: 8px; overflow: hidden; white-space: nowrap; }
.queue .n span { overflow: hidden; text-overflow: ellipsis; }
.queue .tag, .tag { font-size: 11px; font-weight: 800; color: var(--muted); }
.tag.you { color: #111; background: #ffd21f; border-radius: 99px; padding: 2px 8px; }
.queue .mv button { border: 0; background: var(--surface-3); color: var(--text); width: 30px; height: 30px; border-radius: 8px; cursor: pointer; }
.queue li.off { opacity: .45; }
.seat-actions { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.settings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.settings .check { grid-column: 1 / -1; padding: 0; }
.settings select, .settings input:not([type=checkbox]) { width: 100%; min-width: 0; }

/* ---------- Ход ---------- */
.play { display: flex; flex-direction: column; gap: 10px; }
.stage-col { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.round-line { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); font-weight: 600; }
.round-line b { color: var(--text); }
.round-line .timer-line { flex: 1; }
.timer-line { display: block; height: 5px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.timer-line i { display: block; height: 100%; width: 100%; background: #fff; border-radius: inherit; }
.timer-line.low i { background: var(--accent); }
.timer-line.thin { height: 4px; }

.turn-card { background: var(--surface); border-radius: 18px; overflow: hidden; display: grid; }
.meme { position: relative; aspect-ratio: 16 / 10; background: #0d0d0f; overflow: hidden; }
.meme img { position: relative; width: 100%; height: 100%; object-fit: contain; display: block; }
/* Картинки мемов любых пропорций: целиком по центру, по краям — она же, размытая */
.meme img.bg { position: absolute; inset: -30px; width: calc(100% + 60px); height: calc(100% + 60px); object-fit: cover; filter: blur(24px) brightness(.45); }
/* На итоге хода фото ужимается: оценка и кнопки важнее */
.turn-card[data-phase="result"] .meme, .turn-card[data-phase="record"] .meme, .turn-card[data-phase="reveal"] .meme { aspect-ratio: 16 / 7; transition: aspect-ratio .3s; }
.meme::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.75)); pointer-events: none; }
.aname { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; font: 900 clamp(24px, 7vw, 44px)/.98 var(--font); text-transform: uppercase; letter-spacing: -.02em; text-shadow: 0 4px 24px rgba(0,0,0,.7); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.aname small { display: block; margin-bottom: 6px; font: 800 11px/1.2 var(--font); letter-spacing: .12em; color: var(--accent-hover); }
.aplay { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; z-index: 2; background: transparent; }
.aplay i { display: block; height: 100%; width: 0; background: var(--accent); }
.aplay:not(.on) i { width: 0 !important; }

.turn-body { padding: 14px; display: grid; gap: 12px; }
.who { display: flex; align-items: center; gap: 10px; font-size: 15px; min-width: 0; }
.who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.turn-body .say { font: 800 18px/1.3 var(--font); text-align: center; }
.turn-body .say small { display: block; font: 600 13px var(--font); color: var(--muted); margin-top: 4px; }
.turn-body .say b { color: #ffd21f; }
.say.pulse { animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .55; } }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.row2 .btn { width: 100%; padding: 15px 10px; font-size: 15px; }
.row2 .btn.on { box-shadow: inset 0 0 0 2px var(--accent); }
.row-end { display: flex; justify-content: flex-end; }
.row-end:empty { display: none; }
.btn.ghost { background: transparent; color: var(--muted); }
.btn.ghost:hover:not(:disabled) { background: var(--surface-2); color: var(--text); }

.count { font: 900 96px/1 var(--font); text-align: center; color: #fff; text-shadow: 0 0 40px rgba(224,40,60,.6); }
.count.pop { animation: pop .45s ease-out; }
@keyframes pop { from { transform: scale(1.6); opacity: 0; } }
.rec-dot { justify-self: center; display: inline-flex; align-items: center; gap: 8px; font: 900 13px var(--font); text-transform: uppercase; letter-spacing: .12em; color: var(--accent-hover); }
.rec-dot::before { content: ''; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); animation: pulse .8s ease-in-out infinite; }
.meter.big { height: 14px; }
.turn-cam { width: min(100%, 360px); aspect-ratio: 4 / 3; justify-self: center; border-radius: 14px; overflow: hidden; background: #0d0d0f; }
.turn-cam:empty { display: none; }
.turn-cam video { width: 100%; height: 100%; object-fit: cover; }

/* Итог хода */
.score-wrap { position: relative; width: 150px; height: 150px; justify-self: center; }
.ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 10; }
.ring .bg { stroke: var(--surface-2); }
.ring .fg { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 327; stroke-dashoffset: 327; }
.score-num { position: absolute; inset: 0; display: grid; place-items: center; font: 900 52px var(--font); font-variant-numeric: tabular-nums; }
.verdict { font: 900 22px/1.15 var(--font); text-align: center; text-transform: uppercase; letter-spacing: -.01em; }
.verdict.good { color: var(--ok); }
.verdict.bad { color: var(--accent-hover); }
.parts { display: grid; gap: 7px; }
.parts div { display: grid; grid-template-columns: 86px 1fr 30px; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; color: var(--muted); }
.parts i { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.parts i b { display: block; height: 100%; background: #fff; border-radius: inherit; transition: width .8s ease-out; }
.parts em { font-style: normal; color: var(--text); text-align: right; font-variant-numeric: tabular-nums; }

/* Реакции */
.reacts-row { display: flex; justify-content: center; gap: 8px; }
.react-btn { width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--surface-2); color: #ffd21f; cursor: pointer; display: grid; place-items: center; transition: transform .1s, background .15s; }
.react-btn:hover { background: var(--surface-3); }
.react-btn:active { transform: scale(.9); }
.react-btn svg { width: 24px; height: 24px; }
.react-btn[data-react="fire"] { color: #ff7a2f; }
.react-btn[data-react="clap"] { color: #ffd21f; }
.react-btn[data-react="wow"] { color: #7ec8ff; }
.reacts { position: fixed; inset: 0; pointer-events: none; z-index: 60; overflow: hidden; }
.react-float { position: absolute; bottom: 60px; display: grid; justify-items: center; gap: 2px; color: #ffd21f; animation: float 2.6s ease-out forwards; }
.react-float svg { width: 44px; height: 44px; filter: drop-shadow(0 6px 16px rgba(0,0,0,.5)); }
.react-float span { font: 800 11px var(--font); color: #fff; background: rgba(0,0,0,.6); border-radius: 99px; padding: 2px 8px; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.react-float.r-fire { color: #ff7a2f; }
.react-float.r-wow { color: #7ec8ff; }
@keyframes float { from { transform: translateY(0) scale(.6); opacity: 0; } 12% { transform: translateY(-20px) scale(1.1); opacity: 1; } to { transform: translateY(-55vh) scale(1); opacity: 0; } }

/* ---------- Таблица ---------- */
.board-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.scores { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.scores li { position: relative; display: flex; align-items: center; gap: 10px; background: var(--surface); border-radius: 12px; padding: 7px 10px; border: 2px solid transparent; transition: border-color .2s; }
.scores li.turn { border-color: var(--accent); }
.scores li.off { opacity: .45; }
.scores .place { width: 16px; font: 900 13px var(--font); color: var(--muted); text-align: center; flex: none; }
.scores li:first-child .place { color: #ffd21f; }
.sc-cam { width: 40px; height: 40px; border-radius: 10px; overflow: hidden; flex: none; background: #0d0d0f; display: grid; place-items: center; }
.sc-cam video { width: 100%; height: 100%; object-fit: cover; }
.sc-cam .ava { --s: 40px; border-radius: 10px; }
.scores .nm { flex: 1; min-width: 0; display: grid; }
.scores .nm b { display: flex; align-items: center; font-size: 14px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.scores .nm small { font-size: 12px; color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.scores .total { font: 900 20px var(--font); font-variant-numeric: tabular-nums; }
.scores .tile-actions { position: absolute; right: 6px; top: -10px; display: none; gap: 4px; }
.scores li.touch .tile-actions { display: flex; }

.hist { background: var(--surface); border-radius: 14px; padding: 10px 12px; }
.hist summary { cursor: pointer; font-weight: 800; font-size: 14px; list-style: none; }
.hist summary::-webkit-details-marker { display: none; }
.hist summary::after { content: ' ▾'; color: var(--muted); }
/* Колонка сетки не шире панели: иначе длинное слово в названии звука растягивает строку и очки уезжают за край */
.hist ol { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; max-height: 240px; overflow: hidden auto; }
.hist li { font-size: 13.5px; display: flex; gap: 8px; align-items: center; }
.hist li b { flex: none; max-width: 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Название звука — не больше двух строк, полностью видно в подсказке */
.hist li .q { flex: 1; min-width: 0; color: #d4d4d8; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; line-height: 1.3; }
.hist li .a { flex: none; min-width: 3ch; text-align: right; font-weight: 900; font-variant-numeric: tabular-nums; }
.hist .empty-log { color: var(--muted); font-size: 13px; }
.mini-play { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 0; background: var(--surface-2); color: var(--text); cursor: pointer; display: grid; place-items: center; }
.mini-play svg { width: 14px; height: 14px; }
.mini-play.on { background: var(--accent); }

/* ---------- Итоги игры ---------- */
.final { display: grid; place-items: start center; }
.final-card { width: min(640px, 100%); display: grid; gap: 16px; text-align: center; }
.final-title { font: 900 clamp(28px, 8vw, 44px)/1 var(--font); text-transform: uppercase; letter-spacing: -.02em; margin: 0; }
.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 8px; }
.pod { display: grid; justify-items: center; gap: 6px; min-width: 0; }
.pod b { font-size: 14px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pod span { font: 900 22px var(--font); font-variant-numeric: tabular-nums; }
.pod i { font-style: normal; width: 100%; display: grid; place-items: center; font: 900 26px var(--font); border-radius: 12px 12px 0 0; background: var(--surface-2); color: var(--muted); }
.pod.p1 i { height: 110px; background: linear-gradient(180deg, var(--accent), #8e1523); color: #fff; }
.pod.p2 i { height: 80px; }
.pod.p3 i { height: 60px; }
.pod.empty { visibility: hidden; }
.best { background: var(--surface-2); border-radius: 12px; padding: 12px; font-size: 14px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.final-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; text-align: left; }
.final-list li { display: flex; align-items: center; gap: 10px; background: var(--surface-2); border-radius: 10px; padding: 9px 12px; }
.final-list b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.final-list .place { width: 18px; font: 900 14px var(--font); color: var(--muted); }
.final-list .total { font: 900 18px var(--font); font-variant-numeric: tabular-nums; }

/* ---------- Верхняя панель, чат, громкость (как в «Угадай кто») ---------- */
#camBtn .on, #camBtn[aria-pressed="true"] .off, #micBtn .on, #micBtn[aria-pressed="true"] .off { display: none; }
#camBtn[aria-pressed="true"] .on, #micBtn[aria-pressed="true"] .on { display: block; color: var(--ok); }
#camBtn .off, #micBtn .off { color: var(--muted); display: block; }
#camBtn[aria-pressed="true"] .off, #micBtn[aria-pressed="true"] .off { display: none; }
#chatBtn { position: relative; }
.badge-dot { position: absolute; top: 2px; right: 0; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px; background: var(--accent); color: #fff; font: 900 10px/16px var(--font); text-align: center; }
.vol-wrap { position: relative; }
.vol-pop { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; width: 240px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px; box-shadow: 0 20px 50px rgba(0,0,0,.6); }
.vol-pop label { margin-bottom: 10px; font-size: 12.5px; }
.vol-pop label:last-child { margin-bottom: 0; }
.vol-pop input { width: 100%; }
.chat { position: fixed; right: 16px; bottom: 16px; z-index: 80; width: 340px; height: min(480px, calc(100dvh - 90px)); background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: 0 24px 60px rgba(0,0,0,.6); display: flex; flex-direction: column; overflow: hidden; }
.chat-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 14px; border-bottom: 1px solid var(--line); }
.chat-list { flex: 1; overflow-y: auto; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; overscroll-behavior: contain; }
.chat-empty { color: var(--muted); font-size: 13px; text-align: center; margin: auto; }
.chat-msg { background: var(--surface-2); border-radius: 10px 10px 10px 3px; padding: 6px 10px; max-width: 88%; align-self: flex-start; font-size: 14px; overflow-wrap: anywhere; }
.chat-msg b { display: flex; align-items: center; font-size: 12px; color: var(--accent); }
.chat-msg.mine { align-self: flex-end; background: #3a0d14; border-radius: 10px 10px 3px 10px; }
.chat-msg.mine b { color: #ff9aa6; }
.chat-form { display: flex; gap: 6px; padding: 8px; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; min-width: 0; }
.chat-form .btn { padding: 0 14px; }

/* ---------- Телефон ---------- */
@media (max-width: 760px) {
  .topbar { gap: 4px; padding: 8px 8px; overflow-x: auto; scrollbar-width: none; }
  .topbar .logo.small { display: none; }
  .topbar #copyLink { font-size: 0; gap: 4px; }
  .topbar #copyLink b { font-size: 13px; }
  .topbar .icon-btn { width: 36px; height: 36px; }
  .ai-chip { font-size: 0; padding: 7px 9px; gap: 0; }
  .ai-chip .spin, .ai-chip .dot { margin: 0; }
  .chat { left: 0; right: 0; bottom: 0; width: auto; height: 62dvh; border-radius: 16px 16px 0 0; }
  .chat-form { padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
  .vol-pop { position: fixed; left: 10px; right: 10px; top: 56px; width: auto; }
  .mstage { padding: 8px 8px calc(12px + env(safe-area-inset-bottom)); gap: 8px; }
  .pack-grid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); max-height: 46vh; }
  .toasts { bottom: calc(16px + env(safe-area-inset-bottom)); width: calc(100% - 24px); }
  .toast { text-align: center; }
}
@media (max-width: 380px) {
  .pack-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row2 .btn { padding: 13px 6px; font-size: 14px; }
  .score-wrap { width: 128px; height: 128px; }
  .score-num { font-size: 44px; }
  .count { font-size: 80px; }
}
/* Низкий экран телефона: фото ниже, чтобы кнопки влезали без прокрутки */
@media (max-width: 760px) and (max-height: 720px) { .meme { aspect-ratio: 16 / 8; } }

/* ---------- Планшет ---------- */
@media (min-width: 640px) {
  .lobby { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; }
  .how { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .how div { flex-direction: column; align-items: flex-start; }
}

/* ---------- Компьютер и планшет горизонтально: сцена слева, таблица справа ---------- */
@media (min-width: 900px) {
  #game { height: 100vh; height: 100dvh; }
  .mstage { padding: 12px; overflow: auto; }
  .play { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 12px; align-items: start; width: min(1180px, 100%); margin: 0 auto; }
  .turn-card { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: stretch; }
  .meme, .turn-card[data-phase] .meme { aspect-ratio: auto; min-height: 380px; }
  .turn-body { padding: 20px; align-content: center; }
  .board-col { position: sticky; top: 0; }
  .hist ol { max-height: 34vh; }
  .lobby { width: min(1100px, 100%); margin: 0 auto; }
  .scores .tile-actions { top: 50%; transform: translateY(-50%); right: 54px; }
  .scores li:hover .tile-actions { display: flex; }
}
/* Телефон горизонтально: фото слева, панель хода справа */
@media (max-width: 899px) and (orientation: landscape) and (max-height: 560px) {
  .turn-card { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
  .meme, .turn-card[data-phase] .meme { aspect-ratio: auto; min-height: 240px; }
  .aname { font-size: 30px; }
  .turn-body { padding: 10px; gap: 8px; }
  .count { font-size: 64px; }
  .score-wrap { width: 110px; height: 110px; }
  .score-num { font-size: 38px; }
}

/* «Один звук на всех» */
.same-line { text-align: center; font-size: 13px; font-weight: 700; color: var(--muted); }
.same-line b { color: var(--text); }
.reveal-pos { font: 800 12px var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.reveal-list { list-style: none; margin: 0; padding: 10px 0 0; border-top: 1px solid var(--surface-2); display: grid; gap: 6px; max-height: 220px; overflow: auto; }
.reveal-list li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; padding: 4px 6px; border-radius: 8px; }
.reveal-list li.cur { background: var(--surface-2); }
.reveal-list .nm { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; }
.reveal-list .nm b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reveal-list .a { flex: none; width: 30px; text-align: right; font-weight: 900; font-variant-numeric: tabular-nums; }
.wave { display: block; width: 100%; height: 88px; background: #08080b; border: 2px solid #2b2b33; border-radius: 14px; }
.turn-card[data-phase="record"] .wave { border-color: #ff2340; box-shadow: 0 0 0 3px rgba(255, 35, 64, .18); }
@media (max-width: 760px) { .wave { height: 72px; border-radius: 12px; } }
@media (max-width: 899px) and (orientation: landscape) and (max-height: 560px) { .wave { height: 56px; } }
.row1 .btn { width: 100%; padding: 15px 10px; font-size: 15px; }
.row1 .btn.on { box-shadow: inset 0 0 0 2px var(--accent); }
.reveal-list li.cur .mini-play { background: #3a3a42; }
@media (max-width: 760px) {
  .turn-card[data-phase="reveal"] .score-wrap { width: 112px; height: 112px; }
  .turn-card[data-phase="reveal"] .score-num { font-size: 40px; }
  .turn-card[data-phase="reveal"] .meme { aspect-ratio: 16 / 6; }
}
.all-clips { background: var(--surface-2); border-radius: 12px; padding: 10px 12px; text-align: left; }
.all-clips summary { cursor: pointer; font-weight: 800; font-size: 14px; list-style: none; }
.all-clips summary::-webkit-details-marker { display: none; }
.all-clips summary::after { content: ' ▾'; color: var(--muted); }
.ac-round { margin-top: 10px; }
.ac-head { display: flex; align-items: center; gap: 8px; font: 800 12px var(--font); letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.all-clips ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
.all-clips li { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.all-clips li b { flex: none; max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.all-clips li .q { flex: 1; min-width: 0; color: #d4d4d8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.all-clips li .a { margin-left: auto; font-weight: 900; font-variant-numeric: tabular-nums; }
.all-clips .mini-play { background: #33333b; }
