/* Adedonha! — clay & carnival design system. Tokens mirror Adedonha/UI/Theme/Theme.swift. */
@font-face { font-family: 'Lilita One'; src: url('/assets/fonts/lilita-one.woff2') format('woff2'); font-display: swap; font-weight: 400; }
@font-face { font-family: 'Fredoka'; src: url('/assets/fonts/fredoka.woff2') format('woff2'); font-display: swap; font-weight: 300 700; }

:root {
  --ink: #2A0B45; --ink-soft: #4A1D6E; --cream: #FFF6E4; --paper: #F4EEFF;
  --gold: #FFC629; --yellow: #FFD21F; --magenta: #FF2E93; --violet: #8A2BE2; --orange: #FF7A1A;
  --turq: #1FC8C8; --lime: #8EDB2B; --blue: #2E8BFF; --red: #F23A3A; --green: #37C95A;
  --deep: #22063F; --purple: #3B0A7A; --purple-2: #9B2BEF; --glow: #FF5FD2;
  --text: #FFF6E4; --text-dim: #E2D3FF; --body-ink: #2A0B45; --body-dim: #5B3C7A;
  --display: 'Lilita One', 'Arial Rounded MT Bold', system-ui, sans-serif;
  --round: 'Fredoka', ui-rounded, 'SF Pro Rounded', system-ui, sans-serif;
  --r-sm: 14px; --r: 22px; --r-lg: 32px;
  --clay-shadow: inset 0 -6px 0 rgb(0 0 0 / .16), inset 0 4px 0 rgb(255 255 255 / .35), 0 7px 0 var(--ink);
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1180px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0; font: 500 18px/1.6 var(--round); color: var(--text); background: var(--deep);
  background-image:
    radial-gradient(1200px 700px at 85% -10%, rgb(255 95 210 / .22), transparent 60%),
    radial-gradient(900px 600px at -10% 20%, rgb(138 43 226 / .35), transparent 60%),
    linear-gradient(180deg, var(--purple) 0%, var(--deep) 55%, #160328 100%);
  background-attachment: fixed; overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--yellow); text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:hover { color: #fff; }
:focus-visible { outline: 4px solid var(--yellow); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--yellow); color: var(--ink); padding: 10px 16px; border-radius: 12px; font-weight: 700; }
.skip:focus { left: 8px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Display type ---------- */
.display, h1, h2.section-title, .big-letter {
  font-family: var(--display); font-weight: 400; letter-spacing: .01em; line-height: 1.02;
  -webkit-text-stroke: .12em var(--ink); paint-order: stroke fill;
  text-shadow: 0 .09em 0 var(--ink);
}
h1 { font-size: clamp(2.3rem, 6.4vw, 4.6rem); margin: 0 0 .3em; color: #fff; }
h2.section-title { font-size: clamp(2rem, 4.8vw, 3.4rem); margin: 0 0 .35em; color: #fff; text-align: center; }
.section-title .hl, h1 .hl { color: var(--yellow); }
.section-title .hl-m, h1 .hl-m { color: var(--magenta); }
.section-title .hl-t { color: var(--turq); }
.lead { font-size: clamp(1.08rem, 2.2vw, 1.3rem); color: var(--text-dim); max-width: 46rem; }
.center { text-align: center; margin-inline: auto; }
.kicker {
  display: inline-block; font: 600 .82rem/1 var(--round); letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink); background: var(--yellow); padding: .55em 1em .5em; border-radius: 99px;
  border: 2px solid var(--ink); box-shadow: 0 3px 0 var(--ink); margin-bottom: 1rem;
}

/* ---------- Clay buttons ---------- */
.btn {
  --c: var(--magenta);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 56px;
  padding: .55em 1.35em .6em; font: 400 1.35rem/1 var(--display); letter-spacing: .02em; color: #fff;
  text-decoration: none; background: var(--c); border: 3px solid var(--ink); border-radius: var(--r);
  box-shadow: var(--clay-shadow); text-shadow: 0 2px 0 var(--ink), 0 0 1px var(--ink);
  -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill; cursor: pointer;
  transition: transform .15s cubic-bezier(.3,1.6,.5,1), box-shadow .15s, filter .15s;
}
.btn:hover { color: #fff; transform: translateY(-3px) rotate(-1deg); filter: brightness(1.06); box-shadow: inset 0 -6px 0 rgb(0 0 0 / .16), inset 0 4px 0 rgb(255 255 255 / .35), 0 10px 0 var(--ink); }
.btn:active { transform: translateY(5px); box-shadow: inset 0 -3px 0 rgb(0 0 0 / .16), inset 0 3px 0 rgb(255 255 255 / .3), 0 2px 0 var(--ink); }
.btn--violet { --c: var(--violet); }
.btn--turq { --c: var(--turq); }
.btn--yellow { --c: var(--yellow); color: var(--ink); text-shadow: none; -webkit-text-stroke: 0; }
.btn--yellow:hover { color: var(--ink); }
.btn--sm { min-height: 44px; font-size: 1.05rem; padding: .45em 1em .5em; border-radius: 16px; }
.btn .ic { width: 1.3em; height: 1.3em; flex: none; }

/* App Store badge (black, official layout) */
.badge {
  display: inline-flex; align-items: center; gap: 10px; min-height: 60px; padding: 8px 20px 8px 16px;
  background: #000; color: #fff; border: 2px solid #fff3; border-radius: 14px; text-decoration: none;
  box-shadow: 0 6px 0 var(--ink), 0 10px 30px rgb(0 0 0 / .35); transition: transform .15s, box-shadow .15s;
}
.badge:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 9px 0 var(--ink), 0 14px 34px rgb(0 0 0 / .4); }
.badge svg { width: 30px; height: 36px; fill: #fff; }
.badge span { display: grid; line-height: 1; text-align: left; }
.badge small { font: 500 .78rem/1.1 -apple-system, system-ui, sans-serif; letter-spacing: .02em; }
.badge strong { font: 600 1.5rem/1.1 -apple-system, system-ui, sans-serif; letter-spacing: -.01em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgb(34 6 63 / .78);
  backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 2px solid rgb(255 255 255 / .08);
}
.site-header .wrap { display: flex; align-items: center; gap: 18px; min-height: 72px; }
.brand { display: block; flex: none; }
.brand img { width: 150px; height: auto; filter: drop-shadow(0 3px 0 var(--ink)); transition: transform .2s; }
.brand:hover img { transform: rotate(-3deg) scale(1.04); }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 1rem; padding: 10px 14px; border-radius: 12px; }
.nav a:hover, .nav a[aria-current] { background: rgb(255 255 255 / .1); color: var(--yellow); }
.nav .btn { margin-left: 8px; }
.menu-btn { display: none; margin-left: auto; width: 48px; height: 48px; border-radius: 14px; background: var(--violet); border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink); color: #fff; cursor: pointer; }
.menu-btn svg { width: 24px; height: 24px; margin: auto; }
@media (max-width: 920px) {
  .menu-btn { display: grid; }
  .brand img { width: 128px; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; padding: 12px var(--gutter) 20px; background: rgb(34 6 63 / .97); border-bottom: 3px solid var(--ink); }
  .nav.open { display: flex; }
  .nav a { font-size: 1.15rem; padding: 14px; }
  .nav .btn { margin: 10px 0 0; }
}

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(36px, 7vw, 80px) 0 0; text-align: center; }
.hero::before {
  content: ''; position: absolute; inset: -40%; z-index: -2;
  background: repeating-conic-gradient(from 0deg at 50% 50%, rgb(255 210 31 / .13) 0 7deg, transparent 7deg 18deg);
  animation: spin 80s linear infinite; mask-image: radial-gradient(closest-side, #000 30%, transparent 75%);
}
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -3;
  background: url('/assets/img/bg-title.webp') center / cover no-repeat; opacity: .55;
  mask-image: linear-gradient(#000 40%, transparent);
}
@keyframes spin { to { transform: rotate(1turn); } }
.hero-logo { width: min(640px, 92vw); margin: 0 auto -6px; filter: drop-shadow(0 10px 0 rgb(42 11 69 / .55)); animation: bob 5s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-1deg); } }
.ribbon {
  display: inline-block; position: relative; margin: 0 auto 26px; padding: .45em 1.4em .5em; font: 400 clamp(1.1rem, 3vw, 1.6rem)/1 var(--display);
  color: var(--magenta); background: var(--cream); border: 3px solid var(--ink); border-radius: 12px; box-shadow: 0 5px 0 var(--ink);
  transform: rotate(-2deg);
}
.ribbon::before, .ribbon::after { content: ''; position: absolute; top: 12px; width: 34px; height: 100%; background: var(--violet); border: 3px solid var(--ink); z-index: -1; }
.ribbon::before { left: -24px; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 30% 50%); }
.ribbon::after { right: -24px; clip-path: polygon(0 0, 100% 0, 70% 50%, 100% 100%, 0 100%); }
.hero h1 { font-size: clamp(2rem, 5.2vw, 3.6rem); max-width: 18ch; margin-inline: auto; }
.hero .lead { margin: 0 auto 30px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; align-items: center; margin-bottom: 18px; }
.hero-note { font-size: .95rem; color: var(--text-dim); margin: 0 0 30px; }
.hero-hands { display: flex; justify-content: center; align-items: flex-end; gap: clamp(0px, 2vw, 30px); margin-top: 10px; height: clamp(150px, 24vw, 260px); }
.hero-hands img { width: clamp(100px, 17vw, 200px); transform-origin: 50% 100%; animation: wave 3.2s ease-in-out infinite; margin-bottom: -18px; }
.hero-hands img:nth-child(2) { animation-delay: -.8s; width: clamp(110px, 19vw, 220px); }
.hero-hands img:nth-child(3) { animation-delay: -1.6s; }
.hero-hands img:nth-child(4) { animation-delay: -2.2s; }
.hero-hands img:nth-child(5) { animation-delay: -1.2s; }
@keyframes wave { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg) translateY(-6px); } }
@media (max-width: 640px) { .hero-hands img:nth-child(n+4) { display: none; } }

/* Alphabet marquee */
.alpha-marquee { overflow: hidden; background: var(--ink); border-block: 3px solid #000; padding: 14px 0; position: relative; z-index: 2; }
.alpha-marquee .track { display: flex; gap: 10px; width: max-content; animation: marquee 40s linear infinite; }
.alpha-marquee:hover .track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.chip-l {
  --c: var(--yellow);
  display: inline-grid; place-items: center; width: 46px; height: 50px; font: 400 1.6rem/1 var(--display); color: var(--ink);
  background: var(--c); border: 3px solid #000; border-radius: 12px; box-shadow: inset 0 -5px 0 rgb(0 0 0 / .18), inset 0 3px 0 rgb(255 255 255 / .4);
  text-decoration: none;
}
a.chip-l:hover { transform: translateY(-3px) rotate(-4deg); color: var(--ink); }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 9vw, 110px) 0; position: relative; }
.section--tight { padding: clamp(40px, 6vw, 70px) 0; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto clamp(30px, 5vw, 56px); }
.section-head .lead { margin-inline: auto; }

.clay-card {
  background: var(--cream); color: var(--body-ink); border: 3px solid var(--ink); border-radius: var(--r-lg);
  box-shadow: inset 0 -8px 0 rgb(42 11 69 / .08), inset 0 5px 0 #fff, 0 9px 0 var(--ink);
}
.clay-card a { color: var(--violet); }
.clay-card a:hover { color: var(--magenta); }

.grid { display: grid; gap: clamp(18px, 2.5vw, 30px); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }

.feature { padding: 26px 26px 28px; position: relative; overflow: hidden; transition: transform .25s cubic-bezier(.3,1.5,.5,1); }
.feature:hover { transform: translateY(-6px) rotate(-.6deg); }
.feature img { width: 150px; height: 150px; object-fit: contain; margin: -6px auto 10px; filter: drop-shadow(0 6px 0 rgb(42 11 69 / .25)); }
.feature h3 { font: 400 1.65rem/1.1 var(--display); margin: 0 0 .4em; color: var(--ink); text-align: center; }
.feature p { margin: 0; color: var(--body-dim); font-size: 1.02rem; text-align: center; }
.feature .tag { position: absolute; top: 16px; right: 16px; font: 700 .72rem/1 var(--round); letter-spacing: .08em; text-transform: uppercase; background: var(--magenta); color: #fff; padding: 6px 10px; border-radius: 99px; border: 2px solid var(--ink); }
.feature--m { background: linear-gradient(#FFE3F1, #FFD0E8); }
.feature--t { background: linear-gradient(#DDFBF8, #BFF2EE); }
.feature--y { background: linear-gradient(#FFF6C9, #FFEB9A); }
.feature--v { background: linear-gradient(#EFE2FF, #DFC8FF); }
.feature--o { background: linear-gradient(#FFE6D1, #FFD1AE); }
.feature--l { background: linear-gradient(#ECFAD6, #D7F3A8); }

/* Modes */
.mode { display: grid; grid-template-columns: 170px 1fr; gap: 22px; align-items: center; padding: 24px; }
.mode img { width: 170px; height: 170px; object-fit: contain; }
.mode h3 { font: 400 2rem/1 var(--display); margin: 0 0 .3em; color: var(--ink); }
.mode p { margin: 0; color: var(--body-dim); }
.mode .who { display: inline-block; margin-top: 10px; font-weight: 700; font-size: .9rem; color: var(--violet); }
@media (max-width: 560px) { .mode { grid-template-columns: 1fr; text-align: center; } .mode img { margin: 0 auto; } }

/* Steps */
.steps { counter-reset: s; display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; position: relative; padding: 46px 24px 24px; }
.steps li::before {
  content: counter(s); position: absolute; top: -26px; left: 22px; width: 58px; height: 58px; display: grid; place-items: center;
  font: 400 2rem/1 var(--display); color: #fff; background: var(--magenta); border: 3px solid var(--ink); border-radius: 50%;
  box-shadow: inset 0 -5px 0 rgb(0 0 0 / .18), inset 0 3px 0 rgb(255 255 255 / .35), 0 5px 0 var(--ink); -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill;
}
.steps li:nth-child(2)::before { background: var(--turq); }
.steps li:nth-child(3)::before { background: var(--orange); }
.steps li:nth-child(4)::before { background: var(--violet); }
.steps h3 { font: 400 1.5rem/1.1 var(--display); margin: 0 0 .35em; color: var(--ink); }
.steps p { margin: 0; color: var(--body-dim); font-size: 1rem; }

/* Phone screenshots */
.shots { display: flex; gap: 26px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px var(--gutter) 34px; margin-inline: calc(var(--gutter) * -1); scrollbar-width: thin; }
.shot { flex: none; width: min(250px, 66vw); scroll-snap-align: center; text-align: center; }
.shot .phone { border: 4px solid #000; border-radius: 38px; overflow: hidden; background: #000; box-shadow: 0 0 0 4px var(--ink-soft), 0 12px 0 var(--ink), 0 24px 40px rgb(0 0 0 / .45); aspect-ratio: 1206 / 2622; }
.shot .phone img { width: 100%; height: 100%; object-fit: cover; }
.shot figcaption { margin-top: 18px; font: 400 1.25rem/1.1 var(--display); color: #fff; }
.shot figcaption span { display: block; font: 500 .92rem/1.4 var(--round); color: var(--text-dim); margin-top: 6px; }
.ipad-frame { border: 5px solid #000; border-radius: 30px; overflow: hidden; box-shadow: 0 0 0 5px var(--ink-soft), 0 14px 0 var(--ink), 0 30px 60px rgb(0 0 0 / .5); }

/* Chaos cards fan */
.chaos-fan { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.chaos-card { width: 160px; text-align: center; transition: transform .25s cubic-bezier(.3,1.6,.5,1); }
.chaos-card:nth-child(odd) { transform: rotate(-4deg); }
.chaos-card:nth-child(even) { transform: rotate(4deg) translateY(10px); }
.chaos-card:hover { transform: rotate(0) translateY(-10px) scale(1.06); }
.chaos-card img { width: 160px; height: 160px; object-fit: contain; filter: drop-shadow(0 8px 0 rgb(0 0 0 / .35)); }
.chaos-card strong { display: block; margin-top: 8px; font: 400 1.2rem/1.1 var(--display); color: #fff; }
.chaos-card span { display: block; font-size: .88rem; line-height: 1.35; color: var(--text-dim); }

/* Judge band */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 70px); align-items: center; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.speech { position: relative; padding: 20px 24px; font-size: 1.12rem; font-weight: 600; }
.speech::after { content: ''; position: absolute; left: 40px; bottom: -22px; width: 30px; height: 24px; background: var(--cream); border: 3px solid var(--ink); border-top: 0; clip-path: polygon(0 0, 100% 0, 0 100%); }
.verdict { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.verdict li { font-weight: 700; padding: 8px 14px; border-radius: 99px; border: 2px solid var(--ink); background: #fff; color: var(--ink); font-size: .95rem; }
.verdict .ok { background: #C9F6D3; } .verdict .no { background: #FFD3D1; } .verdict .gold { background: #FFEB9A; }

/* Stats / proof strip */
.proof { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 16px; text-align: center; }
.proof div { padding: 22px 12px; border-radius: var(--r); background: rgb(255 255 255 / .06); border: 2px solid rgb(255 255 255 / .1); }
.proof strong { display: block; font: 400 clamp(2.2rem, 5vw, 3rem)/1 var(--display); color: var(--yellow); -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; text-shadow: 0 4px 0 var(--ink); }
.proof span { color: var(--text-dim); font-size: .98rem; }

/* FAQ */
.faq { display: grid; gap: 14px; max-width: 860px; margin-inline: auto; }
.faq details { background: var(--cream); color: var(--body-ink); border: 3px solid var(--ink); border-radius: var(--r); box-shadow: 0 6px 0 var(--ink); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 60px 20px 24px; font: 600 1.12rem/1.35 var(--round); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 18px; top: 50%; translate: 0 -50%; width: 34px; height: 34px; display: grid; place-items: center; font: 400 1.6rem/1 var(--display); color: #fff; background: var(--magenta); border: 2px solid var(--ink); border-radius: 50%; transition: rotate .2s; }
.faq details[open] summary::after { rotate: 45deg; background: var(--violet); }
.faq .a { padding: 0 24px 22px; color: var(--body-dim); }
.faq .a p { margin: 0; }

/* CTA band */
.cta-band { position: relative; overflow: hidden; isolation: isolate; text-align: center; padding: clamp(40px, 6vw, 64px) clamp(20px, 5vw, 60px); border-radius: var(--r-lg); border: 4px solid var(--ink); box-shadow: 0 10px 0 var(--ink); background: linear-gradient(135deg, var(--magenta), #C21877 60%, var(--violet)); }
.cta-band::before { content: ''; position: absolute; inset: -50%; z-index: -1; background: repeating-conic-gradient(rgb(255 255 255 / .09) 0 8deg, transparent 8deg 20deg); animation: spin 60s linear infinite; }
.cta-band h2 { margin-bottom: .2em; }
.cta-band p { color: #fff; font-size: 1.15rem; max-width: 40rem; margin: 0 auto 26px; }
.cta-band .hand { position: absolute; width: clamp(90px, 14vw, 170px); bottom: -14px; z-index: -1; }
.cta-band .hand--l { left: 2%; rotate: -14deg; } .cta-band .hand--r { right: 2%; rotate: 14deg; }
@media (max-width: 700px) { .cta-band .hand { opacity: .35; } }

/* ---------- Link cards ---------- */
.card-link { display: flex; flex-direction: column; gap: 10px; padding: 22px; text-decoration: none; color: var(--body-ink); transition: transform .2s cubic-bezier(.3,1.5,.5,1); height: 100%; }
.card-link:hover { transform: translateY(-5px) rotate(-.5deg); color: var(--body-ink); }
.card-link .top { display: flex; align-items: center; gap: 14px; }
.card-link img { width: 74px; height: 74px; object-fit: contain; flex: none; }
.card-link .k { font: 700 .74rem/1 var(--round); text-transform: uppercase; letter-spacing: .1em; color: var(--magenta); }
.card-link h3 { font: 400 1.4rem/1.15 var(--display); margin: 4px 0 0; color: var(--ink); }
.card-link p { margin: 0; color: var(--body-dim); font-size: .98rem; }
.card-link .go { margin-top: auto; font-weight: 700; color: var(--violet); }

/* ---------- Breadcrumbs ---------- */
.crumbs { font-size: .92rem; color: var(--text-dim); margin: 0 0 18px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.crumbs li + li::before { content: '›'; margin-right: 6px; opacity: .6; }
.crumbs a { color: var(--text-dim); }

/* ---------- Article ---------- */
.page-hero { padding: clamp(28px, 5vw, 56px) 0 clamp(26px, 4vw, 40px); }
.article-head { display: grid; grid-template-columns: 1fr 260px; gap: 30px; align-items: center; }
.article-head img { width: 260px; height: 260px; object-fit: contain; filter: drop-shadow(0 10px 0 rgb(0 0 0 / .35)); animation: bob 6s ease-in-out infinite; }
@media (max-width: 820px) { .article-head { grid-template-columns: 1fr; } .article-head img { width: 170px; height: 170px; order: -1; } }
.article-head h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
.meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--text-dim); font-size: .95rem; margin-top: 10px; }
.meta b { color: var(--text); font-weight: 600; }

.answer {
  position: relative; margin: 0 0 30px; padding: 24px 26px 22px; background: var(--yellow); color: var(--ink);
  border: 3px solid var(--ink); border-radius: var(--r); box-shadow: inset 0 -6px 0 rgb(0 0 0 / .1), inset 0 4px 0 rgb(255 255 255 / .45), 0 7px 0 var(--ink);
}
.answer .label { position: absolute; top: -16px; left: 20px; font: 400 1rem/1 var(--display); background: var(--magenta); color: #fff; padding: 7px 14px; border: 2px solid var(--ink); border-radius: 99px; letter-spacing: .03em; -webkit-text-stroke: 1px var(--ink); paint-order: stroke fill; }
.answer p { margin: 0; font-size: 1.15rem; font-weight: 600; line-height: 1.55; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 36px; align-items: start; }
@media (max-width: 1000px) { .layout { grid-template-columns: minmax(0, 1fr); } .aside { order: -1; } }
.aside { position: sticky; top: 96px; display: grid; gap: 20px; }
@media (max-width: 1000px) { .aside { position: static; } }
.toc { padding: 20px 22px; }
.toc h2 { font: 400 1.25rem/1 var(--display); margin: 0 0 12px; color: var(--ink); }
.toc ol { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; font-size: .98rem; }
.toc a { text-decoration: none; font-weight: 600; }
@media (max-width: 1000px) { .toc { padding: 0; } .toc details { padding: 16px 20px; } .toc summary { cursor: pointer; font: 400 1.2rem/1 var(--display); } }
.mini-cta { padding: 22px; text-align: center; background: linear-gradient(160deg, #FFE3F1, #EFE2FF); }
.mini-cta img { width: 96px; margin: -4px auto 8px; }
.mini-cta strong { display: block; font: 400 1.35rem/1.1 var(--display); color: var(--ink); margin-bottom: 6px; }
.mini-cta p { margin: 0 0 14px; font-size: .95rem; color: var(--body-dim); }
.mini-cta .badge { transform: scale(.88); }

.takeaways { padding: 22px 26px; margin-bottom: 30px; background: #fff; }
.takeaways h2 { font: 400 1.35rem/1 var(--display); margin: 0 0 12px; color: var(--ink); }
.takeaways ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.takeaways li { position: relative; padding-left: 34px; color: var(--body-ink); }
.takeaways li::before { content: '✓'; position: absolute; left: 0; top: 2px; width: 24px; height: 24px; display: grid; place-items: center; background: var(--green); color: #fff; border: 2px solid var(--ink); border-radius: 50%; font-size: .8rem; font-weight: 800; }

.prose { padding: clamp(24px, 4vw, 48px); font-size: 1.1rem; line-height: 1.72; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font: 400 clamp(1.6rem, 3.4vw, 2.2rem)/1.15 var(--display); color: var(--ink); margin: 1.9em 0 .55em; padding-top: .2em; }
.prose h2::before { content: ''; display: block; width: 54px; height: 8px; border-radius: 9px; background: linear-gradient(90deg, var(--magenta), var(--orange), var(--yellow)); margin-bottom: 14px; border: 2px solid var(--ink); }
.prose h3 { font: 700 1.3rem/1.3 var(--round); color: var(--violet); margin: 1.6em 0 .4em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.05em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--magenta); font-weight: 700; }
.prose strong { color: var(--ink); }
.prose blockquote { margin: 1.4em 0; padding: 16px 22px; border-left: 6px solid var(--magenta); background: #fff; border-radius: 0 var(--r-sm) var(--r-sm) 0; font-style: italic; }
.prose .table-wrap { overflow-x: auto; margin: 1.3em 0 1.6em; border: 3px solid var(--ink); border-radius: var(--r-sm); box-shadow: 0 5px 0 var(--ink); background: #fff; }
.prose table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.prose table:has(th:nth-child(3)) { min-width: 520px; }
@media (max-width: 560px) { .prose { font-size: 1.04rem; } .prose th, .prose td { padding: 10px; } }
.prose th { background: var(--ink); color: var(--cream); text-align: left; font-weight: 700; padding: 12px 14px; }
.prose td { padding: 11px 14px; border-top: 1px solid #E8DDF5; vertical-align: top; }
.prose tbody tr:nth-child(even) td { background: #FBF7FF; }
.prose .callout { margin: 1.5em 0; padding: 18px 22px; border-radius: var(--r-sm); background: #DDFBF8; border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink); }
.prose .callout--warn { background: #FFE6D1; }
.prose .callout > :last-child { margin-bottom: 0; }
.prose .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.prose .chips span { display: inline-grid; place-items: center; min-width: 42px; height: 44px; padding: 0 8px; font: 400 1.35rem/1 var(--display); background: var(--yellow); color: var(--ink); border: 3px solid var(--ink); border-radius: 11px; box-shadow: inset 0 -4px 0 rgb(0 0 0 / .14); }
.prose .chips span:nth-child(4n+2) { background: var(--turq); } .prose .chips span:nth-child(4n+3) { background: #FF8FC5; } .prose .chips span:nth-child(4n+4) { background: #FFB073; }

.app-cta { display: grid; grid-template-columns: 130px 1fr; gap: 22px; align-items: center; margin: 2em 0; padding: 24px; border-radius: var(--r); border: 3px solid var(--ink); box-shadow: 0 7px 0 var(--ink); background: linear-gradient(135deg, var(--purple), var(--violet)); color: #fff; }
.app-cta img { width: 130px; height: 130px; object-fit: contain; }
.app-cta strong { display: block; font: 400 1.6rem/1.1 var(--display); color: #fff; -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill; text-shadow: 0 3px 0 var(--ink); margin-bottom: 6px; }
.app-cta p { margin: 0 0 14px; color: var(--text-dim); font-size: 1rem; }
/* the badge keeps Apple's white text wherever it sits (prose links and strong would recolor it) */
.prose a.badge, .prose a.badge:hover, a.badge small, a.badge strong { color: #fff; text-decoration: none; }
@media (max-width: 560px) { .app-cta { grid-template-columns: 1fr; text-align: center; } .app-cta img { margin: 0 auto; } }

.sources { font-size: .92rem; color: var(--body-dim); }
.sources h2 { font: 400 1.3rem/1 var(--display); color: var(--ink); margin: 0 0 10px; }
.sources ul { margin: 0; padding-left: 1.2em; }
.author-box { display: flex; gap: 16px; align-items: center; padding: 20px 22px; }
.author-box img { width: 64px; height: 64px; border-radius: 18px; border: 3px solid var(--ink); }
.author-box p { margin: 0; font-size: .95rem; color: var(--body-dim); }
.author-box strong { color: var(--ink); }

/* ---------- Letter pages ---------- */
.letter-hero { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 50px); align-items: center; }
@media (max-width: 700px) { .letter-hero { grid-template-columns: 1fr; text-align: center; } .letter-hero .marquee-frame { margin: 0 auto; } }
.marquee-frame {
  --size: clamp(170px, 26vw, 260px);
  position: relative; width: var(--size); height: var(--size); display: grid; place-items: center; border-radius: 34px;
  background: radial-gradient(circle at 50% 40%, #5A2286, #2A0B45 70%); border: 14px solid #FF5FA8;
  box-shadow: 0 0 0 4px var(--ink), inset 0 0 0 4px var(--ink), 0 12px 0 4px var(--ink), 0 0 60px rgb(255 95 210 / .45);
}
.marquee-frame::before { content: ''; position: absolute; inset: -14px; border-radius: 34px; background: radial-gradient(circle, #FFF7C2 0 4px, transparent 5px) 0 0 / 28px 28px; mask: linear-gradient(#000 0 0) top/100% 14px no-repeat, linear-gradient(#000 0 0) bottom/100% 14px no-repeat, linear-gradient(#000 0 0) left/14px 100% no-repeat, linear-gradient(#000 0 0) right/14px 100% no-repeat; animation: bulbs 1.2s steps(2) infinite; }
@keyframes bulbs { 50% { opacity: .55; } }
.big-letter { font-size: calc(var(--size) * .62); color: var(--yellow); -webkit-text-stroke: .05em var(--ink); text-shadow: 0 .06em 0 #B8860B, 0 .1em 0 var(--ink); }
.alpha-nav { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.alpha-nav .chip-l { width: 44px; height: 48px; font-size: 1.45rem; }
.alpha-nav .chip-l[aria-current] { --c: var(--magenta); color: #fff; -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill; transform: translateY(-4px) scale(1.08); }
.alpha-nav .chip-l:nth-child(4n+2) { --c: var(--turq); } .alpha-nav .chip-l:nth-child(4n+3) { --c: #FF8FC5; } .alpha-nav .chip-l:nth-child(4n+4) { --c: #FFB073; }
.cat-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.cat { padding: 20px 22px 22px; }
.cat h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font: 400 1.4rem/1.15 var(--display); margin: 0 0 12px; color: var(--ink); }
.cat h3 small { font: 700 .72rem/1 var(--round); text-transform: uppercase; letter-spacing: .08em; padding: 5px 9px; border-radius: 99px; border: 2px solid var(--ink); white-space: nowrap; }
.tier-easy { background: #C9F6D3; } .tier-medium { background: #FFEB9A; } .tier-hard { background: #FFD3D1; }
.words { display: flex; flex-wrap: wrap; gap: 7px; margin: 0; padding: 0; list-style: none; }
.words li { padding: 5px 11px; border-radius: 10px; background: #fff; border: 2px solid #E3D3F5; font-size: .97rem; font-weight: 600; color: var(--ink); }
.cat .rule { font-size: .9rem; color: var(--body-dim); margin: 0 0 10px; }
.cat .more { margin: 12px 0 0; font-size: .9rem; color: var(--body-dim); }

/* ---------- Ritual / sorteador ---------- */
.ritual { padding: clamp(22px, 4vw, 40px); text-align: center; background: linear-gradient(160deg, #3B0A7A, #22063F); color: #fff; border-color: #000; }
.ritual .track { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0 auto 26px; max-width: 760px; }
.ritual .track span { display: inline-grid; place-items: center; width: 34px; height: 38px; font: 400 1.25rem/1 var(--display); color: #fff; background: rgb(255 255 255 / .1); border: 2px solid rgb(0 0 0 / .5); border-radius: 9px; transition: background .08s, transform .08s; }
.ritual .track span.lit { background: var(--yellow); color: var(--ink); transform: translateY(-4px) scale(1.15); }
.ritual .track span.hit { background: var(--magenta); color: #fff; transform: translateY(-6px) scale(1.3); }
.ritual .track span.off { opacity: .25; }
.ritual .marquee-frame { margin: 0 auto 22px; }
.ritual .big-letter.pop { animation: pop .55s cubic-bezier(.2,1.8,.4,1); }
@keyframes pop { 0% { transform: scale(.2) rotate(-20deg); } 100% { transform: none; } }
.ritual .result { min-height: 3.2em; font-size: 1.15rem; color: var(--text-dim); margin: 0 0 20px; }
.ritual .result strong { color: var(--yellow); }
.ritual .samples { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 0 22px; padding: 0; list-style: none; min-height: 48px; }
.ritual .samples li { background: var(--cream); color: var(--ink); border: 3px solid #000; border-radius: 14px; padding: 8px 14px; font-weight: 700; font-size: .98rem; box-shadow: 0 4px 0 #000; animation: pop .45s both cubic-bezier(.2,1.6,.4,1); }
.ritual .samples li small { display: block; font: 700 .7rem/1 var(--round); text-transform: uppercase; letter-spacing: .08em; color: var(--magenta); margin-bottom: 3px; }
.players { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 0 0 24px; }
.player { width: 132px; padding: 12px 10px 14px; border-radius: 20px; background: rgb(255 255 255 / .08); border: 2px solid rgb(255 255 255 / .14); }
.player img { width: 80px; height: 80px; object-fit: contain; margin: 0 auto 6px; }
.player label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; }
.stepper { display: flex; align-items: center; justify-content: center; gap: 6px; }
.stepper button { width: 34px; height: 34px; border-radius: 10px; border: 2px solid #000; background: var(--violet); color: #fff; font: 400 1.3rem/1 var(--display); cursor: pointer; box-shadow: 0 3px 0 #000; }
.stepper button:active { transform: translateY(2px); box-shadow: 0 1px 0 #000; }
.stepper output { min-width: 34px; font: 400 1.7rem/1 var(--display); color: var(--yellow); }
.ritual-opts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; margin: 0 0 22px; font-size: .98rem; color: var(--text-dim); }
.ritual-opts label { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; }
.ritual-opts input { width: 20px; height: 20px; accent-color: var(--magenta); }
.sum-line { font: 400 1.4rem/1.2 var(--display); color: #fff; margin: 0 0 18px; min-height: 1.2em; }

/* Printable sheet */
.sheet { background: #fff; color: #111; border-radius: 18px; padding: 28px; border: 3px solid var(--ink); box-shadow: 0 8px 0 var(--ink); }
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; }
.sheet-head img { width: 180px; }
.sheet-head .fields { display: flex; gap: 18px; font-weight: 700; flex-wrap: wrap; }
.sheet table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: .9rem; }
.sheet th, .sheet td { border: 2px solid #2A0B45; padding: 6px; text-align: center; }
.sheet th { background: #F4EEFF; font-weight: 700; font-size: .78rem; line-height: 1.2; hyphens: manual; overflow-wrap: normal; }
.sheet td { height: 44px; }
.sheet th:first-child, .sheet td:first-child { width: 58px; }
.sheet td:first-child { font: 400 1.3rem/1 var(--display); }
.sheet th:last-child, .sheet td:last-child { width: 64px; }
.sheet-foot { margin-top: 12px; font-size: .8rem; color: #555; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.sheet-wrap { overflow-x: auto; }
.sheet-controls { display: grid; gap: 16px; padding: 24px; margin-bottom: 26px; }
.sheet-controls fieldset { border: 0; padding: 0; margin: 0; }
.sheet-controls legend { font: 400 1.25rem/1 var(--display); color: var(--ink); margin-bottom: 10px; }
.cat-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-pick label { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 99px; background: #fff; border: 2px solid #D9C6F0; cursor: pointer; font-weight: 600; font-size: .95rem; }
.cat-pick input { accent-color: var(--magenta); }
.cat-pick label:has(input:checked) { background: #FFE3F1; border-color: var(--magenta); }
.controls-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.controls-row select, .controls-row input[type=text] { font: 600 1rem var(--round); padding: 10px 12px; border-radius: 12px; border: 2px solid var(--ink); background: #fff; color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { margin-top: clamp(40px, 6vw, 80px); background: #12021F; border-top: 3px solid #000; padding: 56px 0 30px; font-size: .97rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 30px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }
.site-footer h2 { font: 400 1.2rem/1 var(--display); color: #fff; margin: 0 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer a { color: var(--text-dim); text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }
.site-footer .logo { width: 170px; margin-bottom: 14px; }
.site-footer p { color: var(--text-dim); margin: 0 0 16px; }
.legal { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgb(255 255 255 / .1); color: #A893C4; font-size: .85rem; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* ---------- Confetti & motion ---------- */
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 90; }
.reveal { opacity: 0; transform: translateY(26px) scale(.98); transition: opacity .6s, transform .6s cubic-bezier(.2,1.2,.4,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Print (folha de adedonha) ---------- */
@media print {
  @page { size: A4 landscape; margin: 10mm; }
  body { background: #fff !important; color: #000; font-size: 12px; }
  .site-header, .site-footer, .no-print, .crumbs, .page-hero, .skip { display: none !important; }
  .section { padding: 0 !important; }
  .wrap { width: 100%; }
  .sheet { box-shadow: none; border: 0; padding: 0; }
  .sheet-wrap { overflow: visible; }
  .sheet td { height: 34px; }
}

/* ---------- Refinements ---------- */
h1, h2.section-title, .card-link h3, .feature h3 { text-wrap: balance; }
.ritual a { color: var(--yellow); }
.ritual a:hover { color: #fff; }
.player > output { display: block; font: 400 1.9rem/1 var(--display); color: var(--yellow); -webkit-text-stroke: 1.5px #000; paint-order: stroke fill; }
.mode--stack { grid-template-columns: 1fr; text-align: center; align-content: start; justify-items: center; }
