/* Independent, phone-first learning encounter. */
.game-world:has(.intro-journey) :is(.game-top,.game-dock,.quest-launch,.brand-filters,.map-list-button,.player-corner,.simulation-label){display:none}
.intro-journey{
  position:fixed;z-index:20;inset:clamp(5px,3vh,24px) 0;
  width:min(690px,calc(100% - 14px));max-height:720px;margin:auto;
  display:flex;flex-direction:column;overflow:hidden;
  border:1px solid var(--game-navy-edge);border-radius:22px;background:var(--game-navy);color:#203f35;
  box-shadow:0 18px 62px #08274440;font-size:16px;line-height:1.45;
}
.intro-journey *{box-sizing:border-box;min-width:0}
.intro-journey:is([data-intro-stage="welcome"],[data-intro-stage="result"]){
  height:max-content;max-height:min(720px,calc(100dvh - 2 * clamp(5px,3vh,24px)));
}
.intro-journey :is(p,h1,h2){margin:0}
.intro-journey button{min-height:44px;border:0;font:inherit;color:inherit;cursor:pointer}
.intro-journey :is(button,input,summary):focus-visible,.intro-journey [tabindex="-1"]:focus-visible{
  outline:3px solid #9a691c;outline-offset:2px;
}
.intro-journey button:disabled{background:#ecede3;color:#53655b;cursor:not-allowed}
.ij-header,.ij-actions{flex:none;display:flex;align-items:center;gap:8px;padding:8px 14px;background:var(--game-navy);color:var(--game-paper)}
.ij-header{justify-content:space-between;border-bottom:1px solid var(--game-navy-edge);background:var(--game-navy-gradient);color:var(--game-gold)}
.ij-header>span{display:flex;gap:6px;flex:none}
.ij-header button{width:44px;border-radius:11px;background:var(--game-navy-raised);color:var(--game-paper);font-size:24px;line-height:1}
.intro-journey :is(.ij-header,.ij-actions) button:focus-visible{outline-color:var(--game-gold)}
.ij-main{
  flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scroll-padding:14px;
  padding:clamp(13px,3vw,24px);background:linear-gradient(#fffaf0 52%,#f4f6e9);
}
.ij-heading{display:grid;gap:12px;align-items:center;margin-bottom:12px}
[data-intro-stage="welcome"] .ij-heading{grid-template-columns:minmax(0,1fr) minmax(60px,28%)}
.ij-heading h1{font-size:clamp(25px,5.7vw,38px);line-height:1.14;letter-spacing:-.024em}
.ij-context{font-size:14px;font-weight:750;color:#395f4e;margin-bottom:5px!important}
.ij-welcome-portrait{
  display:grid;place-items:center;aspect-ratio:1;overflow:hidden;border-radius:50%;
  background:radial-gradient(circle at 35% 30%,#fff2c7,#dcebd8);
}
.ij-welcome-portrait img{width:100%;height:100%;object-fit:contain}
.ij-welcome-portrait .brand-picture{display:contents}
.ij-content{display:grid;gap:10px}
.ij-welcome-copy{font-size:17px}
.ij-task{padding-inline-start:9px;border-inline-start:3px solid #c49343;color:#405c4f}
.ij-note,.ij-foot{font-size:14px;color:#405c4f;line-height:1.45}
.ij-notice{font-size:15px;color:#70401b}
.ij-notice:not(:empty){margin-top:10px;padding:8px;border-radius:9px;background:#fff0d8}
.ij-actions{flex-wrap:wrap;border-top:1px solid var(--game-navy-edge)}
.ij-actions button{min-height:48px;padding:7px 11px;border-radius:12px;font-weight:800;line-height:1.2}
.ij-actions .ij-primary{flex:1 1 auto;background:var(--game-gold);color:var(--game-navy)}
.ij-actions:has(.ij-primary[hidden]){display:none}
.ij-actions .ij-primary:disabled{background:#34526b;color:var(--game-muted)}
.ij-actions .ij-secondary{background:var(--game-navy-raised);color:var(--game-paper);border:1px solid var(--game-navy-edge)}
.ij-actions .ij-launch-secondary{flex:1 1 auto}
.ij-foot{flex:1 0 100%;font-size:13px;color:var(--game-muted)}
.ij-launch-note{flex:1 0 100%;font-size:.875rem;line-height:1.35;color:var(--game-muted)}
.ij-launch-note b,.ij-launch-note .ij-launch-warning{color:var(--game-gold)}
.ij-money{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;padding:8px;border:1px solid #d7e1d3;border-radius:11px;background:#f3f7eb}
.ij-money-pair{grid-template-columns:repeat(2,minmax(0,1fr))}
.ij-money>div{padding-inline:6px}
.ij-money>div+div{border-inline-start:1px solid #d7e1d3}
.ij-money .green strong,.ij-money .dark strong{color:#215d43}
.ij-money .gold strong{color:#705117}
.ij-money .warn strong{color:#824319}
.ij-bcc-result .ij-money{padding:4px 0;border:0;border-radius:0;background:none}
.ij-bcc-result .ij-money-opening{grid-template-columns:1fr}
.ij-bcc-result .ij-money-opening strong{font-size:clamp(1.75rem,8vw,2.5rem)}
.ij-bcc-milestone{padding:4px 6px;font-size:.875rem;color:#315641}
:is([data-intro-stage="bcc"],[data-intro-stage="build"],[data-intro-stage="operations"]) .ij-content>.ij-details{padding:0;border:0;border-block-start:1px solid #d5e0d2;border-radius:0;background:none}
[data-intro-stage="bcc"] .ij-month-control{padding:4px 0;border:0;border-block-start:1px solid #d5e0d2;border-radius:0;background:none}
:is([data-intro-stage="bcc"],[data-intro-stage="build"],[data-intro-stage="operations"]) .ij-content{gap:5px}
:is([data-intro-stage="bcc"],[data-intro-stage="build"],[data-intro-stage="operations"]) .ij-heading{margin-bottom:7px}
:is([data-intro-stage="bcc"],[data-intro-stage="build"],[data-intro-stage="operations"]) .ij-actions .ij-primary{flex:1 1 0;font-size:.9375rem}
:is([data-intro-stage="bcc"],[data-intro-stage="build"],[data-intro-stage="operations"]) .ij-actions .ij-secondary{flex:none;padding-inline:8px;font-size:.875rem}
.ij-example-label{font-size:.875rem;font-weight:750;color:#315641}
:is(.ij-build-result,.ij-operation-result) .ij-money{padding:4px 0;border:0;border-radius:0;background:none}
.ij-build-result .ij-money .dark strong{font-size:clamp(1.375rem,6vw,1.875rem)}
.ij-build-split{display:flex;height:10px;overflow:hidden;border-radius:8px;margin:4px 6px}
.ij-build-split i{flex:0 0 0;background:#bd9443}
.ij-build-split i+i{background:#4b886b}
.ij-operation-result .ij-risk-note{margin-block:4px 0!important;padding:4px 6px;font-size:.8125rem;line-height:1.35}
@media(prefers-reduced-motion:no-preference){
 .ij-bcc-previewed .ij-money{animation:ij-preview-amount .45s ease-out}
 .ij-sale-recorded .ij-build-split{transform-origin:left;animation:ij-split-in .45s ease-out}
 @keyframes ij-preview-amount{from{transform:translateY(3px)}to{transform:none}}
 @keyframes ij-split-in{from{transform:scaleX(.1)}to{transform:none}}
}
.ij-money span{display:block;font-size:14px;line-height:1.3}
.ij-money strong{display:block;margin-top:4px;font-size:clamp(18px,4.9vw,26px);line-height:1.2;overflow-wrap:anywhere}
.ij-money small{margin-left:3px;font-size:13px;font-weight:650}
.ij-money .ij-baseline{display:block;margin:4px 0 0;color:#405c4f;font-weight:500}
.ij-details{border:1px solid #d5e0d2;border-radius:10px;background:#fbfcf1;padding:0 10px}
.ij-details summary{min-height:44px;align-content:center;font-size:15px;font-weight:750;cursor:pointer}
.ij-details[open]>div{display:grid;gap:8px;margin-bottom:9px}
.ij-control{display:grid;padding:8px 10px;border:1px solid #d7e1d3;border-radius:11px;background:#f0f4e8}
.ij-control>span{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:15px;font-weight:700}
.ij-control input{accent-color:#21654d;min-height:44px;margin:0}
.ij-control input[type=range]{width:100%}
.ij-control input[type=number]{width:110px;max-width:100%;border:1px solid #abc8b5;border-radius:8px;background:#fffaf0;color:inherit;font:inherit;padding:5px 7px}
.ij-bcc-plot{padding:7px;border-radius:9px;background:#eff2e6;margin-bottom:5px}
.ij-bcc-bars{height:45px;display:grid;grid-template-columns:repeat(12,minmax(0,1fr));align-items:end;gap:3px}
.ij-bcc-bars i{height:var(--height);min-height:2px;border-radius:4px 4px 0 0;background:#bd9443}
.ij-bcc-bars .after{background:#4b886b}
.ij-bcc-bars .selected{outline:2px solid #315a4a;outline-offset:-1px}
.ij-bcc-legend{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px;margin-top:5px;color:#385647;font-size:14px}
.ij-scenarios,.ij-preference,.ij-result-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.ij-scenarios button,.ij-preference button,.ij-result-tools button,.ij-practice-actions button,.ij-dialog>button{
  padding:7px 9px;border-radius:9px;background:#eaf1e4;font-size:15px;font-weight:750;line-height:1.3;
}
.ij-scenarios button[aria-pressed=true],.ij-preference button[aria-pressed=true]{background:var(--game-gold);color:var(--game-navy);box-shadow:inset 0 0 0 2px #8b631d}
.ij-risk-note{margin-top:6px!important;padding:7px 9px;border-radius:8px;background:#fae8d2;color:#743d19;font-size:15px}
[data-intro-stage="gs"] .ij-content{gap:5px}
[data-intro-stage="gs"] .ij-content>.ij-details{padding:0;border:0;border-block-start:1px solid #d5e0d2;border-radius:0;background:none}
[data-intro-stage="gs"] .ij-actions .ij-primary{flex:1 1 0}
.ij-gs-result .ij-money{padding:4px 0;border:0;border-radius:0;background:none}
.ij-cash-route{padding:5px 6px;color:#395f4e;font-size:.875rem}
.ij-gs-control{padding:0;border:0;background:none}
.ij-gs-split{display:flex;height:9px;overflow:hidden;border-radius:6px}
.ij-gs-split i{flex:0 0 0;background:#b99344;transition:flex-grow .15s ease}
.ij-gs-split i:nth-child(2){background:#477963}
.ij-gs-split i:nth-child(3){background:#759baf}
.ij-gs-amounts{margin:4px 0}
.ij-gs-amounts>div{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:baseline;gap:6px;padding-block:4px;font-size:.875rem}
.ij-gs-amounts>div:first-child,.ij-gs-amounts>div:last-child{border-block-start:1px solid #d5e0d2;font-weight:800}
.ij-gs-amounts dd{margin:0;font-variant-numeric:tabular-nums;white-space:nowrap}
.ij-gs-amounts small{font-size:inherit;margin-inline-start:3px}
@media(prefers-reduced-motion:reduce){.ij-gs-split i{transition:none}}
.ij-question-block,.ij-choices,.ij-result-summary,.ij-result-next,.ij-review-rows{display:grid;gap:7px}
.ij-question{font-size:19px;font-weight:800}
.ij-choices button{
  display:flex;align-items:center;gap:8px;padding:8px 10px;text-align:left;
  border:1px solid #c8ded0;border-radius:10px;background:#eff5eb;line-height:1.35;
}
.ij-choices button.selected{box-shadow:inset 0 0 0 2px #42795b}
.ij-choices button.wrong{box-shadow:inset 0 0 0 2px #b07641;background:#fff0dc}
.ij-choices button b{flex:none}
.ij-assessment-choices{gap:0;border-block-end:1px solid #c8ded0}
.ij-assessment-choices label{display:flex;align-items:center;gap:8px;min-height:48px;padding:8px 6px;border-block-start:1px solid #c8ded0;cursor:pointer;line-height:1.35}
.ij-assessment-choices label:has(:checked){background:#fff0cb;font-weight:750}
.ij-assessment-choices label:has(:focus-visible){outline:3px solid #9a691c;outline-offset:-3px}
.ij-assessment-choices input{flex:none;width:19px;height:19px;margin:0;accent-color:#20624c}
.ij-assessment-answer{border-block-start:1px solid #c8ded0;padding-block:8px}
.ij-practice-actions{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.ij-pending{padding:7px;border-radius:9px;background:#fff0dc}
.ij-score{display:flex;align-items:center;gap:12px;color:#21624a}
.ij-score.needs-review{color:#70401b}
.ij-score strong{flex:none;font-size:38px;line-height:1}
.ij-score small{font-size:19px}
.ij-score h2{font-size:18px}
.ij-score p{font-size:15px}
[data-intro-stage="result"] .ij-details{padding:0;border:0;border-block-start:1px solid #d5e0d2;border-radius:0;background:none}
[data-intro-stage="result"] :is(.ij-content,.ij-result-next){gap:4px}
.ij-criteria{margin:0;padding-inline-start:20px}
.ij-criteria .retry{color:#764721}
.ij-preference button b{margin-right:5px}
.ij-dialog{
  width:min(540px,calc(100% - 20px));max-height:88dvh;overflow:auto;overscroll-behavior:contain;
  border:0;border-radius:18px;background:#fffaf0;color:#203f35;padding:16px;
  box-shadow:0 15px 55px #173b2c55;
}
.ij-dialog::backdrop{background:#071e32a6}
.ij-dialog h2{font-size:22px;line-height:1.2;margin-bottom:10px}
.ij-dialog p{font-size:16px;margin:8px 0}
.ij-dialog>button{width:100%}
.ij-practice-actions{justify-content:flex-end;margin-top:9px}
.ij-practice-actions button:last-child,.ij-dialog>button{background:var(--game-gold);color:var(--game-navy)}
.ij-practice-actions .game-sound{display:inline-flex;align-items:center;gap:5px}
.ij-practice{
  max-height:calc(100dvh - 16px);padding:0;overflow:hidden;
  border:1px solid var(--game-navy-edge);background:var(--game-navy-gradient);color:var(--game-paper)
}
.ij-practice[open]{display:flex;flex-direction:column}
.ij-practice-head,.ij-practice-footer{
  flex:none;padding:6px 12px;background:var(--game-navy)
}
.ij-practice-head{
  display:grid;grid-template-columns:minmax(0,1fr) 44px;align-items:center;gap:6px;
  border-bottom:1px solid var(--game-navy-edge)
}
.ij-practice .ij-practice-head h2{
  margin:0;color:var(--game-gold);font-size:1rem;overflow-wrap:anywhere
}
.ij-practice-body{
  min-height:0;overflow:auto;overscroll-behavior:contain;scroll-padding:6px;padding:8px 12px
}
.ij-practice .ij-question{font-size:1.125rem;line-height:1.25;overflow-wrap:anywhere}
.ij-practice .ij-choices button{
  background:var(--game-navy-raised);color:var(--game-paper);border-color:var(--game-navy-edge);
  font-size:.9375rem;line-height:1.25;overflow-wrap:anywhere
}
.ij-practice .ij-choices button.selected{
  background:var(--game-gold);color:var(--game-navy);box-shadow:none
}
.ij-practice .ij-choices button.wrong{background:#ffe5c6}
.ij-practice .ij-choices button:disabled:not(.selected){color:var(--game-muted)}
.ij-practice-footer{border-top:1px solid var(--game-navy-edge)}
.ij-practice-feedback{display:flex;align-items:center;justify-content:space-between;gap:6px}
.ij-practice-feedback span{font-size:.875rem;font-weight:750;line-height:1.2;color:var(--game-gold)}
.ij-practice-feedback .correct{color:#b8f0c9}
.ij-practice :is(.ij-practice-head button,.ij-practice-feedback button){
  border-radius:9px;background:var(--game-navy-raised);color:var(--game-paper);border:1px solid var(--game-navy-edge)
}
.ij-practice .ij-practice-head button{font-size:24px}
.ij-practice .ij-practice-feedback button{flex:none;padding-inline:8px;font-size:.8125rem}
.ij-practice .ij-practice-next{
  width:100%;margin-top:5px;padding:5px 8px;border-radius:9px;overflow-wrap:anywhere;
  background:var(--game-gold);color:var(--game-navy);font-size:.9375rem;font-weight:800
}
.intro-journey .ij-practice :is(button,[tabindex="-1"]):focus-visible{outline-color:var(--game-gold)}
@media(min-width:480px) and (max-height:440px){
  .ij-practice-body{padding-block:5px}
  .ij-practice .ij-question{font-size:1rem}
  .ij-practice .ij-question-block{gap:5px}
  .ij-practice .ij-choices{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ij-practice .ij-choices button{font-size:.875rem;padding-block:5px}
  .ij-practice-footer:not([hidden]){display:flex;align-items:center;gap:8px}
  .ij-practice-feedback{flex:1}
  .ij-practice .ij-practice-next{width:auto;margin-top:0}
}
.intro-journey .ij-review-open{justify-self:start;padding:5px 8px;border-radius:8px;background:#f8ecd0;font-weight:750;text-align:left}
.intro-journey .ij-review-first{justify-self:stretch;min-height:48px;padding-inline:12px;background:var(--game-gold);color:var(--game-navy);text-align:center}
.ij-money strong,.ij-score strong{font-variant-numeric:tabular-nums}
.ij-review{padding-block-start:0;scroll-padding-block-start:54px}
.ij-review-head{position:sticky;inset-block-start:0;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:6px;background:#fffaf0;padding-block:3px}
.ij-review-head h2{margin:0;font-size:1.125rem}
.ij-review-head button{flex:none;width:44px;border-radius:8px;background:#edf3e7;font-size:1.375rem}
.ij-review-rows details{padding-inline:8px;border-block-start:1px solid #d5e0d2}
.ij-review-rows details[open]:not(.ij-review-correct){background:#f6f2e4}
.ij-review-rows summary{min-height:44px;align-content:center;cursor:pointer;font-weight:750}
.ij-review-rows .ij-review-choice{font-size:.875rem;color:#53655b}
.ij-progress{display:flex;flex-wrap:wrap;gap:6px}
.ij-progress>div{display:flex;align-items:center;gap:5px;padding:5px;border-radius:8px;background:#edf1e8;font-size:14px}
.ij-progress .current{background:#f9efd4;font-weight:750}
.ij-progress i{display:none}
@media(max-width:345px){
  .ij-money:not(.ij-money-pair){grid-template-columns:repeat(2,minmax(0,1fr))}
  .ij-money:not(.ij-money-pair)>div:first-child{grid-column:1/-1;margin-block-end:4px;padding-block-end:4px;border-block-end:1px solid #d7e1d3}
  .ij-money:not(.ij-money-pair)>div:nth-child(2){border-inline-start:0}
  .ij-bcc-result .ij-money-opening{grid-template-columns:1fr}
  .ij-bcc-result .ij-money-opening>div:first-child{margin:0;padding-block-end:0;border:0}
}
@media(min-width:300px) and (max-width:345px){
  .ij-bcc-result .ij-money:not(.ij-money-opening){grid-template-columns:repeat(3,minmax(0,1fr));align-items:end}
  .ij-bcc-result .ij-money:not(.ij-money-opening)>div:first-child{grid-column:auto;margin:0;padding-block-end:0;border:0}
  .ij-bcc-result .ij-money:not(.ij-money-opening)>div+div{border-inline-start:1px solid #d7e1d3}
}
@media(max-height:440px){
  .intro-journey{inset-block:4px;border-radius:15px}
  .intro-journey:is([data-intro-stage="welcome"],[data-intro-stage="result"]){max-height:calc(100dvh - 8px)}
  .ij-main{padding-block:8px}
  .ij-header,.ij-actions{padding-block:4px}
  [data-intro-stage="welcome"] .ij-welcome-portrait{max-width:82px;justify-self:end}
}
@media(min-width:520px) and (max-height:440px){
 :is([data-intro-stage="assessment"],[data-intro-stage="result"]) .ij-heading{margin-bottom:5px}
 :is([data-intro-stage="assessment"],[data-intro-stage="result"]) .ij-heading h1{font-size:1.5rem}
 [data-intro-stage="result"] .ij-content{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px;align-items:start}
 [data-intro-stage="result"] .ij-result-next .ij-details summary{min-height:44px}
 [data-intro-stage="gs"] .ij-heading{margin-bottom:5px}
 [data-intro-stage="gs"] .ij-heading h1{font-size:1.5rem}
 [data-intro-stage="gs"] .ij-actions .ij-foot{flex:0 1 auto;font-size:.75rem}
 [data-intro-stage="gs"] .ij-content{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:12px}
 [data-intro-stage="gs"] .ij-content>:is(.ij-task,.ij-gs-result,.ij-details[open]){grid-column:1/-1}
 [data-intro-stage="bcc"] .ij-heading{margin-bottom:5px}
 [data-intro-stage="bcc"] .ij-heading h1{font-size:1.5rem}
 [data-intro-stage="bcc"] .ij-content{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:4px 12px}
 [data-intro-stage="bcc"] .ij-task{grid-column:2;grid-row:2}
 [data-intro-stage="bcc"] .ij-bcc-result{grid-column:1;grid-row:1/span 2}
 [data-intro-stage="bcc"] .ij-month-control{grid-column:2;grid-row:1}
 [data-intro-stage="bcc"] .ij-details{grid-column:1/-1}
 [data-intro-stage="bcc"] .ij-money:not(.ij-money-opening) strong{font-size:1.25rem}
 [data-intro-stage="bcc"] .ij-bcc-milestone{line-height:1.25}
 :is([data-intro-stage="build"],[data-intro-stage="operations"]) .ij-heading h1{font-size:1.5rem}
 :is([data-intro-stage="build"],[data-intro-stage="operations"]) .ij-actions .ij-foot{flex:0 1 auto;font-size:.75rem}
 :is([data-intro-stage="build"],[data-intro-stage="operations"]) .ij-content{grid-template-columns:minmax(0,1.25fr) minmax(0,.75fr);align-items:start;gap:4px 12px}
 :is([data-intro-stage="build"],[data-intro-stage="operations"]) .ij-derived{grid-column:1;grid-row:1/span 3}
 :is([data-intro-stage="build"],[data-intro-stage="operations"]) .ij-content>:is(.ij-task,.ij-details){grid-column:2}
 .ij-operation-result .ij-money span{font-size:.8125rem}
 .ij-operation-result .ij-money strong{font-size:1.25rem}
 .ij-operation-result .ij-money .ij-baseline{font-size:.75rem}
}
@media(max-height:270px){
  .intro-journey{overflow:auto;scroll-padding:8px}
  .ij-main{flex:none;overflow:visible}
}
