/* Shared switch; PC layouts keep their existing proportions. */
.view-mode-switch { display:inline-flex; align-items:center; gap:4px; padding:4px; margin-left:auto; border:1px solid #87c9e33d; border-radius:8px; background:#081b2bd9; letter-spacing:0; }
.view-mode-switch > button { box-sizing:border-box; display:inline-flex; align-items:center; justify-content:center; gap:6px; width:auto; min-width:90px; min-height:34px; padding:6px 12px; border:1px solid transparent; border-radius:5px; background:transparent; color:#a6bfd1; font:600 14px/1.2 'Segoe UI',sans-serif; letter-spacing:0; white-space:nowrap; cursor:pointer; }
.view-mode-switch > button[aria-pressed="true"] { border-color:#80d9f2a3; background:#285068; color:#e2f8ff; box-shadow:inset 0 0 12px #87d5ed0b; }
.view-mode-switch > button:hover { color:#e2f8ff; background:#23435a; }
.view-mode-switch > button:focus-visible { outline:2px solid #a8e9ff; outline-offset:2px; }
.view-mode-switch svg { width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:1.7; }
html[data-sukdulan-view="phone"] #sukdulan-starting-frame { width:min(100%,430px,58dvh); margin-inline:auto; box-shadow:0 0 50px #0007; }
/* The tutorial opening and debrief follow the selected portrait view as well. */
html[data-sukdulan-view='phone'] :is(#recruit-opening,#tutorial-victory-ending) { width:min(100vw,430px); height:100dvh; margin:0 auto; }
html[data-sukdulan-view='phone'] :is(.recruit-stage,.tutorial-ending-stage) { width:100%!important; height:100%!important; max-height:none!important; aspect-ratio:auto!important; }
html[data-sukdulan-view='phone'] :is(.recruit-art,.tutorial-ending-art) { object-fit:cover; object-position:69% center; }
html[data-sukdulan-view='phone'] :is(.recruit-panel,.tutorial-ending-panel) { box-sizing:border-box; left:12px!important; right:12px; top:auto!important; bottom:calc(66px + env(safe-area-inset-bottom,0px))!important; width:auto!important; max-height:calc(100% - 94px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px))!important; padding:16px!important; overflow:auto; background:#071724f5; }
html[data-sukdulan-view='phone'] :is(#recruit-dialogue,#tutorial-ending-dialogue) { font-size:16px!important; line-height:1.45!important; min-height:0!important; margin:14px 0!important; }
html[data-sukdulan-view='phone'] :is(.recruit-heading h2,#tutorial-ending-speaker) { font-size:20px!important; letter-spacing:2px!important; }
html[data-sukdulan-view='phone'] :is(.recruit-heading button,.recruit-dialogue-actions button,.tutorial-ending-panel button) { min-height:36px; padding:6px 8px!important; font-size:12px!important; }
html[data-sukdulan-view='phone'] :is(.recruit-skip,#tutorial-ending-skip) { left:12px; right:12px!important; bottom:calc(14px + env(safe-area-inset-bottom,0px))!important; width:calc(100% - 24px); min-height:38px; font-size:12px!important; }
