@font-face {
  font-family: 'Fraunces';
  src: url(fonts/fraunces.woff2) format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url(fonts/fraunces-italic.woff2) format('woff2');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #0b0c10;
  --bg-2: #14161c;
  --paper: #ece6d8;
  --paper-2: rgba(236, 230, 216, 0.82);
  --dim: rgba(236, 230, 216, 0.55);
  --faint: rgba(236, 230, 216, 0.22);
  --line: rgba(236, 230, 216, 0.1);
  --moon: #efe6cf;
  --ember: #ff7a45;
  --ember-soft: rgba(255, 122, 69, 0.14);

  --serif: 'Fraunces', ui-serif, 'New York', Georgia, serif;
  --mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, 'Roboto Mono', monospace;

  --st: env(safe-area-inset-top, 0px);
  --sb: env(safe-area-inset-bottom, 0px);
  --tabs: 58px;
  --W: 12px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--paper);
}

body {
  position: fixed;
  inset: 0;
  overflow: hidden;
  overscroll-behavior: none;
  font-family: var(--serif);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  touch-action: manipulation;
}

.app {
  position: relative;
  height: 100%;
  max-width: 520px;
  margin: 0 auto;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

@media (min-width: 560px) {
  body { background: #07080b; }
  .app { background: var(--bg); box-shadow: 0 0 0 1px var(--line), 0 30px 120px rgba(0, 0, 0, 0.6); }
}

/* ---------------------------------------------------------------- views */

.views { position: absolute; inset: 0; }

.view {
  position: absolute;
  inset: 0 0 calc(var(--tabs) + var(--sb)) 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.99);
  transition: opacity 0.22s var(--ease), transform 0.32s var(--ease), visibility 0s linear 0.32s;
}

.app[data-view='day'] #view-day,
.app[data-view='year'] #view-year,
.app[data-view='rules'] #view-rules {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.22s var(--ease), transform 0.32s var(--ease), visibility 0s;
}

.scroll {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.scroll::-webkit-scrollbar { display: none; }

/* ------------------------------------------------------------------ day */

.stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: calc(0.9 - var(--lit, 0) * 0.55);
  transition: opacity 0.6s var(--ease);
}
.stars i {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  border-radius: 50%;
  animation: twinkle 7s ease-in-out infinite alternate;
}
.stars i:nth-child(2) { animation-duration: 11s; animation-delay: -4s; }
@keyframes twinkle { from { opacity: 1; } to { opacity: 0.35; } }

#view-day::before {
  /* cold light for full moons, warm light for Otium and great days */
  content: '';
  position: absolute;
  inset: -20% -30% 20%;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(239, 230, 207, 0.08), transparent 70%);
  opacity: var(--lit, 0);
  transition: opacity 0.6s var(--ease), background 0.6s;
}
.app[data-otium] #view-day::before,
.app[data-great] #view-day::before {
  background: radial-gradient(closest-side, rgba(255, 122, 69, 0.16), transparent 72%);
  opacity: 1;
}

.bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: calc(var(--st) + 10px) 20px 0;
}

.kicker,
.weekday,
.meta,
.note b,
.pill,
.tabs button,
.year-sub,
.mblock small,
.legend,
.eyebrow,
.manifesto h3,
.rules li::before,
.bday span,
.cta,
.sheet-close,
.out small {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.kicker { flex: 1; min-width: 0; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.place {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px 8px 10px;
  border-radius: 99px;
  box-shadow: inset 0 0 0 1px var(--faint);
  color: var(--paper);
  font: 500 11px var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: transform 0.15s var(--ease);
}
.place::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--paper);
}
.place:active { transform: scale(0.94); }
.place[data-follow]::before { background: var(--ember); box-shadow: 0 0 0 3px rgba(255, 122, 69, 0.2); }

.pill {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px 8px 11px;
  border-radius: 99px;
  box-shadow: inset 0 0 0 1px var(--faint);
  color: var(--paper);
  transition: transform 0.15s var(--ease);
}
.pill::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ember);
}
.pill:active { transform: scale(0.94); }

.stage {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 4px 20px 6px;
  touch-action: none;
}

.moon-wrap {
  --moon: max(150px, min(84vw, 380px, calc(100dvh - 448px - var(--st) - var(--sb))));
  position: relative;
  width: var(--moon);
  height: var(--moon);
  display: grid;
  place-items: center;
  isolation: isolate;
  flex: none;
}
.moon-wrap > * { grid-area: 1 / 1; }
.stage > * { flex: none; }

.halo {
  width: 170%;
  height: 170%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(239, 230, 207, 0.22), rgba(239, 230, 207, 0.06) 45%, transparent 72%);
  opacity: var(--lit, 0);
  transition: opacity 0.4s var(--ease), transform 0.8s var(--ease);
  pointer-events: none;
}
.app[data-moonday] .halo { transform: scale(1.18); opacity: 1; }
.app[data-moonday] #view-day::before { background: radial-gradient(closest-side, rgba(239, 230, 207, 0.16), transparent 75%); }

.moon { width: 100%; height: 100%; overflow: visible; transform-origin: 50% 50%; }
/* Haemaselene: the moon in the earth's shadow */
.app[data-blood='total'] .moon { filter: sepia(0.9) saturate(3.2) hue-rotate(-28deg) brightness(0.62); }
.app[data-blood='total'] .halo { background: radial-gradient(closest-side, rgba(200, 60, 30, 0.35), transparent 70%); opacity: 1; }
.app[data-blood='total'] .num { mix-blend-mode: normal; color: var(--paper); }
.app[data-blood='partial'] .moon { filter: sepia(0.55) saturate(1.8) hue-rotate(-22deg) brightness(0.78); }
/* Ekleipsis: the dark moon in front of the sun, with the corona around it */
.app[data-corona] .halo {
  opacity: 1;
  background: radial-gradient(closest-side, transparent 55%, rgba(255, 246, 216, 0.75) 58.5%, rgba(255, 240, 200, 0.18) 66%, transparent 80%);
}
.moon-dark { fill: #15171d; }
.moon-rim { fill: none; stroke: rgba(236, 230, 216, 0.09); stroke-width: 0.8; }

.num {
  position: relative;
  font-size: calc(var(--moon) * 0.6);
  line-height: 1;
  font-weight: 380;
  font-variation-settings: 'SOFT' 100, 'WONK' 1;
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: -0.05em;
  color: var(--paper);
  mix-blend-mode: difference;
  padding-right: 0.05em;
  margin-top: -0.06em;
  pointer-events: none;
}
.app[data-slow] .num { font-style: italic; font-weight: 320; }

.date { text-align: center; }

.month {
  margin: 0;
  font-size: clamp(30px, 9.5vw, 44px);
  font-style: italic;
  font-weight: 340;
  line-height: 1.05;
  letter-spacing: -0.015em;
  font-variation-settings: 'SOFT' 100, 'WONK' 1;
  transition: color 0.4s;
}
.app[data-otium] .month { color: var(--ember); }
.app[data-rest] .month { font-weight: 300; }

.weekday { margin: 8px 0 0; color: var(--dim); }

/* The world's date, right under the moon's. Tapping it opens a date picker. */
.world {
  position: relative;
  display: inline-block;
  margin-top: 8px;
  padding: 4px 12px 5px;
  border-radius: 99px;
  font-size: 16.5px;
  color: var(--paper-2);
  box-shadow: inset 0 0 0 1px var(--line);
  cursor: pointer;
}
.world::after { content: ' \2195'; font-size: 0.8em; color: var(--dim); }
.world input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  font-size: 16px;
  cursor: pointer;
  color-scheme: dark;
}
.linkish {
  color: var(--paper);
  text-decoration: underline;
  text-decoration-color: var(--faint);
  text-underline-offset: 3px;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

.notes {
  display: grid;
  gap: 10px;
  max-width: 32ch;
  text-align: center;
  min-height: 3.2em;
  align-content: start;
}
/* Short screens (small phones, a browser with its toolbars showing) get the
   most important note only, so nothing has to shrink. */
@media (max-height: 760px) {
  .note + .note { display: none; }
}
.note {
  margin: 0;
  font-size: 17.5px;
  line-height: 1.38;
  color: var(--paper-2);
  text-wrap: balance;
}
.note b {
  display: block;
  margin-bottom: 3px;
  color: var(--ember);
  font-weight: 500;
  font-size: 10.5px;
}

.meta {
  margin: 0;
  color: var(--dim);
  font-size: 10.5px;
  line-height: 1.7;
  text-align: center;
}

/* ruler */

.ruler {
  --rw: 390px;
  position: relative;
  flex: none;
  height: 78px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  touch-action: pan-x;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent);
}
.ruler::-webkit-scrollbar { display: none; }

.ruler-inner { display: flex; width: max-content; height: 100%; }
.spacer { flex: none; width: calc(var(--rw) / 2 - var(--W) / 2); }

.track {
  position: relative;
  flex: none;
  height: 100%;
  background: repeating-linear-gradient(90deg,
      transparent 0 5.5px, var(--faint) 5.5px 6.5px, transparent 6.5px 12px)
    0 calc(100% - 20px) / 100% 9px no-repeat;
}

.mk { position: absolute; transform: translateX(-50%); pointer-events: none; }

.m-month { bottom: 20px; width: 1px; height: 20px; background: var(--dim); }
.m-month em {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  font: 500 9.5px/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  white-space: nowrap;
}
.m-month::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -14px;
  width: 7px;
  height: 7px;
  margin-left: -3.5px;
  border-radius: 50%;
  background: var(--moon);
  box-shadow: 0 0 8px rgba(239, 230, 207, 0.6);
}
.m-month.otium { background: var(--ember); }
.m-month.otium em { color: var(--ember); }
.m-q { bottom: 20px; width: 1px; height: 13px; background: var(--dim); }
.m-q.m-new::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -14px;
  width: 7px;
  height: 7px;
  margin-left: -3.5px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--dim);
}
.m-great { bottom: 33px; width: 6px; height: 6px; background: var(--ember); transform: translateX(-50%) rotate(45deg); }
.m-otium { bottom: 18px; height: 2px; background: var(--ember); opacity: 0.55; transform: none; border-radius: 2px; }

.m-year {
  bottom: 60px;
  font: 600 10px/1 var(--mono);
  letter-spacing: 0.12em;
  color: var(--paper);
  transform: none;
  margin-left: 8px;
}

.m-today { bottom: 20px; width: 2px; height: 14px; background: var(--ember); border-radius: 1px; }

.needle {
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 2px;
  height: 46px;
  margin-left: -1px;
  border-radius: 2px;
  background: var(--paper);
  box-shadow: 0 0 12px rgba(236, 230, 216, 0.5);
  pointer-events: none;
}
.needle::before {
  content: '';
  position: absolute;
  left: 50%;
  top: -7px;
  margin-left: -4px;
  border: 4px solid transparent;
  border-top: 5px solid var(--paper);
}

/* ----------------------------------------------------------------- year */

.year-head {
  flex: none;
  padding: calc(var(--st) + 6px) 0 12px;
  background: var(--bg);
  box-shadow: 0 1px 0 var(--line);
  position: relative;
  z-index: 2;
}
.year-row {
  display: grid;
  grid-template-columns: 56px 1fr 56px;
  align-items: center;
}
.arrow {
  height: 56px;
  font-size: 22px;
  color: var(--dim);
  transition: color 0.2s, transform 0.15s var(--ease);
}
.arrow:active { color: var(--paper); transform: scale(0.88); }
.year-title { text-align: center; }
.year-title h2 {
  margin: 0;
  font-size: 44px;
  line-height: 1;
  font-weight: 360;
  letter-spacing: -0.03em;
  font-variation-settings: 'SOFT' 100, 'WONK' 1;
  font-variant-numeric: lining-nums;
}
.year-sub { margin: 6px 0 0; color: var(--dim); font-size: 10px; }


.months { padding: 4px 0 8px; }

.mblock {
  margin: 0 8px;
  padding: 16px 6px 8px;
  border-radius: 20px;
}
.mblock.otium { background: var(--ember-soft); margin-top: 8px; margin-bottom: 8px; }
.mblock h3 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 0 8px 8px;
  font-size: 28px;
  font-weight: 360;
  font-style: italic;
  letter-spacing: -0.015em;
  font-variation-settings: 'SOFT' 100, 'WONK' 1;
}
.mblock.otium h3 { color: var(--ember); }
.mblock small { color: var(--dim); font-style: normal; font-size: 9.5px; white-space: nowrap; }
.mblock.otium small { color: rgba(255, 122, 69, 0.8); }
.mblock small { text-align: right; line-height: 1.6; }
.mgreat {
  margin: -2px 8px 10px;
  color: var(--ember);
  font: 500 9.5px/1.6 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.qrow { display: grid; grid-template-columns: 58px 1fr; align-items: center; }
.qrow > b {
  padding-left: 8px;
  color: var(--dim);
  font: 500 9px var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.cells { display: grid; grid-template-columns: repeat(9, 1fr); }

.grid { display: grid; grid-template-columns: repeat(7, 1fr); }

.c {
  position: relative;
  display: grid;
  place-items: center;
  height: 40px;
  font-size: 15.5px;
  font-variant-numeric: lining-nums tabular-nums;
  font-variation-settings: 'SOFT' 100;
  color: var(--paper-2);
  border-radius: 14px;
  transition: background 0.15s;
}
.c:active { background: var(--line); }
.c.rest span { font-style: italic; color: var(--paper); }
.c span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
}
.c.full span,
.c.full.rest span {
  font-style: normal;
  background: var(--moon);
  color: var(--bg);
  font-weight: 500;
  box-shadow: 0 0 22px rgba(239, 230, 207, 0.35);
}
.c.new span { box-shadow: inset 0 0 0 1px var(--dim); }
.c.half span { box-shadow: inset 0 0 0 1px var(--dim); }
.c.half.wax span { background: linear-gradient(90deg, transparent 50%, rgba(239, 230, 207, 0.26) 50%); }
.c.half.wane span { background: linear-gradient(90deg, rgba(239, 230, 207, 0.26) 50%, transparent 50%); }
.c.great span { color: var(--ember); font-weight: 600; }
.c.great.full span { color: var(--bg); box-shadow: 0 0 0 2px var(--ember), 0 0 22px rgba(255, 122, 69, 0.45); }
.c.sel span { box-shadow: inset 0 0 0 1.5px var(--paper); }
.c.today::after {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 50%;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: var(--ember);
}
.otium .c { color: #ffd6c2; }

.out {
  display: flex;
  width: calc(100% - 28px);
  margin: 10px 14px;
  padding: 16px 18px;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px var(--faint);
  background-image: repeating-linear-gradient(135deg, transparent 0 9px, rgba(236, 230, 216, 0.035) 9px 10px);
  text-align: left;
  transition: transform 0.15s var(--ease);
}
.out:active { transform: scale(0.985); }
.out span {
  font-size: 24px;
  font-style: italic;
  font-weight: 360;
  font-variation-settings: 'SOFT' 100, 'WONK' 1;
}
.out small { color: var(--dim); font-size: 9.5px; text-align: right; line-height: 1.6; }
.out.today { box-shadow: inset 0 0 0 1.5px var(--ember); }

.legend {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin: 18px 22px 36px;
  padding: 0;
  color: var(--dim);
  font-size: 9.5px;
}
.legend li { display: flex; align-items: center; gap: 8px; }
.legend i {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font: italic 12px var(--serif);
  letter-spacing: 0;
  text-transform: none;
}
.lg-full { background: var(--moon); box-shadow: 0 0 10px rgba(239, 230, 207, 0.4); }
.lg-new { box-shadow: inset 0 0 0 1px var(--dim); }
.lg-rest { color: var(--paper); }
.lg-half { box-shadow: inset 0 0 0 1px var(--dim); background: linear-gradient(90deg, transparent 50%, rgba(239, 230, 207, 0.5) 50%); }
.lg-great { color: var(--ember); font-style: normal !important; font-weight: 600; }
.legend .lg-today { width: 6px; height: 6px; margin: 0 6px; background: var(--ember); }


/* ---------------------------------------------------------------- rules */

.manifesto {
  max-width: 36rem;
  margin: 0 auto;
  padding: calc(var(--st) + 30px) 24px 56px;
  user-select: text;
  -webkit-user-select: text;
  -webkit-touch-callout: default;
}
.manifesto .eyebrow { margin: 0; color: var(--ember); font-size: 10.5px; line-height: 1.6; }

.title {
  margin: 18px 0 30px;
  font-size: clamp(52px, 18.5vw, 104px);
  line-height: 0.86;
  font-weight: 330;
  letter-spacing: -0.05em;
  font-variation-settings: 'SOFT' 100, 'WONK' 1;
}
.title em { color: var(--ember); font-weight: 300; }

.manifesto p,
.gets li,
.rules li {
  font-size: 18.5px;
  line-height: 1.52;
  color: var(--paper-2);
  font-weight: 360;
  text-wrap: pretty;
}
.manifesto p { margin: 0 0 18px; }
.lede::first-letter {
  float: left;
  font-size: 4.3em;
  line-height: 0.82;
  padding: 6px 10px 0 0;
  font-style: italic;
  font-weight: 300;
  color: var(--paper);
  font-variation-settings: 'SOFT' 100, 'WONK' 1;
}

.manifesto h3 {
  margin: 52px 0 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-weight: 500;
  font-size: 10.5px;
}

.gets { list-style: none; margin: 0; padding: 0; }
.gets li { position: relative; padding: 0 0 12px 26px; }
.gets li::before {
  content: '+';
  position: absolute;
  left: 2px;
  top: 0.1em;
  font: 500 15px var(--mono);
  color: var(--ember);
}

.rules { list-style: none; margin: 0; padding: 0; }
.rules li {
  position: relative;
  padding: 0 0 22px 42px;
}
.rules li::before {
  content: counter(list-item, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.45em;
  color: var(--ember);
  font-size: 10.5px;
  letter-spacing: 0.08em;
}
.rules b {
  display: block;
  margin-bottom: 2px;
  color: var(--paper);
  font-weight: 560;
  font-size: 19.5px;
  line-height: 1.3;
  font-variation-settings: 'SOFT' 50;
}
.rules i, .manifesto p i { font-style: italic; }
.live { color: var(--paper); }

.bday {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 0 12px;
  padding: 6px 6px 6px 16px;
  border-radius: 16px;
  background: var(--bg-2);
  box-shadow: inset 0 0 0 1px var(--line);
}
.bday span { color: var(--dim); font-size: 10px; }
.bday input {
  min-width: 9.5em;
  min-height: 46px;
  flex: 0 1 auto;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--bg);
  color: var(--paper);
  font: 500 16px var(--mono);
  color-scheme: dark;
  text-align: right;
}
.bday input:focus { outline: 1.5px solid var(--ember); outline-offset: 0; }
.bday-out { display: block; font-style: italic; color: var(--paper); }
.bday-out:empty { display: none; }

.legend-rules { margin: 0 0 18px; font-size: 10px; flex-direction: column; gap: 12px; }
.howto { font-size: 17px !important; }

.install p { margin: 0 0 16px; }
.install svg { width: 1.05em; height: 1.05em; vertical-align: -0.12em; color: var(--paper); }
.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 22px;
  border-radius: 99px;
  background: var(--ember);
  color: #1a0d06;
  font-weight: 600;
  transition: transform 0.15s var(--ease);
}
.cta:active { transform: scale(0.96); }

.colophon { margin-top: 56px; padding-top: 16px; border-top: 1px solid var(--line); }
.colophon p { font-size: 14.5px !important; color: var(--dim) !important; margin: 0 0 8px !important; }

/* ------------------------------------------------------------------ tabs */

.tabs {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: calc(var(--tabs) + var(--sb));
  padding-bottom: var(--sb);
  background: var(--bg);
  box-shadow: 0 -1px 0 var(--line);
}
.tabs button {
  position: relative;
  color: var(--dim);
  font-size: 11px;
  letter-spacing: 0.2em;
  transition: color 0.2s;
}
.tabs button::before {
  content: '';
  position: absolute;
  top: 9px;
  left: 50%;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: var(--paper);
  transform: scale(0);
  transition: transform 0.3s var(--ease);
}
.tabs button[aria-current='page'] { color: var(--paper); }
.tabs button[aria-current='page']::before { transform: scale(1); }
.tabs button:active { color: var(--paper); }

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

.sheet {
  position: absolute;
  z-index: 10;
  left: 10px;
  right: 10px;
  bottom: calc(var(--tabs) + var(--sb) + 10px);
  padding: 20px 20px 14px;
  border-radius: 24px;
  background: #181a21;
  box-shadow: inset 0 0 0 1px var(--line), 0 20px 60px rgba(0, 0, 0, 0.6);
  animation: sheet-in 0.45s var(--ease);
}
.sheet .install p { font-size: 16.5px; line-height: 1.45; color: var(--paper-2); }
.sheet-title {
  margin: 0 0 8px;
  font-size: 23px;
  font-style: italic;
  font-weight: 380;
  font-variation-settings: 'SOFT' 100, 'WONK' 1;
}
.sheet-close { display: block; margin: 8px auto 0; padding: 12px 20px; color: var(--dim); font-size: 10.5px; }
@keyframes sheet-in { from { transform: translateY(30px); opacity: 0; } }

.haptic { position: absolute; top: 0; left: 0; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ------------------------------------------------------- great days list */

.manifesto .gets b { color: var(--paper); font-weight: 560; }
.manifesto .small { font-size: 16px; color: var(--dim); }
.great { margin: 0 0 8px; }
.great dt {
  margin-top: 18px;
  font-size: 22px;
  font-style: italic;
  font-weight: 380;
  color: var(--ember);
  font-variation-settings: 'SOFT' 100, 'WONK' 1;
}
.great dt span {
  display: block;
  margin-top: 2px;
  font: 500 10px/1.5 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  font-style: normal;
}
.great dd {
  margin: 6px 0 0;
  font-size: 17.5px;
  line-height: 1.5;
  color: var(--paper-2);
  font-weight: 360;
}
.rare dt { color: var(--moon); }
.rules .from { display: block; margin-top: 4px; font-size: 15px; color: var(--dim); }
.rare .live { display: block; margin-top: 6px; color: var(--paper); font-style: italic; }

.inline-btn {
  display: inline-block;
  margin-left: 4px;
  padding: 2px 10px 3px;
  border-radius: 99px;
  box-shadow: inset 0 0 0 1px var(--ember);
  color: var(--ember);
  font: 500 10.5px var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  vertical-align: 0.1em;
}

/* ----------------------------------------------------------- place sheet */

.place-opt {
  display: block;
  width: 100%;
  margin: 10px 0 0;
  padding: 14px 16px;
  border-radius: 16px;
  text-align: left;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow 0.2s, background 0.2s;
}
.place-opt b { display: block; font-size: 19px; font-weight: 500; }
.place-opt small { display: block; margin-top: 4px; font-size: 14.5px; line-height: 1.4; color: var(--dim); }
.place-opt[aria-pressed='true'] { box-shadow: inset 0 0 0 1.5px var(--ember); background: var(--ember-soft); }
.place-note { margin: 12px 2px 0; font: 500 10.5px/1.6 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.place-note:empty { display: none; }

/* ----------------------------------------------------------- first launch */

.intro { margin: 6px 0 18px; padding: 0 0 0 20px; }
.intro li { margin: 0 0 10px; font-size: 16.5px; line-height: 1.45; color: var(--paper-2); }
.intro li::marker { color: var(--ember); font: 500 12px var(--mono); }
.cta-wide { width: 100%; justify-content: center; }
