/* Beta thanks: the public data is already masked before it reaches the browser. */
/* Local numeral face: the 1 has a distinct flag and baseline, even without Google Fonts.
   Original font and SIL OFL 1.1 notice are distributed together in assets/fonts/. */
@font-face {
  font-family: "Tessoa Thanks Numerals";
  src: url("../fonts/jetbrains-mono-var.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  unicode-range: U+002C, U+0030-0039;
}
.thanks-section { --text-dim: #969aa3; padding-top: 24px; }
.thanks-section [hidden] { display: none !important; }
.thanks-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(20px, 2.6vw, 32px);
  border: 1px solid var(--line-2);
  border-radius: 20px;
  background: var(--bg-2);
  box-shadow: inset 0 1px 0 var(--edge-hi);
}
.thanks-panel::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -40% -30%;
  pointer-events: none;
  background: radial-gradient(ellipse at 35% 45%, rgba(94, 160, 230, .16), transparent 55%);
}
.thanks-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 24px; align-items: center; }
.thanks-intro { min-width: 0; padding-block: 8px; }
.thanks-intro h2 { font-size: 28px; font-weight: 600; line-height: 1.4; letter-spacing: 0; text-wrap: pretty; }
.thanks-lead, .thanks-audience { display: block; }
.thanks-count-line { display: flex; align-items: baseline; gap: 9px; margin-block: 18px 12px; white-space: nowrap; }
.thanks-total {
  font-family: "Tessoa Thanks Numerals", var(--font-mono);
  font-size: 56px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.04em;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--accent-hi);
}
.thanks-unit { font-size: 16px; font-weight: 400; color: var(--text-2); }
.thanks-audience { font-size: 24px; font-weight: 500; }
html[data-lang="en"] .thanks-lead { font-size: 25px; }
.thanks-preview { min-width: 0; }
.thanks-window { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; height: 360px; overflow: hidden; mask-image: linear-gradient(transparent, #000 12%, #000 86%, transparent); -webkit-mask-image: linear-gradient(transparent, #000 12%, #000 86%, transparent); }
.thanks-lane { min-width: 0; min-height: 0; }
.thanks-track { will-change: transform; }
.thanks-panel.is-paused::before { animation-play-state: paused; }
.thanks-panel.is-paused .thanks-track { will-change: auto; }
.thanks-sequence { display: flow-root; list-style: none; }
.thanks-person { min-width: 0; height: 52px; display: flex; flex-direction: column; justify-content: center; gap: 2px; border-bottom: 1px solid var(--line); }
.thanks-window .thanks-person { margin-bottom: 8px; padding: 6px 10px; border: 1px solid rgba(125, 180, 238, .13); border-radius: 7px; background: linear-gradient(120deg, rgba(94, 160, 230, .075), rgba(28, 32, 41, .75)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025); }
.thanks-person-name, .thanks-person-email { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thanks-person-name { color: var(--text); font-size: 13px; font-weight: 500; line-height: 1.4; }
.thanks-person-email { color: var(--text-dim); font-family: var(--font-mono); font-size: 10px; line-height: 1.5; letter-spacing: -.025em; }
.thanks-window .thanks-person-name::before { content: ''; display: inline-block; width: 4px; height: 4px; margin-right: 6px; margin-bottom: 2px; border-radius: 50%; background: var(--accent); opacity: .8; }
.thanks-caption { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; column-gap: 24px; row-gap: 10px; padding: 20px 4px 0; }
.thanks-caption-copy { flex: 1 1 480px; min-width: 0; }
.thanks-note { margin-top: 0; color: var(--text-dim); font-size: 11px; line-height: 1.8; }
.thanks-controls { display: flex; align-items: center; gap: 6px; }
.thanks-control { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 8px 10px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--text-2); font-family: var(--font-body); font-size: 12px; line-height: 1.5; cursor: pointer; transition: color .2s, background .2s, border-color .2s; }
.thanks-control:hover:not(:disabled) { color: var(--text); background: var(--surface); border-color: var(--line-2); }
.thanks-control:active:not(:disabled) { background: var(--float); }
.thanks-control:disabled { opacity: .35; cursor: default; }
.thanks-control svg { width: 16px; height: 16px; flex-shrink: 0; }
.thanks-play-icon, [data-thanks-pause][aria-pressed="true"] .thanks-pause-icon { display: none; }
[data-thanks-pause][aria-pressed="true"] .thanks-play-icon { display: block; }
.thanks-load, .thanks-nojs { margin-top: 18px; color: var(--text-2); font-size: 13px; }
.thanks-retry { margin-top: 4px; padding-left: 0; color: var(--accent-hi); }
@media (max-width: 1100px) {
  .thanks-layout { grid-template-columns: 190px minmax(0, 1fr); gap: 20px; }
  .thanks-window { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .thanks-lane:nth-child(n + 5) { display: none; }
}
@media (max-width: 900px) {
  .thanks-layout { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .thanks-intro { padding-block: 0; }
  .thanks-intro h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px; }
  .thanks-lead { flex-basis: 100%; }
  .thanks-count-line { margin: 0; }
  .thanks-total { font-size: 50px; }
}
@media (max-width: 700px) {
  .thanks-window { grid-template-columns: repeat(3, minmax(0, 1fr)); height: 300px; }
  .thanks-lane:nth-child(n + 4) { display: none; }
  .thanks-intro { display: block; }
  .thanks-intro h2 { font-size: 26px; }
  .thanks-caption { padding-top: 16px; row-gap: 6px; }
}
@media (max-width: 520px) {
  .thanks-panel { padding: 20px 12px; }
  .thanks-window { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .thanks-lane:nth-child(n + 3) { display: none; }
  .thanks-window .thanks-person { padding-inline: 8px; }
}
@media (max-width: 380px) {
  .thanks-intro h2 { column-gap: 10px; }
  .thanks-total { font-size: 44px; }
  .thanks-audience { font-size: 22px; }
  html[data-lang="en"] .thanks-lead { font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) {
  .thanks-control { transition: none; }
}
@media (prefers-contrast: more) {
  .thanks-person-email, .thanks-note { color: var(--text-2); }
  .thanks-window { mask-image: none; -webkit-mask-image: none; }
}
html:not(.js) .thanks-panel::before { animation: none; }


/* Beta rewards: category/benefit pairs stay readable without horizontal scrolling. */
.rewards-section { border-top: 1px solid var(--line); }
.rewards-heading { max-width: 900px; }
.rewards-intro { margin-top: 24px; color: var(--text); font-size: clamp(16px, 1.45vw, 18px); line-height: 1.9; }
.rewards-lead { margin-top: 16px; color: var(--text-2); font-size: 15px; line-height: 1.85; }
.rewards-columns, .rewards-row { display: grid; grid-template-columns: minmax(180px, .28fr) minmax(0, 1fr); column-gap: 40px; }
.rewards-columns { margin-top: 32px; padding: 13px 0; border-block: 1px solid var(--line-2); color: var(--text-dim); font-size: 13px; }
.rewards-row { padding: 24px 0; border-bottom: 1px solid var(--line); }
.rewards-row dt { color: var(--text); font-size: 15px; font-weight: 600; line-height: 1.8; }
.rewards-row dd { min-width: 0; color: var(--text-2); font-size: 14px; line-height: 1.85; }
.rewards-row strong, .rewards-period strong, .rewards-answer strong { color: var(--text); font-weight: 600; }
.rewards-period { margin-top: 18px; color: var(--text-2); font-size: 13px; line-height: 1.85; }
.rewards-details { margin-top: 32px; border-top: 1px solid var(--line-2); }
.rewards-answer { max-width: 900px; }
.rewards-answer p + p { margin-top: 16px; }
.rewards-answer a { color: var(--accent-hi); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.rewards-answer a:hover { color: var(--text); }
.rewards-closing { margin-top: 24px; color: var(--text-2); font-size: 14px; line-height: 1.8; }
@media (max-width: 700px) {
  .rewards-columns { display: none; }
  .rewards-list { margin-top: 28px; border-top: 1px solid var(--line-2); }
  .rewards-row { grid-template-columns: minmax(0, 1fr); row-gap: 10px; padding: 22px 0; }
  .rewards-lead { font-size: 14px; }
}

/* Fixed masked sample: no loading, motion, randomization or background requests. */
.thanks-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; list-style: none; }
.thanks-grid .thanks-person { padding: 6px 10px; border: 1px solid rgba(125,180,238,.13); border-radius: 7px; background: linear-gradient(120deg,rgba(94,160,230,.075),rgba(28,32,41,.75)); }
.thanks-grid .thanks-person-name::before { content: ''; display: inline-block; width: 4px; height: 4px; margin-right: 6px; margin-bottom: 2px; border-radius: 50%; background: var(--accent); opacity: .8; }
@media (max-width: 1100px) { .thanks-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .thanks-grid .thanks-person:nth-child(n+25) { display: none; } }
@media (max-width: 700px) { .thanks-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .thanks-grid .thanks-person:nth-child(n+19) { display: none; } }
@media (max-width: 520px) { .thanks-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .thanks-grid .thanks-person:nth-child(n+13) { display: none; } }
