/* コンボ演出の土台の見た目（combo.js と組）。既定の色は九州キング（火の赤 → 金）。曲ごとの色は下の .cbs-<曲のID> */
/* 本体が拍ごとに背景を少しゆらすので、ふちから地の色が見えないよう、絵は 14px ずつ大きく置く */
#cbgl { position:absolute; left:-14px; top:-14px; width:calc(100% + 28px); height:calc(100% + 28px); pointer-events:none; opacity:0; visibility:hidden; }
#cbcv { display:none; }
#cbov { position:absolute; inset:0; z-index:5; pointer-events:none; overflow:hidden; }
#cbov .fl { position:absolute; inset:0; opacity:0; background:#ffe9b0; }
#play { transition:background-color .5s; }

/* 景色が出ている間は、文字を明るい色にそろえる（夜の景色の上でも読めるように）。ミスで元に戻る */
.cbx[data-cbn="1"] #play { --field:#070912 !important; --fg:#fff3e0 !important; --ink:#fff3e0 !important; --acc1:#ff9a7a !important; --acc2:#9fd0ff !important; --ball:#2a1a16 !important; }
.cbx[data-cbn="1"] .fline .w.in .tx { opacity:.62; }
/* 景色の上にもともとの背景の飾り（輪・県名の大きな字）を重ねない */
.cbx[data-cbn="1"] #play .bg > :not(#cbgl):not(#cbcv) { opacity:0; transition:opacity .4s; }
.cbx[data-cbn="1"] #play .bg::before, .cbx[data-cbn="1"] #play .bg::after { opacity:0 !important; }
#play .bg > :not(#cbgl) { transition:opacity .4s; }

/* はまる板・光の柱・火花の色：5 火の赤 → 10 橙 → 20 金 → FEVER 白金 */
.cbx[data-cbt="1"] { --cbc:#ff5a2e; } .cbx[data-cbt="2"] { --cbc:#ff8a1a; } .cbx[data-cbt="3"] { --cbc:#ffc24a; } .cbx[data-cbt="4"] { --cbc:#ffe38f; }
.cbx:not([data-cbt="0"]) .a6col { background:linear-gradient(#fff, color-mix(in srgb, var(--cbc) 85%, transparent) 28%, color-mix(in srgb, var(--cbc) 35%, transparent) 75%, transparent); box-shadow:0 0 30px var(--cbc); }
.cbx:not([data-cbt="0"]) .a6plate { background:color-mix(in srgb, var(--cbc) 70%, #fff); box-shadow:0 0 16px var(--cbc); }
.cbx:not([data-cbt="0"]) .a6edge { box-shadow:0 0 0 3px #fff, 0 0 14px 4px var(--cbc); background:color-mix(in srgb, var(--cbc) 30%, transparent); }
.cbx:not([data-cbt="0"]) .a6spk { background:var(--cbc); box-shadow:0 0 6px var(--cbc); }
.cbx[data-cbt="3"] .a6col, .cbx[data-cbt="4"] .a6col { box-shadow:0 0 44px 6px var(--cbc); }
.cbx:not([data-cbt="0"]) #a5strip { box-shadow:inset 0 0 0 1.5px var(--cbc), 0 0 14px color-mix(in srgb, var(--cbc) 55%, transparent); background:linear-gradient(rgba(10,8,14,.6), rgba(10,8,14,.82)); transition:box-shadow .5s; }
.cbx #chain .cbrk { display:none !important; }

/* FEVER の字：コンボの数字の下と、下の帯（真ん中には出さない）。
   11/18 リュウスイのレビュー＋塾長「オススメで」：タイトルやコンボの数字と同じ細い字（Jost）・広い字間・単色。派手さは字でなく景色で出す。動きは transform と字間だけ */
.cbfc, .cbfs { display:none; pointer-events:none; }
.cbfc b, .cbfs b { display:inline-block; font-family:"Jost", var(--ui, sans-serif); color:var(--cbf, #ffe38f); white-space:nowrap; }
.cbfc b { font-weight:500; font-size:13px; line-height:1; letter-spacing:.5em; padding-left:.5em; text-shadow:0 0 8px color-mix(in srgb, var(--cbf, #ffe38f) 70%, transparent); }
.cbx[data-cbt="4"] .cbfc { display:block; margin-top:4px; }
.cbx[data-cbt="4"] #chain .cl { display:none; }
.cbx[data-cbt="4"] .cbfs { display:flex; position:absolute; inset:0; align-items:center; justify-content:center; overflow:hidden; }
.cbfs b { font-weight:300; font-size:60px; line-height:1; letter-spacing:.3em; padding-left:.3em; opacity:.34; }
.cbfs::before { content:""; position:absolute; top:0; bottom:0; width:38%; left:0; background:linear-gradient(90deg, transparent, color-mix(in srgb, var(--cbf, #ffe38f) 26%, transparent), transparent); will-change:transform; animation:cbsweep 1.86s linear infinite; }
.cbx[data-cbt="4"] #a5strip .a5hint { display:none; }
.cbfc.go b { animation:cbin .7s cubic-bezier(.2,.8,.3,1); }
.cbfs.go b { animation:cbin2 .8s cubic-bezier(.2,.8,.3,1); }
@keyframes cbsweep { from { transform:translateX(-110%) skewX(-18deg); } to { transform:translateX(290%) skewX(-18deg); } }
@keyframes cbin { 0% { letter-spacing:1.6em; padding-left:1.6em; opacity:0; } 100% { letter-spacing:.5em; padding-left:.5em; opacity:1; } }
@keyframes cbin2 { 0% { letter-spacing:.9em; padding-left:.9em; opacity:0; } 40% { opacity:.7; } 100% { letter-spacing:.3em; padding-left:.3em; opacity:.34; } }

/* 景色の上でも言葉が読めるように、まだ叩いていない言葉の枠にうすい暗い地を敷く（景色は言葉の後ろ） */
.cbx[data-cbn="1"] .fline .w:not(.jhit):not(.a6a)::before { background:rgba(8,6,14,.52); border-color:rgba(255,243,224,.34); opacity:1; }

/* ───── どっちもええよ：明るい朝の海なので、文字は濃い青緑・言葉の枠は白い地。色はターコイズ → 桃 → 橙 → 虹 ───── */
.cbs-dochimo-eeyo[data-cbn="1"] #play { --field:#eaf7f4 !important; --fg:#0b2e36 !important; --ink:#0b2e36 !important; --acc1:#c63a2a !important; --acc2:#1a55b5 !important; --ball:#bfe3de !important; }
.cbs-dochimo-eeyo[data-cbn="1"] .fline .w:not(.jhit):not(.a6a)::before { background:rgba(255,252,246,.62); border-color:rgba(11,46,54,.3); }
.cbs-dochimo-eeyo[data-cbn="1"] .fline .w.in .tx { opacity:.7; }
.cbs-dochimo-eeyo #cbov .fl { background:#fff6e6; }
.cbs-dochimo-eeyo[data-cbt="1"] { --cbc:#23bfb2; } .cbs-dochimo-eeyo[data-cbt="2"] { --cbc:#ff8f7c; } .cbs-dochimo-eeyo[data-cbt="3"] { --cbc:#ffa53a; } .cbs-dochimo-eeyo[data-cbt="4"] { --cbc:#ff6fae; }
.cbs-dochimo-eeyo:not([data-cbt="0"]) #a5strip { background:linear-gradient(rgba(8,44,52,.5), rgba(8,44,52,.72)); }
.cbs-dochimo-eeyo { --cbf:#0b2e36; }
.cbs-dochimo-eeyo .cbfc b { text-shadow:none; padding-bottom:5px; background:linear-gradient(90deg, #ff6b6b, #ffb347, #ffe66d, #5fd38d, #4fc3f7, #9f7aea) left bottom / 100% 2px no-repeat; }
.cbs-dochimo-eeyo .cbfs b { color:#eafaf7; }
.cbs-dochimo-eeyo[data-cbn="1"] #play.cue-outline .fline .w:not(.jhit):not(.miss) > .tx:not(.tfill) { -webkit-text-fill-color:var(--wc); -webkit-text-stroke:0; }

.cbs-kyushu-king[data-cbn="1"][data-cbt="3"] .fline .w:not(.jhit):not(.a6a)::before, .cbs-kyushu-king[data-cbn="1"][data-cbt="4"] .fline .w:not(.jhit):not(.a6a)::before { background:rgba(8,6,14,.74); }
.cbs-kyushu-king[data-cbn="1"][data-cbt="3"] .fline .w.in .tx, .cbs-kyushu-king[data-cbn="1"][data-cbt="4"] .fline .w.in .tx { opacity:.8; }

/* ───── ミナモト：夜明け前の暗い景色に光る雪どけ水。文字は既定（明るい字・暗い地）。色は 氷の青 → ミント → 電気の黄 → 白 ───── */
.cbs-minamoto[data-cbn="1"] #play { --field:#040b16 !important; --fg:#eaf7ff !important; --ink:#eaf7ff !important; --acc1:#ff9a8c !important; --acc2:#8fd8ff !important; --ball:#12283a !important; }
.cbs-minamoto[data-cbn="1"] .fline .w:not(.jhit):not(.a6a)::before { background:rgba(4,10,20,.6); border-color:rgba(234,247,255,.32); }
.cbs-minamoto #cbov .fl { background:#dffff6; }
.cbs-minamoto[data-cbt="1"] { --cbc:#8fd8ff; } .cbs-minamoto[data-cbt="2"] { --cbc:#59f0cf; } .cbs-minamoto[data-cbt="3"] { --cbc:#ffe27a; } .cbs-minamoto[data-cbt="4"] { --cbc:#ffffff; }
.cbs-minamoto { --cbf:#8ff0d8; }

/* ───── 全曲共通の仕上げ：景色のふちを少し落として、まん中の言葉へ目が行くように（リュウスイのレビュー 11/18） ───── */
#cbov::after { content:""; position:absolute; inset:0; opacity:0; transition:opacity .5s; background:radial-gradient(ellipse 78% 62% at 50% 46%, transparent 55%, rgba(6,20,31,.34) 100%); }
.cbx[data-cbn="1"] #cbov::after { opacity:1; }
.cbx[data-cbw="1"] #cbov::after { opacity:0 !important; transition:opacity .12s; }

/* ミナモト：20 コンボから先は、うっすらモニターの走査線（電波ソングらしさ） */
.cbs-minamoto #cbov::before { content:""; position:absolute; inset:0; opacity:0; transition:opacity .4s; background:repeating-linear-gradient(0deg, rgba(255,255,255,.045) 0 1px, transparent 1px 3px), linear-gradient(90deg, rgba(255,122,217,.06), transparent 30%, transparent 70%, rgba(127,246,255,.06)); }
.cbs-minamoto[data-cbt="3"] #cbov::before, .cbs-minamoto[data-cbt="4"] #cbov::before { opacity:1; }
.cbs-minamoto[data-cbt="4"] { --cbc:#ff7ad9; }

/* 七華繚乱（11/20）：7 色ネオン */
.cbs-shichika-ryouran { --cbf:#ffd0ec; }
.cbs-shichika-ryouran[data-cbt="1"] { --cbc:#19e6ff; } .cbs-shichika-ryouran[data-cbt="2"] { --cbc:#b14cff; } .cbs-shichika-ryouran[data-cbt="3"] { --cbc:#ff8a1f; } .cbs-shichika-ryouran[data-cbt="4"] { --cbc:#ff3fa4; }

/* 夜明けのメトロポリス（11/20）：夜の青緑 → 朝の金 */
.cbs-yoake-metropolis { --cbf:#0a1430; }
.cbs-yoake-metropolis[data-cbt="1"] { --cbc:#5fe8d8; } .cbs-yoake-metropolis[data-cbt="2"] { --cbc:#8ff0ff; } .cbs-yoake-metropolis[data-cbt="3"] { --cbc:#ff8a3a; } .cbs-yoake-metropolis[data-cbt="4"] { --cbc:#ffc45a; }

/* キュン♡東北！（11/20）：ねぶたが言葉の後ろを通るので、景色が出ている間は言葉の下地を濃く */
.cbs-kyun-tohoku[data-cbn="1"][data-cbt="2"] .fline .w:not(.jhit):not(.a6a)::before, .cbs-kyun-tohoku[data-cbn="1"][data-cbt="3"] .fline .w:not(.jhit):not(.a6a)::before, .cbs-kyun-tohoku[data-cbn="1"][data-cbt="4"] .fline .w:not(.jhit):not(.a6a)::before { background:rgba(8,6,14,.72); }

/* 北の空まで（11/20）：空色 → 小麦の金 → ラベンダー → 白い光 */
.cbs-kita-no-sora-made[data-cbt="1"] { --cbc:#4fb8ff; } .cbs-kita-no-sora-made[data-cbt="2"] { --cbc:#e8b43a; } .cbs-kita-no-sora-made[data-cbt="3"] { --cbc:#a98bff; } .cbs-kita-no-sora-made[data-cbt="4"] { --cbc:#ffffff; }
