/* RadialDeck desktop (site/os): the scene from play.html, Windows 11 windows, taskbar and Start, the live ring,
   and a phone home screen. Moving things move by transform only; blur is kept to small surfaces. */

/* The scene's colours are registered so day and night can cross-fade (a plain custom property jumps). */
@property --sky1 { syntax: "<color>"; inherits: true; initial-value: #000; }
@property --sky2 { syntax: "<color>"; inherits: true; initial-value: #000; }
@property --sky3 { syntax: "<color>"; inherits: true; initial-value: #000; }
@property --sky4 { syntax: "<color>"; inherits: true; initial-value: #000; }
@property --m1 { syntax: "<color>"; inherits: true; initial-value: #000; }
@property --m2 { syntax: "<color>"; inherits: true; initial-value: #000; }
@property --m3 { syntax: "<color>"; inherits: true; initial-value: #000; }
@property --m4 { syntax: "<color>"; inherits: true; initial-value: #000; }
:root {
  --font-display: "Outfit", "Segoe UI", system-ui, sans-serif; --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-ui: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1); --accent: #60a5fa; --accent-ui: #4cc2ff;
  --sky1: #24305c; --sky2: #8d5a8c; --sky3: #ee9a78; --sky4: #ffd2a0;
  --m1: #8a6488; --m2: #5c4372; --m3: #3c2e5a; --m4: #211a38;
  --ok: #4ade80; --t-base: 260ms; --ease-out: cubic-bezier(.16, 1, .3, 1);
}
/* Windows follow Dark/Light (the Everyday ring's first slice; body.is-night is dark). Everything inside a window
   should use these tokens so it reads in both. .os-dark keeps a part dark in both (a demo screen, a video). */
:root, .os-dark, .fx-demo {
  --win-body: #1d1d21; --win-bar: rgba(36, 36, 42, .84); --win-bar-idle: #26262b; --win-line: rgba(255, 255, 255, .08);
  --text: #f3f3f5; --text-2: rgba(255, 255, 255, .72); --text-3: rgba(255, 255, 255, .5);
  --surface: rgba(255, 255, 255, .045); --surface-2: rgba(255, 255, 255, .08); --border: rgba(255, 255, 255, .1); --border-strong: rgba(255, 255, 255, .18);
  --hover: rgba(255, 255, 255, .08); --btn: rgba(255, 255, 255, .07); --btn-hover: rgba(255, 255, 255, .11); --btn-line: rgba(255, 255, 255, .1);
  --link: #7cc4ff; --focus: #fff; --scroll: rgba(255, 255, 255, .25); color-scheme: dark;
}
.os-js body:not(.is-night) .win {
  --win-body: #f9f9f9; --win-bar: rgba(238, 240, 246, .84); --win-bar-idle: #f0f0f3; --win-line: rgba(0, 0, 0, .07);
  --text: #1b1b1f; --text-2: rgba(0, 0, 0, .7); --text-3: rgba(0, 0, 0, .6);
  --surface: #fff; --surface-2: rgba(0, 0, 0, .05); --border: rgba(0, 0, 0, .1); --border-strong: rgba(0, 0, 0, .18);
  --hover: rgba(0, 0, 0, .05); --btn: #fff; --btn-hover: #f6f6f6; --btn-line: rgba(0, 0, 0, .12);
  --link: #0067c0; --focus: #1b1b1f; --scroll: rgba(0, 0, 0, .3); color-scheme: light;
}
body.is-night {
  --sky1: #02050d; --sky2: #08122b; --sky3: #13224a; --sky4: #213260;
  --m1: #1f2b4f; --m2: #172142; --m3: #101831; --m4: #090e1e;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; color: #fff; background: #0b0f1e; font-family: var(--font-body); -webkit-font-smoothing: antialiased;
  transition: --sky1 1.4s, --sky2 1.4s, --sky3 1.4s, --sky4 1.4s, --m1 1.4s, --m2 1.4s, --m3 1.4s, --m4 1.4s;
}
.os-js body { overflow: hidden; -webkit-user-select: none; user-select: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .92em; background: var(--surface-2); padding: 1px 6px; border-radius: 5px; }
kbd { font: 600 12px var(--font-body); padding: 1px 6px; border-radius: 5px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.2); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 8px 12px; border-radius: 6px; background: #2563eb; color: #fff; }
.skip:focus { left: 12px; }
.touch-only { display: none; }
html:not(.is-mobile) .phone-only { display: none !important; }

/* ---- Scene (play.html) ---- */
.sky { position: fixed; inset: 0; background: linear-gradient(180deg, var(--sky1) 0%, var(--sky2) 34%, var(--sky3) 54%, var(--sky4) 68%); }
.stars { position: fixed; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.4s; }
body.is-night .stars { opacity: 1; }
.land { position: fixed; left: 0; bottom: 0; width: 100%; height: 62vh; overflow: visible; }
.land .m1 { fill: var(--m1); } .land .m2 { fill: var(--m2); } .land .m3 { fill: var(--m3); } .land .m4 { fill: var(--m4); }
.land .sun { fill: #ffe6c2; transform-box: fill-box; transform-origin: center; transition: transform 1.6s var(--ease), opacity 1.4s; }
.land .moon { fill: #eef2ff; transform-box: fill-box; transform-origin: center; opacity: 0; transform: translateY(160px); transition: transform 1.8s var(--ease), opacity 1.4s; }
body.is-night .land .sun { transform: translateY(260px); opacity: 0; }
body.is-night .land .moon { transform: none; opacity: 1; }
.land .window { fill: #ffd27a; opacity: 0; transition: opacity 1.4s .4s; }
body.is-night .land .window { opacity: .9; }
.grain { position: fixed; inset: 0; pointer-events: none; opacity: .14; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }

/* ---- Desktop icons, in groups (build/site-os.py GROUPS). The page's ?layout= (html[data-layout], set in its head)
   picks how: fences (the default: a labelled glass group each, down the left, the Recycle Bin top right), clean (one
   column of the main ones and All apps; the rest is in Start) or folders (a tile per group that opens beside it).
   --cw is a cell's width, --ic an icon's size. ---- */
.os-icons { --cw: 84px; --ic: 40px; --fs: 12px; --pad: 7px 3px 6px; position: fixed; left: 8px; top: 8px; bottom: 56px; z-index: 4; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.os-icon, .os-fence-open { display: grid; justify-items: center; align-content: start; gap: 5px; width: var(--cw); padding: var(--pad); margin: 0; border: 1px solid transparent; border-radius: 6px; background: none; cursor: default;
  font: 400 var(--fs)/1.25 var(--font-ui); color: #fff; text-align: center; text-decoration: none; text-shadow: 0 1px 3px rgba(0,0,0,.7), 0 0 1px rgba(0,0,0,.5); }
.os-icon img, .os-icon svg { width: var(--ic); height: var(--ic); filter: drop-shadow(0 3px 6px rgba(0,0,0,.35)); pointer-events: none; }
.os-icon span, .os-fence-open span { max-width: 100%; overflow-wrap: anywhere; }
:is(.os-icon, .os-fence-open):hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.12); }
.os-icon.is-selected, .os-fence.is-open .os-fence-open { background: rgba(120,170,255,.24); border-color: rgba(160,200,255,.4); }
:is(.os-icon, .os-fence-open):focus-visible { outline: 1px dashed #fff; outline-offset: -3px; }
.os-fence-box { padding: 6px 6px 7px; border-radius: 12px; background: rgba(14,16,34,.24); border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 10px 30px rgba(8,6,24,.16); backdrop-filter: blur(10px) saturate(1.15); -webkit-backdrop-filter: blur(10px) saturate(1.15); }
.os-fence-h { margin: 0 5px 5px; padding: 1px 0 6px; border-bottom: 1px solid rgba(255,255,255,.12); font: 600 12px/1.2 var(--font-ui); letter-spacing: .01em; color: rgba(255,255,255,.9); text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.os-fence-grid { display: grid; grid-template-columns: repeat(4, var(--cw)); gap: 2px; }
.os-fence-open, .os-more { display: none; }
.os-bin { position: fixed; right: 10px; top: 8px; }
@media (max-height: 860px) { .os-icons { --cw: 76px; --ic: 34px; --fs: 11.5px; --pad: 5px 2px 4px; } .os-icon, .os-fence-open { gap: 4px; } }
@media (max-width: 999px) { .os-icons { --cw: 68px; --fs: 11px; } }
/* Clean: one column, the rest is in Start (All apps opens it). */
[data-layout="clean"] .os-icons { gap: 2px; }
[data-layout="clean"] :is(.os-fence, .os-fence-box, .os-fence-grid) { display: contents; }
[data-layout="clean"] :is(.os-fence-h, .os-icon:not([data-clean])) { display: none; }
[data-layout="clean"] .os-more { display: grid; }
[data-layout="clean"] .os-bin { position: static; }
/* Folders: a tile per group (its first four icons in small); the group opens beside it, over the desktop. */
[data-layout="folders"] .os-fence { position: relative; }
[data-layout="folders"] .os-fence-open { display: grid; }
.os-fence-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; width: calc(var(--ic) + 8px); height: calc(var(--ic) + 8px); padding: calc(var(--ic) * .13); border-radius: calc(var(--ic) * .28);
  background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.32); box-shadow: 0 3px 8px rgba(0,0,0,.2); }
.os-fence-mini img { width: 100%; height: 100%; }
[data-layout="folders"] .os-fence-box { position: absolute; left: calc(100% + 8px); top: 0; display: none; background: rgba(16,18,36,.78); box-shadow: 0 18px 50px rgba(8,6,24,.45); }
[data-layout="folders"] .os-fence.is-open .os-fence-box { display: block; animation: fold-in .2s var(--ease); }
[data-layout="folders"] .os-icons:has(.is-open) { z-index: 7; }
@keyframes fold-in { from { opacity: 0; transform: translateX(-8px) scale(.97); } }
.os-bin .paper { transition: opacity .3s, transform .5s var(--ease); transform-box: fill-box; transform-origin: center bottom; }
.os-bin.is-empty .paper { opacity: 0; transform: translateY(6px) scale(.6); }
.os-bin.is-shake svg { animation: shake .5s; }
@keyframes shake { 20% { transform: rotate(-8deg); } 40% { transform: rotate(7deg); } 60% { transform: rotate(-4deg); } 80% { transform: rotate(2deg); } }

/* ---- The desktop's middle: the ring, the line, the Store (play.html) ---- */
.os-hero { position: fixed; inset: 0 0 48px; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: safe center; padding: 24px 110px; text-align: center; pointer-events: none; }
.os-hero a, .os-hero button { pointer-events: auto; }
.coach { margin: 0 0 14px; padding: 6px 13px; border-radius: 999px; font-size: 13px; font-weight: 500; color: rgba(255,255,255,.88);
  background: rgba(10,12,24,.28); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: opacity .4s; }
.coach.is-done { opacity: 0; }
.anchor { width: clamp(220px, 40vh, 400px); aspect-ratio: 1; flex: none; }
.title { margin: 20px 0 8px; font: 700 clamp(30px, 4.4vw, 54px)/1.04 var(--font-display); letter-spacing: -.03em; text-wrap: balance; text-shadow: 0 1px 2px rgba(30,16,48,.25), 0 2px 24px rgba(30,16,48,.3); }
.title b { display: block; font-weight: 700; }
.title span { display: block; color: rgba(255,255,255,.58); }
.caption { margin: 0 auto 18px; max-width: 50ch; min-height: 3em; font-size: 16px; line-height: 1.5; color: rgba(255,255,255,.82); text-wrap: balance; }
.caption b { color: #fff; font-weight: 600; }
.cta img { height: 48px; width: auto; display: block; margin: 0 auto; transition: transform .25s var(--ease); }
.cta a:hover img { transform: translateY(-1px); }
.fine { margin: 9px 0 0; font-size: 13px; color: rgba(255,255,255,.62); }
.fine b { color: rgba(255,255,255,.85); font-weight: 500; }
@media (max-height: 700px) { .coach { display: none; } .title { margin-top: 12px; font-size: clamp(26px, 3.6vw, 40px); } .caption { min-height: 0; } }

/* ---- The live ring: drawn by ring.js as RadialDeck draws it (no blur behind it, the theme's own slices) ---- */
.os-ring { position: fixed; left: 0; top: 0; z-index: 6; transform-origin: 50% 50%; will-change: transform, opacity; outline: none; opacity: 0; --k: 1; }
.os-ring.is-held { z-index: 60; }
.os-ring .ring-glass { position: absolute; inset: 3.125%; border-radius: 50%; pointer-events: none; }
.os-ring:focus-visible .ring-glass { outline: 2px solid #fff; outline-offset: 4px; }
.os-ring .ring-svg { position: relative; display: block; width: 100%; height: 100%; overflow: visible; }
.os-ring .ring-svg .slice { cursor: pointer; }
.os-ring .ring-light.is-fire { animation: fire .45s ease-out; }
@keyframes fire { 0% { filter: brightness(1.7); } 100% { filter: none; } }
.os-ring .ring-labels { position: absolute; inset: 0; pointer-events: none; }
.os-ring .ring-label { position: absolute; color: var(--r-label-dim); transition: color .15s; will-change: transform; }
/* The hub's text as the app sets it: 10 DIP semibold, 62 DIP wide, three lines at most. */
.os-ring .ring-hub { position: absolute; left: 50%; top: 50%; width: 28.125%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  display: grid; place-content: center; justify-items: center; pointer-events: none; text-align: center; overflow: hidden; color: var(--r-hub-label); }
.os-ring .hub-ico, .os-ring .hub-s:empty { display: none; }
.os-ring .hub-back { color: var(--r-label-dim); }
.os-ring .hub-t { width: calc(.334821cqw * 62); font: var(--r-weight, 600) calc(.334821cqw * 10)/calc(.334821cqw * 12) var(--r-font); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; overflow-wrap: anywhere; }
.os-ring .hub-s { font: 600 calc(.334821cqw * 9) var(--r-font); color: var(--r-label-dim); }
.hub-t.is-swap, .hub-s.is-swap, .hub-ico.is-swap { animation: hubswap .16s ease-out; }
@keyframes hubswap { from { opacity: 0; filter: blur(2px); } to { opacity: 1; filter: none; } }
.os-ring-say { position: fixed; left: 50%; bottom: 64px; z-index: 61; max-width: min(560px, calc(100vw - 32px)); margin: 0; padding: 8px 14px; border-radius: 999px; font-size: 13.5px; color: #fff; text-align: center;
  background: rgba(14,16,28,.72); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  opacity: 0; transform: translate(-50%, 8px); transition: opacity .2s, transform .35s var(--ease); pointer-events: none; }
.os-ring-say.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---- Windows ---- */
.os-windows { position: fixed; inset: 0; z-index: 10; pointer-events: none; }
.win { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; pointer-events: auto; border-radius: 8px; transform-origin: 50% 50%; outline: none;
  box-shadow: 0 0 0 1px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.07) inset, 0 8px 24px rgba(0,0,0,.28); color: var(--text); font-family: var(--font-body); -webkit-user-select: text; user-select: text; contain: layout; }
.win.is-focused { box-shadow: 0 0 0 1px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.1) inset, 0 26px 64px rgba(0,0,0,.5), 0 8px 18px rgba(0,0,0,.25); }
.win.is-max, .win.is-snapped { border-radius: 0; }
/* On top (the Everyday ring): above every other window, with a pin by the title. */
.win.is-pinned { z-index: 9000 !important; }
.win.is-pinned .win-title::after { content: "  · On top"; font-size: 12px; opacity: .65; }
.win.is-closing, .win.is-min { pointer-events: none; }
.win.is-dragging, .win.is-resizing { -webkit-user-select: none; user-select: none; }
.win-bar { flex: none; display: flex; align-items: center; height: 40px; padding-left: 12px; border-radius: 8px 8px 0 0; background: var(--win-bar-idle); border-bottom: 1px solid var(--win-line);
  font: 400 12px var(--font-ui); color: var(--text-3); -webkit-user-select: none; user-select: none; touch-action: none; }
/* Mica: the window in front shows the wallpaper through its title bar. */
.win.is-focused .win-bar { background: var(--win-bar); backdrop-filter: blur(28px) saturate(1.6); -webkit-backdrop-filter: blur(28px) saturate(1.6); color: var(--text); }
.win.is-max .win-bar, .win.is-snapped .win-bar { border-radius: 0; }
.win-ico { width: 16px; height: 16px; flex: none; margin-right: 10px; }
.win-title { flex: 1; min-width: 0; margin: 0; font: inherit; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-back { display: none; }
.win-ringbtn, .win-back { flex: none; width: 34px; height: 30px; margin-right: 4px; border: 0; border-radius: 5px; background: none; place-items: center; cursor: default; color: inherit; }
.win-ringbtn { display: grid; }
.win-ringbtn svg, .win-back svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.win-ringbtn:hover, .win-back:hover { background: var(--hover); }
.win-caps { display: flex; height: 100%; }
.win-caps button { width: 46px; height: 100%; border: 0; background: none; display: grid; place-items: center; cursor: default; color: inherit; transition: background .1s; }
.win-caps svg { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1; }
.win-caps button:hover { background: var(--hover); }
.win-caps .win-close { border-top-right-radius: 8px; }
.win.is-max .win-close, .win.is-snapped .win-close { border-radius: 0; }
.win-caps .win-close:hover { background: #c42b1c; color: #fff; }
.win-caps button:focus-visible, .win-ringbtn:focus-visible, .win-back:focus-visible { outline: 2px solid var(--focus); outline-offset: -3px; }
.win :focus-visible { outline-color: var(--focus); }
.os-dark { color: var(--text); }
.win-body { flex: 1; min-height: 0; overflow: auto; background: var(--win-body); border-radius: 0 0 8px 8px; container-type: inline-size; overscroll-behavior: contain; scrollbar-color: var(--scroll) transparent; }
.win.is-max .win-body, .win.is-snapped .win-body { border-radius: 0; }
.win-loading { margin: 0; padding: 32px; color: var(--text-2); }
.rz { position: absolute; z-index: 2; }
.rz-n, .rz-s { left: 8px; right: 8px; height: 8px; cursor: ns-resize; }
.rz-n { top: -4px; } .rz-s { bottom: -4px; }
.rz-e, .rz-w { top: 8px; bottom: 8px; width: 8px; cursor: ew-resize; }
.rz-e { right: -4px; } .rz-w { left: -4px; }
.rz-ne, .rz-nw, .rz-se, .rz-sw { width: 14px; height: 14px; }
.rz-ne { top: -5px; right: -5px; cursor: nesw-resize; } .rz-sw { bottom: -5px; left: -5px; cursor: nesw-resize; }
.rz-nw { top: -5px; left: -5px; cursor: nwse-resize; } .rz-se { bottom: -5px; right: -5px; cursor: nwse-resize; }
.win.is-max .rz { display: none; }
.os-snap { position: fixed; z-index: 9; left: 50%; top: 40%; width: 0; height: 0; border-radius: 8px; opacity: 0; pointer-events: none;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.32); box-shadow: 0 10px 30px rgba(0,0,0,.25);
  transition: opacity .18s, left .25s var(--ease), top .25s var(--ease), width .25s var(--ease), height .25s var(--ease); }
.os-snap.is-on { opacity: 1; }
.os-snap.is-left { left: 6px; top: 6px; width: calc(50% - 9px); height: calc(100% - 60px); }
.os-snap.is-right { left: calc(50% + 3px); top: 6px; width: calc(50% - 9px); height: calc(100% - 60px); }
.os-snap.is-max { left: 6px; top: 6px; width: calc(100% - 12px); height: calc(100% - 60px); }

/* A window that comes in phase 2: what it will be, and today's page. */
.p2 { display: flex; gap: 16px; align-items: center; margin: 16px; padding: 16px 18px; border-radius: 8px; background: var(--surface); border: 1px solid var(--border); font-family: var(--font-body); }
.p2 img { flex: none; width: 48px; height: 48px; }
.p2 b { display: block; font: 600 15px var(--font-display); }
.p2 p { margin: 2px 0 10px; color: var(--text-2); font-size: 14px; }

/* ---- Buttons and text inside windows ---- */
.os-btn, .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 32px; padding: 5px 14px; border-radius: 5px; border: 1px solid var(--btn-line);
  background: var(--btn); color: var(--text); font: 500 13.5px var(--font-ui); text-decoration: none; cursor: pointer; transition: background .12s; }
.os-btn:hover, .btn:hover { background: var(--btn-hover); }
.os-btn:active, .btn:active { background: var(--surface-2); color: var(--text-2); }
.os-btn-primary, .btn-primary { background: var(--accent-ui); border-color: rgba(255,255,255,.12); color: #0b0f1e; font-weight: 600; }
.os-btn-primary:hover, .btn-primary:hover { background: #6ccfff; }
.btn-lg { min-height: 40px; padding: 8px 20px; font-size: 15px; }
.tag { display: inline-block; padding: 1px 7px; border-radius: 999px; font: 700 10.5px var(--font-body); letter-spacing: .06em; text-transform: uppercase; vertical-align: 2px; white-space: nowrap; }
.tag-free { color: #86efac; background: rgba(74,222,128,.12); border: 1px solid rgba(74,222,128,.35); }
.tag-pro { color: #c4b5fd; background: rgba(139,92,246,.16); border: 1px solid rgba(139,92,246,.4); }
.tag-team { color: #fcd34d; background: rgba(251,191,36,.12); border: 1px solid rgba(251,191,36,.35); }
.tag-soon { color: #93c5fd; background: rgba(59,130,246,.14); border: 1px solid rgba(59,130,246,.4); }
.os-js body:not(.is-night) .win .tag-free { color: #15803d; } .os-js body:not(.is-night) .win .tag-pro { color: #6d28d9; }
.os-js body:not(.is-night) .win .tag-team { color: #a16207; } .os-js body:not(.is-night) .win .tag-soon { color: #1d4ed8; }

/* A document window (Pro, Help and phase 2's text apps). */
.app-doc { padding: 26px 32px 36px; font-size: 15px; line-height: 1.6; color: var(--text-2); }
.app-doc a { color: var(--link); }
.doc-h { margin: 0 0 18px; font: 600 26px/1.15 var(--font-display); letter-spacing: -.02em; color: var(--text); }
.doc-fine { margin: 18px 0 0; font-size: 13px; color: var(--text-3); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@container (max-width: 700px) { .plans { grid-template-columns: 1fr; } }
.plan { position: relative; display: flex; flex-direction: column; padding: 20px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); }
.plan-pro { border-color: rgba(76,194,255,.45); background: linear-gradient(180deg, rgba(76,194,255,.08), var(--surface)); }
.plan h3 { margin: 0; font: 600 18px var(--font-display); color: var(--text); }
.plan .amount { margin: 8px 0 0; font: 700 32px/1 var(--font-display); color: var(--text); }
.plan .per { margin: 4px 0 12px; font-size: 13px; color: var(--text-3); }
.plan ul { margin: 0 0 18px; padding: 0 0 0 18px; font-size: 14px; }
.plan li { margin: 3px 0; }
.plan .btn { margin-top: auto; }
.plan .badge { position: absolute; top: 14px; right: 14px; padding: 2px 8px; border-radius: 999px; font: 700 10.5px var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: #0b0f1e; background: var(--accent-ui); }
.faq-list details { border-bottom: 1px solid var(--border); }
.faq-list summary { padding: 13px 4px; cursor: pointer; font-weight: 600; color: var(--text); list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::before { content: "›"; display: inline-block; width: 18px; color: var(--text-3); transition: transform .2s; }
.faq-list details[open] summary::before { transform: rotate(90deg); }
.faq-list p { margin: 0 0 14px 18px; }

/* ---- Taskbar (play.html, with Start, search and the running apps) ---- */
.taskbar { position: fixed; left: 0; right: 0; bottom: 0; height: 48px; z-index: 40; display: flex; align-items: center; justify-content: center; font-family: var(--font-ui);
  background: rgba(20,22,32,.62); border-top: 1px solid rgba(255,255,255,.08); backdrop-filter: blur(26px) saturate(1.4); -webkit-backdrop-filter: blur(26px) saturate(1.4); }
.tb-apps { display: flex; gap: 2px; }
.tb-apps button { position: relative; width: 40px; height: 40px; border: 0; border-radius: 5px; background: none; display: grid; place-items: center; cursor: default; transition: background .15s; }
.tb-apps button:hover { background: rgba(255,255,255,.09); }
.tb-apps button img, .tb-apps button svg { width: 24px; height: 24px; transition: transform .2s var(--ease); }
.tb-search svg { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; width: 20px !important; height: 20px !important; }
.tb-apps button:active img, .tb-apps button:active svg { transform: scale(.86); }
.tb-apps button::after { content: ""; position: absolute; bottom: 2px; left: 50%; width: 6px; height: 3px; margin-left: -3px; border-radius: 2px; background: rgba(255,255,255,.5); opacity: 0; transition: width .3s var(--ease), margin .3s var(--ease), opacity .2s, background .2s; }
.tb-apps button.is-open::after { opacity: 1; }
.tb-apps button.is-active { background: rgba(255,255,255,.08); }
.tb-apps button.is-active::after { opacity: 1; width: 16px; margin-left: -8px; background: var(--accent-ui); }
.tb-apps .tb-start[aria-expanded="true"] { background: rgba(255,255,255,.1); }
.tray { position: absolute; right: 12px; top: 0; bottom: 0; display: flex; align-items: center; gap: 12px; font-size: 12px; line-height: 1.3; text-align: right; color: rgba(255,255,255,.9); }
.tray svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tb-widget { position: absolute; left: 8px; top: 4px; bottom: 4px; display: flex; align-items: center; gap: 9px; padding: 0 12px 0 8px; border-radius: 5px; font-size: 12px; line-height: 1.25; color: rgba(255,255,255,.85); text-decoration: none; transition: background .15s, opacity .3s; }
.tb-widget:hover { background: rgba(255,255,255,.08); }
.tb-widget b { display: block; color: #fff; font-weight: 600; }
.playing { position: absolute; left: 176px; top: 0; bottom: 0; display: flex; align-items: center; gap: 9px; font-size: 12px; opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .45s var(--ease); pointer-events: none; }
.playing.is-on { opacity: 1; transform: none; }
.eq { display: flex; gap: 2px; align-items: flex-end; height: 14px; }
.eq i { width: 3px; background: var(--accent); border-radius: 1px; animation: eq .9s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.3s; } .eq i:nth-child(3) { animation-delay: -.6s; }
@keyframes eq { 0%, 100% { height: 30%; } 50% { height: 100%; } }
@media (max-width: 1100px) { .playing span, .tb-widget span { display: none; } .playing { left: 52px; } }

/* ---- Start ---- */
.start { position: fixed; left: 50%; bottom: 58px; z-index: 45; width: min(640px, calc(100vw - 24px)); max-height: min(720px, calc(100vh - 72px)); display: flex; flex-direction: column; overflow: hidden;
  border-radius: 8px; background: rgba(34,34,40,.86); border: 1px solid rgba(255,255,255,.1); box-shadow: 0 24px 60px rgba(0,0,0,.5);
  backdrop-filter: blur(40px) saturate(1.6); -webkit-backdrop-filter: blur(40px) saturate(1.6); font-family: var(--font-ui);
  opacity: 0; visibility: hidden; transform: translate(-50%, 24px); transition: opacity .16s, transform .3s var(--ease), visibility 0s .3s; }
.start.is-open { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity .16s, transform .3s var(--ease); }
.start-search { position: relative; margin: 24px 28px 8px; }
.start-search svg { position: absolute; left: 14px; top: 50%; width: 16px; height: 16px; margin-top: -8px; fill: none; stroke: rgba(255,255,255,.7); stroke-width: 2; stroke-linecap: round; }
.start-search input { width: 100%; height: 36px; padding: 0 14px 0 40px; border-radius: 18px; border: 1px solid rgba(255,255,255,.08); border-bottom: 2px solid var(--accent-ui); background: rgba(0,0,0,.28); color: #fff; font: 14px var(--font-ui); outline: none; }
.start-search input::placeholder { color: rgba(255,255,255,.55); }
.start-home { overflow: auto; padding: 4px 20px 16px; }
.start.is-searching .start-home { display: none; }
.start-h { margin: 14px 12px 8px; font: 600 13.5px var(--font-ui); color: #fff; }
.start-apps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 2px; }
.start-app { display: grid; justify-items: center; gap: 6px; padding: 12px 4px 10px; border-radius: 5px; font-size: 12px; color: #fff; text-decoration: none; text-align: center; cursor: default; }
.start-app img { width: 32px; height: 32px; }
.start-app:hover, .start-page:hover, .start-hit:hover, .start-hit:focus { background: rgba(255,255,255,.07); outline: none; }
.start-pages { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 8px; }
.start-page { display: grid; padding: 8px 12px; border-radius: 5px; text-decoration: none; color: #fff; }
.start-page b { font-weight: 500; font-size: 13px; }
.start-page small, .start-hit small { font-size: 12px; color: rgba(255,255,255,.6); }
.start-results { overflow: auto; padding: 6px 20px 16px; }
.start-hit { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 12px; border: 0; border-radius: 5px; background: none; color: #fff; text-align: left; text-decoration: none; font: 13px var(--font-ui); cursor: default; }
.start-hit img, .start-hit svg { width: 28px; height: 28px; flex: none; }
.start-hit svg { padding: 4px; fill: none; stroke: #fff; stroke-width: 1.6; }
.start-hit span { display: grid; }
.start-none { margin: 14px 12px; color: rgba(255,255,255,.7); font-size: 13px; }
.start-foot { display: flex; align-items: center; justify-content: space-between; padding: 12px 28px; border-top: 1px solid rgba(255,255,255,.08); background: rgba(0,0,0,.18); font-size: 12.5px; }
.start-me { display: flex; align-items: center; gap: 10px; }
.start-power { width: 36px; height: 36px; border: 0; border-radius: 5px; background: none; display: grid; place-items: center; cursor: default; }
.start-power:hover { background: rgba(255,255,255,.08); }
.start-power svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; }

/* ---- Overlays (play.html) ---- */
.toast { position: fixed; right: 12px; bottom: 60px; z-index: 70; width: min(360px, calc(100vw - 24px)); display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 8px; text-align: left; font-family: var(--font-ui);
  background: rgba(36,36,44,.86); border: 1px solid rgba(255,255,255,.12); box-shadow: 0 18px 40px rgba(0,0,0,.4); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  transform: translateX(calc(100% + 24px)); transition: transform .5s var(--ease); pointer-events: none; }
.toast.is-on { transform: none; }
.toast img { width: 22px; height: 22px; flex: none; margin-top: 1px; }
.toast b { display: block; font-size: 13.5px; font-weight: 600; }
.toast span { display: block; font-size: 13px; color: rgba(255,255,255,.75); word-break: break-word; }
.snip { position: fixed; inset: 0; z-index: 68; background: rgba(0,0,0,.38); opacity: 0; pointer-events: none; transition: opacity .2s; }
.snip.is-on { opacity: 1; }
.snip i { position: absolute; border: 2px solid #fff; box-shadow: 0 0 0 9999px rgba(0,0,0,.18); border-radius: 2px; transition: width .5s var(--ease), height .5s var(--ease); }
.flash { position: fixed; inset: 0; z-index: 69; background: #fff; opacity: 0; pointer-events: none; }
.flash.is-on { animation: flash .45s ease-out; }
@keyframes flash { 0% { opacity: .75; } 100% { opacity: 0; } }
.lock { position: fixed; inset: 0; z-index: 80; display: grid; place-content: center; text-align: center; gap: 4px; cursor: pointer; outline: none;
  background: rgba(8,10,22,.35); backdrop-filter: blur(26px) brightness(.85); -webkit-backdrop-filter: blur(26px) brightness(.85);
  opacity: 0; visibility: hidden; transition: opacity .45s, visibility 0s .6s, transform .6s var(--ease); }
.lock.is-on { opacity: 1; visibility: visible; transition: opacity .45s; }
.lock.is-leaving { transform: translateY(-100%); }
.lock b { font: 600 clamp(72px, 12vw, 128px)/1 var(--font-display); letter-spacing: -.02em; }
.lock span { font-size: 20px; color: rgba(255,255,255,.85); }
.lock small { margin-top: 26px; font-size: 13px; color: rgba(255,255,255,.6); }

/* ---- Features app: Windows Settings layout ---- */
.fx-app { display: grid; grid-template-columns: 228px 1fr; height: 100%; font-size: 15px; line-height: 1.6; color: var(--text-2); }
.fx-side { display: flex; flex-direction: column; gap: 2px; padding: 14px 8px; overflow: auto; font-family: var(--font-ui); }
.fx-side a { position: relative; display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 5px; font-size: 13.5px; color: var(--text); text-decoration: none; }
.fx-side a svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; color: var(--accent-ui); }
.fx-side a:hover { background: var(--hover); }
.fx-side a.is-on { background: var(--surface-2); }
.fx-side a.is-on::before { content: ""; position: absolute; left: 0; top: 50%; width: 3px; height: 16px; margin-top: -8px; border-radius: 2px; background: var(--accent-ui); }
.fx-main { overflow: auto; padding: 26px 36px 44px; outline: none; }
.fx-app.is-js .fx-page:not(.is-on) { display: none; }
.fx-page { max-width: 900px; animation: fx-in .35s var(--ease); }
@keyframes fx-in { from { opacity: 0; transform: translateY(6px); } }
.fx-eyebrow { margin: 0 0 8px; font: 600 12px var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.fx-h1 { margin: 0 0 12px; font: 700 clamp(28px, 4cqw, 42px)/1.05 var(--font-display); letter-spacing: -.03em; color: var(--text); }
.fx-h2 { margin: 0 0 4px; font: 600 28px/1.15 var(--font-display); letter-spacing: -.02em; color: var(--text); }
.fx-lead { max-width: 62ch; margin: 0 0 22px; font-size: 16.5px; }
.fx-sub { max-width: 64ch; margin: 0 0 14px; }
.fx-stats { list-style: none; padding: 0; margin: 0 0 22px; display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 8px; }
.fx-stats li { padding: 12px 14px; border-radius: 8px; background: var(--surface); border: 1px solid var(--border); }
.fx-stats a { text-decoration: none; }
.fx-stats b { display: block; font: 700 24px/1.1 var(--font-display); color: var(--text); }
.fx-stats span { font-size: 12.5px; }
.fx-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fx-plans > div { padding: 14px 16px; border-radius: 8px; background: var(--surface); border: 1px solid var(--border); }
.fx-plans p { margin: 8px 0 0; font-size: 14px; }
.fx-plans b { color: var(--text); }
.fx-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 22px 0 0; }
.fx-cta img { height: 40px; width: auto; display: block; }
.fx-item { display: grid; grid-template-columns: minmax(200px, 280px) 1fr; gap: 28px; align-items: center; padding: 20px 0; border-top: 1px solid var(--border); }
.fx-item:first-of-type { border-top: 0; }
.fx-copy h3, .fx-card h3 { margin: 0 0 6px; font: 600 19px/1.25 var(--font-display); color: var(--text); }
.fx-copy p { margin: 0 0 10px; max-width: 54ch; }
.fx-copy a:not(.os-btn), .fx-card a { color: var(--link); }
.fx-meta { font-size: 13.5px; color: var(--text-3); }
.fx-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px 28px; margin-top: 10px; padding-top: 22px; border-top: 1px solid var(--border); }
.fx-page > .fx-cards:nth-child(3) { border-top: 0; padding-top: 8px; }
.fx-card { display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start; }
.fx-card h3 { font-size: 16px; }
.fx-card p { margin: 0; font-size: 14px; line-height: 1.55; }
.fx-icon { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; color: #93c5fd; background: rgba(59,130,246,.14); border: 1px solid rgba(59,130,246,.3); }
.fx-icon svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@container (max-width: 720px) {
  .fx-app { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .fx-side { flex-direction: row; overflow-x: auto; padding: 8px; border-bottom: 1px solid var(--border); scrollbar-width: none; }
  .fx-side a { flex: none; padding: 6px 12px; }
  .fx-side a svg { display: none; }
  .fx-side a.is-on::before { left: 50%; top: auto; bottom: 0; width: 16px; height: 3px; margin: 0 0 0 -8px; }
  .fx-main { padding: 20px 18px 36px; }
  .fx-item { grid-template-columns: 1fr; gap: 14px; }
  .fx-demo { max-width: 300px; }
  .fx-stats { grid-template-columns: repeat(3, 1fr); }
  .fx-plans { grid-template-columns: 1fr; }
}

/* The demos: features.js scenes, the site's ring in a small stage. */
.fx-demo { position: relative; aspect-ratio: 1; width: 100%; border-radius: 12px; border: 1px solid var(--border); overflow: hidden; container-type: inline-size;
  background: radial-gradient(60% 60% at 50% 45%, rgba(59,130,246,.14), transparent 70%), linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.015)); -webkit-user-select: none; user-select: none; }
.stage { position: absolute; inset: 0; display: grid; place-items: center; }
/* Nested rings as bubbles: a live ring (os/ring-live.js) in a wide box; the bubbles stay inside it. */
.fx-bubbles .fx-bub-demo { aspect-ratio: auto; height: 430px; max-width: none; touch-action: none; border-color: rgba(255,255,255,.12);
  background: radial-gradient(60% 70% at 50% 46%, rgba(139,92,246,.3), transparent 70%), linear-gradient(170deg, #161a33, #2b2046 58%, #4a2c4f); }
.fx-bub-demo .os-ring { position: absolute; z-index: 1; color: #fff; }
.fx-bub-anchor { position: absolute; left: 50%; top: 50%; width: min(250px, 60%); aspect-ratio: 1; transform: translate(-50%, -50%); pointer-events: none; }
.fx-bub-out { position: absolute; left: 12px; right: 12px; bottom: 10px; z-index: 2; margin: 0; font-size: 13px; color: rgba(255,255,255,.72); text-align: center; pointer-events: none; text-wrap: balance; }
.fx-bub-out b { color: #fff; font-weight: 600; }
.stage .ring { position: relative; width: 74%; aspect-ratio: 1; transition: opacity var(--t-base), transform var(--t-base) var(--ease-out); }
.stage .ring.is-gone { opacity: 0; transform: scale(.92); }
/* The demos' rings: slices, light, labels and icons are ring.js's (the app's look); only the box is set here. */
.stage .ring-svg { width: 100%; height: 100%; display: block; }
.stage .ring-labels { position: absolute; inset: 0; pointer-events: none; }
.stage .ring-label { position: absolute; transform: translate(-50%, -50%); color: var(--r-label-dim); transition: color .16s; }
.stage .ring-hub { position: absolute; left: 50%; top: 50%; width: 28.125%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; display: grid; place-items: center; padding: 6px;
  font: 600 max(8px, 2.6cqw) var(--r-font, var(--font-body)); letter-spacing: .04em; text-transform: uppercase; color: var(--r-hub-label, var(--r-label-dim)); text-align: center; overflow-wrap: anywhere; }
.stage-hud { position: absolute; top: 12px; right: 12px; left: 12px; display: flex; justify-content: flex-end; gap: 6px; min-height: 26px; }
.stage-ctx { font-size: 12px; font-weight: 500; color: var(--text-2); background: rgba(12,16,25,.8); border: 1px solid var(--border); padding: 4px 11px; border-radius: 999px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: fx-press .25s var(--ease-out); }
.stage-hud kbd { font-size: 13px; padding: 3px 9px; color: var(--text); animation: fx-press .25s var(--ease-out); }
@keyframes fx-press { from { transform: translateY(3px); opacity: .4; } }
.stage-pointer { position: absolute; left: 50%; top: 50%; width: 24px; height: 24px; margin: -2px 0 0 -4px; fill: #fff; stroke: #0b0d14; stroke-width: 1.4; stroke-linejoin: round; filter: drop-shadow(0 2px 3px rgba(0,0,0,.5)); opacity: 0; transition: transform .38s var(--ease-out), opacity var(--t-base); pointer-events: none; }
.stage.has-pointer .stage-pointer { opacity: 1; }
.stage-toast { position: absolute; left: 50%; bottom: 14px; transform: translate(-50%, 8px); max-width: 88%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12.5px; font-weight: 500; color: var(--text); padding: 7px 12px; border-radius: 10px; background: rgba(12,16,25,.88); border: 1px solid var(--border-strong); opacity: 0; transition: opacity var(--t-base), transform var(--t-base) var(--ease-out); }
.stage-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.stage-toast::before { content: "✓ "; color: var(--ok); }
[data-scene="themes"] .stage-toast::before { content: none; }
.stage-doc { position: absolute; inset: 22% 12%; border-radius: 10px; background: #f4f6fb; color: #1f2430; padding: 16px 18px; font-size: 13px; display: grid; align-content: start; gap: 8px; opacity: 0; transition: opacity var(--t-base); }
.stage-doc p { margin: 0; }
.stage-doc .is-target { position: relative; font-weight: 600; }
.stage-doc .is-target::after { content: ""; position: absolute; inset: -5px -8px; border: 2px dashed #3b82f6; border-radius: 4px; background: rgba(59,130,246,.08); transform-origin: left; transform: scaleX(0); }
.stage.is-snip .stage-doc { opacity: 1; }
.stage.is-snip::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.35); }
.stage.is-snip .stage-doc .is-target::after { animation: fx-marquee 1s .3s var(--ease-out) forwards; }
@keyframes fx-marquee { to { transform: scaleX(1); } }
.stage-offer { position: absolute; right: 12px; bottom: 12px; left: 12px; padding: 12px 14px; border-radius: 12px; background: rgba(12,16,25,.92); border: 1px solid var(--border-strong); font-size: 12.5px; line-height: 1.45; color: var(--text-2); opacity: 0; transform: translateY(10px); transition: opacity var(--t-base), transform var(--t-base) var(--ease-out); }
.stage-offer b { display: block; color: var(--text); margin-bottom: 2px; }
.stage.is-offer .stage-offer { opacity: 1; transform: none; }

/* ---- Notepad ---- */
.np { display: flex; flex-direction: column; height: 100%; background: var(--win-body); }
.np-bar { flex: none; display: flex; align-items: center; gap: 14px; padding: 6px 10px 6px 12px; border-bottom: 1px solid var(--win-line); font: 12.5px var(--font-ui); color: var(--text-2); }
.np-tab { padding: 4px 12px; border-radius: 5px; background: var(--surface-2); color: var(--text); white-space: nowrap; }
.np-hint { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.np-reset { min-height: 26px; padding: 2px 10px; font-size: 12.5px; }
.np-text { flex: 1; min-height: 0; width: 100%; margin: 0; padding: 14px 18px; border: 0; outline: none; resize: none; background: var(--win-body); color: var(--text);
  font: 15px/1.5 Consolas, "Cascadia Mono", ui-monospace, monospace; tab-size: 4; caret-color: var(--text); }
.np-text::selection { background: #2a63b8; color: #fff; }
.np-status { flex: none; display: flex; gap: 0; height: 26px; align-items: center; border-top: 1px solid var(--win-line); font: 12px var(--font-ui); color: var(--text-2); }
.np-status span { padding: 0 14px; border-right: 1px solid var(--win-line); white-space: nowrap; }
.np-status span:nth-child(2) { flex: 1; border-right: 0; }
@container (max-width: 560px) { .np-hint, .np-status span:nth-child(n+3) { display: none; } }

/* ---- Touch: a long press is the ring's, in text fields too, never the browser's text selection or menu (os.js
   prevents the menu; a tap on a field types there, a second tap selects the word). ---- */
@media (pointer: coarse) {
  .win, .win * { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
  .win input, .win textarea, .win [contenteditable="true"], .win [contenteditable="true"] * { -webkit-user-select: text; user-select: text; }
}
html.os-ringing, html.os-ringing * { -webkit-user-select: none !important; user-select: none !important; -webkit-touch-callout: none !important; }

/* ---- The laptop (?frame=laptop, html.os-laptop): this desktop inside the phone page's laptop (os/mobile.js), run by
   a finger. A phone's GPU pays for every blur and big shadow on every frame, so they go; glass keeps a solid tint.
   The phone must not enlarge the text (Chrome's text autosizing) of a desktop that it sees as wide. ---- */
html.os-laptop { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
html.os-laptop body { -webkit-touch-callout: none; }
html.os-laptop .grain { display: none; }
html.os-laptop *, html.os-laptop *::before, html.os-laptop *::after { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
html.os-laptop .taskbar { background: rgba(20,22,32,.92); }
html.os-laptop .os-ring .ring-glass { background: rgba(14,16,28,.45); }
html.os-laptop .os-ring.is-held .ring-glass { background: rgba(14,16,28,.8); }
html.os-laptop .os-ring .ring-svg { filter: none; }
html.os-laptop .win, html.os-laptop .win.is-focused { box-shadow: 0 0 0 1px rgba(0,0,0,.5), 0 8px 22px rgba(0,0,0,.32); }
html.os-laptop .lock { background: rgba(8,10,22,.9); }
/* A bigger ring at home, so the one under a thumb (the same size) is thumb-sized once the laptop is shrunk; the icons
   close up so they stay clear of it on a laptop-sized desktop; the caption speaks of a mouse hovering, so it goes. */
html.os-laptop .anchor { width: clamp(240px, 50vh, 400px); }
html.os-laptop .os-icons { --cw: 72px; --ic: 32px; --fs: 11px; --pad: 4px 2px 3px; }
html.os-laptop :is(.os-icon, .os-fence-open) { gap: 3px; }
html.os-laptop .caption, html.os-laptop .fine, html.os-laptop .hero-more { display: none; }   /* the tour: in Start here */
@media (pointer: coarse) { html.os-laptop .touch-only { display: inline; } html.os-laptop .pc-only { display: none; } }
/* iOS zooms into a field under 16 px when it gets the focus. */
@supports (-webkit-touch-callout: none) { html.os-laptop :is(input, textarea, select) { font-size: 16px !important; } }

/* phone.js: "send the link to my PC" */
.pc-sheet { width: min(420px, calc(100vw - 32px)); padding: 24px; border: 1px solid var(--border-strong); border-radius: 18px; background: #1d1d23; color: var(--text); font-family: var(--font-body); }
.pc-sheet::backdrop { background: rgba(0,0,0,.55); }
.pc-sheet h2 { margin: 0 0 8px; font: 600 21px var(--font-display); }
.pc-sheet p { margin: 0 0 16px; color: var(--text-2); }
.pc-actions { display: grid; gap: 8px; }
.pc-more { display: flex; align-items: center; justify-content: space-between; margin: 16px 0 0; }
.pc-more button { border: 0; background: none; color: var(--text-2); font-size: 15px; }

/* ---- Without JavaScript: a plain page with the same text and links ---- */
html:not(.os-js) body { padding-bottom: 40px; }
html:not(.os-js) .os-icons { position: relative; inset: auto; display: flex; flex-flow: row wrap; justify-content: center; align-items: flex-start; padding: 16px; }html:not(.os-js) .os-hero { position: relative; inset: auto; padding: 24px 16px; pointer-events: auto; }
html:not(.os-js) .anchor, html:not(.os-js) .coach, html:not(.os-js) .caption, html:not(.os-js) .os-bin, html:not(.os-js) .taskbar, html:not(.os-js) .os-ring, html:not(.os-js) .os-ring-say,
html:not(.os-js) .toast, html:not(.os-js) .snip, html:not(.os-js) .flash, html:not(.os-js) .lock, html:not(.os-js) .start-search, html:not(.os-js) .start-foot { display: none; }
html:not(.os-js) .os-src-wrap, html:not(.os-js) .start { position: relative; max-width: 1040px; margin: 16px auto; border-radius: 10px; background: var(--win-body); color: var(--text); }
html:not(.os-js) .start { left: auto; bottom: auto; transform: none; opacity: 1; visibility: visible; width: auto; max-height: none; }
html:not(.os-js) .fx-app { display: block; height: auto; }
html:not(.os-js) .fx-main { overflow: visible; }
html:not(.os-js) .fx-page { margin-bottom: 36px; }
.os-js .os-src { display: none; }

/* No transitions at all: a .01ms one on every element would also run on inherited visibility, and an element in a
   panel that just opened (Start's search box) would still count as hidden and refuse focus. */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: 0s !important; transition-delay: 0s !important; } }
