:root{--cs-ui-root:v1;--menu-bg:#09131e;--menu-line:#294353;--menu-accent:#69ddeb}
@media(orientation:portrait){body[data-menu-section=workshop] #shopOverlay #shopPanel{background:transparent;backdrop-filter:none}}
#titleOverlay, #shopOverlay, #settingsOverlay {
  font-size: var(--cs-type-body, 16px);
  font-family: var(--cs-font, Inter, "Segoe UI", system-ui, sans-serif);
}

#titleOverlay .rays{
  display:none;
}
#titleOverlay .particle-bg{display:block;opacity:.55}
#titleOverlay .tapstart{display:none}

body[data-nav-busy]{
  overflow:hidden;
}
#titleOverlay.nav-leave,
#titleOverlay.nav-leave-active,
#titleOverlay.nav-enter,
#shopOverlay.nav-enter,
#shopOverlay.nav-enter-active,
#shopOverlay.nav-leave,
#shopOverlay.nav-leave-active{
  pointer-events:none;
  will-change:transform;
  backface-visibility:hidden;
}
#titleOverlay.nav-leave #landingActions,
#titleOverlay.nav-leave-active #landingActions{
  pointer-events:none;
}
#shopOverlay.nav-enter{
  display:flex !important;
  transform:translate3d(100%,0,0) !important;
  z-index:26;
  overflow:hidden;
}
#shopOverlay.nav-leave{
  transform:translate3d(0,0,0);
  z-index:26;
}
#titleOverlay.nav-leave{
  transform:translate3d(0,0,0);
  z-index:21;
}
#titleOverlay.nav-enter{
  transform:translate3d(-100%,0,0) !important;
  z-index:21;
}
#titleOverlay.nav-leave.nav-leave-active{
  transform:translate3d(-100%,0,0) !important;
  transition:transform .38s cubic-bezier(.4,.18,.2,1);
}
#shopOverlay.nav-leave.nav-leave-active{
  transform:translate3d(100%,0,0) !important;
  transition:transform .38s cubic-bezier(.4,.18,.2,1);
}
#shopOverlay.nav-enter.nav-enter-active{
  transform:translate3d(0,0,0) !important;
  transition:transform .38s cubic-bezier(.4,.18,.2,1);
  pointer-events:auto;
}
#titleOverlay.nav-enter.nav-enter-active{
  transform:translate3d(0,0,0) !important;
  transition:transform .38s cubic-bezier(.4,.18,.2,1);
  pointer-events:none;
}

#titleOverlay{
  --landing-rail:clamp(148px, 20vw, 196px);
  --landing-dock:var(--landing-rail);
  --landing-gap:clamp(8px, 1.6vw, 16px);
  --landing-brand:clamp(28px, 6.2vw, 56px);
  --landing-pad-y:clamp(28px, 7vh, 64px);
  --landing-pad-x:clamp(8px, 1.6vw, 18px);
  --landing-logo-pad:clamp(18px, 5vh, 36px);
  --logo-hi:#ffffff;
  --logo-tint:#d8e8f6;
  --logo-mid:#8ec8f0;
  --logo-tone:#2d6db8;
  --logo-lo:#0b2f6a;
  --logo-edge:#3fb2ff;
  --logo-edge-2:#1560e8;
  --logo-edge-3:#0a2a6e;
  --logo-glow:rgba(62,200,255,.55);
  --logo-wash:rgba(62,200,255,.28);
  --logo-spark:rgba(190,232,255,.38);
  --logo-aura:rgba(45,109,184,.22);
  display:block;
  padding:0;
  background:
    radial-gradient(ellipse 52% 48% at 50% 44%, var(--logo-spark) 0 10%, transparent 52%),
    radial-gradient(ellipse 34% 32% at 24% 24%, var(--logo-wash) 0 0%, transparent 58%),
    radial-gradient(ellipse 38% 36% at 74% 62%, var(--logo-aura) 0 0%, transparent 60%),
    radial-gradient(ellipse 46% 62% at 42% 54%, rgba(5,8,23,0) 0 28%, rgba(5,8,23,.42) 68%, rgba(5,8,23,.88) 100%);
  overflow:hidden;
  pointer-events:none;
}
#titleTop{
  position:absolute;z-index:4;display:flex;flex-direction:column;align-items:center;
  min-width:0;pointer-events:none;text-align:center;
  top:calc(var(--cs-safe-top) + var(--landing-pad-y) + var(--landing-logo-pad));
  left:0;right:0;
  padding:0 calc(var(--cs-safe-right) + var(--cs-touch,48px)) 0 calc(var(--cs-safe-left) + var(--cs-touch,48px));
  box-sizing:border-box;
}
#titleOverlay .logo{
  font-family:"Arial Black", Impact, sans-serif;
  font-size:var(--landing-brand);
  font-style:italic;
  font-weight:900;
  letter-spacing:.02em;
  line-height:.9;
  color:transparent;
  background:linear-gradient(180deg,var(--logo-hi) 0%, var(--logo-tint) 16%, var(--logo-mid) 46%, var(--logo-tone) 78%, var(--logo-lo) 100%);
  -webkit-background-clip:text;
  background-clip:text;
  filter:
    drop-shadow(0 2px 0 var(--logo-edge))
    drop-shadow(0 5px 0 var(--logo-edge-2))
    drop-shadow(0 8px 0 var(--logo-edge-3))
    drop-shadow(0 0 28px var(--logo-glow));
  transform:skewX(-8deg);
  animation:logoFloat 3s ease-in-out infinite;
}
#titleOverlay .logoSub{
  display:none;
  margin-top:clamp(4px, 1vh, 8px);
  padding:clamp(4px, 1vh, 7px) clamp(12px, 2vw, 28px);
  color:#8af3ff;
  font-size:clamp(10px,1.5vw,16px);
  font-style:normal;
  font-weight:800;
  letter-spacing:clamp(.18em, .36vw, .42em);
  max-width:100%;
  text-shadow:0 0 12px rgba(62,232,255,.7);
  background:linear-gradient(180deg, rgba(8,24,52,.9), rgba(6,16,38,.94));
  border:2px solid #3ee8ff;
  border-radius:0;
  box-shadow:0 0 18px rgba(62,232,255,.4), inset 0 0 12px rgba(62,232,255,.16);
  clip-path:polygon(10% 0, 90% 0, 100% 50%, 90% 100%, 10% 100%, 0 50%);
  transform:none;
  animation:none;
}
#titleOverlay .landingKicker,
#landingActions .landingKicker{
  display:none;
  margin:clamp(4px, 1.4vh, 10px) 0 0;
  color:#c6eef8;
  letter-spacing:.16em;
  font:700 11px/1.35 var(--cs-font,system-ui);
  text-align:center;
  text-shadow:0 1px 0 #041018, 0 0 12px rgba(4,12,22,.9);
  position:relative;
  z-index:3;
  text-transform:uppercase;
}
.landingKickerPort{display:none}
.landingHangar,
.landingPedestal,
.landingLight,
#titleOverlay .rays,
#titleOverlay .particle-bg{
  position:absolute;
  pointer-events:none;
  z-index:0;
}
.landingHangar{
  display:block;inset:0;
  background:
    linear-gradient(180deg, var(--logo-wash) 0 8%, transparent 24% 64%, rgba(5,10,28,.58) 100%);
}
.landingLight{
  display:block;
  inset:-10% -6%;
  background:
    radial-gradient(ellipse 44% 38% at 50% 46%, var(--logo-spark) 0 14%, transparent 58%),
    radial-gradient(ellipse 26% 28% at 34% 32%, var(--logo-wash) 0 0%, transparent 64%),
    radial-gradient(ellipse 30% 26% at 68% 58%, var(--logo-aura) 0 0%, transparent 62%);
  mix-blend-mode:screen;
  opacity:.8;
  animation:landingLightBreathe 6.4s ease-in-out infinite;
}
.landingHangarFloor{
  position:absolute;left:8%;right:18%;bottom:6%;height:28%;
  background:radial-gradient(ellipse 70% 55% at 46% 80%, var(--logo-glow), transparent 72%);
  -webkit-mask-image:linear-gradient(180deg, transparent, #000 46%);
  mask-image:linear-gradient(180deg, transparent, #000 46%);
}
.landingHangarRails{
  position:absolute;inset:0;
  background:linear-gradient(180deg, rgba(6,12,36,.38) 0 10%, transparent 24% 70%, rgba(5,10,28,.52) 100%);
}
.landingPedestal{
  display:none;
}
#titleOverlay .rays{
  display:none;
}
#titleOverlay .particle-bg{
  opacity:.62;
  background:
    radial-gradient(ellipse 48% 42% at 50% 42%, var(--logo-spark) 0%, transparent 58%),
    radial-gradient(ellipse 42% 38% at 30% 38%, var(--logo-wash) 0%, transparent 55%),
    radial-gradient(ellipse 38% 34% at 72% 58%, var(--logo-aura) 0%, transparent 52%);
  animation:landingWashShift 8.5s ease-in-out infinite;
}
@keyframes landingLightBreathe{
  0%, 100%{ opacity:.62; transform:scale(1); }
  50%{ opacity:1; transform:scale(1.07); }
}
@keyframes landingWashShift{
  0%, 100%{ opacity:.42; transform:translate3d(0,0,0); }
  50%{ opacity:.7; transform:translate3d(1.5%, -1.2%, 0); }
}
#titleStage{
  position:absolute;
  inset:0;
  min-width:0;min-height:0;
  overflow:hidden;
  pointer-events:auto;
  touch-action:none;
  cursor:grab;
  z-index:1;
}
#landingAbility{
  display:none;
  pointer-events:none;
}
#beyPrev,#beyNext,#workshopAbilityHud{display:none}
.beyAbilityCard,.hangarAbility{
  box-sizing:border-box;
  display:grid;grid-template-columns:48px minmax(0,1fr);align-items:start;gap:8px 10px;
  padding:8px 10px;
  border:1px solid rgba(90,214,235,.42);
  border-radius:12px;
  background:linear-gradient(180deg,rgba(8,22,40,.88),rgba(5,12,24,.78));
  color:#d7f4ff;
}
.beyAbilityCard .abilitySkillIcon{
  grid-row:1 / span 2;justify-self:center;
  width:48px;height:48px;object-fit:contain;
  image-rendering:auto;pointer-events:none;
  filter:drop-shadow(0 0 8px rgba(90,214,235,.35));
}
.beyAbilityCard .abilityCopy{min-width:0;grid-column:2}
.beyAbilityCard .abilityBlock{margin:0 0 8px}
.beyAbilityCard .abilityBlock:last-child{margin:0}
.beyAbilityCard .abilityKind{
  display:block;font:700 10px/1.2 var(--cs-font,system-ui);
  letter-spacing:.16em;text-transform:uppercase;color:#8defff;
}
.beyAbilityCard strong{
  display:block;margin:2px 0 4px;
  font:800 14px/1.2 var(--cs-font,system-ui);color:#fff;
}
.beyAbilityCard p{
  margin:0;font:600 12px/1.4 var(--cs-font,system-ui);color:#c5e6f2;
}
.beyAbilityCard .abilityTradeoff{margin-top:6px;color:#9ad3e4;font-weight:600}
img.landingCrest{
  display:none;
  position:absolute;
  z-index:1;
  left:50%;top:44%;
  width:auto;height:auto;
  max-width:min(120%, 140vh);
  max-height:92%;
  aspect-ratio:1376 / 768;
  object-fit:contain;
  transform:translate(-50%, -50%);
  pointer-events:none;
  filter:drop-shadow(0 0 28px rgba(40,170,255,.35));
  -webkit-mask-image:radial-gradient(ellipse 28% 40% at 50% 70%, transparent 0 88%, #000 100%);
  mask-image:radial-gradient(ellipse 28% 40% at 50% 70%, transparent 0 88%, #000 100%);
  -webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;
  -webkit-mask-size:100% 100%;mask-size:100% 100%;
}
#landingActions{
  position:absolute;
  z-index:5;
  pointer-events:auto;
  display:flex;
  flex-direction:row;
  justify-content:center;
  align-items:center;
  left:0;right:0;
  bottom:calc(var(--cs-safe-bottom) + var(--landing-pad-y));
  top:auto;
  width:auto;
  background:none;border:0;
  padding:0 var(--landing-pad-x);
}
#landingOrbitGuide{
  position:absolute;
  z-index:8;
  left:0;right:0;
  top:auto;
  bottom:28%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:14px;
  pointer-events:none;
  padding:0 var(--landing-pad-x);
  min-height:var(--cs-touch,48px);
}
#landingOrbitGuide .landingOrbitHand{
  display:none;
  width:28px;
  height:28px;
  border-radius:50%;
  background:#fff;
  box-shadow:
    0 0 0 10px rgba(255,255,255,.18),
    0 0 22px rgba(110,232,255,.75);
  animation:landingOrbitSwipe 1.45s ease-in-out infinite;
}
#landingOrbitGuide[data-guide-id="drag"] .landingOrbitHand,
#landingOrbitGuide[data-guide-id="drag"] .landingOrbitPinch{
  display:block;
}
#landingOrbitGuide .landingOrbitPinch{
  display:none;
  position:relative;
  width:84px;
  height:18px;
}
#landingOrbitGuide .landingOrbitPinchDot{
  position:absolute;
  top:3px;
  width:12px;
  height:12px;
  border-radius:50%;
  background:#ffe97a;
  box-shadow:0 0 10px rgba(255,233,122,.85);
}
#landingOrbitGuide .landingOrbitPinchDot:first-child{
  left:10px;
  animation:landingOrbitPinchL 1.6s ease-in-out infinite;
}
#landingOrbitGuide .landingOrbitPinchDot:last-child{
  right:10px;
  animation:landingOrbitPinchR 1.6s ease-in-out infinite;
}
#landingOrbitGuide .landingOrbitHint{
  margin:0;
  font:700 10px/1 var(--cs-font, system-ui);
  letter-spacing:.2em;
  text-transform:uppercase;
  color:#9ef6ff;
  text-shadow:0 2px 10px rgba(5,8,23,.9);
}
#landingOrbitGuide .landingOrbitHint:empty{
  display:none;
}
#landingOrbitGuide .landingGuideStep{
  margin:0;
  font:800 11px/1 var(--cs-font, system-ui);
  letter-spacing:.22em;
  text-transform:uppercase;
  color:#ffe97a;
  text-shadow:0 2px 10px rgba(5,8,23,.9);
}
#landingOrbitGuide .landingOrbitCopy{
  margin:0;
  display:flex;
  align-items:center;
  gap:10px;
  font:800 15px/1 var(--cs-font, system-ui);
  letter-spacing:.18em;
  text-transform:uppercase;
  color:#fff;
  text-shadow:0 2px 12px rgba(5,8,23,.95);
  padding:12px 18px;
  border-radius:999px;
  background:rgba(5,10,24,.82);
  border:1px solid rgba(255,243,176,.55);
  box-shadow:0 8px 24px rgba(5,8,23,.45);
  animation:landingOrbitPulse 1.45s ease-in-out infinite;
}
#landingOrbitGuide .landingOrbitChev{
  font-size:1.2em;
  line-height:1;
  color:#ffe97a;
}
#titleOverlay[data-landing-guide="wait"] #landingActions,
#titleOverlay[data-landing-guide="orbit"] #landingActions{
  pointer-events:none;
}
#titleOverlay[data-landing-guide="wait"] #landingActions [data-entry="continue"],
#titleOverlay[data-landing-guide="orbit"] #landingActions [data-entry="continue"]{
  opacity:0;
  visibility:hidden;
  pointer-events:none;
}
#titleOverlay[data-landing-guide="wait"] #landingOrbitGuide,
#titleOverlay[data-landing-guide="orbit"] #landingOrbitGuide{
  display:flex;
}
#titleOverlay[data-landing-guide="ready"] #landingOrbitGuide{
  display:none;
}
#titleOverlay[data-landing-guide="ready"] #landingActions [data-entry="continue"]{
  animation:landingPlayIn .45s ease;
}
@keyframes landingOrbitSwipe{
  0%{ transform:translate(-36px, 10px) scale(1); opacity:.25; }
  22%{ transform:translate(2px, -34px) scale(1); opacity:1; }
  46%{ transform:translate(40px, 6px) scale(1); opacity:1; }
  68%{ transform:translate(6px, 34px) scale(1); opacity:1; }
  84%{ transform:translate(-12px, 8px) scale(1.18); opacity:.85; }
  100%{ transform:translate(-36px, 10px) scale(1); opacity:.2; }
}
@keyframes landingOrbitPinchL{
  0%, 100%{ transform:translateX(0); }
  50%{ transform:translateX(16px); }
}
@keyframes landingOrbitPinchR{
  0%, 100%{ transform:translateX(0); }
  50%{ transform:translateX(-16px); }
}
@keyframes landingOrbitPulse{
  0%, 100%{ transform:scale(1); }
  50%{ transform:scale(1.04); }
}
@keyframes landingPlayIn{
  from{ opacity:0; transform:translateY(8px); }
  to{ opacity:1; transform:none; }
}
.landingEquipped{display:none;pointer-events:none}
#landingActions .cs-btn{
  position:relative;
  display:flex;
  flex-direction:row;
  align-items:center;
  justify-content:center;
  gap:8px;
  width:min(280px, 78vw);
  box-sizing:border-box;
  border:2px solid rgba(110,232,255,.55);
  border-radius:999px;
  background:rgba(8,18,40,.48);
  box-shadow:none;
  color:#9ef6ff;
  font-style:italic;
  font-weight:800;
  font-size:13px;
  line-height:1;
  letter-spacing:.16em;
  text-transform:uppercase;
  text-shadow:0 0 12px rgba(62,232,255,.4);
  min-height:var(--cs-touch,48px);
  min-width:var(--cs-touch,48px);
  padding:8px 14px;
  cursor:pointer;
  transition:color .12s ease, text-shadow .12s ease, transform .08s ease, filter .08s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease;
}
#landingActions .cs-btn-primary,
#landingActions [data-entry="continue"]{
  background:var(--cs-cta,linear-gradient(180deg,#f0d56a,#c9a227));
  color:var(--cs-cta-text,#1a1400);
  border-color:#fff3b0;
  box-shadow:0 8px 22px rgba(201,162,39,.38);
  text-shadow:none;
  font-size:clamp(16px, 2.4vw, 22px);
}
.landingCtaPlay,
.landingCtaEnter{
  font-size:clamp(18px, 2.6vw, 28px);
  line-height:1;
}
.landingCtaEnter{display:none}
.landingCtaArrow{
  font-size:1.15em;line-height:1;transform:translateY(-1px);color:currentColor;
}
#landingActions [data-continue-label],
#landingActions [data-continue-caption]{
  position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);
}
#shopOverlay .shopHeadMeta{
  display:flex;align-items:center;gap:8px;flex:0 0 auto;
}
#shopOverlay #shopSettingsBtn{
  z-index:6;
  flex:0 0 var(--cs-touch,48px);
  width:var(--cs-touch,48px);max-width:var(--cs-touch,48px);
  min-width:var(--cs-touch,48px);min-height:var(--cs-touch,48px);
  padding:0;justify-content:center;
  border-radius:999px;
  border:2px solid rgba(110,232,255,.55);
  background:rgba(8,18,40,.48);
  color:#9ef6ff;
  box-shadow:none;
}
#shopSettingsBtn .settingsGear{
  display:inline-flex;width:26px;height:26px;flex:0 0 26px;
  color:currentColor;
}
#shopSettingsBtn .settingsGear svg{display:none;width:26px;height:26px}
@media (hover:hover) and (pointer:fine){
  #landingActions .cs-btn:hover{
    transform:translateY(-2px);
    filter:brightness(1.1);
    border-color:#b7f7ff;
    color:#fff;
    text-shadow:0 0 16px rgba(80,240,255,.85);
    background:rgba(12,28,56,.72);
  }
  #landingActions [data-entry="continue"]:hover{
    color:#2a1a00;
    text-shadow:none;
    border-color:#fff8d0;
    background:linear-gradient(180deg,#ffe99a,#e0b01f);
  }
}
#landingActions .cs-btn:active{
  transform:scale(.97);
  filter:brightness(.9);
}
#landingActions .cs-btn:focus-visible,
#landingActions [data-entry="continue"]:focus-visible{
  outline:2px solid #a6f3ff;
  outline-offset:3px;
}
.chapterRailCopy{display:flex;flex-direction:column;gap:2px;min-width:0}
.chapterRailMeta{font:600 var(--cs-type-helper,14px)/1.2 system-ui;color:#8defff}

@media (orientation:landscape){
  #titleOverlay{
    --landing-brand:clamp(26px, 7vh, 44px);
    background:
      radial-gradient(ellipse 58% 70% at 50% 48%, var(--logo-spark) 0 8%, transparent 46%),
      radial-gradient(ellipse 62% 78% at 50% 52%, rgba(5,8,23,0) 0 46%, rgba(5,8,23,.22) 100%);
  }
  #titleStage{
    left:0;top:0;bottom:0;right:0;
  }
  img.landingCrest{
    left:50%;top:52%;
    max-width:min(118%, 130vh);max-height:90%;
  }
  #titleTop{
    left:0;right:0;
    padding:0 var(--landing-pad-x) 0 calc(var(--cs-safe-left) + var(--landing-pad-x));
    align-items:center;
  }
  #titleOverlay .landingKicker{text-align:center}
  .landingKickerLand{display:block}
  #landingActions{
    left:0;right:0;
    bottom:calc(var(--cs-safe-bottom) + var(--landing-pad-y));
    top:auto;
    transform:none;
    width:auto;
  }
  #titleOverlay #landingAbility{
    display:none;
    position:absolute;
    left:0;
    right:0;
    bottom:calc(var(--cs-safe-bottom) + var(--landing-pad-y) + 58px);
    z-index:4;
    width:min(320px, 72vw);
    max-width:min(320px, 72vw);
    margin:0 auto;
    max-height:88px;
    overflow:auto;
    padding:0;border:0;background:none;
  }
  #titleOverlay #landingAbility > .beyAbilityCard{
    margin:0;max-height:100%;overflow:auto;padding:6px 7px;gap:6px;
  }
  #titleOverlay #landingAbility .abilitySkillIcon{width:36px;height:36px}
  #titleOverlay #landingAbility .abilityTradeoff{display:none}
  #titleOverlay #landingAbility p{
    display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
  }
}

@media (orientation:landscape) and (max-height:430px){
  #titleOverlay{
    --landing-rail:clamp(136px, 20vw, 176px);
    --landing-brand:clamp(22px, 8vh, 36px);
  }
  #titleOverlay .landingKicker{display:none}
  #titleOverlay .logoSub{letter-spacing:.22em}
  #landingActions{gap:2px}
  #landingActions [data-entry="continue"]{min-height:var(--cs-touch,48px)}
  img.landingCrest{max-height:100%;max-width:124%}
}

@media (orientation:landscape) and (min-width:1200px){
  #titleOverlay{--landing-rail:clamp(168px, 16vw, 220px)}
  img.landingCrest{max-width:min(110%, 100vh);max-height:90%}
}

@media (orientation:portrait){
  #titleOverlay{
    --landing-brand:clamp(26px, 8.2vw, 48px);
    background:
      radial-gradient(ellipse 70% 42% at 50% 18%, var(--logo-wash) 0 0%, transparent 48%),
      linear-gradient(180deg, rgba(5,8,23,.22) 0 8%, transparent 16% 52%, rgba(5,8,23,.5) 78%, rgba(5,8,23,.86) 100%);
  }
  #titleStage{
    left:0;right:0;top:0;bottom:0;
    overflow:hidden;
  }
  img.landingCrest{
    width:92%;height:auto;max-width:92%;max-height:42%;aspect-ratio:1376 / 768;
    object-fit:contain;object-position:center 18%;
    left:50%;top:30%;
    -webkit-mask-image:radial-gradient(ellipse 34% 50% at 50% 82%, transparent 0 82%, #000 100%);
    mask-image:radial-gradient(ellipse 34% 50% at 50% 82%, transparent 0 84%, #000 100%);
  }
  .landingHangarFloor{
    left:10%;right:10%;top:54%;bottom:auto;height:16%;
  }
  #titleTop{
    max-width:none;
    padding:0 calc(var(--cs-safe-right) + var(--cs-touch,48px)) 0 calc(var(--cs-safe-left) + var(--cs-touch,48px));
  }
  #titleOverlay .landingKicker{display:none}
  .landingKickerLand{display:none}
  .landingKickerPort{display:block}
  #landingActions{
    left:0;right:0;
    bottom:calc(var(--cs-safe-bottom) + var(--landing-pad-y));
    top:auto;width:auto;
    display:flex;
    justify-content:center;
    transform:none;
  }
  .landingEquipped{display:none}
  #titleOverlay [data-entry="continue"]{width:min(280px, 78vw)}
  .landingCtaPlay{display:inline;font-size:clamp(16px, 4.2vw, 22px)}
  .landingCtaEnter{display:none}
  #titleOverlay #landingAbility{
    display:none;
    position:absolute;
    left:0;
    right:0;
    bottom:calc(var(--cs-safe-bottom) + var(--landing-pad-y) + 58px);
    z-index:4;
    width:min(280px, 78vw);
    max-width:min(280px, 78vw);
    margin:0 auto;
    max-height:18%;
    overflow:auto;
    padding:0;border:0;background:none;
  }
}

@media (orientation:portrait) and (min-width:600px){
  img.landingCrest{width:92%;max-width:92%;max-height:42%}
  #titleOverlay .logo{font-size:clamp(32px, 6vw, 56px)}
}

@media (orientation:portrait) and (max-height:700px){
  #titleOverlay .landingKicker{display:none}
}

@media (prefers-reduced-motion: reduce){
  #titleOverlay .logo,
  #titleOverlay .logoSub,
  .landingCrest,
  .landingLight,
  #titleOverlay .particle-bg{animation:none}
  #landingActions .cs-btn{transition:none}
  #landingOrbitGuide .landingOrbitHand,
  #landingOrbitGuide .landingOrbitCopy,
  #landingOrbitGuide .landingOrbitPinchDot,
  #titleOverlay[data-landing-guide="ready"] #landingActions [data-entry="continue"]{animation:none}
  #titleOverlay.nav-leave-active,
  #titleOverlay.nav-enter-active,
  #shopOverlay.nav-leave-active,
  #shopOverlay.nav-enter-active{
    transition:none;
    transform:none;
  }
}

body[data-menu-section=challenge] #shopOverlay #shopScroll{
  display:flex;flex-direction:column;gap:8px;min-height:0;
}
#campaignMode{flex:0 0 auto}
#mainCampaignBoard{
  flex:1 1 auto;min-height:120px;
  display:grid;
  grid-template-columns:minmax(0,1fr);
  grid-template-rows:minmax(0,1fr);
  gap:10px;
}
#chapterRail{grid-area:arena;display:flex;flex-direction:column;gap:8px;min-height:0;overflow:auto}
#chapterDetail{
  grid-area:vs;min-height:0;overflow:auto;
  display:flex;flex-direction:column;gap:8px;
}
#chapterStages{flex:0 0 auto;min-height:0}
#stageDetail{
  grid-area:briefing;flex:1 1 auto;min-height:0;overflow:auto;
  padding:10px 12px;
  border:1px solid #355465;
  border-radius:8px;
  background:#102331;
  display:flex;flex-direction:column;gap:6px;
}
.chapterRailBtn{
  display:flex;align-items:center;gap:10px;width:100%;
  text-align:left;padding:8px;
}
.chapterRailBtn .chapterThumb{
  width:96px;height:54px;margin:0;flex:0 0 auto;
}
.chapterRailLabel{font:700 var(--cs-type-body,16px)/1.2 system-ui;color:#e6f6fd;white-space:normal}

body[data-menu-section=challenge] #menuHeading,
body[data-menu-section=challenge] #mainCampaignProgress{display:none}
body[data-menu-section=challenge] #menuNavigation{padding:4px 0 6px}
@media (orientation:landscape){
  body[data-menu-section=challenge] #shopOverlay #shopPanel{
    overflow:hidden;
    display:grid;
    grid-template-columns:var(--cs-touch,48px) minmax(0,1fr) auto;
    grid-template-rows:auto minmax(0,1fr) auto;
    padding:calc(var(--cs-safe-top) + 6px) calc(var(--cs-safe-right) + 8px)
      calc(var(--cs-safe-bottom) + 6px) calc(var(--cs-safe-left) + 8px);
  }
  body[data-menu-section=challenge] #shopOverlay #shopScroll{overflow:hidden;grid-column:1 / -1;grid-row:2;min-height:0}
  body[data-menu-section=challenge] #shopHead{
    display:contents;
  }
  body[data-menu-section=challenge] #shopHead .jpban{display:none}
  body[data-menu-section=challenge] #shopHead [data-action="shop-home"]{
    grid-column:1;grid-row:1;align-self:center;
  }
  body[data-menu-section=challenge] #shopHead .moneyChip,
  body[data-menu-section=challenge] #shopHead .shopHeadMeta{
    grid-column:3;grid-row:1;align-self:center;
  }
  body[data-menu-section=challenge] #menuNavigation{
    display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;gap:8px;
    grid-column:2;grid-row:1;padding:0 8px;min-width:0;
  }
  body[data-menu-section=challenge] #shopOverlay #fightBtn{
    grid-column:1 / -1;grid-row:3;
  }
  body[data-menu-section=challenge] #menuNavigation nav{
    flex:1 1 auto;min-width:0;
  }
  body[data-menu-section=challenge] #menuNavigation nav .cs-btn{
    font-style:italic;text-transform:uppercase;letter-spacing:.04em;border-radius:999px;
    min-width:0;padding:8px 8px;font-size:12px;
  }
  body[data-menu-section=challenge] #campaignMode{flex:0 1 auto;margin:0;flex-wrap:nowrap}
  body[data-menu-section=challenge] #campaignMode button{
    min-height:var(--cs-touch,48px);padding:8px 10px;
    font:700 var(--cs-type-helper,14px)/1.2 system-ui;
  }
  body[data-menu-section=challenge][data-campaign-mode="extra"] #shopOverlay #shopScroll{
    overflow:auto;flex:1 1 auto;min-height:0;
  }
  body[data-menu-section=challenge][data-campaign-mode="extra"] #menuNavigation{flex-wrap:wrap;padding-right:0}
  body[data-menu-section=challenge][data-campaign-mode="extra"] #shopOverlay #fightBtn{
    position:relative;bottom:auto;z-index:0;flex:0 0 auto;margin-top:4px;
  }
  body[data-campaign-mode="extra"] #shopOverlay .venueChapter{padding:6px 8px}
  body[data-campaign-mode="extra"] .venueChapter p,
  body[data-campaign-mode="extra"] .chapterKicker,
  body[data-campaign-mode="extra"] .chapterThumb{display:none}
  body[data-campaign-mode="extra"] .venueChapter h3{font:700 16px/1.2 system-ui;margin:0 0 4px}
  body[data-campaign-mode="extra"] .venueChapter small{display:none}
  body[data-campaign-mode="extra"] #bossPracticeChoices{padding:2px 0;gap:6px}
  body[data-menu-section=challenge] #mainCampaignBoard{
    grid-template-columns:minmax(0,22%) minmax(0,1fr) minmax(0,26%);
    grid-template-rows:minmax(0,1fr) auto auto;
    grid-template-areas:
      "arena vs briefing"
      "arena vs cta"
      "arena vs hint";
    min-height:0;
    gap:8px 10px;
  }
  body[data-menu-section=challenge] #chapterRail{grid-area:arena;flex-direction:column;overflow:auto}
  body[data-menu-section=challenge] #chapterDetail{grid-area:vs;overflow:hidden;min-height:0}
  body[data-menu-section=challenge] #stageDetail{grid-area:briefing;overflow:auto}
  body[data-menu-section=challenge][data-campaign-mode="main"] #stageDetail{overflow:hidden}
  .chapterRailBtn{flex:0 0 auto;flex-direction:row;align-items:center}
  .chapterRailBtn .chapterThumb{width:72px;height:40px}
  #chapterStages button{min-height:var(--cs-touch,48px);max-height:none;padding:6px 8px}
  #chapterStages button>*{margin-bottom:2px}
  #chapterStages strong,#chapterStages .stageCardStatus{
    white-space:normal;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;
  }
  #chapterStages .stageCardLesson{display:none}
  body[data-menu-section=challenge] #stageDetail{
    padding:10px 12px;gap:6px;overflow:auto;
    display:flex;flex-direction:column;align-content:start;
  }
  body[data-menu-section=challenge][data-campaign-mode="main"] #stageDetail{overflow:hidden}
  #stageDetail .stageDetailTitle,
  #stageDetail .stageDetailLesson,
  #stageDetail .stageDetailWaves{grid-column:1 / -1}
  #stageDetail .stageDetailTitle{font:700 16px/1.2 system-ui}
  #stageDetail p{font:var(--cs-type-helper,14px)/1.25 system-ui}
  #shopOverlay #fightBtn{min-height:var(--cs-touch,48px);padding:4px 8px;margin-top:4px}
  #shopOverlay .ctaMain{font-size:18px}
  #bossPracticeChoices{padding:4px 0;flex-basis:100%}
}

@media (orientation:portrait){
  body[data-menu-section=challenge] #shopOverlay #shopScroll{overflow:auto}
  body[data-menu-section=challenge] #shopHead{min-height:var(--cs-touch,48px);margin:0 0 4px;justify-content:space-between}
  body[data-menu-section=challenge] #shopHead .jpban{display:none}
  #mainCampaignBoard{
    flex:0 0 auto;min-height:auto;height:auto;
    grid-template-columns:minmax(0,1fr);
    grid-template-rows:auto auto auto auto auto;
    grid-template-areas:
      "arena"
      "vs"
      "briefing"
      "cta"
      "hint";
  }
  #chapterRail{flex-direction:row;flex-wrap:wrap;overflow-x:auto;overflow-y:hidden;gap:6px}
  body[data-menu-section=challenge] #chapterDetail{overflow:visible;min-height:260px}
  #stageDetail{overflow:visible;flex:0 0 auto}
  body[data-menu-section=challenge] .chapterRailBtn{
    flex:1 1 calc(33.333% - 6px);width:auto;min-width:0;max-width:calc(33.333% - 4px);
    flex-direction:column;align-items:stretch;padding:6px;
  }
  body[data-menu-section=challenge] .chapterRailBtn .chapterThumb{width:100%;height:48px;margin:0}
  body[data-menu-section=challenge] #mainCampaignBoard .stages{grid-template-columns:repeat(3,minmax(0,1fr))}
  #chapterStages .stageCardLesson{display:none}
  #campaignMode button{font:700 var(--cs-type-helper,14px)/1.2 system-ui;white-space:nowrap;padding:8px 10px}
}

#menuNavigation{flex:none;padding:8px 0 12px}
#menuNavigation nav{display:flex;gap:var(--cs-gap,8px);flex-wrap:wrap}
#menuNavigation nav .cs-btn{flex:1 1 0;min-width:0}
#menuNavigation button[aria-pressed=true]{border-color:#69ddeb;color:#80edf7;background:#143544}
#menuNavigation h2,#menuHeading{
  font:700 var(--cs-type-title,24px)/1.2 system-ui;
  letter-spacing:.08em;color:#e6f6fd;margin:16px 0 0
}
#shopOverlay #shopPanel{background:linear-gradient(135deg,#0d1c2bef,#07121cf5);border:1px solid #355465;border-radius:12px;box-shadow:none}
#shopOverlay #shopHead{
  display:flex;align-items:center;justify-content:space-between;gap:8px;
  min-height:var(--cs-touch,48px);
}
#shopOverlay #shopHead .jpban{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:none;border:0;transform:none;box-shadow:none;font-size:var(--cs-type-title,24px);color:#e4f2fa;padding:4px 0}
#shopOverlay .jpban{background:none;border:0;transform:none;box-shadow:none;font-size:var(--cs-type-title,24px);color:#e4f2fa;padding:4px 0}
#shopOverlay .moneyChip{
  flex:0 0 auto;background:#152d3d;border:1px solid #476071;border-radius:999px;
  box-shadow:none;color:#edd08c;font-size:var(--cs-type-body,16px);
  min-height:var(--cs-touch,48px);display:inline-flex;align-items:center;padding:0 12px;
}
#shopOverlay .navBackBtn,
#shopHead [data-action="shop-home"]{
  position:relative;
  flex:0 0 var(--cs-touch,48px);
  width:var(--cs-touch,48px);max-width:var(--cs-touch,48px);
  min-width:var(--cs-touch,48px);min-height:var(--cs-touch,48px);
  padding:0;justify-content:center;align-items:center;
  border-radius:999px;
  border:2px solid rgba(110,232,255,.55);
  background:rgba(8,18,40,.48);
  color:#9ef6ff;
  font-style:italic;font-weight:800;text-transform:uppercase;
  box-shadow:none;
}
#shopOverlay .navBackArrow{font-size:28px;line-height:1;transform:translateY(-1px)}
#shopOverlay .navBackLabel{
  position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);
}
#shopTabs,#portraitLevelToggle{display:none!important}
#shopOverlay #fightBtn{
  background:var(--cs-cta,linear-gradient(180deg,#f0d56a,#c9a227));
  color:var(--cs-cta-text,#1a1400);
  border:1px solid var(--cs-gold,#edd08c);
  border-radius:8px;
  box-shadow:none;
  min-height:var(--cs-touch,48px);
  padding:8px 10px;
}
body[data-menu-section=challenge] #shopOverlay #fightBtn{min-height:var(--cs-touch,48px);padding:8px}
#shopOverlay .ctaMain{font:800 22px var(--cs-font,system-ui);text-shadow:none;letter-spacing:.04em}
#shopOverlay .ctaMeta{font:var(--cs-type-helper,14px) var(--cs-font,system-ui);color:#3d2a00;text-shadow:none;white-space:normal}

body[data-menu-section=challenge] #shopOverlay{
  justify-content:stretch;align-items:stretch;pointer-events:none;
}
body[data-menu-section=challenge] #shopOverlay #shopPanel{
  pointer-events:auto;
  position:absolute;inset:0;top:0;bottom:0;
  max-height:none;height:100%;width:100%;
  display:flex;flex-direction:column;margin:0;border-radius:0;overflow:hidden;
  padding:calc(var(--cs-safe-top) + var(--cs-inset,16px)) calc(var(--cs-safe-right) + var(--cs-inset,16px))
    calc(var(--cs-safe-bottom) + var(--cs-inset,16px)) calc(var(--cs-safe-left) + var(--cs-inset,16px));
}
body[data-menu-section=challenge] #shopOverlay #shopScroll{flex:1;min-height:0;max-height:none;overflow:auto}
.venueChapter small{color:#93aeba;font-size:var(--cs-type-helper,14px)}
body[data-menu-section=challenge] :is(#portraitHero,#portraitDetails,#portraitPager,#portraitLevelToggle,#beyCards,#beyCarousel,#workshopStatus,#toggleAssemblyTools,#workshopTools,#shopPreviewBadge,#workshopAbilityHud,#workshopCompare){display:none!important}
body[data-menu-section=workshop] #shopOverlay #levelBar,body[data-menu-section=workshop] #shopOverlay #arenaSelector{display:none!important}
#workshopTools[hidden]{display:none!important}
#toggleAssemblyTools{padding:10px 18px;margin:10px 0;width:100%}
body[data-campaign-mode="extra"] #shopOverlay #levelBar{display:flex!important;flex-direction:column;gap:14px;overflow:visible;max-height:none;white-space:normal}
#shopOverlay .venueChapter{padding:16px;background:#102331;border:1px solid #294858;border-radius:8px}
.chapterKicker{font:var(--cs-type-helper,14px) system-ui;letter-spacing:.2em;color:#70dbe8}
.venueChapter h3{font:700 var(--cs-type-title,24px) system-ui;color:#e6f6fd;margin:5px 0}
.venueChapter p{font:var(--cs-type-helper,14px)/1.5 system-ui;color:#9eb7c6;margin:0 0 14px}
.chapterLevels{display:flex;gap:var(--cs-gap,8px);flex-wrap:wrap}
.chapterThumb{
  display:block;width:100%;height:88px;object-fit:cover;object-position:center;
  border-radius:8px;margin:0 0 10px;background:#0b1a26;border:1px solid #294858;
}
#shopOverlay .lvlchip{border:1px solid #345463;border-radius:5px;background:#091925;box-shadow:none;min-width:110px;min-height:var(--cs-touch,48px);padding:12px;color:#c3dbe7;transform:none;cursor:pointer}
#shopOverlay .lvlchip.sel{border-color:#70deeb;background:#173d4a;color:#a3f3fc}
#shopOverlay .lvlchip.locked{opacity:.48}
#shopOverlay .lvlarena{display:none}
#shopOverlay .beycard{border-radius:7px;background:#101f2d;border:1px solid #314856;box-shadow:none}
#shopOverlay .beycard.sel,#shopOverlay .beycard.viewing{border-color:#7fe4ef;box-shadow:inset 0 2px #7fe4ef}
#shopOverlay .cardbtn{border:1px solid #42616d;border-radius:5px;box-shadow:none;background:#173e4b;color:#d0f1f5;text-shadow:none}
button:focus-visible,[role=button]:focus-visible{outline:2px solid #a6f3ff;outline-offset:3px}

.chapterRailBtn[aria-pressed="true"]{border-color:#ffd16b;background:#1d3348}
#mainCampaignBoard .chapterHead{display:flex;flex-direction:column;gap:8px;margin-bottom:10px}
#mainCampaignBoard h3{font:700 var(--cs-type-title,24px)/1.2 system-ui;color:#d6f0ff;margin:0}
#mainCampaignBoard .stages{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--cs-gap,8px)}
#mainCampaignBoard button.cs-btn.chapterRailBtn{min-height:var(--cs-touch,48px)}
#chapterStages button{min-height:48px;padding:10px;color:#dceaff;border:1px solid #42637a;border-radius:7px;background:#142b40;text-align:left;cursor:pointer;font:var(--cs-type-body,16px)/1.3 system-ui}
#chapterStages button>*{display:block;margin-bottom:6px}
#chapterStages button small{color:#adbdcc;font-size:var(--cs-type-helper,14px)}
#chapterStages .stageCard.is-locked{opacity:1;border-style:dashed;border-color:#6a8496;background:#101c28;color:#d5e4ef;cursor:pointer}
#chapterStages .stageCard.is-available{border-color:#5bd9eb;background:#142b40}
#chapterStages .stageCard.is-complete{border-color:#7dcea0;background:#143328}
#chapterStages .stageCard.is-selected{border:2px solid #ffd16b;background:#21344a}
#stageDetail .stageDetailTitle{font:700 var(--cs-type-title,24px)/1.2 system-ui;color:#e6f6fd;margin:0}
#stageDetail .stageDetailVenue{font:600 var(--cs-type-helper,14px)/1.3 system-ui;color:#8defff;margin:0}
#stageDetail p{font:var(--cs-type-body,16px)/1.4 system-ui;color:#d6ecf4;margin:0}
#stageDetail [data-stage-unlock],#stageDetail [data-stage-reward]{color:#ffd16b}
#mainCampaignProgress{font:600 var(--cs-type-body,16px) system-ui;color:#8defff;margin:0 0 8px}
#campaignMode{display:flex;gap:var(--cs-gap,8px);margin:8px 0;flex-wrap:wrap}
#campaignMode button{min-height:var(--cs-touch,48px);padding:10px 12px;border:1px solid #54748b;border-radius:6px;color:#dfedff;background:#15263b;cursor:pointer;font:700 var(--cs-type-body,16px) system-ui}
#campaignMode button[aria-pressed="true"]{border-color:#5bd9eb;color:#8defff}
#campaignMode button[data-extra-challenges]{
  font-weight:600;opacity:.48;font-size:10px;letter-spacing:.04em;
  min-height:32px;padding:4px 8px;max-width:7.5rem;white-space:normal;line-height:1.15;
  background:transparent;border:1px dashed rgba(110,232,255,.28);color:#8aa4b6;
}
body[data-campaign-mode="main"][data-menu-section="challenge"] #shopOverlay #levelBar,
body[data-campaign-mode="main"][data-menu-section="challenge"] #shopOverlay #arenaSelector{display:none!important}
body[data-campaign-mode="main"] #bossPracticeChoices{display:none}
body[data-campaign-mode="main"] #levelBar,
body[data-campaign-mode="main"] #arenaSelector,
body[data-campaign-mode="extra"] #mainCampaignBoard{display:none!important}
body[data-menu-section="workshop"] #mainCampaignBoard,
body[data-menu-section="workshop"] #campaignMode{display:none!important}

#settingsOverlay{
  position:fixed;inset:0;z-index:50;display:flex;align-items:center;justify-content:center;
  padding:calc(var(--cs-safe-top) + var(--cs-inset,16px)) calc(var(--cs-safe-right) + var(--cs-inset,16px))
    calc(var(--cs-safe-bottom) + var(--cs-inset,16px)) calc(var(--cs-safe-left) + var(--cs-inset,16px));
  background:rgba(4,10,22,.58);
}
#settingsOverlay.hide{display:none!important}
.settingsCard{
  width:min(320px,100%);
  max-height:min(92vh,100%);
  overflow:auto;
  box-sizing:border-box;
  background:
    linear-gradient(180deg, rgba(18,36,62,.98), rgba(7,16,32,.98));
  border:2px solid rgba(110,232,255,.42);
  border-radius:18px;
  padding:16px 16px 14px;
  display:grid;
  gap:10px;
  box-shadow:0 22px 48px rgba(0,0,0,.5), 0 0 28px rgba(62,232,255,.12), inset 0 1px 0 rgba(183,247,255,.16);
}
.settingsHead{display:grid;gap:4px;padding:2px 4px 6px}
#settingsHeading{
  font:800 italic 22px/1.1 var(--cs-font,system-ui);
  letter-spacing:.14em;
  text-transform:uppercase;
  color:#e8fbff;
  margin:0;
  text-shadow:0 0 18px rgba(62,232,255,.45);
}
.settingsKicker{
  margin:0;
  color:#8defff;
  font:700 11px/1.3 var(--cs-font,system-ui);
  letter-spacing:.18em;
  text-transform:uppercase;
}
.settingsList{display:grid;gap:8px}
.settingsRow{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  min-height:var(--cs-touch,48px);
  padding:8px 12px;
  color:#d6ecf4;
  font:700 var(--cs-type-body,16px)/1.3 var(--cs-font,system-ui);
  background:rgba(8,18,40,.55);
  border:1px solid rgba(110,232,255,.22);
  border-radius:12px;
  cursor:pointer;
}
.settingsRowCopy{min-width:0;flex:1 1 auto}
.settingsRow input[type=checkbox]{
  appearance:none;-webkit-appearance:none;
  position:relative;
  flex:0 0 48px;width:48px;height:28px;margin:0;
  border:2px solid rgba(110,232,255,.45);
  border-radius:999px;
  background:rgba(6,14,28,.9);
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.35);
  cursor:pointer;
}
.settingsRow input[type=checkbox]::after{
  content:"";
  position:absolute;top:2px;left:2px;
  width:20px;height:20px;border-radius:50%;
  background:#d7f4ff;
  box-shadow:0 1px 4px rgba(0,0,0,.35);
  transition:transform .12s ease;
}
.settingsRow input[type=checkbox]:checked{
  background:linear-gradient(180deg,#7af3ff,#1aa8d4);
  border-color:#b7f7ff;
}
.settingsRow input[type=checkbox]:checked::after{transform:translateX(20px);background:#041018}
.settingsRow input[type=checkbox]:focus-visible{
  outline:2px solid #a6f3ff;outline-offset:3px;
}
#settingsOverlay [data-settings-close]{
  min-height:var(--cs-touch,48px);width:100%;
  letter-spacing:.16em;
}

@media(max-width:600px){
  body[data-menu-section=challenge] #shopOverlay #shopPanel{padding:calc(var(--cs-safe-top) + 12px) calc(var(--cs-safe-right) + 12px) calc(var(--cs-safe-bottom) + 12px) calc(var(--cs-safe-left) + 12px)}
  #menuNavigation h2{margin-top:10px}
  #shopOverlay .venueChapter{padding:12px}
  .chapterLevels{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  #shopOverlay .lvlchip{min-width:0}
  body[data-menu-section=workshop] #shopOverlay #shopHead{min-height:var(--cs-touch,48px)}
  #menuNavigation{padding-bottom:8px}
  body[data-menu-section=workshop] #mainCampaignBoard .stages{grid-template-columns:1fr}
  #chapterStages button{min-height:var(--cs-touch,48px)}
  #campaignMode button{flex:1}
}

@media (orientation:portrait) {
  body[data-menu-section=challenge] #campaignMode { margin: 4px 0; }
  body[data-menu-section=challenge] #campaignMode button {
    font: 700 var(--cs-type-helper, 14px)/1.2 system-ui;
    white-space: nowrap;
    padding: 8px 10px;
  }
  body[data-menu-section=challenge] .chapterRailBtn .chapterThumb { height: 48px; margin: 0; }
  body[data-menu-section=challenge] #shopOverlay #fightBtn{
    position:relative;bottom:auto;z-index:4;flex:0 0 auto;
  }
}

#workshopPreviewHit{display:none;pointer-events:none}
body[data-menu-section=workshop] #toggleAssemblyTools,
body[data-menu-section=workshop] #stormLodBar,
body[data-menu-section=workshop] #menuHeading{display:none!important}
body[data-menu-section=workshop] #shopPreviewBadge{display:none!important}

@media (orientation:landscape){
  body[data-menu-section=workshop] #shopOverlay{
    justify-content:stretch;align-items:stretch;
    background:transparent;pointer-events:none;
  }
  body[data-menu-section=workshop] #workshopPreviewHit{
    display:block;position:absolute;left:0;top:0;bottom:0;width:55%;
    top:calc(var(--cs-safe-top) + 52px);bottom:calc(var(--cs-safe-bottom) + 56px);
    pointer-events:auto;z-index:2;touch-action:none;
  }
  body[data-menu-section=workshop] #workshopAbilityHud{
    display:none;position:absolute;left:auto;right:100%;bottom:calc(var(--cs-safe-bottom) + 10px);top:auto;
    width:min(280px,48vw);margin:0 10px 0 0;max-height:96px;overflow:auto;z-index:3;
    pointer-events:none;padding:0;border:0;background:none;
  }
  body[data-menu-section=workshop] #workshopAbilityHud > .beyAbilityCard{
    margin:0;padding:6px 8px;gap:6px;
    background:linear-gradient(125deg,#102434e8,#06111fe8);
  }
  body[data-menu-section=workshop] #workshopAbilityHud .abilitySkillIcon{width:36px;height:36px}
  body[data-menu-section=workshop] #workshopAbilityHud .abilityTradeoff{display:none}
  body[data-menu-section=workshop] #workshopAbilityHud p{
    display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
  }
  body[data-menu-section=workshop] #shopOverlay #shopPanel{
    position:absolute;inset:0;top:0;right:0;bottom:0;left:0;
    width:auto;max-height:none;height:100%;margin:0;border-radius:0;
    overflow:visible;pointer-events:none;
    padding:calc(var(--cs-safe-top) + 8px) calc(var(--cs-safe-right) + 8px)
      calc(var(--cs-safe-bottom) + 8px) calc(var(--cs-safe-left) + 8px);
    background:transparent;backdrop-filter:none;
  }
  body[data-menu-section=workshop] #shopOverlay #shopHead,
  body[data-menu-section=workshop] #shopHead [data-action="shop-home"],
  body[data-menu-section=workshop] #shopHead .shopHeadMeta,
  body[data-menu-section=workshop] #shopHead .moneyChip,
  body[data-menu-section=workshop] #menuNavigation,
  body[data-menu-section=workshop] #shopOverlay #fightBtn{
    pointer-events:auto;
  }
  body[data-menu-section=workshop] #shopOverlay #shopHead{
    position:relative;flex:0 0 auto;min-height:var(--cs-touch,48px);margin:0 0 2px;width:auto;
  }
  body[data-menu-section=workshop] #shopOverlay .jpban{font-size:16px;padding:0}
  body[data-menu-section=workshop] #shopOverlay .moneyChip{font-size:13px;padding:0 10px}
  body[data-menu-section=workshop] #menuNavigation{padding:0 0 4px}
  body[data-menu-section=workshop] #menuNavigation nav .cs-btn{
    min-height:var(--cs-touch,48px);min-width:0;padding:6px 8px;
    font:italic 700 var(--cs-type-helper,14px)/1.2 var(--cs-font,system-ui);
    text-transform:uppercase;letter-spacing:.12em;border-radius:999px;
  }
  body[data-menu-section=workshop] #shopOverlay #shopScroll{
    flex:1 1 auto;min-height:0;overflow:hidden;padding:0;gap:10px;
    display:grid;grid-template-columns:minmax(0,1.15fr) minmax(240px,.82fr) minmax(280px,1fr);
    grid-template-areas:"hangar inspect roster";
    pointer-events:none;
  }
  body[data-menu-section=workshop] #workshopStatus{
    display:none;flex:0 0 0;height:0;margin:0;padding:0;overflow:hidden;font-size:0;line-height:0;
  }
  body[data-menu-section=workshop] #portraitHero{
    display:flex!important;flex-direction:column;justify-content:flex-start;align-items:flex-start;
    grid-area:hangar;position:relative;min-height:0;padding:8px 8px 0;pointer-events:none;
    background:transparent;border:0;box-shadow:none;
  }
  body[data-menu-section=workshop] #portraitHeroLabel{
    display:flex;flex-direction:column;gap:6px;max-width:min(360px,90%);
  }
  body[data-menu-section=workshop] #portraitHeroLabel strong{
    font:900 clamp(28px,3.6vw,44px)/.95 var(--cs-font,system-ui);color:#f4fbff;
    text-transform:uppercase;letter-spacing:.04em;text-shadow:0 8px 24px rgba(0,0,0,.45);
  }
  body[data-menu-section=workshop] #portraitHeroLabel span{
    font:700 12px/1.2 var(--cs-font,system-ui);color:#7eecff;letter-spacing:.16em;
  }
  body[data-menu-section=workshop] .workshopHangarHints{
    position:absolute;left:10px;bottom:12px;display:flex;flex-direction:column;gap:4px;
    pointer-events:none;z-index:2;
  }
  body[data-menu-section=workshop] .workshopHangarHints span{
    color:#c5e6f2;font:700 11px/1.2 var(--cs-font,system-ui);text-shadow:0 4px 12px rgba(0,0,0,.5);
  }
  body[data-menu-section=workshop] #workshopCompare{
    display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;
    width:100%;max-width:100%;margin-top:auto;padding:8px;
    border:1px solid #2d6a82;border-radius:12px;
    background:linear-gradient(180deg,#10283ae8,#07131fd4);
    pointer-events:none;z-index:3;
  }
  body[data-menu-section=workshop] #workshopCompare[hidden]{display:none!important}
  body[data-menu-section=workshop] .workshopCompareHead{
    width:100%;display:flex;align-items:center;justify-content:space-between;gap:8px;
  }
  body[data-menu-section=workshop] .workshopCompareKicker{
    width:auto;margin:0;color:#7eecff;font:700 10px/1 var(--cs-font,system-ui);
    letter-spacing:.16em;text-transform:uppercase;
  }
  body[data-menu-section=workshop] .workshopCompareHide{
    pointer-events:auto;border:0;background:transparent;color:#9fe7f3;
    font:700 11px/1 var(--cs-font,system-ui);letter-spacing:.08em;text-transform:uppercase;
    min-height:24px;padding:0;
  }
  body[data-menu-section=workshop] .workshopCompareSide{
    display:flex;align-items:center;gap:8px;min-width:0;flex:1 1 120px;
  }
  body[data-menu-section=workshop] .workshopCompareSide img{
    width:40px;height:40px;object-fit:contain;flex:0 0 auto;
  }
  body[data-menu-section=workshop] .workshopCompareCopy{min-width:0;overflow:hidden}
  body[data-menu-section=workshop] .workshopCompareName,
  body[data-menu-section=workshop] .workshopCompareSide strong{
    display:block;min-width:0;color:#eef8ff;font:800 12px/1.15 var(--cs-font,system-ui);
    overflow-wrap:anywhere;white-space:normal;
  }
  body[data-menu-section=workshop] .workshopCompareTag,
  body[data-menu-section=workshop] .workshopCompareSide span{
    display:block;color:#9fe7f3;font:700 10px/1.2 var(--cs-font,system-ui);
    letter-spacing:.08em;text-transform:uppercase;
  }
  body[data-menu-section=workshop] .workshopCompareSide dl{
    display:grid;grid-template-columns:1fr 1fr;gap:2px 8px;margin:4px 0 0;
  }
  body[data-menu-section=workshop] .workshopCompareSide dl > div{
    display:flex;justify-content:space-between;gap:6px;
    color:#c5e6f2;font:600 10px/1.2 var(--cs-font,system-ui);
  }
  body[data-menu-section=workshop] .workshopCompareVs{
    flex:0 0 auto;color:#7eecff;font:800 12px/1 var(--cs-font,system-ui);
  }
  body[data-menu-section=workshop] #portraitDetails{
    display:flex;flex-direction:column;grid-area:inspect;min-height:80px;overflow:hidden;padding:12px;gap:8px;
    border:1px solid #2d6a82;border-radius:14px;pointer-events:auto;
    background:linear-gradient(180deg,#10283ae6,#07131f);
  }
  body[data-menu-section=workshop] #portraitDetails > *{flex:0 0 auto}
  body[data-menu-section=workshop] #portraitDetails .skillInfo{display:none}
  body[data-menu-section=workshop] #portraitDetails .beyAbilityCard{
    flex:1 1 auto;min-height:0;overflow:auto;margin:0;padding:10px 12px;gap:8px 12px;
    grid-template-columns:48px minmax(0,1fr);
    background:transparent;border:0;
  }
  body[data-menu-section=workshop] #portraitDetails .abilitySkillIcon{
    width:48px;height:48px;max-width:56px;
  }
  body[data-menu-section=workshop] #portraitDetails .abilityKind{
    font-size:11px;letter-spacing:.18em;color:#7eecff;text-transform:uppercase;
  }
  body[data-menu-section=workshop] #portraitDetails .beyAbilityCard strong{
    font-size:15px;margin:1px 0 4px;
  }
  body[data-menu-section=workshop] #portraitDetails .beyAbilityCard p{
    display:block;-webkit-line-clamp:unset;font-size:13px;line-height:1.45;color:#c5e6f2;
  }
  body[data-menu-section=workshop] .workshopInspectTabs{
    display:flex;gap:4px;padding:2px;border-radius:999px;background:rgba(6,16,28,.55);
  }
  body[data-menu-section=workshop] .workshopInspectTabs button{
    flex:1 1 0;min-height:32px;padding:4px 8px;border:0;border-radius:999px;
    background:transparent;color:#9eb7c6;font:700 12px/1 var(--cs-font,system-ui);
  }
  body[data-menu-section=workshop] .workshopInspectTabs button[aria-pressed="true"]{
    background:#1d4d63;color:#eef8ff;
  }
  body[data-menu-section=workshop] .portraitDetailHead{
    display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px;
  }
  body[data-menu-section=workshop] .portraitDetailHead h2{margin:0;font-size:18px;line-height:1.15;color:#eef8ff}
  body[data-menu-section=workshop] .portraitDetailType{
    width:100%;margin:0;color:#7eecff;font:700 11px/1.2 var(--cs-font,system-ui);letter-spacing:.14em;
  }
  body[data-menu-section=workshop] .portraitDetailHead .cardbtn{
    width:100%;min-height:var(--cs-touch,48px);max-width:100%;padding:6px 12px;
    font-size:var(--cs-type-helper,14px);border-radius:999px;
  }
  body[data-menu-section=workshop] .portraitStats{
    display:flex;flex-direction:column;gap:6px;margin:0;border:0;background:transparent;
  }
  body[data-menu-section=workshop] .portraitStats > div,
  body[data-menu-section=workshop] .workshopStat{
    display:grid;grid-template-columns:42px minmax(0,1fr) 28px;align-items:center;gap:8px;
    padding:0;font-size:12px;border:0;
  }
  body[data-menu-section=workshop] .portraitStats strong{color:#eef8ff;font-size:13px;text-align:right}
  body[data-menu-section=workshop] .portraitStats .statbar,
  body[data-menu-section=workshop] .workshopStat .statbar{
    height:8px;border-radius:999px;background:#173044;overflow:hidden;
  }
  body[data-menu-section=workshop] .workshopStat .statfill{display:block;height:100%;border-radius:999px}
  body[data-menu-section=workshop] #portraitPager,
  body[data-menu-section=workshop] #portraitLevelToggle{display:none!important}
  body[data-menu-section=workshop] #beyCarousel{
    display:flex;flex-direction:column;grid-area:roster;min-height:0;overflow:hidden;
    padding:10px;border:1px solid #2d6a82;border-radius:14px;pointer-events:auto;
    background:linear-gradient(180deg,#10283ae6,#07131f);
  }
  body[data-menu-section=workshop] #workshopRosterHead{flex:0 0 auto;display:flex;flex-direction:column;gap:8px;margin:0 0 8px}
  body[data-menu-section=workshop] .workshopRosterTitle{
    display:flex;align-items:baseline;gap:8px;margin:0;
  }
  body[data-menu-section=workshop] .workshopRosterTitle h2{
    margin:0;font:800 18px/1.1 var(--cs-font,system-ui);color:#eef8ff;
  }
  body[data-menu-section=workshop] .workshopRosterCount{color:#7eecff;font:700 13px/1 var(--cs-font,system-ui)}
  body[data-menu-section=workshop] .workshopRosterFilters{
    display:flex;flex-wrap:nowrap;gap:4px;min-width:0;
  }
  body[data-menu-section=workshop] .workshopFilterChip{
    flex:1 1 0;min-width:0;min-height:28px;padding:4px 6px;border:1px solid #345463;border-radius:999px;
    background:#102331;color:#c3dbe7;font:700 11px/1 var(--cs-font,system-ui);
    white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  }
  body[data-menu-section=workshop] .workshopFilterChip[aria-pressed="true"]{
    border-color:#7fe4ef;background:#173d4a;color:#a3f3fc;
  }
  body[data-menu-section=workshop] #beyPrev,
  body[data-menu-section=workshop] #beyNext{
    display:none;
  }
  body[data-menu-section=workshop] #beyCards{
    flex:1 1 auto;order:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
    grid-auto-rows:minmax(88px,auto);align-content:start;gap:8px;
    overflow-x:hidden;overflow-y:auto;max-height:none;min-height:0;padding:2px;
    border:0;border-radius:0;background:transparent;
    touch-action:pan-y;overscroll-behavior:contain;cursor:grab;
    scrollbar-width:thin;-webkit-overflow-scrolling:touch;
  }
  body[data-menu-section=workshop] #beyCards:active{cursor:grabbing}
  body[data-menu-section=workshop] #beyCards .beycard.is-filtered{display:none}
  body[data-menu-section=workshop] #shopOverlay .beycard{
    position:relative;width:auto;min-width:0;min-height:88px;margin:0;padding:8px 4px 6px;
    display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:4px;
    border:1px solid #37596e;border-radius:10px;overflow:visible;background:#101f2d;
  }
  body[data-menu-section=workshop] #beyCards .cardbtn{display:none}
  body[data-menu-section=workshop] #shopOverlay .bname{
    flex:0 0 auto;font-size:11px;min-height:14px;line-height:1.2;max-width:100%;
    white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  }
  body[data-menu-section=workshop] #shopOverlay .beycard.previewing,
  body[data-menu-section=workshop] #shopOverlay .beycard.sel{
    border-color:#7fe4ef;box-shadow:inset 0 0 0 1px #7fe4ef;
  }
  body[data-menu-section=workshop] #beyCards .portraitOwned{
    position:absolute;top:4px;right:4px;margin:0;font-size:10px;line-height:1;letter-spacing:.04em;
    color:#9fe7f3;text-transform:uppercase;
  }
  body[data-menu-section=workshop] #shopOverlay .beyimg,
  body[data-menu-section=workshop] #shopOverlay .bey-card-motion,
  body[data-menu-section=workshop] #beyCards .bey-card-motion{
    flex:0 0 52px;width:52px;height:52px;max-width:56px;max-height:56px;
  }
  body[data-menu-section=workshop] #shopOverlay .cardbtn{
    min-height:var(--cs-touch,48px);margin-top:0;padding:4px 8px;font-size:11px;
    white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  }
  body[data-menu-section=workshop][data-workshop-inspect=parts] #workshopTools{
    display:block!important;grid-area:inspect;pointer-events:auto;z-index:3;
    overflow:auto;padding:8px;border-radius:12px;background:linear-gradient(180deg,#10283ae6,#07131f);
  }
  body[data-menu-section=workshop] #shopOverlay #fightBtn{
    position:relative;bottom:auto;z-index:4;flex:0 0 auto;pointer-events:auto;
    min-height:var(--cs-touch,48px);max-height:none;margin:4px 0 0 auto;
    width:min(440px,38%);padding:8px 16px;border-radius:999px;
  }
  body[data-menu-section=workshop] #shopOverlay .ctaMain{font-size:18px}
  body[data-menu-section=workshop] #shopOverlay .ctaMeta{font-size:var(--cs-type-helper,14px);color:#3d2a00}
}

@media (orientation:landscape) and (max-height:430px){
  body[data-menu-section=workshop] #shopOverlay #shopScroll{
    grid-template-columns:minmax(0,1fr) minmax(200px,.9fr) minmax(240px,1.1fr);gap:6px;
  }
  body[data-menu-section=workshop] #beyCarousel{padding:6px}
  body[data-menu-section=workshop] .workshopRosterFilters{gap:2px}
  body[data-menu-section=workshop] .workshopFilterChip{min-height:24px;padding:3px 4px;font-size:10px}
  body[data-menu-section=workshop] #portraitDetails{padding:6px 8px;gap:4px}
  body[data-menu-section=workshop] .portraitDetailHead .cardbtn{min-height:36px;padding:4px 10px;font-size:11px}
  body[data-menu-section=workshop] .portraitStats > div,
  body[data-menu-section=workshop] .workshopStat{grid-template-columns:36px minmax(0,1fr) 24px;font-size:11px}
  body[data-menu-section=workshop] #portraitDetails .abilitySkillIcon{width:32px;height:40px}
  body[data-menu-section=workshop] #portraitDetails .beyAbilityCard{
    grid-template-columns:32px minmax(0,1fr);padding:6px 8px;
  }
  body[data-menu-section=workshop] #beyCards{grid-auto-rows:minmax(64px,auto);gap:4px}
  body[data-menu-section=workshop] #shopOverlay .beycard{min-height:64px;padding:4px 2px}
  body[data-menu-section=workshop] #shopOverlay .beyimg,
  body[data-menu-section=workshop] #beyCards .bey-card-motion{flex:0 0 36px;width:36px;height:36px}
  body[data-menu-section=workshop] #shopOverlay #fightBtn{width:min(360px,42%);padding:4px 10px}
  body[data-menu-section=workshop] #workshopCompare{display:none!important}
}

@media (orientation:portrait){
  body[data-menu-section=workshop] #shopOverlay{
    justify-content:stretch;align-items:stretch;background:#09131e;
  }
  body[data-menu-section=workshop] #shopOverlay #shopPanel{
    position:absolute;inset:0;max-height:none;height:100%;width:100%;
    display:flex;flex-direction:column;overflow:hidden;border-radius:0;
    padding:calc(var(--cs-safe-top) + 8px) calc(var(--cs-safe-right) + 12px)
      calc(var(--cs-safe-bottom) + 8px) calc(var(--cs-safe-left) + 12px);
    background:#09131e;backdrop-filter:none;
  }
  body[data-menu-section=workshop] #shopOverlay #shopScroll{
    flex:1 1 auto;min-height:0;overflow:hidden;gap:6px;
    display:grid;grid-template-columns:minmax(0,1.12fr) minmax(150px,.95fr);
    grid-template-rows:minmax(32vh,38vh) minmax(0,1fr) auto;
    grid-template-areas:"hangar inspect" "roster roster" "compare compare";
  }
  body[data-menu-section=workshop] #shopOverlay #shopScroll > *{min-width:0;min-height:0}
  body[data-menu-section=workshop] #workshopTools,
  body[data-menu-section=workshop] #stormLodBar,
  body[data-menu-section=workshop] #portraitLevelToggle,
  body[data-menu-section=workshop] #shopTabs{display:none}
  body[data-menu-section=workshop] #shopOverlay #portraitHero{
    order:1;grid-area:hangar;position:relative;height:auto;min-height:32vh;max-height:38vh;
    flex:0 0 auto;border:0;border-bottom:0;pointer-events:auto;overflow:hidden;
    background:radial-gradient(ellipse at 50% 70%,rgba(0,174,224,.14),transparent 64%);
  }
  body[data-menu-section=workshop] #workshopHangarStage{
    position:absolute;inset:0;z-index:0;overflow:hidden;pointer-events:none;
  }
  body[data-menu-section=workshop] #workshopHangarStage canvas{
    position:absolute;inset:0;width:100%!important;height:100%!important;display:block;
  }
  body[data-menu-section=workshop] #shopOverlay #portraitHeroLabel{
    position:relative;bottom:auto;left:auto;width:auto;max-width:92%;padding:4px 8px 0;text-align:left;
    text-shadow:0 8px 24px rgba(0,0,0,.45);transform:none;z-index:2;
  }
  body[data-menu-section=workshop] #shopOverlay #portraitHeroLabel strong{
    font:900 clamp(22px,7vw,34px)/.95 var(--cs-font,system-ui);color:#f4fbff;
    text-transform:uppercase;letter-spacing:.04em;
  }
  body[data-menu-section=workshop] #shopOverlay #portraitHeroLabel span{
    font:700 11px/1.2 var(--cs-font,system-ui);color:#7eecff;letter-spacing:.16em;
  }
  body[data-menu-section=workshop] .workshopHangarHints{
    position:absolute;left:8px;bottom:10px;display:flex;flex-direction:column;gap:6px;
    pointer-events:none;z-index:2;
  }
  body[data-menu-section=workshop] .workshopHangarHints span{
    color:#c5e6f2;font:700 11px/1.2 var(--cs-font,system-ui);text-shadow:0 4px 12px rgba(0,0,0,.55);
  }
  body[data-menu-section=workshop] #workshopAbilityHud{display:none!important}
  body[data-menu-section=workshop] #workshopStatus{
    display:block;grid-area:hangar;height:0;width:0;margin:0;padding:0;overflow:hidden;
    font-size:11px;line-height:0;color:transparent;pointer-events:none;
  }
  body[data-menu-section=workshop] #portraitDetails{
    display:flex;flex-direction:column;order:3;grid-area:inspect;flex:1 1 auto;min-height:80px;
    overflow:hidden;padding:8px;gap:6px;
    border:1px solid #2d6a82;border-radius:12px;
    background:linear-gradient(180deg,#10283ae6,#07131f);
  }
  body[data-menu-section=workshop] #shopOverlay #portraitDetails{
    display:flex;flex-direction:column;order:3;grid-area:inspect;flex:1 1 auto;flex-shrink:1;min-height:80px;
    overflow:hidden;padding:6px;gap:4px;
    border:1px solid #2d6a82;border-radius:12px;
    background:linear-gradient(180deg,#10283ae6,#07131f);
  }
  body[data-menu-section=workshop] #portraitDetails > *{flex:0 0 auto}
  body[data-menu-section=workshop] .workshopInspectTabs{
    display:flex;gap:4px;padding:2px;border-radius:999px;background:rgba(6,16,28,.55);
    position:relative;z-index:2;overflow:hidden;isolation:isolate;
  }
  body[data-menu-section=workshop] .workshopInspectTabs button{
    flex:1 1 0;min-height:24px;padding:3px 6px;border:0;border-radius:999px;
    background:transparent;color:#9eb7c6;font:700 11px/1 var(--cs-font,system-ui);
  }
  body[data-menu-section=workshop] .workshopInspectTabs button[aria-pressed="true"]{
    background:#1d4d63;color:#eef8ff;
  }
  body[data-menu-section=workshop] .workshopInspectTabs button[disabled]{
    opacity:.45;
  }
  body[data-menu-section=workshop] .portraitDetailHead,
  body[data-menu-section=workshop] #shopOverlay .portraitDetailHead{
    display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto auto;
    grid-template-areas:"name" "type" "action";align-items:center;gap:4px;
  }
  body[data-menu-section=workshop] .portraitDetailHead h2,
  body[data-menu-section=workshop] #shopOverlay .portraitDetailHead h2{
    grid-area:name;margin:0;font-size:15px;line-height:1.1;min-width:0;
  }
  body[data-menu-section=workshop] .portraitDetailType,
  body[data-menu-section=workshop] #shopOverlay .portraitDetailType{
    grid-area:type;display:block;margin:0;color:#7eecff;font:700 10px/1.2 var(--cs-font,system-ui);
    letter-spacing:.12em;
  }
  body[data-menu-section=workshop] .portraitDetailHead .cardbtn,
  body[data-menu-section=workshop] #shopOverlay .portraitDetailHead .cardbtn,
  body[data-menu-section=workshop] #shopOverlay #portraitDetails .cardbtn{
    grid-area:action;width:100%;max-width:none;min-height:28px;padding:6px 8px;font-size:11px;border-radius:999px;
    white-space:nowrap;overflow:visible;text-overflow:clip;justify-self:stretch;letter-spacing:0;
  }
  body[data-menu-section=workshop] .portraitStats,
  body[data-menu-section=workshop] #shopOverlay .portraitStats{
    display:flex;flex-direction:column;gap:2px;margin:0;border:0;background:transparent;
  }
  body[data-menu-section=workshop] .portraitStats > div,
  body[data-menu-section=workshop] .workshopStat,
  body[data-menu-section=workshop] #shopOverlay .portraitStats > div,
  body[data-menu-section=workshop] #shopOverlay .workshopStat{
    display:grid;grid-template-columns:36px minmax(0,1fr) 28px;align-items:center;gap:6px;
    padding:0;font-size:11px;border:0;min-width:0;
  }
  body[data-menu-section=workshop] .portraitStats .statbar,
  body[data-menu-section=workshop] .workshopStat .statbar{
    display:block;height:8px;border-radius:999px;background:#173044;overflow:hidden;
  }
  body[data-menu-section=workshop] .workshopStat .statfill{display:block;height:100%;border-radius:999px}
  body[data-menu-section=workshop] .portraitStats strong{color:#eef8ff;font-size:12px;text-align:right}
  body[data-menu-section=workshop] #portraitDetails .bskills{font-size:11px;line-height:1.2}
  body[data-menu-section=workshop] #portraitDetails .skillInfo{display:none}
  body[data-menu-section=workshop] #portraitDetails .beyAbilityCard{
    display:grid;flex:1 1 auto;min-height:0;overflow:auto;margin:0;padding:4px 0;gap:4px 8px;
    grid-template-columns:32px minmax(0,1fr);background:transparent;border:0;
  }
  body[data-menu-section=workshop] #portraitDetails .abilitySkillIcon{width:32px;height:32px}
  body[data-menu-section=workshop] #portraitDetails .abilityKind{
    font-size:10px;letter-spacing:.16em;color:#7eecff;text-transform:uppercase;
  }
  body[data-menu-section=workshop] #portraitDetails .beyAbilityCard strong{
    font-size:12px;margin:0 0 1px;line-height:1.2;white-space:nowrap;overflow:visible;
  }
  body[data-menu-section=workshop] #portraitDetails .beyAbilityCard p{
    display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
    font-size:11px;line-height:1.3;color:#c5e6f2;
  }
  body[data-menu-section=workshop] #portraitDetails .abilityTradeoff{display:none}
  body[data-menu-section=workshop] #portraitPager,
  body[data-menu-section=workshop] #shopOverlay #portraitPager{
    display:flex!important;order:4;position:absolute;left:8px;bottom:calc(var(--cs-safe-bottom) + 84px);
    width:48px;height:48px;overflow:hidden;opacity:.02;margin:0;padding:0;gap:0;align-items:center;z-index:1;
    pointer-events:auto;
  }
  body[data-menu-section=workshop] #shopOverlay #portraitPager > span:first-child{
    margin-right:auto;letter-spacing:0;color:#eef8ff;
    font:800 16px/1.1 var(--cs-font,system-ui);
  }
  body[data-menu-section=workshop] #shopOverlay #portraitPager button{
    min-width:var(--cs-touch,48px);min-height:var(--cs-touch,48px);
    border:1px solid #345463;border-radius:999px;background:#102331;color:#a3f3fc;font-size:22px;
  }
  body[data-menu-section=workshop] #beyCarousel{order:5;grid-area:roster;flex:1 1 auto;min-height:0;overflow:hidden;padding:8px;border:1px solid #2d6a82;border-radius:12px;background:linear-gradient(180deg,#10283ae6,#07131f);display:flex;flex-direction:column}
  body[data-menu-section=workshop] #beyCards,
  body[data-menu-section=workshop] #shopOverlay #beyCards{
    order:5;flex:1 1 auto;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));
    grid-auto-rows:minmax(72px,auto);align-content:start;gap:6px;overflow-x:hidden;overflow-y:auto;
    padding:0;min-height:0;touch-action:pan-y;
  }
  body[data-menu-section=workshop] #beyCards .beycard.is-filtered{display:none}
  body[data-menu-section=workshop] #shopOverlay .beycard{
    position:relative;min-height:64px;padding:4px 2px;gap:2px;overflow:hidden;
  }
  body[data-menu-section=workshop] #shopOverlay .beyimg,
  body[data-menu-section=workshop] #beyCards .bey-card-motion{
    flex:0 0 36px;width:36px;height:36px;max-width:40px;max-height:44px;
  }
  body[data-menu-section=workshop] #shopOverlay .bname{
    flex:0 0 auto;font-size:10px;min-height:22px;line-height:1.15;max-width:100%;
    white-space:normal;overflow:hidden;overflow-wrap:anywhere;text-overflow:clip;
    display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;
  }
  body[data-menu-section=workshop] #beyCards .portraitOwned{
    display:none;
  }
  body[data-menu-section=workshop] #workshopRosterHead{
    display:flex!important;flex-direction:column;gap:6px;margin:0 0 6px;
  }
  body[data-menu-section=workshop] .workshopRosterTitle{
    display:flex;align-items:baseline;gap:8px;margin:0;
  }
  body[data-menu-section=workshop] .workshopRosterTitle h2{
    margin:0;font:800 16px/1.1 var(--cs-font,system-ui);color:#eef8ff;
  }
  body[data-menu-section=workshop] .workshopRosterCount{color:#7eecff;font:700 12px/1 var(--cs-font,system-ui)}
  body[data-menu-section=workshop] .workshopRosterFilters{
    display:flex;flex-wrap:nowrap;gap:3px;min-width:0;
  }
  body[data-menu-section=workshop] .workshopFilterChip{
    flex:1 1 0;min-width:0;min-height:26px;padding:3px 4px;border:1px solid #345463;border-radius:999px;
    background:#102331;color:#c3dbe7;font:700 10px/1 var(--cs-font,system-ui);
    white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  }
  body[data-menu-section=workshop] .workshopFilterChip[aria-pressed="true"]{
    border-color:#7fe4ef;background:#173d4a;color:#a3f3fc;
  }
  body[data-menu-section=workshop] #portraitLevelToggle,
  body[data-menu-section=workshop] #shopTabs{display:none!important}
  body[data-menu-section=workshop] #shopOverlay #fightBtn{
    position:relative;bottom:auto;inset:auto;z-index:4;flex:0 0 auto;align-self:stretch;
    width:100%;max-width:none;margin:6px 0 0;min-height:var(--cs-touch,48px);
    padding:8px 12px;border-radius:999px;
  }
  body[data-menu-section=workshop] #workshopCompare{
    display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:6px 8px;grid-area:compare;
    width:100%;margin:0;padding:8px;border:1px solid #2d6a82;border-radius:12px;
    background:linear-gradient(180deg,#10283ae8,#07131fd4);pointer-events:auto;
  }
  body[data-menu-section=workshop] #workshopCompare[hidden]{display:none!important}
  body[data-menu-section=workshop][data-workshop-inspect=parts] #workshopTools{
    display:block!important;grid-area:inspect;pointer-events:auto;z-index:3;
    overflow:auto;padding:8px;border-radius:12px;background:linear-gradient(180deg,#10283ae6,#07131f);
  }
}

@media (orientation:portrait) and (max-height:700px){
  body[data-menu-section=workshop] #shopOverlay #shopHead{min-height:40px;margin:0 0 2px}
  body[data-menu-section=workshop] #shopOverlay #shopHead .jpban{font-size:15px;padding:0}
  body[data-menu-section=workshop] #menuNavigation{padding:0 0 2px}
  body[data-menu-section=workshop] #menuNavigation nav .cs-btn{min-height:40px;padding:4px 6px}
  body[data-menu-section=workshop] #shopOverlay #shopScroll{
    grid-template-rows:minmax(22vh,30vh) minmax(0,1fr) auto;gap:4px;
  }
  body[data-menu-section=workshop] #shopOverlay #portraitHero{
    height:auto;min-height:22vh;max-height:30vh;
  }
  body[data-menu-section=workshop] #shopOverlay #portraitHeroLabel strong{font-size:clamp(18px,6vw,26px)}
  body[data-menu-section=workshop] #portraitDetails,
  body[data-menu-section=workshop] #shopOverlay #portraitDetails{
    padding:5px 6px;gap:3px;overflow:auto;
  }
  body[data-menu-section=workshop] .portraitDetailHead h2,
  body[data-menu-section=workshop] #shopOverlay .portraitDetailHead h2{font-size:14px}
  body[data-menu-section=workshop] .portraitDetailHead,
  body[data-menu-section=workshop] #shopOverlay .portraitDetailHead{
    grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"name action" "type action";
  }
  body[data-menu-section=workshop] .portraitDetailHead .cardbtn,
  body[data-menu-section=workshop] #shopOverlay .portraitDetailHead .cardbtn,
  body[data-menu-section=workshop] #shopOverlay #portraitDetails .cardbtn{
    width:auto;min-height:24px;padding:2px 8px;font-size:10px;justify-self:end;
  }
  body[data-menu-section=workshop] .portraitStats > div,
  body[data-menu-section=workshop] .workshopStat,
  body[data-menu-section=workshop] #shopOverlay .workshopStat{padding:3px 4px;font-size:10px}
  body[data-menu-section=workshop] #shopOverlay .beycard{min-height:52px}
  body[data-menu-section=workshop] #shopOverlay #fightBtn{margin-top:4px;padding:6px 10px}
  body[data-menu-section=workshop] #workshopCompare{display:none!important}
}

#launchOverlay, #resultOverlay, #settingsOverlay, #battlePauseOverlay {
  font-family: var(--cs-font, Inter, "Segoe UI", system-ui, sans-serif);
}

body[data-menu-section=challenge] #shopOverlay #shopPanel,
body[data-menu-section=workshop] #shopOverlay #shopPanel {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
@media (orientation:landscape){
  body[data-menu-section=challenge] #shopOverlay #shopPanel,
  body[data-menu-section=workshop] #shopOverlay #shopPanel{
    display:grid;
    grid-template-columns:var(--cs-touch,48px) minmax(0,1fr) auto;
    grid-template-rows:auto minmax(0,1fr) auto;
  }
  body[data-menu-section=challenge] #shopOverlay #shopHead,
  body[data-menu-section=workshop] #shopOverlay #shopHead{display:contents}
  body[data-menu-section=challenge] #shopOverlay #shopHead .jpban,
  body[data-menu-section=workshop] #shopOverlay #shopHead .jpban{display:none}
  body[data-menu-section=challenge] #shopOverlay #shopHead [data-action="shop-home"],
  body[data-menu-section=workshop] #shopOverlay #shopHead [data-action="shop-home"]{
    grid-column:1;grid-row:1;align-self:center;
  }
  body[data-menu-section=challenge] #shopOverlay #shopHead .moneyChip,
  body[data-menu-section=workshop] #shopOverlay #shopHead .moneyChip,
  body[data-menu-section=challenge] #shopOverlay #shopHead .shopHeadMeta,
  body[data-menu-section=workshop] #shopOverlay #shopHead .shopHeadMeta{
    grid-column:3;grid-row:1;align-self:center;
  }
  body[data-menu-section=challenge] #menuNavigation,
  body[data-menu-section=workshop] #menuNavigation{
    grid-column:2;grid-row:1;padding:0 8px;min-width:0;
  }
  body[data-menu-section=challenge] #shopOverlay #shopScroll,
  body[data-menu-section=workshop] #shopOverlay #shopScroll{
    grid-column:1 / -1;grid-row:2;min-height:0;
  }
  body[data-menu-section=challenge] #shopOverlay #fightBtn{
    grid-column:1 / -1;grid-row:3;
  }
  body[data-menu-section=workshop] #shopOverlay #fightBtn{
    grid-column:1 / -1;grid-row:3;
    justify-self:end;width:min(440px,38%);
    min-height:var(--cs-touch,48px);border-radius:999px;
  }
  body[data-menu-section=workshop] #shopOverlay #shopPanel{overflow:visible}
  body[data-menu-section=workshop] #shopOverlay #shopScroll{
    overflow:hidden;display:grid;
    grid-template-columns:minmax(0,1.15fr) minmax(240px,.82fr) minmax(280px,1fr);
    grid-template-areas:"hangar inspect roster";
  }
}
body[data-menu-section=workshop] #shopOverlay #shopScroll,
body[data-menu-section=challenge][data-campaign-mode="extra"] #shopOverlay #shopScroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}
@media (orientation:landscape){
  body[data-menu-section=workshop] #shopOverlay #shopScroll{
    overflow:hidden;display:grid;
    grid-template-columns:minmax(0,1.15fr) minmax(240px,.82fr) minmax(280px,1fr);
    grid-template-areas:"hangar inspect roster";
  }
}
@media (orientation:portrait){
  body[data-menu-section=workshop] #shopOverlay #shopPanel{
    display:grid;grid-template-columns:var(--cs-touch,48px) minmax(0,1fr) auto;
    grid-template-rows:auto minmax(0,1fr) auto;
  }
  body[data-menu-section=workshop] #shopOverlay #shopHead{display:contents}
  body[data-menu-section=workshop] #shopOverlay #shopHead .jpban{display:none}
  body[data-menu-section=workshop] #shopOverlay #shopHead [data-action="shop-home"]{
    grid-column:1;grid-row:1;align-self:center;
  }
  body[data-menu-section=workshop] #shopOverlay #shopHead .moneyChip,
  body[data-menu-section=workshop] #shopOverlay #shopHead .shopHeadMeta{
    grid-column:3;grid-row:1;align-self:center;
  }
  body[data-menu-section=workshop] #menuNavigation{
    grid-column:2;grid-row:1;padding:0 6px;min-width:0;
  }
  body[data-menu-section=workshop] #menuNavigation nav .cs-btn{
    min-height:40px;padding:4px 6px;font-size:12px;letter-spacing:.02em;
    white-space:nowrap;overflow:visible;
  }
  body[data-menu-section=workshop] #shopOverlay #shopScroll{
    grid-column:1 / -1;grid-row:2;overflow:hidden;
  }
  body[data-menu-section=workshop] #shopOverlay #fightBtn{
    grid-column:1 / -1;grid-row:3;width:100%;max-width:none;justify-self:stretch;
  }
  body[data-menu-section=workshop] #shopOverlay #shopScroll #portraitDetails{
    flex-shrink:1;
  }
  body[data-menu-section=workshop] #beyCarousel{min-height:148px}
  body[data-menu-section=workshop] #workshopCompare{
    max-height:none;overflow:hidden;align-content:start;gap:6px 8px;
    display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
  }
  body[data-menu-section=workshop] .workshopCompareHead{
    grid-column:1 / -1;display:flex;align-items:center;justify-content:space-between;gap:8px;
    min-width:0;
  }
  body[data-menu-section=workshop] .workshopCompareKicker{grid-column:auto;width:auto;margin:0;min-width:0}
  body[data-menu-section=workshop] .workshopCompareHide{
    pointer-events:auto;border:0;background:transparent;color:#9fe7f3;
    font:700 11px/1 var(--cs-font,system-ui);letter-spacing:.08em;text-transform:uppercase;
    min-height:24px;padding:0;
  }
  body[data-menu-section=workshop] #workshopCompare .workshopCompareSide{
    min-width:0;overflow:hidden;align-items:flex-start;
  }
  body[data-menu-section=workshop] #workshopCompare .workshopCompareCopy{min-width:0;overflow:hidden}
  body[data-menu-section=workshop] #workshopCompare .workshopCompareName,
  body[data-menu-section=workshop] #workshopCompare .workshopCompareSide strong{
    display:block;min-width:0;overflow-wrap:anywhere;white-space:normal;
  }
  body[data-menu-section=workshop] #workshopCompare .workshopCompareTag,
  body[data-menu-section=workshop] #workshopCompare .workshopCompareSide span{
    display:block;
  }
  body[data-menu-section=workshop] #workshopCompare .workshopCompareSide img{width:28px;height:28px}
  body[data-menu-section=workshop] #workshopCompare .workshopCompareSide dl{
    display:grid;grid-template-columns:1fr 1fr;gap:1px 8px;margin:2px 0 0;
  }
  body[data-menu-section=workshop] #workshopCompare .workshopCompareSide dl > div{
    display:flex;justify-content:space-between;gap:4px;
    color:#c5e6f2;font:600 10px/1.2 var(--cs-font,system-ui);
  }
}
#shopOverlay #fightBtn,
body[data-menu-section=challenge] #shopOverlay #fightBtn,
body[data-menu-section=workshop] #shopOverlay #fightBtn,
body[data-menu-section=challenge][data-campaign-mode="extra"] #shopOverlay #fightBtn {
  position: relative;
  bottom: auto;
  inset: auto;
  z-index: 1;
  flex: 0 0 auto;
  min-height: var(--cs-touch, 48px);
  background: var(--cs-cta, linear-gradient(180deg,#f0d56a,#c9a227));
  color: var(--cs-cta-text, #1a1400);
  border: 2px solid #fff3b0;
  box-shadow: 0 8px 22px rgba(201,162,39,.38);
  text-shadow: none;
}

body[data-menu-section=challenge][data-campaign-mode="extra"] #shopOverlay #levelBar {
  position: relative;
  z-index: 2;
  padding-bottom: 8px;
}
body[data-campaign-mode="extra"] #shopOverlay .lvlchip {
  position: relative;
  z-index: 2;
}

@media (orientation:portrait) {
  body[data-menu-section=challenge] #shopOverlay #shopPanel {
    overflow: hidden;
  }
  body[data-menu-section=challenge] #shopOverlay #shopScroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
  }
  body[data-menu-section=challenge] #shopOverlay #fightBtn {
    position: relative;
    bottom: auto;
    z-index: 1;
  }
  #chapterRail .chapterRailLabel {
    font: 700 var(--cs-type-helper, 14px)/1.2 var(--cs-font, system-ui);
    white-space: normal;
    overflow-wrap: break-word;
  }
}

@media (orientation:landscape) {
  body[data-menu-section=challenge][data-campaign-mode="extra"] #shopOverlay #shopPanel {
    overflow: hidden;
  }
  body[data-menu-section=challenge][data-campaign-mode="extra"] #shopOverlay #shopScroll {
    overflow: auto;
    flex: 1 1 auto;
    min-height: 0;
  }
  body[data-menu-section=challenge][data-campaign-mode="extra"] #shopOverlay #fightBtn {
    min-height: var(--cs-touch, 48px);
    padding: 2px 8px;
  }
  body[data-menu-section=challenge][data-campaign-mode="extra"] #shopOverlay .ctaMain { font-size: 18px; }
  body[data-menu-section=challenge][data-campaign-mode="extra"] #shopOverlay .ctaMeta {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 0;
  }
  .chapterRailLabel {
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

body[data-menu-section="workshop"] #shopOverlay #levelBar,
body[data-menu-section="workshop"] #shopOverlay #arenaSelector,
body[data-menu-section="workshop"][data-campaign-mode="extra"] #shopOverlay #levelBar {
  display: none !important;
}

#shopOverlay,
#settingsOverlay,
#launchOverlay,
#resultOverlay{
  overflow-x:hidden;
}

#menuNavigation .cs-btn,
#settingsOverlay .cs-btn,
#resultActions .cs-btn{
  border-radius:999px;
  font-style:italic;
  text-transform:uppercase;
  letter-spacing:.08em;
  min-height:var(--cs-touch,48px);
  overflow:hidden;
}
#menuNavigation .cs-btn,
#settingsOverlay [data-settings-close]{
  border:2px solid rgba(110,232,255,.55);
  background:rgba(8,18,40,.48);
  color:#9ef6ff;
  box-shadow:none;
}
#menuNavigation button[aria-pressed=true]{
  border-color:#b7f7ff;
  color:#fff;
  background:rgba(12,28,56,.72);
}
#shopOverlay #fightBtn{
  border-radius:999px;
  font-style:italic;
  min-height:var(--cs-touch,48px);
  text-transform:none;
  transform:none;
}
#shopOverlay #fightBtn .ctaMain{
  text-transform:uppercase;
  font-style:italic;
  letter-spacing:.08em;
}
#shopOverlay #fightBtn,
#resultActions [data-result-primary="true"],
#resultOverlay .btn.gold{
  background:var(--cs-cta,linear-gradient(180deg,#f0d56a,#c9a227));
  color:var(--cs-cta-text,#1a1400);
  border:2px solid #fff3b0;
  box-shadow:0 8px 22px rgba(201,162,39,.38);
  text-shadow:none;
}
#resultActions .cs-btn:not(.gold):not([data-result-primary="true"]){
  border:2px solid rgba(110,232,255,.55);
  background:rgba(8,18,40,.48);
  color:#9ef6ff;
}
#launchOverlay #launchTitle{
  font-style:italic;
  text-transform:uppercase;
  letter-spacing:.12em;
  transform:none;
  border-radius:999px;
  border:2px solid rgba(110,232,255,.55);
  background:rgba(8,18,40,.72);
  color:#9ef6ff;
  box-shadow:none;
  text-shadow:none;
}
#resultOverlay{
  z-index:45;
}
#resultOverlay #resultCard{
  background:linear-gradient(180deg,#152433,#09131e);
  border:1px solid #355465;
  border-radius:12px;
  box-shadow:none;
}
#resultOverlay #resultTitle{
  transform:none;
  border:0;
  box-shadow:none;
  text-shadow:none;
  font-style:italic;
  text-transform:uppercase;
  letter-spacing:.08em;
  border-radius:0;
  background:none;
  padding:0 0 4px;
}
#resultOverlay #resultTitle.win{
  background:none;
  color:var(--cs-gold,#edd08c);
  -webkit-text-fill-color:var(--cs-gold,#edd08c);
}
#resultOverlay #resultTitle.lose{
  background:none;
  color:#9ef6ff;
  -webkit-text-fill-color:#9ef6ff;
  border:0;
}
#resultOverlay .btn,
#resultOverlay #resultBtn{
  transform:none;
  font-size:16px;
  line-height:1.2;
  letter-spacing:.08em;
  padding:10px 16px;
  overflow:visible;
}
@media (max-height:480px) {
  #resultOverlay #resultActions {
    display:flex;
    flex-direction:column;
  }
  #resultOverlay #resultBtn,
  #resultOverlay #resultActions [data-result-primary="true"] {
    grid-column:auto;
  }
}
#resultOverlay #resultBtn,
#resultOverlay #resultActions [data-result-primary="true"] {
  color:var(--cs-cta-text,#1a1400);
  -webkit-text-fill-color:var(--cs-cta-text,#1a1400);
}
@media (orientation:portrait) {
  #menuNavigation nav .cs-btn {
    flex:1 1 0;
    min-width:0;
    letter-spacing:.04em;
    padding:8px 8px;
  }
}
body[data-menu-section=challenge] #campaignMode button {
  font-style:italic;
  text-transform:uppercase;
}

body[data-menu-section=challenge][data-campaign-mode="main"] #mainCampaignBoard > #fightBtn{
  grid-area:cta;
  grid-column:auto;
  grid-row:auto;
  width:100%;
  margin:0;
  justify-self:stretch;
}
body[data-menu-section=challenge][data-campaign-mode="main"] #stageDetail #fightBtn{
  flex:0 0 auto;
  width:100%;
  margin:auto 0 0;
  justify-self:stretch;
}
body[data-menu-section=challenge][data-campaign-mode="main"] #mainCampaignBoard > .startHint,
body[data-menu-section=challenge][data-campaign-mode="main"] #stageDetail > .startHint{
  grid-area:hint;
  margin:4px 0 0;
  text-align:center;
  font:600 11px/1.2 var(--cs-font,system-ui);
  letter-spacing:.08em;
  color:#9eb7c6;
  text-transform:uppercase;
}
body[data-menu-section=challenge][data-campaign-mode="main"] #stageDetail > .startHint{
  grid-area:auto;
  flex:0 0 auto;
}
body[data-menu-section=challenge][data-campaign-mode="main"] #fightBtn .ctaMeta{display:none}
body[data-menu-section=challenge] #campaignMode{
  align-items:center;
  margin-left:auto;
  gap:6px;
}
body[data-menu-section=challenge] #campaignMode [data-campaign-mode="main"]{
  min-height:var(--cs-touch,48px);
  padding:6px 12px;
  font:700 12px/1.2 var(--cs-font,system-ui);
  white-space:nowrap;
  border:2px solid rgba(110,232,255,.4);
  background:rgba(8,18,40,.48);
  color:#d6ecf4;
}
body[data-menu-section=challenge] #campaignMode [data-campaign-mode="extra"]{
  opacity:.48;
  font-size:10px;
  font-weight:600;
  min-height:32px;
  padding:4px 8px;
  letter-spacing:.04em;
  max-width:7.5rem;
  white-space:normal;
  line-height:1.15;
  background:transparent;
  border:1px dashed rgba(110,232,255,.28);
  color:#8aa4b6;
  flex:0 0 auto;
}
body[data-menu-section=challenge] .chapterRailBtn{
  position:relative;
  border:1px solid #314a5c;
  background:linear-gradient(180deg,#102333,#0b1c2a);
  border-radius:10px;
  overflow:hidden;
}
body[data-menu-section=challenge] .chapterRailBtn .chapterRailCopy{
  display:flex;flex-direction:column;gap:2px;min-width:0;flex:1 1 auto;
}
body[data-menu-section=challenge] .chapterRailMetaRow{
  display:flex;align-items:center;gap:8px;
}
body[data-menu-section=challenge] .chapterRailKind{
  color:#8aa4b6;font:600 11px/1.2 var(--cs-font,system-ui);
}
body[data-menu-section=challenge] .venuePips{
  display:inline-flex;gap:3px;align-items:center;
}
body[data-menu-section=challenge] .venuePip{
  width:7px;height:7px;display:block;
  border-radius:50%;
  background:#3d5566;
}
body[data-menu-section=challenge] .venuePip.is-on{background:#ffd16b}
body[data-menu-section=challenge] .chapterRailBtn[aria-pressed="true"]{
  border:2px solid #ffd16b;
  background:linear-gradient(180deg,#1d3348,#142536);
  box-shadow:0 0 0 1px rgba(255,209,107,.35),0 8px 18px rgba(255,209,107,.18);
}
body[data-menu-section=challenge] .chapterRailBtn.is-locked{opacity:.58}
body[data-menu-section=challenge] .venueLock{
  flex:0 0 18px;width:18px;height:18px;margin-left:auto;
  background:center / 16px 16px no-repeat;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%239eb7c6' d='M17 8h-1V6a4 4 0 0 0-8 0v2H7a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V10a2 2 0 0 0-2-2zm-7-2a2 2 0 1 1 4 0v2h-4V6zm3 10a2 2 0 1 1 0-4 2 2 0 0 1 0 4z'/%3E%3C/svg%3E");
}
body[data-menu-section=challenge] #chapterDetail{
  position:relative;display:flex;flex-direction:column;gap:0;
  padding:0;border:1px solid #2a4a5e;border-radius:12px;
  background:#08141f;min-width:0;overflow:hidden;
}
body[data-menu-section=challenge] .challengeHero{
  position:absolute;inset:0;min-height:0;border-radius:12px;overflow:hidden;
  background:#0b1a26 center / cover no-repeat;
}
body[data-menu-section=challenge] .challengeHero::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(180deg,rgba(7,16,24,.18) 0 28%,rgba(7,16,24,.62) 62%,rgba(7,16,24,.92) 100%);
}
body[data-menu-section=challenge] .challengeHeroCopy{
  position:absolute;left:12px;right:12px;top:10px;z-index:2;
  text-shadow:0 2px 10px #041018;
}
body[data-menu-section=challenge] .challengeVenueTitle{
  margin:0;font:800 22px/1.1 var(--cs-font,system-ui);
  letter-spacing:.08em;color:#f4fbff;text-transform:uppercase;
}
body[data-menu-section=challenge] .challengeVenueTag{
  margin:4px 0 0;color:#d6ecf4;font:600 13px/1.3 var(--cs-font,system-ui);
}
body[data-menu-section=challenge] .challengeDuel{
  position:absolute;left:10px;right:10px;top:54px;bottom:86px;z-index:2;
  display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
  gap:8px;align-items:center;min-height:0;
}
body[data-menu-section=challenge] .duelSide{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:0}
body[data-menu-section=challenge] .duelTopArt{
  width:168px;height:168px;border-radius:0;
  background:transparent;
  box-shadow:none;
  overflow:visible;
  position:relative;
}
body[data-menu-section=challenge] .duelTopArt::after{
  content:"";
  position:absolute;
  left:20%;right:18%;bottom:8%;
  height:16%;
  background:radial-gradient(ellipse, rgba(0,0,0,.48), transparent 70%);
  pointer-events:none;
}
body[data-menu-section=challenge] .duelTopArt img{
  width:100%;height:100%;object-fit:contain;display:block;
  position:relative;z-index:1;
  -webkit-mask-image:radial-gradient(ellipse 82% 72% at 50% 50%, #000 62%, transparent 92%);
  mask-image:radial-gradient(ellipse 82% 72% at 50% 50%, #000 62%, transparent 92%);
}
body[data-menu-section=challenge] .duelTopArt.is-foe{
  background:transparent;
  box-shadow:none;
}
body[data-menu-section=challenge] .duelName{
  font:800 13px/1.2 var(--cs-font,system-ui);color:#e8f6ff;text-align:center;
}
body[data-menu-section=challenge] .duelRole{color:#8defff;font:600 11px/1.2 var(--cs-font,system-ui)}
body[data-menu-section=challenge] .challengeVsMark{
  font:900 22px/1 var(--cs-font,system-ui);font-style:italic;color:#8defff;
  text-shadow:0 0 12px rgba(110,232,255,.55);
}
body[data-menu-section=challenge] .duelStats{
  width:100%;display:flex;flex-direction:column;gap:3px;
  padding:6px 8px;border-radius:8px;background:rgba(6,16,24,.55);
}
body[data-menu-section=challenge] .duelStat{display:grid;grid-template-columns:28px minmax(0,1fr);gap:6px;align-items:center}
body[data-menu-section=challenge] .duelStatLabel{font:700 10px/1 var(--cs-font,system-ui);color:#9eb7c6}
body[data-menu-section=challenge] .duelStatBar{
  height:6px;border-radius:999px;background:#173044;overflow:hidden;
}
body[data-menu-section=challenge] .duelStatFill{
  display:block;height:100%;border-radius:999px;
  background:linear-gradient(90deg,#7fe4ef,#3aa7ff);
}
body[data-menu-section=challenge] .duelStatBar.is-foe .duelStatFill{
  background:linear-gradient(90deg,#ffb070,#d45a32);
}
body[data-menu-section=challenge] #chapterStages.stages{
  position:absolute;left:10px;right:10px;bottom:10px;z-index:2;margin:0;
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;
  padding:6px;border-radius:10px;background:rgba(7,16,24,.55);
}
body[data-menu-section=challenge] #chapterStages .stageCard{
  display:flex;flex-direction:column;align-items:flex-start;gap:2px;
  min-height:var(--cs-touch,48px);padding:8px 10px 8px 36px;
  position:relative;border-radius:10px;
}
body[data-menu-section=challenge] #chapterStages .pathIndex{
  position:absolute;left:8px;top:10px;
  width:20px;height:20px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  background:#102331;border:1px solid #54748b;color:#d6ecf4;font:800 11px/1 var(--cs-font,system-ui);
}
body[data-menu-section=challenge] #chapterStages .stageCard.is-selected .pathIndex{
  background:#ffd16b;color:#1a1400;border-color:#fff3b0;
}
body[data-menu-section=challenge] #stageDetail{
  background:linear-gradient(180deg,#10283ae6,#07131f);
  border:1px solid #2a4a5e;
  border-radius:12px;
}
body[data-menu-section=challenge] .stageDetailEquipped{
  color:#8aa4b6;font:600 12px/1.3 var(--cs-font,system-ui);
}
body[data-menu-section=challenge] #stageDetail [data-stage-reward],
body[data-menu-section=challenge] #stageDetail [data-stage-waves]{
  display:inline-flex;align-self:flex-start;margin:0;
  padding:5px 10px;border-radius:10px;
  font:700 12px/1.3 var(--cs-font,system-ui);
}
body[data-menu-section=challenge] #stageDetail [data-stage-reward]{
  color:#ffd16b;background:rgba(255,209,107,.12);border:1px solid rgba(255,209,107,.35);
}
body[data-menu-section=challenge] #stageDetail [data-stage-waves]{
  color:#8defff;background:#143544;border:1px solid rgba(110,232,255,.28);
}
body[data-menu-section=challenge] .stageDetailUnlock.is-ready,
body[data-menu-section=challenge] .stageDetailUnlock:empty{display:none}
body[data-menu-section=challenge] #stageDetail .stageDetailTitle{
  font:800 20px/1.15 var(--cs-font,system-ui);color:#f4fbff;
}
body[data-menu-section=challenge] #stageDetail .stageDetailDifficulty{
  display:inline-flex;align-self:flex-start;
  margin:0;padding:2px 8px;border-radius:999px;
  background:#143544;color:#8defff;letter-spacing:.12em;font:800 11px/1.4 var(--cs-font,system-ui);
}
body[data-menu-section=challenge] #stageDetail .stageDetailVenue{display:none}
body[data-menu-section=challenge] .battleTips{margin-top:4px}
body[data-menu-section=challenge] .battleTipsTitle{
  margin:0 0 4px;font:800 12px/1.2 var(--cs-font,system-ui);color:#ffd16b;letter-spacing:.08em;
}
body[data-menu-section=challenge] .battleTips ul{margin:0;padding:0 0 0 16px;color:#d6ecf4}
body[data-menu-section=challenge] .battleTips li{margin:0 0 4px;font:600 12px/1.3 var(--cs-font,system-ui)}
@media (orientation:landscape) and (max-height:430px){
  body[data-menu-section=challenge] .chapterRailKind,
  body[data-menu-section=challenge] .venuePips{display:none}
  body[data-menu-section=challenge] .chapterRailBtn{padding:4px 6px;min-height:44px}
  body[data-menu-section=challenge] .chapterRailBtn .chapterThumb{width:52px;height:32px}
  body[data-menu-section=challenge] .chapterRailLabel{font-size:11px}
  body[data-menu-section=challenge] .challengeVenueTitle{font-size:15px}
  body[data-menu-section=challenge] .duelRole{display:none}
  body[data-menu-section=challenge] .duelTopArt{width:80px;height:72px}
  body[data-menu-section=challenge] .duelSide{flex-direction:column-reverse}
  body[data-menu-section=challenge] .duelStats{display:none}
  body[data-menu-section=challenge] #chapterStages .stageCardStatus{display:none}
  body[data-menu-section=challenge] #chapterStages .stageCard{min-height:var(--cs-touch,48px);padding:6px 8px 6px 32px}
  body[data-menu-section=challenge] .challengeDuel{top:32px;bottom:58px}
  body[data-menu-section=challenge] #chapterStages.stages{bottom:6px}
  body[data-menu-section=challenge] #chapterStages .stageCard{padding:4px 6px 4px 30px}
  body[data-menu-section=challenge] #stageDetail{padding:6px 8px;gap:3px}
  body[data-menu-section=challenge] #stageDetail .stageDetailTitle{font-size:16px}
  body[data-menu-section=challenge] .battleTips li{font-size:11px;margin:0 0 2px}
  body[data-menu-section=challenge] #campaignMode [data-campaign-mode="extra"]{max-width:5.6rem}
}
body[data-menu-section=challenge] #menuNavigation [data-action="shop-challenges"][aria-pressed="true"]{
  background:linear-gradient(180deg,#7af3ff,#1aa8d4);
  color:#042028;
  border-color:#b7f7ff;
}
body[data-menu-section=challenge] #shopOverlay #shopScroll,
body[data-menu-section=challenge] #mainCampaignBoard{
  max-width:100%;
  overflow-x:hidden;
}

body[data-menu-section=challenge] .chapterRailBtn:hover,
body[data-menu-section=challenge] .chapterRailBtn:focus,
body[data-menu-section=challenge] .chapterRailBtn:focus-visible{
  border-color:#ffe27a;
  box-shadow:0 0 0 1px rgba(255,209,107,.42),0 8px 16px rgba(255,209,107,.18);
  outline:2px solid #ffe27a;
  outline-offset:2px;
}
body[data-menu-section=challenge] .chapterRailBtn[aria-pressed="true"]:hover,
body[data-menu-section=challenge] .chapterRailBtn[aria-pressed="true"]:focus{
  border:2px solid #ffd16b;
}
body[data-menu-section=challenge] .chapterRailBtn.is-locked{
  opacity:.58;
}
body[data-menu-section=challenge] .chapterRailBtn.is-locked::before{
  content:"";
  position:absolute;
  inset:0;
  background:rgba(5,12,20,.38);
  pointer-events:none;
}
body[data-menu-section=challenge] .chapterRailBtn.is-locked .chapterThumb{
  filter:grayscale(.45) brightness(.72);
}
body[data-menu-section=challenge] .chapterRailBtn.is-locked,
body[data-menu-section=challenge] #chapterStages .stageCard.is-locked{
  pointer-events:auto;
  cursor:pointer;
}
body[data-menu-section=challenge] #chapterStages .stageCard:hover,
body[data-menu-section=challenge] #chapterStages .stageCard:focus,
body[data-menu-section=challenge] #chapterStages .stageCard:focus-visible{
  border-color:#ffe27a;
  box-shadow:0 0 0 1px rgba(255,209,107,.3);
  outline:2px solid #ffe27a;
  outline-offset:2px;
}
body[data-menu-section=challenge] #chapterStages .stageCard.is-locked .stageLock{
  position:absolute;
  right:8px;
  top:8px;
  width:14px;
  height:14px;
  pointer-events:none;
  background:center / 14px 14px no-repeat;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%239eb7c6' d='M17 8h-1V6a4 4 0 0 0-8 0v2H7a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V10a2 2 0 0 0-2-2zm-7-2a2 2 0 1 1 4 0v2h-4V6zm3 10a2 2 0 1 1 0-4 2 2 0 0 1 0 4z'/%3E%3C/svg%3E");
}
#shopOverlay #fightBtn:hover,
#shopOverlay #fightBtn:focus,
#shopOverlay #fightBtn:focus-visible{
  filter:brightness(1.06);
  box-shadow:0 10px 24px rgba(201,162,39,.5);
  outline:2px solid #fff3b0;
  outline-offset:2px;
}
#shopOverlay #fightBtn:disabled,
#shopOverlay #fightBtn[aria-disabled="true"]{
  opacity:.4;
  filter:saturate(.35) brightness(.85);
  cursor:not-allowed;
  box-shadow:none;
}

@media (orientation:portrait){
  body[data-menu-section=challenge] #shopOverlay #shopPanel{
    overflow:hidden;
    display:flex;
    flex-direction:column;
  }
  body[data-menu-section=challenge] #shopOverlay #shopScroll{
    flex:1 1 auto;
    min-height:0;
    overflow:auto;
  }
  body[data-menu-section=challenge] #shopOverlay #fightBtn{
    position:relative;
    bottom:auto;
    z-index:1;
    flex:0 0 auto;
    width:100%;
    margin:4px 0 0;
  }
  body[data-menu-section=challenge] #mainCampaignBoard{
    flex:0 0 auto;
    min-height:0;
    height:auto;
    grid-template-columns:minmax(0,1fr);
    grid-template-rows:auto auto auto auto auto;
    grid-template-areas:
      "arena"
      "vs"
      "briefing"
      "cta"
      "hint";
    gap:8px;
  }
  body[data-menu-section=challenge] #chapterRail{
    grid-area:arena;
    display:flex;
    flex-direction:row;
    flex-wrap:wrap;
    overflow-x:auto;
    overflow-y:hidden;
    gap:6px;
  }
  body[data-menu-section=challenge] .chapterRailBtn{
    flex:1 1 calc(20% - 5px);
    width:auto;
    min-width:0;
    max-width:calc(20% - 4px);
    flex-direction:column;
    align-items:stretch;
    padding:4px;
  }
  body[data-menu-section=challenge] .chapterRailBtn .chapterThumb{
    width:100%;
    height:28px;
    margin:0;
  }
  body[data-menu-section=challenge] .chapterRailKind,
  body[data-menu-section=challenge] .venuePips{display:none}
  body[data-menu-section=challenge] .chapterRailMetaRow{gap:4px}
  body[data-menu-section=challenge] #chapterRail .chapterRailLabel{
    font:700 11px/1.15 var(--cs-font,system-ui);
    white-space:normal;
    overflow-wrap:break-word;
  }
  body[data-menu-section=challenge] #chapterDetail{
    grid-area:vs;
    position:relative;
    display:flex;
    flex-direction:column;
    gap:6px;
    min-height:0;
    overflow:hidden;
    padding:6px;
  }
  body[data-menu-section=challenge] .challengeHero{
    position:relative;
    inset:auto;
    flex:0 0 auto;
    min-height:40px;
    height:auto;
  }
  body[data-menu-section=challenge] .challengeHeroCopy{
    position:relative;
    left:auto;
    right:auto;
    top:auto;
    padding:6px 8px 2px;
  }
  body[data-menu-section=challenge] .challengeVenueTitle{font-size:16px}
  body[data-menu-section=challenge] .challengeVenueTag,
  body[data-menu-section=challenge] .duelRole{display:none}
  body[data-menu-section=challenge] .challengeDuel{
    position:relative;
    left:auto;
    right:auto;
    top:auto;
    bottom:auto;
    min-height:0;
    align-items:center;
  }
  body[data-menu-section=challenge] .duelTopArt{width:48px;height:48px}
  body[data-menu-section=challenge] .duelStats{display:none}
  body[data-menu-section=challenge] #chapterStages.stages{
    position:relative;
    left:auto;
    right:auto;
    bottom:auto;
    z-index:1;
    margin:0;
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:6px;
    padding:0;
    background:none;
  }
  body[data-menu-section=challenge] #chapterStages .stageCard{
    min-height:var(--cs-touch,48px);
    padding:6px 6px 6px 30px;
  }
  body[data-menu-section=challenge] #chapterStages .stageCardStatus{display:none}
  body[data-menu-section=challenge] #stageDetail{
    grid-area:briefing;
    overflow:hidden;
    flex:0 0 auto;
    padding:6px 10px;
    gap:3px;
  }
  body[data-menu-section=challenge] #stageDetail .stageDetailTitle{font-size:16px}
  body[data-menu-section=challenge] .stageDetailUnlock{display:none}
  body[data-menu-section=challenge] .battleTips{margin-top:2px}
  body[data-menu-section=challenge] .battleTips ul{padding-left:14px}
  body[data-menu-section=challenge] .battleTips li{margin:0;font-size:12px}
  body[data-menu-section=challenge] #mainCampaignBoard > .startHint{display:none}
}

@media (orientation:portrait) and (max-height:700px){
  body[data-menu-section=challenge] #shopOverlay #shopHead,
  body[data-menu-section=challenge] #shopOverlay #shopHead [data-action="shop-home"],
  body[data-menu-section=challenge] #shopOverlay .moneyChip,
  body[data-menu-section=challenge] #shopSettingsBtn{
    min-height:36px;
  }
  body[data-menu-section=challenge] #shopOverlay #shopHead [data-action="shop-home"]{
    width:36px;max-width:36px;flex-basis:36px;
  }
  body[data-menu-section=challenge] #shopOverlay #shopHead{min-height:36px;margin:0}
  body[data-menu-section=challenge] #menuNavigation{padding:0 0 2px}
  body[data-menu-section=challenge] #menuNavigation nav .cs-btn{
    min-height:36px;padding:4px 8px;font-size:12px
  }
  body[data-menu-section=challenge] #campaignMode{margin:0}
  body[data-menu-section=challenge] #campaignMode [data-campaign-mode="main"]{min-height:32px;padding:3px 8px}
  body[data-menu-section=challenge] #mainCampaignBoard{gap:4px}
  body[data-menu-section=challenge] #shopOverlay #fightBtn{margin:2px 0 0}
  body[data-menu-section=challenge] #chapterRail{gap:4px}
  body[data-menu-section=challenge] .chapterRailBtn{
    flex:1 1 calc(20% - 4px);
    max-width:calc(20% - 3px);
    padding:3px 4px;
    overflow:visible;
  }
  body[data-menu-section=challenge] .chapterRailBtn .chapterThumb{display:none}
  body[data-menu-section=challenge] .chapterRailKind,
  body[data-menu-section=challenge] .venuePips{display:none}
  body[data-menu-section=challenge] #chapterRail .chapterRailLabel{
    font:700 11px/1.15 var(--cs-font,system-ui);
    overflow-wrap:break-word;
  }
  body[data-menu-section=challenge] .challengeHero{
    display:block;position:relative;inset:auto;min-height:0;height:auto;background:none;
  }
  body[data-menu-section=challenge] .challengeHero::after{display:none}
  body[data-menu-section=challenge] .challengeHeroCopy{padding:2px 4px 0}
  body[data-menu-section=challenge] .challengeVenueTitle{font-size:11px;letter-spacing:.06em}
  body[data-menu-section=challenge] .challengeVenueTag{display:none}
  body[data-menu-section=challenge] .duelTopArt{width:32px;height:32px}
  body[data-menu-section=challenge] .duelRole{display:none}
  body[data-menu-section=challenge] .duelName{font-size:11px}
  body[data-menu-section=challenge] .challengeVsMark{font-size:14px}
  body[data-menu-section=challenge] #chapterDetail{padding:2px 4px;gap:2px;min-height:0;height:auto}
  body[data-menu-section=challenge] #chapterStages .stageCard{
    min-height:36px;
    padding:4px 6px 4px 24px;
  }
  body[data-menu-section=challenge] #chapterStages .pathIndex{top:6px;width:16px;height:16px;font-size:10px}
  body[data-menu-section=challenge] #stageDetail{padding:4px 8px;gap:1px}
  body[data-menu-section=challenge] #stageDetail .stageDetailTitle{font-size:13px}
  body[data-menu-section=challenge] .stageDetailLesson{
    display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden;
  }
  body[data-menu-section=challenge] .battleTipsTitle{margin:0;font-size:11px}
  body[data-menu-section=challenge] .battleTips li{font-size:10px;line-height:1.2;margin:0}
}


/* Flow UX 2026-09-14: corresponding chrome and complete inspect content. */
body[data-menu-section=workshop] #portraitDetails .portraitDetailHead h2,
body[data-menu-section=workshop] #portraitDetails .portraitDetailType{
  position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%);margin:0!important;
}
body[data-menu-section=workshop] #shopOverlay #portraitDetails .portraitDetailHead{
  display:block;position:relative;order:4;
}
body[data-menu-section=workshop] #shopOverlay #portraitDetails .cardbtn{
  width:100%;min-height:32px;white-space:normal;line-height:1.2;padding:6px;font-size:11px;letter-spacing:0;
}
body[data-menu-section=workshop] #shopOverlay #portraitDetails{
  overflow-y:auto;overflow-x:hidden;
}
body[data-menu-section=workshop] #shopOverlay #portraitDetails .beyAbilityCard{
  flex:0 0 auto;overflow:visible;min-height:auto;grid-template-columns:minmax(0,1fr);padding:4px 0;
}
body[data-menu-section=workshop] #portraitDetails .abilitySkillIcon{display:none}
body[data-menu-section=workshop] #shopOverlay #portraitDetails .abilityBlock strong{
  display:block;white-space:normal;overflow-wrap:normal;overflow:visible;color:#f1f9ff;line-height:1.2;
}
body[data-menu-section=workshop] #shopOverlay #portraitDetails .abilityBlock p{
  display:block;-webkit-line-clamp:none;overflow:visible;line-height:1.3;margin:3px 0 6px;font-weight:400;
}
body[data-menu-section=workshop] #portraitDetails .abilityKind{color:#72e5fa}
body[data-menu-section=workshop] .workshopStat > span{color:#b9deeb}
body[data-menu-section=workshop] .workshopHeroQuote,
body[data-menu-section=workshop] .workshopFlavor{color:#bbd5e2;font:italic 12px/1.35 var(--cs-font,system-ui);margin:5px 0}
body[data-menu-section=workshop] .workshopFlavor{order:3;text-align:center}
body[data-menu-section=workshop] #workshopPedestal{
  position:absolute;pointer-events:none;z-index:1;left:8%;right:8%;bottom:13%;height:12%;border:2px solid var(--pedestal-edge,#4ad6ff);border-radius:50%;
  background:radial-gradient(ellipse,var(--pedestal-aura,#0da7e740) 0%,var(--pedestal-lo,#163b57b0) 30%,#05111ce8 34%,var(--pedestal-edge2,#206082) 39%,#061726e8 44%,var(--pedestal-lo,#0e3c60c0) 68%,#092234 72%);
  box-shadow:0 7px 0 var(--pedestal-edge3,#112c45),0 10px 0 var(--pedestal-lo,#235d7a),0 12px 20px var(--pedestal-aura,#00adff40),inset 0 0 15px var(--pedestal-glow,#08bfff55);
}
body[data-menu-section=workshop] #portraitHeroLabel{z-index:2}
body[data-menu-section=workshop] #workshopCompare:not([hidden]){
  display:grid!important;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);grid-area:compare;position:relative;pointer-events:auto;
  padding:6px 8px;gap:4px 8px;max-height:none;margin:0;
}
body[data-menu-section=workshop] #workshopCompare .workshopCompareHead{grid-column:1/-1}
body[data-menu-section=workshop] #workshopCompare .workshopCompareSide{display:flex;min-width:0}
body[data-menu-section=workshop] #workshopCompare .workshopCompareCopy{flex:1;min-width:0}
body[data-menu-section=workshop] #workshopCompare .workshopCompareName{font-size:11px;white-space:nowrap;overflow-wrap:normal}
body[data-menu-section=workshop] #workshopCompare .workshopCompareSide dl{grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}
body[data-menu-section=workshop] #workshopCompare .workshopCompareSide dl > div{display:block}
body[data-menu-section=workshop] #workshopCompare dd{margin:0;color:#fff}
body[data-menu-section=workshop] #shopOverlay .beycard{box-shadow:none}
body[data-menu-section=workshop] #beyCards .beyimg{object-fit:contain;transform:scale(1.25)}
body[data-menu-section=workshop] #menuNavigation [aria-pressed=true]{background:linear-gradient(#1aa0c0,#124258);border-color:#82eaff;box-shadow:inset 0 0 12px #25c6ff40}
#shopOverlay #fightBtn .ctaSub,#shopOverlay #fightMeta{letter-spacing:.015em;font:500 11px/1.3 var(--cs-font,system-ui);white-space:normal}
@media (orientation:landscape){
  body[data-menu-section=workshop] #shopOverlay #shopScroll{
    grid-template-rows:minmax(0,1fr) auto;grid-template-areas:"hangar inspect roster" "compare compare compare";
  }
  body[data-menu-section=workshop] #workshopCompare{width:62%}
  body[data-menu-section=workshop] #shopOverlay #portraitHero{border:1px solid #183c52;border-radius:14px}
  body[data-menu-section=workshop] #portraitDetails .abilityBlock strong{font-size:15px}
  body[data-menu-section=workshop] #portraitDetails .abilityBlock p{font-size:13px}
}
@media (orientation:landscape) and (max-height:480px){
  body[data-menu-section=workshop] #shopOverlay #shopScroll{grid-template-columns:minmax(0,1fr) minmax(240px,1fr) minmax(250px,1fr)}
  body[data-menu-section=workshop] #portraitDetails .portraitStats{gap:0}
  body[data-menu-section=workshop] #portraitDetails .workshopStat{font-size:10px;line-height:1.2}
  body[data-menu-section=workshop] #portraitDetails .abilityBlock strong{font-size:12px}
  body[data-menu-section=workshop] #portraitDetails .abilityBlock p{font-size:11px}
  body[data-menu-section=workshop] #shopOverlay #portraitDetails{padding:6px}
  body[data-menu-section=workshop] #workshopCompare{width:100%}
  body[data-menu-section=workshop] #portraitHeroLabel strong{font-size:23px}
  body[data-menu-section=workshop] #portraitHeroLabel span{font-size:10px}
}
@media (orientation:landscape) and (max-width:800px) and (max-height:480px){
  body[data-menu-section=challenge] #shopOverlay #shopPanel{
    grid-template-columns:42px minmax(0,1fr) 44px;grid-template-rows:42px minmax(0,1fr) auto;
    gap:4px;padding:4px;overflow:hidden
  }
  body[data-menu-section=challenge] #shopOverlay #shopHead [data-action="shop-home"]{width:40px;min-width:40px;min-height:40px;height:40px}
  body[data-menu-section=challenge] #menuNavigation{padding:0 4px;min-width:0}
  body[data-menu-section=challenge] #menuNavigation nav{display:flex;gap:4px;min-width:0}
  body[data-menu-section=challenge] #menuNavigation nav .cs-btn{flex:1;min-width:0;min-height:40px;padding:4px 2px;font-size:11px;letter-spacing:0}
  body[data-menu-section=challenge] #shopOverlay .shopHeadMeta,
  body[data-menu-section=challenge] #shopOverlay .moneyChip{grid-column:3;grid-row:1;width:40px;min-width:40px;min-height:40px;padding:0}
  body[data-menu-section=challenge] #shopOverlay #shopScroll{grid-column:1/-1;grid-row:2;min-height:0;overflow:auto}
  body[data-menu-section=challenge] #mainCampaignBoard{
    display:grid!important;grid-template-columns:minmax(105px,26%) minmax(0,1fr);grid-template-rows:minmax(0,1fr);
    height:100%;min-height:0;overflow:hidden;gap:6px
  }
  body[data-menu-section=challenge] #chapterRail{min-width:0;min-height:0;max-height:none;overflow-y:auto;overscroll-behavior:contain}
  body[data-menu-section=challenge] #chapterDetail{height:auto;min-height:0;max-height:none;overflow:auto;overscroll-behavior:contain}
  body[data-menu-section=challenge] #chapterDetail .challengeHero{position:relative;inset:auto;min-height:30px;flex:0 0 auto}
  body[data-menu-section=challenge] #chapterDetail .challengeHeroCopy{position:relative;inset:auto;padding:2px 4px 0}
  body[data-menu-section=challenge] #chapterDetail .challengeDuel{position:relative;inset:auto;min-height:140px;height:auto}
  body[data-menu-section=challenge] #chapterDetail .duelStats svg{display:none!important}
  body[data-menu-section=challenge] #stageDetail{display:none!important}
  body[data-menu-section=challenge] .startHint{display:none}
  body[data-menu-section=challenge] #shopOverlay #fightBtn{grid-column:1/-1;grid-row:3;width:100%;min-height:48px;margin:0;padding:4px 8px}
  body[data-menu-section=challenge] #shopOverlay #fightBtn{height:52px;max-height:52px;min-height:52px;align-self:end}
  body[data-menu-section=challenge] #shopOverlay #fightBtn .ctaMain{font-size:17px}
  body[data-menu-section=challenge] #chapterStages.stages{
    position:static;display:grid;grid-template-columns:minmax(0,1fr);grid-auto-rows:minmax(36px,auto);
    gap:4px;max-height:none;overflow:visible;margin-top:8px
  }
  body[data-menu-section=challenge] #chapterStages .stageCard{
    width:100%;min-width:0;min-height:36px;padding:4px 6px 4px 30px;
    white-space:normal;overflow-wrap:anywhere
  }
  body[data-menu-section=challenge] #chapterStages .stageCard .stageCardStatus{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  body[data-menu-section=workshop] #shopOverlay #shopScroll{
    grid-template-columns:minmax(180px,1.15fr) minmax(170px,.82fr) minmax(180px,1fr)
  }
}
@media (orientation:portrait){
  body[data-menu-section=challenge] #shopOverlay #shopPanel,
  body[data-menu-section=workshop] #shopOverlay #shopPanel{
    display:grid;grid-template-columns:44px minmax(0,1fr) 88px;grid-template-rows:auto minmax(0,1fr) auto;
    gap:5px 0;padding:8px;overflow:hidden;
  }
  body[data-menu-section=challenge] #shopOverlay #shopHead,
  body[data-menu-section=workshop] #shopOverlay #shopHead{display:contents}
  body[data-menu-section=challenge] #shopHead .jpban{display:none}
  body[data-menu-section=challenge] #shopOverlay #shopHead [data-action="shop-home"],
  body[data-menu-section=workshop] #shopOverlay #shopHead [data-action="shop-home"]{
    grid-column:1;grid-row:1;width:44px;min-width:44px;min-height:44px;height:44px;margin:0;align-self:start;
  }
  body[data-menu-section=challenge] #shopOverlay #shopHead .shopHeadMeta,
  body[data-menu-section=workshop] #shopOverlay #shopHead .shopHeadMeta{grid-column:3;grid-row:1;align-self:start;gap:4px}
  body[data-menu-section=challenge] #shopSettingsBtn,
  body[data-menu-section=workshop] #shopSettingsBtn{width:40px;min-width:40px;min-height:44px;height:44px;padding:0}
  body[data-menu-section=challenge] #shopOverlay .moneyChip,
  body[data-menu-section=workshop] #shopOverlay .moneyChip{width:44px;min-width:44px;min-height:44px;padding:0 3px;font-size:11px}
  body[data-menu-section=challenge] #menuNavigation,
  body[data-menu-section=workshop] #menuNavigation{grid-column:2;grid-row:1;padding:0 4px;min-width:0;gap:0}
  body[data-menu-section=challenge] #menuNavigation nav,
  body[data-menu-section=workshop] #menuNavigation nav{display:flex;gap:4px;min-width:0}
  body[data-menu-section=challenge] #menuNavigation nav .cs-btn,
  body[data-menu-section=workshop] #menuNavigation nav .cs-btn{
    flex:1;min-width:0;min-height:44px;padding:4px 2px;font-size:10px;letter-spacing:0;white-space:nowrap;
  }
  body[data-menu-section=challenge] #shopOverlay #shopScroll,
  body[data-menu-section=workshop] #shopOverlay #shopScroll{grid-column:1/-1;grid-row:2;min-height:0}
  body[data-menu-section=challenge] #shopOverlay #fightBtn,
  body[data-menu-section=workshop] #shopOverlay #fightBtn{grid-column:1/-1;grid-row:3;width:100%;margin:0;min-height:56px;padding:6px}
  body[data-menu-section=workshop] #shopOverlay #shopScroll{
    grid-template-columns:minmax(0,1fr) minmax(160px,1fr);grid-template-rows:minmax(300px,37vh) minmax(150px,1fr) auto;gap:6px;overflow-y:auto;
  }
  body[data-menu-section=workshop] #shopOverlay #portraitHero{min-height:0;max-height:none}
  body[data-menu-section=workshop] #shopOverlay #portraitHeroLabel{padding:4px;max-width:100%}
  body[data-menu-section=workshop] #shopOverlay #portraitHeroLabel strong{font-size:24px}
  body[data-menu-section=workshop] #shopOverlay #portraitHeroLabel span{font-size:10px;letter-spacing:.04em}
  body[data-menu-section=workshop] #shopOverlay #portraitDetails{padding:6px;gap:3px}
  body[data-menu-section=workshop] #portraitDetails .abilityBlock strong{font-size:12px}
  body[data-menu-section=workshop] #portraitDetails .abilityBlock p{font-size:11px}
  body[data-menu-section=workshop] #shopOverlay #portraitDetails .workshopStat{padding:0;font-size:10px}
  body[data-menu-section=workshop] #beyCarousel{padding:6px}
  body[data-menu-section=workshop] #workshopCompare .workshopCompareSide img{display:none}
  body[data-menu-section=workshop] #workshopCompare .workshopCompareName{font-size:11px}
  body[data-menu-section=workshop] #workshopRosterHead{gap:4px;margin-bottom:4px}
  body[data-menu-section=workshop] #beyCards{grid-auto-rows:68px;gap:4px}
}
body[data-menu-section=workshop] #shopOverlay #portraitDetails{
  display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto minmax(0,1fr) auto;overflow:hidden;
}
body[data-menu-section=workshop] #portraitDetails .workshopInspectTabs{grid-row:1}
body[data-menu-section=workshop] #portraitDetails .portraitStats{grid-row:2}
body[data-menu-section=workshop] #portraitDetails .workshopAbilityScroll{grid-row:3;min-height:0;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin}
body[data-menu-section=workshop] #shopOverlay #portraitDetails .portraitDetailHead{grid-row:4;order:0}
body[data-menu-section=workshop] #workshopCompare .workshopCompareTag{font:700 9px/1.3 var(--cs-font,system-ui);color:#83ddef;letter-spacing:.03em}
body[data-menu-section=challenge][data-campaign-mode=main] #fightBtn .ctaMeta{display:block}
body[data-menu-section=workshop] #shopOverlay .beycard{box-shadow:none!important}
@media (orientation:landscape) and (max-height:480px){
  body[data-menu-section=workshop] #portraitDetails .abilityCopy{display:grid;grid-template-columns:1fr 1fr;gap:8px}
  body[data-menu-section=workshop] #portraitDetails .workshopInspectTabs button{min-height:24px}
  body[data-menu-section=workshop] #shopOverlay #portraitDetails .cardbtn{min-height:26px;padding:4px}
}
@media (orientation:portrait){
  body[data-menu-section=challenge] #menuNavigation{display:contents}
  body[data-menu-section=challenge] #menuNavigation nav{grid-column:2;grid-row:1;padding:0 4px}
  body[data-menu-section=challenge] #menuNavigation #campaignMode{grid-column:1/-1;grid-row:2;display:flex;justify-content:flex-end;margin:0;gap:6px}
  body[data-menu-section=challenge] #shopOverlay #shopPanel{grid-template-rows:44px 30px minmax(0,1fr) auto}
  body[data-menu-section=challenge] #shopOverlay #shopScroll{grid-row:3}
  body[data-menu-section=challenge] #shopOverlay #fightBtn{grid-row:4}
  body[data-menu-section=challenge] #campaignMode button{flex:0 1 auto;min-height:28px;padding:4px 8px;font-size:10px;max-width:none;white-space:nowrap}
}
@media (orientation:landscape){
  body[data-menu-section=workshop] #shopOverlay #shopScroll{grid-template-rows:minmax(0,1fr);grid-template-areas:"hangar inspect roster"}
  body[data-menu-section=workshop] #shopPanel > #workshopCompare:not([hidden]){grid-column:1/-1;grid-row:3;width:62%;justify-self:start;align-self:center}
  body[data-menu-section=workshop] #shopOverlay #fightBtn{align-self:center}
  body[data-menu-section=workshop] #portraitHero::before{content:"";position:absolute;inset:0;pointer-events:none;border-radius:14px;background:linear-gradient(105deg,#167cab18,transparent 25%,transparent 75%,#167cab18);box-shadow:inset 2px 0 0 #0a374d,inset -2px 0 0 #0a374d}
}
@media (orientation:landscape) and (max-height:480px){
  body[data-menu-section=workshop] #shopPanel > #workshopCompare:not([hidden]){padding:4px 6px;gap:2px 6px}
  body[data-menu-section=workshop] #workshopCompare .workshopCompareHead{height:20px}
  body[data-menu-section=workshop] #workshopCompare .workshopCompareSide img{width:30px;height:30px}
}
@media (orientation:portrait){
  body[data-menu-section=workshop] #workshopCompare .workshopCompareKicker{font:700 10px/1.1 var(--cs-font,system-ui);color:#8edcf0;margin:0}
  body[data-menu-section=workshop] #workshopCompare .workshopCompareHead{min-height:20px;height:20px}
  body[data-menu-section=workshop] #workshopCompare .workshopCompareCopy{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px}
  body[data-menu-section=workshop] #workshopCompare .workshopCompareName{font-size:10px}
  body[data-menu-section=workshop] #workshopCompare .workshopCompareTag{font-size:8px;align-self:center}
  body[data-menu-section=workshop] #workshopCompare .workshopCompareSide dl{grid-column:1/-1;margin-top:0}
}
@media (orientation:portrait) and (max-height:700px){
  body[data-menu-section=workshop] #shopOverlay #shopScroll:has(#workshopCompare:not([hidden])){grid-template-rows:minmax(230px,1fr) 160px 80px}
  body[data-menu-section=workshop] #shopScroll > #workshopCompare:not([hidden]){min-height:80px}
  body[data-menu-section=workshop] #workshopRosterHead{gap:2px;margin-bottom:2px}
  body[data-menu-section=workshop] .workshopFilterChip{min-height:22px}
  body[data-menu-section=workshop] #shopOverlay #portraitDetails .abilityBlock p{font-size:10.5px;line-height:1.2;margin:2px 0 4px}
  body[data-menu-section=workshop] #shopOverlay #portraitDetails .workshopStat{line-height:1.15}
  body[data-menu-section=workshop] #shopOverlay #portraitDetails .workshopInspectTabs button{min-height:22px}
}
@media (orientation:portrait) and (max-height:700px){
  body[data-menu-section=workshop] #shopOverlay #shopScroll:has(#workshopCompare:not([hidden])){grid-template-rows:minmax(246px,1fr) 154px 70px}
  body[data-menu-section=workshop] #shopScroll > #workshopCompare:not([hidden]){min-height:70px;padding:4px 6px;gap:2px 6px}
}
/* Parts borrows the inspect body; its navigation stays above the tools. */
body[data-menu-section=workshop][data-workshop-inspect=parts] #workshopTools{
  margin-top:44px;min-height:0;max-height:calc(100% - 44px);overflow:auto;align-self:stretch;
  background:#102534;pointer-events:auto;
}
body[data-menu-section=workshop][data-workshop-inspect=parts] #portraitDetails .portraitStats,
body[data-menu-section=workshop][data-workshop-inspect=parts] #portraitDetails .workshopAbilityScroll,
body[data-menu-section=workshop][data-workshop-inspect=parts] #portraitDetails .portraitDetailHead{visibility:hidden}
@media (orientation:portrait){
  body[data-menu-section=challenge] #chapterStages .stageCard strong{display:block;min-width:0;white-space:normal;overflow-wrap:normal;font:700 12px/1.2 system-ui}
  body[data-menu-section=challenge] #stageDetail .stageDetailLesson{display:block;-webkit-line-clamp:none;overflow:visible;white-space:normal;max-height:none}
}
@media (orientation:portrait) and (max-height:700px){
  body[data-menu-section=challenge] #chapterRail .chapterRailLabel{font:700 10px/1.15 system-ui;overflow-wrap:normal}
  body[data-menu-section=challenge] #chapterStages .stageCard strong{font-size:11.5px}
  body[data-menu-section=challenge] #stageDetail .stageDetailLesson{font-size:12px;line-height:1.3}
}
/* Skins preview: one complete finish at a time, with a compact position bar. */
.workshopSkinsSoon{display:none}
body[data-menu-section=workshop][data-workshop-inspect=skins] #portraitDetails .workshopSkinsSoon{
  display:flex;flex-direction:column;grid-row:2 / 5;flex:1 1 auto;min-width:0;min-height:0;align-items:stretch;justify-content:stretch;
  gap:8px;padding:5px 2px;overflow:hidden;text-align:center;color:#f0d56a
}
body[data-menu-section=workshop][data-workshop-inspect=skins] #portraitDetails .workshopSkinCarousel{
  display:flex;flex:1 1 auto;flex-direction:column;min-width:0;min-height:0;width:100%;gap:6px
}
body[data-menu-section=workshop][data-workshop-inspect=skins] #portraitDetails .workshopSkinViewport{
  position:relative;flex:1 1 auto;min-width:0;min-height:72px;width:100%;overflow:hidden;border:1px solid #286178;border-radius:12px;
  background:transparent;touch-action:pan-y
}
body[data-menu-section=workshop][data-workshop-inspect=skins] #portraitDetails .workshopSkinTrack{
  display:flex;width:300%;height:100%;transition:transform .32s cubic-bezier(.2,.75,.25,1);will-change:transform
}
body[data-menu-section=workshop][data-workshop-inspect=skins] #portraitDetails .workshopSkinSlide{
  box-sizing:border-box;display:flex;flex:0 0 33.333333%;flex-direction:column;align-items:center;justify-content:space-between;gap:2px;
  min-width:0;min-height:0;height:100%;margin:0;padding:5px 8px 4px;overflow:hidden
}
body[data-menu-section=workshop][data-workshop-inspect=skins] #portraitDetails .workshopSkinCover{
  display:block;flex:1 1 auto;min-width:0;min-height:0;width:100%;height:calc(100% - 18px);max-width:384px;max-height:100%;
  object-fit:contain;object-position:center;background:transparent;opacity:0.5
}
body[data-menu-section=workshop][data-workshop-inspect=skins] #portraitDetails .workshopSkinSlide figcaption{
  flex:0 0 auto;max-width:100%;min-height:15px;color:#e1edf4;font:700 12px/1.2 system-ui;white-space:nowrap;overflow:hidden;text-overflow:ellipsis
}
body[data-menu-section=workshop][data-workshop-inspect=skins] #portraitDetails .workshopSkinControls{
  display:flex;flex:0 0 auto;align-items:center;justify-content:center;gap:6px;min-width:0;max-width:100%;min-height:26px;
  position:relative;z-index:4;pointer-events:auto;box-sizing:border-box
}
body[data-menu-section=workshop][data-workshop-inspect=skins] #portraitDetails .workshopSkinStep{
  display:grid;place-items:center;flex:0 0 25px;width:25px;height:25px;padding:0;border:1px solid #286178;border-radius:50%;
  background:#10283c;color:#b9f6ff;font:700 19px/1 system-ui;cursor:pointer
}
body[data-menu-section=workshop][data-workshop-inspect=skins] #portraitDetails .workshopSkinIndicatorBar{
  display:flex;flex:1 1 72px;align-items:center;gap:5px;min-width:36px;max-width:150px
}
body[data-menu-section=workshop][data-workshop-inspect=skins] #portraitDetails .workshopSkinIndicator{
  display:block;flex:1 1 0;min-width:10px;height:16px;padding:6px 0;border:0;background:transparent;cursor:pointer
}
body[data-menu-section=workshop][data-workshop-inspect=skins] #portraitDetails .workshopSkinIndicator span{
  display:block;width:100%;height:4px;border-radius:99px;background:#285064;transition:background-color .2s,box-shadow .2s
}
body[data-menu-section=workshop][data-workshop-inspect=skins] #portraitDetails .workshopSkinIndicator[aria-pressed=true] span{
  background:#285064 linear-gradient(#65ecf7,#65ecf7) left center / 0% 100% no-repeat;box-shadow:0 0 8px #28d8e8a6
}
body[data-menu-section=workshop][data-workshop-inspect=skins] #portraitDetails .workshopSkinPosition{
  flex:0 0 auto;min-width:0;color:#a9c7d3;font:700 10px/1 system-ui;white-space:nowrap
}
body[data-menu-section=workshop][data-workshop-inspect=skins] #portraitDetails .workshopSkinsCopy{
  flex:0 0 auto;width:100%;min-width:0
}
body[data-menu-section=workshop][data-workshop-inspect=skins] #portraitDetails .workshopSkinsKicker{
  margin:0;color:#9ec9d8;font:700 10px/1.2 system-ui;letter-spacing:.08em;text-transform:uppercase
}
body[data-menu-section=workshop][data-workshop-inspect=skins] #portraitDetails .workshopSkinsSoonLabel{
  display:block;color:#f0d56a;font:800 18px/1.15 system-ui
}
@media (orientation:landscape) and (max-height:480px){
  body[data-menu-section=workshop][data-workshop-inspect=skins] #portraitDetails .workshopSkinsSoon{gap:4px}
  body[data-menu-section=workshop][data-workshop-inspect=skins] #portraitDetails .workshopSkinViewport{min-height:54px}
  body[data-menu-section=workshop][data-workshop-inspect=skins] #portraitDetails .workshopSkinSlide figcaption{font-size:10px;min-height:12px}
  body[data-menu-section=workshop][data-workshop-inspect=skins] #portraitDetails .workshopSkinsSoonLabel{font-size:15px}
}
@media (orientation:portrait) and (max-width:400px){
  body[data-menu-section=workshop][data-workshop-inspect=skins] #portraitDetails .workshopSkinsSoonLabel{font-size:16px}
  body[data-menu-section=workshop][data-workshop-inspect=skins] #portraitDetails .workshopSkinControls{gap:3px}
  body[data-menu-section=workshop][data-workshop-inspect=skins] #portraitDetails .workshopSkinStep{
    flex-basis:20px;width:20px;height:20px;font-size:16px
  }
  body[data-menu-section=workshop][data-workshop-inspect=skins] #portraitDetails .workshopSkinIndicatorBar{
    flex:1 1 40px;min-width:28px;max-width:64px
  }
}
@media (prefers-reduced-motion:reduce){
  body[data-menu-section=workshop][data-workshop-inspect=skins] #portraitDetails .workshopSkinTrack,
  body[data-menu-section=workshop][data-workshop-inspect=skins] #portraitDetails .workshopSkinIndicator span{transition:none}
}
body[data-menu-section=workshop][data-workshop-inspect=skins] #portraitDetails .workshopInspectTabs,
body[data-menu-section=workshop][data-workshop-inspect=skins] #portraitDetails .workshopSkinsSoon{grid-column:1 / -1}
body[data-menu-section=workshop][data-workshop-inspect=skins] #portraitDetails .portraitStats,
body[data-menu-section=workshop][data-workshop-inspect=skins] #portraitDetails .workshopAbilityTabs,
body[data-menu-section=workshop][data-workshop-inspect=skins] #portraitDetails .workshopAbilityScroll,
body[data-menu-section=workshop][data-workshop-inspect=skins] #portraitDetails .workshopPreviewDock,
body[data-menu-section=workshop][data-workshop-inspect=skins] #portraitDetails .previewActiveSkillBtn,
body[data-menu-section=workshop][data-workshop-inspect=skins] #portraitDetails .portraitDetailHead,
body[data-menu-section=workshop][data-workshop-inspect=skins] #shopOverlay #portraitDetails .portraitStats.workshopRadar{display:none!important}
/* Dedicated ability slots; Passive and Active use distinct artwork. */
body[data-menu-section=workshop] #portraitDetails .abilityBlock{position:relative;min-height:32px;padding-left:0}
body[data-menu-section=workshop] #portraitDetails .workshopAbilityIcon{display:block;position:absolute;left:0;top:0;width:32px;height:32px;object-fit:contain;margin:0;border-radius:7px}
body[data-menu-section=workshop] #portraitDetails .abilityKind,
body[data-menu-section=workshop] #portraitDetails .abilityBlock strong{padding-left:39px}
body[data-menu-section=workshop] #portraitDetails .abilityBlock p{clear:none;padding-left:0}
/* Workshop light platform and gesture legend. */
body[data-menu-section=workshop] #workshopPedestal::before,
body[data-menu-section=workshop] #workshopPedestal::after{content:"";position:absolute;pointer-events:none;border-radius:50%}
body[data-menu-section=workshop] #workshopPedestal::before{inset:-35% -6%;background:radial-gradient(ellipse,var(--pedestal-glow,#08bfff55),transparent 68%);filter:blur(12px);animation:workshopLightBreathe 3.8s ease-in-out infinite;z-index:-1}
body[data-menu-section=workshop] #workshopPedestal::after{inset:4%;border:2px solid transparent;border-top-color:var(--pedestal-edge,#92f7ff);border-bottom-color:var(--pedestal-wash,#08bfff55);box-shadow:0 -3px 10px var(--pedestal-glow,#08bfff55);animation:workshopRingOrbit 7s linear infinite;opacity:.8}
@keyframes workshopLightBreathe{0%,100%{opacity:.4;transform:scale(.94)}50%{opacity:.85;transform:scale(1.1)}}
@keyframes workshopRingOrbit{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}
body[data-menu-section=workshop] #workshopHangarHints{display:flex;flex-direction:row;justify-content:center;align-items:center;flex-wrap:wrap;gap:7px;left:8%;right:8%;bottom:3%;width:auto;pointer-events:none}
body[data-menu-section=workshop] #workshopHangarHints .workshopGesture{display:inline-flex;align-items:center;gap:6px;padding:7px 10px;border:1px solid #78c5db35;border-radius:999px;background:#0b1c2bdd;box-shadow:0 2px 8px #0003;color:#c5dce6;font:500 11px/1.2 system-ui;white-space:nowrap}
body[data-menu-section=workshop] #workshopHangarHints .workshopGesture span{font:inherit;color:inherit;margin:0}
body[data-menu-section=workshop] #workshopHangarHints svg{width:15px;height:15px;fill:none;stroke:#82dbea;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex:none}
@media(max-width:600px) and (orientation:portrait){body[data-menu-section=workshop] #workshopHangarHints{left:3%;right:3%;gap:4px;bottom:2%}body[data-menu-section=workshop] #workshopHangarHints .workshopGesture{padding:5px 7px;font-size:10px}body[data-menu-section=workshop] #workshopHangarHints svg{width:13px;height:13px}}
@media(prefers-reduced-motion:reduce){body[data-menu-section=workshop] #workshopPedestal::before,body[data-menu-section=workshop] #workshopPedestal::after{animation:none}}
@media(max-width:600px) and (orientation:portrait){body[data-menu-section=workshop] #workshopPedestal{bottom:21%}}
/* Scrollable roster with accessible status icons and a clear viewed card. */
body[data-menu-section=workshop] #beyCards{scrollbar-width:none;-ms-overflow-style:none}
body[data-menu-section=workshop] #beyCards::-webkit-scrollbar{display:none;width:0;height:0}
body[data-menu-section=workshop] #beyCards .beycard.previewing{border:2px solid #9af0ff!important;background:linear-gradient(145deg,#22536b,#102633)!important;box-shadow:inset 0 0 16px #65dfff24,0 0 10px #56d9ff55;opacity:1}
body[data-menu-section=workshop] #beyCards [data-roster-status]{position:absolute;top:4px;right:4px;width:22px;height:22px;padding:3px;box-sizing:border-box;border-radius:50%;background:#081520e8;border:1px solid #9ac3d455;display:grid;place-items:center;color:#a8bdc9;z-index:2}
body[data-menu-section=workshop] #beyCards [data-roster-status=""]{display:none}
body[data-menu-section=workshop] #beyCards [data-roster-status=viewing]{color:#b9f6ff;border-color:#86eaff;animation:rosterViewingGlow 2.6s ease-in-out infinite}
body[data-menu-section=workshop] #beyCards [data-roster-status=equipped]{color:#a2f0bd;border-color:#75cf93}
body[data-menu-section=workshop] #beyCards [data-roster-status] svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
body[data-menu-section=workshop] #beyCards .rosterStatusText{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@keyframes rosterViewingGlow{0%,100%{box-shadow:0 0 0 0 #86eaff00}50%{box-shadow:0 0 0 3px #86eaff25}}
@media(prefers-reduced-motion:reduce){body[data-menu-section=workshop] #beyCards [data-roster-status=viewing]{animation:none}}
/* Keep light motion inside a fixed ellipse; never rotate the ellipse itself. */
body[data-menu-section=workshop] #workshopPedestal::after{inset:4%;transform:none;animation:workshopRingShimmer 4s ease-in-out infinite;border-color:var(--pedestal-edge,#92f7ff);box-shadow:0 0 8px var(--pedestal-glow,#08bfff55)}
@keyframes workshopRingShimmer{0%,100%{opacity:.25}50%{opacity:.75}}
body[data-menu-section=workshop] #portraitHeroLabel{max-width:94%}
@media(max-height:450px) and (orientation:landscape){body[data-menu-section=workshop] #portraitHeroLabel strong{font-size:24px;line-height:.98}body[data-menu-section=workshop] .workshopHeroQuote{font-size:10px;margin:3px 0}}
@media(prefers-reduced-motion:reduce){body[data-menu-section=workshop] #workshopPedestal::after{animation:none}}
body[data-menu-section=workshop] #portraitHeroLabel strong .workshopNameSymbol{display:inline;font:inherit;font-size:.55em;letter-spacing:0;white-space:nowrap}
@media(max-width:400px) and (orientation:portrait){body[data-menu-section=workshop] #portraitHeroLabel strong{font-size:20px;line-height:1.02}}
@media(max-height:450px) and (orientation:landscape){body[data-menu-section=workshop] #workshopHangarHints{left:3%;right:3%;gap:4px;flex-wrap:nowrap;bottom:3%}body[data-menu-section=workshop] #workshopHangarHints .workshopGesture{font-size:9px;padding:5px 6px;gap:4px}body[data-menu-section=workshop] #workshopHangarHints svg{width:12px;height:12px}body[data-menu-section=workshop] #workshopPedestal{bottom:18%}}
/* Remove the decorative orbit/ring light from the Workshop pedestal. */
body[data-menu-section=workshop] #workshopPedestal::after{content:none;display:none;animation:none;box-shadow:none}
/* Larger ability artwork with a dedicated header column. */
body[data-menu-section=workshop] #portraitDetails .abilityBlock{display:grid;grid-template-columns:64px minmax(0,1fr);grid-template-rows:auto auto;column-gap:10px;align-content:start}
body[data-menu-section=workshop] #portraitDetails .workshopAbilityIcon{position:static;width:64px;height:64px;grid-column:1;grid-row:1 / 3;align-self:center;border-radius:10px}
body[data-menu-section=workshop] #portraitDetails .abilityKind{grid-column:2;grid-row:1;padding-left:0;align-self:end}
body[data-menu-section=workshop] #portraitDetails .abilityBlock strong{grid-column:2;grid-row:2;padding-left:0;align-self:start}
body[data-menu-section=workshop] #portraitDetails .abilityBlock p{grid-column:1 / -1;padding-left:0}
@media(max-width:600px),(max-height:450px){body[data-menu-section=workshop] #portraitDetails .abilityBlock{grid-template-columns:48px minmax(0,1fr);column-gap:7px}body[data-menu-section=workshop] #portraitDetails .workshopAbilityIcon{width:48px;height:48px}}
/* Transparent renders; unowned beys remain identifiable but visually subdued. */
body[data-menu-section=workshop] #beyCards .beyimg{background:transparent!important}
body[data-menu-section=workshop] #beyCards .beycard.locked .beyimg{opacity:.38;filter:saturate(.65);transition:opacity .2s ease,filter .2s ease}
body[data-menu-section=workshop] #beyCards .beycard.locked.previewing .beyimg{opacity:.62;filter:saturate(.85)}
body[data-menu-section=workshop] #beyCards .beycard:not(.locked) .beyimg{opacity:1;filter:none}
/* Honest integer roster ratings; combat retains its original decimal stats. */
body[data-menu-section=workshop] #shopOverlay #portraitDetails .portraitStats.workshopRadar{display:flex;flex-direction:column;align-items:center;gap:0;min-height:0;padding:0}
.workshopRatingLabel{color:#9bb6c5;font:600 9px/1.3 system-ui;letter-spacing:.7px}
.workshopRadar svg{display:block;width:100%;height:145px;overflow:visible}
.radarGrid{fill:none;stroke:#537286;stroke-width:1;opacity:.5}
.radarShape{fill:#53d9f944;stroke:#80eaff;stroke-width:2;stroke-linejoin:round}
.radarLabels{fill:#d9f5ff;font:700 12px system-ui}
@media(max-width:600px),(max-height:450px){.workshopRadar svg{height:100px}.workshopRatingLabel{font-size:8px}}
.previewActiveSkillBtn{grid-column:1/-1;min-height:36px;border:1px solid #6cdef0;border-radius:12px;background:#14394a;color:#d6faff;font-weight:700;cursor:pointer;margin:6px 0}
.skillPreviewDialog{width:min(900px,94vw);max-width:100vw;height:min(720px,94dvh);max-height:100dvh;box-sizing:border-box;padding:20px;border:1px solid #67c9df;border-radius:22px;background:#081520;color:#e7f5ff;overflow:auto}
.skillPreviewDialog[open]{display:flex;flex-direction:column;gap:12px}
.skillPreviewDialog::backdrop{background:#010810df;backdrop-filter:blur(8px)}
.skillPreviewDialog header{display:flex;justify-content:space-between;gap:12px}.skillPreviewDialog h2{margin:4px 0;font:800 24px system-ui}.skillPreviewDialog p{margin:5px 0;font:14px/1.4 system-ui}.skillPreviewDialog small{color:#9bc4d2}
.skillPreviewDialog button{min-height:44px;padding:8px 18px;border:1px solid #40758a;border-radius:999px;color:#e3faff;background:#163443;font-weight:700;cursor:pointer}.skillPreviewDialog button:focus-visible{outline:3px solid #8bf0ff;outline-offset:2px}
.skillPreviewDialog header button{align-self:start}.skillPreviewDialog footer{display:flex;gap:8px;flex-wrap:wrap;justify-content:center}.skillPreviewStage{position:relative;flex:1;min-height:180px;border-radius:16px;background:radial-gradient(ellipse at center,#16394c,#07101b);overflow:hidden}.skillPreviewStage canvas{display:block;width:100%;height:100%}.skillPreviewTarget{position:absolute;right:12px;bottom:12px;font:10px system-ui;color:#94abb7}.skillPreviewInfo [data-phase]{color:#7ee6f7}.skillPreviewInfo{flex:none}
@media(max-width:600px){.skillPreviewDialog{width:100vw;height:100dvh;border-radius:0;padding:14px}.skillPreviewDialog h2{font-size:20px}.skillPreviewDialog p{font-size:12px}}
.skillPreviewDialog{margin:auto}
@media(max-height:500px) and (orientation:landscape){.skillPreviewDialog[open]{display:grid;grid-template-columns:1.3fr 1fr;grid-template-rows:auto minmax(0,1fr) auto;gap:8px;padding:12px;height:96dvh}.skillPreviewDialog header{grid-column:1/-1}.skillPreviewDialog header h2{font-size:18px}.skillPreviewDialog header p{font-size:11px}.skillPreviewStage{grid-column:1;grid-row:2;min-height:0}.skillPreviewInfo{grid-column:2;grid-row:2;overflow:auto}.skillPreviewInfo p{font-size:12px}.skillPreviewDialog footer{grid-column:1/-1;grid-row:3}.skillPreviewTarget{font-size:8px;left:8px;right:8px;bottom:6px}}
.practicePreviewFrame{display:block;width:100%;height:100%;border:0;pointer-events:none}
.practicePreviewFrame{pointer-events:auto}

/* Main chapters, legacy challenges, tutorial and bosses share one selection rail. */
body[data-menu-section=challenge] #campaignMode{display:none!important}
body[data-menu-section=challenge] #chapterRail .unifiedChallenge{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:5px;min-height:76px;padding:12px;text-align:left;flex-shrink:0}
body[data-menu-section=challenge] #chapterRail .unifiedChallenge .chapterRailLabel{white-space:normal;overflow-wrap:anywhere}
body[data-menu-section=challenge] #chapterRail .unifiedChallenge .chapterRailKind{display:block;white-space:normal}
body[data-menu-section=challenge] .unifiedChallengeWaves{padding-left:20px;line-height:1.6}
body[data-menu-section=challenge] .unifiedChallengeEquipped{padding:8px;color:#bde7ef}
body[data-menu-section=challenge][data-challenge-kind=extra] #shopOverlay #stageDetail #arenaSelector:not(.hide){display:flex!important;flex-wrap:wrap}
@media(orientation:portrait){body[data-menu-section=challenge] #chapterRail .unifiedChallenge{min-width:144px;max-width:180px;min-height:88px}}
@media(orientation:landscape) and (max-height:430px){body[data-menu-section=challenge] #chapterRail .unifiedChallenge{min-height:60px;padding:8px}}
body[data-menu-section=challenge][data-challenge-kind=extra] #stageDetail .stageDetailUnlock:not(:empty){display:block;color:#ffd16b}

/* Portrait workshop proportions: keep the hero dominant and the inspect column compact. */
@media (orientation:portrait){
  body[data-menu-section=workshop] #shopOverlay #shopScroll{
    grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);
    column-gap:10px;row-gap:8px;padding:0 2px;
  }
  body[data-menu-section=workshop] #shopOverlay #portraitHero{overflow:hidden}
  body[data-menu-section=workshop] #shopOverlay #portraitHeroLabel{width:56%;max-width:56%;min-width:0}
  body[data-menu-section=workshop] #shopOverlay #portraitHeroLabel strong{overflow-wrap:anywhere}
  body[data-menu-section=workshop] #shopOverlay #portraitHeroLabel > span{font-size:clamp(8px,2.4vw,9px);letter-spacing:.06em;white-space:nowrap}
  body[data-menu-section=workshop] #shopOverlay #portraitHeroLabel .workshopHeroQuote{overflow-wrap:anywhere}
  body[data-menu-section=workshop] #portraitDetails .workshopInspectTabs button{min-width:0;padding:3px 1px;font-size:9px;letter-spacing:-.03em}
  body[data-menu-section=workshop] #shopOverlay #portraitDetails{padding:8px 8px 10px;gap:5px}
  body[data-menu-section=workshop] #shopOverlay #portraitDetails .portraitDetailHead{padding-top:4px}
  body[data-menu-section=workshop] #shopOverlay #portraitDetails .portraitDetailHead .cardbtn{margin-top:5px}
  body[data-menu-section=workshop] #shopOverlay #portraitDetails{display:flex;flex-direction:column;overflow:hidden}
  body[data-menu-section=workshop] #shopOverlay #portraitDetails .workshopInspectTabs{order:1;flex:0 0 auto}
  body[data-menu-section=workshop] #shopOverlay #portraitDetails .workshopSkinsSoon{order:2;flex:1 1 0;min-height:0}
  body[data-menu-section=workshop] #shopOverlay #portraitDetails .portraitDetailHead{order:3;flex:0 0 auto;min-width:0}
  body[data-menu-section=workshop] #shopOverlay #portraitDetails .workshopAbilityTabs{order:4;flex:0 0 auto}
  body[data-menu-section=workshop] #shopOverlay #portraitDetails .workshopAbilityScroll{order:5;flex:1 1 0;min-height:36px;overflow:auto}
  body[data-menu-section=workshop] #shopOverlay #portraitDetails .workshopPreviewDock{order:6;flex:0 0 auto}
  body[data-menu-section=workshop] #shopOverlay #portraitDetails .workshopPreviewDock{
    box-sizing:border-box;width:100%;min-width:0;min-height:32px;padding:4px 2px;
    font-size:clamp(9px,2.7vw,10px);line-height:1.15;white-space:normal;overflow-wrap:anywhere;
  }
  body[data-menu-section=workshop] #shopOverlay #beyCards{grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:minmax(76px,auto);gap:7px}
  body[data-menu-section=workshop] #workshopHangarHints{left:3%;right:3%;bottom:2%;display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:center;gap:5px}
  body[data-menu-section=workshop] #workshopHangarHints .workshopGesture{min-width:0;padding:5px 6px;gap:4px;font-size:clamp(8px,2.5vw,10px)}
  body[data-menu-section=workshop] #workshopHangarHints svg{width:12px;height:12px}
  body[data-menu-section=workshop] #portraitHero > .workshopRadar{
    position:absolute;z-index:4;top:6px;right:6px;width:42%;max-width:142px;min-width:92px;
    min-height:0;padding:4px 5px!important;gap:0!important;box-sizing:border-box;align-items:stretch!important;
    border:1px solid #62cfe455;border-radius:9px;background:linear-gradient(145deg,#071625d9,#102a3bd9);
    pointer-events:none;
  }
  body[data-menu-section=workshop] #portraitHero > .workshopRadar .workshopRatingLabel{text-align:center;font-size:clamp(6px,1.8vw,8px);white-space:nowrap}
  body[data-menu-section=workshop] #portraitHero > .workshopRadar svg{width:100%;height:clamp(58px,18vw,78px);overflow:visible}
  body[data-menu-section=workshop] #portraitHero > .workshopRadar .radarLabels{font-size:15px}
  body[data-menu-section=workshop] #portraitHero > .workshopRadar .compactRatings{display:none}
  body[data-menu-section=workshop][data-workshop-inspect=parts] #portraitHero > .workshopRadar,
  body[data-menu-section=workshop][data-workshop-inspect=skins] #portraitHero > .workshopRadar{display:none!important}
}

/* A little less chrome height leaves an intentional gutter before the columns. */
@media (orientation:landscape){
  body[data-menu-section=workshop] #shopOverlay #shopScroll{column-gap:12px;padding:2px 4px 0}
}
body[data-menu-section=workshop] #portraitHero > .workshopRadar{
  position:absolute;z-index:4;top:8px;right:8px;width:min(40%,180px);min-width:112px;
  min-height:0;padding:5px 7px!important;gap:0!important;box-sizing:border-box;align-items:stretch!important;
  border:1px solid #62cfe455;border-radius:10px;background:linear-gradient(145deg,#071625d9,#102a3bd9);
  pointer-events:none;
}
body[data-menu-section=workshop] #portraitHero > .workshopRadar .workshopRatingLabel{text-align:center;font-size:8px;white-space:nowrap}
body[data-menu-section=workshop] #portraitHero > .workshopRadar svg{width:100%;height:96px;overflow:visible}
body[data-menu-section=workshop] #portraitHero > .workshopRadar .radarLabels{font-size:15px}
body[data-menu-section=workshop] #portraitHero > .workshopRadar .compactRatings{display:none}
body[data-menu-section=workshop] #portraitHeroLabel{width:56%;max-width:56%;min-width:0}
body[data-menu-section=workshop] #portraitHeroLabel strong{overflow-wrap:anywhere}
body[data-menu-section=workshop] #portraitHeroLabel > span{display:block;min-width:0;max-width:100%;box-sizing:border-box;font-size:clamp(8px,2vw,11px);letter-spacing:.06em;white-space:normal;overflow-wrap:anywhere}
body[data-menu-section=workshop][data-workshop-inspect=parts] #portraitHero > .workshopRadar,
body[data-menu-section=workshop][data-workshop-inspect=skins] #portraitHero > .workshopRadar{display:none!important}
body[data-menu-section=workshop] #shopOverlay #portraitDetails{
  grid-template-rows:auto auto minmax(36px,1fr) auto auto;
}
body[data-menu-section=workshop] #portraitDetails .workshopInspectTabs{grid-row:1}
body[data-menu-section=workshop] #portraitDetails .workshopAbilityTabs{grid-row:2}
body[data-menu-section=workshop] #portraitDetails .workshopAbilityScroll{grid-row:3;min-height:0}
body[data-menu-section=workshop] #shopOverlay #portraitDetails .portraitDetailHead{grid-row:4}
body[data-menu-section=workshop] #portraitDetails .workshopPreviewDock{grid-row:5}
@media (orientation:landscape) and (max-height:480px){
  body[data-menu-section=workshop] #shopOverlay #portraitDetails{display:flex;flex-direction:column;gap:3px;padding:4px 6px;overflow:hidden}
  body[data-menu-section=workshop] #shopOverlay #portraitDetails .workshopInspectTabs{order:1;flex:0 0 auto}
  body[data-menu-section=workshop] #shopOverlay #portraitDetails .workshopSkinsSoon{order:2;flex:1 1 0;min-height:0}
  body[data-menu-section=workshop] #shopOverlay #portraitDetails .portraitDetailHead{order:3;flex:0 0 auto;min-width:0;padding-top:4px}
  body[data-menu-section=workshop] #shopOverlay #portraitDetails .workshopDetailSpacer{display:none}
  body[data-menu-section=workshop] #shopOverlay #portraitDetails .workshopAbilityTabs{order:4;flex:0 0 auto}
  body[data-menu-section=workshop] #shopOverlay #portraitDetails .workshopAbilityScroll{order:5;flex:1 1 0;min-height:36px;overflow:auto}
  body[data-menu-section=workshop] #shopOverlay #portraitDetails .workshopPreviewDock{order:6;flex:0 0 auto}
  body[data-menu-section=workshop] #shopOverlay #portraitDetails .portraitDetailHead .cardbtn{margin-top:4px}
  body[data-menu-section=workshop] #portraitHero > .workshopRadar{top:5px;right:5px;width:min(42%,150px);min-width:100px;padding:3px 5px!important}
  body[data-menu-section=workshop] #portraitHero > .workshopRadar svg{height:76px}
  body[data-menu-section=workshop] #portraitHeroLabel{padding-top:4px}
}
@media (orientation:landscape) and (max-height:500px){
  body[data-menu-section=workshop] #shopOverlay #shopHead{min-height:42px;margin-bottom:4px}
  body[data-menu-section=workshop] #menuNavigation nav .cs-btn{min-height:42px;padding-top:4px;padding-bottom:4px}
}
@media (orientation:portrait){
  body[data-menu-section=workshop] #portraitHero > .workshopRadar{width:42%;max-width:142px;min-width:92px}
  body[data-menu-section=workshop] #portraitHero > .workshopRadar .workshopRatingLabel{font-size:clamp(6px,1.8vw,8px)}
  body[data-menu-section=workshop] #portraitHero > .workshopRadar svg{height:clamp(58px,18vw,78px)}
  body[data-menu-section=workshop] #shopOverlay #portraitHeroLabel > span{font-size:clamp(7px,2.1vw,8px);letter-spacing:.03em;white-space:normal;width:100%}
}
@media (orientation:portrait) and (max-width:600px){
  body[data-menu-section=workshop] #shopOverlay #shopPanel{grid-template-rows:42px minmax(0,1fr) auto;row-gap:7px}
  body[data-menu-section=workshop] #shopOverlay #shopHead [data-action="shop-home"],
  body[data-menu-section=workshop] #shopSettingsBtn,
  body[data-menu-section=workshop] #shopOverlay .moneyChip{min-height:42px;height:42px}
  body[data-menu-section=workshop] #menuNavigation nav .cs-btn{min-height:42px}
}
@media(orientation:portrait){
  body[data-menu-section=challenge] #chapterRail{display:flex!important;flex-direction:row;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;max-height:112px;min-height:96px;padding-bottom:6px;scroll-snap-type:x proximity}
  body[data-menu-section=challenge] #chapterRail .chapterRailBtn{flex:0 0 144px;min-width:144px;max-width:144px;min-height:88px;scroll-snap-align:start}
  body[data-menu-section=challenge] #chapterRail .unifiedChallenge{min-height:88px}
}
@media(orientation:portrait){
  body[data-menu-section=challenge]:not([data-challenge-kind=main]) #chapterDetail{height:auto;max-height:none;min-height:150px}
  body[data-menu-section=challenge]:not([data-challenge-kind=main]) #chapterDetail .challengeHero{height:112px;min-height:112px}
  body[data-menu-section=challenge]:not([data-challenge-kind=main]) .challengeVenueTitle{font-size:22px;line-height:1.1}
}
/* Shared runtime Bey rigs in Challenges, with bounded inspection controls. */
body[data-menu-section=challenge] .duelTopArt[data-challenge-bey]{overflow:hidden;max-width:100%;isolation:isolate}
.challengeBeyCanvas{display:block;position:absolute;inset:0;width:100%;height:100%;z-index:2;touch-action:none;cursor:grab;border-radius:12px}
.challengeBeyCanvas:active{cursor:grabbing}.challengeBeyCanvas:focus-visible{outline:2px solid #8cecff;outline-offset:-3px}
[data-model-ready=true]>img{visibility:hidden}
body[data-menu-section=challenge] .challengeSoloModel{width:min(100%,260px);height:190px;margin:0 auto}
@media(orientation:portrait){body[data-menu-section=challenge] .duelTopArt[data-challenge-bey]{width:96px;height:88px}body[data-menu-section=challenge] .challengeSoloModel[data-challenge-bey]{width:150px;height:112px}}
@media(orientation:landscape) and (max-height:430px){body[data-menu-section=challenge] .duelTopArt[data-challenge-bey]{width:106px;height:94px}body[data-menu-section=challenge] .challengeSoloModel[data-challenge-bey]{width:150px;height:112px}}

/* Challenges: semantic accordion groups and readable short-landscape panels. */
body[data-menu-section=challenge] #chapterRail .challengeRailGroup{display:flex;flex:0 0 auto;flex-direction:column;gap:4px;min-width:0}
body[data-menu-section=challenge] #chapterRail .challengeGroupHeading{
  display:grid;grid-template-columns:22px minmax(0,1fr) auto;grid-template-rows:auto auto;align-items:center;gap:2px 6px;
  width:100%;min-width:0;min-height:48px;margin:0;padding:7px 9px;border:1px solid #2b5368;border-radius:10px;
  background:linear-gradient(145deg,#102a3a,#0a1c2b);color:#d9f1f7;text-align:left;cursor:pointer;
}
body[data-menu-section=challenge] #chapterRail .challengeGroupHeading[aria-expanded=true]{border-color:#2b5368;background:linear-gradient(145deg,#102a3a,#0a1c2b)}
body[data-menu-section=challenge] #chapterRail .challengeGroupHeading .challengeGroupIcon{grid-column:1;grid-row:1/3;display:grid;place-items:center;font-size:18px;color:#89eafa}
body[data-menu-section=challenge] #chapterRail .challengeGroupHeading strong{grid-column:2;grid-row:1;font:800 12px/1.2 system-ui}
body[data-menu-section=challenge] #chapterRail .challengeGroupHeading small{grid-column:2;grid-row:2;font:10px/1.2 system-ui;color:#8eacbc}
body[data-menu-section=challenge] #chapterRail .challengeGroupHeading .challengeGroupChevron{grid-column:3;grid-row:1/3;font:800 18px/1 system-ui;color:#8defff}
body[data-menu-section=challenge] #chapterRail .challengeRailGroupItems{display:flex;flex-direction:column;gap:6px;min-width:0}
body[data-menu-section=challenge] #chapterRail .challengeRailGroupItems[hidden]{display:none!important}
body[data-menu-section=challenge] #chapterRail .challengeGroupHeading:focus-visible{outline:2px solid #a6f3ff;outline-offset:2px}
body[data-menu-section=challenge] #stageDetail{display:flex;flex-direction:column;min-height:0;overflow:hidden}
body[data-menu-section=challenge] #stageDetail .stageDetailContent{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#47788d transparent}
body[data-menu-section=challenge] #stageDetail .battleTips{margin-top:4px}
body[data-menu-section=challenge] #stageDetail .battleTipsTitle{display:flex;align-items:center;justify-content:space-between;gap:8px;cursor:pointer;list-style:none}
body[data-menu-section=challenge] #stageDetail .battleTipsTitle::-webkit-details-marker{display:none}
body[data-menu-section=challenge] #stageDetail .battleTipsTitle::after{content:"+";color:#8defff;font-size:16px}
body[data-menu-section=challenge] #stageDetail .battleTips[open] .battleTipsTitle::after{content:"−"}
@media (orientation:landscape) and (max-height:430px){
  body[data-menu-section=challenge] #chapterDetail{
    position:relative;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(90px,1fr) auto;
    align-content:stretch;gap:4px;padding:5px;min-height:0;overflow:hidden
  }
  body[data-menu-section=challenge] #chapterDetail .challengeHero{
    position:relative;inset:auto;grid-row:1;min-height:0;height:auto;overflow:hidden
  }
  body[data-menu-section=challenge] #chapterDetail .challengeHeroCopy{
    position:relative;inset:auto;padding:2px 5px 3px
  }
  body[data-menu-section=challenge] #chapterDetail .challengeDuel{
    position:relative;inset:auto;grid-row:2;min-height:0;height:auto;align-items:center
  }
  body[data-menu-section=challenge] #chapterDetail .duelTopArt{width:clamp(76px,18vh,108px);height:clamp(76px,18vh,108px)}
  body[data-menu-section=challenge] #chapterDetail .duelStats{display:none}
  body[data-menu-section=challenge] #chapterStages.stages{
    position:relative;inset:auto;grid-row:3;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
    grid-auto-rows:minmax(54px,auto);max-height:none;overflow:visible;margin:0;padding:2px;gap:4px
  }
  body[data-menu-section=challenge] #chapterStages .stageCard{min-height:54px;padding:4px 4px 4px 25px;font-size:10px;line-height:1.15}
  body[data-menu-section=challenge] #chapterStages .pathIndex{left:4px;top:5px;width:16px;height:16px;font-size:9px}
  body[data-menu-section=challenge] #chapterRail{gap:5px;padding:2px}
  body[data-menu-section=challenge] #chapterRail .challengeGroupHeading{min-height:42px;padding:5px 7px}
  body[data-menu-section=challenge] #chapterRail .chapterRailBtn{min-height:42px;padding:4px 6px}
  body[data-menu-section=challenge] #chapterRail .chapterThumb{width:48px;height:30px}
  body[data-menu-section=challenge] .challengeHeroCopy{left:10px;right:10px;top:7px}
  body[data-menu-section=challenge] .challengeVenueTitle{font-size:clamp(14px,1.9vw,18px);line-height:1.05}
  body[data-menu-section=challenge] .challengeVenueTag{display:block;margin:3px 0 0;font-size:11px;line-height:1.15}
  body[data-menu-section=challenge] .challengeInspectHint{margin:2px 0 0;font-size:9px;line-height:1.1}
  body[data-menu-section=challenge] .duelSide{gap:1px}
  body[data-menu-section=challenge] .duelName{font-size:9px}
  body[data-menu-section=challenge] #stageDetail{padding:6px 8px;gap:4px}
  body[data-menu-section=challenge] #stageDetail .stageDetailContent{display:flex;flex-direction:column;gap:4px;padding-right:4px}
  body[data-menu-section=challenge] #stageDetail .stageDetailTitle{font-size:15px;line-height:1.1}
  body[data-menu-section=challenge] #stageDetail .stageDetailEquipped{font-size:10px;line-height:1.15}
  body[data-menu-section=challenge] #stageDetail .stageDetailLesson{font-size:11px;line-height:1.2}
  body[data-menu-section=challenge] #stageDetail [data-stage-waves],
  body[data-menu-section=challenge] #stageDetail [data-stage-reward]{font-size:10px;padding:3px 7px}
  body[data-menu-section=challenge] #stageDetail .battleTips{font-size:10px}
  body[data-menu-section=challenge] #stageDetail .battleTipsTitle{font-size:10px;margin:0}
  body[data-menu-section=challenge] #stageDetail .battleTips li{font-size:10px;line-height:1.2;margin:0 0 2px}
}
@media (orientation:portrait){
  body[data-menu-section=challenge] #chapterRail{
    display:flex!important;flex-direction:column;flex-wrap:nowrap;gap:5px;min-height:0;max-height:clamp(130px,21vh,180px);
    padding:4px;overflow-x:hidden;overflow-y:auto;scroll-snap-type:none;overscroll-behavior:contain
  }
  body[data-menu-section=challenge] #chapterRail .challengeRailGroup{flex:0 0 auto;width:100%}
  body[data-menu-section=challenge] #chapterRail .challengeRailGroupItems[hidden]{display:none!important}
  body[data-menu-section=challenge] #chapterRail [data-rail-group="story"] .challengeRailGroupItems{
    display:flex;flex-direction:row;overflow-x:auto;overflow-y:hidden;gap:5px;padding-bottom:2px
  }
  body[data-menu-section=challenge] #chapterRail .chapterRailBtn{flex:0 0 144px;width:144px;min-width:144px;max-width:144px;min-height:72px;padding:5px}
  body[data-menu-section=challenge] #chapterRail .unifiedChallenge{flex-basis:auto;width:100%;min-width:0;max-width:none;min-height:42px}
  body[data-menu-section=challenge] #chapterRail .challengeGroupHeading{flex:0 0 40px;height:40px;min-height:40px;max-height:40px;padding:5px 8px;overflow:hidden}
  body[data-menu-section=challenge] #stageDetail .stageDetailContent{flex:0 0 auto;overflow:visible}
}

/* Keep currency spacing consistent in portrait and landscape. */
#shopOverlay #shopHead .moneyChip{width:auto;min-width:44px;padding-left:10px;padding-right:16px;flex-shrink:0}

/* Preview loading state remains visible until authored model and artwork are ready. */
.skillPreviewMount{position:absolute;inset:0}
.skillPreviewLoading{position:absolute;inset:0;z-index:2;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;padding:24px;text-align:center;background:#091d2b;color:#daf6ff}
.skillPreviewLoading[hidden],.skillPreviewLoading [hidden]{display:none!important}
.skillPreviewLoading progress{width:min(240px,85%);height:12px;accent-color:#70e4ef}
.skillPreviewLoading span{font-size:13px;color:#a6c5d4}
.skillPreviewLoading button{padding:12px 22px;border:1px solid #70e4ef;border-radius:12px;background:#174457;color:#fff;cursor:pointer}
