/* Element 7 portal — "living painting" edition.
   A three.js painting (e7-scene.js) sits behind everything; type is a bold grotesk,
   a light serif and a script for drop caps; panels are warm paper. */
/* Self-hosted fonts (latin subset): no request goes to Google. */
@font-face {
  font-family: 'Imperial Script';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/static/fonts/ImperialScript-v8-5DCPAKrpzy_H98IV2ISnZBbGrVNfOuPk.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/static/fonts/Inter-v20-UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/static/fonts/Inter-v20-UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/static/fonts/Inter-v20-UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/static/fonts/InterTight-v9-NGSwv5HMAFg6IuGlBNMjxLsH8ag.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/static/fonts/InterTight-v9-NGSwv5HMAFg6IuGlBNMjxLsH8ag.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/static/fonts/InterTight-v9-NGSwv5HMAFg6IuGlBNMjxLsH8ag.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url(/static/fonts/Newsreader-v26-cY9XfjOCX1hbuyalUrK439vogqCz_goCYw7oRYCJFYYzbA.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(/static/fonts/Newsreader-v26-cY9AfjOCX1hbuyalUrK4397yjA.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/static/fonts/Newsreader-v26-cY9AfjOCX1hbuyalUrK4397yjA.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #e6e4d8;
  --paper-2: #d9d6c7;
  --ink: #141310;
  --ink-mid: #6d6a60;
  --cream: #f6f1e3;
  --gold: #c8a24a;
  --teal: #4fc2a0;
  --coral: #e0705a;
  --line: rgba(255, 255, 255, .72);
  --f-sans: "Inter", system-ui, sans-serif;
  --f-grot: "Inter Tight", "Inter", sans-serif;
  --f-serif: "Newsreader", Georgia, serif;
  --f-script: "Imperial Script", cursive;
  --gutter: clamp(16px, 4vw, 72px);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; } /* our display rules (e.g. .pill) must not un-hide things */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; min-height: 100svh;
  background: #050807; color: var(--cream);
  font: 400 15px/1.45 var(--f-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
button { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
svg { flex: none; }

/* ---------- Painting stage ---------- */
.stage { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; display: block; }
.stage-fallback {
  position: fixed; inset: 0; z-index: 0; display: none;
  background: #050807 center / cover no-repeat;
}
.no-webgl .stage { display: none; }
.no-webgl .stage-fallback { display: block; }
/* Keep text legible on any part of the painting. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 8, 7, .62) 0%, rgba(5, 8, 7, .28) 38%, rgba(5, 8, 7, 0) 62%),
    linear-gradient(180deg, rgba(5, 8, 7, .45) 0%, rgba(5, 8, 7, 0) 18%, rgba(5, 8, 7, 0) 78%, rgba(5, 8, 7, .5) 100%);
}
main { position: relative; z-index: 2; }
.top { z-index: 20; } /* above the scrolling panels, so Lock stays reachable */

/* Content rises in once the painting is revealed. */
.top, .frame, .foot, .app-intro > * {
  opacity: 0; transform: translateY(14px);
  transition: opacity .9s ease, transform 1.1s cubic-bezier(.2, .7, .2, 1);
}
.is-revealed .top, .is-revealed .frame, .is-revealed .foot, .is-revealed .app-intro > * { opacity: 1; transform: none; }
.is-revealed .frame { transition-delay: .15s; }
.is-revealed .app-intro > :nth-child(2) { transition-delay: .1s; }
.is-revealed .app-intro > :nth-child(3) { transition-delay: .2s; }
.is-revealed .app-intro > :nth-child(4) { transition-delay: .3s; }

/* ---------- Intro: golden-ratio construction ---------- */
.intro {
  position: fixed; inset: 0; z-index: 50;
  display: grid; place-items: center;
  background: #000; color: rgba(255, 255, 255, .16);
  transition: opacity 1.2s ease, visibility 1.2s;
}
.intro-grid { position: absolute; inset: 0; width: 100%; height: 100%; }
.intro-grid path, .intro-grid circle {
  stroke-dasharray: 2400; stroke-dashoffset: 2400;
  animation: e7-draw 2.1s cubic-bezier(.6, .1, .2, 1) forwards;
}
.intro-frame { color: rgba(255, 255, 255, .78); animation-delay: .45s !important; }
.intro-mark {
  position: relative; display: flex; flex-direction: column; align-items: flex-start;
  color: #fff; font: 700 30px/.9 var(--f-grot); letter-spacing: -.035em;
  opacity: 0; animation: e7-fade .9s .55s forwards;
}
.intro-mark em { font: 400 46px/1 var(--f-script); letter-spacing: 0; margin: -.08em 0 0 .1em; color: #f3dfa6; }
.intro.is-done, .intro-seen .intro { opacity: 0; visibility: hidden; }
.intro-seen .intro { transition: none; }
@keyframes e7-draw { to { stroke-dashoffset: 0; } }
@keyframes e7-fade { to { opacity: 1; } }

/* ---------- Top bar ---------- */
.top {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: max(14px, env(safe-area-inset-top)) var(--gutter) 14px;
}
.top form { margin: 0; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.brand img { width: 26px; height: 26px; }
.brand b { font: 700 16px/1 var(--f-grot); letter-spacing: -.02em; }
.top-tag { font-size: 13px; font-weight: 500; opacity: .75; }
.top-right { display: flex; align-items: center; gap: 14px; }

/* Music toggle */
.music {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 12px;
  border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, .12); color: inherit; font: 600 13px/1 var(--f-sans);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: background .2s ease;
}
.music:hover { background: rgba(255, 255, 255, .22); }
.music:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.eq i { width: 3px; height: 4px; border-radius: 1px; background: currentColor; opacity: .85; }
.music.is-playing .eq i { animation: e7-eq 1s ease-in-out infinite; }
.music.is-playing .eq i:nth-child(2) { animation-delay: -.4s; }
.music.is-playing .eq i:nth-child(3) { animation-delay: -.7s; }
.music.is-playing .eq i:nth-child(4) { animation-delay: -.2s; }
@keyframes e7-eq { 0%, 100% { height: 4px; } 50% { height: 14px; } }
.top.on-paper .music { background: rgba(20, 19, 16, .06); box-shadow: inset 0 0 0 1px rgba(20, 19, 16, .3); }

/* ---------- Shared type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 11px/1 var(--f-sans); letter-spacing: .16em; text-transform: uppercase; color: #f3dfa6;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.display {
  margin: 18px 0 0;
  font: 700 clamp(46px, 6vw, 76px)/.9 var(--f-grot); letter-spacing: -.045em;
}
.display em {
  display: inline-block; margin-top: .06em;
  font: 400 1.18em/.9 var(--f-script); letter-spacing: 0; color: #f3dfa6;
}
.lede {
  margin: 22px 0 0; max-width: 34ch;
  font: 300 clamp(19px, 1.6vw, 22px)/1.15 var(--f-serif); letter-spacing: -.01em;
}
.lede.big { max-width: 30ch; font-size: clamp(24px, 2.6vw, 38px); line-height: 1.02; letter-spacing: -.025em; }
.dropcap {
  float: left; margin: .1em .05em 0 -.04em;
  font: 400 2.5em/.68 var(--f-script); letter-spacing: 0; color: #f3dfa6;
}

/* ---------- Pills ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border: 0; border-radius: 999px; cursor: pointer;
  background: #fff; color: var(--ink); text-decoration: none; white-space: nowrap;
  font: 600 14px/1 var(--f-sans);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.pill svg { width: 18px; height: 18px; transition: transform .2s ease; }
.pill:hover { transform: translateY(-1px); box-shadow: 0 8px 26px rgba(0, 0, 0, .28); }
.pill:hover svg { transform: translateX(3px); }
.pill:focus-visible, .field:focus-within { outline: 2px solid var(--gold); outline-offset: 3px; }
.field input:focus-visible { outline: 0; }
.pill-ghost { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55); backdrop-filter: blur(8px); }
.pill-ghost:hover { background: rgba(255, 255, 255, .2); }
.pill-lock { height: 38px; padding: 0 16px 0 13px; background: #fff; color: var(--ink); box-shadow: 0 6px 22px rgba(0, 0, 0, .25); }
.pill-lock svg { width: 16px; height: 16px; }
.pill-lock:hover svg { transform: none; }
.top { transition: color .3s ease, background-color .3s ease, backdrop-filter .3s ease; }
.top.on-paper { color: var(--ink); background: rgba(230, 228, 216, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgba(20, 19, 16, .1); }
.top.on-paper .pill-lock { background: var(--ink); color: #fff; box-shadow: none; }
.pill-sm { height: 34px; padding: 0 14px; font-size: 13px; background: var(--ink); color: #fff; }

/* ---------- Lock page ---------- */
.lock {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 96px var(--gutter) 28px;
}
.frame {
  position: relative; width: min(470px, 100%);
  padding: 38px 32px 30px; border: 1px solid var(--line);
  text-shadow: 0 1px 24px rgba(0, 0, 0, .35);
}
.keycard { margin-top: 30px; text-shadow: none; }
.keycard label { display: block; margin-bottom: 10px; font: 600 12px/1 var(--f-sans); letter-spacing: .04em; }
.field {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 6px 6px 16px; border-radius: 999px;
  background: rgba(246, 241, 227, .94); color: var(--ink);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
}
.field > svg { width: 18px; height: 18px; fill: var(--ink-mid); }
.field input {
  flex: 1; min-width: 0; height: 40px; border: 0; background: none; outline: 0;
  font: 500 16px/1 var(--f-sans); letter-spacing: .08em; color: var(--ink);
}
.field input::placeholder { letter-spacing: .02em; color: var(--ink-mid); }
.field .pill { background: var(--ink); color: #fff; height: 40px; }
.field input[aria-invalid="true"] { color: #8f2a1d; }
.err {
  margin: 12px 0 0; padding: 9px 14px; border-radius: 10px;
  background: rgba(224, 112, 90, .22); border: 1px solid rgba(255, 170, 150, .55);
  font-size: 13px; font-weight: 500;
}
.note { margin: 14px 0 0; font-size: 12.5px; opacity: .78; }
.foot {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: auto; padding-top: 40px; font-size: 12px; opacity: .7;
}

/* ---------- App page ---------- */
.app-intro {
  min-height: 92vh; min-height: 92svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px var(--gutter) 72px;
  text-shadow: 0 1px 30px rgba(0, 0, 0, .4);
}
.app-id { display: flex; align-items: center; gap: 14px; }
.crest {
  width: 52px; height: 52px; border-radius: 14px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .5), 0 10px 30px rgba(0, 0, 0, .35);
}
.crest img { width: 100%; height: 100%; object-fit: cover; }
.word {
  margin: 22px 0 0;
  font: 800 clamp(60px, 10.5vw, 168px)/.86 var(--f-grot); letter-spacing: -.055em;
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.paper {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(24px, 3vw, 48px);
  padding: 72px var(--gutter) 96px;
  background: var(--paper); color: var(--ink);
}
.panel { min-width: 0; }
.desk {
  position: relative; aspect-ratio: 3 / 2; border-radius: 3px; overflow: hidden;
  background: #0b1222; isolation: isolate; user-select: none; -webkit-user-select: none;
}
.desk-img { position: absolute; inset: 0; background: center / cover no-repeat; } /* a background, not <img>: keeps browser image-search overlays off */
.desk::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 5;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, .35));
}
.desk button { font: inherit; border: 0; padding: 0; background: none; cursor: pointer; }
.desk button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* lamp light, breathing */
.glow {
  position: absolute; width: var(--r); aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; pointer-events: none; mix-blend-mode: screen; z-index: 1;
  background: radial-gradient(circle, rgba(255, 214, 140, .42), rgba(255, 190, 100, .12) 38%, rgba(255, 180, 90, 0) 68%);
  animation: e7-flicker 5s ease-in-out infinite;
}
@keyframes e7-flicker { 0%, 100% { opacity: .85; } 18% { opacity: 1; } 22% { opacity: .78; } 40% { opacity: .96; } 64% { opacity: .82; } 80% { opacity: 1; } }

/* room keys: one lights up per connected device */
.key {
  position: absolute; width: 5.2%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; pointer-events: none; z-index: 1; opacity: 0; mix-blend-mode: screen;
  background: radial-gradient(circle, rgba(255, 226, 150, .9), rgba(255, 200, 90, .25) 45%, rgba(255, 200, 90, 0) 70%);
  transition: opacity .6s ease;
}
.key.is-in { opacity: 1; animation: e7-keyglow 2.6s ease-in-out infinite; }
@keyframes e7-keyglow { 50% { opacity: .55; } }

/* the bell: tap, squash, wobble */
.bell { position: absolute; z-index: 3; left: var(--bx, 26.4%); width: var(--bw, 17.4%); bottom: var(--bb, 29.6%); transform-origin: 50% 100%; }
.bell-img { display: block; width: 100%; aspect-ratio: 520 / 461; background: center / contain no-repeat; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .45)); }
.bell:hover { transform: translateY(-1.5%); transition: transform .2s ease; }
.is-ringing .bell { animation: e7-bell .9s cubic-bezier(.3, .7, .4, 1); }
@keyframes e7-bell {
  0% { transform: none; }
  10% { transform: scale(1.05, .86) translateY(2%); }
  24% { transform: scale(.97, 1.06) translateY(-3%); }
  40% { transform: rotate(-3.5deg); }
  56% { transform: rotate(2.6deg); }
  72% { transform: rotate(-1.4deg); }
  86% { transform: rotate(.6deg); }
  100% { transform: none; }
}
.rings { position: absolute; z-index: 2; left: 35.1%; top: 50%; width: 0; height: 0; pointer-events: none; }
.rings i {
  position: absolute; left: 0; top: 0; width: 6em; height: 2.4em; margin: -1.2em 0 0 -3em;
  border: 1.5px solid rgba(255, 220, 140, .85); border-radius: 50%; opacity: 0;
}
.is-ringing .rings i { animation: e7-ring 1.1s ease-out forwards; }
.is-ringing .rings i:nth-child(2) { animation-delay: .12s; }
.is-ringing .rings i:nth-child(3) { animation-delay: .24s; }
@keyframes e7-ring { 0% { transform: scale(.4); opacity: .95; } 100% { transform: scale(3.2); opacity: 0; } }
.is-ringing .desk-img { animation: e7-flash .5s ease-out; }
@keyframes e7-flash { 0% { filter: brightness(1.18); } 100% { filter: none; } }
.desk-hint {
  position: absolute; z-index: 6; left: 14px; bottom: 12px; padding: 6px 10px; border-radius: 999px;
  background: rgba(10, 16, 30, .62); color: #f3dfa6; font: 500 11.5px/1 var(--f-sans);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); pointer-events: none;
}

/* screens pinned onto the painting (e7-desk.js sets the matrix3d) */
.screen { position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: 2; }
.screen > div { position: absolute; left: 0; top: 0; transform-origin: 0 0; overflow: hidden; }
.laptop-ui {
  width: 520px; height: 358px; background: #070b16; color: #e9e4d4; font: 13px/1.35 var(--f-sans);
  box-shadow: 0 0 60px rgba(120, 160, 255, .25);
}
.lap-boot, .lap-win { position: absolute; inset: 0; transition: opacity .8s ease, transform .8s ease; }
.lap-boot { display: grid; place-content: center; justify-items: center; gap: 12px; background: radial-gradient(circle at 50% 40%, #13213f, #060a14 70%); }
.lap-boot img { width: 84px; height: 84px; border-radius: 20px; box-shadow: 0 0 0 1px rgba(200, 162, 74, .5), 0 0 40px rgba(200, 162, 74, .3); }
.lap-boot span { font: 600 18px/1 var(--f-grot); letter-spacing: .02em; color: #f3dfa6; }
.lap-win { opacity: 0; transform: scale(.98); display: flex; flex-direction: column; background: linear-gradient(180deg, #0e1730, #0a1022); }
.is-awake .lap-boot { opacity: 0; transition-delay: 1.4s; }
.is-awake .lap-win { opacity: 1; transform: none; transition-delay: 1.8s; }
.lap-title { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: rgba(255, 255, 255, .05); border-bottom: 1px solid rgba(200, 162, 74, .25); font-size: 12px; color: #c9c2ae; }
.lap-title i { width: 9px; height: 9px; border-radius: 50%; background: #e0705a; }
.lap-title i:nth-child(2) { background: #e3b341; }
.lap-title i:nth-child(3) { background: #58b37a; }
.lap-title span { margin-left: 8px; }
.lap-body { flex: 1; display: grid; grid-template-columns: 170px 1fr; min-height: 0; }
.lap-list { display: flex; flex-direction: column; gap: 6px; padding: 12px 10px; border-right: 1px solid rgba(255, 255, 255, .07); }
.desk .lap-list button { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 8px; color: #d8d1bd; font: 500 12.5px/1.2 var(--f-sans); text-align: left; }
.desk .lap-list button:hover { background: rgba(255, 255, 255, .06); }
.desk .lap-list button.is-on { background: rgba(200, 162, 74, .18); color: #fff; box-shadow: inset 0 0 0 1px rgba(200, 162, 74, .5); }
.lap-ic { flex: none; width: 16px; height: 16px; border-radius: 4px; background: #c8a24a; }
.lap-android { border-radius: 50% 50% 4px 4px; background: #58b37a; }
.lap-pane { padding: 14px 16px; overflow: hidden; display: flex; flex-direction: column; }
.lap-pane h4 { margin: 0; font: 700 17px/1.2 var(--f-grot); color: #fff; }
.lap-meta { margin: 4px 0 10px; font-size: 11px; color: #9c968a; }
.lap-pane ol { margin: 0; padding-left: 18px; font-size: 12px; color: #d8d1bd; }
.lap-pane li { margin-bottom: 6px; opacity: 0; animation: e7-step .5s ease forwards; }
@keyframes e7-step { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
.lap-bar { height: 5px; margin-top: auto; border-radius: 3px; background: rgba(255, 255, 255, .1); overflow: hidden; visibility: hidden; }
.lap-bar.is-on { visibility: visible; }
.lap-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #c8a24a, #f3dfa6); transition: width .2s linear; }
.desk .lap-go { margin-top: 10px; align-self: flex-start; padding: 9px 18px; border-radius: 999px; background: #f3dfa6; color: #0a1022; font: 700 12.5px/1 var(--f-sans); }
.desk .lap-go:hover { background: #fff; }
.lap-empty { margin: auto; color: #9c968a; }

.phone-ui {
  width: 180px; height: 360px; display: flex; flex-direction: column; align-items: center;
  padding-top: 42px; background: radial-gradient(circle at 50% 20%, #1d2c52, #070b16 75%); color: #fff;
}
.ph-time { font: 300 40px/1 var(--f-grot); letter-spacing: -.02em; white-space: nowrap; }
.ph-date { margin-top: 6px; font-size: 12px; color: #c9c2ae; }
.desk .ph-app { margin-top: auto; margin-bottom: 40px; display: flex; flex-direction: column; align-items: center; gap: 8px; color: #f3dfa6; font: 600 12px/1.2 var(--f-sans); }
.ph-app img { width: 58px; height: 58px; border-radius: 14px; box-shadow: 0 0 24px rgba(200, 162, 74, .45); animation: e7-pulseicon 2.4s ease-in-out infinite; }
@keyframes e7-pulseicon { 50% { transform: scale(1.06); } }

/* the wax seal and its letter */
.seal {
  position: absolute; z-index: 3; width: 5.6%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; animation: e7-seal 2.8s ease-out infinite;
}
@keyframes e7-seal { 0% { box-shadow: 0 0 0 0 rgba(255, 214, 140, .65); } 70%, 100% { box-shadow: 0 0 0 16px rgba(255, 214, 140, 0); } }
.letter {
  position: absolute; z-index: 7; left: 4%; right: 4%; top: 8%; bottom: 8%; overflow: auto;
  padding: 18px 20px; border-radius: 4px; background: #f6f0de; color: var(--ink);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .55); animation: e7-letter .45s cubic-bezier(.2, .8, .2, 1);
}
.letter[hidden] { display: none; }
@keyframes e7-letter { from { opacity: 0; transform: translateY(14px) scale(.97); } }
.letter h4 { margin: 0; font: 300 24px/1 var(--f-serif); }
.letter p { margin: 6px 0 12px; font-size: 12.5px; color: var(--ink-mid); }
.letter-list { list-style: none; margin: 0; padding: 0; }
.letter-list li { padding: 8px 0; border-top: 1px solid rgba(20, 19, 16, .12); }
.letter-list b { display: block; font-size: 12.5px; }
.letter-list code { font: 11px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; color: #6b5420; overflow-wrap: anywhere; }
.desk .letter-x { position: absolute; top: 12px; right: 14px; font-size: 12px; color: var(--ink-mid); }

/* in-browser download panel */
.dlp { grid-column: 2 / -1; margin-top: 8px; padding: 12px 14px; border-radius: 10px; background: var(--paper-2); box-shadow: inset 0 0 0 1px rgba(20, 19, 16, .12); }
.dlp-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dlp-name { font-size: 12.5px; overflow-wrap: anywhere; }
.dlp-x { border: 0; background: none; padding: 0; cursor: pointer; font-size: 12px; color: var(--ink-mid); text-decoration: underline; }
.dlp-bar { height: 6px; margin: 10px 0 8px; border-radius: 3px; background: rgba(20, 19, 16, .1); overflow: hidden; }
.dlp-bar i { display: block; height: 100%; width: 0; border-radius: 3px; background: linear-gradient(90deg, #8a6a22, #c8a24a); transition: width .15s linear; }
.dlp.is-verify .dlp-bar i { background: linear-gradient(90deg, #c8a24a, #f3dfa6, #c8a24a); background-size: 200% 100%; animation: e7-shimmer 1s linear infinite; }
@keyframes e7-shimmer { to { background-position: -200% 0; } }
.dlp.is-done .dlp-bar i { background: #1f8a6a; }
.dlp.is-error .dlp-bar i, .dlp.is-cancel .dlp-bar i { background: var(--coral); }
.dlp-line { font-size: 12px; color: var(--ink-mid); font-variant-numeric: tabular-nums; }
.dlp-ok { color: #1f8a6a; font-weight: 600; }
.pill-sm.is-busy { opacity: .6; pointer-events: none; }
.panel-head {
  margin: 28px 0 0;
  font: 300 clamp(34px, 3.4vw, 50px)/1 var(--f-serif); letter-spacing: -.03em;
}
.panel-head .dropcap { color: var(--ink); }
.sub { margin: 10px 0 0; color: var(--ink-mid); font-size: 13.5px; }

/* Server status row, directly above the installers (it reports the release they install) */
.status {
  display: flex; align-items: center; gap: 14px;
  margin-top: 24px; padding: 14px 16px; border-radius: 12px;
  background: var(--paper-2); color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(20, 19, 16, .14);
}
.status > div { flex: 1; min-width: 0; }
.status-tag { flex: none; font: 600 10.5px/1 var(--f-sans); letter-spacing: .14em; text-transform: uppercase; color: #8a6a22; }
.status b { display: block; font: 700 16px/1.2 var(--f-grot); color: var(--ink); }
.status span:not(.orbit) { display: block; font-size: 12.5px; color: var(--ink-mid); }
.orbit { position: relative; width: 38px; height: 38px; border-radius: 50%; flex: none; }
.orbit::before, .orbit::after, .orbit i { content: ""; position: absolute; border-radius: 50%; }
.orbit::before { inset: 0; border: 1.5px solid currentColor; opacity: .35; }
.orbit::after { inset: 13px; background: currentColor; }
.orbit i { width: 8px; height: 8px; top: -4px; left: 15px; background: currentColor; transform-origin: 4px 23px; }
.status.on .orbit { color: #1f8a6a; }
.status.on .orbit i { animation: e7-orbit 3.2s linear infinite; }
.status.on .orbit::after { animation: e7-pulse 2.4s ease-in-out infinite; }
.status.off .orbit { color: var(--coral); }
.status.off .orbit i { display: none; }
@keyframes e7-orbit { to { transform: rotate(360deg); } }
@keyframes e7-pulse { 50% { transform: scale(.75); opacity: .7; } }

.devhead { display: flex; align-items: baseline; justify-content: space-between; margin-top: 30px; padding-bottom: 10px; border-bottom: 1px solid rgba(20, 19, 16, .15); }
.devhead h3 { margin: 0; font: 700 13px/1 var(--f-sans); }
.count { font: 400 22px/1 var(--f-serif); }
.devs { display: flex; flex-direction: column; }
.dev { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid rgba(20, 19, 16, .1); }
.dev b { display: block; font-size: 13.5px; }
.dev span:not(.ic) { display: block; font-size: 12.5px; color: var(--ink-mid); }
.dev em { font-style: normal; font-size: 12px; color: var(--ink-mid); }
.ic {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
  background: rgba(20, 19, 16, .07);
}
.ic svg { width: 18px; height: 18px; fill: var(--ink); }
.empty { margin: 16px 0 0; font: 300 18px/1.2 var(--f-serif); color: var(--ink-mid); }

.dls { margin-top: 18px; border-top: 1px solid rgba(20, 19, 16, .15); }
.dl {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 4px 14px;
  padding: 16px 0; border-bottom: 1px solid rgba(20, 19, 16, .1);
}
.dl h3 { margin: 0; font: 700 14px/1.25 var(--f-sans); }
.meta { font-size: 12px; color: var(--ink-mid); overflow-wrap: anywhere; }
.dl details { grid-column: 2 / -1; font-size: 13px; }
.dl summary { cursor: pointer; width: max-content; color: var(--ink-mid); font-size: 12.5px; }
.dl summary:hover { color: var(--ink); }
.dl ol { margin: 10px 0 0; padding-left: 18px; font: 400 16px/1.25 var(--f-serif); }
.dl li + li { margin-top: 6px; }
.hash { margin-top: 10px; font: 11px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; color: var(--ink-mid); overflow-wrap: anywhere; }

.foot-paper { margin: 0; padding: 22px var(--gutter) 28px; background: var(--paper-2); color: var(--ink); opacity: 1; }

/* ---------- Footer scenes (decorative, per app) ---------- */
.foot-scene { display: block; position: relative; height: 104px; padding: 0; overflow: hidden; }
.foot-scene span { position: absolute; display: block; }
.foot-scene svg { display: block; width: 100%; height: 100%; overflow: visible; }
.fs-ground { left: var(--gutter); right: var(--gutter); bottom: 16px; border-top: 2px dotted rgba(47, 58, 64, .16); }
.fs-twinkle {
  width: 10px; height: 10px; background: var(--coral); opacity: 0;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  animation: fs-twinkle 2.8s ease-in-out infinite;
}
@keyframes fs-twinkle { 0%, 100% { opacity: 0; transform: scale(.3) rotate(0); } 50% { opacity: .8; transform: scale(1) rotate(45deg); } }

/* Demure: two elephants walk in from either side, meet trunk to trunk, hearts pop, then they head home */
.fs-ele { bottom: 14px; width: 72px; height: 54px; animation: fs-ele-l 12s linear infinite; }
.fs-ele-l { left: -84px; }
.fs-ele-r { right: -84px; animation-name: fs-ele-r; }
.fs-ele-turn, .fs-ele-bob { position: relative !important; width: 100%; height: 100%; }
.fs-ele-turn { animation: fs-turn-l 12s linear infinite; }
.fs-ele-r .fs-ele-turn { transform: scaleX(-1); animation-name: fs-turn-r; }
.fs-ele-bob { animation: fs-bob .38s ease-in-out infinite alternate; }
.fs-body { fill: #f3c7d0; }
.fs-ear { fill: #f9dfe5; }
.fs-leg rect { fill: #e9b3bf; }
.fs-trunk, .fs-tail { fill: none; stroke: #f3c7d0; stroke-width: 5; stroke-linecap: round; }
.fs-tail { stroke-width: 2.5; }
.fs-eye { fill: #2f3a40; }
.fs-cheek { fill: #ec8fa3; opacity: .7; }
.fs-bow { fill: #c7637a; }
.fs-ele-r .fs-body { fill: #bfe0df; }
.fs-ele-r .fs-ear { fill: #def0ef; }
.fs-ele-r .fs-leg rect { fill: #a6d2d0; }
.fs-ele-r .fs-trunk, .fs-ele-r .fs-tail { stroke: #bfe0df; }
.fs-leg { transform-box: fill-box; transform-origin: 50% 0; animation: fs-step 12s linear infinite; }
.fs-leg-b { --s: -1; }
.fs-heart {
  left: 50%; bottom: 52px; width: 22px; height: 22px; margin-left: -11px; color: #e46f8a; opacity: 0;
  animation: fs-heart 12s ease-out infinite;
}
.fs-heart svg { fill: currentColor; }
.fs-heart-sm { width: 13px; height: 13px; margin-left: -6.5px; bottom: 46px; color: #f19bb0; }
@keyframes fs-ele-l { 0% { left: -84px; } 38%, 62% { left: calc(50% - 71px); } 100% { left: -84px; } }
@keyframes fs-ele-r { 0% { right: -84px; } 38%, 62% { right: calc(50% - 71px); } 100% { right: -84px; } }
@keyframes fs-turn-l { 0%, 61.9% { transform: scaleX(1); } 62.1%, 100% { transform: scaleX(-1); } }
@keyframes fs-turn-r { 0%, 61.9% { transform: scaleX(-1); } 62.1%, 100% { transform: scaleX(1); } }
@keyframes fs-bob { from { transform: translateY(0); } to { transform: translateY(-2px); } }
@keyframes fs-step {
  0%, 7.6%, 15.2%, 22.8%, 30.4%, 65.8%, 73.4%, 81%, 88.6%, 96.2% { transform: rotate(calc(var(--s, 1) * 14deg)); }
  3.8%, 11.4%, 19%, 26.6%, 34.2%, 69.6%, 77.2%, 84.8%, 92.4% { transform: rotate(calc(var(--s, 1) * -14deg)); }
  38%, 62%, 100% { transform: rotate(0); }
}
@keyframes fs-heart {
  0%, 39% { opacity: 0; transform: translate(0, 0) scale(.3); }
  43% { opacity: 1; transform: translate(0, -6px) scale(1.15); }
  56% { opacity: 1; transform: translate(var(--dx, 0), -22px) scale(1); }
  63%, 100% { opacity: 0; transform: translate(var(--dx, 0), -32px) scale(.9); }
}

/* Hotel Elite: the front-desk bell gets a ding every few seconds */
.foot-bell .fs-twinkle { background: var(--gold); }
.fs-bell { left: 50%; bottom: 14px; width: 64px; height: 48px; margin-left: -32px; }
.fs-bell-top { transform-box: fill-box; transform-origin: 50% 100%; animation: fs-ding 3.6s ease-in-out infinite; }
.fs-dome { fill: #c8a24a; }
.fs-knob { fill: #a8842f; }
.fs-base { fill: #7d6128; }
.fs-shine { fill: none; stroke: rgba(255, 255, 255, .55); stroke-width: 2.5; stroke-linecap: round; }
.fs-ring {
  left: 50%; top: 4px; width: 16px; height: 16px; margin: 0 0 0 -8px; border-radius: 50%;
  border: 2px solid rgba(200, 162, 74, .7); opacity: 0; animation: fs-ring 3.6s ease-out infinite;
}
.fs-note { left: 50%; bottom: 52px; font: 600 17px/1 var(--f-serif); color: #a8842f; opacity: 0; animation: fs-note 3.6s ease-out infinite; }
@keyframes fs-ding {
  0%, 78%, 100% { transform: none; }
  81% { transform: translateY(3px) scaleY(.94); }
  85% { transform: translateY(-2px) rotate(-5deg); }
  89% { transform: rotate(4deg); }
  93% { transform: rotate(-2deg); }
  96% { transform: rotate(1deg); }
}
@keyframes fs-ring { 0%, 81% { opacity: 0; transform: scale(.4); } 83% { opacity: 1; } 100% { opacity: 0; transform: scale(3.2); } }
@keyframes fs-note {
  0%, 81% { opacity: 0; transform: translate(0, 0); }
  86% { opacity: 1; transform: translate(calc(var(--dx, 0) * .3), -8px); }
  100% { opacity: 0; transform: translate(var(--dx, 0), -40px) rotate(-12deg); }
}

/* ---------- Unlock transition ---------- */
.keycard.is-busy .pill { opacity: .7; }
.keycard.is-shake .field { animation: e7-shake .45s cubic-bezier(.36, .07, .19, .97); }
@keyframes e7-shake { 15%, 85% { transform: translateX(-2px); } 30%, 70% { transform: translateX(5px); } 45%, 55% { transform: translateX(-7px); } }
.is-entering .frame, .is-entering .foot, .is-entering .top {
  opacity: 0; transform: translateX(-28px) scale(.98);
  transition: opacity .55s ease, transform .7s cubic-bezier(.5, 0, .75, 0); transition-delay: 0s;
}
.portal-burst {
  position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at var(--fx, 70%) var(--fy, 50%), #fffaf0 0, #ffe8b0 12%, rgba(255, 214, 140, .85) 26%, rgba(255, 200, 120, 0) 60%);
  transform-origin: var(--fx, 70%) var(--fy, 50%); transform: scale(.4);
  transition: opacity .5s ease, transform 1.2s cubic-bezier(.5, 0, .2, 1);
}
.portal-burst.is-on { opacity: 1; transform: scale(4); }
.portal-burst.is-on::after { content: ""; position: absolute; inset: 0; background: #fff8ea; opacity: 0; animation: e7-white .5s .65s ease forwards; }
@keyframes e7-white { to { opacity: 1; } }
/* Arrival on the app page: open out of the same light. */
.arriving body::after {
  content: ""; position: fixed; inset: 0; z-index: 60; pointer-events: none;
  background: radial-gradient(circle at 50% 45%, #fffaf0, #fff3d6 40%, #ffe8b0);
  animation: e7-arrive 1.1s .1s cubic-bezier(.3, 0, .2, 1) forwards;
}
@keyframes e7-arrive { to { opacity: 0; visibility: hidden; } }
.arriving .app-intro > * { transition-delay: .5s; }

/* ---------- QR sign-in (home page) ---------- */
.qr-toggle {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: rgba(20, 19, 16, .07); color: var(--ink); cursor: pointer; transition: background .2s ease;
}
.qr-toggle svg { width: 19px; height: 19px; }
.qr-toggle:hover { background: rgba(20, 19, 16, .14); }
.qr-toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.qr-toggle[aria-pressed="true"] { background: var(--ink); color: #fff; }
.qr-wait { display: none; flex: 1; font: 500 15px/1 var(--f-sans); color: var(--ink-mid); }
.keycard.is-qr .field input, .keycard.is-qr .field > svg, .keycard.is-qr .field .pill { display: none; }
.keycard.is-qr .qr-wait { display: block; }
.qr-panel {
  display: grid; grid-template-columns: 148px 1fr; gap: 16px; align-items: center;
  margin-top: 14px; padding: 14px; border-radius: 16px;
  background: rgba(246, 241, 227, .94); color: var(--ink); box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
  text-shadow: none; animation: e7-letter .4s cubic-bezier(.2, .8, .2, 1);
}
.qr-panel[hidden] { display: none; }
.qr-code, .enroll-code { aspect-ratio: 1; border-radius: 10px; background: #fff; padding: 4px; }
.qr-code svg, .enroll-code svg { display: block; width: 100%; height: 100%; }
.qr-code.is-stale svg { opacity: .15; filter: blur(2px); }
.qr-panel[data-state="loading"] .qr-code { background: linear-gradient(90deg, #f1ece0, #fff, #f1ece0); background-size: 200% 100%; animation: e7-shimmer 1s linear infinite; }
.qr-side b, .enroll-side b { display: block; font: 700 15px/1.2 var(--f-grot); }
.qr-msg, .enroll-note { margin: 6px 0 8px; font-size: 13px; color: var(--ink-mid); }
.qr-panel[data-state="approved"] .qr-msg { color: #1f8a6a; font-weight: 600; }
.qr-panel[data-state="denied"] .qr-msg, .qr-panel[data-state="error"] .qr-msg { color: #a33b28; }
.qr-timer, .enroll-timer { display: block; font: 400 22px/1 var(--f-serif); font-variant-numeric: tabular-nums; }
.qr-again { margin-top: 8px; }
.qr-back, .enroll-cancel, .key-remove {
  display: block; margin-top: 10px; padding: 0; border: 0; background: none; cursor: pointer;
  font-size: 12.5px; color: var(--ink-mid); text-decoration: underline;
}

/* ---------- Phone keys (app page) ---------- */
.phone-keys { margin-top: 40px; }
.phone-keys .sub { margin-bottom: 4px; }
.keylist .dev { grid-template-columns: auto 1fr auto; }
.key-remove { margin: 0; }
.key-setup { margin-top: 16px; }
.key-flash { margin: 14px 0 0; padding: 9px 12px; border-radius: 10px; background: rgba(31, 138, 106, .12); color: #1f6e56; font-size: 13px; font-weight: 500; }
.enroll {
  display: grid; grid-template-columns: 160px 1fr; gap: 18px; align-items: center;
  margin-top: 16px; padding: 14px; border-radius: 14px; background: var(--paper-2);
  box-shadow: inset 0 0 0 1px rgba(20, 19, 16, .12); animation: e7-letter .4s cubic-bezier(.2, .8, .2, 1);
}
.enroll[hidden] { display: none; }

/* ---------- Phone pages (/k/…, /q/…) ---------- */
.page-phone .phone-main { justify-content: center; }
.phone-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 26px; }
.phone-actions .pill { height: 48px; }
.phone-number-label { font-size: 13px; opacity: .78; }
.phone-number { width: 6ch; box-sizing: content-box; padding: 8px 14px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .35); background: rgba(246, 241, 227, .94); color: var(--ink); font: 400 34px/1 var(--f-serif); font-variant-numeric: tabular-nums; letter-spacing: .12em; text-align: center; }
.qr-number { display: block; margin: 2px 0 6px; font: 400 40px/1 var(--f-serif); font-variant-numeric: tabular-nums; letter-spacing: .14em; }
.qr-number:empty { display: none; }

@media (max-width: 560px) {
  .qr-panel { grid-template-columns: 120px 1fr; gap: 12px; }
  .enroll { grid-template-columns: 1fr; justify-items: start; }
  .enroll-code { width: 180px; }
  .page-phone .lock { justify-content: center; padding-top: 96px; }
}

/* ---------- Demure and Cutesy theme (pastel boutique) ---------- */
.theme-demure {
  --paper: #fff9f1;
  --paper-2: #fbefe6;
  --ink: #2f3a40;
  --ink-mid: #6b7a80;
  --gold: #c7637a;
  --coral: #c7637a;
}
.theme-demure::before {
  /* the painting is light, so the legibility wash is deeper, in the logo's slate */
  background:
    linear-gradient(90deg, rgba(38, 46, 52, .62) 0%, rgba(38, 46, 52, .3) 40%, rgba(38, 46, 52, 0) 64%),
    linear-gradient(180deg, rgba(38, 46, 52, .4) 0%, rgba(38, 46, 52, 0) 18%, rgba(38, 46, 52, 0) 78%, rgba(38, 46, 52, .45) 100%);
}
.theme-demure .eyebrow, .theme-demure .app-intro .dropcap { color: #ffd6df; }
.theme-demure .word em { font: 400 .62em/1 var(--f-script); letter-spacing: 0; color: #ffd6df; padding: 0 .06em; }
.theme-demure .crest { box-shadow: 0 0 0 1px rgba(255, 214, 223, .7), 0 10px 30px rgba(0, 0, 0, .3); }
.theme-demure .panel-head .dropcap { color: #2f8f8a; }
.theme-demure .pill-sm { background: #23706c; }
.theme-demure .status-tag { color: #c7637a; }
.theme-demure .status.on .orbit { color: #2f8f8a; }
.theme-demure .desk { background: #f6e9e0; }
.theme-demure .desk-hint { background: rgba(47, 58, 64, .58); color: #ffe3ea; }
.theme-demure .glow { background: radial-gradient(circle, rgba(255, 246, 230, .5), rgba(255, 232, 214, .14) 38%, rgba(255, 230, 210, 0) 68%); }
.theme-demure .rings i { border-color: rgba(199, 99, 122, .85); }
.theme-demure .top.on-paper { background: rgba(255, 249, 241, .88); }
.theme-demure .dlp-bar i { background: linear-gradient(90deg, #c7637a, #f8c9d1); }
.theme-demure .dlp.is-done .dlp-bar i { background: #2f8f8a; }
.theme-demure .letter { background: #fff6f1; }
.theme-demure .letter-list code { color: #23706c; }
.theme-demure .phone-ui { background: radial-gradient(circle at 50% 20%, #f8c9d1, #c98a9b 55%, #6b4a57); border-radius: 22px; } /* the painted screen has rounded corners */
.theme-demure .ph-date { color: #fff1f4; }
.theme-demure .desk .ph-app { color: #fff; }
.theme-demure .ph-app img { box-shadow: 0 0 24px rgba(255, 255, 255, .55); }

/* the painted bell stays put; an invisible button over it rings and glints */
.bell-hotspot .bell-img { aspect-ratio: 1; background: none; filter: none; }
.bell-hotspot:hover { transform: none; }
.bell-hotspot::after {
  content: ""; position: absolute; inset: -20%; border-radius: 50%; pointer-events: none; opacity: 0;
  background: radial-gradient(circle, rgba(255, 244, 214, .9), rgba(255, 230, 170, 0) 65%);
}
.is-ringing .bell-hotspot::after { animation: e7-glint .7s ease-out; }
@keyframes e7-glint { 0% { opacity: 0; } 20% { opacity: 1; } 100% { opacity: 0; } }
.seal-gift { width: 24%; aspect-ratio: 1.15; border-radius: 22px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .paper { grid-template-columns: 1fr; gap: 64px; }
  body::before {
    background: linear-gradient(180deg, rgba(5, 8, 7, .5) 0%, rgba(5, 8, 7, .15) 30%, rgba(5, 8, 7, .55) 62%, rgba(5, 8, 7, .78) 100%);
  }
}
@media (max-width: 560px) {
  .top-tag, .music-label { display: none; }
  .music { padding: 0 12px; }
  .lock { justify-content: flex-end; padding-top: 42vh; }
  .frame { padding: 28px 20px 22px; background: rgba(5, 8, 7, .35); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
  .field { padding-left: 14px; }
  .field .pill { padding: 0 14px; }
  .field .pill span { display: none; }
  .app-intro { min-height: 86svh; justify-content: flex-end; }
  .dl { grid-template-columns: auto 1fr; }
  .dl .pill-sm { grid-column: 2; justify-self: start; margin-top: 6px; }
  .status { padding: 10px 12px 10px 10px; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .intro { display: none; }
  .portal-burst { transition: opacity .3s; transform: none; }
  .arriving body::after { animation-duration: .3s; }
  .top, .frame, .foot, .app-intro > * { opacity: 1; transform: none; transition: none; }
  .status.on .orbit i, .status.on .orbit::after, .music.is-playing .eq i, .glow, .key.is-in, .seal, .ph-app img { animation: none; }
  .foot-scene span, .foot-scene g { animation: none !important; }
  .fs-ele-l { left: calc(50% - 71px); }
  .fs-ele-r { right: calc(50% - 71px); }
  .fs-twinkle { opacity: .6; }
  .fs-heart:not(.fs-heart-sm) { opacity: 1; transform: translateY(-12px); }
}

@media (max-width: 900px) {
  .theme-demure::before { background: linear-gradient(180deg, rgba(38, 46, 52, .5) 0%, rgba(38, 46, 52, .2) 30%, rgba(38, 46, 52, .6) 62%, rgba(38, 46, 52, .82) 100%); }
}

/* username above the passcode (hidden while signing in with the phone key) */
.user-row { margin-bottom: 16px; }
.field-user input { letter-spacing: .02em; }
.keycard.is-qr .user-row { display: none; }

/* Gabriel Console page: the halo emblem as its crest */
.crest-halo { background: radial-gradient(circle, #1a1c3a, #080915); }
.crest-halo img { object-fit: contain; padding: 5px; }
