/* Mobile only — every rule is scoped to html.is-mobile so desktop is untouched. */
#mobile-panel,.mobile-toggle{display:none}
html.is-mobile #mobile-panel{position:fixed;right:8px;left:auto;z-index:46;background:#0c1b29f5;backdrop-filter:blur(14px);border:1px solid #79d2cb55;border-radius:16px;box-shadow:0 18px 70px #0009;display:flex;flex-direction:column;color:#e7f4fc;font-size:12px;margin-right:env(safe-area-inset-right,0px)}
html.is-mobile #mobile-panel[hidden]{display:none}
html.is-mobile #mobile-panel .look-scroll{flex:1;overflow:auto;min-height:0}
html.is-mobile #mobile-panel .m-orient{border:1px solid #79d2cb33;border-radius:12px;margin:0 0 10px;padding:0 8px 4px}
html.is-mobile #mobile-panel .m-orient>summary{font-size:14px;font-weight:700;color:#b9ffed;padding:10px 4px}
html.is-mobile #mobile-panel .m-orient.m-current{border-color:#66f0ce99;background:#66f0ce0d}
html.is-mobile #mobile-panel .m-check label{display:flex;align-items:center;gap:8px;cursor:pointer}
html.is-mobile #mobile-panel .m-check input{width:20px;height:20px;accent-color:#66f0ce}
html.is-mobile #mobile-panel .m-status{margin:0 14px 10px;color:#9fb7c6;font-size:11px;min-height:1em}
/* Settings panels: no blur on phones (memory) and see-through placement is controlled from the mobile panel. */
html.is-mobile #look-panel,html.is-mobile #ui-panel,html.is-mobile #task1-settings{backdrop-filter:none;-webkit-backdrop-filter:none}
html.is-mobile #ui-panel,html.is-mobile #task1-settings{left:8px!important;right:auto!important}
html.is-mobile #look-panel{right:8px!important;left:auto!important}
/* Scrolling: task selection and Task 1 scroll inside the scene, the header stays fixed above them. */
html.is-mobile #app-viewport #selection{overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;touch-action:pan-y}
html.is-mobile #task1{overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;touch-action:pan-y}
html.is-mobile #task1 .t1-card{touch-action:none}
/* One small ⚙ button on the right edge opens the column of settings buttons (works in portrait and landscape, clear of browser bars). */
.m-tools{display:none}
html.is-mobile .m-tools{display:flex;align-items:center;justify-content:center;position:fixed;z-index:50;right:calc(8px + env(safe-area-inset-right,0px));top:50%;translate:0 -50%;width:40px;height:40px;padding:0;border-radius:50%;border:1px solid #7cddcf88;background:#102531e6;color:#b9ffed;font-size:20px;line-height:1;box-shadow:0 4px 20px #0007}
html.is-mobile.m-tools-open .m-tools{background:#1d4a52;color:#fff}
html.is-mobile .look-toggle{display:none!important}
html.is-mobile.m-tools-open .look-toggle{display:block!important;position:fixed;z-index:49;left:auto!important;bottom:auto!important;margin:0!important;right:calc(56px + env(safe-area-inset-right,0px));translate:0 -50%;white-space:nowrap;padding:.8em 1.2em}
html.is-mobile.m-tools-open .look-toggle.mobile-toggle{top:calc(50% - 84px)}
html.is-mobile.m-tools-open .look-toggle:not(.mobile-toggle):not(.ui-toggle):not(.task1-toggle){top:calc(50% - 28px)}
html.is-mobile.m-tools-open .look-toggle.ui-toggle{top:calc(50% + 28px)}
html.is-mobile.m-tools-open .look-toggle.task1-toggle{top:calc(50% + 84px)}
html.is-mobile :is(#look-panel,#ui-panel,#task1-settings,#mobile-panel) .look-head{touch-action:none;cursor:move}
html.is-mobile :is(#look-panel,#ui-panel,#task1-settings,#mobile-panel) .look-head::after{content:'⠿ sürükle';position:absolute;right:52px;top:12px;font-size:10px;color:#7fa9b8}
html.is-mobile #task1-settings [data-reset]{display:none!important}
html.is-mobile #task1 .t1-bank{overflow:hidden!important;touch-action:pan-y}

/* Portrait phones: task cards are wide rows (icon left, text right), stacked. Landscape and desktop are untouched. */
html.is-mobile.m-dikey #app-viewport #selection .cards{display:grid!important;grid-template-columns:1fr!important;justify-content:stretch!important;margin-inline:auto;max-width:none!important}
html.is-mobile.m-dikey #app-viewport #selection .task{width:100%!important;max-width:none!important;height:auto!important;min-height:0!important;padding:34px 40px!important;display:grid;grid-template-columns:minmax(110px,24%) 1fr;grid-template-areas:"art heading" "art subtitle" "art desc" "art link";column-gap:32px;align-items:center;align-content:center;overflow:hidden;background-position:center 30%!important}
html.is-mobile.m-dikey #app-viewport #selection .task>.task-art{position:static!important;grid-area:art;width:auto;top:auto;font-size:96px;align-self:center;justify-self:center;transform-origin:center}
html.is-mobile.m-dikey #app-viewport #selection .task>.task-heading{grid-area:heading;margin-bottom:6px}
html.is-mobile.m-dikey #app-viewport #selection .task>.task-subtitle{grid-area:subtitle;margin-bottom:10px}
html.is-mobile.m-dikey #app-viewport #selection .task>span:not([class]){grid-area:desc}
html.is-mobile.m-dikey #app-viewport #selection .task>b{grid-area:link;margin-top:12px}
html.is-mobile.m-dikey #app-viewport #selection .task>.task-heading,html.is-mobile.m-dikey #app-viewport #selection .task>.task-subtitle,html.is-mobile.m-dikey #app-viewport #selection .task>span:not([class]),html.is-mobile.m-dikey #app-viewport #selection .task>b{translate:none}
html.is-mobile.m-dikey #app-viewport #selection .task strong br{display:none}
html.is-mobile.m-dikey #app-viewport #selection .task>.art-carbon{font-size:58px}
html.is-mobile #selection-title:focus,html.is-mobile #selection-title:focus-visible{outline:none}
