:root {
  --oxblood: #2a0709;
  --claret: #5a1020;
  --sea: #1e4c6b;
  --navy-1: #0b142a;
  --navy-2: #1e4c6b;
  --soft: #89B4D4;
  --gold: #d8c29b;
  --gold-deep: #a8834f;
  --text: #f7f2ea;
  --muted: rgba(247, 242, 234, 0.68);
  --danger: #ffb4a8;
  --ok: #bfe3c6;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Montserrat", system-ui, sans-serif;
}
@property --a { syntax: "<angle>"; initial-value: 0deg; inherits: false; }

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--sans);
  color: var(--text);
  background:
    radial-gradient(60rem 40rem at 85% -10%, rgba(30, 76, 107, 0.55), transparent 60%),
    radial-gradient(50rem 36rem at -10% 20%, rgba(120, 22, 44, 0.55), transparent 60%),
    var(--oxblood);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: 0.01em; margin: 0 0 0.4em; line-height: 1.1; }
h1 { font-size: clamp(2.2rem, 6vw, 3.2rem); }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
a { color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.hidden { display: none !important; }

/* Boxes: navy with a thin metallic gold border that slowly travels, a soft gold glow, and a small lift on hover */
.panel {
  position: relative;
  background: linear-gradient(160deg, var(--navy-1), #12294a 55%, var(--navy-2));
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35), 0 0 18px rgba(191, 160, 106, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.panel::before {
  content: "";
  position: absolute; inset: 0; border-radius: inherit; padding: 1.5px;
  background: conic-gradient(from var(--a), #A8834F, #C9AE78, #E6D3A3, #C9AE78, #A8834F);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: travel 9s linear infinite;
  pointer-events: none;
}
.panel:not(.log-panel):hover { transform: translateY(-2px); box-shadow: 0 24px 56px rgba(0, 0, 0, 0.4), 0 0 24px rgba(191, 160, 106, 0.35); }
@keyframes travel { to { --a: 360deg; } }
.panel.soft { background: var(--soft); color: var(--navy-1); border-color: transparent; }
.panel.soft .muted { color: rgba(11, 20, 42, 0.7); }

/* Login / set password */
.center-wrap { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; }
.auth-card { width: min(440px, 100%); }
.brand { font-family: var(--serif); font-weight: 700; letter-spacing: 0.45em; color: var(--gold); font-size: 1.1rem; text-align: center; margin-bottom: 1.4rem; }
.auth-card h1 { text-align: center; font-size: 2.3rem; }
.auth-card .lead { text-align: center; color: var(--muted); }

label { display: block; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); margin: 1rem 0 0.35rem; }
input[type="email"], input[type="password"], input[type="text"] {
  width: 100%; padding: 0.85rem 1rem; border-radius: 12px; font: inherit; font-size: 1rem;
  color: var(--text); background: rgba(247, 242, 234, 0.07);
  border: 1px solid rgba(216, 194, 155, 0.35);
}
input::placeholder { color: rgba(247, 242, 234, 0.4); }
.check { display: flex; gap: 0.75rem; align-items: flex-start; margin: 1.2rem 0 0.4rem; text-transform: none; letter-spacing: 0; font-size: 0.92rem; color: var(--text); cursor: pointer; }
.check input { width: 1.35rem; height: 1.35rem; flex: none; margin-top: 0.1rem; accent-color: var(--gold-deep); }

.btn {
  display: inline-block; width: 100%; margin-top: 1.4rem; padding: 0.95rem 1.2rem; border: 0; border-radius: 999px;
  font: 600 0.82rem var(--sans); letter-spacing: 0.16em; text-transform: uppercase; cursor: pointer;
  color: #2a1a05; background: linear-gradient(135deg, var(--gold), var(--gold-deep));
}
.btn:disabled { opacity: 0.55; cursor: wait; }
.btn.ghost { background: transparent; color: var(--gold); border: 1px solid rgba(216, 194, 155, 0.55); }
.btn.inline { width: auto; margin-top: 0; padding: 0.75rem 1.4rem; }
.link-btn { background: none; border: 0; color: var(--gold); font: inherit; font-size: 0.88rem; text-decoration: underline; cursor: pointer; padding: 0.5rem 0; }
.msg { margin-top: 1rem; padding: 0.75rem 1rem; border-radius: 12px; font-size: 0.92rem; }
.msg.err { background: rgba(255, 120, 100, 0.14); color: var(--danger); border: 1px solid rgba(255, 180, 168, 0.35); }
.msg.ok { background: rgba(160, 220, 175, 0.12); color: var(--ok); border: 1px solid rgba(191, 227, 198, 0.3); }
.center { text-align: center; }

/* App shell */
.shell { min-height: 100vh; padding-bottom: 5.5rem; }
.topbar { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.25rem; padding-top: max(1rem, env(safe-area-inset-top)); }
.topbar .brand { margin: 0; text-align: left; font-size: 0.95rem; }
.topbar nav { display: flex; gap: 1.1rem; }
.topbar nav a { font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; color: var(--muted); }
.topbar nav a[aria-current="page"] { color: var(--gold); }
main { padding: 0.5rem 1.25rem 2rem; max-width: 1240px; margin: 0 auto; }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: grid; grid-template-columns: repeat(5, 1fr);
  background: rgba(11, 20, 42, 0.94); border-top: 1px solid rgba(216, 194, 155, 0.35); backdrop-filter: blur(10px);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar a { display: grid; justify-items: center; gap: 0.2rem; padding: 0.7rem 0.2rem 0.6rem; text-decoration: none; color: var(--muted); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; }
.tabbar a svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tabbar a[aria-current="page"] { color: var(--gold); }

@media (min-width: 900px) {
  .shell { padding-bottom: 2rem; padding-left: 240px; }
  .tabbar { top: 0; right: auto; width: 240px; bottom: 0; grid-template-columns: 1fr; align-content: start; gap: 0.25rem;
    border-top: 0; border-right: 1px solid rgba(216, 194, 155, 0.35); padding: 5rem 1rem 1rem; }
  .tabbar::before { content: "BRAZEN"; position: absolute; top: 1.6rem; left: 1.6rem; font-family: var(--serif); font-weight: 700; letter-spacing: 0.45em; color: var(--gold); }
  .tabbar a { grid-auto-flow: column; justify-content: start; align-items: center; gap: 0.9rem; padding: 0.85rem 1rem; border-radius: 12px; font-size: 0.74rem; }
  .tabbar a[aria-current="page"] { background: rgba(216, 194, 155, 0.1); }
  .topbar .brand { display: none; }
  .topbar { justify-content: flex-end; }
}

.grid { display: grid; gap: 1.1rem; }
@media (min-width: 760px) { .grid.two { grid-template-columns: 1fr 1fr; } }

/* Admin */
.row { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: flex-end; }
.row .grow { flex: 1 1 260px; }
.row label { margin-top: 0; }
.list { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.6rem; }
.list li { padding: 0.85rem 1rem; border-radius: 12px; background: rgba(247, 242, 234, 0.06); border: 1px solid rgba(216, 194, 155, 0.2); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.list .who { font-weight: 500; }
.badge { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.2rem 0.6rem; border-radius: 999px; border: 1px solid rgba(216, 194, 155, 0.5); color: var(--gold); white-space: nowrap; }
.badge.on { background: rgba(216, 194, 155, 0.16); }

.switch { display: flex; gap: 0.9rem; align-items: flex-start; }
.switch input { width: 1.5rem; height: 1.5rem; accent-color: var(--gold-deep); flex: none; margin-top: 0.15rem; }

@media (prefers-reduced-motion: reduce) {
  .panel::before { animation: none; }
  .panel:not(.log-panel):hover { transform: none; }
  * { scroll-behavior: auto !important; transition: none !important; }
}

/* ---------- Desires / Home ---------- */
.eyebrow { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin: 0 0 0.4rem; }
.big { font-family: var(--serif); font-size: 2.6rem; line-height: 1; margin: 0.4rem 0 1rem; }
.actions { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; margin-top: 1.2rem; }
a.btn { text-decoration: none; text-align: center; }
a.btn.inline, .btn.inline { margin-top: 0; }
.goal-list { display: grid; gap: 0.6rem; }
.goal-row { display: flex; gap: 0.5rem; align-items: center; }
.goal-row input { flex: 1; }
.icon-btn { background: rgba(247, 242, 234, 0.08); color: var(--text); border: 1px solid rgba(216, 194, 155, 0.35); border-radius: 10px; min-width: 2.4rem; height: 2.4rem; padding: 0 0.6rem; font: 500 0.85rem var(--sans); cursor: pointer; }
.icon-btn:hover { border-color: var(--gold); }
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; margin: 1rem 0; }
@media (min-width: 760px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tile { padding: 0.9rem 1rem; border-radius: 14px; background: rgba(247, 242, 234, 0.06); border: 1px solid rgba(216, 194, 155, 0.2); }
.tile-n { font-family: var(--serif); font-size: 1.9rem; line-height: 1.1; color: var(--gold); }
.tile-l { font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.bar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: rgba(247, 242, 234, 0.08); }
.seg { transform-origin: left; animation: grow 0.9s ease-out both; }
@keyframes grow { from { transform: scaleX(0); } }
.seg.towards, .dot.towards { background: var(--gold); }
.seg.neutral, .dot.neutral { background: var(--soft); }
.seg.away, .dot.away { background: #a63a52; }
.legend { display: flex; gap: 1.2rem; flex-wrap: wrap; margin-top: 0.6rem; }
.dot { display: inline-block; width: 0.65rem; height: 0.65rem; border-radius: 50%; margin-right: 0.4rem; }

/* ---------- Log ---------- */
.log { display: grid; gap: 1.1rem; }
@media (min-width: 900px) { .log { grid-template-columns: minmax(0, 1fr) 400px; align-items: start; } }
.log-head h1 { margin-bottom: 0.1em; font-size: clamp(1.8rem, 4vw, 2.4rem); }
.daytabs { display: flex; gap: 0.5rem; overflow-x: auto; padding: 0.3rem 0 0.8rem; scrollbar-width: thin; }
.daytab { position: relative; flex: 1 0 auto; min-width: 4.2rem; display: grid; gap: 0.1rem; padding: 0.55rem 0.7rem; border-radius: 12px; cursor: pointer; text-align: center;
  color: var(--muted); background: rgba(247, 242, 234, 0.05); border: 1px solid rgba(216, 194, 155, 0.2); font: 500 0.78rem var(--sans); }
.daytab small { font-size: 0.68rem; opacity: 0.8; }
.daytab[aria-selected="true"] { color: var(--gold); border-color: var(--gold); background: rgba(216, 194, 155, 0.1); }
.today-dot { position: absolute; top: 6px; right: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }

.tl-wrap { max-height: 68vh; overflow-y: auto; border-radius: 16px; border: 1px solid rgba(216, 194, 155, 0.25); background: rgba(11, 20, 42, 0.55); }
.tl { --slot: 34px; position: relative; display: grid; grid-template-columns: 56px 1fr; grid-auto-rows: var(--slot); padding: 0 0.6rem 0 0; }
.tl-time { grid-column: 1; font-size: 0.7rem; color: var(--muted); text-align: right; padding: 0.15rem 0.6rem 0 0; border-top: 1px solid rgba(216, 194, 155, 0.05); }
.tl-time.hour { border-top-color: rgba(216, 194, 155, 0.18); color: var(--gold); }
.tl-slot { grid-column: 2; border: 0; border-top: 1px solid rgba(216, 194, 155, 0.06); background: transparent; cursor: pointer; border-radius: 0; }
.tl-slot:hover { background: rgba(216, 194, 155, 0.08); }
.tl-slot.sel { background: rgba(216, 194, 155, 0.28); box-shadow: inset 3px 0 0 var(--gold); }
.tl-block { grid-column: 2; z-index: 2; margin: 2px 0; padding: 0.25rem 0.7rem; border-radius: 10px; overflow: hidden; text-align: left; font: inherit; color: var(--text);
  display: flex; flex-direction: column; justify-content: center; gap: 0; min-height: 0; line-height: 1.2; }
.tl-block strong { font-size: 0.86rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-meta { font-size: 0.7rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-block.sleep { background: repeating-linear-gradient(135deg, rgba(30, 76, 107, 0.35) 0 10px, rgba(30, 76, 107, 0.22) 10px 20px); border: 1px dashed rgba(137, 180, 212, 0.4); }
.tl-block.entry { cursor: pointer; border: 1px solid rgba(216, 194, 155, 0.3); background: linear-gradient(135deg, #12294a, #1b3d5e); border-left-width: 4px; }
.tl-block.entry.towards { border-left-color: var(--gold); }
.tl-block.entry.neutral { border-left-color: var(--soft); }
.tl-block.entry.away { border-left-color: #a63a52; }
.tl-block.entry.editing { box-shadow: 0 0 0 2px var(--gold); }

.log-panel { display: grid; gap: 0.2rem; align-content: start; }
@media (min-width: 900px) { .log-panel { position: sticky; top: 1rem; max-height: calc(100vh - 2rem); overflow: hidden; } .log-scroll { max-height: calc(100vh - 2rem - 3rem); overflow-y: auto; padding-right: 0.3rem; } }
@media (max-width: 899px) { .log-panel { order: -1; } .log-panel.empty { display: none; } }
.log-panel h3 { margin-bottom: 0.2rem; }
.selrow { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin: 0.4rem 0; }
.sel-time { font-family: var(--serif); font-size: 1.9rem; line-height: 1; color: var(--gold); }
.stepper { display: flex; gap: 0.4rem; }
.btn.same { display: grid; gap: 0.1rem; text-align: left; border-radius: 16px; padding: 0.7rem 1rem; margin-top: 0.6rem; letter-spacing: 0.12em; }
.btn.same small { letter-spacing: 0; text-transform: none; font-size: 0.78rem; font-weight: 400; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip { padding: 0.45rem 0.8rem; border-radius: 999px; cursor: pointer; font: 500 0.82rem var(--sans); color: var(--text); background: rgba(247, 242, 234, 0.07); border: 1px solid rgba(216, 194, 155, 0.28); }
.chip:hover { border-color: var(--gold); }
.chip[aria-pressed="true"] { background: linear-gradient(135deg, var(--gold), var(--gold-deep)); color: #2a1a05; border-color: transparent; }
.zone { margin-bottom: 0.7rem; }
.zone-h { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--soft); margin: 0.3rem 0 0.35rem; }
.seg-row { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0.4rem; }
.segbtn { padding: 0.65rem 0.4rem; border-radius: 12px; cursor: pointer; font: 500 0.8rem var(--sans); color: var(--text); background: rgba(247, 242, 234, 0.07); border: 1px solid rgba(216, 194, 155, 0.28); }
.segbtn[aria-pressed="true"] { background: linear-gradient(135deg, var(--gold), var(--gold-deep)); color: #2a1a05; border-color: transparent; }
.sleepbox { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid rgba(216, 194, 155, 0.2); }
.sleepbox h4 { margin: 0 0 0.6rem; font: 600 0.75rem var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.sleep-grid { display: grid; grid-template-columns: auto 1fr; gap: 0.5rem 1rem; align-items: center; }
.sleep-step { display: flex; align-items: center; gap: 0.6rem; }
.sleep-step strong { min-width: 3.4rem; text-align: center; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .seg { animation: none; } }

.log > *, .log-panel > *, .log-main > * { min-width: 0; }
.tl-wrap, .daytabs { max-width: 100%; }
.btn.same { overflow: hidden; }

.tl-block.short { flex-direction: row; align-items: center; gap: 0.7rem; padding-top: 0; padding-bottom: 0; }
.tl-block.short .tl-meta { flex: 0 1 auto; }
.legend + .actions { margin-top: 1rem; }
.tl-block.short { justify-content: flex-start; }
.hint { margin-top: 0.8rem; }

/* ---------- Tagline ---------- */
.tagline { font: 500 0.54rem var(--sans); letter-spacing: 0.22em; line-height: 1.7; text-transform: uppercase; color: var(--muted); }
.tagline.center-text { text-align: center; margin: -1rem 0 1.4rem; }
.brandwrap { display: grid; gap: 0.25rem; }
@media (min-width: 900px) {
  .brandwrap { display: none; }
  .tabbar::after { content: "Play at the level\A you were born for"; white-space: pre; position: absolute; top: 3.5rem; left: 1.6rem; font: 500 0.54rem var(--sans); letter-spacing: 0.22em; line-height: 1.7; text-transform: uppercase; color: var(--muted); }
  .tabbar { padding-top: 7rem; }
}

/* ---------- Reveals ---------- */
.reveal { display: grid; gap: 1.1rem; max-width: 820px; }
.reveal > * { min-width: 0; }
.reveal .back { color: var(--gold); text-decoration: none; font-size: 0.85rem; }
.rsec h2 { margin-bottom: 0.7rem; }
.rows { display: grid; gap: 0.9rem; }
.rrow { display: grid; gap: 0.35rem; }
.rrow-top { display: flex; justify-content: space-between; gap: 0.8rem; align-items: baseline; flex-wrap: wrap; }
.rrow .who { font-weight: 500; overflow-wrap: anywhere; }
.pbar { height: 10px; border-radius: 999px; background: rgba(247, 242, 234, 0.12); overflow: hidden; }
.pbar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-deep), var(--gold)); border-radius: 999px; transform-origin: left; animation: grow 0.9s ease-out both; }
.quads { display: grid; gap: 1rem; }
.segs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
@media (max-width: 520px) { .segs { grid-template-columns: 1fr; } }
.daylinks { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 0.8rem 0; }
.daylinks .btn { width: auto; padding: 0.6rem 1rem; }
.daylinks .btn.today { border-color: var(--gold); }
.reveal textarea { width: 100%; font: 400 1rem var(--sans); color: var(--text); background: rgba(247, 242, 234, 0.07); border: 1px solid rgba(216, 194, 155, 0.35); border-radius: 12px; padding: 0.8rem; resize: vertical; }
.tag { color: var(--gold); letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.72rem; }
@media (prefers-reduced-motion: reduce) { .pbar > span { animation: none; } }
@media print {
  .tabbar, .topbar, .noprint, .sidebar, nav { display: none !important; }
  html, body { background: #fff !important; color: #111 !important; }
  .panel, .tile { background: #fff !important; border: 1px solid #bbb !important; box-shadow: none !important; color: #111 !important; }
  .panel::before { display: none !important; }
  h1, h2, h3, .tile-n, .tag, .muted, .who { color: #111 !important; }
  .pbar { background: #ddd !important; } .pbar > span { background: #555 !important; animation: none; }
  .panel { break-inside: avoid; }
}
.reveal .actions .btn, .reveal .rrow .btn { width: auto; margin-top: 0; }
.reveal .rsec > .btn { width: auto; }

/* ---------- Story Reveal (Wrapped-style) ---------- */
.storywrap { display: grid; justify-items: center; gap: 0.8rem; }
.story { position: relative; width: min(100%, 440px); height: min(80vh, 780px); min-height: 520px; border-radius: 32px; overflow: hidden; background: #2a0709; box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(216,194,155,0.35); isolation: isolate; }
.scard { position: absolute; inset: 0; display: flex; align-items: center; padding: 4.2rem 1.8rem 2rem; opacity: 0; visibility: hidden; transform: scale(1.04); transition: opacity .5s ease, transform .6s ease, visibility 0s .5s; background: linear-gradient(165deg, var(--g1), var(--g2)); }
.scard.on { opacity: 1; visibility: visible; transform: none; transition: opacity .5s ease, transform .6s ease; }
.scard.past { transform: translateX(-6%) scale(.98); }
.sc-in { position: relative; z-index: 2; width: 100%; display: grid; gap: 0.9rem; }
.sc-in * { pointer-events: none; }
.sc-in a, .sc-in button { pointer-events: auto; }
.scard .sc-in > * { opacity: 0; transform: translateY(18px); }
.scard.on .sc-in > * { animation: rise .8s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i) * .14s + .15s); }
@keyframes rise { to { opacity: 1; transform: none; } }
.t1 { --g1: #3d0b17; --g2: #1c3f63; } .t2 { --g1: #1c3f63; --g2: #3d0b17; } .t3 { --g1: #2a0709; --g2: #5b1a3b; }
.t4 { --g1: #0b142a; --g2: #4a1530; } .t5 { --g1: #5b1a3b; --g2: #a8834f; } .t6 { --g1: #0b142a; --g2: #1e4c6b; }
.t7 { --g1: #3a0a14; --g2: #8a2a45; } .t8 { --g1: #1e4c6b; --g2: #6b2a4d; } .t9 { --g1: #2a0709; --g2: #1e4c6b; }
.t10 { --g1: #6b2a4d; --g2: #2a0709; } .t11 { --g1: #3d0b17; --g2: #a8834f; }
.blob { position: absolute; z-index: 0; width: 70%; aspect-ratio: 1; border-radius: 50%; filter: blur(55px); opacity: .5; pointer-events: none; animation: drift 14s ease-in-out infinite alternate; }
.blob.b1 { background: #e0a28a; top: -15%; right: -20%; }
.blob.b2 { background: #6fb3b8; bottom: -20%; left: -25%; animation-duration: 18s; opacity: .35; }
@keyframes drift { to { transform: translate(8%, 10%) scale(1.15); } }
.sc-k { margin: 0; font: 600 0.7rem var(--sans); letter-spacing: 0.26em; text-transform: uppercase; color: #e8c9a0; }
.sc-title { margin: 0; font: italic 500 3.4rem/1.02 var(--serif); color: #f7f2ea; text-shadow: 0 2px 30px rgba(224,162,138,.35); }
.sc-title.sm { font-size: 2.3rem; }
.sc-big { display: block; font: italic 500 5.4rem/1 var(--serif); background: linear-gradient(120deg, #f7e3c4, #e0a28a 55%, #d8c29b); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: 0.1em; }
.sc-big.sm { font-size: 3.6rem; }
.sc-line { margin: 0; font: 400 1.05rem/1.5 var(--sans); color: #f7f2ea; }
.sc-line.hint { color: #e8c9a0; font-size: 0.8rem; letter-spacing: .2em; text-transform: uppercase; margin-top: 1.4rem; }
.sc-line.small-l { font-size: 0.85rem; color: rgba(247,242,234,.75); }
.sc-back { color: #e8c9a0; text-align: center; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; margin-top: .3rem; }
.story .btn { margin-top: .4rem; }
.tapzone { position: absolute; top: 0; bottom: 0; z-index: 1; border: 0; background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.tapzone.left { left: 0; width: 35%; } .tapzone.right { right: 0; width: 65%; }
.tapzone:focus-visible { outline: 2px solid var(--gold); outline-offset: -4px; }
.sprog { position: absolute; top: 14px; left: 18px; right: 56px; z-index: 5; display: flex; gap: 4px; pointer-events: none; }
.sprog span { flex: 1; height: 3px; border-radius: 3px; background: rgba(247,242,234,.25); overflow: hidden; }
.sprog span i { display: block; height: 100%; width: 100%; background: #f7e3c4; transform: scaleX(0); transform-origin: left; transition: transform .45s ease; }
.sprog span.done i { transform: scaleX(1); }
.sx { position: absolute; top: 4px; right: 12px; z-index: 6; color: #f7f2ea; text-decoration: none; font-size: 1rem; padding: 8px; opacity: .85; }
.orb { width: 210px; height: 210px; border-radius: 50%; margin: 0 auto 0.4rem; filter: blur(24px) saturate(1.25); box-shadow: 0 0 80px rgba(224,162,138,.5); animation: spin 24s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.rank { display: flex; gap: 1rem; align-items: center; padding: .5rem 0; }
.rank .rk { font: italic 500 3.6rem/1 var(--serif); color: #e0a28a; min-width: 2.4rem; }
.rank b { display: block; font: 500 1.35rem var(--sans); overflow-wrap: anywhere; }
.ring { position: relative; width: 220px; height: 220px; margin: 0 auto; }
.ring svg { width: 100%; height: 100%; }
.ring circle { fill: none; stroke-width: 9; }
.ring .bg { stroke: rgba(247,242,234,.18); }
.ring .fg { stroke: #f7e3c4; stroke-linecap: round; stroke-dasharray: 339.3; stroke-dashoffset: 339.3; transition: stroke-dashoffset 1.6s cubic-bezier(.2,.8,.2,1) .4s; filter: drop-shadow(0 0 8px rgba(247,227,196,.6)); }
.scard.on .ring .fg { stroke-dashoffset: calc(339.3 * (1 - var(--p))); }
.ring-n { position: absolute; inset: 0; display: grid; place-items: center; font: italic 500 3.6rem var(--serif); color: #f7f2ea; }
.spark { position: absolute; z-index: 1; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle, rgba(255,236,205,.95), rgba(224,162,138,.35) 55%, transparent 70%); opacity: 0; animation: floatup 7s ease-in infinite; pointer-events: none; }
@keyframes floatup { 0% { opacity: 0; transform: translateY(30px) scale(.6); } 25% { opacity: .85; } 100% { opacity: 0; transform: translateY(-120px) scale(1.4); } }
/* stacked bars + legend (full pages and story) */
.stack { display: flex; height: 16px; border-radius: 999px; overflow: hidden; background: rgba(247,242,234,.1); }
.stack.tall { height: 30px; }
.stack span { display: block; height: 100%; transform-origin: left; animation: grow .9s ease-out both; }
.legend2 { list-style: none; margin: .8rem 0 0; padding: 0; display: grid; gap: .45rem; }
.legend2 li { display: grid; grid-template-columns: 12px 1fr auto; gap: .2rem .6rem; align-items: baseline; }
.legend2 li i { width: 12px; height: 12px; border-radius: 50%; display: block; align-self: center; }
.legend2 li em { grid-column: 2 / 4; font-style: normal; }
.zcols { display: grid; grid-template-columns: repeat(6, 1fr); gap: .5rem; align-items: end; margin-bottom: .8rem; text-align: center; }
.zcol { display: grid; gap: .3rem; justify-items: center; min-width: 0; }
.zwrap { height: 110px; width: 100%; display: flex; align-items: flex-end; justify-content: center; }
.zbar { width: 70%; border-radius: 10px 10px 4px 4px; min-height: 3px; transform-origin: bottom; animation: growy .9s ease-out both; }
@keyframes growy { from { transform: scaleY(0); } }
.zl { font-size: .6rem; letter-spacing: .04em; color: var(--muted); overflow-wrap: anywhere; }
.twocol { display: grid; gap: 1.1rem; }
@media (min-width: 900px) { .twocol { grid-template-columns: 1fr 1fr; } }
details.more { margin-top: .8rem; } details.more summary { cursor: pointer; color: var(--gold); font-size: .85rem; }
details.more .rows { margin-top: .8rem; }
.center-text { text-align: center; }
@media (prefers-reduced-motion: reduce) { .blob, .orb, .spark, .stack span, .zbar { animation: none; } .scard, .scard.on { transition: none; } .scard .sc-in > * { opacity: 1; transform: none; animation: none !important; } .ring .fg { transition: none; } .scard .spark { opacity: .6; } }
@media (max-width: 520px) { .story { height: calc(100vh - 11rem); min-height: 480px; } .sc-title { font-size: 2.9rem; } .sc-big { font-size: 4.6rem; } }
@media print { .story { display: none; } }

.tiles.four { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .tiles.four { grid-template-columns: repeat(4, 1fr); } }
.tile.big { border-top: 3px solid var(--c); }
.tile.big .tile-n { font-size: 2.1rem; color: var(--c); }
.tile.big .tile-l { margin: 0.15rem 0 0.2rem; }

/* revealbox + home ring */
.revealbox { margin-top: 1rem; padding: 1rem 1.1rem; border-radius: 14px; border: 1px solid rgba(233,168,37,.6); background: linear-gradient(135deg, rgba(233,168,37,.16), rgba(224,82,122,.12)); }
.revealbox h4 { margin: 0 0 .2rem; font-family: var(--serif); font-size: 1.3rem; color: #f7f2ea; }
.revealbox .btn { margin-top: .7rem; }
.mobile-only { display: block; } .desktop-only { display: none; }
@media (min-width: 900px) { .mobile-only { display: none; } .desktop-only { display: block; } }
.hring { position: relative; width: 170px; margin: .6rem auto .4rem; text-align: center; }
.hring svg { width: 170px; height: 170px; display: block; }
.hring circle { fill: none; stroke-width: 9; }
.hring .bg { stroke: rgba(247,242,234,.16); }
.hring .fg { stroke: #e9a825; stroke-linecap: round; stroke-dasharray: 339.3; stroke-dashoffset: calc(339.3 * (1 - var(--p))); animation: ringin 1.4s cubic-bezier(.2,.8,.2,1) both; filter: drop-shadow(0 0 6px rgba(233,168,37,.55)); }
@keyframes ringin { from { stroke-dashoffset: 339.3; } }
.hring-c { position: absolute; top: 0; left: 0; width: 170px; height: 170px; display: grid; place-content: center; }
.hring-c b { font: italic 500 2.2rem var(--serif); color: #f7f2ea; line-height: 1; }
.hring-t { margin: .5rem 0 0; }
@media (prefers-reduced-motion: reduce) { .hring .fg { animation: none; } }

/* monthly */
.orb.mini { width: 104px; height: 104px; filter: blur(8px) saturate(1.25); box-shadow: 0 0 40px rgba(224,162,138,.4); margin: 0 auto .4rem; }
.auras { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; margin-bottom: .8rem; }
@media (min-width: 760px) { .auras { grid-template-columns: repeat(4, 1fr); } }
.aura { display: grid; gap: .15rem; text-align: center; justify-items: center; }
.multi { display: grid; grid-template-columns: 1fr; gap: .9rem; }
@media (min-width: 640px) { .multi { grid-template-columns: 1fr 1fr; } }
.mcard { padding: 1rem; border-radius: 14px; background: rgba(247,242,234,.06); border: 1px solid rgba(216,194,155,.2); display: grid; gap: .25rem; }
.mbig { font: italic 500 2.6rem/1 var(--serif); }
.spk svg { width: 100%; height: 36px; display: block; }
.delta { font-size: .8rem; color: var(--muted); } .delta.good { color: #7fd1a0; } .delta.bad { color: #ee7a9a; }
.vs h3 { margin: 0 0 .6rem; font-family: var(--serif); }
.hring svg, .ring svg { overflow: visible; }

/* ---------- public pages ---------- */
.pubshell { min-height: 100vh; }
.pubtop { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.2rem 1.4rem; max-width: 1100px; margin: 0 auto; }
.pubtop .brandwrap { display: block !important; text-decoration: none; }
.pubtop nav { display: flex; gap: 1.4rem; }
.pubtop nav a { color: var(--gold); text-decoration: none; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; }
.pubtop nav a[aria-current="page"] { color: #f7f2ea; }
.pub { max-width: 980px; margin: 0 auto; padding: 0 1.4rem 3rem; display: grid; gap: 1.4rem; }
.pub-sec { position: relative; padding: 1.2rem 0; display: grid; gap: .9rem; min-width: 0; }
.pub-sec.hero { padding: 2.4rem 0 1rem; }
.pub-sec.hero.big { padding: 4rem 0 2.4rem; overflow: hidden; }
.pub-sec.hero.big > *:not(.blob) { position: relative; z-index: 2; }
.pub-title { margin: 0; font: italic 500 clamp(2.6rem, 8vw, 5rem)/1.02 var(--serif); color: #f7f2ea; text-shadow: 0 2px 40px rgba(224,162,138,.35); }
.pub-sec h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.pub-sec.navy { padding: 1.6rem; border-radius: 22px; background: linear-gradient(160deg, #0b142a, #1e4c6b); border: 1px solid rgba(216,194,155,.35); }
.pub-sec.close { text-align: center; justify-items: center; padding: 2.4rem 0 1rem; }
.cta-row { display: flex; gap: .8rem; flex-wrap: wrap; align-items: center; margin-top: .6rem; }
.pub-sec.close .cta-row { justify-content: center; }
.cta-row .btn { width: auto; margin-top: 0; }
.video-ph { position: relative; aspect-ratio: 16 / 9; border-radius: 20px; display: grid; place-items: center; color: rgba(247,242,234,.7); background: linear-gradient(135deg, #3d0b17, #1e4c6b); border: 1px dashed rgba(216,194,155,.5); }
.draft-tag { display: inline-block; justify-self: start; padding: .15rem .6rem; border-radius: 999px; font-size: .65rem; letter-spacing: .14em; text-transform: uppercase; color: #2a1a05; background: #e9a825; }
.video-ph .draft-tag { position: absolute; top: .8rem; right: .8rem; }
.three { display: grid; gap: 1rem; } @media (min-width: 760px) { .three { grid-template-columns: repeat(3, 1fr); } }
.fcard { padding: 1.1rem; border-radius: 16px; border: 1px solid rgba(216,194,155,.22); border-top: 3px solid var(--c); background: rgba(247,242,234,.05); }
.fcard h3 { margin: 0 0 .3rem; font-family: var(--serif); font-size: 1.5rem; color: #f7f2ea; }
.tool { display: grid; gap: .8rem; }
.slides { display: grid; gap: 1rem; } @media (min-width: 760px) { .slides { grid-template-columns: repeat(3, 1fr); } }
.slide label { display: flex; justify-content: space-between; gap: .6rem; font-size: .85rem; color: var(--muted); } .slide b { color: #e9a825; }
.slide input[type=range] { width: 100%; accent-color: #e9a825; }
.pchart svg { width: 100%; height: auto; display: block; }
.plain { margin: 0; padding-left: 1.1rem; display: grid; gap: .5rem; }
.pubfoot { max-width: 980px; margin: 0 auto; padding: 1.4rem; color: var(--muted); font-size: .75rem; text-align: center; }
.chips { display: flex; gap: .5rem; flex-wrap: wrap; }
.pub { overflow-x: clip; }
.pub-sec.hero.big { overflow: visible; }
.pub-sec.hero.big .blob { width: 46%; opacity: .32; filter: blur(70px); }
.pub .lead { font: 400 1.15rem/1.65 var(--sans); color: #f7f2ea; max-width: 40rem; margin: 0; }
.pub-sec.close .lead { margin: 0 auto; }
.pub-sec.hero.big .blob { display: none; }
.pub-sec.hero.big { overflow: visible; }
.pubshell { background-image: radial-gradient(60rem 34rem at 78% 8%, rgba(224,162,138,.20), transparent 70%), radial-gradient(44rem 30rem at 8% 30%, rgba(111,179,184,.10), transparent 70%); background-repeat: no-repeat; }
