:root {
  --bg: #fdf6dc;
  --panel: #fffaf0;
  --ink: #18212f;
  --muted: #536071;
  --line: #1d2838;
  --accent: #ff7a00;
  --accent-2: #12b3a7;
  --accent-3: #ffde59;
  --shadow: 0 16px 0 rgba(24, 33, 47, 0.12);
}

html {
  color-scheme: light dark;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(255, 222, 89, 0.72), transparent 28%),
    radial-gradient(circle at top right, rgba(18, 179, 167, 0.18), transparent 30%),
    linear-gradient(180deg, #fff7d8 0%, #f8f1d8 100%);
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
}

.page-shell {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.25rem 0 4rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
  gap: 1.25rem;
  align-items: stretch;
  padding-top: 1rem;
}

.hero__copy,
.hero__panel,
.feature-card,
.video-card {
  border: 3px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero__copy {
  padding: 2rem;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.92)),
    linear-gradient(135deg, rgba(255, 122, 0, 0.15), rgba(18, 179, 167, 0.1));
}

.hero h1,
.feature-card h2,
.videos h2 {
  margin: 0;
  font-family: "Fredoka", sans-serif;
  line-height: 0.96;
}

.hero h1 {
  font-size: clamp(3.5rem, 9vw, 6.8rem);
  letter-spacing: -0.06em;
}

.eyebrow,
.section-tag,
.stat-card__label {
  margin: 0 0 0.9rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero__lede,
.feature-card p,
.floating-note p,
.stat-card__meta,
.video-card__meta,
.section-note,
.show-card__description,
.show-card__facts,
.cast-card__caption {
  color: var(--muted);
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.button,
.text-link {
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.2rem;
  border: 3px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  text-align: center;
}

.button:hover,
.text-link:hover,
.video-card:hover {
  transform: translateY(-3px);
}

/* Character animations and styling */
.hero__mascot {
  position: relative;
  height: 120px;
  margin-bottom: 1rem;
}

.mascot-character {
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  object-fit: contain;
  animation: bounce 2s ease-in-out infinite;
  filter: drop-shadow(0 4px 8px rgba(24, 33, 47, 0.15));
  transition: transform 0.3s ease;
}

.mascot-character:hover {
  transform: scale(1.1) rotate(5deg);
  cursor: pointer;
}

.octopus-character {
  position: absolute;
  top: -15px;
  right: -10px;
  width: 70px;
  height: 70px;
  object-fit: contain;
  animation: wiggle 1.5s ease-in-out infinite;
  filter: drop-shadow(0 2px 6px rgba(24, 33, 47, 0.12));
  transition: transform 0.3s ease;
}

.octopus-character:hover {
  transform: scale(1.15) rotate(-8deg);
  cursor: pointer;
}

.book-characters-decoration {
  position: relative;
  height: 80px;
  margin: 1rem 0;
}

.book-decoration {
  position: absolute;
  width: 60px;
  height: 60px;
  object-fit: contain;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: drop-shadow(0 3px 6px rgba(24, 33, 47, 0.1));
}

.book-decoration--left {
  left: -20px;
  top: 10px;
  animation: float-left 3s ease-in-out infinite;
}

.book-decoration--right {
  right: -20px;
  top: 10px;
  animation: float-right 3s ease-in-out infinite 0.5s;
}

.book-decoration:hover {
  transform: scale(1.2) rotate(10deg);
  filter: drop-shadow(0 5px 10px rgba(24, 33, 47, 0.2));
  cursor: pointer;
}

/* Character animations */
@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

@keyframes wiggle {
  0%, 100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-5deg);
  }
  75% {
    transform: rotate(5deg);
  }
}

@keyframes float-left {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(3deg);
  }
}

@keyframes float-right {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(-3deg);
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.character-spin {
  animation: spin 2s ease-in-out !important;
}

.angry-emoji {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%) scale(0);
  font-size: 2rem;
  z-index: 1000;
  pointer-events: none;
  animation: emoji-pop 0.3s ease-out forwards;
  filter: drop-shadow(0 2px 4px rgba(24, 33, 47, 0.3));
}

.angry-emoji.show {
  transform: translateX(-50%) scale(1);
}

@keyframes emoji-pop {
  0% {
    transform: translateX(-50%) scale(0) rotate(-180deg);
    opacity: 0;
  }
  50% {
    transform: translateX(-50%) scale(1.2) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateX(-50%) scale(1) rotate(0deg);
    opacity: 1;
  }
}

.button--primary {
  background: var(--accent);
}

.button--secondary {
  background: var(--accent-3);
}

.hero__panel {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  background:
    linear-gradient(180deg, rgba(18, 179, 167, 0.12), rgba(255, 255, 255, 0.95)),
    var(--panel);
}

.stat-card,
.floating-note {
  border: 3px solid var(--line);
  border-radius: 24px;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.82);
}

.stat-card__value {
  margin: 0;
  font-family: "Fredoka", sans-serif;
  font-size: clamp(2.6rem, 7vw, 4rem);
}

.floating-note {
  position: relative;
  overflow: hidden;
}

.floating-note::after {
  content: "";
  position: absolute;
  inset: auto -1rem -1rem auto;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(255, 122, 0, 0.12);
}

.floating-note__tag {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: var(--accent-2);
  color: white;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

main {
  margin-top: 1.4rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
}

.feature-card {
  padding: 1.5rem;
}

.feature-card--wide {
  background:
    linear-gradient(180deg, rgba(255, 222, 89, 0.42), rgba(255, 255, 255, 0.98)),
    var(--panel);
}

.store-card {
  background:
    linear-gradient(180deg, rgba(255, 122, 0, 0.1), rgba(255, 255, 255, 0.98)),
    var(--panel);
}

.poll-card {
  background:
    linear-gradient(180deg, rgba(18, 179, 167, 0.1), rgba(255, 255, 255, 0.98)),
    var(--panel);
}

.store-card__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.8rem;
}

.store-card__logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border: 3px solid var(--line);
  border-radius: 18px;
  background: #ff5964;
  color: #fff;
  box-shadow: 0 10px 0 rgba(24, 33, 47, 0.1);
}

.store-card__logo-mark svg {
  width: 1.7rem;
  height: 1.7rem;
  fill: currentColor;
}

.store-card__brand-name {
  font-family: "Fredoka", sans-serif;
  font-size: 1.2rem;
}

.store-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

.store-card__toggle {
  min-height: 2.8rem;
}

.shop-preview {
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

.shop-preview.is-open {
  display: grid;
}

.shop-preview__item {
  border: 2px solid var(--line);
  border-radius: 22px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.92);
}

.shop-preview__image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 2px solid var(--line);
  border-radius: 18px;
  margin-bottom: 0.85rem;
  background: linear-gradient(180deg, #fff6d7 0%, #f0f6ff 100%);
}

.shop-preview__type {
  margin: 0 0 0.5rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.shop-preview__title {
  margin: 0;
  font-family: "Fredoka", sans-serif;
  font-size: 1.15rem;
  line-height: 1.1;
}

.poll-form {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}

.poll-option {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 0.85rem;
  align-items: center;
  padding: 0.8rem;
  border: 2px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
}

.poll-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.poll-option:has(input:checked) {
  background: rgba(255, 217, 90, 0.35);
  box-shadow: 0 10px 0 rgba(24, 33, 47, 0.08);
}

.poll-option__image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border: 2px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(circle at top left, rgba(255, 222, 89, 0.35), transparent 32%),
    linear-gradient(180deg, #fffdf7 0%, #f7f0de 100%);
  padding: 0.45rem;
}

.poll-option__body {
  display: grid;
  gap: 0.2rem;
}

.poll-option__title {
  font-family: "Fredoka", sans-serif;
  font-size: 1.1rem;
}

.poll-option__meta,
.poll-form__status {
  color: var(--muted);
  font-size: 0.95rem;
}

.poll-option__result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.6rem;
  align-items: center;
  margin-top: 0.3rem;
}

.poll-option__bar {
  display: block;
  width: 100%;
  height: 0.7rem;
  border: 2px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(24, 33, 47, 0.08);
}

.poll-option__fill {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
}

.poll-option__percent {
  font-size: 0.9rem;
  font-weight: 700;
}

.poll-form__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
}

.poll-form__status {
  margin: 0;
}

.text-link {
  display: inline-flex;
  margin-top: 0.4rem;
  color: var(--ink);
  font-weight: 700;
  text-decoration-thickness: 0.14em;
  text-underline-offset: 0.2em;
}

.videos {
  margin-top: 1rem;
}

.shows {
  margin-top: 1.2rem;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 0.9rem;
}

.section-note {
  max-width: 34rem;
  margin: 0;
}

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

.video-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.94);
}

.video-card__thumb {
  aspect-ratio: 16 / 9;
  width: 100%;
  object-fit: cover;
  border-bottom: 3px solid var(--line);
  background: linear-gradient(135deg, #ffd762, #ff8a3d);
}

.video-card__body {
  padding: 1rem;
}

.video-card__title {
  margin: 0;
  font-family: "Fredoka", sans-serif;
  font-size: 1.35rem;
  line-height: 1.15;
}

.video-card__meta {
  margin: 0.6rem 0 0;
  font-size: 0.95rem;
}

.shimmer {
  position: relative;
  overflow: hidden;
  background: rgba(24, 33, 47, 0.08);
}

.shimmer::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.85), transparent);
  animation: shimmer 1.5s infinite;
}

.shimmer--line {
  height: 1rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.shimmer--line.short {
  width: 60%;
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

.show-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.show-card {
  border: 3px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
}

.show-card__poster {
  display: block;
  aspect-ratio: 16 / 9;
  width: 100%;
  object-fit: cover;
  border-bottom: 3px solid var(--line);
  background: linear-gradient(135deg, #ffd762, #12b3a7);
}

.show-card__body {
  padding: 1.2rem;
}

.show-card__title-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
}

.show-card__title {
  margin: 0;
  font-family: "Fredoka", sans-serif;
  font-size: 1.8rem;
  line-height: 1.02;
}

.show-card__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 0.72rem;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--accent-3);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.show-card__description {
  margin: 0.8rem 0 0;
}

.show-card__facts {
  margin: 0.8rem 0 0;
  font-size: 0.96rem;
}

.show-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1rem;
  align-items: center;
}

.show-card__links .text-link {
  margin-top: 0;
}

.show-card__cast {
  display: none;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 2px solid rgba(29, 40, 56, 0.18);
}

.show-card__cast.is-open {
  display: block;
}

.character-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.character-card {
  border: 3px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.character-card__image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background:
    radial-gradient(circle at top left, rgba(255, 222, 89, 0.35), transparent 32%),
    linear-gradient(180deg, #fffdf7 0%, #f7f0de 100%);
  padding: 0.8rem;
}

.character-card__body {
  padding: 0.85rem 0.95rem 1rem;
}

.character-card__label {
  margin: 0;
  font-family: "Fredoka", sans-serif;
  font-size: 1rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1522;
    --panel: #162033;
    --ink: #f7f1df;
    --muted: #b7c2d4;
    --line: #f1e1b8;
    --accent: #ff8b2b;
    --accent-2: #27c6ba;
    --accent-3: #ffd95a;
    --shadow: 0 16px 0 rgba(0, 0, 0, 0.22);
  }

  body {
    background:
      radial-gradient(circle at top left, rgba(255, 217, 90, 0.12), transparent 24%),
      radial-gradient(circle at top right, rgba(39, 198, 186, 0.1), transparent 28%),
      linear-gradient(180deg, #0f1522 0%, #121b2d 100%);
  }

  .hero__copy {
    background:
      linear-gradient(140deg, rgba(24, 32, 51, 0.92), rgba(20, 28, 44, 0.97)),
      linear-gradient(135deg, rgba(255, 139, 43, 0.16), rgba(39, 198, 186, 0.1));
  }

  .hero__panel {
    background:
      linear-gradient(180deg, rgba(39, 198, 186, 0.13), rgba(22, 32, 51, 0.96)),
      var(--panel);
  }

  .stat-card,
  .floating-note,
  .video-card,
  .show-card,
  .character-card,
  .shop-preview__item,
  .poll-option {
    background: rgba(20, 28, 44, 0.95);
  }

  .feature-card--wide {
    background:
      linear-gradient(180deg, rgba(255, 217, 90, 0.12), rgba(22, 32, 51, 0.98)),
      var(--panel);
  }

  .store-card {
    background:
      linear-gradient(180deg, rgba(255, 139, 43, 0.12), rgba(22, 32, 51, 0.98)),
      var(--panel);
  }

  .poll-card {
    background:
      linear-gradient(180deg, rgba(39, 198, 186, 0.12), rgba(22, 32, 51, 0.98)),
      var(--panel);
  }

  .video-card__thumb,
  .show-card__poster,
  .character-card__image,
  .shop-preview__image,
  .poll-option__image {
    background:
      radial-gradient(circle at top left, rgba(255, 217, 90, 0.16), transparent 30%),
      linear-gradient(180deg, #21304b 0%, #182338 100%);
  }

  .poll-option:has(input:checked) {
    background: rgba(255, 217, 90, 0.18);
    box-shadow: 0 10px 0 rgba(0, 0, 0, 0.16);
  }

  .poll-option__bar {
    background: rgba(247, 241, 223, 0.08);
  }

  .store-card__logo-mark {
    box-shadow: 0 10px 0 rgba(0, 0, 0, 0.2);
  }

  .shimmer {
    background: rgba(247, 241, 223, 0.09);
  }

  .shimmer::after {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
  }

  .show-card__cast {
    border-top-color: rgba(241, 225, 184, 0.2);
  }
}

@media (max-width: 880px) {
  .hero,
  .feature-grid,
  .video-grid,
  .show-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

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

@media (max-width: 700px) {
  .page-shell {
    width: min(100% - 1rem, 1120px);
    padding-top: 0.6rem;
  }

  .hero {
    gap: 1rem;
    padding-top: 0.4rem;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 17vw, 4.2rem);
    line-height: 0.98;
  }

  .hero__copy,
  .feature-card,
  .show-card__body {
    padding: 1.1rem;
  }

  .stat-card,
  .floating-note {
    padding: 1rem;
  }

  .video-card__title,
  .show-card__title {
    font-size: 1.4rem;
  }

  .show-card__title-row {
    align-items: start;
    flex-direction: column;
  }

  .show-card__badge {
    width: 100%;
    justify-content: center;
  }

  .show-card__links {
    flex-direction: column;
    align-items: stretch;
  }

  .show-card__links .button,
  .show-card__links .text-link,
  .hero__actions .button,
  .store-card__actions .button,
  .store-card__actions .text-link,
  .poll-form__footer .button {
    width: 100%;
    justify-content: center;
  }

  .show-card__links .text-link {
    margin-top: 0;
    padding: 0.2rem 0;
  }

  .character-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .shop-preview {
    grid-template-columns: 1fr;
  }

  .poll-option {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .poll-form__footer {
    align-items: stretch;
    flex-direction: column;
  }

  .character-card__body {
    padding: 0.7rem 0.75rem 0.85rem;
  }

  .character-card__label {
    font-size: 0.92rem;
  }
}

@media (max-width: 560px) {
  .hero__copy,
  .feature-card,
  .video-card__body,
  .show-card__body {
    padding: 1.15rem;
  }

  .hero__panel {
    padding: 0.8rem;
  }

  .hero__actions,
  .show-card__links {
    gap: 0.7rem;
  }

  .section-note {
    font-size: 0.95rem;
  }

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

  .poll-option {
    grid-template-columns: 1fr;
  }

  .poll-option__image {
    width: min(100%, 180px);
  }
}

@media (max-width: 420px) {
  .page-shell {
    width: calc(100% - 0.75rem);
    padding-bottom: 2.5rem;
  }

  .hero__copy,
  .feature-card,
  .video-card__body,
  .show-card__body {
    padding: 0.95rem;
  }

  .hero__panel {
    padding: 0.65rem;
  }

  .hero__lede,
  .feature-card p,
  .show-card__description,
  .show-card__facts,
  .video-card__meta {
    font-size: 0.95rem;
  }

  .button {
    min-height: 2.85rem;
    padding: 0.78rem 1rem;
    font-size: 0.95rem;
  }

  .show-card__badge {
    font-size: 0.74rem;
  }
}
