:root {
  --ink: #16130f;
  --navy: #1c2433;
  --navy-2: #2a3548;
  --cream: #e7efe6;
  --paper: #fffaf4;
  --gold: #b7791f;
  --gold-2: #e3b15a;
  --clay: #b5523a;
  --forest: #246247;
  --plum: #62456f;
  --line: rgba(28, 36, 51, 0.12);
  --muted: #5f584e;
  --shadow: 0 18px 50px rgba(28, 36, 51, 0.08);
  --radius: 22px;
  --header: 88px;
  --sans: "Outfit", "Segoe UI", sans-serif;
  --serif: "Fraunces", Georgia, serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 100% -10%, rgba(36, 98, 71, 0.14), transparent 55%),
    radial-gradient(700px 380px at -10% 20%, rgba(36, 98, 71, 0.08), transparent 50%),
    var(--cream);
  line-height: 1.55;
  padding-bottom: 128px;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.12; font-weight: 560; letter-spacing: -0.03em; }
p { margin: 0; }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--navy);
  color: white;
  padding: 8px 12px;
  z-index: 80;
}
.skip:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  min-height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 22px;
  background: rgba(255, 250, 244, 0.96);
  border-bottom: 1px solid rgba(183, 121, 31, 0.28);
  box-shadow: 0 10px 28px rgba(28, 36, 51, 0.05);
  backdrop-filter: blur(16px);
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; min-width: 0; }
.brand img { width: 44px; height: 44px; flex: none; }
.brand-text { display: flex; flex-direction: column; gap: 5px; line-height: 1; min-width: 0; }
.brand-text strong { font-family: var(--serif); font-size: 1.4rem; letter-spacing: -0.03em; color: var(--navy); }
.brand-text em { font-style: normal; color: #9a6416; font-size: 0.78rem; letter-spacing: 0.08em; white-space: nowrap; }
.nav-toggle {
  display: inline-flex;
  margin-left: auto;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-weight: 650;
  color: var(--navy);
  cursor: pointer;
}
.nav {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 12px;
  width: min(320px, calc(100% - 24px));
  max-height: calc(100vh - var(--header) - 24px);
  max-height: calc(100dvh - var(--header) - 24px);
  overflow: auto;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  background: #fffaf4;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 10px;
  box-shadow: var(--shadow);
  z-index: 50;
}
.nav.is-open { display: flex; }
.menu-label {
  margin: 4px 8px 6px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.nav a {
  text-decoration: none;
  font-size: 0.95rem;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--navy);
}
.nav a[aria-current="page"], .nav a:hover { background: rgba(28, 36, 51, 0.06); }
.nav .menu-contact {
  margin-top: 8px;
  color: #fffaf4;
  border-radius: 999px;
  justify-content: center;
}
.nav .menu-contact:hover { background: #0d6e3a; color: #fffaf4; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 12px 18px;
  background: var(--navy);
  color: #fffaf4;
  font-weight: 650;
}
.btn:hover { background: #111722; }
.btn-gold { background: var(--gold); color: #1b1408; }
.btn-gold:hover { background: #9a6416; color: white; }
.btn-ghost { background: transparent; color: var(--navy); border: 1px solid rgba(28, 36, 51, 0.2); }
.btn-ghost:hover { background: white; }
.btn[disabled], .btn.is-disabled { opacity: 0.55; cursor: not-allowed; }
.earn-row { align-items: center; }
.earn-btn {
  width: auto;
  height: auto;
  min-height: 0;
  justify-self: start;
  border-radius: 999px;
  padding: 14px 26px;
  font-size: 1rem;
  letter-spacing: 0.01em;
  animation: earn-pop 1.8s ease-in-out infinite;
}
@keyframes earn-pop {
  0%, 62%, 100% { transform: translateY(0) scale(1); box-shadow: 0 0 0 0 rgba(183, 121, 31, 0.45); }
  76% { transform: translateY(-8px) scale(1.06); box-shadow: 0 14px 26px rgba(183, 121, 31, 0.28); }
  88% { transform: translateY(0) scale(1); box-shadow: 0 0 0 10px rgba(183, 121, 31, 0); }
}

.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.section { padding: 34px 0; }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--clay);
}
h1 { font-size: clamp(2.4rem, 5vw, 4.6rem); margin: 10px 0 12px; }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); margin: 0 0 10px; }
h3 { font-size: 1.35rem; margin: 0 0 8px; }
.lede { font-size: 1.08rem; color: var(--muted); max-width: 62ch; }

.hero { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 32px; align-items: start; padding-top: 48px; }
.hero h1 {
  font-size: clamp(3.2rem, 7vw, 5.8rem);
  line-height: 0.94;
  margin: 0 0 16px;
  letter-spacing: -0.045em;
}
.hero h1 em { font-style: italic; font-weight: 560; color: var(--gold); }
.hero-welcome {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.hero-welcome:after {
  content: "";
  width: 36px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.btn-pop {
  animation: btn-pop 1.5s ease-in-out infinite;
}
@keyframes btn-pop {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(183, 121, 31, 0.5); }
  50% { transform: scale(1.07); box-shadow: 0 8px 22px rgba(183, 121, 31, 0.35), 0 0 0 10px rgba(183, 121, 31, 0); }
}
.btn-live {
  background: #fffaf4;
  color: var(--navy);
  border: 1px solid var(--gold);
  animation: btn-live 1.8s ease-in-out infinite;
}
.btn-live:hover { background: #fff; color: var(--navy); }
@keyframes btn-live {
  0%, 100% { transform: translateY(0); box-shadow: 0 0 0 0 rgba(227, 177, 90, 0.45); }
  50% { transform: translateY(-3px); box-shadow: 0 8px 16px rgba(183, 121, 31, 0.22); }
}
.btn-wa,
a.wa-live {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  max-width: 100%;
  background: #128c4a;
  color: #fffaf4;
  border-color: transparent;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 650;
  animation: wa-pop 1.5s ease-in-out infinite;
}
a.btn.wa-live,
a.btn.btn-wa { padding: 12px 18px; }
a.wa-live:not(.btn) { padding: 10px 16px; }
.btn-wa:hover,
a.wa-live:hover,
a.btn.wa-live:hover,
.nav a.wa-live:hover,
.nav a.menu-contact:hover {
  background: #0d6e3a;
  color: #fffaf4;
}
@keyframes wa-pop {
  0%, 100% { transform: translateY(0) scale(1); box-shadow: 0 0 0 0 rgba(18, 140, 74, 0.45); }
  50% { transform: translateY(-4px) scale(1.06); box-shadow: 0 10px 18px rgba(18, 140, 74, 0.3); }
}
.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #3dbe7a;
  box-shadow: 0 0 0 0 rgba(61, 190, 122, 0.55);
  animation: live-pulse 1.8s ease-out infinite;
  flex: none;
}
@keyframes live-pulse {
  70% { box-shadow: 0 0 0 7px rgba(61, 190, 122, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 190, 122, 0); }
}
.lgc-stack { display: grid; gap: 12px; min-width: 0; }
.lgc-card {
  background: #d7f1fb;
  color: var(--ink);
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(28, 36, 51, 0.08);
  box-shadow: 0 18px 44px rgba(28, 36, 51, 0.12);
}
.lgc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background: var(--navy);
  color: #fffaf4;
}
.lgc-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.lgc-head h2 {
  margin: 0;
  color: #fffaf4;
  font-size: 1.28rem;
  line-height: 1.15;
}
.lgc-status {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  margin: 0;
  padding: 6px 12px;
  border-radius: 16px;
  background: rgba(255, 250, 244, 0.1);
  flex: none;
}
.lgc-status strong {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 560;
  color: #fffaf4;
  line-height: 1;
}
.lgc-status span { font-size: 0.68rem; color: rgba(255, 250, 244, 0.78); }
.lgc-body { display: grid; gap: 14px; padding: 16px 16px 18px; background: #d7f1fb; }
.lgc-demo {
  margin: 0;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(227, 177, 90, 0.2);
  color: #6d4a10;
  font-size: 0.8rem;
  font-weight: 650;
  line-height: 1.4;
}
.lgc-demo[hidden] { display: none; }
.lgc-members {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 2px 0 4px;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}
.lgc-members::-webkit-scrollbar { display: none; }
.lgc-member {
  flex: 1 0 56px;
  min-width: 56px;
  display: grid;
  justify-items: center;
  gap: 4px;
  text-align: center;
}
.lgc-avatar-lg {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(61, 190, 122, 0.45);
}
.lgc-member-name {
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.75rem;
  font-weight: 650;
  color: var(--navy);
}
.lgc-member-empty {
  flex: 1;
  margin: 0;
  padding: 12px;
  border-radius: 14px;
  background: #f6f4ef;
  color: var(--muted);
  font-size: 0.86rem;
}
.lgc-feed { display: grid; gap: 10px; }
.lgc-empty {
  margin: 0;
  padding: 14px 12px;
  border-radius: 16px;
  background: #f6f4ef;
  color: var(--muted);
}
.lgc-empty[hidden] { display: none; }
.lgc-row {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  align-items: start;
  min-height: 64px;
}
.lgc-row.is-leaving { animation: lgc-out 0.28s ease both; }
@keyframes lgc-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@keyframes lgc-soft {
  from { opacity: 0.2; }
  to { opacity: 1; }
}
.lgc-soft { animation: lgc-soft 0.45s ease; }
@keyframes lgc-out {
  to { opacity: 0; transform: translateY(-6px); }
}
.lgc-avatar { position: relative; border-radius: 50%; flex: none; }
.lgc-avatar-lg { width: 56px; height: 56px; }
.lgc-avatar-sm { width: 42px; height: 42px; }
.lgc-avatar img, .lgc-letter {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.lgc-letter {
  color: #fffaf4;
  font-weight: 700;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35);
}
.lgc-avatar-sm .lgc-letter { font-size: 0.95rem; }
.lgc-presence {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #3dbe7a;
  border: 2px solid #fff;
  animation: live-pulse 1.8s ease-out infinite;
}
.lgc-who {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 4px;
  color: var(--navy);
  font-size: 0.84rem;
}
.lgc-who strong { font-weight: 700; }
.lgc-flag {
  width: 16px;
  height: 11px;
  border-radius: 2px;
  object-fit: cover;
  flex: none;
  box-shadow: 0 0 0 1px rgba(28, 36, 51, 0.15);
}
.lgc-time { margin-left: auto; color: var(--muted); font-size: 0.72rem; font-weight: 600; }
.lgc-msg {
  margin: 0;
  background: #f6f4ef;
  border-radius: 4px 14px 14px 14px;
  padding: 8px 10px;
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.35;
  min-height: 2.7em;
}
.lgc-earn {
  display: inline-flex;
  width: fit-content;
  margin: 6px 0 0;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(36, 98, 71, 0.12);
  color: var(--forest);
  font-size: 0.72rem;
  font-weight: 700;
}
.lgc-reward {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: #f3f7f4;
  border: 1px solid rgba(36, 98, 71, 0.14);
  color: var(--navy);
  font-size: 0.82rem;
}
.lgc-reward strong { font-size: 0.84rem; }
.lgc-reward a { margin-left: auto; color: #1d4f91; font-weight: 700; }
.lgc-fine {
  margin: -6px 0 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.4;
}
.lgc-join {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 14px;
  background: #1d4f91;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.lgc-join:hover { background: #163e73; color: #fff; }
.lgc-ticker {
  display: flex;
  align-items: stretch;
  overflow: hidden;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(28, 36, 51, 0.08);
  box-shadow: 0 10px 28px rgba(28, 36, 51, 0.08);
  min-height: 46px;
}
.lgc-ticker-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: none;
  margin: 0;
  padding: 0 14px 0 16px;
  color: #d31212;
  background: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  position: relative;
  z-index: 1;
  border-right: 1px solid rgba(28, 36, 51, 0.08);
}
.lgc-ticker-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e10600;
  box-shadow: 0 0 0 0 rgba(225, 6, 0, 0.55);
  animation: lgc-live-glow 1.6s ease-out infinite;
}
@keyframes lgc-live-glow {
  70% { box-shadow: 0 0 0 7px rgba(225, 6, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(225, 6, 0, 0); }
}
.lgc-ticker-viewport { overflow: hidden; flex: 1; min-width: 0; }
.lgc-ticker-track {
  display: flex;
  align-items: center;
  gap: 26px;
  width: max-content;
  padding: 10px 0;
  animation: lgc-marquee 42s linear infinite;
}
.lgc-ticker:hover .lgc-ticker-track { animation-play-state: paused; }
@keyframes lgc-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.lgc-tick {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 650;
  white-space: nowrap;
}
.lgc-tick-icon { width: 16px; height: 16px; flex: none; display: inline-flex; }
.lgc-tick-icon svg { width: 16px; height: 16px; display: block; }
.lgc-tick-join { color: #1d4f91; }
.lgc-tick-register { color: #1c2433; }
.lgc-tick-chat { color: #2a6f9a; }
.lgc-tick-activity { color: #b7791f; }
.lgc-tick-bonus { color: #8a5a12; }
.lgc-tick-text { white-space: nowrap; }
.lgc-live-pill, .lgc-demo-pill {
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  font-weight: 800;
}
.lgc-live-pill { background: #e7f7ee; color: #157a43; }
.lgc-demo-pill { background: rgba(227, 177, 90, 0.28); color: #6d4a10; }

.grid-3, .grid-2, .activity-grid, .card-grid { display: grid; gap: 14px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2, .card-grid { grid-template-columns: repeat(2, 1fr); }
.earn-row { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 22px; }
.activity-grid { grid-template-columns: 1.4fr 1fr 1fr; }
.active-countries { margin-top: 28px; }
.country-group + .country-group { margin-top: 16px; }
.country-group .kicker { display: block; margin: 0 0 8px; }
.country-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.country-list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px 6px 8px;
  font-size: 0.92rem;
  font-weight: 600;
}
.country-list img {
  width: 28px;
  height: 20px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(28, 36, 51, 0.18);
}
.card, .panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
}
.card { text-decoration: none; display: flex; flex-direction: column; min-height: 180px; transition: transform 0.18s ease; }
.card-link { color: inherit; text-decoration: none; display: flex; flex-direction: column; flex: 1; }
.card > .start-btn { align-self: flex-start; margin: 14px 16px 4px; }
.panel .start-btn, .hero-actions .start-btn, .lesson .start-btn, .prose .start-btn { margin-top: 8px; }
.card:has(.card-photo),
.card-link:has(.card-photo),
a.card:has(.card-photo) { overflow: hidden; }
a.card:has(.card-photo) { padding: 0 0 16px; }
a.card:has(.card-photo) h3,
a.card:has(.card-photo) .muted,
a.card:has(.card-photo) .meta,
a.card:has(.card-photo) .icon-row { margin-left: 16px; margin-right: 16px; }
a.card:has(.card-photo) .icon-row { padding-top: 12px; }
.card-photo { width: 100%; height: 148px; object-fit: cover; display: block; }
.card-photo-spin {
  width: calc(100% - 36px);
  height: auto;
  aspect-ratio: 1;
  margin: 16px auto 6px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  transform-origin: center;
  animation: card-wheel 12s linear infinite;
  animation-play-state: paused;
}
.card-photo-spin.is-turning { animation-play-state: running; }
@keyframes card-wheel { to { transform: rotate(360deg); } }
.card-photo-sport { object-position: 78% 42%; }
.feature-card .card-photo { height: 220px; }
a.card:hover { transform: translateY(-3px); }
.card .meta, .muted { color: var(--muted); }
.feature-card { background: linear-gradient(180deg, #fffaf4, #f6ead4); min-height: 280px; }
.icon-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.mark {
  width: 42px; height: 42px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--navy); color: var(--gold-2); font-weight: 700;
}

.pill { display: inline-flex; align-items: center; border-radius: 999px; padding: 4px 8px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.pill-live { background: #128c4a; color: #fffaf4; animation: active-pop 1.25s ease-in-out infinite; }
.card p.meta.is-active-pop {
  color: #0f8a45;
  font-weight: 800;
  transform-origin: left center;
  animation: active-pop 1.25s ease-in-out infinite;
}
@keyframes active-pop {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}
.pill-partial { background: #f8efd8; color: #7a5410; }
.pill-soon { background: #f3e7f1; color: var(--plum); }

.steps { counter-reset: step; }
.step { position: relative; padding-left: 54px; }
.step:before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--gold-2);
  font-family: var(--serif);
  font-weight: 700;
}

.bonus-band {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 14px;
  background: var(--navy);
  color: #f7f1e7;
  border-radius: 28px;
  padding: 22px;
}
.bonus-band .amount { font-family: var(--serif); font-size: 2rem; color: var(--gold-2); }
.bonus-band p { color: rgba(247, 241, 231, 0.78); }

.site-footer { border-top: 1px solid var(--line); padding: 28px 0 20px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 18px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.fine { color: var(--muted); font-size: 0.92rem; }
.link-list { display: grid; gap: 6px; margin-top: 8px; }

.bottom-nav {
  display: none;
  position: fixed;
  left: 10px; right: 10px; bottom: 10px;
  background: var(--navy);
  color: white;
  border-radius: 18px;
  padding: 8px;
  z-index: 45;
  justify-content: space-between;
}
.bottom-nav a { color: white; text-decoration: none; font-size: 0.75rem; padding: 8px; border-radius: 12px; text-align: center; flex: 1; }
.bottom-nav a[aria-current="page"] { background: rgba(255,255,255,0.1); }

.pwa-pop {
  position: fixed;
  right: 10px;
  bottom: 76px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 2px;
  width: max-content;
  max-width: calc(100vw - 24px);
  padding: 5px 5px 5px 6px;
  background: var(--navy);
  color: #fffaf4;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(22, 19, 15, 0.2);
  transform-origin: right bottom;
}
.pwa-pop[hidden] { display: none; }
.pwa-pop.is-in { animation: pwa-pop-in 0.48s cubic-bezier(0.2, 0.85, 0.2, 1); }
.pwa-pop.is-nudge { animation: pwa-nudge 0.55s ease; }
.pwa-pop.is-out { animation: pwa-pop-out 0.26s ease forwards; }
.pwa-pop-install {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1;
  padding: 8px 10px 8px 8px;
  cursor: pointer;
}
.pwa-marks { display: inline-flex; align-items: center; gap: 5px; }
.pwa-marks svg { display: block; }
.pwa-mark-android { color: #7dcea0; }
.pwa-pop-x {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fffaf4;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
@keyframes pwa-pop-in {
  0% { opacity: 0; transform: translateY(12px) scale(0.8); }
  62% { opacity: 1; transform: translateY(-3px) scale(1.05); }
  100% { opacity: 1; transform: none; }
}
@keyframes pwa-nudge {
  0%, 100% { transform: none; }
  45% { transform: translateY(-4px) scale(1.06); }
  75% { transform: translateY(1px) scale(0.98); }
}
@keyframes pwa-pop-out {
  to { opacity: 0; transform: translateY(8px) scale(0.92); }
}

.prose { display: grid; gap: 12px; max-width: 74ch; }
.prose h2 { margin-top: 12px; }
.notice {
  border-left: 4px solid var(--gold);
  background: #fff7e8;
  border-radius: 12px;
  padding: 12px 14px;
}
.notice.soon { border-left-color: var(--plum); background: #f8f1f7; }
.notice.warn { border-left-color: var(--clay); background: #fdeee9; }

.page-hero { padding-top: 26px; display: grid; gap: 8px; }
.thumb { border-radius: 18px; width: 100%; height: 160px; object-fit: cover; background: #efe4d2; }
.product { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 18px; align-items: start; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
input[type="search"], input[type="text"], input[type="url"], input[type="email"], select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: white;
  border-radius: 14px;
  padding: 12px 12px;
}
textarea { min-height: 110px; resize: vertical; }
label { display: grid; gap: 6px; font-weight: 600; font-size: 0.92rem; }
.form-grid { display: grid; gap: 12px; }

.wheel-layout { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 28px; align-items: center; }
.wheel-layout > * { min-width: 0; }
.wheel-stage {
  position: relative;
  width: min(100%, 340px);
  aspect-ratio: 1;
  margin: 0 auto;
  filter: drop-shadow(0 18px 28px rgba(28, 36, 51, 0.28));
}
.wheel-rim {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 42%, #3d4b63 0 62%, #141b27 63% 100%);
  box-shadow:
    inset 0 0 0 12px #e0ae55,
    inset 0 0 0 18px #7a5314,
    inset 0 0 24px rgba(0, 0, 0, 0.45),
    0 1px 0 rgba(255, 250, 244, 0.45);
}
.wheel-rotor {
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  overflow: hidden;
  background: #1c2433;
  box-shadow: inset 0 0 0 3px rgba(255, 250, 244, 0.72), inset 0 0 16px rgba(0, 0, 0, 0.35);
  transform: rotate(0deg);
}
.wheel-rotor svg { display: block; width: 100%; height: 100%; }
.wheel-rotor.is-idling { animation: wheel-idle 9s linear infinite; }
.wheel-stage.is-spinning .wheel-rotor { transition: transform 4.6s cubic-bezier(.15, .7, .05, 1); }
@keyframes wheel-idle {
  from { transform: rotate(var(--wheel-base, 0deg)); }
  to { transform: rotate(calc(var(--wheel-base, 0deg) + 360deg)); }
}
.wheel-shine {
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  background: linear-gradient(128deg, rgba(255, 255, 255, 0.34), transparent 38% 62%, rgba(0, 0, 0, 0.12));
  pointer-events: none;
  z-index: 3;
}
.wheel-hub {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  width: 72px;
  height: 72px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 4px solid #fff6e4;
  background:
    radial-gradient(circle at 34% 30%, #fff4d2 0 12%, #e3b15a 34%, #b7791f 62%, #6e4510 100%);
  box-shadow: inset 0 -8px 12px rgba(0, 0, 0, 0.28), 0 8px 14px rgba(0, 0, 0, 0.28);
}
.wheel-hub::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fffaf4, #d7a441 55%, #8a5a12);
  box-shadow: inset 0 0 0 2px rgba(122, 83, 20, 0.45);
}
.wheel-pointer {
  position: absolute;
  top: 6px;
  left: 50%;
  z-index: 6;
  width: 36px;
  height: 52px;
  transform: translateX(-50%);
  filter: drop-shadow(0 5px 3px rgba(0, 0, 0, 0.35));
}
.wheel-pointer::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 18px;
  height: 18px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff6d2, #e3b15a 42%, #8a5a12);
  border: 2px solid #fffaf4;
}
.wheel-pointer::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 14px;
  transform: translateX(-50%);
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 30px solid #e3b15a;
}
.wheel-lights { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.wheel-lights i {
  position: absolute;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: #fff8df;
  box-shadow: 0 0 8px #fff1c2, 0 0 2px #fff;
  animation: wheel-bulb 1.15s ease-in-out infinite;
}
.wheel-lights i:nth-child(even) {
  background: #f0c14b;
  box-shadow: 0 0 8px #e3b15a, 0 0 2px #fff6d2;
  animation-delay: 0.55s;
}
.wheel-stage.is-spinning .wheel-lights i { animation-duration: 0.32s; }
@keyframes wheel-bulb {
  0%, 100% { opacity: 0.42; }
  50% { opacity: 1; }
}
.legend { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.legend li { display: flex; gap: 8px; align-items: center; }
.swatch { width: 14px; height: 14px; border-radius: 4px; }

.quiz { display: grid; gap: 12px; }
.q { border: 1px solid var(--line); border-radius: 16px; padding: 12px; background: white; }
.q label { font-weight: 500; grid-template-columns: auto 1fr; align-items: center; }
.choice.is-correct { outline: 2px solid var(--forest); }
.choice.is-wrong { outline: 2px solid var(--clay); }

.player { display: grid; gap: 12px; }
.track { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; align-items: center; text-align: left; width: 100%; border: 1px solid var(--line); background: white; border-radius: 16px; padding: 8px; cursor: pointer; }
.track.is-active { border-color: var(--gold); }
.art { width: 72px; height: 72px; border-radius: 12px; }
.progress { height: 8px; background: rgba(28,36,51,.1); border-radius: 99px; overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: var(--gold); }

.article-top { height: 6px; position: sticky; top: var(--header); background: rgba(28,36,51,.08); z-index: 30; }
.article-top span { display: block; height: 100%; width: 0; background: var(--clay); }
.reading { display: grid; grid-template-columns: 1fr 260px; gap: 18px; }
.lesson { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.lesson label { flex: 1; }
.dash { display: grid; grid-template-columns: 280px 1fr; gap: 16px; }
.stat { font-family: var(--serif); font-size: 1.6rem; }
.list { display: grid; gap: 8px; margin: 8px 0 0; padding: 0; list-style: none; }
.age-gate { min-height: 280px; display: grid; place-items: center; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.crumbs { color: var(--muted); font-size: 0.88rem; }
.crumbs a { color: var(--navy); }

@media (max-width: 900px) {
  h1 { font-size: 2.2rem; }
  .hero h1 { font-size: 3rem; }
  .lgc-head { padding: 14px; }
  .lgc-head h2 { font-size: 1.12rem; }
  .bubble { padding: 8px 10px; }
  .hero, .activity-grid, .grid-3, .bonus-band, .footer-grid, .wheel-layout, .product, .reading, .dash, .grid-2, .card-grid { grid-template-columns: 1fr; }
  .bottom-nav { display: flex; }
}
@media (min-width: 901px) {
  body { padding-bottom: 0; }
  .pwa-pop { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wheel-rotor, a.card, .topic, .lgc-row { transition: none; }
  .live-dot, .btn-pop, .btn-live, .earn-btn, .btn-wa, a.wa-live, .pill-live, .is-active-pop, .card p.meta.is-active-pop, .wheel-rotor, .wheel-lights i, .lgc-row, .lgc-presence, .lgc-ticker-track, .lgc-ticker-live-dot, .lgc-soft, .card-photo-spin, .pwa-pop { animation: none; }
  .lgc-ticker-viewport { overflow-x: auto; }
}
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
