/* My Tree: styles for the pages generated by seo/build.mjs (home, countdowns, guides, legal).
   Black page, one red card per page, big short headlines in Poppins (the app's typeface), white
   pill buttons and the app's own gift stickers. Long texts sit on white sheets. */

@font-face { font-family: 'Poppins'; src: url('/assets/fonts/poppins-400.woff') format('woff'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('/assets/fonts/poppins-600.woff') format('woff'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('/assets/fonts/poppins-700.woff') format('woff'); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --bg: #0a0a0b;
  --bg-2: #161618;
  --line: rgba(255, 255, 255, 0.14);
  --text: #fff;
  --text-2: rgba(255, 255, 255, 0.76);
  --text-3: rgba(255, 255, 255, 0.58);
  --ink: #111113;
  --ink-2: #55555c;
  --ink-3: #6e6e76;
  --rule: #e7e4df;
  --soft: #f5f3ef;
  --red: #c8102e;
  --red-card: linear-gradient(180deg, #e12a33 0%, #d11d32 50%, #b8102d 100%);
  --radius-xl: clamp(28px, 4vw, 40px);
  --radius-lg: 28px;
  --radius: 18px;
  --font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --system: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --gutter: clamp(12px, 3vw, 24px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; background: var(--bg); }
body { margin: 0; min-height: 100vh; font-family: var(--font); font-size: 1.02rem; line-height: 1.6; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.wrap { width: min(100% - 2 * var(--gutter), 1120px); margin-inline: auto; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--ink-3); }
.num { font-variant-numeric: tabular-nums; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: #fff; color: var(--ink); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Type ---------- */
.display-1, .display-2, .display-3 { font-weight: 700; letter-spacing: -0.03em; text-wrap: balance; }
.display-1 { font-size: clamp(2.2rem, 1.4rem + 3.4vw, 3.9rem); line-height: 1.02; margin: 0 0 18px; }
.display-2 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.7rem); line-height: 1.05; margin: 0 0 12px; }
.display-3 { font-size: clamp(1.35rem, 1.15rem + 0.8vw, 1.75rem); line-height: 1.15; margin: 0 0 12px; letter-spacing: -0.02em; }
.display-1 em, .display-2 em, .display-3 em { font-style: normal; }
.lead { max-width: 56ch; margin: 0 0 24px; color: var(--text-2); font-size: clamp(1.05rem, 1rem + 0.3vw, 1.18rem); }
.lead strong { color: var(--text); }
.kicker { margin: 0 0 12px; color: var(--text-2); font-size: 0.95rem; font-weight: 600; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 52px; padding: 0 26px; border: 0; border-radius: 999px;
  font-family: var(--font); font-size: 1.02rem; font-weight: 600; line-height: 1.1; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-white { background: #fff; color: var(--red); }
.btn-white:hover { background: #fff1f1; }
.btn-black { background: var(--ink); color: #fff; }
.btn-black:hover { background: #000; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: #a90d26; }
.btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.5); }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px #fff; }
.btn-line { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 2px var(--rule); }
.btn-line:hover { box-shadow: inset 0 0 0 2px var(--ink); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 0.94rem; }
.play-badge { display: inline-block; flex: none; }
.play-badge img { width: auto; height: 52px; }
.play-badge-lg img { height: 54px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); }
.header-in { display: flex; align-items: center; gap: 18px; height: 66px; }
.logo { display: inline-flex; align-items: center; gap: 10px; flex: none; color: #fff; font-size: 1.22rem; font-weight: 700; letter-spacing: -0.02em; text-decoration: none; }
.logo img { width: 34px; height: 34px; border-radius: 10px; }
.nav { display: flex; align-items: center; gap: 2px; margin-inline: auto; }
.nav-link, .dd-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border: 0; border-radius: 999px;
  background: none; color: var(--text-2); font-size: 0.95rem; font-weight: 600; text-decoration: none; cursor: pointer;
}
.nav-link:hover, .dd-btn:hover, .dd:focus-within .dd-btn, .nav-link[aria-current] { color: #fff; }
.dd-btn svg { width: 12px; height: 12px; }
.dd { position: relative; }
.dd::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 10px; }
.dd-panel {
  position: absolute; top: calc(100% + 6px); left: 50%; min-width: 250px; padding: 8px; transform: translateX(-50%);
  border-radius: 20px; background: #fff; box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.7);
  opacity: 0; visibility: hidden; transition: opacity 0.15s ease, visibility 0.15s;
}
.dd:hover .dd-panel, .dd:focus-within .dd-panel { opacity: 1; visibility: visible; }
.dd-panel a { display: block; padding: 9px 14px; border-radius: 12px; color: var(--ink); font-weight: 500; text-decoration: none; }
.dd-panel a:hover, .dd-panel a[aria-current] { background: var(--soft); }
.header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.nav + .header-actions { margin-left: 0; }
.header-cta { min-height: 40px; padding: 0 18px; background: #fff; color: var(--ink); font-size: 0.94rem; }
.header-cta:hover { background: #ececec; }
.menu { display: none; position: relative; }
.menu summary {
  display: grid; place-content: center; gap: 4px; width: 42px; height: 42px;
  border-radius: 50%; background: var(--bg-2); list-style: none; cursor: pointer;
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary span { display: block; width: 17px; height: 2px; border-radius: 2px; background: #fff; transition: transform 0.2s ease, opacity 0.2s ease; }
.menu[open] summary span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu[open] summary span:nth-child(2) { opacity: 0; }
.menu[open] summary span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 10px); display: grid; gap: 2px; width: min(86vw, 320px); padding: 10px;
  border-radius: 22px; background: #fff; box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.8);
}
.menu-panel a { padding: 10px 12px; border-radius: 12px; color: var(--ink); text-decoration: none; }
.menu-panel a:hover, .menu-panel a[aria-current] { background: var(--soft); }
.menu-title { margin: 10px 12px 2px; color: var(--ink-3); font-size: 0.84rem; font-weight: 600; }
.nav-link-wrap { display: contents; }
@media (max-width: 1100px) {
  .nav { display: none; }
  .menu { display: block; }
}
@media (max-width: 400px) {
  .header-in { gap: 10px; }
  .logo { font-size: 1.1rem; }
  .header-cta { padding: 0 14px; font-size: 0.86rem; }
}

/* "Also in your language" bar (shown by site.js) */
.lang-tip { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 12px; margin: 0 var(--gutter) 10px; padding: 8px 8px 8px 18px; border-radius: 999px; background: var(--bg-2); font-size: 0.92rem; }
.lang-tip[hidden] { display: none; }
.lang-tip p { margin: 0; color: var(--text-2); }
.lang-tip a { color: #fff; font-weight: 600; text-underline-offset: 3px; }
.lang-tip button { width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.1); color: #fff; font-size: 1.1rem; line-height: 1; cursor: pointer; }

/* ---------- Red card (page hero) ---------- */
.red-card { position: relative; isolation: isolate; overflow: hidden; margin: 0 var(--gutter); border-radius: var(--radius-xl); background: var(--red-card); color: #fff; }
.red-card .lead { color: rgba(255, 255, 255, 0.9); }

/* Home */
.marquee { overflow: hidden; padding: 4px 0 12px; color: var(--text-2); font-size: 0.88rem; font-weight: 600; white-space: nowrap; }
.marquee-track { display: inline-flex; animation: marquee 70s linear infinite; }
.marquee-track span::before { content: '\2022'; margin: 0 14px; color: var(--text-3); }
@keyframes marquee { to { transform: translateX(-50%); } }

.hero-home { text-align: center; }
.hero-in { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; padding: clamp(48px, 8vw, 96px) 20px 0; }
.hero-title { margin: 0 0 18px; font-size: clamp(3.3rem, 1.4rem + 9.5vw, 7.6rem); font-weight: 700; line-height: 0.92; letter-spacing: -0.04em; word-spacing: 0.06em; }
.hero-text { max-width: 30ch; margin: 0 auto 28px; color: rgba(255, 255, 255, 0.92); font-size: clamp(1.08rem, 1rem + 0.45vw, 1.3rem); line-height: 1.45; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin: 0 0 30px; }
.hero-tree { position: relative; width: min(74%, 330px); margin: 34px auto -6px; }
.sticker { position: absolute; z-index: 0; width: clamp(64px, 9vw, 116px); filter: drop-shadow(0 14px 18px rgba(60, 0, 10, 0.35)); }
.st-1 { left: 5%; top: 9%; transform: rotate(-12deg); }
.st-2 { right: 6%; top: 7%; transform: rotate(10deg); }
.st-3 { left: 9%; top: 47%; transform: rotate(8deg); }
.st-4 { right: 8%; top: 44%; transform: rotate(-9deg); }
.st-5 { left: 4%; bottom: 7%; transform: rotate(-6deg); }
.st-6 { right: 5%; bottom: 9%; transform: rotate(12deg); }
.bubble {
  position: absolute; z-index: 0; max-width: 190px; margin: 0; padding: 10px 15px; border-radius: 20px;
  background: #fff; color: var(--ink); font-size: 0.9rem; font-weight: 600; line-height: 1.3; text-align: left;
  box-shadow: 0 14px 30px -14px rgba(60, 0, 10, 0.5);
}
.bb-1 { left: 13%; top: 25%; border-bottom-left-radius: 6px; transform: rotate(-4deg); }
.bb-2 { right: 12%; top: 25%; border-bottom-right-radius: 6px; transform: rotate(4deg); }
@media (max-width: 1000px) { .bubble { display: none; } }
@media (max-width: 700px) {
  .sticker { width: 58px; }
  .st-1 { left: -8px; top: 12px; }
  .st-2 { right: -6px; top: 10px; }
  .st-3, .st-4 { display: none; }
  .st-5 { left: -10px; bottom: 120px; }
  .st-6 { right: -8px; bottom: 140px; }
}

/* Tree code box: a white pill with a black button inside */
.tree-form { max-width: 440px; margin: 0 auto; text-align: center; }
.tree-form label { display: block; margin: 0 0 10px; color: rgba(255, 255, 255, 0.92); font-size: 0.98rem; font-weight: 600; }
.tree-form-row { display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: 999px; background: #fff; }
.tree-form-row:focus-within { box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.4); }
.tree-form input {
  flex: 1; width: 100%; min-width: 0; height: 46px; padding: 0 8px 0 18px; border: 0; background: transparent; color: var(--ink);
  font: 600 1rem var(--font); letter-spacing: 0.06em; text-transform: uppercase;
}
.tree-form input::placeholder { color: var(--ink-3); font-weight: 500; letter-spacing: 0; text-transform: none; }
.tree-form input:focus { outline: none; }
.tree-form .btn { min-height: 46px; padding: 0 20px; }
.tree-form-error[hidden] { display: none; }
.tree-form-error { display: inline-block; margin: 10px 0 0; padding: 4px 14px; border-radius: 999px; background: rgba(0, 0, 0, 0.28); color: #fff; font-size: 0.88rem; font-weight: 600; }

/* Big statements on black */
.block { position: relative; padding: clamp(64px, 9vw, 112px) var(--gutter); text-align: center; }
.block-title { position: relative; max-width: 13ch; margin: 0 auto 18px; font-size: clamp(2.6rem, 1.3rem + 6.4vw, 5.8rem); font-weight: 700; line-height: 0.95; letter-spacing: -0.05em; text-wrap: balance; }
.block-link { margin: 26px 0 0; }
.block-link a { color: #fff; font-weight: 600; text-underline-offset: 5px; text-decoration-thickness: 2px; }

/* How it works: three numbered cards */
.how-line { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 960px; margin: 30px auto 0; padding: 0; list-style: none; text-align: left; }
.how-line li { position: relative; display: grid; gap: 4px; padding: 22px 22px 24px; border-radius: var(--radius-lg); background: var(--bg-2); }
.how-line img { width: 76px; height: 76px; margin-bottom: 8px; object-fit: contain; filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.45)); }
.how-n { position: absolute; top: 18px; right: 20px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--red); font-weight: 700; }
.how-line b { font-size: 1.2rem; letter-spacing: -0.02em; }
.how-line span:last-child { color: var(--text-2); }
@media (max-width: 760px) {
  .how-line { grid-template-columns: 1fr; }
  .how-line li { grid-template-columns: auto 1fr; align-items: center; column-gap: 14px; padding: 14px 52px 14px 14px; }
  .how-line img { grid-row: span 2; width: 56px; height: 56px; margin: 0; }
  .how-n { top: 50%; transform: translateY(-50%); }
}

/* The tree types, as three stickers with a label */
.occasion-line { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 26px auto 0; padding: 0; list-style: none; }
.occasion-line a { display: flex; align-items: center; gap: 8px; padding: 6px 16px 6px 6px; border-radius: 999px; background: var(--bg-2); font-weight: 600; text-decoration: none; transition: background-color 0.15s ease; }
.occasion-line a:hover { background: #26262a; }
.occasion-line img { width: 40px; height: 40px; }

/* Six trees in a wavy line */
.tree-line { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px clamp(4px, 1.5vw, 18px); max-width: 1080px; margin: 30px auto 0; padding: 0; list-style: none; }
.tree-line li { width: clamp(96px, 14vw, 150px); }
.tree-line li:nth-child(even) { transform: translateY(18px) rotate(3deg); }
.tree-line li:nth-child(odd) { transform: rotate(-3deg); }
.tree-line img { width: 100%; filter: drop-shadow(0 16px 20px rgba(0, 0, 0, 0.5)); }

/* Small white pill under a big title */
.chip { display: inline-block; margin: 0; padding: 8px 16px; border-radius: 999px; background: var(--bg-2); color: var(--text-2); font-size: 0.95rem; font-weight: 600; }

/* Message cards, like stories shared from the app */
.stories { display: flex; justify-content: center; align-items: flex-start; margin: 36px auto 0; padding: 0; list-style: none; }
.story {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  width: clamp(116px, 27vw, 210px); aspect-ratio: 9 / 13; margin: 0 -6px; padding: 16px 12px; border-radius: clamp(20px, 3vw, 28px);
  background: var(--red-card); color: #fff; text-align: center; box-shadow: 0 24px 40px -18px rgba(0, 0, 0, 0.9);
}
.story:nth-child(1) { transform: rotate(-7deg) translateY(12px); }
.story:nth-child(2) { position: relative; z-index: 1; background: #fff; color: var(--ink); transform: rotate(2deg); }
.story:nth-child(3) { background: linear-gradient(180deg, #23a35a 0%, #17803f 100%); transform: rotate(8deg) translateY(18px); }
.story img { width: 56%; filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.3)); }
.story-text { margin: 0; font-size: clamp(0.84rem, 0.72rem + 0.6vw, 1.12rem); font-weight: 700; line-height: 1.22; letter-spacing: -0.01em; }
.stories + .block-link { margin-top: 46px; }
.story-from { margin: 0; font-size: clamp(0.7rem, 0.66rem + 0.25vw, 0.84rem); font-weight: 600; opacity: 0.8; }

/* Stickers around the countdown */
.block-count { overflow: hidden; }
.block-count .sticker { width: clamp(58px, 8vw, 104px); filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.55)); }
.sc-1 { left: 8%; top: 16%; transform: rotate(-10deg); }
.sc-2 { right: 9%; top: 12%; transform: rotate(12deg); }
.sc-3 { left: 12%; bottom: 14%; transform: rotate(8deg); }
.sc-4 { right: 10%; bottom: 18%; transform: rotate(-8deg); }
@media (max-width: 700px) {
  .block-count .sticker { width: 50px; }
  .sc-1 { left: -6px; top: 4px; }
  .sc-2 { right: -6px; top: 0; }
  .sc-3 { left: -10px; bottom: 26px; }
  .sc-4 { right: -10px; bottom: 30px; }
}

.big-count { display: flex; align-items: baseline; justify-content: center; gap: 0.18em; margin: 6px 0 24px; font-weight: 700; line-height: 0.9; }
.big-count b { font-size: clamp(6rem, 3rem + 16vw, 13rem); letter-spacing: -0.06em; }
.big-count span { font-size: clamp(1.6rem, 1rem + 2.4vw, 2.8rem); letter-spacing: -0.03em; }

.final-card { margin-top: clamp(8px, 2vw, 20px); padding: clamp(48px, 8vw, 90px) 20px; text-align: center; }
.final-card .block-title { margin-bottom: 14px; }
.final-card .hero-actions { margin: 26px 0 0; }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; text-align: left; }
.faq h2 { margin: 0 0 18px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; padding: 18px 46px 18px 0; font-size: 1.05rem; font-weight: 600; list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: '\2212'; }
.faq-a { padding: 0 46px 18px 0; color: var(--text-2); }
.faq-a p { margin: 0; }
.faq-a a { color: #fff; font-weight: 600; }
.block-faq { padding-top: clamp(40px, 6vw, 72px); padding-bottom: 0; }

/* ---------- Countdown pages ---------- */
.hero-countdown { padding: clamp(30px, 5vw, 56px) 20px clamp(36px, 6vw, 64px); text-align: center; }
.cd-hero { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; }
.hero-countdown .crumbs { position: relative; z-index: 1; }
.cs-1 { left: 5%; top: 10%; transform: rotate(-12deg); }
.cs-2 { right: 5%; top: 9%; transform: rotate(10deg); }
.cs-3 { left: 7%; bottom: 12%; transform: rotate(8deg); }
.cs-4 { right: 6%; bottom: 14%; transform: rotate(-8deg); }
@media (max-width: 900px) {
  .hero-countdown .sticker { width: 52px; }
  .cs-1 { left: -8px; top: 14px; }
  .cs-2 { right: -8px; top: 12px; }
  .cs-3, .cs-4 { display: none; }
}
.cd-title { margin-bottom: 8px; font-size: clamp(1.9rem, 1.2rem + 2.8vw, 3.2rem); }
.cd-answer { margin: 0 0 26px; }
.cd-big { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 0.18em; margin: 0; font-weight: 700; line-height: 0.9; }
.cd-big-num { font-size: clamp(6rem, 3rem + 14vw, 12rem); letter-spacing: -0.06em; }
.cd-big-unit { font-size: clamp(1.6rem, 1rem + 2.4vw, 2.8rem); letter-spacing: -0.03em; }
.cd-sub { margin: 14px 0 0; color: rgba(255, 255, 255, 0.9); font-size: 1.06rem; }
.cd-sub time { color: #fff; font-weight: 600; }
.cd-tomorrow, .cd-today { display: none; }
[data-state='tomorrow'] .cd-tomorrow { display: block; margin: 14px 0 0; font-weight: 600; }
[data-state='today'] .cd-answer, [data-state='today'] .ticker-label, [data-state='today'] .ticker { display: none; }
[data-state='today'] .cd-today { display: block; margin-bottom: 18px; }
.cd-today-title { margin: 10px 0 12px; font-size: clamp(2.6rem, 1.5rem + 5vw, 5rem); font-weight: 700; line-height: 0.95; letter-spacing: -0.04em; }
.cd-today p:last-child { color: rgba(255, 255, 255, 0.9); font-size: 1.15rem; }
.ticker-label { margin: 0 0 10px; color: rgba(255, 255, 255, 0.85); font-size: 0.92rem; font-weight: 600; }
.ticker { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(6px, 1.4vw, 12px); max-width: 640px; margin: 0 auto; }
.tick { padding: clamp(12px, 2.2vw, 20px) 4px clamp(10px, 1.8vw, 16px); border-radius: var(--radius); background: #fff; color: var(--ink); }
.tick-num { display: block; font-family: var(--system); font-size: clamp(1.8rem, 1.1rem + 3vw, 3.2rem); font-weight: 800; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.tick-label { display: block; margin-top: 6px; color: var(--ink-3); font-size: clamp(0.72rem, 0.68rem + 0.2vw, 0.84rem); font-weight: 600; }
.cd-meta { margin: 12px 0 0; color: rgba(255, 255, 255, 0.82); font-size: 0.88rem; }
.cd-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.cd-chips li { padding: 7px 14px; border-radius: 999px; background: rgba(0, 0, 0, 0.18); font-size: 0.94rem; }
.year-progress { max-width: 480px; margin: 22px auto 0; }
.year-progress p { margin: 0 0 8px; color: rgba(255, 255, 255, 0.9); }
.bar { height: 8px; overflow: hidden; border-radius: 999px; background: rgba(0, 0, 0, 0.22); }
.bar span { display: block; width: 0; height: 100%; border-radius: inherit; background: #fff; transition: width 0.6s ease; }
.cd-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; }
.cd-hero:fullscreen { display: flex; flex-direction: column; justify-content: center; max-width: none; padding: 4vh 5vw; background: var(--red-card); color: #fff; }
.cd-hero:fullscreen .kicker, .cd-hero:fullscreen .cd-chips, .cd-hero:fullscreen .cd-actions, .cd-hero:fullscreen .cd-meta { display: none; }
.cd-hero:fullscreen .cd-big-num { font-size: 28vh; }
.cd-hero:fullscreen .ticker { max-width: 80vw; }
.cd-hero:fullscreen .tick-num { font-size: 9vh; }

.promo { margin-top: clamp(20px, 3vw, 32px); }
.promo-card {
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: clamp(16px, 3vw, 32px); padding: clamp(20px, 3vw, 32px);
  border-radius: var(--radius-lg); background: #fff; color: var(--ink);
}
.promo-card > img { width: clamp(90px, 12vw, 136px); }
.promo-copy .display-3 { margin-bottom: 6px; }
.promo-copy p { margin: 0 0 16px; color: var(--ink-2); }
.promo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
@media (max-width: 640px) { .promo-card { grid-template-columns: 1fr; text-align: center; } .promo-card > img { margin: 0 auto; } .promo-actions { justify-content: center; } }

.cd-secondary { margin: 40px 0; padding: clamp(20px, 4vw, 32px); border-radius: var(--radius); background: var(--soft); text-align: center; }
.paper .cd-secondary h2 { margin-top: 0; }
.cd-secondary-answer { margin: 0 0 16px; font-size: 1.15rem; }
.cd-secondary-answer .num { color: var(--red); font-size: 1.5em; font-weight: 700; }
.cd-secondary .tick { background: #fff; }
.cd-secondary .ticker-label { color: var(--ink-3); }
.paper .cd-secondary .muted { margin: 16px 0 0; }

/* ---------- Articles ---------- */
.hero-article { padding: clamp(28px, 5vw, 56px) 0 clamp(8px, 2vw, 16px); }
.hero-article .display-1 { max-width: 20ch; }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; color: var(--text-3); font-size: 0.92rem; }
.article-meta span + span::before { content: '\00b7'; margin-right: 14px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; padding: 0; color: var(--text-3); font-size: 0.88rem; list-style: none; }
.hero-countdown .crumbs ol { justify-content: center; color: rgba(255, 255, 255, 0.8); }
.crumbs li + li::before { content: '/'; margin-right: 6px; opacity: 0.6; }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }

.reading { margin-top: clamp(24px, 4vw, 40px); }
.has-toc { display: grid; grid-template-columns: 230px minmax(0, 1fr); align-items: start; gap: 32px; }
.toc { position: sticky; top: 86px; font-size: 0.92rem; }
.toc-title { margin: 0 0 10px; font-weight: 600; }
.toc ol { display: grid; gap: 8px; margin: 0; padding-left: 1.1em; color: var(--text-3); }
.toc a { color: var(--text-2); line-height: 1.4; text-decoration: none; }
.toc a:hover { color: #fff; text-decoration: underline; }
@media (max-width: 1080px) {
  .has-toc { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .toc { position: static; width: 100%; max-width: 820px; margin: 0 auto; padding: 16px 20px; border-radius: var(--radius); background: var(--bg-2); }
}

.paper { position: relative; max-width: 820px; margin-inline: auto; padding: clamp(22px, 5vw, 56px); border-radius: var(--radius-lg); background: #fff; color: var(--ink); font-size: 1.03rem; }
.has-toc .paper { margin: 0; }
.paper-wide { max-width: 1080px; }
.paper > :first-child { margin-top: 0; }
.paper h2 { margin: 1.9em 0 0.5em; font-size: clamp(1.45rem, 1.15rem + 1vw, 1.95rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; scroll-margin-top: 92px; }
.paper h3 { margin: 1.5em 0 0.4em; font-size: 1.15rem; }
.paper p, .paper li { color: #303035; }
.paper strong { color: var(--ink); }
.paper a { color: var(--red); font-weight: 600; text-underline-offset: 3px; }
.paper ul, .paper ol { padding-left: 1.3em; }
.paper li { margin: 0.4em 0; }
.paper li::marker { color: var(--red); }
.tip { margin: 26px 0; padding: 18px 20px; border-radius: var(--radius); background: var(--soft); }
.tip-gold { background: #fff4dc; }
.tip p { margin: 0; }
.tip .tip-title { margin-bottom: 4px; color: var(--ink); font-weight: 700; }
.gift-strip { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 14px; padding: 0 !important; list-style: none; }
.gift-strip li { display: grid; place-items: center; width: 74px; height: 74px; margin: 0 !important; border-radius: 16px; background: var(--soft); }
.gift-strip img { width: 60px; }
.steps { display: grid; gap: 10px; margin: 24px 0; padding: 0 !important; list-style: none; counter-reset: step; }
.steps li { position: relative; margin: 0 !important; padding: 16px 18px 16px 66px; border-radius: var(--radius); background: var(--soft); counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; left: 16px; top: 15px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700; }
.steps p { margin: 0; }
.steps .step-title { margin-bottom: 2px; color: var(--ink); font-weight: 700; }
.checks { display: grid; gap: 10px; margin: 0 0 22px; padding: 0 !important; list-style: none; }
.checks li { position: relative; margin: 0 !important; padding-left: 30px; }
.checks li::before { content: ''; position: absolute; left: 4px; top: 0.45em; width: 12px; height: 7px; border-left: 2.5px solid var(--red); border-bottom: 2.5px solid var(--red); transform: rotate(-45deg); }
.table-wrap { overflow-x: auto; margin: 22px 0; border: 1px solid var(--rule); border-radius: var(--radius); }
.paper table { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
.paper caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.paper th, .paper td { padding: 11px clamp(10px, 2.4vw, 16px); border-top: 1px solid var(--rule); text-align: left; vertical-align: top; }
.paper thead th { border-top: 0; background: var(--ink); color: #fff; font-size: 0.86rem; font-weight: 600; }
.paper tbody th { color: var(--ink); font-weight: 700; }
.years-table b { color: var(--red); font-variant-numeric: tabular-nums; }
.inline-cta { margin: 36px 0 8px; padding: clamp(20px, 4vw, 30px); border-radius: var(--radius-lg); background: var(--red-card); color: #fff; text-align: center; }
.paper .inline-cta p { margin: 0 0 6px; color: rgba(255, 255, 255, 0.9); }
.paper .inline-cta .inline-cta-title { color: #fff; font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; }
.paper .btn { text-decoration: none; }
.inline-cta-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; margin-top: 16px; }
.paper .faq { margin-top: 52px; }
.paper .faq details { border-color: var(--rule); }
.paper .faq h2 + details { border-top: 1px solid var(--rule); }
.paper .faq-a { color: var(--ink-2); }
.paper .faq-a a { color: var(--red); }
.paper-legal { font-size: 0.98rem; }
.paper-legal .table-wrap td, .paper-legal .table-wrap th { min-width: 150px; }
.legal-more { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--rule); }
.paper .legal-more a { padding: 8px 16px; border-radius: 999px; background: var(--soft); color: var(--ink); text-decoration: none; }

.chip-nav { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 6px; scrollbar-width: none; }
.chip-nav::-webkit-scrollbar { display: none; }
.chip-nav a { flex: none; padding: 9px 16px; border-radius: 999px; background: var(--bg-2); color: #fff; font-size: 0.94rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.chip-nav a:hover { background: #26262a; }
@media (min-width: 1000px) { .chip-nav { flex-wrap: wrap; overflow: visible; } }
.msg-group { margin-top: 48px; scroll-margin-top: 90px; }
.msg-group h2 { margin-top: 0; }
.msg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; margin: 0; padding: 0 !important; list-style: none; }
.msg { display: flex; flex-direction: column; justify-content: space-between; gap: 12px; margin: 0 !important; padding: 16px 16px 12px; border-radius: var(--radius); background: var(--soft); }
.msg p { margin: 0; color: var(--ink) !important; font-size: 1rem; line-height: 1.5; }
.msg .msg-note { margin-top: -6px; color: var(--ink-2) !important; font-size: 0.9rem; font-style: italic; }
.copy-btn { align-self: flex-start; padding: 6px 14px; border: 0; border-radius: 999px; background: #fff; color: var(--ink); font-size: 0.84rem; font-weight: 600; cursor: pointer; box-shadow: inset 0 0 0 1.5px var(--rule); }
.copy-btn:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.copy-btn.is-done { background: var(--ink); color: #fff; box-shadow: none; }
.card-gallery { margin-top: 44px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin: 20px 0 0; padding: 0 !important; list-style: none; }
.card-grid li { margin: 0 !important; }
.card-grid img { width: 100%; border-radius: var(--radius); }
.card-actions { display: flex; gap: 8px; margin-top: 10px; }
.card-actions .btn { flex: 1; min-height: 40px; padding: 0 12px; }
@media (max-width: 600px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card-actions { gap: 6px; }
  .card-actions .btn { min-height: 36px; padding: 0 8px; font-size: 0.8rem; }
}
.send-float { position: sticky; bottom: 16px; z-index: 40; margin: 24px 0 0; pointer-events: none; }
.send-float .btn { pointer-events: auto; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.8); }

/* Related pages */
.related { margin-top: clamp(48px, 6vw, 72px); }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.related-card { position: relative; display: grid; align-content: start; gap: 4px; padding: 20px 46px 20px 22px; border-radius: var(--radius); background: var(--bg-2); text-decoration: none; transition: background-color 0.15s ease; }
.related-card:hover { background: #222225; }
.related-title { font-size: 1.08rem; font-weight: 700; letter-spacing: -0.01em; }
.related-text { color: var(--text-3); font-size: 0.92rem; }
.related-go { position: absolute; top: 20px; right: 20px; color: var(--text-2); font-family: var(--system); }

/* 404 */
.hero-404 { padding: clamp(40px, 7vw, 80px) 20px; text-align: center; }
.hero-404 .narrow { margin: 0 auto; }
.hero-404 .lead { margin-inline: auto; }
.lost-tree { width: 170px; margin: 0 auto 14px; }
.lost-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 26px 0 0; padding: 0; list-style: none; }
.lost-links a { display: inline-block; padding: 8px 16px; border-radius: 999px; background: rgba(0, 0, 0, 0.2); color: #fff; font-weight: 600; text-decoration: none; }

/* ---------- Footer ---------- */
.site-footer { margin-top: clamp(48px, 7vw, 88px); padding: 44px 0 28px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.3fr repeat(5, 1fr); gap: 28px; }
.footer-brand .play-badge { margin-top: 16px; }
.site-footer nav { display: grid; align-content: start; gap: 8px; }
.site-footer h2 { margin: 0 0 4px; font-size: 0.95rem; font-weight: 600; }
.site-footer nav a { color: var(--text-3); font-size: 0.93rem; text-decoration: none; }
.site-footer nav a:hover, .site-footer nav a[aria-current] { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 0.85rem; }
.footer-bottom p { margin: 0; }
.footer-langs { display: flex; gap: 16px; }
.footer-langs a { color: var(--text-2); }
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Overlays ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 70; padding: 12px 20px; transform: translate(-50%, 16px);
  border-radius: 999px; background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 16px 34px -12px rgba(0, 0, 0, 0.7);
  opacity: 0; pointer-events: none; transition: 0.2s ease;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.confetti { position: fixed; inset: 0; z-index: 80; overflow: hidden; pointer-events: none; }
.confetti i { position: absolute; top: -14px; width: 9px; height: 14px; border-radius: 2px; animation: fall linear forwards; }
@keyframes fall { to { transform: translate3d(var(--dx), 110vh, 0) rotate(var(--rot)); } }
