:root{
  --live-accent:var(--accent,#8c78ff);
  --live-accent2:#e9c46a;
  --live-surface:#090e19;
  --live-surface2:#03060d;
  --live-text:#f3f5f9;
  --live-muted:#aeb8c7;
  --live-line:rgba(233,196,106,.18);
  --live-glow:#8c78ff;
}

/* The original universe remains the visual source of truth. These rules only
   extend its existing popup and planet-panel language. */
.gameOverlayShell,.card,.rpgCard,.activeQuest,.playerIdentity,.playerProgressHUD,
.resourceHUD,.utilityAction,.liveUniverse,.planetNavigator button,.travelReadout,
.gameMenu,.worldLabel,.cableNode{
  border-color:var(--live-line)!important;
}
.gameOverlayShell,.card{
  background:
    radial-gradient(circle at 86% 0,color-mix(in srgb,var(--live-accent) 13%,transparent),transparent 34%),
    linear-gradient(180deg,color-mix(in srgb,var(--live-surface) 97%,transparent),color-mix(in srgb,var(--live-surface2) 99%,transparent))!important;
}
.gameOverlayTop h2,.screenHero h3,.screenSection h4,.planetBossCopy h5,.liveTitle,
.liveCard b,.liveMetric b,.liveQuest b,.liveShopCard h4,.liveJournalTable b{color:var(--live-text)!important}
.screenHero p,.screenCard p,.liveCard p,.liveQuest p,.liveShopCard p,.liveHelp,
.liveJournalTable span,.liveAnalysisList li{color:var(--live-muted)!important}
.gameMenu button[data-game-screen="shop"] i{color:var(--live-accent2)}

.liveToolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:14px}
.liveToolbar>div{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.liveEyebrow{display:block;color:var(--live-accent2);font-size:9px;font-weight:900;letter-spacing:.14em;text-transform:uppercase}
.liveTitle{margin:6px 0 0;font-size:clamp(26px,3vw,40px);line-height:1.03;letter-spacing:-.035em}
.liveHelp{margin:7px 0 0;font-size:12px;line-height:1.6;max-width:720px}
.liveBadge{display:inline-flex;align-items:center;gap:6px;min-height:27px;padding:0 9px;border:1px solid var(--live-line);border-radius:999px;background:color-mix(in srgb,var(--live-accent) 7%,transparent);color:var(--live-accent2);font-size:8px;font-weight:900;letter-spacing:.08em}
.liveBadge:before{content:"";width:6px;height:6px;border-radius:50%;background:var(--live-accent);box-shadow:0 0 9px var(--live-glow)}

.liveButton{min-height:39px;padding:0 13px;border:1px solid color-mix(in srgb,var(--live-accent2) 30%,transparent);border-radius:9px;background:linear-gradient(180deg,color-mix(in srgb,var(--live-accent) 78%,#1a1431),color-mix(in srgb,var(--live-accent) 48%,#090b12));color:white;font-size:9px;font-weight:900;letter-spacing:.06em;cursor:pointer}
.liveButton.secondary{background:var(--live-surface2);color:var(--live-accent2)}
.liveButton.ghost{background:rgba(255,255,255,.018);color:var(--live-muted);border-color:rgba(255,255,255,.09)}
.liveButton.danger{background:linear-gradient(180deg,#8f4056,#542132)}
.liveButton:disabled{opacity:.38;cursor:not-allowed}
.liveButton:not(:disabled){transition:transform .22s cubic-bezier(.16,1,.3,1),box-shadow .22s ease,border-color .22s ease}
.liveButton:not(:disabled):hover{transform:translateY(-3px);border-color:var(--live-accent2);box-shadow:0 12px 28px rgba(0,0,0,.32),0 0 20px color-mix(in srgb,var(--live-accent) 14%,transparent)}

.liveMetricGrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin:14px 0}
.liveMetric{min-height:84px;padding:13px;border:1px solid var(--live-line);border-radius:12px;background:rgba(255,255,255,.018)}
.liveMetric small{display:block;color:var(--live-muted);font-size:8px;letter-spacing:.11em}
.liveMetric b{display:block;margin-top:10px;font-size:20px}
.liveMetric em{display:block;margin-top:4px;color:var(--live-accent2);font-size:8px;font-style:normal}

.liveSection{margin-top:14px;padding:17px;border:1px solid var(--live-line);border-radius:15px;background:rgba(255,255,255,.014)}
.liveSectionHead{display:flex;align-items:flex-end;justify-content:space-between;gap:15px;margin-bottom:12px}
.liveSectionHead small{display:block;color:var(--live-accent2);font-size:8px;font-weight:900;letter-spacing:.13em}
.liveSectionHead h3{margin:5px 0 0;color:var(--live-text);font-size:20px}
.liveSectionHead p{max-width:520px;margin:0;color:var(--live-muted);font-size:10px;line-height:1.5;text-align:right}
.liveCardGrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.liveCard{padding:14px;border:1px solid color-mix(in srgb,var(--live-line) 80%,transparent);border-radius:12px;background:color-mix(in srgb,var(--live-surface) 64%,transparent)}
.liveCard small{display:block;color:var(--live-accent2);font-size:8px;font-weight:900;letter-spacing:.1em}
.liveCard b{display:block;margin-top:7px;font-size:14px}
.liveCard p{margin:7px 0 0;font-size:10px;line-height:1.55}
.liveCard em{display:block;margin-top:8px;color:var(--live-accent2);font-size:9px;font-style:normal;font-weight:900}
.liveCard footer{display:flex;gap:7px;flex-wrap:wrap;margin-top:11px}

.liveQuestList{display:grid;gap:8px}
.liveQuest{display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:11px;align-items:center;padding:12px;border:1px solid var(--live-line);border-radius:11px;background:rgba(255,255,255,.015)}
.liveQuest>i{width:40px;height:40px;border-radius:10px;display:grid;place-items:center;background:color-mix(in srgb,var(--live-accent) 14%,transparent);color:var(--live-accent2);font-size:11px;font-style:normal;font-weight:900}
.liveQuest b{display:block;font-size:13px}.liveQuest p{margin:4px 0 0;font-size:10px;line-height:1.45}.liveQuest em{display:block;margin-top:5px;color:var(--live-accent2);font-size:8px;font-style:normal;font-weight:900}
.liveQuest.complete{border-color:rgba(105,222,177,.28)}.liveQuest.complete>i{background:rgba(105,222,177,.10);color:#69deb1}

.liveForm{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
.liveField{display:grid;gap:6px}.liveField.wide{grid-column:span 2}.liveField.full{grid-column:1/-1}
.liveField label{color:var(--live-accent2);font-size:8px;font-weight:900;letter-spacing:.09em}
.liveField input,.liveField select,.liveField textarea{
  width:100%;min-width:0;min-height:42px;padding:9px 10px;border:1px solid var(--live-line);border-radius:9px;
  background:var(--live-surface2);color:var(--live-text);font:700 11px/1.3 Inter,ui-sans-serif,system-ui,sans-serif;outline:none
}
.liveField textarea{min-height:84px;resize:vertical}
.liveField input:focus,.liveField select:focus,.liveField textarea:focus{border-color:var(--live-accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--live-accent) 13%,transparent)}
.liveFormActions{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.liveFormActions span{color:var(--live-muted);font-size:9px}

.liveJournalWrap{overflow:auto;border:1px solid var(--live-line);border-radius:12px}
.liveJournalTable{min-width:820px}
.liveJournalTable header,.liveJournalRow{display:grid;grid-template-columns:.8fr .7fr 1.25fr .65fr .65fr .65fr 1.1fr;gap:8px;align-items:center;padding:10px 12px}
.liveJournalTable header{background:rgba(255,255,255,.025);color:var(--live-accent2);font-size:8px;font-weight:900;letter-spacing:.08em}
.liveJournalRow{border-top:1px solid var(--live-line);font-size:10px}
.liveJournalRow small{display:block;margin-top:3px;color:var(--live-muted)}
.livePositive{color:#73deb5!important}.liveNegative{color:#ff7b8c!important}

.liveAnalysisGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.liveAnalysisPanel{padding:15px;border:1px solid var(--live-line);border-radius:12px;background:rgba(255,255,255,.014)}
.liveAnalysisPanel h4{margin:0 0 10px;color:var(--live-text);font-size:15px}
.liveAnalysisList{margin:0;padding-left:18px}.liveAnalysisList li{margin:7px 0;font-size:10.5px;line-height:1.55}
.liveAnalysisPanel.warning{border-color:rgba(255,122,140,.24)}.liveAnalysisPanel.action{border-color:rgba(105,222,177,.24)}

.liveShopTabs{display:flex;gap:7px;flex-wrap:wrap;margin:13px 0}
.liveShopTabs button.active{border-color:var(--live-accent2);color:white;background:color-mix(in srgb,var(--live-accent) 24%,var(--live-surface2))}
.liveShopGrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.liveShopCard{position:relative;overflow:hidden;min-height:196px;padding:15px;border:1px solid var(--live-line);border-radius:13px;background:linear-gradient(145deg,color-mix(in srgb,var(--item-accent) 10%,var(--live-surface)),var(--live-surface2))}
.liveShopCard:before{content:"";position:absolute;right:-28px;top:-28px;width:100px;height:100px;border-radius:50%;background:var(--item-accent);filter:blur(34px);opacity:.18}
.liveShopCard small{position:relative;color:var(--live-accent2);font-size:8px;font-weight:900;letter-spacing:.1em}.liveShopCard h4{position:relative;margin:9px 0 6px;font-size:17px}.liveShopCard p{position:relative;margin:0;font-size:9.5px;line-height:1.5}.liveShopCard .swatches{position:relative;display:flex;gap:5px;margin-top:12px}.liveShopCard .swatches i{width:18px;height:18px;border-radius:6px;border:1px solid rgba(255,255,255,.16)}.liveShopCard footer{position:relative;display:flex;gap:6px;flex-wrap:wrap;margin-top:13px}.liveShopCard footer .liveButton{flex:1 1 auto;font-size:8px;padding:0 9px}

.liveBossAction{display:grid;grid-template-columns:1fr auto;gap:14px;align-items:center;margin-top:13px;padding:14px;border:1px solid color-mix(in srgb,var(--live-accent) 32%,transparent);border-radius:12px;background:color-mix(in srgb,var(--live-accent) 6%,transparent)}
.liveBossAction b{display:block;color:var(--live-text);font-size:14px}.liveBossAction span{display:block;margin-top:5px;color:var(--live-muted);font-size:9px}
.liveBossAction aside{display:flex;align-items:center;gap:8px}

.liveRankLadder{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}
.liveRank{padding:10px;border:1px solid var(--live-line);border-radius:9px;background:rgba(255,255,255,.012);text-align:center}
.liveRank.current{border-color:var(--live-accent2);background:color-mix(in srgb,var(--live-accent) 12%,transparent)}
.liveRank small{display:block;color:var(--live-muted);font-size:7px}.liveRank b{display:block;margin-top:5px;color:var(--live-text);font-size:9px}
.liveLeaderboard{display:grid}.liveLeaderboard p{margin:0;display:grid;grid-template-columns:42px 1fr auto;gap:10px;align-items:center;padding:10px;border-top:1px solid var(--live-line)}
.liveLeaderboard p:first-child{border-top:0}.liveLeaderboard>p>b{color:var(--live-accent2);font-size:12px}.liveLeaderboard span b,.liveLeaderboard span small{display:block}.liveLeaderboard span small{margin-top:3px;color:var(--live-muted);font-size:8px}.liveLeaderboard em{color:var(--live-text);font-size:9px;font-style:normal}

/* Dense systems remain readable without crowding the universe. */
.dock{display:none!important}.liveUniverse{display:none!important}
.cableReadout{opacity:0!important;visibility:hidden!important;transition:opacity .22s ease,visibility .22s ease!important}
body.planetCableHover .cableReadout.show{opacity:1!important;visibility:visible!important}
.liveQuestPlanets{display:flex;gap:6px;overflow:auto;padding:0 0 10px;scrollbar-width:thin}.liveQuestPlanets .liveButton{flex:0 0 auto}
.liveQuest{grid-template-columns:42px minmax(0,1fr) minmax(132px,auto)}.liveQuest>div>small{display:block;margin-top:6px;color:var(--live-muted);font-size:9px;line-height:1.45}.liveQuest>footer{display:grid;gap:6px}.liveQuest.ready{border-color:rgba(105,222,177,.38);box-shadow:0 0 28px rgba(105,222,177,.06)}
.liveQuestMeter{height:4px;margin:8px 0 2px;border-radius:99px;background:rgba(255,255,255,.07);overflow:hidden}.liveQuestMeter i{display:block;height:100%;background:linear-gradient(90deg,var(--live-accent),var(--live-accent2));border-radius:inherit;transition:width .3s ease}

.liveSignalStack{position:fixed;z-index:46;right:14px;bottom:16px;display:flex;gap:7px;align-items:flex-end;font-family:var(--uiFont,Inter,system-ui,sans-serif)}
body.universeMode .gameHUD,body.universeMode .activeQuest,body.universeMode .utilityBar,body.universeMode .worldLabel,body.universeMode .planetNavigator,body.universeMode .gameMenu{transition:opacity .28s ease,transform .38s cubic-bezier(.16,1,.3,1),filter .28s ease!important}
body.hudMinimal .gameHUD,body.hudMinimal .activeQuest,body.hudMinimal .utilityBar{opacity:0!important;transform:translateY(-35px)!important;pointer-events:none!important}body.hudMinimal .worldLabel,body.hudMinimal .planetNavigator{opacity:0!important;transform:translate(-50%,35px)!important;pointer-events:none!important}body.hudMinimal .gameMenu{opacity:0!important;transform:translateY(35px)!important;pointer-events:none!important}
body.hudEditMode .hudCustomizable{resize:both!important;overflow:auto!important;min-width:150px;min-height:48px;max-width:90vw;max-height:70vh;container-type:inline-size}
.liveSignalButton{height:43px;padding:5px 10px;border:1px solid var(--live-line);border-radius:11px;background:linear-gradient(180deg,var(--live-surface),var(--live-surface2));color:var(--live-text);display:grid;grid-template-columns:27px 1fr;gap:8px;align-items:center;text-align:left;box-shadow:0 14px 38px rgba(0,0,0,.35)}.liveSignalButton>i{width:26px;height:26px;border-radius:8px;display:grid;place-items:center;background:color-mix(in srgb,var(--live-accent) 14%,transparent);color:var(--live-accent2);font-style:normal}.liveSignalButton small,.liveSignalButton b{display:block}.liveSignalButton small{font-size:6.5px;color:var(--live-accent2);letter-spacing:.1em}.liveSignalButton b{margin-top:3px;font-size:8px}
.liveSignalPanel{position:absolute;right:0;bottom:52px;width:min(360px,calc(100vw - 28px));max-height:min(500px,70vh);display:none;overflow:hidden;border:1px solid var(--live-line);border-radius:15px;background:linear-gradient(180deg,var(--live-surface),var(--live-surface2));box-shadow:0 26px 80px rgba(0,0,0,.65);color:var(--live-text)}.liveSignalPanel.open{display:flex;flex-direction:column;animation:signalIn .22s cubic-bezier(.16,1,.3,1)}.liveSignalPanel>header{display:flex;align-items:center;justify-content:space-between;padding:13px;border-bottom:1px solid var(--live-line)}.liveSignalPanel>header small,.liveSignalPanel>header b{display:block}.liveSignalPanel>header small{color:var(--live-accent2);font-size:7px;letter-spacing:.1em}.liveSignalPanel>header b{margin-top:4px;font-size:14px}.liveSignalPanel>header button{width:30px;height:30px;border:1px solid var(--live-line);border-radius:8px;background:transparent;color:var(--live-text)}.liveSignalPanel>footer{padding:10px 12px;border-top:1px solid var(--live-line)}
.signalRows,.chatMessages{overflow:auto;padding:7px 12px}.signalRows>p{display:grid;grid-template-columns:34px 1fr auto;gap:8px;align-items:center;margin:0;padding:9px 0;border-bottom:1px solid var(--live-line);font-size:9px}.signalRows>p>b{color:var(--live-accent2)}.signalRows span small{display:block;margin-top:3px;color:var(--live-muted);font-size:7px}.signalRows em{font-style:normal;font-size:8px}.signalEmpty{padding:16px!important;color:var(--live-muted);font-size:9px!important;line-height:1.5}
.chatLanguage{display:flex;align-items:center;justify-content:space-between;gap:9px;padding:9px 12px;color:var(--live-muted);font-size:7px;font-weight:900;letter-spacing:.08em}.chatLanguage select{height:30px;border:1px solid var(--live-line);border-radius:8px;background:var(--live-surface2);color:var(--live-text);font-size:9px}.chatMessages{min-height:180px}.chatMessages article{padding:9px 0;border-bottom:1px solid var(--live-line)}.chatMessages article small{color:var(--live-accent2);font-size:7px}.chatMessages article p{margin:5px 0 0;color:var(--live-text);font-size:10px;line-height:1.45}.liveChatPanel form{display:grid;grid-template-columns:1fr auto;gap:7px;padding:10px 12px}.liveChatPanel input{min-width:0;height:38px;padding:0 10px;border:1px solid var(--live-line);border-radius:9px;background:rgba(0,0,0,.22);color:var(--live-text)}.liveChatPanel>footer small{color:var(--live-muted);font-size:7px;line-height:1.4}
@keyframes signalIn{from{opacity:0;transform:translateY(8px) scale(.98)}to{opacity:1;transform:none}}
.liveMilestone{position:fixed;z-index:260;inset:0;display:grid;place-items:center;pointer-events:none;background:radial-gradient(circle,rgba(113,87,220,.17),transparent 46%);opacity:0;transition:opacity .35s ease}.liveMilestone.show{opacity:1}.liveMilestone>div{min-width:min(460px,calc(100vw - 32px));padding:27px;border:1px solid color-mix(in srgb,var(--live-accent2) 58%,transparent);border-radius:18px;background:linear-gradient(180deg,var(--live-surface),var(--live-surface2));box-shadow:0 0 100px color-mix(in srgb,var(--live-accent) 26%,transparent),0 30px 90px rgba(0,0,0,.7);text-align:center;transform:scale(.82);transition:transform .5s cubic-bezier(.16,1,.3,1)}.liveMilestone.show>div{transform:scale(1)}.liveMilestone small{display:block;color:var(--live-accent2);font-size:8px;font-weight:900;letter-spacing:.16em}.liveMilestone b{display:block;margin:10px 0 7px;font:800 clamp(28px,5vw,52px)/1 var(--displayFont,var(--uiFont));letter-spacing:.02em}.liveMilestone p{margin:0;color:var(--live-muted);font-size:11px}.liveMilestone i{display:block;width:100%;height:2px;margin-top:19px;background:linear-gradient(90deg,transparent,var(--live-accent),var(--live-accent2),transparent);animation:milestonePulse .6s ease infinite alternate}.liveMilestone.bossHit{background:radial-gradient(circle,rgba(255,80,100,.22),transparent 44%)}.liveMilestone.bossDefeated{background:radial-gradient(circle,rgba(232,198,106,.3),transparent 50%)}
@keyframes milestonePulse{to{opacity:.35;transform:scaleX(.72)}}

.livePlanetActions{margin:14px 0;padding:15px;border:1px solid var(--live-line);border-radius:13px;background:linear-gradient(135deg,color-mix(in srgb,var(--live-accent) 8%,transparent),rgba(255,255,255,.012))}
.livePlanetActions h4{margin:5px 0 6px;color:var(--live-text);font-size:18px}.livePlanetActions p{margin:0;color:var(--live-muted);font-size:10px;line-height:1.5}.livePlanetActions footer{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}

.liveToast{position:fixed;z-index:220;left:50%;top:22px;transform:translateX(-50%);width:min(520px,calc(100vw - 28px));padding:13px 15px;border:1px solid var(--live-line);border-radius:11px;background:linear-gradient(180deg,var(--live-surface),var(--live-surface2));color:var(--live-text);box-shadow:0 18px 60px rgba(0,0,0,.55);font-size:10px;font-weight:850;letter-spacing:.025em;text-align:center;animation:liveToastIn .3s cubic-bezier(.16,1,.3,1)}
.liveToast.error{border-color:rgba(255,122,140,.4);color:#ffc0c8}.liveToast.success{border-color:rgba(105,222,177,.38);color:#aaf2d3}
@keyframes liveToastIn{from{opacity:0;transform:translate(-50%,-12px)}to{opacity:1;transform:translate(-50%,0)}}

/* The tutorial card is dynamically placed by JavaScript. These safeguards
   ensure it remains readable and above every highlighted HUD element. */
.tutorialOverlay{z-index:150!important}.tutorialShade{z-index:0}.tutorialCard{
  z-index:160!important;bottom:auto!important;right:auto!important;transform:none!important;
  width:min(500px,calc(100vw - 30px))!important;max-height:min(360px,48vh);overflow:auto;
  transition:left .26s cubic-bezier(.16,1,.3,1),top .26s cubic-bezier(.16,1,.3,1),opacity .2s ease
}
.tutorialFocus{z-index:155!important}
body.tutorialMode{overflow:hidden!important}
body.liveModalFocus canvas,body.liveModalFocus #stars{filter:blur(9px) brightness(.32)!important}
body.liveModalFocus .gameHUD,body.liveModalFocus .activeQuest,body.liveModalFocus .worldLabel,
body.liveModalFocus .dock,body.liveModalFocus .gameMenu,body.liveModalFocus .utilityBar,
body.liveModalFocus .liveUniverse,body.liveModalFocus .planetNavigator{pointer-events:none!important}

/* A selected theme changes the entire command surface, not only the sky. */
body[data-live-theme]{
  background:var(--live-surface2)!important;color:var(--live-text)!important;
}
body[data-live-theme] #stars{filter:hue-rotate(var(--live-hue,0deg))}
body[data-live-theme] .playerIdentity,body[data-live-theme] .playerProgressHUD,
body[data-live-theme] .resourceHUD,body[data-live-theme] .activeQuest,
body[data-live-theme] .utilityAction,body[data-live-theme] .liveUniverse,
body[data-live-theme] .gameMenu,body[data-live-theme] .planetNavigator button,
body[data-live-theme] .travelReadout,body[data-live-theme] .worldLabel,
body[data-live-theme] .cableNode{
  background:linear-gradient(180deg,color-mix(in srgb,var(--live-surface) 94%,transparent),color-mix(in srgb,var(--live-surface2) 96%,transparent))!important;
  color:var(--live-text)!important;
  box-shadow:0 16px 44px color-mix(in srgb,var(--live-glow) 10%,rgba(0,0,0,.42))!important
}

@media(max-width:980px){
  .liveMetricGrid,.liveCardGrid,.liveShopGrid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .liveRankLadder{grid-template-columns:repeat(3,minmax(0,1fr))}
  .liveAnalysisGrid{grid-template-columns:1fr}
}
@media(max-width:700px){
  .liveMetricGrid,.liveCardGrid,.liveShopGrid{grid-template-columns:1fr}
  .liveForm{grid-template-columns:repeat(2,minmax(0,1fr))}
  .liveField.wide{grid-column:1/-1}
  .liveQuest{grid-template-columns:36px 1fr}.liveQuest>i{width:34px;height:34px}.liveQuest>footer{grid-column:1/-1;grid-template-columns:1fr 1fr}
  .liveSection{padding:13px}.liveSectionHead{align-items:flex-start;flex-direction:column}.liveSectionHead p{text-align:left}
  .liveBossAction{grid-template-columns:1fr}.liveBossAction aside{justify-content:flex-start}
  .liveRankLadder{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tutorialCard{max-height:42vh}
  .liveSignalStack{right:8px;bottom:8px}.liveSignalButton{padding:5px 7px}.liveSignalButton span{display:none}.liveSignalPanel{right:0;bottom:50px}
}
@media(prefers-reduced-motion:reduce){
  .liveButton,.liveToast,.tutorialCard{transition:none!important;animation:none!important}
}

/* V12 refinement release: player identity, focused navigation and responsive command surfaces. */
.gameOverlayBody,.liveSignalPanel,.quickAccessPanel,.profileSetupCard{overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:color-mix(in srgb,var(--live-accent) 62%,transparent) transparent}
.gameOverlayBody::-webkit-scrollbar,.liveSignalPanel::-webkit-scrollbar,.quickAccessPanel::-webkit-scrollbar,.profileSetupCard::-webkit-scrollbar{width:5px;height:5px}
.gameOverlayBody::-webkit-scrollbar-thumb,.liveSignalPanel::-webkit-scrollbar-thumb,.quickAccessPanel::-webkit-scrollbar-thumb,.profileSetupCard::-webkit-scrollbar-thumb{background:color-mix(in srgb,var(--live-accent) 62%,transparent);border-radius:99px}
.liveShopGrid,.liveShopTabs,.liveShopCard,.gameOverlayBody{max-width:100%;overflow-x:hidden!important}
.liveShopGrid{grid-template-columns:repeat(auto-fit,minmax(min(250px,100%),1fr))!important}

.liveSignalPanel>header>div:last-child{display:flex;gap:6px}.chatPolicy{padding:8px 12px;border-block:1px solid var(--live-line);background:color-mix(in srgb,var(--live-accent) 7%,transparent);color:var(--live-accent2);font-size:7px;font-weight:900;letter-spacing:.08em}
.chatMessages article{display:grid;grid-template-columns:34px minmax(0,1fr);gap:9px;align-items:start}.chatMessages article>i{width:32px;height:32px;display:grid;place-items:center;border:1px solid var(--live-line);border-radius:10px;background:color-mix(in srgb,var(--live-accent) 18%,transparent);color:var(--live-text);font-style:normal;font-weight:900}.chatMessages article small b{color:var(--live-text);font-size:9px}.chatMessages article em{display:flex;gap:4px;flex-wrap:wrap;margin-top:4px;font-style:normal}.chatMessages article em span{padding:3px 5px;border:1px solid var(--live-line);border-radius:999px;color:var(--live-muted);font-size:6px}.liveChatPanel.expanded{position:fixed;inset:7vh auto auto 50%;width:min(880px,calc(100vw - 36px));height:min(760px,86vh);max-height:none;transform:translateX(-50%);z-index:210}.liveChatPanel.expanded .chatMessages{min-height:0;flex:1}.liveChatPanel.expanded .chatMessages article p{font-size:12px}

.focusModeChoices{display:grid;gap:7px;padding:10px}.focusModeChoices>button{display:grid;grid-template-columns:35px 1fr;gap:9px;align-items:center;padding:10px;border:1px solid var(--live-line);border-radius:10px;background:rgba(0,0,0,.18);color:var(--live-text);text-align:left;cursor:pointer}.focusModeChoices>button:hover,.focusModeChoices>button.active{transform:translateY(-1px);border-color:color-mix(in srgb,var(--live-accent) 62%,transparent);background:color-mix(in srgb,var(--live-accent) 10%,transparent)}.focusModeChoices i{width:34px;height:34px;display:grid;place-items:center;border-radius:9px;background:color-mix(in srgb,var(--live-accent) 16%,transparent);color:var(--live-accent2);font-style:normal}.focusModeChoices b,.focusModeChoices small{display:block}.focusModeChoices b{font-size:10px}.focusModeChoices small{margin-top:3px;color:var(--live-muted);font-size:7px;line-height:1.35}
body[data-focus-experience="chill"] .activeQuest,body[data-focus-experience="chill"] .utilityBar,body[data-focus-experience="chill"] #liveLadderControl{opacity:0!important;pointer-events:none!important}
body[data-focus-experience="chill"] #quickMusicButton{box-shadow:0 0 30px color-mix(in srgb,var(--live-accent) 25%,transparent)!important}
body[data-focus-experience="ranked"] .activeQuest,body[data-focus-experience="ranked"] .liveUniverse{opacity:0!important;pointer-events:none!important}
body[data-focus-experience="ranked"] #liveLadderControl{border-color:var(--live-accent2)!important}
body[data-focus-experience="quests"] .resourceHUD,body[data-focus-experience="quests"] .liveUniverse,body[data-focus-experience="quests"] #liveLadderControl{opacity:.18!important;pointer-events:none!important}
body[data-focus-experience="quests"] .activeQuest{box-shadow:0 0 36px color-mix(in srgb,var(--live-accent) 18%,transparent)!important}
body[data-focus-experience="social"] .activeQuest,body[data-focus-experience="social"] .resourceHUD{opacity:.15!important;pointer-events:none!important}
body[data-focus-experience="social"] #globalChatControl{border-color:var(--live-accent2)!important}

.quickAccessRail{position:fixed;z-index:47;right:0;top:50%;transform:translate(calc(100% - 42px),-50%);display:grid;grid-template-columns:42px minmax(280px,340px);height:min(680px,78vh);transition:transform .3s cubic-bezier(.16,1,.3,1);font-family:var(--uiFont,Inter,system-ui,sans-serif)}.quickAccessRail.open{transform:translate(0,-50%)}.quickAccessToggle{align-self:center;width:42px;height:145px;border:1px solid var(--live-line);border-right:0;border-radius:13px 0 0 13px;background:linear-gradient(180deg,var(--live-surface),var(--live-surface2));color:var(--live-text);display:grid;place-items:center;cursor:pointer}.quickAccessToggle i{font-style:normal;color:var(--live-accent2);font-size:17px}.quickAccessToggle span{font-size:7px;font-weight:900;letter-spacing:.12em;writing-mode:vertical-rl;transform:rotate(180deg)}.quickAccessPanel{height:100%;overflow:auto;border:1px solid var(--live-line);border-right:0;border-radius:16px 0 0 16px;background:linear-gradient(180deg,var(--live-surface),var(--live-surface2));box-shadow:-24px 30px 80px rgba(0,0,0,.55)}.quickAccessPanel>header{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;padding:13px;background:color-mix(in srgb,var(--live-surface) 94%,transparent);border-bottom:1px solid var(--live-line);backdrop-filter:blur(15px)}.quickAccessPanel>header small,.quickAccessPanel>header b{display:block}.quickAccessPanel>header small,.quickAccessPanel>section>small{color:var(--live-accent2);font-size:7px;letter-spacing:.11em}.quickAccessPanel>header b{margin-top:4px}.quickAccessPanel>header button,.quickAccessPanel>footer button{border:1px solid var(--live-line);border-radius:8px;background:transparent;color:var(--live-text)}.quickAccessPanel>header button{width:30px;height:30px}.quickAccessPanel>section{padding:11px}.quickAccessPanel>section>p{color:var(--live-muted);font-size:8px}.quickAccessRow{display:grid;grid-template-columns:1fr 32px;gap:5px;margin-top:6px}.quickAccessRow button{min-width:0;border:1px solid var(--live-line);border-radius:9px;background:rgba(0,0,0,.18);color:var(--live-text);cursor:pointer}.quickAccessRow>button:first-child{display:grid;grid-template-columns:12px 1fr;gap:8px;align-items:center;padding:8px;text-align:left}.quickAccessRow>button:first-child i{width:8px;height:8px;border-radius:50%;background:var(--pin-color);box-shadow:0 0 12px var(--pin-color)}.quickAccessRow b,.quickAccessRow small{display:block}.quickAccessRow b{font-size:9px}.quickAccessRow small{margin-top:2px;color:var(--live-muted);font-size:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.quickAccessRow>button:last-child{color:var(--live-accent2)}.quickAccessPanel>footer{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:11px;border-top:1px solid var(--live-line)}.quickAccessPanel>footer button{min-height:36px;font-size:7px;font-weight:900}

.profileSetupOverlay{position:fixed;z-index:240;inset:0;display:none;place-items:center;padding:20px;background:rgba(1,2,7,.78);backdrop-filter:blur(14px)}.profileSetupOverlay.open{display:grid}.profileSetupCard{position:relative;width:min(820px,100%);max-height:92vh;overflow:auto;padding:26px;border:1px solid color-mix(in srgb,var(--live-accent2) 35%,transparent);border-radius:22px;background:linear-gradient(180deg,var(--live-surface),var(--live-surface2));box-shadow:0 35px 130px #000}.profileSetupGlow{position:absolute;right:-60px;top:-70px;width:260px;height:260px;border-radius:50%;background:radial-gradient(circle,color-mix(in srgb,var(--live-accent) 23%,transparent),transparent 68%);pointer-events:none}.profileSetupCard>header{position:relative;display:flex;justify-content:space-between;gap:22px}.profileSetupCard>header small{color:var(--live-accent2);font-size:8px;font-weight:900;letter-spacing:.13em}.profileSetupCard h2{margin:8px 0;font:800 clamp(28px,5vw,46px)/1 var(--displayFont,var(--uiFont));letter-spacing:-.035em}.profileSetupCard header p{max-width:620px;color:var(--live-muted);font-size:11px;line-height:1.55}.profileSetupCard>header button{width:36px;height:36px;border:1px solid var(--live-line);border-radius:10px;background:transparent;color:var(--live-text)}#profileSetupForm{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin-top:22px}#profileSetupForm>label,#profileSetupForm fieldset{display:grid;gap:7px;color:var(--live-accent2);font-size:8px;font-weight:900;letter-spacing:.08em}#profileSetupForm input{width:100%;height:46px;padding:0 13px;border:1px solid var(--live-line);border-radius:10px;background:rgba(0,0,0,.2);color:var(--live-text);font-size:12px}#profileSetupForm fieldset{grid-column:1/-1;margin:0;padding:14px;border:1px solid var(--live-line);border-radius:13px}#profileSetupForm legend span{color:var(--live-muted);font-weight:600}.profileCost{color:var(--live-muted);font-size:7px;font-weight:600;letter-spacing:0}.profileAttributes{display:flex;flex-wrap:wrap;gap:7px}.profileAttributes label input{position:absolute;opacity:0}.profileAttributes label span{display:block;padding:8px 10px;border:1px solid var(--live-line);border-radius:999px;background:rgba(0,0,0,.16);color:var(--live-muted);cursor:pointer}.profileAttributes label input:checked+span{border-color:var(--live-accent);background:color-mix(in srgb,var(--live-accent) 16%,transparent);color:var(--live-text)}#profileSetupForm>footer{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:8px}#profileSetupForm>footer span{color:var(--live-muted);font-size:8px}
.profileIdentityPanel{display:grid;grid-template-columns:56px 1fr auto;gap:14px;align-items:center}.profileLiveAvatar{width:56px;height:56px;border:1px solid var(--live-line);border-radius:50%;display:grid;place-items:center;background:radial-gradient(circle at 35% 30%,#fff,var(--live-accent) 18%,var(--live-surface2) 72%);font-size:22px;font-weight:900}.profileIdentityPanel h3{margin:4px 0;font-size:22px}.profileIdentityPanel p span{display:inline-block;margin:3px;padding:4px 6px;border:1px solid var(--live-line);border-radius:999px}

.liveBossCard{position:relative;overflow:hidden}.liveBossPortrait{height:126px;position:relative;display:grid;place-items:center;margin:-3px -3px 12px;background:radial-gradient(circle,color-mix(in srgb,var(--boss-color) 20%,transparent),transparent 64%);border-bottom:1px solid color-mix(in srgb,var(--boss-color) 24%,transparent)}.liveBossPortrait>b{width:56px;height:56px;border-radius:45% 55% 48% 52%;background:radial-gradient(circle at 34% 28%,#fff,var(--boss-color) 15%,color-mix(in srgb,var(--boss-color) 38%,#03040a) 52%,#010207 78%);box-shadow:0 0 34px color-mix(in srgb,var(--boss-color) 60%,transparent);animation:bossBreathe 2.8s ease-in-out infinite}.liveBossPortrait>i{position:absolute;width:82px;height:82px;border:1px solid color-mix(in srgb,var(--boss-color) 70%,transparent);border-radius:42% 58% 60% 40%;animation:bossSigil 8s linear infinite}.liveBossPortrait>i:nth-child(2){width:102px;height:44px;transform:rotate(22deg);animation-duration:11s}.liveBossPortrait>i:nth-child(3){width:38px;height:106px;transform:rotate(-28deg);animation-duration:7s}.liveBossPortrait>span{position:absolute;width:8px;height:8px;border-radius:50%;background:var(--boss-color);box-shadow:34px 18px 0 color-mix(in srgb,var(--boss-color) 70%,white),-31px -13px 0 var(--boss-color),0 0 13px var(--boss-color)}.liveBossPortrait.hydra>b{width:42px;height:60px;border-radius:50% 50% 34% 34%;box-shadow:-33px 15px 0 -5px color-mix(in srgb,var(--boss-color) 60%,#06020d),33px 15px 0 -5px color-mix(in srgb,var(--boss-color) 60%,#06020d),0 0 40px var(--boss-color)}.liveBossPortrait.hydra:after{content:"";position:absolute;width:118px;height:44px;border:3px solid var(--boss-color);border-top:0;border-radius:0 0 70% 70%;filter:drop-shadow(0 0 9px var(--boss-color));opacity:.6}.liveBossCard.defeated .liveBossPortrait{filter:grayscale(.6);opacity:.65}@keyframes bossBreathe{50%{transform:scale(1.08);filter:brightness(1.2)}}@keyframes bossSigil{to{rotate:1turn}}
.codexBossGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.codexBossCard{position:relative;overflow:hidden;padding:13px;border:1px solid var(--live-line);border-radius:14px;background:linear-gradient(180deg,color-mix(in srgb,var(--boss-color) 7%,var(--live-surface)),var(--live-surface2))}.codexBossCard h4{margin:7px 0;font-size:17px}.codexBossCard p{color:var(--live-muted);font-size:9px;line-height:1.5}.codexBossCard em{color:var(--live-accent2);font-size:8px}.codexDefeatedSeal{position:absolute;inset:0;display:grid;place-items:center;align-content:center;gap:7px;background:linear-gradient(135deg,rgba(91,54,190,.68),rgba(17,10,37,.82));border:2px solid #e9c46a;color:#f4df9a;backdrop-filter:blur(2px);opacity:.88}.codexDefeatedSeal b{font-size:92px;line-height:.7;font-family:Arial,sans-serif;font-weight:200;text-shadow:0 0 30px #8c78ff}.codexDefeatedSeal span{font-size:10px;font-weight:950;letter-spacing:.28em}.codexBossCard.codexReveal{animation:codexReveal 2s ease both;z-index:3}@keyframes codexReveal{0%{transform:scale(.94);box-shadow:0 0 0 transparent}28%,72%{transform:scale(1.035);box-shadow:0 0 70px color-mix(in srgb,var(--boss-color) 48%,transparent)}100%{transform:none}}

.rewardCloudWeek{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:7px}.rewardCloudWeek article{min-height:100px;padding:11px;border:1px solid var(--live-line);border-radius:11px;background:rgba(0,0,0,.16);display:flex;flex-direction:column;justify-content:space-between}.rewardCloudWeek small{color:var(--live-muted);font-size:7px}.rewardCloudWeek b{font-size:10px}.rewardCloudWeek span{color:var(--live-muted);font-size:7px}.rewardCloudWeek article.current{border-color:var(--live-accent);box-shadow:0 0 24px color-mix(in srgb,var(--live-accent) 17%,transparent)}.rewardCloudWeek article.jackpot{background:linear-gradient(160deg,color-mix(in srgb,var(--live-accent2) 12%,transparent),rgba(0,0,0,.18))}
.journeySteps{display:grid;gap:10px;margin:0;padding:0;list-style:none;counter-reset:journey}.journeySteps li{counter-increment:journey;display:grid;grid-template-columns:38px 1fr;gap:10px;padding:12px;border:1px solid var(--live-line);border-radius:11px;background:rgba(0,0,0,.13)}.journeySteps li:before{content:counter(journey,decimal-leading-zero);width:38px;height:38px;display:grid;place-items:center;border-radius:10px;background:color-mix(in srgb,var(--live-accent) 15%,transparent);color:var(--live-accent2);font-weight:900}.journeySteps b,.journeySteps span{display:block}.journeySteps b{font-size:11px}.journeySteps span{margin-top:4px;color:var(--live-muted);font-size:9px;line-height:1.45}.journeyRoute{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.journeyRoute button{display:grid;grid-template-columns:36px 1fr;gap:9px;align-items:center;padding:10px;border:1px solid var(--live-line);border-radius:10px;background:rgba(0,0,0,.16);color:var(--live-text);text-align:left;cursor:pointer}.journeyRoute i{width:34px;height:34px;display:grid;place-items:center;border-radius:9px;background:color-mix(in srgb,var(--live-accent) 14%,transparent);color:var(--live-accent2);font-style:normal}
.hudAfterTour{position:fixed;z-index:230;left:50%;bottom:28px;width:min(620px,calc(100vw - 28px));padding:18px;border:1px solid color-mix(in srgb,var(--live-accent2) 42%,transparent);border-radius:15px;background:linear-gradient(180deg,var(--live-surface),var(--live-surface2));box-shadow:0 25px 90px rgba(0,0,0,.66);color:var(--live-text);opacity:0;transform:translate(-50%,18px);transition:.35s cubic-bezier(.16,1,.3,1)}.hudAfterTour.show{opacity:1;transform:translate(-50%,0)}.hudAfterTour small{color:var(--live-accent2);font-size:8px;font-weight:900;letter-spacing:.12em}.hudAfterTour>b{display:block;margin:7px 0;font-size:18px}.hudAfterTour p{color:var(--live-muted);font-size:10px;line-height:1.5}.hudAfterTour footer{display:flex;justify-content:flex-end;gap:8px}

body.tutorialMode .liveSignalStack,body.tutorialMode .cornerControls,body.tutorialMode .quickAccessRail{opacity:1!important;visibility:visible!important;pointer-events:none!important;filter:none!important}
body.hudEditMode .hudCustomizable>*{zoom:var(--hud-content-scale,1);max-width:100%}
body:not(.universeMode) .quickAccessRail{opacity:0;visibility:hidden;pointer-events:none}
body.universeMode .quickAccessRail{opacity:1;visibility:visible;pointer-events:auto}

@media(max-width:1100px){
  .quickAccessRail{height:min(610px,74vh)}
  .rewardCloudWeek{grid-template-columns:repeat(4,minmax(0,1fr))}.rewardCloudWeek article:last-child{grid-column:span 2}
  .codexBossGrid{grid-template-columns:1fr 1fr}
  .liveSignalButton{grid-template-columns:25px 1fr;padding-inline:7px}
}
@media(max-width:760px){
  .quickAccessRail{top:auto;bottom:78px;height:min(600px,72vh);grid-template-columns:38px minmax(250px,calc(100vw - 38px));transform:translate(calc(100% - 38px),0)}.quickAccessRail.open{transform:none}.quickAccessToggle{width:38px;height:128px}
  .liveSignalPanel.expanded{inset:8px 8px auto 8px;width:auto;height:calc(100dvh - 16px);transform:none}
  #profileSetupForm{grid-template-columns:1fr}.profileSetupCard{padding:18px}#profileSetupForm>label,#profileSetupForm fieldset,#profileSetupForm>footer{grid-column:1}.profileSetupCard>header p{font-size:10px}#profileSetupForm>footer{align-items:stretch;flex-direction:column}
  .profileIdentityPanel{grid-template-columns:48px 1fr}.profileIdentityPanel>.liveButton{grid-column:1/-1}.profileLiveAvatar{width:48px;height:48px}
  .codexBossGrid,.journeyRoute{grid-template-columns:1fr}.rewardCloudWeek{grid-template-columns:repeat(2,minmax(0,1fr))}.rewardCloudWeek article:last-child{grid-column:1/-1}
  .hudAfterTour{bottom:10px}.hudAfterTour footer{display:grid;grid-template-columns:1fr 1fr}
  .gameOverlayCard{width:calc(100vw - 12px)!important;max-height:calc(100dvh - 12px)!important;border-radius:16px!important}.gameOverlayBody{padding-inline:13px!important}
  .liveToolbar{align-items:stretch;flex-direction:column}.liveToolbar>div{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible!important}.liveToolbar .liveBadge{align-self:flex-start}
}

/* V13 final-product clarity, alignment and interaction pass. */
body .gameOverlay .gameOverlayShell{width:min(1160px,calc(100vw - 32px))!important;max-height:min(900px,calc(100dvh - 32px))!important;border-radius:20px!important}
body .gameOverlay .gameOverlayBody{max-height:calc(100dvh - 118px)!important;padding:24px 26px 34px!important;overflow-x:hidden!important}
body .gameOverlay .gameOverlayTop{align-items:center!important;padding:18px 26px!important;min-height:82px!important}
body .gameOverlay .gameOverlayTop small{font-size:11px!important;line-height:1.3!important;letter-spacing:.12em!important}
body .gameOverlay .gameOverlayTop h2{font-size:clamp(27px,3vw,34px)!important;line-height:1.08!important;letter-spacing:-.025em!important}
body .gameOverlay .gameOverlayTop button{width:40px!important;height:40px!important;font-size:21px!important;flex:0 0 auto!important}
body .gameOverlay .screenHero{grid-template-columns:minmax(0,1fr) auto!important;gap:24px!important;padding:22px!important}
body .gameOverlay .screenHero small,body .gameOverlay .screenSection>small,body .gameOverlay .liveSection small{font-size:11px!important;line-height:1.35!important;letter-spacing:.09em!important}
body .gameOverlay .screenHero h3{font-size:clamp(25px,3vw,31px)!important;line-height:1.12!important;margin:7px 0!important}
body .gameOverlay .screenHero p{max-width:820px!important;font-size:14px!important;line-height:1.65!important;color:#c1cad8!important}
body .gameOverlay .screenHeroMetric b{font-size:27px!important}body .gameOverlay .screenHeroMetric span{font-size:10px!important;line-height:1.35!important}
body .gameOverlay .liveSection,body .gameOverlay .screenSection{padding:20px!important;margin-top:16px!important}
body .gameOverlay .liveSectionHead{align-items:flex-start!important;margin-bottom:16px!important}
body .gameOverlay .liveSectionHead h3,body .gameOverlay .screenSection h4{font-size:21px!important;line-height:1.25!important;margin-top:6px!important}
body .gameOverlay .liveSectionHead p{max-width:600px!important;font-size:13px!important;line-height:1.6!important;color:#b9c3d1!important}
body .gameOverlay .liveCardGrid{gap:12px!important}
body .gameOverlay .liveCard,body .gameOverlay .screenCard{padding:16px!important;min-width:0!important}
body .gameOverlay .liveCard b,body .gameOverlay .screenCard b{font-size:15px!important;line-height:1.35!important;margin-top:7px!important}
body .gameOverlay .liveCard p,body .gameOverlay .screenCard p{font-size:13px!important;line-height:1.62!important;color:#b8c2d0!important;overflow-wrap:anywhere!important}
body .gameOverlay .liveCard em,body .gameOverlay .screenCard em{font-size:10px!important;line-height:1.4!important}
body .gameOverlay .liveButton,body .gameOverlay .settingsAction,body .gameOverlay .settingChoice{min-height:43px!important;padding:9px 14px!important;font-size:11px!important;line-height:1.25!important;white-space:normal!important}
body .gameOverlay .liveMetric small,body .gameOverlay .liveQuest small,body .gameOverlay .liveShopCard small,body .gameOverlay .liveField label{font-size:10px!important;line-height:1.35!important}
body .gameOverlay .liveMetric b{font-size:24px!important}body .gameOverlay .liveMetric em{font-size:10px!important}
body .gameOverlay .liveQuest b,body .gameOverlay .liveShopCard h4{font-size:16px!important;line-height:1.3!important}
body .gameOverlay .liveQuest p,body .gameOverlay .liveShopCard p,body .gameOverlay .liveHelp,body .gameOverlay .liveFormActions span{font-size:12px!important;line-height:1.6!important;color:#b9c3d1!important}
body .gameOverlay .liveField input,body .gameOverlay .liveField select,body .gameOverlay .liveField textarea{min-height:46px!important;padding:11px 13px!important;font-size:14px!important;line-height:1.45!important}
body .gameOverlay .liveField textarea{min-height:170px!important}
body .gameOverlay .liveShopTabs,body .gameOverlay .liveQuestPlanets{display:flex!important;flex-wrap:wrap!important;overflow-x:hidden!important;white-space:normal!important}
body .gameOverlay .liveShopGrid{overflow-x:hidden!important;grid-template-columns:repeat(3,minmax(0,1fr))!important}

/* Documentation and feedback use the full readable width of their cards. */
body .gameOverlay .journeySteps{gap:12px!important;width:100%!important}
body .gameOverlay .journeySteps li{grid-template-columns:48px minmax(0,1fr)!important;grid-template-rows:auto auto!important;column-gap:14px!important;row-gap:4px!important;align-items:start!important;padding:16px!important;min-height:96px!important;width:100%!important}
body .gameOverlay .journeySteps li:before{grid-column:1!important;grid-row:1/3!important;width:44px!important;height:44px!important;font-size:14px!important}
body .gameOverlay .journeySteps li>b,body .gameOverlay .journeySteps li>span{grid-column:2!important;min-width:0!important;width:100%!important}
body .gameOverlay .journeySteps li>b{grid-row:1!important;font-size:15px!important;line-height:1.35!important}
body .gameOverlay .journeySteps li>span{grid-row:2!important;margin:0!important;font-size:13px!important;line-height:1.62!important;color:#bec8d6!important;overflow-wrap:normal!important;word-break:normal!important}
body .gameOverlay .journeyRoute{gap:10px!important}body .gameOverlay .journeyRoute button{min-height:58px!important;padding:11px 13px!important;font-size:13px!important;line-height:1.35!important}
body .gameOverlay #feedbackForm{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important;width:100%!important}
body .gameOverlay #feedbackForm .liveField.full,body .gameOverlay #feedbackForm .liveFormActions{grid-column:1/-1!important}
body .gameOverlay #feedbackForm .liveFormActions{align-items:flex-end!important}

/* Quick Access contains every navigable destination without sacrificing legibility. */
body .quickAccessRail{grid-template-columns:46px minmax(340px,390px)!important;height:min(760px,84vh)!important}
body .quickAccessToggle{width:46px!important;height:160px!important}.quickAccessToggle span{font-size:10px!important}.quickAccessToggle i{font-size:20px!important}
body .quickAccessPanel>header{padding:16px!important}body .quickAccessPanel>header small,body .quickAccessPanel>section>small{font-size:10px!important;line-height:1.3!important}body .quickAccessPanel>header b{font-size:16px!important}
body .quickAccessPanel>section{padding:14px!important}body .quickAccessPanel>section>p{font-size:12px!important;line-height:1.55!important}
body .quickAccessRow{grid-template-columns:minmax(0,1fr) 40px!important;gap:7px!important;margin-top:8px!important}
body .quickAccessRow>button:first-child{grid-template-columns:22px minmax(0,1fr)!important;gap:10px!important;min-height:54px!important;padding:10px!important}
body .quickAccessRow>button:first-child i{width:20px!important;height:20px!important;display:grid!important;place-items:center!important;font-size:10px!important;font-style:normal!important;color:var(--pin-color)!important;background:color-mix(in srgb,var(--pin-color) 14%,transparent)!important}
body .quickAccessRow b{font-size:13px!important;line-height:1.3!important}body .quickAccessRow small{font-size:10px!important;line-height:1.35!important;margin-top:3px!important}
body .quickAccessRow>button:last-child{min-height:54px!important;font-size:18px!important}body .quickAccessPanel>footer button{min-height:44px!important;font-size:10px!important;padding:8px!important}

/* Cinematic updates block the universe briefly and are always skippable. */
body .liveMilestone{z-index:310!important;background:rgba(1,2,7,.78)!important;backdrop-filter:blur(12px)!important;pointer-events:auto!important;isolation:isolate!important}
body .liveMilestone .milestoneCard{position:relative;width:min(680px,calc(100vw - 44px))!important;min-width:0!important;padding:34px!important;border:1px solid color-mix(in srgb,var(--live-accent2) 62%,transparent)!important;border-radius:22px!important;background:radial-gradient(circle at 50% 0,color-mix(in srgb,var(--live-accent) 18%,transparent),transparent 45%),linear-gradient(180deg,var(--live-surface),var(--live-surface2))!important;text-align:center!important;box-shadow:0 0 120px color-mix(in srgb,var(--live-accent) 25%,transparent),0 34px 100px rgba(0,0,0,.78)!important;transform:scale(.88) translateY(12px)!important;transition:transform .48s cubic-bezier(.16,1,.3,1)!important}
body .liveMilestone.show .milestoneCard{transform:none!important}
body .liveMilestone .milestoneCard>small{font-size:11px!important;line-height:1.3!important;letter-spacing:.14em!important}
body .liveMilestone .milestoneCard>b{font-size:clamp(28px,5vw,46px)!important;line-height:1.08!important;letter-spacing:-.02em!important;margin:13px 0 9px!important}
body .liveMilestone .milestoneCard>p{max-width:560px!important;margin:0 auto!important;font-size:15px!important;line-height:1.6!important;color:#c7d0dd!important}
body .milestoneDismiss{position:fixed!important;z-index:4!important;right:24px!important;top:50%!important;transform:translateY(-50%) translateX(10px)!important;display:flex!important;align-items:center!important;gap:9px!important;min-height:44px!important;padding:0 8px 0 14px!important;border:1px solid var(--live-line)!important;border-radius:999px!important;background:var(--live-surface)!important;color:var(--live-text)!important;font:800 11px/1 var(--uiFont)!important;letter-spacing:.08em!important;cursor:pointer!important;opacity:0!important;transition:.28s!important}.liveMilestone.show .milestoneDismiss{opacity:1!important;transform:translateY(-50%)!important}.milestoneDismiss span{display:grid!important;place-items:center!important;width:30px!important;height:30px!important;border-radius:50%!important;background:color-mix(in srgb,var(--live-accent) 18%,transparent)!important;font-size:18px!important}
body .milestoneSigil{position:relative;width:90px;height:90px;margin:0 auto 18px;display:grid;place-items:center}.milestoneSigil:before,.milestoneSigil:after{content:"";position:absolute;inset:4px;border:1px solid var(--live-accent);border-radius:32% 68% 50% 50%;animation:milestoneOrbit 3s linear infinite}.milestoneSigil:after{inset:18px;border-color:var(--live-accent2);animation-direction:reverse;animation-duration:2s}.milestoneSigil span{width:28px;height:28px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#fff,var(--live-accent) 24%,#24144c 78%);box-shadow:0 0 34px var(--live-accent)}
.milestoneProgress{height:3px!important;margin-top:22px!important;border-radius:99px!important;overflow:hidden!important;background:rgba(255,255,255,.06)!important}.milestoneProgress i{display:block!important;width:100%!important;height:100%!important;margin:0!important;background:linear-gradient(90deg,var(--live-accent),var(--live-accent2))!important;transform-origin:left!important;animation:milestoneCountdown 2.35s linear both!important}.caseSpin .milestoneProgress i{animation-duration:3.6s!important}
.caseSpinScene{position:relative;width:230px;height:180px;margin:0 auto 22px;perspective:760px;display:grid;place-items:center}.caseCube{position:relative;width:112px;height:80px;transform-style:preserve-3d;animation:caseTumble 1.7s cubic-bezier(.3,.7,.2,1) infinite}.caseCube i{position:absolute;inset:0;border:2px solid var(--live-accent2);background:linear-gradient(145deg,color-mix(in srgb,var(--live-accent) 58%,#111425),#070a12);box-shadow:inset 0 0 24px rgba(255,255,255,.08)}.caseCube i:nth-child(1){transform:translateZ(40px)}.caseCube i:nth-child(2){transform:rotateY(180deg) translateZ(40px)}.caseCube i:nth-child(3){transform:rotateY(90deg) translateZ(56px);width:80px;left:16px}.caseCube i:nth-child(4){transform:rotateY(-90deg) translateZ(56px);width:80px;left:16px}.caseCube i:nth-child(5){transform:rotateX(90deg) translateZ(40px)}.caseCube i:nth-child(6){transform:rotateX(-90deg) translateZ(40px)}.caseCube em{position:absolute;z-index:2;inset:0;display:grid;place-items:center;transform:translateZ(42px);color:#fff4bd;font-size:25px;font-weight:950;font-style:normal;text-shadow:0 0 16px var(--live-accent2)}.caseOrbit{position:absolute;width:210px;height:70px;border:1px solid var(--live-accent);border-radius:50%;animation:caseOrbit 2s linear infinite;box-shadow:0 0 28px color-mix(in srgb,var(--live-accent) 35%,transparent)}.caseBeam{position:absolute;bottom:4px;width:170px;height:30px;background:radial-gradient(ellipse,var(--live-accent2),transparent 68%);filter:blur(8px);opacity:.45}.caseReveal .caseCube{animation:caseReveal .75s cubic-bezier(.16,1,.3,1) both}.caseReveal .caseBeam{opacity:.85}.caseReveal .caseOrbit{border-color:var(--live-accent2);box-shadow:0 0 55px var(--live-accent2)}
@keyframes milestoneOrbit{to{transform:rotate(360deg)}}@keyframes milestoneCountdown{to{transform:scaleX(0)}}@keyframes caseTumble{to{transform:rotateX(360deg) rotateY(540deg)}}@keyframes caseOrbit{to{transform:rotateZ(360deg) rotateX(64deg)}}@keyframes caseReveal{0%{transform:rotateX(0) rotateY(0) scale(1)}55%{transform:rotateX(24deg) rotateY(190deg) scale(1.32)}100%{transform:rotateX(0) rotateY(360deg) scale(1.06)}}

/* Calm mode never blocks the player. */
body .liveMilestone.calm{inset:auto 22px 22px auto!important;width:min(430px,calc(100vw - 32px))!important;display:block!important;background:transparent!important;backdrop-filter:none!important;pointer-events:none!important}
body .liveMilestone.calm .milestoneCard{width:100%!important;display:grid!important;grid-template-columns:42px minmax(0,1fr)!important;column-gap:12px!important;padding:15px!important;border-radius:14px!important;text-align:left!important;box-shadow:0 20px 58px rgba(0,0,0,.6)!important;transform:translateX(18px)!important}
body .liveMilestone.calm.show .milestoneCard{transform:none!important}.liveMilestone.calm .milestoneSigil,.liveMilestone.calm .caseSpinScene{grid-column:1!important;grid-row:1/4!important;width:42px!important;height:42px!important;margin:0!important;align-self:center!important}.liveMilestone.calm .milestoneSigil:before{inset:2px!important}.liveMilestone.calm .milestoneSigil:after,.liveMilestone.calm .caseOrbit,.liveMilestone.calm .caseBeam,.liveMilestone.calm .caseCube i{display:none!important}.liveMilestone.calm .caseCube{width:38px!important;height:30px!important;animation:none!important;transform:none!important}.liveMilestone.calm .caseCube em{transform:none!important;font-size:12px!important}.liveMilestone.calm .milestoneCard>small,.liveMilestone.calm .milestoneCard>b,.liveMilestone.calm .milestoneCard>p,.liveMilestone.calm .milestoneProgress{grid-column:2!important}.liveMilestone.calm .milestoneCard>small{font-size:9px!important}.liveMilestone.calm .milestoneCard>b{font-size:16px!important;margin:3px 0!important}.liveMilestone.calm .milestoneCard>p{font-size:12px!important;line-height:1.45!important;margin:0!important}.liveMilestone.calm .milestoneProgress{margin-top:9px!important}.liveMilestone.calm .milestoneDismiss{display:none!important}

/* Post-tutorial accessibility choice becomes the sole focus. */
body .hudAfterTour{inset:0!important;left:0!important;bottom:auto!important;width:100%!important;height:100%!important;display:grid!important;place-items:center!important;padding:22px!important;background:rgba(1,2,7,.78)!important;backdrop-filter:blur(12px)!important;transform:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;pointer-events:none!important}
body .hudAfterTour.show{pointer-events:auto!important}.hudAfterTourCard{width:min(680px,100%);padding:28px;border:1px solid color-mix(in srgb,var(--live-accent2) 45%,transparent);border-radius:20px;background:linear-gradient(180deg,var(--live-surface),var(--live-surface2));box-shadow:0 30px 110px rgba(0,0,0,.75);transform:translateY(18px) scale(.97);transition:.35s cubic-bezier(.16,1,.3,1)}.hudAfterTour.show .hudAfterTourCard{transform:none}.hudAfterTourCard>small{font-size:11px!important}.hudAfterTourCard>b{font-size:25px!important;line-height:1.25!important;margin:9px 0!important}.hudAfterTourCard p{font-size:14px!important;line-height:1.65!important}.hudAfterTourCard footer{display:flex;justify-content:flex-end;gap:10px;margin-top:18px}

/* Settings, HUD and compact universe copy remain readable without oversized headings. */
body .settingPanel{padding:20px!important}body .settingPanel>small{font-size:10px!important}body .settingPanel h4{font-size:20px!important;line-height:1.3!important}body .settingPanel>p{font-size:13px!important;line-height:1.65!important}body .settingsRow b{font-size:14px!important}body .settingsRow span{font-size:12px!important;line-height:1.5!important}
body .playerIdentityCopy small,body .playerProgressTop,body .resourceHUD small,body .questHeader,body .utilityAction small{font-size:8px!important;line-height:1.3!important}body .playerIdentityCopy b{font-size:13px!important}body .playerIdentityCopy em{font-size:9px!important}body .activeQuest h3{font-size:18px!important}body .activeQuest p{font-size:12px!important;line-height:1.55!important}body .utilityAction b{font-size:10px!important}

@media(max-width:980px){
  body .gameOverlay .liveShopGrid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body .gameOverlay .screenHero{grid-template-columns:1fr!important}.screenHeroMetric{text-align:left!important}
  body .quickAccessRail{grid-template-columns:42px minmax(300px,360px)!important}
}
@media(max-width:700px){
  body .gameOverlay{padding:6px!important}body .gameOverlay .gameOverlayShell{width:calc(100vw - 12px)!important;max-height:calc(100dvh - 12px)!important;border-radius:15px!important}body .gameOverlay .gameOverlayTop{min-height:70px!important;padding:13px 15px!important}body .gameOverlay .gameOverlayTop h2{font-size:25px!important}body .gameOverlay .gameOverlayBody{max-height:calc(100dvh - 82px)!important;padding:14px 13px 24px!important}
  body .gameOverlay .liveCardGrid,body .gameOverlay .liveShopGrid,body .gameOverlay .codexBossGrid,body .gameOverlay .journeyRoute{grid-template-columns:1fr!important}body .gameOverlay #feedbackForm{grid-template-columns:1fr!important}body .gameOverlay #feedbackForm .liveField{grid-column:1!important}
  body .gameOverlay .liveSection,body .gameOverlay .screenSection{padding:14px!important}body .gameOverlay .screenHero{padding:15px!important}body .gameOverlay .screenHero h3{font-size:24px!important}body .gameOverlay .screenHero p,body .gameOverlay .liveCard p,body .gameOverlay .screenCard p{font-size:13px!important}
  body .gameOverlay .journeySteps li{grid-template-columns:42px minmax(0,1fr)!important;padding:13px!important}.journeySteps li:before{width:38px!important;height:38px!important}
  body .quickAccessRail{bottom:70px!important;grid-template-columns:40px minmax(270px,calc(100vw - 40px))!important;height:min(650px,78vh)!important}.quickAccessToggle{width:40px!important}
  body .milestoneDismiss{top:auto!important;right:50%!important;bottom:18px!important;transform:translateX(50%) translateY(8px)!important}.liveMilestone.show .milestoneDismiss{transform:translateX(50%)!important}.liveMilestone .milestoneCard{padding:24px 18px!important}.caseSpinScene{transform:scale(.82);margin-top:-12px;margin-bottom:2px}
  body .liveMilestone.calm{right:12px!important;bottom:12px!important;width:calc(100vw - 24px)!important}.hudAfterTourCard{padding:22px 18px!important}.hudAfterTourCard footer{display:grid!important;grid-template-columns:1fr!important}
}
@media(prefers-reduced-motion:reduce){.caseCube,.caseOrbit,.milestoneSigil:before,.milestoneSigil:after{animation:none!important}.liveMilestone .milestoneProgress i{animation:none!important}}

body .liveMilestone{--milestone-accent:var(--live-accent)}
body .liveMilestone .milestoneCard{border-color:color-mix(in srgb,var(--milestone-accent) 48%,var(--live-accent2))!important;box-shadow:0 0 120px color-mix(in srgb,var(--milestone-accent) 28%,transparent),0 34px 100px rgba(0,0,0,.78)!important}
body .liveMilestone .milestoneSigil:before{border-color:var(--milestone-accent)!important}body .liveMilestone .milestoneSigil span{background:radial-gradient(circle at 35% 30%,#fff,var(--milestone-accent) 24%,#24144c 78%)!important;box-shadow:0 0 34px var(--milestone-accent)!important}
body .liveMilestone .milestoneProgress i{background:linear-gradient(90deg,var(--milestone-accent),var(--live-accent2))!important}
body .liveMilestone.questComplete{--milestone-accent:#e9c46a}body .liveMilestone.achievement{--milestone-accent:#48dff0}body .liveMilestone.themeUnlocked{--milestone-accent:#a78bfa}body .liveMilestone.caseSpin{--milestone-accent:#e9c46a}body .liveMilestone.level{--milestone-accent:#61dcd2}
body .liveMilestone.bossDefeated .milestoneCard{background:radial-gradient(circle at 50% 0,color-mix(in srgb,var(--milestone-accent) 28%,transparent),transparent 48%),linear-gradient(180deg,#140b14,var(--live-surface2))!important}
body .liveMilestone.caseSpin .milestoneCard{background:radial-gradient(circle at 50% 0,rgba(233,196,106,.22),transparent 48%),linear-gradient(180deg,#111020,#04060d)!important}
body .liveMilestone.caseSpin.cinematic .milestoneCard>b,body .liveMilestone.caseSpin.cinematic .milestoneCard>p{opacity:0!important;transform:translateY(8px)!important;transition:opacity .35s ease,transform .45s cubic-bezier(.16,1,.3,1)!important}body .liveMilestone.caseSpin.cinematic.caseReveal .milestoneCard>b,body .liveMilestone.caseSpin.cinematic.caseReveal .milestoneCard>p{opacity:1!important;transform:none!important}

/* Remaining dense systems follow the same readable hierarchy. */
body .gameOverlay .liveEyebrow{font-size:11px!important;line-height:1.35!important}body .gameOverlay .liveTitle{font-size:clamp(25px,3vw,33px)!important;line-height:1.1!important}body .gameOverlay .liveHelp{font-size:14px!important;line-height:1.65!important}body .gameOverlay .liveBadge{min-height:34px!important;padding:6px 11px!important;font-size:10px!important}
body .gameOverlay .liveQuest{grid-template-columns:48px minmax(0,1fr) minmax(150px,auto)!important;gap:14px!important;padding:15px!important}body .gameOverlay .liveQuest>i{width:44px!important;height:44px!important;font-size:13px!important}body .gameOverlay .liveQuest b{font-size:15px!important;line-height:1.35!important}body .gameOverlay .liveQuest p,body .gameOverlay .liveQuest>div>small{font-size:12px!important;line-height:1.6!important}body .gameOverlay .liveQuest em{font-size:10px!important}
body .gameOverlay .liveJournalWrap{overflow:auto!important}body .gameOverlay .liveJournalTable{min-width:760px!important}body .gameOverlay .liveJournalTable header{font-size:10px!important;line-height:1.35!important;padding:13px 14px!important}body .gameOverlay .liveJournalRow{font-size:13px!important;line-height:1.45!important;padding:13px 14px!important}body .gameOverlay .liveJournalRow small{font-size:11px!important;line-height:1.45!important}
body .gameOverlay .liveAnalysisPanel h4{font-size:17px!important;line-height:1.35!important}body .gameOverlay .liveAnalysisList li{font-size:13px!important;line-height:1.62!important;margin:9px 0!important}
body .gameOverlay .liveBossAction b{font-size:16px!important}body .gameOverlay .liveBossAction span{font-size:12px!important;line-height:1.55!important}body .gameOverlay .livePlanetActions h4{font-size:19px!important}body .gameOverlay .livePlanetActions p{font-size:13px!important;line-height:1.62!important}
body .gameOverlay .liveRank{padding:13px 9px!important}body .gameOverlay .liveRank small{font-size:10px!important}body .gameOverlay .liveRank b{font-size:12px!important;line-height:1.35!important}body .gameOverlay .liveLeaderboard p{min-height:54px!important;font-size:13px!important}body .gameOverlay .liveLeaderboard span small{font-size:11px!important}body .gameOverlay .liveLeaderboard em{font-size:12px!important}
body .rewardCloudWeek article{min-height:118px!important;padding:14px!important}body .rewardCloudWeek small{font-size:10px!important}body .rewardCloudWeek b{font-size:13px!important;line-height:1.35!important}body .rewardCloudWeek span{font-size:10px!important;line-height:1.4!important}
body .codexBossCard{padding:16px!important}body .codexBossCard h4{font-size:18px!important}body .codexBossCard p{font-size:13px!important;line-height:1.6!important}body .codexBossCard em{font-size:11px!important;line-height:1.45!important}
body .liveSignalButton{height:50px!important;grid-template-columns:31px minmax(0,1fr)!important;padding:6px 11px!important}body .liveSignalButton>i{width:30px!important;height:30px!important}body .liveSignalButton small{font-size:8px!important;line-height:1.25!important}body .liveSignalButton b{font-size:10px!important;line-height:1.25!important}
body .liveSignalPanel{width:min(430px,calc(100vw - 28px))!important;max-height:min(650px,76vh)!important}body .liveSignalPanel>header{padding:15px!important}body .liveSignalPanel>header small{font-size:10px!important}body .liveSignalPanel>header b{font-size:16px!important}body .signalRows>p{font-size:12px!important;line-height:1.45!important;padding:12px 0!important}body .signalRows span small{font-size:10px!important}body .signalRows em{font-size:11px!important}.signalEmpty{font-size:12px!important}
body .chatLanguage{font-size:10px!important;padding:11px 14px!important}body .chatLanguage select{height:38px!important;font-size:12px!important;padding-inline:9px!important}body .chatPolicy{font-size:10px!important;line-height:1.4!important;padding:9px 14px!important}body .chatMessages article small,body .chatMessages article small b{font-size:11px!important;line-height:1.45!important}body .chatMessages article p{font-size:13px!important;line-height:1.58!important}body .chatMessages article em span{font-size:9px!important}body .liveChatPanel input{height:44px!important;font-size:13px!important}body .liveChatPanel>footer small{font-size:10px!important;line-height:1.5!important}
body .liveToast{font-size:13px!important;line-height:1.45!important;padding:14px 17px!important}
body .tutorialCard small{font-size:10px!important}body .tutorialCard h3{font-size:23px!important;line-height:1.2!important}body .tutorialCard p{font-size:14px!important;line-height:1.65!important}body .tutorialActions button{min-height:41px!important;font-size:11px!important;padding:8px 14px!important}

@media(max-width:700px){body .gameOverlay .liveQuest{grid-template-columns:42px minmax(0,1fr)!important}.liveQuest>footer{grid-column:1/-1!important}body .gameOverlay .liveJournalTable{min-width:820px!important}body .liveSignalButton{width:44px!important;grid-template-columns:1fr!important;padding:6px!important}body .liveSignalButton span{display:none!important}body .liveSignalPanel{right:0!important;width:min(430px,calc(100vw - 16px))!important}}

/* Investor-demo finish pass: clean alignment, no horizontal UI overflow, and reliable focus. */
body .hudAfterTourCard{display:block!important;min-width:0!important;overflow:hidden!important}
body .hudAfterTourCard>small{display:block!important;width:100%!important;margin:0 0 10px!important;line-height:1.35!important;letter-spacing:.09em!important}
body .hudAfterTourCard>b{display:block!important;width:100%!important;margin:0 0 12px!important;font-size:clamp(22px,3vw,28px)!important;line-height:1.2!important;letter-spacing:-.02em!important}
body .hudAfterTourCard>p{display:block!important;width:100%!important;margin:0!important;max-width:62ch!important}
body .profileSetupCard{overflow-x:hidden!important;box-sizing:border-box!important}
body #profileSetupForm{grid-template-columns:repeat(2,minmax(0,1fr))!important;max-width:100%!important}
body #profileSetupForm>*{min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
body #profileSetupForm input,body #profileSetupForm textarea,body #profileSetupForm select{min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
body .profileAttributes{max-width:100%!important;overflow:hidden!important}
body .profileAttributes label{min-width:0!important}
body .profileAttributes label span{white-space:normal!important;line-height:1.3!important}

/* Tutorial targets must remain visible while the rest of the universe is paused. */
body.tutorialMode #liveSignalStack,body.tutorialMode #cornerControls,body.tutorialMode #quickAccessRail,
body.tutorialMode .tutorialForcedVisible{display:flex!important;opacity:1!important;visibility:visible!important;filter:none!important;transform:none!important;z-index:155!important}
body.tutorialMode #liveSignalStack>.liveSignalButton,body.tutorialMode #cornerControls>*{display:grid!important;opacity:1!important;visibility:visible!important}
body.tutorialMode #quickAccessRail{display:grid!important;right:0!important;top:96px!important;height:calc(100dvh - 126px)!important;transform:translate(calc(100% - 46px),0)!important}
body.tutorialMode #quickAccessRail.tutorialFocus{transform:none!important}

/* Only the guided tutorial blurs the space scene. Calm notifications never lock it. */
body:not(.tutorialMode).liveModalFocus canvas,body:not(.tutorialMode).liveModalFocus #stars,
body[data-popup-mode="calm"] canvas,body[data-popup-mode="calm"] #stars{filter:none!important;transform:none!important}
body .liveMilestone.calm{pointer-events:none!important;backdrop-filter:none!important}
body .liveMilestone.calm .milestoneDismiss{pointer-events:none!important}

/* Expanded chat is a true primary workspace; user identity previews appear only here. */
body .liveChatPanel.expanded{position:fixed!important;left:50%!important;right:auto!important;top:16px!important;bottom:auto!important;width:min(1180px,calc(100vw - 32px))!important;height:calc(100dvh - 32px)!important;max-height:none!important;transform:translateX(-50%)!important;z-index:210!important;border-radius:22px!important;box-shadow:0 36px 140px rgba(0,0,0,.88)!important}
body .liveChatPanel.expanded .chatMessages{padding:12px 20px!important}
body .chatUserName{appearance:none;border:0;background:transparent;color:var(--live-text);font:inherit;font-weight:900;padding:0;cursor:help;text-align:left}
body .chatProfileHover{display:none;position:absolute;z-index:8;left:48px;top:34px;width:min(330px,calc(100vw - 72px));padding:14px;border:1px solid var(--live-line);border-radius:13px;background:linear-gradient(180deg,var(--live-surface),var(--live-surface2));box-shadow:0 20px 55px rgba(0,0,0,.7);color:var(--live-text)}
body .chatProfileHover b,body .chatProfileHover span{display:block}body .chatProfileHover span{margin-top:5px;color:var(--live-muted);font-size:11px;line-height:1.5}
body .liveChatPanel.expanded .chatUserName:hover+.chatProfileHover,body .liveChatPanel.expanded .chatUserName:focus+.chatProfileHover{display:block}

/* Quick Access sits high, remains stable, and never collides with the chat controls. */
body .quickAccessRail{top:96px!important;bottom:auto!important;height:calc(100dvh - 126px)!important;transform:translate(calc(100% - 46px),0)!important}
body .quickAccessRail.open{transform:none!important}
body .dock,body .planetDotRail,body .planetDots{display:none!important}

/* Full-screen reward roulette and boss-impact sequences. */
.caseSpinScene{width:min(620px,86vw)!important;height:230px!important;overflow:hidden!important}
.caseRoulette{position:relative;width:min(560px,82vw);height:86px;overflow:hidden;border:1px solid color-mix(in srgb,var(--live-accent2) 55%,transparent);border-radius:15px;background:#050710;box-shadow:inset 0 0 36px rgba(0,0,0,.8),0 0 42px color-mix(in srgb,var(--milestone-accent) 24%,transparent)}
.caseRoulette:before,.caseRoulette:after{content:"";position:absolute;z-index:3;top:0;width:31%;height:100%;pointer-events:none}.caseRoulette:before{left:0;background:linear-gradient(90deg,#050710,transparent)}.caseRoulette:after{right:0;background:linear-gradient(-90deg,#050710,transparent)}
.caseRouletteTrack{display:flex;gap:10px;width:max-content;padding:13px 0;animation:rouletteCycle .68s linear infinite}
.caseRouletteTrack span{width:132px;height:58px;display:grid;place-items:center;padding:8px;border:1px solid var(--live-line);border-radius:10px;background:linear-gradient(145deg,color-mix(in srgb,var(--milestone-accent) 22%,#10131d),#080a11);color:#fff4bd;font-size:12px;font-weight:900;text-align:center;box-sizing:border-box}
.caseReveal .caseRouletteTrack{animation:rouletteStop .8s cubic-bezier(.16,1,.3,1) forwards}
@keyframes rouletteCycle{to{transform:translateX(-142px)}}@keyframes rouletteStop{to{transform:translateX(-568px)}}
.bossImpactScene{position:relative;width:250px;height:190px;margin:0 auto 18px;display:grid;place-items:center}.bossImpactCore{position:relative;width:118px;height:118px;border:2px solid var(--milestone-accent);border-radius:48% 52% 44% 56%;background:radial-gradient(circle at 38% 30%,#fff,var(--milestone-accent) 12%,#171226 58%,#050609 100%);box-shadow:0 0 45px var(--milestone-accent);animation:bossRecoil .72s ease-out both}.bossImpactCore:before,.bossImpactCore:after{content:"";position:absolute;top:39px;width:16px;height:8px;border-radius:50%;background:#fff4bd;box-shadow:0 0 12px #fff}.bossImpactCore:before{left:26px;transform:rotate(12deg)}.bossImpactCore:after{right:26px;transform:rotate(-12deg)}
.bossSlash{position:absolute;width:210px;height:8px;border-radius:999px;background:linear-gradient(90deg,transparent,#fff,var(--milestone-accent),transparent);box-shadow:0 0 28px var(--milestone-accent);transform:rotate(-28deg) scaleX(0);animation:bossSlash .65s .12s ease-out both}.bossDamage{position:absolute;right:8px;top:26px;color:#fff4bd;font-size:31px;font-weight:950;text-shadow:0 0 18px var(--milestone-accent);animation:damageRise 1.1s .32s ease-out both}
@keyframes bossRecoil{0%{transform:scale(1)}35%{transform:translateX(18px) rotate(8deg) scale(.9)}100%{transform:none}}@keyframes bossSlash{45%{transform:rotate(-28deg) scaleX(1.2)}100%{transform:rotate(-28deg) scaleX(.05);opacity:0}}@keyframes damageRise{0%{opacity:0;transform:translateY(18px) scale(.7)}25%{opacity:1;transform:translateY(0) scale(1.15)}100%{opacity:0;transform:translateY(-45px)}}

/* Themed profile metadata and rank emblems. */
body .profileIdentityPanel p span,body .profileMetaBox{display:inline-flex!important;align-items:center!important;min-height:34px!important;padding:7px 11px!important;margin:4px 5px 0 0!important;border:1px solid var(--live-line)!important;border-radius:10px!important;background:color-mix(in srgb,var(--live-accent) 10%,transparent)!important;color:var(--live-text)!important}
.rankEmblem{position:relative;width:58px;height:58px;display:grid;place-items:center;margin:0 auto 10px;border:2px solid var(--rank-color,var(--live-accent2));clip-path:polygon(50% 0,92% 20%,84% 78%,50% 100%,16% 78%,8% 20%);background:radial-gradient(circle,color-mix(in srgb,var(--rank-color) 48%,#171925),#07090f 72%);color:#fff;font-size:16px;font-weight:950;box-shadow:0 0 22px color-mix(in srgb,var(--rank-color) 35%,transparent)}
.liveRank.current .rankEmblem{animation:rankPulse 2.3s ease-in-out infinite}.liveRank.high .rankEmblem:after{content:"";position:absolute;inset:-8px;border:1px solid var(--rank-color);clip-path:inherit;animation:rankOrbit 3s linear infinite}@keyframes rankPulse{50%{filter:brightness(1.35);transform:translateY(-2px)}}@keyframes rankOrbit{to{transform:rotate(360deg)}}

@media(max-width:700px){body #profileSetupForm{grid-template-columns:1fr!important}.caseSpinScene{width:92vw!important}.bossImpactScene{transform:scale(.86)}body .liveChatPanel.expanded{top:6px!important;width:calc(100vw - 12px)!important;height:calc(100dvh - 12px)!important;border-radius:15px!important}body .quickAccessRail{top:78px!important;height:calc(100dvh - 150px)!important}}

body:not(.universeMode) .spaceThemePicker{display:none!important}
body .liveShopGrid,body .liveShopTabs{overflow-x:hidden!important;max-width:100%!important}

:where(button,a,input,select,textarea):focus-visible{outline:2px solid var(--live-accent2,#e9c46a)!important;outline-offset:3px!important}
body:not(.tutorialMode) :is(.panel,.gameOverlay,.waitlistPage,.profileSetupOverlay,.hudAfterTour,.liveMilestone){backdrop-filter:none!important}

@media(max-width:700px){
  body .gameOverlay .liveJournalWrap{overflow:visible!important}
  body .gameOverlay .liveJournalTable{min-width:0!important}
  body .gameOverlay .liveJournalTable>header{display:none!important}
  body .gameOverlay .liveJournalRow{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;border:1px solid var(--live-line)!important;border-radius:12px!important;margin:9px 0!important}
  body .gameOverlay .liveJournalRow>*{min-width:0!important}
  body .gameOverlay .liveJournalRow>*:nth-child(3),body .gameOverlay .liveJournalRow>*:nth-child(7){grid-column:1/-1!important}
}
.journalWorkspaceBar{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.journalWorkspaceBar>span{flex:1 1 320px;padding:11px 13px;border:1px solid var(--live-line);border-radius:10px;color:var(--live-muted);font-size:10px;line-height:1.4;letter-spacing:.05em}.notionJournal{background:linear-gradient(135deg,color-mix(in srgb,var(--live-accent) 9%,transparent),transparent 55%)!important}
body .liveRank em{display:block;margin-top:6px;color:var(--live-muted);font-size:9px;line-height:1.35;font-style:normal}body .liveRankLadder{grid-template-columns:repeat(auto-fit,minmax(130px,1fr))!important}
body .liveCard a{color:var(--live-accent2);text-underline-offset:3px}
