/* Readable instruction cards and a compact, persistent practice objective. */
#game-screen .tutorial-objective {
  position:absolute;z-index:112;top:calc(env(safe-area-inset-top, 0px) + 104px);
  left:50%;transform:translateX(-50%);width:min(88%,480px);padding:10px 12px;
  box-sizing:border-box;pointer-events:none;background:linear-gradient(110deg,#102f38f2,#102129eb);
  border-left:3px solid #badea8;box-shadow:0 6px 20px #0005;color:#e6f0dd;
}
#game-screen .tutorial-objective.hidden{display:none!important}
.tutorial-objective strong{display:block;font:700 13px/1.5 'Yu Gothic',Meiryo,sans-serif}
.tutorial-objective span{display:block;margin-top:3px;font:12px/1.5 'Yu Gothic',Meiryo,sans-serif;color:#c8d4cf}
.tutorial-objective progress{display:block;width:100%;height:5px;margin-top:7px;accent-color:#bddf9b}
.tutorial-objective progress[hidden]{display:none}
#game-screen.rem-battle--phase4 .tutorial-guide-overlay{position:absolute;padding:max(14px,env(safe-area-inset-top)) 18px max(16px,env(safe-area-inset-bottom))!important}
#game-screen.rem-battle--phase4 .tutorial-guide-card{max-height:calc(100dvh - 52px);overflow-y:auto;overscroll-behavior:contain;padding:22px!important}
#game-screen.rem-battle--phase4 .tutorial-guide-card h3{font-size:20px!important;line-height:1.5!important;margin:8px 0 15px}
#game-screen.rem-battle--phase4 .tutorial-guide-body{font-size:15px!important;line-height:1.8!important;white-space:pre-line;margin:0 0 16px}
#game-screen .tutorial-guide-pause-note{font:11px/1.6 'Yu Gothic',Meiryo,sans-serif;color:#b4c9b6;margin:10px 0}
#game-screen.rem-battle--phase4 #tutorial-guide-close-btn{min-height:48px!important;margin-top:8px}
.tutorial-lobby-guide{z-index:15000;background:linear-gradient(0deg,#020911b8,#02091118);backdrop-filter:none}
.tutorial-lobby-guide__card{max-height:calc(100dvh - 48px);overflow-y:auto;overscroll-behavior:contain;padding:22px;scrollbar-gutter:stable}
.tutorial-lobby-guide__card>p:not(.tutorial-lobby-guide__kicker){font-size:15px;line-height:1.75}
.onboarding-points{padding-left:22px;margin:14px 0 20px;color:#dce9de;font-size:14px;line-height:1.7}
.onboarding-points li{padding:5px 0 5px 4px}
.onboarding-points li::marker{color:#c8dd9f;font-weight:bold}
.onboarding-save-error{color:#ffc89c!important;font-size:13px!important;white-space:pre-line}
.onboarding-save-error:empty{display:none}
.onboarding-highlight{outline:3px solid #cde6a7!important;outline-offset:5px}
@media(min-width:900px){.tutorial-lobby-guide{place-items:end end;padding:28px}.tutorial-lobby-guide__card{width:470px}}
@media(max-height:520px){#game-screen.rem-battle--phase4 .tutorial-guide-card{max-width:620px!important;padding:14px 20px!important}#game-screen.rem-battle--phase4 .tutorial-guide-body{font-size:14px!important;line-height:1.6!important}.tutorial-lobby-guide{padding:12px}.tutorial-lobby-guide__card{max-height:calc(100dvh - 24px);padding:14px 18px}.tutorial-objective{max-width:350px!important;top:60px!important}}
@media(prefers-reduced-motion:reduce){.tutorial-guide-card,.tutorial-lobby-guide__card{animation:none!important;transition:none!important}}
