.story-page { overflow: auto; min-height: 100vh; background: radial-gradient(ellipse at 50% 0, #334441, #101b23 65%); }
.celebrate-page { min-height: 100vh; min-height: 100dvh; max-width: 960px; padding: clamp(36px, 8vh, 90px) 24px; margin: auto; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.story-eyebrow { color: #f4ba7b; font-size: clamp(1.15rem, 2vw, 1.5rem); }
.celebrate-page h1 { font-size: clamp(2.8rem, 7vw, 5.6rem); font-weight: 400; line-height: 1.15; margin: 16px 0; overflow-wrap: anywhere; }
.welcome-copy { color: #e4ddd1; font-size: clamp(1.3rem, 3vw, 1.8rem); line-height: 1.55; margin: 0 0 26px; }
.memory-photos { display: flex; justify-content: center; gap: 16px; width: min(700px, 100%); margin: 15px 0 40px; }
.memory-photos div { flex: 1; padding: 8px 8px 25px; background: #fff6e9; transform: rotate(-5deg); box-shadow: 0 12px 30px #0006; }
.memory-photos div:nth-child(2) { transform: rotate(4deg) translateY(8px); }
.memory-photos div:nth-child(3) { transform: rotate(-2deg); }
.memory-photos .photo-frame { aspect-ratio: 1; height: auto; }
.paper-open-button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 52px; padding: 13px 28px; border: 0; border-radius: 999px; background: #f4ba7b; color: #17242d; text-decoration: none; font-size: 1.45rem; cursor: pointer; }
.paper-open-button:hover { background: #ffcf9a; }
.paper-open-button:disabled { opacity: .5; cursor: default; }
.story-back { color: #c7d1cc; font-size: 1.05rem; text-decoration: none; display: inline-block; margin-top: 24px; }
.paper-page { background: radial-gradient(circle at 30% 0, #34443d, #101b23 80%); }
.paper-shell { max-width: 1240px; margin: auto; padding: 0 clamp(18px, 4vw, 50px) 60px; }
.paper-heading { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin: 36px 0; }
.paper-heading h1 { margin: 8px 0; font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 400; }
.paper-heading p { margin: 0; font-size: 1.2rem; color: #c8d4cc; }
.paper-status { color: #f4ba7b; min-height: 1em; }
.paper-empty { margin: 25px auto; padding: 40px 20px; max-width: 640px; border: 1px dashed #ffffff50; text-align: center; border-radius: 16px; }
.paper-empty > span { font-size: 5rem; color: #f4ba7b; }
.paper-empty h2 { font-size: 1.8rem; font-weight: 400; }
.paper-empty p { color: #c8d4cc; font-size: 1.1rem; }
.paper-notes { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 24px; align-items: start; }
.paper-name { position: relative; display: grid; place-items: center; min-height: 100px; padding: 24px 18px; border: 0; color: #25343c; background: var(--paper); border-radius: 3px; transform: rotate(var(--tilt,0deg)); box-shadow: 0 8px 18px #0004; overflow-wrap: anywhere; font-size: 1.8rem; line-height: 1.3; }
.paper-name::before { content: ""; position: absolute; top: -10px; left: calc(50% - 30px); width: 60px; height: 24px; background: #ffffff65; transform: rotate(-5deg); }
.paper-name:hover { box-shadow: 0 12px 26px #0007; }
.read-card { padding: 26px; color: #25343c; background: var(--paper); border-radius: 4px; }
[data-color=yellow] { --paper: #fff1bb; } [data-color=pink] { --paper: #f6ccd5; } [data-color=blue] { --paper: #cce8f3; } [data-color=green] { --paper: #d6eaca; } [data-color=lavender] { --paper: #e0d5f4; } [data-color=white] { --paper: #fffaf0; }
.note-body { font-size: 1.6rem; line-height: 1.5; white-space: pre-wrap; margin: 0 0 24px; }
#note-dialog, #read-dialog { width: min(600px, calc(100% - 28px)); max-height: calc(100dvh - 32px); overflow: auto; padding: 26px; border: 1px solid #ffffff40; border-radius: 16px; background: #101b23; color: #fffaf1; }
#note-dialog::backdrop, #read-dialog::backdrop { background: #050b13bd; backdrop-filter: blur(6px); }
#read-heading { overflow-wrap: anywhere; }
#read-message { overflow-wrap: anywhere; }
#note-form { display: grid; gap: 20px; }
#note-message { width: 100%; resize: vertical; min-height: 150px; padding: 12px; font: inherit; font-size: 1.25rem; color: #fffaf1; background: #1b2c36; border: 1px solid #ffffff50; border-radius: 5px; }
.paper-colors { display: flex; gap: 8px; flex-wrap: wrap; }
.paper-colors legend { font-size: 1.15rem; margin-bottom: 10px; }
.paper-colors label { border-radius: 999px; padding: 8px 12px; background: var(--paper); color: #25343c; cursor: pointer; }
.paper-colors input { accent-color: #25343c; }
@media(max-width:600px) { .paper-heading { flex-direction: column; align-items: start; }.memory-photos{gap:7px}.memory-photos div{padding:5px 5px 14px}.paper-notes{grid-template-columns:1fr;gap:24px}.paper-open-button{font-size:1.25rem;padding:12px 23px} }
