.sc-ui {
  --paper: #fbf5e9;
  --paper-hi: #fffaf1;
  --paper-lo: #f1e6d0;
  --paper-edge: #e9dcc2;
  --ink: #4a3b2f;
  --ink-soft: #8a7663;
  --ink-faint: rgba(74, 59, 47, 0.42);
  --accent: #e58f65;
  --accent-deep: #cf7248;
  --leaf: #7fae55;
  --leaf-hi: #9cc96b;
  --line: rgba(74, 59, 47, 0.12);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --soft: cubic-bezier(.22, 1, .36, 1);
  --f-head: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  --f-body: 'Nunito', ui-rounded, 'SF Pro Rounded', 'Hiragino Maru Gothic ProN', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --shadow: inset 0 -3px 0 rgba(120, 88, 58, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 16px 34px -14px rgba(52, 38, 72, 0.42), 0 4px 10px -4px rgba(52, 38, 72, 0.2);
  --shadow-sm: inset 0 -2px 0 rgba(120, 88, 58, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 8px 18px -10px rgba(52, 38, 72, 0.45), 0 2px 5px -2px rgba(52, 38, 72, 0.18);
  position: absolute; inset: 0; z-index: 10; pointer-events: none;
  font-family: var(--f-body); color: var(--ink); font-size: 14px; line-height: 1.35;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  user-select: none; -webkit-user-select: none; overflow: hidden;
}
.sc-ui.sc-hidden { display: none; }
:where(.sc-ui) *, :where(.sc-ui) *::before, :where(.sc-ui) *::after { box-sizing: border-box; }
:where(.sc-ui) button {
  font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; margin: 0;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
:where(.sc-ui) button:focus { outline: none; }
:where(.sc-ui) button:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; }
:where(.sc-ui) svg { display: block; overflow: visible; }
.sc-w { pointer-events: auto; }
.sc-layer { position: absolute; inset: 0; pointer-events: none; transition: opacity .45s var(--soft), visibility 0s linear 0s; }
.sc-ui.sc-photo .sc-layer { opacity: 0; visibility: hidden; transition: opacity .45s var(--soft), visibility 0s linear .45s; }
.sc-ui.sc-photo .sc-layer * { pointer-events: none !important; }

.sc-card, .sc-ui .sc-card {
  background-color: var(--paper);
  background-image: url(paper-noise.svg);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

/* ---------------------------------------------------------------- tooltip */
.sc-tip {
  position: absolute; left: 0; top: 0; z-index: 40; pointer-events: none;
  padding: 8px 11px 8px; border-radius: 12px; max-width: 250px;
  background: #4a3b2f; color: #fbf5e9; font-size: 12.5px; font-weight: 600;
  box-shadow: 0 10px 24px -10px rgba(40, 28, 50, 0.6);
  opacity: 0; transform: translate3d(var(--x), calc(var(--y) + 5px), 0) scale(.96);
  transform-origin: 50% 100%;
  transition: opacity .16s ease, transform .3s var(--spring);
}
.sc-tip.show { opacity: 1; transform: translate3d(var(--x), var(--y), 0); }
.sc-tip::after { content: ''; position: absolute; width: 10px; height: 10px; background: #4a3b2f; border-radius: 2px; transform: rotate(45deg); }
.sc-tip[data-pos="top"]::after { bottom: -4px; left: calc(var(--ax, 50%) - 5px); }
.sc-tip[data-pos="bottom"]::after { top: -4px; left: calc(var(--ax, 50%) - 5px); }
.sc-tip[data-pos="left"]::after { right: -4px; top: calc(var(--ay, 50%) - 5px); }
.sc-tip[data-pos="right"]::after { left: -4px; top: calc(var(--ay, 50%) - 5px); }
.sc-tip[data-pos="bottom"] { transform-origin: 50% 0; }
.sc-tip b { font-weight: 800; font-size: 13px; display: inline-flex; align-items: center; gap: 7px; }
.sc-tip .sc-tip-sub { display: block; margin-top: 2px; color: rgba(251, 245, 233, 0.72); font-weight: 600; }
.sc-tip .sc-tip-sub + .sc-tip-sub { margin-top: 0; }
.sc-tip kbd {
  font: 800 10.5px/1 var(--f-body); color: #4a3b2f; background: #f1e6d0; border-radius: 5px; padding: 3px 5px;
  box-shadow: inset 0 -1.5px 0 rgba(74, 59, 47, 0.25);
}

/* ---------------------------------------------------------------- tool dock */
.sc-dock {
  position: absolute; left: 50%; bottom: max(18px, env(safe-area-inset-bottom));
  transform: translateX(-50%); display: flex; gap: 6px; padding: 8px; border-radius: 30px;
  animation: sc-rise-in .8s var(--spring) .15s backwards;
}
.sc-dock-blob {
  position: absolute; top: 8px; left: 0; width: 70px; height: 70px; border-radius: 22px;
  background: var(--blob, #e6f0d2);
  box-shadow: inset 0 0 0 2px var(--blob-ring, #7fae55), inset 0 -4px 0 rgba(74, 59, 47, 0.07), 0 6px 14px -8px var(--blob-ring, #7fae55);
  transform: translateX(var(--bx, 8px));
  transition: transform .55s var(--spring), background-color .35s ease, box-shadow .35s ease, width .3s, height .3s;
}
.sc-tool {
  position: relative; width: 70px; height: 70px; border-radius: 22px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
}
.sc-tool .sc-tool-ic { width: 38px; height: 38px; transition: transform .45s var(--spring); }
.sc-tool .sc-tool-ic svg { width: 100%; height: 100%; filter: drop-shadow(0 2px 0 rgba(74, 59, 47, 0.13)); }
.sc-tool:hover .sc-tool-ic { transform: translateY(-3px) rotate(-5deg) scale(1.07); }
.sc-tool:active .sc-tool-ic { transform: scale(.88); transition-duration: .12s; }
.sc-tool.sc-on .sc-tool-ic { animation: sc-bounce .65s var(--spring); }
.sc-tool-label { font-size: 11.5px; font-weight: 800; letter-spacing: .01em; color: var(--ink-soft); transition: color .2s; }
.sc-tool.sc-on .sc-tool-label { color: var(--ink); }
.sc-tool kbd {
  position: absolute; top: 6px; right: 7px; font: 800 9.5px/1 var(--f-body); color: var(--ink-soft);
  background: rgba(74, 59, 47, 0.07); border-radius: 6px; padding: 3px 4px 2px; opacity: .8;
}
.sc-tool.sc-on kbd { background: rgba(255, 255, 255, 0.7); }

/* ---------------------------------------------------------------- time widget */
.sc-time {
  position: absolute; top: 16px; left: 16px; display: flex; gap: 12px; align-items: center;
  padding: 10px 16px 10px 10px; border-radius: 30px;
  animation: sc-drop-in .8s var(--spring) .05s backwards;
}
.sc-dial { position: relative; width: 88px; height: 88px; flex: none; border-radius: 50%; transition: transform .4s var(--spring); }
.sc-dial:hover { transform: scale(1.04) rotate(-2deg); }
.sc-dial:active { transform: scale(.96); }
.sc-dial svg { width: 100%; height: 100%; }
.sc-time-info { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.sc-cloud { animation: sc-cloud 46s linear infinite; }
.sc-cloud-a { animation-delay: -14s; }
.sc-cloud-b { animation-duration: 64s; animation-delay: -40s; }
@keyframes sc-cloud { from { transform: translate(-12px, 30px); } to { transform: translate(112px, 30px); } }
@keyframes sc-cloud-b { from { transform: translate(-12px, 42px); } to { transform: translate(112px, 42px); } }
.sc-cloud-b { animation-name: sc-cloud-b; }
.sc-season-name { font-family: var(--f-head); font-size: 22px; font-weight: 600; line-height: 1.05; letter-spacing: -.01em; white-space: nowrap; }
.sc-time-sub { font-size: 12.5px; color: var(--ink-soft); font-weight: 700; white-space: nowrap; margin-top: 2px; font-variant-numeric: tabular-nums; }
.sc-time-sub b { color: var(--ink); font-weight: 800; }
.sc-row { display: flex; gap: 6px; align-items: center; }
.sc-round {
  width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper-lo); color: var(--ink); transition: transform .35s var(--spring), background .2s;
}
.sc-round svg { width: 15px; height: 15px; }
.sc-round:hover { transform: scale(1.1); background: #eadcc1; }
.sc-round:active { transform: scale(.9); }
.sc-round.sc-paused { background: var(--accent); color: #fffaf1; }
.sc-seg { position: relative; display: flex; background: var(--paper-lo); border-radius: 999px; padding: 3px; gap: 1px; }
.sc-seg button {
  position: relative; z-index: 1; font-size: 11.5px; font-weight: 800; height: 24px; min-width: 32px; padding: 0 7px;
  border-radius: 999px; color: var(--ink-soft); transition: color .2s;
}
.sc-seg button.sc-on { color: var(--ink); }
.sc-seg-knob {
  position: absolute; top: 3px; left: 0; height: 24px; border-radius: 999px; background: var(--paper-hi);
  box-shadow: 0 1px 3px rgba(52, 38, 72, 0.2), inset 0 -1.5px 0 rgba(74, 59, 47, 0.07);
  transition: transform .45s var(--spring), width .3s var(--soft);
}
.sc-seasons { display: flex; gap: 3px; }
.sc-seasons button {
  width: 30px; height: 28px; border-radius: 10px; display: grid; place-items: center;
  opacity: .5; filter: saturate(.55); transition: opacity .2s, filter .2s, transform .35s var(--spring), background .2s;
}
.sc-seasons button svg { width: 19px; height: 19px; }
.sc-seasons button:hover { opacity: 1; filter: none; transform: translateY(-2px) rotate(-8deg); }
.sc-seasons button.sc-on { opacity: 1; filter: none; background: var(--paper-lo); }

/* ---------------------------------------------------------------- top-right */
.sc-topright { position: absolute; top: 16px; right: 16px; display: flex; gap: 8px; align-items: center; animation: sc-drop-in .8s var(--spring) .1s backwards; }
.sc-pill {
  position: relative; height: 46px; padding: 0 18px 0 10px; border-radius: 999px; display: flex; gap: 8px; align-items: center;
  font-weight: 800; font-size: 16px; transition: transform .35s var(--spring);
}
.sc-pill:hover { transform: translateY(-2px) scale(1.03); }
.sc-pill:active { transform: scale(.95); }
.sc-pill .sc-paw { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fffaf1; }
.sc-pill .sc-paw svg { width: 16px; height: 16px; }
.sc-pill small { font-size: 13px; color: var(--ink-soft); font-weight: 800; }
.sc-pill .sc-count { font-variant-numeric: tabular-nums; }
.sc-pill.sc-wiggle { animation: sc-wiggle .9s var(--spring); }
.sc-badge-dot {
  position: absolute; top: 4px; right: 6px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 2.5px var(--paper); transform: scale(0); transition: transform .4s var(--spring);
}
.sc-badge-dot.sc-on { transform: scale(1); }
.sc-icon-btn { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); transition: transform .35s var(--spring); }
.sc-icon-btn svg { width: 21px; height: 21px; }
.sc-icon-btn:hover { transform: translateY(-2px) rotate(-6deg) scale(1.05); }
.sc-icon-btn:active { transform: scale(.9); }
.sc-icon-btn.sc-muted { color: var(--ink-faint); }

/* ---------------------------------------------------------------- modal sheets */
.sc-modal { position: absolute; inset: 0; display: grid; place-items: center; z-index: 20; pointer-events: none; visibility: hidden; }
/* iOS: while the on-screen keyboard is up, keep dialogs inside the part of the screen that's still visible */
.sc-ui.sc-kb .sc-modal { top: var(--vv-top, 0px); bottom: auto; height: var(--vv-h, 100%); }
.sc-modal.sc-open { pointer-events: auto; visibility: visible; }
.sc-backdrop {
  position: absolute; inset: 0; opacity: 0; transition: opacity .35s ease;
  background: radial-gradient(ellipse at 50% 45%, rgba(38, 30, 58, 0.14), rgba(38, 30, 58, 0.38));
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
.sc-modal.sc-open .sc-backdrop { opacity: 1; }
.sc-sheet {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  width: min(820px, calc(100vw - 32px)); max-height: min(86vh, 780px); border-radius: 30px;
  opacity: 0; transform: translateY(26px) scale(.95) rotate(-.6deg);
  transition: transform .55s var(--spring), opacity .25s ease;
}
.sc-modal.sc-open .sc-sheet { opacity: 1; transform: none; }
.sc-close {
  position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper-lo); color: var(--ink-soft); transition: transform .35s var(--spring), color .2s; z-index: 2;
}
.sc-close svg { width: 18px; height: 18px; }
.sc-close:hover { transform: rotate(90deg) scale(1.08); color: var(--ink); }
.sc-sheet-head { padding: 26px 30px 16px; flex: none; position: relative; }
.sc-eyebrow { font-size: 10.5px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-deep); }
.sc-title { font-family: var(--f-head); font-size: 32px; font-weight: 600; letter-spacing: -.015em; line-height: 1.05; margin: 4px 0 4px; text-wrap: balance; }
.sc-sub { color: var(--ink-soft); font-size: 14px; font-weight: 600; }
.sc-sheet-body {
  overflow-y: auto; overscroll-behavior: contain; padding: 4px 30px 30px; flex: 1; min-height: 0;
  background-image: radial-gradient(rgba(74, 59, 47, 0.09) 1px, transparent 1.3px);
  background-size: 18px 18px; background-position: 9px 0;
  scrollbar-width: thin; scrollbar-color: rgba(74, 59, 47, 0.25) transparent;
}

/* journal */
.sc-progress-row { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.sc-progress { position: relative; flex: 1; height: 14px; border-radius: 999px; background: var(--paper-lo); box-shadow: inset 0 1.5px 2px rgba(74, 59, 47, 0.14); }
.sc-progress > i {
  position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; min-width: 14px;
  background: linear-gradient(180deg, #a9d27a, #7fae55); box-shadow: inset 0 -2px 0 rgba(60, 90, 40, 0.18), inset 0 2px 0 rgba(255, 255, 255, 0.35);
  transition: width 1s var(--spring);
}
.sc-progress > i::after {
  content: ''; position: absolute; right: -4px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%;
  background: #fffaf1; box-shadow: 0 2px 5px rgba(52, 38, 72, 0.25), inset 0 0 0 2px #7fae55;
}
.sc-progress-label { font-weight: 800; font-size: 15px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sc-progress-label small { color: var(--ink-soft); font-weight: 700; font-size: 13px; }
.sc-group { margin-top: 18px; }
.sc-group-head { display: flex; align-items: baseline; gap: 10px; margin: 0 0 12px; }
.sc-group-head h3 { font-family: var(--f-head); font-style: italic; font-weight: 600; font-size: 19px; margin: 0; white-space: nowrap; }
.sc-group-head span { font-size: 12px; color: var(--ink-soft); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-group-head::after { content: ''; flex: 1; border-bottom: 1.5px dashed rgba(74, 59, 47, 0.18); transform: translateY(-4px); min-width: 20px; }
.sc-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 14px; }
.sc-vcard {
  position: relative; display: flex; gap: 12px; padding: 13px 14px 13px 12px; border-radius: 20px; min-height: 104px;
  background: var(--paper-hi);
  box-shadow: inset 0 -2.5px 0 rgba(120, 88, 58, 0.07), 0 7px 16px -10px rgba(52, 38, 72, 0.38), 0 0 0 1px rgba(74, 59, 47, 0.06);
  transform: rotate(var(--tilt, 0deg)); transition: transform .45s var(--spring), box-shadow .3s;
  animation: sc-card-in .6s var(--spring) backwards; animation-delay: var(--delay, 0s);
}
.sc-vcard:hover { transform: rotate(0deg) translateY(-3px); box-shadow: inset 0 -2.5px 0 rgba(120, 88, 58, 0.07), 0 14px 24px -12px rgba(52, 38, 72, 0.45), 0 0 0 1px rgba(74, 59, 47, 0.06); }
.sc-vcard.sc-unknown { background: rgba(255, 250, 241, 0.5); box-shadow: none; border: 1.5px dashed rgba(74, 59, 47, 0.2); }
.sc-tape { position: absolute; top: -8px; left: 26px; width: 46px; height: 15px; border-radius: 2px; transform: rotate(-7deg); opacity: .75; background: var(--tape, rgba(229, 143, 101, 0.45));
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.18) 0 4px, transparent 4px 8px); }
.sc-portrait {
  position: relative; width: 66px; height: 66px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: var(--tint, #efe4cf); box-shadow: inset 0 -3px 0 rgba(74, 59, 47, 0.08), inset 0 0 0 3px rgba(255, 255, 255, 0.55);
}
.sc-portrait svg { width: 56px; height: 56px; transition: transform .5s var(--spring); }
.sc-vcard:hover .sc-portrait svg { transform: rotate(-6deg) scale(1.08); }
.sc-portrait .sc-emoji { font-size: 34px; line-height: 1; }
.sc-sil { background: rgba(74, 59, 47, 0.06); box-shadow: inset 0 2px 4px rgba(74, 59, 47, 0.1); }
.sc-sil svg * { fill: #d8cab1 !important; }
.sc-sil svg [fill="none"] { fill: none !important; }
.sc-sil svg [stroke] { stroke: #d8cab1 !important; }
.sc-sil svg { opacity: .9; }
.sc-sil::after {
  content: '?'; position: absolute; right: -3px; bottom: -3px; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; background: var(--paper-hi); color: var(--ink-soft);
  font: 700 14px/1 var(--f-head); box-shadow: 0 2px 5px rgba(52, 38, 72, 0.2);
}
.sc-vtext { display: flex; flex-direction: column; min-width: 0; padding-top: 2px; }
.sc-vname { font-family: var(--f-head); font-weight: 600; font-size: 18px; line-height: 1.1; }
.sc-unknown .sc-vname { color: var(--ink-faint); letter-spacing: .12em; }
.sc-vblurb { font-size: 12.5px; line-height: 1.38; color: var(--ink-soft); margin-top: 3px; font-weight: 600; text-wrap: pretty; }
.sc-unknown .sc-vblurb { font-style: italic; }
.sc-vstatus { margin-top: auto; padding-top: 7px; font-size: 11.5px; font-weight: 800; display: flex; align-items: center; gap: 6px; color: var(--ink-soft); }
.sc-vstatus.sc-here { color: #5f8f3e; }
.sc-live { width: 8px; height: 8px; border-radius: 50%; background: #7fae55; animation: sc-pulse 2s infinite; }
.sc-away { width: 8px; height: 8px; border-radius: 50%; background: rgba(74, 59, 47, 0.2); }
.sc-new {
  position: absolute; top: -8px; right: 14px; box-shadow: 0 3px 8px -3px rgba(207, 114, 72, 0.7); font-size: 9.5px; font-weight: 900; letter-spacing: .1em;
  background: var(--accent); color: #fffaf1; padding: 3px 7px 2px; border-radius: 999px; animation: sc-pop .5s var(--spring) .4s both;
}
.sc-journal-foot { margin-top: 22px; text-align: center; font-family: var(--f-head); font-style: italic; color: var(--ink-soft); font-size: 15px; }

/* help */
.sc-help .sc-sheet { width: min(740px, calc(100vw - 32px)); }
.sc-help-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px 26px; padding-top: 6px; }
.sc-help-col h4 { font-family: var(--f-head); font-style: italic; font-weight: 600; font-size: 17px; margin: 10px 0 8px; }
.sc-keyrow { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 13.5px; font-weight: 600; }
.sc-keyrow .sc-keys { flex: none; min-width: 72px; display: flex; gap: 4px; align-items: center; }
.sc-kbd {
  display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; padding: 0 6px;
  border-radius: 7px; background: var(--paper-hi); color: var(--ink); font: 800 11px/1 var(--f-body);
  box-shadow: inset 0 -2px 0 rgba(74, 59, 47, 0.16), 0 0 0 1px rgba(74, 59, 47, 0.14);
}
.sc-kbd svg { width: 16px; height: 16px; }
.sc-kbd.sc-mouse { padding: 0 3px; }
.sc-help-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 22px; padding-top: 16px; border-top: 1.5px dashed rgba(74, 59, 47, 0.16); }
.sc-help-foot p { margin: 0; font-size: 12.5px; color: var(--ink-soft); font-weight: 600; max-width: 330px; }
.sc-btn {
  height: 38px; padding: 0 16px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 13.5px; background: var(--paper-lo); color: var(--ink); transition: transform .35s var(--spring), background .2s;
}
.sc-btn svg { width: 16px; height: 16px; }
.sc-btn:hover { transform: translateY(-2px); background: #eadcc1; }
.sc-btn:active { transform: scale(.95); }
.sc-btn.sc-danger { background: #f5d9cb; color: #a44e2a; }
.sc-btn.sc-danger:hover { background: #f0c8b4; }
.sc-btn.sc-primary { background: var(--leaf); color: #fffaf1; box-shadow: inset 0 -2px 0 rgba(40, 70, 30, 0.2); }
.sc-confirm { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; animation: sc-pop .4s var(--spring) both; }
.sc-confirm span { font-weight: 800; font-size: 13px; color: #a44e2a; }

/* ---------------------------------------------------------------- toasts */
.sc-toasts {
  position: absolute; top: 18px; left: 50%; transform: translateX(-50%); z-index: 15;
  display: flex; flex-direction: column; align-items: center; gap: 10px; width: min(410px, calc(100vw - 32px));
}
.sc-discover {
  position: relative; width: 100%; display: flex; gap: 14px; align-items: center; padding: 14px 20px 16px 14px; border-radius: 26px;
  animation: sc-drop-in .75s var(--spring) both; cursor: pointer;
}
.sc-discover.sc-leaving, .sc-note.sc-leaving { animation: sc-rise-out .45s ease-in both; }
.sc-discover .sc-portrait { width: 78px; height: 78px; animation: sc-float 3s ease-in-out infinite; }
.sc-discover .sc-portrait svg { width: 64px; height: 64px; animation: sc-portrait-pop .8s var(--spring) .15s both; }
.sc-discover .sc-portrait::before {
  content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2.5px solid var(--accent);
  animation: sc-ring 1.3s ease-out .2s both;
}
.sc-discover-title { font-family: var(--f-head); font-size: 20px; font-weight: 600; line-height: 1.15; margin: 2px 0 3px; letter-spacing: -.01em; text-wrap: balance; }
.sc-discover-blurb { font-size: 13px; color: var(--ink-soft); font-weight: 600; line-height: 1.35; text-wrap: pretty; }
.sc-discover-foot { margin-top: 6px; font-size: 11px; font-weight: 800; color: var(--ink-soft); display: flex; gap: 6px; align-items: center; }
.sc-discover-foot kbd { font: 800 10px/1 var(--f-body); background: var(--paper-lo); border-radius: 5px; padding: 3px 5px; box-shadow: inset 0 -1.5px 0 rgba(74, 59, 47, 0.18); }
.sc-timer { position: absolute; left: 26px; right: 26px; bottom: 7px; height: 3px; border-radius: 3px; background: var(--accent); opacity: .3; transform-origin: left; animation: sc-shrink linear forwards; }
.sc-confetti {
  position: absolute; left: 36px; top: 36px; width: 7px; height: 4px; border-radius: 1.5px; opacity: 0;
  animation: sc-confetti 1.3s cubic-bezier(.15, .8, .3, 1) both;
}
@keyframes sc-confetti {
  0% { opacity: 0; transform: translate(0, 0) rotate(0deg) scale(.4); }
  12% { opacity: 1; }
  70% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx), calc(var(--dy) + 18px)) rotate(var(--r)) scale(1); }
}
.sc-spark { position: absolute; width: 14px; height: 14px; color: #f2c14e; pointer-events: none; animation: sc-twinkle 1.6s ease-in-out infinite both; }
.sc-spark svg { width: 100%; height: 100%; }
.sc-note {
  display: flex; align-items: center; gap: 9px; padding: 6px 16px 6px 6px; border-radius: 999px; max-width: 100%;
  font-size: 13.5px; font-weight: 700; animation: sc-drop-in .6s var(--spring) both;
}
.sc-note-ic { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--tint, var(--paper-lo)); color: var(--accent-deep); }
.sc-note-ic svg { width: 24px; height: 24px; }
.sc-note-ic.sc-small svg { width: 15px; height: 15px; }

/* season banner */
.sc-banner {
  position: absolute; left: 50%; top: 17%; transform: translate(-50%, 0); z-index: 12; text-align: center;
  padding: 50px 120px 56px; pointer-events: none; opacity: 0; white-space: nowrap;
  background: radial-gradient(closest-side, rgba(251, 245, 233, 0.9), rgba(251, 245, 233, 0.72) 45%, rgba(251, 245, 233, 0.3) 75%, rgba(251, 245, 233, 0) 100%);
}
.sc-banner.sc-show { animation: sc-banner 5.4s var(--soft) both; }
.sc-banner-ic { display: flex; justify-content: center; margin-bottom: 6px; }
.sc-banner-ic svg { width: 40px; height: 40px; animation: sc-spin-in 1.4s var(--spring) both; }
.sc-banner-emoji { font-size: 44px; line-height: 1; display: block; animation: sc-spin-in 1.4s var(--spring) both; filter: drop-shadow(0 4px 10px rgba(251, 245, 233, 0.9)); }
.sc-banner-title {
  font-family: var(--f-head); font-style: italic; font-weight: 500; font-size: clamp(34px, 5.2vw, 58px); line-height: 1.05; letter-spacing: -.02em; color: var(--ink);
  text-shadow: 0 0 22px rgba(251, 245, 233, 0.95), 0 0 6px rgba(251, 245, 233, 0.9), 0 2px 0 rgba(255, 255, 255, 0.6);
}
.sc-banner-line { margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 12px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; color: #6f5b49;
  text-shadow: 0 0 12px rgba(251, 245, 233, 1), 0 0 4px rgba(251, 245, 233, 1); }
.sc-banner-line::before, .sc-banner-line::after { content: ''; width: 34px; height: 1.5px; background: currentColor; opacity: .4; border-radius: 2px; }

/* ---------------------------------------------------------------- hover readout */
.sc-hover {
  position: absolute; left: 0; top: 0; z-index: 14; pointer-events: none; display: flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 8px; border-radius: 16px; max-width: 380px; opacity: 0;
  transition: opacity .2s ease; will-change: transform, opacity;
}
.sc-hover.sc-show { opacity: 1; }
.sc-hover-ic { width: 32px; height: 32px; flex: none; border-radius: 11px; display: grid; place-items: center; background: var(--tint, var(--paper-lo)); color: var(--c, var(--ink)); }
.sc-hover-ic svg { width: 19px; height: 19px; }
.sc-hover-main { font-weight: 800; font-size: 13px; line-height: 1.2; display: flex; gap: 6px; align-items: center; }
.sc-hover-main em { font-style: normal; font-size: 10.5px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: #fffaf1; background: var(--accent); border-radius: 999px; padding: 2px 6px 1px; }
.sc-hover-sub { font-size: 12px; color: var(--ink-soft); font-weight: 600; line-height: 1.3; margin-top: 1px; white-space: nowrap; }

/* ---------------------------------------------------------------- onboarding */
.sc-onboard {
  position: absolute; left: 18px; bottom: 18px; width: 300px; padding: 18px 18px 14px 18px; border-radius: 26px;
  animation: sc-rise-in .9s var(--spring) .6s backwards; transition: opacity .6s ease, transform .6s var(--soft);
}
.sc-onboard.sc-gone { opacity: 0; transform: translateY(16px) scale(.96); pointer-events: none; }
.sc-onboard .sc-close { top: 12px; right: 12px; width: 30px; height: 30px; }
.sc-onboard .sc-close svg { width: 14px; height: 14px; }
.sc-onboard h3 { font-family: var(--f-head); font-weight: 600; font-size: 19px; line-height: 1.15; margin: 3px 30px 10px 0; letter-spacing: -.01em; }
.sc-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.sc-step { display: flex; gap: 10px; align-items: center; font-size: 13.5px; font-weight: 700; padding: 4px 0; transition: color .3s; }
.sc-step-ic {
  position: relative; width: 28px; height: 28px; flex: none; border-radius: 10px; display: grid; place-items: center;
  background: var(--paper-lo); color: var(--ink-soft); transition: background .35s, color .35s, transform .45s var(--spring);
}
.sc-step-ic svg { width: 17px; height: 17px; }
.sc-step-ic .sc-check { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transform: scale(.4); transition: opacity .25s, transform .45s var(--spring); }
.sc-step.sc-done .sc-step-ic { background: var(--leaf); color: #fffaf1; transform: rotate(-8deg); }
.sc-step.sc-done .sc-step-ic > svg { opacity: 0; }
.sc-step.sc-done .sc-check { opacity: 1; transform: none; }
.sc-step.sc-done .sc-step-t { color: var(--ink-soft); text-decoration: line-through; text-decoration-color: rgba(74, 59, 47, 0.35); text-decoration-thickness: 1.5px; }
.sc-step .sc-step-k { margin-left: auto; font-size: 11px; color: var(--ink-faint); font-weight: 800; }
.sc-step.sc-wait .sc-step-ic { animation: sc-breathe 2.4s ease-in-out infinite; }
.sc-onboard-foot { margin-top: 10px; font-size: 11.5px; color: var(--ink-soft); font-weight: 700; display: flex; gap: 6px; align-items: center; }

/* ---------------------------------------------------------------- photo mode hint */
.sc-photo-hint {
  position: absolute; left: 50%; bottom: 22px; transform: translate(-50%, 10px); z-index: 16; pointer-events: none;
  padding: 8px 16px; border-radius: 999px; font-size: 12.5px; font-weight: 800; color: #fffaf1;
  background: rgba(40, 32, 56, 0.42); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; transition: opacity .6s ease, transform .6s var(--spring); display: flex; gap: 8px; align-items: center;
}
.sc-photo-hint kbd { font: 900 11px/1 var(--f-body); background: rgba(255, 250, 241, 0.9); color: #4a3b2f; border-radius: 5px; padding: 3px 6px; }
.sc-photo-hint.sc-show { opacity: 1; transform: translate(-50%, 0); }
.sc-photo-hint.sc-dim { opacity: .0; }

/* ---------------------------------------------------------------- keyframes */
@keyframes sc-bounce { 0% { transform: none; } 30% { transform: translateY(-6px) rotate(-8deg) scale(1.18); } 60% { transform: translateY(1px) scale(.95); } 100% { transform: none; } }
@keyframes sc-drop-in { from { opacity: 0; transform: translateY(-18px) scale(.92); } to { opacity: 1; transform: none; } }
@keyframes sc-rise-in { from { opacity: 0; transform: translate(var(--tx, 0), 22px) scale(.94); } to { opacity: 1; transform: translate(var(--tx, 0), 0); } }
.sc-dock { --tx: -50%; }
@keyframes sc-rise-out { to { opacity: 0; transform: translateY(-14px) scale(.94); } }
@keyframes sc-card-in { from { opacity: 0; transform: translateY(14px) rotate(var(--tilt, 0deg)) scale(.96); } to { opacity: 1; transform: rotate(var(--tilt, 0deg)); } }
@keyframes sc-pop { from { opacity: 0; transform: scale(.5); } to { opacity: 1; transform: none; } }
@keyframes sc-twinkle { 0%, 100% { opacity: 0; transform: scale(.2) rotate(0deg); } 45% { opacity: 1; transform: scale(1) rotate(60deg); } 70% { opacity: .7; transform: scale(.8) rotate(90deg); } }
@keyframes sc-ring { from { transform: scale(.7); opacity: .8; } to { transform: scale(1.45); opacity: 0; } }
@keyframes sc-float { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-3px) rotate(2deg); } }
@keyframes sc-portrait-pop { 0% { transform: scale(.2) rotate(-30deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes sc-pulse { 0% { box-shadow: 0 0 0 0 rgba(127, 174, 85, 0.6); } 70% { box-shadow: 0 0 0 7px rgba(127, 174, 85, 0); } 100% { box-shadow: 0 0 0 0 rgba(127, 174, 85, 0); } }
@keyframes sc-shrink { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@keyframes sc-wiggle { 0% { transform: none; } 20% { transform: rotate(-8deg) scale(1.12); } 40% { transform: rotate(6deg) scale(1.08); } 60% { transform: rotate(-4deg) scale(1.04); } 80% { transform: rotate(2deg); } 100% { transform: none; } }
@keyframes sc-banner {
  0% { opacity: 0; transform: translate(-50%, 16px) scale(.97); filter: blur(6px); }
  16% { opacity: 1; transform: translate(-50%, 0) scale(1); filter: blur(0); }
  80% { opacity: 1; transform: translate(-50%, -2px); filter: blur(0); }
  100% { opacity: 0; transform: translate(-50%, -12px); filter: blur(4px); }
}
@keyframes sc-spin-in { from { transform: rotate(-120deg) scale(.3); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes sc-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1060px) {
  .sc-toasts { top: 164px; }
}
@media (max-width: 700px) {
  .sc-time { top: 10px; left: 10px; gap: 9px; padding: 8px 12px 8px 8px; border-radius: 26px; }
  .sc-dial { width: 70px; height: 70px; }
  .sc-season-name { font-size: 18px; }
  .sc-time-sub { font-size: 11.5px; }
  .sc-time-info { gap: 6px; }
  .sc-round { width: 27px; height: 27px; }
  .sc-seg button { height: 21px; min-width: 28px; padding: 0 5px; font-size: 11px; }
  .sc-seg-knob { height: 21px; }
  .sc-seasons button { width: 27px; height: 25px; }
  .sc-seasons button svg { width: 17px; height: 17px; }
  .sc-topright { top: 10px; right: 10px; flex-direction: column; align-items: flex-end; gap: 7px; }
  .sc-pill { height: 42px; padding: 0 14px 0 9px; font-size: 15px; }
  .sc-icon-btn { width: 42px; height: 42px; }
  .sc-dock { bottom: max(12px, env(safe-area-inset-bottom)); gap: 3px; padding: 6px; border-radius: 26px; }
  .sc-tool { width: 64px; height: 64px; border-radius: 20px; }
  .sc-dock-blob { top: 6px; width: 64px; height: 64px; border-radius: 20px; }
  .sc-tool .sc-tool-ic { width: 34px; height: 34px; }
  .sc-toasts { top: 122px; left: 10px; transform: none; width: calc(100% - 74px); align-items: flex-start; }
  .sc-sheet { width: calc(100vw - 20px); max-height: calc(100% - 28px); border-radius: 24px; }
  .sc-sheet-head { padding: 20px 20px 12px; }
  .sc-sheet-body { padding: 4px 18px 22px; }
  .sc-title { font-size: 26px; }
  .sc-cards { grid-template-columns: 1fr; gap: 12px; }
  .sc-onboard { left: 10px; right: 10px; width: auto; bottom: 100px; padding: 12px 14px 10px; border-radius: 22px; }
  .sc-onboard h3 { font-size: 16px; margin: 2px 30px 6px 0; }
  .sc-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 10px; }
  .sc-step { padding: 2px 0; font-size: 12px; gap: 7px; line-height: 1.2; }
  .sc-step .sc-step-k, .sc-onboard-foot { display: none; }
  .sc-step-ic { width: 22px; height: 22px; border-radius: 7px; }
  .sc-step-ic svg { width: 14px; height: 14px; }
  .sc-banner { top: 24%; padding: 34px 30px 38px; white-space: normal; width: 100%; }
  .sc-banner-line { letter-spacing: .1em; font-size: 10.5px; }
  .sc-hover { max-width: 250px; }
}
@media (max-height: 620px) and (min-width: 701px) {
  .sc-onboard { width: 440px; padding: 12px 16px 10px; }
  .sc-onboard h3 { font-size: 16px; margin-bottom: 6px; }
  .sc-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; }
  .sc-step { padding: 2px 0; font-size: 12.5px; }
  .sc-step .sc-step-k, .sc-onboard-foot { display: none; }
  .sc-step-ic { width: 22px; height: 22px; }
}
@media (max-width: 380px) {
  .sc-seasons button { width: 24px; }
}
/* ---------- desktop: the "more" group sits inline ---------- */
.sc-more-btn { display: none; }
.sc-more { display: contents; }
/* ---------- compact screens (phone portrait & short landscape): keep the garden visible ---------- */
@media (max-width: 700px), (max-height: 500px) {
  /* time: slim pill; tap the text to expand */
  .sc-time { top: max(10px, env(safe-area-inset-top)); left: 10px; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 999px; align-items: center; }
  .sc-dial { width: 42px; height: 42px; }
  .sc-time-info { flex-direction: row; align-items: center; gap: 10px; }
  .sc-time-text { cursor: pointer; user-select: none; -webkit-user-select: none; }
  .sc-season-name { font-size: 15px; }
  .sc-season-name::after { content: ''; display: inline-block; width: 5px; height: 5px; margin: 0 0 3px 7px; border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor; transform: rotate(45deg); opacity: .45; transition: transform .3s var(--spring); }
  .sc-time-sub { font-size: 11px; margin-top: 1px; }
  .sc-time .sc-seg, .sc-time .sc-seasons { display: none; }
  .sc-time .sc-round { width: 30px; height: 30px; }
  .sc-time.sc-expanded { border-radius: 24px; padding: 8px 12px 8px 8px; align-items: flex-start; z-index: 17; }
  .sc-time.sc-expanded .sc-dial { width: 56px; height: 56px; }
  .sc-time.sc-expanded .sc-time-info { flex-direction: column; align-items: flex-start; gap: 7px; }
  .sc-time.sc-expanded .sc-seg, .sc-time.sc-expanded .sc-seasons { display: flex; }
  .sc-time.sc-expanded .sc-season-name::after { transform: translateY(3px) rotate(-135deg); }

  /* top-right: journal pill + "⋯" dropdown */
  .sc-topright { top: max(10px, env(safe-area-inset-top)); right: 10px; flex-direction: row; align-items: center; gap: 6px; }
  .sc-topright.sc-more-open { z-index: 17; }
  .sc-pill { height: 40px; padding: 0 12px 0 7px; font-size: 14px; }
  .sc-pill .sc-paw { width: 26px; height: 26px; }
  .sc-icon-btn { width: 40px; height: 40px; }
  .sc-icon-btn svg { width: 19px; height: 19px; }
  .sc-more-btn { display: grid; }
  .sc-more { display: flex; flex-direction: column; gap: 7px; position: absolute; top: calc(100% + 8px); right: 0;
    opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.94); transform-origin: top right;
    transition: opacity .2s ease, transform .35s var(--spring), visibility 0s linear .2s; }
  .sc-topright.sc-more-open .sc-more { opacity: 1; visibility: visible; transform: none; transition: opacity .2s ease, transform .35s var(--spring), visibility 0s; }
  .sc-topright.sc-more-open .sc-more-btn { background: var(--paper-lo); }

  /* toasts: slim one-line banners under the top bar */
  .sc-toasts { top: calc(max(10px, env(safe-area-inset-top)) + 54px); left: 10px; right: 10px; width: auto; transform: none; align-items: stretch; gap: 6px; }
  .sc-discover { gap: 10px; padding: 7px 14px 7px 7px; border-radius: 20px; }
  .sc-discover .sc-portrait { width: 42px; height: 42px; animation: none; }
  .sc-discover .sc-portrait svg { width: 34px; height: 34px; }
  .sc-discover .sc-eyebrow { font-size: 9.5px; }
  .sc-discover-title { font-size: 15px; margin: 1px 0 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .sc-discover-blurb, .sc-discover-foot, .sc-discover .sc-timer { display: none; }
  .sc-note { padding: 7px 12px; font-size: 12.5px; }

  /* onboarding: one step at a time, as a chip above the tools */
  .sc-onboard { left: 10px; right: 10px; width: fit-content; max-width: calc(100% - 20px); margin: 0 auto;
    bottom: calc(max(10px, env(safe-area-inset-bottom)) + 76px); padding: 6px 38px 6px 7px; border-radius: 999px; }
  .sc-onboard .sc-eyebrow, .sc-onboard h3, .sc-onboard-foot, .sc-step .sc-step-k { display: none; }
  .sc-steps { display: block; }
  .sc-step { padding: 0; font-size: 13px; gap: 8px; animation: sc-pop .45s var(--spring) both; }
  .sc-step.sc-done, .sc-step:not(.sc-done) ~ .sc-step { display: none; }
  .sc-step-ic { width: 26px; height: 26px; border-radius: 50%; }
  .sc-step-ic svg { width: 15px; height: 15px; }
  .sc-onboard .sc-close { top: 50%; right: 7px; width: 24px; height: 24px; margin-top: -12px; }
  .sc-onboard .sc-close svg { width: 11px; height: 11px; }

  /* tool dock: a little smaller */
  .sc-dock { bottom: max(10px, env(safe-area-inset-bottom)); gap: 2px; padding: 5px; border-radius: 24px; }
  .sc-tool { width: 58px; height: 58px; border-radius: 19px; }
  .sc-dock-blob { top: 5px; width: 58px; height: 58px; border-radius: 19px; }
  .sc-tool .sc-tool-ic { width: 29px; height: 29px; }
  .sc-tool-label { font-size: 10.5px; }
  .sc-tool kbd { display: none; }

  .sc-banner { top: 30%; }
}
@media (max-height: 500px) {
  /* short landscape: tuck the onboarding chip to the left of the dock */
  .sc-onboard { left: 10px; right: auto; margin: 0; bottom: max(10px, env(safe-area-inset-bottom)); }
  .sc-toasts { left: 50%; right: auto; width: min(420px, calc(100% - 20px)); transform: translateX(-50%); }
}
@media (max-width: 420px) { .sc-pill small { display: none; } .sc-pill { padding: 0 11px 0 7px; } }
.sc-jtabs { display: flex; gap: 6px; margin-top: 12px; }
.sc-jtab { padding: 7px 16px; border-radius: 999px; font: 800 13px/1 var(--f-body); color: var(--ink-soft); background: var(--paper-lo); transition: background .2s, color .2s, transform .3s var(--spring); }
.sc-jtab:hover { transform: translateY(-1px); color: var(--ink); }
.sc-jtab.sc-on { background: var(--ink); color: var(--paper-hi); }
.sc-portrait .sc-q { font: 700 30px var(--f-head); color: rgba(74, 59, 47, 0.28); }
/* wonders tab */
.sc-wcards { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.sc-wcard { min-height: 150px; }
.sc-wcard.sc-fest { background: linear-gradient(160deg, #fff6e2, #fde9d6); box-shadow: inset 0 -2.5px 0 rgba(120, 88, 58, 0.07), 0 0 0 2px rgba(229, 143, 101, 0.45), 0 10px 22px -12px rgba(207, 114, 72, 0.6); }
.sc-wcard.sc-fest .sc-portrait { animation: sc-breathe 2.4s ease-in-out infinite; }
.sc-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.sc-chip {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px 3px 4px; border-radius: 999px;
  font-size: 11.5px; font-weight: 800; color: var(--ink-soft); background: rgba(74, 59, 47, 0.06);
}
.sc-chip i { font-style: normal; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: var(--paper-hi); }
.sc-chip.sc-ok { color: #4f7f33; background: rgba(127, 174, 85, 0.16); }
.sc-chip.sc-ok::after { content: '✓'; font-weight: 900; margin-left: 1px; }
/* ---------------------------------------------------------------- sound panel */
.sc-sound-pop {
  position: absolute; top: 76px; right: 16px; width: 300px; padding: 16px 18px 12px; border-radius: 24px; z-index: 18;
  opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.98); transform-origin: 90% 0;
  transition: opacity .2s ease, transform .35s var(--spring), visibility 0s linear .2s; pointer-events: none;
}
.sc-sound-pop.sc-open { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition: opacity .2s ease, transform .35s var(--spring); }
.sc-sound-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.sc-sound-title { font-family: var(--f-head); font-weight: 600; font-size: 20px; }
.sc-sound-hint { font-size: 11.5px; font-weight: 800; color: var(--ink-faint); margin-left: 2px; }
.sc-sound-hint kbd { font: 800 10px/1 var(--f-body); color: var(--ink-soft); background: rgba(74, 59, 47, 0.08); border-radius: 5px; padding: 2px 5px; }
.sc-switch { margin-left: auto; position: relative; width: 44px; height: 26px; border-radius: 999px; background: rgba(74, 59, 47, 0.18); transition: background .25s ease; flex: none; }
.sc-switch i { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fffaf1;
  box-shadow: 0 2px 4px rgba(40, 30, 50, 0.3); transition: transform .3s var(--spring); }
.sc-switch.sc-on { background: var(--leaf); }
.sc-switch.sc-on i { transform: translateX(18px); }
.sc-vol-row { display: grid; grid-template-columns: 24px 70px 1fr 38px; align-items: center; gap: 8px; padding: 6px 0; transition: opacity .25s ease; }
.sc-sound-pop.sc-muted .sc-vol-row { opacity: .4; }
.sc-vol-ic { width: 22px; height: 22px; color: var(--ink-soft); display: grid; place-items: center; }
.sc-vol-ic svg { width: 18px; height: 18px; }
.sc-vol-label { font-size: 13.5px; font-weight: 800; }
.sc-vol-val { font-size: 12px; font-weight: 800; color: var(--ink-soft); text-align: right; font-variant-numeric: tabular-nums; }
.sc-range { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; margin: 0; pointer-events: auto; }
.sc-range:focus { outline: none; }
.sc-range::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: linear-gradient(90deg, var(--leaf) var(--p, 100%), rgba(74, 59, 47, 0.14) var(--p, 100%)); }
.sc-range::-moz-range-track { height: 6px; border-radius: 999px; background: rgba(74, 59, 47, 0.14); }
.sc-range::-moz-range-progress { height: 6px; border-radius: 999px; background: var(--leaf); }
.sc-range::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -6px; border-radius: 50%; background: #fffaf1;
  box-shadow: 0 0 0 2px var(--leaf), 0 2px 5px rgba(40, 30, 50, 0.3); transition: transform .2s var(--spring); }
.sc-range::-moz-range-thumb { width: 16px; height: 16px; border: 0; border-radius: 50%; background: #fffaf1; box-shadow: 0 0 0 2px var(--leaf), 0 2px 5px rgba(40, 30, 50, 0.3); }
.sc-range:active::-webkit-slider-thumb { transform: scale(1.15); }
.sc-range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--accent), 0 2px 5px rgba(40, 30, 50, 0.3); }
@media (max-width: 700px) { .sc-sound-pop { top: 66px; right: 10px; width: min(300px, calc(100vw - 20px)); } }
.sc-settings-pop { width: 320px; }
.sc-set-row { display: flex; align-items: center; gap: 14px; padding: 8px 0 6px; }
.sc-set-text { flex: 1; min-width: 0; }
.sc-set-label { font-size: 14px; font-weight: 800; }
.sc-set-sub { font-size: 12px; font-weight: 600; color: var(--ink-soft); margin-top: 2px; line-height: 1.35; }
@media (max-width: 700px) { .sc-settings-pop { width: min(320px, calc(100vw - 20px)); } }
/* ---------------------------------------------------------------- sharing nudges */
.sc-share-pill .sc-paw { background: var(--leaf); }
.sc-share-pill .sc-paw svg { width: 15px; height: 15px; }
.sc-share-label { font-size: 15px; }
.sc-share-pill.sc-glow { animation: sc-wiggle .9s var(--spring), sc-share-glow 1.6s ease-in-out .2s 5; }
@keyframes sc-share-glow { 0%, 100% { box-shadow: var(--shadow), 0 0 0 0 rgba(127, 174, 85, 0); } 50% { box-shadow: var(--shadow), 0 0 0 7px rgba(127, 174, 85, 0.35); } }
@media (max-width: 700px) { .sc-share-label { display: none; } .sc-share-pill { padding: 0 8px; } }
.sc-note.sc-act { pointer-events: auto; display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 12px; row-gap: 8px; }
.sc-note.sc-act .sc-note-btn { grid-column: 2; justify-self: start; margin-left: 0; }
.sc-note-btn {
  display: inline-flex; align-items: center; gap: 6px; margin-left: auto; height: 32px; padding: 0 13px; border-radius: 999px;
  background: var(--leaf); color: #fffaf1; font-weight: 800; font-size: 13px; box-shadow: inset 0 -2px 0 rgba(40, 70, 30, 0.2);
  transition: transform .3s var(--spring);
}
.sc-note-btn svg { width: 14px; height: 14px; }
.sc-note-btn:hover { transform: translateY(-1px) scale(1.04); }
.sc-photo-share {
  position: absolute; left: 50%; bottom: calc(max(22px, env(safe-area-inset-bottom)) + 58px); transform: translateX(-50%);
  display: none; gap: 10px; z-index: 30; pointer-events: auto; white-space: nowrap;
}
.sc-photo-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 999px;
  font-weight: 800; font-size: 15px; color: var(--ink); transition: transform .3s var(--spring);
}
.sc-photo-btn:hover { transform: translateY(-2px); }
.sc-photo-btn svg { width: 18px; height: 18px; }
.sc-photo-btn:disabled { opacity: .7; }
.sc-photo-done { padding: 0 16px; color: var(--ink-soft); }
.sc-ui.sc-photo .sc-photo-share { display: flex; animation: sc-rise-in .6s var(--spring) .3s backwards; --tx: -50%; }
@media (hover: none) and (pointer: coarse) {
  .sc-photo-hint { display: none; }
  .sc-photo-share { bottom: max(22px, env(safe-area-inset-bottom)); }
}
.sc-share-moment { margin: 2px 0 6px; padding: 10px 14px; border-radius: 14px; background: #f9e3d4; color: #a4532a; font-weight: 800; font-size: 14px; }
.sc-share-moment:empty { display: none; }
.sc-photo-share-btn { width: 100%; justify-content: center; margin-top: 12px; height: 42px; }
.sc-lantern-line { display: inline; }
.sc-lantern-dots { display: inline-flex; gap: 5px; margin-left: 8px; vertical-align: middle; }
.sc-lantern-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(74, 59, 47, 0.14); }
.sc-lantern-dots i.sc-on { background: #f07a5f; box-shadow: 0 0 6px rgba(240, 122, 95, 0.7); }
/* ---------------------------------------------------------------- share & visiting */
.sc-share .sc-sheet { width: min(520px, calc(100vw - 32px)); }
.sc-field { display: flex; flex-direction: column; gap: 7px; margin-top: 14px; }
.sc-field > span { font-size: 11px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.sc-input {
  height: 42px; border: 0; border-radius: 14px; padding: 0 14px; min-width: 0;
  font: 700 15px/1 var(--f-body); color: var(--ink); background: var(--paper-hi);
  box-shadow: inset 0 2px 3px rgba(74, 59, 47, 0.1), 0 0 0 1.5px rgba(74, 59, 47, 0.12);
  user-select: text; -webkit-user-select: text; pointer-events: auto;
}
.sc-input:focus { outline: none; box-shadow: inset 0 2px 3px rgba(74, 59, 47, 0.1), 0 0 0 2.5px var(--leaf); }
.sc-input::placeholder { color: var(--ink-faint); }
.sc-link-row { display: flex; gap: 8px; align-items: center; }
.sc-link-row .sc-link-in { flex: 1; font-size: 12.5px; font-weight: 600; color: var(--ink-soft); text-overflow: ellipsis; }
.sc-link-row .sc-btn { height: 42px; flex: none; }
.sc-btn.sc-done { background: #5f8f3e; }
.sc-share-title { margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--ink-soft); font-style: italic; font-family: var(--f-head); }
.sc-share-lanterns {
  display: flex; align-items: center; gap: 10px; margin-top: 20px; padding-top: 16px; border-top: 1.5px dashed rgba(74, 59, 47, 0.16);
  font-size: 13px; font-weight: 700; color: var(--ink-soft);
}
.sc-paste-row { margin-top: 12px; }
.sc-paste-row .sc-input { flex: 1; font-size: 13px; }
.sc-paste-msg { min-height: 0; margin-top: 6px; font-size: 12.5px; font-weight: 700; color: #a44e2a; }
.sc-paste-msg:empty { display: none; }
.sc-lantern-ic { width: 30px; height: 30px; flex: none; animation: sc-float 3s ease-in-out infinite; }
.sc-lantern-ic svg { width: 100%; height: 100%; }
.sc-ui.sc-visiting .sc-dock, .sc-ui.sc-visiting .sc-hover, .sc-ui.sc-visiting .sc-onboard,
.sc-ui.sc-visiting .sc-share-btn, .sc-ui.sc-visiting .sc-home-btn { display: none !important; }
.sc-visit {
  position: absolute; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); transform: translateX(-50%);
  display: flex; align-items: center; gap: 14px; padding: 12px 12px 12px 14px; border-radius: 28px;
  max-width: calc(100vw - 24px); animation: sc-rise-in .8s var(--spring) .3s backwards; --tx: -50%;
}
.sc-visit-ic {
  width: 46px; height: 46px; flex: none; border-radius: 50%; display: grid; place-items: center; color: #5f8f3e;
  background: #e6f0d2; box-shadow: inset 0 -2px 0 rgba(74, 59, 47, 0.08);
}
.sc-visit-ic svg { width: 26px; height: 26px; }
.sc-visit[data-state="placing"] .sc-visit-ic, .sc-visit[data-state="hung"] .sc-visit-ic { background: #f9d6c4; animation: sc-float 2.6s ease-in-out infinite; }
.sc-visit-text { min-width: 0; }
.sc-visit-main { font-family: var(--f-head); font-weight: 600; font-size: 18px; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-visit-main b { font-weight: 700; font-style: italic; }
.sc-visit-sub { font-size: 12.5px; font-weight: 600; color: var(--ink-soft); margin-top: 2px; }
.sc-visit-actions { display: flex; gap: 8px; align-items: center; flex: none; }
.sc-visit .sc-btn { height: 42px; }
.sc-visit .sc-btn svg { width: 19px; height: 19px; }
.sc-visit .sc-btn.sc-icon-only { width: 42px; padding: 0; justify-content: center; }
.sc-visit .sc-sign { width: 150px; }
.sc-visit.sc-shake { animation: sc-shake .45s ease; }
@keyframes sc-shake { 0%, 100% { transform: translateX(-50%); } 20% { transform: translateX(calc(-50% - 7px)); } 40% { transform: translateX(calc(-50% + 6px)); } 60% { transform: translateX(calc(-50% - 4px)); } 80% { transform: translateX(calc(-50% + 2px)); } }
@media (max-width: 760px) {
  .sc-visit { flex-wrap: wrap; justify-content: center; gap: 10px; padding: 10px 12px 12px; border-radius: 24px; width: calc(100vw - 20px); bottom: max(10px, env(safe-area-inset-bottom)); }
  .sc-visit-ic { width: 38px; height: 38px; }
  .sc-visit-ic svg { width: 22px; height: 22px; }
  .sc-visit-text { flex: 1; }
  .sc-visit-main { font-size: 16px; }
  .sc-visit-sub { font-size: 11.5px; }
  .sc-visit-actions { width: 100%; flex-wrap: wrap; justify-content: center; }
  .sc-visit .sc-sign { flex: 1 1 100%; width: auto; }
  .sc-visit .sc-btn { height: 40px; }
  .sc-link-row { flex-wrap: wrap; }
  .sc-link-row .sc-link-in { flex: 1 1 100%; }
  .sc-link-row .sc-btn { flex: 1; justify-content: center; }
}
@media (hover: none) and (pointer: coarse) {
  .sc-hover { display: none; }
  /* iOS zooms the whole page into any text field under 16px */
  .sc-ui .sc-input, .sc-ui .sc-paste-row .sc-input, .sc-ui .sc-link-row .sc-link-in { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .sc-ui *, .sc-ui *::before, .sc-ui *::after { animation-duration: .01s !important; animation-iteration-count: 1 !important; transition-duration: .01s !important; }
}

/* ==== menu stylesheet (gj) ==== */

.sc-ui.sc-menu-open .sc-layer { opacity: 0; visibility: hidden; transition: opacity .45s var(--soft), visibility 0s linear .45s; }
.sc-ui.sc-menu-open .sc-layer * { pointer-events: none !important; }
.sc-menu { position: absolute; inset: 0; z-index: 50; pointer-events: auto; display: flex; align-items: center;
  opacity: 0; visibility: hidden; transition: opacity .7s var(--soft), visibility 0s linear .7s; }
.sc-menu.sc-open { opacity: 1; visibility: visible; transition: opacity .7s var(--soft), visibility 0s; }
.sc-menu-veil { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(251,245,233,.9) 0%, rgba(251,245,233,.72) 26%, rgba(251,245,233,0) 58%); }
.sc-menu-panel { position: relative; margin-left: clamp(28px, 8vw, 120px); max-width: 420px; }
.sc-menu-panel > * { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--soft), transform .8s var(--soft); }
.sc-menu.sc-open .sc-menu-panel > * { opacity: 1; transform: none; }
.sc-menu.sc-open .sc-menu-panel > *:nth-child(2) { transition-delay: .08s; }
.sc-menu.sc-open .sc-menu-panel > *:nth-child(3) { transition-delay: .16s; }
.sc-menu.sc-open .sc-menu-panel > *:nth-child(4) { transition-delay: .26s; }
.sc-menu.sc-open .sc-menu-panel > *:nth-child(5) { transition-delay: .36s; }
.sc-menu-mark { width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; color: #fffaf1;
  background: var(--leaf); box-shadow: 0 8px 22px -8px rgba(60, 90, 40, .55), inset 0 -3px 0 rgba(40, 70, 30, .2); }
.sc-menu-mark svg { width: 30px; height: 30px; }
.sc-menu-title { font-family: var(--f-head); font-weight: 600; font-size: clamp(50px, 7vw, 80px); line-height: .92;
  letter-spacing: -.03em; margin: 18px 0 10px; color: var(--ink); }
.sc-menu-tag { font-size: 17px; line-height: 1.45; font-weight: 600; color: var(--ink-soft); margin: 0 0 30px; text-wrap: pretty; }
.sc-menu-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.sc-menu-btn { display: inline-flex; align-items: center; gap: 12px; min-width: 250px; padding: 14px 22px 14px 16px;
  border-radius: 20px; background: var(--paper-hi); color: var(--ink); font: 800 17px/1.15 var(--f-body); text-align: left;
  box-shadow: 0 10px 26px -14px rgba(74, 59, 47, .55), 0 1px 0 rgba(255,255,255,.8) inset; transition: transform .35s var(--spring), background .2s, box-shadow .3s; }
.sc-menu-btn:hover { transform: translateY(-2px) scale(1.015); box-shadow: 0 14px 30px -14px rgba(74, 59, 47, .6); }
.sc-menu-btn:active { transform: scale(.97); }
.sc-menu-btn .sc-mi { width: 36px; height: 36px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--paper-lo); }
.sc-menu-btn .sc-mi svg { width: 20px; height: 20px; }
.sc-menu-btn small { display: block; font-size: 13px; font-weight: 700; color: var(--ink-soft); margin-top: 3px; }
.sc-menu-btn.sc-primary { background: var(--leaf); color: #fffaf1; box-shadow: 0 12px 28px -12px rgba(60, 90, 40, .7), inset 0 -3px 0 rgba(40, 70, 30, .22); }
.sc-menu-btn.sc-primary:hover { background: var(--leaf-hi); }
.sc-menu-btn.sc-primary .sc-mi { background: rgba(255, 250, 241, .22); }
.sc-menu-btn.sc-primary small { color: rgba(255, 250, 241, .85); }
.sc-menu-btn.sc-quiet { min-width: 0; padding: 10px 18px 10px 12px; font-size: 15px; background: rgba(255, 250, 241, .7); }
.sc-menu-btn.sc-quiet .sc-mi { width: 28px; height: 28px; border-radius: 9px; }
.sc-menu-confirm { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 16px;
  background: #f5d9cb; color: #a44e2a; font-weight: 800; font-size: 14px; animation: sc-pop .4s var(--spring) both; }
.sc-menu-confirm span { flex-basis: 100%; margin-bottom: 4px; }
.sc-menu-foot { margin-top: 30px; font-size: 13px; font-weight: 700; color: var(--ink-faint); }
.sc-menu-foot kbd { font: 800 11px/1 var(--f-body); padding: 3px 6px; border-radius: 6px; background: var(--paper-lo); color: var(--ink-soft); }
@media (max-width: 700px) {
  .sc-menu { align-items: flex-end; }
  .sc-menu-veil { background: linear-gradient(0deg, rgba(251,245,233,.95) 0%, rgba(251,245,233,.86) 30%, rgba(251,245,233,0) 54%); }
  .sc-menu-panel { margin: 0 22px 34px; max-width: none; }
  .sc-menu-title { margin-top: 12px; }
  .sc-menu-tag { font-size: 15px; margin-bottom: 20px; }
  .sc-menu-btn { min-width: 0; width: 100%; }
  .sc-menu-btn.sc-quiet { width: auto; }
  .sc-menu-mark { display: none; }
  .sc-menu-foot { display: none; }
}


/* ==== poke / quip stylesheet (fO) ==== */

.sc-poke {
  position: absolute; left: 0; top: 0; z-index: 15; pointer-events: none;
  display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 7px; border-radius: 14px;
  opacity: 0; will-change: transform, opacity; transform: translate3d(-999px, -999px, 0);
  transition: opacity .16s ease;
}
.sc-poke.sc-show { opacity: 1; }
.sc-poke-ic {
  width: 28px; height: 28px; flex: none; border-radius: 10px; display: grid; place-items: center;
  background: var(--tint, var(--paper-lo)); font-size: 17px; line-height: 1;
  transform: scale(.7) rotate(-8deg); transition: transform .42s var(--spring);
}
.sc-poke.sc-show .sc-poke-ic { transform: none; }
.sc-poke-name { font-weight: 800; font-size: 13px; line-height: 1.15; white-space: nowrap; }
.sc-poke-hint {
  font-size: 9.5px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-faint);
  margin-left: 2px; white-space: nowrap;
}
.sc-quip {
  position: absolute; left: 0; top: 0; z-index: 16; pointer-events: none; will-change: transform, opacity;
  padding: 6px 12px 7px; border-radius: 14px; font-weight: 800; font-size: 13.5px; line-height: 1.15;
  white-space: nowrap; opacity: 0; transform: translate3d(-999px, -999px, 0);
}
.sc-quip > i { display: block; font-style: normal; animation: sc-quip-pop .5s var(--spring) both; transform-origin: 50% 120%; }
.sc-quip::after {
  content: ''; position: absolute; left: 50%; bottom: -5px; width: 11px; height: 11px; margin-left: -5.5px;
  background: var(--paper); transform: rotate(45deg); border-radius: 2px;
  box-shadow: 3px 3px 5px -3px rgba(52, 38, 72, 0.3);
}
.sc-quip.sc-out { opacity: 0 !important; transition: opacity .5s ease; }
@keyframes sc-quip-pop { from { transform: scale(.4) translateY(6px); } to { transform: none; } }
@media (hover: none) and (pointer: coarse) { .sc-poke { display: none; } }


