/* Secret Santa — modern festive. Pine ground, candy red, tinsel gold, snow paper. */
:root {
  --pine: #0b3d2e;
  --pine-deep: #062619;
  --pine-lit: #13573f;
  --red: #ff3b4e;
  --red-deep: #d81f35;
  --gold: #ffc83d;
  --mint: #b9f3dc;
  --snow: #ffffff;
  --frost: #eef8f4;
  --ink: #0a2a1f;
  --ink-soft: #3d5a4f;
  --line: #d4e6de;

  --display: "Bricolage Grotesque", "Arial Black", system-ui, sans-serif;
  --text: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step-small: 0.875rem;
  --step-body: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-lead: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem);
  --step-head: clamp(1.9rem, 1.3rem + 2.6vw, 3.25rem);
  --step-hero: clamp(3rem, 1.6rem + 7vw, 7.5rem);

  --gutter: clamp(16px, 4vw, 40px);
  --radius: 22px;
  --radius-sm: 12px;
  --ease: cubic-bezier(.2, .9, .25, 1.15);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(255, 200, 61, .16), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(255, 59, 78, .14), transparent 60%),
    var(--pine);
  color: var(--snow);
  font: 400 var(--step-body)/1.55 var(--text);
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: inherit; text-underline-offset: .18em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--gold); color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { text-wrap: balance; font-family: var(--display); font-weight: 800; letter-spacing: -0.03em; line-height: .95; margin: 0; }
h1 { font-size: var(--step-hero); }
h2 { font-size: var(--step-head); }
h3 { font-size: var(--step-lead); letter-spacing: -0.01em; line-height: 1.1; }
p { margin: 0 0 1em; max-width: 68ch; }
.lead { font-size: var(--step-lead); line-height: 1.4; max-width: 34ch; }
.small { font-size: var(--step-small); }
.muted { opacity: .78; }

/* ---------- fairy lights ---------- */
.lights { position: relative; height: 64px; overflow: hidden; pointer-events: none; }
.lights svg { position: absolute; inset: 0; width: 100%; height: 64px; }
.lights .wire { fill: none; stroke: #04170f; stroke-width: 2.5; }
.lights .bulb { transform-box: fill-box; transform-origin: 50% 0; animation: twinkle 2.6s ease-in-out infinite; }
.lights .bulb:nth-child(3n) { animation-delay: -.9s; }
.lights .bulb:nth-child(3n+1) { animation-delay: -1.7s; }
.lights .bulb:nth-child(4n) { animation-duration: 3.4s; }
@keyframes twinkle {
  0%, 100% { opacity: 1; filter: drop-shadow(0 0 6px currentColor) drop-shadow(0 0 14px currentColor); }
  50% { opacity: .45; filter: none; }
}

/* ---------- snow ---------- */
#snow { position: fixed; inset: 0; pointer-events: none; z-index: 0; }

/* ---------- frame ---------- */
.site { position: relative; z-index: 1; }
.bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 var(--gutter); margin-top: -18px;
}
.wordmark {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font: 800 1.25rem/1 var(--display); letter-spacing: -0.02em;
}
.wordmark .hat { width: 34px; height: 34px; transform: rotate(-14deg); transition: transform .4s var(--ease); }
.wordmark:hover .hat { transform: rotate(8deg) scale(1.1); }
.bar nav { display: flex; gap: 18px; font-weight: 600; font-size: var(--step-small); }
.bar nav a { text-decoration: none; opacity: .85; }
.bar nav a:hover { opacity: 1; text-decoration: underline; }
main { padding: clamp(24px, 5vw, 64px) var(--gutter) 96px; max-width: 1240px; margin: 0 auto; }
.narrow { max-width: 760px; margin: 0 auto; }
footer.foot {
  position: relative; z-index: 1;
  padding: 40px var(--gutter) 48px; text-align: center; font-size: var(--step-small); opacity: .7;
}

/* ---------- buttons ---------- */
.btn {
  --b: var(--red); --bi: var(--snow);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: 0 28px; border: 0; border-radius: 999px;
  background: var(--b); color: var(--bi); text-decoration: none; cursor: pointer;
  font: 700 1.0625rem/1 var(--text); letter-spacing: .01em;
  box-shadow: 0 6px 0 0 color-mix(in srgb, var(--b) 60%, black), 0 10px 30px -6px color-mix(in srgb, var(--b) 70%, transparent);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.btn:hover { transform: translateY(-2px) rotate(-1deg); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 0 color-mix(in srgb, var(--b) 60%, black); }
.btn.gold { --b: var(--gold); --bi: var(--ink); }
.btn.ghost { --b: transparent; --bi: currentColor; box-shadow: inset 0 0 0 2px currentColor; }
.btn.ghost:active { box-shadow: inset 0 0 0 2px currentColor; }
.btn.small { min-height: 40px; padding: 0 18px; font-size: .9375rem; box-shadow: 0 4px 0 0 color-mix(in srgb, var(--b) 60%, black); }
.btn.small.ghost { box-shadow: inset 0 0 0 2px currentColor; }
.btn.block { width: 100%; }
.linkish { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }

/* ---------- paper: the gift tag ---------- */
.tag {
  position: relative; background: var(--snow); color: var(--ink);
  border-radius: var(--radius); padding: clamp(28px, 5vw, 56px);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55);
}
.tag.notched {
  /* the classic tag shape: clipped top corners and a punched hole */
  clip-path: polygon(64px 0, calc(100% - 64px) 0, 100% 64px, 100% 100%, 0 100%, 0 64px);
  border-radius: 0 0 var(--radius) var(--radius);
  padding-top: clamp(64px, 9vw, 96px);
}
.tag.notched::before {
  content: ""; position: absolute; top: 26px; left: 50%; width: 26px; height: 26px; margin-left: -13px;
  border-radius: 50%; background: var(--pine); box-shadow: inset 0 0 0 5px var(--gold);
}
.tag .to {
  font: 800 var(--step-small)/1 var(--text); color: var(--red-deep);
}
.tag h2, .tag h3 { color: var(--ink); }
.tag a { color: var(--ink); }

.stripe {
  height: 14px; border-radius: 999px;
  background: repeating-linear-gradient(-45deg, var(--red) 0 14px, var(--snow) 14px 28px);
}

/* ---------- forms ---------- */
.field { margin-bottom: 22px; }
.field label, .field .label { display: block; font-weight: 700; margin-bottom: 6px; }
.field .hint { display: block; font-size: var(--step-small); color: var(--ink-soft); margin: -2px 0 8px; }
.field input[type=text], .field input[type=email], .field input[type=url], .field input[type=number],
.field input[type=datetime-local], .field textarea, .field select {
  width: 100%; font: inherit; color: var(--ink); background: var(--frost);
  border: 2px solid transparent; border-radius: var(--radius-sm); padding: 13px 15px;
  transition: border-color .15s, background .15s;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--pine); background: var(--snow); }
.field .error { color: var(--red-deep); font-weight: 700; font-size: var(--step-small); margin-top: 6px; }
.field.has-error input, .field.has-error textarea { border-color: var(--red); }
.row { display: grid; gap: 0 20px; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .row { grid-template-columns: 1fr; } }

.choice { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .choice { grid-template-columns: 1fr; } }
.choice label {
  position: relative; display: block; padding: 18px 18px 18px 56px; border-radius: var(--radius-sm);
  background: var(--frost); cursor: pointer; font-weight: 400; margin: 0;
  transition: background .15s, transform .15s var(--ease);
}
.choice label:hover { transform: translateY(-2px); }
.choice input { position: absolute; left: 18px; top: 20px; width: 22px; height: 22px; accent-color: var(--red); }
.choice strong { display: block; font-size: 1.0625rem; }
.choice label:has(input:checked) { background: var(--mint); }
.reveal-when { display: none; }
.reveal-when.on { display: block; }

.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--red); }

/* ---------- flash ---------- */
.toast {
  display: flex; gap: 12px; align-items: center; padding: 14px 18px; border-radius: var(--radius-sm);
  background: var(--gold); color: var(--ink); font-weight: 700; margin: 0 0 24px;
  animation: pop .5s var(--ease) both;
}
.toast.bad { background: var(--red); color: var(--snow); }
@keyframes pop { from { transform: scale(.9) translateY(-8px); opacity: 0; } }

/* ---------- countdown ---------- */
.countdown { display: flex; gap: 8px; max-width: 360px; }
.countdown .unit {
  flex: 1 1 0; min-width: 0; padding: 10px 6px 8px; border-radius: var(--radius-sm); text-align: center;
  background: var(--pine-deep); box-shadow: inset 0 -4px 0 rgba(255, 255, 255, .06);
}
.countdown .n { display: block; font: 800 clamp(1.6rem, 1.2rem + 1.5vw, 2.25rem)/1 var(--display); font-variant-numeric: tabular-nums; color: var(--gold); }
.countdown .l { font-size: .8125rem; opacity: .8; }
.panel .countdown .unit { background: var(--pine-lit); }
.countdown.light .unit { background: var(--frost); }
.countdown.light .n { color: var(--red-deep); }
.countdown.light .l { color: var(--ink); }

/* ---------- home ---------- */
.hero { display: grid; gap: clamp(32px, 5vw, 72px); grid-template-columns: 1.15fr .85fr; align-items: center; }
.hero h1 { max-width: 12ch; text-wrap: balance; }
.hero h1 .wiggle { display: inline-block; color: var(--gold); }
.hero .lead { margin: 28px 0 32px; }
.hero-art { position: relative; aspect-ratio: 1; }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { max-width: 420px; margin: 0 auto; order: -1; }
}
.sticker {
  position: absolute; display: grid; place-items: center; text-align: center;
  width: 128px; height: 128px; border-radius: 50%; padding: 14px;
  background: var(--gold); color: var(--ink); font: 800 1rem/1.05 var(--display);
  transform: rotate(12deg); box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .5);
}

.steps { margin-top: clamp(80px, 12vw, 160px); display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.steps ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: s; }
.steps li {
  counter-increment: s; position: relative; padding: 22px 24px 22px 92px; border-radius: var(--radius);
  background: var(--snow); color: var(--ink);
}
.steps li::before {
  content: counter(s); position: absolute; left: 22px; top: 18px; width: 50px; height: 50px; border-radius: 50%;
  display: grid; place-items: center; font: 800 1.5rem/1 var(--display); color: var(--snow); background: var(--red);
}
.steps li:nth-child(2n)::before { background: var(--pine); }
.steps li:nth-child(3n)::before { background: var(--gold); color: var(--ink); }
.steps li:nth-child(4n)::before { background: var(--red); }
.steps > div { position: sticky; top: 32px; }
.steps li strong { display: block; font: 800 1.25rem/1.2 var(--display); letter-spacing: -0.01em; margin-bottom: 4px; }
.steps li p { margin: 0; color: var(--ink-soft); }

.promises { margin-top: clamp(80px, 12vw, 160px); background: var(--red); color: var(--snow); border-radius: calc(var(--radius) * 1.5);
  padding: clamp(32px, 6vw, 72px); display: grid; grid-template-columns: 1fr 1fr; gap: 32px 56px; }
@media (max-width: 760px) { .promises { grid-template-columns: 1fr; } }
.promises h2 { grid-column: 1 / -1; }
.promises h3 { margin-bottom: 8px; }
.promises p { margin: 0; }

/* ---------- participant page ---------- */
.btn.jump { display: none; margin-top: 24px; }
@media (max-width: 900px) { .btn.jump { display: inline-flex; } }
html { scroll-behavior: smooth; }
.me-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 900px) { .me-grid { grid-template-columns: 1fr; } }
.hello h1 { font-size: clamp(2.6rem, 1.4rem + 5vw, 5.5rem); margin-bottom: 18px; }
.hello h1.duty { font-size: clamp(2.2rem, 1.2rem + 3.2vw, 3.75rem); }
.present-wrap { max-width: 620px; margin-inline: auto; }
.panel { background: var(--pine-deep); border-radius: var(--radius); padding: clamp(22px, 3.5vw, 36px); }
.panel + .panel { margin-top: 20px; }
.panel h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); margin-bottom: 14px; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; margin: 0; }
.facts dt { font-weight: 700; opacity: .75; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.tag .facts dt { color: var(--ink-soft); opacity: 1; }

/* The present: wrapped until you open it */
.present-wrap { position: relative; perspective: 900px; }
.present {
  position: relative; display: block; width: 100%; aspect-ratio: 5 / 4; border: 0; padding: 0; cursor: pointer;
  background: transparent; color: var(--snow);
}
.present .box {
  position: absolute; inset: 22% 6% 0; border-radius: 18px;
  background:
    linear-gradient(90deg, transparent calc(50% - 22px), var(--gold) calc(50% - 22px) calc(50% + 22px), transparent 0),
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.22) 0 6px, transparent 7px) 0 0 / 46px 46px,
    var(--red);
  box-shadow: inset 0 -18px 0 rgba(0,0,0,.12), 0 30px 50px -24px rgba(0,0,0,.7);
}
.present .lid {
  position: absolute; left: 2%; right: 2%; top: 12%; height: 16%; border-radius: 14px;
  background: linear-gradient(90deg, var(--red-deep) calc(50% - 24px), var(--gold) 0 calc(50% + 24px), var(--red-deep) 0);
  box-shadow: 0 10px 0 -2px rgba(0,0,0,.18);
  transform-origin: 20% 100%;
  transition: transform .9s var(--ease), opacity .6s .3s;
}
.present .bow { position: absolute; left: 50%; top: -2%; width: 34%; transform: translateX(-50%); transition: transform .9s var(--ease); }
.present .shake-label {
  position: absolute; left: 50%; bottom: 10%; transform: translateX(-50%); white-space: nowrap;
  background: var(--snow); color: var(--ink); font: 800 1.125rem/1 var(--display); padding: 14px 22px; border-radius: 999px;
  box-shadow: 0 8px 20px -8px rgba(0,0,0,.5);
}
.present:hover .box, .present:focus-visible .box { animation: wobble .6s ease-in-out; }
@keyframes wobble { 25% { transform: rotate(-2deg); } 75% { transform: rotate(2deg); } }
.present-wrap.open .lid { transform: translate(-30%, -120%) rotate(-38deg); opacity: 0; }
.present-wrap.open .bow { transform: translate(-50%, -260%) rotate(40deg); }
.present-wrap.open .present { pointer-events: none; }
.present-wrap .gift-tag { display: none; }
.present-wrap.open .gift-tag { display: block; animation: rise .8s .25s var(--ease) both; }
.present-wrap.open .panel.gift-tag { animation-delay: .45s; }
.present-wrap.open .present { position: absolute; inset: 0; opacity: 0; transition: opacity .5s .5s; }
@keyframes rise { from { transform: translateY(80px) rotate(-4deg) scale(.9); opacity: 0; } }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 50; }

.recipient-name { font-size: clamp(3rem, 1.5rem + 7vw, 6.5rem); line-height: .9; margin: 6px 0 22px; overflow-wrap: anywhere; }
.bought-yes { display: flex; gap: 14px; align-items: center; padding: 18px; border-radius: var(--radius-sm); background: var(--mint); color: var(--ink); font-weight: 700; }
.bought-yes .big { font-size: 2rem; }

.thread { display: grid; gap: 10px; margin: 0 0 18px; }
.bubble { max-width: 85%; padding: 12px 16px; border-radius: 18px; background: var(--frost); color: var(--ink); }
.bubble.mine { justify-self: end; background: var(--gold); border-bottom-right-radius: 4px; }
.bubble.theirs { border-bottom-left-radius: 4px; }
.bubble .who { display: block; font-size: .8125rem; font-weight: 700; opacity: .7; margin-bottom: 2px; }
.panel .bubble { background: var(--pine-lit); color: var(--snow); }
.panel .bubble.mine { background: var(--gold); color: var(--ink); }
.ask { display: flex; gap: 10px; }
.ask input { flex: 1; min-width: 0; font: inherit; border: 0; border-radius: 999px; padding: 0 20px; min-height: 52px; background: var(--frost); color: var(--ink); }
@media (max-width: 520px) { .ask { flex-direction: column; } }

.guidelines { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.guidelines li { position: relative; padding-left: 34px; }
.guidelines li::before { content: "✦"; position: absolute; left: 4px; color: var(--gold); font-size: 1.1rem; }
.tag .guidelines li::before { color: var(--red); }

/* ---------- admin ---------- */
.admin main { max-width: 1320px; }
.admin-head { display: flex; flex-wrap: wrap; gap: 20px; align-items: end; justify-content: space-between; margin-bottom: 32px; }
.admin-head h1 { font-size: clamp(2.2rem, 1.2rem + 4vw, 4.25rem); }
.admin-head .meta { opacity: .85; margin-top: 10px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 28px; }
.stat { background: var(--pine-deep); border-radius: var(--radius-sm); padding: 18px 20px; }
.stat .n { display: block; font: 800 2.75rem/1 var(--display); color: var(--gold); font-variant-numeric: tabular-nums; }
.stat .l { font-size: var(--step-small); font-weight: 600; opacity: .85; }
.stat.hot .n { color: var(--red); }
.cols { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 1000px) { .cols { grid-template-columns: 1fr; } }
.card { background: var(--snow); color: var(--ink); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); }
.card + .card, .stack > * + * { margin-top: 24px; }
.card h2 { font-size: 1.75rem; margin-bottom: 14px; color: var(--ink); }
.card p { color: var(--ink-soft); }
.copy { display: flex; gap: 8px; }
.copy input { flex: 1; min-width: 0; font: 600 .9375rem/1 var(--text); padding: 0 14px; min-height: 44px; border: 0; border-radius: var(--radius-sm); background: var(--frost); color: var(--ink); }

table.people { width: 100%; border-collapse: collapse; font-size: .9375rem; }
table.people th { text-align: left; font-size: .8125rem; font-weight: 700; color: var(--ink-soft); padding: 8px 10px; border-bottom: 2px solid var(--line); }
table.people td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.people tr:last-child td { border-bottom: 0; }
table.people .who strong { display: block; }
table.people .who span { color: var(--ink-soft); font-size: .875rem; overflow-wrap: anywhere; }
.table-scroll { overflow-x: auto; margin: 0 -10px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .8125rem; font-weight: 700; white-space: nowrap; background: var(--frost); color: var(--ink); }
.pill.in { background: var(--mint); }
.pill.wait { background: #fff1c7; }
.pill.out { background: #ffe0e3; color: var(--red-deep); }
.pill.bought { background: var(--pine); color: var(--snow); }
.actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.actions form { margin: 0; }
.mini { font: 700 .8125rem/1 var(--text); padding: 8px 12px; border-radius: 999px; border: 0; background: var(--frost); color: var(--ink); cursor: pointer; text-decoration: none; display: inline-block; }
.mini:hover { background: var(--mint); }
.mini.danger:hover { background: #ffe0e3; color: var(--red-deep); }
.filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.filters button { font: 700 .8125rem/1 var(--text); padding: 8px 14px; border-radius: 999px; border: 0; cursor: pointer; background: var(--frost); color: var(--ink); }
.filters button[aria-pressed=true] { background: var(--ink); color: var(--snow); }
.list-plain { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.list-plain li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--frost); }
.danger-zone { background: #fff3f4; }
.danger-zone h2 { color: var(--red-deep); }
.event-list { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.event-card { display: block; text-decoration: none; background: var(--snow); color: var(--ink); border-radius: var(--radius); padding: 26px; transition: transform .2s var(--ease); }
.event-card:hover { transform: translateY(-4px) rotate(-.6deg); }
.event-card h2 { font-size: 1.75rem; margin: 8px 0 12px; }
.event-card .stripe { margin-bottom: 18px; }

.center-page { min-height: 60vh; display: grid; place-items: center; }
.center-page .tag { max-width: 620px; width: 100%; text-align: center; }
.center-page .tag .lead { margin-left: auto; margin-right: auto; }
.emoji-big { font-size: 4rem; line-height: 1; display: block; margin-bottom: 12px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  #snow { display: none; }
}

/* ---------- organiser tabs ---------- */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0 20px; padding: 6px; border-radius: 999px;
  background: var(--pine-deep); width: fit-content; max-width: 100%; }
.tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px;
  font-weight: 700; font-size: .9375rem; text-decoration: none; color: var(--snow); opacity: .85;
  transition: background .15s, color .15s; }
.tabs a:hover { opacity: 1; background: var(--pine-lit); }
.tabs a[aria-selected=true] { background: var(--gold); color: var(--ink); opacity: 1; }
.tabs .count { font-size: .75rem; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.14); }
.tabs a[aria-selected=true] .count { background: rgba(10,42,31,.12); }
@media (max-width: 640px) { .tabs { border-radius: var(--radius); width: 100%; } .tabs a { flex: 1 1 auto; justify-content: center; } }
.js .tab-panel { display: none; }
.js .tab-panel.active { display: block; animation: pop .25s var(--ease) both; }
.tab-panel + .tab-panel { margin-top: 24px; }
.js .tab-panel + .tab-panel { margin-top: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.grid-2 > .card + .card { margin-top: 0; }
@media (max-width: 900px) { .grid-2 { grid-template-columns: 1fr; } }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.card-head h2 { margin: 0; }
.card.latecomers { background: var(--gold); margin-bottom: 24px; }
.card.latecomers p { color: var(--ink); }
.list-plain li > span { min-width: 0; overflow-wrap: anywhere; }
.list-plain li .pill { margin-left: 6px; vertical-align: 2px; }
.taking-part { display: grid; gap: 10px; padding: 16px; border-radius: var(--radius-sm); background: var(--mint); color: var(--ink); }
.settings-facts dt { color: var(--ink-soft); }

/* ---------- small bits ---------- */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.bubble .report { display: inline; margin-left: 8px; }
.bubble .report button { font-size: .75rem; opacity: .7; }
.tabs .count.hot { background: var(--red); color: var(--snow); }
