/* Shared Colorfall HUD: Journey structure without forcing Journey gameplay on Classic. */
.match3-classic-game .m3c-cockpit{display:grid;min-width:0;align-content:start;gap:10px}
.match3-classic-game .match3-hud{display:grid!important;grid-template-columns:minmax(100px,1.4fr) repeat(2,minmax(60px,.8fr))!important;gap:5px!important;margin:0!important;padding:0!important;border:0!important;background:none!important;box-shadow:none!important}
.match3-classic-game .match3-hud>section{box-sizing:border-box;display:grid;min-width:0;min-height:64px;padding:8px 3px;place-content:center;text-align:center;border:2px solid #ffffff40;border-radius:15px;box-shadow:inset 0 2px #ffffff61,inset 0 -6px #03071238,0 4px #03071270,0 8px 16px #0004}
.match3-classic-game .match3-hud>section:nth-child(1){border-color:#ff8ab5;background:#d91661}
.match3-classic-game .match3-hud>section:nth-child(2){border-color:#79efff;background:#009fbd}
.match3-classic-game .match3-hud>section:nth-child(3){border-color:#d49aff;background:#7826c9}
.match3-classic-game .match3-hud small{color:#ffffffe0;font-size:8px;font-weight:900;letter-spacing:.1em}
.match3-classic-game .match3-hud strong{display:block;margin-top:3px;color:#fff;font-size:clamp(18px,1.7vw,24px);text-shadow:0 2px 3px #0007}
.match3-classic-game .m3j-hud-audio{display:none!important}
.match3-classic-game .match3-goals{box-sizing:border-box!important;display:flex!important;flex-direction:column;gap:7px!important;margin:0!important;padding:13px!important;border:2px solid #c084fc85!important;border-radius:18px!important;background:#24143ef2!important;box-shadow:inset 0 2px #ffffff20,inset 0 -6px #0508183d,0 5px #03071257,0 12px 24px #0004!important}
.match3-classic-game .match3-goals>header{display:flex!important;margin:0!important;padding:0 0 9px!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;border:0!important;background:none!important}
.match3-classic-game .match3-goals>header span{color:#f0abfc;font-size:9px;font-weight:900;letter-spacing:.1em}
.match3-classic-game .match3-goals>header strong{color:#fde047;font-size:12px;text-shadow:0 0 10px #facc157d}
.match3-classic-game .m3j-star-track{width:100%!important;margin:0!important}
.match3-classic-game [data-star-rail-value]{display:none!important;height:0!important;min-height:0!important;margin:0!important}
.match3-classic-game .unified-star-rail{box-sizing:border-box;align-items:center;gap:0;padding:0!important}
.match3-classic-game .unified-star-track{margin-block:10px!important}
@media(min-width:901px){
 .match3-classic-game .m3c-cockpit{grid-column:2;grid-row:2/4}
 .match3-classic-game .match3-hud,.match3-classic-game .match3-goals{grid-column:auto!important;grid-row:auto!important;width:100%!important}
}
@media(max-width:900px){
 .match3-classic-game .m3c-cockpit{display:grid!important;grid-template-columns:1fr!important;gap:4px!important}
 .match3-classic-game .match3-hud{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:4px!important}
 .match3-classic-game .match3-hud>section{min-height:43px;padding:5px 2px;border-radius:10px}
 .match3-classic-game .match3-goals{padding:7px!important;border-radius:13px!important}
}
@media(max-width:560px){
 .match3-classic-game .match3-hud{height:42px!important}
 .match3-classic-game .match3-hud>section{min-height:42px!important;padding:4px 2px!important}
 .match3-classic-game .match3-hud small{font-size:6px}.match3-classic-game .match3-hud strong{font-size:16px}
 .match3-classic-game .match3-goals{min-height:68px!important;padding:6px 8px 8px!important}
 .match3-classic-game .match3-goals>header{min-height:12px!important;padding:0 1px 2px!important}
 .match3-classic-game .m3j-star-track{height:32px!important;min-height:32px!important;align-self:center!important}
 /* The score rail consumes all space left by the actual number of goal cards. */
 html body [data-match3-game].m3j-game .match3-goals{grid-template-columns:minmax(0,1fr) auto!important}
 html body [data-match3-game].m3j-game .m3j-objective-chips{box-sizing:border-box!important;width:var(--m3j-goal-width,0px)!important;max-width:164px!important}
 html body [data-match3-game].m3j-game .match3-goals[data-goal-count="0"] .m3j-objective-chips{display:none!important;width:0!important}
 html body [data-match3-game].m3j-game .m3j-star-track{width:100%!important;min-width:0!important}
}
/* Classic Colorfall uses the same foreground cascade card as Journey. */
.match3-classic-game .match3-board-wrap{isolation:isolate}
.match3-classic-game .match3-burst{z-index:45!important}
.match3-classic-game .match3-burst.combo-identity{display:grid;min-width:min(82vw,330px);gap:2px;padding:10px 18px;border:1px solid #ffffff36;border-radius:18px;background:linear-gradient(135deg,#130b29f2,#07182af2);box-shadow:0 14px 35px #0009,0 0 30px color-mix(in srgb,var(--combo-color,#c084fc) 36%,transparent);color:#fff;font-size:clamp(18px,5vw,31px);line-height:1;text-align:center;text-shadow:none}
.match3-classic-game .match3-burst.combo-identity small{color:#fff;font-size:.35em;font-weight:900;letter-spacing:.18em}
.match3-classic-game .match3-burst.combo-identity strong{color:var(--combo-color,#c084fc);font-size:1em;text-shadow:0 0 18px color-mix(in srgb,var(--combo-color,#c084fc) 58%,transparent)}
.match3-classic-game .match3-burst.combo-tier-2{--combo-color:#67e8f9}
.match3-classic-game .match3-burst.combo-tier-3{--combo-color:#a7f3d0}
.match3-classic-game .match3-burst.combo-tier-4{--combo-color:#fde68a}
.match3-classic-game .match3-burst.combo-tier-5{--combo-color:#f0abfc}
.match3-classic-game.combo-live .match3-board-wrap{filter:drop-shadow(0 0 12px color-mix(in srgb,var(--combo-color,#c084fc) 32%,transparent))}
@media(max-width:680px){.match3-classic-game .match3-burst.combo-identity{padding:8px 13px;border-radius:14px}}
