/* BerryOS shell: intro, boot splash, the computer desktop and the phone. App contents live in apps.css. */
:root {
  --acc: #e3203f; --acc-2: #ff5a72; --ok: #26a65b; --bad: #d23c3c; --gold: #c58a1a;
  --ink: #1d1d1f; --ink-2: #3c3c43; --muted: #6e6e76; --line: #e3e3e8; --bg: #ffffff; --bg-2: #f5f5f7;
  --glass: rgba(28, 20, 36, .42); --glass-hi: rgba(255, 255, 255, .16); --glass-line: rgba(255, 255, 255, .22);
  --menu: rgba(246, 246, 248, .82);
  --sans: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif; --serif: 'Instrument Serif', Georgia, serif; --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --mb: 28px; --dock-h: 92px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body { margin: 0; overflow: hidden; background: #0a070d; color: var(--ink); font: 14px/1.5 var(--sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overscroll-behavior: none; text-rendering: optimizeLegibility; }
button { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 600; }
p { margin: 0; }
img { display: block; max-width: 100%; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }

/* ---------- 3D stage ---------- */
#stage { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: manipulation; }
html.no-webgl #stage { background: radial-gradient(110% 80% at 70% 45%, #4a1a3a, #160d26 55%, #05040a); }
html.no-webgl[data-wall='sunset'] #stage { background: linear-gradient(180deg, #ffc2a6, #f0718a 55%, #5b1a45); }
html.no-webgl[data-wall='matcha'] #stage { background: linear-gradient(180deg, #e6f5dc, #9fd0a4 55%, #2d5a45); }

/* ---------- intro ---------- */
.intro { position: fixed; inset: 0; pointer-events: none; color: #fff; transition: opacity .6s; }
.intro.is-gone { opacity: 0; }
.intro.is-gone * { pointer-events: none !important; }
.intro-hint { position: absolute; left: 50%; bottom: clamp(22px, 4vh, 40px); transform: translateX(-50%); display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px 9px 12px; border-radius: 999px; background: rgba(15, 10, 20, .45); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); font-size: 13px; color: rgba(255, 255, 255, .88); white-space: nowrap; opacity: 0; animation: hint-in .8s 5s forwards; }
.intro-hint i { width: 8px; height: 8px; border-radius: 50%; background: var(--acc-2); box-shadow: 0 0 0 0 rgba(255, 90, 114, .7); animation: ping 1.6s infinite; }
@keyframes hint-in { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(255, 90, 114, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 90, 114, 0); } }
.skip { pointer-events: auto; position: fixed; top: max(14px, env(safe-area-inset-top)); right: 14px; padding: 7px 13px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(15, 10, 20, .4); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: rgba(255, 255, 255, .8); font-size: 12.5px; cursor: pointer; transition: background .2s, color .2s; }
.skip:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.power-a11y { pointer-events: auto; position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); padding: 10px 18px; border-radius: 999px; border: 0; background: var(--acc); color: #fff; font-weight: 600; clip-path: inset(50%); }
.power-a11y:focus-visible { clip-path: none; }

/* ---------- boot splash: sized to match the monitor's boot screen at the end of the flight ---------- */
.boot { position: fixed; inset: 0; z-index: 90; background: #000; opacity: 0; transition: opacity .45s; }
.boot.is-on { opacity: 1; }
.boot.is-quick { transition-duration: .2s; }
.boot-logo svg { width: 100%; height: 100%; display: block; }
.boot-logo { position: absolute; left: 50%; top: calc(50% - 3.33vh); width: 21.1vh; height: 21.1vh; transform: translate(-50%, -50%); }
.boot-bar { position: absolute; left: 50%; top: calc(50% + 12.2vh); width: 13.75vw; height: max(4px, .67vh); transform: translateX(-50%); border-radius: 3px; background: rgba(255, 255, 255, .16); overflow: hidden; }
.boot-bar i { display: block; height: 100%; width: 100%; background: #fff; border-radius: 3px; }
.boot.is-quick .boot-bar i { animation: fill .5s ease-out both; }
@keyframes fill { from { width: 2%; } }

/* ---------- shared OS bits ---------- */
#os { position: fixed; inset: 0; opacity: 0; transition: opacity .4s; }
#os.is-on { opacity: 1; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); flex: none; box-shadow: 0 0 0 0 rgba(38, 166, 91, .5); animation: ping-ok 2.4s infinite; }
.is-off > .dot, .dot.is-off { background: #9a94a3; animation: none; }
@keyframes ping-ok { 70% { box-shadow: 0 0 0 6px rgba(38, 166, 91, 0); } 100% { box-shadow: 0 0 0 0 rgba(38, 166, 91, 0); } }
.toast { display: flex; gap: 11px; align-items: flex-start; padding: 12px 14px; border-radius: 16px; background: var(--menu); border: .5px solid rgba(0, 0, 0, .12); backdrop-filter: blur(30px) saturate(1.8); -webkit-backdrop-filter: blur(30px) saturate(1.8); box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .35); color: var(--ink); font-size: 13px; line-height: 1.4; pointer-events: auto; }
.toast b { display: block; font-weight: 600; }
.toast span span { color: var(--ink-2); }
.t-ic svg { display: block; }

/* =============================================================== COMPUTER */
.os-desktop { color: #fff; }
.menubar { position: absolute; inset: 0 0 auto; height: var(--mb); z-index: 5000; display: flex; align-items: center; gap: 1px; padding: 0 8px; background: rgba(20, 14, 28, .38); backdrop-filter: blur(30px) saturate(1.8); -webkit-backdrop-filter: blur(30px) saturate(1.8); box-shadow: 0 .5px 0 rgba(255, 255, 255, .08); font-size: 13px; user-select: none; }
.mb-item { height: 22px; display: inline-flex; align-items: center; padding: 0 9px; border: 0; border-radius: 5px; background: none; cursor: default; letter-spacing: .005em; }
.mb-item:hover, .mb-item.is-open { background: rgba(255, 255, 255, .18); }
.mb-logo { padding: 0 8px; }
.mb-logo svg { display: block; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .3)); }
.mb-app b { font-weight: 700; }
.mb-spacer { flex: 1; }
.mb-stat { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 7px; border: 0; border-radius: 5px; background: none; color: inherit; font-size: 12.5px; }
.mb-stat svg { height: 13px; width: auto; }
.mb-batt svg { height: 12px; }
button.mb-stat { cursor: default; }
button.mb-stat:hover { background: rgba(255, 255, 255, .18); }
.mb-agents span { opacity: .85; }
.mb-clock { font-variant-numeric: tabular-nums; white-space: pre; }

.desk { position: absolute; inset: var(--mb) 0 0; }
.widget { position: absolute; left: 22px; top: 20px; width: 292px; padding: 16px 18px; border-radius: 22px; background: rgba(255, 255, 255, .1); border: .5px solid rgba(255, 255, 255, .22); backdrop-filter: blur(30px) saturate(1.6); -webkit-backdrop-filter: blur(30px) saturate(1.6); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .5); font-size: 13px; line-height: 1.5; color: rgba(255, 255, 255, .9); }
.w-top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.w-ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: linear-gradient(180deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, .78)); box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .4); flex: none; }
.w-top b { display: block; font-size: 15px; color: #fff; }
.w-top small { display: block; font-size: 12px; opacity: .7; }
.w-now { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 12.5px; color: #fff; }
.dicons { position: absolute; right: 14px; top: 14px; margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.dicon { width: 96px; padding: 6px 4px 5px; display: grid; justify-items: center; gap: 5px; border: 0; background: none; cursor: default; border-radius: 10px; }
.dicon .ic { width: 64px; height: 64px; padding: 2px; border-radius: 16px; border: 1px solid transparent; }
.dicon .ic svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .35)); }
.dicon .lbl { padding: 1px 6px; border-radius: 5px; font-size: 12px; font-weight: 600; line-height: 1.3; color: #fff; text-align: center; text-shadow: 0 1px 3px rgba(0, 0, 0, .85), 0 0 8px rgba(0, 0, 0, .35); }
.dicon.is-sel .ic { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .28); }
.dicon.is-sel .lbl { background: var(--acc); text-shadow: none; }

.wins { position: absolute; inset: 0 0 var(--dock-h); pointer-events: none; }
.win { position: absolute; pointer-events: auto; display: flex; flex-direction: column; background: var(--bg); color: var(--ink); border-radius: 12px; overflow: hidden; min-width: 360px; min-height: 240px;
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .38), inset 0 .5px 0 rgba(255, 255, 255, .7), 0 30px 80px -12px rgba(0, 0, 0, .55), 0 10px 26px -10px rgba(0, 0, 0, .35); }
.win:not(.is-active) { box-shadow: 0 0 0 .5px rgba(0, 0, 0, .28), 0 16px 44px -14px rgba(0, 0, 0, .4); }
.win:focus { outline: none; }
.win.is-min { display: none; }
.win.is-max { left: 0 !important; top: 0 !important; width: 100% !important; height: 100% !important; border-radius: 0; }
.win.is-drag { user-select: none; }
.win.is-drag iframe { pointer-events: none; }
.win-bar { flex: none; height: 40px; display: flex; align-items: center; gap: 9px; padding: 0 6px 0 12px; background: linear-gradient(180deg, #f9f9fb, #eeeef2); border-bottom: .5px solid #d4d4da; user-select: none; touch-action: none; cursor: default; }
.win:not(.is-active) .win-bar { background: #f6f6f8; }
.win-ic svg { width: 18px; height: 18px; display: block; }
.win-title { flex: 1; font-size: 13px; font-weight: 600; color: #38383d; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win:not(.is-active) .win-title { color: #a1a1a8; }
.win:not(.is-active) .win-ic { opacity: .5; }
.win-ctl { display: flex; gap: 2px; }
.win-ctl button { width: 30px; height: 26px; display: grid; place-items: center; border: 0; border-radius: 7px; background: transparent; color: #55555c; cursor: default; }
.win-ctl button:hover { background: rgba(0, 0, 0, .07); }
.win-ctl button.x:hover { background: var(--acc); color: #fff; }
.win-ctl svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.win-body { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; }
.win-rs { position: absolute; z-index: 2; }
.rs-e { top: 40px; right: 0; bottom: 12px; width: 6px; cursor: ew-resize; }
.rs-s { left: 12px; right: 12px; bottom: 0; height: 6px; cursor: ns-resize; }
.rs-se { right: 0; bottom: 0; width: 14px; height: 14px; cursor: nwse-resize; }
.win.is-max .win-rs { display: none; }

.dock { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); z-index: 4000; }
.dock-row { height: 72px; display: flex; align-items: flex-end; gap: 6px; padding: 8px 10px; border-radius: 24px; background: rgba(255, 255, 255, .14); border: .5px solid rgba(255, 255, 255, .26); backdrop-filter: blur(30px) saturate(1.8); -webkit-backdrop-filter: blur(30px) saturate(1.8); box-shadow: inset 0 .5px 0 rgba(255, 255, 255, .3), 0 20px 40px -14px rgba(0, 0, 0, .55); }
.dock-btn { --s: 1; position: relative; width: calc(54px * var(--s)); height: calc(54px * var(--s)); flex: none; padding: 0; border: 0; background: none; cursor: default; transition: width .12s ease-out, height .12s ease-out; }
.dock-btn .ic, .dock-btn .ic svg { display: block; width: 100%; height: 100%; }
.dock-btn .ic svg { filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .3)); }
.dock-btn .run { position: absolute; left: 50%; bottom: -6px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: rgba(255, 255, 255, .9); opacity: 0; transition: opacity .2s; }
.dock-btn.is-open .run { opacity: 1; }
.tip { position: absolute; left: 50%; bottom: calc(100% + 12px); transform: translateX(-50%); padding: 4px 10px; border-radius: 7px; background: rgba(30, 30, 34, .82); color: #fff; font-size: 12.5px; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .12s; backdrop-filter: blur(10px); }
.dock-btn:hover .tip { opacity: 1; }
.dock-sep { width: 1px; height: 46px; margin: 0 4px 4px; align-self: flex-end; background: rgba(255, 255, 255, .3); }

.menu { position: fixed; z-index: 6000; min-width: 220px; padding: 5px; border-radius: 10px; background: var(--menu); border: .5px solid rgba(0, 0, 0, .18); backdrop-filter: blur(30px) saturate(1.8); -webkit-backdrop-filter: blur(30px) saturate(1.8); box-shadow: 0 12px 34px -6px rgba(0, 0, 0, .35); color: var(--ink); font-size: 13px; }
.menu button { display: block; width: 100%; text-align: left; padding: 4px 12px; border: 0; border-radius: 5px; background: none; cursor: default; line-height: 1.55; white-space: pre; }
.menu button:hover:not(:disabled), .menu button:focus-visible { background: var(--acc); color: #fff; outline: none; }
.menu button:disabled { color: #a8a8ae; }
.menu hr { border: 0; border-top: .5px solid rgba(0, 0, 0, .14); margin: 4px 10px; }
.os-desktop .toasts { position: absolute; top: calc(var(--mb) + 10px); right: 10px; z-index: 5500; width: 340px; display: grid; gap: 8px; pointer-events: none; }

/* =============================================================== PHONE (BerryOS, not an iPhone) */
.os-phone { color: #fff; font-size: 15px; --ph-glass: rgba(16, 10, 22, .46); --ph-line: rgba(255, 255, 255, .14); }
.ph-status { position: absolute; inset: 0 0 auto; z-index: 300; height: calc(40px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 18px 0; display: flex; align-items: center; justify-content: space-between; font: 600 13px var(--mono); pointer-events: none; transition: color .2s, opacity .2s; }
.ph-left, .ph-right { display: inline-flex; align-items: center; gap: 7px; }
.ph-mark { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: rgba(255, 255, 255, .14); }
.ph-mark svg { display: block; }
.ph-time { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.ph-sig { display: inline-flex; align-items: flex-end; gap: 2px; height: 11px; }
.ph-sig b { width: 4px; border-radius: 2px; background: currentColor; }
.ph-sig b:nth-child(1) { height: 5px; } .ph-sig b:nth-child(2) { height: 8px; } .ph-sig b:nth-child(3) { height: 11px; }
.ph-bat { position: relative; display: inline-flex; align-items: center; height: 16px; min-width: 34px; padding: 0 6px; border-radius: 8px; border: 1.5px solid currentColor; font: 700 10px/1 var(--mono); overflow: hidden; }
.ph-bat i { position: absolute; inset: 0 13% 0 0; background: currentColor; opacity: .22; }
.ph-bat em { position: relative; font-style: normal; margin: auto; }
.os-phone.has-sheet .ph-status { color: var(--app-ink, var(--ink)); }
.os-phone.has-sheet .ph-mark { background: var(--app-chip, rgba(0, 0, 0, .07)); }

/* lock screen: date in small caps, hours over minutes in the serif, left-aligned */
.lock { position: absolute; inset: 0; z-index: 200; display: flex; flex-direction: column; padding: calc(70px + env(safe-area-inset-top)) 24px calc(18px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(0, 0, 0, .32), rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, .3)); touch-action: none; user-select: none; }
.lock-date { font: 600 12.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; opacity: .82; }
.lock-time { display: grid; font: 400 clamp(108px, 34vw, 150px)/.86 var(--serif); letter-spacing: -.02em; margin-top: 10px; text-shadow: 0 6px 40px rgba(0, 0, 0, .3); }
.lock-time .m { font-style: italic; color: #ff8aa0; }
.lock-notes { width: 100%; max-width: 420px; margin-top: auto; }
.note { display: flex; gap: 12px; padding: 12px 14px; border-radius: 22px; background: var(--ph-glass); border: 1px solid var(--ph-line); backdrop-filter: blur(22px) saturate(1.5); -webkit-backdrop-filter: blur(22px) saturate(1.5); }
.n-ic { width: 40px; height: 40px; flex: none; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: #fff; }
.n-ic img, .w-ic img { width: 100%; height: 100%; object-fit: cover; }
.note header { display: flex; justify-content: space-between; font-size: 14px; }
.note small { opacity: .65; font: 500 11px var(--mono); }
.note p { font-size: 14px; line-height: 1.38; margin-top: 2px; opacity: .92; }
.lock-swipe { align-self: center; margin-top: 26px; display: grid; justify-items: center; gap: 12px; padding: 10px 30px 4px; border: 0; background: none; color: #fff; }
.lock-swipe span { font-size: 14px; opacity: .85; animation: nudge 2.4s ease-in-out infinite; }
.lock-swipe i { width: 134px; height: 5px; border-radius: 3px; background: #fff; }
@keyframes nudge { 0%, 60%, 100% { transform: none; } 75% { transform: translateY(-5px); } }

/* home: profile card, app icons (a fifth app wraps to a second row), dock. The middle stays open for the strawberry. */
.home { position: absolute; inset: 0; z-index: 100; display: flex; flex-direction: column; gap: 18px; padding: calc(52px + env(safe-area-inset-top)) 16px calc(112px + env(safe-area-inset-bottom)); overflow-y: auto; }
.ph-widget { display: grid; gap: 4px; padding: 14px 16px; border-radius: 26px; background: var(--ph-glass); border: 1px solid var(--ph-line); backdrop-filter: blur(22px) saturate(1.5); -webkit-backdrop-filter: blur(22px) saturate(1.5); font-size: 13px; }
.ph-widget .w-top { margin-bottom: 4px; }
.ph-widget .w-ic { width: 52px; height: 52px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 2px rgba(255, 255, 255, .85), 0 0 0 4px rgba(255, 90, 114, .55); }
.ph-widget .w-top b { font: 400 25px/1 var(--serif); }
.ph-widget .w-top small { font: 500 11.5px var(--mono); opacity: .7; margin-top: 4px; }
.ph-widget .w-now, .w-agents { display: flex; align-items: center; gap: 8px; font-size: 13px; opacity: .92; }
.ph-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 8px; }
.ph-app { display: grid; justify-items: center; gap: 6px; padding: 0; border: 0; background: none; color: inherit; -webkit-tap-highlight-color: transparent; }
.ph-app .ic { width: min(62px, 16.5vw); height: min(62px, 16.5vw); transition: transform .15s, filter .15s; }
.ph-app .ic svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .35)); }
.ph-app:active .ic { transform: scale(.9) rotate(-3deg); filter: brightness(.9); }
.ph-app .lbl { max-width: 100%; padding: 2px 7px; border-radius: 999px; background: rgba(10, 6, 14, .38); font-size: 11px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-dock { position: absolute; left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom)); display: flex; justify-content: space-around; padding: 10px 12px; border-radius: 32px; background: rgba(8, 5, 12, .62); border: 1px solid var(--ph-line); backdrop-filter: blur(24px) saturate(1.4); -webkit-backdrop-filter: blur(24px) saturate(1.4); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .7); }
.ph-dock .ic { width: min(54px, 14.5vw); height: min(54px, 14.5vw); }

/* apps: full-screen sheets. Each app sets --app-bg / --app-ink / --app-bar / --app-acc in apps.css. */
.sheets { position: absolute; inset: 0; z-index: 250; pointer-events: none; }
.sheet { position: absolute; inset: 0; pointer-events: auto; display: flex; flex-direction: column; background: var(--app-bg, var(--bg)); color: var(--app-ink, var(--ink)); overflow: hidden; }
.sheet-bar { flex: none; display: flex; align-items: center; gap: 12px; padding: calc(46px + env(safe-area-inset-top)) 14px 12px; background: var(--app-bar, var(--app-bg, #fff)); border-bottom: 1px solid var(--app-line, rgba(0, 0, 0, .08)); }
.sheet-bar h2 { flex: 1; min-width: 0; font: var(--app-title, 700 21px/1.1 var(--sans)); letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet-back { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--app-chip, rgba(0, 0, 0, .06)); color: var(--app-acc, var(--acc)); }
.sheet-back svg { width: 20px; height: 20px; }
.sheet-ic { flex: none; width: 30px; height: 30px; }
.sheet-ic svg { width: 100%; height: 100%; display: block; }
.sheet-body { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding-bottom: calc(34px + env(safe-area-inset-bottom)); }
.home-bar { position: absolute; left: 0; right: 0; bottom: 0; height: calc(26px + env(safe-area-inset-bottom)); display: grid; place-items: start center; padding: 10px 0 0; border: 0; background: none; touch-action: none; }
.home-bar i { width: 134px; height: 5px; border-radius: 3px; background: var(--app-ink, #000); opacity: .85; }
.os-phone .toasts { position: absolute; top: calc(46px + env(safe-area-inset-top)); left: 10px; right: 10px; z-index: 400; display: grid; gap: 8px; pointer-events: none; }
.os-phone .toast { border-radius: 20px; background: rgba(20, 14, 26, .86); color: #fff; border-color: rgba(255, 255, 255, .14); }
.os-phone .toast span span { color: rgba(255, 255, 255, .78); }

/* phone intro */
html[data-form='phone'] .intro-hint { bottom: calc(28px + env(safe-area-inset-bottom)); }

/* no JS */
.noscript { position: fixed; inset: 0; display: grid; place-content: center; gap: 12px; padding: 24px; color: #f4ecf2; text-align: center; max-width: 560px; margin: auto; }
.noscript h1 { font: 400 54px var(--serif); }

@media (prefers-reduced-motion: reduce) {
  .intro-hint, .intro-hint i, .dot, .lock-swipe span { animation: none; opacity: 1; }
  .dock-btn { transition: none; }
}

/* ---------- age gate (site/agegate.js) ---------- */
/* Sits over everything until answered. The desk stays visible behind it, dimmed:
   it is the one piece of the site that shows nothing about the businesses. */
html.is-gated, html.is-gated body { overflow: hidden; }
.gate {
  position: fixed; inset: 0; z-index: 9000;
  display: grid; place-items: center; padding: 24px;
  background: rgba(8, 5, 12, .82);
  -webkit-backdrop-filter: blur(18px) saturate(.7); backdrop-filter: blur(18px) saturate(.7);
  opacity: 0; transition: opacity .32s ease;
}
.gate.is-on { opacity: 1; }
.gate.is-gone { opacity: 0; pointer-events: none; }
.gate-card {
  width: min(28rem, 100%); padding: 34px 30px 30px; text-align: center;
  background: rgba(24, 18, 32, .96); border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 20px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
  transform: translateY(10px); transition: transform .32s cubic-bezier(.2, .8, .2, 1);
}
.gate.is-on .gate-card { transform: none; }
.gate-mark { display: block; margin: 0 auto 14px; width: 44px; height: 44px; }
.gate-card h1 {
  margin: 0 0 8px; font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(1.5rem, 5vw, 1.95rem); font-weight: 400; line-height: 1.15; color: #fff;
}
.gate-card p { margin: 0; font-size: .92rem; line-height: 1.5; color: rgba(255, 255, 255, .62); }
.gate-row { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.gate-row button {
  width: 100%; padding: 13px 18px; font: inherit; font-size: .95rem; font-weight: 600;
  border-radius: 12px; border: 1px solid transparent; cursor: pointer;
  transition: background .18s ease, border-color .18s ease;
}
.gate-yes { background: #fff; color: #17141c; }
.gate-yes:hover { background: rgba(255, 255, 255, .88); }
.gate-no { background: transparent; color: rgba(255, 255, 255, .72); border-color: rgba(255, 255, 255, .16); }
.gate-no:hover { background: rgba(255, 255, 255, .07); }
.gate-row button:focus-visible { outline: 2px solid #8f7bff; outline-offset: 3px; }
.gate-deny { margin-top: 20px; color: rgba(255, 255, 255, .8); }

@media (prefers-reduced-motion: reduce) {
  .gate, .gate-card { transition: none; }
  .gate-card { transform: none; }
}
