:root {
  --eko-ink: #073a25;
  --eko-deep: #052d1d;
  --eko-leaf: #167331;
  --eko-lime: #9bea3c;
  --eko-sun: #f4cf58;
  --eko-cream: #fbf8ed;
  --eko-paper: #fffdf6;
  --eko-line: rgba(7, 58, 37, 0.16);
  --eko-shadow: 0 22px 60px rgba(27, 55, 33, 0.12);
}

.eko-page,
.eko-reader-page {
  min-width: 0;
  overflow-x: clip;
  color: var(--eko-ink);
  background:
    radial-gradient(circle at 8% 18%, rgba(155, 234, 60, 0.12), transparent 24rem),
    radial-gradient(circle at 92% 44%, rgba(244, 207, 88, 0.12), transparent 22rem),
    var(--eko-cream);
}

.eko-page .site-header,
.eko-reader-page .site-header {
  background: rgba(5, 39, 24, 0.98);
}

.eko-page .site-header.is-stuck,
.eko-reader-page .site-header.is-stuck {
  background: rgba(5, 39, 24, 0.98);
}

.primary-nav .nav-eko {
  color: #d9ff77;
}

.primary-nav .nav-eko::after {
  background: #d9ff77;
}

.eko-shell-start {
  padding-top: calc(30px + var(--header-height));
}

.eko-subnav {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid var(--eko-line);
  background: rgba(255, 253, 246, 0.94);
  backdrop-filter: blur(14px);
}

.eko-subnav__inner {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.eko-subnav__inner::-webkit-scrollbar {
  display: none;
}

.eko-subnav__brand,
.eko-subnav a {
  flex: 0 0 auto;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--eko-ink);
  font-size: 14px;
  font-weight: 800;
}

.eko-subnav__brand {
  margin-right: 8px;
  padding-left: 0;
  color: var(--eko-leaf);
  font-weight: 950;
  letter-spacing: 0.01em;
}

.eko-subnav__brand img {
  width: 30px;
  height: 38px;
  object-fit: contain;
}

.eko-subnav a:hover,
.eko-subnav a:focus-visible,
.eko-subnav a[aria-current="page"] {
  background: #eaf8c9;
  color: #064523;
}

.eko-hero {
  padding: 28px 0 16px;
}

.eko-hero__panel {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(270px, 0.75fr);
  align-items: center;
  gap: 30px;
  padding: clamp(28px, 4vw, 58px);
  border: 1px solid rgba(181, 128, 24, 0.28);
  border-radius: 24px;
  background:
    linear-gradient(110deg, rgba(255, 253, 246, 0.98), rgba(246, 242, 222, 0.88)),
    repeating-linear-gradient(0deg, transparent 0 12px, rgba(7, 58, 37, 0.025) 12px 13px);
  box-shadow: var(--eko-shadow);
}

.eko-hero__panel::before,
.eko-hero__panel::after {
  content: "";
  position: absolute;
  border: 2px solid rgba(22, 115, 49, 0.14);
  border-radius: 48% 52% 56% 44%;
  pointer-events: none;
}

.eko-hero__panel::before {
  width: 220px;
  height: 150px;
  right: -70px;
  top: -60px;
  transform: rotate(22deg);
}

.eko-hero__panel::after {
  width: 150px;
  height: 220px;
  left: -90px;
  bottom: -120px;
  transform: rotate(-28deg);
}

.eko-hero__copy {
  position: relative;
  z-index: 2;
}

.eko-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--eko-leaf);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eko-hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(44px, 6.2vw, 78px);
  line-height: 0.94;
  letter-spacing: -0.06em;
}

.eko-hero h1 span {
  color: var(--eko-leaf);
}

.eko-hero__lead {
  max-width: 650px;
  margin: 20px 0 0;
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.45;
  color: #254f3c;
}

.eko-hero__actions,
.eko-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 25px;
}

.eko-button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  border: 2px solid var(--eko-ink);
  border-radius: 12px;
  background: transparent;
  color: var(--eko-ink);
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
}

.eko-button--primary {
  border-color: var(--eko-leaf);
  background: linear-gradient(135deg, #0d6a30, #12863d);
  color: #fff;
  box-shadow: 0 10px 24px rgba(12, 105, 46, 0.22);
}

.eko-button--lime {
  border-color: var(--eko-lime);
  background: var(--eko-lime);
  color: #093a22;
}

.eko-button:hover,
.eko-button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(7, 58, 37, 0.14);
}

.eko-hero__character {
  position: relative;
  z-index: 2;
  min-height: 250px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.eko-hero__character::before {
  content: "";
  position: absolute;
  width: 310px;
  height: 110px;
  bottom: 4px;
  border-radius: 50%;
  background: rgba(7, 58, 37, 0.12);
  filter: blur(2px);
}

.eko-hero__character img {
  position: relative;
  width: min(100%, 310px);
  height: auto;
  max-height: 320px;
  object-fit: contain;
  filter: drop-shadow(0 18px 18px rgba(7, 58, 37, 0.2));
}

.eko-hero__bubble {
  position: absolute;
  right: 18px;
  top: 2px;
  max-width: 220px;
  padding: 15px 17px;
  border: 2px dashed rgba(7, 58, 37, 0.48);
  border-radius: 50% 48% 54% 46%;
  background: rgba(255, 255, 255, 0.88);
  color: var(--eko-ink);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
  text-align: center;
  transform: rotate(2deg);
}

.eko-section {
  padding: 16px 0 24px;
}

.eko-section__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
}

.eko-section__head h2,
.eko-section__head p {
  margin: 0;
}

.eko-section__head h2 {
  font-size: clamp(28px, 3vw, 42px);
  letter-spacing: -0.04em;
}

.eko-section__head p {
  max-width: 560px;
  color: #4f6c5e;
  line-height: 1.5;
}

.eko-feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 18px;
}

.eko-card {
  position: relative;
  overflow: hidden;
  min-width: 0;
  border: 1px solid rgba(181, 128, 24, 0.27);
  border-radius: 20px;
  background: var(--eko-paper);
  box-shadow: 0 14px 42px rgba(43, 64, 38, 0.08);
}

.eko-game-card {
  min-height: 520px;
  display: flex;
  align-items: end;
  color: #fff;
  background: var(--eko-deep);
}

.eko-game-card > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.eko-game-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 30, 18, 0.08) 10%, rgba(3, 30, 18, 0.94) 92%);
}

.eko-game-card__copy {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: clamp(24px, 4vw, 42px);
}

.eko-game-card h3,
.eko-strip-card h3 {
  margin: 0;
  font-size: clamp(31px, 3.5vw, 50px);
  line-height: 1;
  letter-spacing: -0.045em;
}

.eko-game-card p {
  max-width: 600px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.5;
}

.eko-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.eko-meta span {
  min-height: 31px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.eko-strip-card {
  display: grid;
  grid-template-rows: auto 1fr;
}

.eko-strip-card__preview {
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: #f2eddd;
}

.eko-strip-card__preview img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(37, 53, 31, 0.12);
}

.eko-strip-card__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(22px, 3vw, 34px);
}

.eko-strip-card__copy p {
  margin: 12px 0 0;
  color: #4c6759;
  line-height: 1.5;
}

.eko-strip-card__copy .eko-card__actions {
  margin-top: auto;
  padding-top: 22px;
}

.eko-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-bottom: 12px;
  padding: 0 11px;
  border-radius: 999px;
  background: #ffe58d;
  color: #4e3b00;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.eko-secondary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.8fr);
  gap: 18px;
  margin-top: 18px;
}

.eko-challenge {
  padding: clamp(25px, 4vw, 42px);
  background:
    radial-gradient(circle at 93% 14%, rgba(155, 234, 60, 0.32), transparent 150px),
    var(--eko-paper);
}

.eko-challenge h3,
.eko-adults h3 {
  margin: 0;
  font-size: clamp(25px, 3vw, 36px);
  letter-spacing: -0.04em;
}

.eko-challenge > p,
.eko-adults p {
  margin: 10px 0 0;
  color: #4f6c5e;
  line-height: 1.5;
}

.eko-habits {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
  margin-top: 22px;
}

.eko-habit {
  min-height: 108px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 12px 7px;
  border: 1px solid var(--eko-line);
  border-radius: 15px;
  background: #fff;
  color: var(--eko-ink);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
}

.eko-habit span:first-child {
  font-size: 27px;
}

.eko-habit:hover,
.eko-habit:focus-visible,
.eko-habit[aria-pressed="true"] {
  border-color: var(--eko-leaf);
  background: #eaf8c9;
  box-shadow: inset 0 0 0 1px var(--eko-leaf);
}

.eko-habit[aria-pressed="true"]::after {
  content: "Odabrano ✓";
  color: var(--eko-leaf);
  font-size: 10px;
  font-weight: 950;
}

.eko-challenge__status {
  min-height: 22px;
  margin: 12px 0 0;
  color: var(--eko-leaf);
  font-size: 13px;
  font-weight: 800;
}

.eko-adults {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(25px, 4vw, 42px);
  background: #edf4e9;
}

.eko-adults .eko-button {
  margin-top: 20px;
}

.eko-note {
  padding: 8px 0 46px;
}

.eko-note__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  border-top: 1px solid var(--eko-line);
  border-bottom: 1px solid var(--eko-line);
  color: #496557;
  font-size: 13px;
  line-height: 1.5;
}

/* Comic reader */
.comic-reader {
  padding: 30px 0 54px;
}

.comic-reader__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 22px;
  margin-bottom: 20px;
}

.comic-reader__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--eko-leaf);
  font-weight: 900;
}

.comic-reader h1 {
  max-width: 920px;
  margin: 8px 0 0;
  font-size: clamp(38px, 5.5vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.comic-reader__intro {
  max-width: 780px;
  margin: 14px 0 0;
  color: #4f6c5e;
  font-size: 17px;
  line-height: 1.5;
}

.comic-view-switch {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  align-self: end;
  padding: 4px;
  border: 1px solid var(--eko-line);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(7, 58, 37, 0.08);
}

.comic-view-switch button {
  min-height: 44px;
  padding: 0 15px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--eko-ink);
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}

.comic-view-switch button[aria-pressed="true"] {
  background: var(--eko-ink);
  color: #fff;
}

.comic-reader__surface {
  border: 1px solid rgba(181, 128, 24, 0.26);
  border-radius: 22px;
  background: var(--eko-paper);
  box-shadow: var(--eko-shadow);
}

.comic-board {
  padding: clamp(12px, 2.5vw, 30px);
}

.comic-board img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.comic-scene-reader {
  padding: clamp(14px, 3vw, 32px);
}

.comic-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}

.comic-progress strong {
  font-size: 14px;
  letter-spacing: 0.02em;
}

.comic-progress__dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.comic-progress__dots button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--eko-line);
  border-radius: 50%;
  background: #fff;
  color: var(--eko-ink);
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.comic-progress__dots button[aria-current="step"] {
  border-color: var(--eko-leaf);
  background: var(--eko-lime);
}

.comic-scene-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(260px, 0.58fr);
  gap: 18px;
  align-items: stretch;
}

.comic-crop {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 2px solid rgba(7, 58, 37, 0.18);
  border-radius: 16px;
  background: #e7eadf;
  touch-action: pan-y;
}

.comic-crop img {
  position: absolute;
  max-width: none;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}

.comic-scene-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(20px, 3vw, 34px);
  border-radius: 16px;
  background: #edf4e9;
}

.comic-scene-copy h2 {
  margin: 0;
  font-size: clamp(24px, 2.5vw, 34px);
  letter-spacing: -0.035em;
}

.comic-scene-copy p {
  margin: 13px 0 0;
  color: #385646;
  font-size: 15px;
  line-height: 1.58;
}

.comic-scene-copy small {
  display: block;
  margin-top: 12px;
  color: #648071;
  font-weight: 700;
}

.comic-scene-controls {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
}

.comic-scene-controls button {
  min-height: 50px;
  border: 2px solid var(--eko-ink);
  border-radius: 12px;
  background: #fff;
  color: var(--eko-ink);
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.comic-scene-controls button:last-child {
  background: var(--eko-ink);
  color: #fff;
}

.comic-scene-controls button:disabled {
  opacity: 0.38;
  cursor: default;
}

.comic-scene-controls .comic-show-board {
  border-color: transparent;
  color: var(--eko-leaf);
  background: transparent;
  white-space: nowrap;
}

.comic-full-transcript {
  margin-top: 20px;
  border: 1px solid var(--eko-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
}

.comic-full-transcript summary {
  min-height: 52px;
  display: flex;
  align-items: center;
  padding: 0 18px;
  color: var(--eko-ink);
  font-weight: 900;
  cursor: pointer;
}

.comic-full-transcript ol {
  margin: 0;
  padding: 0 30px 22px 45px;
}

.comic-full-transcript li {
  margin-top: 11px;
  padding-left: 5px;
  color: #385646;
  line-height: 1.5;
}

.comic-reader__enhanced {
  display: none;
}

.is-enhanced .comic-reader__enhanced {
  display: block;
}

.is-enhanced .comic-reader__fallback {
  display: none;
}

.comic-reader [hidden] {
  display: none !important;
}

@media (max-width: 1120px) {
  .eko-hero__panel {
    grid-template-columns: minmax(0, 1fr) 270px;
  }

  .eko-habits {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .eko-shell-start {
    padding-top: calc(30px + var(--header-height));
  }

  .eko-subnav__brand {
    margin-right: 0;
  }

  .eko-hero__panel {
    grid-template-columns: minmax(0, 1fr) 220px;
    min-height: 300px;
  }

  .eko-hero__bubble {
    display: none;
  }

  .eko-feature-grid,
  .eko-secondary-grid {
    grid-template-columns: 1fr;
  }

  .eko-strip-card {
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    grid-template-rows: none;
  }

  .comic-reader__top {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .comic-view-switch {
    justify-self: start;
  }

  .comic-scene-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .eko-shell-start {
    padding-top: calc(30px + 72px);
  }

  .eko-subnav__inner {
    min-height: 54px;
  }

  .eko-subnav__brand,
  .eko-subnav a {
    min-height: 40px;
    padding-inline: 12px;
    font-size: 13px;
  }

  .eko-subnav__brand {
    padding-left: 0;
  }

  .eko-subnav__brand img {
    width: 26px;
    height: 33px;
  }

  .eko-hero {
    padding-top: 16px;
  }

  .eko-hero__panel {
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 24px 20px 0;
    border-radius: 18px;
  }

  .eko-hero h1 {
    font-size: clamp(42px, 14vw, 58px);
  }

  .eko-hero__lead {
    margin-top: 14px;
    font-size: 16px;
  }

  .eko-hero__actions {
    margin-top: 18px;
  }

  .eko-button {
    width: 100%;
  }

  .eko-hero__character {
    min-height: 190px;
    justify-content: flex-end;
  }

  .eko-hero__character img {
    width: 190px;
    max-height: 220px;
  }

  .eko-hero__character::before {
    width: 210px;
    height: 70px;
    right: -8px;
  }

  .eko-section__head {
    display: block;
  }

  .eko-section__head p {
    margin-top: 8px;
  }

  .eko-game-card {
    min-height: 500px;
  }

  .eko-game-card > img {
    object-position: 62% center;
  }

  .eko-game-card__copy {
    padding: 24px 20px;
  }

  .eko-game-card h3,
  .eko-strip-card h3 {
    font-size: 34px;
  }

  .eko-strip-card {
    display: flex;
    flex-direction: column;
  }

  .eko-strip-card__preview {
    min-height: 0;
    padding: 8px;
  }

  .eko-strip-card__copy {
    padding: 22px 20px;
  }

  .eko-habits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .eko-habit:last-child {
    grid-column: 1 / -1;
  }

  .eko-note__inner {
    display: block;
  }

  .comic-reader {
    padding-top: 20px;
  }

  .comic-reader__top {
    gap: 15px;
  }

  .comic-reader h1 {
    font-size: clamp(38px, 12vw, 54px);
  }

  .comic-view-switch {
    width: 100%;
  }

  .comic-view-switch button {
    padding-inline: 10px;
  }

  .comic-scene-reader,
  .comic-board {
    padding: 9px;
  }

  .comic-progress {
    display: block;
    padding: 6px 4px 0;
  }

  .comic-progress__dots {
    justify-content: flex-start;
    margin-top: 10px;
  }

  .comic-progress__dots button {
    width: 44px;
    height: 44px;
  }

  .comic-scene-layout {
    gap: 10px;
  }

  .comic-crop {
    border-radius: 11px;
  }

  .comic-scene-copy {
    padding: 18px;
    border-radius: 12px;
  }

  .comic-scene-copy h2 {
    font-size: 25px;
  }

  .comic-scene-copy p {
    font-size: 14px;
  }

  .comic-scene-controls {
    grid-template-columns: 1fr 1fr;
  }

  .comic-scene-controls .comic-show-board {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

@media (max-width: 390px) {
  .eko-habits {
    grid-template-columns: 1fr;
  }

  .eko-habit:last-child {
    grid-column: auto;
  }

  .comic-view-switch {
    grid-template-columns: 1fr;
  }

  .comic-progress__dots button {
    width: 44px;
    height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .eko-button,
  .eko-habit,
  .comic-view-switch button,
  .comic-scene-controls button {
    scroll-behavior: auto;
    transition: none !important;
  }
}
