/* Daydeck, Dusk look: one dark sky, a warm sun, one solid sun-coloured button per screen.
   Text sizes follow Apple's standard styles (34 / 22 / 20 / 17 / 15 / 13 / 12 / 11), never scaled.
   Spacing 4 / 8 / 16 / 24 / 40. Corners: sheet 26, card 16, button 14 (pills are fully round), field 12. */
:root {
  --sky1: #24262b; --sky2: #141518; --sky3: #08090a;
  --ink: #efede9; --ink2: #cfcac1; --dim: #a9a59d; --faint: #8d8981;
  --sun: #f2c08f; --gold: #e3c486; --on-sun: #1d1e22;
  --fill: rgba(239, 237, 233, .10); --fill2: rgba(239, 237, 233, .06);
  --edge: 20px; --top: calc(env(safe-area-inset-top, 0px) + 16px); --bot: calc(env(safe-area-inset-bottom, 0px) + 16px);
  --ease: cubic-bezier(.32, .72, 0, 1); --spring: cubic-bezier(.22, 1, .36, 1);
  --glow: 242 192 143;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { height: 100%; overflow: hidden; background: var(--sky3); }
@media (display-mode: standalone) { html { min-height: min(100lvh, calc(100% + env(safe-area-inset-top, 0px))); } }
html.standalone { min-height: min(100lvh, calc(100% + env(safe-area-inset-top, 0px))); }
body {
  position: fixed; inset: 0; margin: 0; color: var(--ink);
  background: linear-gradient(180deg, var(--sky1) 0%, var(--sky2) 60%, var(--sky3) 100%);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
  font-size: 17px; line-height: 1.4; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; overscroll-behavior: none;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; touch-action: manipulation; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
h1, h2, p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.col { display: flex; flex-direction: column; }

/* ---------- The sun: the one hero. It breathes (about 4s in, 5s out) and stays put between screens. ---------- */
#sun { position: fixed; left: var(--sx, 50%); top: var(--sy, 46%); width: 620px; height: 620px; margin: -310px 0 0 -310px; pointer-events: none;
  transition: transform .8s var(--ease), opacity .8s ease, left 1.6s var(--ease), top 1.6s var(--ease); }
/* Through the day the glow moves across the sky (set in main.js); check-ins bring it back to the middle. Once the day is done it dims. */
.in-flow #sun { left: 50%; top: 46%; }
.day-done:not(.in-flow) #sun { opacity: .6; }
#sun i { position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle, rgb(var(--glow) / .32) 0, rgb(var(--glow) / .11) 150px, rgb(var(--glow) / 0) 310px);
  animation: breathe 9s ease-in-out infinite; transition: background 0.4s; }
@keyframes breathe { 0%, 100% { transform: scale(.94); opacity: .85 } 44% { transform: scale(1.04); opacity: 1 } }
.in-flow #sun { transform: scale(1.3); }

/* ---------- Screens ---------- */
.screen { position: fixed; inset: 0; display: flex; flex-direction: column; gap: 16px;
  padding: var(--top) var(--edge) var(--bot); max-width: 520px; margin: 0 auto; }
#home { transition: opacity .42s var(--ease), transform .42s var(--ease); transform-origin: 50% 40%; }
.in-flow #home { opacity: 0; transform: translateY(16px); pointer-events: none; }
#dim { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); opacity: 0; pointer-events: none; transition: opacity .52s var(--ease); }

.top-line { font-size: 13px; color: #b9b5ad; }
.greet { font-size: 22px; font-weight: 500; transition: color 1.2s ease; }
.greet-line { font-size: 15px; color: var(--ink2); transition: color 1.2s ease; }
.greet-words { transition: opacity .4s ease; }
.greet-words.moment .greet { color: var(--gold); transition-duration: .3s; }
.greet-words.fading { opacity: 0; }
.home-mid { position: relative; flex-grow: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; }
.home-note { font-size: 15px; color: var(--ink2); }
.lifeline { font-size: 12px; color: #a29e96; text-align: center; text-decoration: none; padding: 4px 0; }

/* The peek at your week: a tiny mood line and one sentence. Tapping opens Your days. */
.peek { align-self: flex-start; display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 14px 0 12px;
  border-radius: 22px; background: rgba(239, 237, 233, .08); font-size: 15px; }
.peek .chev { color: var(--dim); }

/* Level (alex 2026-11-17): "Level 3" in gold and a gold bar under Your days. "Next pack at level 4" fades in when
   the bar is nearly full. The row fades out slowly while the card is rated, and back in once it settles. */
.lv-row { display: flex; align-items: center; gap: 12px; width: 100%; transition: opacity .8s ease; }
.lv-num { font-size: 15px; font-weight: 600; color: var(--gold); white-space: nowrap; }
.lv-track { position: relative; flex: 1; }
.lv-bar { position: relative; height: 6px; border-radius: 3px; background: rgba(239, 237, 233, .1); overflow: hidden; }
.lv-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 3px; background: var(--gold); box-shadow: 0 0 10px rgb(227 196 134 / .45); transition: width 1s var(--ease); }
.lv-next { font-size: 13px; color: var(--dim); white-space: nowrap; max-width: 0; margin-left: -12px; opacity: 0; overflow: hidden; transition: opacity 1.2s ease, max-width 1.2s var(--ease), margin-left 1.2s var(--ease); }
.lv-next.on { max-width: 200px; margin-left: 0; opacity: 1; }
/* While the bar slides, only its end brightens a little (alex 2026-11-17: no circle), then fades back. */
.lv-bar i::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 28px; border-radius: 0 3px 3px 0; background: linear-gradient(90deg, rgb(246 226 181 / 0), #f8e8c4); opacity: 0; transition: opacity .5s ease; }
.lv-bar i.moving::after { opacity: 1; transition-duration: .2s; }
/* The points a step gave, rising from the end of the bar and fading. */
.lv-plus { position: absolute; bottom: 10px; font-size: 15px; font-weight: 600; color: var(--gold); white-space: nowrap; pointer-events: none; translate: -50% 0; opacity: 0; animation: lv-plus 2.2s ease-out .2s both; }
@keyframes lv-plus { 0% { opacity: 0; transform: translateY(6px); } 25% { opacity: 1; transform: none; } 70% { opacity: 1; transform: translateY(-6px); } 100% { opacity: 0; transform: translateY(-12px); } }
@media (prefers-reduced-motion: reduce) { .lv-plus { animation: none; opacity: 1; } }
.in-ask .lv-row { opacity: 0; }
.lv-row.lv-back { animation: lv-back .8s ease both; }
@keyframes lv-back { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Buttons ---------- */
.btn-main { min-height: 52px; border-radius: 26px; background: var(--sun); color: var(--on-sun); font-size: 17px; font-weight: 600; width: 100%; transition: background .3s, color .3s; }
.btn-main[aria-disabled="true"] { background: rgba(239, 237, 233, .08); color: var(--faint); }
.btn-soft { min-height: 44px; padding: 0 16px; border-radius: 22px; background: rgba(239, 237, 233, .12); font-size: 15px; font-weight: 500; }
.btn-text { min-height: 44px; min-width: 44px; padding: 0 4px; color: var(--ink); font-size: 17px; }
/* Small helpers: round see-through icon buttons, and soft pills when words are needed. Never gold. */
.round { width: 44px; height: 44px; flex-shrink: 0; border-radius: 22px; background: rgba(239, 237, 233, .12); color: var(--ink); display: flex; align-items: center; justify-content: center; }
.btn-pill { min-height: 44px; padding: 0 16px; border-radius: 22px; background: rgba(239, 237, 233, .12); font-size: 15px; font-weight: 500; }
/* Slide the sun across to end your day. */
.slide { position: relative; height: 60px; border-radius: 30px; background: rgba(239, 237, 233, .10); display: flex; align-items: center; justify-content: center; touch-action: none; user-select: none; -webkit-user-select: none; }
.slide-words { padding-left: 44px; font-size: 17px; color: var(--ink2); pointer-events: none; }
.slide-knob { position: absolute; left: 4px; top: 4px; width: 52px; height: 52px; border-radius: 26px; background: var(--sun); box-shadow: 0 0 24px rgb(242 192 143 / .5); touch-action: none; }
.slide-knob:active { transform: none; }
.btn-main.soft { background: rgba(239, 237, 233, .12); color: var(--ink); }
.btn-quiet { min-height: 44px; color: var(--ink2); font-size: 15px; }
button:active { transform: scale(.97); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { min-height: 44px; padding: 0 16px; border-radius: 22px; background: var(--fill); font-size: 15px; }
.pill[aria-pressed="true"] { background: var(--ink); color: var(--on-sun); font-weight: 600; }
.pill.outline { background: transparent; box-shadow: inset 0 0 0 1px rgba(239, 237, 233, .2); color: var(--ink2); }
.pill.outline[aria-pressed="true"] { background: var(--ink); color: var(--on-sun); box-shadow: none; }
.plus { width: 44px; height: 44px; border-radius: 22px; background: rgb(242 192 143 / .14); color: var(--sun); font-size: 24px; line-height: 1; }
.more-wrap { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s var(--spring); }
.more-wrap.open { grid-template-rows: 1fr; }
.more-wrap > div { overflow: hidden; min-height: 0; }
.more-wrap .pill { opacity: 0; transform: translateY(8px) scale(.96); transition: opacity .22s ease, transform .26s var(--spring); }
.more-wrap.open .pill, .more-wrap.open .plus { opacity: 1; transform: none; }
.own-row { display: flex; gap: 8px; }
.own-row input { flex-grow: 1; min-width: 0; min-height: 44px; padding: 0 14px; border-radius: 12px; border: 0; background: var(--fill); font-size: 17px; }

/* ---------- Check-ins: the sun stays, the words change ---------- */
#flow { position: fixed; inset: 0; pointer-events: none; }
.in-flow #flow { pointer-events: auto; }
.step { position: absolute; inset: 0; max-width: 520px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px;
  padding: var(--top) var(--edge) var(--bot); transition: opacity .16s ease-out, transform .16s ease-out; }
/* "Settle": old words fade quickly, new ones settle in straight away with a tiny ripple (no waiting). */
.step .rise { opacity: 0; transform: translateY(8px); transition: opacity .38s var(--ease), transform .38s var(--ease); transition-delay: calc(var(--i, 0) * 30ms + 60ms); }
.step.in .rise { opacity: 1; transform: none; }
.step.out { opacity: 0; transform: translateY(-6px); pointer-events: none; }
.step-head { display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.step-head .where { font-size: 13px; color: #b9b5ad; }
.step-body { flex-grow: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
@media (max-height: 760px) { .step-body { justify-content: flex-start; gap: 12px; } .q { font-size: 22px; } }
.q { font-size: 28px; font-weight: 500; text-align: center; }
.q2 { font-size: 15px; color: var(--ink2); text-align: center; }

.arc-wrap { position: relative; width: 100%; max-width: min(350px, 36vh * 1.75); flex-shrink: 0; aspect-ratio: 350 / 200; align-self: center; }
.arc-wrap svg { width: 100%; height: 100%; touch-action: none; display: block; }
.arc-hours { position: absolute; left: 0; right: 0; top: 46%; text-align: center; font-size: 22px; font-weight: 300; pointer-events: none; }
.times { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.time { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 8px; min-height: 76px; border-radius: 16px; background: var(--fill2); }
.time span { font-size: 13px; color: var(--dim); }
.time b { font-size: 20px; font-weight: 500; padding: 4px 12px; border-radius: 10px; background: var(--fill); }
.time input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; }
.mood-word { font-size: 40px; font-weight: 600; text-align: center; min-height: 52px; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; margin: 0; }
input[type=range]::-webkit-slider-runnable-track { height: 8px; border-radius: 4px; background: linear-gradient(90deg, #4a4fa8, #6a6aa6, #8e87a0, #bdae8e, #a3b384, #7ab57a, #56b56c); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 32px; height: 32px; border-radius: 16px; background: var(--ink); margin-top: -12px; box-shadow: 0 2px 8px rgba(0, 0, 0, .4); }
input[type=range]::-moz-range-track { height: 8px; border-radius: 4px; background: linear-gradient(90deg, #4a4fa8, #6a6aa6, #8e87a0, #bdae8e, #a3b384, #7ab57a, #56b56c); }
input[type=range]::-moz-range-thumb { width: 32px; height: 32px; border-radius: 16px; background: var(--ink); border: 0; }
.ends { display: flex; justify-content: space-between; font-size: 13px; color: var(--dim); }

/* ---------- Sheets rise from the bottom ---------- */
.sheet-dim { position: fixed; inset: 0; background: rgba(8, 9, 10, .55); opacity: 0; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; max-width: 520px; margin: 0 auto; max-height: 92%; overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; gap: 16px; padding: 8px var(--edge) var(--bot); border-radius: 26px 26px 0 0; background: #24262b;
  transform: translateY(110%); will-change: transform; }
/* Position and dim are driven by the finger and a spring in js/ui.js. */
.grabber { align-self: center; width: 36px; height: 5px; border-radius: 3px; background: rgba(239, 237, 233, .25); flex-shrink: 0; }
.sheet h2 { font-size: 22px; font-weight: 600; }
.sub { font-size: 15px; color: var(--dim); }
.note { font-size: 13px; color: var(--dim); text-align: center; }

/* ---------- Your days ---------- */
#days { position: fixed; inset: 0; overflow: hidden; pointer-events: none; visibility: hidden; box-shadow: -8px 0 24px rgba(0, 0, 0, .35); will-change: transform; }
#days .edge { position: absolute; left: 0; top: 0; bottom: 0; width: 24px; touch-action: none; }
#days.open { pointer-events: auto; visibility: visible; }
#days .bg { position: absolute; inset: 0; background: linear-gradient(180deg, var(--sky1) 0%, var(--sky2) 30%, var(--sky3) 100%); }
#days .scroll { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
#days .page { max-width: 520px; margin: 0 auto; padding: var(--top) var(--edge) calc(var(--bot) + 24px); display: flex; flex-direction: column; gap: 16px; transform-origin: 20px 120px; }
.page-head { display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.big-title { font-size: 34px; font-weight: 600; }
.seg { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--fill2); }
.seg button { flex: 1; min-height: 40px; border-radius: 10px; font-size: 15px; color: var(--dim); }
.seg button[aria-selected="true"] { background: rgba(239, 237, 233, .14); color: var(--ink); font-weight: 600; }
.period { display: flex; align-items: center; justify-content: space-between; min-height: 44px; margin: 0 -10px; }
.period span { font-size: 17px; font-weight: 600; }
.period .round { background: none; font-size: 22px; color: var(--ink2); }
.period .round:active { background: var(--fill); }
.headline { font-size: 22px; font-weight: 500; line-height: 1.3; padding: 8px 0 4px; }
.sections { display: flex; flex-direction: column; gap: 24px; }
.card { padding: 16px; border-radius: 16px; background: rgba(239, 237, 233, .04); display: flex; flex-direction: column; gap: 8px; }
.card h3 { margin: 0; font-size: 15px; font-weight: 600; }
/* Your moods: the box holds its own Week / Month / Year switch, dates and summary. */
.card.moods { gap: 16px; }
.card.moods h3 { font-size: 20px; }
.card.moods .chart-wide { margin: 0 -8px; }
.prev { font-size: 15px; color: var(--ink2); }
.card .lead { font-size: 17px; line-height: 1.35; }
.chart { position: relative; width: 100%; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .lab { position: absolute; font-size: 11px; color: var(--dim); white-space: nowrap; line-height: 16px; }
.hit { position: absolute; top: 0; bottom: 0; }
.prow { display: flex; align-items: center; gap: 8px; min-height: 20px; }
.prow .l { width: 104px; flex-shrink: 0; font-size: 13px; color: var(--dim); }
.prow .bar { flex-grow: 1; height: 10px; border-radius: 5px; }
.prow .c { width: 64px; text-align: right; font-size: 13px; color: var(--ink2); }
.help { display: flex; flex-direction: column; gap: 8px; padding: 12px 0 4px; border-bottom: 1px solid rgba(239, 237, 233, .06); }
.help:last-child { border-bottom: 0; }
.tag-gold { align-self: flex-start; font-size: 12px; color: var(--gold); }
.arrange-row { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 4px 0 16px; border-radius: 16px; background: var(--fill2);
  user-select: none; -webkit-user-select: none; transition: transform .2s ease; }
.arrange-row.drag { background: rgba(239, 237, 233, .16); box-shadow: 0 8px 24px rgba(0, 0, 0, .4); transition: none; position: relative; z-index: 2; }
.arrange-row span:first-child { flex-grow: 1; }
.grip { touch-action: none; cursor: grab; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; font-size: 20px; color: var(--dim); }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border-radius: 16px; background: rgba(239, 237, 233, .08); font-size: 15px; }
.sq { width: 12px; height: 12px; border-radius: 3px; flex-shrink: 0; }

/* ---------- Notifications ---------- */
.notify-row { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 12px 0 16px; border-radius: 16px; background: var(--fill2); }
.notify-row > span { flex-grow: 1; font-size: 17px; }
.time-pill { min-height: 36px; padding: 0 10px; border-radius: 10px; border: 0; background: var(--fill); font-size: 17px; color: var(--ink); }
.time-pill:disabled { opacity: .4; }
.switch { position: relative; width: 51px; height: 31px; border-radius: 16px; background: rgba(239, 237, 233, .16); flex-shrink: 0; transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: var(--ink); transition: transform .2s var(--spring); }
.switch[aria-checked="true"] { background: var(--sun); }
.switch[aria-checked="true"]::after { transform: translateX(20px); }
.switch::before { content: ""; position: absolute; inset: -7px; }
.switch:disabled { opacity: .4; }

/* ---------- Settings: a full page that slides in from the right ---------- */
#settings { position: fixed; inset: 0; background: linear-gradient(180deg, var(--sky1) 0%, var(--sky2) 30%, var(--sky3) 100%);
  transform: translateX(100%); transition: transform .42s var(--ease); box-shadow: -12px 0 32px rgba(0, 0, 0, .35); }
.in-settings #settings { transform: none; }
.in-settings #home { transform: translateX(-24%); opacity: .4; pointer-events: none; }
.in-settings #sun { opacity: .3; }
.set-scroll { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.set-page { max-width: 520px; margin: 0 auto; padding: var(--top) var(--edge) calc(var(--bot) + 24px); display: flex; flex-direction: column; gap: 24px; }
.set-group { display: flex; flex-direction: column; gap: 8px; }
.set-head { margin: 0 0 0 16px; font-size: 13px; font-weight: 500; color: var(--dim); }
.set-card { border-radius: 16px; background: var(--fill2); display: flex; flex-direction: column; overflow: hidden; }
.set-line { height: 1px; margin-left: 16px; background: rgba(239, 237, 233, .08); }
.set-row { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 16px; width: 100%; text-align: left; font-size: 17px; color: var(--ink); text-decoration: none; }
.set-row:active { transform: none; background: var(--fill2); }
.set-toggle { gap: 12px; min-height: 56px; padding-right: 12px; }
.set-label { flex-grow: 1; min-width: 0; }
.set-toggle .time-pill { flex: 0 0 auto; width: 108px; }
#settings { z-index: 5; }
.sheet-host { position: relative; z-index: 10; }
.set-value { font-size: 15px; color: var(--dim); }
.set-chev { color: var(--faint); }
.set-foot { margin: 0 16px; font-size: 13px; color: var(--dim); }
.set-danger { justify-content: center; color: #d9b3a6; }

/* ---------- Test mode ---------- */
.testbar { position: fixed; left: 8px; right: 8px; bottom: calc(env(safe-area-inset-bottom, 0px) + 112px); display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; z-index: 50; }
.testbar button { min-height: 32px; padding: 0 10px; border-radius: 16px; background: rgba(239, 237, 233, .14); font-size: 12px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .15s !important; transition-delay: 0s !important; }
  .step .rise, .in-flow #home, .more-wrap .pill { transform: none !important; }
  .in-flow #sun { transform: none; }
  .in-settings #home { transform: none !important; }
}

/* Tester sheet */
.tlabel { font-size: 13px; color: var(--dim); }
.tlist { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; font-size: 15px; color: var(--ink2); }

/* ---------- Today's card ---------- */
/* Every card move uses one gentle ease-in-out curve, and moves overlap so nothing stops and starts. */
:root { --card-ease: cubic-bezier(.45, .05, .25, 1); }
.dcard { position: relative; display: block; width: 108px; height: 160px; perspective: 900px; color: var(--ink); text-align: left; padding: 0; }
.dcard:active { transform: none; }
.dcard .in { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .55s var(--card-ease); }
.dcard.up .in { transform: rotateY(180deg); }
.dcard .face { position: absolute; inset: 0; border-radius: 12px; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; }
/* Back "Rings" (alex 2026-11-13): the sun's glow in quiet rings, a small sun in the middle. */
.dcard .back { background: repeating-radial-gradient(circle at 50% 50%, transparent 0 6px, rgb(242 192 143 / .10) 6px 7px), radial-gradient(circle at 50% 50%, rgb(242 192 143 / .22), transparent 60%), linear-gradient(160deg, #2c2e34, #17181b);
  box-shadow: 0 0 0 1px rgba(239, 237, 233, .16), 0 2px 4px rgba(0, 0, 0, .35); }
.dcard .back::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: var(--sun); }
.dcard.big .back, .home-card .back { background: repeating-radial-gradient(circle at 50% 50%, transparent 0 9px, rgb(242 192 143 / .10) 9px 10px), radial-gradient(circle at 50% 50%, rgb(242 192 143 / .22), transparent 60%), linear-gradient(160deg, #2c2e34, #17181b); }
/* Face "Sunlit" (alex 2026-11-13): warm light falls on the top edge from the sun, with a fine gold rim. */
.dcard .front { transform: rotateY(180deg); padding: 8px; display: flex; flex-direction: column; gap: 4px;
  background: radial-gradient(130% 55% at 50% -8%, rgb(242 192 143 / .26), rgb(242 192 143 / .05) 55%, transparent 75%), linear-gradient(175deg, #2f3036, #1c1d21);
  box-shadow: 0 0 0 1px rgb(227 196 134 / .32), 0 0 44px rgb(242 192 143 / .18), 0 14px 30px rgba(0, 0, 0, .5); }
.dcard.sel .front { box-shadow: 0 0 0 2px var(--sun), 0 0 50px rgb(242 192 143 / .35), 0 14px 30px rgba(0, 0, 0, .5); }
.ctag { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 500; color: var(--ink2); }
.ctag i { width: 8px; height: 8px; border-radius: 2px; flex-shrink: 0; }
.dcard .task { font-size: 15px; font-weight: 600; line-height: 1.25; }
/* Pillar names stay on one line so the task always has five lines in the hand. */
.dcard .ctag { white-space: nowrap; }
.dcard:not(.big):not(.home-card) .ctag { gap: 4px; letter-spacing: -.01em; }
.dcard:not(.big):not(.home-card) .ctag i { width: 6px; height: 6px; }
.dcard .size { font-size: 11px; color: var(--dim); margin-top: auto; }
/* Cards grow with the screen (alex 2026-11-15): --k is set in main.js as screen width / 320, the width the card mockups
   were drawn at, so cards fill the same share as the approved mockups (x1.34 on a 430-wide iPhone 15 Pro Max).
   Only the cards scale, words on them included; everything else keeps Apple's sizes. */
.stage, .big-holder, .mini-deck { zoom: var(--k, 1); }
.home-card { zoom: calc(var(--k, 1) * 1.376); }   /* 280 wide on alex's phone (alex 2026-11-15) */
/* The hand: three cards, the middle one higher; the deck hides behind it. */
.stage { position: relative; height: 270px; width: 100%; }
.stage .hc { position: absolute; left: 50%; top: 56%; margin: -80px 0 0 -54px; transition: transform .45s var(--card-ease); }
/* The kept card: the task leads, why it helps sits quietly at the bottom. */
.big-holder { display: flex; justify-content: center; }
.dcard.big { width: 250px; height: 370px; }   /* every card fits without scrolling, "Back again" too (alex 2026-11-20); was 220 x 310 */
.dcard.big .face { border-radius: 16px; }
.dcard.big .front { padding: 20px; gap: 12px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }   /* long cards scroll inside (alex 2026-11-17) */
.dcard.big .front::-webkit-scrollbar { display: none; }
.dcard.big .front > * { flex-shrink: 0; }
.dcard.big .ctag { font-size: 12px; }
.dcard.big .task { font-size: 24px; }
.dcard.big .again { font-size: 12px; color: var(--gold); }
.dcard.big .why { margin-top: auto; font-size: 11px; line-height: 1.4; color: #7a766f; max-width: 88%; }
.dcard.big .src { font-size: 11px; color: #615e59; margin-top: -8px; }
.dcard.big .size { margin-top: 0; font-size: 12px; }
.dcard.turning .in { transform: rotateY(90deg); transition-duration: .28s; }
.helpers { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.helpers .btn-pill[aria-pressed="true"] { background: var(--ink); color: var(--on-sun); }
.mini { align-self: center; display: flex; flex-direction: column; gap: 4px; max-width: 300px; padding: 12px 16px; border-radius: 16px; background: var(--fill2); font-size: 17px; text-align: left; }
/* On home: the card floats where the sun is and sways; it turns with your finger (never on its own). */
.floater { animation: bob 7s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-8px) } }
.home-card { width: 150px; height: 210px; animation: sway 11s ease-in-out infinite; }
.home-card .front { padding: 12px; gap: 6px; border-radius: 16px; }
.home-card .back { border-radius: 16px; }
.home-card .task { font-size: 17px; }
/* "I did it" sits on the card's bottom row, beside its size. Soft, never gold. The card is zoomed, so sizes here are 1/1.85 of real. */
.home-card .card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.home-card .card-foot .size { margin-top: 0; }
.home-card .did { position: relative; min-height: 24px; padding: 0 10px; border-radius: 12px; background: rgba(239, 237, 233, .14); color: var(--ink); font-size: 9.5px; font-weight: 600; }
.home-card .did::after { content: ""; position: absolute; inset: -6px -4px; }   /* a bigger tap area than it looks */
.home-card .did:active { background: rgba(239, 237, 233, .24); }
/* Done: the card stays face up and steps back; a circle in its pillar's colour fills with a tick. */
.home-card.did .task { color: #8d8981; }
.home-card.did .ctag, .home-card.did .size { color: #77746e; }
.home-card.did .front { box-shadow: 0 0 0 1px rgb(227 196 134 / .18), 0 14px 30px rgba(0, 0, 0, .5); }
/* Why it helps, on the card's face (alex 2026-11-17, B1): the why line with the study at its end, one quiet pale grey
   block low on the card, empty space above it. Always 11pt on the phone, whatever the card's zoom. */
.home-card.info .task { font-size: 14px; }
.home-card .why { margin-top: auto; font-size: calc(11px / (var(--k, 1) * 1.376)); line-height: 1.4; color: #b8b4ad; }
.home-card .why .src { font-size: inherit; color: inherit; }
.home-card .why + .card-foot { margin-top: 6px; }
.home-card .task, .home-card .ctag, .home-card .size, .home-card .why { transition: color 1.4s ease, opacity .25s ease; }
.home-card.did .why { color: #77746e; }
.home-card .size.out { opacity: 0; }
/* What doing it felt like, in gold where the size was. It stays gold once the card is done. */
.home-card .felt-word { font-size: 9.5px; font-weight: 600; color: var(--gold); white-space: nowrap; transition: opacity .6s ease; }
.home-card .felt-word.enter { opacity: 0; }
.home-card .fresh-tick { animation: fill .5s var(--ease) both; }
.home-card .tick-done { width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.home-card.fresh .task { animation: settle 1.4s var(--ease) both; }
.home-card.fresh .tick-done { animation: fill .5s var(--ease) both; }
@keyframes settle { 0%, 35% { color: var(--ink) } 100% { color: #8d8981 } }
@keyframes fill { 0% { transform: scale(.4); opacity: 0 } 60% { transform: scale(1.12); opacity: 1 } 100% { transform: scale(1) } }
/* The back when the day ended without the card: a quiet "Back in the deck for another day". */
.home-card .back.marked { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; padding: 14px; text-align: center; }
.home-card .back.marked::after { display: none; }
.home-card .done-task { font-size: 8px; line-height: 1.35; color: #a9a59d; max-width: 85%; }
.home-card .dot { width: 10px; height: 10px; border-radius: 50%; background: rgb(242 192 143 / .5); }
/* A moment: the card lifts a little and glows, then settles. */
.lifter { transition: translate .8s var(--ease), filter 1s ease; }
.lifter.on { translate: 0 -12px; filter: drop-shadow(0 0 30px rgb(242 192 143 / .35)); }
@keyframes sway { 0%, 100% { transform: rotateY(-8deg) rotateZ(-1deg) } 50% { transform: rotateY(8deg) rotateZ(1deg) } }
/* Not done yet: a soft gold edge that breathes with the sun (about 4s in, 5s out). Goes once "I did it" is tapped. */
.home-card.todo.up .front, .home-card.todo:not(.up) .back, .home-card.todo.blank .front { animation: rim 9s ease-in-out infinite; }
@keyframes rim { 0%, 100% { box-shadow: 0 0 0 1px rgb(227 196 134 / .35), 0 0 10px rgb(242 192 143 / .15), 0 14px 30px rgba(0, 0, 0, .5) }
  44% { box-shadow: 0 0 0 1px rgb(227 196 134 / .75), 0 0 18px rgb(242 192 143 / .5), 0 0 44px rgb(242 192 143 / .25), 0 14px 30px rgba(0, 0, 0, .5) } }
@media (prefers-reduced-motion: reduce) { .home-card.todo.up .front, .home-card.todo:not(.up) .back, .home-card.todo.blank .front { animation: none; box-shadow: 0 0 0 1px rgb(227 196 134 / .6), 0 0 18px rgb(242 192 143 / .4), 0 14px 30px rgba(0, 0, 0, .5); } }
/* Face down, both sides are the back, so turning it never shows a blank face. */
.home-card.blank .front { background: repeating-radial-gradient(circle at 50% 50%, transparent 0 9px, rgb(242 192 143 / .10) 9px 10px), radial-gradient(circle at 50% 50%, rgb(242 192 143 / .22), transparent 60%), linear-gradient(160deg, #2c2e34, #17181b);
  box-shadow: 0 0 0 1px rgba(239, 237, 233, .16), 0 2px 4px rgba(0, 0, 0, .35); }
.home-card.blank .front::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: var(--sun); }
@media (prefers-reduced-motion: reduce) { .stage .hc { transition: none !important; } .dcard .in { transition: none !important; } .lifter.on { translate: none; } #sun { transition: none; } }

/* ---------- Choosing pillars and where you're at ---------- */
.pick-group { display: flex; flex-direction: column; gap: 8px; }
.pick-head { font-size: 13px; font-weight: 500; color: var(--dim); }
.pill.off, .mrow.off { opacity: .4; }
.pill { transition: background .2s, color .2s, opacity .2s; }
.said { font-size: 15px; color: var(--ink2); text-align: center; min-height: 21px; text-wrap: balance; }
.said b { color: var(--ink); font-weight: 600; }
.mrows { display: flex; flex-direction: column; gap: 8px; }
.mrow { min-height: 52px; padding: 8px 16px; border-radius: 16px; background: var(--fill2); text-align: left; font-size: 17px; transition: background .2s, color .2s, opacity .2s; }
.mrow[aria-pressed="true"] { background: var(--ink); color: var(--on-sun); font-weight: 600; }
.pick-text { width: 100%; padding: 12px 14px; border-radius: 12px; border: 0; background: var(--fill); font: inherit; font-size: 17px; color: var(--ink); resize: none; }
.mini-deck { position: relative; width: 120px; height: 178px; align-self: center; margin: 8px 0 16px; }
.mini-deck i { position: absolute; inset: 0; border-radius: 14px; background: linear-gradient(160deg, #3a3b40, #26272b); box-shadow: 0 0 0 1px rgba(239, 237, 233, .08); }
.mini-deck i:nth-child(1) { transform: translate(6px, 6px); } .mini-deck i:nth-child(2) { transform: translate(3px, 3px); }
.mini-deck i:nth-child(3) { background: linear-gradient(160deg, #4a4033, #2d2a26); box-shadow: 0 0 0 1px rgb(227 196 134 / .35), 0 12px 30px rgba(0, 0, 0, .45); }
.mini-deck i:nth-child(3)::after { content: ""; position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 24px rgb(242 192 143 / .6); }
.big-count { font-size: 34px; font-weight: 600; text-align: center; }

/* ---------- Going to sleep: bedtime button, sounds, night screen ---------- */
.btn-main.with-ico { display: flex; align-items: center; justify-content: center; gap: 8px; }
.from-btn { font-size: 13px; color: var(--gold); text-align: center; }
.step.night { background: rgba(5, 5, 6, .9); }
.snd-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; padding: 0 4px; }
.snd-head b { font-size: 15px; }
.snd-head span { font-size: 13px; color: var(--dim); }
.snd-list { border-radius: 16px; background: var(--fill2); overflow: hidden; }
.snd-row { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 0 16px; font-size: 17px; text-align: left; }
.snd-row + .snd-row { border-top: .5px solid rgba(239, 237, 233, .1); }
.snd-row[aria-pressed="true"] { background: rgb(242 192 143 / .12); }
.snd-state { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--sun); flex-shrink: 0; }
.snd-bars { display: inline-flex; gap: 2px; align-items: flex-end; height: 14px; }
.snd-bars i { width: 3px; height: 8px; border-radius: 1px; background: var(--sun); }
@media (prefers-reduced-motion: no-preference) {
  .snd-bars i { animation: snd 1.1s ease-in-out infinite; }
  .snd-bars i:nth-child(2) { animation-delay: .2s } .snd-bars i:nth-child(3) { animation-delay: .4s } .snd-bars i:nth-child(4) { animation-delay: .6s }
}
@keyframes snd { 0%, 100% { height: 4px } 50% { height: 14px } }
.night-mid { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; flex-grow: 1; }
.night-name { font-size: 22px; font-weight: 500; color: rgba(239, 237, 233, .8); }
.night-line { font-size: 15px; color: rgba(239, 237, 233, .5); }
.night-ctl { display: flex; justify-content: center; gap: 16px; margin-bottom: 40px; }
.night-btn { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 96px; color: rgba(239, 237, 233, .8); }
.night-ico { width: 56px; height: 56px; border-radius: 28px; background: rgba(239, 237, 233, .08); display: flex; align-items: center; justify-content: center; }
.night-btn[aria-expanded="true"] .night-ico { background: rgba(239, 237, 233, .2); }
.night-lab { font-size: 13px; color: rgba(239, 237, 233, .6); }
.night-foot { font-size: 13px; color: rgba(239, 237, 233, .35); text-align: center; min-height: 18px; }
.step.night.dark .step-head, .step.night.dark .step-body, .step.night.dark .night-ctl, .step.night.dark .night-foot { opacity: .12; transition: opacity 2s ease; }
.pop-catch { position: absolute; inset: 0; z-index: 4; }
.pop { position: absolute; z-index: 5; bottom: calc(var(--bot) + 150px); width: 250px; max-height: 64%; overflow-y: auto; border-radius: 14px; background: #3a3c42; box-shadow: 0 12px 40px rgba(0, 0, 0, .6); }
.pop-title { font-size: 13px; color: rgba(239, 237, 233, .55); padding: 10px 16px 6px; }
.pop-group { font-size: 13px; color: rgba(239, 237, 233, .55); padding: 10px 16px 4px; border-top: 6px solid rgba(0, 0, 0, .25); }
.pop-row { display: flex; width: 100%; align-items: center; justify-content: space-between; min-height: 44px; padding: 0 16px; font-size: 17px; text-align: left; border-top: .5px solid rgba(239, 237, 233, .1); }
.pop-tick { display: flex; width: 16px; }
/* One-time update note */
.update-text { font-size: 17px; line-height: 1.4; color: rgba(239, 237, 233, .75); }
.update-from { font-size: 15px; color: var(--gold); }
/* Testers only: thumbs on a card, "does it fit my pillar and mindset". Once answered, it's locked. */
.thumbs { position: absolute; right: 8px; bottom: 8px; display: flex; gap: 4px; }
.home-card .thumbs { top: 10px; bottom: auto; right: 10px; }
.thumb { position: relative; width: 22px; height: 22px; border-radius: 11px; background: rgba(239, 237, 233, .10); color: #a9a59d; display: flex; align-items: center; justify-content: center; }
.thumb::after { content: ""; position: absolute; inset: -8px -2px; }   /* a bigger tap area than it looks */
.thumb.dn svg { transform: scaleY(-1); }
.thumb[aria-pressed="true"] { background: var(--ink); color: var(--on-sun); }
.thumbs.locked .thumb[aria-pressed="false"] { opacity: .35; }
.thumb:disabled { cursor: default; }
.thumb:active { transform: none; }

/* "Not done yet": a small quiet line under a done card. */
.undo-slot { min-height: 44px; display: flex; justify-content: center; }
.undo-slot .undo { font-size: 13px; color: var(--dim); animation: undo-in .6s ease both; }
@keyframes undo-in { from { opacity: 0 } }
/* "How did doing it feel?" right after "I did it", on home (draw.js askFelt). One soft move: the question and pills
   rise in a little after the card starts shrinking, and leave together. */
.did-ask { position: absolute; left: 0; right: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; pointer-events: none;
  transition: transform .55s cubic-bezier(.4, 0, .2, 1); }
.did-ask.on { pointer-events: auto; }
.did-q { margin: 0; font-size: 17px; font-weight: 600; }
.did-ask .did-q, .did-ask > .col > .pills > .pill, .did-ask > .col > .btn-text, .did-ask .ok, .did-ask .later {
  opacity: 0; transform: translateY(12px) scale(.97); transition: opacity .5s ease, transform .7s cubic-bezier(.4, 0, .2, 1), background .2s, color .2s; }
.did-ask.on .did-q, .did-ask.on > .col > .pills > .pill, .did-ask.on > .col > .btn-text, .did-ask.on .ok, .did-ask.on .later { opacity: 1; transform: none; }
.did-ask.on .did-q { transition-delay: 420ms; }
.did-ask.on > .col > .pills > .pill { transition-delay: calc(470ms + var(--i, 0) * 35ms); }
.did-ask.on > .col > .btn-text { transition-delay: 620ms; }
.did-ask.on .ok { transition-delay: 650ms; }
.did-ask.on .later { transition-delay: 680ms; }
.did-ask.settled * { transition-delay: 0s !important; }
.did-ask.leaving *, .did-ask.leaving .more-wrap .pill { transition-delay: 0s !important; transition-duration: .3s !important; opacity: 0 !important; }
.did-ask > .col { width: 100%; }
.did-ask .more-wrap { margin-top: -8px; transition: grid-template-rows .55s cubic-bezier(.4, 0, .2, 1), margin-top .55s cubic-bezier(.4, 0, .2, 1); }
.did-ask .more-wrap.open { margin-top: 0; }
.did-ask > .col > .btn-text { margin-top: -4px; }
.did-ask .ok { min-height: 44px; padding: 0 28px; border-radius: 22px; background: var(--sun); color: var(--on-sun); font-size: 15px; font-weight: 600; }
.did-ask .later { margin-top: -8px; font-size: 15px; color: var(--ink2); }
.soft-gone { opacity: 0; pointer-events: none; transition: opacity .35s ease; }
.btn-main { transition: background .3s, color .3s, opacity .35s ease; }
@media (prefers-reduced-motion: reduce) { .did-ask, .did-ask * { transition: none !important; } .undo-slot .undo, .home-card .fresh-tick { animation: none; } }

/* Make your own card (alex 2026-11-17, look A): write straight onto a blank card; the pillar tints it, feelings land in gold. */
.dcard .size.own, .home-card .size.own { color: var(--gold); }
.home-card.own-make { animation: none; zoom: calc(var(--k, 1) * 1.2); align-self: center; }
.own-make .own-text { flex-grow: 1; width: 100%; resize: none; border: 0; padding: 0; margin: 0; background: transparent; color: var(--ink); font: inherit; font-size: 17px; font-weight: 600; line-height: 1.25; outline: none; }
.own-make .own-text::placeholder { color: #77746e; }
.own-make .card-foot .size { font-size: 11px; line-height: 1.3; }
.own-pil { display: inline-flex; align-items: center; gap: 8px; }
.own-pil .sq { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.own-btn { display: inline-flex; align-items: center; gap: 8px; padding: 0 20px; color: var(--sun); background: rgb(242 192 143 / .14); }
.own-btn span { font-size: 22px; line-height: 1; }
.own-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; font-size: 17px; }

/* ---------- Your levels: a path down the page (alex 2026-11-18). Opens from the level row on home. ---------- */
.lv-row.lv-tap { border-radius: 10px; min-height: 44px; margin: -8px 0; padding: 0; text-align: left; }
.lv-row.lv-tap:active { opacity: .7; }
#levels { position: fixed; inset: 0; z-index: 6; background: linear-gradient(180deg, var(--sky1) 0%, var(--sky2) 30%, var(--sky3) 100%);
  transform: translateX(100%); transition: transform .42s var(--ease); box-shadow: -12px 0 32px rgba(0, 0, 0, .35); }
.in-levels #levels { transform: none; }
.in-levels #home { transform: translateX(-24%); opacity: .4; pointer-events: none; }
.in-levels #sun { opacity: .3; }
.lp-scroll { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.lp-page { max-width: 520px; margin: 0 auto; padding: var(--top) var(--edge) calc(var(--bot) + 24px); display: flex; flex-direction: column; gap: 24px; }
.lp-head { display: flex; flex-direction: column; gap: 8px; }
.lp-line { display: flex; align-items: center; gap: 12px; }
.lp-num { font-size: 22px; font-weight: 600; color: var(--gold); white-space: nowrap; }
.lp-bar { flex: 1; height: 6px; border-radius: 3px; background: rgba(239, 237, 233, .1); overflow: hidden; }
.lp-bar i { display: block; height: 100%; border-radius: 3px; background: var(--gold); box-shadow: 0 0 10px rgb(227 196 134 / .45); }
.lp-sub { font-size: 15px; color: var(--dim); }
.lp-path { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.lp-step { position: relative; display: flex; gap: 16px; padding-bottom: 24px; }
.lp-step:last-child { padding-bottom: 0; }
.lp-rail { position: relative; flex: 0 0 20px; display: flex; justify-content: center; }
.lp-rail::after { content: ""; position: absolute; top: 22px; bottom: -26px; width: 2px; background: rgba(239, 237, 233, .12); }
.lp-step.lit .lp-rail::after { background: rgb(227 196 134 / .7); }
.lp-step:last-child .lp-rail::after { display: none; }
.lp-dot { position: relative; z-index: 1; margin-top: 4px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(239, 237, 233, .3); background: var(--sky2); }
.lp-step.lit .lp-dot { background: var(--gold); border-color: var(--gold); }
.lp-step.here .lp-dot { width: 20px; height: 20px; margin-top: 2px; background: var(--sun); border-color: var(--sun); box-shadow: 0 0 0 6px rgb(242 192 143 / .15), 0 0 24px rgb(242 192 143 / .6); }
.lp-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lp-n { font-size: 13px; color: var(--dim); }
.lp-step.here .lp-n { color: var(--gold); font-weight: 600; }
.lp-t { font-size: 17px; font-weight: 600; }
.lp-d { font-size: 15px; color: var(--ink2); }
.lp-step.soon .lp-t { color: var(--ink2); font-weight: 500; }
.lp-step.hide .lp-t { color: var(--faint); font-weight: 500; }
.lp-foot { font-size: 13px; color: var(--dim); }
@media (prefers-reduced-motion: reduce) { #levels { transition: opacity .15s ease; } .in-levels #home { transform: none; } }

/* ---------- A new thing's tip (alex 2026-11-18, "A"): home dims, the thing stays lit, a short tip beside it ---------- */
.tip-layer { position: fixed; inset: 0; z-index: 30; opacity: 0; transition: opacity .35s ease; }
.tip-layer.on { opacity: 1; }
.tip-layer.out { opacity: 0; pointer-events: none; }
.tip-hole { position: absolute; padding: 0; background: none; box-shadow: 0 0 0 2000px rgba(8, 9, 10, .66), 0 0 0 2px var(--gold), 0 0 28px rgb(242 192 143 / .55); }
.tip-box { position: absolute; left: var(--edge); right: var(--edge); max-width: 480px; padding: 16px; border-radius: 16px; background: #1f2024; box-shadow: 0 12px 40px rgba(0, 0, 0, .5); display: flex; flex-direction: column; gap: 8px; }
.tip-box::before { content: ""; position: absolute; left: var(--ax, 60px); width: 16px; height: 16px; background: #1f2024; transform: rotate(45deg); }
.tip-box.below::before { top: -7px; }
.tip-box.above::before { bottom: -7px; }
.tip-k { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); }
.tip-t { font-size: 17px; font-weight: 600; }
.tip-d { font-size: 15px; color: var(--ink2); }
.tip-ok { align-self: flex-end; min-height: 44px; padding: 0 20px; border-radius: 14px; background: var(--fill); font-size: 17px; font-weight: 500; }
.new-tag { margin-left: 6px; padding: 2px 8px; border-radius: 10px; background: var(--gold); color: var(--on-sun); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; vertical-align: 2px; }
@media (prefers-reduced-motion: reduce) { .tip-layer { transition: none; } }
