:root {
  --bg: #05070b;
  --bg-2: #0a1018;
  --panel: #101820;
  --line: rgba(77, 159, 255, 0.28);
  --gold: #4aa3ff;
  --gold-2: #9dceff;
  --text: #eef3f9;
  --muted: #9aabc0;
  --green: #1d6fd8;
  --danger-soft: #121820;
  --ink: #061018;
  --radius: 16px;
  --max: 1120px;
  --header-h: 88px;
  --header-bg: #e8eef4;
  --header-ink: #0b1a2e;
  --header-muted: #3d5066;
  --header-line: rgba(37, 110, 190, 0.32);
  --header-blue: #1a6fd4;
  --wa: #25d366;
  --hero-gold: #e2b860;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

/* Header — fundo claro para contrastar com a lupa escura da logo */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-line);
  border-top: 1px solid var(--header-line);
  box-shadow: 0 8px 24px rgba(11, 26, 46, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: var(--header-h);
  padding-block: 6px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  color: var(--header-ink);
}

.brand-mark {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: transparent;
  overflow: visible;
  border-radius: 0;
}

.brand-mark img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
  background: transparent;
  mix-blend-mode: multiply;
}

.brand-mark .initials {
  font-family: Oswald, Impact, sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--header-blue);
}

.brand-text strong {
  display: block;
  font-family: Oswald, Impact, sans-serif;
  font-weight: 600;
  letter-spacing: 0.12em;
  font-size: 1.05rem;
  color: var(--header-ink);
}

.brand-text span {
  display: block;
  font-size: 0.72rem;
  color: var(--header-muted);
  max-width: 220px;
  line-height: 1.25;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  flex: 1 1 0;
  min-width: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.header-cta {
  flex-shrink: 0;
}

.nav a {
  font-size: 0.86rem;
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--header-ink);
}

.nav a:hover,
.nav a.is-active {
  color: var(--header-blue);
  background: rgba(26, 111, 212, 0.1);
}

.nav-drop {
  position: relative;
}

.nav-drop > button {
  font: inherit;
  font-size: 0.86rem;
  color: var(--header-ink);
  background: none;
  border: 0;
  padding: 8px 10px;
  border-radius: 999px;
  cursor: pointer;
}

.nav-drop > button:hover,
.nav-drop.is-open > button,
.nav-drop.has-active > button {
  color: var(--header-blue);
  background: rgba(26, 111, 212, 0.1);
}

.nav-drop-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 220px;
  background: #f4f7fa;
  border: 1px solid var(--header-line);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 16px 40px rgba(11, 26, 46, 0.12);
}

.nav-drop.is-open .nav-drop-menu {
  display: grid;
}

.nav-drop-menu a {
  border-radius: 8px;
  color: var(--header-ink);
}

.nav-drop-menu a.nav-sub {
  margin-left: 12px;
  padding-left: 14px;
  font-size: 0.8rem;
  border-left: 2px solid var(--header-line);
  border-radius: 0 8px 8px 0;
}

.lang-switch {
  position: relative;
  flex-shrink: 0;
}

.lang-switch button {
  font: inherit;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  background: none;
  border: 0;
  color: var(--header-ink);
  cursor: pointer;
}

.lang-current {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid var(--header-line) !important;
  border-radius: 999px;
  font-weight: 700;
}

.lang-current:hover,
.lang-switch.is-open .lang-current {
  color: var(--header-blue);
  background: rgba(26, 111, 212, 0.1);
}

.lang-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 50;
  min-width: 150px;
  padding: 6px;
  background: #f4f7fa;
  border: 1px solid var(--header-line);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(11, 26, 46, 0.12);
}

.lang-switch.is-open .lang-menu {
  display: grid;
  gap: 2px;
}

.lang-menu button {
  text-align: left;
  padding: 8px 10px;
  border-radius: 8px;
  white-space: nowrap;
}

.lang-menu button:hover {
  background: rgba(26, 111, 212, 0.1);
}

.lang-menu button.is-active {
  background: var(--header-blue);
  color: #fff;
  font-weight: 700;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--header-line);
  color: var(--header-ink);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  background: var(--wa);
  color: white;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 8px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.header-cta:hover {
  filter: brightness(1.06);
}

/* Hero */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  padding: 80px 0 140px;
  background:
    linear-gradient(90deg, rgba(5, 7, 11, 0.92) 0%, rgba(5, 7, 11, 0.6) 45%, rgba(5, 7, 11, 0.1) 75%),
    linear-gradient(0deg, var(--bg) 0%, transparent 30%),
    url("../img/hero/hero-bg.jpg") center right / cover no-repeat;
}

.hero-content {
  position: relative;
}

.hero-kicker {
  font-family: Oswald, Impact, sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  color: var(--hero-gold);
  margin: 0 0 4px;
}

.hero-badge {
  display: inline-block;
  font-family: Oswald, Impact, sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
  color: #062b14;
  background: #25d366;
  border-radius: 999px;
  padding: 4px 18px;
  margin: 6px 0 10px;
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  margin: 0 0 14px;
}

.hero-lead {
  font-size: 1.15rem;
  color: #d6dee8;
  margin: 0;
  max-width: 44ch;
}

.btn.btn-wa {
  background: var(--wa);
  color: #fff;
  padding: 14px 24px;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.3);
}

.btn.btn-outline-gold {
  border-color: var(--hero-gold, #e2b860);
  color: var(--hero-gold, #e2b860);
  padding: 14px 24px;
}

.btn-wa:hover,
.btn-outline-gold:hover {
  filter: brightness(1.1);
}

.features {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: -90px;
}

.feature {
  position: relative;
  overflow: hidden;
  background: #fff;
  color: var(--header-ink);
  border-radius: var(--radius);
  padding: 26px 24px 24px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--hero-gold), #f3d58f);
}

.feature:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 50px rgba(0, 0, 0, 0.5);
}

.feature-num {
  position: absolute;
  top: 14px;
  right: 18px;
  font-family: Oswald, Impact, sans-serif;
  font-weight: 600;
  font-size: 2rem;
  line-height: 1;
  color: rgba(11, 26, 46, 0.08);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  margin-bottom: 14px;
  background: linear-gradient(135deg, #e6f0fb, #fbf1dc);
}

.feature svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--header-blue);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature h3 {
  font-family: Oswald, sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
  margin: 0 0 4px;
}

.feature p {
  margin: 0;
  color: var(--header-muted);
  font-size: 0.95rem;
}

.about-home {
  padding: 96px 0 72px;
}

.craque-call {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  margin-top: 72px;
  padding: 40px 48px;
  border-radius: 24px;
  background: linear-gradient(135deg, #1e1065 0%, #0b1f4d 60%, #0a3a2a 100%);
  border: 1px solid rgba(157, 206, 255, 0.25);
}

.craque-call h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin: 0 0 12px;
}

.craque-call p {
  max-width: 52ch;
}

.craque-call-card {
  display: grid;
  justify-items: center;
  gap: 2px;
  width: 170px;
  padding: 22px 14px 18px;
  border-radius: 18px 18px 40px 40px;
  background: linear-gradient(160deg, #fff3c4, #c8952f 55%, #7a5414);
  color: #2a1c05;
  font-family: Oswald, sans-serif;
  text-align: center;
  transform: rotate(4deg);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s ease;
}

.craque-call-card:hover {
  transform: rotate(0deg) scale(1.04);
}

.craque-call-card b {
  font-size: 2.6rem;
  line-height: 1;
}

.craque-call-card i {
  font-style: normal;
  font-size: 3rem;
  margin: 6px 0;
}

.craque-call-card small {
  font-size: 0.78rem;
  line-height: 1.5;
}

.nav a.nav-craque {
  color: #fff;
  background: linear-gradient(135deg, #7c3aed, #2563eb);
}

.nav a.nav-craque:hover,
.nav a.nav-craque.is-active {
  color: #fff;
  background: linear-gradient(135deg, #6d28d9, #1d4ed8);
}

@media (max-width: 760px) {
  .craque-call {
    grid-template-columns: 1fr;
    padding: 28px 22px;
    margin-top: 48px;
  }

  .craque-call-card {
    display: none;
  }
}

.about-home-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.about-home h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 0 0 24px;
}

.cert-stack {
  position: relative;
  display: block;
  height: 300px;
}

.cert-stack img {
  position: absolute;
  width: 62%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: top;
  border-radius: 10px;
  border: 4px solid #fff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  transition: transform 0.25s ease;
}

.cert-stack img:nth-child(1) {
  left: 0;
  top: 40px;
  transform: rotate(-8deg);
}

.cert-stack img:nth-child(2) {
  left: 19%;
  top: 10px;
  transform: rotate(-1deg);
  z-index: 1;
}

.cert-stack img:nth-child(3) {
  right: 0;
  top: 50px;
  transform: rotate(7deg);
  z-index: 2;
}

.cert-stack:hover img:nth-child(1) {
  transform: rotate(-11deg) translateX(-8px);
}

.cert-stack:hover img:nth-child(3) {
  transform: rotate(10deg) translateX(8px);
}

.kicker {
  color: var(--gold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 700;
  margin: 0 0 12px;
}

h1,
h2,
.page-title {
  font-family: Oswald, Impact, sans-serif;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.12;
  margin: 0 0 16px;
}

h1 {
  font-size: clamp(2rem, 4.4vw, 3.35rem);
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.lead {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 58ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--gold);
  color: var(--ink);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--gold-2);
  background: transparent;
}

.btn[aria-disabled="true"],
.btn.is-disabled {
  opacity: 0.55;
  pointer-events: none;
}

.points {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 10px;
}

.points li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--text);
}

.points li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

/* Sections */
section {
  padding: 56px 0;
}

.section-head {
  margin-bottom: 28px;
}

.muted {
  color: var(--muted);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card,
.step,
.mod,
.cert {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.step strong {
  display: block;
  font-family: Oswald, sans-serif;
  font-size: 1.7rem;
  color: var(--gold);
  margin-bottom: 8px;
}

.grid-mods {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.mod h3 {
  font-family: Oswald, sans-serif;
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.mod p {
  color: var(--muted);
  margin: 0 0 16px;
  font-size: 0.95rem;
}

.certs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.cert {
  min-height: 180px;
  padding: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
  position: relative;
  background: #070b12;
}

.cert img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.cert .fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.9rem;
  padding: 16px;
  text-align: center;
}

.certs-full {
  grid-template-columns: repeat(3, 1fr);
}

.certs-full .cert img {
  height: 240px;
  object-fit: contain;
  background: #fff;
  transition: transform 0.2s ease;
}

.cert-link:hover img {
  transform: scale(1.03);
}

.about-teaser {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(90deg, rgba(77, 159, 255, 0.1), transparent);
  color: inherit;
  text-decoration: none;
}

.about-teaser h2 {
  margin-top: 0;
}

.about-teaser:hover .btn {
  border-color: var(--gold-2);
}

.page-hero {
  padding: 48px 0 12px;
}

.about-hero {
  padding: 80px 0 56px;
  background:
    radial-gradient(circle at 85% 0%, rgba(226, 184, 96, 0.14), transparent 45%),
    radial-gradient(circle at 0% 100%, rgba(29, 111, 216, 0.18), transparent 50%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.about-hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-photo {
  width: 100%;
  max-width: 380px;
  justify-self: end;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid rgba(226, 184, 96, 0.35);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 16px 16px 0 -1px rgba(226, 184, 96, 0.18);
}

.about-hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  margin: 0 0 6px;
}

.about-role {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--gold-2);
  margin: 0 0 18px;
}

.about-intro {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 56ch;
  margin: 0;
}

.stats {
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 560px;
}

.stats li {
  padding: 18px 20px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(226, 184, 96, 0.25);
}

.stats strong {
  display: block;
  font-family: Oswald, Impact, sans-serif;
  font-size: 2.2rem;
  line-height: 1.1;
  color: var(--hero-gold);
}

.stats span {
  font-size: 0.88rem;
  color: var(--muted);
}

.courses {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.course {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
}

.course-hours {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid var(--hero-gold);
  color: var(--hero-gold);
  font-family: Oswald, Impact, sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
}

.course strong {
  display: block;
  line-height: 1.3;
}

.course div span {
  font-size: 0.85rem;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 28px;
}

.filters button {
  font: inherit;
  font-size: 0.86rem;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
}

.filters button.is-active {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
  font-weight: 700;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.video-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.video-card iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  display: block;
}

.video-meta {
  padding: 12px 14px 16px;
}

.video-meta .pos {
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.video-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.video-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 68px;
  height: 48px;
  border-radius: 12px;
  background: #ff0000;
}

.video-play::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 0 10px 18px;
  border-color: transparent transparent transparent #fff;
  transform: translateX(2px);
}

.video-thumb:hover img {
  opacity: 1;
}

.video-badge {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.75rem;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 3px 10px;
}

.empty-state {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
}

.site-footer {
  background: #080c13;
  border-top: 1px solid rgba(226, 184, 96, 0.25);
  padding: 40px 0 28px;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-brand {
  font-family: Oswald, Impact, sans-serif;
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: 0.12em;
  color: var(--text);
}

.footer-nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.footer-nav a:hover {
  color: var(--hero-gold);
}

.footer-contact {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  font-weight: 600;
  font-size: 0.86rem;
}

.footer-pill svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer-pill:hover {
  border-color: var(--hero-gold);
}

.footer-pill.is-wa svg {
  color: var(--wa);
}

.footer-pill.is-yt svg {
  color: #ff3d3d;
}

.footer-pill.is-ig svg {
  color: #e1306c;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 8px 24px;
  flex-wrap: wrap;
  padding-top: 20px;
  font-size: 0.8rem;
  color: #6f7f93;
}

.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: white;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.wa-float svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

/* Nutrition page */
.hero.nutri-hero {
  min-height: 480px;
  padding: 72px 0 80px;
  background:
    linear-gradient(90deg, rgba(5, 7, 11, 0.95) 0%, rgba(5, 7, 11, 0.7) 40%, rgba(5, 7, 11, 0.05) 75%),
    linear-gradient(0deg, var(--bg) 0%, transparent 30%),
    url("../img/nutricao/nutricao-hero.jpg") center right / cover no-repeat;
}

.nutri-hero h1 {
  max-width: 12ch;
}

.nutri-pillars,
.nutri-game {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.nutri-pillar {
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 4px solid var(--hero-gold);
  border-radius: var(--radius);
  padding: 22px;
}

.nutri-pillar.p2 {
  border-top-color: #4fb3a9;
}

.nutri-pillar.p3 {
  border-top-color: #8fbf5a;
}

.nutri-pillar h3,
.nutri-age h3,
.nutri-game h3 {
  font-family: Oswald, sans-serif;
  font-size: 1.3rem;
  margin: 0 0 8px;
}

.nutri-pillar p {
  margin: 0 0 12px;
}

.nutri-pillar small {
  color: var(--muted);
  font-size: 0.92rem;
}

.nutri-ages,
.nutri-meals {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.nutri-meal h3 {
  font-family: Oswald, sans-serif;
  font-size: 1.3rem;
  margin: 0 0 8px;
}

.nutri-meal p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.nutri-age,
.nutri-meal {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.nutri-range {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hero-gold);
  margin-bottom: 6px;
}

.nutri-age ul,
.nutri-game ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.nutri-age li + li,
.nutri-game li + li {
  margin-top: 8px;
}

.nutri-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.nutri-box {
  border-radius: var(--radius);
  padding: 26px;
  border: 1px solid var(--line);
}

.nutri-box h2 {
  margin-top: 0;
}

.nutri-box.is-good {
  background: linear-gradient(160deg, rgba(143, 191, 90, 0.12), var(--panel) 60%);
  border-color: rgba(143, 191, 90, 0.35);
}

.nutri-box.is-bad {
  background: linear-gradient(160deg, rgba(220, 80, 70, 0.12), var(--panel) 60%);
  border-color: rgba(220, 80, 70, 0.35);
}

.nutri-box dl {
  margin: 18px 0 0;
}

.nutri-box dt {
  font-weight: 700;
  color: #a9d47a;
}

.nutri-box dd {
  margin: 2px 0 12px;
}

.nutri-avoid {
  list-style: none;
  padding: 0;
  margin: 18px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nutri-avoid li {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(220, 80, 70, 0.5);
  color: #f0a39b;
  font-size: 0.9rem;
  text-decoration: line-through;
  text-decoration-color: rgba(240, 163, 155, 0.6);
}

.nutri-note {
  margin-top: 28px;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}

/* Tactics lab */
.lab-section {
  padding-top: 8px;
}

.lab-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.lab-field {
  width: 100%;
  display: flex;
  justify-content: center;
}

.lab-svg {
  width: 100%;
  max-width: 460px;
  max-height: 70vh;
  border-radius: 14px;
  background: #2a7d38;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.lab-svg text {
  font-family: "Source Sans 3", sans-serif;
  font-weight: 700;
  pointer-events: none;
}

.lab-lines polyline {
  fill: none;
  stroke-width: 1.1;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.9;
}

.lab-stage {
  display: grid;
  gap: 12px;
  justify-items: center;
}

.lab-toolbar {
  width: 100%;
  max-width: 460px;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 10px;
  align-items: end;
}

.lab-toolbar[hidden] {
  display: none;
}

.lab-toolbar label {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.lab-toolbar label > span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hero-gold);
}

.lab-toolbar select {
  width: 100%;
  font: inherit;
  font-weight: 600;
  padding: 10px 34px 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23e2b860' stroke-width='2'/%3E%3C/svg%3E")
    right 12px center / 12px no-repeat;
  color: inherit;
  appearance: none;
  cursor: pointer;
}

.lab-toolbar select option {
  background: #10161f;
}

.lab-zone-tools {
  grid-template-columns: 1.6fr 1fr;
}

.lab-phase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.lab-phase button {
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 11px 4px;
  border: 0;
  background: var(--panel);
  color: var(--muted);
  cursor: pointer;
}

.lab-phase button.is-attack.is-on {
  background: #facc15;
  color: #111;
}

.lab-phase button.is-defend.is-on {
  background: #c084fc;
  color: #111;
}

.lab-zone {
  stroke-width: 0.5;
  stroke-dasharray: 1.6 1;
  animation: lab-zone-in 0.45s ease;
}

.lab-zone.is-attack {
  fill: rgba(250, 204, 21, 0.28);
  stroke: #facc15;
}

.lab-zone.is-defend {
  fill: rgba(168, 85, 247, 0.38);
  stroke: #c084fc;
}

@keyframes lab-zone-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.lab-player[data-num] {
  cursor: pointer;
}

.lab-player {
  transition: opacity 0.3s;
}

.lab-player.is-dim {
  opacity: 0.45;
}

.lab-player.is-selected circle {
  stroke: #facc15;
  stroke-width: 0.8;
}

.lab-caption {
  width: 100%;
  max-width: 460px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 4px solid #facc15;
}

.lab-caption.is-defend {
  border-left-color: #c084fc;
}

.lab-caption[hidden] {
  display: none;
}

.lab-caption-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hero-gold);
}

.lab-caption-text {
  margin: 4px 0 6px;
  font-family: Oswald, sans-serif;
  font-size: 1.25rem;
  line-height: 1.25;
}

.lab-caption-hint {
  color: var(--muted);
}

.lab-opp {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.lab-opp.is-visible {
  opacity: 1;
}

.lab-toggles button {
  font: inherit;
  cursor: pointer;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: inherit;
}

.lab-counts {
  display: flex;
  gap: 10px;
  margin: 26px 0 16px;
}

.lab-count {
  flex: 1;
  text-align: center;
  padding: 12px 6px;
  border-radius: 12px;
  border: 2px solid var(--c);
  background: color-mix(in srgb, var(--c) 12%, transparent);
}

.lab-count strong {
  display: block;
  font-family: Oswald, sans-serif;
  font-size: 2.2rem;
  line-height: 1;
  color: var(--c);
}

.lab-count span {
  font-size: 0.85rem;
  font-weight: 600;
}

.lab-say {
  font-family: Oswald, sans-serif;
  font-size: 1.45rem;
  line-height: 1.25;
  margin: 0 0 6px;
}

.lab-tip {
  color: var(--muted);
  margin: 0 0 20px;
}

.lab-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lab-toggles button {
  padding: 8px 14px;
  font-size: 0.92rem;
  font-weight: 600;
}

.lab-toggles button.is-on {
  border-color: var(--hero-gold);
  color: var(--hero-gold);
}

@media (max-width: 980px) {
  .lab-grid {
    grid-template-columns: 1fr;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .nutri-ages,
  .nutri-meals {
    grid-template-columns: 1fr 1fr;
  }

  .steps,
  .certs,
  .video-grid {
    grid-template-columns: 1fr 1fr;
  }

  .grid-mods {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: var(--header-h);
    background: var(--header-bg);
    border: 1px solid var(--header-line);
    border-radius: 12px;
    padding: 10px;
    flex-direction: column;
    align-items: stretch;
    box-shadow: 0 16px 32px rgba(11, 26, 46, 0.12);
  }

  .nav.is-open,
  body.nav-open .nav {
    display: flex;
  }

  .nav a,
  .nav-drop > button {
    color: var(--header-ink);
  }

  .nav-drop-menu {
    position: static;
    display: grid;
    box-shadow: none;
    border: 0;
    background: transparent;
    padding: 0 0 0 8px;
  }

  .header-cta {
    display: none;
  }

  .steps,
  .certs,
  .video-grid,
  .grid-mods {
    grid-template-columns: 1fr;
  }

  .brand-text span {
    display: none;
  }

  .hero {
    min-height: 520px;
    align-items: flex-end;
    padding: 48px 0 120px;
    background:
      linear-gradient(0deg, var(--bg) 0%, rgba(5, 7, 11, 0.75) 45%, rgba(5, 7, 11, 0.25) 100%),
      url("../img/hero/hero-bg.jpg") 72% center / cover no-repeat;
  }

  .features {
    gap: 8px;
    margin-top: -80px;
  }

  .feature {
    padding: 16px 10px 14px;
  }

  .feature-num {
    top: 10px;
    right: 8px;
    font-size: 1.2rem;
  }

  .feature-icon {
    width: 38px;
    height: 38px;
    margin-bottom: 8px;
  }

  .feature svg {
    width: 20px;
    height: 20px;
  }

  .feature h3 {
    font-size: 0.98rem;
    line-height: 1.2;
  }

  .feature p {
    font-size: 0.8rem;
    line-height: 1.35;
  }

  .lab-hero {
    padding: 28px 0 8px;
  }

  .lab-svg {
    max-height: 56vh;
  }

  .lab-zone-tools {
    grid-template-columns: 1fr 1fr;
  }

  .lab-phase button {
    font-size: 0.78rem;
    padding: 11px 2px;
  }

  .hero.nutri-hero {
    min-height: 460px;
    padding: 48px 0 40px;
    background:
      linear-gradient(0deg, var(--bg) 0%, rgba(5, 7, 11, 0.8) 45%, rgba(5, 7, 11, 0.3) 100%),
      url("../img/nutricao/nutricao-hero.jpg") 70% center / cover no-repeat;
  }

  .about-home {
    padding: 64px 0 48px;
  }

  .about-home-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .cert-stack {
    height: 210px;
  }

  .site-footer {
    padding-bottom: 96px;
  }

  .about-hero {
    padding: 40px 0 40px;
  }

  .about-hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .about-photo {
    order: -1;
    max-width: 220px;
    justify-self: center;
  }

  .stats li {
    padding: 14px 12px;
  }

  .stats strong {
    font-size: 1.6rem;
  }

  .stats span {
    font-size: 0.75rem;
  }

  .courses,
  .nutri-pillars,
  .nutri-game,
  .nutri-ages,
  .nutri-meals,
  .nutri-split {
    grid-template-columns: 1fr;
  }

  .footer-top,
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-contact {
    justify-content: center;
  }
}

/* Craque de Bola */
.cq-hero {
  padding-bottom: 8px;
}

.cq-section {
  padding: 16px 0 72px;
}

.cq-btn {
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  border: 0;
  border-radius: 12px;
  padding: 12px 18px;
  background: var(--hero-gold);
  color: #1a1206;
}

.cq-btn.is-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
}

.cq-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Card */
.cq-card {
  position: relative;
  display: block;
  width: 260px;
  height: 400px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: transform 0.2s ease;
}

.cq-card:not([disabled]):hover {
  transform: translateY(-4px);
}

.cq-card[disabled] {
  cursor: default;
}

.cq-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  border-radius: 22px 22px 40px 40px;
  padding: 16px 18px;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.5), inset 0 0 0 3px rgba(255, 255, 255, 0.35);
  background: var(--card-bg);
  color: var(--card-ink);
}

.cq-card.tier-0 { --card-bg: linear-gradient(160deg, #f0c08e, #9a5b2a); --card-ink: #2b1709; }
.cq-card.tier-1 { --card-bg: linear-gradient(160deg, #f6f8fa, #8f9aa6); --card-ink: #1b232c; }
.cq-card.tier-2 { --card-bg: linear-gradient(160deg, #fff0b8, #c8952f); --card-ink: #2b1d05; }
.cq-card.tier-3 { --card-bg: linear-gradient(160deg, #4a2491, #120827); --card-ink: #f6d77a; }

.cq-front {
  align-items: center;
}

.cq-top {
  position: absolute;
  top: 18px;
  left: 20px;
  display: grid;
  justify-items: center;
  line-height: 1;
}

.cq-ovr {
  font-family: Oswald, sans-serif;
  font-size: 2.6rem;
}

.cq-pos {
  font-family: Oswald, sans-serif;
  font-size: 1.05rem;
  margin-top: 2px;
}

.cq-tier-name {
  margin-top: 6px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.75;
}

.cq-avatar {
  width: 140px;
  height: 140px;
  margin: 14px 0 0 34px;
}

.cq-avatar-num {
  font-family: Oswald, sans-serif;
  font-size: 18px;
  fill: #fff;
  stroke: rgba(0, 0, 0, 0.35);
  stroke-width: 0.6;
}

.cq-name {
  width: 100%;
  margin-top: 4px;
  padding: 6px 0;
  border-top: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  font-family: Oswald, sans-serif;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  text-align: center;
  border-color: color-mix(in srgb, currentColor 35%, transparent);
}

.cq-stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: center;
  gap: 2px 12px;
  margin-top: 8px;
  font-family: Oswald, sans-serif;
  font-size: 0.95rem;
}

.cq-stats b {
  display: inline-block;
  min-width: 26px;
  font-size: 1.15rem;
}

/* Attribute details (FIFA style) */
.cq-dialog.is-wide {
  width: min(1080px, 100%);
  background: linear-gradient(160deg, #1b1446, #0b0a24);
}

.cq-details header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 22px;
  padding-right: 40px;
  margin-bottom: 18px;
  color: var(--muted);
}

.cq-details header strong {
  font-family: Oswald, sans-serif;
  font-size: 1.6rem;
  color: #5eead4;
  letter-spacing: 0.03em;
}

.cq-details header b {
  color: var(--text);
}

.cq-stars {
  color: #facc15 !important;
  letter-spacing: 0.08em;
}

.cq-attrs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px 20px;
}

.cq-attr h4 {
  margin: 0;
  text-align: center;
  font-family: Oswald, sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #c7d2fe;
}

.cq-gauge {
  display: block;
  width: 96px;
  margin: 2px auto 8px;
}

.cq-gauge path {
  fill: none;
  stroke-width: 9;
}

.cq-gauge-bg {
  stroke: rgba(255, 255, 255, 0.12);
}

.cq-gauge-fill {
  transition: stroke-dasharray 0.6s ease;
}

.cq-gauge text {
  font-family: Oswald, sans-serif;
  font-size: 22px;
  fill: #fff;
}

.cq-attr ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
}

.cq-attr li {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 8px;
  font-size: 0.82rem;
}

.cq-attr li span {
  color: #cbd5e1;
  line-height: 1.25;
}

.cq-attr li b {
  font-family: Oswald, sans-serif;
  font-weight: 500;
}

.cq-attr li i {
  grid-column: 1 / -1;
  height: 4px;
  margin-top: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--c, transparent) var(--w, 0%), rgba(255, 255, 255, 0.1) var(--w, 0%));
}

.cq-attr li.is-locked {
  opacity: 0.45;
}

.is-up {
  animation: cq-pop 1.2s ease 2;
}

@keyframes cq-pop {
  0%, 100% { transform: scale(1); }
  40% { transform: scale(1.25); color: #16a34a; }
}

/* Login */
.cq-auth {
  max-width: 420px;
  margin: 0 auto;
}

.cq-auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.cq-auth-tabs button {
  font: inherit;
  font-weight: 700;
  padding: 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.cq-auth-tabs button.is-on {
  background: var(--hero-gold);
  color: #1a1206;
}

.cq-auth-msg {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.45);
}

.cq-auth-note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.cq-loading {
  text-align: center;
  color: var(--muted);
}

.cq-user {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-weight: 700;
  color: var(--hero-gold);
}

.cq-user-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.cq-reset,
.cq-logout {
  font: inherit;
  font-size: 0.85rem;
  padding: 6px 12px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

/* Setup */
.cq-setup {
  display: grid;
  grid-template-columns: auto minmax(0, 440px);
  gap: 48px;
  justify-content: center;
  align-items: start;
}

.cq-form {
  display: grid;
  gap: 14px;
}

.cq-form h2 {
  margin: 0;
  font-family: Oswald, sans-serif;
}

.cq-form label > span,
.cq-form legend,
.cq-result-form label > span {
  display: block;
  margin-bottom: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hero-gold);
}

.cq-form input:not([type="radio"]):not([type="checkbox"]),
.cq-form select,
.cq-result-form input {
  width: 100%;
  font: inherit;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
}

.cq-form-row {
  display: grid;
  grid-template-columns: 0.8fr 1fr 1.2fr;
  gap: 12px;
}

.cq-form fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cq-form fieldset legend {
  width: 100%;
}

.cq-swatch input {
  position: absolute;
  opacity: 0;
}

.cq-swatch span {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid transparent;
  box-shadow: 0 0 0 1px var(--line);
  cursor: pointer;
}

.cq-swatch input:checked + span {
  border-color: var(--hero-gold);
}

.cq-swatch input:focus-visible + span {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.cq-promise {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--panel);
  border-left: 4px solid var(--hero-gold);
  cursor: pointer;
}

.cq-promise input {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  accent-color: var(--hero-gold);
}

/* Home */
#craque {
  overflow-x: clip;
}

.cq-home {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.cq-jump {
  grid-column: 1 / -1;
  justify-self: stretch;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  touch-action: pan-x pan-y;
  overscroll-behavior-x: contain;
  position: sticky;
  top: var(--cq-jump-top, 0px);
  z-index: 30;
  display: flex;
  gap: 8px;
  margin: -8px 0 -28px;
  padding: 10px 2px;
  overflow-x: auto;
  scrollbar-width: none;
  background: rgba(4, 7, 12, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.cq-jump::-webkit-scrollbar {
  display: none;
}

.cq-jump button {
  flex: none;
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(226, 184, 96, 0.45);
  background: var(--panel);
  color: inherit;
  cursor: pointer;
}

.cq-jump button.is-on {
  border-color: var(--hero-gold);
  background: var(--hero-gold);
  color: #1a1206;
}

[data-sec] {
  scroll-margin-top: var(--cq-jump-gap, calc(var(--header-h) + 60px));
}

.cq-card-col {
  position: sticky;
  top: var(--cq-jump-gap, calc(var(--header-h) + 16px));
  display: grid;
  justify-items: center;
  gap: 10px;
}

.cq-hint {
  color: var(--muted);
}

.cq-edit-look {
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: inherit;
  cursor: pointer;
}

.cq-edit-look:hover {
  border-color: var(--hero-gold);
}

.cq-look input {
  position: absolute;
  opacity: 0;
}

.cq-look span {
  display: block;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  border: 3px solid transparent;
  box-shadow: 0 0 0 1px var(--line);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.cq-look svg {
  display: block;
  width: 100%;
  height: 100%;
}

.cq-look input:checked + span {
  border-color: var(--hero-gold);
}

.cq-look input:focus-visible + span {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.cq-look-preview {
  display: grid;
  justify-items: center;
}

.cq-look-preview .cq-avatar {
  margin: 0;
}

.cq-look-form {
  display: grid;
  gap: 14px;
}

.cq-status {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.cq-level,
.cq-streak {
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.cq-level {
  position: relative;
  display: grid;
  gap: 6px;
}

.cq-level b {
  font-family: Oswald, sans-serif;
  font-size: 1.4rem;
  color: var(--hero-gold);
}

.cq-xpbar {
  height: 10px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.cq-xpbar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--hero-gold), #ffe7a3);
  transition: width 0.6s ease;
}

/* Floating XP notice after a mission: it shows where the child is, without scrolling the page. */
.cq-xp-toast {
  position: fixed;
  z-index: 250;
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom));
  translate: -50% 0;
  display: grid;
  gap: 6px;
  width: min(300px, calc(100vw - 32px));
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(10, 15, 28, 0.95);
  box-shadow: 0 0 0 2px var(--hero-gold), 0 12px 30px rgba(0, 0, 0, 0.55);
  text-align: center;
  pointer-events: none;
  animation: cq-toast-in 0.35s ease-out;
  transition: opacity 0.4s, translate 0.4s;
}

.cq-xp-toast b {
  font: 700 1.4rem/1 Oswald, sans-serif;
  color: #fde047;
}

.cq-xp-toast small {
  color: var(--text);
  font-weight: 700;
}

.cq-toast-sum {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.cq-toast-sum li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-weight: 700;
  color: var(--text);
}

.cq-toast-sum b {
  font: 700 1.5rem/1 Oswald, sans-serif;
  color: #4ade80;
  min-width: 2ch;
  text-align: right;
}

.cq-xp-toast.is-out {
  opacity: 0;
  translate: -50% 20px;
}

@keyframes cq-toast-in {
  from { opacity: 0; translate: -50% 30px; }
}

.cq-level small,
.cq-streak small {
  color: var(--muted);
}

.cq-streak {
  display: grid;
  place-items: center;
  text-align: center;
}

.cq-streak b {
  font-family: Oswald, sans-serif;
  font-size: 1.6rem;
}

.cq-h {
  margin: 28px 0 12px;
  font-family: Oswald, sans-serif;
  font-size: 1.3rem;
}

.cq-status + .cq-h.is-group {
  margin-top: 24px;
}

.cq-h.is-group {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 40px 0 14px;
  padding: 12px 16px;
  border-radius: 14px;
  border-left: 6px solid var(--hero-gold);
  background: linear-gradient(90deg, rgba(226, 184, 96, 0.2), rgba(226, 184, 96, 0) 85%);
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--hero-gold);
}

.cq-sec-lead {
  margin: -6px 0 14px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.35;
}

.cq-missions {
  display: grid;
  gap: 10px;
}

.cq-missions.is-compact {
  grid-template-columns: 1fr 1fr;
}

.cq-mission {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--mc);
  background: var(--panel);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.cq-mission:hover {
  transform: translateY(-2px);
  border-color: var(--mc);
}

.cq-mission.type-ball { --mc: #22c55e; }
.cq-mission.type-move { --mc: #fb923c; }
.cq-mission.type-quiz { --mc: #67e8f9; }
.cq-mission.type-mind { --mc: #c4b5fd; }
.cq-mission.type-auto { --mc: #f97316; }

.cq-trails {
  display: grid;
  gap: 10px;
}

.cq-trail {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.cq-trail-name {
  font-family: Oswald, sans-serif;
  font-size: 0.95rem;
}

.cq-trail-name b {
  display: inline-block;
  min-width: 2ch;
  color: #facc15;
}

.cq-trail-name small {
  display: block;
  font-family: Inter, sans-serif;
  font-size: 0.72rem;
  color: var(--muted);
}

.cq-trail-nodes {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  overflow-x: auto;
  padding: 8px 8px 8px 2px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
}

.cq-node {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 2px;
  flex: 0 0 auto;
  min-width: 52px;
  padding: 6px 8px;
  border-radius: 12px;
  border: 2px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.cq-node small {
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cq-node.is-done { border-color: #22c55e; }
.cq-node.is-current { border-color: #facc15; box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.15); }
.cq-node.is-locked { opacity: 0.4; cursor: not-allowed; filter: grayscale(1); }

.cq-node-lock {
  position: absolute;
  top: -6px;
  right: -6px;
  font-size: 0.7rem;
}
.cq-node:not([disabled]):hover { transform: translateY(-2px); }

.cq-node-icons {
  display: flex;
  gap: 6px;
  font-size: 1.2rem;
}

.cq-node-m {
  display: grid;
  justify-items: center;
  gap: 2px;
}

.cq-node-m .cq-medal {
  width: 12px;
  height: 12px;
  border-width: 1px;
}

.cq-node-link {
  flex: 0 0 10px;
  height: 3px;
  background: var(--line);
}

.cq-anim-btn {
  margin: 4px 0 12px;
}

.cq-video-btn {
  display: inline-block;
  margin: 4px 0 12px;
  text-decoration: none;
}

.cq-anim-btn + .cq-video-btn {
  margin-left: 8px;
}

.cq-anim {
  margin-bottom: 14px;
  border-radius: 14px;
  overflow: hidden;
  /* Moving SVG parts would otherwise be picked as the scroll anchor and drag the dialog's scroll along. */
  overflow-anchor: none;
  background: linear-gradient(180deg, #0b1f4d, #12306b);
}

.cq-anim-svg {
  display: block;
  width: 100%;
  height: auto;
}

.cq-anim-svg .a-count {
  fill: #facc15;
  font-family: Oswald, sans-serif;
  font-size: 18px;
}

.cq-anim-svg .a-note {
  fill: rgba(255, 255, 255, 0.75);
  font-size: 10px;
}

.cq-anim-svg .a-mark.is-hit .a-cone {
  animation: cq-mark-hit 0.6s ease;
}

@keyframes cq-mark-hit {
  0%, 100% { fill: #fb923c; }
  30% { fill: #facc15; }
}

.cq-anim-svg .a-hit.is-hit {
  animation: cq-target-hit 0.7s ease;
}

@keyframes cq-target-hit {
  0%, 100% { filter: none; }
  30% { filter: drop-shadow(0 0 5px #facc15) brightness(1.4); }
}

.cq-unlocked {
  font-weight: 700;
  color: #facc15;
}

.cq-mission-icon {
  font-size: 1.8rem;
}

.cq-mission-body {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.cq-mission-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mc, var(--hero-gold));
}

.cq-mission-tag i {
  font-style: normal;
  color: var(--hero-gold);
}

.cq-mission-body strong {
  font-size: 1.05rem;
}

.cq-mission-body small,
.cq-mission-rec small {
  color: var(--muted);
}

.cq-mission-rec {
  display: grid;
  justify-items: center;
  gap: 4px;
  text-align: center;
  font-size: 0.8rem;
}

.is-compact .cq-mission {
  grid-template-columns: auto 1fr;
}

.is-compact .cq-mission-rec {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-start;
}

.cq-medal {
  display: inline-block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 2px dashed rgba(255, 255, 255, 0.25);
}

.cq-medal.m-0 { background: radial-gradient(circle at 35% 30%, #f6c79a, #9a5b2a); border: 0; }
.cq-medal.m-1 { background: radial-gradient(circle at 35% 30%, #ffffff, #8f9aa6); border: 0; }
.cq-medal.m-2 { background: radial-gradient(circle at 35% 30%, #fff3c4, #c8952f); border: 0; }
.cq-medal.m-3 { background: radial-gradient(circle at 35% 30%, #b693ff, #2a1060); border: 2px solid #f6d77a; }

.cq-medal.is-big {
  width: 84px;
  height: 84px;
  animation: cq-pop 0.9s ease;
}

/* Modal */
.cq-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(2, 4, 8, 0.78);
  backdrop-filter: blur(4px);
}

.cq-modal[hidden] {
  display: none;
}

body.cq-lock {
  overflow: hidden;
}

.cq-dialog {
  position: relative;
  width: min(480px, 100%);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 24px 22px;
  border-radius: 18px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

.cq-dialog h3 {
  margin: 4px 0 6px;
  font-family: Oswald, sans-serif;
  font-size: 1.5rem;
}

.cq-dialog p {
  margin: 0 0 12px;
  color: var(--muted);
}

.cq-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
}

.cq-tiers {
  display: flex;
  gap: 8px;
  margin: 4px 0 14px;
}

.cq-tiers > span {
  flex: 1;
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 8px 4px;
  border-radius: 10px;
  background: var(--panel);
  font-weight: 700;
  opacity: 0.7;
}

.cq-tiers > span.is-done {
  opacity: 1;
  box-shadow: inset 0 0 0 1px var(--hero-gold);
}

.cq-steps {
  margin: 0 0 14px;
  padding-left: 20px;
  display: grid;
  gap: 4px;
}

.cq-explain {
  margin: 0 0 14px;
  border: 1px solid rgba(226, 184, 96, 0.35);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.cq-explain > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  font-weight: 700;
  color: var(--hero-gold);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.cq-explain > summary::-webkit-details-marker {
  display: none;
}

.cq-explain > summary::after {
  content: "▾";
  margin-left: auto;
  transition: rotate 0.2s;
}

.cq-explain[open] > summary::after {
  rotate: 180deg;
}

.cq-explain[open] > summary {
  border-bottom: 1px solid rgba(226, 184, 96, 0.2);
}

.cq-explain > :not(summary) {
  margin-inline: 14px;
}

.cq-explain > .cq-anim:not([hidden]),
.cq-explain > .cq-anim-btn {
  margin-top: 12px;
}

.cq-cast-title {
  margin: 4px 0 8px;
  font-family: Oswald, sans-serif;
  font-size: 1.05rem;
}

.cq-cast {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: grid;
  gap: 8px;
}

.cq-cast li {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.cq-cast svg {
  width: 44px;
  height: 62px;
}

.cq-cast-icon {
  font-style: normal;
  font-size: 2rem;
  line-height: 62px;
  text-align: center;
}

.cq-cast em {
  font-style: normal;
  color: var(--hero-gold);
  font-weight: 700;
}

.cq-cast q {
  display: block;
  margin-top: 2px;
  line-height: 1.35;
}

.cq-cast small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  line-height: 1.35;
}

.cq-timer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--panel);
}

.cq-timer b {
  font-family: Oswald, sans-serif;
  font-size: 2.2rem;
  line-height: 1;
}

.cq-timer.is-running b {
  color: var(--hero-gold);
}

.cq-grid-next {
  font-family: Oswald, sans-serif;
  font-size: 1.4rem;
  color: var(--hero-gold);
}

.cq-grid {
  display: grid;
  grid-template-columns: repeat(var(--n), 1fr);
  gap: 6px;
  margin-bottom: 14px;
}

.cq-grid button {
  aspect-ratio: 1;
  font: 700 1.25rem Oswald, sans-serif;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  touch-action: manipulation;
}

.cq-grid button.is-done {
  opacity: 0.25;
  cursor: default;
}

/* Full screen: the rows share the height, so a big grid (40 numbers) still fits on a phone. */
.cq-play.is-full .cq-grid {
  flex: 1;
  min-height: 0;
  grid-auto-rows: 1fr;
  margin-bottom: 0;
}

.cq-play.is-full .cq-grid button {
  aspect-ratio: auto;
  min-height: 0;
  font-size: 1.5rem;
}

.cq-grid button.is-wrong {
  animation: cq-wrong 0.35s;
}

.cq-rain-score {
  font-family: Oswald, sans-serif;
  font-size: 1.4rem;
}

.cq-rain-wrap {
  position: relative;
  margin-bottom: 14px;
}

.cq-rain-wrap.is-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

/* While a match runs, the scoreboard and the pitch take the whole screen. */
.cq-play.is-full {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  flex-direction: column;
  padding: max(10px, env(safe-area-inset-top)) 10px max(10px, env(safe-area-inset-bottom));
  background: #070b14;
}

.cq-play.is-full > * {
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
}

.cq-play.is-full .cq-timer {
  margin-bottom: 8px;
}

.cq-play.is-full .cq-rain-wrap {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  margin-bottom: 0;
}

.cq-play.is-full .cq-rain-wrap.is-duo {
  grid-template-columns: 1fr 1fr;
}

.cq-play.is-full .cq-rain {
  height: auto;
  min-height: 0;
}

.cq-rain {
  position: relative;
  height: 340px;
  overflow: hidden;
  border-radius: 14px;
  background: repeating-linear-gradient(180deg, #166534 0 34px, #15803d 34px 68px);
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

.cq-rain-wrap.is-turbo .cq-rain {
  background: repeating-linear-gradient(180deg, #1e1b4b 0 34px, #312e81 34px 68px);
}

.cq-rain-wrap.is-turbo::after {
  content: attr(data-turbo);
  position: absolute;
  z-index: 3;
  top: 45%;
  left: 50%;
  translate: -50% -50%;
  color: #fde047;
  font: 700 1.5rem Oswald, sans-serif;
  white-space: nowrap;
  text-shadow: 0 2px 6px #000;
  pointer-events: none;
  animation: cq-turbo 1.8s forwards;
}

@keyframes cq-turbo {
  0% { opacity: 0; scale: 0.5; }
  15% { opacity: 1; scale: 1.15; }
  75% { opacity: 1; scale: 1; }
  100% { opacity: 0; scale: 1; }
}

.cq-rain-rule {
  position: absolute;
  z-index: 2;
  top: 8px;
  left: 50%;
  translate: -50% 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
}

.is-duo .cq-rain-rule {
  padding: 4px 8px;
  font-size: 0.74rem;
}

.is-duo .cq-rain-rule b {
  font-size: 1.05em;
  letter-spacing: 0;
}

.is-duo .cq-rain:not(.cq-dodge) .cq-rain-rule {
  border-width: 2px;
}

.is-duo .cq-rain-ball {
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
}

.cq-game-count {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  color: rgba(255, 255, 255, 0.9);
  font: 700 4.5rem/1 Oswald, sans-serif;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.7);
  pointer-events: none;
}

.cq-pop {
  position: absolute;
  z-index: 4;
  translate: -50% -50%;
  color: #fde047;
  font: 700 1.5rem/1 Oswald, sans-serif;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
  pointer-events: none;
  animation: cq-float 0.7s ease-out forwards;
}

@keyframes cq-float {
  0% { opacity: 0; transform: translateY(0) scale(0.6); }
  20% { opacity: 1; transform: translateY(-6px) scale(1.15); }
  100% { opacity: 0; transform: translateY(-34px) scale(1); }
}

.cq-game-count.is-faint {
  color: rgba(255, 255, 255, 0.5);
}

/* Above the Blokolor lines. */
.cq-game-count.is-high {
  top: 28%;
}

.cq-dodge .cq-rain-rule {
  top: auto;
  bottom: 10px;
}

.cq-dodge-ball {
  position: absolute;
  z-index: 1;
  top: 44px;
  left: 25%;
  margin: -20px 0 0 -20px;
  width: 40px;
  height: 40px;
  font-size: 36px;
  line-height: 40px;
  text-align: center;
  filter: drop-shadow(0 4px 3px rgba(0, 0, 0, 0.45));
  transition: left 0.09s ease-out;
  pointer-events: none;
}

.cq-dodge:nth-child(2) .cq-dodge-ball {
  left: 75%;
}

.cq-dodge {
  box-shadow: inset 3px 0 0 rgba(255, 255, 255, 0.55), inset -3px 0 0 rgba(255, 255, 255, 0.55);
}

.cq-dodge-hand {
  position: absolute;
  z-index: 3;
  top: 58%;
  translate: -50% -50%;
  font-size: 48px;
  line-height: 1;
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.5));
  pointer-events: none;
  transition: left 0.35s ease;
}

.cq-dodge-hand::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 4px;
  width: 54px;
  height: 54px;
  margin: -27px 0 0 -27px;
  border: 3px solid #fff;
  border-radius: 50%;
  opacity: 0;
}

.cq-dodge-hand.is-tap {
  animation: cq-hand-tap 0.4s ease;
}

.cq-dodge-hand.is-tap::after {
  animation: cq-hand-ring 0.5s ease-out;
}

@keyframes cq-hand-tap {
  45% { scale: 0.8; translate: -50% -38%; }
}

@keyframes cq-hand-ring {
  0% { opacity: 0.9; scale: 0.3; }
  100% { opacity: 0; scale: 1.4; }
}

.cq-dodge-obs {
  position: absolute;
  top: 0;
  margin: -26px 0 0 -26px;
  width: 52px;
  height: 52px;
  filter: drop-shadow(0 3px 2px rgba(0, 0, 0, 0.4));
  pointer-events: none;
  transition: scale 0.25s, opacity 0.25s;
}

.cq-dodge-obs svg {
  display: block;
  width: 100%;
  height: 100%;
}

.cq-dodge-obs.is-hit {
  scale: 1.7;
  opacity: 0;
}

/* Blokolor */
.cq-rain.cq-blok {
  background: #0f172a;
  touch-action: none;
}

.cq-rain-wrap.is-turbo .cq-rain.cq-blok {
  background: #1e1b4b;
}

.cq-blok .cq-rain-ball {
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  cursor: default;
}

.cq-blok-rows {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2%;
  height: 44%;
  display: grid;
  grid-auto-rows: 1fr;
}

.cq-blok-row {
  position: relative;
}

.cq-blok-row::before {
  content: "";
  position: absolute;
  left: 3%;
  right: 3%;
  top: 50%;
  height: 4px;
  margin-top: -2px;
  border-radius: 2px;
  background: var(--c);
  opacity: 0.8;
}

.cq-blok-block {
  position: absolute;
  top: 50%;
  width: 20%;
  max-width: 84px;
  height: 64%;
  max-height: 48px;
  translate: -50% -50%;
  border-radius: 10px;
  background: var(--c);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.3), 0 4px 10px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

/* The block's hungry face: eyes looking up at the balls and a wide-open mouth. */
.cq-blok-eyes {
  position: absolute;
  left: 20%;
  right: 20%;
  top: 10%;
  height: 38%;
  display: flex;
  justify-content: space-between;
}

.cq-blok-eyes::before,
.cq-blok-eyes::after {
  content: "";
  height: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 32%, #111 0 30%, #fff 33%);
  box-shadow: 0 0 0 1.5px rgba(0, 0, 0, 0.25);
  transition: scale 0.15s, rotate 0.15s;
}

.cq-blok-mouth {
  position: absolute;
  left: 34%;
  right: 34%;
  top: 54%;
  height: 34%;
  border-radius: 45% 45% 999px 999px;
  background: #3b0a0a;
  box-shadow: inset 0 -4px 0 #f87171;
  transition: all 0.15s;
}

/* A ball it can eat is coming: mouth and eyes wide open. */
.cq-blok-block.is-open .cq-blok-mouth {
  scale: 1.6 1.4;
}

.cq-blok-block.is-open .cq-blok-eyes::before,
.cq-blok-block.is-open .cq-blok-eyes::after {
  scale: 1.15;
}

/* Eating: the ball drops into the mouth, which chews three times while the body squashes. */
.cq-blok .cq-rain-ball.is-eaten {
  transition: transform 0.2s, opacity 0.2s 0.1s;
  opacity: 0;
}

.cq-blok-block.is-eat {
  animation: cq-eat 0.7s;
}

@keyframes cq-eat {
  15% { scale: 1.15 0.85; }
  35% { scale: 0.95 1.08; }
  50% { scale: 1.1 0.9; }
  70% { scale: 0.98 1.04; }
  85% { scale: 1.05 0.95; }
}

.cq-blok-block.is-eat .cq-blok-mouth {
  animation: cq-chomp 0.7s;
}

.cq-blok-block.is-eat .cq-blok-eyes::before,
.cq-blok-block.is-eat .cq-blok-eyes::after {
  scale: 1 0.25;
}

@keyframes cq-chomp {
  0% { scale: 1.7 1.5; }
  15%, 50%, 85% { scale: 1.4 0.1; }
  35%, 70% { scale: 1.3 1; }
}

/* Wrong colour: a scowl, angry eyes and a shake of the head. */
.cq-blok-block.is-yuck {
  animation: cq-yuck 0.5s;
  filter: saturate(0.6) brightness(0.85);
}

.cq-blok-block.is-yuck .cq-blok-eyes::before {
  scale: 1 0.45;
  rotate: 18deg;
}

.cq-blok-block.is-yuck .cq-blok-eyes::after {
  scale: 1 0.45;
  rotate: -18deg;
}

.cq-blok-block.is-yuck .cq-blok-mouth {
  top: 68%;
  height: 16%;
  left: 30%;
  right: 30%;
  border-radius: 999px 999px 0 0;
  box-shadow: none;
}

@keyframes cq-yuck {
  20% { rotate: -8deg; }
  40% { rotate: 8deg; }
  60% { rotate: -5deg; }
  80% { rotate: 4deg; }
}

/* Lives in the scoring games: a lost heart turns grey and the row shakes. */
.cq-game-lives {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 44px;
  translate: -50% 0;
  display: flex;
  gap: 4px;
  font-size: 1.25rem;
  line-height: 1;
  pointer-events: none;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
}

.cq-game-lives i {
  font-style: normal;
  transition: opacity 0.3s, filter 0.3s;
}

.cq-game-lives i.is-lost {
  opacity: 0.35;
  filter: grayscale(1);
}

.cq-game-lives.is-hurt {
  animation: cq-hurt 0.45s;
}

@keyframes cq-hurt {
  20% { translate: calc(-50% - 6px) 0; scale: 1.25; }
  40% { translate: calc(-50% + 6px) 0; }
  60% { translate: calc(-50% - 4px) 0; }
  80% { translate: calc(-50% + 3px) 0; }
}

/* The pause after losing the last heart: points lost and the record. */
.cq-game-dead {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 30%;
  translate: -50% -50%;
  display: none;
  gap: 4px;
  justify-items: center;
  padding: 14px 22px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.88);
  box-shadow: 0 0 0 2px #ef4444, 0 10px 30px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  white-space: nowrap;
}

.cq-game-dead.is-on {
  display: grid;
  animation: cq-dead 0.25s;
}

.cq-game-dead b {
  font-size: 1.6rem;
  color: #fff;
}

.cq-game-dead small {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fde047;
}

@keyframes cq-dead {
  from { scale: 0.6; opacity: 0; }
}

/* Any block can eat the rainbow ball; the bomb must touch none. */
.cq-blok .cq-rain-ball.is-rainbow {
  background: conic-gradient(#ef4444, #facc15, #22c55e, #3b82f6, #a855f7, #ef4444);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.7);
}

.cq-blok .cq-rain-ball.is-bomb {
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  box-shadow: none;
  font-size: 30px;
  line-height: 1;
}

/* Crazy Blokolor: the lines flash when their colours swap. */
.cq-blok-row.is-swap::before {
  animation: cq-swap 0.9s;
}

@keyframes cq-swap {
  0%, 50% { opacity: 1; height: 10px; margin-top: -5px; box-shadow: 0 0 16px var(--c); }
}

.cq-rain.is-crash {
  animation: cq-crash 0.45s;
}

@keyframes cq-crash {
  0%, 100% { box-shadow: none; }
  30% { box-shadow: inset 0 0 0 6px #ef4444, inset 0 0 40px rgba(239, 68, 68, 0.7); }
}

.cq-rain-rule:empty {
  display: none;
}

.cq-rain-rule b {
  font-size: 1.1em;
  letter-spacing: 0.04em;
}

/* "Only" rules are green and "all except" rules are red, on the label and around the pitch. */
.cq-rain:not(.cq-dodge) .cq-rain-rule {
  border: 3px solid #22c55e;
  background: rgba(5, 46, 22, 0.92);
}

.cq-rain:not(.cq-dodge) .cq-rain-rule.is-avoid {
  border-color: #ef4444;
  background: rgba(69, 10, 10, 0.92);
}

.cq-rain.is-only {
  box-shadow: inset 0 0 0 3px rgba(34, 197, 94, 0.8);
}

.cq-rain.is-avoid {
  box-shadow: inset 0 0 0 3px rgba(239, 68, 68, 0.85);
}

.cq-rain-rule.is-new {
  animation: cq-rule 0.6s;
}

@keyframes cq-rule {
  0% { scale: 1.35; }
  100% { scale: 1; }
}

.cq-rain-ball {
  position: absolute;
  left: 0;
  top: 0;
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.35);
  box-shadow: inset -6px -6px 0 rgba(0, 0, 0, 0.2), inset 5px 5px 0 rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: scale 0.25s, opacity 0.25s;
}

.cq-rain-ball.is-hit {
  scale: 1.6;
  opacity: 0;
}

.cq-rain-ball.is-miss {
  outline: 4px solid #fff;
  opacity: 0.4;
}

@keyframes cq-wrong {
  0%, 100% { transform: none; background: var(--panel); }
  30% { transform: translateX(-4px); background: #b91c1c; }
  60% { transform: translateX(4px); }
}

.cq-sound {
  margin-left: auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 1.1rem;
  cursor: pointer;
}

.cq-timer.is-breath .cq-sound {
  margin-left: 0;
}

.cq-timer.is-breath {
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
}

.cq-timer.is-breath .cq-ball {
  width: 100%;
  height: 120px;
  display: block;
  background: radial-gradient(circle, #fff 0 18%, #e5e7eb 19% 22%, transparent 23%) center / 120px 120px no-repeat;
  transform: scale(0.45);
}

.cq-timer.is-breath.is-running .cq-ball {
  animation: cq-breath 8s ease-in-out infinite;
}

@keyframes cq-breath {
  0%, 100% { transform: scale(0.45); }
  50% { transform: scale(1); }
}

.cq-timer.is-breath em {
  width: 100%;
  font-style: normal;
  font-weight: 700;
  color: var(--hero-gold);
  min-height: 1.4em;
}

.cq-result-form {
  display: grid;
  gap: 10px;
}

.cq-result-form[hidden] {
  display: none;
}

.cq-quiz {
  display: grid;
  gap: 10px;
}

.cq-quiz > small {
  color: var(--muted);
}

.cq-quiz > strong {
  font-size: 1.15rem;
}

.cq-opts {
  display: grid;
  gap: 8px;
}

.cq-opts button {
  font: inherit;
  text-align: left;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
}

.cq-opts button.is-right {
  border-color: #22c55e;
  background: rgba(34, 197, 94, 0.15);
}

.cq-opts button.is-wrong {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.15);
}

.cq-why {
  margin: 0;
  color: var(--text);
}

.cq-opts button.is-so {
  border-color: #facc15;
  background: rgba(250, 204, 21, 0.15);
}

.cq-decide-step {
  color: var(--muted);
}

.cq-decide-text {
  margin: 6px 0 10px;
  line-height: 1.4;
}

.cq-decide-ask[hidden] {
  display: none;
}

.cq-decide-ask {
  margin-top: 12px;
}

.cq-decide-ask .cq-opts {
  margin-top: 10px;
}

.cq-decide-ask .cq-opts button {
  text-align: left;
  font-size: 1rem;
  padding: 12px 14px;
}

.cq-pts {
  display: inline-block;
  min-width: 2.2em;
  margin-right: 4px;
  padding: 1px 6px;
  border-radius: 6px;
  font-weight: 800;
  text-align: center;
  color: #0b1324;
}

.cq-pts.p-2 {
  background: #4ade80;
}

.cq-pts.p-1 {
  background: #facc15;
}

.cq-pts.p-0 {
  background: #f87171;
}

.cq-done {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 6px;
}

.cq-done > strong {
  font-family: Oswald, sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cq-done .cq-clear-record {
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--muted);
}

.cq-done .cq-clear-record.is-sure {
  border-color: #ef4444;
  color: #ef4444;
}

.cq-gains {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.cq-gains li {
  padding: 6px 12px;
  border-radius: 99px;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.5);
}

.cq-gains b {
  color: #4ade80;
}

.cq-note {
  font-size: 0.85rem;
}

/* Championships */
.cq-cups {
  display: grid;
  gap: 10px;
}

.cq-cup-card {
  display: grid;
  gap: 4px;
  text-align: left;
  font: inherit;
  color: inherit;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(226, 184, 96, 0.45);
  background: linear-gradient(135deg, rgba(226, 184, 96, 0.16), var(--panel));
  cursor: pointer;
}

.cq-cup-card b {
  font-family: Oswald, sans-serif;
  font-size: 1.15rem;
}

.cq-cup-card small {
  color: var(--muted);
}

.cq-cup-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

.cq-cupview {
  display: grid;
  gap: 12px;
  max-width: 720px;
  margin: 0 auto;
}

.cq-cupview > .cq-h.is-group {
  margin-top: 4px;
}

.cq-cup-back {
  justify-self: start;
  font: inherit;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: inherit;
  cursor: pointer;
}

.cq-cup-sub {
  margin: 14px 0 0;
  font-family: Oswald, sans-serif;
  font-size: 1.2rem;
}

.cq-cup-who {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.cq-cup-who svg {
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.cq-cup-who b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cq-cup-emoji {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  font-size: 1.05rem;
}

.cq-cup-form .cq-cup-picks,
.cq-cup-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}

.cq-cup-groups {
  display: grid;
  gap: 14px;
  width: 100%;
}

.cq-cup-group h4 {
  width: 100%;
  margin: 0;
  color: var(--hero-gold);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cq-cup-all {
  padding: 5px 12px;
  border: 1px solid rgba(240, 180, 41, 0.5);
  border-radius: 999px;
  background: rgba(240, 180, 41, 0.12);
  color: var(--hero-gold);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.cq-cup-all:hover {
  background: rgba(240, 180, 41, 0.25);
}

.cq-cup-pick > input,
.cq-cup-try > input {
  position: absolute;
  opacity: 0;
}

.cq-cupview .cq-cup-pick > span,
.cq-cupview .cq-cup-try > span {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 2px solid var(--line);
  background: var(--panel);
  cursor: pointer;
}

.cq-cupview .cq-cup-try > span {
  width: 46px;
  justify-content: center;
  font-weight: 700;
}

.cq-cup-pick > span small {
  color: var(--muted);
}

.cq-cupview .cq-cup-pick > input:checked + span,
.cq-cupview .cq-cup-try > input:checked + span {
  border-color: var(--hero-gold);
  background: rgba(226, 184, 96, 0.18);
}

.cq-cup-pick input:disabled + span {
  opacity: 0.4;
  cursor: not-allowed;
}

.cq-cup-pick input:focus-visible + span,
.cq-cup-try input:focus-visible + span {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.cq-cup-add {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}

.cq-cupview .cq-cup-add input {
  flex: 1 1 140px;
  width: auto;
}

.cq-cupview .cq-cup-add select {
  width: auto;
}

.cq-cup-table {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.cq-cup-table li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.cq-cup-table li.is-top.p-1 {
  border-color: #facc15;
  background: linear-gradient(90deg, rgba(250, 204, 21, 0.22), var(--panel));
}

.cq-cup-table li.is-top.p-2 {
  border-color: #cbd5e1;
}

.cq-cup-table li.is-top.p-3 {
  border-color: #d97706;
}

.cq-cup-pos {
  font-family: Oswald, sans-serif;
  font-size: 1.15rem;
  color: var(--hero-gold);
}

.cq-cup-table small {
  color: var(--muted);
}

.cq-cup-table b:last-child,
.cq-cup-table.is-trophies b {
  font-family: Oswald, sans-serif;
  font-size: 1.1rem;
}

.cq-cup-match {
  padding: 12px;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.cq-cup-match h4 {
  margin: 0 0 10px;
}

.cq-cup-match h4 small {
  color: var(--muted);
  font-weight: 400;
}

.cq-cup-chips {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
}

.cq-cup-chip {
  display: grid;
  gap: 4px;
  justify-items: start;
  font: inherit;
  color: inherit;
  text-align: left;
  padding: 8px 10px;
  border-radius: 12px;
  border: 2px solid rgba(226, 184, 96, 0.6);
  background: rgba(226, 184, 96, 0.1);
  cursor: pointer;
}

.cq-cup-chip small {
  color: var(--muted);
}

.cq-cup-chip.is-full,
.cq-cup-chip:disabled {
  border-color: var(--line);
  background: transparent;
  cursor: default;
}

.cq-cup-chip.is-first {
  border-color: #facc15;
}

.cq-cup-turn {
  display: grid;
  justify-items: center;
  gap: 2px;
  margin: 4px 0 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(226, 184, 96, 0.25), rgba(226, 184, 96, 0.08));
  border: 1px solid var(--hero-gold);
  font-family: Oswald, sans-serif;
  font-size: 1.25rem;
}

.cq-cup-turn .cq-cup-who {
  vertical-align: middle;
}

.cq-cup-turn small {
  font-family: inherit;
  font-size: 0.8rem;
  color: var(--muted);
}

.cq-cup-big {
  font-size: 3.4rem;
  line-height: 1;
}

.cq-cup-ended {
  margin: 4px 0 0;
  text-align: center;
  font-family: Oswald, sans-serif;
  font-size: 1.5rem;
  color: #facc15;
}

.cq-cup-podium {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 8px;
  padding-top: 10px;
}

.cq-cup-step {
  display: grid;
  justify-items: center;
  gap: 6px;
  text-align: center;
  animation: cq-cup-rise 0.7s ease-out both;
}

.cq-cup-step.p-1 {
  animation-delay: 0.5s;
}

.cq-cup-step.p-2 {
  animation-delay: 0.25s;
}

.cq-cup-step .cq-cup-who {
  flex-direction: column;
}

.cq-cup-step .cq-cup-who svg,
.cq-cup-step .cq-cup-emoji {
  width: 44px;
  height: 44px;
  font-size: 1.5rem;
}

.cq-cup-block {
  display: grid;
  place-items: center;
  width: 100%;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(180deg, rgba(226, 184, 96, 0.4), rgba(226, 184, 96, 0.12));
  border: 1px solid rgba(226, 184, 96, 0.6);
}

.cq-cup-block b {
  font-size: 1.8rem;
}

.cq-cup-step.p-1 .cq-cup-block {
  height: 120px;
  background: linear-gradient(180deg, rgba(250, 204, 21, 0.55), rgba(250, 204, 21, 0.15));
}

.cq-cup-step.p-2 .cq-cup-block {
  height: 90px;
}

.cq-cup-step.p-3 .cq-cup-block {
  height: 66px;
}

.cq-cup-crown {
  font-size: 2rem;
  animation: cq-cup-bounce 1.2s ease-in-out 1.2s infinite;
}

@keyframes cq-cup-rise {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
}

@keyframes cq-cup-bounce {
  50% {
    transform: translateY(-6px) rotate(-8deg);
  }
}

.cq-cup-del {
  font: inherit;
  font-size: 0.85rem;
  background: none;
  border: 0;
  color: var(--muted);
  text-decoration: underline;
  cursor: pointer;
}

.cq-cup-team {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.cq-cup-team li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.cq-close-x {
  font: inherit;
  font-size: 1.3rem;
  line-height: 1;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

@media (max-width: 980px) {
  .cq-setup,
  .cq-home {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 28px;
  }

  .cq-card-col {
    position: static;
  }

  .cq-side,
  .cq-form {
    width: 100%;
    max-width: 560px;
  }
}

@media (max-width: 860px) {
  .cq-attrs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .cq-missions.is-compact {
    grid-template-columns: 1fr;
  }

  .cq-trail {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .cq-node {
    min-width: 46px;
    padding: 5px 6px;
  }

  .cq-mission-body strong {
    font-size: 1rem;
  }
}
