:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;color:#f7f1e9;background:#030303;color-scheme:dark;--orange:#ff6508;--orange2:#ff9a16;--red:#ff2a18;--green:#21df49;--yellow:#ffd21a;--blue:#19a9ff;--line:rgba(255,101,8,.56);--line2:rgba(255,101,8,.25);--panel:rgba(9,7,6,.94);--muted:#a79c94}
*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden}body{background:radial-gradient(circle at 48% 34%,#180702 0,#060403 40%,#010101 82%);letter-spacing:.01em}button{font:inherit;color:inherit}
.app-shell{width:100%;height:100%;overflow:hidden;padding:max(7px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(7px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));display:grid;grid-template-rows:64px minmax(0,1fr) 82px;gap:8px}
.topbar,.card,.visual-panel,.history-strip,.mode-tabs{border:1px solid var(--line);background:linear-gradient(180deg,rgba(14,9,6,.96),rgba(4,4,4,.96));box-shadow:inset 0 1px rgba(255,255,255,.025),0 0 18px rgba(255,62,0,.035)}
.topbar{border-radius:12px;display:flex;align-items:center;padding:6px 10px;gap:15px}.brand{display:flex;align-items:center;gap:9px;padding-right:14px;border-right:1px solid rgba(255,255,255,.1)}.brand-mark{width:47px;height:47px;position:relative;display:grid;place-items:center}.brand-fire{position:absolute;font-size:42px;color:#ff4308;filter:drop-shadow(0 0 8px #ff2a00);transform:translateY(-4px)}.brand-cube{position:relative;z-index:2;font-size:26px;color:#ffd01c;text-shadow:0 0 4px #000}.brand-title{font-size:27px;font-weight:1000;font-style:italic;line-height:.9;letter-spacing:-.035em;background:linear-gradient(#ffd268,#ff5d08);-webkit-background-clip:text;color:transparent}.brand-sub{font-size:8px;color:#ff7a1b;letter-spacing:.24em;font-weight:900;margin-top:5px}.brand-sub span{color:#d4b69f;letter-spacing:.05em}.status-chip{display:flex;align-items:center;gap:9px;padding-right:15px;border-right:1px solid rgba(255,255,255,.09);min-width:150px}.status-chip>div{display:grid}.status-chip b{font-size:12px}.status-chip strong{font-size:10px;color:var(--green)}.status-chip small{font-size:8px;color:#8f8984}.dot{width:12px;height:12px;border-radius:50%;background:#545454;flex:0 0 auto}.dot.online{background:#11c930;box-shadow:0 0 11px #11c930}.check{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:#149c27;color:#fff;font-weight:900}.top-spacer{flex:1}.top-actions{display:flex;gap:7px}.top-actions button,.mode-tab{border:1px solid rgba(255,103,9,.58);background:#080706;border-radius:8px;padding:9px 12px;font-size:10px;font-weight:900;letter-spacing:.05em;color:#ff8524}.top-actions button:first-child{color:#ff9b28}.top-actions #connectButton{color:#fff;background:linear-gradient(180deg,#ff7814,#d83b0b);box-shadow:0 0 13px rgba(255,77,0,.25)}.top-actions #connectButton:not(:disabled){ }.top-actions button:disabled{opacity:.35}.icon-button{font-size:18px!important;padding:6px 11px!important;color:#ddd!important}
.workspace{min-height:0;display:grid;grid-template-columns:minmax(205px,21%) minmax(420px,1fr) minmax(240px,25%);gap:8px}.rail{min-height:0;display:grid;gap:8px}.left-rail{grid-template-rows:auto auto 1fr auto}.right-rail{grid-template-rows:auto 1fr auto}.card{border-radius:11px;padding:12px 14px;overflow:hidden}.card h2{margin:0;color:#ff7916;font-size:11px;letter-spacing:.04em}.card h2 span{color:#b9aaa0;font-size:8px}.orientation-readout{font-size:18px;font-weight:800;margin:13px 0 9px;line-height:1.35}.orientation-readout::first-letter{color:var(--green)}.confidence-row{display:flex;gap:6px;font-size:11px}.confidence-row strong{color:var(--green)}.confidence-track{height:8px;background:#282828;border-radius:99px;margin:9px 0;overflow:hidden}.confidence-track i{display:block;height:100%;width:0;background:linear-gradient(90deg,#16d633,#7be83e);border-radius:99px}.anchor-line{font-size:10px;color:#c2b8b0}.anchor-line strong{color:var(--yellow)}.turn-card>div{display:flex;align-items:end;gap:9px;margin-top:5px}.count-readout{font-size:50px;line-height:.9;color:#ff6b0a;text-shadow:0 0 13px rgba(255,82,0,.25)}.turn-card span{font-size:13px}.turn-card small{display:block;color:#9f9791;font-size:9px;margin-top:8px}.last-card{display:flex;flex-direction:column}.hero-move{font-size:56px;line-height:1;margin:12px 0;color:#f5f4ef}.move-facts{display:grid;grid-template-columns:auto 1fr;gap:8px 10px;font-size:11px;margin-top:auto}.move-facts span{color:#c9c0b9}.move-facts b:nth-of-type(1){color:var(--orange2)}.move-facts b:nth-of-type(2){color:var(--blue)}.state-title{font-size:15px;color:var(--green);font-weight:800;margin:7px 0 4px}.state-card code{font-size:7px;color:#e8b37d;overflow-wrap:anywhere}
.center-stage{min-height:0;display:grid;grid-template-rows:44px minmax(0,1fr)}.mode-tabs{border-radius:11px 11px 0 0;display:grid;grid-template-columns:repeat(4,1fr);overflow:hidden}.mode-tab{border:0;border-right:1px solid rgba(255,255,255,.08);border-radius:0;color:#aaa;padding:0}.mode-tab.active{background:linear-gradient(180deg,#9d2e09,#3c0d04);color:#fff;box-shadow:inset 0 0 0 1px #ff710c}.visual-panel{border-top:0;border-radius:0 0 11px 11px;min-height:0;position:relative;display:grid;grid-template-rows:39px minmax(0,1fr) 34px;background:radial-gradient(ellipse at 50% 48%,rgba(26,9,2,.6),rgba(1,1,1,.98) 65%)}.visual-topline{display:flex;justify-content:space-between;align-items:center;padding:8px 14px;font-size:9px;color:#aaa}.visual-topline b{color:#ff7610;margin-right:8px}.visual-topline strong:first-child{color:var(--green)}.visual-topline strong:last-child{color:var(--yellow)}.visual-cube{min-height:0;cursor:grab;touch-action:none}.visual-cube:active{cursor:grabbing}.visual-cube canvas{display:block;width:100%;height:100%}.visual-footer{justify-self:center;align-self:center;display:flex;gap:10px;border:1px solid rgba(255,255,255,.08);border-radius:8px;padding:7px 16px;font-size:9px;color:#a49b95;background:rgba(0,0,0,.55)}
.calibration-card p{font-size:11px;line-height:1.55;margin:10px 0 0;color:#d0c8c2}.calibration-card strong{color:var(--yellow)}.history-head{display:flex;justify-content:space-between}.history-head span{font-size:8px;color:#aaa}.moves{font-size:17px;line-height:1.65;font-weight:850;margin-top:10px;word-spacing:5px;max-height:44%;overflow:hidden}.color-history{border-top:1px solid rgba(255,255,255,.08);margin-top:10px;padding-top:9px}.color-history>span{font-size:8px;color:#aaa}.color-moves{font-size:10px;line-height:1.55;color:#ff9b20;margin-top:6px;max-height:82px;overflow:hidden}.diagnostics-card{padding:0}.diagnostics-card summary{list-style:none;cursor:pointer;padding:14px;color:#ff7916;font-size:11px;font-weight:900}.diagnostics-card summary::-webkit-details-marker{display:none}.diag-inner{position:absolute;right:8px;bottom:92px;width:min(680px,80vw);height:min(320px,60vh);z-index:30;border:1px solid var(--line);border-radius:10px;background:#050505;padding:10px}.diag-inner>div{font-size:9px;color:#aaa}.diag-inner pre{height:calc(100% - 18px);overflow:auto;white-space:pre-wrap;font-size:9px;color:#ccc}.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.history-strip{border-radius:11px;display:grid;grid-template-columns:auto 1fr auto;grid-template-rows:1fr 22px;gap:3px 12px;padding:8px 12px 5px}.history-strip-title{font-size:11px;font-weight:900;color:#ff7916;align-self:center}.history-strip-title span{font-size:8px;color:#aaa}.history-pills{display:flex;gap:6px;align-items:center;overflow:hidden}.move-pill,.empty-pill{min-width:42px;height:38px;border-radius:6px;background:#111;display:grid;place-items:center;padding:0 8px;font-size:18px;font-weight:900;color:#eee}.move-pill[data-color="red"]{color:#ff2424}.move-pill[data-color="yellow"]{color:#ffd21a}.move-pill[data-color="green"]{color:#15dc4a}.move-pill[data-color="orange"]{color:#ff6508}.move-pill[data-color="blue"]{color:#20a8ff}.move-pill[data-color="white"]{color:#fff}.move-pill.rotation{color:#e0b22e}.empty-pill{font-size:9px;color:#777;min-width:100px}.tracking{grid-column:1/2;font-size:9px;color:#1bdb42;display:flex;align-items:center;gap:6px}.tracking .dot{width:8px;height:8px}.cube-slots{grid-column:2/4;display:flex;justify-content:flex-end;gap:16px;font-size:8px;color:#68615d}.cube-slots .active{color:#d6ccc5}
@media(max-height:650px){.app-shell{grid-template-rows:50px minmax(0,1fr) 60px;gap:5px;padding-top:4px;padding-bottom:4px}.topbar{padding:3px 7px;gap:8px}.brand-mark{width:34px;height:34px}.brand-fire{font-size:31px}.brand-cube{font-size:20px}.brand-title{font-size:20px}.brand-sub{font-size:6px;margin-top:2px}.status-chip{min-width:115px;padding-right:7px;gap:6px}.status-chip b{font-size:9px}.status-chip strong,.status-chip small{font-size:7px}.top-actions{gap:3px}.top-actions button{padding:6px 7px;font-size:7px}.workspace{grid-template-columns:minmax(160px,20%) minmax(350px,1fr) minmax(190px,24%);gap:5px}.rail{gap:5px}.card{padding:7px 9px}.card h2{font-size:8px}.orientation-readout{font-size:11px;margin:6px 0}.confidence-row,.anchor-line{font-size:7px}.confidence-track{height:5px;margin:5px 0}.count-readout{font-size:34px}.turn-card small{font-size:7px;margin-top:3px}.hero-move{font-size:39px;margin:5px 0}.move-facts{font-size:8px;gap:4px}.state-title{font-size:10px}.state-card code{font-size:5px}.center-stage{grid-template-rows:32px minmax(0,1fr)}.mode-tab{font-size:7px}.visual-panel{grid-template-rows:28px minmax(0,1fr) 25px}.visual-topline{padding:4px 8px;font-size:7px}.visual-footer{padding:4px 10px;font-size:7px}.calibration-card p{font-size:8px;line-height:1.35;margin-top:4px}.moves{font-size:11px;line-height:1.4;margin-top:4px}.color-history{margin-top:4px;padding-top:4px}.color-moves{font-size:7px;line-height:1.3;max-height:44px}.diagnostics-card summary{padding:8px;font-size:8px}.history-strip{padding:4px 7px 2px;grid-template-rows:1fr 14px}.history-strip-title{font-size:8px}.move-pill,.empty-pill{height:28px;min-width:31px;font-size:13px;padding:0 5px}.tracking,.cube-slots{font-size:6px}}
@media(max-width:900px) and (orientation:landscape){.app-shell{grid-template-rows:46px minmax(0,1fr) 52px}.brand-sub{display:none}.brand{padding-right:5px}.status-chip{min-width:auto}.calibrated-chip small{display:none}.workspace{grid-template-columns:145px minmax(300px,1fr) 170px}.calibration-card{display:none}.right-rail{grid-template-rows:1fr auto}.state-card{display:none}.left-rail{grid-template-rows:auto auto 1fr}.top-actions button{padding:5px;font-size:6px}.mode-tab{font-size:6px}.history-strip-title{display:none}.history-strip{grid-template-columns:1fr auto}.history-pills{grid-column:1/2}.tracking{display:none}.cube-slots{grid-column:2/3}}
@media(orientation:portrait){html,body{overflow:auto}.app-shell{height:auto;min-height:100%;overflow:visible;grid-template-rows:auto auto auto}.topbar{flex-wrap:wrap}.workspace{grid-template-columns:1fr}.center-stage{min-height:560px}.rail{grid-template-rows:auto}.history-strip{min-height:90px}.history-pills{flex-wrap:wrap}.calibration-card{display:block}.state-card{display:block}}
/* 0.15 refinement */
.brand-mark{overflow:hidden;border-radius:9px;border:1px solid rgba(255,103,9,.5);box-shadow:0 0 14px rgba(255,80,0,.22);background:#050403}
.brand-mark img{width:100%;height:100%;object-fit:cover;display:block}
.orientation-readout{display:flex;flex-wrap:wrap;gap:8px 14px;align-items:center}
.orientation-readout span{white-space:nowrap;color:#d8cec7}
.orientation-readout b{font-weight:950}
.orientation-readout b[data-face-color="green"]{color:#00e044}
.orientation-readout b[data-face-color="yellow"]{color:#ffd51a}
.orientation-readout b[data-face-color="orange"]{color:#ff7600}
.orientation-readout b[data-face-color="red"]{color:#ff2028}
.orientation-readout b[data-face-color="blue"]{color:#0875ff}
.orientation-readout b[data-face-color="white"]{color:#fffdf4}
.state-card code{display:block;font-size:9.5px;line-height:1.45;letter-spacing:.025em;color:#ffd0a1;overflow-wrap:anywhere;word-spacing:5px}
.move-pill[data-color="red"]{color:#ff2028}.move-pill[data-color="yellow"]{color:#ffd51a}.move-pill[data-color="green"]{color:#00e044}.move-pill[data-color="orange"]{color:#ff7600}.move-pill[data-color="blue"]{color:#0875ff}.move-pill[data-color="white"]{color:#fffdf4}
@media(max-height:650px){.state-card code{font-size:7px;line-height:1.3}.orientation-readout{gap:4px 8px}}

/* 0.16 calibration, branding and move-count refinement */
.topbar{min-width:0}
.brand{padding-right:12px;gap:10px}
.brand-mark{width:58px;height:58px;flex:0 0 58px;border-radius:11px}
.brand-mark img{object-fit:cover;transform:scale(1.03)}
.brand-copy{min-width:108px}
.brand-title{font-size:29px}
.counts-grid{display:grid!important;grid-template-columns:1fr 1fr;gap:8px!important;margin-top:7px!important}
.counts-grid>div{display:grid;grid-template-columns:1fr;gap:1px;border:1px solid rgba(255,101,8,.18);border-radius:7px;padding:5px 7px;background:rgba(255,255,255,.018)}
.counts-grid span{font-size:7px!important;color:#b9aaa0;letter-spacing:.08em}
.counts-grid .count-readout{font-size:35px;line-height:.95}
.counts-grid .count-readout.reduced{color:#ffd21a}
.turn-card small{line-height:1.25}
@media(max-height:650px){
  .brand-mark{width:42px;height:42px;flex-basis:42px}
  .brand-title{font-size:22px}
  .brand-copy{min-width:82px}
  .counts-grid{gap:4px!important;margin-top:3px!important}
  .counts-grid>div{padding:3px 5px}
  .counts-grid .count-readout{font-size:25px}
  .counts-grid span{font-size:5.5px!important}
}
@media(max-width:900px) and (orientation:landscape){
  .brand-mark{width:38px;height:38px;flex-basis:38px}
  .brand-title{font-size:18px}
  .brand-copy{min-width:70px}
  #resetMovesButton{font-size:5.5px;padding-left:5px;padding-right:5px}
}

/* 0.17 identity-tile, camera-space and landscape density refinement */
.app-shell{grid-template-rows:50px minmax(0,1fr) 72px}
.topbar{padding:5px 9px;gap:10px}
.workspace{grid-template-columns:minmax(220px,20%) minmax(470px,1fr) minmax(245px,24%)}
.left-rail{grid-template-rows:112px auto auto 1fr auto}
.brand-card{padding:8px 10px;display:flex;align-items:center;gap:12px;background:radial-gradient(circle at 20% 50%,rgba(255,67,0,.16),transparent 48%),linear-gradient(180deg,rgba(18,9,5,.98),rgba(4,4,4,.98));overflow:hidden}
.brand-card-art{height:94px;width:78px;flex:0 0 78px;display:grid;place-items:center}
.brand-card-art img{height:100%;width:100%;object-fit:contain;filter:drop-shadow(0 0 10px rgba(255,75,0,.28))}
.brand-card-copy{min-width:0}.brand-card .brand-title{font-size:30px}.brand-card .brand-sub{font-size:7px;line-height:1.35}
.status-chip{min-width:135px}.top-actions button{padding:7px 10px}
.visual-panel{background:radial-gradient(ellipse at 50% 48%,rgba(36,12,3,.45),rgba(1,1,1,.99) 67%)}
.visual-cube{min-height:0}
@media(max-height:760px){
  .app-shell{grid-template-rows:46px minmax(0,1fr) 58px;gap:5px}
  .workspace{grid-template-columns:minmax(190px,19%) minmax(430px,1fr) minmax(215px,23%);gap:5px}
  .left-rail{grid-template-rows:86px auto auto 1fr auto;gap:5px}
  .brand-card{padding:5px 7px;gap:7px}.brand-card-art{height:72px;width:60px;flex-basis:60px}.brand-card .brand-title{font-size:23px}.brand-card .brand-sub{font-size:5.5px}
  .topbar{padding:3px 7px}.top-actions button{padding:5px 7px;font-size:7px}.status-chip b{font-size:9px}.status-chip strong,.status-chip small{font-size:7px}
  .history-strip{padding:4px 7px 2px}.move-pill,.empty-pill{height:26px;min-width:29px;font-size:12px}.card{padding:7px 9px}
}
@media(max-width:900px) and (orientation:landscape){
  .workspace{grid-template-columns:150px minmax(300px,1fr) 168px}
  .left-rail{grid-template-rows:72px auto auto 1fr}
  .brand-card-art{height:58px;width:48px;flex-basis:48px}.brand-card .brand-title{font-size:17px}.brand-card .brand-sub{font-size:4.8px}
  .state-card{display:none}.calibration-card{display:none}
}
/* 0.18 refinements: readable color identity + more prominent product mark. */
.brand-card{min-height:98px}.brand-card-art{height:66px}.brand-card-art img{width:74px;height:74px;object-fit:contain;filter:drop-shadow(0 0 8px rgba(255,76,0,.45))}.brand-title{font-size:25px}.brand-sub{font-size:7.5px}.color-history>span{font-size:10px!important}.color-moves{font-size:11px!important;line-height:1.48!important;max-height:98px!important}.history-card .history-head span{font-size:8px}.state-card code{font-size:10.5px}
@media(max-height:650px){.brand-card{min-height:72px}.brand-card-art{height:48px}.brand-card-art img{width:54px;height:54px}.brand-title{font-size:18px}.color-history>span{font-size:8px!important}.color-moves{font-size:8.5px!important;max-height:55px!important}.state-card code{font-size:6.5px}}


/* 0.31 guided scramble test UI */
.visual-panel{position:relative}
.guide-panel{position:absolute;left:14px;bottom:28px;z-index:12;display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:340px;padding:8px 10px;border:1px solid #ff6b24;border-radius:10px;background:rgba(12,7,4,.92);box-shadow:0 0 18px rgba(255,75,0,.18)}
.guide-panel>div:first-child{display:grid;grid-template-columns:auto 1fr;align-items:center;column-gap:10px}.guide-label{grid-column:1/-1;color:#ff7a28;font-size:8px;font-weight:900;letter-spacing:.12em}.guide-panel strong{font-size:30px;color:#ffdc35;line-height:1}.guide-panel small{font-size:9px;color:#e9d6c8;white-space:nowrap}.guide-buttons{display:flex;gap:4px}.guide-buttons button{height:28px;min-width:30px;padding:0 8px;border:1px solid #ff6b24;border-radius:7px;background:#18100c;color:#ffd0aa;font-weight:900}.guide-buttons button:first-child{background:linear-gradient(#ff7d2c,#d73b0c);color:white}
.target-card{min-height:225px;display:grid;grid-template-rows:auto 1fr auto}.target-preview{min-height:165px;position:relative}.target-preview canvas{display:block;width:100%!important;height:100%!important}.target-caption{text-align:center;font-size:9px;color:#d9c9bd;padding-bottom:4px}.target-caption b:nth-child(1){color:#00f53b}.target-caption b:nth-child(2){color:#ffef00}.target-caption b:nth-child(3){color:#ff7600}
@media(max-height:650px){.target-card{min-height:175px}.target-preview{min-height:115px}.guide-panel{bottom:24px;min-width:280px}.guide-panel strong{font-size:24px}}

/* 0.32 guided workflow */
.guide-move-badge{
  position:absolute;right:18px;top:44px;z-index:13;
  min-width:74px;padding:8px 14px;border:1px solid #ff7a22;border-radius:10px;
  background:rgba(8,5,3,.88);color:#fff2d7;text-align:center;
  font-size:42px;font-weight:950;line-height:1;letter-spacing:-.03em;
  box-shadow:0 0 22px rgba(255,89,0,.22);
}
.guide-move-badge.warning{color:#ff3b26;border-color:#ff3b26;box-shadow:0 0 28px rgba(255,45,20,.48)}
.guide-move-badge.complete{font-size:20px;color:#35ff64;border-color:#35ff64;min-width:96px}
.guide-buttons button{min-width:78px}
.guide-buttons #guideNext{background:linear-gradient(#ffb129,#e85a08);color:#160900;font-size:10px}
.guide-buttons #guideRestart{background:#17100c;color:#c7a995}
.guide-buttons button:disabled{opacity:.35;cursor:not-allowed}
.target-card{min-height:230px}
.target-preview{min-height:170px}

/* 0.34 guide mode controls */
.guide-mode-toggle{
  position:absolute;left:14px;top:44px;z-index:13;display:flex;
  border:1px solid #713217;border-radius:9px;overflow:hidden;background:rgba(8,5,3,.92)
}
.guide-mode-toggle button{
  border:0;border-right:1px solid #713217;background:#140d09;color:#bda18d;
  padding:7px 12px;font-size:9px;font-weight:900;letter-spacing:.05em;cursor:pointer
}
.guide-mode-toggle button:last-child{border-right:0}
.guide-mode-toggle button.active{background:linear-gradient(#ff7d2b,#d8430e);color:#fff}
.guide-buttons button{min-width:72px}
.guide-buttons #guideNext{background:linear-gradient(#ffb32c,#e45b08);color:#190900}

/* 0.36 per-cube gyro profile diagnostic */
.gyro-profile{display:flex;align-items:center;gap:4px;margin-top:7px;padding-top:6px;border-top:1px solid rgba(255,122,40,.15)}
.gyro-profile>span{font-size:7px;color:#9f806d;letter-spacing:.08em;margin-right:auto}
.gyro-profile button{border:1px solid #5a2a16;border-radius:5px;background:#130c09;color:#9f806d;font-size:7px;font-weight:900;padding:4px 6px}
.gyro-profile button.active{border-color:#ff6d20;color:#fff;background:#8f2c0d}

/* 0.39 state-based scramble recovery */
.guide-move-badge.recovery{
  color:#fff4bd;border-color:#ffb21b;
  box-shadow:0 0 30px rgba(255,118,0,.55);
  background:linear-gradient(145deg,rgba(73,21,3,.96),rgba(18,8,3,.94))
}

.scramble-mode-chooser{
  position:absolute;inset:34px 8px 26px;z-index:30;display:flex;align-items:center;justify-content:center;
  background:rgba(4,3,2,.58);backdrop-filter:blur(4px);border-radius:12px
}
.scramble-mode-chooser.hidden{display:none}
.scramble-mode-card{
  width:min(560px,88%);padding:18px 20px;border:1px solid #ff6b22;border-radius:14px;
  background:linear-gradient(145deg,rgba(17,9,5,.98),rgba(47,14,4,.96));
  box-shadow:0 0 38px rgba(255,72,0,.24);text-align:center
}
.chooser-kicker{font-size:9px;font-weight:900;letter-spacing:.14em;color:#ff7b2d}
.scramble-mode-card h3{margin:5px 0 3px;font-size:24px;color:#fff0df}
.scramble-mode-card p{margin:0 0 13px;font-size:10px;color:#bda898}
.chooser-options{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.chooser-options button{
  min-height:72px;border:1px solid #84401e;border-radius:11px;background:#130c08;color:#fff;
  padding:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px
}
.chooser-options button:hover{border-color:#ff7c27;background:#241008}
.chooser-options strong{font-size:12px;color:#ffcf8e}
.chooser-options small{font-size:8px;color:#bca28f;line-height:1.25}


/* FireStorm v70.10 hosted guided-round presentation */
html,body{background:#050201!important}
body{overscroll-behavior:none}
.firestorm-firecube{width:100%;height:100%;max-width:100%;max-height:100%;padding:7px;grid-template-rows:58px minmax(0,1fr) 42px;gap:7px;background:radial-gradient(circle at 50% 35%,rgba(88,29,5,.28),transparent 44%)}
.firestorm-firecube .topbar{min-width:0;border-radius:13px;padding:6px 9px;gap:8px;background:linear-gradient(180deg,rgba(54,23,13,.98),rgba(16,7,4,.98))}
.firestorm-round-brand{display:flex;align-items:center;gap:9px;min-width:0;margin-right:auto}.firestorm-round-brand img{width:43px;height:43px;object-fit:contain;filter:drop-shadow(0 0 8px rgba(255,82,15,.45))}.firestorm-round-brand-copy{min-width:0}.firestorm-round-title{font-size:clamp(16px,2.2vw,25px);font-weight:1000;color:#ff6b25;letter-spacing:.055em;line-height:1}.firestorm-round-meta{margin-top:4px;font-size:9px;color:#f1d2bf;text-transform:uppercase;font-weight:900;letter-spacing:.09em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.firestorm-round-meta b{color:#ffba78}
.firestorm-firecube .status-chip{min-width:118px;padding:0 8px;border:0;border-left:1px solid rgba(255,255,255,.09)}.firestorm-firecube .status-chip b{font-size:10px}.firestorm-firecube .status-chip strong{font-size:9px}.firestorm-firecube .top-actions{gap:5px;flex-wrap:nowrap}.firestorm-firecube .top-actions button{padding:7px 9px;font-size:8px;white-space:nowrap}
.firestorm-firecube .workspace{grid-template-columns:minmax(0,1fr) minmax(205px,25%);gap:7px;min-width:0}.firestorm-firecube .center-stage{grid-template-rows:minmax(0,1fr)}.firestorm-firecube .visual-panel{border:1px solid var(--line);border-radius:14px;grid-template-rows:34px minmax(0,1fr) 31px;overflow:hidden}.firestorm-firecube .visual-topline{font-size:9px;padding:7px 11px}.firestorm-firecube .visual-cube{min-width:0;min-height:0}.firestorm-firecube .visual-footer{padding:5px 11px;font-size:8px}.firestorm-firecube .right-rail{grid-template-rows:minmax(0,1fr) auto;gap:7px}.firestorm-firecube .target-card{min-height:0;grid-template-rows:auto minmax(0,1fr) auto;padding:9px}.firestorm-firecube .target-preview{min-height:0}.firestorm-firecube .calibration-card{padding:9px}.firestorm-firecube .calibration-card p{font-size:9px;line-height:1.35;margin-top:5px}.firestorm-firecube .guide-panel{left:10px;right:10px;bottom:28px;min-width:0;padding:7px 8px;gap:8px}.firestorm-firecube .guide-panel>div:first-child{min-width:0}.firestorm-firecube .guide-panel small{white-space:normal;line-height:1.2}.firestorm-firecube .guide-panel strong{font-size:27px}.firestorm-firecube .guide-buttons{flex-wrap:nowrap}.firestorm-firecube .guide-buttons button{min-width:70px;height:30px;font-size:8px;padding:0 7px}.firestorm-firecube .guide-move-badge{right:12px;top:38px;font-size:38px}.firestorm-firecube .guide-mode-toggle{display:none!important}.firestorm-firecube .scramble-mode-chooser{display:none!important}.firestorm-firecube .history-strip{grid-template-columns:auto 1fr auto;grid-template-rows:1fr;border-radius:11px;padding:5px 9px}.firestorm-firecube .history-strip-title{font-size:9px}.firestorm-firecube .tracking,.firestorm-firecube .cube-slots{display:none}.firestorm-firecube .move-pill,.firestorm-firecube .empty-pill{height:27px;min-width:31px;font-size:13px}.firestorm-firecube .empty-pill{font-size:8px;min-width:90px}
.firestorm-runtime-hidden{position:fixed!important;left:-10000px!important;top:-10000px!important;width:2px!important;height:2px!important;overflow:hidden!important;opacity:0!important;pointer-events:none!important}.firestorm-runtime-hidden *{max-width:2px!important;max-height:2px!important}
.firecube-load-error{position:fixed;inset:12px;z-index:999;display:none;place-items:center;text-align:center;border:1px solid #ff6030;border-radius:14px;background:rgba(15,5,3,.97);padding:24px;color:#fff}.firecube-load-error.show{display:grid}.firecube-load-error strong{display:block;color:#ff7a32;font-size:24px;margin-bottom:8px}.firecube-load-error small{display:block;color:#d5b9a8;max-width:700px}
body.firecube-mode-manual #connectButton,body.firecube-mode-manual #calibrateButton,body.firecube-mode-manual #recenterButton,body.firecube-mode-manual .smart-only-status{display:none!important}
body.firecube-mode-smart .manual-only-status{display:none!important}
body.firestorm-solving .guide-panel{border-color:#27dc55;box-shadow:0 0 22px rgba(39,220,85,.2)}body.firestorm-solving .guide-move-badge{border-color:#27dc55;color:#d9ffe1}
@media(max-height:560px){.firestorm-firecube{grid-template-rows:48px minmax(0,1fr) 34px;padding:4px;gap:4px}.firestorm-round-brand img{width:35px;height:35px}.firestorm-round-title{font-size:17px}.firestorm-round-meta{font-size:7px;margin-top:2px}.firestorm-firecube .status-chip{min-width:95px}.firestorm-firecube .top-actions button{padding:5px 6px;font-size:6.5px}.firestorm-firecube .workspace{grid-template-columns:minmax(0,1fr) 185px;gap:4px}.firestorm-firecube .visual-panel{grid-template-rows:26px minmax(0,1fr) 23px}.firestorm-firecube .visual-topline{font-size:7px;padding:4px 7px}.firestorm-firecube .guide-panel{bottom:21px;padding:4px 6px}.firestorm-firecube .guide-panel strong{font-size:22px}.firestorm-firecube .guide-panel small{font-size:7px}.firestorm-firecube .guide-buttons button{height:24px;min-width:58px;font-size:6.5px}.firestorm-firecube .guide-move-badge{top:29px;font-size:29px;padding:5px 10px}.firestorm-firecube .target-card{padding:5px}.firestorm-firecube .target-caption{font-size:7px}.firestorm-firecube .calibration-card p{font-size:7px}.firestorm-firecube .history-strip{padding:3px 6px}.firestorm-firecube .move-pill,.firestorm-firecube .empty-pill{height:22px}}
@media(max-width:780px) and (orientation:landscape){.firestorm-firecube{padding-left:max(4px,env(safe-area-inset-left));padding-right:max(4px,env(safe-area-inset-right))}.firestorm-firecube .workspace{grid-template-columns:minmax(0,1fr) minmax(150px,27%)}.firestorm-firecube .status-chip{display:none}.firestorm-firecube .top-actions button{padding:5px 7px}.firestorm-firecube .calibration-card{display:block}.firestorm-firecube .guide-buttons button{min-width:52px}.firestorm-round-brand img{display:none}}


/* FireStorm v70.17 guided interface polish */
.firestorm-firecube .workspace{grid-template-columns:minmax(0,58fr) minmax(300px,42fr)!important;gap:9px!important}
.firestorm-firecube .right-rail{min-width:0!important}
.firestorm-firecube .target-card{padding:8px!important}
.firestorm-firecube .target-preview{overflow:hidden!important}
.firestorm-firecube .guide-move-badge{left:50%!important;right:auto!important;top:43px!important;transform:translateX(-50%)!important;min-width:112px!important;padding:10px 20px!important;font-size:clamp(46px,7vw,78px)!important;background:rgba(10,5,3,.87)!important;border-width:2px!important;box-shadow:0 0 30px rgba(255,89,0,.34)!important;cursor:pointer!important;user-select:none!important}
.firestorm-firecube .guide-move-badge:before{content:'NEXT MOVE';display:block;margin-bottom:4px;font-size:9px;letter-spacing:.16em;color:#ff9b4b;line-height:1}
.firestorm-firecube .guide-panel{padding:10px 12px!important;gap:12px!important;min-height:58px!important;background:rgba(5,3,2,.91)!important}
.firestorm-firecube .guide-panel strong{font-size:36px!important}
.firestorm-firecube .guide-panel small{font-size:10px!important}
.firestorm-firecube .guide-buttons{gap:8px!important}
.firestorm-firecube .guide-buttons button{min-width:96px!important;height:42px!important;padding:0 13px!important;font-size:11px!important;border-radius:10px!important}
.firestorm-firecube .visual-footer{font-size:9px!important}
.firestorm-firecube .target-caption{font-size:10px!important}
@media(max-height:650px){
  .firestorm-firecube .workspace{grid-template-columns:minmax(0,57fr) minmax(250px,43fr)!important;gap:5px!important}
  .firestorm-firecube .guide-move-badge{top:31px!important;min-width:88px!important;padding:6px 13px!important;font-size:clamp(35px,8vh,55px)!important}
  .firestorm-firecube .guide-move-badge:before{font-size:7px!important;margin-bottom:2px!important}
  .firestorm-firecube .guide-panel{padding:6px 8px!important;min-height:44px!important}
  .firestorm-firecube .guide-panel strong{font-size:28px!important}
  .firestorm-firecube .guide-panel small{font-size:8px!important}
  .firestorm-firecube .guide-buttons button{min-width:78px!important;height:34px!important;font-size:9px!important;padding:0 9px!important}
}
@media(max-width:780px) and (orientation:landscape){
  .firestorm-firecube .workspace{grid-template-columns:minmax(0,56fr) minmax(210px,44fr)!important}
  .firestorm-firecube .guide-buttons button{min-width:68px!important}
}

/* FireStorm v70.17 — clearer guide command, compact Bluefy controls, larger turn ring */
.firestorm-firecube .visual-panel{
  grid-template-rows:34px 52px minmax(0,1fr) 31px!important;
}
.firestorm-firecube .guide-command-strip{
  display:flex;align-items:center;justify-content:center;gap:14px;
  min-width:0;padding:4px 12px;border-top:1px solid rgba(255,120,35,.18);
  border-bottom:1px solid rgba(255,120,35,.28);
  background:linear-gradient(180deg,rgba(52,20,8,.82),rgba(10,5,3,.92));
  color:#ff9a4e;font-size:10px;font-weight:1000;letter-spacing:.15em;
  text-transform:uppercase;box-shadow:inset 0 -8px 18px rgba(0,0,0,.28);
}
.firestorm-firecube .guide-command-strip .guide-move-badge{
  position:static!important;left:auto!important;right:auto!important;top:auto!important;
  transform:none!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;
  min-width:88px!important;height:42px!important;padding:0 18px!important;margin:0!important;
  border:1px solid #ff8a32!important;border-radius:11px!important;
  background:radial-gradient(circle at 50% 25%,rgba(255,135,42,.30),rgba(12,6,3,.94) 68%)!important;
  box-shadow:0 0 18px rgba(255,79,13,.22)!important;
  color:#fff3df!important;font-size:34px!important;line-height:1!important;cursor:pointer!important;
}
.firestorm-firecube .guide-command-strip .guide-move-badge:before{content:none!important}
.firestorm-firecube .guide-panel{left:12px!important;right:12px!important;bottom:29px!important;min-height:52px!important;padding:8px 10px!important}
.firestorm-firecube .guide-panel>div:first-child{display:block!important;min-width:0!important;text-align:left!important;flex:1 1 auto!important}
.firestorm-firecube .guide-panel .guide-label{display:block!important;font-size:7px!important;margin-bottom:2px!important}
.firestorm-firecube .guide-panel strong{display:none!important}
.firestorm-firecube .guide-panel small{display:block!important;font-size:9px!important;line-height:1.25!important;white-space:normal!important}
.firestorm-firecube .guide-buttons{flex:0 0 auto!important;gap:6px!important}
.firestorm-firecube .guide-buttons button{min-width:82px!important;height:36px!important;padding:0 10px!important;font-size:9px!important;border-radius:9px!important}
.firestorm-firecube .top-actions{gap:6px!important;align-items:center!important}
.firestorm-firecube .top-actions button{min-width:0!important;height:34px!important;padding:0 10px!important;font-size:8px!important;border-radius:9px!important;white-space:nowrap!important}
.firestorm-firecube .top-actions #connectButton{min-width:112px!important;max-width:150px!important;overflow:hidden!important;text-overflow:ellipsis!important}
.firestorm-firecube .top-actions .secondary-button:disabled{opacity:.24!important}
.firestorm-firecube .top-actions .icon-button{font-size:8px!important;min-width:62px!important;padding:0 8px!important;color:#ffe2c8!important}
.firestorm-firecube .workspace{grid-template-columns:minmax(0,60fr) minmax(290px,40fr)!important}
.firestorm-firecube .target-preview{padding:4px!important}
.firestorm-firecube .target-caption{font-size:9px!important}
@media(max-height:620px){
  .firestorm-firecube .visual-panel{grid-template-rows:27px 40px minmax(0,1fr) 23px!important}
  .firestorm-firecube .guide-command-strip{padding:2px 8px!important;font-size:7px!important;gap:8px!important}
  .firestorm-firecube .guide-command-strip .guide-move-badge{height:32px!important;min-width:68px!important;padding:0 10px!important;font-size:25px!important}
  .firestorm-firecube .guide-panel{bottom:21px!important;min-height:38px!important;padding:4px 6px!important}
  .firestorm-firecube .guide-panel small{font-size:7px!important;max-width:240px!important}
  .firestorm-firecube .guide-buttons button{min-width:62px!important;height:28px!important;padding:0 6px!important;font-size:7px!important}
  .firestorm-firecube .top-actions button{height:28px!important;padding:0 6px!important;font-size:6.5px!important}
  .firestorm-firecube .top-actions #connectButton{min-width:88px!important;max-width:112px!important}
  .firestorm-firecube .top-actions .icon-button{min-width:49px!important;font-size:6.5px!important}
  .firestorm-firecube .workspace{grid-template-columns:minmax(0,59fr) minmax(235px,41fr)!important;gap:5px!important}
}
@media(max-width:820px) and (orientation:landscape){
  .firestorm-firecube{padding-left:max(3px,env(safe-area-inset-left))!important;padding-right:max(3px,env(safe-area-inset-right))!important}
  .firestorm-firecube .topbar{padding:4px 6px!important;gap:5px!important}
  .firestorm-round-title{font-size:15px!important}.firestorm-round-meta{font-size:6.5px!important}
  .firestorm-firecube .top-actions{margin-left:auto!important}
  .firestorm-firecube .top-actions button{height:27px!important;padding:0 5px!important;font-size:6px!important}
  .firestorm-firecube .top-actions #connectButton{min-width:84px!important;max-width:104px!important}
  .firestorm-firecube .top-actions .secondary-button:disabled{display:none!important}
  .firestorm-firecube .top-actions .icon-button{min-width:44px!important}
  .firestorm-firecube .workspace{grid-template-columns:minmax(0,58fr) minmax(190px,42fr)!important;gap:4px!important}
  .firestorm-firecube .guide-panel{left:5px!important;right:5px!important}
  .firestorm-firecube .guide-panel small{max-width:180px!important}
  .firestorm-firecube .guide-buttons{gap:3px!important}
  .firestorm-firecube .guide-buttons button{min-width:54px!important;height:27px!important;padding:0 4px!important;font-size:6.5px!important}
  .firestorm-firecube .target-card{padding:4px!important}.firestorm-firecube .target-caption{font-size:6.5px!important}
}

/* FireStorm v70.17 — phone landscape guide controls no longer cover the cube */
@media (max-width: 900px) and (orientation: landscape) {
  .firestorm-firecube{
    grid-template-rows:42px minmax(0,1fr) 30px!important;
    gap:3px!important;
    padding-top:max(3px,env(safe-area-inset-top))!important;
    padding-bottom:max(3px,env(safe-area-inset-bottom))!important;
  }
  .firestorm-firecube .topbar{min-height:0!important;padding:3px 5px!important}
  .firestorm-firecube .workspace{gap:4px!important}
  .firestorm-firecube .visual-panel{
    grid-template-rows:22px 34px minmax(0,1fr) 34px!important;
  }
  .firestorm-firecube .visual-topline{padding:3px 6px!important;font-size:6.5px!important;min-width:0!important}
  .firestorm-firecube .visual-topline>div:first-child span{display:none!important}
  .firestorm-firecube .visual-footer{display:none!important}
  .firestorm-firecube .guide-command-strip{height:34px!important;min-height:34px!important;padding:1px 6px!important;gap:7px!important;font-size:7px!important}
  .firestorm-firecube .guide-command-strip .guide-move-badge{height:29px!important;min-width:62px!important;padding:0 9px!important;font-size:23px!important;border-radius:8px!important}
  .firestorm-firecube .visual-cube{min-height:0!important;overflow:hidden!important}
  .firestorm-firecube .guide-panel{
    position:static!important;
    inset:auto!important;
    grid-row:auto!important;
    width:100%!important;
    min-width:0!important;
    min-height:34px!important;
    height:34px!important;
    margin:0!important;
    padding:2px 4px!important;
    border-width:1px 0 0!important;
    border-radius:0!important;
    box-shadow:none!important;
    background:linear-gradient(180deg,rgba(38,16,8,.97),rgba(8,4,3,.99))!important;
    z-index:2!important;
  }
  .firestorm-firecube .guide-panel>div:first-child{display:none!important}
  .firestorm-firecube .guide-buttons{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;width:100%!important;gap:4px!important}
  .firestorm-firecube .guide-buttons button{width:100%!important;min-width:0!important;height:29px!important;padding:0 5px!important;font-size:7px!important;border-radius:7px!important}
  .firestorm-firecube .target-card{padding:4px!important}
  .firestorm-firecube .history-head h2{font-size:7px!important}
  .firestorm-firecube .history-head span{font-size:6px!important}
  .firestorm-firecube .target-caption{padding:1px 0!important;font-size:6px!important}
  .firestorm-firecube .history-strip{min-height:0!important;padding:2px 5px!important}
  .firestorm-firecube .move-pill,.firestorm-firecube .empty-pill{height:20px!important}
}

@media (max-width: 900px) and (orientation: landscape) and (max-height: 430px) {
  .firestorm-firecube{grid-template-rows:38px minmax(0,1fr) 26px!important}
  .firestorm-round-title{font-size:13px!important}
  .firestorm-round-meta{font-size:5.5px!important;margin-top:1px!important}
  .firestorm-firecube .top-actions button{height:24px!important}
  .firestorm-firecube .visual-panel{grid-template-rows:19px 30px minmax(0,1fr) 31px!important}
  .firestorm-firecube .guide-command-strip{height:30px!important;min-height:30px!important}
  .firestorm-firecube .guide-command-strip .guide-move-badge{height:26px!important;font-size:21px!important}
  .firestorm-firecube .guide-panel{height:31px!important;min-height:31px!important}
  .firestorm-firecube .guide-buttons button{height:26px!important;font-size:6.5px!important}
}


/* FireStorm v70.17 — consolidate redundant rows into one bottom command dock */
.firestorm-firecube{grid-template-rows:minmax(0,1fr) 52px!important;gap:5px!important;padding:5px!important}
.firestorm-firecube .workspace{grid-row:1!important;min-height:0!important}
.firestorm-firecube .firecube-control-dock{grid-row:2!important;display:grid!important;grid-template-columns:minmax(125px,.75fr) minmax(360px,1.7fr) auto!important;grid-template-rows:1fr!important;align-items:center!important;gap:8px!important;min-height:0!important;padding:4px 7px!important;border-radius:11px!important;overflow:hidden!important}
.firestorm-firecube .dock-status{display:flex!important;align-items:center!important;gap:7px!important;min-width:0!important;overflow:hidden!important}.firestorm-firecube .dock-smart-status{display:flex;align-items:center;gap:6px;min-width:0;color:#d8bca9;font-size:8px;line-height:1.05}.firestorm-firecube .dock-smart-status>span:last-child{display:grid;min-width:0}.firestorm-firecube .dock-smart-status b,.firestorm-firecube .dock-smart-status small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.firestorm-firecube .dock-smart-status b{color:#f7e3d6;font-size:8px}.firestorm-firecube .dock-smart-status small{color:#baa18f;font-size:6.5px}
.firestorm-firecube .history-pills{min-width:0!important;overflow:hidden!important}.firestorm-firecube .history-pills .move-pill:nth-last-child(-n+3){display:grid}.firestorm-firecube .history-pills .move-pill{display:none}.firestorm-firecube .history-pills .empty-pill{height:28px!important;min-width:92px!important}
.firestorm-firecube .guide-panel{position:static!important;inset:auto!important;width:100%!important;height:42px!important;min-height:42px!important;display:grid!important;grid-template-columns:minmax(95px,.72fr) minmax(220px,1.28fr)!important;align-items:center!important;gap:8px!important;margin:0!important;padding:3px 5px!important;border:0!important;border-radius:9px!important;background:linear-gradient(180deg,rgba(42,17,8,.9),rgba(8,4,3,.95))!important;box-shadow:inset 0 0 0 1px rgba(255,124,39,.23)!important}
.firestorm-firecube .dock-step-copy{display:flex!important;align-items:center!important;gap:6px!important;min-width:0!important;overflow:hidden!important;text-align:left!important}.firestorm-firecube .dock-step-copy .guide-label{font-size:6px!important;white-space:nowrap!important}.firestorm-firecube .dock-step-copy strong{display:block!important;font-size:22px!important;line-height:1!important;color:#ffd34f!important}.firestorm-firecube .dock-step-copy small{display:block!important;font-size:7px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;min-width:0!important}
.firestorm-firecube .guide-buttons{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:5px!important;width:100%!important}.firestorm-firecube .guide-buttons button{width:100%!important;min-width:0!important;height:34px!important;padding:0 7px!important;font-size:8px!important;border-radius:8px!important}
.firestorm-firecube .top-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:5px!important;min-width:0!important}.firestorm-firecube .top-actions button{height:34px!important;min-width:0!important;padding:0 8px!important;font-size:7px!important;border-radius:8px!important}.firestorm-firecube .top-actions #connectButton{min-width:100px!important;max-width:130px!important}.firestorm-firecube .top-actions .icon-button{min-width:54px!important}
.firestorm-firecube .visual-panel{grid-template-rows:25px 46px minmax(0,1fr) 22px!important}.firestorm-firecube .visual-topline{padding:4px 8px!important}.firestorm-firecube .visual-cube{overflow:hidden!important}.firestorm-firecube .guide-command-strip{height:46px!important;min-height:46px!important}.firestorm-firecube .guide-command-strip .guide-move-badge{height:38px!important;min-width:82px!important;font-size:31px!important}.firestorm-firecube .calibration-card{display:none!important}.firestorm-firecube .right-rail{grid-template-rows:minmax(0,1fr)!important}body.firecube-mode-manual .dock-smart-status{display:none!important}body.firecube-mode-manual .dock-status{justify-content:flex-start!important}
@media(max-height:620px){.firestorm-firecube{grid-template-rows:minmax(0,1fr) 43px!important;padding:3px!important;gap:3px!important}.firestorm-firecube .firecube-control-dock{grid-template-columns:minmax(90px,.55fr) minmax(300px,1.65fr) auto!important;gap:4px!important;padding:2px 4px!important}.firestorm-firecube .guide-panel{height:37px!important;min-height:37px!important;grid-template-columns:minmax(75px,.55fr) minmax(190px,1.45fr)!important;padding:2px 3px!important;gap:4px!important}.firestorm-firecube .dock-step-copy strong{font-size:18px!important}.firestorm-firecube .dock-step-copy small{font-size:6px!important}.firestorm-firecube .guide-buttons{gap:3px!important}.firestorm-firecube .guide-buttons button{height:31px!important;font-size:7px!important}.firestorm-firecube .top-actions{gap:3px!important}.firestorm-firecube .top-actions button{height:31px!important;padding:0 5px!important;font-size:6px!important}.firestorm-firecube .top-actions #connectButton{min-width:82px!important;max-width:102px!important}.firestorm-firecube .top-actions .icon-button{min-width:43px!important}.firestorm-firecube .visual-panel{grid-template-rows:21px 38px minmax(0,1fr) 18px!important}.firestorm-firecube .guide-command-strip{height:38px!important;min-height:38px!important}.firestorm-firecube .guide-command-strip .guide-move-badge{height:32px!important;font-size:25px!important}}
@media(max-width:900px) and (orientation:landscape){.firestorm-firecube{grid-template-rows:minmax(0,1fr) 38px!important;padding:2px max(2px,env(safe-area-inset-right)) 2px max(2px,env(safe-area-inset-left))!important}.firestorm-firecube .firecube-control-dock{grid-template-columns:minmax(0,1fr) auto!important;gap:4px!important;height:38px!important;padding:2px 3px!important}.firestorm-firecube .dock-status{display:none!important}.firestorm-firecube .guide-panel{height:34px!important;min-height:34px!important;grid-template-columns:0 minmax(210px,1fr)!important;gap:0!important;padding:1px 3px!important}.firestorm-firecube .dock-step-copy{display:none!important}.firestorm-firecube .guide-buttons button{height:30px!important;font-size:6.5px!important}.firestorm-firecube .top-actions button{height:30px!important;padding:0 4px!important;font-size:5.8px!important}.firestorm-firecube .top-actions #connectButton{min-width:76px!important;max-width:92px!important}.firestorm-firecube .top-actions .secondary-button:disabled{display:none!important}.firestorm-firecube .top-actions .icon-button{min-width:40px!important}.firestorm-firecube .visual-panel{grid-template-rows:18px 32px minmax(0,1fr)!important}.firestorm-firecube .visual-footer{display:none!important}.firestorm-firecube .guide-command-strip{height:32px!important;min-height:32px!important}.firestorm-firecube .guide-command-strip .guide-move-badge{height:27px!important;min-width:60px!important;font-size:22px!important}}


/* FireStorm v70.17 — centered move overlay and non-collapsing command dock */
.firestorm-firecube .visual-panel{position:relative!important;grid-template-rows:25px minmax(0,1fr) 22px!important}
.firestorm-firecube .guide-command-strip{position:absolute!important;z-index:10!important;top:30px!important;left:50%!important;right:auto!important;bottom:auto!important;transform:translateX(-50%)!important;width:auto!important;min-width:148px!important;height:auto!important;min-height:0!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:9px!important;padding:4px 9px!important;border:1px solid rgba(255,126,38,.74)!important;border-radius:11px!important;background:linear-gradient(180deg,rgba(47,20,11,.92),rgba(8,4,3,.9))!important;box-shadow:0 0 18px rgba(255,75,10,.17)!important;pointer-events:none!important;font-size:7px!important;letter-spacing:.12em!important}
.firestorm-firecube .guide-command-strip .guide-move-badge{position:static!important;inset:auto!important;transform:none!important;height:34px!important;min-width:72px!important;padding:0 10px!important;font-size:29px!important;border-radius:8px!important}
.firestorm-firecube .firecube-control-dock{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;grid-template-rows:1fr!important;align-items:center!important;gap:8px!important;height:52px!important;min-height:52px!important;padding:4px 7px!important;overflow:visible!important}
.firestorm-firecube .dock-status{display:none!important}
.firestorm-firecube .guide-panel{position:static!important;inset:auto!important;display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;min-width:0!important;height:42px!important;min-height:42px!important;margin:0!important;padding:3px 6px!important;border:0!important;border-radius:9px!important;background:linear-gradient(180deg,rgba(42,17,8,.9),rgba(8,4,3,.95))!important;box-shadow:inset 0 0 0 1px rgba(255,124,39,.23)!important}
.firestorm-firecube .dock-step-copy{display:none!important}
.firestorm-firecube .guide-buttons{display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;width:min(560px,100%)!important;min-width:0!important}
.firestorm-firecube .guide-buttons button{display:block!important;flex:1 1 0!important;width:auto!important;min-width:90px!important;max-width:180px!important;height:34px!important;padding:0 10px!important;font-size:8px!important;border-radius:8px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.firestorm-firecube .top-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:5px!important;min-width:max-content!important}.firestorm-firecube .top-actions button{height:34px!important;min-width:54px!important;padding:0 8px!important;font-size:7px!important;border-radius:8px!important;white-space:nowrap!important}
@media(max-height:620px){.firestorm-firecube .visual-panel{grid-template-rows:21px minmax(0,1fr) 18px!important}.firestorm-firecube .guide-command-strip{top:24px!important;min-width:126px!important;padding:3px 7px!important}.firestorm-firecube .guide-command-strip .guide-move-badge{height:29px!important;min-width:62px!important;font-size:24px!important}.firestorm-firecube .firecube-control-dock{height:43px!important;min-height:43px!important;padding:2px 4px!important}.firestorm-firecube .guide-panel{height:37px!important;min-height:37px!important}.firestorm-firecube .guide-buttons{gap:5px!important}.firestorm-firecube .guide-buttons button{height:31px!important;min-width:75px!important;font-size:7px!important}.firestorm-firecube .top-actions button{height:31px!important;min-width:43px!important;font-size:6px!important}}
@media(max-width:900px) and (orientation:landscape){.firestorm-firecube .visual-panel{grid-template-rows:18px minmax(0,1fr)!important}.firestorm-firecube .guide-command-strip{top:21px!important;min-width:112px!important;gap:5px!important;padding:2px 6px!important;font-size:5.8px!important}.firestorm-firecube .guide-command-strip .guide-move-badge{height:26px!important;min-width:56px!important;font-size:21px!important}.firestorm-firecube .firecube-control-dock{grid-template-columns:minmax(0,1fr) auto!important;height:38px!important;min-height:38px!important;padding:2px 3px!important;gap:4px!important}.firestorm-firecube .guide-panel{height:34px!important;min-height:34px!important;padding:1px 3px!important}.firestorm-firecube .guide-buttons{gap:4px!important}.firestorm-firecube .guide-buttons button{height:30px!important;min-width:58px!important;font-size:6.5px!important;padding:0 5px!important}.firestorm-firecube .top-actions{gap:3px!important}.firestorm-firecube .top-actions button{height:30px!important;min-width:40px!important;padding:0 4px!important;font-size:5.8px!important}}

/* FireStorm v71.0 Alpha 2: display-only guide used in simultaneous Smart Cube Battle. */
body.firestorm-multi-display .firecube-control-dock{display:none!important}
body.firestorm-multi-display .workspace{height:100%!important;min-height:0!important;padding:0!important;gap:6px!important}
body.firestorm-multi-display .guide-mode-toggle,
body.firestorm-multi-display .smart-only-status,
body.firestorm-multi-display .scramble-mode-chooser{display:none!important}
body.firestorm-multi-display .visual-footer{display:none!important}
body.firestorm-multi-display .visual-panel,
body.firestorm-multi-display .target-card{height:100%!important;min-height:0!important}
body.firestorm-multi-display .visual-cube,
body.firestorm-multi-display .target-preview{min-height:0!important}

/* FireStorm v71.0 Alpha 2 — simultaneous smart-battle display refinements */
body.firestorm-multi-display .workspace{grid-template-columns:minmax(0,58%) minmax(175px,42%)!important;gap:5px!important}
body.firestorm-multi-display .center-stage{grid-template-rows:minmax(0,1fr)!important}
body.firestorm-multi-display .visual-panel{grid-template-rows:24px 54px minmax(0,1fr)!important;border-radius:12px!important}
body.firestorm-multi-display .visual-topline{padding:5px 10px!important;font-size:8px!important}
body.firestorm-multi-display .guide-command-strip{top:26px!important;min-width:150px!important;gap:10px!important;padding:4px 10px!important;font-size:8px!important}
body.firestorm-multi-display .guide-command-strip .guide-move-badge{height:40px!important;min-width:86px!important;padding:0 12px!important;font-size:34px!important}
body.firestorm-multi-display .visual-cube,
body.firestorm-multi-display .target-preview{padding:10px!important}
body.firestorm-multi-display .target-card{padding:8px 10px!important}
body.firestorm-multi-display .target-card .history-head h2{font-size:10px!important}
body.firestorm-multi-display .target-card .history-head span{font-size:8px!important}
@media(max-height:650px){body.firestorm-multi-display .workspace{grid-template-columns:minmax(0,57%) minmax(150px,43%)!important;gap:4px!important}body.firestorm-multi-display .visual-panel{grid-template-rows:20px 46px minmax(0,1fr)!important}body.firestorm-multi-display .guide-command-strip{top:22px!important;min-width:130px!important;gap:8px!important;padding:3px 8px!important}body.firestorm-multi-display .guide-command-strip .guide-move-badge{height:34px!important;min-width:74px!important;font-size:28px!important}body.firestorm-multi-display .visual-cube,body.firestorm-multi-display .target-preview{padding:8px!important}}
@media(max-width:900px) and (orientation:landscape){body.firestorm-multi-display .workspace{grid-template-columns:minmax(0,59%) minmax(135px,41%)!important;gap:4px!important}body.firestorm-multi-display .visual-panel{grid-template-rows:18px 42px minmax(0,1fr)!important}body.firestorm-multi-display .guide-command-strip{top:20px!important;min-width:122px!important;gap:7px!important;padding:3px 7px!important;font-size:6.6px!important}body.firestorm-multi-display .guide-command-strip .guide-move-badge{height:31px!important;min-width:66px!important;font-size:24px!important}body.firestorm-multi-display .visual-cube,body.firestorm-multi-display .target-preview{padding:6px!important}}


/* FireStorm v71.0 Alpha 2 — correct multi-display cube sizing without canvas padding */
body.firestorm-multi-display .workspace{
  grid-template-columns:minmax(0,58%) minmax(175px,42%)!important;
  gap:5px!important;
}
body.firestorm-multi-display .visual-panel{
  grid-template-rows:24px minmax(0,1fr)!important;
  border-radius:12px!important;
}
body.firestorm-multi-display .visual-cube,
body.firestorm-multi-display .target-preview{
  padding:0!important;
  overflow:hidden!important;
}
body.firestorm-multi-display .guide-command-strip{
  top:28px!important;
  min-width:162px!important;
  gap:11px!important;
  padding:5px 11px!important;
  font-size:8px!important;
}
body.firestorm-multi-display .guide-command-strip .guide-move-badge{
  height:42px!important;
  min-width:92px!important;
  padding:0 13px!important;
  font-size:36px!important;
}
body.firestorm-multi-display .target-card{padding:7px 9px!important}
@media(max-height:650px){
  body.firestorm-multi-display .workspace{grid-template-columns:minmax(0,57%) minmax(150px,43%)!important;gap:4px!important}
  body.firestorm-multi-display .visual-panel{grid-template-rows:20px minmax(0,1fr)!important}
  body.firestorm-multi-display .guide-command-strip{top:23px!important;min-width:142px!important;padding:4px 9px!important}
  body.firestorm-multi-display .guide-command-strip .guide-move-badge{height:35px!important;min-width:78px!important;font-size:29px!important}
}
@media(max-width:900px) and (orientation:landscape){
  body.firestorm-multi-display .workspace{grid-template-columns:minmax(0,59%) minmax(135px,41%)!important;gap:4px!important}
  body.firestorm-multi-display .visual-panel{grid-template-rows:18px minmax(0,1fr)!important}
  body.firestorm-multi-display .guide-command-strip{top:21px!important;min-width:130px!important;padding:3px 8px!important;font-size:6.8px!important}
  body.firestorm-multi-display .guide-command-strip .guide-move-badge{height:32px!important;min-width:70px!important;font-size:25px!important}
}


/* FireStorm v71.0 Alpha 2 — same horizontal shared-guide frame; vertical-only fit variants */
body.firestorm-multi-display.firestorm-multi-duo .visual-panel{
  grid-template-rows:22px minmax(0,1fr)!important;
}
body.firestorm-multi-display.firestorm-multi-duo .guide-command-strip{
  top:23px!important;
  min-width:136px!important;
  gap:8px!important;
  padding:3px 9px!important;
  font-size:7px!important;
}
body.firestorm-multi-display.firestorm-multi-duo .guide-command-strip .guide-move-badge{
  height:34px!important;
  min-width:74px!important;
  padding:0 10px!important;
  font-size:28px!important;
}
body.firestorm-multi-display.firestorm-multi-duo .visual-cube,
body.firestorm-multi-display.firestorm-multi-duo .target-preview{
  padding-block:16px!important;
}
body.firestorm-multi-display.firestorm-multi-trio .visual-cube,
body.firestorm-multi-display.firestorm-multi-trio .target-preview{
  padding-block:10px!important;
}
@media(max-height:650px){
  body.firestorm-multi-display.firestorm-multi-duo .visual-panel{grid-template-rows:20px minmax(0,1fr)!important}
  body.firestorm-multi-display.firestorm-multi-duo .guide-command-strip{top:20px!important;min-width:124px!important;padding:3px 8px!important}
  body.firestorm-multi-display.firestorm-multi-duo .guide-command-strip .guide-move-badge{height:30px!important;min-width:66px!important;font-size:24px!important}
  body.firestorm-multi-display.firestorm-multi-duo .visual-cube,
  body.firestorm-multi-display.firestorm-multi-duo .target-preview{padding-block:12px!important}
  body.firestorm-multi-display.firestorm-multi-trio .visual-cube,
  body.firestorm-multi-display.firestorm-multi-trio .target-preview{padding-block:8px!important}
}
@media(max-width:900px) and (orientation:landscape){
  body.firestorm-multi-display.firestorm-multi-duo .visual-panel{grid-template-rows:18px minmax(0,1fr)!important}
  body.firestorm-multi-display.firestorm-multi-duo .guide-command-strip{top:18px!important;min-width:114px!important;gap:6px!important;padding:2px 7px!important;font-size:6.2px!important}
  body.firestorm-multi-display.firestorm-multi-duo .guide-command-strip .guide-move-badge{height:27px!important;min-width:60px!important;font-size:21px!important}
  body.firestorm-multi-display.firestorm-multi-duo .visual-cube,
  body.firestorm-multi-display.firestorm-multi-duo .target-preview{padding-block:8px!important}
  body.firestorm-multi-display.firestorm-multi-trio .visual-cube,
  body.firestorm-multi-display.firestorm-multi-trio .target-preview{padding-block:5px!important}
}


/* FireStorm v71.0 Alpha 2 — keep the simultaneous guided cube in the full flexible row.
   The Next Move strip is an absolute overlay and must not consume a grid row. */
body.firestorm-multi-display .visual-panel > .visual-cube{
  grid-column:1!important;
  grid-row:2!important;
  width:100%!important;
  height:100%!important;
  min-width:0!important;
  min-height:0!important;
  align-self:stretch!important;
  justify-self:stretch!important;
}


/* FireStorm v71 Alpha 4 — challenge play locks the method selected in the handoff screen. */
body.firestorm-challenge-display .guide-mode-toggle,
body.firestorm-challenge-display .scramble-mode-chooser{display:none!important}
body.firestorm-challenge-display.firecube-mode-smart #guidePrev,
body.firestorm-challenge-display.firecube-mode-smart #guideNext{display:none!important}

/* FireStorm v71 Alpha 4 — fixed/following orientation is a display-only choice. */
body.firecube-mode-manual #followOrientationButton{display:none!important}
.firestorm-firecube .top-actions .orientation-follow-button{min-width:76px!important;color:#ffd3ac!important;border-color:rgba(255,143,63,.55)!important}
.firestorm-firecube .top-actions .orientation-follow-button.active{color:#0b1b0d!important;background:linear-gradient(180deg,#8dff9c,#2db54d)!important;border-color:#8dff9c!important;box-shadow:0 0 13px rgba(74,255,111,.22)!important}
@media(max-width:900px) and (orientation:landscape){.firestorm-firecube .top-actions .orientation-follow-button{min-width:58px!important}}


/* FireStorm v71 Alpha 4 — solve-only orientation label and larger guide ring framing */
.firestorm-firecube .top-actions .orientation-follow-button{min-width:118px!important;font-size:7.5px!important;letter-spacing:-.015em!important}
@media(max-height:620px){.firestorm-firecube .top-actions .orientation-follow-button{min-width:92px!important;font-size:6px!important}}
@media(max-width:820px) and (orientation:landscape){.firestorm-firecube .top-actions .orientation-follow-button{min-width:86px!important;font-size:5.8px!important}}


/* FireStorm v71 Alpha 4 — readable smart-cube guide controls and move progress */
body.firestorm-challenge-display .visual-topline{
  min-height:30px!important;
  padding:6px 10px!important;
  font-size:9.5px!important;
  line-height:1.15!important;
}
body.firestorm-challenge-display .visual-topline b{font-size:11px!important}
body.firestorm-challenge-display .visual-topline span{font-size:9px!important;margin-left:8px!important}
body.firestorm-challenge-display .history-head h2{font-size:11px!important;line-height:1.15!important}
body.firestorm-challenge-display .history-head span{font-size:9px!important;line-height:1.15!important}
body.firestorm-challenge-display .target-caption{font-size:9px!important;line-height:1.2!important;padding:4px 2px!important}
body.firestorm-challenge-display .guide-command-strip{
  top:34px!important;
  min-width:172px!important;
  padding:5px 11px!important;
  gap:10px!important;
  font-size:9px!important;
}
body.firestorm-challenge-display .guide-command-strip .guide-move-badge{
  min-width:82px!important;
  height:38px!important;
  font-size:31px!important;
}
body.firestorm-challenge-display .firecube-control-dock{
  height:62px!important;
  min-height:62px!important;
  grid-template-columns:minmax(360px,1fr) auto!important;
  gap:9px!important;
  padding:5px 8px!important;
}
body.firestorm-challenge-display .guide-panel{
  display:grid!important;
  grid-template-columns:minmax(190px,.75fr) minmax(300px,1.25fr)!important;
  align-items:center!important;
  height:50px!important;
  min-height:50px!important;
  padding:4px 7px!important;
  gap:8px!important;
}
body.firestorm-challenge-display .dock-step-copy{
  display:grid!important;
  grid-template-columns:auto auto minmax(0,1fr)!important;
  align-items:center!important;
  gap:7px!important;
  min-width:0!important;
  overflow:hidden!important;
}
body.firestorm-challenge-display .dock-step-copy .guide-label{display:block!important;font-size:8px!important;margin:0!important}
body.firestorm-challenge-display .dock-step-copy strong{display:block!important;font-size:25px!important;line-height:1!important}
body.firestorm-challenge-display .dock-step-copy small{display:block!important;font-size:10px!important;line-height:1.2!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important}
body.firestorm-challenge-display .guide-buttons{gap:7px!important}
body.firestorm-challenge-display .guide-buttons button{
  min-width:96px!important;
  height:40px!important;
  padding:0 11px!important;
  font-size:10px!important;
}
body.firestorm-challenge-display .top-actions{gap:6px!important}
body.firestorm-challenge-display .top-actions button{
  min-width:70px!important;
  height:40px!important;
  padding:0 10px!important;
  font-size:9.5px!important;
  letter-spacing:.015em!important;
}
body.firestorm-challenge-display .top-actions #connectButton{min-width:122px!important;max-width:160px!important}
body.firestorm-challenge-display .top-actions .orientation-follow-button{min-width:132px!important;font-size:9px!important}
body.firestorm-challenge-display .top-actions .icon-button{min-width:66px!important;font-size:9.5px!important}
@media(max-height:650px){
  body.firestorm-challenge-display .visual-topline{min-height:25px!important;padding:4px 8px!important;font-size:8px!important}
  body.firestorm-challenge-display .visual-topline b{font-size:9px!important}
  body.firestorm-challenge-display .visual-topline span{font-size:7.5px!important}
  body.firestorm-challenge-display .history-head h2{font-size:9px!important}
  body.firestorm-challenge-display .history-head span{font-size:8px!important}
  body.firestorm-challenge-display .guide-command-strip{top:28px!important;min-width:150px!important;font-size:8px!important}
  body.firestorm-challenge-display .guide-command-strip .guide-move-badge{height:34px!important;min-width:74px!important;font-size:27px!important}
  body.firestorm-challenge-display .firecube-control-dock{height:54px!important;min-height:54px!important;padding:3px 5px!important}
  body.firestorm-challenge-display .guide-panel{height:46px!important;min-height:46px!important;grid-template-columns:minmax(160px,.68fr) minmax(260px,1.32fr)!important}
  body.firestorm-challenge-display .dock-step-copy strong{font-size:21px!important}
  body.firestorm-challenge-display .dock-step-copy small{font-size:8.5px!important}
  body.firestorm-challenge-display .guide-buttons button{height:37px!important;min-width:82px!important;font-size:8.5px!important}
  body.firestorm-challenge-display .top-actions button{height:37px!important;min-width:60px!important;padding:0 7px!important;font-size:8px!important}
  body.firestorm-challenge-display .top-actions #connectButton{min-width:108px!important;max-width:140px!important}
  body.firestorm-challenge-display .top-actions .orientation-follow-button{min-width:112px!important;font-size:7.5px!important}
}
@media(max-width:900px) and (orientation:landscape){
  body.firestorm-challenge-display .visual-topline{font-size:7px!important}
  body.firestorm-challenge-display .visual-topline b{font-size:8px!important}
  body.firestorm-challenge-display .visual-topline span{display:none!important}
  body.firestorm-challenge-display .history-head h2{font-size:8px!important}
  body.firestorm-challenge-display .history-head span{font-size:7px!important}
  body.firestorm-challenge-display .target-caption{font-size:7px!important}
  body.firestorm-challenge-display .firecube-control-dock{height:48px!important;min-height:48px!important;grid-template-columns:minmax(250px,1fr) auto!important}
  body.firestorm-challenge-display .guide-panel{height:42px!important;min-height:42px!important;grid-template-columns:minmax(125px,.55fr) minmax(180px,1.45fr)!important}
  body.firestorm-challenge-display .dock-step-copy .guide-label{font-size:6.5px!important}
  body.firestorm-challenge-display .dock-step-copy strong{font-size:18px!important}
  body.firestorm-challenge-display .dock-step-copy small{font-size:7px!important}
  body.firestorm-challenge-display .guide-buttons button{height:34px!important;min-width:64px!important;font-size:7.5px!important}
  body.firestorm-challenge-display .top-actions{gap:3px!important}
  body.firestorm-challenge-display .top-actions button{height:34px!important;min-width:49px!important;padding:0 5px!important;font-size:7px!important}
  body.firestorm-challenge-display .top-actions #connectButton{min-width:92px!important;max-width:112px!important}
  body.firestorm-challenge-display .top-actions .orientation-follow-button{min-width:94px!important;font-size:6.5px!important}
  body.firestorm-challenge-display .top-actions .icon-button{min-width:48px!important;font-size:7px!important}
}

body.firestorm-challenge-display .firestorm-firecube{grid-template-rows:minmax(0,1fr) 62px!important}
@media(max-height:650px){body.firestorm-challenge-display .firestorm-firecube{grid-template-rows:minmax(0,1fr) 54px!important}}
@media(max-width:900px) and (orientation:landscape){body.firestorm-challenge-display .firestorm-firecube{grid-template-rows:minmax(0,1fr) 48px!important}}


/* FireStorm v71 Alpha 4.5 — extra-compact browser-tab challenge layout */
body.firestorm-challenge-display.firestorm-browser-tab-compact .workspace{
  grid-template-columns:minmax(0,63%) minmax(126px,37%)!important;
  gap:4px!important;
}
body.firestorm-challenge-display.firestorm-browser-tab-compact .center-stage{grid-template-rows:minmax(0,1fr)!important}
body.firestorm-challenge-display.firestorm-browser-tab-compact .visual-panel{
  grid-template-rows:17px minmax(0,1fr)!important;
  border-radius:12px!important;
}
body.firestorm-challenge-display.firestorm-browser-tab-compact .visual-topline{padding:3px 7px!important;font-size:6.2px!important;min-height:17px!important}
body.firestorm-challenge-display.firestorm-browser-tab-compact .visual-topline b{font-size:7.4px!important}
body.firestorm-challenge-display.firestorm-browser-tab-compact .visual-topline span{display:none!important}
body.firestorm-challenge-display.firestorm-browser-tab-compact .guide-command-strip{top:18px!important;min-width:110px!important;gap:4px!important;padding:2px 6px!important;font-size:5px!important}
body.firestorm-challenge-display.firestorm-browser-tab-compact .guide-command-strip .guide-move-badge{height:24px!important;min-width:52px!important;padding:0 8px!important;font-size:19px!important}
body.firestorm-challenge-display.firestorm-browser-tab-compact .visual-cube{overflow:hidden!important;padding:10px 2px 0!important}
body.firestorm-challenge-display.firestorm-browser-tab-compact .visual-cube canvas{transform:scale(1.07);transform-origin:50% 58%}
body.firestorm-challenge-display.firestorm-browser-tab-compact .visual-footer{display:none!important}
body.firestorm-challenge-display.firestorm-browser-tab-compact .target-card{padding:6px 8px!important;min-height:0!important}
body.firestorm-challenge-display.firestorm-browser-tab-compact .target-preview{min-height:110px!important;padding:2px!important}
body.firestorm-challenge-display.firestorm-browser-tab-compact .history-head h2{font-size:7px!important}
body.firestorm-challenge-display.firestorm-browser-tab-compact .history-head span{font-size:6px!important}
body.firestorm-challenge-display.firestorm-browser-tab-compact .target-caption{font-size:6px!important;line-height:1.15!important;padding-top:2px!important}
body.firestorm-challenge-display.firestorm-browser-tab-compact .firecube-control-dock{height:44px!important;min-height:44px!important;grid-template-columns:minmax(0,1fr) auto!important;gap:4px!important;padding:2px 4px!important}
body.firestorm-challenge-display.firestorm-browser-tab-compact .dock-status{display:none!important}
body.firestorm-challenge-display.firestorm-browser-tab-compact .guide-panel{height:40px!important;min-height:40px!important;grid-template-columns:0 minmax(195px,1fr)!important;gap:0!important;padding:1px 3px!important}
body.firestorm-challenge-display.firestorm-browser-tab-compact .dock-step-copy{display:none!important}
body.firestorm-challenge-display.firestorm-browser-tab-compact .guide-buttons{gap:4px!important}
body.firestorm-challenge-display.firestorm-browser-tab-compact .guide-buttons button{height:34px!important;min-width:60px!important;padding:0 5px!important;font-size:6.5px!important}
body.firestorm-challenge-display.firestorm-browser-tab-compact .top-actions{gap:2px!important}
body.firestorm-challenge-display.firestorm-browser-tab-compact .top-actions button{height:34px!important;min-width:44px!important;padding:0 4px!important;font-size:6.1px!important}
body.firestorm-challenge-display.firestorm-browser-tab-compact .top-actions #connectButton{min-width:84px!important;max-width:98px!important}
body.firestorm-challenge-display.firestorm-browser-tab-compact .top-actions .orientation-follow-button{min-width:88px!important;font-size:5.9px!important}
body.firestorm-challenge-display.firestorm-browser-tab-compact .top-actions .icon-button{min-width:42px!important;font-size:6.4px!important}
@media(max-width:760px) and (orientation:landscape){
  body.firestorm-challenge-display.firestorm-browser-tab-compact .workspace{grid-template-columns:minmax(0,65%) minmax(112px,35%)!important}
  body.firestorm-challenge-display.firestorm-browser-tab-compact .guide-command-strip{top:16px!important;min-width:102px!important;font-size:4.6px!important}
  body.firestorm-challenge-display.firestorm-browser-tab-compact .guide-command-strip .guide-move-badge{height:22px!important;min-width:48px!important;font-size:17px!important}
  body.firestorm-challenge-display.firestorm-browser-tab-compact .visual-cube canvas{transform:scale(1.1);transform-origin:50% 60%}
  body.firestorm-challenge-display.firestorm-browser-tab-compact .target-preview{min-height:96px!important}
  body.firestorm-challenge-display.firestorm-browser-tab-compact .guide-buttons button{min-width:54px!important;font-size:6px!important}
  body.firestorm-challenge-display.firestorm-browser-tab-compact .top-actions button{min-width:40px!important;font-size:5.7px!important}
  body.firestorm-challenge-display.firestorm-browser-tab-compact .top-actions #connectButton{min-width:78px!important;max-width:92px!important}
  body.firestorm-challenge-display.firestorm-browser-tab-compact .top-actions .orientation-follow-button{min-width:82px!important;font-size:5.4px!important}
}


/* FireStorm v71 Alpha 4.5 — move badge off the cube and repair compact controls */
body.firestorm-challenge-display.firestorm-browser-tab-compact .workspace{
  grid-template-columns:minmax(0,70%) minmax(104px,30%)!important;
}
body.firestorm-challenge-display.firestorm-browser-tab-compact .visual-panel{
  padding-top:0!important;
}
body.firestorm-challenge-display.firestorm-browser-tab-compact .guide-command-strip{
  left:auto!important;
  right:8px!important;
  top:8px!important;
  transform:none!important;
  min-width:92px!important;
  max-width:102px!important;
  padding:3px 5px!important;
  gap:3px!important;
  border-radius:10px!important;
  background:rgba(10,3,2,.82)!important;
}
body.firestorm-challenge-display.firestorm-browser-tab-compact .guide-command-strip .guide-command-label{
  font-size:4.8px!important;
  letter-spacing:.08em!important;
}
body.firestorm-challenge-display.firestorm-browser-tab-compact .guide-command-strip .guide-move-badge{
  height:22px!important;
  min-width:42px!important;
  padding:0 7px!important;
  font-size:16px!important;
  border-radius:8px!important;
}
body.firestorm-challenge-display.firestorm-browser-tab-compact .visual-cube{
  padding:4px 6px 0!important;
}
body.firestorm-challenge-display.firestorm-browser-tab-compact .visual-cube canvas{
  transform:scale(1.15)!important;
  transform-origin:50% 62%!important;
}
body.firestorm-challenge-display.firestorm-browser-tab-compact .target-card{
  padding:5px 6px!important;
}
body.firestorm-challenge-display.firestorm-browser-tab-compact .target-preview{
  min-height:98px!important;
}
body.firestorm-challenge-display.firestorm-browser-tab-compact .target-preview canvas{
  transform:scale(1.06)!important;
  transform-origin:50% 52%!important;
}
body.firestorm-challenge-display.firestorm-browser-tab-compact .firecube-control-dock{
  grid-template-columns:minmax(0,1fr)!important;
  grid-template-rows:auto auto!important;
  gap:3px!important;
  height:auto!important;
  min-height:0!important;
  padding:3px 4px!important;
}
body.firestorm-challenge-display.firestorm-browser-tab-compact .guide-panel{
  grid-template-columns:minmax(0,1fr)!important;
  justify-items:center!important;
  padding:1px 0!important;
  height:auto!important;
  min-height:0!important;
}
body.firestorm-challenge-display.firestorm-browser-tab-compact .guide-buttons{
  width:100%!important;
  justify-content:center!important;
  gap:3px!important;
}
body.firestorm-challenge-display.firestorm-browser-tab-compact .guide-buttons button{
  flex:1 1 0!important;
  min-width:0!important;
  max-width:none!important;
  height:30px!important;
  padding:0 3px!important;
  font-size:6px!important;
}
body.firestorm-challenge-display.firestorm-browser-tab-compact .top-actions{
  width:100%!important;
  justify-content:center!important;
  gap:3px!important;
  flex-wrap:nowrap!important;
}
body.firestorm-challenge-display.firestorm-browser-tab-compact .top-actions button{
  flex:1 1 0!important;
  min-width:0!important;
  max-width:none!important;
  height:30px!important;
  padding:0 3px!important;
  font-size:5.6px!important;
}
body.firestorm-challenge-display.firestorm-browser-tab-compact .top-actions #connectButton{flex:1.35 1 0!important}
body.firestorm-challenge-display.firestorm-browser-tab-compact .top-actions .orientation-follow-button{flex:1.25 1 0!important;font-size:5.1px!important}
body.firestorm-challenge-display.firestorm-browser-tab-compact .top-actions .icon-button{flex:.72 1 0!important}
body.firestorm-challenge-display.firestorm-browser-tab-compact .dock-status{
  display:none!important;
}
@media(max-width:760px) and (orientation:landscape){
  body.firestorm-challenge-display.firestorm-browser-tab-compact .workspace{grid-template-columns:minmax(0,71%) minmax(96px,29%)!important}
  body.firestorm-challenge-display.firestorm-browser-tab-compact .guide-command-strip{right:6px!important;top:6px!important;min-width:86px!important;max-width:94px!important}
  body.firestorm-challenge-display.firestorm-browser-tab-compact .guide-command-strip .guide-move-badge{height:21px!important;min-width:39px!important;font-size:15px!important}
  body.firestorm-challenge-display.firestorm-browser-tab-compact .visual-cube canvas{transform:scale(1.18)!important}
  body.firestorm-challenge-display.firestorm-browser-tab-compact .target-preview{min-height:88px!important}
  body.firestorm-challenge-display.firestorm-browser-tab-compact .guide-buttons button{height:28px!important;font-size:5.8px!important}
  body.firestorm-challenge-display.firestorm-browser-tab-compact .top-actions button{height:28px!important;font-size:5.3px!important}
}



/* FireStorm v71 Alpha 4.5 — clean smart challenge control dock */
.firestorm-firecube .top-actions .manual-finish-button{display:none;border-color:rgba(255,178,72,.82)!important;background:linear-gradient(180deg,#7a280c,#311006)!important;color:#ffe3b8!important;font-weight:1000!important}.firestorm-firecube .top-actions .manual-finish-button:not([hidden]){display:inline-flex!important;align-items:center!important;justify-content:center!important}
body.firestorm-challenge-display.firecube-mode-smart .firestorm-firecube{grid-template-rows:minmax(0,1fr) 46px!important}
body.firestorm-challenge-display.firecube-mode-smart .firecube-control-dock{display:grid!important;grid-template-columns:minmax(100px,.65fr) minmax(0,3.35fr)!important;grid-template-rows:1fr!important;align-items:stretch!important;height:46px!important;min-height:46px!important;gap:4px!important;padding:3px 4px!important}
body.firestorm-challenge-display.firecube-mode-smart .dock-status{display:none!important}
body.firestorm-challenge-display.firecube-mode-smart .guide-panel{position:static!important;inset:auto!important;grid-column:1!important;grid-row:1!important;display:block!important;width:100%!important;min-width:0!important;height:40px!important;min-height:40px!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
body.firestorm-challenge-display.firecube-mode-smart .dock-step-copy{display:none!important}
body.firestorm-challenge-display.firecube-mode-smart .guide-buttons{display:flex!important;width:100%!important;height:100%!important;gap:0!important}
body.firestorm-challenge-display.firecube-mode-smart .guide-buttons #guidePrev,body.firestorm-challenge-display.firecube-mode-smart .guide-buttons #guideNext{display:none!important}
body.firestorm-challenge-display.firecube-mode-smart .guide-buttons #guideStart{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;height:40px!important;min-width:0!important;max-width:none!important;margin:0!important;padding:0 7px!important;border-radius:9px!important;border:1px solid rgba(255,119,47,.5)!important;background:linear-gradient(180deg,#2c130b,#100704)!important;color:#ffd4ba!important;font-size:8px!important;font-weight:1000!important;white-space:nowrap!important}
body.firestorm-challenge-display.firecube-mode-smart .top-actions{grid-column:2!important;grid-row:1!important;display:grid!important;grid-template-columns:repeat(auto-fit,minmax(64px,1fr))!important;align-items:stretch!important;width:100%!important;height:40px!important;gap:4px!important;margin:0!important}
body.firestorm-challenge-display.firecube-mode-smart .top-actions button{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;height:40px!important;min-width:0!important;max-width:none!important;margin:0!important;padding:0 5px!important;border-radius:9px!important;font-size:7.5px!important;line-height:1.05!important;white-space:nowrap!important}
body.firestorm-challenge-display.firecube-mode-smart .top-actions button[hidden]{display:none!important}
body.firestorm-challenge-display.firecube-mode-smart .top-actions #connectButton{min-width:0!important;max-width:none!important}
body.firestorm-challenge-display.firecube-mode-smart .top-actions .orientation-follow-button{min-width:0!important;font-size:7px!important}
body.firestorm-challenge-display.firecube-mode-smart .top-actions .icon-button{min-width:0!important;font-size:7.5px!important}
@media(max-width:900px) and (orientation:landscape){body.firestorm-challenge-display.firecube-mode-smart .firestorm-firecube{grid-template-rows:minmax(0,1fr) 42px!important}body.firestorm-challenge-display.firecube-mode-smart .firecube-control-dock{grid-template-columns:minmax(84px,.6fr) minmax(0,3.4fr)!important;height:42px!important;min-height:42px!important;padding:2px 3px!important}body.firestorm-challenge-display.firecube-mode-smart .guide-panel,body.firestorm-challenge-display.firecube-mode-smart .guide-buttons #guideStart,body.firestorm-challenge-display.firecube-mode-smart .top-actions{height:36px!important;min-height:36px!important}body.firestorm-challenge-display.firecube-mode-smart .top-actions{grid-template-columns:repeat(auto-fit,minmax(52px,1fr))!important;gap:3px!important}body.firestorm-challenge-display.firecube-mode-smart .top-actions button{height:36px!important;padding:0 3px!important;font-size:6.2px!important}body.firestorm-challenge-display.firecube-mode-smart .top-actions .orientation-follow-button{font-size:5.9px!important}body.firestorm-challenge-display.firecube-mode-smart .guide-buttons #guideStart{font-size:6.7px!important}}
body.firestorm-challenge-display.firestorm-browser-tab-compact.firecube-mode-smart .workspace{grid-template-columns:minmax(0,72%) minmax(94px,28%)!important;gap:4px!important}body.firestorm-challenge-display.firestorm-browser-tab-compact.firecube-mode-smart .guide-command-strip{left:auto!important;right:9px!important;top:23px!important;transform:none!important;min-width:112px!important;max-width:126px!important;padding:4px 7px!important;gap:4px!important;font-size:5.6px!important}body.firestorm-challenge-display.firestorm-browser-tab-compact.firecube-mode-smart .guide-command-strip .guide-move-badge{height:27px!important;min-width:55px!important;padding:0 8px!important;font-size:19px!important}body.firestorm-challenge-display.firestorm-browser-tab-compact.firecube-mode-smart .visual-cube{padding:3px 4px 0!important}body.firestorm-challenge-display.firestorm-browser-tab-compact.firecube-mode-smart .visual-cube canvas{transform:scale(1.22)!important;transform-origin:50% 63%!important}body.firestorm-challenge-display.firestorm-browser-tab-compact.firecube-mode-smart .target-preview{min-height:108px!important;padding:2px!important}body.firestorm-challenge-display.firestorm-browser-tab-compact.firecube-mode-smart .target-preview canvas{transform:scale(1.09)!important;transform-origin:50% 52%!important}

/* Alpha 4.5 — during inspection/solve, hide setup controls and prioritize only relevant actions. */
body.firestorm-challenge-display.firecube-mode-smart.firestorm-solving .guide-panel{display:none!important}
body.firestorm-challenge-display.firecube-mode-smart.firestorm-solving .firecube-control-dock{grid-template-columns:minmax(0,1fr)!important}
body.firestorm-challenge-display.firecube-mode-smart.firestorm-solving .top-actions{grid-column:1!important;justify-self:center!important;max-width:520px!important;grid-template-columns:repeat(auto-fit,minmax(90px,1fr))!important}
body.firestorm-challenge-display.firecube-mode-smart.firestorm-solving .top-actions #recenterButton,
body.firestorm-challenge-display.firecube-mode-smart.firestorm-solving .top-actions #calibrateButton,
body.firestorm-challenge-display.firecube-mode-smart.firestorm-solving .top-actions #connectButton{display:none!important}
body.firestorm-challenge-display.firecube-mode-smart.firestorm-solving .top-actions #followOrientationButton,
body.firestorm-challenge-display.firecube-mode-smart.firestorm-solving .top-actions #resetVisualButton{display:flex!important}
body.firestorm-challenge-display.firecube-mode-smart.firestorm-solve-running .top-actions .manual-finish-button:not([hidden]){display:flex!important;background:linear-gradient(180deg,#a43a0d,#4a1305)!important;border-color:#ffb15a!important;color:#fff5e8!important;box-shadow:0 0 16px rgba(255,86,19,.22)!important}
@media(max-width:900px) and (orientation:landscape){body.firestorm-challenge-display.firecube-mode-smart.firestorm-solving .top-actions{max-width:410px!important;grid-template-columns:repeat(auto-fit,minmax(72px,1fr))!important}}


/* FireStorm v71 Alpha 4.8 — READABILITY FIRST.
   Older compact rules shrank controls to 5–8 px, which is unreadable even on desktop. */
.firestorm-firecube .guide-buttons button,
.firestorm-firecube .top-actions button,
body.firestorm-challenge-display.firecube-mode-smart .guide-buttons #guideStart,
body.firestorm-challenge-display.firecube-mode-smart .top-actions button{
  font-size:clamp(11px,1.15vw,14px)!important;
  line-height:1.08!important;
  min-height:42px!important;
  height:42px!important;
  padding:0 8px!important;
  white-space:normal!important;
}
body.firestorm-challenge-display.firecube-mode-smart .top-actions .orientation-follow-button,
body.firestorm-challenge-display.firecube-mode-smart .top-actions .icon-button{font-size:clamp(10px,1.05vw,13px)!important}
body.firestorm-challenge-display.firecube-mode-smart .firestorm-firecube{grid-template-rows:minmax(0,1fr) 52px!important}
body.firestorm-challenge-display.firecube-mode-smart .firecube-control-dock{height:52px!important;min-height:52px!important;padding:4px!important}
body.firestorm-challenge-display.firecube-mode-smart .guide-panel,
body.firestorm-challenge-display.firecube-mode-smart .top-actions,
body.firestorm-challenge-display.firecube-mode-smart .guide-buttons #guideStart{height:44px!important;min-height:44px!important}
@media(max-width:900px) and (orientation:landscape){
  body.firestorm-challenge-display.firecube-mode-smart .firestorm-firecube{grid-template-rows:minmax(0,1fr) 58px!important}
  body.firestorm-challenge-display.firecube-mode-smart .firecube-control-dock{height:58px!important;min-height:58px!important}
  body.firestorm-challenge-display.firecube-mode-smart .guide-panel,
  body.firestorm-challenge-display.firecube-mode-smart .top-actions,
  body.firestorm-challenge-display.firecube-mode-smart .guide-buttons #guideStart{height:48px!important;min-height:48px!important}
  body.firestorm-challenge-display.firecube-mode-smart .top-actions{grid-template-columns:repeat(auto-fit,minmax(68px,1fr))!important}
  body.firestorm-challenge-display.firecube-mode-smart .top-actions button,
  body.firestorm-challenge-display.firecube-mode-smart .guide-buttons #guideStart{font-size:11px!important;padding:0 5px!important}
}


/* FireStorm v71 Alpha 4.8 — orientation guard + no microscopic smart-guide text. */
.firestorm-firecube .orientation-guard{
  position:absolute;
  z-index:24;
  left:50%;
  top:54%;
  transform:translate(-50%,-50%);
  width:min(680px,88%);
  padding:18px 22px;
  border:3px solid #ff7a20;
  border-radius:16px;
  background:linear-gradient(180deg,rgba(86,20,4,.97),rgba(20,5,2,.98));
  box-shadow:0 0 0 2px rgba(255,188,76,.18),0 0 38px rgba(255,75,8,.38),0 18px 55px rgba(0,0,0,.72);
  text-align:center;
  pointer-events:none;
}
.firestorm-firecube .orientation-guard[hidden]{display:none!important}
.firestorm-firecube .orientation-guard strong{display:block;color:#fff4df;font-size:clamp(22px,3vw,38px);line-height:1.02;letter-spacing:.03em}
.firestorm-firecube .orientation-guard span{display:block;margin-top:8px;color:#ffd36d;font-size:clamp(14px,1.8vw,22px);font-weight:1000;line-height:1.15}
.firestorm-firecube .orientation-guard span b:first-child{color:#ffef00}.firestorm-firecube .orientation-guard span b:last-child{color:#20ee51}
.firestorm-firecube .orientation-guard small{display:block;margin-top:8px;color:#ffe6d4;font-size:clamp(12px,1.35vw,17px);font-weight:850;line-height:1.2}
body.scramble-orientation-warning .firestorm-firecube .guide-command-strip{border-color:#ffb13f!important;box-shadow:0 0 22px rgba(255,89,12,.34)!important}

/* If something cannot fit, hide low-priority copy rather than shrinking it to 5px. */
body.firestorm-challenge-display.firecube-mode-smart .visual-topline{font-size:11px!important;line-height:1.15!important;min-height:30px!important;padding:5px 9px!important}
body.firestorm-challenge-display.firecube-mode-smart .visual-topline b{font-size:12px!important}
body.firestorm-challenge-display.firecube-mode-smart .visual-topline span{font-size:10px!important}
body.firestorm-challenge-display.firecube-mode-smart .guide-command-strip{min-width:150px!important;max-width:180px!important;padding:6px 9px!important;gap:8px!important;font-size:11px!important}
body.firestorm-challenge-display.firecube-mode-smart .guide-command-strip .guide-command-label,
body.firestorm-challenge-display.firecube-mode-smart .guide-command-strip>span{font-size:11px!important;font-weight:1000!important;letter-spacing:.08em!important}
body.firestorm-challenge-display.firecube-mode-smart .guide-command-strip .guide-move-badge{height:38px!important;min-width:72px!important;font-size:28px!important}
body.firestorm-challenge-display.firecube-mode-smart .history-head h2{font-size:12px!important}
body.firestorm-challenge-display.firecube-mode-smart .history-head span{font-size:10px!important}
body.firestorm-challenge-display.firecube-mode-smart .target-caption{font-size:10px!important;line-height:1.2!important}
body.firestorm-challenge-display.firecube-mode-smart .calibration-card p{font-size:11px!important}
body.firestorm-challenge-display.firecube-mode-smart .visual-footer{font-size:10px!important}

@media(max-width:900px) and (orientation:landscape){
  body.firestorm-challenge-display.firecube-mode-smart .visual-topline{font-size:10px!important;min-height:28px!important}
  body.firestorm-challenge-display.firecube-mode-smart .visual-topline b{font-size:11px!important}
  body.firestorm-challenge-display.firecube-mode-smart .visual-topline span{display:none!important}
  body.firestorm-challenge-display.firecube-mode-smart .guide-command-strip{min-width:132px!important;max-width:150px!important;padding:5px 7px!important;font-size:10px!important}
  body.firestorm-challenge-display.firecube-mode-smart .guide-command-strip .guide-command-label,
  body.firestorm-challenge-display.firecube-mode-smart .guide-command-strip>span{font-size:10px!important}
  body.firestorm-challenge-display.firecube-mode-smart .guide-command-strip .guide-move-badge{height:34px!important;min-width:64px!important;font-size:25px!important}
  body.firestorm-challenge-display.firecube-mode-smart .history-head h2{font-size:11px!important}
  body.firestorm-challenge-display.firecube-mode-smart .history-head span{font-size:9px!important}
  body.firestorm-challenge-display.firecube-mode-smart .target-caption{font-size:9px!important}
}

/* ==========================================================================
   FireStorm v71 Alpha 4.25 — embedded Bluefy/WKWebView width guard
   The parent iframe is already sized to the visible viewport. Never let a
   min-content grid or viewport unit make the guided cube wider than its frame.
   ========================================================================== */
html,body,.app-shell,.firestorm-firecube{max-width:100%!important;max-height:100%!important}
.firestorm-firecube{width:100%!important;height:100%!important}
.firestorm-firecube .workspace,
.firestorm-firecube .center-stage,
.firestorm-firecube .right-rail,
.firestorm-firecube .visual-panel,
.firestorm-firecube .visual-cube,
.firestorm-firecube .target-card,
.firestorm-firecube .target-preview,
.firestorm-firecube .firecube-control-dock,
.firestorm-firecube .guide-panel,
.firestorm-firecube .top-actions{min-width:0!important;max-width:100%!important}
.firestorm-firecube .workspace{width:100%!important;overflow:hidden!important}
.firestorm-firecube .firecube-control-dock{width:100%!important;overflow:hidden!important}


/* FireStorm v71 Alpha 4.25 — orientation recovery is safe and reachable where the warning appears. */
.firestorm-firecube .orientation-guard{pointer-events:auto!important;}
.firestorm-firecube .orientation-guard #orientationRecenterButton{display:inline-flex;align-items:center;justify-content:center;margin:14px auto 0;min-width:230px;min-height:48px;padding:10px 18px;border:2px solid #ffb054;border-radius:12px;background:linear-gradient(180deg,#a43b0f,#4a1506);color:#fff5e8;font:1000 clamp(13px,1.45vw,17px)/1 system-ui,sans-serif;letter-spacing:.045em;box-shadow:0 0 18px rgba(255,97,18,.28);cursor:pointer;}
.firestorm-firecube .orientation-guard #orientationRecenterButton:active{transform:translateY(1px);}
body.firecube-guide-active.firecube-mode-smart #calibrateButton,
body.firecube-scrambled.firecube-mode-smart #calibrateButton,
body.firestorm-solving.firecube-mode-smart #calibrateButton{display:none!important;}
body.scramble-orientation-warning.firecube-mode-smart #recenterButton{display:flex!important;}


/* ==========================================================================
   FireStorm v71 Alpha 4.25 — persistent smart-cube recovery controls
   Guided setup automates connection/calibration, but expert/manual recovery
   controls remain available afterward. Calibrate is still protected in JS
   during an active scramble/solve; Recenter remains safe and immediate.
   ========================================================================== */
body.firecube-guide-active.firecube-mode-smart #recenterButton,
body.firecube-guide-active.firecube-mode-smart #calibrateButton,
body.firecube-scrambled.firecube-mode-smart #recenterButton,
body.firecube-scrambled.firecube-mode-smart #calibrateButton,
body.firestorm-solving.firecube-mode-smart #recenterButton,
body.firestorm-solving.firecube-mode-smart #calibrateButton,
body.firestorm-challenge-display.firecube-mode-smart.firestorm-solving .top-actions #recenterButton,
body.firestorm-challenge-display.firecube-mode-smart.firestorm-solving .top-actions #calibrateButton{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
}
body.firestorm-challenge-display.firecube-mode-smart .top-actions{
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  overflow:hidden!important;
}
body.firestorm-challenge-display.firecube-mode-smart .top-actions button{
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
body.firestorm-challenge-display.firecube-mode-smart.firestorm-solving .top-actions{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  max-width:700px!important;
}
body.firestorm-challenge-display.firecube-mode-smart.firestorm-solve-running .top-actions{
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
}
@media(max-width:900px) and (orientation:landscape){
  body.firestorm-challenge-display.firecube-mode-smart .top-actions{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:2px!important}
  body.firestorm-challenge-display.firecube-mode-smart .top-actions button{font-size:9px!important;padding:0 3px!important}
  body.firestorm-challenge-display.firecube-mode-smart.firestorm-solving .top-actions{grid-template-columns:repeat(4,minmax(0,1fr))!important;max-width:560px!important}
  body.firestorm-challenge-display.firecube-mode-smart.firestorm-solve-running .top-actions{grid-template-columns:repeat(5,minmax(0,1fr))!important}
}


/* FireStorm v71 Alpha 4.25 — embedded guide strict iframe fit */
html,body{min-width:0!important;min-height:0!important;max-width:100%!important;max-height:100%!important}
.app-shell,.firestorm-firecube{width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;max-width:100%!important;max-height:100%!important;overflow:hidden!important}
.firestorm-firecube .workspace,.workspace{min-width:0!important;min-height:0!important;max-width:100%!important;max-height:100%!important}
body.firestorm-multi-display .workspace{height:100%!important}
