/* ============================================================
   开口 · 多语言口语练习 — P0 样式

   皮肤架构（token 驱动，5 套）：
     每套皮肤就是一个 html[data-skin="xxx"] 块，只重新定义颜色令牌，
     下面所有规则一律只读令牌，不写死颜色 —— 新增皮肤只需添一个块。

     data-skin 永远是具体皮肤名（paper / matcha / sakura / midnight / neon）；
     「跟随系统」不在 CSS 里做，而是由 js/skins.js 用
     matchMedia 解析成 paper 或 midnight 后写回 data-skin。
     这样 CSS 里不需要用媒体查询重复一整套令牌，
     也不会出现「auto 块漏改一个变量」的隐性 bug。

     data-tone="light|dark" 由 JS 同步写入，供少数需要按深浅微调的
     规则使用（比逐个皮肤列举靠谱）。

   对比度：正文/面板 ≥ 12:1，次要文字 ≥ 5.5:1，按钮文字 ≥ 4.5:1。
   -ink 结尾的令牌 = 对应色块上的前景色，专门解决「深色皮肤下
   白字压亮色背景」这类对比度坍塌。
   ============================================================ */

/* ---------- 1. paper 素纸白（浅色·冷调，默认） ---------- */
:root,
html[data-skin="paper"] {
  --bg: #f7f8fa;
  --bg2: #eceff4;
  --panel: #ffffff;
  --panel2: #eef0f4;
  --text: #1a1d23;
  --muted: #5c6470;
  --line: #dfe3e9;
  --accent: #2f5fd0;
  --accent-ink: #ffffff;
  --teal: #0f766e;
  --teal-ink: #ffffff;
  --ok: #157347;
  --bad: #c0392b;
  --bad-ink: #ffffff;
  --shadow: 0 6px 22px rgba(20, 30, 50, .08);
  --r: 14px;
  --maxw: 940px;
}

/* ---------- 2. matcha 抹茶青（浅色·绿调） ---------- */
html[data-skin="matcha"] {
  --bg: #f2f6ee;
  --bg2: #e3ecdb;
  --panel: #fbfdf7;
  --panel2: #e7efdf;
  --text: #1e2a1c;
  --muted: #596955;
  --line: #d5dfcb;
  --accent: #3d7a38;
  --accent-ink: #f8fff5;
  --teal: #2b6b5e;
  --teal-ink: #f2fffb;
  --ok: #2f6b23;
  --bad: #b0402a;
  --bad-ink: #fff5f2;
  --shadow: 0 6px 22px rgba(30, 50, 25, .09);
}

/* ---------- 3. sakura 樱花粉（浅色·粉调，配恋爱场景） ---------- */
html[data-skin="sakura"] {
  --bg: #fdf4f6;
  --bg2: #f8e5eb;
  --panel: #fffafb;
  --panel2: #f9e9ed;
  --text: #2e1c22;
  --muted: #7a5a63;
  --line: #eed7dd;
  --accent: #c2456b;
  --accent-ink: #fff5f8;
  --teal: #2f6f6a;
  --teal-ink: #f2fffd;
  --ok: #2c6b45;
  --bad: #b03030;
  --bad-ink: #fff5f5;
  --shadow: 0 6px 22px rgba(90, 30, 50, .09);
}

/* ---------- 4. midnight 深夜蓝（深色·冷调） ---------- */
html[data-skin="midnight"] {
  --bg: #101320;
  --bg2: #080a12;
  --panel: #191d2b;
  --panel2: #232941;
  --text: #edf0f8;
  --muted: #a8b1cc;
  --line: #2e3550;
  --accent: #ffb454;
  --accent-ink: #14120a;
  --teal: #6ee7c8;
  --teal-ink: #0d1a17;
  --ok: #67d98a;
  --bad: #ff8f7a;
  --bad-ink: #2a0d06;
  --shadow: 0 8px 26px rgba(0, 0, 0, .45);
}

/* ---------- 5. neon 霓虹紫（深色·高饱和） ---------- */
html[data-skin="neon"] {
  --bg: #0b0714;
  --bg2: #05030a;
  --panel: #150e24;
  --panel2: #211736;
  --text: #f3ecff;
  --muted: #b7a6d6;
  --line: #3a2b5e;
  --accent: #ff4fd8;
  --accent-ink: #170412;
  --teal: #35e5ff;
  --teal-ink: #04161c;
  --ok: #5dffa0;
  --bad: #ff5c6e;
  --bad-ink: #2a0509;
  --shadow: 0 8px 28px rgba(0, 0, 0, .55);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  /* 微渐变而不是纯色块：换皮肤时差异更明显，也不抢正文注意力。
     拆成三行写而不用 background 简写，避开部分浏览器对
     「image + attachment + var() 颜色」简写解析不一致的问题。
     fixed 让渐变不随滚动重绘。 */
  background-color: var(--bg);
  background-image: linear-gradient(178deg, var(--bg) 0%, var(--bg2) 100%);
  background-attachment: fixed;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC",
               "Noto Sans JP", "Noto Sans KR", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  padding-bottom: 32px;
  min-height: 100vh;
}

.hidden { display: none !important; }

button { font-family: inherit; font-size: inherit; }

/* 幽灵按钮：次要动作的兜底外观。
   放在容器里时容器规则会覆盖它（.mic button / .dlghead button 等），
   单独摆放（如进度页的重置）也不至于裸奔成浏览器默认灰按钮。 */
.ghost {
  border: 1px solid var(--line); background: var(--panel2); color: var(--text);
  border-radius: 10px; padding: 8px 12px; cursor: pointer;
}
.ghost:hover { border-color: var(--accent); }

/* 三个标签页面板：切换时给一点淡入，避免生硬跳变 */
.view { animation: viewin .18s ease-out; }
@keyframes viewin { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .view { animation: none; }
  * { transition-duration: .01ms !important; }
}

button:focus-visible, a:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  padding: 10px clamp(12px, 3vw, 24px);
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.logo { font-size: 26px; line-height: 1; }
.brandtxt h1 { margin: 0; font-size: 18px; letter-spacing: .04em; }
.brandtxt p { margin: 0; font-size: 12px; color: var(--muted); }

.topright { display: flex; align-items: center; gap: 8px; }

.langs { display: flex; gap: 6px; overflow-x: auto; max-width: 62vw; scrollbar-width: thin; }
.langs button {
  border: 1px solid var(--line); background: var(--panel2); color: var(--text);
  border-radius: 999px; padding: 4px 10px; cursor: pointer; white-space: nowrap;
  font-size: 13px; transition: background .15s, color .15s, border-color .15s;
}
.langs button .nm { margin-left: 4px; }
.langs button.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }

.iconbtn {
  border: 1px solid var(--line); background: var(--panel2); color: var(--text);
  width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 16px;
}
/* 激活态跟 .langs button.on 用同一套实心反色，而不是「主色文字」：
   sakura / matcha 的 --accent 直接当文字色压在 --panel2 上只有 4.1~4.4:1，
   16px 常规字重按 WCAG AA 需要 4.5:1。反色后五套最低 4.51:1，
   两处激活态也终于一眼看上去是同一回事。 */
.iconbtn.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* ---------- 皮肤选择面板 ---------- */
.skinwrap { position: relative; flex: none; }

.skinpop {
  position: absolute; right: 0; top: 44px; z-index: 50;
  width: 300px; max-width: calc(100vw - 32px);
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--shadow);
  padding: 12px; animation: popin .14s ease-out;
}
@keyframes popin { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.skinpop-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12.5px; color: var(--muted); margin-bottom: 9px;
}
.skinpop-head b { color: var(--text); font-size: 13.5px; }
.skinpop-head button {
  border: none; background: transparent; color: var(--muted);
  cursor: pointer; font-size: 15px; padding: 0 4px; border-radius: 6px;
}
.skinpop-head button:hover { color: var(--accent); }

.skinlist { display: grid; gap: 6px; }

.skinitem {
  display: flex; align-items: center; gap: 10px; text-align: left;
  border: 1px solid var(--line); background: var(--panel2); color: var(--text);
  border-radius: 10px; padding: 7px 10px; cursor: pointer; width: 100%;
}
.skinitem:hover { border-color: var(--accent); }
.skinitem.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }

/* 色板：颜色由 JS 从皮肤元数据写进内联 style，
   这是全站唯一必须写死颜色的地方 —— 预览必须展示「那套皮肤」的颜色，
   用 var() 只会拿到当前皮肤的颜色，失去预览意义。 */
.sw { display: flex; gap: 3px; flex: none; }
.sw i { display: block; width: 13px; height: 24px; border-radius: 4px; border: 1px solid var(--line); }

.smeta { flex: 1 1 auto; min-width: 0; }
.sn { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; }
.sd { display: block; font-size: 11.5px; color: var(--muted); line-height: 1.35; }
/* ✓ 故意不用 --accent：sakura / matcha 的主色压在 --panel2 上只有 4.1~4.4:1，
   而 14px 粗体按 WCAG AA 仍算正文（大文本门槛是 18.66px 粗体），差一点不达标。
   选中态已经由 .skinitem.on 的 accent 边框 + inset 描边表达过了，✓ 只是冗余确认，
   所以走 --text 拿满对比度，不为了一个勾去调深任何一套皮肤的主色。 */
.skinitem .tick { flex: none; color: var(--text); font-weight: 700; font-size: 14px; width: 16px; text-align: center; }

.skinauto {
  display: flex; align-items: center; gap: 8px; margin-top: 10px; padding-top: 10px;
  border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); cursor: pointer;
}
.skinauto input { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; flex: none; }
.skinpop-foot { margin-top: 8px; font-size: 11.5px; color: var(--muted); line-height: 1.5; }

/* ---------- 标签页 ---------- */
.tabs {
  position: sticky; top: 57px; z-index: 29;
  display: flex; gap: 6px; padding: 8px clamp(12px, 3vw, 24px);
  background: var(--bg); border-bottom: 1px solid var(--line);
  overflow-x: auto;
}

.tabs button {
  border: 1px solid transparent; background: transparent; color: var(--muted);
  padding: 6px 14px; border-radius: 999px; cursor: pointer; white-space: nowrap;
}
.tabs button.on { background: var(--panel); color: var(--text); border-color: var(--line); font-weight: 600; }

/* ---------- 主体 ---------- */
main { max-width: var(--maxw); margin: 0 auto; padding: 16px clamp(12px, 3vw, 24px); }

.filters { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
.chips button {
  border: 1px solid var(--line); background: var(--panel); color: var(--muted);
  border-radius: 999px; padding: 5px 12px; cursor: pointer; white-space: nowrap; font-size: 13px;
}
.chips button.on { background: var(--teal); border-color: var(--teal); color: var(--teal-ink); font-weight: 600; }

.hint { color: var(--muted); font-size: 13px; margin: 0 0 12px; }

/* ---------- 题卡 ---------- */
.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--shadow);
  padding: clamp(14px, 3vw, 22px); margin-bottom: 14px;
}

.cardhead { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.cardhead .scene, .cardhead .lv {
  font-size: 12px; padding: 2px 9px; border-radius: 999px;
  background: var(--panel2); color: var(--muted); border: 1px solid var(--line);
}
.cardhead .lv { color: var(--teal); border-color: var(--teal); font-weight: 600; }
.cardhead .polite { font-size: 12px; color: var(--accent); letter-spacing: 1px; }
.cardhead .counter { margin-left: auto; font-size: 12px; color: var(--muted); }

.intent { font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.intent b { color: var(--text); font-weight: 600; }

.zhrow { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.zh { font-size: 17px; color: var(--text); }

.mini {
  border: 1px solid var(--line); background: var(--panel2); color: var(--muted);
  border-radius: 8px; padding: 1px 7px; cursor: pointer; font-size: 12px; flex: none;
}

.target {
  font-size: clamp(1.35rem, 4.6vw, 2.05rem);
  line-height: 1.45; font-weight: 600; letter-spacing: .01em;
  color: var(--text); margin: 2px 0 6px; word-break: break-word;
}
.target:empty::before { content: "—"; color: var(--muted); }

.pron { font-size: 14px; color: var(--muted); font-style: italic; margin-bottom: 12px; min-height: 1em; }

.variants { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.variants button {
  display: flex; align-items: baseline; gap: 10px; text-align: left;
  border: 1px solid var(--line); background: var(--panel2); color: var(--text);
  border-radius: 10px; padding: 8px 12px; cursor: pointer; width: 100%;
}
.variants button:hover { border-color: var(--accent); }
.variants .k {
  flex: none; font-size: 11px; color: var(--accent-ink); background: var(--accent);
  border-radius: 6px; padding: 1px 7px; font-weight: 700;
}
.variants .v { font-size: 15px; }

/* ---------- 逐词释义 ---------- */
.glosswrap { margin-bottom: 14px; }
.glosswrap.hidden, .glosswrap.maskhide { display: none; }
.glosshead {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--muted); margin-bottom: 8px;
}
.glosshead .gl-hint { font-size: 11.5px; color: var(--accent-ink); opacity: .85; }
.gloss { display: flex; flex-direction: column; gap: 8px; }
.glosschip {
  display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
  text-align: left; cursor: pointer; width: 100%;
  border: 1px solid var(--line); background: var(--panel2); color: var(--text);
  border-radius: 10px; padding: 8px 12px;
}
.glosschip:hover { border-color: var(--accent); }
.glosschip .gw { font-size: 16px; font-weight: 600; word-break: break-word; }
.glosschip .gmeta { font-size: 13px; color: var(--muted); }
.glosschip .ghere { font-size: 12.5px; color: var(--teal); font-weight: 500; }

.pitwrap { margin-bottom: 14px; }
.pitbtn {
  border: 1px dashed var(--line); background: transparent; color: var(--muted);
  border-radius: 10px; padding: 7px 12px; cursor: pointer; width: 100%; text-align: left;
}
.pit {
  margin-top: 8px; padding: 10px 12px; border-radius: 10px;
  background: var(--panel2); border-left: 4px solid var(--accent);
  color: var(--text); font-size: 14.5px;
}

/* ---------- 录音区 ---------- */
.mic {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 10px; border-radius: 12px; background: var(--panel2); margin-bottom: 12px;
}
.mic button {
  border: 1px solid var(--line); background: var(--panel); color: var(--text);
  border-radius: 10px; padding: 8px 12px; cursor: pointer; white-space: nowrap;
}
.mic button:disabled { opacity: .45; cursor: not-allowed; }
.mic .rec { border-color: var(--accent); color: var(--accent); font-weight: 600; }
.mic .rec.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.meter {
  flex: 1 1 110px; min-width: 90px; height: 10px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--line); overflow: hidden;
}
.meter i { display: block; height: 100%; width: 0; background: var(--teal); transition: width .06s linear; }
.rectime { font-size: 12px; color: var(--muted); min-width: 42px; text-align: right; }

.micnote {
  margin-top: -4px; margin-bottom: 12px; padding: 9px 12px; border-radius: 10px;
  background: var(--panel2); border-left: 4px solid var(--bad); color: var(--text); font-size: 13.5px;
}

.judge { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.judge button {
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 10px;
  cursor: pointer; font-weight: 600; font-size: 15px; background: var(--panel); color: var(--text);
}
.judge .ok { border-color: var(--ok); color: var(--ok); }
.judge .no { border-color: var(--bad); color: var(--bad); }
.judge button:hover { background: var(--panel2); }

/* ---------- 抽卡进度条 ---------- */
.deckbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  padding: 12px 14px; box-shadow: var(--shadow);
}
.deckinfo { font-size: 13px; color: var(--muted); }
.deckinfo b { color: var(--text); }
.primary {
  border: none; background: var(--accent); color: var(--accent-ink);
  border-radius: 12px; padding: 11px 18px; cursor: pointer; font-weight: 700;
}
.primary.big { font-size: 16px; padding: 13px 22px; }
.primary:active { transform: translateY(1px); }

/* ---------- 剧本 ---------- */
.dlglist { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.dlgcard {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  padding: 14px; cursor: pointer; text-align: left; color: var(--text); box-shadow: var(--shadow);
}
.dlgcard .t { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.dlgcard .m { font-size: 12.5px; color: var(--muted); }
.dlgcard:hover { border-color: var(--accent); }

.dlgplayer {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  padding: clamp(12px, 3vw, 20px); margin-top: 14px; box-shadow: var(--shadow);
}
.dlghead { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.dlghead h2 { margin: 0; font-size: 18px; flex: 1 1 auto; }
.dlghead button {
  border: 1px solid var(--line); background: var(--panel2); color: var(--text);
  border-radius: 10px; padding: 6px 12px; cursor: pointer;
}
.turn {
  display: flex; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); align-items: flex-start;
}
/* 注意：这里不用 .turn:first-of-type 去掉首条上边框 —— 播放器里第一个 div 是
   .dlghead，:first-of-type 永远匹配不到 .turn，是条死规则。首条留边框反而
   把「提示文字」和「第一句台词」分开，视觉更清楚。 */
.turn .who {
  flex: none; width: 52px; font-size: 12px; text-align: center; padding: 3px 0;
  border-radius: 8px; background: var(--panel2); color: var(--muted);
}
.turn.you .who { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
/* 三类轮次各给一个身份色：你=暖红、对方=青绿、突发=警示红，
   扫一眼就知道该谁开口。 */
.turn.npc .who { background: var(--panel2); color: var(--teal); border: 1px solid var(--line); font-weight: 600; }
.turn .body { flex: 1 1 auto; min-width: 0; }
.turn .en { font-size: 16px; color: var(--text); }
.turn .zh2 { font-size: 13px; color: var(--muted); margin-top: 2px; }
.turn .note { font-size: 12.5px; color: var(--teal); margin-top: 4px; }
.turn .acts { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.turn .acts button {
  border: 1px solid var(--line); background: var(--panel2); color: var(--muted);
  border-radius: 8px; padding: 3px 9px; cursor: pointer; font-size: 12px;
}
.turn.twist { background: var(--panel2); border-radius: 10px; padding: 10px; border-top: none; }
.turn.twist .who { background: var(--bad); color: var(--bad-ink); font-weight: 700; border: none; }

/* ---------- 进度 ---------- */
.statgrid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); margin-bottom: 14px; }
.stat {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  padding: 12px 14px; box-shadow: var(--shadow);
}
.stat .n { font-size: 26px; font-weight: 700; line-height: 1.2; }
.stat .l { font-size: 12.5px; color: var(--muted); }
.stat.a .n { color: var(--accent); }
.stat.g .n { color: var(--ok); }
.stat.r .n { color: var(--bad); }

.scenebar { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; margin-bottom: 14px; }
.srow { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.srow:last-child { margin-bottom: 0; }
.srow .nm { flex: none; width: 76px; font-size: 13.5px; }
.srow .bar { flex: 1 1 auto; height: 10px; border-radius: 999px; background: var(--panel2); overflow: hidden; border: 1px solid var(--line); }
.srow .bar i { display: block; height: 100%; width: 0; background: var(--teal); transition: width .3s; }
.srow .pc { flex: none; width: 62px; text-align: right; font-size: 12.5px; color: var(--muted); }

.weak { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; margin-bottom: 14px; }
.weak h3 { margin: 0 0 8px; font-size: 15px; }
.weak .witems { display: flex; flex-wrap: wrap; gap: 6px; }
.weak button {
  border: 1px solid var(--line); background: var(--panel2); color: var(--text);
  border-radius: 999px; padding: 4px 11px; cursor: pointer; font-size: 13px;
}
.weak .empty { color: var(--muted); font-size: 13.5px; }
.danger { border-color: var(--bad); color: var(--bad); background: var(--panel); border-radius: 10px; padding: 9px 14px; cursor: pointer; }

/* ---------- 遮罩（盲听 / 提示卡模式） ---------- */
.mask { filter: blur(9px); user-select: none; cursor: pointer; transition: filter .18s; }
.mask.revealed { filter: none; user-select: auto; cursor: default; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%);
  background: var(--text); color: var(--bg); border-radius: 999px;
  padding: 9px 18px; font-size: 14px; z-index: 60; box-shadow: var(--shadow);
  max-width: 88vw; text-align: center;
}

/* ---------- 页脚 ---------- */
.foot {
  max-width: var(--maxw); margin: 22px auto 0; padding: 0 clamp(12px, 3vw, 24px);
  display: flex; flex-direction: column; gap: 4px;
  font-size: 12px; color: var(--muted);
}

/* ---------- 窄屏 ---------- */
@media (max-width: 640px) {
  .topbar { padding: 8px 12px; }
  .brandtxt p { display: none; }
  .langs { max-width: 46vw; }
  .langs button .nm { display: none; }
  .langs button { padding: 4px 9px; }
  .tabs { top: 53px; }
  .judge { grid-template-columns: 1fr; }
  .mic button { flex: 1 1 auto; }
  .deckbar { flex-direction: column; align-items: stretch; }
  .primary.big { width: 100%; }
  .turn .who { width: 44px; }
}
