/* Shared adventure surfaces. Illustrations remain colourful; interface controls stay blue. */
html body :is(dialog,.sheet,.modal-card,.popup-card,.mastered-celebration-card-200),
html body #lumieOverlay:not([data-battle-screen="true"])>.lumie-pet{
 border:1px solid #dce4fa!important;border-radius:26px!important;background:linear-gradient(145deg,#fff 65%,#f1f5ff)!important;color:#253352!important;box-shadow:0 8px 0 #dce4f180,0 24px 65px #15264d30!important;
}
html body dialog{box-sizing:border-box;max-width:min(460px,calc(100vw - 28px));max-height:calc(100dvh - 36px);padding:24px;overflow-y:auto;}
html body dialog::backdrop{background:#17284380;backdrop-filter:blur(5px);}
html body :is(dialog,.sheet,.modal-card,.popup-card,#lumieOverlay:not([data-battle-screen="true"])) button{border-radius:16px!important;min-height:44px;transition:translate .12s,box-shadow .12s,background .12s;}
html body :is(dialog,.sheet,.modal-card,.popup-card) :is(h2,h3){letter-spacing:-.025em;color:#253352;}
html body :is(dialog,.sheet,.modal-card,.popup-card) :is(.primary,.lumie-primary,[data-tutorial-next]),
html body #lumieOverlay:not([data-battle-screen="true"]) .lumie-primary{background:#5b7cff!important;color:white!important;border:1px solid #4b6ce8!important;box-shadow:0 4px 0 #3658c8!important;}
html body :is(dialog,.sheet,.modal-card,.popup-card,#lumieOverlay:not([data-battle-screen="true"])) button:active:not(:disabled){translate:0 2px;box-shadow:0 1px 0 #3658c8!important;}
html body :is(dialog,.sheet,#lumieOverlay) button:focus-visible{outline:3px solid #3658c8;outline-offset:3px;}
html body #lumieOverlay:not([data-battle-screen="true"]) .lumie-heading{border-bottom:2px dashed #dce4fa;padding-bottom:12px;}
html body #lumieOverlay:not([data-battle-screen="true"]) :is(.lumie-card,.lumie-owned,.lumie-settings){border-radius:20px!important;background:#f7f9ff!important;border-color:#e0e8fa!important;}
html body #lumieSurrender{border-top:5px solid #e4aa55!important;}
html body #lumieSurrender [data-lumie="confirm-surrender"]{background:#fff3e8;color:#813e20;border:1px solid #e5bd98;}
@keyframes adventure-appear{from{opacity:0;translate:0 10px;scale:.97}to{opacity:1;translate:0;scale:1}}
html body dialog[open],html body .sheet-backdrop.active>.sheet{animation:adventure-appear .22s ease-out;}
/* Opaque setup: no underlying page, modal, or seasonal colour wash shows through. */
html body #onboarding219.open{background:radial-gradient(circle at 12% 18%,#dce8ff 0,transparent 38%),radial-gradient(circle at 90% 84%,#fff0cf 0,transparent 30%),#f4f7ff!important;}
html body #onboarding219 .onboarding-card-219{height:auto!important;min-height:min(650px,calc(100dvh - 48px))!important;border-radius:30px!important;border:1px solid #dce4fa!important;box-shadow:0 7px 0 #dce4f180,0 24px 64px #24416d15!important;}
html body #onboarding219 .onboarding-actions-219{padding-bottom:5px!important;}
html body #onboarding219 .onboarding-option-219.selected{box-shadow:0 3px 0 #d1dcfc!important;border-width:2px!important;}
html body #lumieBattleGuide{width:440px;}
#lumieBattleGuide>small{color:#3658c8;font-weight:750;letter-spacing:.06em;}
#battleGuideBody{font-size:15px;line-height:1.55;}
#battleGuideBody ul{list-style:none;padding:0;display:grid;gap:12px;}
#battleGuideBody li{display:flex;gap:12px;background:#f1f5ff;border-radius:16px;padding:12px;}
#battleGuideBody li img{width:42px;height:42px;object-fit:contain;flex:none;}
#battleGuideBody li p{margin:4px 0 0;font-size:14px;color:#526080;}
.battle-guide-actions{display:flex;gap:12px;position:sticky;bottom:-24px;background:#fff;padding:12px 0;margin-top:16px;}
.battle-guide-actions button{flex:1;padding:12px;border:1px solid #dce4fa;font:inherit;font-weight:700;}
html body #lumieOverlay[data-battle-screen="true"] .lumie-turn-title{display:flex!important;align-items:center;justify-content:center;gap:8px;}
html body #lumieOverlay [data-lumie="battle-help"]{min-height:28px!important;min-width:28px;padding:0 7px!important;border-radius:50%!important;background:#edf1ff!important;color:#3658c8!important;border:1px solid #cfdafb!important;font-size:16px!important;}
/* Attack overlays use their own shapes and timelines, never the shared leaf recolour. */
#lumieOverlay .lumi-move-fx{position:absolute;width:clamp(44px,16vw,82px);height:clamp(44px,16vw,82px);margin:calc(clamp(44px,16vw,82px) / -2);color:var(--move-color);pointer-events:none;filter:drop-shadow(0 0 5px var(--move-color));}
#lumieOverlay .lumi-move-fx svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible;}
#lumieOverlay .lumi-move-fx i{position:absolute;left:-8px;top:50%;width:7px;height:7px;border-radius:50%;background:var(--move-color);box-shadow:-12px 5px 0 -1px var(--move-color);}
#lumieOverlay .lumi-move-fx i:nth-of-type(2){left:5px;top:20%;scale:.65;}
#lumieOverlay .lumi-move-fx i:nth-of-type(3){left:0;top:80%;scale:.45;}
#lumieOverlay .lumi-move-fx[data-motion="rise"] i{left:15%;top:90%;border-radius:0;rotate:35deg;}
#lumieOverlay .lumi-move-fx.is-reduced{opacity:.65;filter:none;}
html body .toast{background:#253f86!important;color:#fff!important;border:1px solid #d5e1ff!important;border-radius:18px!important;box-shadow:0 5px 0 #172b5e30,0 12px 30px #172b5e20!important;}
html body .sheet .sheet-handle{width:42px;height:5px;background:#c7d5fa;border-radius:10px;}
html body .sheet :is(.sheet-head,.settings-head){border-bottom:1px dashed #dce4fa;padding-bottom:12px;}

html body #onboarding219 :is(.presentation-choices,#petGoalMedalPreview,.onboarding-persona-258,.onboarding-medal-note-352){display:none!important;}
@media(prefers-reduced-motion:reduce){html body :is(dialog,.sheet){animation:none!important;}html body :is(dialog,.sheet,#lumieOverlay) button{transition:none!important;}}

/* A companion-led introduction, with the same real Lumi art and action icons as battle. */
#lumieBattleGuide .battle-guide-companion{display:flex;align-items:center;gap:16px;padding:12px 16px;margin:0 0 18px;border:1px solid #dce8dc;border-radius:22px;background:radial-gradient(ellipse at 15% 75%,#d5f0d3,transparent 65%),#f3f8ef;}
#lumieBattleGuide .battle-guide-companion img{width:94px;height:100px;object-fit:contain;flex:none;}
#lumieBattleGuide .battle-guide-companion div{display:grid;gap:4px;}
#lumieBattleGuide .battle-guide-companion span{font-size:12px;color:#43674a;}
#lumieBattleGuide .battle-guide-companion strong{font-size:22px;color:#234332;}
#lumieBattleGuide .battle-guide-companion small{font-size:13px;color:#496650;}
#lumieBattleGuide .battle-guide-progress{display:flex;gap:6px;margin:0 0 12px;}
#lumieBattleGuide .battle-guide-progress i{height:5px;flex:1;background:#e6eaf4;border-radius:5px;}
#lumieBattleGuide .battle-guide-progress .is-done{background:#587ce2;}
#lumieBattleGuide #battleGuideBody li{padding:12px;border:1px solid #dfe5f3;border-radius:16px;background:#f7f9fe;margin:10px 0;}
#lumieBattleGuide #battleGuideBody li img{background:#fff;border-radius:12px;padding:6px;box-sizing:border-box;}
#lumieBattleGuide .battle-guide-actions [data-tutorial-next]{background:#345fc5;color:#fff;border-color:#345fc5;box-shadow:0 3px 0 #24478f;}
#lumieOverlay .lumie-first-meeting{text-align:center;}
#lumieOverlay .lumie-first-milestone{display:inline-block;background:#edf6e7;color:#345d32;padding:7px 12px;border-radius:20px;font-size:12px;font-weight:700;}
#lumieOverlay .lumie-first-art{margin:14px auto;max-width:320px;border-radius:32px;background:radial-gradient(ellipse,#eef6cf 0,#e4f0e6 38%,transparent 72%);}
#lumieOverlay .lumie-first-art .lumie-result-portrait{height:clamp(140px,24vh,230px);width:100%;object-fit:contain;}
#lumieOverlay .lumie-first-steps{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;margin:18px 0;}
#lumieOverlay .lumie-first-steps span{padding:7px 12px;border-radius:20px;background:#f0f2f7;color:#526078;font-size:13px;}
#lumieOverlay .lumie-first-steps [aria-current]{background:#e6edff;color:#2f51a6;box-shadow:inset 0 0 0 1px #afc2ef;}
@media(max-height:650px){#lumieBattleGuide .battle-guide-companion{padding:8px 12px;margin-bottom:12px;}#lumieBattleGuide .battle-guide-companion img{height:64px;width:64px;}#lumieOverlay .lumie-first-art{margin:8px auto;}}

#lumieOverlay .lumie-focus-choice{display:flex;align-items:center;gap:10px;padding:8px 10px;margin:6px 0;border:1px solid #d9dff2;border-radius:14px;background:#f4f6ff;}
#lumieOverlay .lumie-focus-choice button{flex:none;padding:9px 12px;border:1px solid #b9c8ed;border-radius:12px;background:white;color:#304777;font:inherit;font-weight:700;}
#lumieOverlay .lumie-focus-choice button[aria-pressed="true"]{background:#345fc5;color:#fff;border-color:#345fc5;}
#lumieOverlay .lumie-focus-choice small{font-size:12px;color:#46577a;line-height:1.35;}
@media(max-width:360px){#lumieOverlay .lumie-focus-choice{flex-wrap:wrap;}}
