:root {
  --sys: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Helvetica Neue", system-ui, sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #1a1612; font-family: var(--sys); -webkit-font-smoothing: antialiased; overscroll-behavior: none; }
#gl, #gl canvas { position: fixed; inset: 0; display: block; }
#gl { opacity: 0; transition: opacity 1.2s ease; } body.ready #gl { opacity: 1; }

/* ---------- the physical screen pinned onto the photo ---------- */
#screen { position: fixed; left: 0; top: 0; width: 1504px; height: 960px; transform-origin: 0 0; overflow: hidden; border-radius: 9px; background: #050505; will-change: transform; opacity: 0; transition: opacity 1s ease; }
body.ready #screen { opacity: 1; }
.screen-content { position: absolute; inset: 0; }
.screen-off { position: absolute; inset: 0; background: radial-gradient(120% 120% at 30% 20%, #1c1d1f, #070707 60%); transition: opacity 1.2s ease .2s; pointer-events: none; z-index: 20; }
#screen.on .screen-off { opacity: 0; }
.glass { position: absolute; inset: 0; pointer-events: none; z-index: 30; border-radius: 9px;
  box-shadow: inset 0 0 0 1.5px rgba(0,0,0,.55), inset 0 6px 18px rgba(0,0,0,.35), inset 0 -2px 10px rgba(0,0,0,.25);
  background: linear-gradient(122deg, rgba(255,255,255,.07) 0%, rgba(255,255,255,.02) 26%, rgba(255,255,255,0) 40%), radial-gradient(140% 100% at 50% 50%, rgba(0,0,0,0) 62%, rgba(0,0,0,.16) 100%); }
#screen.night .glass { background: radial-gradient(140% 100% at 50% 50%, rgba(0,0,0,0) 60%, rgba(0,0,0,.25) 100%); }
body[data-view="focus"] .glass { box-shadow: inset 0 0 0 1px rgba(0,0,0,.4); background: none; }
#screen.degauss .screen-content { animation: degauss .8s cubic-bezier(.3,.6,.4,1); }
@keyframes degauss { 0% { filter: none; transform: none; } 15% { filter: hue-rotate(60deg) saturate(2) brightness(1.3); transform: scale(1.01) skewX(1.5deg); } 35% { filter: hue-rotate(-50deg) saturate(1.6); transform: scale(.995) skewX(-1deg); } 60% { filter: hue-rotate(20deg); transform: skewX(.4deg); } 100% { filter: none; transform: none; } }

/* steam */
#steam { position: fixed; left: 0; top: 0; width: 0; height: 0; pointer-events: none; transform-origin: 0 0; transition: opacity 1s; }
#steam i { position: absolute; left: -9px; bottom: 0; width: 18px; height: 60px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,255,255,.55), rgba(255,255,255,0)); filter: blur(4px); animation: steam 4.2s ease-in infinite; opacity: 0; }
#steam i:nth-child(2) { animation-delay: 1.4s; left: -3px; } #steam i:nth-child(3) { animation-delay: 2.8s; left: -14px; }
@keyframes steam { 0% { transform: translate(0, 0) scale(.6, .5); opacity: 0; } 25% { opacity: .9; } 100% { transform: translate(8px, -70px) scale(1.4, 1.3) skewX(10deg); opacity: 0; } }

/* hyper-subtle affordances: tiny breathing glints on things you can touch */
#hints { position: fixed; inset: 0; pointer-events: none; z-index: 2; transition: opacity .6s; }
body[data-view="focus"] #hints { opacity: 0; }
#hints i { position: absolute; left: -3px; top: -3px; width: 6px; height: 6px; border-radius: 50%; background: rgba(255,250,240,.85); box-shadow: 0 0 6px 1px rgba(255,236,210,.6); opacity: .0; animation: breathe 3.6s ease-in-out infinite; transition: opacity .6s; }
body.ready #hints i { opacity: .55; }
#hints i:nth-child(2n) { animation-delay: -1.2s; } #hints i:nth-child(3n) { animation-delay: -2.3s; }
#hints i::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid rgba(255,245,230,.45); animation: ring 3.6s ease-out infinite; animation-delay: inherit; }
#hints i.used { opacity: 0 !important; }
@keyframes breathe { 0%, 100% { transform: scale(.75); } 50% { transform: scale(1); } }
@keyframes ring { 0% { transform: scale(.4); opacity: .7; } 70%, 100% { transform: scale(1.8); opacity: 0; } }

#tip { position: fixed; left: 0; top: 0; z-index: 40; pointer-events: none; padding: 5px 10px; border-radius: 8px; font: 500 12px var(--sys); color: #fff; background: rgba(28,24,20,.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; transition: opacity .15s; white-space: nowrap; }
#tip.on { opacity: 1; }

/* ---------- hud ---------- */
#hud { position: fixed; left: 18px; bottom: 18px; z-index: 40; display: flex; gap: 8px; align-items: center; opacity: 0; transform: translateY(8px); transition: .8s ease 1.5s; }
body.ready #hud { opacity: 1; transform: none; }
#hud button { height: 40px; border-radius: 20px; border: 0; color: #fff; background: rgba(30,24,20,.5); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.25), 0 8px 18px -8px rgba(0,0,0,.5); }
#hud button { width: 40px; cursor: pointer; font-size: 16px; transition: transform .15s; }
#hud button:hover { transform: scale(1.08); } #hud button.off { opacity: .45; }
#hud button.hint { animation: hintpulse 2.4s ease-in-out infinite; }
@keyframes hintpulse { 50% { box-shadow: inset 0 0 0 .5px rgba(255,255,255,.25), 0 0 0 6px rgba(255,255,255,.08); } }
#zoom { height: 40px; display: flex; align-items: center; gap: 10px; padding: 0 12px; border-radius: 20px; color: #fff; background: rgba(30,24,20,.5); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.25), 0 8px 18px -8px rgba(0,0,0,.5); }
.z-ico { opacity: .75; cursor: pointer; flex: none; } .z-ico:hover { opacity: 1; }
.z-track { position: relative; width: 84px; height: 22px; cursor: pointer; touch-action: none; }
.z-track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1.5px; border-radius: 2px; background: rgba(255,255,255,.28); }
.z-track i { position: absolute; top: 50%; width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-radius: 50%; background: rgba(255,255,255,.55); }
.z-track i:nth-child(1) { left: 0; } .z-track i:nth-child(2) { left: 50%; } .z-track i:nth-child(3) { left: 100%; }
.z-knob { position: absolute; top: 50%; left: 0; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.4); transition: left .35s cubic-bezier(.2,.8,.2,1), transform .15s; }
.z-knob.drag { transition: transform .15s; transform: scale(1.18); }
#toast { position: fixed; left: 50%; top: 20px; z-index: 45; transform: translate(-50%, -16px); padding: 9px 16px; border-radius: 999px; font: 500 13px var(--sys); color: #fff; background: rgba(28,22,18,.78); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); opacity: 0; transition: .35s; pointer-events: none; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* =====================================================================
   macOS (Sequoia proportions; 1 css px = 1 pt)
   ===================================================================== */
.mac { position: relative; overflow: hidden; font: 13px/1.35 var(--sys); letter-spacing: -.003em; color: #1d1d1f; user-select: none; -webkit-user-select: none; cursor: default;
  --text: #1d1d1f; --text2: rgba(0,0,0,.5); --sep: rgba(0,0,0,.1); --win: #ffffff; --side: rgba(232,230,236,.72); --tb: rgba(246,245,248,.86); --accent: #0a84ff; --sel: #0063e1; }
.mac.dark { color: #f5f5f7; --text: #f5f5f7; --text2: rgba(255,255,255,.55); --sep: rgba(255,255,255,.1); --win: #1e1e1e; --side: rgba(44,42,48,.72); --tb: rgba(40,40,42,.86); }
.mac svg { display: block; }
.wallpaper { position: absolute; inset: 0; }
.wp { position: absolute; inset: 0; background: center/cover no-repeat; transition: opacity 1.2s ease; }
.wp-light { background-image: url(assets/wall-light.webp); } .wp-dark { background-image: url(assets/wall-dark.webp); opacity: 0; }
.mac.dark .wp-dark { opacity: 1; }

/* menu bar */
.menubar { position: absolute; left: 0; right: 0; top: 0; height: 24px; z-index: 5000; display: flex; justify-content: space-between; align-items: center; padding: 0 8px 0 10px; font-size: 13px; color: #fff;
  background: rgba(30,22,30,.22); backdrop-filter: blur(50px) saturate(1.8); -webkit-backdrop-filter: blur(50px) saturate(1.8); text-shadow: 0 0 1px rgba(0,0,0,.15); }
.mac.dark .menubar { background: rgba(10,10,18,.32); }
.mb-left, .mb-right, .mb-menus { display: flex; align-items: center; height: 100%; }
.mb-left > *, .mb-menus > span, .mb-item { height: 22px; display: flex; align-items: center; padding: 0 9px; border-radius: 5px; }
.mb-menus > span { padding: 0 8.5px; } .mb-logo { padding: 0 12px 0 8px; } .mb-app { font-weight: 700; padding-right: 10px; }
.mb-left > *:hover, .mb-menus > span:hover, .mb-item:hover { background: rgba(255,255,255,.2); }
.mb-item { padding: 0 8px; } .mb-clock { font-variant-numeric: tabular-nums; padding-left: 10px; }
.mb-sound.off .w1 { display: none; }
.mb-music { gap: 6px; font-size: 12px; max-width: 260px; } .mb-music:empty { display: none; }
.mb-music span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* desktop icons */
.desk-icons { position: absolute; top: 34px; right: 14px; display: flex; flex-direction: column; gap: 6px; z-index: 1; }
.dicon { width: 118px; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 3px 0; }
.dicon-img { width: 68px; height: 68px; display: grid; place-items: center; border-radius: 6px; padding: 3px; }
.dicon-img svg { max-width: 100%; max-height: 100%; filter: drop-shadow(0 1px 1.5px rgba(0,0,0,.3)); }
.dicon.is-app .dicon-img svg { width: 56px; height: 56px; }
.dicon-img .docicon { height: 60px; width: auto; } .dicon-img .foldericon { width: 62px; }
.dicon-label { max-width: 118px; font-size: 12px; font-weight: 500; line-height: 15px; text-align: center; color: #fff; padding: 1px 4px; border-radius: 4px; text-shadow: 0 1px 2px rgba(0,0,0,.75); }
.dicon.sel .dicon-img { background: rgba(0,0,0,.22); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.dicon.sel .dicon-label { background: var(--sel); text-shadow: none; }

/* windows */
.win-layer { position: absolute; inset: 0; z-index: 10; pointer-events: none; }
.win-layer.busy iframe { pointer-events: none; }  /* keep drags smooth over iframes */
.win { position: absolute; pointer-events: auto; display: flex; flex-direction: column; border-radius: 12px; background: var(--win); color: var(--text);
  box-shadow: 0 0 0 .5px rgba(0,0,0,.26), inset 0 0 0 .5px rgba(255,255,255,.35), 0 28px 60px -10px rgba(0,0,0,.42), 0 10px 20px -6px rgba(0,0,0,.18);
  transform: scale(.94); opacity: 0; transition: transform .26s cubic-bezier(.2,.9,.3,1.05), opacity .2s ease, left .28s, top .28s, width .28s, height .28s; }
.win > .titlebar, .win > .win-body { border-radius: inherit; }
.win > .win-body { overflow: hidden; border-radius: 0 0 12px 12px; }
.win.bare > .win-body { border-radius: 12px; }
.win:not(.focused) { box-shadow: 0 0 0 .5px rgba(0,0,0,.2), 0 16px 34px -10px rgba(0,0,0,.28); }
.mac.dark .win { box-shadow: 0 0 0 .5px rgba(0,0,0,.8), inset 0 0 0 .5px rgba(255,255,255,.14), 0 28px 60px -10px rgba(0,0,0,.7); }
.win.open { transform: none; opacity: 1; }
.win.closing { transform: scale(.94); opacity: 0; transition: .18s ease; }
.win.min { transform: translateY(600px) scale(.06); opacity: 0; pointer-events: none; transition: .5s cubic-bezier(.55,0,.75,.3); }
.win.max { left: 0 !important; top: 24px !important; width: 100% !important; height: calc(100% - 24px) !important; border-radius: 0; }
.win.dragging { transition: none; }
.rz { position: absolute; z-index: 20; } .rz-n, .rz-s { left: 8px; right: 8px; height: 6px; cursor: ns-resize; } .rz-n { top: -3px; } .rz-s { bottom: -3px; }
.rz-e, .rz-w { top: 8px; bottom: 8px; width: 6px; cursor: ew-resize; } .rz-e { right: -3px; } .rz-w { left: -3px; }
.rz-ne, .rz-nw, .rz-se, .rz-sw { width: 12px; height: 12px; } .rz-ne { top: -4px; right: -4px; cursor: nesw-resize; } .rz-sw { bottom: -4px; left: -4px; cursor: nesw-resize; }
.rz-nw { top: -4px; left: -4px; cursor: nwse-resize; } .rz-se { bottom: -4px; right: -4px; cursor: nwse-resize; }
.titlebar { height: 28px; flex: none; display: flex; align-items: center; padding: 0 9px; position: relative; background: var(--tb); border-bottom: .5px solid var(--sep); border-radius: 12px 12px 0 0; }
.title { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 600; font-size: 13px; pointer-events: none; opacity: .85; }
.win:not(.focused) .title { opacity: .45; }
.lights { display: flex; gap: 8px; position: relative; z-index: 2; padding-left: 4px; }
.lights i { width: 12px; height: 12px; border-radius: 50%; display: block; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.18); position: relative; }
.l-close { background: #ff5f57; } .l-min { background: #febc2e; } .l-max { background: #28c840; }
.win:not(.focused) .lights i { background: #dcdcdc; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.12); }
.mac.dark .win:not(.focused) .lights i { background: #4d4d4f; }
.lights:hover i::after { position: absolute; inset: 0; display: grid; place-items: center; font: 800 9px/12px var(--sys); color: rgba(0,0,0,.55); }
.lights:hover .l-close::after { content: "✕"; font-size: 7px; } .lights:hover .l-min::after { content: "–"; } .lights:hover .l-max::after { content: "⤢"; font-size: 8px; }
.win-body { flex: 1; min-height: 0; display: flex; position: relative; }
.dim { opacity: .35; }

/* ---------- Arc (sidebar-only chrome, page as an inset card) ---------- */
.win.arc { background: transparent; }
.arc .win-body { background: #e9d6dc; }
.arc .win-body::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,0) 40%), linear-gradient(160deg, #f0d3d6 0%, #e4cfe2 55%, #d6cde9 100%); }
.mac.dark .arc .win-body { background: #2a2430; } .mac.dark .arc .win-body::before { background: linear-gradient(160deg, #35283a 0%, #2c2537 55%, #231f30 100%); }
.arc-side { position: relative; width: 236px; flex: none; display: flex; flex-direction: column; padding: 10px 8px 8px 10px; color: rgba(40,20,30,.92); }
.mac.dark .arc-side { color: rgba(255,240,248,.9); }
.arc-top { display: flex; align-items: center; justify-content: space-between; height: 24px; margin-bottom: 10px; padding-left: 2px; }
.arc-nav { display: flex; gap: 13px; align-items: center; opacity: .62; }
.arc-url { height: 32px; display: flex; align-items: center; padding: 0 11px; border-radius: 9px; background: rgba(255,255,255,.34); font-size: 13px; white-space: nowrap; overflow: hidden; margin-bottom: 12px; }
.mac.dark .arc-url { background: rgba(255,255,255,.08); }
.url-text { overflow: hidden; text-overflow: ellipsis; opacity: .85; }
.arc-favs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 10px; }
.fav { height: 44px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.3); transition: background .15s; }

.fav:hover { background: rgba(255,255,255,.55); } .fav:active { transform: scale(.96); }
.mac.dark .fav { background: rgba(255,255,255,.07); } .mac.dark .fav:hover { background: rgba(255,255,255,.14); }
.arc-tab { height: 32px; display: flex; align-items: center; gap: 9px; padding: 0 6px 0 9px; border-radius: 8px; font-size: 13px; position: relative; }
.arc-tab span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fi { width: 20px; height: 20px; flex: none; display: grid; place-items: center; border-radius: 5px; background: #fff; box-shadow: 0 0 0 .5px rgba(0,0,0,.12), 0 1px 1.5px rgba(0,0,0,.08); font-style: normal; }
.fi img { width: 14px; height: 14px; object-fit: contain; border-radius: 2px; } .fi svg { width: 14px; height: 14px; }
.fi.lg { width: 26px; height: 26px; border-radius: 7px; } .fi.lg img { width: 17px; height: 17px; }
.arc-tab em { font-style: normal; opacity: .5; }
.arc-tab:hover { background: rgba(255,255,255,.22); }
.arc-tab.active { background: rgba(255,255,255,.72); box-shadow: 0 1px 2px rgba(0,0,0,.07), 0 0 0 .5px rgba(0,0,0,.03); }
.mac.dark .arc-tab:hover { background: rgba(255,255,255,.05); } .mac.dark .arc-tab.active { background: rgba(255,255,255,.14); }
.arc-tab.gone { display: none; }
.arc-x { width: 20px; height: 20px; border-radius: 5px; display: grid; place-items: center; opacity: 0; color: currentColor; }
.arc-tab:hover .arc-x { opacity: .55; } .arc-x:hover { background: rgba(0,0,0,.08); opacity: 1 !important; }
.arc-divider { display: flex; align-items: center; gap: 8px; height: 24px; margin: 6px 2px 2px; font-size: 11px; }
.arc-divider i { flex: 1; height: 1px; background: currentColor; opacity: .14; }
.arc-divider span { display: flex; align-items: center; gap: 3px; opacity: .45; }
.arc-tabs { flex: 1; overflow: auto; display: flex; flex-direction: column; gap: 1px; }
.arc-new { height: 32px; display: flex; align-items: center; gap: 10px; padding: 0 10px; border-radius: 8px; font-size: 13px; opacity: .55; }
.arc-new:hover { background: rgba(255,255,255,.22); opacity: .8; }
.arc-foot { display: flex; align-items: center; justify-content: space-between; height: 26px; padding: 0 4px; opacity: .6; }
.af-c { display: flex; gap: 8px; } .af-c i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .35; } .af-c i.on { opacity: 1; }
.arc-page { flex: 1; position: relative; margin: 6px 6px 6px 0; border-radius: 8px; overflow: hidden; background: #fff; box-shadow: 0 0 0 .5px rgba(0,0,0,.12), 0 1px 3px rgba(0,0,0,.08), 0 6px 20px -8px rgba(0,0,0,.18); }
.arc-load { position: absolute; left: 0; top: 0; height: 2px; width: 0; background: linear-gradient(90deg, #ff5a5f, #ff4f9a, #3b4bff); z-index: 5; opacity: 0; }
.arc-load.go { animation: load 1.2s cubic-bezier(.2,.7,.3,1) forwards; }
@keyframes load { 0% { width: 0; opacity: 1; } 80% { width: 100%; opacity: 1; } 100% { width: 100%; opacity: 0; } }
.pg { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; visibility: hidden; background: #fff; }
.pg.on { visibility: visible; }
.pg.hero, .pg.map { overflow: hidden; pointer-events: none; }   /* view-only: no way to leave the site from these */
.pg.be { overflow: auto; background: #fff; color: #191919; font-family: var(--sys); user-select: text; -webkit-user-select: text; }
.mac.dark .pg.be { background: #fff; }
.be-top { position: sticky; top: 0; z-index: 2; height: 46px; display: flex; align-items: center; gap: 14px; padding: 0 22px; background: rgba(255,255,255,.94); backdrop-filter: blur(12px); border-bottom: 1px solid #ebebeb; }
.be-logo { font-size: 18px; font-weight: 800; letter-spacing: -.02em; color: #0057ff; } .be-crumb { color: #6b6b6b; font-size: 13px; }
.be-ext { margin-left: auto; font-size: 12.5px; color: #6b6b6b; text-decoration: none; padding: 6px 10px; border-radius: 999px; } .be-ext:hover { background: #f2f2f2; color: #191919; }
.be-head { display: flex; gap: 12px; align-items: center; padding: 26px 34px 6px; }
.be-av { width: 40px; height: 40px; border-radius: 50%; } .be-head h1 { margin: 0; font-size: 20px; letter-spacing: -.01em; } .be-head p { margin: 2px 0 0; font-size: 12.5px; color: #6b6b6b; }
.be-desc { margin: 10px 34px 22px; font-size: 14px; line-height: 1.5; color: #444; max-width: 760px; }
.be-mods img { display: block; width: 100%; height: auto; background: #f4f4f4; min-height: 120px; }
.be-foot { display: flex; align-items: center; gap: 10px; justify-content: center; padding: 40px 0 60px; font-size: 13px; color: #6b6b6b; } .be-foot img { width: 22px; height: 22px; } .be-foot b { color: #191919; }

/* Little Arc */
.win.little { background: transparent; }
.little .win-body { flex-direction: column; background: #ecdfe4; }
.mac.dark .little .win-body { background: #2a2430; }
.lt-bar { height: 36px; flex: none; display: grid; grid-template-columns: 80px 1fr 80px; align-items: center; padding: 0 10px; }
.lt-url { text-align: center; font-size: 12.5px; opacity: .7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lt-open { justify-self: end; display: flex; align-items: center; gap: 5px; font-size: 12px; text-decoration: none; color: inherit; opacity: .7; padding: 4px 8px; border-radius: 6px; }
.lt-open:hover { background: rgba(0,0,0,.06); opacity: 1; }
.lt-page { flex: 1; margin: 0 6px 6px; border-radius: 8px; overflow: auto; background: #fff; color: #1d1d1f; box-shadow: 0 0 0 .5px rgba(0,0,0,.12); }
.mac.dark .lt-page { background: #1c1c1e; color: #f5f5f7; }
.prof { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 34px 30px; gap: 12px; }
.prof-av { width: 88px; height: 88px; border-radius: 50%; background: #ddd center/cover; box-shadow: 0 0 0 3px #fff, 0 4px 14px rgba(0,0,0,.18); }
.li-av { display: grid; place-items: center; font-weight: 700; font-size: 30px; color: #fff; background: linear-gradient(135deg, #e8573f, #f6a36c); }
.prof.li { padding-top: 0; } .li-cover { align-self: stretch; height: 80px; margin: 0 -30px -44px; background: linear-gradient(120deg, #0a66c2, #5aa0e6); }
.prof h2 { margin: 0; font-size: 22px; letter-spacing: -.02em; } .prof-bio { margin: 2px 0 0; font-size: 14px; opacity: .75; max-width: 420px; }
.prof-sub { margin: 0; font-size: 12.5px; color: #057642; }
.prof-stats { display: flex; gap: 16px; justify-content: center; margin-top: 8px; font-size: 13px; opacity: .8; }
.prof-btn { margin-top: 10px; padding: 9px 18px; border-radius: 999px; background: #0a66c2; color: #fff; text-decoration: none; font-weight: 600; font-size: 13.5px; }
.prof-btn.dark { background: #0f1419; }
.mail { display: flex; flex-direction: column; height: 100%; }
.m-row { display: flex; gap: 8px; align-items: center; height: 36px; padding: 0 16px; border-bottom: .5px solid rgba(127,127,127,.25); font-size: 13px; }
.m-row span { color: #8e8e93; width: 56px; } .m-row input { flex: 1; border: 0; outline: 0; font: inherit; background: transparent; color: inherit; }
.m-body { flex: 1; border: 0; outline: 0; resize: none; padding: 14px 16px; font: 13.5px/1.5 var(--sys); background: transparent; color: inherit; }
.m-actions { display: flex; justify-content: flex-end; padding: 10px 14px; }
.m-send { font: 600 13px var(--sys); border: 0; border-radius: 7px; padding: 7px 18px; background: #0a84ff; color: #fff; cursor: pointer; }

/* TextEdit / Preview */
.textwin .win-body, .preview .win-body { background: var(--win); }
.te-page { width: 100%; padding: 18px 26px; overflow: auto; font: 13px/1.6 var(--mono); white-space: pre-wrap; color: var(--text); user-select: text; -webkit-user-select: text; cursor: text; }
.pdf { width: 100%; height: 100%; border: 0; background: #888; }

/* Finder */
.finder .win-body, .music .win-body { background: var(--win); }
.fs { width: 190px; flex: none; padding: 10px 10px; background: var(--side); backdrop-filter: blur(40px) saturate(1.6); -webkit-backdrop-filter: blur(40px) saturate(1.6); border-right: .5px solid var(--sep); font-size: 13px; }
.fs-lights { height: 34px; display: flex; align-items: center; padding-left: 2px; }
.fs-h { font-size: 11px; font-weight: 600; color: var(--text2); padding: 10px 8px 3px; }
.fs-i { height: 26px; display: flex; align-items: center; gap: 7px; padding: 0 8px; border-radius: 6px; }
.fs-ico { color: var(--accent); display: grid; place-items: center; width: 18px; } .fs-ico.red { color: #fa2d48; }
.fs-i.active { background: rgba(0,0,0,.08); } .mac.dark .fs-i.active { background: rgba(255,255,255,.1); }
.tag { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin: 0 4px 0 3px; }
.fm { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.ftb { height: 52px; flex: none; display: flex; align-items: center; gap: 14px; padding: 0 14px 0 14px; border-bottom: .5px solid var(--sep); }
.ftb b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .ftb-nav { display: flex; gap: 10px; opacity: .65; } .ftb-r { margin-left: auto; display: flex; gap: 18px; opacity: .6; }
.fgrid { flex: 1; padding: 22px 18px; display: flex; gap: 14px; align-content: flex-start; flex-wrap: wrap; overflow: auto; }
.ffile { width: 104px; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 4px 0; }
.ffile-img { width: 70px; height: 70px; display: grid; place-items: center; border-radius: 6px; } .ffile-img svg { height: 62px; width: auto; filter: drop-shadow(0 1px 1.5px rgba(0,0,0,.18)); }
.ffile-label { font-size: 12px; text-align: center; padding: 1px 5px; border-radius: 4px; }
.ffile.sel .ffile-img { background: rgba(0,0,0,.08); } .ffile.sel .ffile-label { background: var(--sel); color: #fff; }
.fstat { height: 24px; display: grid; place-items: center; font-size: 11px; color: var(--text2); border-top: .5px solid var(--sep); }

/* Music */
.ms-search { height: 28px; margin: 0 2px 6px; padding: 0 8px; display: flex; align-items: center; gap: 6px; border-radius: 7px; background: rgba(0,0,0,.06); color: var(--text2); }
.mac.dark .ms-search { background: rgba(255,255,255,.08); }
.mm { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.mtb { height: 54px; flex: none; display: flex; align-items: center; gap: 18px; padding: 0 18px; border-bottom: .5px solid var(--sep); background: var(--tb); }
.mt-ctl { display: flex; align-items: center; gap: 18px; } .mt-ctl > span { cursor: pointer; }
.lcd { flex: 1; height: 38px; display: flex; align-items: center; gap: 10px; padding: 0 10px 0 4px; border-radius: 7px; background: rgba(0,0,0,.045); overflow: hidden; }
.mac.dark .lcd { background: rgba(255,255,255,.06); }
.lcd-art { width: 30px; height: 30px; border-radius: 4px; background: #c8c8cc center/cover; flex: none; }
.lcd-text { display: flex; flex-direction: column; line-height: 1.2; font-size: 12px; min-width: 0; } .lcd-text b { font-weight: 600; } .lcd-text span { color: var(--text2); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mhead { display: flex; gap: 22px; align-items: flex-end; padding: 16px 26px 12px; }
.m-art { width: 120px; height: 120px; grid-template-rows: 1fr 1fr; border-radius: 8px; overflow: hidden; flex: none; display: grid; grid-template-columns: 1fr 1fr; box-shadow: 0 12px 28px -12px rgba(0,0,0,.45); }
.m-art img { width: 100%; height: 60px; object-fit: cover; }
.m-meta h2 { margin: 0; font-size: 26px; letter-spacing: -.02em; } .m-meta h3 { margin: 2px 0 6px; font-size: 18px; font-weight: 500; color: #fa2d48; } .m-meta p { margin: 0 0 14px; font-size: 12px; color: var(--text2); }
.m-btns { display: flex; gap: 10px; }
.mbtn { display: flex; align-items: center; gap: 6px; font: 600 13px var(--sys); border: 0; padding: 7px 18px; border-radius: 7px; cursor: pointer; background: #fa2d48; color: #fff; }
.mbtn.shuf { background: rgba(127,127,127,.15); color: #fa2d48; }
.mtable { flex: 1; padding: 0 18px; overflow: auto; }
.mrow { display: grid; grid-template-columns: 30px 1.3fr 1fr 1.2fr 50px; align-items: center; gap: 8px; height: 36px; padding: 0 10px; border-radius: 6px; font-size: 13px; }
.mrow > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mrow.head { height: 26px; font-size: 11px; color: var(--text2); border-bottom: .5px solid var(--sep); border-radius: 0; }
.mtitle { display: flex; align-items: center; gap: 8px; } .mtitle img { width: 26px; height: 26px; border-radius: 3px; }
.mrow:nth-child(even):not(.head) { background: rgba(127,127,127,.06); }
.mrow.sel { background: var(--sel) !important; color: #fff; } .mrow.sel span { color: #fff !important; }
.mrow.on .mtitle { color: #fa2d48; font-weight: 600; }
.mnum, .mtime, .mrow span:nth-child(3), .mrow span:nth-child(4) { color: var(--text2); }
.m-player { flex: none; display: flex; gap: 16px; align-items: center; padding: 10px 18px 14px; border-top: .5px solid var(--sep); }
.yt-wrap { width: 356px; height: 200px; flex: none; border-radius: 10px; overflow: hidden; background: #000; box-shadow: 0 8px 20px -10px rgba(0,0,0,.5); }
.yt-wrap iframe { display: block; border: 0; pointer-events: none; }
.m-np { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .m-np-k { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #fa2d48; }
.m-np-t { font-size: 18px; } .m-np-a { color: var(--text2); } .m-np-v { margin-top: 8px; font-size: 11.5px; color: var(--text2); }
.mt-vol { width: 70px; height: 4px; border-radius: 2px; background: rgba(127,127,127,.3); flex: none; } .mt-vol i { display: block; width: 20%; height: 100%; border-radius: 2px; background: var(--text2); }

/* Contacts */
.contact .win-body { flex-direction: column; background: var(--win); padding: 22px 30px; }
.c-card { display: flex; align-items: center; gap: 18px; padding-bottom: 18px; border-bottom: .5px solid var(--sep); }
.c-avatar { width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 28px; color: #fff; background: linear-gradient(#b3b3b8, #8e8e93); }
.c-card h2 { margin: 0; font-size: 24px; letter-spacing: -.02em; } .c-card p { margin: 2px 0 0; color: var(--text2); }
.c-rows { padding: 12px 0; }
.c-row { display: grid; grid-template-columns: 90px 1fr; gap: 14px; padding: 7px 0; font-size: 13px; }
.c-row span { text-align: right; color: var(--text2); font-size: 12px; padding-top: 1px; } .c-row a { color: var(--accent); text-decoration: none; }
.c-actions { display: flex; gap: 10px; margin-top: auto; }
.c-btn { font: 500 13px var(--sys); border: 0; cursor: pointer; padding: 7px 16px; border-radius: 7px; background: var(--accent); color: #fff; }
.c-btn.ghost { background: rgba(127,127,127,.16); color: var(--text); }

/* notification */
.notif-layer { position: absolute; top: 32px; right: 12px; z-index: 6000; }
.notif { width: 350px; display: flex; gap: 10px; padding: 12px 14px; border-radius: 16px; font-size: 13px; color: #1d1d1f; background: rgba(246,246,248,.72); backdrop-filter: blur(40px) saturate(1.8); -webkit-backdrop-filter: blur(40px) saturate(1.8);
  box-shadow: 0 0 0 .5px rgba(0,0,0,.14), 0 12px 30px -10px rgba(0,0,0,.35); transform: translateX(380px); transition: transform .5s cubic-bezier(.2,.9,.25,1); }
.mac.dark .notif { color: #f5f5f7; background: rgba(48,46,52,.72); box-shadow: 0 0 0 .5px rgba(255,255,255,.12), 0 12px 30px -10px rgba(0,0,0,.6); }
.notif.in { transform: none; }
.notif-icon { width: 38px; height: 38px; flex: none; } .notif-icon svg { width: 100%; height: 100%; }
.notif-text { flex: 1; line-height: 1.3; } .notif-top { display: flex; justify-content: space-between; } .notif-top span { font-size: 12px; color: var(--text2); }

/* dock */
.dock-wrap { position: absolute; left: 0; right: 0; bottom: 4px; z-index: 4000; display: flex; justify-content: center; pointer-events: none; }
.dock { pointer-events: auto; display: flex; align-items: flex-end; gap: 4px; padding: 4px 5px; border-radius: 19px; position: relative;
  background: rgba(255,255,255,.2); backdrop-filter: blur(36px) saturate(1.8); -webkit-backdrop-filter: blur(36px) saturate(1.8);
  box-shadow: inset 0 0 0 .5px rgba(255,255,255,.4), 0 0 0 .5px rgba(0,0,0,.2), 0 4px 16px -4px rgba(0,0,0,.25); }
.mac.dark .dock { background: rgba(40,38,46,.35); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.16), 0 0 0 .5px rgba(0,0,0,.55), 0 4px 16px -4px rgba(0,0,0,.4); }
.dock-item { --s: 1; position: relative; width: calc(50px * var(--s)); height: calc(50px * var(--s)); transition: width .14s ease-out, height .14s ease-out; }
.dock-img { width: 100%; height: 100%; display: grid; place-items: center; }
.dock-img svg, .dock-img .appimg { width: 90%; height: 90%; filter: drop-shadow(0 1px 1.5px rgba(0,0,0,.3)); }
.appimg { display: block; -webkit-mask: url(assets/squircle.svg) center/100% 100% no-repeat; mask: url(assets/squircle.svg) center/100% 100% no-repeat; }
.dock-img.stackimg svg { height: auto; width: 92%; }
.dock-tip { position: absolute; bottom: calc(100% + 12px); left: 50%; transform: translateX(-50%); padding: 3px 10px; border-radius: 6px; font-size: 13px; white-space: nowrap; color: #1d1d1f; background: rgba(236,236,238,.92); box-shadow: 0 0 0 .5px rgba(0,0,0,.18), 0 3px 10px rgba(0,0,0,.18); opacity: 0; pointer-events: none; transition: opacity .1s; }
.dock-tip::after { content: ""; position: absolute; left: 50%; bottom: -5px; margin-left: -5px; border: 5px solid transparent; border-bottom: 0; border-top-color: rgba(236,236,238,.92); }
.mac.dark .dock-tip { color: #f5f5f7; background: rgba(50,50,54,.94); } .mac.dark .dock-tip::after { border-top-color: rgba(50,50,54,.94); }
.dock-item:hover .dock-tip { opacity: 1; }
.dock-dot { position: absolute; left: 50%; bottom: -3px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: rgba(0,0,0,.65); opacity: 0; transition: opacity .3s; }
.dock-dot.on { opacity: 1; } .mac.dark .dock-dot { background: rgba(255,255,255,.85); }
.dock-item.bounce .dock-img { animation: bounce .55s cubic-bezier(.3,0,.4,1); } @keyframes bounce { 35% { transform: translateY(-14px); } 70% { transform: translateY(0); } 85% { transform: translateY(-3px); } }
.dock-sep { width: 1px; align-self: stretch; margin: 6px 5px; background: rgba(0,0,0,.2); } .mac.dark .dock-sep { background: rgba(255,255,255,.2); }

/* boot */
.boot { position: absolute; inset: 0; z-index: 9000; background: #000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 60px; color: #fff; transition: opacity .8s ease .1s, visibility .9s; }
.boot-logo svg { width: 90px; height: 90px; opacity: 0; }
.boot-bar { width: 180px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.24); overflow: hidden; opacity: 0; }
.boot-bar i { display: block; height: 100%; width: 0; background: #fff; border-radius: 3px; }
.mac.booting .boot-logo svg, .mac.booting .boot-bar { opacity: 1; transition: opacity .5s ease .25s; }
.mac.booting .boot-bar i { width: 100%; transition: width 1.9s cubic-bezier(.45,.1,.3,1) .45s; }
.mac.ready .boot { opacity: 0; visibility: hidden; }
.mac.ready .menubar { animation: fade .6s ease both; } .mac.ready .desk-icons { animation: fade .6s ease .1s both; } .mac.ready .dock-wrap { animation: rise .6s cubic-bezier(.2,.8,.2,1) .2s both; }
@keyframes fade { from { opacity: 0; } } @keyframes rise { from { opacity: 0; transform: translateY(40px); } }

/* ---------- phone page (until the mobile experience ships) ---------- */
#mobile { display: none; }
body.is-mobile { overflow: auto; background: #120f0c; }
body.is-mobile #gl, body.is-mobile #screen, body.is-mobile #hud, body.is-mobile #hints, body.is-mobile #steam { display: none; }
body.is-mobile #mobile { display: flex; min-height: 100svh; align-items: flex-end; justify-content: center; padding: 18px 16px calc(22px + env(safe-area-inset-bottom)); position: relative; }
.mob-bg { position: fixed; inset: 0; background: url(assets/mobile-bg.jpg) center 35%/cover; filter: saturate(1.05); }
.mob-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,15,12,0) 25%, rgba(18,15,12,.55) 60%, rgba(18,15,12,.9)); }
.mob-card { position: relative; width: 100%; max-width: 440px; padding: 26px 22px 20px; border-radius: 28px; color: #2a211b; background: rgba(252,247,240,.82); backdrop-filter: blur(24px) saturate(1.5); -webkit-backdrop-filter: blur(24px) saturate(1.5); box-shadow: 0 30px 80px -24px rgba(0,0,0,.6), inset 0 0 0 .5px rgba(255,255,255,.7); animation: mobin .8s cubic-bezier(.2,.8,.2,1) both; }
@keyframes mobin { from { transform: translateY(24px); } }
.mob-dot { width: 46px; height: 46px; border-radius: 14px; background: linear-gradient(#ea6a4f, #c94a32); display: grid; place-items: center; color: #fff8ec; font-weight: 800; font-size: 23px; margin-bottom: 12px; box-shadow: 0 10px 22px -8px rgba(201,74,50,.7); }
.mob-card h1 { margin: 0; font-size: 26px; letter-spacing: -.02em; }
.mob-role { margin: 2px 0 12px; font-weight: 500; opacity: .7; } .mob-role span { color: #d9573f; }
.mob-note { margin: 0 0 16px; font-size: 14.5px; line-height: 1.5; opacity: .8; }
.mob-links { display: grid; gap: 8px; margin-bottom: 14px; }
.mob-links a { display: block; padding: 13px 16px; border-radius: 14px; background: #fff; color: #2a211b; text-decoration: none; font-weight: 600; font-size: 14.5px; box-shadow: 0 0 0 .5px rgba(0,0,0,.08); }
.mob-links a:active { transform: scale(.98); }
.mob-copy { width: 100%; padding: 13px; border: 0; border-radius: 14px; background: #241c17; color: #fff8ec; font: 600 14.5px var(--sys); }

/* =====================================================================
   PHONE: the desk stage + a touch-native, full-screen version of the Mac
   ===================================================================== */
.home-bar, .arc-mtop { display: none; }
body.phone #tip { display: none; }
body.phone #hud { left: auto; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); gap: 6px; }
body.phone #hud button { width: 44px; height: 44px; }
body.phone #zoom { height: 44px; } body.phone .z-track { width: 70px; }
body.phone #hints i { width: 8px; height: 8px; left: -4px; top: -4px; }
body.phone #toast { top: calc(14px + env(safe-area-inset-top)); max-width: calc(100% - 32px); text-align: center; }
body.phone.os-open #hud, body.phone.os-open #hints, body.phone.os-open #toast { opacity: 0; pointer-events: none; }

#phone-os { position: fixed; inset: 0; z-index: 30; pointer-events: none; opacity: 0; transform: scale(.55) translateY(-8%); transition: opacity .35s ease, transform .5s cubic-bezier(.2,.9,.25,1); }
body.os-open #phone-os { opacity: 1; transform: none; pointer-events: auto; }

.mac.phone { border-radius: 0; font-size: 15px; -webkit-tap-highlight-color: transparent; }
/* status/menu bar: compact, like a phone status bar */
.mac.phone .menubar { height: calc(30px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 14px 0; font-size: 14px; }
.mac.phone .mb-menus, .mac.phone .mb-item:not(.mb-clock):not(.mb-mode) { display: none; }
.mac.phone .mb-music:not(:empty) { display: flex; }
.mac.phone .mb-clock { font-weight: 600; }
/* desktop icons become a home-screen grid */
.mac.phone .desk-icons { top: calc(48px + env(safe-area-inset-top)); left: 14px; right: 14px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px 6px; }
.mac.phone .dicon { width: auto; }
.mac.phone .dicon-img { width: 64px; height: 64px; }
.mac.phone .dicon.is-app .dicon-img svg { width: 60px; height: 60px; }
.mac.phone .dicon-label { font-size: 11.5px; line-height: 14px; max-width: 84px; overflow-wrap: anywhere; }
.mac.phone .dicon.sel .dicon-img { background: none; box-shadow: none; } .mac.phone .dicon.sel .dicon-label { background: none; text-shadow: 0 1px 2px rgba(0,0,0,.75); }
.mac.phone .dicon:active .dicon-img { transform: scale(.9); transition: transform .12s; }
/* apps open as rounded sheets above the dock */
.mac.phone .win { left: 8px !important; right: 8px; top: calc(36px + env(safe-area-inset-top)) !important; width: auto !important; height: auto !important; bottom: calc(100px + env(safe-area-inset-bottom)); border-radius: 18px; }
.mac.phone .win > .win-body, .mac.phone .win.bare > .win-body { border-radius: 18px; }
.mac.phone .win > .titlebar { border-radius: 18px 18px 0 0; height: 40px; }
.mac.phone .win.min { transform: translateY(110%) scale(.4); }
.mac.phone .rz { display: none; }
.mac.phone .lights { gap: 10px; } .mac.phone .lights i { width: 14px; height: 14px; }
.mac.phone .win.closing { transform: translateY(30px) scale(.96); }
/* dock: compact, no extras */
.mac.phone .dock-wrap { bottom: calc(26px + env(safe-area-inset-bottom)); }
.mac.phone .dock { gap: 4px; padding: 6px 7px; border-radius: 24px; }
.mac.phone .dock-item { width: 40px !important; height: 40px !important; }
.mac.phone .dock-item[data-name="Downloads"], .mac.phone .dock-item[data-name="Trash"], .mac.phone .dock-sep, .mac.phone .dock-item[data-name="Finder"] { display: none; }
.mac.phone .dock-tip { display: none; }
.mac.phone .notif-layer { left: 10px; right: 10px; top: calc(38px + env(safe-area-inset-top)); } .mac.phone .notif { width: auto; }
/* home bar: tap or swipe up to put the Mac back on the desk */
.mac.phone .home-bar { display: grid; place-items: center; position: absolute; left: 0; right: 0; bottom: 0; height: calc(22px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); z-index: 7000; }
.mac.phone .home-bar i { width: 134px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.85); box-shadow: 0 0 6px rgba(0,0,0,.25); }
.mac.phone .boot { display: none; }

/* Arc on a phone: list of tabs first, then the page full-width with a back button */
.mac.phone .arc .win-body { flex-direction: column; }
.mac.phone .arc-side { width: 100%; flex: 1; padding: 12px 12px 10px; }
.mac.phone .arc-top { margin-bottom: 12px; } .mac.phone .arc-nav { display: none; }
.mac.phone .arc-tab, .mac.phone .arc-new { height: 44px; font-size: 15px; }
.mac.phone .fav { height: 54px; }
.mac.phone .arc-page { display: none; margin: 0 6px 6px; }
.mac.phone .arc.show-page .arc-side { display: none; }
.mac.phone .arc.show-page .arc-page { display: block; flex: 1; margin-top: 6px; }
.mac.phone .arc.show-page .arc-mtop { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 10px; position: relative; z-index: 3; background: rgba(255,255,255,.92); border-bottom: .5px solid rgba(0,0,0,.08); }
.mac.phone .arc-back { display: flex; align-items: center; gap: 4px; border: 0; background: none; font: 600 15px var(--sys); color: #0a84ff; padding: 6px 4px; }
.mac.phone .arc-murl { flex: 1; min-width: 0; text-align: center; font-size: 12.5px; color: #6e6e73; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 54px; }
.mac.phone .arc.show-page .pg { top: 44px; height: calc(100% - 44px); }
.mac.phone .be-head { padding: 18px 16px 4px; } .mac.phone .be-desc { margin: 8px 16px 16px; } .mac.phone .be-top { padding: 0 14px; } .mac.phone .be-head h1 { font-size: 17px; }

/* Finder / Music / others adapt to the narrow sheet */
.mac.phone .finder .fs, .mac.phone .music .fs.ms { width: 0; padding: 0; border: 0; overflow: visible; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.mac.phone .finder .fs > :not(.fs-lights), .mac.phone .music .fs.ms > :not(.fs-lights) { display: none; }
.mac.phone .finder .fs-lights, .mac.phone .music .fs-lights { position: absolute; left: 14px; top: 0; height: 46px; z-index: 6; }
.mac.phone .finder .win-body::before, .mac.phone .music .win-body::before { content: ""; }
.mac.phone .ftb { height: 46px; padding: 0 12px 0 90px; } .mac.phone .ftb-r { display: none; }
.mac.phone .finder .ftb::before, .mac.phone .music .mtb::before { content: ""; }
.mac.phone .finder .fm, .mac.phone .music .mm { position: relative; }
.mac.phone .finder .fm::before, .mac.phone .music .mm::before { content: none; }
.mac.phone .fgrid { justify-content: space-around; }
.mac.phone .music .mtb { gap: 14px; padding: 0 12px 0 90px; height: 46px; } .mac.phone .lcd { display: none; }
.mac.phone .mhead { padding: 14px 14px 8px; gap: 14px; } .mac.phone .m-art { width: 96px; height: 96px; } .mac.phone .m-art img { height: 48px; }
.mac.phone .m-meta h2 { font-size: 21px; } .mac.phone .m-meta h3 { font-size: 15px; }
.mac.phone .mtable { padding: 0 8px; } .mac.phone .mrow { grid-template-columns: 22px 1.4fr 1fr 40px; height: 44px; }
.mac.phone .mrow > span:nth-child(4) { display: none; }
.mac.phone .m-player { flex-direction: column; align-items: stretch; gap: 10px; padding: 10px 12px 12px; }
.mac.phone .yt-wrap { width: 100%; height: auto; aspect-ratio: 16 / 9; min-height: 200px; } .mac.phone .yt-wrap iframe { width: 100% !important; height: 100% !important; }
.mac.phone .contact .win-body { padding: 18px; } .mac.phone .c-row { grid-template-columns: 76px 1fr; }
.mac.phone .te-page { padding: 16px; font-size: 12.5px; }


#phone-hint { display: none; }
body.phone.ready #phone-hint { display: block; position: fixed; left: 0; right: 0; top: calc(26px + env(safe-area-inset-top)); z-index: 3; text-align: center; color: #f3e9dc; pointer-events: none; transition: opacity .5s; }
#phone-hint b { display: block; font: 600 20px/1.2 var(--sys); letter-spacing: -.01em; }
#phone-hint span { display: block; margin-top: 4px; font-size: 13px; opacity: .6; }
body.phone.os-open #phone-hint, body.phone[data-view="wide"] #phone-hint { opacity: 0; }
@keyframes hintin { from { opacity: 0; transform: translateY(-6px); } }

.mac.phone .dicon-label { white-space: normal; max-width: 84px; }

/* =====================================================================
   DESK ARCADE: the handheld you play in
   ===================================================================== */
#mini-lcd { position: fixed; left: 0; top: 0; width: 320px; height: 224px; transform-origin: 0 0; image-rendering: pixelated; z-index: 2; pointer-events: none; opacity: 0; transition: opacity 1s; border-radius: 2px; }
body.ready #mini-lcd { opacity: .96; }
#mini-glare { position: fixed; left: 0; top: 0; width: 320px; height: 224px; transform-origin: 0 0; z-index: 2; pointer-events: none; background: linear-gradient(125deg, rgba(255,255,255,.28), rgba(255,255,255,0) 38%), repeating-linear-gradient(0deg, rgba(0,0,0,.07) 0 1px, transparent 1px 3px); }
body[data-view="focus"] #mini-lcd, body[data-view="focus"] #mini-glare { opacity: 0; }

#arcade { position: fixed; inset: 0; z-index: 70; user-select: none; -webkit-user-select: none; touch-action: none; }
body.arcade-open #mini-lcd, body.arcade-open #mini-glare { opacity: calc(1 - var(--gap, 0)) !important; transition: none; }
.ar-back { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 55%, rgba(255,246,230,.34), rgba(120,100,80,.26) 70%); backdrop-filter: blur(7px) saturate(1.05) brightness(1.06); -webkit-backdrop-filter: blur(7px) saturate(1.05) brightness(1.06); opacity: 0; transition: opacity .7s ease; }
body.dark .ar-back { background: radial-gradient(ellipse at 50% 55%, rgba(120,150,200,.26), rgba(20,26,46,.34) 72%); backdrop-filter: blur(7px) brightness(1.12); -webkit-backdrop-filter: blur(7px) brightness(1.12); }
#arcade.open .ar-back { opacity: .05; } #arcade.closing .ar-back { opacity: 0; transition-duration: .5s; }
.ar-stage { position: absolute; inset: 0; perspective: 1700px; perspective-origin: 50% 46%; pointer-events: none; overflow: hidden; }
.ar-shadow { position: absolute; left: 50%; top: 50%; border-radius: 50%; background: radial-gradient(ellipse, rgba(30,18,8,.55), rgba(30,18,8,0) 68%); filter: blur(6px); opacity: 0; pointer-events: none; }
.ar-rig { --s: 1; position: absolute; left: 50%; top: 50%; width: 720px; height: 340px; margin: -170px 0 0 -360px; transform-style: preserve-3d; will-change: transform; pointer-events: none; }
.ar-rig.live { pointer-events: auto; }
.ar-hand { position: absolute; inset: 0; transform-style: preserve-3d; color: #3a2c20; }
.ar-slab { position: absolute; inset: 0; border-radius: 74px; background: hsl(38, 30%, calc(80% - var(--i) * 1.15%)); transform: translateZ(calc(17px - var(--i) * 2px)); }
.ar-face { position: absolute; inset: 0; border-radius: 74px; transform: translateZ(19px); backface-visibility: hidden; -webkit-backface-visibility: hidden; background: linear-gradient(168deg, #f6eedb 0%, #e6dbc0 100%); box-shadow: inset 0 2px 0 rgba(255,255,255,.8), inset 0 -5px 12px rgba(130,105,70,.28), inset 3px 0 6px rgba(255,255,255,.25); overflow: hidden; }
.ar-rear { position: absolute; inset: 0; border-radius: 74px; transform: translateZ(-19px) rotateY(180deg); backface-visibility: hidden; -webkit-backface-visibility: hidden; background: linear-gradient(200deg, #d7cba9, #bfb08b); display: grid; place-items: center; align-content: center; gap: 6px; box-shadow: inset 0 0 40px rgba(90,70,40,.25); }
.ar-rear span { font: 800 22px/1 -apple-system, "SF Pro Display", Inter, system-ui, sans-serif; letter-spacing: .34em; color: #8f7f5f; text-indent: .34em; } .ar-rear em { font: 500 11px -apple-system, Inter, sans-serif; font-style: normal; letter-spacing: .08em; color: #9d8d6d; }
.ar-rear b { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #efe6cf, #8f805f); box-shadow: 0 1px 2px rgba(0,0,0,.3); top: 26px; left: 56px; } .ar-rear b + b { left: auto; right: 56px; }
.ar-sheen { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: linear-gradient(112deg, transparent 32%, rgba(255,255,255,.55) 48%, transparent 64%); background-size: 260% 100%; mix-blend-mode: soft-light; }
.ar-led { position: absolute; right: 52px; top: 30px; width: 9px; height: 9px; border-radius: 50%; background: #4ae17a; box-shadow: 0 0 8px 2px rgba(74,225,122,.6); animation: led 2.4s ease-in-out infinite; } @keyframes led { 50% { opacity: .55; } }
.ar-bezel { position: absolute; left: 160px; top: 26px; width: 400px; height: 288px; box-sizing: border-box; padding: 17px; border-radius: 22px; background: linear-gradient(#4a463f, #2b2823); box-shadow: inset 0 3px 8px rgba(0,0,0,.6), 0 1px 0 rgba(255,255,255,.55), 0 0 0 1px rgba(80,66,44,.25); }
.ar-screen { position: relative; border-radius: 6px; overflow: hidden; background: #cfe0b4; box-shadow: 0 0 0 2px #1d1b17, inset 0 0 22px rgba(36,58,38,.35); }
.ar-screen canvas { display: block; width: 100%; height: auto; aspect-ratio: 320 / 224; image-rendering: pixelated; cursor: pointer; }
.ar-grid { position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(36,58,38,.10) 0 1px, transparent 1px 3px), repeating-linear-gradient(90deg, rgba(36,58,38,.06) 0 1px, transparent 1px 3px); }
.ar-glare { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(125deg, rgba(255,255,255,.22), rgba(255,255,255,0) 34%); }
.ar-dpad { position: absolute; left: 30px; top: 108px; width: 126px; height: 126px; transform: scale(.86); transform-origin: 0 0; }
.ar-dpad b { position: absolute; width: 42px; height: 42px; background: #d9573f; box-shadow: 0 3px 0 #a53a27, 0 6px 10px rgba(0,0,0,.25); cursor: pointer; }
.ar-dpad b.on { transform: translateY(2px); box-shadow: 0 1px 0 #a53a27; }
.ar-dpad b[data-k="up"] { left: 42px; top: 0; border-radius: 9px 9px 0 0; } .ar-dpad b[data-k="down"] { left: 42px; top: 84px; border-radius: 0 0 9px 9px; }
.ar-dpad b[data-k="left"] { left: 0; top: 42px; border-radius: 9px 0 0 9px; } .ar-dpad b[data-k="right"] { left: 84px; top: 42px; border-radius: 0 9px 9px 0; }
.ar-dpad i { position: absolute; left: 42px; top: 42px; width: 42px; height: 42px; background: #d9573f; box-shadow: 0 3px 0 #a53a27; }
.ar-btns { position: absolute; right: 22px; top: 96px; width: 150px; height: 120px; transform: scale(.82); transform-origin: 100% 0; }
.ar-btns button { position: absolute; width: 58px; height: 58px; border: 0; border-radius: 50%; font: 800 16px -apple-system, Inter, sans-serif; color: #fff3e6; background: #d9573f; box-shadow: 0 4px 0 #a53a27, 0 8px 12px rgba(0,0,0,.25); cursor: pointer; }
.ar-btns button.on { transform: translateY(3px); box-shadow: 0 1px 0 #a53a27; }
.ar-btns .ab { right: 0; top: 0; } .ar-btns .bb { right: 70px; top: 46px; }
.ar-mid { position: absolute; left: 34px; bottom: 36px; display: flex; gap: 10px; }
.ar-mid button { border: 0; padding: 6px 11px; border-radius: 999px; font: 700 9px/1 -apple-system, Inter, sans-serif; letter-spacing: .12em; color: #7d6d55; background: #cbbd9f; box-shadow: 0 2px 0 #a99a7c; cursor: pointer; }
.ar-hint { position: absolute; left: 50%; transform: translate(-50%, 8px); display: grid; gap: 7px; justify-items: center; padding: 14px 22px; border-radius: 18px; background: rgba(28,22,16,.58); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: #fff6e6; text-align: center; opacity: 0; pointer-events: none; transition: opacity .5s, transform .5s cubic-bezier(.2,.9,.25,1); white-space: nowrap; box-shadow: 0 14px 30px -10px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.12); }
.ar-hint.show { opacity: 1; transform: translate(-50%, 0); }
.ar-hint b { font: 700 17px/1.1 -apple-system, "SF Pro Display", Inter, system-ui, sans-serif; letter-spacing: -.01em; }
.ar-hint span { font: 500 12.5px/1.3 -apple-system, Inter, sans-serif; color: rgba(255,246,230,.78); }
.ar-hint kbd { display: inline-block; min-width: 20px; padding: 2px 6px; margin: 0 1px; border-radius: 6px; font: 600 11px -apple-system, Inter, sans-serif; color: #fff6e6; background: rgba(255,255,255,.14); box-shadow: 0 2px 0 rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,255,255,.18); }
.ar-hint.pulse b { animation: arhintpulse 1.1s ease-out 1; } @keyframes arhintpulse { 0% { transform: scale(1); } 30% { transform: scale(1.12); color: #ffd9a8; } 100% { transform: scale(1); } }
.ar-x { position: absolute; right: 18px; top: 16px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(30,24,18,.35); backdrop-filter: blur(8px); color: #fff; cursor: pointer; font-size: 13px; opacity: 0; transition: opacity .4s .9s; } #arcade.open .ar-x { opacity: 1; }
@media (max-width: 700px) { .ar-hint { white-space: normal; width: 86vw; } }

/* background-sound menu */
#mood-menu { position: absolute; left: 0; bottom: 52px; width: 236px; padding: 8px; border-radius: 16px; background: rgba(34,28,24,.72); backdrop-filter: blur(22px) saturate(1.2); -webkit-backdrop-filter: blur(22px) saturate(1.2); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.22), 0 22px 44px -12px rgba(0,0,0,.55); opacity: 0; transform: translateY(8px) scale(.97); transform-origin: 20px 100%; pointer-events: none; transition: opacity .22s, transform .3s cubic-bezier(.2,.9,.25,1.1); }
#mood-menu.open { opacity: 1; transform: none; pointer-events: auto; }
#hud #mood-menu button { width: 100%; height: auto; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: none; box-shadow: none; backdrop-filter: none; text-align: left; font: 500 13px/1.2 -apple-system, "SF Pro Text", Inter, system-ui, sans-serif; color: #fff; transform: none; }
#hud #mood-menu button:hover { background: rgba(255,255,255,.12); }
#mood-menu button i { width: 8px; height: 8px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.4); }
#mood-menu button.on i { background: #7ee0a0; box-shadow: 0 0 8px rgba(126,224,160,.7); }
#mood-menu em { display: block; font-style: normal; font-size: 11px; color: rgba(255,255,255,.55); margin-top: 1px; }
.mm-h { padding: 6px 10px 8px; font: 700 10.5px -apple-system, Inter, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.mm-sep { height: 1px; margin: 5px 8px; background: rgba(255,255,255,.12); }
body.phone #mood-menu { left: auto; right: 0; transform-origin: calc(100% - 20px) 100%; }

#arcade.gl .ar-rig, #arcade.gl .ar-shadow { display: none; }
.ar-gl { position: absolute; left: 0; top: 0; pointer-events: none; display: none; }

#console-gap { position: fixed; z-index: 3; pointer-events: none; opacity: var(--gap, 0); }
#console-gap img { position: absolute; inset: 0; width: 100%; height: 100%; } #console-gap .gn { opacity: 0; } body.dark #console-gap .gn { opacity: 1; }

.ar-hint .ar-lead { font: 600 11.5px -apple-system, Inter, sans-serif; font-style: normal; color: #ffd9a8; }
