:root {
  color-scheme: dark;
  --night: #101626;
  --night-soft: #171d31;
  --plum: #342238;
  --wine: #55283d;
  --gold: #d4af37;
  --gold-soft: #f0d99a;
  --rose: #dfa1ac;
  --cream: #fff3e0;
  --muted: #b7adbb;
  --glass: rgba(26, 31, 51, .76);
  --line: rgba(233, 206, 155, .18);
  font-family: 'Quicksand', 'Segoe UI', sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--night); scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; color: var(--cream); background: radial-gradient(ellipse at 50% 7%, #34243b 0, #191c30 36%, var(--night) 76%); overflow-x: hidden; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 3px; }
em { color: var(--gold-soft); font-weight: 500; }
#winter-canvas { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; opacity: .8; }
.aurora-wash { position: fixed; inset: -20% -15% auto; height: 58vh; z-index: 0; pointer-events: none; opacity: .32; filter: blur(42px); background: radial-gradient(ellipse at 32% 50%, rgba(166, 89, 128, .23), transparent 40%), radial-gradient(ellipse at 69% 35%, rgba(145, 117, 184, .19), transparent 37%), radial-gradient(ellipse at 51% 85%, rgba(203, 164, 87, .1), transparent 38%); animation: aurora-drift 26s ease-in-out infinite alternate; }
.page-shell { position: relative; z-index: 1; width: min(1120px, calc(100% - 44px)); margin: 0 auto; }
.topbar { height: 76px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.07); }
.wordmark { color: var(--cream); text-decoration: none; font-family: 'Playfair Display', Georgia, serif; font-size: 24px; letter-spacing: -.08em; }
.wordmark span { color: var(--gold); font: 11px 'Quicksand', sans-serif; vertical-align: top; letter-spacing: 0; }
.topbar-note { color: #c8bdc6; font-size: 11px; letter-spacing: .035em; }
.tiny-heart { color: var(--rose); margin-right: 7px; }
.sound-toggle { border: 1px solid rgba(240,217,154,.25); background: rgba(255,255,255,.035); border-radius: 999px; color: #e7d9c8; padding: 8px 13px; font-size: 11px; cursor: pointer; transition: background .2s, border-color .2s; }
.sound-toggle:hover, .sound-toggle[aria-pressed="true"] { background: rgba(212,175,99,.13); border-color: rgba(240,217,154,.55); }
.sound-toggle span { margin-left: 5px; }
.intro { text-align: center; padding: 73px 0 34px; }
.eyebrow { margin: 0 0 15px; color: var(--gold); font-size: 9px; font-weight: 700; letter-spacing: .29em; }
.eyebrow-line { display: inline-block; vertical-align: middle; width: 28px; height: 1px; margin: 0 10px 3px; background: rgba(212,175,99,.52); }
h1, h2, .modal-title { font-family: 'Playfair Display', Georgia, serif; font-weight: 500; }
.intro h1 { margin: 0; font-size: clamp(48px, 8vw, 82px); line-height: .98; letter-spacing: -.045em; }
.intro h1 em { font-style: italic; }
.intro-copy { color: #d0c4cf; font-size: 14px; line-height: 1.8; margin: 22px 0 17px; }
.intro-copy span { color: var(--rose); font-size: 12px; }
.date-pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border: 1px solid rgba(212,175,99,.2); border-radius: 100px; color: #e3d4c2; background: rgba(20,24,41,.52); font-size: 10px; letter-spacing: .04em; }
.date-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.garland-section { width: min(980px, 100%); margin: 11px auto 42px; }
.garland { width: 100%; height: 76px; overflow: visible; }
.garland svg { display: block; width: 100%; height: 100%; overflow: visible; }
.garland:hover svg, .garland:focus-within svg { animation: garland-sway .85s ease-in-out; transform-origin: 50% 0; }
.garland-wire { fill: none; stroke: rgba(211,194,163,.45); stroke-width: 1.25; }
.garland-socket { stroke: rgba(218,196,157,.6); stroke-width: 1.2; }
.garland-bulb { fill: #313246; stroke: rgba(229,212,182,.44); stroke-width: 1; cursor: pointer; transition: fill .25s, filter .25s, transform .35s; transform-box: fill-box; transform-origin: center; }
.garland-bulb.is-open { fill: #f5d686; stroke: #fff0c5; filter: drop-shadow(0 0 5px rgba(245,214,134,.8)); animation: bulb-breathe 2.7s ease-in-out infinite; }
.garland-bulb:hover { transform: scale(1.35); }
.garland-bulb:focus-visible { outline: none; stroke: white; stroke-width: 2; }
.garland-caption { display: flex; justify-content: center; align-items: center; gap: 12px; color: #9e94a6; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.caption-sparkle { color: var(--gold); font-size: 11px; }
.calendar-section { padding: 22px 0 62px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.small-eyebrow { font-size: 8px; margin-bottom: 8px; }
.section-heading h2 { margin: 0; font-size: clamp(28px, 4vw, 39px); letter-spacing: -.025em; }
.section-heading h2 em { font-style: italic; }
.section-side-note { margin: 0 2px 3px 0; text-align: right; color: #b2a7b5; font-size: 10px; line-height: 1.75; }
.section-side-note span { color: var(--gold); font-size: 13px; }
.preview-banner { margin: -7px 0 17px; border: 1px solid rgba(212,175,99,.28); border-radius: 10px; padding: 10px 14px; background: rgba(117,84,38,.16); color: var(--gold-soft); font-size: 12px; text-align: center; }
.calendar-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; perspective: 1200px; }
.day-door { position: relative; min-width: 0; min-height: 126px; overflow: hidden; border: 1px solid rgba(230,213,181,.17); border-radius: 15px; padding: 13px 13px 11px; background: linear-gradient(145deg, rgba(47,48,70,.85), rgba(31,35,55,.91)); box-shadow: 0 8px 22px rgba(4,8,18,.12), inset 0 1px 0 rgba(255,255,255,.035); text-align: left; cursor: pointer; transform-style: preserve-3d; transition: transform .22s ease, border-color .24s, box-shadow .24s, background .24s; isolation: isolate; }
.day-door::before { content: ''; position: absolute; z-index: -1; inset: -40% -50%; opacity: 0; transform: translateX(-58%) rotate(18deg); background: linear-gradient(90deg, transparent, rgba(255,246,218,.1), transparent); transition: transform .55s ease, opacity .25s; }
.day-door:hover::before { opacity: 1; transform: translateX(58%) rotate(18deg); }
.day-door:hover { border-color: rgba(240,217,154,.48); box-shadow: 0 13px 28px rgba(3,6,16,.22), 0 0 20px rgba(212,175,99,.08); }
.day-door.is-open { background: linear-gradient(145deg, rgba(83,52,71,.75), rgba(39,37,57,.92)); border-color: rgba(212,175,99,.38); }
.day-door.is-current { border-color: rgba(241,201,125,.78); box-shadow: 0 0 0 1px rgba(241,201,125,.13), 0 0 24px rgba(224,160,119,.15); animation: current-glow 3.2s ease-in-out infinite; }
.day-door.is-current .day-number::after { content: '♥'; display: inline-block; margin-left: 4px; color: var(--rose); font-family: 'Quicksand', sans-serif; font-size: 9px; vertical-align: top; animation: heart-breathe 2s ease-in-out infinite; }
.day-door.is-locked { cursor: pointer; }
.day-door.is-shaking { animation: door-shake .48s ease; }
.day-door.is-opening { z-index: 2; animation: door-open .56s cubic-bezier(.2,.8,.2,1) forwards; }
.door-top { display: flex; align-items: start; justify-content: space-between; min-height: 27px; }
.day-number { color: var(--gold-soft); font-family: 'Playfair Display', Georgia, serif; font-size: 24px; line-height: 1; }
.day-icon { font-size: 14px; filter: saturate(.75); }
.door-label { display: block; margin-top: 19px; color: #e7dce0; font-size: 11px; font-weight: 600; }
.door-status { display: block; margin-top: 6px; color: #948c9f; font-size: 9px; letter-spacing: .02em; }
.day-door.is-open .door-status { color: var(--gold); }
.day-door.is-locked .door-status { color: #9d8b9b; }
.locked-mark { color: #d6abb8; font-size: 11px; }
.grid-footnote { margin: 23px 0 0; text-align: center; color: #8f899b; font-size: 10px; letter-spacing: .045em; }
.grid-footnote span { color: var(--gold); padding: 0 8px; }
.site-footer { position: relative; display: flex; align-items: center; justify-content: center; min-height: 110px; border-top: 1px solid rgba(255,255,255,.07); color: #aaa0ad; font-size: 11px; }
.site-footer p span { color: var(--rose); }
.secret-heart { position: absolute; right: 2px; top: 43px; border: 0; padding: 5px; background: none; color: rgba(232,163,178,.3); font-size: 13px; cursor: pointer; transition: color .2s, transform .2s; }
.secret-heart:hover { color: var(--rose); transform: scale(1.2); }
.footer-signoff { position: absolute; left: 0; color: #6f6b7b; font-size: 8px; letter-spacing: .22em; }
.footer-signoff i { color: var(--gold); font-style: normal; margin: 0 4px; }

.modal-backdrop { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 20px; background: rgba(8,10,19,.78); backdrop-filter: blur(10px); animation: fade-in .25s ease both; }
.modal-backdrop[hidden] { display: none; }
.surprise-modal { position: relative; width: min(470px, 100%); min-height: 350px; overflow: hidden; border: 1px solid rgba(240,217,154,.4); border-radius: 23px; padding: 34px clamp(23px, 6vw, 48px) 36px; background: radial-gradient(ellipse at 50% 0, rgba(112,66,91,.5), transparent 54%), linear-gradient(150deg, #24253b, #171b2e 80%); box-shadow: 0 28px 90px rgba(0,0,0,.52), 0 0 45px rgba(212,175,99,.09); animation: modal-spring .55s cubic-bezier(.16,1.18,.38,1) both; text-align: center; }
.surprise-modal::before { content: ''; position: absolute; inset: 10px; border: 1px solid rgba(240,217,154,.1); border-radius: 16px; pointer-events: none; }
.modal-close { position: absolute; z-index: 5; top: 14px; right: 17px; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; background: rgba(255,255,255,.04); color: #ddd1d7; font-size: 22px; cursor: pointer; }
.modal-day-mark { display: flex; justify-content: center; align-items: center; gap: 8px; color: var(--gold); font-size: 9px; letter-spacing: .2em; }
.modal-day-mark span:first-child { font-size: 13px; }
.modal-content { position: relative; margin-top: 29px; }
.modal-title { margin: 0 0 14px; color: #fff0df; font-size: clamp(27px, 7vw, 36px); line-height: 1.13; }
.modal-description { max-width: 345px; margin: 0 auto; color: #d0c5d0; font-size: 13px; line-height: 1.8; }
.modal-when { display: inline-flex; align-items: center; gap: 7px; margin-top: 20px; color: var(--gold-soft); font-size: 11px; }
.modal-when::before { content: '✧'; color: var(--gold); }
.activity-card .activity-icon { display: block; margin: -4px 0 14px; font-size: 34px; filter: drop-shadow(0 4px 12px rgba(212,175,99,.3)); }
.voucher-ticket { position: relative; margin: 0 auto; padding: 25px 20px 21px; border: 1px dashed rgba(212,175,99,.7); border-radius: 13px; background: linear-gradient(130deg, rgba(161,120,56,.18), rgba(92,56,73,.2)); }
.voucher-ticket::before, .voucher-ticket::after { content: ''; position: absolute; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; background: #1b1e31; }
.voucher-ticket::before { left: -10px; } .voucher-ticket::after { right: -10px; }
.voucher-button { position: relative; margin-top: 22px; padding: 11px 20px; border: 1px solid var(--gold); border-radius: 999px; background: linear-gradient(120deg, #d6b36a, #f1d996); color: #35243a; font-size: 11px; font-weight: 700; cursor: pointer; box-shadow: 0 7px 20px rgba(212,175,99,.15); transition: transform .2s; }
.voucher-button:hover { transform: translateY(-2px); }
.voucher-stamp { position: absolute; z-index: 2; top: 50%; left: 50%; color: #f1b1a2; font-size: 24px; font-weight: 700; letter-spacing: .13em; opacity: 0; transform: translate(-50%,-50%) rotate(-17deg) scale(1.8); pointer-events: none; }
.voucher-ticket.is-accepted .voucher-stamp { animation: stamp-in .48s cubic-bezier(.15,1.5,.4,1) forwards; }
.voucher-ticket.is-accepted .voucher-button { opacity: .28; }
.scratch-wrap { position: relative; min-height: 195px; display: grid; place-items: center; margin: -8px -8px 0; padding: 12px 0 0; user-select: none; -webkit-user-select: none; }
.scratch-message { position: relative; z-index: 1; width: 100%; padding: 15px 4px; opacity: .19; transition: opacity .65s ease, transform .65s ease; }
.scratch-wrap.is-revealed .scratch-message { opacity: 1; transform: translateY(-3px); }
.scratch-canvas { position: absolute; z-index: 2; inset: 7px 0 0; width: 100%; height: 190px; border-radius: 15px; touch-action: none; cursor: crosshair; }
.scratch-hint { position: absolute; z-index: 3; bottom: 21px; left: 50%; transform: translateX(-50%); color: #fff1c8; text-shadow: 0 1px 5px rgba(0,0,0,.45); font-size: 10px; pointer-events: none; letter-spacing: .05em; white-space: nowrap; }
.scratch-wrap.is-revealed .scratch-hint { opacity: 0; }
.scratch-sparkle { position: fixed; z-index: 28; color: #ffe5a0; text-shadow: 0 0 8px #f4cf77; pointer-events: none; animation: sparkle-pop .48s ease-out forwards; }
.burst-particle { position: fixed; z-index: 40; color: var(--gold-soft); pointer-events: none; font-size: 13px; animation: burst-fly 1s cubic-bezier(.15,.7,.25,1) var(--delay) forwards; }
.toast-region { position: fixed; z-index: 50; left: 50%; bottom: max(25px, env(safe-area-inset-bottom)); width: min(420px, calc(100% - 32px)); transform: translateX(-50%); pointer-events: none; }
.toast { margin: 0 auto 9px; width: fit-content; max-width: 100%; padding: 12px 18px; border: 1px solid rgba(240,217,154,.3); border-radius: 999px; background: rgba(26,28,44,.94); color: #fff0dd; box-shadow: 0 8px 30px rgba(0,0,0,.35); text-align: center; font-size: 12px; animation: toast-in .35s ease both; }
.wish-star { position: absolute; z-index: 2; border: 0; background: none; color: #f6dfa3; text-shadow: 0 0 9px rgba(246,223,163,.9); font-size: 15px; cursor: pointer; animation: star-twinkle 2.5s ease-in-out infinite alternate; }
.shooting-star { position: fixed; z-index: 2; top: 10vh; left: -100px; width: 150px; height: 42px; border: 0; padding: 0; background: transparent; transform: rotate(22deg); cursor: pointer; animation: shoot 5s linear forwards; }
.shooting-star::before { content: ''; position: absolute; top: 50%; right: 5px; width: 142px; height: 2px; transform: translateY(-50%); background: linear-gradient(90deg, transparent, #fff5d5 58%, rgba(255,245,213,.2)); filter: drop-shadow(0 0 5px #ffe7a4); }
.shooting-star::after { content: ''; position: absolute; right: 5px; top: calc(50% - 3px); width: 7px; height: 7px; border-radius: 50%; background: #fff8df; filter: drop-shadow(0 0 5px #ffe7a4); }
.shooting-star:hover, .shooting-star:focus-visible { animation-play-state: paused; }
.heart-rain { position: fixed; z-index: 30; top: -30px; color: #edaebb; pointer-events: none; animation: heart-fall 3s linear forwards; }
.screen-flash { position: fixed; z-index: 25; inset: 0; pointer-events: none; background: rgba(255,222,159,.28); animation: flash .65s ease-out forwards; }

/* Admin */
.admin-body { min-height: 100vh; }
.admin-shell { position: relative; z-index: 1; width: min(960px, calc(100% - 36px)); margin: 0 auto; padding-bottom: 75px; }
.admin-header { height: 68px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255,255,255,.07); }
.admin-label { color: var(--gold); font-size: 9px; letter-spacing: .22em; }
.login-panel { width: min(435px, 100%); margin: 12vh auto 0; padding: 38px; border: 1px solid var(--line); border-radius: 20px; background: var(--glass); box-shadow: 0 25px 70px rgba(0,0,0,.2); }
.login-panel h1, .editor-title-row h1 { margin: 0; font-size: 37px; letter-spacing: -.035em; }
.admin-lead { margin: 12px 0 26px; color: #bcb2bf; font-size: 12px; line-height: 1.6; }
.login-form { display: grid; gap: 15px; }
.login-form label, .admin-day-card label, .year-field { display: grid; gap: 7px; color: #cfc3ce; font-size: 10px; font-weight: 600; letter-spacing: .04em; }
.login-form input, .admin-day-card input, .admin-day-card textarea, .admin-day-card select, .year-field input, .settings-card textarea { width: 100%; border: 1px solid rgba(234,216,185,.17); border-radius: 9px; padding: 11px 12px; background: rgba(10,14,26,.55); color: var(--cream); font-size: 12px; }
.login-form input:focus, .admin-day-card input:focus, .admin-day-card textarea:focus, .admin-day-card select:focus { border-color: rgba(240,217,154,.55); outline: none; }
.primary-button { display: inline-flex; justify-content: center; align-items: center; gap: 15px; min-height: 42px; border: 1px solid rgba(245,222,166,.7); border-radius: 999px; padding: 0 20px; background: linear-gradient(115deg, #d0aa5d, #f0d996); color: #302333; font-size: 11px; font-weight: 700; cursor: pointer; transition: filter .2s, transform .2s; }
.primary-button:hover { filter: brightness(1.08); transform: translateY(-1px); }
.primary-button:disabled { opacity: .65; cursor: wait; }
.form-error { min-height: 17px; margin: 12px 0 0; color: #f0a8ae; font-size: 11px; }
.editor-panel { padding-top: 42px; }
.editor-panel[hidden], .login-panel[hidden] { display: none; }
.editor-title-row { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 25px; }
.editor-title-row .eyebrow { margin-bottom: 9px; }
.quiet-button { border: 1px solid rgba(255,255,255,.14); border-radius: 999px; padding: 9px 14px; background: rgba(255,255,255,.035); color: #c7bac8; font-size: 10px; cursor: pointer; }
.settings-card { display: grid; grid-template-columns: 180px 1fr; gap: 26px; align-items: center; margin-bottom: 22px; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; background: var(--glass); }
.year-field input { max-width: 130px; }
.preview-switch { display: flex; align-items: center; justify-content: space-between; gap: 20px; cursor: pointer; }
.preview-switch span { display: grid; gap: 5px; }
.preview-switch strong { font-size: 11px; }
.preview-switch small { color: #9c92a1; font-size: 10px; }
.preview-switch input { position: absolute; opacity: 0; }
.preview-switch i { position: relative; flex: 0 0 43px; height: 24px; border: 1px solid rgba(255,255,255,.18); border-radius: 99px; background: #282a3e; transition: .2s; }
.preview-switch i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #bdb1bd; transition: .2s; }
.preview-switch input:checked + i { background: #8c6b37; border-color: var(--gold); }
.preview-switch input:checked + i::after { left: 22px; background: #fff1c5; }
.preview-switch input:focus-visible + i { outline: 2px solid var(--gold-soft); outline-offset: 3px; }
.admin-days { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.admin-day-card { border: 1px solid rgba(234,216,185,.13); border-radius: 13px; padding: 15px; background: rgba(24,28,46,.78); }
.admin-day-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 13px; color: var(--gold-soft); font-family: 'Playfair Display', Georgia, serif; font-size: 17px; }
.admin-day-heading span { display: grid; place-items: center; width: 27px; height: 27px; border: 1px solid rgba(212,175,99,.32); border-radius: 50%; font-size: 12px; }
.admin-day-fields { display: grid; grid-template-columns: 1fr 100px; gap: 10px; }
.admin-day-fields .wide { grid-column: 1 / -1; }
.admin-day-card textarea { min-height: 66px; resize: vertical; line-height: 1.5; }
.admin-day-card select { appearance: auto; }
.save-bar { position: sticky; bottom: 12px; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-top: 22px; border: 1px solid rgba(234,216,185,.17); border-radius: 13px; padding: 12px 14px 12px 18px; background: rgba(21,25,42,.95); box-shadow: 0 10px 30px rgba(0,0,0,.24); backdrop-filter: blur(12px); }
.save-bar p { margin: 0; color: #aaa0ae; font-size: 10px; }
.build-reminder { margin: 14px 0; color: #a59bad; font-size: 10px; line-height: 1.7; }
.build-reminder span { color: var(--gold); margin-right: 4px; }
.build-reminder code { border-radius: 4px; padding: 2px 5px; background: rgba(255,255,255,.07); color: var(--gold-soft); font-family: ui-monospace, monospace; font-size: 10px; }
.settings-extras { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
.settings-extra { border: 1px solid var(--line); border-radius: 13px; padding: 16px; background: var(--glass); }
.settings-extra h2 { margin: 0 0 10px; color: var(--gold-soft); font: 500 16px 'Playfair Display', Georgia, serif; }
.settings-extra p { margin: 0 0 8px; color: #9c92a1; font-size: 10px; }
.settings-extra textarea { min-height: 100px; resize: vertical; line-height: 1.55; }

@keyframes aurora-drift { from { transform: translate3d(-2%,0,0) scale(1); } to { transform: translate3d(3%,4%,0) scale(1.08); } }
@keyframes bulb-breathe { 0%,100% { opacity: .78; } 50% { opacity: 1; } }
@keyframes garland-sway { 0%,100% { transform: rotate(0); } 35% { transform: rotate(.8deg); } 68% { transform: rotate(-.55deg); } }
@keyframes heart-breathe { 0%,100% { transform: scale(.85); opacity: .65; } 50% { transform: scale(1.2); opacity: 1; } }
@keyframes current-glow { 0%,100% { box-shadow: 0 0 0 1px rgba(241,201,125,.1), 0 0 18px rgba(224,160,119,.1); } 50% { box-shadow: 0 0 0 1px rgba(241,201,125,.23), 0 0 28px rgba(224,160,119,.22); } }
@keyframes door-shake { 0%,100% { transform: translateX(0); } 18%,58% { transform: translateX(-6px) rotate(-1deg); } 38%,78% { transform: translateX(6px) rotate(1deg); } }
@keyframes door-open { 0% { transform: rotateY(0) scale(1); box-shadow: 0 8px 22px rgba(4,8,18,.12); } 38% { box-shadow: 0 0 45px rgba(255,218,139,.78), 0 0 95px rgba(221,168,96,.28); filter: brightness(1.26); } 60% { transform: rotateY(-115deg) scale(1.03); opacity: .9; } 100% { transform: rotateY(-115deg) scale(.96); opacity: 0; box-shadow: 0 0 0 transparent; } }
@keyframes modal-spring { from { opacity: 0; transform: translateY(28px) scale(.82); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes stamp-in { 0% { opacity: 0; transform: translate(-50%,-50%) rotate(-17deg) scale(1.8); } 65% { opacity: .95; transform: translate(-50%,-50%) rotate(-17deg) scale(.9); } 100% { opacity: .9; transform: translate(-50%,-50%) rotate(-17deg) scale(1); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(9px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes star-twinkle { from { opacity: .45; transform: scale(.85); } to { opacity: 1; transform: scale(1.16); } }
@keyframes shoot { 0% { transform: translate3d(0,0,0) rotate(22deg); opacity: 0; } 8% { opacity: 1; } 90% { opacity: 1; } 100% { transform: translate3d(115vw,58vh,0) rotate(22deg); opacity: 0; } }
@keyframes heart-fall { to { transform: translate3d(20px,110vh,0) rotate(360deg); opacity: 0; } }
@keyframes flash { from { opacity: 1; } to { opacity: 0; } }
@keyframes sparkle-pop { from { opacity: 1; transform: scale(.3); } to { opacity: 0; transform: translateY(-13px) scale(1.35); } }
@keyframes burst-fly { to { opacity: 0; transform: translate(var(--dx),var(--dy)) scale(.35) rotate(70deg); } }

@media (max-width: 760px) {
  .page-shell { width: min(100% - 30px, 560px); }
  .topbar { height: 62px; }
  .topbar-note { font-size: 9px; }
  .sound-toggle { padding: 7px 10px; font-size: 10px; }
  .sound-toggle span { display: none; }
  .intro { padding-top: 58px; }
  .calendar-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
  .day-door { min-height: 113px; padding: 11px 10px 9px; border-radius: 13px; }
  .door-label { margin-top: 14px; font-size: 10px; }
  .door-status { font-size: 8px; }
  .garland-section { margin-bottom: 29px; }
  .garland { height: 62px; }
  .calendar-section { padding-top: 15px; }
  .settings-card { grid-template-columns: 1fr; gap: 16px; }
  .admin-days { grid-template-columns: 1fr; }
  .settings-extras { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .page-shell { width: calc(100% - 24px); }
  .topbar-note { max-width: 175px; text-align: center; line-height: 1.35; }
  .intro { padding-top: 48px; }
  .intro h1 { font-size: 53px; }
  .intro-copy { font-size: 12px; }
  .calendar-grid { gap: 7px; }
  .day-door { min-height: 103px; padding: 9px 8px; }
  .day-number { font-size: 21px; }
  .door-label { margin-top: 13px; font-size: 9px; }
  .section-side-note { font-size: 9px; }
  .garland-caption { font-size: 7px; gap: 8px; }
  .login-panel { padding: 28px 21px; }
  .admin-shell { width: calc(100% - 24px); }
  .editor-title-row h1 { font-size: 30px; }
  .save-bar p { max-width: 55%; line-height: 1.45; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .aurora-wash { animation: none; }
}
