:root { --santa-red: #b3202a; --santa-green: #1f6f43; --snow: #f7fbff; --gold: #e8b923; }

body { background: radial-gradient(ellipse at top, #17405c, #071622 75%) fixed; color: #fff; min-height: 100vh; }
.card { color: #212529; }
body .text-muted { color: #b9cbd6 !important; }
.card .text-muted, .card .form-text { color: #6c757d !important; }

/* string of fairy lights along the top */
.lights { height: 10px; background:
    radial-gradient(circle 4px, #ff4d4d 90%, transparent) 0 0 / 60px 10px repeat-x,
    radial-gradient(circle 4px, #ffd84d 90%, transparent) 15px 0 / 60px 10px repeat-x,
    radial-gradient(circle 4px, #4dff88 90%, transparent) 30px 0 / 60px 10px repeat-x,
    radial-gradient(circle 4px, #4da6ff 90%, transparent) 45px 0 / 60px 10px repeat-x;
    animation: twinkle 2s infinite alternate; }
@keyframes twinkle { from { opacity: .55; } to { opacity: 1; } }

.santa-nav { background: transparent; }
.santa-nav .navbar-brand { font-weight: 700; letter-spacing: .5px; }
.santa-nav .nav-link { color: #fff; }

main h1, main h2, main h3 { color: #fff; text-shadow: 0 2px 6px rgba(0,0,0,.4); }
.card h1, .card h2, .card h3, .card h4 { color: var(--santa-green); text-shadow: none; }
.hero { color: #fff; text-align: center; padding: 1rem 0 2rem; }
.hero h1 { color: #fff; font-size: 2.6rem; text-shadow: 0 2px 6px rgba(0,0,0,.4); }

.santa-card { border: 2px solid var(--santa-green); border-radius: 14px; box-shadow: 0 4px 12px rgba(0,0,0,.12); }
.santa-card .card-header { background: var(--santa-green); color: #fff; font-weight: 600; }
.btn-santa { background: var(--santa-red); border-color: var(--santa-red); color: #fff; }
.btn-santa:hover { background: #8f1a22; border-color: #8f1a22; color: #fff; }

.reveal-name { font-size: 2.2rem; font-weight: 700; color: var(--santa-red); }
.reveal-anim { animation: pop .9s ease-out; }
@keyframes pop { 0% { transform: scale(.2) rotate(-8deg); opacity: 0; } 60% { transform: scale(1.2); opacity: 1; } 100% { transform: scale(1); } }

/* chat */
.chat { max-height: 260px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding: 4px; }
.bubble { max-width: 85%; padding: 6px 10px; border-radius: 12px; font-size: .95rem; word-wrap: break-word; }
.bubble .who { font-size: .7rem; opacity: .7; }
.bubble.mine { align-self: flex-end; background: #d9f2e3; }
.bubble.theirs { align-self: flex-start; background: #fde3e3; }

.wish-list { list-style: none; padding-left: 0; margin: 0 0 .75rem; }
.wish-list li { padding: 4px 0; border-bottom: 1px dashed #ccd; display: flex; justify-content: space-between; align-items: center; gap: 8px; }

/* falling snow (created by site.js) */
.flake { position: fixed; top: -20px; color: #fff; pointer-events: none; user-select: none; z-index: 5; animation: fall linear infinite; }
@keyframes fall { to { transform: translateY(105vh) rotate(360deg); } }

/* ---------- Christmas tree landing page ---------- */
body.night { background: radial-gradient(ellipse at top, #17405c, #071622 75%) fixed; color: #fff; }
.night footer { color: #9fb6c9 !important; }
.tree-title { color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.5); }

.sack-pill { display: inline-block; margin: 0 4px 6px; padding: 4px 14px; border-radius: 20px; border: 1px solid rgba(255,255,255,.5); color: #fff; text-decoration: none; }
.sack-pill.active { background: var(--santa-red); border-color: var(--santa-red); }

.tree { --b: min(46px, 11vw); display: inline-block; position: relative; max-width: 100%; }
.tree .star { font-size: 2.2rem; line-height: 1; margin-bottom: -26px; position: relative; z-index: 2; filter: grayscale(.8) brightness(.8); }
.tree .star.all { filter: none; animation: pulse 1.2s infinite alternate; }
@keyframes pulse { from { transform: scale(1); text-shadow: 0 0 6px #ffd84d; } to { transform: scale(1.25); text-shadow: 0 0 22px #ffd84d; } }

.tree-body { position: relative; padding: 40px 0 14px; width: calc(var(--rows) * (var(--b) + 10px) + 60px); max-width: 100%; margin: 0 auto; }
.tree-body::before { content: ""; position: absolute; inset: 0; background: linear-gradient(#1f8a4f, #0c4a2b); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.tree-row { position: relative; display: flex; justify-content: center; gap: 10px; margin-bottom: 10px; }
.trunk { width: 36px; height: 34px; margin: 0 auto; background: #6b4423; border-radius: 0 0 6px 6px; }

.bauble { width: var(--b); height: var(--b); border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: calc(var(--b) * .42); white-space: nowrap; overflow: hidden; letter-spacing: -.02em; background: #3b4a53; color: #93a5ae; border: 2px solid rgba(255,255,255,.3); transition: all .5s; }
.bauble.c0 { --c: #ff4d5e; } .bauble.c1 { --c: #ffc83d; } .bauble.c2 { --c: #4db8ff; } .bauble.c3 { --c: #c77dff; }
.bauble.lit { color: #fff; border-color: rgba(255,255,255,.8); background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.75), var(--c) 55%);
    box-shadow: 0 0 14px 4px var(--c); animation: glow 1.6s infinite alternate; }
@keyframes glow { from { filter: brightness(.85); } to { filter: brightness(1.3); } }

/* ---------- draw reveal ---------- */
.reveal-stage { min-height: 170px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.gift-box { font-size: 5rem; line-height: 1; background: none; border: 0; padding: 0; cursor: pointer; animation: bob 1.6s ease-in-out infinite; }
.gift-box:disabled { cursor: default; }
.gift-box.shake { animation: shake .35s linear infinite; }
.gift-box.open { animation: pop .9s ease-out; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-3deg); } }
@keyframes shake { 25% { transform: rotate(-8deg); } 75% { transform: rotate(8deg); } }
.reel-name { font-size: 2.2rem; font-weight: 700; color: var(--santa-red); min-height: 2.8rem; }
.reel-name.spinning { filter: blur(.7px); }
.secret-blur { filter: blur(10px); user-select: none; }
#confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 50; }

/* ---------- public page ---------- */
html { scroll-behavior: smooth; }
.hp-field { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
