/* Santa Magic Sort — cozy Christmas workshop. Snow night, warm wood, gold lights. */

:root {
  --night: #182042;
  --night-2: #232c56;
  --wood: #8f3626;
  --wood-2: #b04a33;
  --gold: #f0b954;
  --gold-2: #c98f2e;
  --snow: #f4f7ff;
  --ink: #2b2e3d;
  --ink-soft: #4c5165;
  --card: #ffffff;
  --line: #e3e8f4;
  --radius: 18px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background:
    radial-gradient(1100px 500px at 50% -140px, #2c366b 0%, var(--night) 62%),
    var(--night);
  color: var(--snow);
  font: 17px/1.65 -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.wrap { max-width: 900px; margin: 0 auto; padding: 0 16px; }

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--gold);
  line-height: 1.25;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(1.9rem, 4.6vw, 2.7rem); letter-spacing: .5px; }
h2 { font-size: clamp(1.35rem, 3vw, 1.7rem); margin-top: 2em; }
h3 { font-size: 1.12rem; }

a { color: var(--gold); }

/* ---------- masthead ---------- */
.masthead { background: linear-gradient(180deg, #131a38, #1a2248); border-bottom: 3px solid var(--gold-2); }
.masthead-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 12px; }
.brand {
  font-family: Georgia, serif;
  font-size: 1.3rem;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: .5px;
}
.mastnav a {
  color: #cdd6f5; text-decoration: none; font-size: .95rem;
  padding: 6px 10px; border-radius: 10px;
}
.mastnav a:hover { color: var(--gold); }

/* string lights */
.lightstring { display: flex; gap: 9%; padding: 0 6%; height: 16px; overflow: hidden; }
.lightstring span {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px 2px rgba(240, 185, 84, .55);
  animation: glow 2.4s ease-in-out infinite alternate;
}
.lightstring span:nth-child(2n) { animation-delay: .8s; background: #e46e5c; box-shadow: 0 0 8px 2px rgba(228, 110, 92, .5); }
.lightstring span:nth-child(3n) { animation-delay: 1.5s; }
@keyframes glow { from { opacity: .55; } to { opacity: 1; } }

/* ---------- hero ---------- */
.hero { text-align: center; padding-top: 26px; }
.tagline { color: #c9d3f2; margin: 0 auto 20px; max-width: 620px; font-size: 1.02rem; }

.stage-box { max-width: 860px; margin: 0 auto; }
.stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #0d1230;
  border: 3px solid var(--gold-2);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .45);
}
.stage[data-gf-state="playing"] { background: #000; }

.cover { position: absolute; inset: 0; }
.cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover::after {
  content: ""; position: absolute; inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(13, 18, 48, .05) 40%, rgba(13, 18, 48, .72));
}
.playbtn {
  position: absolute; left: 50%; bottom: 12%;
  transform: translateX(-50%);
  font: 700 1.15rem/1 Georgia, serif;
  color: #22160a;
  background: linear-gradient(180deg, var(--gold), var(--gold-2));
  border: 2px solid #7a5518;
  border-radius: 999px;
  padding: 15px 30px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .5);
}
.playbtn:hover { filter: brightness(1.07); }
.playbtn:active { transform: translateX(-50%) translateY(2px); }

.stagerow {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; flex-wrap: wrap;
  padding: 14px 4px 0;
}
.pill {
  font: 600 .95rem/1 inherit;
  color: var(--snow);
  background: var(--night-2);
  border: 1px solid #46507f;
  border-radius: 999px;
  padding: 10px 18px;
  cursor: pointer;
}
.pill:hover { border-color: var(--gold); color: var(--gold); }
.pill[aria-pressed="true"], .like[data-gf-liked] {
  background: #5e2433; border-color: #a1495f; color: #ffd7df;
}
.sharemsg { color: #9fe6b8; font-size: .9rem; min-width: 90px; text-align: left; }
.pillcount { color: #c9d3f2; font-size: .95rem; }

/* ---------- loader: pouring ---------- */
.loader {
  position: absolute; inset: 0;
  display: none;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 18px;
  background: radial-gradient(600px 300px at 50% 30%, #232c56 0%, #0d1230 75%);
}
.stage[data-gf-state="loading"] .loader { display: flex; }
.pour { position: relative; width: 120px; height: 130px; }
.pour-jug {
  position: absolute; top: 0; left: 8px;
  width: 46px; height: 34px;
  border: 4px solid #cdd6f5; border-radius: 8px 8px 14px 4px;
  transform: rotate(-24deg);
  background: linear-gradient(180deg, rgba(205, 214, 245, .25), rgba(205, 214, 245, .05));
}
.pour-stream {
  position: absolute; top: 30px; left: 58px;
  width: 5px; height: 46px;
  background: linear-gradient(180deg, #e46e5c, var(--wood-2));
  border-radius: 3px;
  animation: drip .5s linear infinite;
}
@keyframes drip { from { transform: scaleY(.6); transform-origin: top; } to { transform: scaleY(1); } }
.pour-glass {
  position: absolute; bottom: 0; right: 12px;
  width: 52px; height: 64px;
  border: 4px solid #cdd6f5; border-top-width: 2px;
  border-radius: 6px 6px 16px 16px;
  overflow: hidden;
  background: rgba(205, 214, 245, .08);
}
.pour-fill {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 30%;
  background: linear-gradient(180deg, #e46e5c, var(--wood));
  animation: fillup 2.2s ease-in-out infinite alternate;
}
@keyframes fillup { from { height: 18%; } to { height: 62%; } }
.loader-text { color: #c9d3f2; font-family: Georgia, serif; letter-spacing: .4px; margin: 0; }

/* ---------- prose ---------- */
.prose {
  background: var(--card);
  color: var(--ink);
  border-radius: var(--radius);
  padding: clamp(20px, 4vw, 40px);
  margin: 34px 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
}
.prose h2, .prose h3 { color: var(--wood); margin-top: 1.9em; }
.prose p, .prose li { color: var(--ink); }
.prose a { color: var(--wood-2); }
.prose img { max-width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); }
.prose figure { margin: 1.4em 0; }
.prose figcaption { color: var(--ink-soft); font-size: .9rem; padding-top: 8px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .35em 0; }

/* ---------- faq ---------- */
.faqblock h2 { color: var(--wood); }
.faq {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px;
  margin: 10px 0;
  background: #fbfcff;
}
.faq summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.faq[open] summary { color: var(--wood-2); }
.faq p { margin: 10px 0 2px; color: var(--ink-soft); }

/* ---------- comments ---------- */
.commentsbox h2 { color: var(--wood); }
.cform textarea, .cform input {
  width: 100%;
  font: inherit;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  background: #fbfcff;
}
.cform .crow { margin-bottom: 10px; }
.cform label { font-size: .92rem; color: var(--ink-soft); display: block; }
.cform label input { margin-top: 6px; }
.cform button {
  margin-top: 12px;
  font: 700 1rem/1 inherit;
  color: #22160a;
  background: linear-gradient(180deg, var(--gold), var(--gold-2));
  border: 2px solid #7a5518;
  border-radius: 999px;
  padding: 12px 26px;
  cursor: pointer;
}
.cmsg { color: var(--wood-2); min-height: 1.2em; }
.clist { margin-top: 18px; }
.ccard {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px;
  margin: 10px 0;
  background: #fbfcff;
}
.ccard header { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.ccard time { color: var(--ink-soft); font-size: .85rem; }
.ccard.reply { margin-left: 26px; background: #f4f7ff; }
.cowner {
  font-size: .78rem;
  color: var(--gold-2);
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: 2px 8px;
}
.ccard[data-gf-owner] .cowner[hidden] { display: inline-block; }
.creplybtn { font: inherit; font-size: .85rem; color: var(--wood-2); background: none; border: none; padding: 0; cursor: pointer; text-decoration: underline; }
.cempty { color: var(--ink-soft); }

/* ---------- inner pages ---------- */
.inner { padding-top: 26px; }
.legal-date { color: var(--ink-soft); font-size: .92rem; }
.notfound { text-align: center; }
.nf-emoji { font-size: 3rem; margin: 0; }
.notfound h1 { color: var(--wood); }

/* ---------- footer ---------- */
.foot { background: #101631; border-top: 3px solid var(--gold-2); margin-top: 30px; padding: 26px 0 34px; }
.foot-brand { font-family: Georgia, serif; color: var(--gold); margin: 0 0 10px; }
.footnav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footnav a { color: #c9d3f2; font-size: .92rem; text-decoration: none; }
.footnav a:hover { color: var(--gold); }
.foot-note { color: #7f88ad; font-size: .85rem; margin-top: 16px; }

@media (max-width: 640px) {
  .playbtn { font-size: 1rem; padding: 13px 24px; bottom: 8%; }
  .sharemsg { min-width: 0; }
  .mastnav a { padding: 6px 8px; }
}
