/* ── すりガラスのデザイン。YouTube の光（再生中はぼかし・答え合わせはくっきり）を背景いっぱいに使い、
      その上に暗めのすりガラスの UI を重ねる。文字は白＋影で、明るい動画でも暗い動画でも読めるようにする ── */
:root {
  --bg: #05060f;
  --glass: rgba(12, 12, 30, .42);        /* パネル */
  --glass-strong: rgba(10, 10, 26, .62); /* 入力欄・カードなど文字が多い所 */
  --glass-hi: rgba(255, 255, 255, .10);  /* ガラスの上側のハイライト */
  --line: rgba(255, 255, 255, .22);
  --line-strong: rgba(255, 255, 255, .5);
  --text: #fff; --sub: rgba(255, 255, 255, .74);
  --accent: #7fe8ff; --accent2: #ff7ad9; --ok: #5dffb0; --ng: #ff6b8a; --warn: #ffd36b;
  --grad: linear-gradient(120deg, #7fe8ff, #b69bff 50%, #ff7ad9);
  --text-shadow: 0 1px 3px rgba(0, 0, 0, .75), 0 0 1px rgba(0, 0, 0, .6);
  --glow: 0 8px 32px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .18);
  --blur: blur(16px) saturate(1.4);
  --radius: 18px;
  --font: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic UI", sans-serif;
  --font-num: "Outfit", "Zen Kaku Gothic New", sans-serif;
}

/* ── 基本 ── */
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; min-height: 100vh; color: var(--text); background: transparent; font-family: var(--font); font-weight: 500;
       text-shadow: var(--text-shadow); -webkit-font-smoothing: antialiased; }
main { max-width: 860px; margin: 0 auto; padding: 16px; }
[hidden] { display: none !important; }
h2 { font-size: 20px; margin: 0 0 12px; }
h3 { font-size: 12px; margin: 0 0 8px; color: var(--sub); letter-spacing: .18em; font-weight: 700; }
/* 黒背景で生成したアイコンは、黒を消して光だけを重ねる */
.icon, .crown, .cover-icon, .flash-icon { pointer-events: none; }

/* ── 背景：動画がない時は生成画像。再生中は動画をぼかした光、答え合わせはくっきりの動画 ── */
.backdrop { position: fixed; inset: 0; z-index: -2; transition: opacity 1s ease;
            background: radial-gradient(ellipse at 50% 120%, rgba(5, 6, 15, .2), rgba(5, 6, 15, .65)), url("assets/glass/bg.jpg") center / cover no-repeat, var(--bg); }
/* YouTube を画面いっぱいに敷く（16:9 を保ったまま画面を覆う）。隠すときは即時（次の曲の画面が一瞬見えないように） */
.video-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; opacity: 0; transition: none; background: #000; }
.video-bg iframe { position: absolute; top: 50%; left: 50%; width: 100vw; height: 56.25vw; min-width: 177.78vh; min-height: 100vh;
                   transform: translate(-50%, -50%); border: 0; transition: filter 1.2s ease, transform 1.2s ease; }
/* 出題中は Ambient light 風：映像を強くぼかして色の光だけを広げる（中身は読めない）。ぼかしは即時にかける */
/* 出題中：ぼかした映像の光を、ゆっくり流れる波の形だけ見せる。点滅の多い動画でも見やすいよう、明るさ・コントラストを抑える */
/* 出題中：点滅する映像でもまぶしくならないよう、光は限りなく薄く */
body.playing .video-bg { opacity: calc(.15 * var(--bgk, 1)); background: transparent; transition: opacity 1s ease;
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 900' preserveAspectRatio='none'><filter id='b'><feGaussianBlur stdDeviation='28'/></filter><g filter='url(%23b)' fill='white'><path d='M0 250 Q200 60 400 250 T800 250 T1200 250 T1600 250 L1600 430 Q1400 610 1200 430 T800 430 T400 430 T0 430 Z'/><path fill-opacity='.7' d='M0 600 Q200 770 400 600 T800 600 T1200 600 T1600 600 L1600 760 Q1400 600 1200 760 T800 760 T400 760 T0 760 Z'/></g></svg>"), url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 900' preserveAspectRatio='none'><filter id='b'><feGaussianBlur stdDeviation='36'/></filter><g filter='url(%23b)' fill='white' fill-opacity='.55'><path d='M0 120 Q400 -40 800 120 T1600 120 L1600 230 Q1200 380 800 230 T0 230 Z'/><path d='M0 470 Q400 620 800 470 T1600 470 L1600 590 Q1200 450 800 590 T0 590 Z'/></g></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 900' preserveAspectRatio='none'><filter id='b'><feGaussianBlur stdDeviation='28'/></filter><g filter='url(%23b)' fill='white'><path d='M0 250 Q200 60 400 250 T800 250 T1200 250 T1600 250 L1600 430 Q1400 610 1200 430 T800 430 T400 430 T0 430 Z'/><path fill-opacity='.7' d='M0 600 Q200 770 400 600 T800 600 T1200 600 T1600 600 L1600 760 Q1400 600 1200 760 T800 760 T400 760 T0 760 Z'/></g></svg>"), url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 900' preserveAspectRatio='none'><filter id='b'><feGaussianBlur stdDeviation='36'/></filter><g filter='url(%23b)' fill='white' fill-opacity='.55'><path d='M0 120 Q400 -40 800 120 T1600 120 L1600 230 Q1200 380 800 230 T0 230 Z'/><path d='M0 470 Q400 620 800 470 T1600 470 L1600 590 Q1200 450 800 590 T0 590 Z'/></g></svg>");
  -webkit-mask-size: 1600px 100%, 2200px 100%; mask-size: 1600px 100%, 2200px 100%;
  -webkit-mask-repeat: repeat-x; mask-repeat: repeat-x; animation: wave 26s linear infinite; }
@keyframes wave { from { -webkit-mask-position: 0 0, 0 0; mask-position: 0 0, 0 0; }
                  to { -webkit-mask-position: -1600px 0, 2200px 0; mask-position: -1600px 0, 2200px 0; } }
body.playing .video-bg iframe { filter: blur(80px) saturate(1.2) brightness(.5) contrast(.5); transform: translate(-50%, -50%) scale(1.3); transition: none; }
body.playing .backdrop { opacity: .15; }
body.revealing .video-bg { opacity: var(--bgk, 1); transition: opacity 1s ease; }
/* 次の問題へ移る直前：音のフェードアウトに合わせて映像も黒へ消す */
body.revealing.fading .video-bg { opacity: 0; transition: opacity 1.5s ease; }
/* 答え合わせは少し拡大して、YouTube の上のタイトルと右下のロゴを画面の外に出す */
body.revealing .video-bg iframe { transform: translate(-50%, -50%) scale(1.2); }
body.revealing .backdrop { opacity: 0; }
body.revealing { --text-shadow: 0 1px 4px rgba(0, 0, 0, .95), 0 0 2px rgba(0, 0, 0, .9); }
body.revealing .panel, body.revealing .brand, body.revealing .code {
  background: rgba(8, 8, 20, .04); border-color: rgba(255, 255, 255, .06); box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none;
  transition: background .6s ease, border-color .6s ease; }
body.revealing .choice, body.revealing .players li, body.revealing .clues li, body.revealing .highlights li, body.revealing .btn-sub,
body.revealing .phase, body.revealing .cover, body.revealing .titles li {
  background: rgba(8, 8, 20, .1); border-color: rgba(255, 255, 255, .08); box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
body.revealing .btn-main { background: rgba(20, 16, 48, .12); box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
/* 選択肢は、正解とだれかが押したものだけはっきり。ほかは薄く（触れたら戻す） */
body.revealing #quiz .clues, body.revealing #quiz .lifelines, body.revealing #quiz .note { opacity: .25; }
body.revealing .choice:not(.correct):not(.picked) { opacity: .2; transition: opacity .6s ease; }
body.revealing .choice.correct { border-color: var(--ok); background: rgba(20, 70, 50, .4); box-shadow: 0 0 18px rgba(93, 255, 176, .5); }
body.revealing .choice.wrong, body.revealing .choice.wrong-other { border-color: var(--ng); background: rgba(80, 20, 40, .35); }
body.revealing #quiz:hover .choice, body.revealing #quiz:hover .clues { opacity: 1; }
body.revealing .results td { border-color: rgba(255, 255, 255, .06); }
/* 答えと結果以外（プレイヤー欄・タイマー・ロゴ）も控えめに。触れたら戻す */
body.revealing .room-side, body.revealing .stage, body.revealing .top { opacity: .55; transition: opacity .6s ease; }
body.revealing .room-side:hover, body.revealing .stage:hover, body.revealing .top:hover { opacity: 1; }
body.revealing .btn-main::before { opacity: .5; }

/* ── ガラスの部品 ── */
.panel { background: linear-gradient(180deg, var(--glass-hi), transparent 40%), var(--glass); border: 1px solid var(--line);
         border-radius: var(--radius); padding: 18px; margin-bottom: 14px; box-shadow: var(--glow);
         backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
label { font-size: 12px; color: var(--sub); display: block; font-weight: 700; letter-spacing: .04em; }
input, select { width: 100%; margin-top: 5px; padding: 11px 13px; background: var(--glass-strong); color: var(--text);
                border: 1px solid var(--line); border-radius: 12px; font-size: 16px; font-family: inherit; text-shadow: none; }
input::placeholder { color: rgba(255, 255, 255, .45); }
select option { background: #14142a; color: #fff; }
input:focus, select:focus { outline: none; border-color: var(--line-strong); box-shadow: 0 0 0 3px rgba(127, 232, 255, .25); }
button { font: inherit; cursor: pointer; border: none; border-radius: 14px; color: var(--text); text-shadow: var(--text-shadow); }
button:disabled { cursor: default; }
/* メインのボタン：ガラス＋グラデーションの縁と光 */
.btn-main { position: relative; width: 100%; padding: 15px; margin-top: 14px; font-size: 18px; font-weight: 900; letter-spacing: .08em;
            background: linear-gradient(180deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .04)), rgba(20, 16, 48, .55);
            border: 1px solid transparent; border-radius: 16px; isolation: isolate;
            box-shadow: 0 0 24px rgba(182, 155, 255, .35), var(--glow); transition: transform .12s, box-shadow .2s, filter .2s;
            backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
.btn-main::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; background: var(--grad);
                    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
                    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); z-index: -1; }
.btn-main:not(:disabled):hover { box-shadow: 0 0 36px rgba(182, 155, 255, .6), var(--glow); filter: brightness(1.12); }
.btn-main:not(:disabled):active { transform: translateY(1px) scale(.995); }
.btn-main:disabled { opacity: .4; }
.btn-sub { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 16px; font-size: 15px; font-weight: 700; flex: none;
           background: var(--glass-strong); border: 1px solid var(--line); transition: border-color .2s, background .2s; }
.btn-sub:not(:disabled):hover { border-color: var(--line-strong); background: rgba(30, 30, 60, .6); }
.btn-sub .icon { width: 22px; height: 22px; }
.join-row, .invite { display: flex; gap: 8px; align-items: center; margin-top: 12px; }
.join-row input { margin: 0; text-transform: uppercase; letter-spacing: .2em; font-family: var(--font-num); }
.join-row .btn-sub { padding: 11px 20px; }
.invite span { font-size: 12px; color: var(--sub); flex: none; }
.invite input { margin: 0; font-size: 13px; }
.error { color: var(--ng); min-height: 1em; font-size: 14px; }
.note { color: var(--sub); font-size: 13px; text-align: center; }
.settings { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-top: 14px; }
.settings select:disabled { opacity: .75; }
.presets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.presets .btn-sub { padding: 6px 14px; font-size: 13px; border-radius: 99px; }

/* ── ヘッダー・ロゴ ── */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 6px 16px 6px 8px; border-radius: 18px;
         background: var(--glass); border: 1px solid var(--line); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
.emblem { width: 58px; height: 58px; object-fit: cover; flex: none; transform: scale(1.25);
          -webkit-mask-image: radial-gradient(circle, #000 52%, transparent 72%); mask-image: radial-gradient(circle, #000 52%, transparent 72%);
          filter: drop-shadow(0 0 12px rgba(182, 155, 255, .5)); }
.logo { margin: 0; font-weight: 900; font-size: clamp(22px, 5vw, 32px); line-height: 1.1; letter-spacing: .04em; }
.logo small { display: block; font-family: var(--font-num); font-weight: 600; font-size: 10px; letter-spacing: .42em; color: var(--sub); }
.logo em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
           text-shadow: none; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .6)); }
.code { font-family: var(--font-num); font-weight: 600; font-size: 18px; letter-spacing: .25em; padding: 7px 14px; flex: none;
        border: 1px solid var(--line); border-radius: 12px; background: var(--glass-strong);
        backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }

/* ── ホーム ── */
.hero { text-align: center; padding: 30px 22px; }
.hero label { text-align: left; }
.tagline { margin: 0 0 20px; font-size: 15px; color: var(--sub); letter-spacing: .06em; }
.create-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; text-align: left; }
.list-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.list-head h3 { margin: 0; }
.list-filter { display: flex; gap: 6px; }
.list-filter .btn-sub { padding: 5px 14px; font-size: 13px; border-radius: 99px; }
.list-filter .btn-sub.on { border-color: var(--line-strong); background: rgba(255, 255, 255, .16); }
.songs-link { color: #fff; text-decoration: none; padding: 6px 14px; border-radius: 99px; font-size: 13px; }
.reset-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; padding: 8px 12px;
             border-radius: 12px; background: var(--glass-strong); border: 1px solid var(--line); font-size: 13px; font-weight: 700; }
.reset-row .btn-sub { padding: 6px 14px; font-size: 13px; border-radius: 99px; }
.reset-row .btn-sub:disabled { opacity: .4; cursor: default; }
.reset-row #noRecordBtn.on { border-color: var(--ok); background: rgba(141, 255, 200, .18); }
.reset-row #noRecordBtn:disabled.on { opacity: 1; }
.reset-row #noExcludeBtn.on { border-color: var(--warn); background: rgba(255, 200, 80, .16); }
.reset-row #noExcludeBtn:disabled.on { opacity: 1; }
/* 曲リクエスト */
.req-form { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0 12px; }
.req-form input, .req-form select { margin: 0; }
.req-genre { color: var(--accent) !important; }
.req-form .btn-main, .req-form #reqNote { grid-column: 1 / -1; margin: 0; }
.req-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.req-list li { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 12px; background: var(--glass-strong); border: 1px solid var(--line); font-size: 13px; }
.req-list li.empty { color: var(--sub); justify-content: center; }
.req-status { flex: none; padding: 2px 9px; border-radius: 99px; font-size: 11px; font-weight: 700; border: 1px solid var(--line); }
.req-open .req-status { border-color: var(--accent); color: var(--accent); }
.req-added .req-status { border-color: var(--ok); color: var(--ok); }
.req-notfound .req-status { color: var(--sub); }
.req-body { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.req-body small { color: var(--sub); font-size: 11px; }
.req-body em { font-style: normal; color: var(--sub); font-size: 11px; width: 100%; }
.req-votes { flex: none; font-family: var(--font-num); font-size: 12px; color: var(--warn); }
#reqMore, #candMore { display: block; margin: 8px auto 0; }
.req-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.req-sub { margin: 0 0 6px; font-size: 13px; color: var(--accent); letter-spacing: .08em; }
.req-sub span { color: var(--sub); font-weight: 500; letter-spacing: 0; }
.req-cols .note { margin: 0 0 6px; font-size: 11px; }
.cand-links { display: flex; flex-wrap: wrap; gap: 4px 10px; width: 100%; font-size: 11px; }
.cand-links a { color: var(--accent); text-decoration: none; }
.cand-links a:hover { text-decoration: underline; }
.req-near { flex: none; padding: 4px 10px; font-size: 12px; border-radius: 99px; white-space: nowrap; }
.req-near.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.cand-vote { flex: none; padding: 4px 10px; font-size: 12px; border-radius: 99px; white-space: nowrap; }
@media (max-width: 899px) { .req-cols { grid-template-columns: 1fr; } }
.room-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.room-list .empty { grid-column: 1 / -1; text-align: center; color: var(--sub); font-size: 14px; padding: 18px 0; }
.room-card { background: var(--glass-strong); border: 1px solid var(--line); border-radius: 16px; padding: 13px; display: flex; flex-direction: column; gap: 6px; }
.room-card .rc-top { display: flex; align-items: center; gap: 6px; }
.room-card .rc-state { font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 99px; flex: none; text-shadow: none;
                       background: rgba(93, 255, 176, .18); color: var(--ok); border: 1px solid rgba(93, 255, 176, .5); }
.room-card .rc-state.playing { background: rgba(255, 211, 107, .18); color: var(--warn); border-color: rgba(255, 211, 107, .5); }
.room-card .rc-state.full { background: rgba(255, 255, 255, .08); color: var(--sub); border-color: var(--line); }
.room-card .rc-name { font-weight: 700; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.room-card .rc-meta { font-size: 12px; color: var(--sub); display: flex; flex-wrap: wrap; gap: 4px 10px; }
.room-card .rc-join { display: flex; gap: 6px; margin-top: 4px; }
.room-card .rc-join input { margin: 0; padding: 7px 9px; font-size: 14px; }
.room-card .rc-join .btn-main { margin: 0; padding: 8px 14px; font-size: 15px; width: auto; flex: 1; }
.room-card .rc-err { color: var(--ng); font-size: 12px; min-height: 0; margin: 0; }

/* ── ステージ（問題の状態・タイマー）── */
.stage { display: flex; gap: 16px; align-items: center; }
.cover { position: relative; overflow: hidden; width: 92px; height: 92px; flex: none; border-radius: 22px; display: grid; place-items: center;
         background: var(--glass-strong); border: 1px solid var(--line); box-shadow: 0 0 28px rgba(182, 155, 255, .3), var(--glow); }
.cover span { font-family: var(--font-num); font-weight: 800; font-size: 56px; background: var(--grad); -webkit-background-clip: text; background-clip: text;
              color: transparent; text-shadow: none; animation: pulse 1.2s ease-in-out infinite; }
.cover-icon { width: 76px; height: 76px; animation: pulse 1.6s ease-in-out infinite; }
.cover-fx { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; mix-blend-mode: screen; pointer-events: none; opacity: var(--fxk, 1); background: #000; }
body:not(.fx-off) .cover:has(.cover-fx) > span { display: none; }
body.fx-off .cover-fx, body.fx-off .cue video { display: none; }
@keyframes pulse { 50% { transform: scale(1.1); opacity: .8; } }
.status { flex: 1; min-width: 0; }
.status-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.phase { display: inline-block; padding: 4px 13px; border-radius: 99px; font-size: 13px; font-weight: 700; background: var(--glass-strong); border: 1px solid var(--line); }
.phase.intro { border-color: var(--accent); box-shadow: 0 0 14px rgba(127, 232, 255, .45); animation: phaseGlow 1.6s ease-in-out infinite; }
.phase.chorus { border-color: var(--warn); box-shadow: 0 0 14px rgba(255, 211, 107, .45); animation: phaseGlow 1s ease-in-out infinite; }
@keyframes phaseGlow { 50% { box-shadow: 0 0 22px currentColor; filter: brightness(1.15); } }
.phase.reveal { border-color: var(--ok); box-shadow: 0 0 14px rgba(93, 255, 176, .45); }
.qno { font-size: 13px; color: var(--sub); }
.timer { font-family: var(--font-num); font-weight: 800; font-size: 50px; font-variant-numeric: tabular-nums; margin: 2px 0 4px; letter-spacing: .02em; }
.bar { height: 8px; background: rgba(255, 255, 255, .12); border-radius: 99px; overflow: hidden; position: relative; }
.bar > i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--accent2); border-radius: 99px; box-shadow: 0 0 12px currentColor; }
.bar > b { position: absolute; top: 0; bottom: 0; width: 2px; background: #fff; opacity: .8; }

/* ── 選択肢（A〜L のラベル付き）── */
.choices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; counter-reset: choice; }
.choice { position: relative; padding: 12px 12px 12px 50px; text-align: left; line-height: 1.35; min-height: 62px; font-weight: 700;
          background: var(--glass-strong); border: 1px solid var(--line); border-radius: 16px;
          backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); transition: transform .12s, border-color .2s, box-shadow .2s, background .2s; }
.choice::before { counter-increment: choice; content: counter(choice, upper-alpha); position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
                  width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; font-family: var(--font-num); font-weight: 800; font-size: 14px;
                  background: rgba(255, 255, 255, .14); border: 1px solid var(--line-strong); }
.choice:hover:not(:disabled) { border-color: var(--line-strong); transform: translateY(-1px); box-shadow: 0 0 20px rgba(127, 232, 255, .25); }
.choice small { display: block; color: var(--sub); font-size: 11px; margin-top: 2px; font-weight: 500; }
.choice.mine { border-color: var(--accent); box-shadow: 0 0 18px rgba(127, 232, 255, .45); }
.choice.correct { border-color: var(--ok); background: rgba(20, 70, 50, .55); box-shadow: 0 0 22px rgba(93, 255, 176, .5); animation: win .6s ease; }
.choice.wrong { border-color: var(--ng); background: rgba(80, 20, 40, .55); box-shadow: 0 0 18px rgba(255, 107, 138, .45); animation: shake .4s ease; }
.choice.gone { visibility: hidden; }
.choice.wrong-other { border-color: rgba(255, 107, 138, .7); }
/* 答え合わせで、その選択肢を押した人 */
.pickers { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.picker { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px 1px 2px; border-radius: 99px; font-size: 11px; font-weight: 700;
          background: rgba(0, 0, 0, .45); border: 1px solid rgba(255, 255, 255, .25); animation: pop .4s ease both; }
.picker.me { border-color: var(--accent); }
.avatar.xs { width: 18px; height: 18px; box-shadow: none; }
.choice small.count { color: var(--accent); }
@keyframes win { 40% { transform: scale(1.04); } }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* ── 入力・ヒント・次の曲へ ── */
.clues { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.clues li { background: var(--glass-strong); border: 1px solid rgba(255, 211, 107, .6); border-radius: 99px; padding: 5px 13px; font-size: 13px;
            box-shadow: 0 0 12px rgba(255, 211, 107, .25); animation: pop .35s ease; }
.clues li b { margin-right: 6px; color: var(--warn); }
/* 出題中はヒントの1段ぶんを先にあけておく（ヒントが出た瞬間に選択肢が下へずれて、押し間違えないように） */
#quiz .clues { min-height: 31px; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
.answer-input { display: flex; gap: 8px; align-items: stretch; }
.answer-input input { margin: 0; font-size: 18px; }
.answer-input .btn-main { width: auto; margin: 0; padding: 0 24px; font-size: 16px; }
.lifelines { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; }
.lifelines .skip { padding: 9px 22px 9px 14px; border-radius: 99px; }
.lifelines .skip:disabled { opacity: .45; }
.life-results { list-style: none; margin: 10px 0 0; padding: 0; font-size: 14px; }
.life-results li { padding: 8px 12px; background: var(--glass-strong); border-left: 3px solid var(--accent); border-radius: 8px; margin-top: 6px; }

/* ── 答え合わせ ── */
.answer { text-align: center; font-weight: 900; font-size: 26px; margin-bottom: 12px; }
.answer small { display: block; font-size: 13px; font-weight: 500; color: var(--sub); margin-top: 6px; }
.results { width: 100%; border-collapse: collapse; font-size: 14px; }
.results td { padding: 7px 4px; border-bottom: 1px solid rgba(255, 255, 255, .12); vertical-align: middle; }
.results td small { display: block; color: var(--sub); font-size: 11px; }
.results td.num { text-align: right; font-family: var(--font-num); font-variant-numeric: tabular-nums; white-space: nowrap; }
.results td.who { display: flex; align-items: center; gap: 8px; }
.results .ok { color: var(--ok); font-weight: 700; } .results .ng { color: var(--ng); }

/* ── アバター ── */
.avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; border: 1px solid var(--line-strong);
          box-shadow: 0 0 12px rgba(182, 155, 255, .35); }
.avatar.sm { width: 28px; height: 28px; }
.avatar.lg { width: 64px; height: 64px; display: block; margin: 0 auto 4px; }

/* ── プレイヤー一覧：ガラスのカードにアバター・名前・得点 ── */
.players { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.players li { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; background: var(--glass-strong);
              border-radius: 16px; border: 1px solid var(--line); font-size: 14px; transition: border-color .2s, box-shadow .2s; }
.players li.me { border-color: var(--line-strong); }
.players li.answered { border-color: var(--accent); box-shadow: 0 0 16px rgba(127, 232, 255, .35); }
.players li.off { opacity: .4; }
.pl-face { position: relative; flex: none; }
.pl-face .crown { position: absolute; left: 50%; top: -15px; width: 28px; height: 28px; transform: translateX(-50%) rotate(-8deg); }
.pl-name { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pl-name b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.pl-name .tags { display: flex; gap: 4px; }
.players .host, .players .you { font-family: var(--font-num); font-size: 9px; font-weight: 800; letter-spacing: .1em; padding: 0 6px;
                                border-radius: 6px; border: 1px solid var(--line-strong); text-shadow: none; }
.players .host { color: var(--warn); border-color: rgba(255, 211, 107, .6); }
.players .pts { font-family: var(--font-num); font-weight: 800; font-size: 18px; font-variant-numeric: tabular-nums; }
.players .pts.bump { animation: bump .6s ease; }
@keyframes bump { 30% { transform: scale(1.5); color: var(--ok); } }
.pl-check { position: absolute; right: -4px; top: -4px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.vol { flex: none; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11px; color: var(--sub); }
.vol input { -webkit-appearance: none; appearance: none; width: 110px; height: 6px; margin: 0; padding: 0; border: none; border-radius: 99px;
             background: rgba(255, 255, 255, .18); box-shadow: none; cursor: pointer; }
.vol input::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px rgba(182, 155, 255, .8); }
.vol input::-moz-range-thumb { width: 16px; height: 16px; border: none; border-radius: 50%; background: #fff; box-shadow: 0 0 10px rgba(182, 155, 255, .8); }

/* ── 最終結果・表彰台 ── */
.over-title { text-align: center; font-weight: 900; font-size: 28px; letter-spacing: .1em; }
.podium { max-width: 520px; margin: 0 auto 8px; display: flex; flex-direction: column-reverse; }
.podium img#podiumImg { width: 100%; display: block; margin-top: -10%;
                        -webkit-mask-image: radial-gradient(ellipse closest-side, #000 55%, transparent); mask-image: radial-gradient(ellipse closest-side, #000 55%, transparent); }
/* 上位3人は表彰台の上に、1位を一段高く並べる */
.places { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: end; text-align: center; padding-top: 34px; }
.place { position: relative; font-weight: 700; padding: 0 4px; animation: pop .5s ease both; }
.place b { display: block; font-family: var(--font-num); font-weight: 800; font-size: 20px; }
.place span { display: block; font-size: 12px; opacity: .9; }
.place .crown { position: absolute; left: 50%; top: -34px; width: 44px; height: 44px; transform: translateX(-50%); }
.place.p1 { order: 2; font-size: 17px; margin-bottom: 26px; animation-delay: .6s; } .place.p2 { order: 1; margin-bottom: 10px; animation-delay: .3s; } .place.p3 { order: 3; }
.ranking { list-style: none; counter-reset: rank; font-size: 16px; padding: 0; margin: 10px 0 0; }
.ranking li { counter-increment: rank; display: flex; align-items: center; gap: 10px; padding: 7px 4px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.ranking li::before { content: counter(rank); font-family: var(--font-num); font-weight: 800; width: 22px; text-align: center; color: var(--sub); }
.ranking li span { margin-left: auto; font-family: var(--font-num); font-weight: 700; font-variant-numeric: tabular-nums; }

/* ── 演出：正解/不正解の大きな表示・紙吹雪・トースト ── */
.flash { position: fixed; inset: 0; display: grid; place-items: center; pointer-events: none; z-index: 20; }
.flash span { display: grid; justify-items: center; font-weight: 900; font-size: clamp(44px, 12vw, 104px); padding: 0 .4em; animation: flash 1.4s ease forwards; }
.flash-icon { width: 1.6em; height: 1.6em; margin-bottom: -.25em; }
.flash.ok span { color: #fff; text-shadow: 0 0 24px var(--ok), 0 0 60px var(--ok), 0 3px 6px #000; }
.flash.ng span { color: #fff; text-shadow: 0 0 24px var(--ng), 0 0 60px var(--ng), 0 3px 6px #000; }
.flash small { display: block; font-family: var(--font-num); font-size: .35em; text-align: center; }
/* 場面の切り替わり：画面中央に一瞬だけ出す文字と光（動画の黒い背景は screen で消える） */
.cue { position: fixed; inset: 0; display: grid; place-items: center; pointer-events: none; z-index: 19; mix-blend-mode: screen; } /* 重ね全体を screen にして、動画の黒を消す */
.cue > * { grid-area: 1 / 1; }
.cue video { width: min(72vw, 460px); aspect-ratio: 1; opacity: 0; }
.cue span { font-weight: 900; font-size: clamp(40px, 10vw, 92px); color: #fff; opacity: 0;
            text-shadow: 0 0 24px var(--accent), 0 0 60px var(--accent2), 0 3px 6px #000; }
.cue.show video { animation: cueFx 1.6s ease forwards; }
.cue.show span { animation: flash 1.4s ease forwards; }
.cue.show video.fx-replay { animation: cueSpin 1.6s ease-out forwards; } /* 矢印をくるっと1回転 */
@keyframes cueSpin { 0% { opacity: 0; transform: scale(.6) rotate(-300deg); } 15% { opacity: calc(.95 * var(--fxk, 1)); } 60% { transform: scale(1) rotate(0); opacity: calc(.9 * var(--fxk, 1)); } 100% { opacity: 0; transform: scale(1.1) rotate(20deg); } }
@keyframes cueFx { 0% { opacity: 0; transform: scale(.6); } 15% { opacity: calc(.95 * var(--fxk, 1)); } 70% { opacity: calc(.85 * var(--fxk, 1)); } 100% { opacity: 0; transform: scale(1.2); } }
@media (prefers-reduced-motion: reduce) { .cue video { display: none; } }
/* マスコット（双子）：切り替わりで画面の下からぴょこっと出る。光の重ね（screen）とは別の層にして色を保つ */
.mascot-pop { position: fixed; inset: 0; display: grid; place-items: end center; pointer-events: none; z-index: 21; overflow: hidden; }
.mascot-pop img { height: clamp(150px, 32vh, 280px); filter: drop-shadow(0 0 18px rgba(182, 155, 255, .55)); transform: translateY(110%); }
.mascot-pop.show img { animation: mascotPop 1.6s cubic-bezier(.3, 1.4, .5, 1) forwards; }
@keyframes mascotPop { 0% { transform: translateY(110%); } 22% { transform: translateY(-4%); } 32% { transform: translateY(0); } 78% { transform: translateY(0); } 100% { transform: translateY(110%); } }
/* ステージ：場面ごとの絵（アニメ）を小さく。切り替わりで跳ねる */
.mascot { height: 92px; flex: none; filter: drop-shadow(0 0 10px rgba(182, 155, 255, .45)); transform-origin: 50% 100%; }
.mascot.hop { animation: mascotHop .5s ease-out; } /* 絵そのものが動くアニメなので、CSS は切り替わりの跳ねだけ */
@keyframes mascotHop { 0% { transform: scale(.6) translateY(20%); opacity: 0; } 60% { transform: scale(1.08) translateY(-6%); opacity: 1; } 100% { transform: none; } }
body.mascot-off .mascot, body.mascot-off .mascot-pop, body.in-lobby .mascot, body.revealing .mascot { display: none; }
.stage-tools .vol.chk input { -webkit-appearance: auto; appearance: auto; width: 16px; height: 16px; background: none; box-shadow: none; accent-color: var(--accent2); }
@keyframes flash { 0% { transform: scale(.4); opacity: 0; } 20% { transform: scale(1.06); opacity: 1; } 75% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.04); opacity: 0; } }
.confetti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 19; }
.confetti i { position: absolute; top: -20px; width: 10px; height: 14px; border-radius: 2px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--glass-strong); border: 1px solid var(--line);
         padding: 10px 18px; border-radius: 14px; font-size: 14px; max-width: 90vw; z-index: 30; backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }

/* ── 部屋：左にプレイヤー一覧、右にゲーム画面。PCでは1画面に収める ── */
.room-side h3 { margin-bottom: 12px; }
.room-side .players { grid-template-columns: minmax(0, 1fr); gap: 10px; padding-top: 6px; }
.players li { min-width: 0; }
@media (min-width: 900px) {
  main:has(#room:not([hidden])) { max-width: 1280px; height: 100vh; display: flex; flex-direction: column; padding: 12px 16px; }
  main:has(#room:not([hidden])) .top { margin-bottom: 10px; }
  main:has(#room:not([hidden])) .emblem { width: 42px; height: 42px; }
  main:has(#room:not([hidden])) .logo { font-size: 22px; }
  #room:not([hidden]) { flex: 1; min-height: 0; display: grid; grid-template-columns: 240px 1fr; gap: 14px; align-items: start; }
  .room-side { margin: 0; max-height: 100%; overflow-y: auto; overflow-x: hidden; } /* 人数ぶんの高さだけ伸びる */
  .room-main { max-height: 100%; }
  .room-main { min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
  .room-main > .panel { margin: 0; padding: 14px 16px; }
  .stage { flex: none; }
  .timer { font-size: 40px; }
  /* 選択肢は4列（8択なら2行）にして縦を詰める */
  .choices { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .choice { min-height: 54px; padding: 8px 8px 8px 42px; font-size: 14px; }
  .choice::before { left: 9px; width: 24px; height: 24px; font-size: 12px; }
  .clues { margin-bottom: 8px; }
  .lifelines { margin-top: 10px; }
  .answer { font-size: 22px; margin-bottom: 8px; }
  .results td { padding: 5px 4px; }
  .btn-main { margin-top: 10px; padding: 12px; font-size: 16px; }
  .settings { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 10px; }
  .settings select { padding: 7px 8px; font-size: 14px; }
  .invite { margin-top: 0; }
  .podium { max-width: 400px; }
  .ranking { font-size: 15px; }
  /* 出題中は選択肢を大きく。答え合わせ（body.compact）では元の大きさに戻して、スクロールせずに見えるようにする */
  body:not(.compact) .choices { gap: 12px; }
  body:not(.compact) .choice { min-height: 96px; padding: 14px 14px 14px 58px; font-size: 18px; }
  body:not(.compact) .choice::before { left: 14px; width: 32px; height: 32px; font-size: 15px; }
  body:not(.compact) .choice small { font-size: 13px; margin-top: 4px; }
}

/* ── 答え合わせは選択肢より上（ステージのすぐ下）に出して、結果がひと目で見えるように ── */
.room-main { display: flex; flex-direction: column; }
.room-main > .stage { order: -2; }
.room-main > #result { order: -1; }
.final { display: inline-block; margin-left: 6px; padding: 1px 9px; border-radius: 99px; font-size: 12px; color: #fff;
         background: linear-gradient(120deg, rgba(255, 122, 217, .35), rgba(127, 232, 255, .35)); border: 1px solid var(--line-strong);
         box-shadow: 0 0 14px rgba(255, 122, 217, .5); animation: pulse 1.4s ease-in-out infinite; }
.highlights { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.highlights li { padding: 4px 13px; border-radius: 99px; font-size: 13px; font-weight: 700; background: var(--glass-strong);
                 border: 1px solid rgba(255, 211, 107, .6); box-shadow: 0 0 12px rgba(255, 211, 107, .3); animation: pop .4s ease both; }
.highlights li:nth-child(2) { animation-delay: .15s; } .highlights li:nth-child(3) { animation-delay: .3s; }
.streak { flex: none; font-family: var(--font-num); font-size: 9px; font-weight: 800; padding: 0 6px; border-radius: 99px; text-shadow: none;
          color: #1a1000; background: linear-gradient(120deg, #ffd36b, #ff9a5a); box-shadow: 0 0 10px rgba(255, 170, 90, .6); }
.next-count { margin: 6px 0 0; font-weight: 700; color: var(--text); }
.btn-sub.listen { display: block; margin: 8px auto 0; padding: 8px 20px; border-radius: 99px; }
.choice { font-size: 15px; }
.choice small { font-size: 12px; }

/* ── 待機中：おまかせ設定と、折りたたんだ詳細設定 ── */
.modes { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.modes span { font-size: 12px; color: var(--sub); font-weight: 700; margin-right: 4px; }
.modes .btn-sub { padding: 6px 16px; font-size: 14px; border-radius: 99px; }
details.more { margin-top: 10px; }
details.more summary { cursor: pointer; font-size: 13px; color: var(--sub); font-weight: 700; list-style: none; padding: 4px 0; }
details.more summary::before { content: "▸ "; } details.more[open] summary::before { content: "▾ "; }
details.more .settings { margin-top: 6px; }

/* ── リアクションスタンプ ── */
.reactions { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 4px 0 10px; }
.reactions .btn-sub { padding: 5px 12px; font-size: 13px; border-radius: 99px; }
/* 背景の映像の濃さ（自分の画面だけ）：スライダーの値を --bgk（0〜1）として掛ける */
/* 幅が足りないとき（画面の拡大率125%・キャラの表示中など）は、真ん中の状態表示をつぶさず、設定の列を次の段へ回す。
   状態の文字（イントロ再生中／サビ再生中…）の長さでステージの高さが変わると、下の選択肢の位置が動いてしまうため */
.stage { flex-wrap: wrap; }
.stage .status { flex: 1 1 230px; min-width: 230px; }
.stage .phase { white-space: nowrap; }
/* 設定の列は、状態表示の右の残りの幅に収める（足りなければ列の中で折り返す。スライダーも縮む）。
   列ごと次の段へ回るとステージが高くなり、部屋の画面全体がスクロールしてしまうため。300px も取れないときだけ次の段へ */
.stage-tools { display: flex; align-items: center; gap: 8px 10px; flex: 3 1 360px; min-width: 300px; flex-wrap: wrap; justify-content: flex-end; margin-left: auto; }
.stage-tools .vol:not(.chk) { flex: 0 1 96px; min-width: 64px; }
.stage-tools .vol:not(.chk) input { width: 100%; }
.game-ctrl { display: flex; flex-direction: column; gap: 6px; flex: none; }
.gear, .sheet-shade, .sheet-close, .lobby-tabs { display: none; } /* スマホ版だけで使う（mobile.css） */
.leave-btn { margin-left: auto; } /* ロビーの一番上の列の右端 */
.game-ctrl .btn-sub { padding: 6px 12px; font-size: 12px; border-radius: 99px; white-space: nowrap; }
/* 知名度のチェック（チェックした段階の曲だけを出題） */
.fame-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin: 10px 0 4px; font-size: 12px; color: var(--sub); font-weight: 700; }
.fame-list { display: flex; flex-wrap: wrap; gap: 6px; }
.fame-list label { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 99px; cursor: pointer; white-space: nowrap;
                   background: var(--glass); border: 1px solid var(--line-strong); font-size: 12px; color: var(--sub); letter-spacing: 0; }
.fame-list label:has(input:checked) { color: var(--text); border-color: var(--accent2); box-shadow: 0 0 0 1px var(--accent2) inset; }
.fame-list input { width: auto; height: auto; flex: none; margin: 0; padding: 0; box-shadow: none; accent-color: var(--accent2); }
.fame-list small { color: var(--sub); font-size: 10px; }
.genre-ex { margin: 8px 0; font-size: 13px; }
.genre-ex summary { cursor: pointer; color: var(--sub); }
.genre-ex-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.genre-ex-list label { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 99px; cursor: pointer;
                       background: var(--glass); border: 1px solid var(--line-strong); font-size: 12px; }
.genre-ex-list label:has(input:checked) { border-color: var(--ng); color: var(--ng); text-decoration: line-through; }
.genre-ex-list small { color: var(--sub); font-size: 10px; text-decoration: none; }
.genre-ex-list input { width: auto; height: auto; flex: none; margin: 0; padding: 0; box-shadow: none; accent-color: var(--ng); }
.genre-ex-list label { white-space: nowrap; font-size: 12px; color: var(--text); letter-spacing: 0; }
.exclude { margin: 8px 0; font-size: 13px; }
.exclude summary { cursor: pointer; color: var(--sub); }
.exclude textarea { width: 100%; margin-top: 6px; padding: 8px; border-radius: 10px; font: inherit; font-size: 12px; resize: vertical;
                    background: var(--glass); color: var(--text); border: 1px solid var(--line-strong); }
.device-row { align-items: center; flex-wrap: wrap; }
.device-row span { color: var(--sub); font-size: 12px; margin-right: auto; }
.exclude-row { display: flex; gap: 8px; margin-top: 6px; }
.btn-sub.copy-log { display: block; margin: 8px auto 0; padding: 6px 16px; font-size: 12px; border-radius: 99px; }
/* 答え合わせの曲ツール（コピー・除外しない・位置を直す） */
.song-tools { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 6px; }
.song-tools .btn-sub { padding: 4px 12px; font-size: 12px; font-weight: 700; border-radius: 99px; }
.fix-panel { margin: 8px auto 10px; padding: 10px 12px; max-width: 520px; border-radius: 14px; background: var(--glass-strong); border: 1px solid var(--line);
             font-size: 13px; font-weight: 700; text-align: left; }
.fix-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-bottom: 8px; }
.fix-row b { min-width: 4.5em; }
.fix-sec { font-family: var(--font-num); font-size: 18px; min-width: 4.5em; }
.fix-btns { display: flex; flex-wrap: wrap; gap: 4px; }
.fix-btns .btn-sub { padding: 4px 9px; font-size: 12px; border-radius: 8px; }
.fix-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fix-actions .btn-main { width: auto; margin: 0; padding: 7px 18px; font-size: 14px; }
.fix-actions .btn-sub { padding: 6px 14px; font-size: 12px; border-radius: 99px; }
.fix-panel .note { margin: 6px 0 0; font-weight: 500; }
.react-pop { position: fixed; left: 50%; top: 50%; z-index: 60; display: flex; align-items: center; gap: 8px; padding: 6px 16px 6px 6px;
             border-radius: 99px; background: var(--glass-strong); border: 1px solid var(--line-strong); box-shadow: 0 8px 24px rgba(0, 0, 0, .45);
             backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); pointer-events: none; white-space: nowrap; opacity: 0; }
.react-pop span { font-size: 13px; font-weight: 700; color: var(--sub); }
.react-pop b { font-size: 20px; font-weight: 900; color: var(--warn); text-shadow: 0 2px 6px rgba(0, 0, 0, .6); }

/* ── 最終結果の称号 ── */
.titles { list-style: none; margin: 0 0 6px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 8px; }
.titles li { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px 12px; background: var(--glass-strong); border: 1px solid rgba(255, 211, 107, .55);
             border-radius: 14px; box-shadow: 0 0 14px rgba(255, 211, 107, .25); animation: pop .5s ease both; }
.titles li div { display: flex; flex-direction: column; gap: 1px; min-width: 0; line-height: 1.35; }
.titles li b { color: var(--warn); font-size: 15px; font-weight: 900; }
.titles li span { font-weight: 700; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.titles li small { color: var(--sub); font-size: 11px; }

/* スマホ：描画が重くならないよう、ぼかしを軽くしてガラスを少し濃くする */
@media (max-width: 899px) {
  :root { --blur: blur(6px); --glass: rgba(12, 12, 30, .58); --glass-strong: rgba(10, 10, 26, .7); }
  body.playing .video-bg iframe { filter: blur(44px) saturate(1.2) brightness(.5) contrast(.5); }
}
@media (max-width: 899px) {
  /* スマホ・タブレットではプレイヤーを横に並べて縦を詰める */
  .room-side .players { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
  .players li { padding: 6px 10px 6px 6px; gap: 8px; }
  .players .avatar { width: 32px; height: 32px; }
  .players .pts { font-size: 16px; }
}
/* スマホ（幅600px以下）の見た目は mobile.css にまとめている */
/* ── 答え合わせ：画面が広いPC（1200px〜）だけ、結果を右側の縦パネルに移して真ん中は映像を見せる。
      それより狭いPCでは中央が潰れるので、結果はステージのすぐ下に置く ── */
@media (min-width: 1200px) {
  body.revealing #room:not([hidden]) { position: relative; grid-template-columns: 240px 1fr 340px; }
  /* 答え合わせ：曲名・ボタン・次へは中央（ステージの下）のまま、全員の結果の表だけを右側に縦に並べる */
  body.revealing #results { position: absolute; top: 0; right: 0; width: 340px; max-height: 100%; overflow-y: auto; display: block;
                            padding: 10px 12px; border-radius: 18px; background: rgba(8, 8, 20, .55); border: 1px solid rgba(255, 255, 255, .1); }
  body.revealing #results tbody { display: table; width: 100%; border-collapse: collapse; }
}
/* 答え合わせの欄は縦を詰める（狭いPCでも、下の選択肢までスクロールせずに見えるように） */
.next-count:empty, .highlights:empty { display: none; }
body.revealing #quiz .lifelines, body.revealing #quiz .note { display: none; }
@media (min-width: 900px) {
  body.revealing #quiz .clues { display: none; }
  #result { text-align: center; }
  #result .answer { margin-bottom: 4px; }
  #result .reactions { margin: 2px 0 6px; }
  #result .btn-main { margin-top: 6px; padding: 9px; }
  #result .btn-sub.listen, #result .btn-sub.copy-log { display: inline-flex; margin: 8px 4px 0; padding: 6px 16px; font-size: 12px; }
  .set-group { margin-top: 10px; padding: 10px 14px 12px; }
}
/* スクロールバーは暗い画面になじむ色に */
* { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .25) transparent; }
/* 選択肢の大きさの切り替え：いったん消して（フェードアウト）、切り替えてから出す（フェードイン） */
#quiz { transition: opacity .25s ease; }
#quiz.swap { opacity: 0 !important; transition: opacity .2s ease !important; }
#quiz.swap.instant { transition: none !important; }
/* 答え合わせ中のタイマー：次の問題までの秒数 */
.timer-label { display: block; font-family: var(--font); font-size: 12px; font-weight: 700; color: var(--sub); letter-spacing: .04em; margin-bottom: -4px; }
.timer-unit { font-size: 18px; margin-left: 3px; color: var(--sub); }
body.revealing .bar > b { display: none; }
/* 待機中：ステージはタイマーを出さず、部屋の情報だけ */
body.in-lobby .cover, body.in-lobby .timer, body.in-lobby .bar { display: none; }
body.in-lobby .qno { font-size: 14px; color: var(--text); font-weight: 700; }
/* ロビーの設定：「曲の範囲」と「ルール」に分ける */
.set-group { margin-top: 14px; padding: 12px 14px 14px; border: 1px solid var(--line); border-radius: 16px; background: rgba(8, 8, 20, .25); }
.set-group h4 { margin: 0; font-size: 12px; letter-spacing: .18em; color: var(--accent); font-weight: 800; }
.set-group .settings { margin-top: 8px; }
.set-group .pool-info { margin: 10px 0 0; text-align: left; color: var(--text); font-weight: 700; }
/* 最終結果のふりかえり */
.ranking li .rk-name { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.ranking li .rk-name small { color: var(--sub); font-size: 11px; font-weight: 500; }
.btn-sub.back-lobby { display: block; margin: 10px auto 0; padding: 8px 20px; font-size: 13px; border-radius: 99px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
/* ── 新しいモード ── */
/* 早押し：大きな「押す！」ボタン */
.buzz-row { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.buzz-btn { flex: none; padding: 14px 34px; border-radius: 99px; border: 2px solid #fff; cursor: pointer; font: inherit; font-size: 22px; font-weight: 900; color: #fff;
  background: radial-gradient(circle at 50% 30%, #ff7a9a, #e0245e 70%); box-shadow: 0 6px 0 #8c1238, 0 0 24px rgba(255, 80, 130, .55); display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.buzz-btn small { font-size: 10px; font-weight: 700; opacity: .85; }
.buzz-btn:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 2px 0 #8c1238, 0 0 24px rgba(255, 80, 130, .55); }
.buzz-btn:disabled { filter: grayscale(.85) brightness(.6); cursor: default; box-shadow: 0 3px 0 #333; }
.buzz-info { font-weight: 800; color: var(--warn); }
/* 年代当て：年のボタンを細かく並べる */
.choices.years { grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)) !important; gap: 6px; }
.choices.years .choice { min-height: 40px; padding: 6px; justify-content: center; text-align: center; font-size: 15px; font-family: var(--font-num); }
.choices.years .choice::before { display: none; }
/* チーム・ライフ・脱落・回答中 */
.team-tag, .lives, .out, .buzzing { font-size: 10px; font-weight: 800; padding: 1px 6px; border-radius: 99px; }
.team-tag.team-red, .team-result .team-red { color: #fff; background: rgba(255, 80, 110, .75); }
.team-tag.team-blue, .team-result .team-blue { color: #fff; background: rgba(70, 140, 255, .75); }
.players li.team-red { box-shadow: inset 4px 0 0 rgba(255, 80, 110, .8); }
.players li.team-blue { box-shadow: inset 4px 0 0 rgba(70, 140, 255, .8); }
.lives { color: #ff6b8b; letter-spacing: 1px; }
.out { background: rgba(120, 120, 140, .6); color: #fff; }
.players li.is-out { opacity: .5; }
.buzzing { background: var(--warn); color: #222; }
.players li.is-buzzing { outline: 2px solid var(--warn); }
/* 3つ埋めバトル：枠（埋まると名前つきで色がつく）と、押した人の回答欄 */
.passed { font-size: 10px; font-weight: 800; padding: 1px 6px; border-radius: 99px; background: rgba(160, 160, 180, .5); color: #fff; }
.fill-box { margin-bottom: 10px; }
.fill-slots { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.fill-slot { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 64px; padding: 8px 12px; border-radius: 14px; text-align: left;
  border: 1px dashed var(--line); background: var(--glass); color: var(--text); font: inherit; }
.fill-slot small { font-size: 11px; font-weight: 800; color: var(--sub); }
.fill-peeked { font-style: normal; margin-left: 6px; padding: 0 6px; border-radius: 99px; background: rgba(255, 200, 80, .2); color: var(--warn); }
.fill-slot b { font-size: 16px; font-weight: 900; overflow-wrap: anywhere; }
.fill-slot em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--ok); }
.fill-slot.done { border-style: solid; border-color: var(--ok); background: rgba(80, 220, 160, .12); }
.fill-slot.missed { border-style: solid; border-color: var(--warn); }
.fill-slot.missed em { color: var(--warn); }
button.fill-slot:not(:disabled) { cursor: pointer; border: 2px solid var(--accent); box-shadow: 0 0 14px rgba(255, 255, 255, .15); }
button.fill-slot.on { background: var(--glass-strong); border-color: var(--warn); }
.fill-answer { margin-top: 10px; display: grid; gap: 8px; }
.fill-head { margin: 0; font-weight: 800; color: var(--warn); }
.fill-choice-btn { justify-self: start; width: auto; margin: 0; }
/* アニソン激アツRUSH：保留ランプ（いまの色と先の4つ）、RUSH中の表示、リーチの光 */
.rush-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; padding: 8px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--glass); }
.rush-now { padding: 4px 14px; border-radius: 99px; font-weight: 900; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .5); box-shadow: 0 0 14px var(--rc, #4a7bff); background: var(--rc, #4a7bff); }
.rush-now[data-color="blue"], .rush-next i[data-color="blue"] { --rc: #4a7bff; }
.rush-now[data-color="green"], .rush-next i[data-color="green"] { --rc: #2fd47a; }
.rush-now[data-color="red"], .rush-next i[data-color="red"] { --rc: #ff4a5e; }
.rush-now[data-color="gold"], .rush-next i[data-color="gold"] { --rc: #ffc93a; }
.rush-now[data-color="rainbow"], .rush-next i[data-color="rainbow"] { --rc: #c05bff; background: linear-gradient(90deg, #ff4a5e, #ffc93a, #2fd47a, #4a7bff, #c05bff); animation: rush-rainbow 1.2s linear infinite; background-size: 200% 100%; }
.rush-now[data-color="gold"] { color: #4a3300; text-shadow: none; }
.rush-next { display: inline-flex; gap: 6px; }
.rush-next i { display: block; width: 16px; height: 16px; border-radius: 50%; background: var(--rc, #4a7bff); box-shadow: 0 0 8px var(--rc, #4a7bff); }
.rush-next i[data-color="rainbow"] { background: linear-gradient(135deg, #ff4a5e, #ffc93a, #2fd47a, #4a7bff, #c05bff); }
.rush-me { margin-left: auto; font-weight: 900; color: #ffb347; animation: rush-pulse 1s ease-in-out infinite; }
.rush-tag { font-size: 10px; font-weight: 900; padding: 1px 6px; border-radius: 99px; color: #fff; background: linear-gradient(90deg, #ff5a1f, #ffb347); }
.rush-x { margin-left: 6px; font-size: 10px; font-weight: 900; color: #ffb347; }
body.rush-on { box-shadow: inset 0 0 90px rgba(255, 110, 30, .35); }
body.rush-reach #quiz { animation: rush-pulse-red 0.9s ease-in-out infinite; }
@keyframes rush-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .6; } }
@keyframes rush-pulse-red { 0%, 100% { box-shadow: 0 0 0 rgba(255, 74, 94, 0); } 50% { box-shadow: 0 0 40px rgba(255, 74, 94, .75); } }
@keyframes rush-rainbow { to { background-position: 200% 0; } }
/* 出題中の記録（パスの下）：左に出た選択肢（小さく固定）、右に回答の記録 */
.qlog { display: grid; grid-template-columns: minmax(150px, 34%) 1fr; gap: 10px; margin-top: 12px; font-size: 12px; }
.qlog-choices { display: grid; gap: 8px; align-content: start; max-height: 260px; overflow-y: auto; padding: 8px 10px; border-radius: 12px; background: rgba(0, 0, 0, .25); border: 1px solid var(--line); }
.qlog-choices[hidden] + .qlog-right { grid-column: 1 / -1; }
.qlog-list b { display: block; font-size: 11px; color: var(--sub); margin-bottom: 2px; }
.qlog-list b small { font-weight: 600; margin-left: 4px; }
.qlog-list ol { margin: 0; padding-left: 18px; line-height: 1.5; }
.qlog-list li.gone { text-decoration: line-through; opacity: .45; } /* お手つきで消えた選択肢 */
.qlog-right { display: flex; flex-direction: column; min-width: 0; padding: 8px 10px; border-radius: 12px; background: rgba(0, 0, 0, .25); border: 1px solid var(--line); }
.qlog-head { font-size: 11px; color: var(--sub); margin-bottom: 4px; }
.qlog-inputs { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; max-height: 236px; overflow-y: auto; }
.qlog-inputs li { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.qlog-inputs li.empty { color: var(--sub); }
.qlog-inputs .who { font-weight: 800; }
.qlog-inputs li.me .who { color: var(--accent); }
.qlog-inputs .slot, .qlog-inputs .how { font-size: 10px; padding: 0 6px; border-radius: 99px; background: rgba(255, 255, 255, .1); color: var(--sub); }
.qlog-inputs .how:empty { display: none; }
.qlog-inputs .txt { overflow-wrap: anywhere; }
.qlog-inputs .res { font-weight: 900; }
.qlog-inputs li.ok .res { color: var(--ok); }
.qlog-inputs li.ng .res { color: var(--warn); }
.qlog-inputs li.almost .res, .qlog-inputs li.pass .res { color: var(--sub); }
.team-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; font-size: 13px; font-weight: 700; }
.team-row .btn-sub { padding: 5px 12px; font-size: 12px; border-radius: 99px; }
.team-row .team-red { border-color: rgba(255, 80, 110, .8); }
.team-row .team-blue { border-color: rgba(70, 140, 255, .8); }
.team-row .team-score { color: var(--sub); }
.team-result { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; margin: 0 0 12px; font-weight: 800; }
.team-result b { font-size: 24px; padding: 4px 18px; border-radius: 99px; }
.team-result span { padding: 3px 12px; border-radius: 99px; }
/* ── 設定のタブ ── */
.set-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.set-tabs button { padding: 7px 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--glass-strong); color: var(--sub); font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.set-tabs button.on { color: #fff; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset, 0 0 12px rgba(127, 232, 255, .25); }
.set-desc { margin: 0 0 10px; font-size: 13px; color: var(--sub); }
.mode-desc { margin: 6px 0 10px; padding: 8px 12px; border-radius: 12px; background: rgba(255, 255, 255, .05); }
.ex-box { margin: 0 0 12px; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(0, 0, 0, .18); }
.ex-box h5 { margin: 0 0 8px; font-size: 14px; }
.ex-box small { display: block; color: var(--sub); font-size: 12px; margin-top: 4px; }
.ex-list { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 10px; font-size: 13px; }
.ex-list .btn-sub { margin-left: 8px; padding: 4px 12px; font-size: 12px; border-radius: 99px; }
.ex-list .btn-sub:disabled { opacity: .4; }
/* ── 出題者・協力・ビンゴ ── */
.pick-panel { margin-bottom: 10px; }
.pick-head { font-weight: 800; color: var(--warn); margin-bottom: 8px; }
.pick-search input { width: 100%; box-sizing: border-box; margin-bottom: 8px; }
.pick-list { list-style: none; margin: 0 0 8px; padding: 0; max-height: 300px; overflow-y: auto; display: grid; gap: 4px; }
.pick-list .btn-sub { width: 100%; text-align: left; display: flex; flex-direction: column; padding: 6px 12px; border-radius: 10px; }
.pick-list small { color: var(--sub); font-size: 11px; }
.coop-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-weight: 800; }
.coop-bar i { flex: 1; height: 10px; border-radius: 99px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.coop-bar b { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--ok)); transition: width .4s ease; }
.bingo { margin-top: 12px; }
.bingo-title { font-size: 13px; color: var(--warn); }
.bingo-card { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 6px; }
.bingo-card span { min-height: 38px; padding: 4px; border-radius: 8px; border: 1px solid var(--line); background: rgba(0, 0, 0, .25); font-size: 11px; font-weight: 700;
  display: grid; place-items: center; text-align: center; line-height: 1.2; overflow: hidden; word-break: break-all; }
.bingo-card span.open { background: linear-gradient(180deg, rgba(255, 211, 107, .55), rgba(255, 150, 80, .45)); color: #fff; border-color: var(--warn); }
.bingo-card span.free { color: var(--warn); }
.bingo-tag { font-size: 10px; font-weight: 800; padding: 1px 6px; border-radius: 99px; background: rgba(255, 255, 255, .12); }
.bingo-tag.done { background: var(--warn); color: #222; }
/* プレイヤー一覧：名前の下のミニビンゴカード（4×4。開いたマスに色、FREE は金色） */
.mini-bingo { display: grid; grid-template-columns: repeat(4, 7px); grid-auto-rows: 7px; gap: 2px; width: max-content; margin-top: 3px;
  padding: 2px; border-radius: 4px; background: rgba(0, 0, 0, .3); }
.mini-bingo i { display: block; border-radius: 2px; background: rgba(255, 255, 255, .12); }
.mini-bingo i.open { background: var(--accent); box-shadow: 0 0 4px var(--accent); }
.mini-bingo i.free { background: rgba(214, 170, 90, .75); }
.mini-bingo.done { outline: 1px solid var(--warn); box-shadow: 0 0 8px rgba(255, 200, 80, .6); }
.qno .speed { color: var(--warn); }

/* お試しの曲（プレイリスト）の答え合わせ：「ゲームデータに入れる」を大きく */
.promote-btn { display: block; width: 100%; margin: 10px 0 2px; padding: 14px 16px; font-size: 18px; font-weight: 800; border-radius: 14px; }
.promote-note { display: block; text-align: center; margin-bottom: 6px; }

/* ── アニソン激アツRUSH：専用の台の見た目（背景はモードで変わる・ネオンの枠・大きな保留ランプ）── */
.rush-bg { position: fixed; inset: 0; z-index: -1; opacity: 0; transition: opacity .8s ease, background-image .8s ease; background: #05060f center / cover no-repeat; pointer-events: none; }
body.rush-machine .rush-bg { opacity: 1; background-image: url(assets/rush/bg-normal.webp); }
body.rush-machine[data-rush-mode="rush"] .rush-bg { background-image: url(assets/rush/bg-rush.webp); }
body.rush-machine.rush-reach .rush-bg { background-image: url(assets/rush/bg-chance.webp); }
body.rush-machine[data-rush-mode="super"] .rush-bg { background-image: url(assets/rush/bg-super.webp); }
body.rush-machine[data-rush-mode="heaven"] .rush-bg { background-image: url(assets/rush/bg-heaven.webp); }
@media (max-width: 700px) {
  body.rush-machine .rush-bg { background-image: url(assets/rush/bg-normal-s.webp); }
  body.rush-machine[data-rush-mode="rush"] .rush-bg { background-image: url(assets/rush/bg-rush-s.webp); }
  body.rush-machine.rush-reach .rush-bg { background-image: url(assets/rush/bg-chance-s.webp); }
  body.rush-machine[data-rush-mode="super"] .rush-bg { background-image: url(assets/rush/bg-super-s.webp); }
  body.rush-machine[data-rush-mode="heaven"] .rush-bg { background-image: url(assets/rush/bg-heaven-s.webp); }
}
body.rush-machine .backdrop { opacity: 0 !important; }
/* 筐体：金の縁＋ローズピンクの電飾 */
body.rush-machine #quiz { position: relative; border: 3px solid transparent; border-radius: 22px; padding-top: 14px;
  background: linear-gradient(rgba(8, 6, 20, .72), rgba(8, 6, 20, .72)) padding-box, linear-gradient(135deg, #ffe08a, #b8892b 40%, #ffe08a 60%, #8a5f14) border-box;
  box-shadow: 0 0 0 2px rgba(255, 79, 163, .35), 0 0 28px rgba(255, 79, 163, .45), inset 0 0 40px rgba(255, 79, 163, .12); }
body.rush-machine #quiz::before, body.rush-machine #quiz::after { content: ''; position: absolute; top: 56px; bottom: 56px; width: 7px; border-radius: 6px; pointer-events: none;
  background: repeating-linear-gradient(180deg, #ff4fa3 0 14px, #ffd36b 14px 20px, #7fe8ff 20px 34px, transparent 34px 40px); background-size: 100% 80px; box-shadow: 0 0 12px #ff4fa3; animation: rush-strip 1.2s linear infinite; }
body.rush-machine #quiz::before { left: -12px; }
body.rush-machine #quiz::after { right: -12px; animation-direction: reverse; }
@keyframes rush-strip { to { background-position: 0 80px; } }
body.rush-machine[data-rush-mode="rush"] #quiz { box-shadow: 0 0 0 2px rgba(255, 140, 40, .5), 0 0 36px rgba(255, 140, 40, .65), inset 0 0 50px rgba(255, 120, 30, .2); }
/* 上のマーキー（いまのモード） */
.rush-marquee { display: flex; align-items: baseline; justify-content: center; gap: 12px; margin: 0 0 10px; padding: 6px 14px; border-radius: 12px;
  background: linear-gradient(90deg, rgba(255, 79, 163, .0), rgba(255, 79, 163, .35), rgba(255, 79, 163, .0)); }
.rush-marquee b { font-family: var(--font-num, 'Outfit', sans-serif); font-size: 26px; letter-spacing: .22em; color: #fff; text-shadow: 0 0 10px #ff4fa3, 0 0 22px #ff4fa3; }
.rush-marquee small { font-size: 12px; color: #ffd9ec; }
body.rush-machine[data-rush-mode="rush"] .rush-marquee b { color: #ffe08a; text-shadow: 0 0 10px #ff8a1f, 0 0 24px #ff5a00; animation: rush-flash .7s ease-in-out infinite; }
@keyframes rush-flash { 50% { opacity: .55; } }
/* 保留ランプ：台のランプらしく大きな丸 */
body.rush-machine .rush-bar { justify-content: center; gap: 18px; padding: 10px 14px; border-radius: 40px; background: rgba(0, 0, 0, .45); border: 2px solid rgba(255, 224, 138, .5); box-shadow: inset 0 0 14px rgba(0, 0, 0, .8); }
body.rush-machine .rush-now { padding: 6px 18px; font-size: 14px; letter-spacing: .1em; box-shadow: 0 0 14px var(--rc, #4a7bff), inset 0 0 8px rgba(255, 255, 255, .5); }
body.rush-machine .rush-next i { width: 26px; height: 26px; border: 2px solid rgba(255, 255, 255, .55); box-shadow: 0 0 14px var(--rc, #4a7bff), inset 0 -4px 8px rgba(0, 0, 0, .35), inset 0 3px 6px rgba(255, 255, 255, .55); animation: rush-lamp 1.6s ease-in-out infinite; }
body.rush-machine .rush-next i:nth-child(2) { animation-delay: .2s; } body.rush-machine .rush-next i:nth-child(3) { animation-delay: .4s; } body.rush-machine .rush-next i:nth-child(4) { animation-delay: .6s; }
@keyframes rush-lamp { 50% { filter: brightness(1.5); transform: scale(1.08); } }

/* ── RUSH：予兆（あたるかも？）と、モードごとの色 ── */
#omenFx { position: fixed; inset: 0; z-index: 40; pointer-events: none; }
#omenFx.omen { animation: omen-fade 1.5s ease-out forwards; }
#omenFx.omen-flash { background: radial-gradient(circle at 50% 45%, rgba(255, 255, 255, .55), rgba(255, 79, 163, .25) 55%, transparent 75%); }
#omenFx.omen-flash.omen-lv2 { background: radial-gradient(circle at 50% 45%, rgba(255, 240, 180, .7), rgba(255, 190, 60, .35) 55%, transparent 75%); }
#omenFx.omen-ripple { background: radial-gradient(circle at 50% 50%, transparent 20%, rgba(127, 232, 255, .5) 24%, transparent 30%, rgba(127, 232, 255, .3) 40%, transparent 48%); animation: omen-ripple 1.3s ease-out forwards; }
#omenFx.omen-redout { background: radial-gradient(ellipse at center, transparent 30%, rgba(255, 30, 60, .55) 100%); animation: omen-red 1.6s ease-in-out forwards; }
#omenFx.omen-lightning { background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .95) 47%, rgba(180, 220, 255, .8) 50%, transparent 56%), rgba(255, 255, 255, .25); animation: omen-bolt .9s ease-out forwards; }
#omenFx.omen-group { background: repeating-linear-gradient(100deg, rgba(255, 79, 163, .35) 0 40px, rgba(127, 232, 255, .3) 40px 80px, rgba(255, 224, 138, .35) 80px 120px); animation: omen-slide 1.6s linear forwards; }
#omenFx.omen-rainbow { background: linear-gradient(90deg, rgba(255, 74, 94, .5), rgba(255, 201, 58, .5), rgba(47, 212, 122, .5), rgba(74, 123, 255, .5), rgba(192, 91, 255, .5)); background-size: 200% 100%; animation: omen-rainbow 1.6s linear forwards; }
#omenFx.omen-step { background: linear-gradient(to top, rgba(255, 224, 138, .4), transparent 60%); }
#omenFx.omen-step.omen-lv2 { background: linear-gradient(to top, rgba(255, 224, 138, .6), rgba(255, 79, 163, .25) 70%, transparent); }
#omenFx.omen-step.omen-lv3 { background: linear-gradient(to top, rgba(255, 255, 255, .8), rgba(255, 79, 163, .4) 70%, transparent); }
@keyframes omen-fade { 0% { opacity: 0; } 15% { opacity: 1; } 100% { opacity: 0; } }
@keyframes omen-ripple { 0% { opacity: 0; transform: scale(.4); } 30% { opacity: 1; } 100% { opacity: 0; transform: scale(1.6); } }
@keyframes omen-red { 0%, 100% { opacity: 0; } 30%, 70% { opacity: 1; } }
@keyframes omen-bolt { 0% { opacity: 0; } 10% { opacity: 1; } 25% { opacity: .2; } 35% { opacity: 1; } 100% { opacity: 0; } }
@keyframes omen-slide { 0% { opacity: 0; background-position: 0 0; } 20% { opacity: 1; } 100% { opacity: 0; background-position: 480px 0; } }
@keyframes omen-rainbow { 0% { opacity: 0; background-position: 0 0; } 25% { opacity: 1; } 100% { opacity: 0; background-position: 200% 0; } }
#quiz.omen-shake { animation: omen-shake .7s ease-in-out; }
@keyframes omen-shake { 0%, 100% { transform: translate(0); } 15% { transform: translate(-7px, 3px); } 30% { transform: translate(6px, -4px); } 45% { transform: translate(-5px, -2px); } 60% { transform: translate(4px, 4px); } 80% { transform: translate(-2px, 1px); } }
.omen-text { text-align: center; font-weight: 900; font-size: 20px; letter-spacing: .08em; color: #fff; text-shadow: 0 0 10px #ff4fa3, 0 0 20px #ff4fa3; margin: -4px 0 8px; animation: omen-pop .5s ease-out; }
.omen-text[data-lv="2"] { color: #ffe08a; text-shadow: 0 0 10px #ff8a1f, 0 0 20px #ff5a00; font-size: 24px; }
.omen-text[data-lv="3"] { color: #fff; font-size: 30px; text-shadow: 0 0 12px #7fe8ff, 0 0 26px #c05bff, 0 0 40px #ff4a5e; }
@keyframes omen-pop { 0% { transform: scale(.4); opacity: 0; } 60% { transform: scale(1.2); } 100% { transform: scale(1); opacity: 1; } }
/* モードごとの背景・電飾 */
body.rush-machine[data-rush-mode="chance"] .rush-bg { background-image: url(assets/rush/bg-chance.webp); }
body.rush-machine[data-rush-mode="chance"] #quiz { box-shadow: 0 0 0 2px rgba(127, 232, 255, .5), 0 0 34px rgba(127, 232, 255, .55), inset 0 0 44px rgba(127, 232, 255, .15); }
body.rush-machine[data-rush-mode="chance"] .rush-marquee b { color: #cfeeff; text-shadow: 0 0 10px #7fe8ff, 0 0 24px #4a7bff; }
body.rush-machine[data-rush-mode="super"] #quiz { box-shadow: 0 0 0 3px rgba(192, 91, 255, .6), 0 0 44px rgba(255, 224, 138, .75), inset 0 0 60px rgba(192, 91, 255, .25); animation: rush-flash-box 1.2s ease-in-out infinite; }
body.rush-machine[data-rush-mode="super"] .rush-marquee b { color: #fff; font-size: 30px; text-shadow: 0 0 10px #c05bff, 0 0 26px #ffe08a, 0 0 44px #ff4a5e; animation: rush-flash .5s ease-in-out infinite; }
body.rush-machine[data-rush-mode="heaven"] #quiz { box-shadow: 0 0 0 2px rgba(255, 183, 213, .6), 0 0 34px rgba(255, 255, 255, .6), inset 0 0 44px rgba(255, 183, 213, .22); }
body.rush-machine[data-rush-mode="heaven"] .rush-marquee b { color: #fff; text-shadow: 0 0 10px #ffb7d5, 0 0 24px #fff; }
@keyframes rush-flash-box { 50% { filter: brightness(1.25); } }
@media (max-width: 700px) {
  body.rush-machine[data-rush-mode="chance"] .rush-bg { background-image: url(assets/rush/bg-chance-s.webp); }
}

/* ── RUSH：選択肢は、かならず画面の中に収める（残りの高さに合わせて選択肢が縮む）── */
body.rush-machine:not(.revealing) main:has(#room:not([hidden])) { height: 100dvh; max-height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
body.rush-machine:not(.revealing) #room:not([hidden]) { flex: 1 1 0; min-height: 0; }
body.rush-machine:not(.revealing) .room-main { overflow: hidden; min-height: 0; max-height: 100%; }
body.rush-machine:not(.revealing) .room-main > .stage { padding: 6px 12px; gap: 10px; }
body.rush-machine:not(.revealing) .room-main .timer { font-size: clamp(22px, 4.4vh, 38px); }
body.rush-machine:not(.revealing) .room-main .cover { width: clamp(40px, 7vh, 64px); height: clamp(40px, 7vh, 64px); }
body.rush-machine:not(.revealing) #quiz:not([hidden]) { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; padding: 8px 14px; margin: 0; }
body.rush-machine:not(.revealing) #quiz > * { flex: none; }
body.rush-machine:not(.revealing) .rush-marquee { margin: 0 0 4px; padding: 2px 10px; }
body.rush-machine:not(.revealing) .rush-marquee b { font-size: clamp(16px, 3.2vh, 26px); }
body.rush-machine:not(.revealing) .rush-bar { margin-bottom: 6px; padding: 4px 10px; }
body.rush-machine:not(.revealing) .rush-next i { width: clamp(16px, 2.8vh, 26px); height: clamp(16px, 2.8vh, 26px); }
body.rush-machine:not(.revealing) #quiz #choices, body.rush-machine:not(.revealing) #quiz .choices { flex: 1 1 0; min-height: 0; grid-template-columns: repeat(2, 1fr); grid-auto-rows: minmax(0, 1fr); gap: 6px; }
body.rush-machine:not(.revealing) #quiz .choice { min-height: 0; padding: 4px 10px 4px 44px; font-size: clamp(11px, 2.1vh, 16px); line-height: 1.25; overflow: hidden; }
body.rush-machine:not(.revealing) #quiz .choice small { font-size: clamp(9px, 1.5vh, 12px); margin-top: 0; }
@media (min-width: 900px) { body.rush-machine:not(.revealing) #quiz .choices { grid-template-columns: repeat(4, 1fr); } }
/* RUSH：上の操作欄は1行に縮める（選択肢に高さを回す） */
body.rush-machine:not(.revealing) .stage { flex-wrap: nowrap; align-items: center; }
body.rush-machine:not(.revealing) .stage .status { flex: 0 1 260px; min-width: 150px; }
body.rush-machine:not(.revealing) .stage-tools { flex: 1 1 0; min-width: 0; flex-wrap: nowrap; gap: 6px; overflow: hidden; margin-left: 0; justify-content: flex-end; }
body.rush-machine:not(.revealing) .stage-tools .vol > span { display: none; }
body.rush-machine:not(.revealing) .stage-tools .vol:not(.chk) { flex: 0 1 64px; min-width: 36px; }
body.rush-machine:not(.revealing) .stage-tools select, body.rush-machine:not(.revealing) .stage-tools .btn-sub { padding: 3px 8px; font-size: 11px; white-space: nowrap; margin: 0; width: auto; }
body.rush-machine:not(.revealing) .stage-tools .game-ctrl { display: flex; gap: 4px; flex-wrap: nowrap; }
body.rush-machine:not(.revealing) #room:not([hidden]) { align-items: stretch; }
body.rush-machine:not(.revealing) .room-main { height: 100%; }

/* ── RUSH専用キャラ：プレイヤー欄の下に、いまのモードの担当キャラ ── */
.rush-chara { position: relative; margin-top: 10px; display: none; text-align: center; }
body.rush-machine .rush-chara:not([hidden]) { display: block; }
.rush-chara img { width: 100%; max-width: 210px; aspect-ratio: 520 / 760; object-fit: cover; border-radius: 16px; border: 2px solid transparent;
  background: linear-gradient(#000, #000) padding-box, linear-gradient(135deg, #ffe08a, #b8892b 45%, #ffe08a 70%, #8a5f14) border-box; box-shadow: 0 0 18px rgba(255, 79, 163, .45); }
.rush-chara.swap img { animation: chara-swap .7s ease-out; }
@keyframes chara-swap { 0% { opacity: 0; transform: scale(.85) rotate(-3deg); filter: brightness(2.2); } 100% { opacity: 1; transform: none; filter: none; } }
.rush-chara b { display: block; margin-top: 4px; font-size: 12px; letter-spacing: .2em; color: #ffe08a; text-shadow: 0 0 8px #ff4fa3; }
.rush-say { position: absolute; left: 50%; top: 8px; transform: translateX(-50%); z-index: 2; max-width: 92%; padding: 6px 12px; border-radius: 14px; background: rgba(255, 255, 255, .95); color: #2a1030;
  font-weight: 800; font-size: 13px; line-height: 1.3; box-shadow: 0 2px 10px rgba(0, 0, 0, .5); animation: omen-pop .35s ease-out; }
.rush-say::after { content: ''; position: absolute; left: 50%; bottom: -7px; transform: translateX(-50%); border: 7px solid transparent; border-top-color: rgba(255, 255, 255, .95); border-bottom: 0; }
body.rush-machine[data-rush-mode="super"] .rush-chara img { box-shadow: 0 0 26px #c05bff, 0 0 40px rgba(255, 224, 138, .8); }
@media (max-width: 899px) { body.rush-machine .rush-chara:not([hidden]) { display: none; } }
@media (max-height: 640px) { .rush-chara img { max-width: 120px; } }
body.rush-machine .char-dock { display: none !important; } /* RUSH は専用キャラを使う */
/* 衣装が変わる（モードが進んだとき）：光って入れ替わる */
.rush-chara.outfit img { animation: outfit-change .9s ease-out; }
@keyframes outfit-change { 0% { filter: brightness(3) saturate(.3); transform: scale(1.04); } 40% { filter: brightness(2) saturate(.6); } 100% { filter: none; transform: none; } }
.rush-say { display: flex; align-items: center; gap: 8px; }
.rush-say img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; border: 2px solid #ff4fa3; }
.rush-say span { text-align: left; }
.rush-say[hidden] { display: none; }

/* ── RUSH：演出が入っても、選択肢は1ミリも動かさない（演出は重ねて出す・揺れは背景とキャラだけ）── */
.omen-text { position: absolute; left: 0; right: 0; top: 40px; margin: 0; text-align: center; pointer-events: none; z-index: 5; }
@keyframes omen-pop { 0% { transform: scale(.4); opacity: 0; } 60% { transform: scale(1.2); } 100% { transform: scale(1); opacity: 1; } }
body.omen-shake .rush-bg, body.omen-shake .rush-marquee, body.omen-shake .rush-chara img { animation: omen-shake .7s ease-in-out; }
#quiz.omen-shake { animation: none; }
body.rush-machine:not(.revealing) #clues { min-height: 34px; margin-top: 0; margin-bottom: 4px; flex: none; }
body.rush-machine:not(.revealing) #quizNote { min-height: 1.4em; margin: 2px 0 0; flex: none; }
body.rush-machine .rush-marquee { min-height: 34px; overflow: hidden; white-space: nowrap; }
body.rush-machine .rush-marquee small { overflow: hidden; text-overflow: ellipsis; }
body.rush-machine .rush-bar { flex-wrap: nowrap; min-height: 44px; }
body.rush-machine .rush-me { max-width: 38%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.rush-machine .rush-say { max-height: 64px; }
.omen-text { left: 50%; right: auto; translate: -50% 0; top: 2px; padding: 0 18px; border-radius: 14px; background: rgba(0, 0, 0, .55); white-space: nowrap; }
.req-edit { margin-left: auto; padding: 3px 10px; font-size: 12px; text-decoration: none; border-radius: 99px; white-space: nowrap; }

/* ── アニソン・ポーカー：手札・カード・ショーダウン ── */
.poker-box { margin-top: 10px; padding: 8px; border-radius: 12px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); }
.poker-box h4 { margin: 0 0 6px; font-size: 13px; }
.poker-box h4 small { font-weight: 500; color: var(--accent); }
.poker-hand { display: flex; flex-wrap: wrap; gap: 6px; }
.poker-info { margin-top: 6px; min-height: 16px; font-size: 11.5px; color: #cfd0e8; word-break: break-all; }
.pk-card.used { border-color: #e8a800; box-shadow: 0 0 10px rgba(255, 200, 60, .8); transform: translateY(-4px); }
.pk-card.drop { opacity: .4; outline: 2px dashed #ff6b8a; }
.pk-card.fresh { animation: pk-draw .8s ease-out; }
@keyframes pk-draw { 0% { transform: translateY(-14px) scale(1.12) rotate(-4deg); filter: brightness(2); } 100% { transform: none; filter: none; } }
.poker-discard { margin-top: 6px; display: grid; gap: 4px; font-size: 11.5px; color: #ffb3c4; }
.poker-discard .btn-sub { padding: 4px 10px; font-size: 11px; width: auto; margin: 0; }
.poker-box.over .pk-card { cursor: pointer; }
.poker-rules { margin-top: 6px; font-size: 11px; color: var(--sub); }
.poker-rules ul { margin: 4px 0 0; padding-left: 16px; }
.showdown { margin: 10px 0; display: grid; gap: 8px; }
.showdown h3 { margin: 0; }
.sd-row { padding: 8px; border-radius: 12px; background: var(--glass); border: 1px solid var(--line); }
.sd-who { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.sd-hand { margin-left: auto; padding: 2px 12px; border-radius: 99px; background: linear-gradient(90deg, #ff4fa3, #ffd36b); color: #1a0a20; font-weight: 900; }
.sd-cards { display: flex; flex-wrap: wrap; gap: 6px; }

/* ゲーム中のメニュー：設定を変える・レイアウト・ルームに戻る をまとめる */
.stage-tools .layout-open { display: none; } /* ボタンはメニューの中から開く */
.game-menu { position: relative; }
.menu-pop { position: fixed; z-index: 200; display: grid; gap: 4px; padding: 6px; min-width: 150px; border-radius: 12px; background: rgba(12, 10, 28, .96); border: 1px solid var(--line-strong, #5a5470); box-shadow: 0 6px 24px rgba(0, 0, 0, .6); }
.menu-pop[hidden] { display: none; }
.menu-pop .btn-sub { width: 100%; margin: 0; text-align: left; white-space: nowrap; }
body.rush-machine .stage-tools { overflow: visible; }

/* ── アニソン・ポーカー：高級感のあるトランプ ── */
.pk-card { --w: 64px; position: relative; flex: none; width: var(--w); height: calc(var(--w) * 1.45); border-radius: 9px; background: linear-gradient(155deg, #fffdf6 0%, #f6efdc 55%, #eadfbf 100%); border: 1px solid #a87f2e;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .55), inset 0 0 0 2px #fffaf0, inset 0 0 0 3px rgba(184, 146, 60, .7); color: #15131d; font-family: 'Playfair Display', Georgia, 'Times New Roman', serif; user-select: none; cursor: default; transition: transform .2s, box-shadow .2s; overflow: hidden; }
.pk-card.sm { --w: 42px; border-radius: 6px; }
.pk-face { position: absolute; inset: 0; }
.pk-face b { position: absolute; left: 7%; top: 4%; display: grid; justify-items: center; font-size: calc(var(--w) * .27); line-height: 1; font-weight: 700; }
.pk-face b small { font-size: calc(var(--w) * .21); margin-top: 1px; }
.pk-face b.br { left: auto; top: auto; right: 7%; bottom: 19%; transform: rotate(180deg); }
.pk-mid { position: absolute; left: 0; right: 0; top: 25%; text-align: center; font-size: calc(var(--w) * .58); line-height: 1; text-shadow: 0 1px 0 rgba(255, 255, 255, .9), 0 3px 4px rgba(0, 0, 0, .28); }
.pk-face i { position: absolute; left: 0; right: 0; bottom: 0; height: 15%; display: grid; place-items: center; padding: 0 3px; font-style: normal; font-family: 'Hiragino Mincho ProN', 'Yu Mincho', serif; font-size: calc(var(--w) * .125); font-weight: 700;
  color: #2a1d06; background: linear-gradient(90deg, #8a6a24, #f0d27a 50%, #8a6a24); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pk-card.sm .pk-face i { display: none; }
.pk-card.sm .pk-face b.br { bottom: 5%; }
.pk-card.suit1 .pk-face b, .pk-card.suit1 .pk-mid, .pk-card.suit2 .pk-face b, .pk-card.suit2 .pk-mid { color: #b3122c; }
.pk-card::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .7) 50%, transparent 62%); background-size: 250% 100%; }
.pk-card.rare3 { border-color: #b9c4d6; box-shadow: 0 3px 8px rgba(0, 0, 0, .55), 0 0 8px rgba(185, 196, 214, .6), inset 0 0 0 2px #fbfcff, inset 0 0 0 3px rgba(150, 165, 190, .8); }
.pk-card.rare4 { border-color: #ffd36b; box-shadow: 0 3px 8px rgba(0, 0, 0, .55), 0 0 12px rgba(255, 190, 70, .85), inset 0 0 0 2px #fff6dc, inset 0 0 0 3px #e0a623; background: linear-gradient(155deg, #fffbe9 0%, #ffe9b0 50%, #f6d27a 100%); }
.pk-card.rare3::after, .pk-card.rare4::after { opacity: 1; animation: pk-sheen 3.2s linear infinite; }
@keyframes pk-sheen { 0% { background-position: 150% 0; } 60%, 100% { background-position: -100% 0; } }
.pk-card.used { transform: translateY(-6px); border-color: #ffd36b; box-shadow: 0 8px 14px rgba(0, 0, 0, .5), 0 0 14px rgba(255, 211, 107, .9), inset 0 0 0 2px #fffaf0, inset 0 0 0 3px #e0a623; }
.pk-card.drop { opacity: .4; outline: 2px dashed #ff6b8a; }
.pk-card.fresh { animation: pk-draw .8s ease-out; }
.pk-card.flip { animation: pk-flip .55s ease-out; }
@keyframes pk-flip { 0% { transform: rotateY(90deg) scale(1.12); filter: brightness(1.8); } 100% { transform: none; filter: none; } }
@keyframes pk-draw { 0% { transform: translateY(-14px) scale(1.12) rotate(-4deg); filter: brightness(2); } 100% { transform: none; filter: none; } }
.pk-back { display: none; position: absolute; inset: 0; border-radius: 8px; background: repeating-linear-gradient(45deg, #4a0f1c 0 4px, #651a2b 4px 8px); box-shadow: inset 0 0 0 3px #4a0f1c, inset 0 0 0 4px #d9b25a; }
.pk-back::after { content: '♦'; position: absolute; inset: 0; display: grid; place-items: center; color: #e8c868; font-size: calc(var(--w) * .5); text-shadow: 0 0 6px rgba(0, 0, 0, .6); }
.pk-card.facedown { background: #4a0f1c; }
.pk-card.facedown .pk-face { visibility: hidden; }
.pk-card.facedown .pk-back { display: block; }
.pk-card.facedown::after { display: none; }
.poker-kept { margin-top: 4px; font-size: 11.5px; color: #e8c868; }
/* 中間オープン（賭け） */
.pk-modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 16px; background: rgba(5, 4, 12, .72); backdrop-filter: blur(3px); }
.pk-modal[hidden] { display: none; }
/* 困ったときのボタン（いつも左下に小さく） */
.help-btns { position: fixed; left: 8px; bottom: 8px; z-index: 310; /* 遊び方の窓（z-index 300）の上にも出す */ display: flex; gap: 4px; opacity: .55; transition: opacity .2s; }
.help-btns:hover, .help-btns:focus-within { opacity: 1; }
body:has(#setFab:not([hidden])) .help-btns { left: 84px; } /* 左下の「⚙ 設定」の右へ */
.help-btns button { font: inherit; font-size: 12px; padding: 4px 8px; border-radius: 10px; color: #fff; background: rgba(20, 16, 36, .8); border: 1px solid rgba(255, 255, 255, .25); cursor: pointer; }
@media (max-width: 700px) { /* スマホ：下の「ゲーム開始」・答えのボタンと重ならないよう、右端に縦に */
  .help-btns, body:has(#setFab:not([hidden])) .help-btns { left: auto; right: 2px; bottom: auto; top: 42%; flex-direction: column; }
  .help-btns span { display: none; } .help-btns button { font-size: 15px; padding: 5px 6px; }
  body:has(.pk-modal:not([hidden])) #helpBtns.help-btns { top: 2px; right: 2px; flex-direction: row; } /* 遊び方の窓が開いているときは右上の隅（選択肢に重ならない） */ }
.bug-field { gap: 8px; }
.bug-kinds { display: flex; flex-wrap: wrap; gap: 4px 12px; justify-content: center; font-size: 14px; }
.bug-kinds label { display: inline-flex; flex-direction: row; align-items: center; gap: 5px; margin: 0; padding: 5px 10px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .2); cursor: pointer; }
.bug-kinds label:has(input:checked) { border-color: var(--accent, #7ad1ff); background: rgba(122, 209, 255, .15); }
.bug-kinds input { width: auto; margin: 0; }
.bug-field textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 14px; padding: 8px; border-radius: 10px; background: rgba(0, 0, 0, .35); color: #fff; border: 1px solid rgba(255, 255, 255, .25); resize: vertical; }
.bug-note { margin: 0; font-size: 12px; opacity: .7; text-align: center; }
.bug-row { display: flex; gap: 10px; justify-content: center; }
.pk-modal-box { width: min(440px, 100%); max-height: 92vh; overflow: auto; padding: 18px; border-radius: 18px; background: linear-gradient(160deg, #1c1630, #0d0b19); border: 2px solid #c9a24a; box-shadow: 0 0 0 4px rgba(201, 162, 74, .2), 0 20px 50px rgba(0, 0, 0, .7); text-align: center; }
.pk-modal-box.wide { width: min(620px, 100%); }
.pk-modal-box h3 { margin: 0 0 6px; color: #f0d27a; letter-spacing: .06em; }
.pk-sub { margin: 0 0 10px; font-size: 12px; color: #cfd0e8; line-height: 1.5; }
.pk-mini-hand, .pk-res-cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin: 8px 0; }
.pk-now { margin: 6px 0; font-size: 13px; }
.pk-bets { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; margin: 10px 0; }
.pk-bet { padding: 10px 6px; font-weight: 900; background: linear-gradient(180deg, #f0d27a, #b8893a); color: #2a1d06; border: 0; border-radius: 10px; }
.pk-bet:disabled { opacity: .45; }
.pk-bet.chosen { outline: 3px solid #fff; opacity: 1; }
.pk-prog { margin: 6px 0 0; font-size: 12px; color: var(--sub); }
.pk-res { margin: 8px 0; padding: 8px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.pk-res.win { border-color: #f0d27a; box-shadow: 0 0 14px rgba(240, 210, 122, .5); }
.pk-res-who { display: flex; align-items: center; gap: 8px; justify-content: center; flex-wrap: wrap; }
.pk-res-who em { font-style: normal; padding: 1px 10px; border-radius: 99px; background: linear-gradient(90deg, #ff4fa3, #ffd36b); color: #1a0a20; font-weight: 900; }
.pk-res-who .plus { color: #8dffc8; font-weight: 900; } .pk-res-who .minus { color: #ff8aa0; font-weight: 900; }
/* ショーダウン：ポーカー場のテーブル */
.showdown { margin: 14px 0; }
.showdown h3 { display: none; }
.pk-table { position: relative; width: min(100%, 880px); height: 540px; margin: 36px auto; border-radius: 50%; border: 16px solid #3a2213; background: radial-gradient(ellipse at 50% 38%, #23996000 0, #1f8a55 0%, #146b41 52%, #0a3b25 100%);
  box-shadow: 0 0 0 3px #c9a24a, inset 0 0 0 3px #c9a24a, inset 0 0 70px rgba(0, 0, 0, .65), 0 18px 40px rgba(0, 0, 0, .7); }
.pk-felt-title { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 4px; text-align: center; pointer-events: none; }
.pk-felt-title span { font-family: Georgia, serif; letter-spacing: .4em; font-size: 20px; font-weight: 700; color: rgba(240, 210, 122, .85); text-shadow: 0 1px 2px #000; }
.pk-felt-title em { font-style: normal; font-size: 14px; font-weight: 900; color: #fff; text-shadow: 0 1px 3px #000; }
.pk-chips { display: flex; gap: 4px; margin-top: 4px; }
.pk-chips i { width: 22px; height: 22px; border-radius: 50%; border: 3px dashed #fff; box-shadow: 0 2px 3px rgba(0, 0, 0, .6); background: #c8203a; }
.pk-chips i:nth-child(2) { background: #1f5fc8; } .pk-chips i:nth-child(3) { background: #111; } .pk-chips i:nth-child(4) { background: #e8c868; }
.pk-seat { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 4px; }
.pk-seat-cards { display: flex; gap: 2px; min-height: 61px; }
.pk-plate { display: flex; align-items: center; gap: 6px; padding: 2px 10px 2px 3px; border-radius: 99px; background: rgba(10, 8, 20, .85); border: 1.5px solid #c9a24a; font-size: 12px; font-weight: 700; }
.pk-seat-hand { display: grid; justify-items: center; padding: 3px 10px; border-radius: 10px; background: rgba(10, 8, 20, .85); border: 1px solid rgba(201, 162, 74, .6); animation: pk-draw .6s ease-out; }
.pk-seat-hand[hidden] { display: none; }
.pk-seat-hand b { color: #f0d27a; font-size: 13px; }
.pk-seat-hand small { font-size: 9.5px; color: #cfd0e8; }
.pk-seat-hand strong { font-size: 15px; color: #fff; }
.pk-seat.winner .pk-plate { border-color: #fff3b0; box-shadow: 0 0 20px 4px rgba(255, 220, 110, .9); }
.pk-seat.winner .pk-seat-hand { border-color: #fff3b0; box-shadow: 0 0 20px rgba(255, 220, 110, .8); }
.pk-seat.winner::before { content: '👑'; font-size: 26px; position: absolute; top: -30px; animation: pk-draw .8s ease-out; }
.pk-table.list { height: auto; border-radius: 22px; border-width: 10px; padding: 14px; display: grid; gap: 12px; }
.pk-table.list .pk-felt-title { position: static; transform: none; margin-bottom: 4px; }
.pk-table.list .pk-seat { position: relative; left: auto; top: auto; transform: none; justify-items: stretch; grid-template-columns: auto 1fr; gap: 6px 10px; align-items: center; }
.pk-table.list .pk-plate { grid-column: 1 / -1; justify-self: start; }
.pk-table.list .pk-seat-hand { grid-column: 1 / -1; }
/* 称号：人ごとに並べる */
.title-chips { display: flex; flex-wrap: wrap; gap: 4px; margin: 3px 0 0; }
.title-chips em { display: inline-grid; font-style: normal; padding: 3px 8px; border-radius: 8px; background: rgba(255, 211, 107, .1); border: 1px solid rgba(255, 211, 107, .4); line-height: 1.25; }
.title-chips em b { font-size: 13px; }
.title-chips em small { font-size: 10px; }
/* 中間オープン：ポーカー卓（フィールド）＋賭けの操作 */
.pk-field { width: min(920px, 100%); max-height: 96vh; overflow: auto; display: grid; gap: 10px; }
.pk-table.field { height: 430px; margin: 34px auto 0; width: 100%; }
.pk-table.field.list { height: auto; margin-top: 0; }
.pk-felt-title .pk-pot { font-size: 13px; font-weight: 900; color: #ffe9a8; text-shadow: 0 1px 3px #000; }
.pk-seat-bet { padding: 1px 10px; border-radius: 99px; background: rgba(10, 8, 20, .8); border: 1px solid rgba(201, 162, 74, .5); font-size: 11.5px; font-weight: 700; color: #ffe9a8; }
.pk-seat.mine .pk-plate { border-color: #8dd8ff; box-shadow: 0 0 12px rgba(141, 216, 255, .6); }
.pk-seat-hand .plus { color: #8dffc8; } .pk-seat-hand .minus { color: #ff8aa0; }
.pk-ctrl { padding: 12px 16px; border-radius: 16px; background: linear-gradient(160deg, #1c1630, #0d0b19); border: 2px solid #c9a24a; text-align: center; }
.pk-ctrl .pk-bets { max-width: 560px; margin: 8px auto; }
/* マイページへのリンク・答え合わせのお気に入りボタン */
.top .me-link { margin-left: auto; margin-right: 10px; padding: 6px 12px; border-radius: 99px; background: var(--glass); border: 1px solid var(--line); color: inherit; text-decoration: none; font-size: 13px; font-weight: 700; white-space: nowrap; }
.top .me-link:hover { border-color: var(--accent); }
.top .me-link2 { margin-left: 0; }
.me-tools { margin-top: 4px; }
.me-tools .btn-sub.on { border-color: #ff7ab8; color: #ffc2de; }
.me-hint { font-size: 12px; color: var(--sub); }
/* アニソン陣取り（アタック25風） */
.pn-mini { margin-top: 8px; display: grid; gap: 4px; justify-items: center; }
.pn-board { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; width: min(420px, 100%); aspect-ratio: 1; }
.pn-board.sm { width: min(180px, 100%); gap: 2px; }
.pn-cell { display: grid; place-items: center; border-radius: 6px; border: 1px solid var(--line); background: rgba(255, 255, 255, .06); color: rgba(255, 255, 255, .55); font-weight: 900; font-size: 15px; padding: 0; transition: background .3s, transform .3s; }
.pn-board.sm .pn-cell { font-size: 9px; border-radius: 3px; }
.pn-cell.own { background: var(--pc); color: #111; border-color: rgba(255, 255, 255, .5); }
.pn-cell.can { outline: 2px dashed #fff; outline-offset: -4px; cursor: pointer; animation: pn-blink 1s infinite; }
.pn-cell.can:disabled { cursor: default; }
.pn-cell.put { box-shadow: 0 0 18px var(--pc); transform: scale(1.06); }
.pn-cell.flip { animation: pn-flip .7s ease-out; }
@keyframes pn-blink { 50% { background: rgba(255, 255, 255, .22); } }
@keyframes pn-flip { 0% { transform: rotateY(90deg) scale(1.15); filter: brightness(2); } 100% { transform: none; } }
.pn-legend { display: flex; flex-wrap: wrap; gap: 4px 10px; justify-content: center; font-size: 12px; font-weight: 700; }
.pn-legend span { display: inline-flex; align-items: center; gap: 4px; }
.pn-legend i { width: 12px; height: 12px; border-radius: 3px; background: var(--pc); display: inline-block; }
.pn-field { width: min(480px, 100%); display: grid; gap: 10px; justify-items: center; padding: 16px; border-radius: 18px; background: linear-gradient(160deg, #1c1630, #0d0b19); border: 2px solid var(--accent, #7ad1ff); }
.pn-field h3 { margin: 0; text-align: center; }
.pn-left { margin: 0; font-size: 12px; color: var(--sub); }
/* アニソンかるた：畳の上に並んだ札（縦書き・和紙・墨） */
.choices.karuta { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 10px 8px; padding: 16px 14px; border-radius: 10px;
  background: repeating-linear-gradient(90deg, rgba(0, 0, 0, .06) 0 1px, transparent 1px 7px), repeating-linear-gradient(0deg, rgba(0, 0, 0, .05) 0 1px, transparent 1px 7px),
              linear-gradient(135deg, #7a8f4a, #62773a 55%, #6f8441);
  border: 6px solid #2b2a24; box-shadow: inset 0 0 0 2px #d8cfa4, inset 0 0 40px rgba(0, 0, 0, .35), 0 8px 24px rgba(0, 0, 0, .55); }
.choices.karuta .choice { --rot: 0deg; min-height: 0; height: var(--kh, 96px); padding: 10px 6px; display: grid; place-items: center; text-align: center;
  writing-mode: horizontal-tb; font-family: 'Yu Mincho', 'Hiragino Mincho ProN', 'Noto Serif JP', serif; font-weight: 900; font-size: 16px; line-height: 1.45; letter-spacing: .02em;
  color: #1b1712; overflow: hidden; border-radius: 3px; border: 1px solid #b9ab80;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .55), transparent 55%), repeating-linear-gradient(0deg, rgba(120, 100, 60, .05) 0 2px, transparent 2px 5px), linear-gradient(170deg, #fbf6e6, #efe4c2);
  box-shadow: 1px 2px 0 #cfc29a, 2px 4px 0 #bdae82, 4px 7px 10px rgba(0, 0, 0, .5); transform: rotate(var(--rot)); backdrop-filter: none; -webkit-backdrop-filter: none; transition: transform .15s, box-shadow .15s; }
.choices.karuta .choice { font-size: 16px; line-height: 1.3; } .choices.karuta .choice.len1 { font-size: 15px; } .choices.karuta .choice.len2 { font-size: 13px; letter-spacing: 0; } .choices.karuta .choice.len3 { font-size: 11px; letter-spacing: 0; line-height: 1.25; }
/* PC：盤の16枚が1画面に収まるように、札の高さを画面の高さに合わせる（上のステージ・下の「わからない」のぶんを引く） */
@media (min-width: 900px) {
  .choices.karuta { --kh: clamp(78px, calc((100vh - 345px) / 4), 165px); padding: 10px 12px; gap: 8px 8px; }
  .choices.karuta .choice { font-size: clamp(12px, 1.25vw, 22px); padding: 6px 10px; }
  .choices.karuta .choice.len1 { font-size: clamp(11.5px, 1.1vw, 19px); }
  .choices.karuta .choice.len2 { font-size: clamp(10.5px, .95vw, 16px); }
  .choices.karuta .choice.len3 { font-size: clamp(9.5px, .82vw, 14px); }
}
.choices.karuta .choice:nth-child(4n+1) { --rot: -1.6deg; } .choices.karuta .choice:nth-child(4n+2) { --rot: 1.2deg; } .choices.karuta .choice:nth-child(4n+3) { --rot: -.7deg; } .choices.karuta .choice:nth-child(4n) { --rot: 1.8deg; }
.choices.karuta .choice:nth-child(3n) { --rot: calc(var(--rot) * -1); }
.choices.karuta .choice::before { content: ''; counter-increment: none; position: absolute; left: 4px; top: 4px; right: 4px; bottom: 4px; width: auto; height: auto; transform: none; border-radius: 2px; background: none; border: 1px solid rgba(138, 106, 36, .55); pointer-events: none; display: block; }
.choices.karuta .choice::after { content: ''; position: absolute; right: 6px; top: 6px; width: 7px; height: 7px; border-radius: 50%; background: #b3261e; opacity: .85; }
.choices.karuta .choice:hover:not(:disabled) { transform: rotate(0deg) translateY(-4px) scale(1.04); box-shadow: 1px 2px 0 #cfc29a, 2px 4px 0 #bdae82, 6px 12px 16px rgba(0, 0, 0, .55); border-color: #b3261e; z-index: 2; }
.choices.karuta .choice:disabled { opacity: 1; cursor: default; }
.choices.karuta .choice.mine { border-color: #1f5fc8; box-shadow: 0 0 0 3px #1f5fc8, 4px 7px 10px rgba(0, 0, 0, .5); }
.choices.karuta .choice.empty { visibility: hidden; }
.choices.karuta .choice.correct { background: linear-gradient(170deg, #fff3b0, #ffd36b); box-shadow: 0 0 0 3px #b3261e, 0 0 22px rgba(255, 211, 107, .95); animation: karuta-take .6s ease-out; }
.choices.karuta .choice.wrong { filter: grayscale(.6) brightness(.85); }
@keyframes karuta-take { 0% { transform: rotate(var(--rot)) scale(1); } 40% { transform: rotate(-6deg) translateY(-14px) scale(1.12); } 100% { transform: rotate(var(--rot)) scale(1); } }
@media (max-width: 600px) { .choices.karuta { padding: 10px 8px; gap: 8px 5px; border-width: 4px; } .choices.karuta .choice { height: 76px; padding: 4px 5px; font-size: 11px; letter-spacing: 0; line-height: 1.2; } .choices.karuta .choice.len1 { font-size: 10px; } .choices.karuta .choice.len2 { font-size: 9px; } .choices.karuta .choice.len3 { font-size: 8px; } .choices.karuta .choice::after { width: 5px; height: 5px; right: 4px; top: 4px; } }
/* アニソン年表 */
.nenpyo { margin-top: 8px; display: grid; gap: 6px; }
.ny-head { font-size: 13px; font-weight: 700; }
.ny-head b { color: var(--warn); font-size: 16px; }
.ny-line { display: flex; align-items: stretch; gap: 4px; overflow-x: auto; padding: 4px 2px 8px; }
.ny-card { flex: none; display: grid; align-content: center; width: 92px; padding: 6px; border-radius: 10px; background: linear-gradient(170deg, #fffaf0, #eadfbf); color: #2a1d06; border: 2px solid #c9a24a; text-align: center; }
.ny-card b { font-size: 18px; }
.ny-card small { font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ny-slot { flex: none; width: 44px; display: grid; place-items: center; align-content: center; gap: 2px; border-radius: 10px; border: 2px dashed rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .05); color: #fff; font-size: 16px; padding: 4px 0; }
.ny-slot small { font-size: 10px; }
.ny-slot:not(:disabled) { cursor: pointer; border-color: var(--accent, #7ad1ff); }
.ny-slot:not(:disabled):hover { background: rgba(122, 209, 255, .2); }
.ny-slot.mine { border-style: solid; border-color: var(--warn); background: rgba(255, 211, 107, .25); }
/* アニソン人狼 */
.wf-field { width: min(640px, 100%); max-height: 94vh; overflow: auto; display: grid; gap: 10px; padding: 16px; border-radius: 18px; background: linear-gradient(160deg, #1a1426, #0b0912); border: 2px solid #b36bff; box-shadow: 0 0 30px rgba(179, 107, 255, .35); }
.wf-head { display: flex; align-items: center; gap: 10px; }
.wf-head b { font-size: 16px; }
.wf-head span { font-size: 12px; color: var(--sub); }
.wf-left { margin-left: auto; color: var(--warn) !important; font-weight: 700; }
.wf-msg { margin: 0; text-align: center; line-height: 1.6; }
.wf-msg small { color: var(--sub); }
.wf-say { display: flex; gap: 8px; align-items: stretch; }
.wf-say input { flex: 1 1 auto; min-width: 0; width: auto; margin-top: 0; padding: 14px 16px; font-size: 17px; }
.wf-say .btn-main, .wf-say .btn-sub { flex: none; width: auto; margin: 0; padding: 0 22px; font-size: 16px; white-space: nowrap; }
#wolfReadyBtn, .wf-field > .btn-sub { padding: 12px; font-size: 15px; }
.wf-seats { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.wf-seats span { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px 2px 2px; border-radius: 99px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); font-size: 12px; opacity: .55; }
.wf-seats span.done { opacity: 1; border-color: #8dffc8; }
.wf-seats span.done::after { content: '✔'; color: #8dffc8; }
.wf-hints { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 6px; }
.wf-hints div { display: grid; padding: 6px 10px; border-radius: 10px; background: rgba(179, 107, 255, .12); border: 1px solid rgba(179, 107, 255, .4); }
.wf-hints small { color: var(--sub); font-size: 11px; }
.wf-hints b { font-size: 15px; }
.wf-chat { list-style: none; margin: 0; padding: 6px; max-height: 180px; overflow: auto; border-radius: 10px; background: rgba(0, 0, 0, .3); display: grid; gap: 3px; font-size: 13px; }
.wf-chat b { margin-right: 6px; color: #c9a7ff; }
.wf-chat li.mine b { color: #8dffc8; }
.wf-votes, .wf-guess { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 6px; }
.wf-votes .btn-sub, .wf-guess .btn-sub { display: flex; align-items: center; gap: 6px; justify-content: center; }
.wf-guess .btn-sub { flex-direction: column; }
.wf-guess small { font-size: 10px; color: var(--sub); }
.wf-votes .btn-sub.on { border-color: #ff6b8a; }
.wf-result { margin: 0; text-align: center; font-size: 22px; font-weight: 900; display: grid; }
.wf-result small { font-size: 12px; font-weight: 500; color: var(--sub); }
.wf-result.win { color: #ffd36b; } .wf-result.lose { color: #c9a7ff; }
.wf-songs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wf-songs div { display: grid; padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.wf-songs div.wolf { border-color: #b36bff; }
.wf-songs small { color: var(--sub); font-size: 11px; } .wf-songs span { font-size: 11.5px; color: #cfd0e8; }
.wf-tally { display: flex; flex-wrap: wrap; gap: 4px 12px; justify-content: center; font-size: 12px; }
/* アニソン人狼：曲の候補・投票数 */
.wf-cands { display: grid; gap: 4px; }
.wf-cands > small { color: var(--sub); font-size: 11.5px; text-align: center; }
.wf-cands > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.wf-cand { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 6px; text-align: left; padding: 5px 8px; border-radius: 8px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); color: inherit; font-size: 12.5px; line-height: 1.25; min-width: 0; }
.wf-cand b { grid-row: span 2; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: rgba(179, 107, 255, .35); font-size: 11px; }
.wf-cand small { grid-column: 2; color: var(--sub); font-size: 10.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wf-cand.mine { border-color: #8dffc8; background: rgba(141, 255, 200, .12); }
@media (max-width: 600px) { .wf-cands > div { grid-template-columns: 1fr; } .wf-cand { padding: 4px 8px; } }
.wf-tallybox { display: grid; gap: 6px; }
.wf-tallybox div { display: grid; grid-template-columns: 90px 1fr 48px; align-items: center; gap: 8px; }
.wf-tallybox span { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wf-tallybox i { display: block; height: 14px; border-radius: 7px; background: linear-gradient(90deg, #b36bff, #ff7ab8); width: calc(var(--n) * 22%); max-width: 100%; min-width: 4px; opacity: .9; transition: width .6s; }
.wf-tallybox b { text-align: right; font-size: 15px; }
/* アタックチャンス */
.pn-field.attack { border-color: #ff4f4f; box-shadow: 0 0 30px rgba(255, 79, 79, .5); animation: pn-attack 1s ease-in-out infinite alternate; }
@keyframes pn-attack { to { box-shadow: 0 0 46px rgba(255, 79, 79, .85); } }
.pn-field.attack h3 { color: #ffb3b3; }
/* かるた（PC）：ステージを小さくして、盤を1画面に収める */
@media (min-width: 900px) {
  body.karuta-play .room-main > .stage { padding: 8px 14px; gap: 6px 12px; }
  body.karuta-play .room-main > .stage .cover, body.karuta-play .room-main > .stage .mascot { display: none; }
  body.karuta-play .room-main > .stage .status { flex: 1; }
  body.karuta-play .stage-tools { gap: 6px 12px; }
  body.karuta-play #quiz { padding-top: 8px; padding-bottom: 8px; }
  body.karuta-play #clues { min-height: 0; margin-bottom: 4px; }
  .choices.karuta { padding: 8px 10px; gap: 6px 8px; border-width: 4px; }
  .choices.karuta.flat .choice::after { width: 5px; height: 5px; right: 4px; top: 4px; }
}
/* かるた：文字は札に収まる最大の大きさ（JS で決める）。折り返しは文字の途中でもよい・行間はつめる */
.choices.karuta .choice { padding: 3px 8px; line-height: 1.15; word-break: normal; overflow-wrap: break-word; font-weight: 900; letter-spacing: 0; }
.choices.karuta .choice::before { left: 3px; top: 3px; right: 3px; bottom: 3px; }
/* アタックチャンスの白いマス */
.pn-cell.atk { background: #fff; color: #333; border-color: #fff; box-shadow: 0 0 14px #fff, inset 0 0 10px rgba(255, 79, 79, .45); animation: pn-atk 1s ease-in-out infinite alternate; }
.pn-cell.atk::after { content: 'AC'; font-size: 9px; position: absolute; right: 3px; bottom: 1px; color: #d33; font-weight: 900; }
.pn-cell { position: relative; }
@keyframes pn-atk { to { box-shadow: 0 0 22px #fff, inset 0 0 14px rgba(255, 79, 79, .8); } }

/* アニソン・ディクシット */
.dx-list { display: grid; gap: 6px; }
.dx-card { display: flex; align-items: center; gap: 8px; justify-content: space-between; padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.dx-card.sel { border-color: #ffd36b; background: rgba(255, 211, 107, .1); }
.dx-card.teller { border-color: #8dffc8; }
.dx-card > div:first-child { display: grid; min-width: 0; }
.dx-card small { color: var(--sub); font-size: 11.5px; }
.dx-btns { display: flex; gap: 6px; flex: none; }
.dx-btns .btn-sub, .dx-btns .btn-main { width: auto; margin: 0; padding: 6px 12px; font-size: 13px; }
.dx-hint { margin: 0; text-align: center; font-size: 15px; } .dx-hint b { font-size: 20px; color: #ffd36b; }

/* アニソン・ババ抜き */
.bb-backs { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.bb-back { font-size: 38px; line-height: 1; padding: 6px 4px; border-radius: 8px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); color: #c9a7ff; cursor: pointer; }
.bb-back:hover { border-color: #ffd36b; }
.bb-seats span.bb-turn { border-color: #ffd36b; opacity: 1; }
.bb-log { list-style: none; margin: 0; padding: 0; font-size: 12px; color: var(--sub); display: grid; gap: 2px; text-align: center; }
[data-card] { cursor: pointer; }
/* ディクシット・ババ抜き：1画面に収める（スクロールさせない。曲カードは2列、高さは画面に合わせて詰める） */
#dixitPop .wf-field, #babaPop .wf-field { width: min(960px, 100%); max-height: 98dvh; overflow: hidden; gap: clamp(4px, 1.2dvh, 10px); padding: clamp(8px, 1.8dvh, 16px); }
#dixitPop .dx-list, #babaPop .dx-list { grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: clamp(3px, .8dvh, 6px); }
#dixitPop .dx-card, #babaPop .dx-card { padding: clamp(3px, .9dvh, 8px) 10px; font-size: clamp(11px, 1.9dvh, 15px); }
#dixitPop .dx-card b, #babaPop .dx-card b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#dixitPop .dx-card small, #babaPop .dx-card small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: clamp(9.5px, 1.5dvh, 11.5px); }
#dixitPop .dx-btns .btn-sub, #dixitPop .dx-btns .btn-main, #babaPop .dx-btns .btn-sub { padding: clamp(3px, .8dvh, 6px) 10px; font-size: clamp(11px, 1.7dvh, 13px); }
#dixitPop .wf-msg, #babaPop .wf-msg { font-size: clamp(12px, 2dvh, 15px); line-height: 1.4; }
#dixitPop .wf-seats span, #babaPop .wf-seats span { font-size: clamp(10px, 1.6dvh, 12px); }
#dixitPop .dx-hint b { font-size: clamp(15px, 3dvh, 20px); }
#babaPop .bb-back { font-size: clamp(24px, 6dvh, 38px); }
#babaPop .bb-log li:nth-child(-n+3) { display: none; }
#babaPop #bbReadyBtn { padding: clamp(5px, 1.2dvh, 12px); }

/* アニソン・コードネーム：1画面（盤面は画面の高さに合わせる） */
#cnPop .cn-field { width: min(980px, 100%); max-height: 98dvh; overflow: hidden; gap: clamp(3px, .9dvh, 8px); padding: clamp(6px, 1.4dvh, 14px); }
.cn-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: clamp(11px, 1.8dvh, 14px); }
.cn-head b { font-size: clamp(13px, 2.2dvh, 16px); }
.cn-score { font-weight: 800; padding: 1px 10px; border-radius: 99px; } .cn-score.red, .cn-turn.red { color: #ff7a8a; } .cn-score.blue, .cn-turn.blue { color: #7ab8ff; }
.cn-me { font-size: clamp(11px, 1.9dvh, 14px); font-weight: 800; color: var(--sub); padding: 1px 10px; border-radius: 99px; border: 1px solid var(--line); } .cn-me.red { color: #fff; background: #b3283f; border-color: #ff4d6a; } .cn-me.blue { color: #fff; background: #1f58b3; border-color: #4d9bff; }
.cn-field.team-red { border-color: #ff4d6a; } .cn-field.team-blue { border-color: #4d9bff; }
.cn-role { text-align: center; color: var(--sub); font-size: clamp(10px, 1.6dvh, 12px); }
.cn-turn { text-align: center; font-size: clamp(12px, 2.2dvh, 16px); }
.cn-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(3px, .8dvh, 7px); }
.cn-card { height: clamp(34px, 11.5dvh, 78px); padding: 2px 4px; border-radius: 10px; border: 2px solid var(--line); background: rgba(255, 255, 255, .07); color: inherit; font-size: clamp(10px, 2dvh, 15px); font-weight: 700; line-height: 1.15; display: grid; place-content: center; text-align: center; gap: 1px; overflow: hidden; cursor: pointer; word-break: break-all; }
.cn-card span { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cn-card small { font-size: clamp(8px, 1.4dvh, 10.5px); font-weight: 500; opacity: .85; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cn-card:disabled { cursor: default; opacity: 1; }
.cn-card.peek.red { border-color: #ff4d6a; background: rgba(255, 77, 106, .32); } .cn-card.peek.blue { border-color: #4d9bff; background: rgba(77, 155, 255, .32); } .cn-card.peek.neutral { border-color: #8a8aa0; border-style: dashed; background: rgba(160, 160, 180, .12); } .cn-card.peek.assassin { border-color: #fff; background: #000; }
.cn-card.shown.red { background: #b3283f; border-color: #ff4d6a; } .cn-card.shown.blue { background: #1f58b3; border-color: #4d9bff; } .cn-card.shown.neutral { background: #55556b; } .cn-card.shown.assassin { background: #000; border-color: #ff4d6a; }
.cn-form select { padding: 0 10px; font-size: 16px; border-radius: 10px; }
.cn-chatbar { display: grid; gap: 3px; } .cn-chat { display: flex; gap: 10px; flex-wrap: wrap; font-size: 12px; color: #cfd0e8; min-height: 1.3em; overflow: hidden; max-height: 2.8em; }
.cn-note { text-align: center; color: var(--sub); }
#cnPop .wf-say input { padding: clamp(6px, 1.2dvh, 12px) 12px; font-size: clamp(13px, 2dvh, 16px); }

/* アニソン大富豪：1画面 */
#dfPop .wf-field { width: min(960px, 100%); max-height: 98dvh; overflow: hidden; gap: clamp(4px, 1.1dvh, 10px); padding: clamp(8px, 1.6dvh, 16px); }
#dfPop .dx-list { grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: clamp(3px, .7dvh, 6px); }
#dfPop .dx-card { padding: clamp(3px, .8dvh, 8px) 10px; font-size: clamp(11px, 1.9dvh, 15px); }
#dfPop .dx-card b, #dfPop .dx-card small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#dfPop .dx-card small { font-size: clamp(9.5px, 1.5dvh, 11.5px); }
#dfPop .dx-btns .btn-sub, #dfPop .dx-btns .btn-main { padding: clamp(3px, .8dvh, 6px) 10px; font-size: clamp(11px, 1.7dvh, 13px); }
#dfPop .wf-msg { font-size: clamp(12px, 2dvh, 15px); }
#dfPop #dfPassBtn { padding: clamp(5px, 1.1dvh, 12px); }
.df-field { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: clamp(44px, 9dvh, 76px); padding: 4px 10px; border-radius: 14px; background: radial-gradient(ellipse at center, rgba(40, 120, 70, .45), rgba(10, 40, 25, .6)); border: 1px solid rgba(141, 255, 200, .35); }
.df-old { font-size: 12px; color: var(--sub); padding: 2px 6px; border-radius: 6px; background: rgba(0, 0, 0, .3); }
.df-top { display: flex; align-items: center; gap: 12px; min-width: 0; }
.df-top span { display: grid; min-width: 0; } .df-top small { color: var(--sub); font-size: 11.5px; }
.df-year { font-size: clamp(22px, 5dvh, 36px); font-family: var(--font-num); color: #ffd36b; }
#dfPop .bb-log li:nth-child(-n+1) { display: none; }

/* アニソン年当てベット：1画面 */
#wwPop .ww-field { width: min(960px, 100%); max-height: 98dvh; overflow: hidden; gap: clamp(4px, 1.2dvh, 10px); padding: clamp(8px, 1.6dvh, 16px); }
.ww-form input { font-size: 22px; text-align: center; }
.ww-quick { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.ww-quick .btn-sub { width: auto; margin: 0; padding: 6px 12px; font-size: 13px; }
.ww-slots { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; }
.ww-slot { position: relative; display: grid; gap: 2px; align-content: start; padding: clamp(6px, 1.4dvh, 12px) 4px; border-radius: 12px; border: 2px solid var(--line); background: rgba(255, 255, 255, .05); color: inherit; text-align: center; min-height: clamp(70px, 18dvh, 130px); cursor: pointer; }
.ww-slot b { font-family: var(--font-num); font-size: clamp(14px, 3dvh, 22px); } .ww-slot:first-child b { font-size: clamp(11px, 1.9dvh, 14px); }
.ww-slot small { color: #ffd36b; font-weight: 800; }
.ww-slot span { font-size: 11px; color: var(--sub); overflow: hidden; }
.ww-slot i { font-style: normal; color: #ff6b8a; font-size: 18px; }
.ww-clue { margin: 0; text-align: center; } .ww-clue b { font-size: clamp(15px, 3.4dvh, 22px); } .ww-clue small { display: block; color: var(--sub); }
.ww-reject { display: grid; gap: 2px; padding: clamp(4px, 1.2dvh, 10px) 12px; border: 2px solid #ffd36b; border-radius: 12px; background: rgba(255, 211, 107, .16); text-align: center; } .ww-reject b { color: #ffd36b; font-size: clamp(18px, 4.6dvh, 28px); } .ww-reject span { font-size: clamp(12px, 2.6dvh, 15px); font-weight: 700; }
.ww-sugg { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; min-height: 34px; } .ww-sugg .btn-sub { width: auto; margin: 0; padding: 5px 10px; font-size: 13px; } .ww-sugg .btn-sub small { display: block; color: var(--sub); font-size: 10px; font-weight: 500; }
.ww-sugg .btn-sub.on { border-color: #ff6b8a; color: #ff6b8a; } .ww-sugg small { color: var(--sub); align-self: center; }
.ww-slots.ww-fake { grid-auto-flow: row; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.ww-fake .ww-slot { min-height: 0; padding: clamp(3px, 1dvh, 8px) 18px; } .ww-fake .ww-slot span:empty { display: none; } .ww-fake .ww-slot i { position: absolute; right: 4px; top: 2px; font-size: 13px; } .ww-fake .ww-slot b, .ww-fake .ww-slot:first-child b { font-family: inherit; font-size: clamp(12px, 2.4dvh, 15px); overflow-wrap: anywhere; }
.ww-nm { font-style: normal; font-weight: 800; } .ww-slot { overflow: hidden; } .ww-strip { position: absolute; left: 0; right: 0; top: 0; height: 5px; text-decoration: none; }
.ww-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; } .ww-chip { padding: 0 5px; border-radius: 9px; color: #14141f; font-size: 11px; font-weight: 800; line-height: 16px; text-decoration: none; white-space: nowrap; }
.ww-slot.on { border-color: #ff6b8a; } .ww-slot.win { border-color: #8dffc8; background: rgba(141, 255, 200, .15); }
.ww-slot:disabled { cursor: default; opacity: 1; }
.ww-marks { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; font-size: 13px; } .ww-mark select { padding: 2px 6px; }
.ww-actions { display: flex; gap: 8px; justify-content: center; } .ww-actions .btn-sub, .ww-actions .btn-main { width: auto; margin: 0; padding: 8px 22px; }

/* アニソンすごろく：クイズ画面の下に小さく（31マス・2段） */
.sg { margin-top: 6px; display: grid; gap: 4px; }
.sg-board { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 2px; }
.sg-cell { position: relative; aspect-ratio: 1; border-radius: 5px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); display: grid; place-items: center; font-size: 11px; overflow: hidden; }
.sg-cell small { position: absolute; top: 1px; left: 3px; font-size: 8.5px; color: var(--sub); }
.sg-cell.ev { background: rgba(255, 211, 107, .08); } .sg-cell.start { background: rgba(141, 255, 200, .1); } .sg-cell.goal { background: rgba(255, 107, 138, .18); border-color: #ff6b8a; }
.sg-tokens { position: absolute; bottom: 1px; right: 1px; display: flex; flex-wrap: wrap-reverse; justify-content: flex-end; max-width: 100%; }
.sg-tokens i, .sg-legend i { display: inline-grid; place-items: center; width: 13px; height: 13px; border-radius: 50%; font-style: normal; font-size: 8px; font-weight: 800; color: #111; margin-left: -3px; border: 1px solid rgba(0, 0, 0, .5); }
.sg-tokens i.me { outline: 2px solid #fff; z-index: 1; } .sg-tokens i.moved { animation: sgHop .6s ease 2; }
@keyframes sgHop { 50% { transform: translateY(-5px); } }
.sg-legend { display: flex; flex-wrap: wrap; gap: 2px 10px; justify-content: center; font-size: 11px; color: var(--sub); }
.sg-legend i { margin: 0 3px 0 0; vertical-align: -2px; }

/* アニソン・ジャンル制覇 */
.gz { margin-top: 6px; display: grid; gap: 3px; font-size: 11.5px; }
.gz-cur { text-align: center; font-size: 12px; color: #ffd36b; }
.gz-row { display: flex; align-items: center; justify-content: space-between; gap: 4px; } .gz-row.me span { color: #8dffc8; }
.gz-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.gz-row i { font-style: normal; display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 4px; background: rgba(255, 255, 255, .05); filter: grayscale(1); opacity: .3; font-size: 11px; }
.gz-row i.on { filter: none; opacity: 1; background: rgba(255, 211, 107, .25); }
#gzPop .gz-field { width: min(640px, 100%); }
.gz-cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.gz-cat { display: grid; gap: 2px; justify-items: center; padding: 12px 6px; margin: 0; width: auto; font-size: 13px; } .gz-cat b { font-size: 26px; }
.gz-cat.have { opacity: .6; } .gz-cat small { font-size: 10px; color: var(--sub); }

/* アニソン・デッキ構築 */
.dk { margin-top: 6px; display: grid; gap: 4px; font-size: 11.5px; }
.dk-coins { text-align: center; color: #ffd36b; }
.dk-use { display: grid; gap: 3px; } .dk-use .btn-sub { margin: 0; width: 100%; padding: 4px 6px; font-size: 11.5px; }
#dkPop .dk-field { width: min(760px, 100%); max-height: 98dvh; overflow: hidden; }
.dk-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.dk-card { display: grid; gap: 3px; text-align: left; padding: clamp(6px, 1.4dvh, 12px); border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .05); color: inherit; cursor: pointer; }
.dk-card b { font-size: clamp(13px, 2.2dvh, 16px); } .dk-card small { color: var(--sub); font-size: 11px; line-height: 1.35; } .dk-card span { font-size: 12px; color: #ffd36b; }
.dk-card:hover:not(:disabled) { border-color: #ffd36b; } .dk-card:disabled { opacity: .45; cursor: default; }
#dkDoneBtn { padding: clamp(6px, 1.2dvh, 12px); }

/* アニソン帰れま10：1画面（左にトップ10の盤、右に候補20曲） */
#kmPop .km-field { width: min(1100px, 100%); max-height: 98dvh; overflow: hidden; gap: clamp(3px, .9dvh, 8px); padding: clamp(6px, 1.4dvh, 14px); }
.km-topic { text-align: center; font-size: clamp(12px, 2.1dvh, 15px); } .km-topic b { color: #ffd36b; font-size: clamp(14px, 2.6dvh, 19px); } .km-topic small { color: var(--sub); }
.km-miss { color: #ff6b8a; letter-spacing: 1px; }
.km-res { text-align: center; font-size: clamp(12px, 2dvh, 15px); } .km-res.win { color: #8dffc8; font-size: 18px; } .km-res.lose { color: #ff6b8a; font-size: 18px; }
.km-main { display: grid; grid-template-columns: minmax(170px, 1fr) 3fr; gap: 8px; min-height: 0; }
.km-board { display: grid; grid-template-rows: repeat(10, minmax(0, 1fr)); gap: 3px; }
.km-rank { display: grid; grid-template-columns: 24px 1fr; align-items: center; column-gap: 6px; padding: 0 8px; border-radius: 8px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); height: clamp(22px, 5.2dvh, 40px); overflow: hidden; }
.km-rank b { font-family: var(--font-num); color: #ffd36b; font-size: clamp(12px, 2.2dvh, 17px); grid-row: span 2; }
.km-rank span { font-size: clamp(10px, 1.8dvh, 13px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.km-rank small { font-size: 9.5px; color: var(--sub); line-height: 1; }
.km-rank.hit { background: rgba(141, 255, 200, .14); border-color: #8dffc8; } .km-rank.open { background: rgba(255, 107, 138, .1); }
.km-cands { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr); gap: 4px; }
.km-cand { position: relative; display: grid; align-content: center; gap: 1px; padding: 2px 6px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, .06); color: inherit; text-align: left; height: clamp(34px, 10dvh, 74px); overflow: hidden; cursor: pointer; }
.km-cand b { font-size: clamp(10.5px, 1.9dvh, 14px); line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.km-cand small { font-size: clamp(9px, 1.4dvh, 11px); color: var(--sub); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.km-cand i { position: absolute; top: 2px; right: 5px; font-style: normal; font-weight: 800; font-size: 12px; }
.km-cand.hit { background: rgba(141, 255, 200, .18); border-color: #8dffc8; } .km-cand.miss { background: rgba(255, 107, 138, .14); border-color: #ff6b8a; opacity: .75; } .km-cand.left { border-color: #ffd36b; border-style: dashed; }
.km-cand[aria-disabled="true"] { cursor: default; }
.km-cand[data-can]:hover { border-color: #ffd36b; }
.km-foot { display: grid; gap: 2px; }
@media (max-width: 700px) { .km-main { grid-template-columns: 1fr 2fr; } .km-cands { grid-template-columns: repeat(2, minmax(0, 1fr)); } .km-cand { height: clamp(28px, 6.5dvh, 50px); } }

/* アニソン・アズール：1画面 */
#azPop .az-field { width: min(1150px, 100%); max-height: 98dvh; overflow: hidden; gap: clamp(3px, .8dvh, 8px); padding: clamp(6px, 1.3dvh, 14px); }
.az-main { display: grid; grid-template-columns: 1.5fr 1fr; gap: 10px; min-height: 0; }
.az-left, .az-right { display: grid; gap: 6px; align-content: start; min-width: 0; }
.az-facs { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 5px; }
.az-fac { display: grid; gap: 2px; padding: 4px; border-radius: 50%/18%; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); min-height: 40px; }
.az-fac.empty { opacity: .35; }
.az-tile { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 3px; padding: 1px 5px; border-radius: 6px; font-size: clamp(9.5px, 1.6dvh, 12px); line-height: 1.3; border: 1px solid transparent; min-width: 0; }
.az-tile b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; } .az-tile i { font-style: normal; } .az-tile em { font-style: normal; font-size: 9px; opacity: .6; cursor: pointer; padding: 0 2px; } .az-tile em:hover { opacity: 1; }
.az-tile.can { cursor: pointer; } .az-tile.can:hover { border-color: #ffd36b; } .az-tile.sel { border-color: #ffd36b; box-shadow: 0 0 0 1px #ffd36b; }
.c-jump { background: rgba(255, 110, 60, .28); } .c-robot { background: rgba(80, 160, 255, .28); } .c-love { background: rgba(255, 110, 180, .28); } .c-idol { background: rgba(255, 210, 80, .28); } .c-other { background: rgba(120, 220, 140, .25); }
.az-center { display: grid; gap: 3px; padding: 5px; border-radius: 10px; border: 1px dashed var(--line); } .az-center > div { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 2px; } .az-center small { color: var(--sub); font-size: 10.5px; }
.az-hand { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 3px; align-items: center; padding: 5px; border-radius: 10px; background: rgba(255, 211, 107, .08); border: 1px solid rgba(255, 211, 107, .4); } .az-hand small { grid-column: 1 / -1; font-size: 11px; color: #ffd36b; } .az-hand [data-hand] { cursor: pointer; } .az-hand .btn-sub { margin: 0; width: auto; padding: 3px 10px; font-size: 12px; }
.az-board { display: grid; gap: 3px; } .az-board > b { font-size: clamp(11px, 1.8dvh, 13px); }
.az-row { display: grid; grid-template-columns: 76px 1fr; align-items: center; gap: 6px; padding: 2px 6px; border-radius: 8px; border: 1px solid var(--line); } .az-row b { font-size: 11px; } .az-row > div { display: flex; gap: 3px; justify-content: flex-end; }
.az-row.can { cursor: pointer; border-color: #ffd36b; } .az-row.can:hover { background: rgba(255, 211, 107, .12); } .az-row.done b::after { content: ' ★'; color: #ffd36b; }
.az-slot { width: clamp(20px, 4.2dvh, 30px); height: clamp(20px, 4.2dvh, 30px); border-radius: 6px; border: 1px dashed rgba(255, 255, 255, .25); display: grid; place-items: center; font-size: clamp(11px, 2dvh, 15px); } .az-slot[class*="c-"] { border-style: solid; }
.az-others { display: grid; gap: 3px; } .az-mini { display: flex; gap: 6px; align-items: center; font-size: 11px; color: var(--sub); flex-wrap: wrap; } .az-mini.turn b { color: #ffd36b; } .az-mini i { font-style: normal; padding: 0 4px; border-radius: 4px; background: rgba(255, 255, 255, .06); }
@media (max-width: 760px) { .az-main { grid-template-columns: 1fr; } .az-facs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 出題しないジャンル：一括 */
.genre-ex-bulk { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; } .genre-ex-bulk .btn-sub { width: auto; margin: 0; padding: 4px 12px; font-size: 12px; }
/* お題を自由に選ぶ（1画面。一覧だけスクロール） */
#multiPop .mt-field { width: min(980px, 100%); height: min(92dvh, 760px); display: grid; grid-template-rows: auto auto 1fr auto; gap: 8px; overflow: hidden; }
.mt-field .wf-head span { font-size: 11.5px; color: var(--sub); }
.mt-tabs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; } .mt-tabs .btn-sub { width: auto; margin: 0; padding: 6px 12px; font-size: 13px; } .mt-tabs .btn-sub.on { border-color: var(--accent); }
.mt-tabs input { flex: 1 1 180px; min-width: 0; margin: 0; padding: 7px 10px; }
.mt-list { overflow: auto; min-height: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 4px; align-content: start; }
.mt-list label { display: flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 8px; border: 1px solid var(--line); font-size: 12.5px; cursor: pointer; min-width: 0; }
.mt-list label small { margin-left: auto; color: var(--sub); } .mt-list label.on { border-color: #ffd36b; background: rgba(255, 211, 107, .1); }
.mt-foot { display: flex; gap: 8px; align-items: center; justify-content: flex-end; flex-wrap: wrap; } .mt-foot span { margin-right: auto; font-size: 12.5px; } .mt-foot .btn-sub, .mt-foot .btn-main { width: auto; margin: 0; padding: 8px 18px; }
.mt-list label { justify-content: flex-start; text-align: left; font-weight: 600; } .mt-list label input { width: auto; margin: 0; flex: none; }

/* 遊び方を選ぶ：ボタンと一覧（アイコン・ひとこと・人数） */
.play-pick { display: flex; align-items: center; gap: 8px; width: 100%; margin: 4px 0 0; padding: 9px 12px; text-align: left; font-size: 15px; }
.play-pick b { font-size: 20px; } .play-pick small { margin-left: auto; font-size: 11px; color: var(--sub); }
#playPop .pl-field { width: min(1100px, 100%); max-height: 96dvh; display: grid; grid-template-rows: auto 1fr; gap: 6px; overflow: hidden; }
.pl-field .wf-head span { font-size: 12px; color: var(--sub); } .pl-close { margin: 0 0 0 auto; width: auto; padding: 5px 14px; font-size: 13px; }
.pl-body { overflow: auto; min-height: 0; display: grid; gap: 6px; align-content: start; }
.pl-body h4 { margin: 4px 0 0; font-size: 13px; color: #ffd36b; }
.pl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px; }
.pl-card { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto 1fr; column-gap: 8px; align-items: start; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .05); color: inherit; text-align: left; cursor: pointer; min-height: 64px; }
.pl-card:hover { border-color: #ffd36b; } .pl-card.on { border-color: #8dffc8; background: rgba(141, 255, 200, .1); }
.pl-icon { grid-row: span 2; font-size: 26px; line-height: 1.1; }
.pl-card b { font-size: 14px; } .pl-card small { font-size: 11px; color: var(--sub); line-height: 1.35; }
.pl-card i { position: absolute; top: 6px; right: 8px; font-style: normal; font-size: 10px; color: #c9a7ff; }
@media (max-width: 600px) { .pl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pl-card small { display: none; } .pl-card { min-height: 0; } }
.play-label { grid-column: 1 / -1; } .play-pick { white-space: nowrap; }
.km-prev { position: absolute; right: 5px; bottom: 3px; font-style: normal; font-size: 11px; padding: 1px 7px; border-radius: 99px; background: rgba(255, 255, 255, .12); cursor: pointer; pointer-events: auto; } .km-prev:hover { background: rgba(255, 211, 107, .35); }

/* デッキ構築：カードが増えたので、ショップは4列×3段で1画面に */
#dkPop .dk-field { width: min(980px, 100%); gap: clamp(4px, 1dvh, 10px); }
.dk-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(4px, .9dvh, 8px); }
.dk-card { padding: clamp(5px, 1.1dvh, 10px); gap: 2px; }
.dk-card b { font-size: clamp(12px, 2dvh, 15px); } .dk-card small { font-size: clamp(9.5px, 1.5dvh, 11px); }
.dk-prog { text-align: center; color: var(--text); } .dk-prog b { color: #ffd36b; font-size: 14px; }
@media (max-width: 700px) { .dk-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* すごろく・ジャンル制覇：進んだ分・埋めた分のハイライト（左下の小さな欄の中だけ。数秒で消える。PCのみ） */
@media (min-width: 900px) {
  .sg-cell.trail { animation: sgTrail 1.4s ease-in-out 3; z-index: 1; }
  @keyframes sgTrail { 0%, 100% { box-shadow: none; background: rgba(255, 211, 107, .08); } 50% { box-shadow: 0 0 8px 2px #ffd36b; background: rgba(255, 211, 107, .5); } }
  .sg-legend span.hl, .gz-row.hl { position: relative; animation: hlFlash 1.4s ease-in-out 3; border-radius: 6px; color: #fff; }
  .sg-legend span.hl::after, .gz-row.hl::after { content: attr(data-hl); position: absolute; right: 0; top: -15px; padding: 0 6px; border-radius: 99px; background: #ffd36b; color: #221; font-size: 10.5px; font-weight: 800; white-space: nowrap; animation: hlPop .5s ease-out; }
  @keyframes hlFlash { 0%, 100% { background: transparent; } 50% { background: rgba(255, 211, 107, .3); } }
  @keyframes hlPop { from { transform: translateY(6px) scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
  .gz-row i.gain { animation: gzGain 1.2s ease-in-out 3; background: rgba(255, 211, 107, .6); outline: 2px solid #ffd36b; }
  @keyframes gzGain { 50% { transform: scale(1.5); } }
}
@media (max-width: 899px) { .sg-cell.trail, .sg-legend span.hl, .gz-row.hl, .gz-row i.gain { animation: none; } }

/* ジャンル制覇EX：種類が増えても収まる */
.gz-row { flex-wrap: wrap; } .gz-row > div { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 1px; max-width: 100%; }
.gz-row i { width: 15px; height: 15px; font-size: 10px; }
.gz-cats { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); max-height: 70dvh; overflow: auto; }
.cat-h { margin: 6px 0 2px; font-size: 12px; color: #ffd36b; grid-column: 1 / -1; } .cat-count { margin-right: auto; font-weight: 700; }
#catPop .cat-field { grid-template-rows: auto auto 1fr auto; }

.pref-row { border-bottom: 1px dashed var(--line); padding-bottom: 6px; margin-bottom: 6px; }

/* ジャンル制覇：種類ごとのカードと、とった人の色つきの丸 */
.gz-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px; }
.gz-cards.compact { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.gz-card { position: relative; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 1px 4px; padding: 2px 5px; border-radius: 7px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); min-width: 0; }
.gz-card i { font-style: normal; font-size: 14px; } .gz-card b { font-size: 10px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--sub); }
.gz-card.got { background: rgba(255, 211, 107, .08); } .gz-card.got b { color: var(--text); }
.gz-card.cur { border-color: #ffd36b; box-shadow: 0 0 6px rgba(255, 211, 107, .55); }
.gz-card.mini { grid-template-columns: 1fr; justify-items: center; padding: 2px 1px; } .gz-card.mini b { display: none; }
.gz-own { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 1px; min-height: 11px; }
.gz-own u, .gz-legend u { display: inline-grid; place-items: center; width: 11px; height: 11px; border-radius: 50%; font-size: 7px; font-weight: 800; color: #111; text-decoration: none; border: 1px solid rgba(0, 0, 0, .45); }
.gz-card.mini .gz-own { justify-content: center; }
.gz-legend { display: flex; flex-wrap: wrap; gap: 2px 8px; font-size: 10.5px; color: var(--sub); } .gz-legend span { position: relative; display: inline-flex; align-items: center; gap: 3px; } .gz-legend span.me { color: #8dffc8; } .gz-legend em { font-style: normal; color: #ffd36b; }
.gz-legend u { width: 13px; height: 13px; font-size: 8px; }
.gz-cat .gz-own { justify-content: center; margin-top: 2px; } .gz-cat .gz-own u { width: 14px; height: 14px; font-size: 9px; }
@media (min-width: 900px) {
  .gz-card.gain { animation: gzGain 1.2s ease-in-out 3; background: rgba(255, 211, 107, .5); }
  .gz-legend span.hl { animation: hlFlash 1.4s ease-in-out 3; border-radius: 6px; }
  .gz-legend span.hl::after { content: attr(data-hl); position: absolute; right: 0; top: -15px; padding: 0 6px; border-radius: 99px; background: #ffd36b; color: #221; font-size: 10.5px; font-weight: 800; white-space: nowrap; animation: hlPop .5s ease-out; }
}

/* 帰れま10：トップ15・20（順位の盤は2列、候補は列を増やす） */
.km-main { grid-template-columns: calc(var(--bc, 1) * 150px) 1fr; }
.km-board { grid-template-rows: repeat(10, minmax(0, 1fr)); grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.km-cands { grid-template-columns: repeat(var(--cc, 4), minmax(0, 1fr)); }
.km-cand b { font-size: clamp(9.5px, calc(2dvh - var(--cc, 4) * .15dvh), 14px); }

/* アニソン伝達クイズ */
#dtPop .wf-field { width: min(960px, 100%); max-height: 98dvh; overflow: hidden; gap: clamp(4px, 1.2dvh, 10px); padding: clamp(8px, 1.8dvh, 16px); }
.dt-song { display: grid; gap: 2px; justify-items: center; text-align: center; } .dt-song b { font-size: clamp(15px, 2.6dvh, 20px); color: #ffd36b; } .dt-song small { color: var(--sub); }
.dt-song span { display: flex; gap: 6px; margin-top: 4px; } .dt-song .btn-sub { width: auto; margin: 0; padding: 4px 14px; font-size: 13px; }
.dt-hints { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; min-height: 28px; }
.dt-hints span { padding: 3px 10px; border-radius: 99px; background: rgba(255, 211, 107, .12); border: 1px solid rgba(255, 211, 107, .4); font-size: clamp(12px, 2.1dvh, 15px); }
.dt-hints i { font-style: normal; color: #ffd36b; margin-right: 6px; font-size: 11px; }
.dt-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: clamp(3px, .8dvh, 6px); }
.dt-choice { display: grid; text-align: left; margin: 0; width: 100%; padding: clamp(3px, .9dvh, 8px) 10px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .05); color: inherit; cursor: pointer; }
.dt-choice b, .dt-choice small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .dt-choice b { font-size: clamp(11px, 1.9dvh, 15px); } .dt-choice small { color: var(--sub); font-size: 11px; }
.dt-choice.sel { border-color: #ffd36b; background: rgba(255, 211, 107, .12); } .dt-choice:disabled { cursor: default; } .dt-choice:disabled:not(.sel) { opacity: .75; }
.dt-row { display: flex; gap: 4px; min-width: 0; } .dt-row .dt-choice { flex: 1; min-width: 0; }
.dt-prev { width: auto; margin: 0; padding: 0 10px; font-size: 13px; flex: none; }
.dt-lock { width: auto; justify-self: center; margin: 0; padding: 6px 28px; }
.dx-pts { color: #ffd36b; font-family: var(--font-num); margin-left: 2px; } .wf-seats span.me { border-color: #7ab8ff; }
/* ボードゲーム風の窓の点数（後ろの点数表のかわり） */
.sc-strip { display: flex; flex-wrap: wrap; gap: 4px 6px; justify-content: center; font-size: clamp(10px, 1.6dvh, 12px); }
.sc-strip span { padding: 1px 8px; border-radius: 99px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); white-space: nowrap; }
.sc-strip span.me { border-color: #7ab8ff; } .sc-strip b { color: #ffd36b; font-family: var(--font-num); margin-left: 4px; }
/* 答え合わせの「修正を依頼」 */
.fix-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.fix-tabs .btn-sub { width: auto; margin: 0; padding: 5px 12px; font-size: 12.5px; border-radius: 99px; } .fix-tabs .btn-sub.on { border-color: var(--accent); background: rgba(255, 255, 255, .1); }
.fix-field { display: grid; grid-template-columns: 9em 1fr; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 13px; }
.fix-field input { margin: 0; padding: 6px 10px; font-size: 14px; }
.fix-kind { display: grid; gap: 4px; margin-bottom: 8px; font-size: 13px; } .fix-kind label { display: flex; gap: 6px; align-items: center; }
.fix-kind input { width: auto; margin: 0; }
@media (max-width: 520px) { .fix-field { grid-template-columns: 1fr; gap: 2px; } }
/* どの遊び方でも「🛠 修正」（このゲームで出た曲から選んで修正を依頼） */
.fix-fab { position: fixed; left: 10px; bottom: 10px; z-index: 60; width: auto; margin: 0; padding: 6px 12px; font-size: 12.5px; border-radius: 99px; border: 1px solid var(--line); background: rgba(20, 20, 35, .85); color: inherit; cursor: pointer; }
#fixPop { z-index: 70; } #fixPop .fix-pop { width: min(760px, 100%); max-height: 98dvh; overflow: auto; gap: 8px; padding: clamp(8px, 1.6dvh, 14px); }
.fix-songs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.fix-songs .btn-sub { flex: none; width: auto; max-width: 220px; margin: 0; padding: 4px 10px; display: grid; text-align: left; border-radius: 10px; }
.fix-songs .btn-sub.on { border-color: var(--accent); background: rgba(255, 255, 255, .1); }
.fix-songs b, .fix-songs small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; } .fix-songs small { color: var(--sub); font-size: 10.5px; }
.fix-x { width: auto; margin: 0 0 0 auto; padding: 3px 10px; font-size: 12px; }
.fix-pick { position: relative; min-width: 0; } .fix-pick input { width: 100%; }
.fix-sugg { position: absolute; left: 0; right: 0; top: 100%; z-index: 5; display: grid; max-height: 220px; overflow-y: auto; background: #1b1b2e; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(0, 0, 0, .5); }
.fix-sugg button { width: 100%; margin: 0; padding: 6px 10px; text-align: left; background: none; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .06); color: inherit; font-size: 13px; cursor: pointer; border-radius: 0; }
.fix-sugg button:hover { background: rgba(255, 255, 255, .08); } .fix-sugg small { padding: 6px 10px; color: var(--sub); }
.fix-sep { margin-top: 10px; border-top: 1px dashed var(--line); padding-top: 8px; }
.top .me-link[hidden] { display: none; } button.me-link { cursor: pointer; font-family: inherit; }
.set-fab { position: fixed; left: 10px; bottom: 46px; z-index: 310; width: auto; margin: 0; padding: 6px 12px; font-size: 12.5px; font-weight: 700; border-radius: 99px; border: 1px solid var(--line); background: var(--glass-strong); color: inherit; cursor: pointer; } .set-fab[hidden] { display: none; } .set-fab:hover { border-color: var(--accent); }
.set-fab:has(+ .fix-fab[hidden]) { bottom: 10px; }
.set-fab { z-index: 810; } #setTop { position: relative; z-index: 810; } /* 表に出る窓・モノポリーの盤面の上でも押せる */
body.room-paused .pk-modal:not(#fixPop) { display: none; } /* 一時停止中は窓を隠して設定画面を見せる（再開で戻る） */
.fix-fab { z-index: 310; } #fixPop { z-index: 320; }
.lp-check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; } .lp-check input { width: auto; margin: 0; }
/* 歌詞クイズ（非公開の部屋）：歌詞の表示 */
.ly-box { text-align: center; display: grid; gap: 4px; margin-bottom: 8px; }
.ly-box .ly-ask { margin: 0; color: var(--sub); font-size: 13px; }
.ly-box .ly-text { font-size: clamp(16px, 3.2vw, 23px); line-height: 1.7; font-weight: 700; }
.ly-box .hole { display: inline-block; min-width: 3em; border-bottom: 3px solid var(--accent); color: var(--accent); }
.ly-pass input { letter-spacing: .05em; }
.req-nearadd { width: 100%; font-size: 11.5px; color: var(--sub); } .req-nearadd a { color: #8dffc8; }
.req-body em { overflow-wrap: anywhere; } .req-body em a { color: #7ab8ff; }
#reqList li { flex-wrap: wrap; } #reqList .req-nearadd { flex: 1 0 100%; order: 9; padding-left: 4px; }
/* 歌詞クイズの追加の形 */
.ly-box .ly-rows { display: grid; gap: 3px; text-align: left; max-width: 640px; margin: 0 auto; } .ly-box .ly-rows p { margin: 0; font-size: clamp(14px, 2.6vw, 19px); }
.ly-box .ly-title { display: block; font-size: clamp(15px, 2.8vw, 20px); color: var(--accent); }
.ly-box .ly-from { color: var(--sub); font-size: 12px; font-weight: 400; } .ly-box .ly-cursor { color: var(--accent); animation: lyblink .8s steps(1) infinite; }
.ly-box .ly-answer { margin: 4px 0 0; color: #8dffc8; font-weight: 700; }
@keyframes lyblink { 50% { opacity: 0; } }
.ly-kinds-box { grid-column: 1 / -1; display: grid; gap: 4px; font-size: 13px; }
.ly-kinds { display: flex; flex-wrap: wrap; gap: 4px 12px; } .ly-kinds label { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; cursor: pointer; } .ly-kinds input { width: auto; margin: 0; }
.ly-box .ly-text.ly-scroll { min-height: calc(1.7em * 3); }
/* 歌詞クイズ2：答え合わせのカラオケ */
.ly-kara { margin-top: 6px; display: grid; gap: 2px; min-height: calc(1.6em * 3); }
.ly-kara p { margin: 0; color: var(--sub); font-size: clamp(13px, 2.4vw, 17px); transition: color .15s, transform .15s; }
.ly-kara p.now { color: #ffd36b; font-weight: 800; transform: scale(1.06); }
/* アニソン短縮鉄道 */
#tsPop .ts-field { width: min(820px, 100%); max-height: 98dvh; overflow: hidden; gap: clamp(4px, 1.2dvh, 10px); padding: clamp(8px, 1.8dvh, 16px); }
.ts-train { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; } .ts-car { padding: 2px 10px; border-radius: 99px; border: 1px solid var(--line); font-size: 12px; } .ts-car.on { border-color: #ffd36b; background: rgba(255, 211, 107, .15); } .ts-car.out { opacity: .4; text-decoration: line-through; }
.ts-who { margin: 0; text-align: center; font-weight: 700; } .ts-who small { color: var(--sub); font-weight: 400; }
.ts-abbr { text-align: center; font-size: clamp(28px, 7dvh, 54px); font-weight: 900; color: #ffd36b; letter-spacing: .04em; } .ts-abbr span { color: var(--sub); font-size: .5em; }
.ts-bar { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .08); overflow: hidden; } .ts-bar i { display: block; height: 100%; background: linear-gradient(90deg, #ff7a8a, #ffd36b); transition: width .1s linear; }
.ts-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; } .ts-choice { margin: 0; width: 100%; padding: clamp(6px, 1.6dvh, 12px) 10px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .05); color: inherit; font-size: clamp(13px, 2.3dvh, 17px); font-weight: 700; cursor: pointer; }
.ts-choice:disabled { cursor: default; } .ts-choice.right { border-color: #8dffc8; background: rgba(141, 255, 200, .15); } .ts-choice.wrong { border-color: #ff7a8a; background: rgba(255, 122, 138, .15); }
.ts-res { margin: 0; text-align: center; font-weight: 700; } .ts-res.ok { color: #8dffc8; } .ts-res.ng { color: #ff7a8a; }
.ts-type { display: flex; gap: 6px; } .ts-type input { flex: 1; min-width: 0; font-size: 18px; padding: 8px 12px; border-radius: 10px; } .ts-type button { margin: 0; }
.ts-wait { margin: 0; text-align: center; color: var(--sub); } .ts-judge { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; } .ts-secret b { color: #8dffc8; font-size: 1.15em; }
.ts-jbtns { display: flex; gap: 6px; } .ts-judge button { margin: 0; } .ts-ok { border-color: #8dffc8 !important; } .ts-ng { border-color: #ff7a8a !important; }
.ts-judge .ts-ok, .ts-judge .ts-ng { color: #1a1a24; font-weight: 700; }

/* 年のスロット（年当てクイズ・年当てベット）：数字が上がっていき、止まると弾んで光る。下の線にみんなの答えた年 */
.yr { display: grid; justify-items: center; gap: 6px; margin: 2px auto 10px; width: min(100%, 560px); font-size: 1rem; }
.yr-num { font-size: clamp(44px, 9vw, 72px); font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: .02em; color: #fff;
  text-shadow: 0 2px 14px rgba(0,0,0,.45); transition: color .3s; }
.yr-num small { font-size: .38em; margin-left: 2px; }
.yr.stop .yr-num { color: var(--warn, #ffd36b); animation: yrStop .55s cubic-bezier(.2,1.6,.4,1); text-shadow: 0 0 22px color-mix(in srgb, var(--warn, #ffd36b) 70%, transparent), 0 2px 14px rgba(0,0,0,.45); }
@keyframes yrStop { 0% { transform: scale(1.35); } 100% { transform: scale(1); } }
.yr-line { position: relative; width: calc(100% - 40px); height: 6px; border-radius: 99px; background: rgba(255,255,255,.18); margin: 8px 0 calc(var(--rows) * 30px + 22px); }
.yr-fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--accent2, #7cf), var(--warn, #ffd36b)); box-shadow: 0 0 10px var(--warn, #ffd36b); }
.yr-line em { position: absolute; top: -18px; transform: translateX(-50%); font-style: normal; font-size: 10px; color: rgba(255,255,255,.55); }
.yr-mark { position: absolute; top: calc(12px + var(--row) * 30px); transform: translateX(-50%); display: flex; align-items: center; gap: 3px; padding: 2px 7px 2px 3px; border-radius: 99px; white-space: nowrap;
  font-size: 11px; background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.18); opacity: .55; transition: opacity .2s, background .2s, transform .2s, box-shadow .2s; }
.yr-mark::before { content: ''; position: absolute; left: 50%; top: calc(-10px - var(--row) * 30px); height: calc(8px + var(--row) * 30px); border-left: 1px dashed rgba(255,255,255,.35); }
.yr-mark b { font-weight: 700; max-width: 6em; overflow: hidden; text-overflow: ellipsis; }
.yr-mark small { color: rgba(255,255,255,.7); font-variant-numeric: tabular-nums; }
.yr-mark .avatar { width: 18px; height: 18px; }
.yr-mark.me { border-color: var(--accent, #f6a); }
.yr-mark.hit { opacity: 1; background: rgba(255,255,255,.2); box-shadow: 0 0 10px rgba(255,255,255,.35); }
.yr.stop .yr-mark.near { background: var(--warn, #ffd36b); color: #2a1a00; box-shadow: 0 0 16px var(--warn, #ffd36b); transform: translateX(-50%) scale(1.1); z-index: 1; }
.yr.stop .yr-mark.near small { color: #5a3a00; }
@media (prefers-reduced-motion: reduce) { .yr.stop .yr-num { animation: none; } }
.yr small { display: inline; margin: 0; font-size: inherit; color: inherit; }
.yr .yr-num small { font-size: .38em; margin-left: 2px; }
.yr .yr-mark small { font-size: 11px; color: rgba(255,255,255,.7); }
.yr.stop .yr-mark.near small { color: #5a3a00; }
.ww-field .yr { margin: 0 auto 2px; gap: 2px; }
.ww-field .yr-num { font-size: clamp(30px, 8vh, 60px); }
.ww-field .yr-line { margin: 6px 0 calc(var(--rows) * 28px + 16px); }
/* アニソンベット：年の結果は、スロット・枠・得点を1画面に収める */
.ww-field:has(#wwRoll) .wf-result { margin: 0; font-size: 14px; line-height: 1.25; }
.ww-field:has(#wwRoll) .wf-result b { display: inline; font-size: 16px; }
.ww-field:has(#wwRoll) .wf-result small { display: block; font-size: 11px; }
.ww-field:has(#wwRoll) .ww-slot { min-height: 0; padding: 7px 2px 3px; gap: 0; }
.ww-field:has(#wwRoll) .ww-slot b { font-size: 14px; } .ww-field:has(#wwRoll) .ww-slot small { font-size: 11px; line-height: 1.1; } .ww-field:has(#wwRoll) .ww-slot span { font-size: 10px; line-height: 1.1; }
.ww-field:has(#wwRoll) .wf-tally { font-size: 11px; line-height: 1.25; }
.ww-field:has(#wwRoll) > .wf-seats:last-child { display: none; }
/* アニソンベット：ウソの作品名の結果も1画面に収める */
.ww-field:has(.ww-fake .win) .wf-result { font-size: 14px; line-height: 1.25; display: block; }
.ww-field:has(.ww-fake .win) .wf-result b { font-size: 18px; } .ww-field:has(.ww-fake .win) .wf-result small { display: block; font-size: 11px; }
.ww-field:has(.ww-fake .win) .ww-slot { padding: 7px 4px 3px; gap: 0; } .ww-field:has(.ww-fake .win) .ww-slot small { font-size: 11px; line-height: 1.1; } .ww-field:has(.ww-fake .win) .ww-slot span { font-size: 10px; line-height: 1.1; }
.ww-field:has(.ww-fake .win) .wf-tally { font-size: 11px; line-height: 1.25; }
.ww-field:has(.ww-fake .win) > .wf-seats:last-child { display: none; }
/* アニソンベット：ウソの作品名の賭けも、9枠で1画面に収める */
.ww-field:has(.ww-fake) .wf-msg { font-size: 13px; line-height: 1.3; margin: 0; }
.ww-field:has(.ww-fake) .ww-slot { padding: 7px 4px 3px; gap: 0; } .ww-field:has(.ww-fake) .ww-slot small { font-size: 11px; line-height: 1.1; }
.ww-field:has(.ww-fake) .ww-mark { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; white-space: nowrap; }
.ww-field:has(.ww-fake) .ww-mark select { width: auto; min-height: 0; margin: 0; padding: 2px 4px; font-size: 12px; }
.ww-field:has(.ww-fake) .ww-actions .btn-sub, .ww-field:has(.ww-fake) .ww-actions .btn-main { padding: 5px 16px; font-size: 14px; }

/* 3つ埋めバトルの入力候補 */
.fill-sugg { display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; max-height: 96px; overflow-y: auto; margin: 4px 0; }
.fill-sugg:empty { display: none; }
.fill-sugg .btn-sub { width: auto; max-width: 100%; margin: 0; padding: 4px 10px; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fill-sugg .btn-sub.on { border-color: var(--accent); background: rgba(255, 255, 255, .14); }
#fillForm .btn-main { white-space: nowrap; flex: none; width: auto; }

/* アニソンベットの大喜利 */
.ww-slot.ww-og { display: flex; align-items: stretch; gap: 4px; padding: 0; cursor: default; }
.ww-og-name { flex: 1; min-width: 0; display: grid; gap: 1px; align-content: center; width: auto; margin: 0; padding: clamp(4px, 1dvh, 8px) 6px; background: none; border: 0; color: inherit; cursor: pointer; }
.ww-og-name:disabled { cursor: default; opacity: 1; }
.ww-like { flex: none; width: auto; min-width: 44px; margin: 0; padding: 0 8px; background: rgba(255, 255, 255, .06); border: 0; border-left: 1px solid var(--line); color: inherit; font-size: 15px; font-weight: 800; cursor: pointer; opacity: .75; }
.ww-like.on { background: rgba(255, 107, 138, .3); opacity: 1; }
.ww-like:disabled { cursor: default; }

/* 表に出る窓の上に出す帯（修正中のお知らせ・ホストの次へ） */
.hold-bar { position: fixed; left: 50%; top: 6px; transform: translateX(-50%); z-index: 840; display: flex; align-items: center; gap: 10px; max-width: 94vw; padding: 5px 12px; border-radius: 99px; background: rgba(14, 14, 34, .94); border: 1px solid var(--line-strong); font-size: 12.5px; color: #fff; }
.hold-bar[hidden] { display: none; }
.hold-bar .btn-main { width: auto; margin: 0; padding: 4px 14px; font-size: 12.5px; }
/* パッチノート */
.pn-open { display: block; width: auto; margin: -14px auto 16px; padding: 5px 14px; font-size: 12.5px; }
.pn-field { overflow: hidden; justify-items: stretch;grid-template-rows: auto minmax(0, 1fr); }
.pn-body { overflow-y: auto; text-align: left; font-size: 13.5px; line-height: 1.6; }
.pn-body h4 { margin: 12px 0 4px; font-size: 14px; color: var(--accent); } .pn-body h4:first-child { margin-top: 0; }
.pn-body ul { margin: 0; padding-left: 18px; }
.pn-body h3 { margin: 18px 0 2px; padding-bottom: 3px; font-size: 15px; border-bottom: 1px solid var(--line); } .pn-body h3:first-child { margin-top: 0; }
/* MVフラッシュ：出題中だけ動画をそのまま見せる。文字が出やすい上下は帯で隠す */
.mv-screen, .mv-bands { display: none; position: fixed; inset: 0; z-index: -1; pointer-events: none; }
body.mvflash .mv-screen { display: block; background: #000; } body.mvflash .mv-screen.open { background: transparent; }
body.mvflash .mv-bands { display: block; background: linear-gradient(#000 0 13%, transparent 13% 85%, #000 85%); }
body.mvflash:not(.mv-hq) .mv-bands { background: linear-gradient(#000 0 var(--mvtop, 13%), transparent var(--mvtop, 13%) var(--mvbot, 85%), #000 var(--mvbot, 85%)); } /* 画質「低」：拡大したタイトル・チャンネル名を隠す */
body.mvflash .video-bg { opacity: 1; background: #000; transition: none; }
body.mvflash .video-bg iframe { filter: none; transform: translate(-50%, -50%); }
body.mvflash .top, body.mvflash .room-side, body.mvflash #cover, body.mvflash #mascot, body.mvflash #clues, body.mvflash #lifelines, body.mvflash #qlog, body.mvflash .stage-tools .vol:not(:first-child) { display: none; }
body.mvflash .stage { position: fixed; top: 0; left: 0; right: 0; z-index: 5; display: flex; align-items: center; gap: 12px; margin: 0; padding: 6px 12px; background: none; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
body.mvflash .status { flex: 1; min-width: 0; } body.mvflash .timer { font-size: 22px; line-height: 1.2; } body.mvflash .stage-tools { margin: 0; padding: 0; flex: none; }
body.mvflash #quiz { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; max-height: 100dvh; overflow-y: auto; margin: 0; padding: 8px 12px; background: none; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
body.mvflash #buzzRow { margin: 0 auto; max-width: 520px; } body.mvflash .buzz-btn { padding: 8px; }
body.mvflash:not(.mv-answering) #choices, body.mvflash:not(.mv-answering) #inputForm, body.mvflash:not(.mv-answering) #mvSugg { display: none; }
body.mvflash.mv-answering #quiz { background: rgba(8, 8, 20, .92); }
body.mvflash .char-dock, body.mvflash.mv-answering .set-fab, body.mvflash.mv-answering .fix-fab { display: none !important; }
body.mvflash #buzzRow { display: flex; justify-content: center; flex-wrap: wrap; }
/* MVフラッシュ：読み込み・答え合わせでも画面を組み替えない。演出は出さない */
.mv-screen { transition: background .12s linear; }
body.mvflash .video-bg { opacity: 1 !important; transition: none !important; } body.mvflash .video-bg iframe { filter: none !important; transform: translate(-50%, -50%) !important; }
body.mvflash .cue, body.mvflash .flash, body.mvflash .mascot-pop, body.mvflash .confetti, body.mvflash .cutin, body.mvflash #highlights, body.mvflash #reactions, body.mvflash #result .copy-log, body.mvflash #listenBtn { display: none !important; }
body.mvflash #result { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; max-height: 52dvh; overflow-y: auto; margin: 0; padding: 8px 12px 8px 96px; border: 0; background: rgba(8, 8, 20, .82); box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
body.mvflash.revealing #quiz { display: none; }
body.mvflash .video-bg { -webkit-mask-image: none !important; mask-image: none !important; animation: none !important; } /* 出題中の波形の切り抜きをやめる */
body.mvflash .backdrop { display: none; }
.mv-miss { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; margin: 0 0 6px; font-size: 14px; font-weight: 700; color: #ff9db0; text-shadow: 0 1px 3px #000; }
.mv-miss[hidden] { display: none; }
body.mvflash:not(.mv-hq) .video-bg iframe { width: 480px !important; height: 270px !important; min-width: 0 !important; min-height: 0 !important; transform: translate(-50%, -50%) scale(var(--mvs, 1)) !important; transition: none !important; } /* 低速回線でも見られるよう、小さく読み込んで拡大 */
.mv-qual-bar { display: none; }
body.mvflash:not(.mv-answering) .mv-qual-bar { display: flex; position: fixed; right: 10px; bottom: 10px; z-index: 6; align-items: center; gap: 6px; width: auto; margin: 0; font-size: 12px; color: #fff; }
.mv-qual-bar select { width: auto; margin: 0; padding: 3px 6px; font-size: 12px; }
body.mvflash.revealing .mv-qual-bar { display: none; }

/* アニソンインサイダー（人狼と同じ .wf-* の窓。1画面に収める） */
#insPop .wf-field { width: min(760px, 100%); max-height: 98dvh; overflow: hidden; gap: clamp(4px, 1.1dvh, 8px); padding: clamp(8px, 1.6dvh, 14px); }
#insPop .wf-say input { padding: 8px 12px; font-size: 15px; }
#insPop .wf-say .btn-main, #insPop .wf-say .btn-sub { padding: 0 16px; font-size: 14px; }
#insPop .wf-msg { line-height: 1.4; font-size: 14px; }
#insPop .wf-msg small { display: block; font-size: 11px; }
.ins-log { max-height: none; min-height: 50px; height: clamp(50px, 22dvh, 200px); align-content: start; }
.ins-log li { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.ins-log .ins-a { margin-left: auto; font-style: normal; font-weight: 800; padding: 0 8px; border-radius: 99px; }
.ins-a.yes { color: #8dffc8; } .ins-a.no { color: #ff8da1; } .ins-a.unk { color: var(--sub); } .ins-a.wait { color: var(--sub); }
.ins-rep { margin-left: auto; display: inline-flex; gap: 4px; }
.ins-rep .btn-sub { width: auto; margin: 0; padding: 2px 10px; font-size: 12px; }
.ins-rep .btn-sub.on { border-color: var(--warn); background: rgba(255, 211, 107, .25); }
.ins-guess { opacity: .8; } .ins-guess.ok { opacity: 1; color: #8dffc8; }
.ins-ans { display: grid; justify-items: center; padding: 4px 10px; border-radius: 10px; background: rgba(255, 211, 107, .1); border: 1px solid rgba(255, 211, 107, .45); }
.ins-ans small { font-size: 10px; color: var(--sub); } .ins-ans b { font-size: 17px; } .ins-ans span { font-size: 11px; color: var(--sub); }
.ins-sugg { display: flex; flex-wrap: wrap; gap: 4px; } .ins-sugg:empty { display: none; }
.ins-sugg .btn-sub { width: auto; margin: 0; padding: 3px 10px; font-size: 12px; }
.ins-listen { width: auto; justify-self: center; margin: 0; padding: 4px 14px; font-size: 12px; }

/* 回線：ping と読み込み中の印（プレイヤー一覧） */
.net-ping { margin-left: 6px; font-style: normal; font-size: 10px; font-weight: 700; opacity: .85; }
.net-ping.ok { color: #8dffc8; } .net-ping.mid { color: #ffd36b; } .net-ping.bad { color: #ff8da1; }
.net-load { margin-left: 4px; font-style: normal; font-size: 11px; }
/* 軽量（出題中は背景の映像を小さく読み込んで拡大＝低画質。答え合わせで元に戻す） */
body.lowq.playing:not(.revealing):not(.mvflash) .video-bg iframe { width: 480px !important; height: 270px !important; min-width: 0 !important; min-height: 0 !important; transform: translate(-50%, -50%) scale(calc(var(--mvs, 1) * 1.3)) !important; }

/* 読み込み待ち（画面の中央） */
.load-wait { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 60; max-width: 90vw; padding: 12px 22px; border-radius: 99px; background: rgba(8, 8, 20, .85); border: 1px solid rgba(255, 211, 107, .6); color: #ffd36b; font-weight: 800; font-size: 16px; text-align: center; pointer-events: none; animation: load-wait-blink 1.2s ease-in-out infinite; }
.load-wait[hidden] { display: none; }
@keyframes load-wait-blink { 50% { opacity: .6; } }

/* キック：ホストの画面では、ほかの人の名前を押せる */
body.is-host #players li:not(.me) { cursor: pointer; }

/* メタメタ！イントロ対決 */
body.mm-set .mm-hide, body.mm-set #multiOpen, body.mm-set #seriesLabel { display: none !important; }
.mm-only { display: none; } body.mm-set .mm-only { display: block; flex-basis: 100%; }
.mm-box { width: min(760px, 100%); height: min(600px, calc(100vh - 24px)); max-height: none; overflow: hidden; display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; text-align: left; }
.mm-box h3 { margin: 0; text-align: center; font-size: 1.05rem; }
.mm-box input[type=checkbox] { width: auto; height: auto; flex: none; margin: 0; }
.mm-box select, .mm-box input[type=search] { width: auto; height: auto; padding: 4px 8px; font-size: .85rem; }
.mm-top label { display: flex; align-items: center; gap: 6px; margin: 0; }
.mm-box .btn-main { padding: 6px 22px; font-size: .95rem; height: auto; width: auto; min-width: 0; margin: 0; }
.mm-box .btn-sub { padding: 5px 10px; font-size: .8rem; width: auto; min-width: 0; margin: 0; white-space: nowrap; }
.mm-modal { z-index: 1000; }
.mm-lead { margin: 0; font-size: .8rem; opacity: .85; text-align: center; }
.mm-edit { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 6px; }
.mm-edit.mm-sent { opacity: .55; pointer-events: none; }
.mm-fav { opacity: .75; font-size: .75rem; }
.mm-list .note { grid-column: 1 / -1; }
.mm-top { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; font-size: .85rem; }
.mm-tabs { display: flex; gap: 6px; }
.mm-tabs button { flex: 1; padding: 5px 8px; border-radius: 10px; border: 1px solid #5a4a7a; background: #221b38; color: inherit; font-size: .82rem; cursor: pointer; }
.mm-tabs button.on { background: #4a3a7a; border-color: #c9a24a; }
.mm-tabs b { color: #ffd76a; }
.mm-pane { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 6px; }
.mm-tools { display: flex; gap: 6px; }
.mm-tools input { flex: 1; min-width: 0; }
.mm-list { flex: 1; min-height: 0; overflow: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); align-content: start; gap: 2px 8px; padding: 4px; border-radius: 8px; background: rgba(0, 0, 0, .25); }
.mm-list h4 { grid-column: 1 / -1; margin: 6px 0 0; font-size: .8rem; color: #ffd76a; }
.mm-w { display: flex; gap: 4px; align-items: center; font-size: .8rem; padding: 1px 4px; border-radius: 6px; cursor: pointer; }
.mm-w span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mm-w small { opacity: .6; }
.mm-w.on { background: rgba(201, 162, 74, .25); }
.mm-genres { overflow: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); align-content: start; gap: 4px 8px; font-size: .85rem; }
.mm-g { cursor: pointer; }
.mm-foot { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: space-between; }
.mm-who { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: .8rem; }
.mm-who span { opacity: .7; } .mm-who span.ok { opacity: 1; }
.mm-btns { display: flex; gap: 6px; align-items: center; }
.mm-btns #mmHost { display: flex; gap: 6px; }
.mm-owner { color: #ffd76a; }
.mm-age { display: block; color: #ffd76a; font-weight: bold; }
.mm-exnote { margin: 0; font-size: .75rem; opacity: .8; }
#mmExList { flex: 1; min-height: 0; }
.mm-ann { position: fixed; inset: 0; z-index: 900; display: grid; place-items: center; pointer-events: none; background: radial-gradient(circle, rgba(10, 6, 30, .75), rgba(10, 6, 30, .35) 70%); }
.mm-ann[hidden] { display: none; }
.mm-ann-box { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px 34px; border-radius: 20px; border: 3px solid #ffd76a; background: linear-gradient(160deg, #3a2a6e, #150f2b); box-shadow: 0 0 40px rgba(255, 215, 106, .5); text-align: center; }
.mm-ann-box small { opacity: .8; }
.mm-ann-box b { font-size: clamp(1.2rem, 4vw, 2rem); }
.mm-ann-box strong { font-size: clamp(1.6rem, 6vw, 3rem); color: #ffd76a; text-shadow: 0 0 14px rgba(255, 215, 106, .7); }
.mm-ann-box em { font-style: normal; font-size: .95rem; opacity: .9; }
.mm-ann.on .mm-ann-box { animation: mmAnnIn .5s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes mmAnnIn { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ── アニソン・ミリオンチャレンジ ── */
.ml-field { width: min(860px, 100%); border-color: #3fd0a8; box-shadow: 0 0 30px rgba(63, 208, 168, .3); gap: 8px; }
.ml-bgm { margin-left: auto; padding: 2px 8px; }
.ml-body { display: grid; grid-template-columns: 1fr 150px; gap: 10px; align-items: start; }
.ml-main { display: grid; gap: 8px; min-width: 0; }
.ml-ask { margin: 0; text-align: center; font-weight: 700; font-size: 16px; color: #ffe39a; }
.ml-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ml-choice { position: relative; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 10px; border-radius: 12px; text-align: left; font: inherit; color: #fff; cursor: pointer;
  background: linear-gradient(180deg, #123b36, #0b2421); border: 2px solid #2b7f70; overflow: hidden; }
.ml-choice span { flex: none; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: #2b7f70; font-weight: 800; font-size: 13px; }
.ml-choice b { font-size: 14px; line-height: 1.25; word-break: break-word; }
.ml-choice em { position: absolute; right: 6px; bottom: 4px; font-style: normal; font-size: 12px; color: #ffe39a; }
.ml-choice em::before { content: ''; position: absolute; right: -6px; bottom: -4px; height: 4px; width: calc(var(--p) * 3); max-width: 300px; background: #ffd25a; opacity: .7; }
.ml-choice:disabled { cursor: default; opacity: .85; }
.ml-choice.sel { border-color: #ffd25a; }
.ml-choice.pick { border-color: #ffb13b; background: linear-gradient(180deg, #6a4a0e, #3a2806); }
.ml-holding .ml-choice.pick { animation: ml-pulse .7s ease-in-out infinite alternate; }
.ml-choice.right { border-color: #5df29a; background: linear-gradient(180deg, #17663b, #0c3a21); }
.ml-choice.wrong { border-color: #ff6b6b; background: linear-gradient(180deg, #6a1717, #3a0b0b); }
@keyframes ml-pulse { from { box-shadow: 0 0 0 rgba(255, 177, 59, 0); } to { box-shadow: 0 0 18px rgba(255, 177, 59, .8); } }
.ml-holdmsg { font-size: 18px; letter-spacing: .1em; }
.ml-confirm { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; font-weight: 700; }
.ml-life { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; }
.ml-lf { min-width: 46px; padding: 6px 8px; border-radius: 999px; border: 2px solid #3fd0a8; background: #0d2a26; color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.ml-lf:disabled, .ml-lf.used { opacity: .35; text-decoration: line-through; cursor: default; }
.ml-life-view { font-size: 13px; }
.ml-life-view small { opacity: .8; }
.ml-drop { border-color: #ffb13b; }
.ml-drop.on { background: #6a4a0e; }
/* チーム戦：選択肢の下に「これかも？」「決定」と押した人 */
.ml-cw { display: grid; gap: 3px; min-width: 0; }
.ml-tb { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 12px; min-height: 22px; }
.ml-mk, .ml-dc { padding: 2px 8px; border-radius: 999px; border: 1px solid #3fd0a8; background: #0d2a26; color: #fff; font: inherit; font-size: 12px; cursor: pointer; }
.ml-mk.on { background: #2b7f70; }
.ml-dc { border-color: #ffb13b; }
.ml-dc.on { background: #b06d12; }
.ml-dcn { color: #ffd25a; }
.ml-who-mk { opacity: .9; }
.ml-who-mk i { font-style: normal; margin-left: 4px; }
.ml-tname.team-red { color: #ff8d8d; } .ml-tname.team-blue { color: #8dc4ff; }
.ml-who .team-red { color: #ff8d8d; } .ml-who .team-blue { color: #8dc4ff; }
.ml-tmsg { font-size: 13px; margin: 0; }
.ml-au2 { display: flex; align-items: center; gap: 0; }
.ml-au2::before { display: none; }
.ml-au2 i { display: inline-block; height: 6px; }
.ml-au2 i.team-red { background: #ff6b8a; } .ml-au2 i.team-blue { background: #5aa0ff; }
.ml-au2 i.ml-opp { background: #b9b9b9; margin-right: 4px; }
.ml-phone { margin: 0; padding: 6px 10px; border-radius: 10px; background: rgba(63, 208, 168, .1); border: 1px solid rgba(63, 208, 168, .4); display: grid; gap: 4px; font-size: 14px; }
.ml-msgs { display: flex; flex-direction: column; gap: 2px; max-height: 84px; overflow: auto; }
.ml-msgs i { font-style: normal; opacity: .7; margin-right: 6px; }
.ml-who { display: flex; flex-wrap: wrap; gap: 6px; }
.ml-res { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12px; opacity: .85; justify-content: center; }
.ml-res .team-red { color: #ff8d8d; } .ml-res .team-blue { color: #8dc4ff; }
.ml-ladder { list-style: none; margin: 0; padding: 4px; display: grid; gap: 1px; border-radius: 12px; background: rgba(0, 0, 0, .35); border: 1px solid rgba(63, 208, 168, .35); }
.ml-ladder li { display: flex; gap: 6px; padding: 1px 6px; border-radius: 6px; font-size: 12px; line-height: 1.35; opacity: .75; }
.ml-ladder li i { width: 18px; text-align: right; font-style: normal; opacity: .7; }
.ml-ladder li b { font-weight: 600; }
.ml-ladder li.safe { color: #ffe39a; opacity: 1; }
.ml-ladder li.done { opacity: .45; }
.ml-ladder li.now { background: #ffb13b; color: #1a1205; opacity: 1; font-weight: 800; }
@media (max-width: 640px) {
  .ml-body { grid-template-columns: 1fr; }
  .ml-ladder { order: -1; display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; }
  .ml-ladder li:not(.now):not(.safe) { display: none; }
  .ml-choices { grid-template-columns: 1fr; }
}
.ml-confirm { flex-wrap: wrap; }
.ml-confirm > :first-child { flex-basis: 100%; }
.ml-confirm .btn-main, .ml-confirm .btn-sub, .ml-phone .btn-main { width: auto; min-height: 0; padding: 6px 18px; font-size: 14px; margin: 0; }
.ml-confirm > span { text-align: center; }
