/* The highway, input pads and dancer each have their own layout space. */
body.compact-game{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;height:100dvh;overflow:hidden;background:#0d1017;color:#eef1f6}
.compact-game>header{height:50px;flex-basis:50px;padding:0 16px;background:#10141d;border-color:#28303c}
.compact-game>main{max-width:1020px;padding:10px 16px 12px;gap:8px;min-height:0;overflow-y:auto}
.compact-game .intro h1{font-family:inherit;font-size:26px;font-weight:800;letter-spacing:-1px;text-transform:none}
.compact-game .intro h1 em{font-style:normal;color:#efca70}
.compact-game .guate-badge{position:static;font-size:11px}
.compact-game .quick-controls{display:grid;grid-template-columns:minmax(0,1fr) repeat(3,150px);gap:8px;position:static;min-height:44px}
.compact-game .quick-controls #rhythm-select,.compact-game .quick-role #quick-role-select,.compact-game .quick-controls #open-settings{height:44px;min-height:44px;font-size:14px;border-radius:9px;padding:8px;background:#17212d;border:1px solid #43536b;color:#f4f6fa}
.compact-game .quick-controls #open-settings{border-color:#be9a4d;background:#252219;color:#ffe2a0}
.compact-game #training-status{font-size:12px;line-height:16px;padding:0;min-height:16px}
.compact-game .workspace,.compact-game[data-game-state=idle] .workspace,.compact-game[data-game-state=challenge] .workspace{min-height:360px;gap:6px;flex:1}
.compact-game .play-layout{display:grid;grid-template-columns:minmax(0,1fr) 180px;gap:16px;flex:1;min-height:0;width:100%;align-self:stretch}
.compact-game .game-card,.compact-game[data-training=ninja] .game-card{min-height:0;grid-template-rows:44px 44px minmax(130px,1fr) 78px 44px 3px;border:1px solid #344052;border-radius:14px;background:#131923;box-shadow:0 12px 35px #0004}
.compact-game[data-training=ninja] .game-card{grid-template-rows:44px minmax(130px,1fr) 78px 44px 3px}
.compact-game .stats{padding:0 14px;background:#151c27;border-color:#283342}
.compact-game .stats strong{font-family:inherit;font-size:21px;font-weight:750;font-variant-numeric:tabular-nums}
.compact-game .stats>div>span{font-size:10px;letter-spacing:.07em}
.compact-game .wave-panel{padding:3px 10px 0;background:#101722}
.compact-game #waveform{height:28px}
.compact-game .arena{--lane-left:25%;--lane-right:75%;height:auto;min-height:0;background:#0d141f;isolation:isolate}
.compact-game .rhythm-lanes{position:absolute;inset:0;display:grid;grid-template-columns:1fr 1fr;z-index:0;pointer-events:none}
.rhythm-lanes>div{border-inline:1px solid #e5b74e18;background:linear-gradient(180deg,#e5b74e03,#e5b74e0d)}
.rhythm-lanes>div:last-child{border-color:#79bfff18;background:linear-gradient(180deg,#79bfff03,#79bfff0d)}
.compact-game .lane-labels{top:8px;font-size:10px;letter-spacing:.12em;pointer-events:none;z-index:1}
.compact-game #notes{position:absolute;inset:0;pointer-events:none;z-index:2}
.compact-game .note{top:0;width:44px;height:44px;margin-left:-22px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;border-radius:50%;border:2px solid #f1d184;background:#644b22;color:#fff3ce;box-shadow:0 0 10px #e5b74e22;pointer-events:none;cursor:default;will-change:transform;transition:none;outline:none}
.compact-game .note.r{border-color:#a8d5ff;background:#294e76;color:#eaf6ff;box-shadow:0 0 10px #79bfff22}
.compact-game .note b,.compact-game .note.break-step b{font-size:17px;line-height:19px;color:inherit}
.compact-game .note.break-step{outline:none;box-shadow:inset 0 0 0 2px #ffffff30}
.compact-game .note.tap{border-style:dashed}
.compact-game .note.tap small,.compact-game .note.tap.r small{position:static;transform:none;border:0;background:none;letter-spacing:0;font-size:9px;line-height:10px;padding:0;color:inherit}
.compact-game .impact{display:block!important;visibility:visible;position:absolute;top:auto;bottom:30px;height:0;width:100%;border-top:1px solid #f0f4ff40;background:none;z-index:1;pointer-events:none}
.compact-game .impact>span{top:0;left:25%;width:44px;height:44px;margin:0;border:2px solid #edc36180;border-radius:50%;background:#16202dcc;transform:translate(-50%,-50%)!important;color:#edc361;font-size:0;line-height:0;box-shadow:none}
.compact-game .impact>span:last-child{left:75%;border-color:#89caff80;color:#89caff;background:#16202dcc}
.compact-game .pad-labels,.compact-game #edge-feedback{display:none!important}
.compact-game .touch-controls{position:static;transform:none;display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:8px 10px;border-top:1px solid #344052;z-index:auto;background:#141c28}
.compact-game .touch-controls button{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;width:100%;min-height:60px;height:60px;padding:4px 8px;border:1px solid #dfb957;border-radius:10px;background:#352c1c;color:#ffe2a0;touch-action:none;box-shadow:0 2px 0 #806524;transition:background 100ms}
.compact-game .touch-controls button:last-child{background:#1d354c;color:#c5e4ff;border-color:#82b9eb;box-shadow:0 2px 0 #3b668c}
.compact-game .touch-controls button::before{display:none}
.compact-game .hit-zone-name{position:static;font-size:16px;font-weight:800;letter-spacing:.04em;line-height:20px}
.compact-game .touch-controls small{position:static;font-size:10px;line-height:12px;letter-spacing:.1em;margin:0}
.compact-game .touch-controls kbd{position:absolute;right:8px;top:22px;font-size:10px;padding:2px 4px;background:#0002;border-color:#ffffff20;color:inherit}
.compact-game .touch-controls .show-finger{padding-left:8px!important}
.compact-game .touch-controls .pressed{filter:brightness(1.2);animation:pad-pulse 160ms ease-out}
@keyframes pad-pulse{from{box-shadow:inset 0 0 0 2px #ffffffa0}to{box-shadow:inset 0 0 0 0 #ffffff00}}
.compact-game .transport{padding:0 8px;gap:6px;background:#151c27;border-color:#283342}
.compact-game .transport button{min-height:36px}
.compact-game .dancer-side-panel{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;min-height:0;border:1px solid #2b3544;border-radius:14px;background:#141b26;padding:14px;text-align:center}
.dancer-side-panel h2{font-family:inherit;font-weight:700;font-size:14px;line-height:1.3;text-transform:none;margin:0;color:#c9d3e1}
.dancer-side-panel>p{font-size:12px;line-height:1.5;color:#9fadc0;margin:0}
.compact-game .dancer-side-panel .dance-stage,.compact-game[data-game-state=playing] .dancer-side-panel .dance-stage,.compact-game:not([data-game-state=playing]) .dancer-side-panel .dance-stage{position:static;display:flex;transform:none;width:100%;max-width:none;height:220px;max-height:70%;opacity:1;background:none;pointer-events:none}
.compact-game .dance-stage #guide-content{height:100%;width:100%;display:flex;align-items:center;justify-content:center}
.compact-game .dance-stage #dancer{width:100%;height:100%;max-height:220px;overflow:hidden}
.compact-game .dance-stage p{display:none!important}
.compact-game .start-overlay,.compact-game[data-game-state=idle] .start-overlay,.compact-game[data-game-state=paused] .start-overlay{inset:0;left:0;width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;background:#0d141ff5;padding:16px;gap:8px;overflow-y:auto;text-align:center}
.compact-game .start-overlay h2{font-family:inherit;font-size:28px;font-weight:800;line-height:1.15;text-transform:none;margin:0;max-width:100%}
.compact-game .start-overlay #overlay-text{font-size:14px;line-height:1.45;max-width:36ch;margin:0}
.compact-game .start-overlay button{min-height:44px;font-size:14px;max-width:280px;width:100%;min-width:0;margin:0}
.compact-game .start-overlay .mini,.compact-game #overlay-caption{display:none}
.compact-game .feedback-strip{min-height:30px;height:30px;gap:10px;flex-shrink:0}
.compact-game .feedback-strip #feedback:not(:empty){font-family:inherit;font-size:16px;line-height:22px;min-width:90px;padding:1px 8px}
.compact-game .feedback-strip #feedback-detail{font-size:12px;line-height:16px}
.compact-game #step-label.floor-step-label{font-size:11px;line-height:15px;min-height:15px;color:#9fadc0}
.compact-game .desktop-shortcuts{font-size:11px;line-height:15px;margin:0}
.compact-game .sequence{min-height:30px}
.compact-game .beat small{font-size:9px}
.compact-game[data-game-state=finished] .game-card{grid-template-rows:minmax(0,1fr) 44px 3px}
.compact-game[data-game-state=finished] .arena{overflow-y:auto;min-height:0}
.compact-game[data-game-state=finished] .start-overlay,.compact-game[data-game-state=challenge] .start-overlay{inset:0;left:0;width:100%;display:flex;flex-direction:column;justify-content:flex-start;background:#0d141f;padding:16px;overflow-y:auto;gap:10px}
.compact-game .result-grid>span{font-size:12px;min-height:52px}
.compact-game .result-grid strong{font-family:inherit;font-size:19px}
#game-settings .paused-note{display:block;font-size:14px;line-height:1.5}
#game-settings .dialog-heading button{min-height:44px;min-width:44px}
#game-settings .dance-stage{position:static;display:flex;transform:none;width:100%;height:180px;max-width:none;background:none}
#game-settings .dance-stage #dancer{height:180px;width:180px}
.round-settings-form{display:grid;grid-template-columns:1fr 1fr;gap:16px;padding:8px 0 20px}
.round-settings-form>label{font-size:14px;display:flex;flex-direction:column;gap:8px;min-width:0;color:#f4f0e7}
.round-settings-form select{min-height:44px;font-size:16px;width:100%;padding:10px}
.round-settings-form input[type=range]{height:36px;margin:0;width:100%}
.round-settings-form output{font-size:16px;color:#f0cf7c}
.round-settings-form .draft-windows{grid-column:1/-1;margin:0;font-size:14px;line-height:1.5;color:#c8c3d5}
.round-settings-form .draft-checkbox{flex-direction:row;align-items:center}
.round-settings-form input[type=checkbox]{width:22px;height:22px;accent-color:#e5b74e}
.settings-actions{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:10px;padding-top:8px}
.settings-actions button{min-height:48px;border:1px solid #857b96;border-radius:9px;background:#25202e;padding:10px 14px;font-size:14px}
.settings-actions .primary{flex:1;background:#e5b74e;color:#1c180f;border-color:#e5b74e;min-width:0;font-weight:800}
@media(max-width:700px){
 .compact-game>main{padding:6px 8px 8px;gap:5px}
 .compact-game .quick-controls{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
 .compact-game .guate-badge{display:none}
 .compact-game .intro h1{font-size:22px}
 .compact-game .play-layout{grid-template-columns:minmax(0,1fr)}
 .compact-game .dancer-side-panel{display:none}
 .compact-game .game-card{grid-template-rows:38px 36px minmax(130px,1fr) 78px 42px 3px}
 .compact-game[data-training=ninja] .game-card{grid-template-rows:38px minmax(130px,1fr) 78px 42px 3px}
 .compact-game .touch-controls kbd{display:none}
 .compact-game .workspace,.compact-game[data-game-state=idle] .workspace,.compact-game[data-game-state=challenge] .workspace{min-height:330px}
 .compact-game .desktop-shortcuts,.compact-game #step-label.floor-step-label{display:none}
 .compact-game[data-game-state=finished] .game-card{grid-template-rows:minmax(0,1fr) 42px 3px}
 .compact-game .start-overlay h2{font-size:24px}
}
@media(max-height:600px){
 .compact-game>header{height:40px;flex-basis:40px}
 .compact-game>main{min-height:0;gap:3px;padding:4px 8px;overflow-y:auto}
 .compact-game .intro,.compact-game .guate-badge,.compact-game .sequence,.compact-game .desktop-shortcuts,.compact-game #step-label.floor-step-label{display:none}
 .compact-game .quick-controls{grid-template-columns:repeat(3,minmax(0,1fr));min-height:40px}
 .compact-game .quick-controls #rhythm-select,.compact-game .quick-role #quick-role-select,.compact-game .quick-controls #open-settings{height:40px;min-height:40px}
 .compact-game .workspace,.compact-game[data-game-state=idle] .workspace,.compact-game[data-game-state=challenge] .workspace{min-height:250px;gap:3px}
 .compact-game .play-layout{grid-template-columns:minmax(0,1fr)}
 .compact-game .dancer-side-panel{display:none}
 .compact-game .game-card{grid-template-rows:28px 20px minmax(100px,1fr) 60px 38px 3px}
 .compact-game[data-training=ninja] .game-card{grid-template-rows:28px minmax(100px,1fr) 60px 38px 3px}
 .compact-game .touch-controls{padding:4px 8px;gap:8px}
 .compact-game .touch-controls button{height:52px;min-height:52px}
 .compact-game .hit-zone-name{font-size:14px;line-height:18px}
 .compact-game .wave-panel{padding:0 8px}
 .compact-game .wave-panel>div{display:none}
 .compact-game #waveform{height:20px}
 .compact-game .feedback-strip{height:24px;min-height:24px}
 .compact-game .feedback-strip #feedback:not(:empty){font-size:14px;line-height:18px}
 .compact-game .transport button{height:34px;min-height:34px}
 .compact-game .start-overlay,.compact-game[data-game-state=idle] .start-overlay{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:auto auto auto;align-content:center;justify-items:center;gap:4px 10px;padding:6px 14px}
 .compact-game .start-overlay h2{grid-column:1/-1;font-size:20px}
 .compact-game .start-overlay #overlay-text{grid-column:1/-1;max-width:none;font-size:12px;line-height:1.3}
 .compact-game .start-overlay #start,.compact-game .start-overlay #demo{grid-row:3;min-height:36px;font-size:12px;padding:8px}
 .compact-game .start-overlay #start{grid-column:1}
 .compact-game .start-overlay #demo{grid-column:2}
 .compact-game[data-game-state=paused] .start-overlay{display:flex}
 .compact-game[data-game-state=finished] .game-card{grid-template-rows:minmax(0,1fr) 38px 3px}
 .compact-game[data-game-state=finished] .start-overlay,.compact-game[data-game-state=challenge] .start-overlay{display:flex;justify-content:flex-start}
}
@media(max-width:380px){.round-settings-form{grid-template-columns:1fr}.settings-actions{flex-direction:column}.settings-actions button{width:100%}.compact-game .quick-controls #open-settings{font-size:12px}}
@media(prefers-reduced-motion:reduce){.compact-game .touch-controls .pressed,.compact-game .feedback-strip #feedback.feedback-pop{animation:none}.compact-game .touch-controls button{transition:none}.compact-game .note{box-shadow:none}}
.compact-game .hit-zone-name{font-family:inherit;font-size:14px;font-weight:800;letter-spacing:.04em}
@media (max-height:600px) and (min-width:701px){
 .compact-game[data-game-state=playing]>header,.compact-game[data-game-state=paused]>header{display:none}
 .compact-game[data-game-state=playing] .quick-controls,.compact-game[data-game-state=paused] .quick-controls{position:absolute;right:8px;top:4px;width:110px;display:block;min-height:0;z-index:4}
 .compact-game[data-game-state=playing] .quick-controls select,.compact-game[data-game-state=paused] .quick-controls select,.compact-game[data-game-state=playing] .quick-role,.compact-game[data-game-state=paused] .quick-role{display:none}
 .compact-game[data-game-state=playing] #training-status,.compact-game[data-game-state=paused] #training-status{height:40px;display:flex;align-items:center;padding-right:120px}
 .compact-game .note{width:28px;height:28px;margin-top:8px;margin-left:-14px;font-size:13px}
 .compact-game .note::after{display:none}
 .compact-game .impact span{width:28px;height:28px}
 .compact-game .stats strong{font-size:17px;line-height:19px}
}
@media(max-height:600px){
 .compact-game .stats{height:28px;padding:0 10px;align-items:center}
 .compact-game .stats>div{display:flex;flex-direction:row;align-items:baseline;gap:6px}
 .compact-game .stats>div>span{font-size:8px}
 .compact-game .stats strong{font-size:17px;line-height:19px}
 .compact-game .lane-labels{display:none}
}
/* Center floor: decorative dancer between the two playable foot lanes. */
.compact-game .play-layout{grid-template-columns:minmax(0,1fr)}
.compact-game .arena{background:radial-gradient(ellipse at 50% 70%,#30413e66,transparent 60%),#0d141f}
.compact-game .arena .dance-stage,
.compact-game[data-game-state=playing] .arena .dance-stage,
.compact-game:not([data-game-state=playing]) .arena .dance-stage{position:absolute;left:50%;top:50%;bottom:auto;transform:translate(-50%,-50%);width:220px;height:min(88%,320px);max-width:30%;max-height:none;display:flex;opacity:1;z-index:1;background:none;pointer-events:none}
.compact-game .arena .dance-stage #dancer{max-height:none}
.compact-game .note,.compact-game .note.r{background:none;border:0;box-shadow:none;color:#ffcf69;overflow:visible}
.compact-game .note.r{color:#91caff}
.compact-game .note .footprint{position:absolute;inset:0;width:100%;height:100%;fill:currentColor;filter:drop-shadow(0 1px 4px #0009)}

.compact-game .note b,.compact-game .note.break-step b{position:absolute;top:24px;left:13px;width:18px;font-family:inherit;font-size:11px;line-height:14px;text-align:center;color:#17212c;z-index:1}
.compact-game .note.r b{left:12px}
.compact-game .note.tap small{position:absolute;top:43px;font-size:8px;line-height:10px;font-weight:700;color:inherit}
.compact-game .note.break-step{outline:none;box-shadow:none}
.compact-game .note.aligned .footprint{filter:drop-shadow(0 0 7px currentColor)}
.compact-game .start-overlay{z-index:5}
@media(max-width:700px){
 .compact-game .arena .dance-stage,.compact-game[data-game-state=playing] .arena .dance-stage,.compact-game:not([data-game-state=playing]) .arena .dance-stage{width:120px;max-width:30%;height:min(80%,270px)}
}
@media(max-height:600px) and (min-width:701px){
 .compact-game .arena .dance-stage,.compact-game[data-game-state=playing] .arena .dance-stage,.compact-game:not([data-game-state=playing]) .arena .dance-stage{width:115px;height:90%;max-width:25%}
 .compact-game .note b,.compact-game .note.break-step b{top:15px;left:7px;width:14px;font-size:9px;line-height:11px}
 .compact-game .note.r b{left:7px}
 .compact-game .note.tap small{display:none}
}
@media(prefers-reduced-motion:reduce){.compact-game .note .footprint,.compact-game .note.aligned .footprint{filter:none}}
.compact-game #notes{clip-path:inset(28px 0 0)}
@media(max-height:600px){.compact-game #notes{clip-path:none}}
.compact-game .touch-controls button{font-family:inherit}

/* App-like settings sheet: essential controls first, persistent actions. */
.compact-game #game-settings{width:min(480px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:0 16px;overflow:hidden}
.compact-game #game-settings[open]{display:flex;flex-direction:column}
.compact-game #game-settings .dialog-heading{position:static;flex-shrink:0;padding:8px 0;margin:0;gap:8px}
.compact-game #game-settings .dialog-heading h2{font-size:22px;line-height:1.3}
.compact-game #game-settings .settings-body{overflow-y:auto;min-height:0;overscroll-behavior:contain;padding:10px 0}
.compact-game #game-settings .paused-note{font-size:14px;line-height:1.4;margin:0 0 10px;padding:0;background:none;border:0}
.compact-game #game-settings .round-settings-form{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px 12px;padding:0}
.compact-game #game-settings .round-settings-form>label{font-size:14px;gap:4px}
.compact-game #game-settings select{min-height:44px;padding:7px;font-size:16px}
.compact-game #game-settings .draft-speed{grid-column:1/-1;display:grid;grid-template-columns:1fr auto}
.compact-game #game-settings .draft-speed input{grid-column:1/-1;margin:0}
.compact-game #game-settings .settings-details{grid-column:1/-1;border-top:1px solid #344052;padding:6px 0}
.compact-game #game-settings summary{min-height:44px;display:flex;align-items:center;cursor:pointer;font-size:14px;font-weight:700;color:#f0cf7c}
.compact-game #game-settings summary::before{content:'+';margin-right:8px;font-size:20px}
.compact-game #game-settings details[open]>summary::before{content:'−'}
.compact-game #game-settings .settings-details>label{display:block;font-size:14px;margin:8px 0}
.compact-game #game-settings .settings-details .draft-checkbox{display:flex;align-items:center;gap:8px;min-height:44px}
.compact-game #game-settings .settings-help{margin-top:6px}
.compact-game #game-settings .settings-actions{flex-shrink:0;display:flex;flex-direction:row;flex-wrap:nowrap;padding:10px 0 max(10px,env(safe-area-inset-bottom));background:#101019;border-top:1px solid #344052}
.compact-game #game-settings .settings-actions button{width:auto;font-size:14px;padding:8px 10px;min-height:48px}
.compact-game #game-settings .settings-actions .primary{flex:1}
.compact-game #game-settings .dance-stage{display:none}
/* Bachata taps use a dotted, hollow footprint rather than a solid step. */
.compact-game .note.tap .footprint{fill:none;stroke:currentColor;stroke-width:1.5;stroke-dasharray:1 3;stroke-linecap:round;filter:none}
.compact-game .note.tap b{color:currentColor;text-shadow:0 1px 3px #000}
@media(max-width:480px){.compact-game #game-settings{margin:auto auto 0;width:100%;max-width:100%;max-height:calc(100dvh - 12px);border-radius:18px 18px 0 0;border-bottom:0}}

.compact-game #game-settings [hidden]{display:none!important}

/* The count has a consistent high-contrast badge over every footprint. */
.compact-game .note b,.compact-game .note.r b,.compact-game .note.tap b,.compact-game .note.break-step b{top:50%;left:50%;transform:translate(-50%,-50%);display:flex;align-items:center;justify-content:center;width:23px;height:23px;border-radius:50%;background:#0b1423;color:#fff;font:800 14px/1 ui-sans-serif,system-ui,sans-serif;border:1px solid currentColor;text-shadow:none;box-shadow:0 1px 4px #0008}
.compact-game .note.tap b{border-style:dotted}
/* Utility controls live above the track, far from both input pads. */
.compact-game .game-card{grid-template-areas:'utility' 'stats' 'wave' 'arena' 'pads' 'progress';grid-template-rows:48px 44px 44px minmax(130px,1fr) 78px 3px}
.compact-game .transport{grid-area:utility;display:flex;justify-content:flex-end;gap:8px;padding:2px 10px;border-top:0;border-bottom:1px solid #43536b;background:#111824}
.compact-game .transport>span{margin-right:auto;min-width:0;font-size:12px}
.compact-game .transport button{min-height:44px;height:44px;padding:6px 10px;font-size:14px;border-radius:8px}
.compact-game .stats{grid-area:stats}.compact-game .wave-panel{grid-area:wave}.compact-game .arena{grid-area:arena}.compact-game .touch-controls{grid-area:pads}.compact-game .progress{grid-area:progress}
.compact-game[data-training=ninja] .game-card{grid-template-areas:'utility' 'stats' 'arena' 'pads' 'progress';grid-template-rows:48px 44px minmax(130px,1fr) 78px 3px}
.compact-game[data-game-state=finished] .game-card{grid-template-areas:'utility' 'arena' 'progress';grid-template-rows:48px minmax(0,1fr) 3px}
.compact-game #discard-dialog{width:min(400px,calc(100vw - 24px));padding:20px;border:1px solid #667591;border-radius:18px;background:#131d2d;color:#f4f6fa}
.compact-game #discard-dialog h2{font:800 22px/1.3 ui-sans-serif,system-ui,sans-serif;margin:0 0 10px}
.compact-game #discard-dialog p{font-size:16px;line-height:1.5;margin:0 0 20px;color:#cbd6e8}
.discard-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.discard-actions button{min-height:48px;padding:10px 8px;font-size:14px;border-radius:10px;border:1px solid #667591;background:#202e44}
.discard-actions #discard-cancel{background:#f0cd76;color:#142035;border-color:#f0cd76;font-weight:800}
.compact-game #dancer #leg-l,.compact-game #dancer #leg-r{stroke-width:15}
.compact-game .arena{background:radial-gradient(ellipse at 50% 65%,#3c477c66,transparent 65%),linear-gradient(160deg,#0b1928,#1c1530)}
.compact-game .rhythm-lanes>div{background:linear-gradient(180deg,#e5b74e03,#f7b95018)}
.compact-game .rhythm-lanes>div:last-child{background:linear-gradient(180deg,#79bfff03,#69bdfc1a)}
.compact-game .touch-controls button.result-perfect{box-shadow:inset 0 0 0 2px #5ddbb0,0 0 16px #5ddbb055!important}
@media(max-width:700px){
 .compact-game .game-card{grid-template-rows:48px 38px 36px minmax(130px,1fr) 78px 3px}
 .compact-game[data-training=ninja] .game-card{grid-template-rows:48px 38px minmax(130px,1fr) 78px 3px}
 .compact-game .transport>span{display:none}.compact-game .transport{justify-content:space-between}
 .compact-game .transport button{flex:1;min-width:0}
}
@media(max-height:600px){
 .compact-game .game-card{grid-template-rows:48px 28px 20px minmax(100px,1fr) 60px 3px}
 .compact-game[data-training=ninja] .game-card{grid-template-rows:48px 28px minmax(100px,1fr) 60px 3px}
 .compact-game .transport button{min-height:44px;height:44px}
}
@media(max-width:700px),(max-height:600px){.compact-game[data-game-state=finished] .game-card{grid-template-rows:48px minmax(0,1fr) 3px}}
