/* ==========================================================================
   Day One · DAVVAJ
   Brand tokens live here. Change a color once, it changes everywhere.
   ========================================================================== */

@font-face {
  font-family: "Jost";
  src: url("../fonts/jost-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Jost";
  src: url("../fonts/jost-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #0B0B0B;
  --surface: #141414;
  --surface-2: #1B1B1B;
  --line: #262626;
  --line-strong: #3a3a3a;
  --red: #E00000;
  --red-soft: rgba(224, 0, 0, .14);
  --cream: #ECE8E0;
  --grey: #B0ADA6;
  --grey-dim: #8a8780;

  --font: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 20px;
  --maxw: 560px;
  --radius: 14px;
  --tabbar-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --topbar-h: calc(65px + var(--safe-t));
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; line-height: 1.05; font-weight: 800; letter-spacing: -.01em; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--cream); color: var(--bg); padding: 8px 14px; border-radius: 8px; text-decoration: none;
}
.skip:focus { top: calc(8px + var(--safe-t)); }

/* ---- The logo mark: two small red triangles ▼▼ ---- */
.tri {
  display: inline-block;
  width: .62em; height: .54em;
  background: var(--red);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.tri + .tri { margin-left: .12em; }

/* ---- Top bar ---- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(10px + var(--safe-t)) var(--gutter) 10px;
  background: rgba(11, 11, 11, .86);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.topbar.is-scrolled { border-bottom-color: var(--line); }
.topbar__brand {
  display: inline-flex; align-items: center; gap: 2px;
  text-decoration: none; font-size: 18px;
  min-height: 44px;
}
.topbar__name { margin-left: 10px; font-weight: 700; font-size: 14px; letter-spacing: .28em; }
.topbar__help {
  font-size: 13px; color: var(--grey); text-decoration: none;
  padding: 10px 0 10px 12px; min-height: 44px; display: inline-flex; align-items: center;
}
.topbar__help:hover { color: var(--cream); }

/* ---- Main view ---- */
.view {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 8px var(--gutter) calc(var(--tabbar-h) + var(--safe-b) + 40px);
  outline: none;
}
.view > * { animation: rise .45s var(--ease) both; }
.view > *:nth-child(2) { animation-delay: .04s; }
.view > *:nth-child(3) { animation-delay: .08s; }
.view > *:nth-child(n+4) { animation-delay: .12s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.loading { display: flex; justify-content: center; padding: 30vh 0; font-size: 22px; gap: 4px; }
.loading .tri { animation: blink 1s infinite alternate; }
.loading .tri + .tri { animation-delay: .3s; }
@keyframes blink { from { opacity: .25; } to { opacity: 1; } }

/* ---- Tab bar ---- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: flex; justify-content: center;
  padding: 6px 8px calc(6px + var(--safe-b));
  background: rgba(11, 11, 11, .92);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-top: 1px solid var(--line);
}
.tabbar a {
  flex: 1; max-width: 120px;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 6px 0; min-height: 50px;
  text-decoration: none; color: var(--grey-dim);
  font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  transition: color .2s;
}
.tabbar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tabbar a[aria-current="page"] { color: var(--cream); }
.tabbar a[aria-current="page"] svg { stroke: var(--red); }

/* ---- Type helpers ---- */
.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--grey);
}
.lead { font-size: 21px; line-height: 1.4; font-weight: 500; color: var(--cream); }
.muted { color: var(--grey); }
.small { font-size: 14px; }
.section { margin-top: 48px; }
.section__title {
  font-size: 13px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--grey); margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.h-big { font-size: clamp(34px, 10vw, 48px); font-weight: 900; text-transform: uppercase; letter-spacing: -.015em; }

/* ---- Wordmark: ONE DAY (struck) / DAY ONE. ---- */
.wordmark { margin: 28px 0 22px; }
.wordmark__struck {
  display: inline-block;
  color: var(--red); font-weight: 800; text-transform: uppercase;
  font-size: clamp(22px, 7vw, 32px); letter-spacing: .02em;
  position: relative; line-height: 1;
}
.wordmark__struck::after {
  content: ""; position: absolute; left: -4%; right: -4%; top: 52%;
  height: .12em; background: var(--red);
  transform-origin: left; animation: strike .6s .35s var(--ease) both;
}
@keyframes strike { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.wordmark__title {
  font-size: clamp(64px, 22vw, 118px); font-weight: 900; text-transform: uppercase;
  line-height: .9; letter-spacing: -.035em; margin-top: 6px; color: var(--cream);
}
.dot {
  display: inline-block; width: .17em; height: .17em; background: var(--red);
  margin-left: .04em; vertical-align: baseline;
}

/* ---- Buttons ---- */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 56px; padding: 14px 22px;
  border: 0; border-radius: 999px; cursor: pointer;
  font-size: 18px; font-weight: 700; letter-spacing: .02em; text-decoration: none;
  transition: transform .15s var(--ease), background .2s, color .2s, opacity .2s;
}
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: #f00a0a; }
.btn--light { background: var(--cream); color: var(--bg); }
.btn--ghost { background: transparent; color: var(--cream); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--grey); }
.btn--done { background: var(--surface-2); color: var(--cream); box-shadow: inset 0 0 0 1.5px var(--red); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.btn-row { display: grid; gap: 12px; margin-top: 24px; }
.link {
  color: var(--cream); text-decoration: underline; text-decoration-color: rgba(236, 232, 224, .35);
  text-underline-offset: 3px; text-decoration-thickness: 1.5px;
}
.link:hover { text-decoration-color: currentColor; }
.textbtn {
  background: none; border: 0; padding: 10px 0; cursor: pointer;
  color: var(--grey); font-size: 15px; text-decoration: underline; text-underline-offset: 3px;
}
.textbtn:hover { color: var(--cream); }

/* ---- Cards / panels ---- */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.panel + .panel { margin-top: 12px; }
.panel--accent { border-left: 3px solid var(--red); }
.panel__label {
  font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--grey); margin-bottom: 8px;
}
.panel p:last-child { margin-bottom: 0; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.steps li { counter-increment: step; position: relative; padding-left: 50px; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: -2px;
  font-weight: 900; font-size: 22px; color: var(--grey-dim); letter-spacing: -.02em;
}

.levels { display: grid; gap: 10px; }
.level-pill {
  display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; align-items: baseline;
  padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  text-decoration: none;
}
.level-pill__n { font-size: 30px; font-weight: 900; color: var(--grey-dim); grid-row: span 2; line-height: 1; }
.level-pill__name { font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 15px; }
.level-pill__meta { color: var(--grey); font-size: 14px; }

.notice {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px; border-radius: var(--radius);
  background: var(--surface-2); border: 1px solid var(--line);
  font-size: 14px; color: var(--grey); line-height: 1.45;
}
.notice strong { color: var(--cream); font-weight: 600; }
.notice__x { margin-left: auto; background: none; border: 0; color: var(--grey); font-size: 22px; line-height: 1; padding: 0 4px; cursor: pointer; min-width: 32px; min-height: 32px; }

.care {
  margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line);
  font-size: 14px; color: var(--grey);
}
.care a { color: var(--cream); }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; font-size: 13px; }
.footer-links a { color: var(--grey); text-decoration: none; padding: 6px 0; }
.footer-links a:hover { color: var(--cream); }

/* Open / to-be-decided marker */
.tbd {
  border-left: 2px solid var(--line-strong);
  padding: 4px 0 4px 16px; color: var(--grey); font-size: 15px;
}
.tbd__tag {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--bg); background: var(--grey); padding: 2px 8px; border-radius: 4px; margin-bottom: 8px;
}
.todo {
  border-left: 3px dashed var(--red); padding: 6px 0 6px 14px; color: var(--grey); font-style: italic;
}

/* ---- Physical card mock ---- */
.deckcard-wrap { perspective: 1200px; }
.deckcard {
  position: relative; width: 100%; aspect-ratio: 63 / 88;
  transform-style: preserve-3d; transition: transform .7s var(--ease);
  cursor: pointer; border: 0; padding: 0; background: none; text-align: left; display: block;
}
.deckcard.is-flipped { transform: rotateY(180deg); }
.deckcard__face {
  position: absolute; inset: 0; border-radius: 16px;
  background: #0E0E0E; border: 1px solid #2b2b2b;
  box-shadow: 0 18px 40px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.04);
  padding: 9% 9% 8%; display: flex; flex-direction: column;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
  overflow: hidden;
}
.deckcard__face--back { transform: rotateY(180deg); background: var(--cream); color: var(--bg); border-color: var(--cream); }
.deckcard__top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
.deckcard__day { font-weight: 800; letter-spacing: .16em; font-size: 11px; color: var(--grey); }
.deckcard__face--back .deckcard__day { color: #5b5953; }
.deckcard__num { font-size: clamp(44px, 14vw, 64px); font-weight: 900; color: var(--red); line-height: 1; margin-top: 10%; letter-spacing: -.03em; }
.deckcard__title { font-size: clamp(18px, 5.4vw, 24px); font-weight: 800; text-transform: uppercase; line-height: 1.05; margin-top: 6px; }
.deckcard__text { font-size: clamp(13px, 3.8vw, 15px); line-height: 1.4; margin-top: auto; color: var(--cream); }
.deckcard__face--back .deckcard__text { color: var(--bg); font-size: clamp(16px, 4.6vw, 19px); font-weight: 500; margin-top: 12px; }
.deckcard__hint { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--grey-dim); margin-top: 12px; }
.deckcard__face--back .deckcard__hint { color: #6d6a63; margin-top: auto; }

.carousel {
  display: grid; grid-auto-flow: column; grid-auto-columns: 74%;
  gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin: 0 calc(var(--gutter) * -1); padding: 6px var(--gutter) 24px;
  scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel > * { scroll-snap-align: center; }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.fact { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 8px; text-align: center; }
.fact__v { font-size: 22px; font-weight: 800; line-height: 1.1; }
.fact__l { font-size: 11px; color: var(--grey); letter-spacing: .1em; text-transform: uppercase; margin-top: 2px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 10px; height: 8px; background: var(--red); clip-path: polygon(0 0, 100% 0, 50% 100%); }

/* ---- Road ---- */
.road-head { margin: 22px 0 8px; }
.progress { margin-top: 18px; }
.progress__nums { display: flex; align-items: baseline; gap: 8px; }
.progress__big { font-size: 44px; font-weight: 900; line-height: 1; }
.progress__bar { display: grid; grid-template-columns: repeat(30, 1fr); gap: 3px; margin-top: 12px; }
.progress__bar i { height: 8px; border-radius: 2px; background: var(--line); }
.progress__bar i.is-done { background: var(--red); }
.progress__bar i.is-today { background: var(--cream); }
.progress__bar i:nth-child(10), .progress__bar i:nth-child(20) { margin-right: 4px; }

.road { position: relative; margin-top: 36px; }
.road__level { position: relative; margin-bottom: 8px; }
.road__levelhead { padding: 18px 0 14px 56px; position: relative; }
.road__levelname { font-size: 24px; font-weight: 900; text-transform: uppercase; margin-top: 4px; }
.road__levelblurb { color: var(--grey); font-size: 15px; margin-top: 2px; }
.road__list { list-style: none; margin: 0; padding: 0; position: relative; }
.road__list::before {
  content: ""; position: absolute; left: 21px; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(var(--line-strong), var(--line-strong));
}
.stop {
  position: relative; display: flex; align-items: center; gap: 16px;
  padding: 8px 12px 8px 0; min-height: 60px; text-decoration: none; border-radius: 12px;
  transition: background .2s;
}
.stop:hover { background: var(--surface); }
.stop__node {
  position: relative; z-index: 1; flex: none;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800; font-size: 15px;
  background: var(--bg); color: var(--grey-dim);
  box-shadow: inset 0 0 0 2px var(--line-strong);
}
.stop__body { min-width: 0; }
.stop__title { font-weight: 600; font-size: 17px; color: var(--grey); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stop__meta { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--grey-dim); }
.stop.is-done .stop__node { background: var(--red); color: #fff; box-shadow: none; }
.stop.is-done .stop__title { color: var(--cream); }
.stop.is-today { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong); }
.stop.is-today .stop__node { background: var(--cream); color: var(--bg); box-shadow: 0 0 0 4px var(--bg), 0 0 0 6px var(--red); animation: pulse 2.2s infinite; }
.stop.is-today .stop__title { color: var(--cream); font-weight: 700; }
.stop.is-today .stop__meta { color: var(--red); font-weight: 700; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 4px var(--bg), 0 0 0 6px var(--red); } 50% { box-shadow: 0 0 0 4px var(--bg), 0 0 0 9px rgba(224,0,0,.35); } }
.stop--cp .stop__node { width: 44px; height: 24px; border-radius: 0; background: transparent; box-shadow: none; }
.stop--cp .stop__node::before { content: ""; width: 14px; height: 14px; transform: rotate(45deg); background: var(--bg); box-shadow: inset 0 0 0 2px var(--grey-dim); }
.stop--cp.is-done .stop__node { background: transparent; }
.stop--cp.is-done .stop__node::before { background: var(--red); box-shadow: none; }
.stop--cp { min-height: 48px; }
.stop--cp .stop__title { font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }

.goal { position: relative; display: flex; align-items: center; gap: 16px; padding: 14px 0 0; text-decoration: none; }
.goal__node { width: 44px; height: 44px; flex: none; display: grid; place-items: center; }
.goal__node span { width: 22px; height: 22px; background: var(--red); }
.goal__title { font-size: 26px; font-weight: 900; text-transform: uppercase; line-height: 1; }

.data { margin-top: 56px; }
.data details { border-top: 1px solid var(--line); }
.data details:last-child { border-bottom: 1px solid var(--line); }
.data summary { list-style: none; cursor: pointer; padding: 16px 0; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.data summary::-webkit-details-marker { display: none; }
.data summary::after { content: "+"; font-size: 22px; color: var(--grey); font-weight: 400; }
.data details[open] summary::after { content: "–"; }
.data__inner { padding: 0 0 18px; color: var(--grey); font-size: 15px; }
.field {
  width: 100%; min-height: 110px; resize: vertical;
  background: var(--surface); color: var(--cream);
  border: 1px solid var(--line-strong); border-radius: 12px;
  padding: 14px; font: inherit; font-size: 16px; line-height: 1.5;
}
.field:focus { outline: none; border-color: var(--grey); }
.field::placeholder { color: var(--grey-dim); }
.field--code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; min-height: 90px; word-break: break-all; }

/* ---- Day view ---- */
.dayhead { display: flex; justify-content: space-between; align-items: center; margin: 6px 0 22px; }
.back { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--grey); font-size: 15px; min-height: 44px; }
.back:hover { color: var(--cream); }
.daycount { font-size: 13px; font-weight: 700; letter-spacing: .16em; color: var(--grey); }
.daycount b { color: var(--cream); }
.daynum { font-size: clamp(88px, 30vw, 140px); font-weight: 900; color: var(--red); line-height: .82; letter-spacing: -.05em; }
.daytitle { font-size: clamp(32px, 9.5vw, 46px); font-weight: 900; text-transform: uppercase; margin-top: 14px; letter-spacing: -.015em; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--grey);
  margin-top: 16px;
}
.badge::before { content: ""; width: 8px; height: 8px; background: var(--grey-dim); }
.badge--today { color: var(--bg); background: var(--cream); padding: 4px 10px; border-radius: 999px; margin: 0 0 0 8px; }
.badge--today::before { display: none; }
.badge--done { color: var(--red); margin: 0 0 0 8px; }
.badge--done::before { display: none; }

.mission { margin-top: 28px; }
.mission__text { font-size: 23px; line-height: 1.4; font-weight: 500; }
.tip { margin-top: 18px; }
.reflect__q { font-size: 20px; line-height: 1.45; font-weight: 500; }
.saved-hint { font-size: 13px; color: var(--grey-dim); margin-top: 8px; min-height: 1.4em; }

.video {
  margin-top: 18px; aspect-ratio: 16 / 9; border-radius: var(--radius);
  background: repeating-linear-gradient(135deg, #121212 0 12px, #161616 12px 24px);
  border: 1px dashed var(--line-strong);
  display: grid; place-items: center; text-align: center; color: var(--grey-dim); font-size: 14px;
}
.video__play { width: 46px; height: 46px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--grey-dim); display: grid; place-items: center; margin: 0 auto 10px; }
.video__play::before { content: ""; width: 14px; height: 16px; background: var(--grey-dim); clip-path: polygon(0 0, 100% 50%, 0 100%); margin-left: 4px; }
.video iframe, .video video { width: 100%; height: 100%; border: 0; border-radius: var(--radius); }
.video--real { border: 0; background: #000; }

.facedown {
  margin-top: 28px; position: relative; overflow: hidden;
  border-radius: var(--radius); padding: 34px 22px; text-align: center;
  background: #0E0E0E; border: 1px solid var(--line-strong);
}
.facedown__mark { font-size: 46px; display: flex; justify-content: center; gap: 6px; margin-bottom: 14px; }
.facedown__text { font-size: 20px; font-weight: 600; }

.donebar { margin-top: 30px; }
.done-stamp { animation: stamp .45s var(--ease) both; }
@keyframes stamp { 0% { transform: scale(.94); opacity: .2; } 60% { transform: scale(1.02); } 100% { transform: none; opacity: 1; } }
.after-done { margin-top: 14px; text-align: center; color: var(--grey); font-size: 15px; }

.pager { display: flex; justify-content: space-between; margin-top: 30px; gap: 12px; }
.pager a { text-decoration: none; color: var(--grey); font-size: 15px; padding: 10px 0; min-height: 44px; display: inline-flex; align-items: center; gap: 6px; }
.pager a:hover { color: var(--cream); }
.helper-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.chip {
  display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px;
  border-radius: 999px; border: 1px solid var(--line-strong);
  font-size: 14px; color: var(--grey); text-decoration: none;
}
.chip:hover { color: var(--cream); border-color: var(--grey); }

/* ---- Info ---- */
.infolist { display: grid; gap: 10px; margin-top: 26px; }
.inforow {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 18px; min-height: 64px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; font-weight: 600; font-size: 18px;
}
.inforow:hover { border-color: var(--line-strong); }
.inforow small { display: block; font-weight: 400; font-size: 14px; color: var(--grey); }
.inforow::after { content: "›"; color: var(--grey-dim); font-size: 26px; line-height: 1; }
.inforow--care { border-color: rgba(224,0,0,.45); }
.prose { font-size: 19px; line-height: 1.6; }
.prose p { margin-bottom: 1em; }
.tel {
  color: var(--cream); font-weight: 700; white-space: nowrap;
  text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 3px; text-decoration-thickness: 2px;
}
.cp-section + .cp-section { margin-top: 12px; }

/* ---- Error / empty ---- */
.state { text-align: center; padding: 18vh 0 0; }
.state__mark { font-size: 34px; display: flex; justify-content: center; gap: 4px; margin-bottom: 18px; }
.state h1 { font-size: 30px; font-weight: 900; text-transform: uppercase; }
.state p { color: var(--grey); margin-top: 10px; }

.noscript { padding: 40px 20px; text-align: center; }

.toast {
  position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + var(--safe-b) + 18px); z-index: 30;
  transform: translate(-50%, 20px); opacity: 0;
  background: var(--cream); color: var(--bg); font-weight: 600; font-size: 15px;
  padding: 10px 18px; border-radius: 999px; pointer-events: none;
  transition: opacity .25s, transform .25s var(--ease);
  max-width: calc(100% - 40px); text-align: center;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (min-width: 700px) {
  .carousel { grid-auto-columns: 46%; }
  .view { padding-top: 24px; }
}

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

/* ==========================================================================
   Side menu (drawer) + deck list
   Phones/tablets: slides in from the right. Wide screens: fixed sidebar left.
   ========================================================================== */
.topbar__right { display: flex; align-items: center; gap: 4px; }
.menu-btn {
  width: 44px; height: 44px; margin-right: -10px;
  display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px;
  background: none; border: 0; cursor: pointer;
}
.menu-btn span { width: 20px; height: 2px; background: var(--cream); border-radius: 2px; transition: transform .25s var(--ease); }
.drawer-open .menu-btn span:first-child { transform: translateY(4px) rotate(45deg); }
.drawer-open .menu-btn span:last-child { transform: translateY(-4px) rotate(-45deg); }

.drawer {
  position: fixed; top: 0; bottom: 0; right: 0; z-index: 40;
  width: min(320px, 86vw);
  padding: calc(10px + var(--safe-t)) 22px calc(24px + var(--safe-b));
  background: #101010; border-left: 1px solid var(--line);
  overflow-y: auto; overscroll-behavior: contain;
  transform: translateX(100%); visibility: hidden;
  transition: transform .32s var(--ease), visibility 0s linear .32s;
}
.drawer-open .drawer { transform: none; visibility: visible; transition: transform .32s var(--ease); }
.scrim { position: fixed; inset: 0; z-index: 35; background: rgba(0,0,0,.6); animation: fade .25s both; }
@keyframes fade { from { opacity: 0; } }
.drawer__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.drawer__close { width: 44px; height: 44px; margin-right: -10px; background: none; border: 0; color: var(--cream); font-size: 28px; line-height: 1; cursor: pointer; }
.drawer__label {
  font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--grey-dim);
  margin: 22px 0 10px;
}
.drawer ul { list-style: none; margin: 0; padding: 0; }
.drawer a { text-decoration: none; }
.drawer__decks { display: grid; gap: 8px; }
.drawer__deck { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; }
.drawer__deck.is-active { border-color: var(--line-strong); box-shadow: inset 3px 0 0 var(--red); }
.drawer__decklink { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 14px; min-height: 52px; }
.drawer__deckname { font-weight: 800; font-size: 18px; text-transform: uppercase; letter-spacing: -.005em; }
.drawer__deck.is-soon .drawer__deckname { color: var(--grey); }
.drawer__deck.is-locked .drawer__sub { display: none; }
.drawer__sub { padding: 0 8px 8px !important; display: grid; }
.drawer__sub a, .drawer__more a {
  display: flex; align-items: center; min-height: 40px; padding: 6px 8px; border-radius: 8px;
  color: var(--grey); font-size: 15px;
}
.drawer__more a { padding-left: 0; }
.drawer__sub a:hover, .drawer__more a:hover { color: var(--cream); }
.drawer__sub a[aria-current="page"] { color: var(--cream); background: var(--surface-2); font-weight: 600; }
.drawer__account {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 10px 10px 14px; border: 1px solid var(--line); border-radius: 12px;
}
.drawer__who { display: grid; min-width: 0; font-size: 14px; color: var(--cream); }
.drawer__who small { font-size: 11px; color: var(--grey-dim); }
.drawer__who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drawer__logout {
  flex: none; min-height: 40px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: none; color: var(--cream);
  font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
}
.drawer__logout:hover, .drawer__logout:focus-visible { border-color: var(--cream); }
.drawer__foot { display: flex; gap: 18px; margin-top: 26px; font-size: 13px; }
.drawer__foot a { color: var(--grey-dim); padding: 6px 0; }

.pill {
  flex: none; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 999px; background: var(--red-soft); color: #ff5a5a;
}
.pill--soon { background: transparent; color: var(--grey); box-shadow: inset 0 0 0 1px var(--line-strong); }
section > .pill { display: inline-block; margin-top: 4px; }

.intro-video .video { margin-top: 8px; }

@media (min-width: 1100px) {
  .menu-btn, .scrim { display: none !important; }
  .drawer {
    left: 0; right: auto; width: 280px;
    transform: none; visibility: visible; transition: none;
    border-left: 0; border-right: 1px solid var(--line);
    padding-top: 22px;
  }
  .drawer__head .drawer__close { display: none; }
  body { padding-left: 280px; }
  .topbar .topbar__brand { visibility: hidden; }
  .tabbar { display: none; }
  .view { padding-bottom: calc(var(--safe-b) + 64px); }
  .toast { bottom: calc(var(--safe-b) + 24px); }
}

/* ---- Tester code screen ---- */
.unlock { margin-top: 24px; display: grid; gap: 10px; }
.unlock__input {
  min-height: 58px; resize: none; font-size: 20px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; text-align: center;
}
.unlock__input::placeholder { letter-spacing: .06em; text-transform: none; font-weight: 400; font-size: 17px; }
.unlock__msg { min-height: 1.4em; margin: 0; font-size: 15px; color: #ff6b6b; text-align: center; }

/* ---- Draw a card ---- */
.draw__stage { max-width: 280px; margin: 0 auto; perspective: 1200px; }
.draw__deck {
  position: relative; width: 100%; aspect-ratio: 63 / 88; cursor: pointer;
  border-radius: 16px; border: 1px solid #2b2b2b; background: #0E0E0E;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  box-shadow: 8px 8px 0 -1px #151515, 8px 8px 0 0 #262626, 16px 16px 0 -1px #121212, 16px 16px 0 0 #222, 0 24px 50px rgba(0,0,0,.6);
  transition: transform .2s var(--ease);
}
.draw__deck:hover { transform: translate(-2px, -3px); }
.draw__deck:active { transform: scale(.98); }
.draw__mark { font-size: 44px; display: flex; gap: 6px; }
.draw__mark::after { content: ""; position: absolute; width: 36px; height: 2px; background: var(--red); left: 50%; top: calc(50% + 10px); transform: translateX(-50%); }
.draw__hint { font-size: 12px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--grey-dim); }
.draw__card { animation: dealt .55s var(--ease) both; }
@keyframes dealt { from { opacity: 0; transform: translateY(18px) rotate(-3deg) scale(.96); } to { opacity: 1; transform: none; } }

/* ---- Accounts, feedback, admin ---- */
.unlock__plain { min-height: 52px; resize: none; font-size: 17px; }
.feedback { margin-top: 18px; display: grid; gap: 12px; text-align: left; }
.seg { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.seg legend, .seg__legend { display: block; width: 100%; font-size: 14px; color: var(--grey); margin-bottom: 8px; }
.seg__opt { position: relative; }
.seg__opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg__opt span {
  display: inline-flex; align-items: center; justify-content: center; min-width: 48px; min-height: 44px; padding: 8px 14px;
  border-radius: 999px; border: 1px solid var(--line-strong); color: var(--grey); font-weight: 600; font-size: 15px;
  transition: background .15s, color .15s, border-color .15s;
}
.seg__opt input:checked + span { background: var(--cream); color: var(--bg); border-color: var(--cream); }
.seg__opt input:focus-visible + span { outline: 2px solid var(--cream); outline-offset: 2px; }
.admin-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.admin-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.admin-card__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 10px; }
.admin-card__top b { flex: 1 1 180px; min-width: 0; overflow-wrap: anywhere; }
.admin-card__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.admin-card .chip { background: none; cursor: pointer; font: inherit; font-size: 14px; }
.admin-form { display: grid; gap: 8px; }
.admin-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.admin-form__row .seg__legend { min-height: 2.6em; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; }
.drawer__version { margin-left: auto; padding: 6px 0; color: var(--grey-dim); opacity: .7; }

/* ==========================================================================
   Ritual redesign: draw → mission card → done → reflect card
   ========================================================================== */
.ritual { text-align: center; padding-top: 6px; }
.ritual__title { font-size: clamp(38px, 11vw, 54px); font-weight: 900; text-transform: uppercase; line-height: .95; margin: 12px 0 26px; }
.ritual__deck { width: min(74%, 290px); margin: 0 auto; display: flex; }
.ritual__deck.is-drawing { animation: draw-out .38s var(--ease) forwards; }
@keyframes draw-out { to { transform: translateY(-30px) rotate(-4deg) scale(1.04); opacity: 0; } }
.ritual__quote { max-width: 340px; margin: 26px auto 0; font-size: 16px; line-height: 1.5; }

.daycard {
  position: relative; margin-top: 4px;
  background: #0E0E0E; border: 1px solid #2b2b2b; border-radius: 22px;
  padding: 22px 22px 26px;
  box-shadow: 0 24px 60px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.04);
}
.daycard.is-dealt { animation: dealt-big .6s var(--ease) both; }
@keyframes dealt-big { from { opacity: 0; transform: perspective(900px) rotateY(-80deg) translateY(10px); } to { opacity: 1; transform: none; } }
.daycard__top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--grey); }
.daycard__num { font-size: clamp(84px, 28vw, 128px); font-weight: 900; color: var(--red); line-height: .85; letter-spacing: -.05em; margin-top: 18px; }
.daycard__title { font-size: clamp(30px, 9vw, 42px); font-weight: 900; text-transform: uppercase; margin-top: 10px; letter-spacing: -.015em; }
.daycard__label { font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--grey-dim); margin: 26px 0 6px; }
.daycard__mission { font-size: 22px; line-height: 1.42; font-weight: 500; margin: 0; }
.daycard__badges { margin-top: 18px; display: flex; gap: 0; }
.daycard__badges .badge { margin: 0 8px 0 0; }

.reflectcard {
  margin-top: 18px; background: var(--cream); color: var(--bg);
  border-radius: 22px; padding: 22px 22px 18px;
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
}
.reflectcard.is-flipped-in { animation: flip-in .7s .25s var(--ease) both; }
@keyframes flip-in { from { opacity: 0; transform: perspective(900px) rotateY(90deg); } to { opacity: 1; transform: none; } }
.reflectcard .daycard__top { color: #6d6a63; }
.reflectcard__q { font-size: 22px; line-height: 1.4; font-weight: 600; margin: 18px 0 18px; }
.reflectcard__label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #6d6a63; margin-bottom: 8px; }
.reflectcard__field { background: #F6F3EC; color: var(--bg); border-color: #d4cfc4; }
.reflectcard__field:focus { border-color: #8a8780; }
.reflectcard__field::placeholder { color: #9a968e; }
.reflectcard .saved-hint { color: #6d6a63; }

/* "Done" mark with a burst of little red triangles */
.donemark { position: relative; display: grid; place-items: center; height: 92px; margin-top: 20px; }
.donemark span {
  width: 64px; height: 64px; border-radius: 50%; background: var(--red); color: #fff;
  display: grid; place-items: center; font-size: 30px; font-weight: 900; position: relative; z-index: 1;
}
.donemark.is-new span { animation: pop .5s var(--ease) both; }
@keyframes pop { 0% { transform: scale(.3); } 70% { transform: scale(1.15); } 100% { transform: scale(1); } }
.donemark i {
  position: absolute; left: 50%; top: 50%; width: 12px; height: 10px; margin: -5px 0 0 -6px;
  background: var(--red); clip-path: polygon(0 0, 100% 0, 50% 100%); opacity: 0;
}
.donemark.is-new i { animation: burst .8s var(--ease) both; }
.donemark i:nth-child(1)  { --a: 0deg; }   .donemark i:nth-child(2)  { --a: 36deg; }
.donemark i:nth-child(3)  { --a: 72deg; }  .donemark i:nth-child(4)  { --a: 108deg; }
.donemark i:nth-child(5)  { --a: 144deg; } .donemark i:nth-child(6)  { --a: 180deg; }
.donemark i:nth-child(7)  { --a: 216deg; } .donemark i:nth-child(8)  { --a: 252deg; }
.donemark i:nth-child(9)  { --a: 288deg; } .donemark i:nth-child(10) { --a: 324deg; }
@keyframes burst {
  0% { opacity: 1; transform: rotate(var(--a)) translateY(0) scale(.6); }
  100% { opacity: 0; transform: rotate(var(--a)) translateY(-70px) scale(1); }
}

.alldays { margin-top: 22px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.alldays > summary { list-style: none; cursor: pointer; padding: 16px 0; font-weight: 600; display: flex; justify-content: space-between; }
.alldays > summary::-webkit-details-marker { display: none; }
.alldays > summary::after { content: "+"; color: var(--grey); font-size: 22px; font-weight: 400; line-height: 1; }
.alldays[open] > summary::after { content: "–"; }
.alldays .road { margin-top: 0; }

/* ---- Home dashboard ---- */
.todaytile {
  display: flex; gap: 18px; align-items: center; text-decoration: none;
  padding: 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line-strong);
  transition: border-color .2s, transform .15s var(--ease);
}
.todaytile:hover { border-color: var(--grey); }
.todaytile:active { transform: scale(.99); }
.todaytile__card {
  flex: none; width: 74px; aspect-ratio: 63 / 88; border-radius: 10px;
  background: #0E0E0E; border: 1px solid #2f2f2f; display: grid; place-items: center; font-size: 18px;
  box-shadow: 4px 4px 0 -1px #151515, 4px 4px 0 0 #2a2a2a;
}
.todaytile__card.is-open b { color: var(--red); font-size: 30px; font-weight: 900; }
.todaytile__card.is-goal span { width: 22px; height: 22px; background: var(--red); }
.todaytile__body { display: grid; gap: 3px; min-width: 0; }
.todaytile__body small { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--grey); }
.todaytile__body b { font-size: 21px; font-weight: 800; text-transform: uppercase; line-height: 1.1; }
.todaytile__body span { color: var(--grey); font-size: 15px; }
.home-dash .progress { margin-top: 26px; }

/* ---- Admin: wider page ---- */
.view--wide { max-width: 1040px; }
@media (min-width: 760px) {
  .view--wide .admin-list { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
  .view--wide .admin-form { max-width: 560px; }
}
.todaytile__card { display: flex; align-items: center; justify-content: center; }

/* ---- Your journey ---- */
.lvls { display: grid; gap: 14px; }
.lvl__top { display: flex; justify-content: space-between; font-size: 15px; color: var(--grey); margin-bottom: 6px; }
.lvl__top b { color: var(--cream); }
.lvl__bar { height: 10px; border-radius: 99px; background: var(--line); overflow: hidden; }
.lvl__bar i { display: block; height: 100%; background: var(--red); border-radius: 99px; transition: width .6s var(--ease); }
.jlist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.jitem { display: flex; gap: 14px; align-items: flex-start; text-decoration: none; padding: 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.jitem:hover { border-color: var(--line-strong); }
.jitem__num { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-weight: 800; }
.jitem__body { display: grid; gap: 2px; min-width: 0; }
.jitem__body small { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--grey-dim); font-weight: 700; }
.jitem__body b { font-size: 18px; font-weight: 800; text-transform: uppercase; }
.jitem__note { color: var(--grey); font-style: italic; font-size: 15px; margin-top: 4px; }
select.field { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--grey) 50%), linear-gradient(135deg, var(--grey) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }

/* ---- Printable tester cards (85 × 55 mm, 10 per A4) ---- */
.sheet {
  --ink: #0B0B0B; --paper: #ffffff; --muted: #5f5c56;
  display: grid; grid-template-columns: repeat(2, 85mm); grid-auto-rows: 55mm; gap: 4mm 6mm;
  justify-content: center; margin: 28px auto 0; padding: 8mm 0; background: #fff; border-radius: 8px;
  width: 100%; overflow-x: auto;
}
.sheet--dark { --ink: #ECE8E0; --paper: #0B0B0B; --muted: #B0ADA6; }
.tcard {
  width: 85mm; height: 55mm; box-sizing: border-box; padding: 5mm;
  background: var(--paper); color: var(--ink); border: .3mm dashed #c9c5bc;
  display: flex; gap: 4mm; font-family: var(--font); overflow: hidden;
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.tcard__left { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.tcard__brand { display: flex; align-items: center; gap: 1px; font-size: 3.2mm; }
.tcard__brand span:last-child { margin-left: 2mm; font-weight: 700; letter-spacing: .25em; font-size: 2.4mm; }
.tcard__title { font-size: 8.5mm; font-weight: 900; text-transform: uppercase; line-height: .95; margin-top: 3mm; letter-spacing: -.02em; }
.tcard__text { font-size: 2.7mm; line-height: 1.35; color: var(--muted); margin: 2mm 0 0; }
.tcard__code { margin: auto 0 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 700; font-size: 3.6mm; letter-spacing: .06em; }
.tcard__code small { display: block; font-family: var(--font); font-size: 2mm; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.tcard__right { width: 30mm; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.5mm; }
.tcard__qr { width: 28mm; height: 28mm; background: #fff; padding: 1.2mm; box-sizing: content-box; }
.tcard__qr svg { width: 100%; height: 100%; display: block; }
.tcard__url { font-size: 2.1mm; color: var(--muted); margin: 0; text-align: center; word-break: break-all; }

@media print {
  @page { size: A4; margin: 0; }
  html, body { background: #fff !important; }
  body { padding: 0 !important; }
  .topbar, .tabbar, .drawer, .scrim, .no-print, .toast, .skip { display: none !important; }
  .view { max-width: none !important; padding: 0 !important; margin: 0 !important; }
  .view > * { animation: none !important; }
  .sheet { margin: 0; padding: 12mm 0 0; border-radius: 0; overflow: visible; }
}
.tcard__title { white-space: nowrap; font-size: 8mm; }
.sheet { justify-content: safe center; }

/* ---- Reservations ---- */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--grey); line-height: 1.45; margin-top: 6px; cursor: pointer; }
.consent input { width: 22px; height: 22px; flex: none; margin: 1px 0 0; accent-color: var(--red); }

/* ---- Party mode (Night OUT) ---- */
.chip.is-on { background: var(--cream); color: var(--bg); border-color: var(--cream); }
button.chip { background: none; cursor: pointer; font: inherit; font-size: 14px; }
button.chip.is-on { background: var(--cream); }
.partycard__bonus { font-size: 17px; line-height: 1.45; color: var(--grey); margin: 0; }

/* ---- Two-click video ---- */
.video--consent { display: block; }
.video__load {
  width: 100%; height: 100%; border: 0; background: none; color: var(--grey); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 16px; font: inherit;
}
.video__load > span:not(.video__play) { font-weight: 700; color: var(--cream); font-size: 17px; }
.video__load small { font-size: 12px; max-width: 280px; line-height: 1.4; }
.video__load .video__play { margin: 0; box-shadow: inset 0 0 0 2px var(--cream); }
.video__load .video__play::before { background: var(--cream); }
.claim { font-size: clamp(30px, 9vw, 42px); margin-bottom: 18px; }
.claim span { color: var(--red); }

/* ==========================================================================
   Website layer for guests (body.is-guest): top navigation, no app tab bar
   ========================================================================== */
.sitenav { display: none; gap: 22px; margin: 0 auto 0 32px; }
.sitenav a { color: var(--grey); text-decoration: none; font-size: 15px; font-weight: 500; padding: 10px 0; }
.sitenav a:hover { color: var(--cream); }
.topbar__login { display: none; }
.is-guest .tabbar { display: none; }
.is-guest .view { padding-bottom: 48px; }
.is-guest .topbar__login {
  display: inline-flex; align-items: center; min-height: 36px; padding: 6px 14px; margin-left: 8px;
  border-radius: 999px; background: var(--cream); color: var(--bg); font-weight: 700; font-size: 14px; text-decoration: none;
}
.is-guest .topbar__help { display: none; }
@media (min-width: 900px) {
  .is-guest .sitenav { display: flex; }
  .is-guest .topbar__help { display: inline-flex; }
}
.is-guest .toast { bottom: 24px; }

/* ---- Landing page ---- */
.hero { padding-top: 8px; }
.hero__cta { grid-template-columns: 1fr; }
@media (min-width: 520px) { .hero__cta { grid-template-columns: 1fr 1fr; } }
.section-h { font-size: clamp(30px, 8.5vw, 42px); margin-bottom: 10px; }
.decks { display: grid; gap: 22px; margin-top: 20px; }
@media (min-width: 560px) { .decks { grid-template-columns: 1fr 1fr; } }
.view--wide .decks { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.decktile { display: grid; gap: 6px; align-content: start; }
.decktile__card {
  aspect-ratio: 70 / 120; max-height: 330px; width: 100%; border-radius: 16px; text-decoration: none;
  background: #0E0E0E; border: 1px solid #2b2b2b; padding: 18px; display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: 0 18px 40px rgba(0,0,0,.5); transition: transform .2s var(--ease), border-color .2s;
}
.decktile__card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.decktile__card--trip { background: linear-gradient(160deg, #141414, #0B0B0B 60%); }
.decktile__top { display: flex; align-items: center; gap: 2px; font-size: 14px; }
.decktile__top span:last-child { margin-left: 8px; font-size: 10px; font-weight: 700; letter-spacing: .2em; color: var(--grey); text-transform: uppercase; }
.decktile__name { font-size: clamp(30px, 9vw, 40px); font-weight: 900; text-transform: uppercase; line-height: .95; letter-spacing: -.02em; }
.decktile__card .pill { align-self: flex-start; }
.decktile__title { font-size: 20px; font-weight: 800; text-transform: uppercase; margin-top: 10px; }
.decktile__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.decktile__actions .btn { min-height: 46px; font-size: 15px; padding: 10px 12px; }
.howsteps { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 18px; }
.howsteps li { display: grid; grid-template-columns: 54px 1fr; gap: 12px; font-size: 18px; line-height: 1.45; }
.howsteps__n { font-size: 30px; font-weight: 900; color: var(--cream); line-height: 1; }
.howsteps b { color: var(--cream); }
.manifesto { border-left: 3px solid var(--line-strong); padding-left: 18px; }
.manifesto p { font-size: clamp(22px, 6vw, 28px); font-weight: 600; line-height: 1.35; }
.quote p { font-size: 18px; font-style: italic; }
.countline { font-size: 20px; margin: 0; }
.countline b { color: var(--cream); font-size: 30px; font-weight: 900; }

/* ---- Trips ---- */
.trip__title { margin-top: 8px; font-size: clamp(36px, 10vw, 52px); }
.tripgrid { display: grid; gap: 12px; }
@media (min-width: 560px) { .tripgrid { grid-template-columns: 1fr 1fr; } }
.tripgrid .panel + .panel { margin-top: 0; }
.trip__h { font-size: 19px; font-weight: 800; text-transform: uppercase; margin: 0 0 6px; line-height: 1.15; }
.trip__sub { font-size: 15px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--grey); margin: 26px 0 12px; }
.itin { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-left: 2px solid var(--line-strong); margin-left: 8px; }
.itin li { position: relative; padding: 0 0 22px 22px; display: grid; gap: 4px; }
.itin li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; background: var(--red); border-radius: 50%; box-shadow: 0 0 0 4px var(--bg); }
.itin__n { font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--red); }
.itin b { font-size: 19px; }
.itin p { margin: 2px 0 0; }
.ticks--no li::before { background: var(--grey-dim); }
.faq summary { font-weight: 600; }
.faq p { margin: 0 0 16px; }
.routemap { width: 100%; max-width: 480px; display: block; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.routemap text { font-family: var(--font); font-size: 13px; font-weight: 700; fill: var(--cream); paint-order: stroke; stroke: var(--surface); stroke-width: 5px; }
.routemap__country { fill: var(--grey-dim) !important; letter-spacing: .2em; font-size: 11px !important; }
.routemap__leg { stroke: var(--red); stroke-width: 3; stroke-linecap: round; }
.routemap__leg.is-optional { stroke-dasharray: 2 7; stroke: var(--grey); }
.routemap__stop circle { fill: var(--bg); stroke: var(--cream); stroke-width: 3; }
.routemap__stop.is-base rect { fill: var(--red); }
.routemap__stop.is-optional circle { stroke: var(--grey); }
section[id] { scroll-margin-top: 72px; }
.trip .facts { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 520px) { .trip .facts { grid-template-columns: repeat(4, 1fr); } }

/* ==========================================================================
   Website v2: wide layout, box hero, cream band, road, FAQ, footer
   ========================================================================== */
body { overflow-x: clip; }
.view.view--site { max-width: 1120px; }
.measure { max-width: 620px; }


/* ---- Hero ---- */
.hero--site { display: grid; gap: 4px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--grey); font-size: 14px; margin: 20px 0 0; letter-spacing: .02em; }
.hero__facts b { color: var(--cream); font-weight: 800; }
.hero__art { padding: 18px 0 8px; }
@media (min-width: 900px) {
  .hero--site { grid-template-columns: 1.05fr .95fr; align-items: center; gap: 48px; min-height: min(760px, calc(100vh - 130px)); }
  .hero--site .wordmark__title { font-size: clamp(100px, 10.5vw, 156px); }
  .hero--site .wordmark__struck { font-size: clamp(28px, 2.8vw, 40px); }
  .hero__art { padding: 0; }
}

/* ---- The box in 3D (74 × 124 × 18 mm) ---- */
.boxscene { --w: 220px; position: relative; width: var(--w); height: calc(var(--w) * 124 / 74); margin: 24px auto 34px; perspective: 1400px; }
.boxscene--sm { --w: 190px; }
@media (min-width: 900px) { .hero__art .boxscene { --w: 300px; } }
.boxscene::after {
  content: ""; position: absolute; left: 4%; right: 12%; bottom: -7%; height: 9%;
  background: radial-gradient(ellipse at center, rgba(0,0,0,.75), transparent 70%); filter: blur(6px); z-index: 0;
}
.boxscene__card {
  position: absolute; z-index: 0; top: 3%; left: 3%;
  width: calc(var(--w) * .94); height: calc(var(--w) * .94 * 120 / 70);
  border-radius: calc(var(--w) * .05); background: #0E0E0E; border: 1px solid #2f2f2f;
  display: grid; place-items: center; box-shadow: 0 20px 40px rgba(0,0,0,.5);
}
.boxscene__card .draw__mark { font-size: calc(var(--w) * .12); }
.boxscene__card--a { transform: rotate(-15deg) translate(-26%, 1%); }
.boxscene__card--b { transform: rotate(-7deg) translate(-13%, -1%); background: #121212; }
.box3d {
  position: absolute; inset: 0; z-index: 1; transform-style: preserve-3d;
  transform: rotateY(-28deg) rotateX(6deg); animation: boxfloat 7s ease-in-out infinite;
}
@keyframes boxfloat {
  0%, 100% { transform: rotateY(-28deg) rotateX(6deg) translateY(0); }
  50% { transform: rotateY(-20deg) rotateX(4deg) translateY(-10px); }
}
.box3d__face { position: absolute; top: 0; overflow: hidden; -webkit-backface-visibility: hidden; backface-visibility: hidden; background: #0B0B0B; }
.box3d__front {
  left: 0; width: var(--w); height: 100%;
  transform: translateZ(calc(var(--w) * 9 / 74));
  padding: calc(var(--w) * .075); display: flex; flex-direction: column;
  border: 1px solid #262626; border-radius: 3px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
.box3d__side {
  left: calc(var(--w) * 28 / 74); width: calc(var(--w) * 18 / 74); height: 100%;
  transform: rotateY(90deg) translateZ(calc(var(--w) / 2));
  background: #101010; border: 1px solid #262626;
}
.box3d__top {
  left: 0; width: var(--w); top: calc(var(--w) * 53 / 74); height: calc(var(--w) * 18 / 74);
  transform: rotateX(90deg) translateZ(calc(var(--w) * 62 / 74));
  background: #111; display: grid; place-items: center; border: 1px solid #262626;
}
.bx-tri { display: inline-flex; font-size: calc(var(--w) * .07); }
.box3d__top .bx-tri { font-size: calc(var(--w) * .06); }
.bx-head { display: flex; align-items: center; gap: calc(var(--w) * .035); font-size: calc(var(--w) * .036); letter-spacing: .22em; color: var(--grey); font-weight: 600; text-transform: uppercase; white-space: nowrap; }
.bx-struck {
  margin-top: calc(var(--w) * .25); align-self: flex-start; position: relative; line-height: 1;
  font-size: calc(var(--w) * .12); font-weight: 800; color: #6b6964; text-transform: uppercase;
}
.bx-struck::after { content: ""; position: absolute; left: -3%; right: -3%; top: 46%; height: calc(var(--w) * .013); background: var(--red); transform: rotate(-3deg); }
.bx-title { font-size: calc(var(--w) * .31); font-weight: 900; line-height: .86; letter-spacing: -.035em; color: var(--cream); text-transform: uppercase; margin-top: calc(var(--w) * .03); }
.bx-tag { margin-top: auto; padding-bottom: calc(var(--w) * .045); border-bottom: 1px solid #2f2f2f; font-size: calc(var(--w) * .033); letter-spacing: .13em; text-transform: uppercase; color: var(--cream); font-weight: 500; }
.bx-foot { display: flex; justify-content: space-between; margin-top: calc(var(--w) * .04); font-size: calc(var(--w) * .035); letter-spacing: .1em; text-transform: uppercase; color: var(--grey); font-weight: 600; }
.bx-no { color: var(--red); }
.bx-road-title { padding-top: calc(var(--w) * .07); text-align: center; font-size: calc(var(--w) * .028); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--cream); }
.bx-road { position: absolute; top: 20%; bottom: 9%; left: 34%; border-left: 1px dotted #6b6964; display: flex; flex-direction: column; justify-content: space-between; }
.bx-dot { position: relative; width: calc(var(--w) * .045); height: calc(var(--w) * .045); margin-left: calc(var(--w) * -.0235); border-radius: 50%; border: 1.5px solid var(--cream); background: #101010; }
.bx-dot b { position: absolute; left: 150%; top: 50%; transform: translateY(-50%); font-size: calc(var(--w) * .028); color: var(--cream); }
.bx-dot.is-goal { background: var(--red); border-color: var(--red); }
.bx-dot.is-start { background: var(--cream); }
.prodbox .boxscene { margin-top: 30px; }

/* ---- Wide sections ---- */
@media (min-width: 900px) {
  .view--site .decks { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .view--site .section { margin-top: 88px; }
}

/* Cream band: the "reflect" side of the cards */
.band { margin: 64px calc(50% - 50vw) 0; padding: 56px max(var(--gutter), calc(50vw - 540px)); }
.band--cream { background: var(--cream); color: #2a2926; }
.band--cream .section-h { color: var(--bg); }
.band--cream .howsteps li { color: #4a4843; }
.band--cream .howsteps b { color: var(--bg); }
.band--cream .howsteps__n { color: #7a756c; }
@media (min-width: 900px) {
  .band { padding-top: 80px; padding-bottom: 80px; }
  .band .howsteps { grid-template-columns: repeat(3, 1fr); gap: 36px; }
  .band .howsteps li { grid-template-columns: 1fr; font-size: 20px; }
  .band .howsteps__n { font-size: 44px; }
}

/* Your road */
.roadline { list-style: none; padding: 0; margin: 28px 0 0; position: relative; display: grid; }
.roadline::before { content: ""; position: absolute; left: 21px; top: 22px; bottom: 26px; width: 2px; background: repeating-linear-gradient(var(--grey-dim) 0 4px, transparent 4px 10px); }
.roadline__stop { position: relative; display: flex; align-items: center; gap: 16px; padding: 8px 0; }
.roadline__n { position: relative; z-index: 1; flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; background: var(--bg); box-shadow: inset 0 0 0 2px var(--cream); }
.roadline__stop.is-start .roadline__n { background: var(--cream); color: var(--bg); }
.roadline__stop.is-goal .roadline__n { background: var(--red); color: #fff; box-shadow: 0 0 0 6px var(--red-soft); }
.roadline__l { font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: 13px; color: var(--grey); }
.roadline__stop.is-goal .roadline__l { color: var(--cream); font-size: 16px; }
.roadline__level { position: relative; z-index: 1; margin: 6px 0 6px 60px; padding: 10px 0; display: grid; gap: 4px; background: var(--bg); }
.roadline__level .eyebrow { font-size: 11px; }
.roadline__level b { font-size: 22px; font-weight: 900; text-transform: uppercase; line-height: 1.05; }
@media (min-width: 900px) {
  .roadline { display: flex; align-items: center; }
  .roadline::before { left: 22px; right: 22px; top: 30px; bottom: auto; width: auto; height: 2px; background: repeating-linear-gradient(90deg, var(--grey-dim) 0 4px, transparent 4px 10px); }
  .roadline__stop { flex-direction: column; gap: 10px; padding: 8px 0; align-self: flex-start; }
  .roadline__level { flex: 1; margin: 0 14px; padding: 10px 14px; min-height: 150px; align-content: start; }
}

/* Draw a card: text, deck, buttons; on wide screens the deck sits on the right */
.drawsec__btns { margin-top: 16px; }
@media (min-width: 520px) { .drawsec__btns { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) {
  .drawsec { display: grid; grid-template-columns: 1fr 1fr; grid-template-areas: "text deck" "btns deck"; column-gap: 48px; align-items: start; }
  .drawsec__text { grid-area: text; }
  .drawsec .draw { grid-area: deck; }
  .drawsec__btns { grid-area: btns; }
}

/* Manifesto bigger on desktop */
@media (min-width: 900px) { .view--site .manifesto p { font-size: 40px; max-width: 900px; line-height: 1.25; } }

/* FAQ */
.faqgrid { border-top: 1px solid var(--line); }
.faqgrid .faq { border-top: 0; border-bottom: 1px solid var(--line); }
.faqgrid .faq p { color: var(--grey); margin: 0 0 18px; }
@media (min-width: 900px) { .faqgrid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; } }

/* Footer */
.sitefoot { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 20px; margin-top: 72px; padding-top: 30px; border-top: 1px solid var(--line); }
.sitefoot > div { display: grid; gap: 9px; align-content: start; }
.sitefoot__brand { grid-column: 1 / -1; }
.sitefoot__brand .topbar__brand { font-size: 18px; min-height: 0; }
.sitefoot__brand p { margin: 0; }
.sitefoot a:not(.topbar__brand):not(.link) { color: var(--grey); text-decoration: none; font-size: 15px; }
.sitefoot a:not(.topbar__brand):not(.link):hover { color: var(--cream); }
.sitefoot__h { font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--grey-dim); margin: 0 0 2px; }
@media (min-width: 900px) {
  .view--site .sitefoot { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; margin-top: 110px; }
  .view--site .sitefoot__brand { grid-column: auto; }
}

/* Guests on wide screens: a website with top navigation, the menu slides in (no app sidebar) */
@media (min-width: 1100px) {
  body.is-guest { padding-left: 0; }
  .is-guest .drawer {
    left: auto; right: 0; width: min(320px, 86vw); border-right: 0; border-left: 1px solid var(--line);
    padding-top: calc(10px + var(--safe-t));
    transform: translateX(100%); visibility: hidden; transition: transform .32s var(--ease), visibility 0s linear .32s;
  }
  .is-guest.drawer-open .drawer { transform: none; visibility: visible; transition: transform .32s var(--ease); }
  .is-guest .menu-btn { display: inline-flex !important; }
  .is-guest .scrim:not([hidden]) { display: block !important; }
  .is-guest .drawer__head .drawer__close { display: inline-block; }
  .is-guest .topbar .topbar__brand { visibility: visible; }
}
.no-anim *, .no-anim *::before, .no-anim *::after { transition: none !important; }
.trip__legal { margin-top: 36px; }
.trip__legal a { color: var(--grey); }

/* ==========================================================================
   "Wow" package: hero card draw, featured deck, media slots, texture, road fill
   ========================================================================== */

/* ---- Hero: Stop saying ONE DAY. Make it DAY ONE. ---- */
.hero--site { grid-template-areas: "title" "art" "body"; gap: 0; }
.hero__title { grid-area: title; padding-top: 14px; }
.hero__art { grid-area: art; padding: 0; }
.hero__body { grid-area: body; display: flex; flex-direction: column; }
.hero__pre { margin: 0; font-size: clamp(14px, 4vw, 19px); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--grey); }
.hero__pre--mid { margin-top: 8px; }
.hero__title .wordmark__struck { margin-top: 6px; }
.hero__title .wordmark__title { margin-top: 0; font-size: clamp(60px, 20vw, 118px); }
.hero__body .hero__cta { order: -1; margin-top: 0; }
.hero__tag { margin: 24px 0 0; }
.hero__lead { margin: 10px 0 0; }
@media (min-width: 900px) {
  .hero--site { grid-template-areas: "title art" "body art"; align-content: center; row-gap: 8px; }
  .hero__title { align-self: end; }
  .hero__body { align-self: start; }
  .hero__body .hero__cta { order: 1; margin-top: 24px; }
  .hero__facts { order: 2; }
  .hero__tag { margin-top: 18px; }
  .hero__title .wordmark__title { font-size: clamp(100px, 10.5vw, 156px); }
}

/* The box with the first card being drawn out of it */
.herostage { --w: 150px; position: relative; width: calc(var(--w) * 1.78); height: calc(var(--w) * 124 / 74 + var(--w) * .62); margin: 6px auto 22px; }
@media (min-width: 900px) { .herostage { --w: 270px; margin: 0 auto; } }
.herostage .boxscene { --w: inherit; position: absolute; left: 0; bottom: 0; margin: 0; z-index: 1; }
.herocard {
  position: absolute; z-index: 0; left: calc(var(--w) * .08); bottom: calc(var(--w) * .25);
  width: calc(var(--w) * .84); aspect-ratio: 70 / 120; perspective: 1100px; text-decoration: none; color: inherit;
  animation: hc-draw 1.7s .6s cubic-bezier(.25, .75, .2, 1) both;
}
@keyframes hc-draw {
  0% { transform: translate(0, 18%) rotate(0deg); opacity: 0; z-index: 0; }
  12% { opacity: 1; }
  50% { transform: translate(4%, -40%) rotate(-4deg); z-index: 0; }
  51% { z-index: 2; }
  100% { transform: translate(86%, -14%) rotate(8deg); opacity: 1; z-index: 2; }
}
.herocard__inner { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateY(180deg); animation: hc-flip .8s 2.25s cubic-bezier(.3, .7, .2, 1) forwards; }
@keyframes hc-flip { to { transform: rotateY(0deg); } }
.herocard__face {
  position: absolute; inset: 0; border-radius: calc(var(--w) * .05); overflow: hidden;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
  background: #0E0E0E; border: 1px solid #2f2f2f; box-shadow: 0 18px 40px rgba(0,0,0,.55);
  transition: border-color .2s;
}
.herocard__back { transform: rotateY(180deg); display: grid; place-items: center; }
.herocard__back .draw__mark { font-size: calc(var(--w) * .12); }
.herocard__front { padding: calc(var(--w) * .07); display: flex; flex-direction: column; }
.herocard__front .deckcard__top { font-size: calc(var(--w) * .05); }
.herocard__front .deckcard__day { font-size: calc(var(--w) * .038); }
.herocard__num { font-size: calc(var(--w) * .3); font-weight: 900; color: var(--red); line-height: 1; margin-top: calc(var(--w) * .1); letter-spacing: -.03em; }
.herocard__title { font-size: calc(var(--w) * .1); font-weight: 800; text-transform: uppercase; line-height: 1.05; margin-top: calc(var(--w) * .03); color: var(--cream); }
.herocard__hint { margin-top: auto; font-size: calc(var(--w) * .066); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.herocard:hover .herocard__face, .herocard:focus-visible .herocard__face { border-color: var(--red); }

/* ---- Featured deck + coming next ---- */
.featured__grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .featured__grid { grid-template-columns: .9fr 1.1fr; gap: 56px; } }
.featured__media { display: flex; justify-content: center; }
.featured__media .media--card { border-radius: 18px; aspect-ratio: 4 / 5; object-fit: cover; max-width: 420px; }
.cardfan { position: relative; width: min(320px, 80vw); aspect-ratio: 1 / 1.02; }
.cardfan__card {
  position: absolute; top: 4%; left: 50%; width: 52%; margin-left: -26%; aspect-ratio: 70 / 120;
  border-radius: 12px; background: #0E0E0E; border: 1px solid #2f2f2f; padding: 7%;
  display: flex; flex-direction: column; box-shadow: 0 18px 40px rgba(0,0,0,.5);
  transform-origin: 50% 115%; transition: transform .5s var(--ease);
}
.cardfan__card--0 { transform: rotate(-14deg) translateX(-14%); }
.cardfan__card--1 { z-index: 1; }
.cardfan__card--2 { transform: rotate(14deg) translateX(14%); }
.featured__media:hover .cardfan__card--0 { transform: rotate(-20deg) translateX(-26%); }
.featured__media:hover .cardfan__card--2 { transform: rotate(20deg) translateX(26%); }
.cardfan .deckcard__top { font-size: 10px; }
.cardfan .deckcard__day { font-size: 8px; letter-spacing: .12em; }
.cardfan__num { font-size: clamp(30px, 9vw, 46px); font-weight: 900; color: var(--red); line-height: 1; margin-top: 22%; letter-spacing: -.03em; }
.cardfan__title { font-size: clamp(12px, 3.4vw, 16px); font-weight: 800; text-transform: uppercase; margin-top: 6px; line-height: 1.1; }
.comingnext { margin-top: 40px; border-top: 1px solid var(--line); }
.comingnext .eyebrow { margin: 18px 0 4px; }
.comingnext__row { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 18px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.comingnext__row:hover .comingnext__name { color: var(--red); }
.comingnext__name { font-size: 22px; font-weight: 900; text-transform: uppercase; transition: color .2s; }
.comingnext__tag { color: var(--grey); font-size: 15px; }
.comingnext__go { color: var(--grey); font-weight: 700; font-size: 14px; white-space: nowrap; transition: color .2s; }
.comingnext__row:hover .comingnext__go { color: var(--cream); }
@media (max-width: 560px) {
  .comingnext__row { grid-template-columns: 1fr auto; }
  .comingnext__go { grid-column: 2; grid-row: 1; }
  .comingnext__tag { grid-column: 1 / -1; grid-row: 2; }
}

/* ---- Media + "Out there" ---- */
.media { display: block; width: 100%; }
.media--fill { width: 100%; height: 100%; object-fit: cover; }
.outgrid { display: grid; grid-auto-flow: column; grid-auto-columns: 72%; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 20px calc(var(--gutter) * -1) 0; padding: 0 var(--gutter) 6px; scrollbar-width: none; }
.outgrid::-webkit-scrollbar { display: none; }
.outgrid__item { scroll-snap-align: center; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--surface); }
@media (min-width: 900px) {
  .outgrid { grid-auto-flow: row; grid-template-columns: 1.3fr 1fr 1fr; grid-auto-columns: auto; overflow: visible; margin: 24px 0 0; padding: 0; }
  .outgrid__item--0 { grid-row: span 2; aspect-ratio: auto; }
}
.howsteps__img { display: block; grid-column: 1 / -1; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; margin-bottom: 12px; }
.wordvideo .video { margin-top: 0; }
.aboutmedia, .prodmedia { border-radius: 16px; overflow: hidden; margin: 22px 0; aspect-ratio: 4 / 3; }

/* ---- Social proof ---- */
.proof__line { font-size: clamp(26px, 7vw, 46px); font-weight: 800; line-height: 1.15; margin: 10px 0 0; }
.proof__line b { color: var(--cream); font-weight: 900; }
.proof__quotes { display: grid; gap: 10px; margin-top: 16px; }
@media (min-width: 900px) { .proof__quotes { grid-template-columns: repeat(3, 1fr); } }

/* ---- Slot placeholders (only with ?slots) ---- */
.slotph {
  display: flex; flex-direction: column; justify-content: center; gap: 6px; min-height: 150px; height: 100%; padding: 16px;
  border: 2px dashed #4a4744; border-radius: 14px; color: var(--grey); font-size: 13px; line-height: 1.4;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 10px, transparent 10px 20px);
}
.slotph b { color: var(--cream); font-size: 15px; }
.slotph small { color: var(--grey-dim); }
.slotph__type { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #ff6b6b; }
.band--cream .slotph { border-color: #b9b3a8; color: #5a5852; background: repeating-linear-gradient(135deg, rgba(0,0,0,.035) 0 10px, transparent 10px 20px); }
.band--cream .slotph b { color: var(--bg); }
.featured__media .slotph { width: min(320px, 80vw); aspect-ratio: 4 / 5; }
.slotsbadge {
  position: fixed; z-index: 55; left: 0; right: 0; margin: 0 auto; width: max-content; bottom: calc(18px + var(--safe-b));
  background: #ff6b6b; color: #111; font-weight: 800; font-size: 13px; padding: 9px 16px; border-radius: 999px;
  text-decoration: none; box-shadow: 0 8px 24px rgba(0,0,0,.45);
}

/* ---- Paper texture, like the printed box (very subtle) ---- */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: .055;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
@media print { body::after { display: none; } }

/* ---- Your road fills in while you scroll; only the goal is red ---- */
.roadline::after {
  content: ""; position: absolute; z-index: 0; left: 21px; top: 22px; bottom: 26px; width: 2px;
  background: var(--cream); transform-origin: top; transform: scaleY(var(--p, 0));
}
@media (min-width: 900px) {
  .roadline::after { left: 22px; right: 22px; top: 30px; bottom: auto; width: auto; height: 2px; transform-origin: left; transform: scaleX(var(--p, 0)); }
}
.roadline__stop.is-lit:not(.is-goal) .roadline__n { background: var(--cream); color: var(--bg); }

/* ---- Soft page transitions (browsers that support it) ---- */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; }

/* ---- Admin: section links ---- */
.admin-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.admin-nav .chip, .ins-filters .chip { text-decoration: none; }

/* ---- Admin → Insights (charts: thin bars, 2px gaps, numbers on hover/focus and in the table) ---- */
.ins-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.ins-kpis { grid-template-columns: repeat(4, 1fr); }
.ins-h { font-size: 17px; font-weight: 700; margin: 36px 0 6px; }
.ins-funnel { display: grid; gap: 10px; margin-top: 12px; }
.ins-hbar { display: grid; grid-template-columns: minmax(96px, 150px) 1fr auto; align-items: center; gap: 12px; font-size: 14px; border-radius: 4px; }
.ins-hbar:focus-visible { outline: 2px solid var(--grey); outline-offset: 4px; }
.ins-hbar__label { color: var(--grey); }
.ins-hbar__track { height: 14px; }
.ins-hbar__track i { display: block; height: 100%; min-width: 2px; background: var(--cream); border-radius: 0 4px 4px 0; }
.ins-hbar:hover .ins-hbar__track i, .ins-hbar:focus-visible .ins-hbar__track i { background: #fff; }
.ins-hbar__value { min-width: 64px; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.ins-legend { display: flex; gap: 16px; margin: 12px 0 8px; font-size: 13px; color: var(--grey); }
.ins-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ins-key { display: inline-block; width: 12px; height: 12px; border-radius: 2px; }
.ins-key--done { background: var(--cream); }
.ins-key--reached { background: #66635e; }
.ins-chart { position: relative; height: 170px; padding-top: 20px; border-bottom: 1px solid var(--line-strong); }
.ins-chart__max { position: absolute; top: 0; left: 0; font-size: 12px; color: var(--grey-dim); }
.ins-cols { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 2px; height: 100%; }
.ins-col { position: relative; display: flex; justify-content: center; height: 100%; border-radius: 4px 4px 0 0; }
.ins-col:focus-visible { outline: 2px solid var(--grey); outline-offset: 2px; }
.ins-col__track, .ins-col__bar { position: absolute; bottom: 0; width: min(100%, 24px); border-radius: 4px 4px 0 0; }
.ins-col__track { background: #66635e; }
.ins-col__bar { background: var(--cream); }
.ins-col:hover .ins-col__bar, .ins-col:focus-visible .ins-col__bar { background: #fff; }
.ins-chart--hard .ins-col__bar { background: #8a8780; }
.ins-chart--hard .ins-col.is-hard .ins-col__bar { background: var(--red); }
.ins-chart--hard .ins-col:hover .ins-col__bar, .ins-chart--hard .ins-col:focus-visible .ins-col__bar { filter: brightness(1.25); }
.ins-axis { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 2px; margin-top: 6px; font-size: 12px; color: var(--grey-dim); }
.ins-axis span { white-space: nowrap; }
.ins-top { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 6px; font-size: 15px; }
.ins-top li span { margin-left: 8px; color: var(--grey); }
.ins-table-wrap { margin-top: 16px; }
.ins-table-scroll { overflow-x: auto; }
.ins-table { width: 100%; margin-top: 10px; border-collapse: collapse; font-size: 13px; }
.ins-table th, .ins-table td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.ins-table th { color: var(--grey); font-weight: 600; }
.ins-table td { font-variant-numeric: tabular-nums; }
.ins-quiet { list-style: none; padding: 0; margin: 10px 0 0; }
.ins-quiet li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; word-break: break-all; }
.ins-quiet li span { color: var(--grey); font-size: 14px; word-break: normal; }
.ins-tip {
  position: fixed; left: 0; top: 0; z-index: 70; pointer-events: none;
  display: grid; gap: 2px; max-width: 260px; padding: 8px 12px; border-radius: 10px;
  background: var(--cream); color: var(--bg); font-size: 13px; box-shadow: 0 8px 24px rgba(0,0,0,.45);
}
.ins-tip b { font-size: 15px; }
.ins-tip span { color: #4a4843; }
.ins-tip[hidden] { display: none; }

/* ---- Admin → Card texts ---- */
.cardedit-list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.cardedit { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.cardedit > summary { display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; list-style: none; }
.cardedit > summary::-webkit-details-marker { display: none; }
.cardedit[open] > summary { border-bottom: 1px solid var(--line); }
.cardedit__n { min-width: 26px; font-weight: 900; color: var(--grey-dim); font-variant-numeric: tabular-nums; }
.cardedit__t { flex: 1; min-width: 0; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
.cardedit__form { padding: 14px 16px 16px; }
.cardedit__field { min-height: 88px; resize: vertical; }
.cardedit__orig { margin: 2px 0 8px; font-size: 13px; color: var(--grey-dim); }
.cardedit__save { width: auto; min-height: 44px; padding: 10px 20px; font-size: 15px; }

/* ---- Recap after the last day ---- */
.recap__pair { display: grid; gap: 14px; }
@media (min-width: 640px) { .recap__pair { grid-template-columns: 1fr 1fr; } }
.recap__note { display: grid; gap: 8px; padding: 6px 0 6px 18px; border-left: 2px solid var(--line-strong); color: var(--cream); text-decoration: none; }
.recap__note small { font-size: 13px; color: var(--grey); }
.recap__note span { font-size: 19px; line-height: 1.45; font-style: italic; }

/* ---- Share image preview ---- */
.sharesheet { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; overflow-y: auto; background: rgba(0,0,0,.88); }
.sharesheet__box { width: min(380px, 100%); padding: 16px; border: 1px solid var(--line); border-radius: 20px; background: var(--bg); }
.sharesheet__img { display: block; width: 100%; max-height: 52vh; object-fit: contain; border-radius: 12px; }
.sharesheet .btn-row { margin-top: 14px; }

/* ---- Quick check-in under a finished card ---- */
.checkin { margin-top: 18px; display: grid; gap: 12px; }
.ins-note { flex-basis: 100%; margin: 4px 0 0; white-space: pre-wrap; word-break: normal; color: var(--cream); }

/* ---- Reservations: counter next to the reserve buttons, price question ---- */
.rescount { margin-top: 14px; font-size: 15px; color: var(--grey); }
.rescount p { margin: 0; }
.rescount b { color: var(--cream); }
.rescount__bar { height: 8px; margin-bottom: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.rescount__bar i { display: block; height: 100%; min-width: 4px; border-radius: 99px; background: var(--cream); }
.rsprice { display: grid; gap: 6px; }
.rsprice[hidden] { display: none; }

/* ==========================================================================
   The road in 3D (world3d.js): a sticky stage over a tall scroll track.
   Scrolling the page moves the camera along the road. The canvas sits under
   the top bar and the tab bar; HUD, pins and buttons are normal HTML on top.
   ========================================================================== */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.view--world { padding-top: 0; }
.view > .world { animation: none; } /* the canvas fades in by itself; a moving section would shift the scroll maths */
.world { position: relative; margin: calc(var(--topbar-h) * -1) calc(var(--gutter) * -1) 0; }
.world__track { position: relative; height: calc(100vh + var(--steps) * 84px); height: calc(100dvh + var(--steps) * 84px); }
.world__stage { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden; background: var(--bg); isolation: isolate; }
.world__canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; opacity: 0; transition: opacity .6s var(--ease); touch-action: pan-y; }
.world.is-ready .world__canvas { opacity: 1; }
.world.is-off .world__track { display: none; }
.world__off { padding: calc(var(--topbar-h) + 24px) var(--gutter) 0; }
.world__off .btn { margin-top: 14px; }

.world__pins { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.wpin, .wtag {
  position: absolute; left: 0; top: 0; pointer-events: auto; text-decoration: none;
  will-change: transform, opacity; -webkit-tap-highlight-color: transparent;
}
.wpin {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  font-size: 20px; font-weight: 900; letter-spacing: .02em; font-variant-numeric: tabular-nums; color: #9C907C;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .7);
}
.wpin--done { color: #fff; text-shadow: 0 1px 2px rgba(90, 0, 0, .55); }
.wpin--today { color: #1A1A1A; font-size: 22px; }
.wpin--open { color: #6B5D49; }
/* Done days carry a small white tick */
.wpin--done::before {
  content: ''; position: absolute; top: 1px; right: 0; width: 17px; height: 17px; border-radius: 50%;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.4l2.6 2.5L12 5.4' fill='none' stroke='%23E00000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
}
.wpin:focus-visible { outline-offset: -4px; border-radius: 50%; }
.wtag {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; cursor: pointer;
  min-height: 34px; padding: 6px 14px; border-radius: 999px;
  background: #FFFBF4; color: #1A1A1A; border: 0; box-shadow: 0 6px 16px rgba(40, 30, 10, .22), inset 0 -2px 0 rgba(0, 0, 0, .08);
  font: inherit; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.wtag b { font-weight: 800; }
.wtag span { color: #8A7F6E; font-weight: 600; letter-spacing: .08em; }
.wtag svg { width: 12px; height: 12px; fill: currentColor; }
.wtag.is-closed { color: #6E665A; }
/* The camp sign at the screen edge: just a tent, still a link */
.wtag.is-tight { width: 38px; min-height: 38px; padding: 0; justify-content: center; font-size: 0; gap: 0; }
.wtag.is-tight::before {
  content: ''; width: 20px; height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 3L2 17h16L10 3z' fill='%231A1A1A'/%3E%3Cpath d='M10 9l-3 8h6l-3-8z' fill='%23E00000'/%3E%3C/svg%3E") center / contain no-repeat;
}
.wtag--goal { background: var(--red); color: #fff; box-shadow: 0 6px 18px rgba(160, 0, 0, .35), inset 0 -2px 0 rgba(0, 0, 0, .15); }
/* The name of an area, as a ribbon banner lying in the landscape */
.wtag--area {
  cursor: default; position: absolute; min-height: 0; padding: 9px 26px 10px; border-radius: 4px;
  background: linear-gradient(#FFFDF8, #F3E9D8); color: #2A2118; font-size: 13px; font-weight: 800; letter-spacing: .2em;
  box-shadow: 0 8px 18px rgba(40, 30, 10, .25), inset 0 -2px 0 rgba(0, 0, 0, .06);
}
.wtag--area::before, .wtag--area::after {
  content: ''; position: absolute; z-index: -1; top: 7px; width: 20px; height: 100%;
  background: #E00000; box-shadow: 0 6px 12px rgba(40, 30, 10, .2);
}
.wtag--area::before { left: -18px; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 8px 50%); }
.wtag--area::after { right: -18px; clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 50%, 100% 100%, 0 100%); }

.world__hud {
  position: absolute; z-index: 2; top: calc(var(--topbar-h) + 10px); left: 12px; right: 12px;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; pointer-events: none;
}
.world__hud > * { pointer-events: auto; }
/* A slim, light card: the map stays the star */
.hudcard {
  min-width: 0; padding: 8px 14px 10px; border-radius: 14px;
  background: rgba(255, 251, 244, .9); color: #1A1A1A; box-shadow: 0 8px 22px rgba(30, 25, 10, .18);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.hudcard p { margin: 0; }
.hudcard__lvl { font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: #8A7F6E; }
.hudcard__num { margin-top: 1px !important; font-size: 13px; color: #6E665A; }
.hudcard__num b { font-size: 22px; font-weight: 900; color: #1A1A1A; margin-right: 2px; }
.hudcard .progress__bar { width: min(190px, 50vw); gap: 2px; margin-top: 6px; }
.hudcard .progress__bar i { height: 5px; background: rgba(40, 30, 10, .13); }
.hudcard .progress__bar i.is-done { background: var(--red); }
.hudcard .progress__bar i.is-today { background: #1A1A1A; }
.hudbtns { flex: none; display: grid; gap: 8px; }
.hudbtn {
  flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; padding: 0;
  background: rgba(255, 251, 244, .92); border: 0; color: #1A1A1A; box-shadow: 0 6px 16px rgba(30, 25, 10, .2);
  font: inherit; cursor: pointer; -webkit-appearance: none; appearance: none;
}
.hudbtn svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hudbtn[aria-pressed="true"] { background: #1A1A1A; color: #fff; }
.world.is-overview .world__back { display: none; }

/* A stop the figure just left (or reached): a ring flashes out of the number */
.wpin.is-pop::after {
  content: ''; position: absolute; inset: 3px; border-radius: 50%; border: 3px solid #fff; pointer-events: none;
  animation: wpin-ring .6s ease-out forwards;
}
.wpin--today.is-pop::after { border-color: var(--red); }
@keyframes wpin-ring { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }

/* Overview signs: one per level, and "You" over the figure */
.wtag--level {
  flex-direction: column; align-items: flex-start; gap: 1px; max-width: 44vw; padding: 9px 14px 10px; border-radius: 16px;
  white-space: normal; text-align: left; text-transform: none; letter-spacing: 0;
}
.wtag--level b { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: #8A7F6E; }
.wtag--level span { font-size: 15px; font-weight: 800; line-height: 1.2; letter-spacing: 0; color: #1A1A1A; }
.wtag--level small { font-size: 12px; font-weight: 600; color: #8A7F6E; }
/* Phones: the signs sit at the screen edges, narrow enough to leave the road free */
@media (max-width: 699px) {
  .wtag--level { max-width: 35vw; padding: 8px 11px 9px; }
  .wtag--level b { font-size: 10px; letter-spacing: .16em; }
  .wtag--level span { font-size: 14px; }
}
.wtag--you { background: var(--red); color: #fff; }

/* The big sign for a moment: "Unlocked · Level 2" */
.wbanner {
  position: absolute; z-index: 3; left: 50%; top: 34%; display: grid; justify-items: center; gap: 4px;
  width: max-content; max-width: calc(100% - 32px); box-sizing: border-box;
  padding: 16px 28px 18px; border-radius: 20px; text-align: center; pointer-events: none;
  background: rgba(11, 11, 11, .88); border: 1px solid rgba(255, 255, 255, .12); color: var(--cream);
  transform: translate(-50%, -50%); animation: wbanner 2.8s var(--ease) forwards;
}
.wbanner span { font-size: 11px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--red); }
.wbanner b { font-size: clamp(28px, 9vw, 36px); font-weight: 900; line-height: 1.04; text-transform: uppercase; text-wrap: balance; }
.wbanner small { font-size: 14px; color: var(--grey); }
.wbanner small:empty { display: none; }
@keyframes wbanner {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.6); }
  12% { opacity: 1; transform: translate(-50%, -50%) scale(1.06); }
  20%, 82% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -62%) scale(.96); }
}
@media (prefers-reduced-motion: reduce) { .wbanner { animation: none; } }
.wtag.is-quiet { visibility: hidden; }
.world__cta {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: calc(var(--tabbar-h) + var(--safe-b) + 16px);
  display: grid; justify-items: center; gap: 10px; padding: 0 20px; pointer-events: none;
}
.world__cta > * { pointer-events: auto; }
.world__play { width: auto; min-width: 230px; box-shadow: 0 12px 30px rgba(0, 0, 0, .35); }
button.world__back { background: rgba(11, 11, 11, .82); color: var(--cream); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.world__back[hidden] { display: none; }
.playicon { width: 12px; height: 14px; fill: currentColor; flex: none; }
.world ~ .notice, .world ~ [data-notice] { margin-top: 18px; }
/* Wider screens: the world uses the full width, the list below stays a readable column */
@media (min-width: 600px) { .world { --bleed: calc(50% - 50vw + var(--sbw, 0px) / 2); margin-left: var(--bleed); margin-right: var(--bleed); } }
@media (min-width: 1100px) {
  .world { --bleed: calc(50% - 50vw + var(--sbw, 0px) / 2 + 140px); }
  .world__cta { bottom: 28px; }
  .world__hud { left: 24px; right: 24px; }
}

/* ---- Level sheet: slides up when you tap a stop or a gate ---- */
.view > .levelsheet { animation: none; }
.levelsheet { position: fixed; inset: 0; z-index: 70; display: flex; align-items: flex-end; justify-content: center; }
.levelsheet__scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); opacity: 0; transition: opacity .25s; }
.levelsheet__panel {
  position: relative; width: min(560px, 100%); max-height: 88vh; overflow-y: auto;
  padding: 24px 20px calc(22px + var(--safe-b)); border-radius: 22px 22px 0 0;
  background: var(--surface); border: 1px solid var(--line); border-bottom: 0;
  transform: translateY(100%); transition: transform .32s var(--ease);
}
.levelsheet.is-open .levelsheet__scrim { opacity: 1; }
.levelsheet.is-open .levelsheet__panel { transform: none; }
.levelsheet__x { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; background: none; color: var(--grey); font-size: 30px; line-height: 1; cursor: pointer; }
.levelsheet__title { margin: 8px 44px 8px 0; font-size: 30px; text-transform: uppercase; }
.levelsheet__status { margin: 0; color: var(--grey); }
.levelsheet .btn-row { margin-top: 18px; }
@media (min-width: 1100px) { .levelsheet { left: 280px; } }
