/* Fuse Line. Blueprint wall, brass and rope fuse, ember accent. */
.fl{--ink:#0f2431;--ink2:#17384b;--paper:#e9f2f6;--mute:#8fb0c1;--brass:#e6c36a;--ember:#ffa43a;--good:#7bd88f;--bad:#ff5a4d;
  -webkit-user-select:none;user-select:none;-webkit-touch-callout:none;margin:.5rem 0 1rem;color:var(--paper)}
.fl button{font-family:inherit;touch-action:manipulation;-webkit-tap-highlight-color:transparent;cursor:pointer}
.fl button:focus-visible,.fl canvas:focus-visible{outline:3px solid var(--brass);outline-offset:2px}
.fl-hud{display:grid;grid-template-columns:48px 1fr auto 48px;align-items:center;gap:.4rem;min-height:48px}
.fl-lvl{font-weight:800;font-size:1rem;letter-spacing:.02em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fl-edits{font:700 .78rem ui-monospace,Menlo,Consolas,monospace;color:var(--brass);white-space:pre}
.fl-ic{width:48px;height:48px;border-radius:12px;border:2px solid var(--ink2);background:var(--ink);color:var(--paper);display:grid;place-items:center}
.fl-ic:active{background:var(--ink2)}
#fl-mute .x{display:none}#fl-mute[data-off="1"] .w{display:none}#fl-mute[data-off="1"] .x{display:block}
.fl-stage{position:relative;width:100%;height:520px;border-radius:14px;overflow:hidden;border:2px solid var(--ink2);background:var(--ink);box-shadow:0 10px 30px rgba(0,0,0,.35);
  padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right)}
.fl-stage canvas{display:block;touch-action:none;width:100%;height:100%;-webkit-user-drag:none}
.fl-msg{position:absolute;left:10px;right:10px;top:10px;padding:.5rem .7rem;border-radius:10px;background:rgba(15,36,49,.88);border:1px solid var(--ink2);font-size:.86rem;line-height:1.3;text-align:center;pointer-events:none}
.fl-msg[hidden]{display:none}
.fl-panel{position:absolute;inset:0;display:flex;flex-direction:column;align-items:stretch;justify-content:center;gap:.6rem;padding:1.1rem;background:rgba(10,24,34,.9);text-align:center}
.fl-panel[hidden],.fl-card[hidden]{display:none}
.fl-panel h2{font-size:2.3rem;line-height:1;letter-spacing:.04em;text-transform:uppercase;color:var(--brass);font-weight:900}
.fl-tag{color:var(--mute);margin-bottom:.4rem;font-size:.95rem}
.fl-btn{min-height:48px;padding:.5rem 1rem;border-radius:12px;border:2px solid var(--brass);background:transparent;color:var(--brass);font-weight:800;font-size:1rem;letter-spacing:.02em}
.fl-btn:active{transform:translateY(1px);background:rgba(230,195,106,.15)}
.fl-btn[disabled]{opacity:.4;cursor:default}
.fl-go{background:var(--ember);border-color:var(--ember);color:#1b1208}
.fl-go:active{background:#ffb866}
.fl-soft{border-color:var(--ink2);color:var(--mute)}
.fl-stats{display:flex;justify-content:center;gap:.9rem;flex-wrap:wrap;color:var(--mute);font-size:.8rem;margin-top:.3rem}
.fl-stats b{color:var(--paper)}
.fl-lvpanel{justify-content:flex-start;gap:.5rem}
.fl-lvhead{display:flex;align-items:center;gap:.8rem}
.fl-lvhead h2{font-size:1.5rem}
.fl-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:6px;overflow-y:auto;touch-action:pan-y;flex:1;padding-bottom:.4rem;-webkit-overflow-scrolling:touch}
.fl-lv{min-height:56px;border-radius:10px;border:2px solid var(--ink2);background:var(--ink);color:var(--paper);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px}
.fl-lv b{font-size:1rem}
.fl-lv[aria-current="true"]{border-color:var(--brass)}
.fl-lv[disabled]{opacity:.35;cursor:default}
.fl-lv .lock{width:10px;height:8px;border:2px solid var(--mute);border-radius:2px}
.row{display:inline-flex;gap:2px}
.st{width:11px;height:11px;background:var(--ink2);clip-path:polygon(50% 0,62% 36%,100% 38%,70% 60%,80% 100%,50% 76%,20% 100%,30% 60%,0 38%,38% 36%)}
.st.on{background:var(--ember)}
.row.big{gap:8px}.row.big .st{width:34px;height:34px}
.fl-card{position:absolute;left:8px;right:8px;bottom:8px;padding:.9rem;border-radius:14px;background:rgba(10,24,34,.95);border:2px solid var(--brass);text-align:center;display:flex;flex-direction:column;gap:.35rem;
  margin-bottom:env(safe-area-inset-bottom);animation:flup .28s ease-out}
.fl-card[data-win=""]{border-color:var(--bad)}
.fl-card h2{font-size:1.4rem;font-weight:900;color:var(--brass)}
.fl-card[data-win=""] h2{color:var(--bad)}
.fl-card p{font-size:.88rem;color:var(--paper)}
.fl-best{color:var(--mute)!important;font-size:.78rem!important}
.fl-row{display:grid;grid-template-columns:1fr 1fr;gap:.5rem;margin-top:.3rem}
.fl-row .fl-btn[hidden]{display:none}
.fl-row #fl-rlevels{grid-column:1/-1}
.fl-bar{display:grid;grid-template-columns:1fr 1fr 1.5fr 1fr;gap:.5rem;margin-top:.6rem;padding-bottom:env(safe-area-inset-bottom)}
.fl-bar .fl-btn{padding:.5rem .3rem;font-size:.88rem}
#fl-title h2{text-shadow:0 0 20px rgba(255,164,58,.4)}
#fl-title h2::after{content:"";display:block;height:4px;width:120px;margin:.55rem auto 0;border-radius:2px;background:repeating-linear-gradient(90deg,var(--brass) 0 6px,#a98a45 6px 10px);box-shadow:0 0 10px rgba(255,164,58,.5)}
.row.big .st.on{animation:flpop .45s cubic-bezier(.2,1.6,.4,1) both}
.row.big .st.on:nth-child(2){animation-delay:.12s}.row.big .st.on:nth-child(3){animation-delay:.24s}
@keyframes flpop{from{transform:scale(0)}to{transform:scale(1)}}
.fl[data-screen="title"] .fl-bar,.fl[data-screen="levels"] .fl-bar{opacity:.5;pointer-events:none}
.fl-btn[aria-pressed="false"]#fl-peek{text-decoration:line-through}
.fl-howto{margin:1rem 0;font-size:.9rem;line-height:1.5;color:var(--mute)}
.fl-howto h2{font-size:1.05rem;color:var(--paper);margin-bottom:.4rem}
.fl-howto p+p{margin-top:.5rem}
@keyframes flup{from{transform:translateY(24px);opacity:0}to{transform:none;opacity:1}}
@media (prefers-reduced-motion:reduce){.fl *{animation:none!important;transition:none!important}}
@media (max-width:360px){.fl-edits{font-size:.68rem}.fl-panel h2{font-size:1.9rem}}

/* Full screen: board fills the stage under the dock; chrome and copy hidden */
html.pip-immersive .pip-stage .fl-howto,html.pip-native .pip-stage .fl-howto,html.pip-immersive .pip-stage .ad-well,html.pip-native .pip-stage .ad-well{display:none}
html.pip-immersive .pip-stage,html.pip-native .pip-stage{display:flex;flex-direction:column;overflow:hidden;padding-left:max(8px,env(safe-area-inset-left));padding-right:max(8px,env(safe-area-inset-right));padding-bottom:env(safe-area-inset-bottom)}
html.pip-immersive .pip-stage .fl,html.pip-native .pip-stage .fl{flex:1 1 auto;min-height:0;margin:0;display:flex;flex-direction:column}
html.pip-immersive .pip-stage .fl-stage,html.pip-native .pip-stage .fl-stage{flex:1 1 0;height:auto;min-height:0}
html.pip-immersive .pip-stage .fl-stage canvas,html.pip-native .pip-stage .fl-stage canvas{position:absolute;inset:0}
html.pip-immersive .pip-stage .fl-bar,html.pip-native .pip-stage .fl-bar{padding-bottom:0;margin-top:.4rem;flex:none}
html.pip-immersive .pip-stage .fl-btn,html.pip-native .pip-stage .fl-btn{min-height:48px}
@media (orientation:landscape) and (max-height:520px){
  html.pip-immersive .pip-stage .fl,html.pip-native .pip-stage .fl{display:grid;grid-template-columns:minmax(0,1fr) 170px;grid-template-rows:auto 1fr;column-gap:.6rem}
  html.pip-immersive .pip-stage .fl-hud,html.pip-native .pip-stage .fl-hud{grid-column:2;grid-row:1}
  html.pip-immersive .pip-stage .fl-stage,html.pip-native .pip-stage .fl-stage{grid-column:1;grid-row:1/3}
  html.pip-immersive .pip-stage .fl-bar,html.pip-native .pip-stage .fl-bar{grid-column:2;grid-row:2;grid-template-columns:1fr;align-content:center;gap:.4rem;margin-top:0}
  html.pip-immersive .pip-stage .fl-panel,html.pip-native .pip-stage .fl-panel{padding:.5rem;gap:.3rem}
  html.pip-immersive .pip-stage .fl-panel h2,html.pip-native .pip-stage .fl-panel h2{font-size:1.6rem}
}
