/* christmastube.com — live-stream Christmas gift shopping (pre-launch).
   Night-time app look: deep evergreen-black, cranberry live accents, gold. */
:root {
  --bg: #0b1410;
  --bg-2: #101d17;
  --panel: #14241c;
  --line: rgba(255, 255, 255, 0.09);
  --ink: #f6f1e7;
  --muted: #a8b5ad;
  --red: #e2283b;
  --red-2: #b3172a;
  --gold: #f0c766;
  --green: #1d5a3c;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.5 Inter, Arial, sans-serif; }
a { color: inherit; }
img { max-width: 100%; height: auto; }

/* Top bar */
.ct-top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 18px; padding: 8px 20px;
  background: rgba(11, 20, 16, 0.86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.ct-top__brand img { display: block; height: 46px; width: auto; }
.ct-top__links { display: flex; gap: 4px; margin-left: auto; }
.ct-top__links a { padding: 8px 12px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 14px; color: var(--muted); }
.ct-top__links a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.06); }
.ct-top__go {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border: 0; border-radius: 999px;
  background: var(--red); color: #fff; font: 800 13px/1 Inter, Arial, sans-serif; opacity: 0.55; cursor: not-allowed;
}
.ct-top__go small { font-weight: 600; opacity: 0.85; }

/* Hero */
.ct-hero {
  position: relative; overflow: hidden; padding: 48px 20px 56px;
  background:
    radial-gradient(60% 80% at 85% 20%, rgba(226, 40, 59, 0.28), transparent 60%),
    radial-gradient(70% 90% at 10% 0%, rgba(29, 90, 60, 0.75), transparent 65%),
    var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.ct-snow {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image:
    radial-gradient(2px 2px at 20px 30px, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 140px 80px, #fff 50%, transparent 51%),
    radial-gradient(3px 3px at 90px 150px, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 210px 40px, #fff 50%, transparent 51%);
  background-size: 240px 200px; animation: ctSnow 18s linear infinite;
}
@keyframes ctSnow { to { background-position: 0 600px; } }
.ct-hero__grid { position: relative; max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 32px; align-items: center; }
.ct-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  background: rgba(226, 40, 59, 0.16); border: 1px solid rgba(226, 40, 59, 0.45); color: #ffd7dc; font-size: 13px; font-weight: 700;
}
.ct-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); display: inline-block; box-shadow: 0 0 0 0 rgba(226, 40, 59, 0.7); animation: ctPulse 1.8s infinite; }
.ct-dot--soon { background: var(--gold); box-shadow: 0 0 0 0 rgba(240, 199, 102, 0.6); }
@keyframes ctPulse { 70% { box-shadow: 0 0 0 9px rgba(226, 40, 59, 0); } 100% { box-shadow: 0 0 0 0 rgba(226, 40, 59, 0); } }
.ct-hero h1 { margin: 16px 0 12px; font: 900 clamp(38px, 6vw, 66px)/1.02 Fraunces, Georgia, serif; letter-spacing: -0.02em; }
.ct-hero h1 em { font-style: normal; color: var(--gold); }
.ct-hero p { margin: 0 0 24px; max-width: 560px; font-size: 17px; color: #d8e0db; }
.ct-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ct-cta {
  display: inline-block; padding: 13px 20px; border-radius: 999px; background: var(--red); color: #fff;
  font-weight: 800; text-decoration: none; box-shadow: 0 8px 24px rgba(226, 40, 59, 0.35);
}
.ct-cta--ghost { background: transparent; border: 1px solid rgba(255, 255, 255, 0.35); box-shadow: none; }
.ct-hero__logo img { display: block; width: min(420px, 100%); margin: 0 auto; filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.55)); }

/* Sections */
.ct-main { max-width: 1180px; margin: 0 auto; padding: 22px 16px 56px; }
.ct-cats { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 14px; scrollbar-width: none; }
.ct-cats::-webkit-scrollbar { display: none; }
.ct-cats button {
  flex: none; padding: 9px 15px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--ink);
  font: 600 13.5px/1 Inter, Arial, sans-serif; cursor: pointer;
}
.ct-cats button[aria-selected="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.ct-section { margin-top: 18px; }
.ct-section__head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.ct-section__head h2 { margin: 0; display: flex; align-items: center; gap: 10px; font: 800 22px/1.2 Inter, Arial, sans-serif; }
.ct-section__head p { margin: 0; color: var(--muted); font-size: 14px; }
.ct-empty { color: var(--muted); }

/* Stream cards (9:16, like a live-shopping feed) */
.ct-streams { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.ct-stream {
  position: relative; aspect-ratio: 9 / 16; border-radius: 16px; overflow: hidden; isolation: isolate;
  background: linear-gradient(160deg, var(--a), var(--b)); border: 1px solid var(--line); outline: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ct-stream:hover, .ct-stream:focus-visible { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45); }
.ct-stream__scene { position: absolute; inset: 0; display: grid; place-items: center; z-index: -1; }
.ct-stream__emoji { font-size: clamp(64px, 9vw, 96px); filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.35)); animation: ctBob 4s ease-in-out infinite; }
.ct-stream:nth-child(2n) .ct-stream__emoji { animation-delay: -1.5s; }
@keyframes ctBob { 50% { transform: translateY(-8px) rotate(-3deg); } }
.ct-stream__flakes {
  position: absolute; inset: 0; opacity: 0.45;
  background-image: radial-gradient(2px 2px at 30px 40px, #fff 50%, transparent 51%), radial-gradient(2px 2px at 120px 90px, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 70px 160px, #fff 50%, transparent 51%);
  background-size: 160px 200px; animation: ctSnow 22s linear infinite;
}
.ct-stream::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, rgba(0, 0, 0, 0.25), transparent 30%, transparent 55%, rgba(0, 0, 0, 0.8)); }
.ct-stream__badge {
  position: absolute; top: 10px; left: 10px; padding: 4px 8px; border-radius: 6px; background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(240, 199, 102, 0.6); color: var(--gold); font: 800 10.5px/1 Inter, Arial, sans-serif; letter-spacing: 0.08em;
}
.ct-stream__cat { position: absolute; top: 10px; right: 10px; padding: 4px 8px; border-radius: 6px; background: rgba(0, 0, 0, 0.4); font-size: 11px; font-weight: 600; }
.ct-stream__chat { position: absolute; left: 10px; right: 10px; bottom: 86px; font-size: 11.5px; }
.ct-stream__chat span { display: inline-block; padding: 5px 9px; border-radius: 10px; background: rgba(0, 0, 0, 0.45); color: #e8ece9; }
.ct-stream__foot { position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 10px; align-items: flex-start; padding: 12px; }
.ct-stream__host {
  flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px;
  background: rgba(255, 255, 255, 0.92); color: #1a1a1a; border: 2px solid var(--gold);
}
.ct-stream__foot strong { display: block; font-size: 14px; line-height: 1.2; }
.ct-stream__foot p { margin: 2px 0 0; font-size: 12.5px; line-height: 1.3; color: #dfe6e2; }

/* Upcoming shows */
.ct-shows { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ct-show { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.ct-show__n { font: 900 20px/1 Fraunces, Georgia, serif; color: var(--gold); min-width: 30px; }
.ct-show div { flex: 1; min-width: 0; }
.ct-show strong { display: block; }
.ct-show div span { color: var(--muted); font-size: 13px; }
.ct-show__when { flex: none; padding: 6px 10px; border-radius: 999px; background: rgba(240, 199, 102, 0.12); color: var(--gold); font-size: 12px; font-weight: 700; }

/* How it works */
.ct-how { margin-top: 30px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ct-how div { padding: 18px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.ct-how span { font-size: 26px; }
.ct-how h3 { margin: 8px 0 4px; font-size: 16px; }
.ct-how p { margin: 0; color: var(--muted); font-size: 14px; }

/* Top Givers */
.ct-board { margin-top: 30px; }
.ct-board__head { background: var(--panel); border: 1px solid var(--line); border-bottom: 0; border-radius: 14px 14px 0 0; padding: 18px 20px 6px; }
.ct-board__head h2 { margin: 0; font: 900 24px/1.1 Fraunces, Georgia, serif; color: var(--gold); }
.ct-board__head p { margin: 4px 0 0; color: var(--muted); font-size: 13.5px; }
.ct-board__list {
  list-style: none; margin: 0; padding: 10px 20px 18px; background: var(--panel); border: 1px solid var(--line); border-top: 0;
  border-radius: 0 0 14px 14px; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px 18px;
}
.ct-board__empty { grid-column: 1 / -1; color: var(--muted); padding: 8px 0; }
.ct-giver { display: grid; grid-template-columns: 30px 40px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.ct-giver img, .ct-giver__blank { grid-row: 1 / 3; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; background: rgba(255, 255, 255, 0.06); font-size: 20px; }
.ct-giver__rank { grid-row: 1 / 3; font: 900 20px/1 Fraunces, Georgia, serif; color: var(--muted); text-align: center; }
.ct-giver strong { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct-giver__count { grid-column: 3; font-size: 12.5px; color: var(--muted); }
.ct-giver--1 .ct-giver__rank { color: var(--gold); }
.ct-giver--2 .ct-giver__rank { color: #c7d0d9; }
.ct-giver--3 .ct-giver__rank { color: #d08a4e; }

.ct-foot { padding: 24px 16px 40px; text-align: center; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }

@media (prefers-reduced-motion: reduce) {
  .ct-snow, .ct-stream__flakes, .ct-stream__emoji, .ct-dot { animation: none; }
}
@media (max-width: 860px) {
  .ct-hero__grid { grid-template-columns: 1fr; text-align: center; }
  .ct-hero__logo { order: -1; }
  .ct-hero__logo img { width: min(220px, 58vw); }
  .ct-hero p { margin-left: auto; margin-right: auto; }
  .ct-hero__actions { justify-content: center; }
  .ct-how { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .ct-top { padding: 6px 12px; gap: 8px; }
  .ct-top__brand img { height: 38px; }
  .ct-top__links { display: none; }
  .ct-top__go { margin-left: auto; }
  .ct-hero { padding: 26px 16px 36px; }
  .ct-streams { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ct-stream__chat { display: none; }
  .ct-stream__foot { padding: 10px; }
  .ct-stream__foot p { display: none; }
  .ct-show { padding: 12px; gap: 10px; }
}
