@font-face { font-family: 'Gaegu'; src: url(fonts/gaegu-latin-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Gaegu'; src: url(fonts/gaegu-latin-700-normal.woff2) format('woff2'); font-weight: 700; font-display: swap; }

:root {
  color-scheme: light;
  --bg: #fff8fb;
  --paper: #ffffff;
  --ink: #1d1a22;
  --ink-2: #4a4452;
  --ink-3: #6e6577;
  --blue: #bcd7f6;
  --blue-2: #e3effc;
  --blue-ink: #2f5d93;
  --pink: #ffc7dc;
  --pink-2: #ffe7f0;
  --pink-ink: #9c2f5c;
  --line: 2.5px solid var(--ink);
  --wobble: 255px 22px 225px 22px / 22px 225px 22px 255px;
  --wobble-2: 22px 225px 22px 255px / 255px 22px 225px 22px;
  --hand: 'Gaegu', 'Comic Sans MS', cursive;
  --round: 'Gaegu', 'Comic Sans MS', cursive;
  --bounce: cubic-bezier(.34, 1.56, .64, 1);
  --ease: cubic-bezier(.16, 1, .3, 1);
  font-family: var(--round);
  font-size: 18px;
  letter-spacing: -.035em;
  word-spacing: .04em;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100dvh; background: var(--bg); }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: default; opacity: .55; }
a { color: inherit; }
::selection { background: var(--pink); color: var(--ink); }
:focus-visible { outline: 3px dashed var(--blue-ink); outline-offset: 4px; }
[hidden] { display: none !important; }
.doodle { width: 22px; height: 22px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

body.silly { background:
  radial-gradient(circle at 12% 8%, var(--pink-2) 0 70px, transparent 71px),
  radial-gradient(circle at 92% 30%, var(--blue-2) 0 90px, transparent 91px),
  var(--bg) fixed; }
.screen { max-width: 440px; margin: 0 auto; padding: max(16px, env(safe-area-inset-top)) 20px max(36px, env(safe-area-inset-bottom)); }

/* sticker coi gattini */
.sticker { position: relative; width: min(78%, 300px); margin: 18px auto 4px; padding: 10px; background: var(--paper); border: var(--line); border-radius: var(--wobble); }
.sticker img { display: block; width: 100%; height: auto; border-radius: 12px; }
.sticker.tilt-l { transform: rotate(-2.5deg); }
.sticker.tilt-r { transform: rotate(2.5deg); }
.sticker.pop { animation: pop .7s var(--bounce) both; }
.sticker.small { width: 170px; }
.sticker.day { width: 150px; margin-top: 14px; padding: 7px; }
.sticker.day + h1 { margin-top: 12px; }
.done-all { text-align: center; } .done-all h2 { justify-content: center; } .done-all .sticker { margin-top: 0; }
.hearts .doodle { position: absolute; width: 26px; height: 26px; fill: var(--pink); stroke: var(--ink); stroke-width: 2; }
.hearts .h1 { top: -12px; right: -10px; transform: rotate(14deg); }
.hearts .h2 { bottom: 16px; left: -14px; width: 20px; height: 20px; transform: rotate(-18deg); fill: var(--blue); }
.hearts .h3 { bottom: -10px; right: 22%; width: 16px; height: 16px; }
.sticker .hearts .doodle { animation: bob 3.2s ease-in-out infinite; }
.sticker .hearts .h2 { animation-delay: -1.1s; } .sticker .hearts .h3 { animation-delay: -2s; }
@keyframes bob { 50% { translate: 0 -4px; } }
@keyframes pop { from { transform: scale(.6) rotate(-8deg); opacity: 0; } }

h1 { margin-top: 18px; font: 700 2.9rem/.95 var(--hand); letter-spacing: -.01em; text-align: center; text-wrap: balance; }
.say { margin-top: 10px; text-align: center; color: var(--ink-2); font-size: 1.3rem; line-height: 1.5; text-wrap: pretty; }
.date { margin-top: 6px; text-align: center; font: 700 1.25rem/1.2 var(--hand); color: var(--pink-ink); }

/* blob = foglietto disegnato a mano */
.blob { margin-top: 22px; padding: 18px 18px 20px; background: var(--paper); border: var(--line); border-radius: var(--wobble-2); }
.blob h2 { display: flex; align-items: center; gap: 8px; font: 700 1.55rem/1 var(--hand); }
.blob-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border: var(--line); border-radius: var(--wobble); background: var(--paper); font: 700 1.3rem/1 var(--hand); text-decoration: none; transition: transform .25s var(--bounce); }
.blob-btn:active { transform: scale(.94) rotate(-1deg); }
.blob-btn.pink { background: var(--pink); }
.blob-btn.big { width: 100%; min-height: 56px; font-size: 1.55rem; }
.blob-btn.small { min-height: 44px; font-size: 1.15rem; padding: 0 14px; margin-top: 10px; }
.blob-btn.ghost { border-color: transparent; background: transparent; color: var(--ink-3); }
.blob-btn .doodle { width: 20px; height: 20px; }

/* lock */
.lock { display: flex; flex-direction: column; min-height: 100dvh; }
.lock .sticker { margin-top: 28px; }
.lock form { margin-top: auto; padding-top: 28px; display: grid; gap: 12px; }
.lock label { font: 700 1.3rem var(--hand); text-align: center; }
.code-input { width: 100%; height: 76px; border: var(--line); border-radius: var(--wobble-2); background: var(--paper); text-align: center; font: 700 2.8rem/1 var(--hand); letter-spacing: .04em; font-variant-numeric: tabular-nums; caret-color: var(--pink-ink); }
.code-input::placeholder { color: #8a8193; }
.code-input:focus { outline: none; background: var(--blue-2); }
.code-input[aria-invalid=true] { background: var(--pink-2); animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-7px) rotate(-1deg); } 75% { transform: translateX(7px) rotate(1deg); } }

/* giorni */
.tabs { display: flex; gap: 8px; justify-content: center; padding-top: 6px; }
.tab { position: relative; display: inline-flex; align-items: center; gap: 4px; min-height: 44px; min-width: 64px; justify-content: center; padding: 0 12px; border: var(--line); border-radius: var(--wobble); background: var(--paper); font: 700 1.25rem var(--hand); }
.tab.on { background: var(--blue); }
.tab.shut { border-style: dashed; color: var(--ink-3); background: transparent; }
.tab .doodle { width: 18px; height: 18px; }
.tab i { position: absolute; top: -11px; right: -8px; padding: 1px 6px; border: 2px solid var(--ink); border-radius: 10px; background: var(--pink); font: 700 .8rem/1.2 var(--hand); font-style: normal; transform: rotate(8deg); }

/* attesa */
.count-label { margin-top: 14px; text-align: center; font: 700 1.25rem var(--hand); color: var(--ink-3); }
.count { text-align: center; font: 700 2.5rem/1 var(--hand); color: var(--blue-ink); font-variant-numeric: tabular-nums; }
.where { margin-top: 8px; text-align: center; font-weight: 700; font-size: 1.3rem; }
.pack ul { margin-top: 12px; display: grid; gap: 4px; }
.tick { display: flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; font-size: 1rem; }
.tick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tick .box { display: grid; place-items: center; width: 28px; height: 28px; flex: 0 0 28px; border: var(--line); border-radius: 8px 11px 7px 12px; background: var(--paper); }
.tick .box .doodle { width: 20px; height: 20px; stroke-width: 3; opacity: 0; transform: scale(.4) rotate(-20deg); transition: .3s var(--bounce); color: var(--pink-ink); }
.tick input:checked + .box { background: var(--pink); }
.tick input:checked + .box .doodle { opacity: 1; transform: none; }
.tick input:checked ~ span:last-child { text-decoration: line-through 2px var(--pink-ink); color: var(--ink-3); }
.tick input:focus-visible + .box { outline: 3px dashed var(--blue-ink); outline-offset: 3px; }
.soon { display: block; margin-top: 22px; color: var(--ink-3); font: 700 1.1rem/1.3 var(--hand); text-align: center; }
.soon .doodle { width: 18px; height: 18px; margin-right: 4px; vertical-align: -3px; }

/* adesso */
.now { background: var(--pink-2); transform: rotate(-.6deg); }
.now h2 { font-size: 1.35rem; color: var(--pink-ink); }
.now-title { margin-top: 4px; font: 700 2.1rem/1 var(--hand); }
.now-note { margin-top: 8px; color: var(--ink-2); font-size: 1.25rem; line-height: 1.3; }
.now .row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.now .row .blob-btn { flex: 1 1 auto; }
.maybe { display: grid; gap: 6px; margin-top: 10px; }
.maybe li { display: flex; align-items: center; gap: 8px; font: 700 1.3rem/1.15 var(--hand); }
.maybe .doodle { width: 18px; height: 18px; fill: var(--pink); stroke-width: 2; }
.stop.here .what p { color: var(--ink-3); font-size: 1.1rem; }
.then { margin-top: 14px; padding-top: 12px; border-top: 2px dashed #e0b5c6; color: var(--ink-2); font-size: 1.2rem; }
.then b { font-weight: 700; }
.done-all p { margin-top: 6px; color: var(--ink-2); font-size: 1.2rem; }
.offline { margin-top: 14px; text-align: center; font: 700 1.1rem var(--hand); color: var(--ink-3); }

/* programma */
.stops { margin-top: 10px; }
.stop { display: grid; grid-template-columns: 58px 1fr; gap: 12px; padding: 12px 0; border-top: 2px dashed #e7dce4; }
.stop:first-child { border-top: 0; }
.when { align-self: start; padding: 3px 0 1px; border: 2px solid var(--ink); border-radius: 10px 14px 9px 13px; background: var(--blue); text-align: center; font: 700 1.15rem/1.1 var(--hand); font-variant-numeric: tabular-nums; }
.what h3 { display: flex; align-items: center; gap: 6px; font: 700 1.5rem/1.05 var(--hand); }
.what p { margin-top: 4px; color: var(--ink-2); font-size: 1.2rem; line-height: 1.3; }
.stop.live .when { background: var(--pink); transform: rotate(-4deg) scale(1.05); }
.stop.done .when { background: transparent; color: var(--ink-3); border-style: dashed; }
.stop.done h3 { color: var(--ink-3); }
.stop.done .ok { color: var(--pink-ink); stroke-width: 3; }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.thumbs img { width: 64px; height: 64px; object-fit: cover; border: 2px solid var(--ink); border-radius: 10px 14px 9px 13px; }
.add-photo { display: inline-flex; align-items: center; text-align: left; gap: 6px; min-height: 44px; margin-top: 2px; padding: 0; border: 0; background: none; color: var(--blue-ink); font: 700 1.15rem var(--hand); }
.add-photo .doodle { width: 18px; height: 18px; }
.strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 20px; }
.strip img { width: 100%; aspect-ratio: 1; object-fit: cover; border: 2px solid var(--ink); border-radius: 12px 16px 10px 15px; background: #fff; }
.strip img:nth-child(odd) { transform: rotate(-3deg); } .strip img:nth-child(even) { transform: rotate(2deg); }
.foot { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 30px; font: 700 1.15rem var(--hand); color: var(--ink-3); }
.foot .doodle { fill: var(--pink); stroke: var(--ink); stroke-width: 2; width: 20px; height: 20px; }

/* fogli */
.blob-sheet { width: min(100% - 28px, 400px); max-height: calc(100dvh - 28px); margin: auto; padding: 22px 20px 20px; border: var(--line); border-radius: var(--wobble-2); background: var(--paper); color: var(--ink); text-align: center; }
.blob-sheet::backdrop { background: rgb(255 199 220 / .55); backdrop-filter: blur(4px); }
.blob-sheet[open] { animation: pop .55s var(--bounce); }
.blob-sheet h2 { font: 700 2.3rem/1 var(--hand); margin-top: 10px; }
.blob-sheet p { margin-top: 8px; color: var(--ink-2); font-size: 1.25rem; line-height: 1.3; }
.blob-sheet .stack { display: grid; gap: 10px; margin-top: 16px; }
.blob-sheet .blob-btn { width: 100%; }
.blob-sheet .sticker { margin-top: 4px; }
.intro .blob-btn { margin-top: 18px; }

.toast { position: fixed; z-index: 20; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); transform: translateX(-50%) rotate(-1deg); width: max-content; max-width: calc(100% - 32px); padding: 10px 18px; border: var(--line); border-radius: var(--wobble); background: var(--paper); font: 700 1.2rem var(--hand); }
.toast.error { background: var(--pink); }
body.adm .toast { font: 600 .95rem system-ui, sans-serif; border-radius: 12px; border: 0; background: #18181b; color: #fff; transform: translateX(-50%); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}

/* ---------- Pannello di Tommaso: grigio e semplice ---------- */
body.adm { background: #f4f4f5; color: #18181b; font-family: system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 16px; letter-spacing: normal; word-spacing: normal; }
body.adm .footer, body.adm .top { display: none; }
.adm-wrap { width: min(100% - 28px, 560px); margin: 0 auto; padding: 18px 0 48px; font-family: system-ui, -apple-system, 'Segoe UI', sans-serif; }
.adm-wrap h1, .adm-wrap h2, .adm-wrap h3 { font-family: inherit; }
.adm-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.adm-head h1 { font-size: 1.4rem; font-weight: 700; }
.adm-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.adm-card { background: #fff; border: 1px solid #e4e4e7; border-radius: 14px; padding: 14px; margin-bottom: 12px; }
.adm-card h2 { font-size: 1rem; font-weight: 700; margin-bottom: 10px; }
.adm-alert { border-color: #18181b; box-shadow: 0 0 0 1px #18181b; }
.adm-muted { color: #71717a; font-size: .85rem; }
.adm-btn { min-height: 38px; padding: 7px 14px; border-radius: 10px; border: 1px solid #d4d4d8; background: #fff; font-size: .88rem; font-weight: 600; }
.adm-btn.primary { background: #18181b; border-color: #18181b; color: #fff; }
.adm-btn.ghost { border-color: transparent; background: transparent; color: #52525b; }
.adm-btn.danger { color: #b91c1c; border-color: transparent; background: transparent; margin-right: auto; padding-left: 0; }
.adm-btn:active { transform: translateY(1px); }
.adm-count { font-size: 1.6rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.adm-form { display: grid; gap: 10px; margin-top: 10px; }
.adm-form label { display: grid; gap: 4px; font-size: .8rem; font-weight: 600; color: #3f3f46; }
.adm-form input, .adm-form textarea, .adm-form select { width: 100%; min-height: 40px; padding: 8px 10px; border: 1px solid #d4d4d8; border-radius: 10px; background: #fff; font-size: .92rem; }
.adm-form textarea { min-height: 70px; resize: vertical; }
.adm-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.adm-day-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 4px; }
.adm-day-head h2 { margin: 0; }
.adm-list { list-style: none; margin: 0; padding: 0; }
.adm-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid #f0f0f1; }
.adm-item:first-child { border-top: 0; }
.adm-time { width: 44px; flex: 0 0 44px; font-size: .82rem; font-weight: 600; color: #52525b; font-variant-numeric: tabular-nums; }
.adm-main { flex: 1; min-width: 0; text-align: left; background: none; border: 0; padding: 0; }
.adm-main strong { display: block; font-size: .95rem; overflow-wrap: anywhere; }
.adm-main small { color: #71717a; font-size: .78rem; }
.adm-main small.on { color: #15803d; }
.switch { position: relative; flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; color: #52525b; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch span { width: 42px; height: 24px; border-radius: 99px; background: #d4d4d8; position: relative; transition: background .15s; }
.switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px #0003; transition: transform .15s; }
.switch input:checked + span { background: #18181b; }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 3px solid #a1a1aa; outline-offset: 2px; }
.adm-add { margin-top: 6px; width: 100%; border-style: dashed; color: #52525b; }
.adm-request + .adm-request { margin-top: 12px; padding-top: 12px; border-top: 1px solid #e4e4e7; }
.adm-request h3 { font-size: .95rem; }
details.adm-card > summary { font-weight: 700; cursor: pointer; }
.adm-sheet { width: min(calc(100% - 20px), 480px); max-height: calc(100dvh - 20px); border: 0; border-radius: 16px; padding: 18px 16px 14px; background: #fff; color: #18181b; font-family: system-ui, -apple-system, 'Segoe UI', sans-serif; }
.adm-sheet::backdrop { background: #18181b88; }
.adm-sheet h2 { font-size: 1.15rem; font-weight: 700; font-family: inherit; }
.adm-sheet footer { position: sticky; bottom: -14px; z-index: 1; display: flex; gap: 8px; justify-content: flex-end; margin: 4px -16px 0; padding: 10px 16px 14px; background: #fff; border-top: 1px solid #e4e4e7; }
.adm-note { font-size: .74rem; color: #71717a; margin-top: -4px; }
.adm-check { display: flex !important; flex-direction: row; align-items: center; gap: 8px !important; font-weight: 600; }
.adm-check input { width: 20px !important; min-height: 20px !important; accent-color: #18181b; }
.photo-sheet { width: min(calc(100% - 32px), 360px); border: var(--border); border-radius: 24px 24px 24px 15px; box-shadow: var(--shadow); background: var(--white); color: var(--ink); padding: 22px 18px 18px; text-align: center; }
.photo-sheet::backdrop { background: #261a18a0; }
.photo-frame { width: 132px; height: 132px; margin: 0 auto 14px; display: grid; place-items: center; font-size: 3.4rem; background: var(--blue); border: var(--border); border-radius: 8px; box-shadow: 0 10px 0 -2px var(--white), 0 10px 0 0 var(--ink); transform: rotate(-4deg); }
.photo-sheet h2 { font-size: 1.7rem; letter-spacing: -.03em; }
.photo-sheet p { color: var(--muted); margin: 8px 0 16px; font-size: .95rem; }
.photo-sheet .actions { display: grid; gap: 8px; }
body.adm .photo-sheet { border: 0; box-shadow: none; border-radius: 16px; font-family: system-ui, sans-serif; }
body.adm .photo-sheet h2 { font-family: inherit; }
body.adm .photo-frame { background: #f4f4f5; border: 1px solid #d4d4d8; box-shadow: none; transform: none; border-radius: 16px; }
body.adm .photo-sheet .button { background: #18181b; color: #fff; border: 0; box-shadow: none; border-radius: 10px; }
body.adm .photo-sheet .button.secondary { background: #fff; color: #18181b; border: 1px solid #d4d4d8; }

.preview-bar { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 14px; background: #18181bf0; color: #fff; font: 500 14px system-ui, -apple-system, sans-serif; }
.preview-bar .adm-btn { min-height: 36px; padding: 4px 10px; font: 600 13px system-ui, sans-serif; color: #18181b; }
.preview-bar span { margin-right: auto; }


/* accesso al pannello */
.adm-lock { min-height: 100dvh; display: grid; place-items: center; padding: 24px 0; }
.adm-lock form { width: 100%; max-width: 360px; margin: 0; padding: 20px; gap: 14px; }
.adm-lock h1 { margin: 0; font-size: 1.4rem; font-weight: 700; text-align: left; letter-spacing: normal; line-height: 1.2; }
.adm-lock input { font-size: 1.1rem !important; letter-spacing: .15em; }
.adm-lock input[aria-invalid=true] { border-color: #b91c1c; background: #fef2f2; }
.adm-lock .adm-btn { min-height: 44px; }

/* fasce a scelta */
.slot { margin: 0 0 2px; color: var(--pink-ink); font: 700 1.05rem/1 var(--hand); }
.pick-say { font-weight: 700; color: var(--pink-ink) !important; }
.options { display: grid; gap: 8px; margin-top: 8px; }
.option { display: grid; gap: 2px; width: 100%; padding: 10px 12px; border: var(--line); border-radius: var(--wobble-2); background: var(--paper); text-align: left; transition: transform .25s var(--bounce); }
.option:active { transform: scale(.97) rotate(-.5deg); }
.option b { display: flex; align-items: center; gap: 6px; font: 700 1.3rem/1.1 var(--hand); }
.option span { color: var(--ink-2); font-size: 1.1rem; line-height: 1.25; }
.option.on { background: var(--blue); }
.option .doodle { width: 18px; height: 18px; stroke-width: 3; }
.now .options { margin-top: 12px; }
.adm-opts { margin: 4px 0 0; padding: 10px 12px 12px; border: 1px solid #e4e4e7; border-radius: 12px; display: grid; gap: 10px; }
.adm-opts legend { padding: 0 4px; font-size: .8rem; font-weight: 700; color: #3f3f46; }
.adm-opt { display: grid; gap: 8px; padding-top: 10px; border-top: 1px dashed #e4e4e7; }
.adm-opt textarea { min-height: 50px !important; }

/* pannello: strumenti di preparazione in fondo, chiusi */
.adm-hint { margin: -6px 0 12px; }
.adm-section { margin: 24px 2px 8px; font-size: 1rem; font-weight: 700; color: #3f3f46; }
details.adm-tool > summary { display: flex; align-items: center; gap: 10px; font-weight: 700; list-style: none; flex-wrap: wrap; row-gap: 2px; }
details.adm-tool > summary::-webkit-details-marker { display: none; }
details.adm-tool > summary::after { content: ''; flex: 0 0 auto; width: 7px; height: 7px; margin: 0 4px 3px auto; border: solid #71717a; border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s; }
details.adm-tool[open] > summary::after { transform: rotate(-135deg); margin-bottom: -3px; }
details.adm-tool > summary .adm-muted { margin-left: auto; white-space: nowrap; font-weight: 500; font-variant-numeric: tabular-nums; }
details.adm-tool > summary:has(.adm-muted)::after { margin-left: 0; }
details.adm-tool[open] > summary { margin-bottom: 10px; }
.adm-more > summary { padding: 6px 0; font-weight: 600; color: #3f3f46; cursor: pointer; }
.adm-more[open] > summary { margin-bottom: 6px; }

/* ---------- album dei ricordi ---------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.album .sticker { margin-top: 22px; }
.page { margin-top: 26px; }
.album .page { margin-top: 44px; scroll-margin-top: 16px; }
.page-head { display: flex; align-items: center; gap: 12px; padding-bottom: 10px; border-bottom: 2.5px dashed #e0b5c6; }
.page-cat { width: 64px; height: 64px; flex: 0 0 64px; object-fit: cover; padding: 4px; background: var(--paper); border: 2px solid var(--ink); border-radius: 10px 14px 9px 13px; transform: rotate(-5deg); }
.page:nth-of-type(even) .page-cat { transform: rotate(4deg); }
.page-head h2 { font: 700 2.3rem/.95 var(--hand); }
.page-head .date { margin-top: 2px; text-align: left; }

.memories { display: grid; gap: 30px; margin-top: 30px; }
.memory { display: grid; justify-items: start; }
.memory.r { justify-items: end; text-align: right; }
.snaps { display: flex; align-items: flex-start; width: 100%; }
.memory.r .snaps { flex-direction: row-reverse; }

/* polaroid */
.snap { position: relative; display: block; flex: 0 0 auto; width: 60%; padding: 8px 8px 26px; margin: 0; border: 2px solid var(--ink); border-radius: 3px 5px 4px 6px; background: var(--paper); transform: rotate(-3deg); transition: transform .3s var(--bounce); }
.snap img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; background: var(--blue-2); }
.memory.r .snap { transform: rotate(2.5deg); }
.snap + .snap { z-index: 0; width: 40%; margin-top: 34px; margin-left: -9%; transform: rotate(5deg); }
.snap + .snap + .snap { margin-top: 74px; transform: rotate(-4deg); }
.memory.r .snap + .snap { margin-left: 0; margin-right: -9%; transform: rotate(-5deg); }
.memory.r .snap + .snap + .snap { transform: rotate(3deg); }
.snap:first-child { z-index: 1; }
button.snap:active { transform: scale(.96) rotate(0deg); }

/* scotch di carta, con i bordi strappati */
.snap:first-child::before { content: ''; position: absolute; z-index: 2; top: -13px; left: 50%; width: 78px; height: 24px; translate: -50% 0; rotate: -6deg; background: rgb(255 199 220 / .85);
  clip-path: polygon(3% 0, 97% 0, 94% 22%, 99% 45%, 95% 70%, 98% 100%, 2% 100%, 6% 76%, 1% 52%, 5% 28%); }
.memory.r .snap:first-child::before { background: rgb(188 215 246 / .9); rotate: 5deg; }

.snap.empty { display: grid; place-items: center; gap: 6px; aspect-ratio: 4 / 5.6; padding: 12px; border-style: dashed; background: rgb(255 255 255 / .6); color: var(--blue-ink); font: 700 1.25rem/1.1 var(--hand); }
.snap.empty::before { opacity: .5; }
.snap.empty .doodle { width: 34px; height: 34px; align-self: end; }
.snap.empty span { align-self: start; }

.caption { max-width: 78%; margin-top: 14px; font: 700 1.45rem/1.1 var(--hand); text-wrap: balance; }
.caption b { color: var(--pink-ink); font-variant-numeric: tabular-nums; }
.memory .add-photo { margin-top: 0; }
.also { margin-top: 30px; color: var(--ink-2); font-size: 1.2rem; line-height: 1.35; text-wrap: pretty; }

/* foto in grande */
.viewer { padding: 18px 16px 14px; }
.viewer .snap.big { width: 100%; padding: 10px 10px 0; transform: rotate(-1deg); }
.viewer .snap.big::before { display: none; }
.viewer .snap.big img { aspect-ratio: auto; max-height: 58dvh; object-fit: contain; }
.viewer figcaption { padding: 10px 2px 12px; font: 700 1.4rem/1.15 var(--hand); text-align: left; }
.viewer figcaption b { color: var(--pink-ink); }
.viewer .stack { margin-top: 14px; }
.snaps:has(.snap:nth-child(3)) .snap { width: 52%; }
.snaps:has(.snap:nth-child(3)) .snap + .snap { width: 34%; margin-left: -6%; }
.memory.r .snaps:has(.snap:nth-child(3)) .snap + .snap { margin-left: 0; margin-right: -6%; }
.snaps:has(.snap:nth-child(3)) .snap + .snap + .snap { margin-left: -14%; }
.memory.r .snaps:has(.snap:nth-child(3)) .snap + .snap + .snap { margin-left: 0; margin-right: -14%; }

/* tutorial schermata Home + notifiche */
.tut .sticker { max-width: 150px; margin: 0 auto; }
.tut-count { margin-top: 8px !important; font: 700 1.1rem/1.2 var(--hand) !important; color: var(--pink-ink) !important; }
.tut-body { margin-top: 6px; text-align: left; }
.tut-body p { font-size: 1.3rem; line-height: 1.35; }
.tut-body b { color: var(--ink); }
.tut-small, .blob-sheet .tut-small { font-size: 1.1rem !important; color: var(--ink-3) !important; }
.tut-ico { display: inline-block; width: 30px; height: 30px; padding: 3px; vertical-align: -9px; border: 2px solid var(--ink); border-radius: 9px 12px 8px 11px; background: var(--blue-2); fill: none; stroke: var(--blue-ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tut-ico circle[r="1.6"] { fill: var(--blue-ink); }
.tut-dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.tut-dots li { width: 10px; height: 10px; border: 2px solid var(--ink); border-radius: 50%; background: var(--paper); }
.tut-dots li.on { background: var(--pink); width: 22px; border-radius: 8px; }
