/* ==========================================================================
   Advent With Friends — Tactile Holiday Toybox
   Frosted-glass bento sidebar + a wide stage of 24 soft-3D candy doors.
   Three materials on <html data-theme>: matcha (default) · candy · cocoa.
   Door glazes per material are generated into partials/sprite.html from
   src/icons.js (one source for the page and the Story pictures).
   Layers: sheet z-30 · stage z-40 · toast z-50 (pointer-events: none)
   ========================================================================== */
@property --ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

/* ---------------------------------------------------------------- materials */
:root, [data-theme="matcha"] {
  --bg: #eef2ec;
  --wash1: rgba(160,208,168,.72); --wash2: rgba(208,196,242,.62); --wash3: rgba(255,220,196,.58);
  --ink: #15241b; --ink2: rgba(21,36,27,.68); --ink3: rgba(21,36,27,.5);
  --glass: rgba(255,255,255,.6); --glass-edge: rgba(255,255,255,.96); --glass-line: rgba(21,36,27,.07);
  --stage: rgba(255,255,255,.34); --sheet: rgba(250,252,249,.94);
  --slot-top: rgba(196,210,196,.58); --slot-bot: rgba(234,240,231,.8); --slot-ink: rgba(21,36,27,.38); --slot-lip: rgba(255,255,255,.85);
  --btn1: #5fae79; --btn2: #2b6b46; --btn-ink: #fff; --btn-glow: rgba(43,107,70,.5);
  --field: rgba(255,255,255,.86); --field-line: rgba(21,36,27,.09);
  --pill: rgba(255,255,255,.74);
  --accent-ink: #2b6b46;
  --shadow-c: 34,58,42;
  --tile-sat: 1; --tile-hi: rgba(255,255,255,.58);
  color-scheme: light;
}
[data-theme="candy"] {
  --bg: #fbefea;
  --wash1: rgba(255,146,160,.58); --wash2: rgba(255,206,150,.52); --wash3: rgba(222,150,206,.42);
  --ink: #2a1016; --ink2: rgba(42,16,22,.68); --ink3: rgba(42,16,22,.5);
  --glass: rgba(255,255,255,.58); --glass-edge: rgba(255,255,255,.95); --glass-line: rgba(42,16,22,.07);
  --stage: rgba(255,255,255,.3); --sheet: rgba(255,250,248,.95);
  --slot-top: rgba(236,196,198,.55); --slot-bot: rgba(252,236,232,.82); --slot-ink: rgba(42,16,22,.38); --slot-lip: rgba(255,255,255,.85);
  --btn1: #ff5f73; --btn2: #c3173a; --btn-ink: #fff; --btn-glow: rgba(195,23,58,.5);
  --field: rgba(255,255,255,.86); --field-line: rgba(42,16,22,.09);
  --pill: rgba(255,255,255,.74);
  --accent-ink: #c3173a;
  --shadow-c: 96,28,40;
  --tile-sat: 1.08; --tile-hi: rgba(255,255,255,.66);
  color-scheme: light;
}
[data-theme="cocoa"] {
  --bg: #1a1210;
  --wash1: rgba(206,72,60,.38); --wash2: rgba(232,170,80,.3); --wash3: rgba(122,62,142,.28);
  --ink: #f7ecdc; --ink2: rgba(247,236,220,.74); --ink3: rgba(247,236,220,.56);
  --glass: rgba(255,236,210,.07); --glass-edge: rgba(255,236,210,.2); --glass-line: rgba(255,236,210,.09);
  --stage: rgba(255,236,210,.035); --sheet: rgba(38,26,22,.96);
  --slot-top: rgba(0,0,0,.38); --slot-bot: rgba(255,236,210,.05); --slot-ink: rgba(247,236,220,.42); --slot-lip: rgba(255,236,210,.09);
  --btn1: #ffdc92; --btn2: #d4942c; --btn-ink: #2a1a08; --btn-glow: rgba(230,160,60,.45);
  --field: rgba(255,236,210,.08); --field-line: rgba(255,236,210,.14);
  --pill: rgba(255,236,210,.09);
  --accent-ink: #f3c66b;
  --shadow-c: 0,0,0;
  --tile-sat: 1; --tile-hi: rgba(255,232,190,.5);
  color-scheme: dark;
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { margin: 0; }
body {
  min-height: 100vh; min-height: 100dvh;
  font: 500 16px/1.5 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background-color .5s, color .5s;
  --i2: rgba(0,0,0,.2);
}
html.is-locked, html.is-locked body { overflow: hidden; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
img, svg { max-width: 100%; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 90; padding: 10px 16px; border-radius: 12px; background: var(--ink); color: var(--bg); font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--btn1); outline-offset: 3px; }
.container { width: min(1120px, 100%); margin-inline: auto; padding-inline: 20px; }
.ico { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }

.canvas { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(55% 50% at 8% 0%, var(--wash1), transparent 70%),
    radial-gradient(45% 45% at 96% 6%, var(--wash2), transparent 70%),
    radial-gradient(60% 55% at 72% 104%, var(--wash3), transparent 70%),
    var(--bg);
  transition: background .6s; }
.canvas::after { content: ''; position: absolute; inset: 0; opacity: .06; mix-blend-mode: overlay;
  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'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }

/* ---------------------------------------------------------------- brand, top bar, footer */
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 15px 'Outfit', sans-serif; letter-spacing: -.01em; color: var(--ink); text-decoration: none; }
.brand > svg { width: 34px; height: 34px; border-radius: 11px; }
.logo { width: 34px; height: 34px; flex: none; border-radius: 11px; display: grid; place-items: center; color: #fff; --i2: var(--btn2);
  background: radial-gradient(90% 60% at 30% 10%, rgba(255,255,255,.6), transparent 60%), linear-gradient(160deg, var(--btn1), var(--btn2));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), inset 0 -2px 4px rgba(0,0,0,.18), 0 6px 12px -5px var(--btn-glow); }
.logo svg { width: 20px; height: 20px; fill: currentColor; }
[data-theme="cocoa"] .logo { color: #2a1a08; --i2: #fff3d6; }
.topbar { position: sticky; top: 0; z-index: 20; padding: 12px 0; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 16px; border-radius: 22px;
  background: var(--glass); -webkit-backdrop-filter: blur(22px) saturate(1.5); backdrop-filter: blur(22px) saturate(1.5);
  box-shadow: inset 0 1px 0 var(--glass-edge), inset 0 0 0 1px var(--glass-line), 0 18px 36px -26px rgba(var(--shadow-c),.4); }
.nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nav a { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 0 14px; border-radius: 999px; font: 600 13.5px/1 'Outfit', sans-serif; color: var(--ink); text-decoration: none; white-space: nowrap;
  background: var(--pill); box-shadow: inset 0 1px 0 var(--glass-edge), inset 0 0 0 1px var(--glass-line), 0 4px 10px -8px rgba(var(--shadow-c),.35);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), background .2s; }
.nav a:hover { transform: translateY(-1px); background: var(--glass-edge); color: var(--ink); }
[data-theme="cocoa"] .nav a:hover { background: rgba(255,236,210,.16); }
.nav a .ico { width: 15px; height: 15px; }
.nav__count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center; font: 700 12px 'Outfit'; color: var(--btn-ink); background: linear-gradient(180deg, var(--btn1), var(--btn2)); }
body[data-awf-page="home"] .topbar, body[data-awf-page="calendar"] .topbar { display: none; }
.site-foot { padding: 28px 0 40px; color: var(--ink3); font-size: 14px; }
.site-foot__inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; flex-wrap: wrap; padding-top: 20px; border-top: 1px solid var(--glass-line); }
.site-foot__info { display: flex; flex-direction: column; gap: 4px; }
.site-foot__brand { font: 700 15px 'Outfit'; color: var(--ink); }
.site-foot__brand em { font-style: normal; font-weight: 500; color: var(--ink3); }
.site-foot__support { color: var(--ink2); }
.site-foot__support a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.site-foot nav { display: flex; gap: 16px; flex-wrap: wrap; }
.site-foot a { color: var(--ink2); text-decoration: none; font-weight: 600; }
.site-foot a:hover { color: var(--ink); }

/* ---------------------------------------------------------------- app shell: sidebar + stage */
.app { display: grid; grid-template-columns: minmax(360px, 34fr) 66fr; gap: 20px; align-items: start; min-height: 640px; padding: 20px; }
.app--owner, .app--friend, .app--cal { height: auto; align-items: start; }
.side { display: flex; flex-direction: column; gap: 16px; min-height: 0; min-width: 0; overflow: visible; }
.bento { position: relative; border-radius: 32px; background: var(--glass);
  -webkit-backdrop-filter: blur(26px) saturate(1.5); backdrop-filter: blur(26px) saturate(1.5);
  box-shadow: inset 0 1px 0 var(--glass-edge), inset 0 0 0 1px var(--glass-line), 0 1px 2px rgba(var(--shadow-c),.06), 0 28px 56px -28px rgba(var(--shadow-c),.32); }
.card { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.card.grow { flex: 0 0 auto; }
.side-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.side-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.side-link { border: 0; background: var(--pill); min-height: 38px; padding: 0 13px; border-radius: 999px; font: 600 13px/1 'Outfit', sans-serif; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap;
  box-shadow: inset 0 1px 0 var(--glass-edge), inset 0 0 0 1px var(--glass-line), 0 6px 14px -10px rgba(var(--shadow-c),.4);
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), background .2s; }
.side-link:hover { transform: translateY(-1.5px); background: var(--glass-edge); color: var(--ink); }
[data-theme="cocoa"] .side-link:hover { background: rgba(255,236,210,.16); }
.side-link:active { transform: translateY(1px) scale(.96); transition-duration: .1s; }
.side-link .ico { width: 15px; height: 15px; }
.side-link .short { display: none; }
.side-link .nav__count { height: 18px; min-width: 18px; }
.stage { position: sticky; top: 20px; height: calc(100vh - 40px); height: calc(100dvh - 40px); min-height: 600px; max-height: 840px; display: flex; flex-direction: column; min-width: 0; padding: 22px 26px 26px; background: var(--stage); }
.stage-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.stage-head h2 { font: 600 30px/1.05 'Fraunces', Georgia, serif; letter-spacing: -.02em; font-variation-settings: 'opsz' 96; }
.stage-head h2 em, .hero em, .f-title em, .form-title em { font-style: italic; font-weight: 500; color: var(--accent-ink); }
.meta { margin-top: 6px; font-size: 14px; color: var(--ink2); }
.legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--ink2); }
.legend span { display: flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 14px; border-radius: 5px; display: block; }
.lg-empty { background: linear-gradient(var(--slot-top), var(--slot-bot)); box-shadow: inset 0 2px 3px rgba(var(--shadow-c),.22); }
.lg-fill { background: linear-gradient(160deg, #ff8f97, #e5304a); box-shadow: inset 0 1px 0 rgba(255,255,255,.7); }
.lg-today { background: linear-gradient(160deg, #fff3c4, #f2b53c); box-shadow: 0 0 0 2px rgba(242,181,60,.4); }
.lg-open { background: linear-gradient(170deg, #fffdf7, #f1e2c8); box-shadow: inset 0 0 0 1px rgba(150,110,60,.25); }
.lg-pick { background: linear-gradient(160deg, var(--btn1), var(--btn2)); }
.lg-taken { background: linear-gradient(160deg, #e7b9bd, #b58c90); }
.how-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border-radius: 999px; font: 600 13px/1 'Outfit', sans-serif; color: var(--ink); text-decoration: none; background: var(--pill);
  box-shadow: inset 0 1px 0 var(--glass-edge), inset 0 0 0 1px var(--glass-line), 0 6px 14px -10px rgba(var(--shadow-c),.4); transition: transform .35s cubic-bezier(.34,1.56,.64,1); }
.how-pill:hover { transform: translateY(-1.5px); color: var(--ink); }
.how-pill .ico { width: 16px; height: 16px; }

/* ---------------------------------------------------------------- the 24 doors */
.grid { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(4, 1fr); gap: 16px; padding: 6px; margin: 0; list-style: none; }
.tile { --r: 24px; --rx: 0deg; --ry: 0deg; --ty: 0px; --sc: 1; --i2: var(--t3);
  position: relative; display: block; border: 0; padding: 0; margin: 0; background: none; color: #fff; text-align: left; font: inherit;
  border-radius: var(--r); container-type: size; min-width: 0; min-height: 0;
  transform: perspective(700px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(var(--ty)) scale(var(--sc));
  transition: transform .5s cubic-bezier(.34,1.56,.64,1), filter .3s, opacity .3s;
  animation: pop .6s cubic-bezier(.34,1.56,.64,1) both; animation-delay: calc(var(--i, 0) * 18ms); }
@keyframes pop { from { opacity: 0; transform: perspective(700px) translateY(14px) scale(.86); } }
button.tile:hover { --ty: -6px; z-index: 2; }
button.tile:active { --sc: .93; --ty: -1px; transition-duration: .12s; }
.tile:focus-visible { outline: 3px solid var(--btn1); outline-offset: 4px; }
.face { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; }
.st-filled .face, .st-today .face, .st-pick .face, .st-taken .face {
  background: radial-gradient(120% 70% at 28% -4%, var(--tile-hi), rgba(255,255,255,0) 50%), linear-gradient(165deg, var(--t1) 0%, var(--t2) 54%, var(--t3) 100%);
  filter: saturate(var(--tile-sat));
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,.85), inset 0 -6px 12px rgba(0,0,0,.18), inset 0 0 0 1px rgba(255,255,255,.14), 0 2px 2px rgba(0,0,0,.06), 0 16px 26px -14px var(--t3); }
[data-theme="cocoa"] .st-filled .face, [data-theme="cocoa"] .st-today .face, [data-theme="cocoa"] .st-pick .face {
  box-shadow: inset 0 1.5px 0 rgba(255,236,200,.85), inset 0 -6px 12px rgba(0,0,0,.28), inset 0 0 0 1px rgba(255,210,140,.28), 0 2px 2px rgba(0,0,0,.2), 0 16px 26px -12px rgba(0,0,0,.7); }
.st-filled .face::after, .st-today .face::after, .st-pick .face::after, .st-taken .face::after, .st-opened .face::after {
  content: ''; position: absolute; left: 9%; right: 40%; top: 5%; height: 20%; border-radius: 999px; background: linear-gradient(180deg, rgba(255,255,255,.6), rgba(255,255,255,0)); }
.tile .sticker { position: absolute; left: 50%; top: 48%; width: 44cqi; height: 44cqi; max-width: 46cqb; max-height: 46cqb; translate: -50% -50%;
  fill: currentColor; filter: drop-shadow(0 2px 0 rgba(0,0,0,.16)) drop-shadow(0 -1px 0 rgba(255,255,255,.35));
  transition: transform .5s cubic-bezier(.34,1.56,.64,1); }
button.tile:hover .sticker { transform: translateY(-3px) rotate(-6deg) scale(1.06); }
.num { position: absolute; top: 8cqi; left: 8cqi; z-index: 1; font: 700 max(12px, min(13cqi, 20px))/1 'Outfit', sans-serif; letter-spacing: -.01em;
  padding: .28em .5em; border-radius: 999px; background: rgba(255,255,255,.24); box-shadow: inset 0 1px 0 rgba(255,255,255,.5); text-shadow: 0 1px 0 rgba(0,0,0,.18); }
.chip { position: absolute; left: 50%; bottom: 8cqi; translate: -50% 0; z-index: 1; max-width: 90%;
  font: 700 12px/1 'Plus Jakarta Sans', sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  padding: .42em .75em; border-radius: 999px; color: var(--t3); background: rgba(255,255,255,.95); box-shadow: 0 3px 8px -2px rgba(0,0,0,.18), inset 0 -1px 0 rgba(0,0,0,.05); }
/* empty: a frosted recess with its date, never a plus sign */
.st-empty .face { background: linear-gradient(180deg, var(--slot-top), var(--slot-bot)); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: inset 0 5px 12px rgba(var(--shadow-c),.18), inset 0 1px 3px rgba(var(--shadow-c),.16), inset 0 -1px 0 var(--slot-lip), 0 1px 0 var(--slot-lip); }
[data-theme="cocoa"] .st-empty .face { box-shadow: inset 0 5px 12px rgba(0,0,0,.5), inset 0 1px 3px rgba(0,0,0,.4), inset 0 -1px 0 var(--slot-lip), 0 1px 0 var(--slot-lip); }
.st-empty .num { inset: 0; display: grid; place-items: center; padding: 0; background: none; box-shadow: none; text-shadow: 0 1px 0 var(--slot-lip);
  font: 600 max(15px, min(24cqi, 38px))/1 'Outfit', sans-serif; color: var(--slot-ink); }
button.st-empty:hover { --ty: -2px; }
/* opened: a warm cream card face with the sticker standing up */
.st-opened { color: var(--t2); --i2: var(--t1); }
.st-opened .face { background: radial-gradient(120% 70% at 28% -4%, #fff, rgba(255,255,255,0) 55%), linear-gradient(170deg, #fffdf7 0%, #f8eedb 60%, #f0dfc2 100%);
  box-shadow: inset 0 1.5px 0 #fff, inset 0 -5px 10px rgba(160,118,60,.16), inset 0 0 0 1px rgba(150,110,60,.12), 0 16px 24px -14px rgba(120,80,30,.45); }
.st-opened .face::before { content: ''; position: absolute; inset: 0; opacity: .5;
  background-image: radial-gradient(circle at 20% 80%, var(--t1) 0 2.5%, transparent 3%), radial-gradient(circle at 84% 62%, var(--t1) 0 2%, transparent 2.5%), radial-gradient(circle at 70% 18%, var(--t1) 0 1.8%, transparent 2.3%); }
.st-opened .sticker { rotate: -8deg; filter: drop-shadow(0 3px 0 rgba(255,255,255,1)) drop-shadow(0 4px 6px rgba(120,80,30,.25)); }
.st-opened .num { background: rgba(120,90,50,.1); box-shadow: none; color: #6e5a3e; text-shadow: none; }
.st-opened .chip { background: linear-gradient(180deg, var(--t1), var(--t2)); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 3px 8px -3px var(--t3); }
.react { position: absolute; top: -8px; right: -8px; z-index: 3; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; --i2: var(--t3);
  background: radial-gradient(70% 55% at 32% 20%, rgba(255,255,255,.7), transparent 60%), linear-gradient(160deg, var(--t1), var(--t2) 60%, var(--t3));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 6px 12px -4px var(--t3), 0 0 0 2.5px #fffaf0; animation: float 3.2s ease-in-out infinite; }
.react svg { width: 80%; height: 80%; fill: currentColor; }
.react--seen { background: linear-gradient(180deg, #fffdf7, #f0dfc2); color: #6e5a3e; animation: none; }
.react--seen svg { width: 56%; height: 56%; fill: none; stroke: currentColor; stroke-width: 3; }
@keyframes float { 50% { transform: translateY(-3px) rotate(8deg); } }
/* today: candy + a slow gold ring that breathes */
.st-today { z-index: 1; animation: pop .6s cubic-bezier(.34,1.56,.64,1) both, breathe 2.6s ease-in-out infinite; }
.st-today::before { content: ''; position: absolute; inset: -4px; border-radius: calc(var(--r) + 4px);
  background: conic-gradient(from var(--ang), #fff6cf, #f5b83d, #ffe9a6, #d68811, #fff3c4, #f5b83d, #fff6cf); animation: spin 3.2s linear infinite; }
@keyframes spin { to { --ang: 360deg; } }
@keyframes breathe { 0%, 100% { filter: drop-shadow(0 0 2px rgba(245,184,61,.35)); } 50% { filter: drop-shadow(0 0 22px rgba(245,184,61,.85)); } }
.today-badge { position: absolute; top: -12px; left: 50%; translate: -50% 0; z-index: 3; white-space: nowrap;
  font: 800 12px/1 'Outfit', sans-serif; letter-spacing: .04em; text-transform: uppercase; color: #6e4300; padding: 6px 10px; border-radius: 999px;
  background: radial-gradient(80% 60% at 30% 10%, #fff, transparent 60%), linear-gradient(180deg, #fff2c0, #ffcb52);
  box-shadow: inset 0 1px 0 #fff, inset 0 -2px 0 rgba(170,100,0,.25), 0 6px 14px -4px rgba(200,130,10,.6); animation: hop 1.8s cubic-bezier(.34,1.56,.64,1) infinite; }
.today-badge .short { display: none; }
.st-today .num { top: max(16px, 11cqi); }
@keyframes hop { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-5px); } }
@keyframes hop-sm { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-2px); } }
/* friend view: the door being written (live sticker preview) and doors already taken */
.st-pick { --ty: -6px; z-index: 2; }
.st-pick::before { content: ''; position: absolute; inset: -5px; border-radius: calc(var(--r) + 5px); border: 2.5px solid var(--btn1);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--btn1) 22%, transparent); animation: ringpulse 1.6s ease-in-out infinite; }
@keyframes ringpulse { 50% { box-shadow: 0 0 0 9px color-mix(in srgb, var(--btn1) 6%, transparent); } }
.st-taken { cursor: not-allowed; }
.st-taken .face { filter: saturate(.5) brightness(1.02); opacity: .72; }
.st-taken .sticker { opacity: .72; }
.st-taken .chip { color: rgba(42,30,30,.66); background: rgba(255,255,255,.84); }
.st-mine .face { filter: none; opacity: 1; }
.st-mine .sticker { opacity: 1; }
.st-mine .chip { color: var(--t3); }
.is-wiggle { animation: nope .45s cubic-bezier(.36,.07,.19,.97) !important; }
.is-pop { animation: popin .7s cubic-bezier(.34,1.56,.64,1) both !important; }
@keyframes popin { 0% { transform: perspective(700px) scale(.6); } 60% { transform: perspective(700px) scale(1.12); } }
@keyframes nope { 20%, 60% { translate: -5px 0; } 40%, 80% { translate: 5px 0; } }
@container (max-width: 76px) {
  .chip { display: none; }
  .num { top: 7cqi; left: 7cqi; }
  .st-today .num { top: 16px; left: 6px; padding: .2em .44em; }
  .tile .sticker { width: 54cqi; height: 54cqi; max-width: 58cqb; max-height: 58cqb; top: 58%; }
  .today-badge { top: -9px; padding: 3px 7px; }
  .today-badge .long { display: none; }
  .today-badge .short { display: inline; }
  .react { width: 22px; height: 22px; top: -6px; right: -6px; }
}
.grid.is-loading .tile { animation: none; opacity: .7; }
.grid.is-static .tile { animation: none; }
.grid.is-static .st-today { animation: breathe 2.6s ease-in-out infinite; }

/* ---------------------------------------------------------------- sidebar pieces */
.hero { font: 560 44px/1.02 'Fraunces', Georgia, serif; letter-spacing: -.03em; font-variation-settings: 'opsz' 144, 'SOFT' 100; }
.lede { font-size: 15px; line-height: 1.55; color: var(--ink2); }
.label { display: flex; justify-content: space-between; gap: 8px; margin: 0 0 8px; padding: 0; font: 600 12px 'Outfit', sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--ink3); }
.label b { font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ink2); }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend.label { width: 100%; }
.field { display: flex; align-items: center; gap: 6px; height: 54px; padding: 0 16px; border-radius: 18px; background: var(--field);
  box-shadow: inset 0 2px 4px rgba(var(--shadow-c),.08), inset 0 0 0 1px var(--field-line), 0 1px 0 var(--glass-edge); transition: box-shadow .2s; }
.field:focus-within { box-shadow: inset 0 2px 4px rgba(var(--shadow-c),.06), inset 0 0 0 2px var(--btn1), 0 0 0 5px color-mix(in srgb, var(--btn1) 18%, transparent); }
.field input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: 600 17px 'Outfit', sans-serif; }
.field input::placeholder { color: var(--ink3); font-weight: 500; }
.field .suffix { font: 500 15px 'Outfit', sans-serif; color: var(--ink3); white-space: nowrap; }
.input { width: 100%; height: 50px; padding: 0 16px; border: 0; border-radius: 16px; background: var(--field); font: 600 16px 'Outfit', sans-serif;
  box-shadow: inset 0 2px 4px rgba(var(--shadow-c),.08), inset 0 0 0 1px var(--field-line); }
textarea.input { height: auto; padding: 12px 16px; resize: vertical; font: 500 15px/1.45 'Plus Jakarta Sans', sans-serif; }
.input:focus { outline: 0; box-shadow: inset 0 0 0 2px var(--btn1), 0 0 0 5px color-mix(in srgb, var(--btn1) 18%, transparent); }
.mats { display: flex; gap: 10px; }
.mat { flex: 1; position: relative; padding: 10px 4px 8px; border-radius: 18px; display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer;
  font: 600 13px 'Outfit', sans-serif; color: var(--ink2); text-align: center; transition: background .25s, transform .4s cubic-bezier(.34,1.56,.64,1); }
.mat:hover { background: var(--pill); }
.mat:active { transform: scale(.94); }
.mat:has(input:checked) { background: var(--pill); color: var(--ink); box-shadow: inset 0 1px 0 var(--glass-edge), 0 6px 14px -8px rgba(var(--shadow-c),.35); }
.mat:has(input:focus-visible) { outline: 3px solid var(--btn1); outline-offset: 2px; }
.ball { width: 44px; height: 44px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 33% 26%, rgba(255,255,255,.95) 0 7%, rgba(255,255,255,0) 24%), radial-gradient(circle at 50% 62%, var(--m1), var(--m2) 62%, var(--m3));
  box-shadow: inset 0 -5px 9px rgba(0,0,0,.22), inset 0 2px 2px rgba(255,255,255,.4), 0 9px 14px -6px var(--m3); transition: transform .5s cubic-bezier(.34,1.56,.64,1); }
.mat:hover .ball { transform: translateY(-3px) rotate(14deg); }
.mat:has(input:checked) .ball { box-shadow: inset 0 -5px 9px rgba(0,0,0,.22), inset 0 2px 2px rgba(255,255,255,.4), 0 9px 14px -6px var(--m3), 0 0 0 3px var(--bg), 0 0 0 5px var(--ink); }
.m-candy { --m1: #ff9aa4; --m2: #e2283f; --m3: #86081d; }
.m-matcha { --m1: #e1f5d4; --m2: #8ccb9c; --m3: #2f6a46; }
.m-cocoa { --m1: #7a5644; --m2: #2c1a13; --m3: #0e0705; }
.ball.m-cocoa { box-shadow: inset 0 -5px 9px rgba(0,0,0,.4), inset 0 0 0 2px rgba(240,190,95,.75), 0 9px 14px -6px #000; }
.mat:has(input:checked) .ball.m-cocoa { box-shadow: inset 0 -5px 9px rgba(0,0,0,.4), inset 0 0 0 2px rgba(240,190,95,.75), 0 9px 14px -6px #000, 0 0 0 3px var(--bg), 0 0 0 5px var(--ink); }

.btn { position: relative; overflow: hidden; border: 0; min-height: 58px; padding: 0 20px; border-radius: 20px; width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 10px; text-align: center; text-decoration: none;
  font: 650 17.5px 'Outfit', sans-serif; letter-spacing: -.005em; color: var(--btn-ink);
  background: radial-gradient(90% 70% at 30% 0%, rgba(255,255,255,.42), transparent 55%), linear-gradient(180deg, var(--btn1), var(--btn2));
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,.55), inset 0 -4px 0 rgba(0,0,0,.16), 0 2px 0 rgba(0,0,0,.04), 0 14px 26px -12px var(--btn-glow);
  transition: transform .45s cubic-bezier(.34,1.56,.64,1), box-shadow .2s; }
.btn::after { content: ''; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; transform: skewX(-20deg); pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent); animation: sheen 4.5s ease-in-out infinite; }
@keyframes sheen { 0%, 60% { left: -60%; } 100% { left: 130%; } }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(2px) scale(.985); transition-duration: .1s; }
.btn:disabled { opacity: .6; cursor: default; transform: none; }
.btn.is-busy { pointer-events: none; }
.btn.is-busy::before { content: ''; width: 18px; height: 18px; flex: none; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: turn .8s linear infinite; }
@keyframes turn { to { transform: rotate(360deg); } }
.btn .ico { font-size: 20px; }
.btn .sticker { width: 22px; height: 22px; flex: none; fill: currentColor; --i2: var(--btn2); }
.stickers { padding-top: 4px; }
.btn--soft { color: var(--ink); background: var(--pill); min-height: 50px; font-size: 16px;
  box-shadow: inset 0 1px 0 var(--glass-edge), inset 0 0 0 1px var(--glass-line), 0 8px 16px -12px rgba(var(--shadow-c),.45); }
.btn--soft::after, .btn--sm::after { display: none; }
.btn--sm { width: auto; min-height: 40px; padding: 0 14px; border-radius: 14px; font-size: 14px; }
.btn--gold { color: #3a2408; background: radial-gradient(90% 70% at 30% 0%, rgba(255,255,255,.6), transparent 55%), linear-gradient(180deg, #ffe596, #f2b53c 60%, #d08a14); box-shadow: inset 0 1.5px 0 rgba(255,255,255,.7), inset 0 -4px 0 rgba(140,80,0,.2), 0 14px 26px -12px rgba(200,130,10,.6); }
.btn-row { display: flex; gap: 10px; }
.btn-row > * { flex: 1; }
.fine { font-size: 13px; color: var(--ink3); text-align: center; }
.pill-btn { border: 0; min-height: 40px; padding: 0 14px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; white-space: nowrap;
  font: 600 13.5px/1 'Outfit', sans-serif; color: var(--ink); text-decoration: none; background: var(--pill);
  box-shadow: inset 0 1px 0 var(--glass-edge), inset 0 0 0 1px var(--glass-line), 0 6px 14px -10px rgba(var(--shadow-c),.42);
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), background .2s, color .2s; }
.pill-btn:hover { transform: translateY(-1.5px); background: var(--glass-edge); color: var(--ink); }
[data-theme="cocoa"] .pill-btn:hover { background: rgba(255,236,210,.16); }
.pill-btn:active { transform: translateY(1px) scale(.96); transition-duration: .1s; }
.pill-btn .ico { width: 15px; height: 15px; }
.pill-btn .nav__count { height: 18px; min-width: 18px; }
.pill-btn--wide { width: 100%; min-height: 42px; font-size: 14px; }
.pill-btn--danger { color: #c0263d; background: color-mix(in srgb, #c0263d 8%, var(--pill));
  box-shadow: inset 0 1px 0 var(--glass-edge), inset 0 0 0 1px color-mix(in srgb, #c0263d 28%, transparent), 0 6px 14px -10px rgba(var(--shadow-c),.35); }
.pill-btn--danger:hover { background: color-mix(in srgb, #c0263d 14%, var(--pill)); color: #c0263d; }
[data-theme="cocoa"] .pill-btn--danger { color: #ff9a8a; background: color-mix(in srgb, #ff9a8a 12%, var(--pill));
  box-shadow: inset 0 1px 0 var(--glass-edge), inset 0 0 0 1px color-mix(in srgb, #ff9a8a 34%, transparent); }
[data-theme="cocoa"] .pill-btn--danger:hover { background: color-mix(in srgb, #ff9a8a 20%, var(--pill)); color: #ff9a8a; }
.pill-btn--quiet { min-height: 36px; padding: 0 12px; font-size: 13px; color: var(--ink2); background: var(--glass);
  box-shadow: inset 0 1px 0 var(--glass-edge), inset 0 0 0 1px var(--glass-line); }
.pill-btn--quiet:hover { color: var(--ink); background: var(--pill); }
.pill-btn--glass { color: #fff; background: rgba(0,0,0,.42); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.32), inset 0 0 0 1px rgba(255,255,255,.26), 0 8px 18px -10px rgba(0,0,0,.5); }
.pill-btn--glass:hover { background: rgba(0,0,0,.6); color: #fff; }
.form-error { font: 600 14px/1.4 'Plus Jakarta Sans', sans-serif; color: #c0263d; }
[data-theme="cocoa"] .form-error { color: #ff9a8a; }
.form-error:empty { display: none; }
.welcome { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border-radius: 22px; background: var(--pill);
  box-shadow: inset 0 1px 0 var(--glass-edge), inset 0 0 0 1px var(--glass-line), 0 12px 24px -18px rgba(var(--shadow-c),.42); }
.welcome__head { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.welcome__eyebrow { font: 700 12px/1.2 'Outfit', sans-serif; letter-spacing: .05em; text-transform: uppercase; color: var(--accent-ink); }
.welcome__title { font: 700 16px/1.25 'Outfit', sans-serif; color: var(--ink); }
.welcome__url { font-size: 12px; line-height: 1.3; color: var(--ink3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.welcome__actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.welcome__actions .btn { flex: 1 1 auto; width: auto; min-height: 40px; padding: 0 14px; border-radius: 999px; font-size: 14px; }
.welcome__actions .pill-btn { flex: 1 1 auto; min-height: 40px; }
.welcome__all { flex-basis: 100%; }
.create { justify-content: flex-start; gap: 16px; }
.create__head, .create__dock { display: flex; flex-direction: column; gap: 14px; }
.create__dock { margin-top: 0; padding-top: 2px; }
.create__foot { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }

/* ---------------------------------------------------------------- owner sidebar */
.ring-row { display: flex; align-items: center; gap: 20px; }
.ring { position: relative; width: 136px; height: 136px; flex: none; border-radius: 50%; background: radial-gradient(circle at 50% 40%, var(--glass-edge), transparent 70%);
  box-shadow: inset 0 3px 8px rgba(var(--shadow-c),.12), 0 1px 0 var(--glass-edge); }
.ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.ring .track { stroke: rgba(var(--shadow-c),.1); }
[data-theme="cocoa"] .ring .track { stroke: rgba(255,236,210,.1); }
.ring .bar { transition: stroke-dashoffset 1.2s cubic-bezier(.34,1.3,.64,1); filter: drop-shadow(0 3px 4px var(--btn-glow)); }
.ring__c { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring__c b { font: 700 36px/1 'Outfit', sans-serif; letter-spacing: -.03em; }
.ring__c b span { font-size: 20px; color: var(--ink3); font-weight: 600; }
.ring__c small { font-size: 12px; color: var(--ink2); margin-top: 4px; }
.ring-copy { min-width: 0; }
.cal-title { font: 600 26px/1.08 'Fraunces', Georgia, serif; letter-spacing: -.02em; overflow-wrap: anywhere; }
.ring-copy p { margin-top: 6px; font-size: 14px; line-height: 1.5; color: var(--ink2); }
.tag { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font: 700 12px 'Outfit', sans-serif; color: #7a4a00; padding: 6px 10px; border-radius: 999px;
  background: linear-gradient(180deg, #fff4cc, #ffdf86); box-shadow: inset 0 1px 0 #fff, 0 3px 8px -4px rgba(200,130,10,.6); }
.tag svg { width: 14px; height: 14px; fill: currentColor; --i2: #fff4cc; }
.own-card.is-celebrate { box-shadow: inset 0 1px 0 var(--glass-edge), inset 0 0 0 2px color-mix(in srgb, var(--btn1) 55%, transparent), 0 28px 56px -28px rgba(var(--shadow-c),.4); }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { border: 0; min-width: 0; min-height: 40px; padding: 0 12px; white-space: nowrap; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; text-decoration: none;
  font: 600 14px 'Outfit', sans-serif; color: var(--ink); background: var(--pill);
  box-shadow: inset 0 1px 0 var(--glass-edge), inset 0 0 0 1px var(--glass-line), 0 6px 12px -8px rgba(var(--shadow-c),.4); transition: transform .4s cubic-bezier(.34,1.56,.64,1); }
.pill:hover { transform: translateY(-2px); }
.pill:active { transform: scale(.94); }
.dot { width: 22px; height: 22px; flex: none; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 2px 4px -1px rgba(0,0,0,.25); }
.dot svg { width: 13px; height: 13px; }
.d-link { background: linear-gradient(160deg, #8fa3b8, #4f6378); }
.d-msg { background: linear-gradient(160deg, #6ee08a, #22a447); }
.d-story { background: conic-gradient(from 200deg, #ffb44a, #ff4f7a, #a64fff, #ffb44a); }
.pill--code { flex: 1 0 auto; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 14px; letter-spacing: .08em; }
.pill--code .k { font: 600 12px 'Outfit', sans-serif; letter-spacing: .06em; text-transform: uppercase; color: var(--ink3); }
.fold { padding: 0; }
.fold > summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 18px 22px; cursor: pointer; font: 600 15px 'Outfit', sans-serif; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary small { display: block; font: 500 13px 'Plus Jakarta Sans', sans-serif; color: var(--ink3); margin-top: 2px; }
.fold__ic { width: 34px; height: 34px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--pill); color: var(--accent-ink);
  box-shadow: inset 0 1px 0 var(--glass-edge), 0 4px 8px -5px rgba(var(--shadow-c),.4); }
.fold__ic svg { width: 17px; height: 17px; }
.chev { margin-left: auto; width: 18px; height: 18px; color: var(--ink3); transition: transform .35s cubic-bezier(.34,1.56,.64,1); }
.fold[open] .chev { transform: rotate(180deg); }
.fold__body { padding: 0 22px 20px; display: flex; flex-direction: column; gap: 4px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--glass-line); font-size: 14px; }
.row--stack { flex-direction: column; align-items: stretch; }
.row__sub { font-size: 13px; color: var(--ink3); margin-top: 2px; line-height: 1.45; }
.phrase { font: 700 15px 'JetBrains Mono', ui-monospace, monospace; letter-spacing: .02em; color: var(--ink); overflow-wrap: anywhere; }
.warn { padding: 10px 12px; border-radius: 14px; font-size: 13.5px; font-weight: 600; color: #7a3b00; background: #fff1cf; }
.drops__list { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.drop { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.drop p { flex: 1; min-width: 0; color: var(--ink2); }
.drop p b { color: var(--ink); font-weight: 700; }
.drop time { font: 500 12px 'JetBrains Mono', ui-monospace, monospace; color: var(--ink3); white-space: nowrap; }
.av { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; font: 700 12px 'Outfit', sans-serif; color: #fff; --i2: var(--t3);
  background: radial-gradient(80% 60% at 30% 15%, rgba(255,255,255,.55), transparent 55%), linear-gradient(160deg, var(--t1), var(--t2) 60%, var(--t3));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 4px 8px -3px var(--t3); }
.av svg { width: 62%; height: 62%; fill: currentColor; }
.owner-links { display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; padding: 4px 0 8px; }

/* ---------------------------------------------------------------- friend sidebar */
.fill { padding: 20px 22px; gap: 12px; }
.fill__head { display: flex; flex-direction: column; gap: 8px; }
.fill__body { display: flex; flex-direction: column; gap: 10px; }
.f-title { font: 560 27px/1.05 'Fraunces', Georgia, serif; letter-spacing: -.025em; overflow-wrap: anywhere; }
.app--friend .lede { font-size: 13.5px; line-height: 1.4; }
.who { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink2); }
.who b { color: var(--ink); }
.form-title { font: 560 22px/1.1 'Fraunces', Georgia, serif; letter-spacing: -.02em; }
.form-title.is-flash { animation: flash .6s ease; }
@keyframes flash { 40% { color: var(--accent-ink); transform: translateX(3px); } }
.fill__when { margin-top: 3px; font-size: 13px; color: var(--ink2); }
.app--friend .label { margin-bottom: 5px; }
.app--friend .field { height: 46px; border-radius: 15px; }
.stickers { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; }
.stk { position: relative; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; color: #fff; --i2: var(--t3); cursor: pointer;
  background: radial-gradient(70% 55% at 32% 18%, rgba(255,255,255,.65), transparent 60%), linear-gradient(160deg, var(--t1), var(--t2) 60%, var(--t3));
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,.75), inset 0 -3px 5px rgba(0,0,0,.18), 0 7px 12px -7px var(--t3); transition: transform .45s cubic-bezier(.34,1.56,.64,1), box-shadow .2s; }
.stk svg { width: 58%; height: 58%; fill: currentColor; filter: drop-shadow(0 1.5px 0 rgba(0,0,0,.16)); }
.stk:hover { transform: translateY(-3px) rotate(-8deg); }
.stk:active { transform: scale(.88); }
.stk:has(input:checked) { transform: translateY(-3px) scale(1.08); box-shadow: inset 0 1.5px 0 rgba(255,255,255,.75), inset 0 -3px 5px rgba(0,0,0,.18), 0 7px 12px -7px var(--t3), 0 0 0 3px var(--bg), 0 0 0 5.5px var(--t2); }
.stk:has(input:focus-visible) { outline: 3px solid var(--btn1); outline-offset: 5px; }
.note { border-radius: 18px; padding: 10px 14px 8px; background: var(--field); box-shadow: inset 0 0 0 1px var(--field-line), 0 1px 0 var(--glass-edge), 0 10px 22px -16px rgba(var(--shadow-c),.45); }
:root:not([data-theme="cocoa"]) .note { background: linear-gradient(180deg, #fffefb, #fffaf2); color: #2a1d12; }
.note textarea { display: block; width: 100%; min-height: 64px; resize: none; border: 0; outline: 0; background: none; font: 500 15.5px/1.4 'Fraunces', Georgia, serif; font-variation-settings: 'opsz' 24; }
.note textarea::placeholder { color: var(--ink3); font-style: italic; }
.note__foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; font: 500 12px 'JetBrains Mono', ui-monospace, monospace; color: var(--ink3); }
:root:not([data-theme="cocoa"]) .note__foot, :root:not([data-theme="cocoa"]) .note textarea::placeholder { color: rgba(42,29,18,.52); }
.note:focus-within { box-shadow: inset 0 0 0 2px var(--btn1), 0 0 0 5px color-mix(in srgb, var(--btn1) 16%, transparent); }
.bubbles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.bubble { border: 0; padding: 7px 10px; border-radius: 14px 14px 14px 5px; font: 600 12.5px/1.25 'Plus Jakarta Sans', sans-serif; text-align: left; color: var(--ink);
  background: var(--pill); box-shadow: inset 0 1px 0 var(--glass-edge), inset 0 0 0 1px var(--glass-line), 0 6px 12px -9px rgba(var(--shadow-c),.5); transition: transform .4s cubic-bezier(.34,1.56,.64,1), background .2s; }
.bubble:nth-child(even) { border-radius: 14px 14px 5px 14px; }
.bubble:hover { transform: translateY(-2px); }
.bubble:active { transform: scale(.95); }
.bubble.is-on { background: linear-gradient(180deg, var(--btn1), var(--btn2)); color: var(--btn-ink); }
.extras > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 13px; border-radius: 999px;
  font: 600 13.5px/1 'Outfit', sans-serif; color: var(--ink); background: var(--pill);
  box-shadow: inset 0 1px 0 var(--glass-edge), inset 0 0 0 1px var(--glass-line); transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
.extras > summary:hover { transform: translateY(-1px); }
.extras > summary::-webkit-details-marker { display: none; }
.extras > summary svg { width: 16px; height: 16px; color: var(--accent-ink); }
.extras__body { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.song-msg { font-size: 13px; color: var(--ink2); }
.song-msg:empty { display: none; }
.song-msg.is-error { color: #c0263d; }
.switch { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; font-size: 13.5px; font-weight: 700; }
.switch small { display: block; font-weight: 500; font-size: 12px; color: var(--ink3); margin-top: 1px; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle { position: relative; width: 50px; height: 30px; flex: none; border-radius: 999px; background: rgba(var(--shadow-c),.16); box-shadow: inset 0 2px 4px rgba(var(--shadow-c),.18); transition: background .3s; }
[data-theme="cocoa"] .toggle { background: rgba(255,236,210,.12); }
.toggle::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(180deg, #fff, #eef0ee);
  box-shadow: 0 2px 4px rgba(0,0,0,.22), inset 0 -1px 0 rgba(0,0,0,.06); transition: transform .45s cubic-bezier(.34,1.56,.64,1); }
.switch input:checked + .toggle { background: linear-gradient(180deg, var(--btn1), var(--btn2)); }
.switch input:checked + .toggle::after { transform: translateX(20px); }
.switch input:focus-visible + .toggle { outline: 3px solid var(--btn1); outline-offset: 3px; }
.switch input:disabled + .toggle { opacity: .55; }
.fill__submit { min-height: 52px; font-size: 16.5px; }
.fill__note { font-size: 13px; color: var(--ink2); }
.fill__note:empty { display: none; }
.fill__fine { font-size: 12.5px; color: var(--ink3); text-align: center; }
.cal-foot { display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; padding: 4px 0 8px; }
/* after sending: thank-you card, friends in the same circle */
.done__art { display: flex; justify-content: center; padding-top: 10px; }
.done__art .tile { width: 112px; height: 132px; }
.done__title { font: 560 28px/1.1 'Fraunces', Georgia, serif; letter-spacing: -.02em; text-align: center; }
.done__text { text-align: center; color: var(--ink2); font-size: 15px; }
.done__section { display: flex; flex-direction: column; gap: 10px; padding-top: 16px; border-top: 1px solid var(--glass-line); }
.done__h { font: 600 12px 'Outfit', sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--ink3); }
.circle__list { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.circle__item, .mine-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 18px; text-decoration: none; color: var(--ink); background: var(--pill);
  box-shadow: inset 0 1px 0 var(--glass-edge), inset 0 0 0 1px var(--glass-line); }
.circle__item > span:nth-child(2), .mine-item > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.circle__name, .mine-item__name { font: 700 15px 'Outfit', sans-serif; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.circle__meta, .mine-item__meta { font-size: 13px; color: var(--ink3); }
.circle__go { font: 700 13px 'Outfit', sans-serif; color: var(--accent-ink); white-space: nowrap; }
.mini-grid { width: 38px; height: 38px; flex: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; padding: 4px; border-radius: 12px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--glass-line); }
.mini-grid i { border-radius: 3px; background: linear-gradient(160deg, var(--t1), var(--t2)); }

/* ---------------------------------------------------------------- layer 1 · sheets */
.layer-sheet { position: fixed; inset: 0; z-index: 30; display: flex; align-items: flex-end; justify-content: center; }
.layer-sheet__scrim { position: absolute; inset: 0; background: rgba(var(--shadow-c),.32); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: 0; transition: opacity .3s; }
[data-theme="cocoa"] .layer-sheet__scrim { background: rgba(0,0,0,.55); }
.sheet { position: relative; width: min(520px, 100%); max-height: min(88vh, 760px); overflow: auto; border-radius: 30px 30px 0 0; background: var(--sheet); color: var(--ink);
  padding: 8px 22px calc(env(safe-area-inset-bottom, 0px) + 24px); box-shadow: inset 0 1px 0 var(--glass-edge), 0 -20px 50px -20px rgba(0,0,0,.4);
  transform: translateY(100%); transition: transform .45s cubic-bezier(.34,1.3,.64,1); outline: 0; }
.layer-sheet.is-open .layer-sheet__scrim { opacity: 1; }
.layer-sheet.is-open .sheet { transform: none; }
.sheet__handle { display: flex; justify-content: center; padding: 6px 0 10px; cursor: grab; touch-action: none; }
.sheet__handle span { width: 42px; height: 5px; border-radius: 999px; background: rgba(var(--shadow-c),.2); }
[data-theme="cocoa"] .sheet__handle span { background: rgba(255,236,210,.2); }
.sheet__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sheet__title { font: 600 26px/1.1 'Fraunces', Georgia, serif; letter-spacing: -.02em; }
.eyebrow { font: 700 12px 'Outfit', sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 6px; }
.icon-btn { width: 40px; height: 40px; flex: none; border: 0; border-radius: 50%; display: grid; place-items: center; color: var(--ink2); background: var(--pill);
  box-shadow: inset 0 1px 0 var(--glass-edge), inset 0 0 0 1px var(--glass-line); transition: transform .4s cubic-bezier(.34,1.56,.64,1); }
.icon-btn:hover { transform: rotate(90deg); color: var(--ink); }
.icon-btn .ico { width: 18px; height: 18px; }
.sheet-stack { display: flex; flex-direction: column; gap: 12px; }
.sheet-stack > p { color: var(--ink2); font-size: 15px; }
.peek .tile { align-self: center; width: 120px; height: 140px; margin: 10px 0 6px; }
.peek__meta { text-align: center; }
.radio-list { display: flex; flex-direction: column; gap: 8px; }
.radio { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; background: var(--pill); font-weight: 600; cursor: pointer; box-shadow: inset 0 0 0 1px var(--glass-line); }
.radio input { accent-color: var(--btn2); width: 18px; height: 18px; }
.mine-list { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.mine-item .ico { color: var(--ink3); }
@media (min-width: 861px) {
  .layer-sheet { align-items: center; }
  .sheet { border-radius: 30px; transform: translateY(30px) scale(.97); opacity: 0; transition: transform .45s cubic-bezier(.34,1.3,.64,1), opacity .25s; padding-bottom: 24px; }
  .layer-sheet.is-open .sheet { opacity: 1; }
  .sheet__handle { display: none; }
  .sheet__head { margin-top: 14px; }
}

/* ---------------------------------------------------------------- layer 2 · unwrap stage */
.layer-stage { position: fixed; inset: 0; z-index: 40; overflow: auto; display: flex; flex-direction: column; align-items: center; padding: 16px 16px 32px;
  background: rgba(var(--shadow-c),.36); -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2); opacity: 0; transition: opacity .35s; }
[data-theme="cocoa"] .layer-stage { background: rgba(0,0,0,.62); }
.layer-stage.is-open { opacity: 1; }
.layer-stage__scrim { position: fixed; inset: 0; z-index: -1; }
.stage__bar { position: sticky; top: 0; z-index: 6; width: min(430px, 100%); display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 8px; }
.stage__bar .icon-btn { background: rgba(255,250,240,.92); color: #6b5640; }
.stage__body { width: min(430px, 100%); flex: 1; display: flex; flex-direction: column; align-items: stretch; justify-content: center; }
.unwrap { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.unwrap__eyebrow { font: 700 13px 'Outfit', sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.35); text-align: center; }
.unwrap__hint { font: 600 14px 'Outfit', sans-serif; color: rgba(255,255,255,.94); text-shadow: 0 1px 6px rgba(0,0,0,.35); }
.unwrap__skip { min-height: 40px; }
.scratch { position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; }
.bigdoor { position: relative; width: min(300px, 78vw); aspect-ratio: 5 / 6; border-radius: 40px; cursor: pointer; color: #fff; --i2: var(--t3); perspective: 1200px; outline-offset: 6px; touch-action: pan-y; }
.bigdoor__back { position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(90% 60% at 50% 40%, #fffdf5, #f3e2c2); box-shadow: inset 0 6px 20px rgba(120,80,30,.35); }
.bigdoor__face { position: absolute; inset: 0; border-radius: inherit; transform-origin: 0 50%; transition: transform .7s cubic-bezier(.5,0,.2,1), opacity .7s ease;
  background: radial-gradient(120% 70% at 28% -4%, rgba(255,255,255,.6), rgba(255,255,255,0) 50%), linear-gradient(165deg, var(--t1), var(--t2) 54%, var(--t3));
  box-shadow: inset 0 2px 0 rgba(255,255,255,.85), inset 0 -10px 20px rgba(0,0,0,.2), 0 30px 60px -24px var(--t3), 0 0 0 6px rgba(255,248,230,.9); }
.bigdoor__face::before, .bigdoor__face::after { content: ''; position: absolute; background: linear-gradient(180deg, #fff6d6, #f2c14e); box-shadow: 0 2px 6px rgba(0,0,0,.18); }
.bigdoor__face::before { left: 50%; top: 0; bottom: 0; width: 18px; translate: -50% 0; }
.bigdoor__face::after { top: 50%; left: 0; right: 0; height: 18px; translate: 0 -50%; }
.bigdoor__bow { position: absolute; left: 50%; top: 50%; z-index: 2; width: 92px; height: 92px; translate: -50% -50%; color: #ffe7a8; --i2: #c8860f; fill: currentColor; filter: drop-shadow(0 6px 8px rgba(0,0,0,.25)); }
.bigdoor__num { position: absolute; left: 18px; top: 16px; z-index: 2; font: 800 30px/1 'Outfit', sans-serif; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.26); box-shadow: inset 0 1px 0 rgba(255,255,255,.55); }
.bigdoor.is-open .bigdoor__face { transform: rotateY(-108deg); opacity: 0; }
.bigdoor:not(.is-open) .bigdoor__face { animation: jiggle 2.4s ease-in-out infinite; }
@keyframes jiggle { 0%, 80%, 100% { transform: none; } 85% { transform: rotateZ(-2deg); } 90% { transform: rotateZ(2deg); } 95% { transform: rotateZ(-1deg); } }

/* the postcard */
.post { position: relative; width: 100%; border-radius: 36px; padding: 20px; color: #2a1d12; display: flex; flex-direction: column; gap: 16px; text-align: left;
  background: radial-gradient(90% 40% at 20% 0%, #fff, transparent 60%), linear-gradient(175deg, #fffdf8, #f7eedd);
  box-shadow: inset 0 1.5px 0 #fff, inset 0 0 0 1px rgba(150,110,60,.12), 0 50px 90px -30px rgba(0,0,0,.5), 0 18px 30px -20px rgba(0,0,0,.35); }
.post.is-arriving { animation: rise .8s cubic-bezier(.34,1.56,.64,1) both; }
@keyframes rise { from { transform: perspective(1100px) rotateX(32deg) translateY(60px) scale(.78); opacity: 0; } }
.post__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.post__tag { font: 700 12px 'Outfit', sans-serif; letter-spacing: .06em; text-transform: uppercase; color: #7a5c38; display: flex; align-items: center; gap: 8px; outline: 0; }
.post__tag i { width: 8px; height: 8px; border-radius: 50%; background: #f2b53c; box-shadow: 0 0 0 3px rgba(242,181,60,.25); }
.post__to { font: 600 13px 'Outfit', sans-serif; color: #7a6448; }
.hero-stamp { position: relative; height: 176px; border-radius: 28px; overflow: hidden; display: grid; place-items: center; color: #fff; --i2: var(--t3);
  background: radial-gradient(70% 70% at 25% 0%, rgba(255,255,255,.55), transparent 60%), linear-gradient(160deg, var(--t1), var(--t2) 55%, var(--t3));
  box-shadow: inset 0 2px 0 rgba(255,255,255,.7), inset 0 -10px 20px rgba(0,0,0,.16), 0 18px 30px -18px var(--t3); }
.hero-stamp .big { width: 110px; height: 110px; fill: currentColor; filter: drop-shadow(0 4px 0 rgba(0,0,0,.16)) drop-shadow(0 -1px 0 rgba(255,255,255,.4)); animation: bob 3s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-6px) rotate(-5deg); } }
.hero-stamp .s { position: absolute; width: 28px; height: 28px; fill: currentColor; opacity: .85; }
.hero-stamp .s1 { left: 22px; top: 22px; rotate: -18deg; }
.hero-stamp .s2 { right: 26px; top: 30px; rotate: 16deg; width: 24px; height: 24px; }
.hero-stamp .s3 { right: 40px; bottom: 22px; rotate: -10deg; width: 22px; height: 22px; }
.hero-stamp .s4 { left: 38px; bottom: 26px; rotate: 22deg; width: 20px; height: 20px; }
.hero-stamp .react { top: 14px; right: 14px; width: 38px; height: 38px; }
.post__msg { margin: 2px 4px 0; font: 480 22px/1.36 'Fraunces', Georgia, serif; letter-spacing: -.015em; font-variation-settings: 'opsz' 48; white-space: pre-line; overflow-wrap: anywhere; }
.post__msg.is-waiting { color: #7a6448; font-style: italic; }
.post__sign { display: flex; align-items: center; gap: 10px; margin: 0 4px; font: 600 15px 'Outfit', sans-serif; color: #5f4a35; }
.song-card { display: flex; align-items: center; gap: 12px; padding: 8px 16px 8px 8px; border-radius: 999px; color: #fff4e4; text-decoration: none;
  background: linear-gradient(180deg, #3a2a20, #21160f); box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 10px 18px -12px rgba(0,0,0,.6); }
.song-card__play { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; color: #3a2408;
  background: radial-gradient(70% 55% at 32% 18%, rgba(255,255,255,.7), transparent 60%), linear-gradient(160deg, #ffe596, #f2b53c 60%, #c07d12); box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 4px 8px -3px rgba(0,0,0,.5); }
.song-card__play svg { width: 16px; height: 16px; fill: currentColor; }
.song-card > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.song-card__title { font: 600 14px 'Outfit', sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.song-card__meta { font-size: 12px; color: rgba(255,244,228,.72); }
.song-card > .ico { color: #f5c25a; }
.post__after { display: flex; flex-direction: column; gap: 14px; }
.reactions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.reaction { border: 0; background: none; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 7px; font: 600 13px 'Outfit', sans-serif; color: #6b5640; }
.orb { width: 58px; height: 58px; flex: none; border-radius: 50%; display: grid; place-items: center; color: #fff; --i2: var(--t3);
  background: radial-gradient(70% 55% at 32% 18%, rgba(255,255,255,.7), transparent 60%), linear-gradient(160deg, var(--t1), var(--t2) 60%, var(--t3));
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,.75), inset 0 -4px 6px rgba(0,0,0,.18), 0 10px 16px -9px var(--t3); transition: transform .5s cubic-bezier(.34,1.56,.64,1); }
.orb svg { width: 82%; height: 82%; fill: currentColor; }
.reaction:hover .orb { transform: translateY(-4px) rotate(-8deg); }
.reaction:active .orb { transform: scale(.86); }
.reaction.is-on .orb { transform: translateY(-4px) scale(1.1); box-shadow: inset 0 1.5px 0 rgba(255,255,255,.75), inset 0 -4px 6px rgba(0,0,0,.18), 0 10px 16px -9px var(--t3), 0 0 0 3px #fffaf0, 0 0 0 5.5px var(--t2); }
.reaction.is-on { color: #2a1d12; }
.receipt { display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 13px; color: #6e5a3e; margin-top: -4px; text-align: center; }
.receipt__ok { width: 18px; height: 18px; flex: none; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(160deg, #6fdcab, #1f9060); }
.receipt__ok svg { width: 11px; height: 11px; }
.post .btn { --btn1: #5fae79; --btn2: #2b6b46; --btn-ink: #fff; --btn-glow: rgba(43,107,70,.5); }
[data-theme="candy"] .post .btn { --btn1: #ff5f73; --btn2: #c3173a; --btn-glow: rgba(195,23,58,.5); }
[data-theme="cocoa"] .post .btn { --btn1: #ffdc92; --btn2: #d4942c; --btn-ink: #2a1a08; --btn-glow: rgba(230,160,60,.45); }
.back { border: 0; min-height: 44px; padding: 0 18px; border-radius: 999px; background: rgba(120,90,50,.1); color: #2a1d12;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), inset 0 0 0 1px rgba(120,90,50,.18);
  font: 700 15px/1 'Outfit', sans-serif; display: flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), background .2s; }
.back:hover { transform: translateY(-1.5px); background: rgba(120,90,50,.16); }
.back span { transition: transform .4s cubic-bezier(.34,1.56,.64,1); }
.back:hover span { transform: translateX(4px); }
.post__report { align-self: center; color: #6e5a3e; background: rgba(120,90,50,.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), inset 0 0 0 1px rgba(120,90,50,.16); }
.post__report:hover { color: #2a1d12; background: rgba(120,90,50,.14); }
.confetti { position: absolute; left: 50%; top: 30%; width: 0; height: 0; pointer-events: none; z-index: 5; }
.confetti__p { position: absolute; width: 10px; height: 14px; border-radius: 3px; }
.confetti__p--gold { background: #f5c25a; }
.confetti__p--berry { background: #ff4f9e; }
.confetti__p--mint { background: #6fdcab; }
.confetti__p--sky { background: #6cc4ff; }
.poster-panel { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.poster-panel__frame { position: relative; width: min(330px, 80vw); aspect-ratio: 9 / 16; align-self: center; border-radius: 26px; overflow: hidden; background: rgba(255,255,255,.2); box-shadow: 0 30px 60px -24px rgba(0,0,0,.6); }
.poster-panel__frame.is-loading::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.poster-panel__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.poster-panel__hint { color: #fff; font-size: 14px; text-align: center; text-shadow: 0 1px 6px rgba(0,0,0,.35); }
.poster-panel .btn--soft { background: rgba(255,250,240,.92); color: #2a1d12; }
.check-row { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; cursor: pointer; justify-content: center; color: #fff; }
.check-row input { width: 18px; height: 18px; accent-color: #f2b53c; }

/* ---------------------------------------------------------------- layer 3 · toasts */
.layer-toast { position: fixed; left: 50%; top: 22px; z-index: 50; translate: -50% 0; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
.toast { display: flex; align-items: center; gap: 10px; padding: 12px 18px 12px 12px; border-radius: 999px; font: 600 14.5px/1.35 'Outfit', sans-serif; color: var(--bg); background: var(--ink);
  box-shadow: 0 18px 34px -16px rgba(0,0,0,.55); transform: translateY(-140%); opacity: 0; transition: transform .55s cubic-bezier(.34,1.56,.64,1), opacity .3s; }
.toast::before { content: ''; width: 24px; height: 24px; flex: none; border-radius: 50%;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6 12.5l4 4L18 8' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / 15px no-repeat, linear-gradient(160deg, var(--btn1), var(--btn2)); }
.toast--warn::before { background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 7v6M12 16.5v.5' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'/></svg>") center / 15px no-repeat, linear-gradient(160deg, #ff9a6b, #d9480f); }
.toast.is-in { transform: none; opacity: 1; }
.toast.is-out { opacity: 0; transform: translateY(-40%); }

/* ---------------------------------------------------------------- in-app browser note, copy fallback */
.inapp { position: relative; z-index: 6; display: flex; align-items: center; gap: 10px; margin: 12px 20px 0; padding: 10px 10px 10px 16px; border-radius: 18px; font-size: 14px;
  background: #fff4cc; color: #4a3000; box-shadow: 0 10px 24px -16px rgba(0,0,0,.4); }
.inapp__text { flex: 1; }
.inapp__action { border: 0; background: #2a1a08; color: #fff4cc; border-radius: 999px; padding: 8px 12px; font: 700 13px 'Outfit'; }
.inapp .icon-btn { background: rgba(0,0,0,.06); color: #4a3000; }
.copy-strip { margin-top: 6px; font: 600 14px 'JetBrains Mono', ui-monospace, monospace; }

/* ---------------------------------------------------------------- below the first screen */
.below { padding: 24px 0 12px; }
.section { padding-block: 44px; }
.section .h2 { font: 560 40px/1.06 'Fraunces', Georgia, serif; letter-spacing: -.025em; text-align: center; max-width: 760px; margin-inline: auto; }
.section .lead { max-width: 640px; margin: 12px auto 0; text-align: center; color: var(--ink2); font-size: 17px; }
.section > .eyebrow { text-align: center; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 32px 0 0; padding: 0; list-style: none; }
.step { padding: 16px 16px 20px; border-radius: 28px; background: var(--glass); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: inset 0 1px 0 var(--glass-edge), inset 0 0 0 1px var(--glass-line), 0 24px 44px -30px rgba(var(--shadow-c),.4); }
.step__num { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-top: 14px; border-radius: 50%; font: 800 14px 'Outfit'; color: var(--btn-ink); background: linear-gradient(180deg, var(--btn1), var(--btn2)); }
.step__title { margin-top: 10px; font: 600 20px/1.2 'Fraunces', Georgia, serif; }
.step__text { margin-top: 6px; font-size: 14.5px; color: var(--ink2); }
.phone { position: relative; aspect-ratio: 390 / 760; border-radius: 30px; padding: 7px; background: #15110f; box-shadow: inset 0 0 0 2px #3a302a, 0 20px 40px -24px rgba(0,0,0,.6); }
.phone__screen { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 24px; background: var(--bg); }
.phone__screen::before { content: ''; position: absolute; inset: 0; background: radial-gradient(55% 50% at 8% 0%, var(--wash1), transparent 70%), radial-gradient(60% 55% at 72% 104%, var(--wash3), transparent 70%); }
.phone__view { position: absolute; left: 0; top: 0; width: 390px; height: 760px; transform-origin: 0 0; pointer-events: none; padding: 16px 14px; display: flex; flex-direction: column; gap: 12px; }
.phone__view .grid { flex: none; gap: 7px; padding: 4px 0; grid-template-rows: none; }
.phone__view .tile { --r: 15px; aspect-ratio: 1 / 1.15; animation: none; }
.phone__view .grid--four { grid-template-columns: repeat(4, 1fr); gap: 9px; }
.phone__view .grid--four .tile { aspect-ratio: 1 / 1.02; }
.phone__view .bento { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--sheet); }
.phone__view .card { padding: 16px; gap: 12px; border-radius: 26px; }
.phone__view .ring { width: 62px; height: 62px; }
.phone__view .ring__c b { font-size: 18px; }
.phone__view .ring__c b span { font-size: 12px; }
.phone__view .ring-row { gap: 12px; }
.phone__view .pills { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.phone__view .pill { padding: 0 6px; font-size: 13px; gap: 5px; }
.phone__view .pill--code .k { display: none; }
.phone__view .hero { font-size: 32px; }
.phone__view .post { padding: 14px; gap: 12px; }
.phone__view .hero-stamp { height: 150px; }
.perks__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px 0 0; padding: 0; list-style: none; }
.perk, .note-card { padding: 22px; border-radius: 28px; background: var(--glass); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: inset 0 1px 0 var(--glass-edge), inset 0 0 0 1px var(--glass-line), 0 24px 44px -30px rgba(var(--shadow-c),.4); }
.perk__title { margin-top: 14px; font: 600 19px/1.2 'Fraunces', Georgia, serif; }
.perk p { margin-top: 6px; font-size: 15px; color: var(--ink2); }
.orb--sm { width: 48px; height: 48px; }
.orb--sm svg { width: 60%; height: 60%; }
.notes__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 28px; }
.note-card { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.note-card__day { font: 700 12px 'Outfit', sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); }
.note-card__text { margin: 0; font: 480 18px/1.4 'Fraunces', Georgia, serif; }
.note-card__from { margin-top: auto; font: 600 14px 'Outfit', sans-serif; color: var(--ink2); }
.faq__list { max-width: 760px; margin: 28px auto 0; display: flex; flex-direction: column; gap: 10px; }
.faq__item { border-radius: 22px; background: var(--glass); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: inset 0 1px 0 var(--glass-edge), inset 0 0 0 1px var(--glass-line); }
.faq__item summary { list-style: none; cursor: pointer; padding: 18px 22px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__q { font: 650 17px/1.3 'Outfit', sans-serif; }
.faq__a { padding: 0 22px 20px; color: var(--ink2); font-size: 15.5px; }
.closing { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.closing .btn { width: auto; min-width: 280px; }
.define .h2 { text-wrap: balance; }
.define__card { max-width: 760px; margin: 28px auto 0; }
.define__card > :last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------- /code, /contact, about, legal, 404 */
.code-page, .page-wrap { max-width: 760px; padding-block: 10px 40px; }
.code-page h1, .page-head h1, .notfound h1 { font: 560 44px/1.05 'Fraunces', Georgia, serif; letter-spacing: -.03em; }
.code-page__lead, .page-head p { margin-top: 8px; color: var(--ink2); font-size: 16.5px; }
.codebox { margin-top: 18px; padding: 20px 22px; display: flex; flex-direction: column; gap: 12px; }
.codebox__slots { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; max-width: 520px; width: 100%; margin-inline: auto; }
.codebox__slot { aspect-ratio: 4 / 5; border-radius: 16px; display: grid; place-items: center; font: 700 30px 'JetBrains Mono', ui-monospace, monospace; color: var(--slot-ink);
  background: linear-gradient(180deg, var(--slot-top), var(--slot-bot)); box-shadow: inset 0 4px 10px rgba(var(--shadow-c),.16), inset 0 -1px 0 var(--slot-lip); }
.codebox__slot.is-filled { color: var(--btn-ink); background: radial-gradient(120% 70% at 28% -4%, rgba(255,255,255,.55), transparent 50%), linear-gradient(165deg, var(--btn1), var(--btn2)); box-shadow: inset 0 1.5px 0 rgba(255,255,255,.7), 0 10px 18px -12px var(--btn-glow); }
.codebox.is-focus .codebox__slot.is-next { box-shadow: inset 0 0 0 2px var(--btn1), 0 0 0 4px color-mix(in srgb, var(--btn1) 18%, transparent); }
.codebox__input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; font-size: 16px; }
.codebox__hint { font-size: 14px; color: var(--ink2); text-align: center; }
.code-recover { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border-radius: 20px; background: var(--pill);
  box-shadow: inset 0 1px 0 var(--glass-edge), inset 0 0 0 1px var(--glass-line); }
.code-recover__text { font-size: 14px; line-height: 1.45; color: var(--ink2); }
.code-cta { margin-top: 16px; padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; }
.code-cta__row { display: flex; align-items: flex-start; gap: 14px; }
.code-cta__title { font: 600 21px/1.2 'Fraunces', Georgia, serif; letter-spacing: -.015em; color: var(--ink); }
.code-cta__text { margin-top: 4px; font-size: 14.5px; line-height: 1.45; color: var(--ink2); }

/* /contact & keepsake slots */
.contact-page { max-width: 860px; padding-block: 10px 44px; }
.contact-hero { margin-top: 20px; gap: 12px; }
.contact-hero__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.contact-badge { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px; font: 700 12px 'Outfit', sans-serif; letter-spacing: .05em; text-transform: uppercase;
  background: var(--pill); color: var(--accent-ink); box-shadow: inset 0 1px 0 var(--glass-edge), inset 0 0 0 1px var(--glass-line); }
.contact-hero__email { font: 650 28px/1.15 'Fraunces', Georgia, serif; letter-spacing: -.02em; word-break: break-word; }
.contact-hero__email a { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.contact-hero__email a:hover { color: var(--accent-ink); }
.contact-hero__note { font-size: 15px; color: var(--ink2); }
.contact-hero__actions { margin-top: 4px; display: flex; flex-wrap: wrap; gap: 10px; }
.contact-hero__actions .btn { width: auto; }
.contact-topics { margin-top: 28px; }
.contact-topics__title { font-size: 28px; margin-bottom: 16px; }
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.contact-topic { gap: 10px; justify-content: flex-start; }
.contact-topic__title { font: 650 18px/1.25 'Outfit', sans-serif; color: var(--ink); }
.contact-topic__text { font-size: 14.5px; line-height: 1.5; color: var(--ink2); }
.contact-topic__link { margin-top: auto; padding-top: 6px; }
.keepsake-links { display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; }
.keepsake-slot { gap: 10px; }
.owner-keepsake .keepsake-slot { padding-top: 0; border-top: 0; }
.keepsake-slot__copy { font-size: 14px; line-height: 1.45; color: var(--ink2); }
.keepsake-status { padding: 12px 14px; border-radius: 16px; font: 600 14px/1.45 'Plus Jakarta Sans', sans-serif; color: #6e4300;
  background: linear-gradient(180deg, #fff6d4, #ffebb0); box-shadow: inset 0 1px 0 #fff; }
[data-theme="cocoa"] .keepsake-status { color: #ffebc0; background: rgba(243,198,107,.16); box-shadow: inset 0 0 0 1px rgba(243,198,107,.3); }
.keepsake-perks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; font-size: 14.5px; line-height: 1.45; color: var(--ink); }
.keepsake-perks li { position: relative; padding-left: 24px; }
.keepsake-perks li::before { content: ''; position: absolute; left: 0; top: 4px; width: 15px; height: 15px; border-radius: 50%;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6 12.5l4 4L18 8' fill='none' stroke='%233a2408' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / 10px no-repeat, linear-gradient(160deg, #ffe596, #e5a324); }
.keepsake-crest { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 5px 10px; border-radius: 999px; font: 700 12px 'Outfit', sans-serif;
  color: #6e4300; background: linear-gradient(180deg, #fff4cc, #ffdf86); box-shadow: inset 0 1px 0 #fff, 0 3px 8px -4px rgba(200,130,10,.55); }
.prose { margin-top: 22px; padding: 26px; font-size: 16px; line-height: 1.65; }
.prose h2 { font: 600 24px/1.2 'Fraunces', Georgia, serif; margin: 22px 0 8px; }
.prose h3 { font: 650 18px 'Outfit', sans-serif; margin: 18px 0 6px; }
.prose p, .prose ul, .prose ol { margin: 0 0 12px; color: var(--ink2); }
.prose li { margin-bottom: 6px; }
.prose table { width: 100%; border-collapse: collapse; margin: 14px 0 18px; font-size: 14.5px; line-height: 1.5; border-radius: 18px; overflow: hidden;
  background: var(--pill); box-shadow: inset 0 1px 0 var(--glass-edge), inset 0 0 0 1px var(--glass-line); }
.prose th, .prose td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--glass-line); color: var(--ink2); }
.prose th { font: 700 13px 'Outfit', sans-serif; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); }
.prose tr:last-child td { border-bottom: 0; }
.prose td strong { color: var(--ink); }
.prose__meta { margin-top: 18px; font-size: 14px; color: var(--ink3); }
.page-head { padding: 12px 4px 0; }
.page-head .page-head__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; }
.page-head__actions a { min-height: 48px; max-width: 100%; text-align: center; white-space: normal; overflow-wrap: anywhere; }
.page-head__actions .btn { width: auto; border-radius: 999px; }
.page-wrap:has(.page-faq) .prose blockquote { margin: 0 0 16px; padding: 14px 16px; border-inline-start: 3px solid var(--btn1); border-radius: 12px; background: var(--pill); }
.page-wrap:has(.page-faq) .prose blockquote p { margin: 0; }
.page-faq { margin-top: 32px; overflow-wrap: anywhere; }
.page-faq h2 { font: 560 32px/1.1 'Fraunces', Georgia, serif; }
.page-faq .faq__list { margin-top: 14px; }
.page-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.page-faq summary::after { content: ''; flex: none; width: 8px; height: 8px; margin-inline-end: 3px;
  border-right: 2px solid var(--accent-ink); border-bottom: 2px solid var(--accent-ink); transform: rotate(45deg); }
.page-faq details[open] summary::after { transform: rotate(225deg); }
.notfound { max-width: 620px; margin: 24px auto; padding: 32px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.notfound p { color: var(--ink2); }
.notfound__art { width: 84px; height: 84px; border-radius: 28px; display: grid; place-items: center; color: #fff; --i2: var(--t3);
  background: radial-gradient(70% 55% at 32% 18%, rgba(255,255,255,.65), transparent 60%), linear-gradient(160deg, var(--t1), var(--t2) 60%, var(--t3)); box-shadow: inset 0 2px 0 rgba(255,255,255,.7), 0 18px 30px -16px var(--t3); }
.notfound__art svg { width: 58%; height: 58%; fill: currentColor; }
.notfound__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.notfound__actions .btn { width: auto; }
.app > .notfound { grid-column: 1 / -1; align-self: center; }

/* ---------------------------------------------------------------- tablet & phone */
@media (max-width: 1100px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .notes__grid { grid-template-columns: repeat(2, 1fr); }
  .hero { font-size: 38px; }
}
@media (max-width: 860px) {
  .app { display: flex; flex-direction: column; align-items: stretch; height: auto; min-height: 100svh; gap: 12px; width: min(640px, 100%); margin-inline: auto;
    padding: calc(env(safe-area-inset-top, 0px) + 12px) 14px calc(env(safe-area-inset-bottom, 0px) + 14px); }
  .app--owner, .app--friend, .app--cal { align-items: stretch; }
  .hide-m { display: none !important; }
  .side, .create, .fill { display: contents; }
  .create__head, .fill__head { order: 0; gap: 6px; padding: 2px 4px; }
  .stage { position: static; top: auto; width: 100%; height: auto; min-height: 0; max-height: none; order: 1; flex: none; padding: 0; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; border-radius: 0; }
  .create__dock, .fill__body, .own-card { order: 2; }
  .stage-head { display: none; }
  .grid { flex: none; grid-template-rows: none; gap: 7px; padding: 4px 0; }
  .tile { --r: 15px; aspect-ratio: 1 / 1.12; align-self: start; }
  button.tile:hover { --ty: 0px; }
  .react { width: 22px; height: 22px; top: -6px; right: -6px; box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 0 0 2px #fffaf0; }
  /* the badge overhangs less than the row gap (never touches the door above) and the number moves cleanly below it */
  .today-badge { top: -9px; padding: 3px 8px; animation-name: hop-sm; }
  .today-badge .long { display: none; }
  .today-badge .short { display: inline; }
  .st-today .num { top: 16px; left: 6px; padding: .2em .44em; }
  .st-today .sticker { width: 35cqi; height: 35cqi; top: 56%; }
  .app--home .st-today .sticker { width: 48cqi; height: 48cqi; top: 62%; }
  .st-today::before { inset: -3px; border-radius: calc(var(--r) + 3px); }
  .st-pick::before { inset: -4px; border-radius: calc(var(--r) + 4px); border-width: 2px; }
  .card { padding: 18px; gap: 14px; border-radius: 30px; }
  .bento { -webkit-backdrop-filter: blur(30px) saturate(1.6); backdrop-filter: blur(30px) saturate(1.6); }
  .side-top { flex-wrap: nowrap; gap: 6px; }
  .side-top .brand { font-size: 13px; gap: 6px; min-width: 0; white-space: nowrap; }
  .side-top .logo { width: 26px; height: 26px; border-radius: 8px; }
  .side-top .logo svg { width: 15px; height: 15px; }
  .side-actions { gap: 5px; flex-wrap: nowrap; }
  .side-link { min-height: 38px; padding: 0 10px; font-size: 12.5px; gap: 5px; }
  .side-link .long { display: none; }
  .side-link .short { display: inline; }
  .hero { font-size: 30px; line-height: 1.03; }
  .lede { font-size: 13.5px; line-height: 1.42; }
  .field { height: 50px; }
  .ball { width: 36px; height: 36px; }
  .mat { padding: 6px 2px 5px; gap: 5px; font-size: 12.5px; }
  .btn { min-height: 52px; font-size: 16.5px; }
  .btn--sm { min-height: 40px; font-size: 14px; }
  .welcome { padding: 12px 14px; gap: 8px; }
  .welcome__actions .btn { min-height: 40px; font-size: 14px; }
  .pills { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .pill { padding: 0 6px; font-size: 13px; gap: 5px; }
  .pill .dot { width: 20px; height: 20px; }
  .pill--code .k { display: none; }
  .f-title { font-size: 28px; }
  .form-title { font-size: 22px; }
  .stickers { gap: 6px; }
  .note { padding: 12px 14px 8px; }
  .note textarea { min-height: 76px; font-size: 16px; }
  .bubbles { display: flex; flex-wrap: wrap; gap: 8px; }
  .bubble { padding: 9px 13px; font-size: 13.5px; border-radius: 18px 18px 18px 6px; }
  .bubble:nth-child(even) { border-radius: 18px 18px 6px 18px; }
  .switch { font-size: 14.5px; }
  .switch small { font-size: 13px; }
  .layer-toast { top: auto; bottom: calc(env(safe-area-inset-bottom, 0px) + 20px); }
  .toast { transform: translateY(160%); }
  .toast.is-in { transform: none; }
  .section { padding-block: 32px; }
  .section .h2 { font-size: 32px; }
  .perks__grid { grid-template-columns: 1fr; }
  .code-page h1, .page-head h1, .notfound h1 { font-size: 32px; }
  .code-page__lead, .page-head p { font-size: 15px; }
  .codebox { margin-top: 14px; padding: 16px; gap: 10px; }
  .codebox__slots { gap: 6px; }
  .codebox__slot { font-size: 24px; border-radius: 12px; }
  .code-cta { margin-top: 12px; padding: 16px; gap: 12px; }
  .code-cta__title { font-size: 19px; }
  .code-cta__text { font-size: 14px; }
  .contact-grid { grid-template-columns: 1fr; gap: 12px; }
  .contact-hero__email { font-size: 22px; }
  .contact-hero__actions .btn { width: 100%; }
  .prose { padding: 20px; }
  .prose table { display: block; overflow-x: auto; }
  .page-faq h2 { font-size: 26px; }
  .page-faq summary, .page-faq .faq__a { padding-inline: 16px; }
  .inapp { margin: 0 0 4px; order: -1; }

  /* home: the first screen is exactly one phone screen — head, 24 doors that stretch to fill, the create dock */
  .app--home { height: 100svh; min-height: 0; }
  .app--home:has(.welcome:not([hidden])) { height: auto; min-height: 100svh; }
  .app--home .stage { flex: 1 1 auto; min-height: 0; display: flex; }
  .app--home .grid { flex: 1 1 auto; min-height: 0; grid-template-rows: repeat(4, 1fr); gap: 14px 7px; padding-top: 8px; }
  .app--home .tile { aspect-ratio: auto; align-self: stretch; }
  .app--home:has(.welcome:not([hidden])) .grid { flex: none; grid-template-rows: none; }
  .app--home:has(.welcome:not([hidden])) .tile { aspect-ratio: 1 / 1.05; align-self: start; }
  .app--home .create__dock { padding: 14px; gap: 10px; margin-top: 0; border-radius: 30px; background: var(--glass);
    -webkit-backdrop-filter: blur(30px) saturate(1.6); backdrop-filter: blur(30px) saturate(1.6);
    box-shadow: inset 0 1px 0 var(--glass-edge), inset 0 0 0 1px var(--glass-line), 0 28px 56px -28px rgba(var(--shadow-c),.32); }
  .app--home .create__dock .label { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
  .app--home .create__foot { gap: 6px; }
  .app--home .fine { margin-top: -2px; }

  /* owner: a compact top bar (brand + My calendars, ring, name, one share button, shortcuts) and all 24 doors right under it */
  .app--owner .own-card { order: 0; padding: 12px 14px 14px; gap: 10px; }
  .app--owner .side-top { display: flex; padding-bottom: 8px; border-bottom: 1px solid var(--glass-line); }
  .app--owner .ring-row { gap: 12px; }
  .app--owner .ring { width: 62px; height: 62px; }
  .app--owner .ring__c b { font-size: 18px; }
  .app--owner .ring__c b span { font-size: 12px; }
  .app--owner .ring__c small { display: none; }
  .app--owner .cal-title { font-size: 22px; }
  .app--owner .ring-copy p { margin-top: 2px; font-size: 13px; line-height: 1.4; }
  .app--owner .ring-copy .tag { display: none; }
  .app--owner .grid { grid-template-columns: repeat(4, 1fr); gap: 16px 9px; }
  .app--owner .tile { aspect-ratio: 1 / 1.02; }
  .app--owner .drops { order: 3; }
  .app--owner .fold { order: 4; }
  .app--owner .owner-keepsake { order: 5; }
  .app--owner .owner-links { order: 6; }

  /* friend: head, the 24 doors, then the open note card right underneath (never a drawer) */
  .app--friend .fill__body { padding: 18px; gap: 14px; border-radius: 30px; background: var(--glass); -webkit-backdrop-filter: blur(30px) saturate(1.6); backdrop-filter: blur(30px) saturate(1.6);
    box-shadow: inset 0 1px 0 var(--glass-edge), inset 0 0 0 1px var(--glass-line), 0 28px 56px -28px rgba(var(--shadow-c),.32); }
  .app--friend .who { display: none; }
  .app--friend .cal-foot { order: 3; }
  .app--friend .done { order: 2; }
}
@media (max-width: 860px) and (max-height: 720px) {
  .app--home .hero { font-size: 26px; }
  .app--home .lede { display: none; }
  .app--home .ball { width: 32px; height: 32px; }
  .app--home .create__dock { gap: 8px; padding: 12px; }
  .app--home .field { height: 46px; }
}
@media (max-width: 640px) {
  .topbar__inner { flex-direction: column; align-items: stretch; gap: 8px; padding: 10px 12px; }
  .topbar__inner .brand { align-self: flex-start; }
  .nav { width: 100%; gap: 6px; flex-wrap: nowrap; }
  .nav a { flex: 1 1 auto; min-height: 38px; padding: 0 8px; font-size: 13px; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .notes__grid { grid-template-columns: 1fr; }
  .step { max-width: 360px; margin-inline: auto; width: 100%; }
  .container { padding-inline: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}