/* The Craving Jar — soft linen, pastel washi tape, hand-drawn ink. */
@font-face { font-family: "Fraunces"; src: url("/static/fonts/fraunces-normal.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/static/fonts/fraunces-italic.woff2") format("woff2"); font-weight: 300 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/static/fonts/nunito-normal.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/static/fonts/nunito-italic.woff2") format("woff2"); font-weight: 300 900; font-style: italic; font-display: swap; }

:root {
  --paper: #f7f1ec;
  --paper-2: #efe6df;
  --card: #fffbf8;
  --ink: #2a2027;
  --ink-2: #6b5a65;
  --ink-3: #9c8d97;
  --line: #e4d9d3;
  --peach: #f3b398;
  --rose: #e8a3ae;
  --sage: #a9bfa3;
  --lilac: #cdbbdd;
  --butter: #f6d9a0;
  --mist: #9fc4c9;
  --accent: #c9657a;        /* deep rose for primary actions */
  --accent-ink: #fff;
  --fix-bg: #eef3ea;        /* sage wash for "what hit the spot" */
  --fix-line: #c9d8c3;
  --radius: 22px;
  --shadow: 0 1px 0 rgba(42,32,39,.04), 0 10px 30px -14px rgba(42,32,39,.25);
  --shadow-lift: 0 2px 0 rgba(42,32,39,.04), 0 24px 50px -20px rgba(42,32,39,.35);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before { /* paper grain */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .5;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .16 0 0 0 0 .12 0 0 0 0 .15 0 0 0 .07 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
main, .top, .fab, .toast, .alert { position: relative; z-index: 1; }
svg { display: inline-block; vertical-align: middle; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -.01em; margin: 0; }
h1 em, h2 em { font-style: italic; font-weight: 400; color: var(--accent); }
p { margin: 0; }
.muted { color: var(--ink-2); }
.inl { width: 1em; height: 1em; vertical-align: -.15em; }

/* ----------------------------------------------------------- top bar */
.top {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px clamp(16px, 4vw, 40px);
  background: color-mix(in srgb, var(--paper) 84%, transparent);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--serif); font-size: 20px; font-weight: 600; }
.brand__jar { width: 28px; height: 28px; color: var(--accent); }
.brand:hover .brand__jar { transform: rotate(-8deg); transition: transform .3s; }

/* ----------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 20px; border-radius: 999px; border: 2px solid var(--ink);
  background: transparent; color: var(--ink); font-weight: 700; font-size: 15px; text-decoration: none;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: 0 10px 24px -12px rgba(42,32,39,.6); }
.btn--primary:hover { background: var(--accent); border-color: var(--accent); }
.btn--ghost { border-color: var(--line); background: var(--card); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--sm { padding: 9px 14px; font-size: 14px; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.iconbtn { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--card); display: inline-grid; place-items: center; color: var(--ink); }
.iconbtn svg { width: 18px; height: 18px; }
.iconbtn:hover { border-color: var(--ink); }
.linkbtn { background: none; border: 0; padding: 0; color: var(--accent); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ----------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; min-height: calc(100vh - 64px); min-height: calc(100svh - 64px); display: flex; align-items: center; padding: clamp(32px, 6vw, 80px) clamp(16px, 4vw, 40px); }
.hero__canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: none; }
.hero--3d .hero__canvas { display: block; }
.hero--3d .hero__blob, .hero--3d .hero__floaters { display: none; }
.hero__in { position: relative; z-index: 2; max-width: 560px; width: min(100%, 560px); margin-left: max(0px, calc((100% - 1240px) / 2)); text-align: left; }
.hero--flat .hero__in { margin: 0 auto; text-align: center; }
.hero__blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; pointer-events: none; }
.hero__blob--a { width: 520px; height: 520px; left: -140px; top: -120px; background: radial-gradient(circle, var(--peach), transparent 70%); }
.hero__blob--b { width: 560px; height: 560px; right: -180px; bottom: -220px; background: radial-gradient(circle, var(--lilac), transparent 70%); }
.kicker { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; font-weight: 800; color: var(--accent); margin-bottom: 14px; }
.hero h1 { font-size: clamp(40px, 5.6vw, 74px); line-height: 1.0; letter-spacing: -.025em; font-variation-settings: "opsz" 144; }
.hero h1 em { position: relative; white-space: nowrap; }
.hero h1 em::after { /* hand-drawn underline */
  content: ""; position: absolute; left: 0; right: 0; bottom: -.08em; height: .28em;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 20' preserveAspectRatio='none'><path d='M3 12 C 60 2, 120 18, 180 9 S 260 4, 297 12' fill='none' stroke='%23e8a3ae' stroke-width='6' stroke-linecap='round'/></svg>") no-repeat center / 100% 100%;
  z-index: -1; opacity: .9;
}
.lede { font-size: clamp(17px, 2vw, 20px); color: var(--ink-2); max-width: 520px; margin: 22px 0 0; }
.hero--flat .lede { margin: 22px auto 0; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero--flat .hero__cta { justify-content: center; }
.hero__stats { margin-top: 26px; font-size: 14px; color: var(--ink-3); font-weight: 700; letter-spacing: .02em; min-height: 1.4em; }
.hero__stats b { color: var(--ink); }
.btn .sm { display: none; }
.hero__hint { margin-top: 10px; font-size: 13px; color: var(--ink-3); font-style: italic; display: none; }
.hero--3d .hero__hint { display: block; }
.hero__in > * { animation: rise .8s cubic-bezier(.2,.8,.2,1) both; }
.hero__in > :nth-child(2) { animation-delay: .08s } .hero__in > :nth-child(3) { animation-delay: .16s } .hero__in > :nth-child(4) { animation-delay: .24s } .hero__in > :nth-child(5) { animation-delay: .32s } .hero__in > :nth-child(6) { animation-delay: .4s }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero__floaters { position: absolute; inset: 0; pointer-events: none; }
.floater { position: absolute; width: var(--s, 90px); height: var(--s, 90px); opacity: .95; animation: float var(--d, 7s) ease-in-out infinite alternate; animation-delay: var(--dl, 0s); filter: drop-shadow(0 12px 14px rgba(42,32,39,.12)); }
.floater svg { width: 100%; height: 100%; }
@keyframes float { from { transform: translateY(-8px) rotate(var(--r, -4deg)); } to { transform: translateY(10px) rotate(calc(var(--r, -4deg) * -1)); } }

/* ----------------------------------------------------------- controls */
.controls {
  position: sticky; top: 64px; z-index: 20; scroll-margin-top: 64px;
  padding: 12px clamp(16px, 4vw, 40px);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr);
}
.controls__row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; max-width: 1240px; margin: 0 auto; width: 100%; }
.controls__row--chips { flex-wrap: nowrap; }
.seg { display: inline-flex; background: var(--paper-2); border-radius: 999px; padding: 4px; gap: 2px; }
.seg button { border: 0; background: transparent; padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--ink-2); }
.seg button[aria-selected="true"] { background: var(--card); color: var(--ink); box-shadow: 0 2px 10px -4px rgba(42,32,39,.3); }
.search { flex: 1 1 220px; display: flex; align-items: center; gap: 8px; background: var(--card); border: 1.5px solid var(--line); border-radius: 999px; padding: 0 14px; min-width: 200px; }
.search svg { width: 18px; height: 18px; color: var(--ink-3); flex: none; }
.search input { flex: 1; border: 0; background: transparent; padding: 10px 0; min-width: 0; outline: none; }
.search:focus-within { border-color: var(--ink); }
.select { border: 1.5px solid var(--line); background: var(--card); border-radius: 999px; padding: 8px 36px 8px 14px; font-weight: 700; font-size: 14px; appearance: none; -webkit-appearance: none; flex: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6 9l6 6 6-6' fill='none' stroke='%232a2027' stroke-width='2.2' stroke-linecap='round'/></svg>"); background-repeat: no-repeat; background-position: right 12px center; background-size: 14px; }
.chips { display: flex; gap: 8px; overflow-x: auto; min-width: 0; flex: 1 1 0; scrollbar-width: none; padding: 2px; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1.5px solid var(--line); background: var(--card); border-radius: 999px; padding: 7px 13px; font-weight: 700; font-size: 13px; color: var(--ink-2); transition: all .15s; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ----------------------------------------------------------- board */
.boardwrap { padding: 28px clamp(16px, 4vw, 40px) 40px; max-width: 1320px; margin: 0 auto; }
.board { columns: 3 320px; column-gap: 22px; }
.card {
  break-inside: avoid; display: block; position: relative;
  background: var(--card); border-radius: var(--radius);
  padding: 24px 22px 18px; margin: 0 0 22px;
  box-shadow: var(--shadow);
  transform: rotate(var(--tilt, 0deg));
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s;
  cursor: pointer; animation: cardin .5s both;
}
.card:hover { transform: rotate(0deg) translateY(-4px); box-shadow: var(--shadow-lift); }
.card:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
@keyframes cardin { from { opacity: 0; transform: translateY(14px) rotate(var(--tilt, 0deg)); } to { opacity: 1; } }
.card.is-new { animation: pop .6s cubic-bezier(.2,.9,.2,1.2) both; }
@keyframes pop { from { transform: scale(.92); opacity: 0; } to { transform: scale(1) rotate(var(--tilt,0deg)); opacity: 1; } }
.tape {
  position: absolute; top: -10px; left: 50%; width: 96px; height: 26px;
  transform: translateX(-50%) rotate(var(--tr, -3deg));
  background: var(--tape, var(--rose)); opacity: .8; mix-blend-mode: multiply;
  clip-path: polygon(2% 0, 98% 4%, 100% 100%, 0 96%);
}
.tape::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255,255,255,.18) 0 2px, transparent 2px 6px); }
.card__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.card__meta { font-size: 12.5px; color: var(--ink-3); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin-top: 4px; }
.card__meta b { color: var(--ink-2); }
.card__doodle { flex: none; width: 84px; height: 84px; margin: -8px -6px 0 0; }
.card__doodle svg { width: 100%; height: 100%; }
.card__craving { font-size: 25px; line-height: 1.12; margin: 8px 0 10px; font-weight: 500; letter-spacing: -.01em; }
.card__story { color: var(--ink-2); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.fix { margin-top: 14px; background: var(--fix-bg); border: 1.5px dashed var(--fix-line); border-radius: 16px; padding: 12px 14px 12px; position: relative; }
.fix__label { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; color: #5b7a52; margin-bottom: 4px; }
.fix__label svg { width: 14px; height: 14px; }
.fix p { font-size: 15px; line-height: 1.5; }
.card .fix p { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tag { font-size: 12px; font-weight: 800; letter-spacing: .04em; padding: 4px 10px; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); }
.tag--pica { background: #efe6f4; color: #7a5a8c; }
.acts { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.react { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--line); background: var(--card); border-radius: 999px; padding: 6px 12px; font-size: 13.5px; font-weight: 800; color: var(--ink-2); transition: all .15s; }
.react svg { width: 16px; height: 16px; }
.react:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-1px); }
.react.is-on { color: #fff; border-color: transparent; }
.react--metoo.is-on { background: var(--accent); }
.react--helped.is-on { background: #5b7a52; }
.react.bump svg { animation: bump .4s ease; }
@keyframes bump { 30% { transform: scale(1.5) rotate(-10deg); } }
.acts__tips { margin-left: auto; font-size: 13px; color: var(--ink-3); font-weight: 700; display: inline-flex; gap: 5px; align-items: center; }
.acts__tips svg { width: 15px; height: 15px; }
.board__foot { text-align: center; padding: 10px 0 20px; }
.empty { color: var(--ink-2); font-size: 17px; }
.skeleton { break-inside: avoid; height: 260px; border-radius: var(--radius); background: linear-gradient(100deg, var(--paper-2) 30%, var(--card) 50%, var(--paper-2) 70%); background-size: 300% 100%; animation: sheen 1.4s infinite; margin-bottom: 22px; }
@keyframes sheen { to { background-position: -300% 0; } }

/* ----------------------------------------------------------- footer */
.foot { max-width: 720px; margin: 20px auto 110px; padding: 0 20px; text-align: center; color: var(--ink-2); font-size: 14.5px; }
.foot__small { margin-top: 12px; font-size: 13px; color: var(--ink-3); }

/* ----------------------------------------------------------- fab (mobile) */
.fab { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 25;
  display: none; align-items: center; gap: 8px; padding: 14px 22px; border-radius: 999px; border: 0;
  background: var(--ink); color: #fff; font-weight: 800; box-shadow: 0 16px 30px -12px rgba(42,32,39,.6); }
.fab svg { width: 18px; height: 18px; }

/* ----------------------------------------------------------- sheets */
dialog.sheet { border: 0; padding: 0; background: var(--card); color: var(--ink); border-radius: 26px; width: min(640px, calc(100vw - 24px)); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); box-shadow: 0 40px 90px -30px rgba(42,32,39,.55); overflow: hidden; }
dialog.sheet::backdrop { background: rgba(42,32,39,.42); backdrop-filter: blur(6px); }
dialog.sheet[open] { animation: sheetin .32s cubic-bezier(.2,.9,.2,1) both; }
@keyframes sheetin { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }
dialog.sheet form { display: flex; flex-direction: column; max-height: calc(100dvh - 32px); }
.sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 22px 8px; }
.sheet__head h2 { font-size: 26px; }
.sheet__body { padding: 8px 22px 16px; overflow-y: auto; display: grid; gap: 16px; }
.sheet__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 22px 20px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.sheet__fine { font-size: 12.5px; color: var(--ink-3); font-weight: 700; }
.sheet--small { width: min(520px, calc(100vw - 24px)); }
.about p + p { margin-top: 10px; }
.sheet--reader { width: min(720px, calc(100vw - 24px)); }
.sheet__scroll { max-height: calc(100dvh - 32px); overflow-y: auto; }
.sheet__head--float { position: sticky; top: 0; z-index: 2; justify-content: flex-end; padding: 14px 14px 0; pointer-events: none; }
.sheet__head--float .iconbtn { pointer-events: auto; }

/* fields */
.field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field__label { font-weight: 800; font-size: 14px; display: flex; align-items: center; gap: 6px; }
.field__label i { color: var(--accent); font-style: normal; }
.field__label small { color: var(--ink-3); font-weight: 700; }
.field__spark { width: 16px; height: 16px; color: #5b7a52; }
.field input, .field textarea { width: 100%; border: 1.5px solid var(--line); background: var(--paper); border-radius: 14px; padding: 12px 14px; outline: none; transition: border .15s; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--ink); background: #fff; }
.field--fix textarea { background: var(--fix-bg); border-style: dashed; border-color: var(--fix-line); }
.field--fix textarea:focus { background: #fff; }
.field__hint { justify-self: end; font-size: 12px; color: var(--ink-3); font-weight: 700; }
.field--row { grid-template-columns: 1fr 1fr; gap: 12px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { border: 1.5px solid var(--line); background: var(--card); border-radius: 999px; padding: 8px 14px; font-weight: 800; font-size: 13.5px; color: var(--ink-2); transition: all .15s; }
.pill:hover { border-color: var(--ink); color: var(--ink); }
.pill.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.pills--soft .pill.is-on { background: var(--accent); border-color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.note { border-radius: 16px; padding: 12px 14px; font-size: 14px; line-height: 1.5; }
.note--pica { background: #efe6f4; color: #4e3a5c; border: 1.5px solid #dccbe8; }
.form-error { color: var(--accent); font-weight: 800; font-size: 14px; }

/* reader content */
.reader { padding: 0 26px 26px; }
.reader__doodle { width: 150px; height: 150px; margin: -20px auto 0; display: block; }
.reader__doodle svg { width: 100%; height: 100%; }
.reader__meta { text-align: center; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: 800; color: var(--ink-3); margin-top: 6px; }
.reader h2 { text-align: center; font-size: clamp(28px, 4.6vw, 40px); line-height: 1.08; margin: 10px auto 14px; max-width: 560px; }
.reader__story { color: var(--ink-2); font-size: 17px; max-width: 560px; margin: 0 auto; white-space: pre-line; text-align: center; }
.reader .fix { max-width: 560px; margin: 20px auto 0; padding: 16px 18px; }
.reader .fix p { font-size: 17px; white-space: pre-line; }
.reader .tags { justify-content: center; }
.reader .acts { justify-content: center; border-top: 0; margin-top: 16px; }
.reader .acts__tips { margin-left: 0; }
.reader__share { display: flex; justify-content: center; gap: 8px; margin-top: 6px; }
.reader__share button { border: 0; background: none; color: var(--ink-3); font-weight: 800; font-size: 13px; display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border-radius: 999px; }
.reader__share button:hover { background: var(--paper-2); color: var(--ink); }
.reader__share svg { width: 15px; height: 15px; }
.tips { max-width: 560px; margin: 26px auto 0; border-top: 1px solid var(--line); padding-top: 18px; }
.tips h3 { font-size: 20px; font-style: italic; font-weight: 400; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.tips h3 svg { width: 18px; height: 18px; color: var(--accent); }
.tip { background: var(--paper); border-radius: 16px; padding: 12px 14px; margin-bottom: 8px; position: relative; }
.tip p { font-size: 15px; }
.tip__by { display: block; margin-top: 4px; font-size: 12.5px; color: var(--ink-3); font-weight: 700; }
.tips__empty { color: var(--ink-3); font-size: 14.5px; margin-bottom: 10px; }
.tipform { margin-top: 14px; display: grid; gap: 8px; }
.tipform textarea { width: 100%; border: 1.5px solid var(--line); background: var(--card); border-radius: 14px; padding: 12px 14px; outline: none; resize: vertical; }
.tipform textarea:focus { border-color: var(--ink); }
.tipform__row { display: flex; gap: 8px; align-items: center; }
.tipform__row input { flex: 1; border: 1.5px solid var(--line); background: var(--card); border-radius: 999px; padding: 9px 14px; outline: none; min-width: 0; }
.tipform__row input:focus { border-color: var(--ink); }

/* ----------------------------------------------------------- alert + toast */
.alert { position: fixed; top: 0; left: 0; right: 0; z-index: 60; padding: 10px 14px; background: #fff0f1; border-bottom: 2px solid var(--accent); color: #6a2733; font-size: 14px; }
.alert__in { max-width: 1000px; margin: 0 auto; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.alert__btn { border: 2px solid var(--accent); background: var(--accent); color: #fff; border-radius: 999px; padding: 6px 12px; font-weight: 800; font-size: 13px; }
.alert__more { border: 0; background: none; text-decoration: underline; font-weight: 700; font-size: 13px; color: inherit; }
.alert__close { margin-left: auto; border: 0; background: none; width: 32px; height: 32px; display: grid; place-items: center; color: inherit; }
.alert__close svg { width: 16px; height: 16px; }
.alert pre { flex-basis: 100%; margin: 4px 0 0; font-size: 12px; white-space: pre-wrap; background: #fff; padding: 8px 10px; border-radius: 10px; user-select: all; }
.toast { position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); z-index: 70; background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 999px; font-weight: 800; font-size: 14px; opacity: 0; pointer-events: none; transition: all .3s cubic-bezier(.2,.9,.2,1); box-shadow: 0 16px 30px -12px rgba(42,32,39,.6); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ----------------------------------------------------------- responsive */
@media (max-width: 720px) {
  .top .btn { display: none; }
  .fab { display: inline-flex; }
  .controls { position: static; }
  .hero h1 em { white-space: normal; text-decoration: underline; text-decoration-color: var(--rose); text-decoration-thickness: .1em; text-underline-offset: .08em; text-decoration-skip-ink: none; }
  .hero h1 em::after { display: none; }
  .floater { opacity: .75; }
  .floater:nth-child(1) { left: -8% !important; top: -4% !important; }
  .floater:nth-child(2) { left: 84% !important; top: -5% !important; }
  .floater:nth-child(3) { left: -3% !important; top: 72% !important; }
  .floater:nth-child(4) { left: 84% !important; top: 58% !important; }
  .floater:nth-child(5), .floater:nth-child(7) { display: none; }
  .floater:nth-child(6) { left: 76% !important; top: 90% !important; }
  .board { columns: 1; }
  .card { --tilt: 0deg !important; }
  .hero { padding: 28px 16px 0; min-height: calc(100vh - 56px); min-height: calc(100svh - 56px); align-items: flex-start; }
  .hero--3d .hero__in { text-align: center; margin: 0 auto; }
  .hero--3d .hero__cta { justify-content: center; }
  .hero--3d .lede { margin: 16px auto 0; font-size: 16px; }
  .hero--3d .hero__stats { margin-top: 16px; }
  .hero--3d .hero__hint { display: none; }
  .hero.hero--3d { min-height: 0; padding-bottom: min(108vw, 470px); }
  .hero--3d .kicker { font-size: 11px; letter-spacing: .13em; }
  .hero--3d .hero__cta { flex-wrap: nowrap; gap: 8px; margin-top: 22px; }
  .hero--3d .hero__cta .btn { padding: 12px 16px; font-size: 14.5px; }
  .btn .lg { display: none; } .btn .sm { display: inline; }
  body.hero-in-view .fab { opacity: 0; pointer-events: none; transform: translate(-50%, 20px); }
  .fab { transition: opacity .25s, transform .25s; }
  .floater { --s: 64px; }
  .field--row { grid-template-columns: 1fr; }
  .controls__row--chips { flex-wrap: nowrap; }
  .reader { padding: 0 18px 22px; }
  dialog.sheet { width: calc(100vw - 16px); border-radius: 22px; }
  .sheet__foot .sheet__fine { display: none; }
  .sheet__foot .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; transition-duration: .001s !important; }
  html { scroll-behavior: auto; }
}
