/* OurChristmas.app — 70s/80s retro: black CRT, neon glow, rainbow speed stripes in Christmas colors. */
@font-face { font-family: 'Fraunces'; src: url('/fonts/fraunces-soft.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url('/fonts/figtree.woff2') format('woff2'); font-weight: 300 900; font-display: swap; }

:root {
  --bg: #0c0a09;
  --card: #17120f;
  --card-2: #1f1813;
  --ink: #f7e9c9;          /* warm CRT cream */
  --muted: #b3a48a;
  --line: #34291f;
  --s1: #ff4d3d;           /* red */
  --s2: #ff8c26;           /* orange */
  --s3: #ffd23f;           /* gold */
  --s4: #3fd46b;           /* green */
  --s5: #2fc4e8;           /* teal */
  --red: var(--s1);
  --gold: var(--s3);
  --green: var(--s4);
  --glow: 0 0 6px rgba(255, 214, 150, .45), 0 0 22px rgba(255, 140, 38, .22);
  --radius: 20px;
  --stripes: linear-gradient(var(--s1) 0 20%, var(--s2) 20% 40%, var(--s3) 40% 60%, var(--s4) 60% 80%, var(--s5) 80% 100%);
  --stripes-gap: linear-gradient(var(--s1) 0 12%, transparent 12% 22%, var(--s2) 22% 34%, transparent 34% 44%, var(--s3) 44% 56%, transparent 56% 66%, var(--s4) 66% 78%, transparent 78% 88%, var(--s5) 88% 100%);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html { background: var(--bg); }
body {
  background: radial-gradient(120% 80% at 50% 0%, #1d1510 0%, var(--bg) 60%) fixed, var(--bg);
  color: var(--ink);
  font: 16px/1.5 Figtree, system-ui, -apple-system, sans-serif;
  min-height: 100vh; -webkit-font-smoothing: antialiased;
  padding-bottom: env(safe-area-inset-bottom);
}
/* CRT scanlines + vignette */
body::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 40;
  background:
    repeating-linear-gradient(to bottom, transparent 0 2px, rgba(0, 0, 0, .16) 2px 3px),
    radial-gradient(130% 100% at 50% 50%, transparent 60%, rgba(0, 0, 0, .55) 100%);
}
h1, h2, h3, .display {
  font-family: Fraunces, 'Cooper Black', Georgia, serif; font-weight: 800;
  font-variation-settings: 'SOFT' 100, 'WONK' 1, 'opsz' 72;
  line-height: 1.08; margin: 0 0 .4em; letter-spacing: -.01em; text-shadow: var(--glow);
}
h1 { font-size: clamp(2rem, 7vw, 2.7rem); }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.12rem; text-shadow: none; }
p { margin: 0 0 .8em; }
a { color: var(--s3); }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.center { text-align: center; }
[hidden] { display: none !important; }

/* twinkling lights */
#snow { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
#snow i { position: absolute; top: -10px; border-radius: 50%; opacity: .5; animation: fall linear infinite; box-shadow: 0 0 8px currentColor; }
@keyframes fall { to { transform: translateY(105vh) translateX(24px); } }
@media (prefers-reduced-motion: reduce) { #snow { display: none; } }

/* header with stripe underline */
.top {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: calc(10px + env(safe-area-inset-top)) 16px 12px; background: rgba(12, 10, 9, .86);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.top::after { content: ''; position: absolute; left: 0; right: 0; bottom: -10px; height: 10px; background: var(--stripes-gap); opacity: .9; }
.in-app .top { padding-top: 10px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; }
.brand svg { width: 30px; height: 34px; flex: none; filter: drop-shadow(0 0 4px rgba(255, 160, 60, .5)); }
.brand-word { font-family: Fraunces, Georgia, serif; font-weight: 800; font-variation-settings: 'SOFT' 100, 'WONK' 1, 'opsz' 72; font-size: 1.35rem; text-shadow: var(--glow); }
.brand-word .dot { color: var(--s3); }
.brand-word .our { color: var(--s2); font-style: italic; margin-right: 1px; }
@media (max-width: 360px) { .brand-word { font-size: 1.15rem; } }
.profile-btn {
  border: 1.5px solid var(--line); background: var(--card); color: var(--ink); border-radius: 999px;
  padding: 6px 13px; font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; max-width: 46vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

main { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; padding: 22px 16px 64px; }

.card { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 0 0 14px; position: relative; }
.card.flat { background: transparent; }
/* "neon" feature card: dark with stripe band on the left edge */
.card.red, .card.green, .card.gold { overflow: hidden; }
.card.red { border-color: rgba(255, 77, 61, .55); box-shadow: 0 0 0 1px rgba(255, 77, 61, .15), 0 0 28px rgba(255, 77, 61, .18); padding-left: 30px; }
.card.red::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 14px;
  background: linear-gradient(90deg, var(--s1) 0 20%, var(--s2) 20% 40%, var(--s3) 40% 60%, var(--s4) 60% 80%, var(--s5) 80% 100%); }
.card.red .muted { color: var(--muted); }
.card.green { border-color: rgba(63, 212, 107, .45); box-shadow: 0 0 22px rgba(63, 212, 107, .12); }
.card.gold { border-color: rgba(255, 210, 63, .4); box-shadow: 0 0 22px rgba(255, 210, 63, .1); }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 26px 2px 10px; }
.section-title h2, .section-title h3 { margin: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 13px 22px; font: inherit; font-weight: 800; letter-spacing: .01em; cursor: pointer;
  background: var(--s1); color: #1a0806; text-decoration: none; min-height: 50px; transition: transform .08s, opacity .2s, box-shadow .2s;
  box-shadow: 0 0 18px rgba(255, 77, 61, .45), inset 0 -3px 0 rgba(0, 0, 0, .18);
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .45; cursor: default; }
.btn.block { width: 100%; }
.btn.green { background: var(--s4); color: #06200f; box-shadow: 0 0 18px rgba(63, 212, 107, .4), inset 0 -3px 0 rgba(0, 0, 0, .18); }
.btn.white { background: var(--s3); color: #2a1c00; box-shadow: 0 0 18px rgba(255, 210, 63, .45), inset 0 -3px 0 rgba(0, 0, 0, .15); }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); box-shadow: none; }
.btn.ghost:hover { border-color: var(--muted); }
.btn.small { padding: 7px 14px; min-height: 36px; font-size: .88rem; }
.btn.link { background: none; color: var(--s2); padding: 4px; min-height: 0; font-weight: 700; box-shadow: none; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.row > .grow { flex: 1; min-width: 0; }
.stack > * + * { margin-top: 10px; }

label.field { display: block; margin: 0 0 13px; }
label.field > span { display: block; font-weight: 700; font-size: .88rem; margin-bottom: 5px; color: var(--s3); letter-spacing: .02em; }
label.field > small { display: block; color: var(--muted); font-size: .82rem; margin-top: 4px; }
input[type=text], input[type=tel], input[type=url], input[type=number], input[type=date], textarea, select {
  width: 100%; font: inherit; color: var(--ink); background: #0f0c0a; border: 1.5px solid var(--line);
  border-radius: 14px; padding: 12px 14px; outline: none; -webkit-appearance: none; appearance: none;
}
input::placeholder, textarea::placeholder { color: #6f6352; }
select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
input:focus, textarea:focus, select:focus { border-color: var(--s2); box-shadow: 0 0 0 3px rgba(255, 140, 38, .2), 0 0 14px rgba(255, 140, 38, .25); }
textarea { min-height: 90px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 12px; cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--s1); margin: 1px 0 0; flex: none; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 380px) { .two { grid-template-columns: 1fr; } }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 0; }
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: .8rem; font-weight: 700; padding: 3px 11px; border-radius: 999px; border: 1.5px solid rgba(255, 210, 63, .45); color: var(--s3); }
.chip.green { border-color: rgba(63, 212, 107, .5); color: var(--s4); }
.chip.red { border-color: rgba(255, 77, 61, .55); color: var(--s1); }

.tabs { display: flex; gap: 4px; background: var(--card); border: 1.5px solid var(--line); border-radius: 999px; padding: 4px; margin: 0 0 14px; overflow-x: auto; }
.tabs button { flex: 1; border: 0; background: none; font: inherit; font-weight: 700; font-size: .9rem; padding: 9px 10px; border-radius: 999px; color: var(--muted); cursor: pointer; white-space: nowrap; }
.tabs button.on { background: var(--s2); color: #241000; box-shadow: 0 0 14px rgba(255, 140, 38, .45); }

.list { list-style: none; margin: 0; padding: 0; }
.item { display: flex; gap: 12px; align-items: flex-start; padding: 13px 0; border-top: 1px dashed var(--line); }
.item:first-child { border-top: 0; padding-top: 2px; }
.item:last-child { padding-bottom: 2px; }
.item .body { flex: 1; min-width: 0; }
.item .title { font-weight: 700; overflow-wrap: anywhere; }
.item .meta { color: var(--muted); font-size: .88rem; overflow-wrap: anywhere; }
.item .meta a { color: var(--s5); }
.item .star { color: var(--s3); text-shadow: 0 0 8px rgba(255, 210, 63, .7); }
.item.claimed .title { text-decoration: line-through; text-decoration-color: var(--muted); opacity: .6; }
.icon-btn { border: 0; background: none; font: inherit; color: var(--muted); padding: 6px 8px; cursor: pointer; border-radius: 10px; font-size: 1.05rem; line-height: 1; }
.icon-btn:hover { background: var(--card-2); color: var(--ink); }

.person { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px dashed var(--line); }
.person:first-child { border-top: 0; padding-top: 2px; }
.person:last-child { padding-bottom: 2px; }
.avatar { width: 42px; height: 42px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #120c08;
  font-family: Fraunces, Georgia, serif; font-variation-settings: 'SOFT' 100, 'WONK' 1; box-shadow: 0 0 12px currentColor; }
.person .body { flex: 1; min-width: 0; }
.person .name { font-weight: 700; }
.person .sub { font-size: .85rem; color: var(--muted); }
.tag { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.tag.ok { color: var(--s4); text-shadow: 0 0 8px rgba(63, 212, 107, .5); }

/* landing hero */
.hero { text-align: center; padding: 8px 0 6px; }
.hero-logo { width: 100%; max-width: 520px; height: auto; display: block; margin: 0 auto 6px; filter: drop-shadow(0 0 6px rgba(255, 150, 60, .45)); }
.hero h1 { font-size: clamp(1.8rem, 7vw, 2.5rem); }
.hero p.lead { font-size: 1.1rem; color: var(--muted); max-width: 30em; margin: 0 auto 22px; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; text-align: left; }
.steps li { counter-increment: s; display: flex; gap: 14px; align-items: flex-start; padding: 11px 0; }
.steps li::before { content: counter(s); flex: none; width: 34px; height: 34px; border-radius: 50%; font-family: Fraunces, Georgia, serif; font-variation-settings: 'SOFT' 100;
  font-weight: 800; display: grid; place-items: center; color: #120c08; }
.steps li:nth-child(1)::before { background: var(--s1); box-shadow: 0 0 12px var(--s1); }
.steps li:nth-child(2)::before { background: var(--s3); box-shadow: 0 0 12px var(--s3); }
.steps li:nth-child(3)::before { background: var(--s4); box-shadow: 0 0 12px var(--s4); }
.tagline { font-family: Fraunces, Georgia, serif; font-variation-settings: 'SOFT' 100, 'WONK' 1; font-style: italic; color: var(--s2); font-size: 1.05rem; text-shadow: 0 0 10px rgba(255, 140, 38, .4); }

.reveal { text-align: center; padding: 26px 18px 22px 30px; }
.reveal .who { font-family: Fraunces, Georgia, serif; font-variation-settings: 'SOFT' 100, 'WONK' 1, 'opsz' 72; font-size: clamp(2.1rem, 9vw, 2.9rem); font-weight: 800; margin: 6px 0 14px;
  color: var(--s3); text-shadow: 0 0 8px rgba(255, 210, 63, .6), 0 0 26px rgba(255, 140, 38, .35); line-height: 1.05; }
.reveal .cover { cursor: pointer; border: 2px dashed rgba(255, 210, 63, .5); border-radius: 16px; padding: 22px; margin: 8px 0 14px; font-weight: 800; color: var(--s3); }
.bow { font-size: 2.1rem; line-height: 1; }

.empty { text-align: center; color: var(--muted); padding: 18px 8px; }
.back { display: inline-block; margin: 0 0 10px; color: var(--muted); text-decoration: none; font-weight: 700; }

.sheet { position: fixed; inset: 0; z-index: 20; background: rgba(0, 0, 0, .65); display: flex; align-items: flex-end; justify-content: center; }
.sheet-card { background: var(--card); border: 1.5px solid var(--line); border-bottom: 0; width: 100%; max-width: 560px; max-height: 92vh; overflow: auto; border-radius: 24px 24px 0 0;
  padding: 0 18px calc(22px + env(safe-area-inset-bottom)); animation: up .22s ease-out; }
.sheet-card::before { content: ''; display: block; height: 8px; margin: 0 -18px 16px; background: var(--stripes); }
@media (min-width: 600px) { .sheet { align-items: center; } .sheet-card { border-radius: 24px; border-bottom: 1.5px solid var(--line); } }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.sheet-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.sheet-head h2 { margin: 0; }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); background: var(--s3); color: #241a00;
  padding: 10px 18px; border-radius: 999px; font-weight: 800; opacity: 0; pointer-events: none; transition: .25s; z-index: 30; max-width: calc(100% - 32px);
  box-shadow: 0 0 22px rgba(255, 210, 63, .5); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

.prompt-box { white-space: pre-wrap; font: .82rem/1.5 ui-monospace, 'SF Mono', Menlo, monospace; color: var(--s4); background: #070605; border: 1.5px solid var(--line);
  border-radius: 14px; padding: 12px; max-height: 180px; overflow: auto; text-shadow: 0 0 6px rgba(63, 212, 107, .35); }
.pick { display: flex; gap: 10px; padding: 9px 0; border-top: 1px dashed var(--line); align-items: flex-start; }
.pick input { width: 20px; height: 20px; accent-color: var(--s1); flex: none; margin-top: 2px; }
.match { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; padding: 8px 0; border-top: 1px dashed var(--line); }
.match .arrow { color: var(--s2); }
.spinner { width: 26px; height: 26px; border: 3px solid var(--line); border-top-color: var(--s2); border-radius: 50%; animation: spin .8s linear infinite; margin: 40px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
footer.foot { text-align: center; color: var(--muted); font-size: .85rem; padding: 18px 0; }
footer.foot a { color: var(--muted); }
.in-app .web-only { display: none !important; }
