/* Production versions of gallery B (Quest reward) and E (Stage clear).
   The game supplies the keyboard clearance; every element stays in this field. */
@font-face{font-family:ExcalFeedback;src:url(fonts/Barlow-400.woff2) format('woff2');font-display:swap;font-weight:400}
@font-face{font-family:ExcalFeedback;src:url(fonts/Barlow-600.woff2) format('woff2');font-display:swap;font-weight:600}
@font-face{font-family:ExcalFeedback;src:url(fonts/Barlow-700.woff2) format('woff2');font-display:swap;font-weight:700}
@font-face{font-family:ExcalFeedbackDisplay;src:url(fonts/BarlowCondensed-800i.woff2) format('woff2');font-display:swap;font-style:italic;font-weight:800}
@font-face{font-family:ExcalFeedbackSerif;src:url(fonts/EBGaramond.woff2) format('woff2');font-display:swap}
#excal-feedback{position:fixed;inset:var(--ex-feedback-top,calc(var(--sheet-h,164px) + 100px)) 18px var(--ex-feedback-bottom,150px);z-index:9;pointer-events:none;overflow:hidden;container-type:size;isolation:isolate;color:#f4f1fb;font-family:ExcalFeedback,system-ui,sans-serif;--ex-fx-accent:#eed394;--ex-fx-muted:#c9bea9;--ex-fx-edge:#bea06b66;--ex-fx-glow:#d6b46d26}
body:not(.sheet-on) #excal-feedback{top:var(--ex-feedback-top,100px)}
#excal-feedback[hidden]{display:none}
/* the box leaves once the music begins (excalibur.js hideFeedbackSoft) */
#excal-feedback .ex-fx-layout{transition:opacity .38s ease,transform .38s ease}
#excal-feedback.ex-fx-gone .ex-fx-layout{opacity:0;transform:translateY(-8px)}
/* between phrases the loading scrim sits UNDER the box (the classic card sits over its own scrim) */
body.excal-feedback-on #excal-flash{z-index:8}
#excal-feedback *,#excal-feedback *:before,#excal-feedback *:after{box-sizing:border-box}
#excal-feedback.ex-fx-stage{--ex-fx-accent:#99ffd0;--ex-fx-muted:#d1c8eb;--ex-fx-edge:#b9a4e565;--ex-fx-glow:#ab89ed30}
#excal-feedback.ex-fx-kind-mastered{--ex-fx-accent:#ffe6a1}
#excal-feedback.ex-fx-kind-clean{--ex-fx-accent:#b0dbff}
#excal-feedback.ex-fx-kind-notclean{--ex-fx-accent:#ffd0a8}
#excal-feedback.ex-fx-kind-notplayed{--ex-fx-accent:#d1d0e0}
.ex-fx-layout{width:100%;height:100%;display:flex;align-items:center;justify-content:center;padding:15px 16px;min-height:0}
.ex-fx-eyebrow,.ex-fx-level-label{font-size:11px;line-height:1.4;font-weight:700;letter-spacing:1.6px;text-transform:uppercase;color:var(--ex-fx-muted)}
.ex-fx-eyebrow span{white-space:normal}
.ex-fx-piece{font-weight:600;font-size:clamp(24px,2.8vw,36px);line-height:1.1;margin:10px 0;overflow-wrap:anywhere;text-wrap:balance}
.ex-fx-meta{display:flex;align-items:center;gap:8px 14px;flex-wrap:wrap;color:#dbd9e7;font-size:14px;line-height:1.3}
.ex-fx-difficulty{display:inline-flex;align-items:baseline;gap:4px;font-size:12px;line-height:1;letter-spacing:.4px;padding:3px 8px 4px;border-radius:5px;background:#d9d6a9;color:#252319;white-space:nowrap}
.ex-fx-difficulty small{font-size:10px;font-weight:700;letter-spacing:.5px;opacity:.72}
.ex-fx-lvn{font-size:24px;font-weight:800;letter-spacing:-.5px;font-variant-numeric:tabular-nums}
.ex-fx-mode{color:#c2bdcf;font-size:13px;line-height:1.4;margin-top:10px}
.ex-fx-incoming{min-width:0}
.ex-fx-verdict{color:var(--ex-fx-accent);font:italic 800 clamp(48px,7vw,96px)/.95 ExcalFeedbackDisplay,Impact,sans-serif;margin:10px 0 14px;overflow-wrap:anywhere;text-wrap:balance}
.ex-fx-detail{font-size:16px;line-height:1.4;color:#e0d9e5;overflow-wrap:anywhere}
.ex-fx-reward{display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px;min-width:0;margin-top:22px}
.ex-fx-level-value{font-size:30px;font-weight:700;line-height:1;color:#fff4d7;white-space:nowrap;font-variant-numeric:tabular-nums}
.ex-fx-before{color:#c4bdd5;font-size:.8em;font-weight:400}
.ex-fx-gain{font-size:15px;font-weight:700;color:var(--ex-fx-accent)}
.ex-fx-last{display:flex;justify-content:center;align-items:baseline;gap:7px 13px;flex-wrap:wrap;font-size:13px;line-height:1.3;color:#d2ccde;margin-top:14px;min-width:0}
.ex-fx-last-label{font-size:10px;letter-spacing:1px;text-transform:uppercase;color:#c3bcd0}
.ex-fx-last>strong{font-size:16px;font-weight:700;color:var(--ex-fx-accent)}
.ex-fx-last-gain{margin-left:4px;color:var(--ex-fx-accent)}
.ex-fx-quest-transition{width:min(1120px,100%);display:grid;grid-template-columns:minmax(0,1.85fr) minmax(0,1fr);align-items:center;gap:30px}
.ex-fx-quest-panel{position:relative;background:linear-gradient(120deg,#2e271efa,#1b1825f5);border:1px solid #b69a60;box-shadow:inset 0 0 0 5px #17151b,inset 0 0 0 6px #b69a603b,0 14px 30px #0003;padding:26px;min-width:0}
.ex-fx-quest-panel:before,.ex-fx-quest-panel:after{content:'\25c6';position:absolute;left:-5px;top:-9px;color:#e1c082;font-size:13px;line-height:1}
.ex-fx-quest-panel:after{left:auto;top:auto;right:-5px;bottom:-9px}
.ex-fx-result-panel{display:grid;grid-template-columns:112px minmax(0,1fr);align-items:center;gap:24px}
.ex-fx-seal{width:112px;height:136px;clip-path:polygon(50% 0,98% 20%,91% 73%,50% 100%,9% 73%,2% 20%);background:linear-gradient(140deg,#ffe4a5,#866736);padding:3px}
.ex-fx-seal>div{width:100%;height:100%;clip-path:inherit;background:linear-gradient(140deg,#47391e,#1e242b);display:flex;align-items:center;justify-content:center;flex-direction:column;color:#f3d796}
.ex-fx-seal svg{width:54px;height:54px}
.ex-fx-seal span{font-size:8px;letter-spacing:1.8px;margin-top:10px}
.ex-fx-quest .ex-fx-verdict{font:400 clamp(43px,5.2vw,70px)/.95 ExcalFeedbackSerif,Georgia,serif;letter-spacing:-1.2px;margin:8px 0 12px}
.ex-fx-quest .ex-fx-reward{border-top:1px solid #d3b67b3b;padding-top:16px}
.ex-fx-level-meter{display:block;width:96px;max-width:100%;height:4px;margin-top:7px;background:#b69a6038;overflow:hidden}
.ex-fx-level-meter>i{display:block;height:100%;background:linear-gradient(90deg,#bd9955,#f0d699);box-shadow:0 0 9px #e4c47844}
.ex-fx-quest .ex-fx-piece{font-family:ExcalFeedbackSerif,Georgia,serif;font-weight:400}
.ex-fx-quest-next{border-left:1px solid #c9ab6266;padding:6px 0 6px 25px;min-width:0;text-shadow:0 2px 8px #070611}
.ex-fx-quest-next>.ex-fx-count{display:inline-block;margin-top:16px}.ex-fx-quest-next .ex-fx-count-number{width:57px;height:57px;font-size:35px}
.ex-fx-no-phrase .ex-fx-quest-transition{grid-template-columns:minmax(0,700px);justify-content:center}
.ex-fx-next-arrow{font-size:32px;line-height:1;color:var(--ex-fx-muted);display:block;margin-top:14px}
.ex-fx-ready-wrap{width:min(800px,100%)}
.ex-fx-ready-panel{display:flex;align-items:center;gap:28px;padding:30px 36px}
.ex-fx-ready-copy{flex:1;min-width:0}
.ex-fx-ready-heading{font:italic 800 clamp(38px,5.5vw,68px)/1 ExcalFeedbackDisplay,Impact,sans-serif;color:#eee8ff;margin:0 0 18px;text-wrap:balance}
.ex-fx-quest .ex-fx-ready-heading{font:400 clamp(34px,4.8vw,58px)/1 ExcalFeedbackSerif,Georgia,serif;color:#f3d99e;margin-bottom:20px}
.ex-fx-count{flex:0 0 auto;text-align:center}
.ex-fx-count-number{border:1px solid #b9a1e6aa;border-radius:50%;width:96px;height:96px;display:grid;place-items:center;background:#29203dee;box-shadow:0 0 30px var(--ex-fx-glow);color:#eee4ff;font-size:62px;line-height:1;font-weight:700;font-variant-numeric:tabular-nums}
.ex-fx-quest .ex-fx-count-number{background:#342b20;border-color:#d3b673;color:#f5dfa8}
.ex-fx-count-caption{color:#d4cde1;font-size:11px;font-weight:600;letter-spacing:1.1px;text-transform:uppercase;margin-top:10px}
.ex-fx-phase-symbol{flex:0 0 80px;color:#e3c389;text-align:center;font-size:64px}
.ex-fx-phase-symbol svg{width:60px;height:60px}
.ex-fx-loading-text{font-size:14px;color:var(--ex-fx-muted);line-height:1.4;margin-top:12px;overflow-wrap:anywhere}
.ex-fx-stage-transition{position:relative;width:min(1000px,100%);display:flex;flex-direction:column;align-items:center;gap:22px;min-width:0}
.ex-fx-stage-rays{position:absolute;inset:-24px 0 20px;z-index:-1;opacity:.6;background:repeating-conic-gradient(from 10deg at 50% 45%,#aa8fef19 0 8deg,transparent 8deg 21deg);mask-image:radial-gradient(ellipse,#000,transparent 70%)}
.ex-fx-stage-main{text-align:center;width:100%;padding:0 12px;text-shadow:0 2px 10px #080615}
.ex-fx-stage-main>.ex-fx-eyebrow{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap}
.ex-fx-stage-main>.ex-fx-eyebrow:before,.ex-fx-stage-main>.ex-fx-eyebrow:after{content:'';width:44px;height:1px;background:#d6baff55}
.ex-fx-stage .ex-fx-verdict{text-shadow:0 0 50px var(--ex-fx-glow),0 3px 14px #090711}
.ex-fx-stage .ex-fx-reward{display:inline-flex;justify-content:center;border:1px solid #c5acf455;border-radius:28px;background:#2b224bee;padding:11px 24px;margin-top:20px}
.ex-fx-stage .ex-fx-level-value{color:#f6f0ff;font-size:28px}
.ex-fx-stage-next{width:min(820px,100%);display:flex;align-items:center;gap:22px;padding:15px 24px;border:1px solid #afa4e166;border-radius:9px;background:linear-gradient(100deg,#312946f5,#222439f5);box-shadow:0 8px 24px #0003}
.ex-fx-stage-next .ex-fx-next-arrow{flex:0 0 auto;margin:0}
.ex-fx-stage-next .ex-fx-incoming{flex:1;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 20px;align-items:center}
.ex-fx-stage-next .ex-fx-eyebrow{font-size:10px}
.ex-fx-stage-next .ex-fx-piece{grid-column:1;grid-row:2 / 4;font-size:25px;margin:2px 0 0}
.ex-fx-stage-next .ex-fx-meta{grid-column:2;grid-row:1 / 3;font-size:13px;justify-content:flex-end}
.ex-fx-stage-next .ex-fx-mode{grid-column:2;grid-row:3;font-size:12px;margin:2px 0 0;text-align:right}
.ex-fx-stage-next>.ex-fx-count .ex-fx-count-number{width:54px;height:54px;font-size:34px}.ex-fx-stage-next>.ex-fx-count .ex-fx-count-caption{font-size:9px;margin-top:5px;white-space:nowrap}
.ex-fx-stage-main>.ex-fx-count{display:flex;align-items:center;flex-direction:column}
.ex-fx-stage-main>.ex-fx-ready-heading{margin:12px 0 18px}
.ex-fx-stage-transition>.ex-fx-last{margin-top:-8px}
.ex-fx-no-phrase .ex-fx-stage-transition{display:flex}
.ex-fx-listen-symbol{color:#dfd2fa;font-size:48px;line-height:1}
.ex-fx-phase-playing .ex-fx-layout{align-items:flex-start;padding-top:0}
.ex-fx-playing{width:min(730px,100%);text-align:center;background:linear-gradient(120deg,#211c2bed,#191b2bea);border:1px solid var(--ex-fx-edge);border-radius:9px;padding:12px 20px;box-shadow:0 7px 20px #0002}
.ex-fx-quest .ex-fx-playing{border-radius:2px;border-color:#b69a6055;background:linear-gradient(120deg,#282218ed,#191822e8)}
.ex-fx-playing .ex-fx-piece{font-size:25px;margin:5px 0 8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ex-fx-playing .ex-fx-meta{justify-content:center;font-size:12px}
.ex-fx-playing .ex-fx-mode{font-size:12px;margin-top:5px}
.ex-fx-playing .ex-fx-last{border-top:1px solid var(--ex-fx-edge);padding-top:8px;margin-top:9px;font-size:11px;gap:5px 10px}
.ex-fx-playing .ex-fx-last>strong{font-size:13px}
.ex-fx-announcement{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.ex-fx-arrive .ex-fx-quest-panel,.ex-fx-arrive .ex-fx-stage-main{animation:ex-fx-enter .36s cubic-bezier(.16,1,.3,1) both}
@keyframes ex-fx-enter{from{opacity:0;transform:translateY(12px) scale(.97)}to{opacity:1;transform:translateY(0) scale(1)}}
/* Size queries respond to the real space between notation/HUD and keyboard. */
@container (max-width:850px){
  .ex-fx-layout{padding:12px 8px}.ex-fx-quest-transition{gap:20px;grid-template-columns:minmax(0,1.55fr) minmax(0,1fr)}.ex-fx-result-panel{grid-template-columns:70px minmax(0,1fr);padding:23px 20px;gap:16px}.ex-fx-seal{width:70px;height:92px}.ex-fx-seal svg{width:38px;height:38px}.ex-fx-seal span{font-size:6px;letter-spacing:.8px}.ex-fx-quest-next{padding-left:19px}.ex-fx-quest .ex-fx-verdict{font-size:45px}.ex-fx-quest .ex-fx-piece{font-size:28px}.ex-fx-detail{font-size:14px}.ex-fx-reward{gap:8px 10px}.ex-fx-level-value{font-size:26px}.ex-fx-gain{font-size:13px}.ex-fx-stage-next .ex-fx-incoming{display:block}.ex-fx-stage-next .ex-fx-meta{justify-content:flex-start;margin-top:8px}.ex-fx-stage-next .ex-fx-mode{text-align:left;margin-top:6px}.ex-fx-stage-next .ex-fx-piece{font-size:23px}
}
@container (max-width:560px){
  .ex-fx-layout{padding:9px 5px}.ex-fx-quest-transition{grid-template-columns:1fr;gap:15px}.ex-fx-result-panel{grid-template-columns:70px minmax(0,1fr);padding:20px}.ex-fx-quest .ex-fx-verdict{font-size:46px}.ex-fx-quest-next{border-left:0;border-top:1px solid #c9ab6266;padding:12px 14px 0;display:flex;align-items:center;justify-content:space-between;gap:12px;background:linear-gradient(#191624de,#19162480)}.ex-fx-quest-next .ex-fx-next-arrow{margin:0}.ex-fx-quest-next .ex-fx-piece{font-size:26px;margin:5px 0 8px}.ex-fx-eyebrow{font-size:10px;letter-spacing:1px}.ex-fx-meta{font-size:12px;gap:6px 9px}.ex-fx-mode{font-size:12px;margin-top:7px}.ex-fx-ready-panel{padding:25px 20px;gap:14px}.ex-fx-ready-heading,.ex-fx-quest .ex-fx-ready-heading{font-size:36px}.ex-fx-count-number{width:72px;height:72px;font-size:45px}.ex-fx-count-caption{font-size:9px;letter-spacing:.6px}.ex-fx-quest .ex-fx-piece{font-size:27px}.ex-fx-stage-transition{gap:17px}.ex-fx-stage .ex-fx-verdict{font-size:61px}.ex-fx-stage-main{padding:0 4px}.ex-fx-stage-main>.ex-fx-eyebrow:before,.ex-fx-stage-main>.ex-fx-eyebrow:after{display:none}.ex-fx-stage .ex-fx-reward{padding:10px 17px;gap:8px 11px;margin-top:15px}.ex-fx-stage .ex-fx-level-value{font-size:25px}.ex-fx-stage-next{padding:13px 16px;gap:13px}.ex-fx-last{font-size:11px;gap:5px 9px}.ex-fx-last>strong{font-size:14px}.ex-fx-playing{padding:10px 12px}.ex-fx-playing .ex-fx-piece{font-size:23px}.ex-fx-phase-symbol{flex-basis:45px}.ex-fx-phase-symbol svg{width:42px;height:42px}
}
/* A laptop leaves 240-400px between the engraving and the keys, and until
   2026-09-09 nothing trimmed above 340: measured on the live geometry a
   1366x768 screen gives 243px and the quest loading card wanted 369, so the
   box CLIPPED it - the heading cut at the top, the recap line under the keys.
   The recap goes first (the result it recaps was on screen seconds ago), then
   the headings and the padding; fitExcalFeedback() scales what is still over. */
@container (max-height:400px){
  .ex-fx-layout{padding:11px 12px}
  .ex-fx-last{display:none}
  .ex-fx-quest-panel{padding:19px 21px}
  .ex-fx-ready-panel{padding:20px 24px;gap:20px}
  .ex-fx-ready-heading{font-size:clamp(30px,3.6vw,44px);margin-bottom:12px}
  .ex-fx-quest .ex-fx-ready-heading{font-size:clamp(27px,3.2vw,38px);margin-bottom:12px}
  .ex-fx-piece{font-size:clamp(22px,2.2vw,28px);margin:7px 0;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
  .ex-fx-playing .ex-fx-piece{display:block}
  .ex-fx-quest .ex-fx-verdict{font-size:clamp(36px,4.2vw,52px);margin:6px 0 10px}
  .ex-fx-stage .ex-fx-verdict{font-size:clamp(42px,5vw,72px);margin:8px 0 12px}
  .ex-fx-detail{font-size:15px}
  .ex-fx-reward{margin-top:14px}
  .ex-fx-quest .ex-fx-reward{padding-top:12px}
  .ex-fx-quest-next>.ex-fx-count{margin-top:11px}
  .ex-fx-stage-transition{gap:16px}
  .ex-fx-stage .ex-fx-reward{margin-top:14px;padding:9px 20px}
  .ex-fx-stage-next{padding:12px 20px}
  .ex-fx-count-number{width:76px;height:76px;font-size:48px}
  .ex-fx-seal{width:92px;height:112px}
  .ex-fx-seal svg{width:44px;height:44px}
  .ex-fx-seal span{font-size:7px;letter-spacing:1.1px;margin-top:8px}
  .ex-fx-result-panel{grid-template-columns:92px minmax(0,1fr);gap:20px}
  .ex-fx-loading-text{margin-top:8px}
  .ex-fx-next-arrow{margin-top:10px}
}
@container (max-height:340px){
  .ex-fx-layout{padding-top:8px;padding-bottom:8px}.ex-fx-result-panel{padding:20px;gap:18px}.ex-fx-quest .ex-fx-verdict{font-size:48px;margin:6px 0 9px}.ex-fx-seal{width:80px;height:100px}.ex-fx-result-panel{grid-template-columns:80px minmax(0,1fr)}.ex-fx-quest .ex-fx-reward{margin-top:13px;padding-top:12px}.ex-fx-stage-transition{gap:15px}.ex-fx-stage .ex-fx-verdict{font-size:64px;margin:8px 0 10px}.ex-fx-stage .ex-fx-reward{margin-top:12px;padding:9px 20px}.ex-fx-stage-main>.ex-fx-ready-heading{font-size:44px;margin:6px 0 12px}.ex-fx-stage-main>.ex-fx-count .ex-fx-count-number{width:68px;height:68px;font-size:44px}.ex-fx-stage-next{padding-top:12px;padding-bottom:12px}.ex-fx-stage-next .ex-fx-mode{display:none}.ex-fx-last{margin-top:10px}.ex-fx-count-caption{margin-top:6px}
}
@container (max-height:240px){
  .ex-fx-layout{padding:4px 8px}.ex-fx-quest-transition{grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:17px}.ex-fx-result-panel{grid-template-columns:1fr;padding:15px 18px}.ex-fx-seal{display:none}.ex-fx-quest .ex-fx-verdict{font-size:39px;margin:5px 0 7px}.ex-fx-detail{font-size:13px}.ex-fx-quest .ex-fx-reward{margin-top:10px;padding-top:9px;gap:7px 10px}.ex-fx-level-label{font-size:9px;letter-spacing:1px}.ex-fx-level-value{font-size:23px}.ex-fx-gain{font-size:12px}.ex-fx-quest-next{display:block;border-top:0;border-left:1px solid #c9ab6266;padding:2px 0 2px 15px;background:none}.ex-fx-quest .ex-fx-piece{font-size:25px}.ex-fx-next-arrow{display:none}.ex-fx-mode{font-size:11px;margin-top:6px}.ex-fx-ready-panel{padding:18px 24px}.ex-fx-quest .ex-fx-ready-heading{font-size:36px;margin-bottom:11px}.ex-fx-count-number{width:70px;height:70px;font-size:45px}.ex-fx-stage-transition{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);align-items:center;gap:13px}.ex-fx-stage-main{padding:0}.ex-fx-stage-main>.ex-fx-eyebrow:before,.ex-fx-stage-main>.ex-fx-eyebrow:after{display:none}.ex-fx-stage .ex-fx-verdict{font-size:50px;margin:6px 0 8px}.ex-fx-stage .ex-fx-reward{padding:8px 14px;gap:7px 10px;margin-top:11px}.ex-fx-stage .ex-fx-level-value{font-size:23px}.ex-fx-stage-next{padding:14px 16px}.ex-fx-stage-next .ex-fx-incoming{display:block}.ex-fx-stage-next .ex-fx-piece{font-size:23px;margin:7px 0}.ex-fx-stage-next .ex-fx-meta{justify-content:flex-start;font-size:12px}.ex-fx-stage-next .ex-fx-mode{display:block;text-align:left;font-size:11px}.ex-fx-stage-transition>.ex-fx-last{grid-column:1 / -1;margin:0}.ex-fx-stage-main>.ex-fx-ready-heading{font-size:36px}.ex-fx-playing .ex-fx-last{display:none}
}
@container (max-height:155px){
  .ex-fx-eyebrow{font-size:9px;letter-spacing:.8px}.ex-fx-result-panel{padding:11px 15px}.ex-fx-quest .ex-fx-verdict{font-size:34px;margin:3px 0 5px}.ex-fx-detail{font-size:11px;line-height:1.25}.ex-fx-quest .ex-fx-reward{border:0;padding:0;margin-top:7px}.ex-fx-level-value,.ex-fx-stage .ex-fx-level-value{font-size:20px}.ex-fx-quest .ex-fx-piece,.ex-fx-stage-next .ex-fx-piece{font-size:22px}.ex-fx-quest-next .ex-fx-mode,.ex-fx-stage-next .ex-fx-mode,.ex-fx-last,.ex-fx-ready-panel .ex-fx-mode{display:none}.ex-fx-meta{font-size:11px}.ex-fx-difficulty{font-size:10px;padding:2px 6px 3px}.ex-fx-lvn{font-size:19px}.ex-fx-ready-panel{padding:14px 20px}.ex-fx-quest .ex-fx-ready-heading{font-size:29px;margin-bottom:7px}.ex-fx-ready-panel .ex-fx-piece{margin:5px 0}.ex-fx-count-number{width:60px;height:60px;font-size:38px}.ex-fx-stage .ex-fx-verdict{font-size:39px;margin:4px 0 6px}.ex-fx-stage .ex-fx-reward{padding:6px 12px;margin-top:7px;gap:5px 8px}.ex-fx-stage-next{padding:11px 14px}.ex-fx-stage-main>.ex-fx-ready-heading{font-size:30px;margin:5px 0 9px}.ex-fx-stage-main>.ex-fx-count .ex-fx-count-number{width:49px;height:49px;font-size:32px}.ex-fx-count-caption{font-size:9px;margin-top:4px}.ex-fx-playing{padding:8px 14px}.ex-fx-playing .ex-fx-mode{display:none}.ex-fx-playing .ex-fx-piece{font-size:22px;margin:3px 0 6px}
}
/* A long catalogue title cannot consume the verdict or keyboard clearance.
   The full title remains in the live announcement and the sheet music. */
@container (max-height:340px){
  .ex-fx-piece{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
  .ex-fx-playing .ex-fx-piece{display:block}
}
@container (max-height:240px){
  .ex-fx-level-meter{display:none}
  .ex-fx-quest-next{display:flex;align-items:center;gap:12px}.ex-fx-quest-next>.ex-fx-incoming{flex:1;min-width:0}.ex-fx-quest-next>.ex-fx-count{margin-top:0;flex:0 0 auto}
}
@container (max-height:155px){
  .ex-fx-piece{-webkit-line-clamp:2}.ex-fx-quest-next .ex-fx-count-number{width:45px;height:45px;font-size:29px}.ex-fx-quest-next .ex-fx-count-caption{font-size:9px}
}
@container (max-width:560px) and (max-height:240px){
  .ex-fx-piece{-webkit-line-clamp:2}.ex-fx-stage .ex-fx-verdict{font-size:42px}.ex-fx-stage .ex-fx-reward{padding:7px 9px;gap:6px}.ex-fx-stage .ex-fx-gain{font-size:11px}.ex-fx-stage .ex-fx-level-label{font-size:9px;letter-spacing:.8px}.ex-fx-quest-next .ex-fx-piece,.ex-fx-stage-next .ex-fx-piece{font-size:22px}.ex-fx-stage-next{padding-left:12px;padding-right:12px}.ex-fx-stage-next .ex-fx-meta{gap:6px}.ex-fx-stage-next .ex-fx-mode{font-size:10px}
}
/* A landscape phone can leave only 86px between the score and keyboard. */
@container (max-height:120px){
  .ex-fx-layout{padding:2px 6px}.ex-fx-eyebrow,.ex-fx-detail,.ex-fx-mode,.ex-fx-last,.ex-fx-seal,.ex-fx-meta>span,.ex-fx-stage-next .ex-fx-mode,.ex-fx-ready-panel .ex-fx-mode{display:none!important}
  .ex-fx-quest-transition{gap:14px;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr)}.ex-fx-result-panel{display:block;padding:7px 13px}.ex-fx-quest .ex-fx-verdict{font-size:34px;line-height:.95;margin:0;white-space:nowrap;letter-spacing:-.6px}.ex-fx-quest .ex-fx-reward{margin-top:4px;padding:0;border:0;gap:6px 10px;flex-wrap:nowrap}.ex-fx-level-label{font-size:9px;letter-spacing:.8px}.ex-fx-level-value,.ex-fx-stage .ex-fx-level-value{font-size:19px}.ex-fx-gain,.ex-fx-stage .ex-fx-gain{font-size:11px;white-space:nowrap}.ex-fx-quest-next{display:flex;align-items:center;gap:12px;padding:0 0 0 13px}.ex-fx-quest-next>.ex-fx-incoming{flex:1}.ex-fx-quest-next>.ex-fx-count{margin-top:0;flex:0 0 auto}.ex-fx-piece,.ex-fx-quest .ex-fx-piece,.ex-fx-stage-next .ex-fx-piece{font-size:21px;line-height:1.05;margin:0 0 5px;-webkit-line-clamp:1}.ex-fx-difficulty{font-size:10px;padding:2px 6px}.ex-fx-lvn{font-size:17px}.ex-fx-meta{gap:0}.ex-fx-count-number,.ex-fx-quest-next .ex-fx-count-number,.ex-fx-stage-next>.ex-fx-count .ex-fx-count-number,.ex-fx-stage-main>.ex-fx-count .ex-fx-count-number{width:39px;height:39px;font-size:26px}.ex-fx-count-caption,.ex-fx-stage-next>.ex-fx-count .ex-fx-count-caption{font-size:8px;letter-spacing:.4px;margin-top:4px}
  .ex-fx-ready-panel{padding:10px 16px;gap:16px}.ex-fx-ready-copy{display:flex;align-items:center;gap:17px}.ex-fx-ready-copy>.ex-fx-incoming{flex:1;min-width:0}.ex-fx-quest .ex-fx-ready-heading{flex:0 1 auto;max-width:160px;font-size:26px;margin:0}.ex-fx-ready-panel .ex-fx-piece{margin:0 0 5px}.ex-fx-phase-symbol{flex-basis:40px;font-size:34px}.ex-fx-phase-symbol svg{width:35px;height:35px}.ex-fx-loading-text{font-size:12px;margin:0}
  .ex-fx-stage-transition{gap:14px}.ex-fx-stage .ex-fx-verdict{font-size:36px;line-height:.95;margin:0;white-space:nowrap}.ex-fx-stage .ex-fx-reward{padding:5px 11px;margin-top:5px;gap:6px 10px;flex-wrap:nowrap}.ex-fx-stage-next{padding:9px 12px;gap:13px}.ex-fx-stage-next .ex-fx-piece{margin:0 0 5px}.ex-fx-stage-next .ex-fx-meta{margin:0;gap:0}.ex-fx-stage-main>.ex-fx-ready-heading{font-size:27px;margin:0}.ex-fx-phase-countin .ex-fx-stage-main,.ex-fx-phase-demo .ex-fx-stage-main,.ex-fx-phase-loading .ex-fx-stage-main{display:flex;align-items:center;justify-content:center;gap:18px}.ex-fx-listen-symbol{font-size:33px}
  .ex-fx-playing{padding:8px 14px}.ex-fx-playing .ex-fx-piece{font-size:23px;margin:0 0 5px}.ex-fx-playing .ex-fx-meta{justify-content:center}
  .ex-fx-demo-incoming>.ex-fx-eyebrow{display:block!important;font-size:8px;line-height:1.2;letter-spacing:.8px;margin-bottom:3px}.ex-fx-demo-incoming>.ex-fx-eyebrow span{display:none}
}
@media (max-width:600px){#excal-feedback{left:7px;right:7px}}
@media (prefers-reduced-motion:reduce){#excal-feedback *,#excal-feedback *:before,#excal-feedback *:after{animation:none!important;transition:none!important}}
