:root {
  --ink: #10233f;
  --paper: #fffaf0;
  --cream: #fff4d8;
  --coral: #ff5b4a;
  --yellow: #ffd23f;
  --aqua: #25c7d9;
  --green: #7bd629;
  --blue: #2968e8;
  --shadow: 0 22px 50px rgba(16, 35, 63, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 210, 63, 0.28), transparent 25rem),
    radial-gradient(circle at 84% 8%, rgba(37, 199, 217, 0.24), transparent 27rem),
    linear-gradient(180deg, #fffdf7 0%, #fff7e5 45%, #e9fbff 100%);
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.7rem clamp(1rem, 4vw, 4rem);
  background: rgba(255, 250, 240, 0.88);
  border-bottom: 3px solid rgba(16, 35, 63, 0.08);
  backdrop-filter: blur(14px);
}

.brand img {
  display: block;
  width: clamp(92px, 12vw, 150px);
  height: auto;
}

nav {
  display: flex;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  font-weight: 900;
}

nav a {
  text-decoration: none;
  color: var(--ink);
}

.hero {
  min-height: calc(100svh - 88px);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding: clamp(1.25rem, 5vw, 5rem) clamp(1rem, 4vw, 4rem) 2rem;
}

.hero-copy {
  max-width: 690px;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: #0b6f7a;
  font-weight: 1000;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(3.5rem, 8vw, 8.4rem);
  line-height: 0.88;
  letter-spacing: 0;
  color: var(--ink);
  text-shadow: 5px 5px 0 var(--yellow);
}

h2 {
  margin: 0;
  font-size: clamp(2.1rem, 4.4vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  line-height: 1.05;
}

.lede {
  max-width: 55ch;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.55;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.15rem;
  border: 3px solid var(--ink);
  border-radius: 8px;
  box-shadow: 5px 5px 0 var(--ink);
  font-weight: 1000;
  text-decoration: none;
}

.primary {
  background: var(--coral);
  color: white;
}

.secondary {
  background: white;
}

.hero-art {
  position: relative;
}

.hero-art img {
  display: block;
  width: 100%;
  border: 5px solid white;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.search-strip {
  display: flex;
  gap: 0.8rem;
  overflow-x: auto;
  padding: 0.75rem clamp(1rem, 4vw, 4rem) 2rem;
}

.search-strip span,
.tags span {
  flex: 0 0 auto;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: white;
  padding: 0.48rem 0.8rem;
  font-weight: 900;
}

.section {
  padding: clamp(3rem, 7vw, 7rem) clamp(1rem, 4vw, 4rem);
}

.section-heading {
  max-width: 860px;
  margin-bottom: 2rem;
}

.section-heading p {
  font-size: 1.08rem;
  line-height: 1.65;
  font-weight: 650;
}

.video-grid,
.channel-grid,
.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.video-card,
.channel-card,
.topic-card,
.answer-box,
.monetization {
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 8px 8px 0 var(--ink);
}

.video-card {
  overflow: hidden;
}

.video-card a {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--cream);
}

.video-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play {
  position: absolute;
  right: 0.85rem;
  bottom: 0.85rem;
  border: 3px solid white;
  border-radius: 999px;
  background: var(--coral);
  color: white;
  padding: 0.45rem 0.8rem;
  font-weight: 1000;
}

.video-card-copy,
.channel-card {
  padding: 1.2rem;
}

.video-card-copy p:first-child,
.channel-card > span {
  margin: 0 0 0.6rem;
  color: #0b6f7a;
  font-weight: 1000;
}

.video-card-copy p {
  line-height: 1.55;
  font-weight: 650;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tags span {
  font-size: 0.82rem;
  padding: 0.34rem 0.52rem;
}

.channel-band {
  background: linear-gradient(90deg, rgba(37, 199, 217, 0.18), rgba(255, 210, 63, 0.25), rgba(123, 214, 41, 0.18));
}

.channel-card {
  min-height: 280px;
}

.channel-card.coral {
  background: #fff1ee;
}

.channel-card.aqua {
  background: #eafdff;
}

.channel-card.green {
  background: #f1ffe7;
}

.channel-card p {
  line-height: 1.55;
  font-weight: 650;
}

.channel-card a,
.topic-card a,
.topic-hero a {
  display: inline-flex;
  margin-top: 0.5rem;
  font-weight: 1000;
}

.topic-section {
  background: rgba(255, 255, 255, 0.45);
}

.topic-card {
  padding: 1.25rem;
}

.topic-card p {
  line-height: 1.58;
  font-weight: 650;
}

.topic-hero {
  padding: clamp(2rem, 6vw, 5rem) clamp(1rem, 4vw, 4rem);
  background: linear-gradient(135deg, rgba(255, 210, 63, 0.28), rgba(37, 199, 217, 0.2));
}

.topic-hero-inner {
  max-width: 960px;
}

.topic-hero p {
  max-width: 68ch;
  font-size: clamp(1.06rem, 1.7vw, 1.28rem);
  line-height: 1.65;
  font-weight: 700;
}

.topic-content {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 1.25rem;
  align-items: start;
}

.topic-panel {
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: white;
  box-shadow: 8px 8px 0 var(--ink);
  padding: clamp(1rem, 3vw, 1.5rem);
}

.topic-panel ul,
.topic-panel ol {
  margin-bottom: 0;
  padding-left: 1.25rem;
  line-height: 1.65;
  font-weight: 700;
}

.faq-stack {
  display: grid;
  gap: 1rem;
}

.faq-stack article {
  padding: 1rem;
  border-left: 8px solid var(--coral);
  background: rgba(255, 244, 216, 0.72);
}

.faq-stack p {
  line-height: 1.6;
  font-weight: 650;
}

.growth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 1.25rem;
  align-items: start;
}

.growth-list {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding-left: 1.35rem;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.55;
  font-weight: 760;
}

.growth-list li {
  padding: 0.9rem 1rem;
  border-left: 8px solid var(--coral);
  background: white;
}

.monetization {
  padding: 1.25rem;
  background: var(--ink);
  color: white;
}

.monetization p {
  line-height: 1.62;
  font-weight: 650;
}

.answer-box {
  max-width: 1020px;
  margin: clamp(2rem, 5vw, 4rem) auto;
  padding: clamp(1.25rem, 3vw, 2.2rem);
  background: white;
}

.connection {
  background: linear-gradient(135deg, rgba(255, 91, 74, 0.12), rgba(37, 199, 217, 0.14));
}

.connection-list {
  max-width: 980px;
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding-left: 1.35rem;
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.55;
  font-weight: 760;
}

.connection-list li {
  padding: 0.9rem 1rem;
  border-left: 8px solid var(--aqua);
  background: white;
}

.game-shell {
  padding: clamp(1rem, 4vw, 3rem) clamp(1rem, 4vw, 4rem) clamp(3rem, 6vw, 5rem);
}

.game-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 1rem;
  align-items: start;
}

.game-frame {
  border: 4px solid var(--ink);
  border-radius: 8px;
  background: #fffaf0;
  box-shadow: 10px 10px 0 var(--ink);
  overflow: hidden;
}

.game-hud {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  padding: 0.75rem;
  background: white;
  border-bottom: 4px solid var(--ink);
}

.game-meter {
  min-height: 64px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: var(--cream);
  padding: 0.45rem;
}

.game-meter span {
  display: block;
  font-size: 0.75rem;
  font-weight: 1000;
  color: #0b6f7a;
  text-transform: uppercase;
}

.game-meter strong {
  display: block;
  margin-top: 0.1rem;
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  line-height: 1;
}

.game-canvas-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(180deg, rgba(37, 199, 217, 0.28), rgba(255, 244, 216, 0.94)),
    radial-gradient(circle at 20% 18%, rgba(255, 210, 63, 0.55), transparent 9rem);
}

.game-canvas-wrap canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.game-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(255, 250, 240, 0.78);
}

.game-start[hidden] {
  display: none;
}

.game-start-panel {
  max-width: 520px;
  border: 4px solid var(--ink);
  border-radius: 8px;
  background: white;
  box-shadow: 8px 8px 0 var(--ink);
  padding: clamp(1rem, 3vw, 1.6rem);
  text-align: center;
}

.game-start-panel p {
  line-height: 1.5;
  font-weight: 700;
}

.game-side {
  display: grid;
  gap: 1rem;
}

.game-card {
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: white;
  box-shadow: 8px 8px 0 var(--ink);
  padding: 1rem;
}

.game-card p,
.game-card li {
  line-height: 1.55;
  font-weight: 700;
}

.game-card ul {
  margin-bottom: 0;
  padding-left: 1.2rem;
}

.touch-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.touch-controls button,
.game-start button {
  min-height: 48px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: var(--yellow);
  box-shadow: 4px 4px 0 var(--ink);
  color: var(--ink);
  font: inherit;
  font-weight: 1000;
}

.answer-box p {
  font-size: 1.15rem;
  line-height: 1.65;
  font-weight: 700;
}

footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem 1rem 3rem;
  font-weight: 800;
  text-align: center;
}

footer img {
  width: 92px;
}

@media (max-width: 900px) {
  .topbar,
  nav,
  footer {
    flex-direction: column;
  }

  .hero,
  .growth-layout,
  .topic-content,
  .game-layout,
  .video-grid,
  .channel-grid,
  .topic-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }
}

@media (max-width: 520px) {
  nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
    font-size: 0.86rem;
  }

  .game-hud {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }
}
