/* Qylysh OS — Black Clover. An illustrated shell, with three distinct layouts. */
:root{--paper:#f2ecdf;--paper-raised:#fbf6eb;--ink:#29252b;--muted:#7c7378;--line:#d2c8c2;--line-dark:#a69999;--amber:#b34752;--green:#a33d46;--shadow:0 30px 80px #20131b38,0 1px 2px #1d151824;--ease:cubic-bezier(.22,.78,.18,1);color-scheme:light}
html,body{height:100%;overflow:hidden;overscroll-behavior:none}body{background:#d1c7bd;color:var(--ink)}button,a,input{touch-action:manipulation}button:focus-visible,a:focus-visible,summary:focus-visible{outline-color:#a83c4b}body.night{--paper:#2a262d;--paper-raised:#332d35;--ink:#eee5d8;--muted:#bab0b8;--line:#514550;--line-dark:#756875;color-scheme:dark}.desktop-background{background:#d7ccbe url('assets/asta-wallpaper.svg') center/cover no-repeat;transition:filter .4s}.night .desktop-background{filter:brightness(.5) saturate(.5)}.icon{color:#353039}.clover{width:25px;height:25px;vertical-align:middle}.q-mark{background:none;border:0;box-shadow:none;color:#29252b;transform:none;width:24px;height:25px}.q-mark .clover{width:21px;height:23px}.menubar{height:35px;inset:0 0 auto;border:0;border-bottom:1px solid #74656d2b;border-radius:0;background:#f3eadade;box-shadow:none;padding:0 22px;gap:25px;backdrop-filter:blur(22px)}.os-brand{font-size:13px;gap:9px;letter-spacing:-.2px}.os-brand strong>span{font-size:12px}.menubar-right{gap:16px}.hello-button{background:none;border:0;box-shadow:none;font-weight:500;font-size:11px;padding:0;color:var(--ink)}#top-nav button{font-size:11px;padding:4px 8px}#top-nav button.current-app,#top-nav button:hover{background:#38222b0c}.system-button>.icon{width:17px;height:17px}.system-button kbd{font-size:9px}.mini-avatar{border-color:#8f7d83}.mini-avatar img{width:23px;height:23px}.menu-context{display:flex;align-items:center;gap:14px;font:9px var(--mono);color:var(--muted)}.menu-context time{font-size:11px;color:var(--ink)}.desktop-rail{top:70px;width:84px;gap:23px}.left-rail{left:auto;right:22px}.right-rail{display:none}.desktop-icon{color:#3d3339;text-shadow:0 1px #fff9;line-height:1.4;gap:5px}.desktop-icon .icon{width:47px;height:47px;filter:drop-shadow(0 3px 1px #29202a20)}.desktop-icon.current-app{background:#f5ebe246;border-color:#f6eee865}.desktop-icon:hover{background:#f2eadd66;border-color:#f0e6df80}.app-window{left:8%;right:12%;top:77px;bottom:115px;max-width:1200px;border:1px solid #80737d8a;border-radius:14px;box-shadow:var(--shadow);transition:none;z-index:2}.app-window.maximized{top:44px;bottom:93px;left:12px;right:12px;max-width:none}.window-titlebar{height:43px;background:#e7dfd8e8;border-bottom:1px solid #cdc0bf;position:relative;justify-content:center;padding:0 19px}.window-controls{position:absolute;left:18px;gap:8px}.window-controls button{width:12px;height:12px;font-size:0;color:transparent;border:1px solid #0001;background:#6ca380}.window-controls:hover button{font-size:10px;color:#3d3035}.window-controls button:first-child{background:#c65b5e;border-color:#b34e51}.window-controls button:nth-child(2){background:#d7b56e;border-color:#c2a061}.window-controls button:nth-child(3){background:#8a9e83;border-color:#7c9274}.window-name{font-size:11px;font-weight:600;color:#6b6068;letter-spacing:0}.window-decoration{position:absolute;right:18px;color:#a23e4b;font-size:17px}.window-status{background:#e9e1d8;color:#877a7e;height:25px;font-size:8px}.window-status i{background:#a34751}.window-content{scrollbar-color:#b6a6ad transparent;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}.taskbar{display:none}.app-dock{position:fixed;left:50%;bottom:max(13px,env(safe-area-inset-bottom));transform:translateX(-50%);z-index:8;display:flex;align-items:center;gap:11px;height:76px;padding:8px 14px 5px;border:1px solid #fff8;border-bottom-color:#97849080;border-radius:22px;background:#ede4d994;backdrop-filter:blur(25px);box-shadow:0 5px 25px #30212c2b,inset 0 1px #fff9}.dock-item{position:relative;display:flex;align-items:center;flex-direction:column;padding:0 0 5px}.app-tile{width:53px;height:53px;display:grid;place-items:center;background:#ede3d5;border:1px solid #4b3b4838;border-radius:13px;box-shadow:inset 0 1px #ffffff9c,0 3px 4px #30243021;transition:transform .22s var(--ease)}.app-tile .icon{width:39px;height:39px;filter:drop-shadow(0 2px 1px #30232a25)}.app-work .app-tile{background:#b5a4a0}.app-story .app-tile{background:#e0d0b1}.app-play .app-tile{background:#b95763}.app-contact .app-tile{background:#a7a1b0}.app-home .app-tile{background:#d1c2b4}.app-channel .app-tile{background:#a6abb6}.app-search .app-tile{background:#e6ded3}.dock-item i{position:absolute;width:3px;height:3px;background:transparent;border-radius:50%;bottom:-2px}.dock-item.running i{background:#5c4a58}.dock-item.active i{background:#a43949}.dock-label{position:absolute;bottom:calc(100% + 17px);background:#f7eedfeb;color:#4c3d48;padding:4px 9px;border:1px solid #b7a7ad;border-radius:6px;font-size:10px;white-space:nowrap;opacity:0;pointer-events:none;transition:opacity .1s}.dock-item:hover .app-tile{transform:translateY(-7px) scale(1.12)}.dock-item:hover .dock-label,.dock-item:focus-visible .dock-label{opacity:1}.dock-divider{width:1px;height:40px;background:#8d788b55;margin:0 3px}.dock-overview .app-tile{background:#bbb1b9}.sheet-grip,.mobile-apps,.mobile-navigation{display:none}
/* The paper and ink continue inside every app. */
.live-dot{background:#a33d46;box-shadow:0 0 0 3px #a33d4618}.marked:before{background:#a33d4624;inset:70% -3% -1%;border-radius:0;clip-path:polygon(0 18%,98% 0,100% 75%,3% 100%)}.hero h1{letter-spacing:-.06em}.hero .lead{color:#685f64}.button{border-color:#b7a5a7;background:#f8f2e5;color:#55424d;box-shadow:0 2px #b8a6a5,inset 0 1px #fff;border-radius:7px}.button.primary{background:#a6414e;color:#fff3e7;border-color:#873442;box-shadow:0 2px #782b39,inset 0 1px #cf7b80}.button.primary .icon{color:#f1dfd6}.text-link:hover{color:#a33d46}.hero-art{min-height:320px}.desk-art{width:117%;margin-top:67px;margin-left:0;max-width:590px}.portrait-card{background:#f4ead7;border-color:#b8a295;box-shadow:3px 7px #38273416}.art-caption{color:#8b7179}.tape{background:#b6536145}.now-card,.journey-note,.channel-note{background:#e9dfd2;border-color:#c7b8ac}.mini-pipeline strong{color:var(--ink)}.rooms-feature{background:#e4d7cd;border-color:#b7a1a6;box-shadow:0 3px #b5a0a5}.rooms-preview{background:#d7cbc0}.file-sidebar{background:#e8ddd3;border-color:#cbb9b7}.file-sidebar button.selected{background:#a6414e;color:#fff3e7}.file-sidebar button.selected small{color:#f5e4de}.file-sidebar button.selected .icon{color:#392d35}.file-sidebar button:hover:not(.selected){background:#d5c7c580}.project-detail .project-body,.timeline-item p,.now-heading p{color:#6a5f66}.pipeline{background:#ece2d5;border-color:#c4b2b4}.pipeline-steps{background:#ded0cc}.pipeline-steps button.active{background:#f8efe2;color:#762d3c;box-shadow:inset 0 3px #a34550}.sample-terminal{background:#322a31;color:#e6d5c4;border-color:#5b414e}.sample-terminal code{color:#e5cab0}.sample-terminal>div{color:#af969f;border-color:#614b56}.status-tag{color:#a6414e}.status-tag i{background:#a6414e}.timeline-item .timeline-mark{background:var(--paper)}.shelf-item:hover{background:#dccdc838}.location-stamp{border-color:#a0575c;color:#985260;background:#f5e7dabb}.photo-frame{background:#f8efde;border-color:#c5b0a8}.photo-frame>span{color:#93797d}.game-card{box-shadow:0 3px #cfc0b9}.game-card:hover{border-color:#b67d85}.page-foot{color:#8b7e84}#search-dialog{border-color:#a594a0;border-radius:17px;background:var(--paper);box-shadow:var(--shadow)}#search-dialog::backdrop{background:#291d2b55;backdrop-filter:blur(8px)}#search-results button:hover,#search-results button:focus{background:#ddc9c8}.search-field{padding:19px}.search-field input{font-size:16px}.night .menubar{background:#28232cda;border-color:#ad8e9c22}.night .q-mark{color:#e9d5c4}.night .window-titlebar,.night .window-status{background:#342b35;border-color:#554450}.night .window-name{color:#cdbec9}.night .app-dock{background:#352632ab;border-color:#c1a9b338}.night .dock-label{background:#332733;color:#e5d1cb;border-color:#594450}.night .desktop-icon{color:#f1ded0}.night .hero .lead,.night .project-detail .project-body,.night .timeline-item p,.night .now-heading p{color:#c0adb8}.night .now-card,.night .journey-note,.night .channel-note,.night .rooms-feature,.night .pipeline{background:#382e39;border-color:#5c4556}.night .file-sidebar{background:#352a34}.night .file-sidebar button.selected{background:#8c3545}.night .pipeline-steps{background:#51404f}.night .pipeline-steps button.active{background:#c9aea8}.night .button{background:#e7d5c5;color:#4b3543}.night .button.primary{background:#a6414e;color:#fff3e7}.night .hello-button{color:var(--ink)}.night .marked:before{background:#a7425266}
/* Home screen: actual app launchers, not a shrunken desktop. */
.launcher{position:fixed;z-index:1;inset:60px 13% 120px 9%;overflow:auto;scrollbar-width:none;padding:25px 30px 20px}.launcher-heading{max-width:600px;margin:0 0 35px}.edition{font:9px var(--mono);letter-spacing:.2em;color:#8a5967}.launcher-heading h1{font-size:65px;line-height:1;letter-spacing:-.065em;margin:17px 0 14px;font-weight:750}.launcher-heading em{font-style:normal;color:#a03a4a}.launcher-heading p{font-size:14px;color:#7c6770}.launch-pages{display:grid;grid-template-columns:1fr 1fr;gap:25px}.launch-page{min-width:0}.home-widgets{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:28px}.identity-widget,.build-widget,.motto-widget{position:relative;overflow:hidden;min-height:180px;border:1px solid #a8909847;border-radius:24px;background:#eee3d5c9;box-shadow:0 4px 16px #3b253519,inset 0 1px #ffffff9c;backdrop-filter:blur(14px);padding:23px;text-align:left;color:#45323e}.identity-widget{display:flex;align-items:center;gap:14px}.widget-photo{display:block;flex-shrink:0}.widget-photo img{width:72px;height:85px;object-fit:cover;border-radius:13px;box-shadow:0 2px 6px #462c391c}.identity-widget strong{display:block;font-size:25px;line-height:1;letter-spacing:-.05em;margin:6px 0 8px}.identity-widget small,.build-widget small{font:8px var(--mono);letter-spacing:.1em}.identity-widget>span>span{font-size:9px;color:#876f78}.identity-widget>b{position:absolute;top:14px;right:17px;font-weight:400}.build-widget{display:flex;flex-direction:column;background:#382d38;color:#f0dfca;isolation:isolate}.build-widget strong{font-size:26px;letter-spacing:-.03em;margin:15px 0 8px}.build-widget>span:not(.widget-clover){font-size:11px;line-height:1.5;color:#c1a7af}.widget-clover{position:absolute;right:-17px;bottom:-30px;transform:rotate(-20deg);color:#a94a55;z-index:-1}.widget-clover .clover{width:135px;height:150px;opacity:.6}.launch-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:22px 12px}.launch-app{display:flex;flex-direction:column;align-items:center;gap:9px;text-decoration:none;padding:0;min-width:0;font-size:11px;color:#4c3744;text-shadow:0 1px #f4e4d4}.launch-app .app-tile{width:62px;height:62px;border-radius:16px}.launch-app .app-tile .icon{width:43px;height:43px}.launch-app:hover .app-tile{transform:translateY(-4px) rotate(-3deg)}.motto-widget{height:180px;margin-bottom:28px;background:#ddd0becc;isolation:isolate}.motto-widget>.clover{position:absolute;width:140px;height:150px;right:15px;top:13px;color:#a44a53;opacity:.14;transform:rotate(20deg);z-index:-1}.motto-widget>small{display:block;font:8px var(--mono);letter-spacing:.15em;color:#985361}.motto-widget strong{display:block;font-size:32px;line-height:1.1;letter-spacing:-.055em;margin:13px 0}.motto-widget>span{font:7px var(--mono);letter-spacing:.11em;color:#977a80}.home-pages,.home-gesture-hint{display:none}.night .launcher-heading h1{color:#e9d9cc}.night .launcher-heading em{color:#c16b79}.night .launcher-heading p{color:#cbb2bb}.night .launch-app{color:#ecd9cf;text-shadow:0 1px #271923}.night .edition{color:#b97c89}
/* App overview: tappable cards with a central, vertical dismissal gesture. */
#app-switcher{position:fixed;inset:0;width:min(1080px,calc(100% - 64px));height:min(680px,calc(100dvh - 80px));max-height:none;max-width:none;border:1px solid #b6a0aa8f;border-radius:25px;padding:30px;background:#dfd0c1ed;color:#4a3542;overflow:hidden;box-shadow:0 35px 100px #1b0e1d50;overscroll-behavior:contain;backdrop-filter:blur(30px)}#app-switcher::backdrop{background:#2113227a;backdrop-filter:blur(13px)}.switcher-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.switcher-heading h2{font-size:31px;letter-spacing:-.05em;margin:5px 0}.switcher-done{font-size:13px;font-weight:600;padding:12px 18px;border-radius:30px;background:#ac4857;color:#fff0e3}.switcher-cards{display:flex;gap:27px;align-items:center;overflow-x:auto;overflow-y:hidden;height:calc(100% - 118px);padding:35px 15px 25px;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain;touch-action:pan-x pinch-zoom}.recent-card{flex:0 0 255px;scroll-snap-align:center;transition:transform .25s var(--ease),opacity .25s;touch-action:pan-x pinch-zoom}.recent-card.dragging{transition:none}.recent-name{display:flex;align-items:center;gap:8px;font-size:12px;padding:0 8px 12px}.recent-name .icon{width:23px;height:23px}.recent-name strong{font-weight:600}.recent-name button{margin-left:auto;width:30px;height:30px;border-radius:50%;font-size:21px;background:#ad8d982a;touch-action:manipulation}.recent-preview{padding:0 23px 23px;background:#f5ecde;border:1px solid #bba3ab;border-radius:17px;height:315px;display:flex;align-items:flex-start;flex-direction:column;width:100%;box-shadow:0 8px 25px #3c203627;text-align:left;overflow:hidden;color:#4c3544;touch-action:pan-x pinch-zoom}.mini-titlebar{display:flex;background:#e1d2c9;width:calc(100% + 46px);margin:0 -23px 24px;padding:10px 12px;gap:4px}.mini-titlebar i{width:5px;height:5px;border-radius:50%;background:#b56772}.mini-titlebar i:nth-child(2){background:#c6aa77}.mini-titlebar i:nth-child(3){background:#9d998a}.mini-app-icon .icon{width:40px;height:40px}.recent-preview>strong{font-size:24px;letter-spacing:-.05em;margin:13px 0 8px}.recent-preview>span:not(.mini-titlebar,.mini-app-icon,.mini-lines){font-size:11px;line-height:1.6;color:#977c89}.recent-preview>b{font-size:11px;font-weight:500;margin-top:auto;color:#a64254}.mini-lines{width:100%;margin:24px 0 15px;display:grid;gap:7px}.mini-lines i{height:4px;border-radius:3px;background:#ded0c8}.mini-lines i:nth-child(2){width:80%}.mini-lines i:nth-child(3){width:55%}.switcher-help{text-align:center;font-size:11px;color:#917380;margin:12px 0}.no-apps{width:100%;text-align:center;color:#886877}.no-apps>.clover{width:50px;height:60px;color:#a74555;margin-bottom:15px}.no-apps h3{font-size:27px}.no-apps p{font-size:13px}.no-apps button{border:1px solid #ae8b99;border-radius:20px;padding:10px 16px;font-size:12px}
/* iPad-sized windows float over a spacious icon grid. */
body[data-shell=tablet] .menubar{height:38px;padding:0 20px}body[data-shell=tablet] #top-nav{display:none}body[data-shell=tablet] .desktop-rail{display:none}body[data-shell=tablet] .launcher{inset:68px 6% 115px;padding:20px}body[data-shell=tablet] .launcher-heading{margin-bottom:32px}body[data-shell=tablet] .launcher-heading h1{font-size:52px}body[data-shell=tablet] .launch-pages{grid-template-columns:1fr;gap:28px}body[data-shell=tablet] .launch-page{display:grid;grid-template-columns:1.1fr 1fr;align-items:center;gap:30px}body[data-shell=tablet] .home-widgets{grid-template-columns:1fr;gap:15px;margin:0}body[data-shell=tablet] .identity-widget{min-height:145px}body[data-shell=tablet] .build-widget{display:none}body[data-shell=tablet] .motto-widget{height:160px;min-height:0;margin:0}body[data-shell=tablet] .launch-grid{grid-template-columns:repeat(2,1fr);gap:25px}body[data-shell=tablet] .app-window{top:66px;left:5%;right:5%;bottom:112px;max-width:980px;border-radius:22px}body[data-shell=tablet] .app-window.maximized{inset:46px 15px 105px}body[data-shell=tablet] .window-titlebar{height:48px;cursor:default}body[data-shell=tablet] .window-controls{display:none}body[data-shell=tablet] .window-decoration{display:none}body[data-shell=tablet] .sheet-grip{display:block;position:absolute;left:calc(50% - 50px);width:100px;height:20px;top:0;touch-action:none;padding:5px 20px}body[data-shell=tablet] .sheet-grip>span{display:block;width:35px;height:4px;border-radius:4px;background:#b7a7b0;margin:auto}body[data-shell=tablet] .window-name{padding-top:10px}body[data-shell=tablet] .mobile-apps{display:block;position:absolute;right:18px;font-size:21px;color:#9f5062}body[data-shell=tablet] .app-dock{height:77px;bottom:max(17px,env(safe-area-inset-bottom))}body[data-shell=tablet] .home-page{padding:28px 30px 0}body[data-shell=tablet] .hero{min-height:355px}body[data-shell=tablet] .hero-art{min-height:290px}body[data-shell=tablet] .desk-art{margin-top:65px;width:118%}body[data-shell=tablet] .portrait-card{top:0}
/* Phone layout: SpringBoard-like app grid and full-height app sheets. */
body[data-shell=phone] .desktop-background{background-position:60% center}body[data-shell=phone] .menubar{height:calc(43px + env(safe-area-inset-top));padding:env(safe-area-inset-top) 21px 0;background:transparent;border:0;box-shadow:none;backdrop-filter:none;gap:9px}body[data-shell=phone] .os-brand strong{font-size:11px}body[data-shell=phone] .os-brand strong>span{font-size:10px}body[data-shell=phone] .os-brand .q-mark{width:17px}body[data-shell=phone] .q-mark .clover{width:17px;height:20px}body[data-shell=phone] #top-nav,body[data-shell=phone] .hello-button,body[data-shell=phone] .mini-avatar,body[data-shell=phone] #search-button kbd,body[data-shell=phone] .menu-context>span{display:none}body[data-shell=phone] .menubar-right{gap:12px}body[data-shell=phone] .system-button>.icon{width:17px;height:17px}body[data-shell=phone] .menu-context time{font-size:11px;font-weight:500}body[data-shell=phone] .desktop-rail{display:none}body[data-shell=phone] .launcher{inset:calc(45px + env(safe-area-inset-top)) 0 calc(115px + env(safe-area-inset-bottom));padding:17px 0 12px;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain}body[data-shell=phone] .launcher-heading{padding:0 27px;margin-bottom:28px}body[data-shell=phone] .edition{font-size:7px;letter-spacing:.18em}body[data-shell=phone] .launcher-heading h1{font-size:41px;margin:13px 0 10px}body[data-shell=phone] .launcher-heading p{font-size:11px;max-width:260px;margin:0}body[data-shell=phone] .launch-swipe{margin:0 32px;overflow:hidden;touch-action:pan-y pinch-zoom}body[data-shell=phone] .launch-pages{display:flex;gap:0;transition:transform .4s var(--ease);will-change:transform}body[data-shell=phone] .launch-page{flex:0 0 100%;min-width:0;padding:0 1px 10px}body[data-shell=phone] .home-widgets{grid-template-columns:1fr;margin:0 0 28px;gap:14px}body[data-shell=phone] .identity-widget{min-height:145px;padding:21px;gap:21px;border-radius:24px}body[data-shell=phone] .identity-widget strong{font-size:29px}body[data-shell=phone] .widget-photo img{width:83px;height:99px;border-radius:14px}body[data-shell=phone] .identity-widget>span>span{font-size:10px}body[data-shell=phone] .identity-widget small{font-size:7px}body[data-shell=phone] .build-widget{min-height:126px;padding:20px 22px;border-radius:24px}body[data-shell=phone] .build-widget strong{font-size:25px;margin:9px 0 5px}body[data-shell=phone] .build-widget>span:not(.widget-clover){font-size:10px}body[data-shell=phone] .widget-clover{right:11px;bottom:-33px}body[data-shell=phone] .widget-clover .clover{width:127px;height:155px}body[data-shell=phone] .launch-grid{grid-template-columns:repeat(4,1fr);gap:11px}body[data-shell=phone] .launch-app{font-size:9px;line-height:1.4;gap:8px}body[data-shell=phone] .launch-app .app-tile{width:54px;height:54px;border-radius:15px}body[data-shell=phone] .launch-app .app-tile .icon{width:37px;height:37px}body[data-shell=phone] .motto-widget{height:285px;margin:0 0 28px;padding:28px;border-radius:25px}body[data-shell=phone] .motto-widget strong{font-size:45px;margin:25px 0}body[data-shell=phone] .motto-widget>.clover{width:180px;height:200px;right:-45px;top:42px}body[data-shell=phone] .home-pages{display:flex;gap:3px;justify-content:center;margin:20px auto 0;width:max-content;border-radius:18px;background:#f1e7dc44;padding:0 5px}body[data-shell=phone] .home-pages button{width:25px;height:28px;position:relative}body[data-shell=phone] .home-pages button:after{content:'';position:absolute;width:6px;height:6px;border-radius:50%;background:#8f788877;top:11px;left:9px}body[data-shell=phone] .home-pages button[aria-current=true]:after{background:#843547}body[data-shell=phone] .home-gesture-hint{display:block;font-size:8px;text-align:center;margin:9px 0 0;color:#846374}body[data-shell=phone] .app-dock{bottom:calc(34px + env(safe-area-inset-bottom));height:73px;gap:12px;width:auto;max-width:calc(100% - 32px);padding:9px 14px;border-radius:25px}body[data-shell=phone] .dock-item .app-tile{width:49px;height:49px;border-radius:14px}body[data-shell=phone] .dock-item .app-tile .icon{width:34px;height:34px}body[data-shell=phone] .dock-item.app-home,body[data-shell=phone] .dock-divider,body[data-shell=phone] .dock-overview{display:none}body[data-shell=phone] .dock-item{padding-bottom:0}body[data-shell=phone] .dock-item i{display:none}body[data-shell=phone] .dock-label{display:none}body[data-shell=phone] .dock-item:hover .app-tile{transform:none}body[data-shell=phone] .mobile-navigation{position:fixed;bottom:calc(8px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);display:flex;align-items:center;justify-content:center;gap:22px;z-index:9;border-radius:20px;color:#725166}body[data-shell=phone] .mobile-navigation button{display:flex;align-items:center;gap:6px;font-size:9px;padding:4px 5px;min-height:26px;white-space:nowrap}body[data-shell=phone] .mobile-navigation .clover{width:12px;height:14px}body[data-shell=phone] .switcher-symbol{font-size:15px;line-height:1}body[data-shell=phone].app-open .app-dock{pointer-events:none;opacity:0;transform:translate(-50%,30px)}body[data-shell=phone] .app-dock{transition:opacity .25s,transform .3s var(--ease)}body[data-shell=phone].app-open .mobile-navigation{bottom:calc(13px + env(safe-area-inset-bottom));background:#e8dad2ea;border:1px solid #c5afb94f;padding:3px 17px;box-shadow:0 3px 9px #30172a15;backdrop-filter:blur(12px)}body[data-shell=phone] .app-window,body[data-shell=phone] .app-window.maximized{inset:calc(45px + env(safe-area-inset-top)) 9px calc(61px + env(safe-area-inset-bottom));width:auto;border-radius:25px;box-shadow:0 12px 40px #29152a2b;border-color:#a78e9a90}body[data-shell=phone] .window-titlebar{height:54px;background:#e9ded6;cursor:default;touch-action:pan-y}body[data-shell=phone] .window-controls,body[data-shell=phone] .window-decoration,body[data-shell=phone] .window-status{display:none}body[data-shell=phone] .window-name{padding-top:9px;font-size:11px}body[data-shell=phone] .sheet-grip{position:absolute;top:0;left:calc(50% - 60px);width:120px;height:23px;padding:6px 30px;display:block;touch-action:none}body[data-shell=phone] .sheet-grip>span{display:block;width:36px;height:4px;border-radius:4px;background:#b49daa;margin:auto}body[data-shell=phone] .mobile-apps{display:block;position:absolute;right:13px;top:15px;padding:7px 9px;font-size:18px;color:#a24a5e}body[data-shell=phone] .home-page{padding:26px 23px 0}body[data-shell=phone] .hero{grid-template-columns:1fr;min-height:0}body[data-shell=phone] .hero h1{font-size:40px}body[data-shell=phone] .hero-art{min-height:250px;margin-top:10px}body[data-shell=phone] .desk-art{width:105%;margin:37px 0 0;max-width:365px}body[data-shell=phone] .portrait-card{top:0;right:6%;width:90px}body[data-shell=phone] .art-caption{bottom:0}body[data-shell=phone] .rooms-preview{min-height:200px}body[data-shell=phone] .work-page,body[data-shell=phone] .story-page,body[data-shell=phone] .play-page{padding:23px 20px}body[data-shell=phone] #app-switcher{width:calc(100% - 32px);height:calc(100dvh - 110px - env(safe-area-inset-top) - env(safe-area-inset-bottom));border-radius:29px;padding:26px 0 15px;background:#dbc9c3e6}body[data-shell=phone] .switcher-heading{padding:0 23px;margin:0}body[data-shell=phone] .switcher-heading h2{font-size:26px}body[data-shell=phone] .switcher-done{font-size:10px;padding:9px 12px}body[data-shell=phone] .switcher-cards{padding:25px 30px 15px;gap:20px;height:calc(100% - 100px)}body[data-shell=phone] .recent-card{flex-basis:calc(100vw - 110px)}body[data-shell=phone] .recent-preview{height:340px}body[data-shell=phone] .switcher-help{padding:0 26px;font-size:10px;line-height:1.5}body[data-shell=phone] .night .menubar{background:transparent}
@media(max-height:740px){body[data-shell=phone] .launcher-heading{margin-bottom:20px}body[data-shell=phone] .launcher-heading h1{font-size:34px}body[data-shell=phone] .identity-widget{min-height:115px;padding:15px 20px}body[data-shell=phone] .widget-photo img{width:67px;height:78px}body[data-shell=phone] .identity-widget strong{font-size:25px}body[data-shell=phone] .build-widget{min-height:107px;padding:15px 20px}body[data-shell=phone] .home-widgets{margin-bottom:19px;gap:12px}body[data-shell=phone] .home-pages{margin-top:13px}body[data-shell=phone] .home-gesture-hint{display:none}body[data-shell=phone] .motto-widget{height:238px}body[data-shell=phone] .recent-preview{height:280px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.launch-pages{will-change:auto}}
/* The same anti-magic ink palette reaches the games, too. */
.arcade,.world{--ink:#493440;--muted:#8c6c7c;--line:#d0b8bf;background:#f2e7d9;border-color:#a58c97;box-shadow:0 25px 70px #2513274d;border-radius:19px}.arcade-head,.world-top{background:#e5d4d0;border-color:#c6aeb9}.arcade-tabs,.world-chapterbar{background:#e8dcd5;border-color:#c9b1bd}.arcade-tabs button[aria-pressed=true]{box-shadow:inset 0 3px #a33d4f;background:#f2e7d9;color:#6b374a}.arcade-tabs button[aria-pressed=true]:after{background:#f2e7d9}.world-chapterbar button[aria-pressed=true]{background:#bb6370;color:#fff3e7;border-color:#975460;box-shadow:0 2px #9c5160}.arcade .game-primary,.world-interact,.world-pause button{background:#ab4c5c;color:#fff0e4;border-color:#914455;box-shadow:0 3px #8f4050,inset 0 1px #cc8390}.arcade .game-primary:hover,.world-interact:hover{background:#b35666}.world-interact kbd{background:#c57480;border-color:#d89ca5;color:#fff0e4}.canvas-wrap,.world-stage{background:#d9c8ce;border-color:#b497a7;box-shadow:0 4px #bba5b0,inset 0 0 0 4px #fbf0dd}.signal-tile.connected{background:#eed2cf;border-color:#bf7886}.signal-tile.connected .pipe{stroke:#a44b60}.signal-tile.connected .joint{fill:#d4989e;stroke:#a45c6b}.signal-tile.connected .checkpoint-bg{fill:#ecc5cb;stroke:#a86779}.game-meta{background:#e3d2d4;color:#8b6679;border-color:#cbb0bf}.game-meta b{color:#643749}.arcade-foot,.world-bottom{background:#e8dad4;color:#917482;border-color:#c9afbc}.overlay-card{background:#fff0e4ed;border-color:#b19ba9;box-shadow:4px 5px #75526c24}.overlay-card>span{color:#5d344a}.overlay-card>p{color:#967285}.arcade::backdrop,.world::backdrop{background:#311d3659;backdrop-filter:blur(7px)}.world-memory{background:#f7e8d5;border-color:#cbb096}.world-stage canvas{background:#eee2d2}.rooms-preview>span{background:#f1e4d6d9;border-color:#c5afb6;color:#846476}.arcade .sound-toggle,.world #worldSound{background:#f0e3da;border-color:#bca3b2;color:#896677;box-shadow:0 2px #c4b0bb}.sound-toggle:before,#worldSound:before{color:#a45569}.world-top h2,.arcade .game-heading h2{color:#573746}.arcade button:focus-visible,.world button:focus-visible,.world canvas:focus-visible{outline-color:#a64159}.arcade .game-help,.arcade .game-heading p{color:#8d6d7d}.world-caption p{color:#805b70}.world .world-notes,.world .world-message{color:#977d8d}.world .world-notes summary{color:#965e77}.arcade .journal-entry p{color:#8e6c80}.arcade .game-era{background:#e8d9d5;color:#937888;border-color:#cdb5c0}.arcade .board-overlay{background:#e8d1d64d}
/* Keep navigation targets comfortable and above Safari's own bottom controls. */
body[data-shell=phone] .mobile-navigation button{min-height:42px;font-size:10px;padding:5px 7px}body[data-shell=phone] .app-dock{bottom:calc(58px + env(safe-area-inset-bottom))}body[data-shell=phone] .launcher{bottom:calc(140px + env(safe-area-inset-bottom))}body[data-shell=phone] .app-window,body[data-shell=phone] .app-window.maximized{bottom:calc(79px + env(safe-area-inset-bottom))}body[data-shell=phone].app-open .mobile-navigation{bottom:calc(10px + env(safe-area-inset-bottom))}body[data-shell=phone] .home-pages button{width:32px;height:32px}body[data-shell=phone] .home-pages button:after{top:13px;left:13px}
