/* Poppins is hosted on nowetik.com itself (SIL Open Font License, see fonts/OFL.txt) */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/poppins-light.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins-regular.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/poppins-italic.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins-medium.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-semibold.woff2") format("woff2"); }

/* Base */
:root { color-scheme: light; box-sizing: border-box; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
html { scroll-padding-top: env(safe-area-inset-top, 0px); }
body { margin: 0; padding: 0; }
img { max-width: 100%; }
[hidden]:not([hidden=until-found i]) { display: none !important; }

/* Layout: one calm column over a lavender sky with faint drifting clouds; the logo is a sunset orb with one breathing cloud, and the sit swaps to a deep periwinkle night with a dusk version of that orb. */
:root {
  --sky-1: #f1f0fe;
  --sky-2: #e2e2fa;
  --sky-3: #d3d9f7;
  --ink: #26224f;
  --muted: #615d8f;
  --accent: #7066e0;
  --accent-2: #9a7ce8;
  --accent-ink: #5148c9;
  --glass: rgba(255, 255, 255, 0.55);
  --glass-line: rgba(255, 255, 255, 0.92);
  --night-1: #6d6bb8;
  --night-2: #4a4890;
  --night-3: #2f2e63;
  --on-night: #f4f3ff;
  --on-night-muted: rgba(244, 243, 255, 0.72);
  --font: "Poppins", "Avenir Next", system-ui, sans-serif;
  color-scheme: light;
}
html, body { height: 100%; }
[hidden] { display: none !important; }
body {
  background: var(--sky-2);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Backdrops: faint, blurred clouds drifting behind everything */
.backdrop { position: fixed; inset: 0; z-index: 0; transition: opacity 1.2s ease; overflow: hidden; }
#skyLight { background: linear-gradient(170deg, var(--sky-1) 0%, var(--sky-2) 55%, var(--sky-3) 100%); }
#skyNight { background: radial-gradient(120% 70% at 50% 35%, var(--night-1) 0%, var(--night-2) 45%, var(--night-3) 100%); opacity: 0; }
body[data-mode="night"] #skyNight { opacity: 1; }
.bub, .nbub, .wcl { position: absolute; border-radius: 999px; }
.bub::before, .bub::after, .nbub::before, .nbub::after, .wcl::before, .wcl::after { content: ""; position: absolute; background: inherit; border-radius: 50%; }
.bub::before, .nbub::before, .wcl::before { width: 52%; height: 175%; left: 14%; bottom: 28%; }
.bub::after, .nbub::after, .wcl::after { width: 40%; height: 135%; right: 12%; bottom: 32%; }
.bub { filter: blur(10px); animation: bubFloat 60s ease-in-out infinite; }
@keyframes bubFloat {
  0%, 100% { transform: translate(0, 2vh); }
  33% { transform: translate(9vw, -3vh); }
  66% { transform: translate(-7vw, 1vh); }
}
.nbub { filter: blur(5px); animation: nightDrift 70s ease-in-out infinite; }
@keyframes nightDrift { 0%, 100% { transform: translate(-6vw, 1vh); } 50% { transform: translate(8vw, -2vh); } }
#dim { position: fixed; inset: 0; z-index: 0; background: #000; opacity: 0; pointer-events: none; transition: opacity 1.2s linear; }

/* Water ripple between the intro and the welcome screen */
#ripple { position: fixed; inset: 0; z-index: 4; pointer-events: none; display: grid; place-items: center; overflow: hidden; }
#ripple span {
  position: absolute; width: 40vmax; height: 40vmax; border-radius: 50%; opacity: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 60px rgba(160, 150, 255, 0.28), inset 0 0 60px rgba(160, 150, 255, 0.22);
  filter: blur(1.5px);
}
#ripple.go span { animation: ripple 2.4s cubic-bezier(.25, .1, .25, 1) forwards; }
#ripple.go span:nth-child(2) { animation-delay: 0.35s; }
#ripple.go span:nth-child(3) { animation-delay: 0.7s; }
@keyframes ripple { 0% { transform: scale(0.1); opacity: 0; } 15% { opacity: 0.55; } 100% { transform: scale(2.8); opacity: 0; } }
.from-ripple { animation: emerge 1.6s ease both !important; }
@keyframes emerge { from { opacity: 0.001; filter: blur(8px); transform: scale(0.985); } to { opacity: 1; filter: blur(0); transform: none; } }

/* App column */
.app {
  position: relative; z-index: 1; min-height: 100%;
  display: flex; justify-content: center;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
  padding-block: 24px 28px;
  box-sizing: border-box; /* keeps each screen inside the phone's height, so bottom buttons aren't pushed below the fold */
}
.screen { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 24px; animation: rise 0.6s ease both; }
.full { min-height: calc(100vh - 52px); min-height: calc(100dvh - 52px); }
@keyframes rise { from { opacity: 0.001; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Type */
h1, h2, h3, p { margin: 0; }
h1 { font-weight: 600; font-size: clamp(30px, 8vw, 36px); line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
h1.caps { font-weight: 300; font-size: clamp(36px, 10.5vw, 42px); letter-spacing: 0.02em; line-height: 1.06; }
h2 { font-weight: 600; font-size: 21px; letter-spacing: -0.01em; text-wrap: balance; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.eyebrow { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }

/* Logo mark: a sunset orb with one pearl-and-blush cloud breathing slowly at its center,
   a soft halo behind it and (on the big orbs) two faded clouds wandering past */
.mark {
  --s: 64px;
  position: relative; flex: none; width: var(--s); height: var(--s);
  border-radius: 50%; overflow: hidden;
  background: linear-gradient(180deg, #ffd9b8 0%, #f6b3c8 45%, #b49cf0 80%, #7f6fe0 100%);
  box-shadow: 0 0 calc(var(--s) * 0.5) rgba(220, 150, 210, 0.45);
}
.mark .cc { position: absolute; left: 21.5%; top: 35.15%; width: 57%; height: 29.7%; overflow: visible; animation: cloudBreath 8s ease-in-out infinite; }
.mark .halo { position: absolute; left: 9%; top: 22%; width: 82%; height: 56%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,222,232,0.55), rgba(255,222,232,0)); animation: cloudBreath 8s ease-in-out infinite; }
@keyframes cloudBreath { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.16); } }
.mark.small .cc, .mark.small .halo { animation: none; }
.mark.quick .cc, .mark.quick .halo { animation-duration: 2.2s; }
.wcl { width: 39.3%; height: 12.9%; opacity: 0.35; filter: blur(6px); }
.wcl.w1 { left: 3.6%; top: 17.9%; background: #ffffff; animation: wcl1 32s ease-in-out infinite; }
.wcl.w2 { left: 53.6%; top: 71.4%; background: #fff0fa; animation: wcl2 38s ease-in-out infinite; }
@keyframes wcl1 { 0%, 100% { transform: translate(0, 83%); } 25% { transform: translate(36%, -69%); } 50% { transform: translate(-9%, -153%); } 75% { transform: translate(-36%, 14%); } }
@keyframes wcl2 { 0%, 100% { transform: translate(0, -83%); } 25% { transform: translate(-41%, 28%); } 50% { transform: translate(14%, 139%); } 75% { transform: translate(41%, 0); } }
/* dusk version of the orb for the night screens */
.sit-orb .mark, .settle-orb .mark, #end .mark { background: linear-gradient(180deg, #ffd9b8 0%, #f2a9c4 30%, #9d86e6 62%, #3f3b8f 100%); box-shadow: 0 0 70px rgba(214,150,220,0.45); }
.lockup { display: flex; align-items: center; gap: 14px; }
span.mark { display: block; }
.logo-btn { background: none; border: 0; padding: 4px; margin: -4px; cursor: pointer; color: inherit; font: inherit; text-align: left; border-radius: 14px; }
.wordmark { font-weight: 500; letter-spacing: -0.02em; color: var(--ink); }

/* Splash */
#splash { justify-content: center; align-items: center; cursor: pointer; }
#splash .lockup { animation: splashIn 0.9s ease both; }
#splash .wordmark { font-size: clamp(42px, 13vw, 54px); }
@keyframes splashIn { from { opacity: 0.001; transform: scale(0.94); } to { opacity: 1; transform: none; } }
#splash.leaving .lockup { animation: splashOut 0.5s ease forwards; }
@keyframes splashOut { to { opacity: 0; transform: scale(1.04); filter: blur(4px); } }

/* Buttons */
.btn {
  width: 100%; min-height: 58px; border-radius: 99px; border: 0; cursor: pointer;
  background: var(--ink); color: #fff; font: 500 17px var(--font); letter-spacing: 0.01em;
  display: flex; align-items: center; justify-content: center; gap: 10px; padding: 0 20px;
  box-sizing: border-box; text-decoration: none; /* links styled as buttons get the same width as real buttons */
}
.btn:hover { background: #3a3570; }
.btn.glow { background: linear-gradient(100deg, var(--accent), var(--accent-2)); box-shadow: 0 12px 30px rgba(112, 102, 224, 0.35); }
.btn.glow:hover { background: linear-gradient(100deg, #6158d6, #8f6fe0); }
.btn.glass { background: var(--glass); color: var(--ink); border: 1px solid var(--glass-line); }
.btn.glass:hover { background: rgba(255,255,255,0.75); }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row > * { flex: 1 1 130px; }
.btn-sm {
  min-height: 50px; border-radius: 18px; cursor: pointer; padding: 0 14px;
  border: 1px solid var(--glass-line); background: var(--glass); color: var(--ink); font: 500 15px var(--font);
}
.link-btn { background: none; border: 0; color: var(--muted); font: 500 14px var(--font); padding: 10px 8px; cursor: pointer; }
.link-btn:hover { color: var(--ink); }
.text-link { background: none; border: 0; color: var(--accent-ink); font: 500 14px var(--font); padding: 8px; cursor: pointer; }
.text-link:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.icon-btn {
  width: 44px; height: 44px; flex: none; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(112,102,224,0.3); background: rgba(255,255,255,0.55); color: var(--ink);
  font: 500 17px var(--font); display: grid; place-items: center;
}
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bar .wordmark { font-size: 20px; }
.proto { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); border: 1px solid rgba(112,102,224,0.3); border-radius: 99px; padding: 3px 10px; }
.glass-panel { padding: 20px; border-radius: 26px; background: var(--glass); border: 1px solid var(--glass-line); display: flex; flex-direction: column; gap: 14px; }

/* Welcome */
.brand { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.brand .wordmark { font-size: 26px; line-height: 1.1; }
.brand .day { font-size: 12px; letter-spacing: 0.22em; color: var(--muted); padding-left: 44px; font-variant-numeric: tabular-nums; }
.welcome-body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; text-align: center; padding-bottom: 4vh; }
.welcome-body .hero { --s: clamp(180px, 58vw, 230px); box-shadow: 0 0 70px rgba(226,150,205,0.5); margin-bottom: 8px; }
.welcome-head { font-weight: 400; font-size: clamp(27px, 7.8vw, 31px); letter-spacing: -0.01em; line-height: 1.15; }
.btn:disabled { opacity: 0.4; box-shadow: none; cursor: default; pointer-events: none; }
#prep .prep-msg { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px; padding: 0 8px; }
.prep-icons { display: flex; gap: 22px; font-size: 44px; line-height: 1; margin-bottom: 4px; }
.prep-msg h2 { margin: 0; font-size: clamp(22px, 6.4vw, 26px); font-weight: 600; letter-spacing: -0.01em; }
.prep-msg p { margin: 0; max-width: 300px; line-height: 1.5; }
.prep-msg h2 + p { margin-top: -6px; }
.prep-msg .link-btn { font-weight: 500; font-size: 15px; color: var(--accent-ink); padding: 8px 12px; }
.tone-line { margin: 0; text-align: center; font-size: 14px; color: var(--muted); }
.tone-line .link-btn { font-weight: 600; padding: 4px 2px; }
#styles.making img { opacity: 0.35; animation: makingPulse 1.4s ease-in-out infinite; }
@keyframes makingPulse { 50% { opacity: 0.6; } }
body.sitting .nbub, body.sitting .wcl { animation-play-state: paused; }
.sit-words .keep-open { font-size: 13px; opacity: 0.8; margin-top: 6px; }
.welcome-actions { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 16px; margin-top: -4px; }

/* Info pages */
.page { gap: 18px; }
.page-head { display: flex; flex-direction: column; gap: 8px; }
.about-section { display: flex; flex-direction: column; gap: 10px; }
.about-section p, .about-section li { color: var(--muted); max-width: 62ch; }
.about-section b { color: var(--ink); font-weight: 600; }
.steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; counter-increment: step; }
.steps li::before {
  content: counter(step); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 14px;
}
.name-part { display: grid; grid-template-columns: 86px 1fr; gap: 14px; align-items: start; }
.name-part .word { font-size: 22px; font-weight: 600; color: var(--accent-ink); line-height: 1.3; }
.equation { font-size: clamp(22px, 6.4vw, 28px); font-weight: 300; letter-spacing: 0.01em; color: var(--ink); }
.equation b { font-weight: 600; color: var(--accent-ink); }
.tips { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.tips li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; }
.tips .ic { font-size: 20px; line-height: 1.4; }
.animal-row { display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: start; padding: 12px 0; border-top: 1px solid rgba(112,102,224,0.15); }
.animal-row:first-of-type { border-top: 0; padding-top: 0; }
.animal-row .em { font-size: 36px; line-height: 1.1; text-align: center; }
.animal-row b { display: block; color: var(--ink); }
.sample { padding: 18px; border-radius: 22px; background: rgba(255,255,255,0.7); border: 1px solid #fff; font-size: 15px; line-height: 1.8; white-space: pre; overflow-x: auto; color: var(--ink); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 500; }
.field input, .field textarea {
  width: 100%; box-sizing: border-box; border-radius: 14px; border: 1px solid rgba(112,102,224,0.3);
  background: rgba(255,255,255,0.8); color: var(--ink); font: 15px/1.5 var(--font); padding: 12px 14px;
}
.field textarea { min-height: 130px; resize: vertical; }
.email-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.email-line code { font: 500 15px var(--font); color: var(--ink); user-select: all; }
.coffee-cup { font-size: 64px; line-height: 1; text-align: center; }
a.btn { text-decoration: none; }

/* Drawer menu */
.drawer-wrap { position: fixed; inset: 0; z-index: 6; background: rgba(38,34,79,0.32); display: flex; justify-content: flex-end; }
.drawer {
  width: min(320px, 86vw); height: 100%; box-sizing: border-box; overflow-y: auto;
  background: var(--sky-1); box-shadow: -20px 0 50px rgba(38,34,79,0.18);
  padding: calc(20px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) calc(20px + env(safe-area-inset-bottom, 0px)) 16px;
  display: flex; flex-direction: column; gap: 6px; animation: slideIn 0.3s ease both;
}
@keyframes slideIn { from { transform: translateX(30px); opacity: 0.001; } to { transform: none; opacity: 1; } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 0 4px 12px; }
.menu-item {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 52px; padding: 0 12px;
  border-radius: 16px; border: 0; background: transparent; color: var(--ink); font: 500 16px var(--font);
  text-align: left; cursor: pointer;
}
.menu-item:hover { background: rgba(112,102,224,0.1); }
.menu-item .ic { font-size: 20px; width: 28px; text-align: center; }
.menu-sep { height: 1px; background: rgba(112,102,224,0.15); margin: 8px 12px; }

/* Home (time picker) */
.dial { position: relative; align-self: center; width: min(62vw, 230px); aspect-ratio: 1; max-width: 100%; display: grid; place-items: center; }
.dial .ring { position: absolute; border-radius: 50%; }
.dial .r-outer { inset: 0; border: 1px solid rgba(112,102,224,0.22); }
.dial .r-mid { inset: 12%; border: 1px solid rgba(112,102,224,0.4); }
.dial .r-inner { inset: 24%; border: 1.5px solid var(--accent); background: rgba(255,255,255,0.5); box-shadow: 0 0 30px rgba(112,102,224,0.3); }
.dial .val { position: relative; display: flex; flex-direction: column; align-items: center; }
.dial .num { font-size: clamp(44px, 13vw, 54px); font-weight: 300; line-height: 1; font-variant-numeric: tabular-nums; }
.dial .unit { font-size: 12px; letter-spacing: 0.2em; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chip {
  min-width: 46px; height: 44px; padding: 0 12px; border-radius: 99px; cursor: pointer;
  border: 1px solid rgba(112,102,224,0.3); background: rgba(255,255,255,0.5); color: var(--ink);
  font: 400 15px var(--font); font-variant-numeric: tabular-nums;
}
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Pickers */
.q-label { font-size: 16px; font-weight: 500; }
.orbs { display: flex; justify-content: space-between; gap: 8px; }
.orb-btn { width: 48px; height: 48px; border-radius: 14px; cursor: pointer; border: 2px solid #9a93ee; background: transparent; transition: background 0.25s ease, box-shadow 0.25s ease; }
.orb-btn.on { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 16px rgba(112,102,224,0.45); }
.ends { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.picks { display: flex; flex-wrap: wrap; gap: 8px; }
.pick { height: 44px; padding: 0 16px; border-radius: 14px; cursor: pointer; border: 1px solid var(--glass-line); background: rgba(255,255,255,0.6); color: var(--ink); font: 500 14px var(--font); }
.pick[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.animals { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; padding-top: 6px; padding-right: 4px; }
.animal-wrap { position: relative; display: flex; min-width: 0; }
.animals .animal {
  flex: 1; height: auto; min-height: 76px;
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 2px 8px;
  border-radius: 16px; border: 1px solid var(--glass-line); background: rgba(255,240,248,0.6);
  color: var(--ink); font: 500 11px/1.2 var(--font); cursor: pointer; text-align: center; min-width: 0;
}
.animal-wrap:nth-child(n+6) .animal { background: rgba(232,238,255,0.65); }
.animals .animal .em { font-size: 26px; line-height: 1; }
.animals .animal[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.animal-info {
  position: absolute; top: -6px; right: -6px; width: 24px; height: 24px; border-radius: 50%; padding: 0;
  display: grid; place-items: center; cursor: pointer;
  border: 1px solid rgba(112,102,224,0.35); background: #fff; color: var(--accent-ink);
}
.tone { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--muted); }
.tone input { width: 20px; height: 20px; accent-color: var(--accent); }

/* One last thing: the two checks */
.check-row {
  display: grid; grid-template-columns: 44px 1fr 30px; gap: 14px; align-items: center; width: 100%;
  padding: 16px; border-radius: 22px; cursor: pointer; text-align: left;
  border: 1px solid var(--glass-line); background: var(--glass); color: var(--ink); font: 400 15px var(--font);
}
.check-row .ic { font-size: 32px; line-height: 1; text-align: center; }
.check-row b { display: block; font-size: 17px; font-weight: 600; }
.check-row small { display: block; color: var(--muted); font-size: 14px; line-height: 1.4; }
.check-row .tick { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #9a93ee; display: grid; place-items: center; color: transparent; }
.check-row[aria-pressed="true"] { border-color: var(--accent); background: rgba(255,255,255,0.8); }
.check-row[aria-pressed="true"] .tick { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Settling in */
#settle { color: var(--on-night); align-items: center; text-align: center; }
.settle-stage { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 48px; }
.settle-orb { transition: transform 2.8s ease-in-out; }
.settle-orb .mark { --s: clamp(130px, 40vw, 170px); }
/* the whole orb inhales during the settle-in, so the cloud inside holds still */
.settle-orb .cc, .settle-orb .halo { animation: none; }
.settle-orb.inhale { transform: scale(1.32); }
.settle-text {
  font-size: clamp(26px, 7.5vw, 32px); font-weight: 300; letter-spacing: 0.01em; min-height: 1.4em;
  transition: opacity 0.9s ease, filter 0.9s ease, transform 0.9s ease;
}
.settle-text.out { opacity: 0; filter: blur(6px); transform: translateY(10px); }
.settle-text.count { font-size: clamp(60px, 18vw, 76px); font-weight: 200; }
.settle-skip { color: var(--on-night-muted); }
.settle-skip:hover { color: var(--on-night); }

/* Sit */
#sit { color: var(--on-night); align-items: center; text-align: center; }
.sit-top { width: 100%; display: flex; justify-content: space-between; align-items: center; }
.sit-top .eyebrow { color: var(--on-night-muted); }
.night-btn {
  width: 44px; height: 44px; border-radius: 14px; cursor: pointer;
  border: 1px solid rgba(255,255,255,0.25); background: rgba(255,255,255,0.1); color: var(--on-night);
  display: grid; place-items: center;
}
.sit-orb { position: relative; width: min(76vw, 300px); aspect-ratio: 1; margin-top: 4vh; }
.sit-orb svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.sit-orb .mark { position: absolute; inset: 11%; width: auto; height: auto; }
@keyframes breathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.03); } }
.sit-words { display: flex; flex-direction: column; gap: 6px; transition: opacity 4s ease; }
.sit-words p:first-child { font-size: 26px; font-weight: 500; }
.sit-words p:last-child { color: var(--on-night-muted); font-size: 15px; }
.clock { font-size: 34px; font-weight: 300; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; min-height: 51px; }
.paused-tag { font-size: 13px; letter-spacing: 0.16em; color: var(--on-night-muted); }
.controls { display: flex; gap: 16px; margin-top: auto; }
.ctl {
  width: 64px; height: 64px; border-radius: 20px; cursor: pointer; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,0.25); background: rgba(255,255,255,0.1); color: var(--on-night);
}
.ctl.primary { background: #fff; color: var(--night-3); border-color: #fff; }
.confirm { width: 100%; padding: 16px; border-radius: 20px; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25); display: flex; flex-direction: column; gap: 12px; backdrop-filter: blur(10px); }
.confirm .btn-sm { background: rgba(255,255,255,0.15); color: var(--on-night); border-color: rgba(255,255,255,0.3); }
.confirm .btn-sm.solid { background: #fff; color: var(--night-3); }

/* End */
#end { color: var(--on-night); align-items: center; justify-content: center; text-align: center; }
#end .mark { --s: 150px; animation: bloom 2.4s ease-out both; }
@keyframes bloom { from { transform: scale(0.4); opacity: 0.2; } to { transform: none; opacity: 1; } }
#end .btn { background: #fff; color: var(--night-3); }

/* Card */
.share-card {
  padding: 24px 22px; border-radius: 30px;
  background: radial-gradient(120% 90% at 100% 0%, rgba(160,150,255,0.45), rgba(160,150,255,0) 60%), rgba(255,255,255,0.72);
  border: 1px solid #fff; box-shadow: 0 20px 50px rgba(112,102,224,0.18);
  display: flex; flex-direction: column; gap: 16px;
}
.share-card .head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.share-card .title { font-size: 20px; font-weight: 600; }
.dots { display: flex; gap: 5px; }
.dots span { width: 22px; height: 22px; border-radius: 6px; border: 2px solid #9a93ee; box-sizing: border-box; }
.dots span.on { background: var(--accent); border-color: var(--accent); }
.share-card .line { font-size: 16px; }
.share-card .line span { color: var(--muted); }
.grid-rows { display: flex; flex-direction: column; gap: 8px; }
.grow { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 15px; }
.share-card .foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.copy-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: 99px; border: 1px solid rgba(112,102,224,0.35); background: rgba(255,255,255,0.75); color: var(--accent-ink); font: 500 14px var(--font); cursor: pointer; }
.copy-chip.done { background: var(--accent); border-color: var(--accent); color: #fff; }
.share-card .url { font-size: 14px; font-weight: 500; color: var(--accent-ink); }
textarea.fallback { width: 100%; min-height: 140px; border-radius: 14px; border: 1px solid var(--glass-line); background: #fff; color: var(--ink); font: 14px/1.6 var(--font); padding: 12px; box-sizing: border-box; }

/* Sheets and dialogs */
.sheet-wrap { position: fixed; inset: 0; z-index: 5; background: rgba(38,34,79,0.35); display: flex; align-items: flex-end; justify-content: center; }
.sheet {
  width: 100%; max-width: 520px; max-height: 92vh; overflow-y: auto; box-sizing: border-box;
  background: var(--sky-1); border-radius: 26px 26px 0 0;
  padding: 22px max(20px, env(safe-area-inset-left, 0px)) calc(22px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; gap: 14px; animation: up 0.35s ease both;
}
@keyframes up { from { transform: translateY(30px); opacity: 0.001; } to { transform: none; opacity: 1; } }
.sheet-wrap.center { align-items: center; padding: 20px max(20px, env(safe-area-inset-left, 0px)); }
.dialog {
  width: 100%; max-width: 380px; box-sizing: border-box; background: var(--sky-1); border-radius: 28px;
  padding: 26px 22px 22px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
  box-shadow: 0 30px 80px rgba(38,34,79,0.3); animation: pop 0.3s ease both;
}
@keyframes pop { from { transform: scale(0.94); opacity: 0.001; } to { transform: none; opacity: 1; } }
.dialog .big { font-size: 76px; line-height: 1.1; }
.dialog p { max-width: 34ch; }
.dialog .row { width: 100%; margin-top: 6px; }
.styles {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 4px 19% 10px; margin: 0 calc(-1 * max(20px, env(safe-area-inset-left, 0px)));
}
.styles::-webkit-scrollbar { display: none; }
.styles img { flex: 0 0 62%; max-width: 62%; aspect-ratio: 9 / 16; scroll-snap-align: center; border-radius: 18px; box-shadow: 0 14px 34px rgba(38,34,79,0.22); background: var(--sky-2); }
.style-dots { display: flex; justify-content: center; gap: 8px; }
.style-dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(112,102,224,0.3); transition: background 0.2s; }
.style-dots span.on { background: var(--accent); }
.style-name { text-align: center; font-size: 14px; color: var(--muted); }
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); translate: -50% 0; z-index: 9;
  background: var(--ink); color: #fff; font-weight: 500; padding: 10px 18px; border-radius: 99px; font-size: 15px;
  max-width: calc(100vw - 40px); text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .settle-orb, .settle-text { transition: none; }
  .bub, .nbub, .cc, .halo, .wcl, .screen, .sheet, .dialog, .drawer, #splash .lockup, #end .mark, #ripple span, .from-ripple { animation: none !important; }
  .sit-words { transition: none; }
}

/* Small links at the bottom of the menu */
.menu-foot { margin-top: auto; padding: 18px 6px 4px; display: flex; gap: 14px; font-size: 13px; }
.menu-foot a { color: var(--muted, #615d8f); text-decoration: none; }
.menu-foot a:hover { text-decoration: underline; }
