/* ARIRANG Singapore. Red is the era and its shows; purple (borahae) is whatever is yours.
   Fonts are Latin (and a few Hangul syllables) subsets under the SIL Open Font License. */

@font-face { font-family: Figtree; src: url(figtree.woff2) format("woff2"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: Unbounded; src: url(unbounded.woff2) format("woff2"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: "Noto Serif KR"; src: url(display.woff2) format("woff2"); font-weight: 200 900; font-display: swap; }

:root, .hero, .feat {
  color-scheme: dark;
  --ink: #0c0715; --plum: #1d1430; --plum-2: #2a1d45; --plum-3: #3a2a5e;
  --line: #ffffff17; --line-2: #b79cff38;
  --moon: #f7f2ff; --haze: #b9add4; --dim: #9a8cba;
  --red: #e3122a; --red-hi: #ff5a66; --red-lo: #8a0514;
  --bora: #b79cff; --bora-hi: #dccfff; --bora-mid: #8a5cf6; --bora-lo: #4a2aa3; --on-bora: #190a3c;
  /* the parts that flip with the theme: --veil draws on a surface, --tint is the purple wash, --key is a neutral button face */
  --veil: 255 255 255; --tint: 183 156 255; --lift: #ffffff14; --well: #0000003d; --off: #594d75;
  --bar: #0c0715c7; --bar-2: #1a1130d9; --scrim: #0c0715eb;
  --key: linear-gradient(#35265a, #2a1d47); --key-edge: #120a20;
  --glow-a: #43207c; --glow-b: #5a0f2c66; --shadow: #000; --drop: #000000b3;
  --r1: 10px; --r2: 16px; --r3: 24px;
  /* motion: a press is near-instant, a state change is quick, an entrance takes its time */
  --press: 90ms; --fast: 150ms; --med: 240ms; --slow: 420ms; --enter: 620ms;
  --ease: cubic-bezier(.2, .8, .2, 1); --out: cubic-bezier(.22, 1, .36, 1); --spring: cubic-bezier(.34, 1.56, .64, 1);
  --body: Figtree, "Noto Serif KR", system-ui, sans-serif;
  --display: Unbounded, Figtree, system-ui, sans-serif;
  --top-h: 56px; --tabs-h: 66px;
}

/* Light mode, switched by the sun button. Lilac morning; red and the lavender "yours" buttons stay as they are. */
html[data-theme=light] {
  color-scheme: light;
  --ink: #f1eaff; --plum: #fff; --plum-2: #fff; --plum-3: #e6dcff;
  --line: #2a1d451f; --line-2: #7c4df24d;
  --moon: #1a0f33; --haze: #54467a; --dim: #6f6192;
  --red-hi: #d90f26; --bora: #7c4df2; --bora-hi: #5a2bd0;
  --veil: 42 29 69; --tint: 124 77 242; --lift: #5b34c814; --well: #6d3fe017; --off: #c3b8dc;
  --bar: #f1eaffc7; --bar-2: #ffffffd9; --scrim: #f1eaffeb;
  --key: linear-gradient(#f6f1ff, #e6dbff); --key-edge: #bca8ea;
  --glow-a: #d6c2ff; --glow-b: #ffc4cf80; --shadow: #4a2aa35c; --drop: #3a1f8059;
}

*, ::before, ::after { box-sizing: border-box; }
html { background: var(--ink); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh; padding-bottom: calc(var(--tabs-h) + 30px + env(safe-area-inset-bottom));
  font: 400 16px/1.5 var(--body); color: var(--moon);
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1;
  background: radial-gradient(120% 55% at 50% -12%, var(--glow-a) 0%, transparent 62%), radial-gradient(70% 40% at 105% 105%, var(--glow-b), transparent 70%), var(--ink);
}
button, input { font: inherit; color: inherit; }
button, a { touch-action: manipulation; }
h1, h2, p { margin: 0; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Stands in for a photo where we have none of the venue. Night colours in both themes, as the photos are. */
.tile { display: grid; place-items: center; width: 100%; height: 100%; background: radial-gradient(95% 75% at 20% 8%, #8a5cf680, #0000 64%), linear-gradient(150deg, #3a2a5e, #1d1430); color: #dccfff; }
.tile .ic { width: 38%; max-width: 54px; height: auto; aspect-ratio: 1; stroke-width: 1.5; }
:focus-visible { outline: 2px solid var(--bora-hi); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ic { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic.land, .ic.fly, .ic.solid { fill: currentColor; stroke-width: 1; }
.ic.land { transform: rotate(135deg); }
.ic.fly { transform: rotate(45deg); }

#top, #app, #foot { max-width: 560px; margin-inline: auto; }

/* ---------- shell ---------- */

#top {
  position: sticky; top: 0; z-index: 15; max-width: none; height: calc(var(--top-h) + env(safe-area-inset-top)); padding: env(safe-area-inset-top) max(16px, 50% - 264px) 0;
  display: flex; align-items: center; gap: 6px;
  background: var(--bar); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  view-transition-name: top;
}
.brand {
  display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0; border: 0; background: none; cursor: pointer;
  font: 700 13px/1 var(--display); letter-spacing: .06em;
}
.brand span { font: 500 14px/1 var(--body); letter-spacing: 0; color: var(--haze); margin-left: -2px; }
.brand .dot { width: 13px; height: 13px; border-radius: 50%; background: radial-gradient(circle at 32% 28%, #ff8f8f, var(--red) 60%, var(--red-lo)); box-shadow: 0 0 12px #f0182daa; }
/* On home the header dot steps aside: the hero sun is the same object, and morphs into it when you leave. */
body[data-view=home] .brand .dot { display: none; }
body:not([data-view=home]) .brand .dot { view-transition-name: sun; }
.tripchip {
  display: flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 10px 0 9px; cursor: pointer;
  border: 1px solid var(--line-2); border-radius: 12px; background: rgb(var(--tint) / .1); color: var(--bora-hi); font: 600 14px/1 var(--body);
  transition: transform var(--press) var(--ease), background var(--fast);
}
.tripchip:active { transform: scale(.95); }
/* the sun button: light mode on or off. Lit, it turns the red of the ARIRANG sun. */
.sunbtn { display: grid; place-items: center; flex: none; width: 44px; height: 40px; margin-left: auto; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--lift); color: var(--haze); cursor: pointer; transition: transform var(--press) var(--ease), color var(--fast); }
.sunbtn .ic { width: 20px; height: 20px; transition: transform var(--slow) var(--spring); }
.sunbtn circle { transition: fill var(--fast); }
.sunbtn[aria-pressed=true] { color: var(--red); }
.sunbtn[aria-pressed=true] .ic { transform: rotate(90deg); }
.sunbtn[aria-pressed=true] circle { fill: currentColor; }
.sunbtn:active { transform: scale(.9); }
.brand { flex: 0 1 auto; min-width: 0; }
.brand span { min-width: 0; overflow: hidden; white-space: nowrap; }
@media (max-width: 385px) { .brand span { display: none; } }
.tripchip .ic { width: 17px; height: 17px; }

#foot { padding: 8px 20px 0; color: var(--dim); font-size: 12.5px; line-height: 1.55; }
body[data-view=ask] #foot { display: none; }
#foot summary { width: fit-content; padding: 13px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
#foot :is(p, ul) { margin: 0 0 8px; }
#foot ul { padding-left: 18px; }
#foot li { padding: 4px 0; }
#foot a { color: inherit; text-underline-offset: 3px; overflow-wrap: anywhere; }
/* the tip link: Home's footer and the end of a plan, nowhere else */
#foot .tipline { display: none; }
body[data-view=home] #foot .tipline { display: block; padding-top: 6px; }
.tipline a, .thanks a { padding: 15px 0; /* inline, so the tap area grows without pushing the lines apart */ color: var(--bora-hi); font-weight: 600; text-underline-offset: 3px; }
#foot .tipline a { color: var(--bora-hi); }
.thanks { margin-top: 18px; padding-top: 6px; border-top: 1px solid var(--line); }

#tabs {
  position: fixed; z-index: 20; left: 50%; bottom: calc(10px + env(safe-area-inset-bottom)); translate: -50% 0;
  width: min(100% - 20px, 460px); height: var(--tabs-h); padding: 6px;
  display: grid; grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--line); border-radius: 22px; background: var(--bar-2);
  backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: 0 18px 40px -12px var(--shadow), inset 0 1px 0 #ffffff1a;
  view-transition-name: tabs;
}
#tabs .thumb {
  position: absolute; top: 6px; bottom: 6px; left: 6px; width: calc((100% - 12px) / 5); border-radius: 16px;
  background: linear-gradient(rgb(var(--tint) / .24), rgb(var(--tint) / .1)); box-shadow: inset 0 1px 0 #ffffff33, inset 0 0 0 1px rgb(var(--tint) / .2);
  transform: translateX(calc(var(--i, 0) * 100%)); transition: transform var(--slow) var(--out), opacity var(--fast);
}
#tabs.none .thumb { opacity: 0; }
#tabs button {
  position: relative; display: grid; place-content: center; justify-items: center; gap: 4px; border: 0; border-radius: 16px; background: none;
  color: var(--haze); font: 600 12px/1 var(--body); cursor: pointer; transition: color var(--fast);
}
#tabs .ic { width: 22px; height: 22px; transition: transform var(--med) var(--spring), color var(--fast); }
#tabs button[aria-current] { color: var(--moon); }
#tabs button[aria-current] .ic { color: var(--bora-hi); transform: translateY(-1px) scale(1.1); }
#tabs button:active .ic { transform: scale(.84); }

/* ---------- type and page ---------- */

.page { padding: 4px 16px 20px; }
.title { font: 800 27px/1.12 var(--display); letter-spacing: -.02em; margin: 14px 0 8px; text-wrap: balance; }
.headline { font: 700 21px/1.2 var(--display); letter-spacing: -.02em; margin: 6px 0 10px; text-wrap: balance; }
h2 { font: 700 15px/1.25 var(--display); letter-spacing: -.01em; }
.title, .headline, h2, .chant { word-spacing: .14em; } /* Unbounded's own word space is tight at these sizes */
.lede { color: var(--haze); margin-bottom: 16px; max-width: 46ch; text-wrap: pretty; }
.quiet { color: var(--haze); font-size: 14.5px; }
.fine { color: var(--dim); font-size: 13px; margin: 16px 0; }
.warn { margin: 0 0 14px; padding: 12px 14px; border-radius: var(--r2); background: #e3122a24; border: 1px solid #ff5a6655; }
.empty { padding: 36px 8px; text-align: center; color: var(--haze); }
.card {
  margin-bottom: 14px; padding: 18px 16px; border: 1px solid var(--line); border-radius: var(--r3);
  background: linear-gradient(#ffffff0d, #ffffff03), var(--plum); box-shadow: inset 0 1px 0 #ffffff12, 0 14px 30px -22px var(--shadow);
}
.card > h2 { margin-bottom: 4px; }
.card > .quiet { margin-bottom: 12px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 8px; }
.actions .btn { flex: 1 1 150px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { padding: 4px 7px; border-radius: 6px; background: var(--lift); color: var(--haze); font: 700 11.5px/1 var(--body); white-space: nowrap; }
.tag.free { background: rgb(var(--tint) / .17); color: var(--bora-hi); }
.tag.stamp { background: none; outline: 1px dashed var(--bora); outline-offset: -1px; color: var(--bora-hi); }
.tag.hot { background: #e3122a33; color: #ffc4c9; }
.tag.glass { background: #0c071599; color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.tag.live { display: inline-flex; align-items: center; gap: 5px; background: var(--red); color: #fff; }
.tag.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: blink 1.6s var(--ease) infinite; }
.meta { display: flex; align-items: flex-start; gap: 6px; color: var(--haze); font-size: 13.5px; line-height: 1.35; }
.meta .ic { width: 15px; height: 15px; margin-top: 1.5px; }
.rise { animation: rise var(--enter) var(--out) both; animation-delay: calc(min(var(--i, 0), 9) * 45ms + 40ms); }
.still .rise { animation: none; }

/* ---------- buttons: raised keys that press down ---------- */

.btn {
  --face: linear-gradient(#ea2439, #d40d23); --edge: var(--red-lo); --fg: #fff; --glow: #f0182d73;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 20px;
  border: 0; border-radius: var(--r2); background: var(--face); color: var(--fg); cursor: pointer; user-select: none; text-decoration: none;
  font: 700 16px/1 var(--body); letter-spacing: .005em;
  box-shadow: inset 0 1px 0 #ffffff66, inset 0 -1px 0 #00000033, 0 4px 0 var(--edge), 0 14px 24px -10px var(--glow);
  transition: transform var(--press) var(--ease), box-shadow var(--press) var(--ease), filter var(--fast);
}
.btn:active { transform: translateY(3px); box-shadow: inset 0 1px 0 #ffffff40, inset 0 -1px 0 #00000033, 0 1px 0 var(--edge), 0 5px 10px -6px var(--glow); }
.btn .ic { width: 19px; height: 19px; stroke-width: 2.2; }
.btn.wide { width: 100%; }
.going { --face: linear-gradient(#cdb9ff, #a886ff); --edge: var(--bora-lo); --fg: var(--on-bora); --glow: #8a5cf680; margin: 4px 0; }
.btn.quiet, .going[aria-pressed=false] { --face: var(--key); --edge: var(--key-edge); --fg: var(--moon); --glow: #0000; }
.going[aria-pressed=true] .ic { fill: currentColor; }
.going.pop .ic { animation: heart 480ms var(--spring); }
.link {
  display: inline-flex; align-items: center; gap: 3px; min-height: 44px; padding: 0; border: 0; background: none; cursor: pointer;
  color: var(--bora-hi); font: 600 15px/1 var(--body);
}
.link .ic { width: 17px; height: 17px; transition: transform var(--fast) var(--ease); }
.link:active .ic { transform: translateX(4px); }
@media (hover: hover) {
  .btn:hover { filter: brightness(1.1); }
  .link:hover .ic { transform: translateX(4px); }
  .tripchip:hover { background: rgb(var(--tint) / .18); }
}

/* ---------- home ---------- */

.hero { position: relative; height: 296px; overflow-x: clip; cursor: pointer; user-select: none; touch-action: pan-y; } /* clip: the breathing glow must not widen the page */
.hero::before { content: ""; position: absolute; inset: -40px 0 60px; background: radial-gradient(closest-side at 50% 42%, #f0182d59, #f0182d00); pointer-events: none; animation: breathe 6s ease-in-out infinite; }
#ocean { position: absolute; inset: auto 0 0; width: 100%; height: 200px; -webkit-mask-image: linear-gradient(#0000, #000 30%, #000 80%, #0000); mask-image: linear-gradient(#0000, #000 30%, #000 80%, #0000); }
@media (min-width: 600px) {
  #ocean { -webkit-mask-image: linear-gradient(#0000, #000 30%, #000 80%, #0000), linear-gradient(90deg, #0000, #000 14%, #000 86%, #0000); mask-image: linear-gradient(#0000, #000 30%, #000 80%, #0000), linear-gradient(90deg, #0000, #000 14%, #000 86%, #0000); -webkit-mask-composite: source-in; mask-composite: intersect; }
}
.sun {
  position: absolute; left: 50%; top: 12px; width: 140px; height: 140px; margin-left: -70px; border-radius: 50%;
  display: grid; place-content: center; justify-items: center; gap: 7px; color: #fff;
  background: radial-gradient(circle at 32% 26%, #ff9a9a 0%, #f2394b 26%, #d70d23 62%, #9a0616 100%);
  box-shadow: inset 0 -12px 26px #6b0410b3, inset 0 6px 14px #ffffff59, 0 0 0 1px #ff6b7659, 0 0 50px 6px #f0182d80;
  view-transition-name: sun;
}
.sun b { font: 700 33px/1 "Noto Serif KR", serif; letter-spacing: .04em; text-shadow: 0 2px 0 #9a0616; }
.sun span { padding: 5px 8px; border-radius: 8px; background: #00000038; font: 700 12px/1 var(--display); letter-spacing: .02em; }
.boot .sun { animation: sunrise 1200ms var(--out) both; }
.boot #ocean { animation: fade 1500ms var(--ease) both; }
.boot .rise { animation-delay: calc(var(--i, 0) * 70ms + 420ms); }

.count { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: -4px; }
.count div { padding: 13px 4px 10px; border: 1px solid var(--line); border-radius: var(--r2); background: linear-gradient(#ffffff14, #ffffff05); box-shadow: inset 0 1px 0 #ffffff1a; text-align: center; overflow: hidden; }
.count b { display: block; font: 800 27px/1 var(--display); font-variant-numeric: tabular-nums; }
.count small { display: block; margin-top: 7px; color: var(--haze); font: 600 12px/1 var(--body); }
.count-what { margin: 10px 0 18px; text-align: center; color: var(--haze); }

.next {
  display: grid; grid-template-columns: 84px 1fr 20px; align-items: center; gap: 14px; width: 100%; margin-bottom: 14px; padding: 10px 12px 10px 10px;
  border: 1px solid var(--line-2); border-radius: var(--r3); background: linear-gradient(135deg, rgb(var(--tint) / .15), rgb(var(--tint) / .03)), var(--plum);
  text-align: left; cursor: pointer; transition: transform var(--fast) var(--ease);
}
.next:active { transform: scale(.975); }
.next-photo { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 18px; overflow: hidden; background: var(--plum-3); color: var(--bora-hi); }
.next-photo .ic { width: 30px; height: 30px; }
.next-body { display: grid; gap: 3px; min-width: 0; }
.next-body small { color: var(--bora-hi); font: 700 12.5px/1.2 var(--body); }
.next-body strong { font: 700 16px/1.25 var(--body); text-wrap: balance; }
.next > .ic { color: var(--haze); }

.rail-head { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; }
.rail { display: flex; gap: 12px; margin: 0 -16px; padding: 4px 16px 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: 16px; scrollbar-width: none; overscroll-behavior-x: contain; }
.rail::-webkit-scrollbar, .strip::-webkit-scrollbar, .quick::-webkit-scrollbar { display: none; }
.rc {
  position: relative; flex: none; width: 204px; height: 252px; padding: 14px; border: 0; border-radius: var(--r3); overflow: hidden; scroll-snap-align: start;
  display: grid; align-content: end; gap: 6px; text-align: left; color: #fff; background: var(--plum-2); cursor: pointer;
  transition: transform var(--fast) var(--ease);
}
.rc :is(img, .tile) { position: absolute; inset: 0; transition: transform var(--slow) var(--out); }
.rc::after { content: ""; position: absolute; inset: 0; background: linear-gradient(#0c071500 30%, #0c0715e6 88%); }
.rc > :not(img, .tile) { position: relative; z-index: 1; }
.rc .tags { position: absolute; top: 12px; left: 12px; }
.rc strong { font: 700 16px/1.22 var(--body); text-wrap: balance; }
.rc .meta { color: #ffffffc7; }
.rc:active { transform: scale(.96); }
@media (hover: hover) { .rc:hover img { transform: scale(1.04); } }

/* ---------- events: segmented filter and tickets ---------- */

.seg { position: relative; display: grid; grid-template-columns: repeat(var(--n), 1fr); margin-bottom: 16px; padding: 4px; border: 1px solid var(--line); border-radius: 14px; background: var(--well); }
.seg .thumb {
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / var(--n)); border-radius: 10px;
  background: var(--key); box-shadow: inset 0 1px 0 #ffffff33, 0 2px 0 var(--key-edge), 0 8px 14px -8px var(--shadow);
  transform: translateX(calc(var(--i) * 100%)); transition: transform var(--slow) var(--out);
}
.seg button { position: relative; min-height: 44px; border: 0; border-radius: 10px; background: none; color: var(--haze); font: 600 14px/1 var(--body); cursor: pointer; transition: color var(--fast); }
.seg button[aria-pressed=true] { color: var(--moon); }

.tk { position: relative; margin-bottom: 10px; border: 1px solid var(--line); border-radius: var(--r2); background: linear-gradient(#ffffff0d, #ffffff03), var(--plum); overflow: hidden; transition: transform var(--fast) var(--ease); }
.tk:has(.tk-open:active) { transform: scale(.98); }
.tk-open { display: grid; grid-template-columns: 96px 1fr; width: 100%; min-height: 116px; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.tk-stub { position: relative; display: grid; align-content: end; gap: 3px; padding: 10px; color: #fff; overflow: hidden; }
.tk-stub :is(img, .tile) { position: absolute; inset: 0; }
.tk-stub .tile { place-items: start center; padding-top: 16px; }
.tk-stub::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(#0c071533, #0c0715d9); }
/* the tear line between the stub and the ticket */
.tk-stub::after { content: ""; position: absolute; z-index: 2; top: 9px; bottom: 9px; right: 0; border-right: 2px dashed var(--ink); }
.tk::before, .tk::after { content: ""; position: absolute; z-index: 3; left: 88px; width: 16px; height: 16px; border-radius: 50%; background: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.tk::before { top: -9px; }
.tk::after { bottom: -9px; }
.tk-stub b { position: relative; z-index: 2; font: 800 17px/1 var(--display); letter-spacing: -.03em; }
.tk-stub small { position: relative; z-index: 2; font: 600 12px/1 var(--body); opacity: .85; }
.tk-body { display: grid; align-content: center; gap: 5px; padding: 12px 56px 12px 16px; }
.tk.info .tk-body { padding-right: 16px; }
.tk-body strong { font: 700 16px/1.25 var(--body); text-wrap: balance; }

.heart { position: absolute; z-index: 4; top: 8px; right: 8px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--lift); color: var(--haze); cursor: pointer; transition: transform var(--press) var(--ease), background var(--fast), color var(--fast); }
.heart .ic { width: 22px; height: 22px; transition: fill var(--fast); }
.heart[aria-pressed=true] { background: rgb(var(--tint) / .18); color: var(--bora); }
.heart[aria-pressed=true] .ic { fill: currentColor; }
.heart:active { transform: scale(.84); }
.heart.pop .ic { animation: heart 480ms var(--spring); }
.heart.pop::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--bora); animation: ring 520ms var(--out) both; }
.heart.pop::after {
  content: ""; position: absolute; width: 5px; height: 5px; border-radius: 50%; animation: burst 560ms var(--out) both;
  box-shadow: 0 -26px var(--bora), 22px -13px var(--red-hi), 22px 13px var(--bora-hi), 0 26px var(--bora), -22px 13px var(--red-hi), -22px -13px var(--bora-hi);
}

.feat { position: relative; color: var(--moon); margin-bottom: 14px; border: 1px solid #ff5a6659; border-radius: var(--r3); background: #1b0a14; overflow: hidden; box-shadow: 0 24px 50px -28px #f0182dcc; }
.feat-photo { position: relative; height: 168px; }
.feat-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(#1b0a1400 25%, #1b0a14); }
.feat-body { position: relative; display: grid; gap: 6px; margin-top: -52px; padding: 0 16px 8px; }
.feat h2 { margin-top: 4px; font: 800 20px/1.18 var(--display); letter-spacing: -.02em; text-wrap: balance; }
.feat .quiet { margin-top: 8px; }

/* ---------- concert night stubs ---------- */

.nights { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.night {
  position: relative; display: grid; justify-items: center; gap: 3px; padding: 12px 2px 12px; border: 0; border-radius: 14px; overflow: hidden; cursor: pointer;
  background: var(--plum-3); color: var(--moon);
  /* ticket notches bitten out of both sides */
  -webkit-mask: radial-gradient(circle 7px at 0 66%, #0000 97%, #000) 0 0 / 51% 100% no-repeat, radial-gradient(circle 7px at 100% 66%, #0000 97%, #000) 100% 0 / 51% 100% no-repeat;
  mask: radial-gradient(circle 7px at 0 66%, #0000 97%, #000) 0 0 / 51% 100% no-repeat, radial-gradient(circle 7px at 100% 66%, #0000 97%, #000) 100% 0 / 51% 100% no-repeat;
  transition: transform var(--press) var(--ease), background var(--med) var(--ease);
}
.night::before { content: ""; position: absolute; left: 12px; right: 12px; top: 66%; border-top: 1.5px dashed rgb(var(--veil) / .22); }
.night small { color: var(--haze); font: 600 12.5px/1 var(--body); }
.night b { font: 800 25px/1.05 var(--display); letter-spacing: -.03em; }
.night span { margin-top: 15px; color: var(--haze); font: 600 12px/1 var(--body); transition: opacity var(--fast); }
.night[aria-pressed=true] span { opacity: 0; }
.night:active { transform: scale(.94); }
.night[aria-pressed=true] { background: linear-gradient(160deg, #f4414f, #c0091d); color: #fff; }
.night[aria-pressed=true]::before { border-color: #ffffff59; }
.night[aria-pressed=true] small { color: #ffe1e4; }
/* a slow holo sheen, only on nights you hold */
.night[aria-pressed=true]::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, #0000 32%, #ffffff47 46%, #cdb9ff59 52%, #0000 66%) 130% 0 / 260% 100%; mix-blend-mode: screen; animation: sheen 4.2s var(--ease) infinite; }
.seal { position: absolute; left: 50%; bottom: 4px; display: grid; place-items: center; width: 25px; height: 25px; margin-left: -12.5px; border: 1.5px solid #fff; border-radius: 50%; color: #fff; font: 700 9.5px/1 "Noto Serif KR", serif; opacity: 0; transform: rotate(-14deg) scale(.4); transition: opacity var(--fast), transform var(--fast); }
.night[aria-pressed=true] .seal { opacity: .92; transform: rotate(-14deg); }
.night.pop .seal { animation: stamp 440ms var(--out); }

/* ---------- trip setup ---------- */

.legs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0 12px; }
.leg { display: grid; gap: 6px; padding: 11px 12px; border: 1px solid var(--line); border-radius: var(--r2); background: var(--well); text-align: left; cursor: pointer; transition: border-color var(--fast), background var(--fast), box-shadow var(--fast); }
.leg small { display: flex; align-items: center; gap: 6px; color: var(--haze); font: 600 12.5px/1 var(--body); }
.leg small .ic { width: 15px; height: 15px; }
.leg b { font: 600 14px/1.2 var(--display); letter-spacing: -.01em; }
.leg[aria-pressed=true] { border-color: var(--bora); background: rgb(var(--tint) / .12); box-shadow: 0 0 0 3px rgb(var(--tint) / .16); }

.cal-dow, .cal { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-dow span { text-align: center; color: var(--dim); font: 600 12px/2.2 var(--body); }
.cd { position: relative; isolation: isolate; display: grid; place-items: center; min-height: 46px; padding: 0; border: 0; background: none; cursor: pointer; }
.cd b { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; font: 500 14px/1 var(--display); transition: background var(--fast), color var(--fast), transform var(--press) var(--ease); }
.cd small { position: absolute; bottom: 0; color: var(--dim); font: 600 10px/1 var(--body); }
.cd.out b { color: var(--dim); }
.cd:disabled { cursor: default; }
.cd:disabled b { color: var(--off); }
.cd.show::after { content: ""; position: absolute; bottom: 5px; width: 5px; height: 5px; border-radius: 50%; background: var(--red-hi); box-shadow: 0 0 8px var(--red); }
/* the band between landing and flying home fills outward, day by day */
.cd::before { content: ""; position: absolute; z-index: -1; inset: 5px 0; background: #8a5cf647; opacity: 0; transition: opacity var(--med) var(--ease); }
.cd[data-s=in]::before, .cd[data-s=start]::before, .cd[data-s=end]::before { opacity: 1; transition-delay: calc(var(--k, 0) * 24ms); }
.cd[data-s=start]::before { left: 50%; }
.cd[data-s=end]::before { right: 50%; }
.cd[data-s=in]:nth-child(7n+1)::before, .cd[data-s=end]:nth-child(7n+1)::before { border-radius: 13px 0 0 13px; }
.cd[data-s=in]:nth-child(7n)::before, .cd[data-s=start]:nth-child(7n)::before { border-radius: 0 13px 13px 0; }
.cd[data-s=start] b, .cd[data-s=end] b, .cd[data-s=one] b { background: linear-gradient(#cdb9ff, #a886ff); color: var(--on-bora); font-weight: 700; box-shadow: inset 0 1px 0 #ffffff80, 0 3px 0 var(--bora-lo); animation: pop var(--med) var(--spring); }
.cd.show[data-s=start]::after, .cd.show[data-s=end]::after, .cd.show[data-s=one]::after { background: var(--red); box-shadow: none; }
.cd:not(:disabled):active b { transform: scale(.86); }
.cal.pop { animation: shake 380ms var(--ease); }
.cal-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; margin-top: 10px; font-size: 13px; color: var(--haze); }
.cal-foot .key { display: flex; align-items: center; gap: 7px; flex: none; }
.cal-foot .key i { width: 6px; height: 6px; border-radius: 50%; background: var(--red-hi); box-shadow: 0 0 8px var(--red); }
#cal-hint { color: var(--bora-hi); font-weight: 600; font-size: 14px; }
@media (hover: hover) { .cd:not(:disabled):not([data-s=start]):not([data-s=end]):not([data-s=one]):hover b { background: var(--lift); } }

.time { padding-top: 12px; }
.time + .time { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line); }
.time-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.time-label { display: flex; align-items: center; gap: 8px; color: var(--haze); font: 600 14.5px/1 var(--body); }
.time-read { display: flex; align-items: center; gap: 4px; }
.time-read output { min-width: 108px; text-align: center; font: 700 19px/1 var(--display); letter-spacing: -.02em; }
.time-read output.pop { animation: tick var(--med) var(--out); }
.step { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 13px; background: var(--key); box-shadow: inset 0 1px 0 #ffffff26, 0 3px 0 var(--key-edge); cursor: pointer; transition: transform var(--press) var(--ease), box-shadow var(--press) var(--ease); }
.step:active { transform: translateY(2px); box-shadow: inset 0 1px 0 #ffffff1a, 0 1px 0 var(--key-edge); }
.step .ic { width: 18px; height: 18px; stroke-width: 2.4; }
/* the track is the day itself: night, sunrise about 7, daylight, sunset about 7, night */
input[type=range] { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 44px; margin: 0; background: none; cursor: pointer; touch-action: pan-y; --day: linear-gradient(90deg, #191040 0%, #2c1d63 20%, #8a4a9c 26%, #ff9d7a 29.5%, #ffdba3 35%, #a5d6ff 46%, #a5d6ff 58%, #ffdba3 70%, #ff7a5c 77%, #8a3f9c 80.5%, #2c1d63 87%, #191040 100%); }
input[type=range]::-webkit-slider-runnable-track { height: 14px; border-radius: 7px; background: var(--day); box-shadow: inset 0 1px 3px #000000a6, 0 0 0 1px #ffffff1f; }
input[type=range]::-moz-range-track { height: 14px; border-radius: 7px; background: var(--day); box-shadow: inset 0 1px 3px #000000a6, 0 0 0 1px #ffffff1f; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -8px; border: 0; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #ece4ff 55%, #b79cff); box-shadow: 0 0 0 4px rgb(var(--tint) / .3), 0 3px 0 var(--bora-lo), 0 8px 14px var(--drop); transition: transform var(--fast) var(--spring), box-shadow var(--fast); }
input[type=range]::-moz-range-thumb { width: 30px; height: 30px; border: 0; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #ece4ff 55%, #b79cff); box-shadow: 0 0 0 4px rgb(var(--tint) / .3), 0 3px 0 var(--bora-lo), 0 8px 14px var(--drop); }
input[type=range]:active::-webkit-slider-thumb { transform: scale(1.18); box-shadow: 0 0 0 9px rgb(var(--tint) / .22), 0 3px 0 var(--bora-lo), 0 8px 14px var(--drop); }
input[type=range]:focus-visible { outline: none; }
input[type=range]:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--bora-hi); outline-offset: 4px; }
.time-ticks { display: flex; justify-content: space-between; margin-top: -4px; color: var(--dim); font: 500 12px/1 var(--body); }

.stay { position: relative; aspect-ratio: 320 / 200; margin: 4px -4px 10px; }
.stay svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.stay .land { fill: rgb(var(--tint) / .09); stroke: rgb(var(--tint) / .44); stroke-width: 1.2; }
.stay line { stroke: rgb(var(--veil) / .14); stroke-width: 1.5; stroke-linecap: round; transition: stroke var(--med); }
.stay line.on { stroke: var(--bora); stroke-width: 2; stroke-dasharray: 1 7; animation: flow 1s linear infinite; }
.node { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; background: none; translate: -50% -50%; cursor: pointer; }
.node i { width: 18px; height: 18px; border: 2px solid var(--bora); border-radius: 50%; background: var(--plum); transition: transform var(--med) var(--spring), background var(--fast), box-shadow var(--med); }
.node[aria-pressed=true] i { background: var(--bora); transform: scale(1.3); box-shadow: 0 0 0 6px rgb(var(--tint) / .22), 0 0 26px var(--bora-mid); animation: beacon 2.4s var(--ease) infinite; }
.node:active i { transform: scale(.85); }
.node span { position: absolute; display: grid; gap: 1px; white-space: nowrap; pointer-events: none; }
.node b { font: 700 13.5px/1.15 var(--body); }
.node small { min-height: 14px; color: var(--haze); font: 600 12px/1.15 var(--body); }
.node[aria-pressed=true] small { color: var(--bora-hi); }
.node[data-k=changi] span { top: calc(100% - 9px); text-align: center; }
.node[data-k=stadium] span { bottom: calc(100% - 9px); text-align: center; }
.node[data-k=bay] span { right: calc(100% - 9px); text-align: right; }
.node[data-k=sentosa] span { left: calc(100% - 9px); }
.elsewhere { display: grid; grid-template-columns: 20px 1fr 20px; align-items: center; gap: 10px; width: 100%; min-height: 50px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r2); background: var(--well); color: var(--haze); text-align: left; font-size: 15px; cursor: pointer; transition: border-color var(--fast), background var(--fast), transform var(--press) var(--ease); }
.elsewhere > i { width: 20px; height: 20px; border: 2px solid var(--dim); border-radius: 50%; transition: border var(--fast); }
.elsewhere[aria-pressed=true] { border-color: var(--bora); background: rgb(var(--tint) / .12); color: var(--moon); }
.elsewhere[aria-pressed=true] > i { border: 6px solid var(--bora); }
.elsewhere:active { transform: scale(.98); }

.dock { position: sticky; z-index: 5; bottom: calc(var(--tabs-h) + 24px + env(safe-area-inset-bottom)); padding-top: 6px; }
.dock::before { content: ""; position: absolute; z-index: -1; inset: -18px -16px -14px; background: linear-gradient(transparent, var(--ink) 52%); pointer-events: none; }

/* ---------- plan ---------- */

.blank { display: grid; justify-items: start; padding-top: 28px; }
.blank-art { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 26px; background: linear-gradient(rgb(var(--tint) / .2), rgb(var(--tint) / .06)); color: var(--bora-hi); box-shadow: inset 0 1px 0 #ffffff26; }
.blank-art .ic { width: 38px; height: 38px; }

.strip { position: sticky; top: calc(var(--top-h) + env(safe-area-inset-top)); z-index: 10; display: flex; gap: 8px; margin: 0 -16px 10px; padding: 8px 16px 12px; overflow-x: auto; scrollbar-width: none; background: linear-gradient(var(--scrim) 78%, transparent); }
.strip button { position: relative; flex: none; display: grid; place-content: center; justify-items: center; gap: 5px; width: 52px; height: 60px; border: 1px solid var(--line); border-radius: 15px; background: var(--plum); color: var(--haze); cursor: pointer; transition: transform var(--med) var(--spring), background var(--fast), color var(--fast), box-shadow var(--fast); }
.strip small { font: 600 12px/1 var(--body); }
.strip b { color: var(--moon); font: 700 16px/1 var(--display); letter-spacing: -.03em; }
.strip button[aria-current] { transform: translateY(-2px); border-color: #0000; background: linear-gradient(#cdb9ff, #a886ff); color: #3a1f80; box-shadow: inset 0 1px 0 #ffffff80, 0 4px 0 var(--bora-lo); }
.strip button[aria-current] b { color: var(--on-bora); }
.strip .held::after { content: ""; position: absolute; top: 6px; right: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 2px #fff; }
.strip button:active { transform: scale(.92); }

.day { margin-bottom: 28px; scroll-margin-top: calc(var(--top-h) + 96px); }
.day-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.day-head b { font: 800 38px/1 var(--display); letter-spacing: -.04em; }
.day-head span { display: grid; font: 700 15px/1.2 var(--body); }
.day-head small { color: var(--haze); font: 500 13px/1.2 var(--body); }
.badge { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 8px; padding: 7px 11px; border-radius: 10px; background: rgb(var(--tint) / .14); color: var(--bora-hi); font: 600 13.5px/1.25 var(--body); }
.badge .ic { width: 16px; height: 16px; }
.badge.soft { margin-bottom: 18px; background: var(--lift); color: var(--haze); }
.free-day { padding: 14px 16px; border: 1px dashed var(--line-2); border-radius: var(--r2); color: var(--haze); }
.line { position: relative; margin: 12px 0 0; padding: 0; list-style: none; }
.line::before { content: ""; position: absolute; left: 77px; top: 14px; bottom: 14px; width: 2px; border-radius: 1px; background: linear-gradient(var(--line-2), rgb(var(--tint) / .08)); }
.stop { position: relative; display: grid; grid-template-columns: 60px 1fr; column-gap: 36px; margin-bottom: 10px; }
.stop::before { content: ""; position: absolute; left: 72px; top: 17px; width: 12px; height: 12px; border: 2px solid var(--bora); border-radius: 50%; background: var(--ink); }
.stop time { padding-top: 14px; color: var(--moon); font: 700 13.5px/1.25 var(--body); text-align: right; white-space: nowrap; }
.stop time small { display: block; color: var(--haze); font: 600 12px/1.2 var(--body); }
.stop-card { display: grid; gap: 4px; width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r2); background: linear-gradient(#ffffff0d, #ffffff03), var(--plum); text-align: left; transition: transform var(--fast) var(--ease); }
button.stop-card { cursor: pointer; }
button.stop-card:active { transform: scale(.975); }
.stop-card b { font: 700 16px/1.25 var(--body); text-wrap: balance; }
.stop-card span { color: var(--haze); font-size: 14px; line-height: 1.4; }
.stop-card .tip { display: flex; gap: 6px; }
.stop-card .tip .ic { width: 15px; height: 15px; margin-top: 2px; color: var(--bora-hi); }
.stop.given .stop-card { border-style: dashed; background: none; }
.stop.given::before { border-color: var(--dim); }
/* your concert: the one red ticket on the page */
.stop.show .stop-card { position: relative; overflow: hidden; color: #fff; border-color: #ff8a93a6; background: linear-gradient(150deg, #e8192f, #8d0515); box-shadow: 0 18px 40px -18px #f0182de6, inset 0 1px 0 #ffffff59; }
.stop.show .stop-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, #0000 36%, #ffffff3d 47%, #cdb9ff4d 52%, #0000 64%) 130% 0 / 260% 100%; mix-blend-mode: screen; animation: sheen 4.6s var(--ease) infinite; }
.stop.show .stop-card span, .stop.show .tip .ic { color: #ffe1e4; }
.stop.show::before { border-color: #fff; background: var(--red); box-shadow: 0 0 14px var(--red); }
/* Done and skipped. Swipe a stop right for done, left for skip; the circle on the rail ticks it too.
   Done is the one that celebrates. Skip only goes quiet. */
.stop:not(.given)::before { content: none; }
.tick { position: absolute; z-index: 1; left: 66px; top: 11px; display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 2px solid var(--bora); border-radius: 50%; background: var(--ink); color: #0000; cursor: pointer; transition: transform var(--press) var(--ease), background var(--fast), border-color var(--fast), color var(--fast), box-shadow var(--fast); }
.tick::after { content: ""; position: absolute; inset: -10px; } /* a 44px tap target around a 24px circle */
.tick .ic { width: 14px; height: 14px; stroke-width: 3.2; }
.tick i { position: absolute; width: 5px; height: 5px; border-radius: 50%; opacity: 0; pointer-events: none; }
.tick:active { transform: scale(.86); }
.stop.show .tick { border-color: #fff; background: var(--red); box-shadow: 0 0 14px var(--red); }
.stop .tick[aria-pressed=true] { border-color: #0000; background: linear-gradient(#cdb9ff, #a886ff); color: #2a1466; box-shadow: 0 0 0 3px rgb(var(--tint) / .16); }
.stop.is-skip .tick { border-color: var(--dim); border-style: dashed; background: var(--ink); box-shadow: none; }
.tick.pop { animation: stamp-in 520ms var(--spring); }
.tick.pop::before { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--bora); animation: ring 620ms var(--out) both; }
.tick.pop .ic path { stroke-dasharray: 24; animation: draw 340ms var(--out) 140ms both; }
.tick.pop i { animation: burst 640ms var(--out) both; box-shadow: 0 -25px var(--bora), 22px -12px var(--red-hi), 22px 12px var(--bora-hi), 0 25px var(--bora), -22px 12px var(--red-hi), -22px -12px var(--bora-hi); }
.swipe { position: relative; min-width: 0; border-radius: var(--r2); }
.swipe.dragging, .swipe.peek { overflow: hidden; }
.swipe .stop-card { position: relative; touch-action: pan-y; -webkit-user-select: none; user-select: none; transition: transform var(--med) var(--spring), opacity var(--fast); }
.swipe.dragging .stop-card { transition: none; }
.swipe.peek .stop-card { animation: peek 1300ms var(--ease) both; }
.swipe.pop::after { content: ""; position: absolute; inset: 0; border-radius: var(--r2); pointer-events: none; background: linear-gradient(115deg, #0000 30%, rgb(var(--tint) / .5) 46%, #ffffff73 51%, #0000 68%) 130% 0 / 260% 100%; animation: sweep 760ms var(--out) both; }
.under { position: absolute; inset: 0; display: flex; align-items: center; gap: 8px; padding: 0 18px; border-radius: var(--r2); font: 700 14px/1 var(--body); opacity: 0; }
.under .ic { width: 22px; height: 22px; stroke-width: 2.6; transition: transform var(--fast) var(--spring); }
.under.done { background: linear-gradient(90deg, #cdb9ff, #a886ff); color: #2a1466; }
.under.skip { justify-content: flex-end; background: var(--plum-3); color: var(--haze); }
.swipe.dragging[data-dir=done] .under.done, .swipe.dragging[data-dir=skip] .under.skip, .swipe.peek .under.done { opacity: 1; }
.swipe.far .under.done .ic { transform: scale(1.4) rotate(-8deg); }
.stop:is(.is-done, .is-skip) time { color: var(--dim); }
.stop:is(.is-done, .is-skip) .stop-card { opacity: .72; box-shadow: none; }
.stop:is(.is-done, .is-skip) .stop-card::after, .stop:is(.is-done, .is-skip) .tip { display: none; }
.stop.is-skip .stop-card { border: 1px dashed var(--line-2); background: none; color: var(--moon); }
.stop.is-skip .stop-card b { text-decoration: line-through; }
.stop.is-skip .stop-card span { color: var(--haze); }
/* The same two tags as buttons, in a stop's sheet: the way to tag without swiping. */
.marks { display: flex; gap: 8px; }
.mark { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 15px 0 12px; border: 1px solid var(--line); border-radius: 20px; background: none; color: var(--haze); font: 600 14px/1 var(--body); cursor: pointer; transition: transform var(--press) var(--ease), background var(--fast), border-color var(--fast), color var(--fast); }
.mark::after { content: ""; position: absolute; inset: -2px 0; }
.mark .ic { width: 16px; height: 16px; stroke-width: 2.4; }
.mark:active { transform: scale(.94); }
.mark[aria-pressed=true] { border-color: #0000; background: rgb(var(--tint) / .2); color: var(--bora-hi); }
/* Which day: the days a pick could go on, in its sheet. */
#when { display: grid; gap: 8px; }
#when:empty { display: none; }
.days { display: flex; gap: 8px; margin: 0 -18px; padding: 2px 18px 6px; overflow-x: auto; scrollbar-width: none; }
.days::-webkit-scrollbar { display: none; }
.days button { flex: none; display: grid; justify-items: center; gap: 5px; min-width: 66px; padding: 10px 8px 9px; border: 1px solid var(--line); border-radius: 15px; background: var(--well); color: var(--haze); cursor: pointer; transition: transform var(--med) var(--spring), background var(--fast), color var(--fast); }
.days small { font: 600 12px/1 var(--body); }
.days b { color: var(--moon); font: 700 17px/1 var(--display); letter-spacing: -.03em; }
.days span { font: 600 11.5px/1 var(--body); white-space: nowrap; }
.days button[aria-pressed=true] { border-color: #0000; background: linear-gradient(#cdb9ff, #a886ff); color: #3a1f80; box-shadow: inset 0 1px 0 #ffffff80, 0 3px 0 var(--bora-lo); }
.days button[aria-pressed=true] b { color: var(--on-bora); }
.days button.pop { animation: pop var(--med) var(--spring); }
.days button:disabled { opacity: .45; cursor: default; }
.days button:active:not(:disabled) { transform: scale(.94); }
/* One line of feedback above the tab bar. */
#toast { position: fixed; z-index: 30; left: 50%; bottom: calc(var(--tabs-h) + 26px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 4px; width: max-content; max-width: min(100% - 28px, 440px); min-height: 50px; padding: 5px 5px 5px 16px; border: 1px solid var(--line-2); border-radius: 17px; background: var(--bar-2); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 14px 34px -12px var(--drop); font-size: 14.5px; line-height: 1.3; opacity: 0; visibility: hidden; transform: translate(-50%, 14px); transition: opacity var(--fast), transform var(--med) var(--out), visibility 0s var(--med); }
#toast.on { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
#toast span { padding: 6px 10px 6px 0; }
#toast button { flex: none; min-height: 40px; padding: 0 13px; border: 0; border-radius: 12px; background: rgb(var(--tint) / .2); color: var(--bora-hi); font: 700 14px/1 var(--body); cursor: pointer; }
.hop { display: flex; align-items: center; gap: 8px; margin: 0 0 10px 96px; color: var(--haze); font-size: 13.5px; line-height: 1.3; }
.hop .ic { width: 16px; height: 16px; color: var(--bora-hi); }

/* ---------- ready ---------- */

.ringrow { display: flex; align-items: center; gap: 18px; margin: 8px 0 18px; }
.ringrow p { font: 600 17px/1.3 var(--body); text-wrap: balance; }
.ring { position: relative; display: grid; place-content: center; justify-items: center; flex: none; width: 108px; height: 108px; }
.ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 9; }
.ring .bg { stroke: var(--line); }
.ring .fg { stroke: var(--bora); stroke-linecap: round; stroke-dasharray: 276.46; stroke-dashoffset: calc(276.46 * (1 - var(--p))); transition: stroke-dashoffset var(--slow) var(--out), filter var(--slow); }
.ring.done .fg { filter: drop-shadow(0 0 6px var(--bora-mid)); }
.ring b { font: 800 30px/1 var(--display); letter-spacing: -.03em; }
.ring small { margin-top: 3px; color: var(--haze); font: 600 12px/1 var(--body); }
.checks { padding-block: 6px; }
.check { position: relative; display: grid; grid-template-columns: 28px 1fr; gap: 14px; padding: 13px 0; cursor: pointer; }
.check + .check { border-top: 1px solid var(--line); }
.check input { position: absolute; left: 0; top: 13px; width: 28px; height: 28px; margin: 0; opacity: 0; cursor: pointer; }
.box { display: grid; place-items: center; width: 28px; height: 28px; border: 2px solid var(--dim); border-radius: 9px; transition: background var(--fast), border-color var(--fast), transform var(--med) var(--spring); }
.box svg { width: 18px; height: 18px; fill: none; stroke: var(--on-bora); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 22; stroke-dashoffset: 22; transition: stroke-dashoffset var(--med) var(--out) 70ms; }
.check span { padding-top: 2px; transition: color var(--med), text-decoration-color var(--med); text-decoration: line-through #0000; }
.check input:checked + .box { border-color: var(--bora); background: linear-gradient(#cdb9ff, #a886ff); }
.check input:checked + .box svg { stroke-dashoffset: 0; }
.check input:checked ~ span { color: var(--dim); text-decoration-color: var(--dim); }
.check:active .box { transform: scale(.82); }
.check input:focus-visible + .box { outline: 2px solid var(--bora-hi); outline-offset: 3px; }
.chant { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 8px 0 16px; }
.chant span { color: var(--haze); font: 700 17px/1.4 var(--display); letter-spacing: -.02em; transform-origin: left; transition: color var(--fast), transform var(--fast) var(--spring), text-shadow var(--fast); }
.chant span.on { color: var(--moon); transform: scale(1.12); text-shadow: 0 0 18px var(--bora-mid), 0 0 2px var(--bora); }
.chant span:last-child.on { color: var(--red-hi); text-shadow: 0 0 22px var(--red); }
.plain { display: grid; gap: 12px; margin: 10px 0 0; padding: 0; list-style: none; }
.plain li { display: grid; grid-template-columns: 18px 1fr; gap: 12px; }
.plain .ic { width: 16px; height: 16px; margin-top: 4px; color: var(--bora); }
.float { position: fixed; z-index: 60; pointer-events: none; color: var(--bora); }
.float .ic { width: 24px; height: 24px; fill: currentColor; }

/* ---------- ask ---------- */

.msgs { display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; min-height: calc(100dvh - var(--top-h) - var(--tabs-h) - 190px); padding: 14px 16px 18px; }
.msg { max-width: 86%; margin: 0; padding: 11px 14px; border-radius: 18px; white-space: pre-line; overflow-wrap: anywhere; }
.msg.bot { align-self: flex-start; border-bottom-left-radius: 6px; background: var(--plum-2); transform-origin: 0 100%; }
.msg.user { align-self: flex-end; border-bottom-right-radius: 6px; background: linear-gradient(#c3adff, #a17fff); color: var(--on-bora); font-weight: 500; transform-origin: 100% 100%; }
.msg.new { animation: msg var(--med) var(--out) both; }
/* what the assistant changed on the plan, one line each: purple (yours) when it worked, quiet when it could not */
.did { display: flex; gap: 8px; margin-top: 9px; padding-top: 9px; border-top: 1px solid var(--line); color: var(--bora-hi); font-size: 14.5px; font-weight: 600; line-height: 1.4; }
.did .ic { margin-top: 1px; }
.did.no { color: var(--haze); font-weight: 500; }
.undo { display: block; min-height: 44px; margin-top: 10px; padding: 0 18px; border: 0; border-radius: 12px; background: rgb(var(--tint) / .2); color: var(--bora-hi); font: 700 14.5px/1 var(--body); cursor: pointer; transition: transform var(--press); }
.undo:active { transform: scale(.96); }
.typing { display: flex; gap: 5px; padding: 16px 16px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--haze); animation: dots 1s var(--ease) infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
.askbar { position: sticky; bottom: calc(var(--tabs-h) + 18px + env(safe-area-inset-bottom)); padding: 14px 12px 0; background: linear-gradient(transparent, var(--ink) 34%); }
.quick { display: flex; gap: 8px; padding: 0 4px 10px; overflow-x: auto; scrollbar-width: none; }
.chip { flex: none; min-height: 44px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 13px; background: rgb(var(--tint) / .1); color: var(--bora-hi); font: 600 14.5px/1 var(--body); cursor: pointer; transition: transform var(--press) var(--ease), background var(--fast); }
.chip:active { transform: scale(.94); background: rgb(var(--tint) / .2); }
.chip[aria-pressed=true] { border-color: #0000; background: linear-gradient(#cdb9ff, #a886ff); color: var(--on-bora); }
.kinds { margin: 0 -16px 8px; padding: 0 16px 8px; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { .kinds { scroll-behavior: auto; } }
.kinds .chip { display: inline-flex; align-items: center; gap: 7px; }
.kinds .chip .ic { width: 17px; height: 17px; }
.group { display: flex; align-items: baseline; gap: 8px; margin: 22px 0 10px; }
.group:first-child { margin-top: 4px; }
.group small { color: var(--dim); font: 600 13px/1 var(--body); }
.askform { display: flex; align-items: center; gap: 8px; padding: 6px; border: 1px solid var(--line-2); border-radius: 20px; background: var(--plum-2); transition: border-color var(--fast), box-shadow var(--fast); }
.askform:focus-within { border-color: var(--bora); box-shadow: 0 0 0 4px rgb(var(--tint) / .16); }
.askform input { flex: 1; min-width: 0; height: 44px; padding: 0 10px; border: 0; background: none; outline: none; font-size: 16px; }
.askform input::placeholder { color: var(--dim); }
.send { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border: 0; border-radius: 14px; background: linear-gradient(#ea2439, #d40d23); color: #fff; box-shadow: inset 0 1px 0 #ffffff66, 0 3px 0 var(--red-lo); cursor: pointer; transition: transform var(--press) var(--ease), box-shadow var(--press) var(--ease); }
.mic { display: grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 14px; background: none; color: var(--haze); cursor: pointer; transition: transform var(--press) var(--ease), background var(--fast), color var(--fast); }
.mic .ic { width: 22px; height: 22px; }
.mic:active { transform: scale(.9); }
.mic[aria-pressed=true] { background: rgb(var(--tint) / .2); color: var(--bora-hi); animation: beacon 1.4s var(--ease) infinite; }
.send:active { transform: translateY(2px); box-shadow: inset 0 1px 0 #ffffff40, 0 1px 0 var(--red-lo); }
.send .ic { width: 20px; height: 20px; stroke-width: 2.4; }

/* ---------- event sheet ---------- */

html:has(#sheet[open]) { overflow: hidden; }
#sheet {
  position: fixed; inset: auto 0 0; width: 100%; max-width: 560px; max-height: 90dvh; margin: 0 auto; padding: 0; border: 0; border-radius: 26px 26px 0 0;
  background: var(--plum); color: var(--moon); overflow-y: auto; overscroll-behavior: contain; box-shadow: 0 -20px 60px var(--shadow);
  transform: translateY(100%);
  transition: transform var(--med) var(--ease), overlay var(--med) allow-discrete, display var(--med) allow-discrete; /* leaves faster than it arrives */
}
#sheet[open] { transform: none; transition-duration: var(--slow); transition-timing-function: var(--out); }
@starting-style { #sheet[open] { transform: translateY(100%); } }
#sheet::backdrop { background: #06030c00; transition: background var(--med), overlay var(--med) allow-discrete, display var(--med) allow-discrete; }
#sheet[open]::backdrop { background: #06030cb3; }
@starting-style { #sheet[open]::backdrop { background: #06030c00; } }
.sheet-photo { position: relative; height: 210px; }
.sheet-photo:has(.tile) { height: 132px; }
.sheet-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, var(--plum)); }
.sheet-photo::before { content: ""; position: absolute; z-index: 2; top: 8px; left: 50%; width: 40px; height: 5px; margin-left: -20px; border-radius: 3px; background: #ffffff8c; }
.x { position: absolute; z-index: 2; top: 12px; right: 12px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #0c0715a6; color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); cursor: pointer; transition: transform var(--press) var(--ease); }
.x:active { transform: scale(.88); }
.sheet-body { position: relative; display: grid; gap: 10px; margin-top: -34px; padding: 0 18px calc(26px + env(safe-area-inset-bottom)); }
.sheet-body h2 { font: 800 21px/1.18 var(--display); letter-spacing: -.02em; text-wrap: balance; }
.sheet-body .lede { margin: 0; }
.facts { display: grid; gap: 15px; margin: 10px 0 8px; }
.fact { display: grid; grid-template-columns: 36px 1fr; gap: 12px; }
.fact > .ic { box-sizing: content-box; width: 20px; height: 20px; padding: 8px; border-radius: 11px; background: rgb(var(--tint) / .12); color: var(--bora-hi); }
.fact b { color: var(--haze); font: 700 13px/1.2 var(--body); }
.fact p { margin-top: 2px; line-height: 1.45; }
.sheet-body .fine { margin: 4px 0 0; }

/* ---------- motion ---------- */

@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes sunrise { from { opacity: 0; transform: translateY(64px) scale(.72); filter: blur(5px); } }
@keyframes breathe { 50% { opacity: .62; transform: scale(1.06); } }
@keyframes blink { 50% { opacity: .25; } }
@keyframes pop { from { transform: scale(.6); } }
@keyframes stamp-in { 0% { transform: scale(.3) rotate(-30deg); } 60% { transform: scale(1.3) rotate(6deg); } }
@keyframes draw { from { stroke-dashoffset: 24; } }
@keyframes sweep { to { background-position: -70% 0; } }
@keyframes peek { 30%, 55% { transform: translateX(64px); } }
@keyframes tick { from { opacity: 0; transform: translateY(40%); } }
@keyframes shake { 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }
@keyframes heart { 0% { transform: scale(.5); } 55% { transform: scale(1.3); } }
@keyframes ring { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.7); opacity: 0; } }
@keyframes burst { from { transform: scale(.2); opacity: 1; } to { transform: scale(1.15); opacity: 0; } }
@keyframes stamp { 0% { opacity: 0; transform: rotate(-32deg) scale(2.6); } 55% { opacity: 1; transform: rotate(-12deg) scale(.9); } 100% { transform: rotate(-14deg) scale(1); } }
@keyframes sheen { 0%, 55% { background-position: 130% 0; } 100% { background-position: -70% 0; } }
@keyframes flow { to { stroke-dashoffset: -8; } }
@keyframes beacon { 50% { box-shadow: 0 0 0 11px rgb(var(--tint) / .08), 0 0 30px var(--bora-mid); } }
@keyframes msg { from { opacity: 0; transform: translateY(10px) scale(.92); } }
@keyframes dots { 30% { transform: translateY(-5px); opacity: 1; } 0%, 60%, 100% { transform: none; opacity: .5; } }

/* Moving between tabs: the page slides the way you're heading; the header and tab bar stay put,
   and the red dot travels between the header and the hero. */
#app { view-transition-name: page; }
::view-transition-group(*) { animation-duration: var(--slow); animation-timing-function: var(--out); }
::view-transition-old(top), ::view-transition-old(tabs) { display: none; }
::view-transition-new(top), ::view-transition-new(tabs) { animation: none; }
html[data-vt=fwd]::view-transition-old(page) { animation: 150ms var(--ease) both out-left; }
html[data-vt=fwd]::view-transition-new(page) { animation: 380ms var(--out) both in-right; }
html[data-vt=back]::view-transition-old(page) { animation: 150ms var(--ease) both out-right; }
html[data-vt=back]::view-transition-new(page) { animation: 380ms var(--out) both in-left; }
html[data-vt=filter] :is(.tk, .feat) { view-transition-name: var(--vt); }
@keyframes out-left { to { opacity: 0; transform: translateX(-26px); } }
@keyframes in-right { from { opacity: 0; transform: translateX(34px); } }
@keyframes out-right { to { opacity: 0; transform: translateX(26px); } }
@keyframes in-left { from { opacity: 0; transform: translateX(-34px); } }

/* Light mode keeps the stage as a night window; a few surfaces need their own daytime treatment. */
html[data-theme=light] .hero { overflow: clip; border-radius: 0 0 28px 28px; background: radial-gradient(120% 80% at 50% -10%, #43207c, #0c0715 68%); }
html[data-theme=light] .count { margin-top: 14px; }
html[data-theme=light] .count div { background: var(--plum); }
html[data-theme=light] .msg.bot { box-shadow: inset 0 0 0 1px var(--line); }

/* Switching theme: one snapshot of the whole screen, and the new look opens in a circle from the sun button. */
html[data-vt=theme] * { view-transition-name: none !important; }
html[data-vt=theme]::view-transition-old(root) { animation: none; mix-blend-mode: normal; }
html[data-vt=theme]::view-transition-new(root) { animation: 560ms var(--out) both reveal; mix-blend-mode: normal; }
@keyframes reveal { from { clip-path: circle(0 at var(--tx) var(--ty)); } to { clip-path: circle(150vmax at var(--tx) var(--ty)); } }

@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}
