:root {
  --cream: #FAF3E8; --red: #C4472F; --plum: #3E2F3C; --apricot: #F2A66B; --kraft: #B98B5E;
  --paper: #FFFBF3; --plum-soft: #6d5b6a; --line: rgba(185, 139, 94, .35);
  --appw: min(100vw, 430px);
  --stamp-paper: #FFFBF3; --page-bg: var(--paper); --page-ink: var(--plum); --postmark-blend: multiply;
  --grain: url(../assets/texture/paper.png); --wood: url(../assets/texture/wood.jpg); --kraftbg: url(../assets/texture/kraft.jpg);
  --serif: 'Fraunces', Georgia, serif; --mono: 'Courier Prime', 'Courier New', monospace; --sans: 'DM Sans', system-ui, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: #efe5d6; }
body { margin: 0; font-family: var(--sans); color: var(--plum); background: #efe5d6; -webkit-text-size-adjust: 100%; overscroll-behavior: none; }
#app { position: relative; width: var(--appw); min-height: 100dvh; margin: 0 auto; background: var(--cream); overflow-x: hidden; }
@media (min-width: 440px) { #app { box-shadow: 0 0 60px rgba(62, 47, 60, .12); } }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; touch-action: manipulation; }
h1, h2 { font-family: var(--serif); font-weight: 600; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
.screen { min-height: 100dvh; display: flex; flex-direction: column; padding: env(safe-area-inset-top) 16px 0; position: relative; }
.fade-in { animation: fade .28s ease both; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- buttons ---------- */
.btn-primary { background: var(--red); color: var(--cream); font-weight: 600; font-size: 17px; height: 56px; border-radius: 16px; width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; box-shadow: 0 2px 0 #9c3322; transition: transform .15s ease, opacity .2s; }
.btn-primary:active { transform: translateY(1px); box-shadow: 0 1px 0 #9c3322; }
.btn-primary.big { height: 68px; font-size: 19px; border-radius: 20px; }
.btn-secondary { height: 54px; width: 100%; border-radius: 16px; border: 1.5px solid var(--kraft); font-weight: 600; font-size: 16px; display: flex; align-items: center; justify-content: center; gap: 10px; background: rgba(255, 251, 243, .6); }
.btn-danger { height: 54px; width: 100%; border-radius: 16px; background: var(--red); color: var(--cream); font-weight: 600; font-size: 16px; }
.btn-ic { width: 26px; height: 26px; display: inline-flex; }
.btn-ic svg { width: 100%; height: 100%; }
.link { color: var(--plum-soft); text-decoration: underline; text-underline-offset: 3px; font-size: 15px; padding: 10px 6px; min-height: 44px; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; }
.icon-btn svg { width: 24px; height: 24px; }
.bottom { margin-top: auto; padding: 14px 0 calc(18px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 10px; align-items: center; }
.bottom.tight { padding-top: 8px; }
.bottom.stack { gap: 10px; }
.bottom .hint { color: var(--plum-soft); font-size: 14px; font-family: var(--mono); }
.topbar { display: flex; align-items: center; height: 56px; margin: 0 -8px; padding: 0 0; }
.topbar-right { margin-left: auto; display: flex; align-items: center; padding-right: 8px; }
.topbar-title { flex: 1; text-align: center; font-family: var(--serif); font-weight: 600; font-size: 17px; }
.topbar .skip-slot { min-width: 100px; display: flex; justify-content: flex-end; }
.topbar .link { padding-right: 8px; }

/* ---------- the stamp ---------- */
.stamp-wrap { position: relative; width: 10em; display: block; font-size: 16px; }
.stamp-shadow { filter: drop-shadow(0 .12em .28em rgba(62, 47, 60, .28)); }
.stamp { --r: .3em; --s: .8em; position: relative; width: 100%; padding: .9em .9em 0; background-color: var(--stamp-paper); background-image: var(--grain); background-blend-mode: multiply;
  -webkit-mask:
    linear-gradient(#000 0 0) center / calc(100% - 2 * var(--r)) calc(100% - 2 * var(--r)) no-repeat,
    radial-gradient(circle at 50% 0, #0000 var(--r), #000 calc(var(--r) + .5px)) top / var(--s) var(--r) round no-repeat,
    radial-gradient(circle at 50% 100%, #0000 var(--r), #000 calc(var(--r) + .5px)) bottom / var(--s) var(--r) round no-repeat,
    radial-gradient(circle at 0 50%, #0000 var(--r), #000 calc(var(--r) + .5px)) left top / var(--r) var(--s) no-repeat repeat,
    radial-gradient(circle at 100% 50%, #0000 var(--r), #000 calc(var(--r) + .5px)) right top / var(--r) var(--s) no-repeat repeat;
  mask:
    linear-gradient(#000 0 0) center / calc(100% - 2 * var(--r)) calc(100% - 2 * var(--r)) no-repeat,
    radial-gradient(circle at 50% 0, #0000 var(--r), #000 calc(var(--r) + .5px)) top / var(--s) var(--r) round no-repeat,
    radial-gradient(circle at 50% 100%, #0000 var(--r), #000 calc(var(--r) + .5px)) bottom / var(--s) var(--r) round no-repeat,
    radial-gradient(circle at 0 50%, #0000 var(--r), #000 calc(var(--r) + .5px)) left top / var(--r) var(--s) no-repeat repeat,
    radial-gradient(circle at 100% 50%, #0000 var(--r), #000 calc(var(--r) + .5px)) right top / var(--r) var(--s) no-repeat repeat;
}
.stamp-photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #e8dccb; outline: .06em solid rgba(60, 40, 30, .25); box-shadow: inset 0 0 .5em rgba(0, 0, 0, .25); }
.stamp-photo .photo, .stamp-photo .photo-empty { width: 100%; height: 100%; object-fit: cover; display: block; user-select: none; -webkit-user-drag: none; }
.photo-empty { display: grid; place-items: center; background: repeating-linear-gradient(135deg, #f1e5d2 0 .5em, #ebdcc6 .5em 1em); }
.photo-empty span { font-family: var(--serif); font-size: 3em; color: var(--kraft); opacity: .7; }
.light-overlay { position: absolute; inset: 0; pointer-events: none; }
.light-morning .photo { filter: brightness(1.06) saturate(.95) hue-rotate(-5deg); }
.light-morning .light-overlay { background: linear-gradient(180deg, rgba(190, 215, 235, .22), rgba(255, 255, 255, .06)); }
.light-golden .photo { filter: sepia(.22) saturate(1.12) contrast(1.02); }
.light-golden .light-overlay { background: linear-gradient(180deg, rgba(242, 166, 107, .18), rgba(242, 166, 107, .28)); mix-blend-mode: soft-light; }
.light-dark .photo { filter: brightness(.74) contrast(1.08) saturate(.9); }
.light-dark .light-overlay { background: linear-gradient(180deg, rgba(40, 30, 80, .38), rgba(20, 15, 50, .3)); mix-blend-mode: multiply; }
.stamp-foot { white-space: nowrap; height: 1.9em; display: flex; align-items: center; justify-content: space-between; font-family: var(--mono); font-size: .5em; letter-spacing: .06em; color: var(--kraft); font-weight: 700; padding: 0 .2em; }
.postmark { position: absolute; width: 10.6em; right: -3.1em; bottom: -1.3em; transform: rotate(-9deg); mix-blend-mode: var(--postmark-blend); opacity: .85; pointer-events: none; }
.postmark svg { display: block; width: 100%; height: auto; }
.stamp-wrap.mini .stamp { --r: .34em; --s: .9em; }
.stamp-wrap.mini .stamp-foot { display: none; }
.stamp-wrap.mini .stamp { padding: .9em; }
.stamp-wrap.mini .stamp-shadow { filter: drop-shadow(0 .1em .2em rgba(62, 47, 60, .3)); }

/* developing + postmark press animation */
.stamp.developing .photo { animation: develop 1.25s ease-out both; }
.stamp.developing .light-overlay { animation: develop-ov 1.25s ease-out both; }
@keyframes develop { from { filter: grayscale(1) brightness(.35) blur(7px); opacity: .5; } to { opacity: 1; } }
@keyframes develop-ov { from { opacity: 0; } to { opacity: 1; } }
.postmark.pending { opacity: 0; animation: press .45s ease-out 1.15s both; }
@keyframes press { from { opacity: 0; transform: rotate(-9deg) scale(1.35); } to { opacity: .85; transform: rotate(-9deg) scale(1); } }

/* ---------- scrapbook page ---------- */
.page-frame { display: grid; place-items: center; padding: 4px 0 8px; --chrome: 270px; }
.decorate .page-frame, .ready .page-frame { --chrome: 380px; }
.page { --pw: min(calc(var(--appw) - 32px), calc((100dvh - var(--chrome)) * .8)); position: relative; width: var(--pw); aspect-ratio: 4 / 5; background-color: var(--page-bg); background-image: var(--grain); background-blend-mode: multiply; color: var(--page-ink); border-radius: 4px; box-shadow: 0 1px 1px rgba(40, 25, 20, .18), 0 3px 6px rgba(40, 25, 20, .12), 0 14px 30px rgba(40, 25, 20, .16); overflow: hidden; container-type: inline-size; }
.page-stamp { position: absolute; left: 50%; top: 6.4%; transform: translateX(-50%) rotate(-2deg); }
.page-text { position: absolute; left: 10%; right: 10%; top: 78.4%; text-align: center; }
.page-title { font-family: var(--serif); font-weight: 600; font-size: 5.6cqw; line-height: 1.15; margin-bottom: .8cqw; }
.page-date { font-family: var(--mono); font-size: 3cqw; letter-spacing: .14em; color: var(--kraft); font-weight: 700; margin-bottom: 1.6cqw; }
.page-thought { font-family: var(--serif); font-style: italic; font-size: 3.7cqw; line-height: 1.35; color: var(--plum); }
.decor-layer { position: absolute; inset: 0; }
.decor-layer:not(.editing) { pointer-events: none; }
.deco { position: absolute; transform: translate(-50%, -50%) rotate(var(--rot, 0deg)); line-height: 0; }
.deco > svg { width: 100%; height: auto; display: block; overflow: visible; pointer-events: none; }
.decor-layer.editing .deco { touch-action: none; cursor: grab; }
.deco.landing { animation: settle .32s cubic-bezier(.2, .7, .3, 1) both; }
@keyframes settle { from { opacity: 0; transform: translate(-50%, -50%) rotate(var(--rot, 0deg)) scale(1.14); } to { opacity: 1; transform: translate(-50%, -50%) rotate(var(--rot, 0deg)) scale(1); } }
.deco.selected { outline: 1.5px dashed var(--red); outline-offset: 5px; }
.deco-ui { position: absolute; inset: 0; pointer-events: none; }
.deco-del, .deco-handle { position: absolute; width: 30px; height: 30px; border-radius: 50%; background: var(--red); color: var(--cream); display: grid; place-items: center; pointer-events: auto; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); touch-action: none; }
.deco-del { left: -17px; top: -17px; }
.deco-handle { right: -17px; bottom: -17px; background: var(--plum); }
.deco-del svg, .deco-handle svg { width: 16px; height: 16px; }

/* ---------- welcome ---------- */
.welcome { display: flex; flex-direction: column; min-height: 100dvh; padding: calc(env(safe-area-inset-top) + 28px) 16px 0; }
.welcome-hero { display: grid; place-items: center; padding: 28px 0 12px; transform: rotate(-2deg); }
.welcome-copy { text-align: center; padding: 18px 8px 0; }
.brand-line { display: inline-flex; align-items: center; gap: 8px; font-family: var(--serif); font-weight: 600; font-size: 18px; color: var(--red); margin-bottom: 14px; }
.logo { width: 24px; display: inline-flex; } .logo svg { width: 100%; height: auto; }
.welcome h1 { font-size: 31px; line-height: 1.12; margin-bottom: 12px; }
.welcome p { color: var(--plum-soft); font-size: 16px; line-height: 1.45; }

/* ---------- calendar ---------- */
.calendar { padding-top: calc(env(safe-area-inset-top) + 6px); }
.cal-head { height: 48px; display: flex; align-items: center; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-family: var(--serif); font-weight: 600; font-size: 18px; color: var(--red); min-height: 44px; }
.month-nav { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 8px; }
.month-nav h1 { font-size: 28px; }
.weekdays, .grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.weekdays span { text-align: center; font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--kraft); padding: 4px 0; }
.cell { container-type: inline-size; position: relative; aspect-ratio: 1 / 1.32; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding-top: 5px; gap: 3px; }
.cell.blank { visibility: hidden; }
.cell .num { font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--plum); line-height: 1; }
.cell.future { opacity: .35; pointer-events: none; }
.cell:not(.has) .num { margin-top: 10px; }
.cell.today:not(.has) { background: rgba(242, 166, 107, .22); box-shadow: inset 0 0 0 1.5px var(--red); }
.cell.today:not(.has) .num { color: var(--red); }
.cell.has { padding-top: 2px; }
.cell.has .cover { display: grid; place-items: center; width: 100%; height: 66%; }
.cell.has .cover .stamp-wrap { transform: translateY(0); }
.cell.has .num { position: absolute; top: 3px; left: 5px; font-size: 10.5px; color: var(--cream); background: rgba(62, 47, 60, .7); border-radius: 6px; padding: 2px 4px; z-index: 2; }
.cell.today.has .num { background: var(--red); }
.cell.today.has { background: rgba(242, 166, 107, .22); box-shadow: inset 0 0 0 1.5px var(--red); }
.cover.new { animation: pulse 1.6s ease both; }
@keyframes pulse { 0% { transform: scale(1.18); opacity: .4; } 50% { opacity: 1; } 100% { transform: scale(1); } }
.dots { display: flex; gap: 3px; justify-content: center; margin-top: auto; padding-bottom: 4px; }
.dot { width: 5px; height: 5px; border-radius: 50%; border: 1px solid var(--kraft); }
.dot.on { background: var(--red); border-color: var(--red); }

/* ---------- moment ---------- */
.moment-hero { display: grid; place-items: center; padding: 18px 0 8px; transform: rotate(-3deg); }
.moment-copy { text-align: center; margin-top: 16px; }
.moment-copy h1 { font-size: 32px; } .moment-copy p { color: var(--plum-soft); margin-top: 6px; font-size: 16px; }

/* ---------- camera ---------- */
.camera { position: fixed; inset: 0; z-index: 30; width: var(--appw); margin: 0 auto; background: #000; padding: 0; min-height: 100dvh; }
.cam-video { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.cam-close { position: absolute; top: calc(env(safe-area-inset-top) + 12px); left: 12px; width: 44px; height: 44px; border-radius: 50%; background: rgba(0, 0, 0, .45); color: #fff; display: grid; place-items: center; z-index: 3; }
.cam-close svg { width: 22px; }
.cam-bar { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 28px calc(30px + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-between; background: linear-gradient(transparent, rgba(0, 0, 0, .45)); z-index: 3; }
.cam-spacer { width: 52px; }
.shutter { width: 80px; height: 80px; border-radius: 50%; border: 4px solid #fff; display: grid; place-items: center; }
.shutter span { width: 62px; height: 62px; border-radius: 50%; background: #fff; transition: transform .1s; }
.shutter:active span { transform: scale(.9); }
.cam-flip { width: 52px; height: 52px; border-radius: 50%; background: rgba(0, 0, 0, .45); color: #fff; display: grid; place-items: center; }
.cam-flip svg { width: 26px; }
.cam-msg { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; gap: 18px; align-items: center; justify-content: center; text-align: center; padding: 40px 32px; background: var(--cream); }
.cam-msg[hidden] { display: none; }
.cam-msg p { font-size: 17px; line-height: 1.4; }

/* ---------- thought ---------- */
.thought-hero { display: grid; place-items: center; padding: 4px 0 6px; transform: rotate(-2deg); }
.thought h1 { text-align: center; font-size: 25px; margin: 12px 0 10px; }
.voice-area { display: grid; place-items: center; min-height: 120px; }
.mic-wrap { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; }
.mic { width: 84px; height: 84px; border-radius: 50%; background: var(--apricot); color: var(--plum); display: grid; place-items: center; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; box-shadow: 0 0 0 8px rgba(242, 166, 107, .25); transition: box-shadow .2s, background .2s; }
.mic svg { width: 36px; }
.mic.rec { background: var(--red); color: var(--cream); box-shadow: 0 0 0 12px rgba(196, 71, 47, .2); }
.mic-label { font-family: var(--mono); font-size: 14px; color: var(--plum-soft); min-height: 20px; text-align: center; }
.wave { display: flex; align-items: center; justify-content: center; gap: 3px; height: 26px; width: 80%; }
.wave i:nth-child(4n+1) { height: 22%; } .wave i:nth-child(4n+2) { height: 45%; } .wave i:nth-child(4n+3) { height: 30%; }
.wave i { flex: 1; max-width: 5px; height: 14%; border-radius: 3px; background: var(--apricot); transition: height .08s linear; }
.text-wrap { position: relative; margin-top: 8px; }
.thought-input { width: 100%; resize: none; border: 1.5px solid var(--line); background: var(--paper); border-radius: 14px; padding: 12px 14px 26px; font-family: var(--serif); font-style: italic; font-size: 17px; line-height: 1.35; color: var(--plum); outline: none; }
.thought-input:focus, .title-input:focus { border-color: var(--red); }
.count { position: absolute; right: 12px; bottom: 8px; font-family: var(--mono); font-size: 12px; color: var(--kraft); }

/* voice pill */
.voice-pill { display: flex; align-items: center; gap: 10px; background: var(--paper); border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 14px 6px 6px; width: 100%; max-width: 360px; }
.vp-play { width: 44px; height: 44px; border-radius: 50%; background: var(--apricot); display: grid; place-items: center; flex: none; color: var(--plum); }
.vp-play svg { width: 20px; }
.vp-bars { flex: 1; display: flex; align-items: center; gap: 2.5px; height: 32px; }
.vp-bars i { flex: 1; min-height: 3px; border-radius: 2px; background: rgba(185, 139, 94, .5); }
.vp-bars i.on { background: var(--apricot); }
.vp-time { font-family: var(--mono); font-size: 13px; color: var(--plum-soft); min-width: 34px; text-align: right; }
.vp-x { width: 32px; height: 32px; display: grid; place-items: center; color: var(--plum-soft); }
.vp-x svg { width: 16px; }

/* ---------- frame ---------- */
.frame-hero { display: grid; place-items: center; padding: 8px 0 14px; transform: rotate(-1.5deg); }
.frame-controls { display: flex; flex-direction: column; gap: 8px; }
.label { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--kraft); font-weight: 700; margin-top: 6px; }
.chips { display: flex; gap: 8px; }
.chip { flex: 1; height: 46px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--paper); font-weight: 500; font-size: 14.5px; }
.chip.on { border-color: var(--red); background: rgba(196, 71, 47, .08); color: var(--red); font-weight: 700; }
.title-input { height: 50px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--paper); padding: 0 14px; font-family: var(--serif); font-size: 18px; color: var(--plum); outline: none; }

/* ---------- stamping ---------- */
.stamping { align-items: center; justify-content: center; text-align: center; }
.stamping-stage { transform: rotate(-2deg); }
.stamping-text { margin-top: 38px; font-family: var(--mono); letter-spacing: .12em; color: var(--kraft); font-size: 14px; }

/* ---------- decorate ---------- */
.decorate .page-frame { padding-top: 0; }
.deco-hint { text-align: center; color: var(--plum-soft); font-size: 13px; margin: 2px 0 6px; }
.deco-hint[hidden] { display: none; }
.tray { background: var(--paper); border: 1.5px solid var(--line); border-radius: 18px; padding: 8px; margin-top: auto; }
.tray-tabs { display: flex; gap: 4px; margin-bottom: 8px; background: rgba(185, 139, 94, .14); padding: 3px; border-radius: 12px; }
.tab { flex: 1; height: 36px; border-radius: 10px; font-weight: 600; font-size: 14px; color: var(--plum-soft); }
.tab.on { background: var(--paper); color: var(--red); box-shadow: 0 1px 3px rgba(62, 47, 60, .15); }
.tray-grid { display: grid; gap: 8px; }
.tray-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.tray-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.tray-item { height: 56px; border-radius: 12px; background: var(--cream); border: 1px solid var(--line); display: grid; place-items: center; padding: 6px; }
.tray-item svg { max-width: 100%; max-height: 100%; }
.tray-item.tape svg, .tray-item.doodles svg { height: 100%; width: auto; max-width: 100%; }

/* ---------- day ---------- */
.day-head { text-align: center; padding: 8px 0 10px; }
.day-kicker { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--kraft); font-weight: 700; }
.day-head h1 { font-size: 26px; margin: 4px 0 10px; }
.day-head .dots { justify-content: center; } .day-head .dot { width: 8px; height: 8px; }
.day-row { display: flex; justify-content: center; align-items: flex-start; gap: 14px; padding: 26px 0; flex-wrap: wrap; margin: auto 0; }
.day-card { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.day-card .stamp-wrap { margin-bottom: 1.6em; }
.day-card:nth-child(odd) { transform: rotate(-2deg); } .day-card:nth-child(even) { transform: rotate(1.5deg) translateY(10px); }

.day-title { font-family: var(--serif); font-weight: 600; font-size: 14px; max-width: 130px; text-align: center; }
.day-row.n3 .day-title { font-size: 12px; max-width: 100px; }

/* ---------- tale ---------- */
.tale-voice { display: grid; place-items: center; padding: 6px 0 4px; }

/* ---------- sheets, toast ---------- */
.sheet-backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(62, 47, 60, .45); display: flex; align-items: flex-end; justify-content: center; animation: fade .2s ease both; width: var(--appw); margin: 0 auto; }
.sheet-backdrop.out { opacity: 0; transition: opacity .2s; }
.sheet { position: relative; width: 100%; background: var(--cream); border-radius: 24px 24px 0 0; padding: 26px 20px calc(24px + env(safe-area-inset-bottom)); animation: rise .28s ease both; max-height: 88dvh; overflow: auto; }
@keyframes rise { from { transform: translateY(30px); opacity: .6; } to { transform: none; opacity: 1; } }
.sheet-x { position: absolute; right: 10px; top: 10px; width: 40px; height: 40px; display: grid; place-items: center; color: var(--plum-soft); }
.sheet-x svg { width: 20px; }
.sheet h2 { font-size: 24px; margin-bottom: 8px; }
.sheet p { color: var(--plum-soft); line-height: 1.4; margin-bottom: 16px; }
.sheet .btn-primary, .sheet .btn-danger { margin-top: 4px; }
.limit { text-align: center; }
.limit-stamps { display: flex; justify-content: center; gap: 4px; padding: 6px 0 20px; }
.date-input { width: 100%; height: 54px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--paper); padding: 0 14px; font: 18px var(--mono); color: var(--plum); margin-bottom: 10px; }
.sheet-msg { color: var(--red) !important; min-height: 20px; margin: 0 0 6px !important; font-size: 14px; }
.menu-item { width: 100%; height: 56px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); font-size: 17px; }
.menu-item span { width: 20px; color: var(--kraft); } .menu-item span svg { width: 100%; }
.menu-item.danger { color: var(--red); border-bottom: 0; } .menu-item.danger span { color: var(--red); }
.confirm .btn-danger { margin-bottom: 4px; } .confirm .link { width: 100%; text-align: center; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(110px + env(safe-area-inset-bottom)); z-index: 60; background: var(--plum); color: var(--cream); padding: 12px 20px; border-radius: 999px; font-size: 15px; font-weight: 500; box-shadow: 0 6px 20px rgba(62, 47, 60, .3); animation: fade .25s ease both; white-space: nowrap; }
.toast.out { opacity: 0; transition: opacity .4s; }

/* founder */
.founder .muted { font-size: 13px; margin: 0 0 12px; }
.founder .stat { background: var(--paper); border: 1.5px solid var(--line); border-radius: 14px; padding: 14px; margin-bottom: 10px; font-size: 15px; }
.founder .stat b { font-family: var(--serif); font-size: 28px; color: var(--red); margin-right: 6px; }
.attempts { font-family: var(--mono); font-size: 12px; color: var(--plum-soft); padding-left: 18px; margin: 0 0 14px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }

@media (prefers-reduced-motion: reduce) { * { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* ---------- shared depth: printed stickers, glossy tape ---------- */
.deco.k-stickers { filter: drop-shadow(.6px 0 0 #fff) drop-shadow(-.6px 0 0 #fff) drop-shadow(0 .6px 0 #fff) drop-shadow(0 -.6px 0 #fff) drop-shadow(0 1.5px 2px rgba(30, 18, 20, .38)); }
.deco.k-stickers svg * { stroke-width: 2.1; }
.deco.k-stickers svg { filter: saturate(.88) contrast(.98); }
.deco.k-tape { filter: drop-shadow(0 1px 1.2px rgba(30, 18, 20, .28)); opacity: .94; }
.deco.k-doodles { opacity: .92; }
.deco.selected { filter: none; }
.page::before { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 38%, rgba(0, 0, 0, .05)); pointer-events: none; z-index: 1; }
.decor-layer { z-index: 2; }
