@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/montserrat-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/montserrat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/montserrat-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/montserrat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/montserrat-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/montserrat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/montserrat-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/montserrat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "PT Sans Caption";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/pt-sans-caption-400-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "PT Sans Caption";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/pt-sans-caption-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "PT Sans Caption";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/pt-sans-caption-700-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "PT Sans Caption";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/pt-sans-caption-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --primary: #0c4da2;
  --primary-deep: #00377a;
  --secondary: #f9d821;
  --surface: #f7f9fc;
  --surface-low: #edf3fb;
  --text: #17304f;
  --muted: #5e718d;
  --success: #1e9b59;
  --warning: #b97000;
  --error: #b62c33;
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --shadow-soft: 0 24px 60px rgba(12, 77, 162, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-size: 15px;
  color: var(--text);
  background: #fff;
}

p {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-size: 15px;
}

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

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

.container {
  width: min(1380px, calc(100% - 32px));
  margin: 0 auto;
}

main.container {
  width: min(1316px, calc(100% - 32px));
  margin: 0 auto;
  padding-left: 9rem;
}

main.container.episode-page {
  padding-left: 0;
}

main.container.auth-page {
  padding-left: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fbbc2b;
  backdrop-filter: none;
}

.header-row,
.footer-row,
.hero,
.split-grid,
.reward-grid,
.dashboard-grid,
.episode-grid,
.auth-shell {
  display: grid;
  gap: 24px;
}

.header-row {
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 34px;
  padding: 10px 0;
}

.brand,
.site-title,
.hero-copy h1,
.section-title,
.card-title,
.page-title,
.episode-title,
.summary-stat strong,
.eyebrow {
  font-family: "PT Sans Caption", sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

b,
strong,
th,
label,
.nav-links a,
.mini-link,
.pill,
.tag,
.episode-step,
.mascot-badge,
.trail-bubble,
.flash {
  font-family: "PT Sans Caption", sans-serif;
}

.brand {
  color: #fff;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
}

.brand-logo img {
  width: 138px;
  max-width: none;
  height: auto;
}

.site-title {
  font-size: 1.15rem;
  color: #fff;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 48px;
}

.header-menu-toggle {
  display: none;
  position: relative;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  padding: 0;
  background: #3494b6;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
}

.header-menu-toggle span {
  position: absolute;
  width: 22px;
  height: 3px;
  background: #fff;
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.header-menu-toggle span:nth-child(1) {
  transform: translateY(-7px);
}

.header-menu-toggle span:nth-child(2) {
  transform: translateY(0);
}

.header-menu-toggle span:nth-child(3) {
  transform: translateY(7px);
}

.nav-links a,
.mini-link {
  color: #fff;
  font-weight: 700;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn,
.btn-secondary,
.btn-ghost,
.quiz-option input + span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-family: "PT Sans Caption", sans-serif;
  font-weight: 700;
  line-height: 1.2;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover,
.btn-secondary:hover,
.btn-ghost:hover,
.quiz-option input + span:hover {
  transform: scale(1.03);
}

.btn {
  color: #fff;
  background: #3494b6;
  box-shadow: var(--shadow-soft);
}

.btn-secondary {
  color: var(--primary-deep);
  background: var(--secondary);
}

.btn-ghost {
  color: #fff;
  background: #62add0;
  box-shadow: none;
}

.hero {
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  padding: 48px 0 34px;
}

.hero-copy h1 {
  margin: 0 0 16px;
  color: var(--primary-deep);
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  letter-spacing: -0.02em;
}

.hero-copy p,
.section-lead,
.muted {
  color: var(--muted);
  line-height: 1.7;
}

.hero-copy p {
  max-width: 650px;
  font-size: 15px;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 10px 16px;
  color: var(--primary-deep);
  background: #faebbe;
  border-radius: 999px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.mascot-card,
.info-card,
.episode-card,
.summary-card,
.form-card,
.admin-card,
.feature-card,
.quiz-card {
  background: #fff;
  border: 3px solid #faebbe;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}

.mascot-card {
  position: relative;
  padding: 26px;
  overflow: hidden;
}

.mascot-card::before {
  content: "";
  position: absolute;
  inset: auto auto -100px -60px;
  width: 220px;
  height: 220px;
  background: rgba(249, 216, 33, 0.35);
  border-radius: 50%;
}

.mascot-image-wrap {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: 8px 0 18px;
}

.mascot-image {
  width: min(100%, 340px);
  height: auto;
  filter: drop-shadow(0 22px 30px rgba(12, 77, 162, 0.18));
}

.mascot-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
  padding: 10px 14px;
  color: var(--primary);
  background: #fff;
  border-radius: 999px;
  font-weight: 800;
}

.section {
  position: relative;
  padding: 24px 0 12px;
}

.section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #fcf8c2;
  border-radius: 40px;
  z-index: -1;
}

.section-title {
  margin: 0 0 12px;
  color: var(--primary-deep);
  font-size: clamp(1rem, 2vw, 1.5rem);
}

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

.feature-card,
.episode-card,
.summary-card,
.form-card,
.admin-card,
.quiz-card,
.info-card {
  padding: 24px;
}

.admin-page {
  padding: 34px 0 72px;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0 24px;
}

.admin-stat-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  background: #fcf8c2;
  border-radius: 22px;
  text-align: center;
}

.admin-stat-card strong {
  color: var(--primary);
  font-size: clamp(1.8rem, 2.2vw, 2.4rem);
  line-height: 1;
}

.admin-stat-card span {
  color: #454442;
  font-size: 1rem;
}

.admin-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 16px;
  align-items: end;
  margin-bottom: 22px;
}

.admin-filter-field {
  display: grid;
  gap: 8px;
}

.admin-filter-field span {
  color: #454442;
  font-weight: 700;
}

.admin-filter-field input,
.admin-filter-field select {
  min-height: 52px;
  padding: 12px 16px;
  border: 0;
  border-radius: 18px;
  background: #fff8ae;
  color: #454442;
  font: inherit;
}

.admin-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-table-wrap {
  overflow-x: auto;
  margin-top: 20px;
}

.admin-progress-bar {
  width: min(180px, 100%);
  height: 14px;
  margin: 10px 0 6px;
  overflow: hidden;
  background: #dce6f7;
  border-radius: 999px;
}

.admin-progress-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #ffb10a 0%, #3494b6 100%);
  border-radius: 999px;
}

.admin-status {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 700;
  line-height: 1.2;
}

.admin-status-completed {
  color: #146b3a;
  background: #dff7e8;
}

.admin-status-progress {
  color: #8a5c00;
  background: #fff1c2;
}

.admin-status-idle {
  color: #4d6588;
  background: #e8f0fb;
}

.feature-icon,
.episode-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  font-size: 1.8rem;
  background: #faebbe;
  border-radius: 20px;
}

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

.episode-card.locked {
  opacity: 0.62;
}

.episode-card-soon {
  opacity: 0.8;
}

.episode-card-header,
.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.episode-media {
  position: relative;
  aspect-ratio: 16 / 9;
  margin: 18px 0 14px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(12, 77, 162, 0.18), rgba(249, 216, 33, 0.22));
  border-radius: 22px;
}

.episode-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 77, 162, 0.08), rgba(12, 77, 162, 0.28));
}

.episode-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.episode-step {
  padding: 8px 14px;
  color: var(--primary);
  background: #faebbe;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 800;
}

.episode-title,
.card-title,
.page-title {
  margin: 16px 0 10px;
  color: var(--primary-deep);
}

.episode-title,
.page-title {
  font-size: 1.45rem;
}

.progress-bar {
  height: 18px;
  padding: 4px;
  overflow: hidden;
  background: rgba(12, 77, 162, 0.1);
  border-radius: 999px;
}

.progress-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--secondary) 0%, #ffb800 100%);
  border-radius: 999px;
}

.summary-stat {
  display: grid;
  place-items: center;
  gap: 6px;
  padding: 18px;
  background: #fcf8c2;
  border-radius: 24px;
}

.dashboard-grid .summary-card:first-child {
  grid-column: 1 / -1;
}

.adventure-progress-top {
  padding: 30px 0 18px;
}

.adventure-welcome {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
}

.adventure-welcome-icon {
  width: 82px;
  height: 82px;
  object-fit: contain;
}

.adventure-welcome-copy h2 {
  margin: 0 0 4px;
  color: #59aedd;
  font-family: "PT Sans Caption", sans-serif;
  font-size: clamp(2.1rem, 2.8vw, 3.3rem);
  font-weight: 700;
  line-height: 1.05;
}

.adventure-welcome-copy p {
  color: #454442;
  font-size: clamp(1.55rem, 2vw, 2.4rem);
  font-weight: 500;
  line-height: 1.1;
}

.adventure-progress-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.55fr);
  gap: 56px;
  align-items: start;
}

.adventure-progress-shell,
.adventure-stat-shell {
  position: relative;
  padding: 22px;
  background: #fff9cc;
  border: 4px dashed #f3d83d;
  border-radius: 56px;
  box-shadow: 0 18px 44px rgba(243, 216, 61, 0.18);
}

.adventure-progress-shell {
  padding-left: 44px;
}

.adventure-progress-mascot {
  position: absolute;
  left: -148px;
  bottom: 42px;
  width: 208px;
  height: auto;
}

.adventure-progress-card {
  min-height: 336px;
  padding: 28px 28px 32px;
  background: #fff;
  border-radius: 0;
}

.adventure-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 64px;
}

.adventure-progress-chip,
.adventure-progress-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 12px 26px;
  border-radius: 999px;
  font-family: "PT Sans Caption", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.1;
}

.adventure-progress-chip {
  color: #0c4da2;
  background: #faebbe;
}

.adventure-progress-action {
  color: #0c4da2;
  background: #f9d821;
}

.adventure-progress-title {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 38px;
}

.adventure-progress-star {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.adventure-progress-title .page-title {
  margin: 0;
  color: #00377a;
  font-size: clamp(1.5rem, 2vw, 3.2rem);
}

.adventure-progress-bar {
  height: 22px;
  padding: 4px;
  margin-bottom: 24px;
  background: #e3ecfb;
}

.adventure-progress-copy {
  color: #63636a;
  font-size: clamp(1.3rem, 1.6vw, 2rem);
  line-height: 1.4;
}

.adventure-progress-copy strong {
  color: #454442;
}

.adventure-progress-side {
  position: relative;
  display: grid;
  gap: 42px;
  padding: 2px 0;
}

.adventure-stat-shell {
  padding: 18px;
  border-radius: 44px;
}

.adventure-stat-card {
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 138px;
  padding: 18px 16px;
  background: #fff;
  border-radius: 24px;
  text-align: center;
}

.adventure-stat-card strong {
  color: #59aedd;
  font-family: "PT Sans Caption", sans-serif;
  font-size: clamp(2.1rem, 2.8vw, 3.2rem);
  font-weight: 700;
  line-height: 1;
}

.adventure-stat-card span {
  color: #454442;
  font-size: clamp(1.1rem, 1.9vw, 1.2rem);
  line-height: 1.08;
}

.adventure-stat-medal {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 116px;
  height: auto;
  transform: translate(-50%, -50%);
}

.adventure-map-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 72px;
}

.adventure-map-head-icon {
  width: 186px;
  height: auto;
  margin-bottom: 14px;
}

.adventure-map-head h2 {
  margin: 0 0 10px;
}

.adventure-map-head p {
  max-width: 840px;
  margin: 0 auto;
}

#adventure-missions .container {
  padding-top: 0;
}

@media (max-width: 1260px) {
  .adventure-progress-layout {
    grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.55fr);
    gap: 38px;
  }

  .adventure-progress-shell {
    padding-left: 60px;
  }

  .adventure-progress-mascot {
    left: -82px;
    bottom: 36px;
    width: 156px;
  }
}

.pill,
.tag {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 700;
}

.pill {
  align-items: center;
  gap: 8px;
  color: var(--primary-deep);
  background: #faebbe;
}

.tag {
  color: var(--primary);
  background: #faebbe;
}

.trail {
  display: grid;
  gap: 14px;
}

.trail-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  align-items: start;
  gap: 16px;
}

.trail-bubble {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  color: var(--primary-deep);
  background: #faebbe;
  border-radius: 20px;
  font-weight: 900;
}

.auth-shell {
  grid-template-columns: 0.95fr 1.05fr;
  align-items: stretch;
  padding: 48px 0 72px;
}

.auth-page {
  display: grid;
  gap: 34px;
  padding: 34px 0 72px;
}

.auth-notice {
  width: min(1320px, 100%);
  margin: 0 auto;
  padding: 18px 28px;
  color: #b67a12;
  background: linear-gradient(90deg, rgba(253, 232, 175, 0.92) 0%, rgba(250, 235, 190, 0.72) 100%);
  border-radius: 999px;
  font-family: "PT Sans Caption", sans-serif;
  font-size: clamp(1rem, 1.2vw, 1.35rem);
  font-weight: 500;
  line-height: 1.35;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.96fr);
  align-items: stretch;
  gap: 42px;
}

.auth-story-card,
.auth-box {
  position: relative;
  border: 5px dashed #ef9b2d;
  border-radius: 38px;
}

.auth-story-card {
  position: relative;
  isolation: isolate;
  min-height: 456px;
  overflow: visible;
  padding: 32px 60px 32px 60px;
  background: rgba(89, 174, 221, 0.96);
  box-shadow: 0 18px 34px rgba(52, 148, 182, 0.18);
}

.auth-story-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/images/missions-pattern-home.webp") center center / cover repeat;
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
}

.auth-story-title-pill {
  width: min(100%, 650px);
  margin: 0 auto 25px;
  padding: 16px 26px;
  color: #ff8300;
  background: #fff;
  border-radius: 999px;
  font-family: "PT Sans Caption", sans-serif;
  font-size: clamp(2rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.05;
  text-align: center;
}

.auth-story-copy {
  position: relative;
  z-index: 1;
  max-width: 100%;
}

.auth-story-copy p {
  margin: 0;
  color: #fff;
  font-family: "PT Sans Caption", sans-serif;
  font-size: clamp(1.3rem, 2.15vw, 1.4rem);
  font-weight: 500;
  line-height: 1.55;
  text-align: center;
}

.auth-story-art {
  position: absolute;
  right: 14%;
  bottom: -68px;
  width: clamp(215px, 20vw, 434px);
  height: auto;
  z-index: 2;
}

.auth-story-card-register .auth-story-art {
  right: 0%;
  bottom: -33px;
  width: clamp(215px, 41vw, 645px);
}

.auth-box {
  overflow: hidden;
  padding: 28px 28px 32px;
  background: #fff;
  box-shadow: 0 18px 34px rgba(239, 155, 45, 0.1);
}

.auth-box-title {
  margin: 0 0 14px;
  color: #40a7d1;
  font-family: "PT Sans Caption", sans-serif;
  font-size: clamp(1.5rem, 2.8vw, 1.6rem);
  font-weight: 700;
  line-height: 1.08;
}

.auth-form {
  display: grid;
  gap: 22px;
}

.auth-field {
  display: grid;
  gap: 10px;
}

.auth-field span {
  color: #454442;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.35rem, 1.65vw, 1.4rem);
  font-weight: 500;
  line-height: 1.2;
}

.auth-field input {
  width: 100%;
  min-height: 74px;
  padding: 18px 28px;
  color: #454442;
  background: #fcf8c2;
  border: 0;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(255, 235, 161, 0.9);
  font-size: 1.1rem;
}

.auth-field input::placeholder {
  color: #9f9b7f;
}

.auth-submit {
  min-height: 74px;
  margin-top: 10px;
  padding: 16px 24px;
  color: #fff;
  background: #3494b6;
  border: 0;
  border-radius: 999px;
  font-family: "PT Sans Caption", sans-serif;
  font-size: clamp(1.3rem, 1.6vw, 1.5rem);
  font-weight: 700;
  line-height: 1.1;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.auth-submit:hover {
  background: #2d88a8;
  box-shadow: 0 14px 28px rgba(52, 148, 182, 0.22);
  transform: translateY(-1px);
}

.auth-links {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.auth-text-link {
  color: #3494b6;
  font-family: "PT Sans Caption", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
}

.auth-text-link:hover {
  text-decoration: underline;
}

.auth-helper-card {
  display: grid;
  gap: 14px;
  padding: 20px 22px;
  background: #fcf8c2;
  border-radius: 28px;
}

.auth-helper-text {
  margin: 0;
  color: #454442;
  font-size: 1rem;
  line-height: 1.55;
}

.auth-helper-link {
  color: #3494b6;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.auth-form-register {
  gap: 18px;
}

.auth-aside {
  padding: 30px;
  color: #fff;
  background: linear-gradient(165deg, #55bfe7 0%, #3494b6 100%);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}

.auth-aside .page-title {
  color: #fff;
}

.form-card form,
.quiz-form {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--primary-deep);
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  padding: 15px 16px;
  color: var(--text);
  background: var(--surface-low);
  border: 0;
  border-radius: var(--radius-md);
  font: inherit;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

.flash {
  width: min(1160px, calc(100% - 32px));
  margin: 18px auto 0;
  padding: 14px 18px;
  border-radius: 24px;
  font-weight: 700;
  font-family: "PT Sans Caption", sans-serif;
}

.flash-success {
  color: var(--success);
  background: rgba(30, 155, 89, 0.14);
}

.flash-warning {
  color: var(--warning);
  background: rgba(185, 112, 0, 0.14);
}

.flash-error {
  color: var(--error);
  background: rgba(182, 44, 51, 0.14);
}

.quiz-question {
  padding: 20px;
  background: #fcf8c2;
  border-radius: 24px;
}

.quiz-grid-visual {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px 28px;
}

.quiz-grid-family-fill {
  display: flex;
  align-items: end;
  justify-content: center;
  min-height: 100%;
}

.quiz-grid-family-fill-image {
  display: block;
  width: 100%;
  height: auto;
}

.quiz-question-title {
  display: block;
  margin: 0 0 16px;
  color: #454442;
  font-size: 1.25rem;
  line-height: 1.35;
}

.quiz-question-visual {
  position: relative;
  padding: 0;
  background: transparent;
  border-radius: 0;
}

.quiz-question-visual::before {
  content: "";
  position: relative;
  z-index: 2;
  display: block;
  width: min(100%, 390px);
  aspect-ratio: 776 / 387;
  margin: 0 auto -55px;
  background: var(--quiz-question-header-image) center / contain no-repeat;
}

.quiz-question-body-visual {
  display: grid;
  align-content: start;
  padding: 66px 20px 22px;
  background: #fcf8c2 url("/images/missions-pattern-home.webp") center top / cover repeat;
  border-radius: 32px;
}

.quiz-options {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.quiz-question-visual .quiz-options {
  gap: 14px;
  margin-top: 0;
}

.quiz-option {
  position: relative;
}

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

.quiz-option input + span {
  width: 100%;
  justify-content: flex-start;
  padding: 16px 18px;
  color: var(--primary-deep);
  background: #fff;
  border-radius: 24px;
}

.quiz-option-with-icon input + span {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 3px dotted #f3d83d;
  border-radius: 999px;
}

.quiz-option-art {
  width: 80px;
  height: 80px;
  object-fit: contain;
  flex: 0 0 80px;
}

.quiz-option-text {
  display: block;
  color: #5a5a52;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.35;
}

.quiz-option input:checked + span {
  background: var(--secondary);
}

.quiz-option-with-icon input:checked + span {
  background: #fff5c7;
  border-color: #ffb10a;
}

.quiz-form-visual {
  gap: 32px;
}

.quiz-form-visual > .tb-home-watch {
  justify-self: center;
  width: auto;
  min-width: 260px;
}

.video-frame {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #4ac0e3;
  border: 4px solid #ffb10a;
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.video-frame [data-jetstream-player] {
  width: 100%;
  height: 100%;
}

.video-frame .jet-stream-iframe-player {
  width: 100%;
  height: 100%;
  border: 0;
}

.reward-banner {
  padding: 26px;
  color: #fff;
  background: linear-gradient(135deg, #55bfe7 0%, #3494b6 62%, #2f9dc7 100%);
  border-radius: var(--radius-xl);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 14px;
  text-align: left;
  vertical-align: top;
}

tbody tr:nth-child(odd) {
  background: #fcf8c2;
}

@media (max-width: 1260px) {
  .admin-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

footer {
  background: #c7e0ec;
}

.footer-meta {
  display: grid;
  gap: 10px;
}

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

.footer-link {
  color: #3494b6;
  font-family: "PT Sans Caption", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

.footer-link:hover {
  text-decoration: underline;
}

.footer-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  padding: 36px 0 48px;
}

.footer-note {
  color: var(--muted);
  text-align: right;
}

.legal-page {
  padding: 34px 0 56px;
}

.legal-hero {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}

.legal-card {
  padding: 28px 30px;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 18px 34px rgba(52, 148, 182, 0.1);
}

.legal-section + .legal-section {
  margin-top: 28px;
}

.legal-section p {
  margin: 0;
  color: #454442;
  line-height: 1.7;
}

.legal-section p + p {
  margin-top: 14px;
}

.legal-list {
  margin: 14px 0 0;
  padding-left: 22px;
  color: #454442;
  line-height: 1.7;
}

.legal-list li + li {
  margin-top: 8px;
}

.episode-page {
  display: grid;
  gap: 32px;
  padding: 28px 0 52px;
  color: #454442;
}

.episode-page-hero,
.episode-page-video,
.episode-page-quiz,
.episode-page-locked {
  position: relative;
}

.episode-page-hero::before,
.episode-page-video::before,
.episode-page-quiz::before,
.episode-page-locked::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #fcf8c2;
  border-radius: 46px;
  z-index: -1;
}

.episode-page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(324px, 0.85fr);
  gap: 34px;
  padding: 34px 34px 38px;
  background: #fcf8c2 url("/images/missions-pattern-home.webp") center top / 100% auto repeat-y;
  border-radius: 42px;
}

.episode-page-story {
  display: grid;
  align-content: start;
  gap: 14px;
}

.episode-page-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px;
}

.episode-page-kicker {
  margin: 0;
  color: #454442;
  font-size: clamp(1.25rem, 1.7vw, 2rem);
  line-height: 1.1;
}

.episode-page-title-image {
  margin-left: -10px;
  width: min(100%, 300px);
  height: auto;
}

.episode-page-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 46px;
  margin: 0;
  padding: 9px 16px;
  color: #8d7a47;
  background: #fde8af;
  border-radius: 10px;
  font-family: "PT Sans Caption", sans-serif;
  font-size: 1.05rem;
}

.episode-page-badge-image {
  display: block;
  width: min(100%, 126px);
  height: auto;
  object-fit: contain;
}

.episode-page-story .page-title {
  margin: 0;
  display: grid;
  gap: 10px;
  font-size: clamp(2rem, 3vw, 3rem);
  color: #454442;
  line-height: 1.1;
}

.episode-page-title-kicker {
  color: #454442;
  font-family: "PT Sans Caption", sans-serif;
  font-size: clamp(1.15rem, 1.5vw, 1.5rem);
  font-weight: 400;
}

.episode-page-title-main {
  color: #454442;
  font-family: "PT Sans Caption", sans-serif;
  font-size: clamp(2.2rem, 3vw, 3.4rem);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.episode-page-description {
  margin: 0;
  color: #454442;
  font-size: clamp(1.2rem, 1vw, 1.9rem);
  line-height: 1.48;
  max-width: 980px;
}

.episode-page-story .section-lead {
  margin: 0;
  color: #37a8d1;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.35rem, 1.6vw, 2.2rem);
  font-weight: 500;
  line-height: 1.35;
}

.episode-page-note {
  max-width: 980px;
  margin-top: 12px;
  padding: 22px 26px;
  color: #8d7a47;
  background: #fde8af;
  border-radius: 24px;
  font-size: clamp(1rem, 1.3vw, 1rem);
  line-height: 1.55;
}

.episode-page-side {
  display: grid;
  align-content: start;
}

.episode-page-guide {
  position: relative;
  isolation: isolate;
  margin-top: 41px;
  padding: 42px 40px 34px;
  background: rgba(255, 255, 255, 0.98);
  border: 0;
  border-radius: 42px;
  box-shadow: none;
}

.episode-page-guide::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 4px dashed #ffb10a;
  border-radius: 42px;
  pointer-events: none;
  z-index: 2;
}

.episode-page-guide-bird {
  position: absolute;
  top: -104px;
  left: 20%;
  width: 116px;
  height: auto;
  z-index: 1;
  transform: translateX(-50%);
}

.episode-page-guide .card-title {
  position: relative;
  z-index: 3;
  margin: 0 0 28px;
  color: #37a8d1;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.9rem, 2.7vw, 3.2rem);
  font-weight: 700;
  text-align: center;
}

.episode-page-guide-steps {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 25px;
}

.episode-page-guide-step {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  align-items: start;
  gap: 18px;
}

.episode-page-guide-step-image {
  width: min(100%, 188px);
  height: auto;
  justify-self: center;
}

.episode-page-guide-step p {
  margin: 0;
  color: #545454;
  font-size: clamp(1.05rem, 1.35vw, 1.2rem);
  line-height: 1.34;
}

.episode-page-block {
  padding: 32px;
  background: #fff;
  border: 0;
  border-radius: 28px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.episode-page-block-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.episode-page-block-head .section-title {
  margin: 6px 0 0;
  color: #454442;
}

.episode-page-status {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  color: #8d7a47;
  background: #fde8af;
  border-radius: 10px;
  font-family: "PT Sans Caption", sans-serif;
  font-size: 1rem;
  font-weight: 400;
}

.episode-page-video .video-frame {
  border-radius: 24px;
}

.episode-page-login-card {
  padding: 24px;
  background: #fcf8c2;
  border-radius: 22px;
}

.episode-page-login-link {
  text-decoration: none;
}

.episode-page-login-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
}

.episode-page-locked-card {
  display: grid;
  gap: 22px;
}

.episode-page-note-locked {
  max-width: none;
  margin-top: 0;
}

.tb-home {
  background: #fff;
}

.tb-home-hero {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2560 / 841;
  background: #62bfe6;
}

.tb-home-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

.tb-home-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  height: 100%;
  width: min(1753px, calc(100% - 40px));
  gap: 32px;
  padding: 28px 0 26px;
}

.tb-home-hero-copy {
  width: 100%;
  max-width: 860px;
  margin-right: auto;
  padding: 12px 0 18px;
  color: #fff;
  text-align: center;
}

.tb-home-hero-copy h1 {
  max-width: 780px;
  margin: 0 auto 24px;
  color: #fff;
  font-family: "PT Sans Caption", sans-serif;
  font-size: clamp(1.8rem, 2.3vw, 2.8rem);
  font-weight: 500;
  line-height: 1.2;
  text-transform: uppercase;
}

.tb-home-hero-copy p {
  max-width: 760px;
  margin: 0 auto;
  color: #f4fcff;
  font-weight: 500;
  font-size: clamp(1.15rem, 1.3vw, 1.65rem);
  line-height: 1.65;
}

.tb-home-chip {
  display: block;
  margin-bottom: 28px;
  padding: 0;
  color: #fff;
  font-family: "PT Sans Caption", sans-serif;
  font-size: clamp(1.1rem, 1.6vw, 2rem);
  font-weight: 700;
  background: none;
  border-radius: 0;
}

.tb-home-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 28px;
}

.tb-home-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  color: #fff;
  background: #f78b23;
  border-radius: 10px;
  font-family: "PT Sans Caption", sans-serif;
  font-size: 1.15rem;
}

.tb-home-cta-alt {
  background: #f78b23;
}

@media (max-width: 1400px) {
  .tb-home-hero-grid {
    gap: 24px;
    padding: 22px 0;
  }

  .tb-home-hero-copy {
    max-width: 720px;
  }

  .tb-home-hero-copy h1 {
    max-width: 660px;
    margin-bottom: 18px;
    font-size: clamp(1.7rem, 2.1vw, 2.45rem);
    line-height: 1.16;
  }

  .tb-home-hero-copy p {
    max-width: 640px;
    font-size: clamp(1rem, 1.28vw, 1.35rem);
    line-height: 1.52;
  }

  .tb-home-chip {
    margin-bottom: 10px;
    font-size: clamp(1rem, 1.3vw, 1.45rem);
  }

  .tb-home-actions {
    gap: 1rem;
    margin-top: 22px;
  }
}

@media (max-width: 1100px) {
  .tb-home-hero-grid {
    gap: 18px;
    padding: 18px 0;
  }

  .tb-home-hero-copy {
    max-width: 580px;
  }

  .tb-home-hero-copy h1 {
    max-width: 540px;
    font-size: clamp(1.45rem, 1.95vw, 2rem);
    line-height: 1.14;
  }

  .tb-home-hero-copy p {
    max-width: 520px;
    font-size: clamp(0.95rem, 1.1vw, 1.1rem);
    line-height: 1.42;
  }

  .tb-home-chip {
    margin-bottom: 16px;
    font-size: clamp(0.95rem, 1.08vw, 1.15rem);
  }

  .tb-home-actions {
    gap: 0.75rem;
    margin-top: 18px;
  }

  .tb-home-cta {
    padding: 12px 16px;
    font-size: 1rem;
  }
}

.tb-home-hero-art {
  position: relative;
  width: 100%;
  margin-left: auto;
}

.tb-home-hero-slider {
  position: relative;
  width: min(100%, 1120px);
  aspect-ratio: 1095 / 586;
  overflow: visible;
}

.tb-home-hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

.tb-home-hero-slide.is-active {
  opacity: 1;
}

.tb-home-hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  background: rgb(0 0 0 / 0.3);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.tb-home-hero-slider:hover .tb-home-hero-arrow {
  opacity: 1;
  pointer-events: auto;
}

.tb-home-hero-arrow:hover {
  background: rgb(0 0 0 / 0.45);
}

.tb-home-hero-arrow-prev {
  left: 0;
  transform: translate(167%, 45%);
}

.tb-home-hero-arrow-next {
  right: 0;
  transform: translate(-220%, 45%);
}

.tb-home-hero-arrow-prev:hover {
  transform: translate(167%, 45%) scale(1.06);
}

.tb-home-hero-arrow-next:hover {
  transform: translate(-220%, 45%) scale(1.06);
}

.tb-home-journey {
  position: relative;
  overflow: hidden;
  padding: 22px 0 34px;
  background: #fff;
}

.tb-home-strip-inner {
  display: flex;
  justify-content: center;
  padding: 8px 0 60px;
}

.tb-home-strip-copy {
  text-align: center;
  max-width: 980px;
}

.tb-home-strip-copy h2 {
  margin: 0 0 14px;
  color: #37a8d1;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(2.1rem, 3vw, 3rem);
  font-weight: 500;
  line-height: 1.12;
}

.tb-home-strip-copy p {
  max-width: 1100px;
  margin: 0 auto;
  color: #5c5c5c;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.15rem, 1.75vw, 1.7rem);
  line-height: 1.38;
}

.tb-home-journey-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 24px;
  text-align: center;
  background: url("/images/journey-line.webp") center 94px / calc(100% - 246px) auto no-repeat;
}

.tb-home-journey-step {
  display: grid;
  justify-items: center;
  align-content: start;
  grid-template-rows: auto 150px auto 1fr;
}

.tb-home-feature-no {
  display: block;
  width: auto;
  height: 50px;
  margin-bottom: 8px;
}

.tb-home-journey-icon {
  width: min(100%, 118px);
  height: auto;
  margin-bottom: 14px;
  align-self: center;
}

.tb-home-journey-icon-screen {
  width: min(100%, 124px);
}

.tb-home-journey-icon-double {
  width: min(100%, 160px);
}

.tb-home-journey-step h3 {
  margin: 0 0 10px;
  color: #37a8d1;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.2rem, 2vw, 2rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.14;
}

.tb-home-journey-step p {
  max-width: 249px;
  margin: 0 auto;
  color: #646464;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(0.92rem, 1.15vw, 1.08rem);
  line-height: 1.35;
}

.tb-home-missions {
  position: relative;
  padding: 0 0 0;
}

.tb-home-missions-pattern {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: url("/images/missions-pattern-home.webp") center top / 100% auto repeat-y;
}

.tb-home-missions-edge {
  position: relative;
  z-index: 0;
  height: 110px;
  background-repeat: repeat-x;
  background-position: center;
  background-size: 100% 100%;
}

.tb-home-missions-edge-top {
  background-image: url("/images/missions-edge-top.webp");
  transform: scaleY(-1);
}

.tb-home-missions-edge-bottom {
  background-image: url("/images/missions-edge-bottom.webp");
  transform: scaleY(-1);
}

.tb-home-missions-body {
  position: relative;
}

.tb-home-missions-body::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #fcf8c2;
}

.tb-home-missions .container {
  position: relative;
  z-index: 2;
  padding-top: 34px;
  padding-bottom: 40px;
}

.tb-home-missions-head {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  margin-bottom: 80px;
  text-align: center;
}

.tb-home-missions-head h2 {
  margin: 0 0 8px;
  color: #36a3cf;
  font-family: "PT Sans Caption", sans-serif;
  font-size: 3rem;
  line-height: 1;
}

.tb-home-missions-head p {
  margin: 0;
  color: #6f7275;
  font-weight: 600;
  font-size: 21px;
  line-height: 1.55;
}

.tb-home-missions-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  margin-left: 70px;
  margin-right: 70px;
}

.tb-home-mission-card {
  position: relative;
  display: flex;
  flex-direction: column;
  margin-bottom: 41px;
  padding: 18px 51px 20px;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  overflow: visible;
}

.tb-home-mission-pill {
  display: inline-flex;
  width: fit-content;
  align-self: flex-start;
  margin-bottom: 14px;
  padding: 9px 26px;
  color: #fff;
  background: #ffb10a;
  border-radius: 10px;
  font-family: "PT Sans Caption", sans-serif;
  font-size: 1.25rem;
}

.tb-home-mission-card-featured,
.tb-home-mission-card-pill-image {
  padding-top: 64px;
}

.tb-home-mission-pill-image {
  position: absolute;
  top: -68px;
  left: -30px;
  z-index: 3;
  width: 224px;
  height: auto;
  pointer-events: none;
}

.tb-home-mission-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: transparent;
}

.tb-home-mission-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tb-home-mission-title {
  display: none;
  margin: 18px 0 10px;
  color: #454442;
  font-family: "PT Sans Caption", sans-serif;
  font-size: 1.05rem;
  line-height: 1.35;
  font-weight: 400;
}

.tb-home-mission-episode {
  color: #454442;
  font-weight: 400;
}

.tb-home-mission-name {
  color: #454442;
  font-size: 1.9rem;
  font-weight: 700;
}

.tb-home-mission-text {
  color: #454442;
  font-size: 17px;
  line-height: 1.55;
  margin-top: 18px;
  margin-bottom: 18px;
}

.tb-home-card-backpack {
  position: absolute;
  z-index: 2;
  width: 112px;
  height: auto;
  pointer-events: none;
}

.tb-home-card-backpack-left {
  left: -105px;
  bottom: 110px;
}

.tb-home-card-backpack-right {
  right: -54px;
  bottom: 48px;
}

.tb-home-card-backpack-middle-left {
  left: -94px;
  bottom: 160px;
}

.tb-home-card-backpack-middle-right {
  right: -104px;
  bottom: 190px;
  transform: scaleX(-1);
}

.tb-home-mission-note {
  display: inline-flex;
  width: fit-content;
  align-self: flex-start;
  margin: auto 0 10px;
  padding: 9px 14px;
  color: #8d7a47;
  background: #fde8af;
  border-radius: 10px;
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
}

.tb-home-mission-actions {
  display: flex;
  align-items: flex-start;
  min-height: 44px;
}

.tb-home-watch {
  display: inline-flex;
  width: auto;
  flex: 0 0 auto;
  align-self: flex-start;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: max-content;
  padding: 14px 22px;
  border: 0;
  color: #fff;
  background: #3494b6;
  border-radius: 999px;
  font-family: "PT Sans Caption", sans-serif;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.tb-home-watch-disabled,
.episode-soon-badge {
  color: #8d7a47;
  background: #faebbe;
  cursor: default;
}

.tb-home-cta:hover,
.tb-home-watch:hover {
  transform: scale(1.03);
}

@media (max-width: 1800px) {
  .tb-home-hero-copy h1 {
    max-width: 500px;
    font-size: clamp(2rem, 2.3vw, 3.8rem);
  }

  .tb-home-chip {
    padding: 10px 20px;
    font-size: 0.95rem;
  }

  .auth-layout {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.95fr);
    gap: 28px;
  }

  .auth-story-card {
    min-height: 400px;
    padding: 26px 24px 28px;
  }

  .auth-story-title-pill {
    margin-bottom: 34px;
    font-size: clamp(1.55rem, 2.6vw, 2.5rem);
  }

  .auth-story-copy {
    max-width: 100%;
  }

  .auth-story-copy p {
    font-size: clamp(1.2rem, 1.4vw, 1.8rem);
  }

  .auth-story-art {
    right: 18%;
    bottom: -68px;
    width: clamp(190px, 27vw, 387px);
  }

  .auth-story-card-register .auth-story-art {
    right: 1%;
    bottom: -28px;
    width: clamp(190px, 46vw, 638px);
  }

  .auth-story-title-pill {
    font-size: clamp(2rem, 3vw, 2rem);
  }

  .auth-box {
    padding: 24px 22px 28px;
  }

  .auth-field input,
  .auth-submit {
    min-height: 64px;
  }
}

@media (max-width: 920px) {
  main.container {
    padding-left: 0;
  }

  .hero,
  .split-grid,
  .reward-grid,
  .dashboard-grid,
  .episode-grid,
  .auth-shell,
  .footer-row,
  .header-row,
  .episode-page-hero,
  .tb-home-hero-grid,
  .tb-home-strip-inner,
  .tb-home-journey-grid,
  .tb-home-missions-head,
  .tb-home-missions-grid {
    grid-template-columns: 1fr;
  }

  .tb-home-journey-grid {
    background: none;
  }

  .footer-links {
    gap: 8px 14px;
  }

  .tb-home-missions-grid {
    margin-left: 0;
    margin-right: 0;
  }

  .auth-page {
    gap: 24px;
    padding: 22px 0 44px;
  }

  .auth-notice {
    padding: 14px 18px;
    border-radius: 24px;
    font-size: 0.98rem;
  }

  .auth-layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .auth-story-card,
  .auth-box {
    border-width: 4px;
    border-radius: 28px;
  }

  .auth-story-card {
    min-height: 0;
    padding: 22px 18px 35px;
  }

  .auth-story-title-pill {
    width: 100%;
    margin-bottom: 22px;
    padding: 14px 18px;
    font-size: clamp(1.45rem, 7vw, 2.2rem);
  }

  .auth-story-copy {
    max-width: none;
  }

  .auth-story-copy p {
    font-size: clamp(1.05rem, 4.9vw, 1.45rem);
    line-height: 1.5;
  }

  .auth-story-art {
    display: none;
  }

  .auth-box-title {
    font-size: clamp(1.6rem, 6.5vw, 2.2rem);
  }

  .auth-field span {
    font-size: 1.15rem;
  }

  .auth-field input,
  .auth-submit {
    min-height: 58px;
    padding: 16px 20px;
  }

  .auth-submit {
    font-size: 1.15rem;
  }

  .nav-links {
    display: none;
    grid-column: 1 / -1;
    gap: 14px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 22px;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.08);
  }

  .header-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
    position: relative;
    gap: 16px;
    padding: 12px 0;
  }

  .header-menu-toggle {
    display: inline-flex;
    justify-self: end;
  }

  .header-row.is-menu-open .header-menu-toggle span:nth-child(1) {
    transform: rotate(45deg);
  }

  .header-row.is-menu-open .header-menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .header-row.is-menu-open .header-menu-toggle span:nth-child(3) {
    transform: rotate(-45deg);
  }

  .header-row.is-menu-open .nav-links,
  .header-row.is-menu-open .header-actions {
    display: grid;
  }

  .nav-links a {
    color: #3494b6;
  }

  .brand-logo img {
    width: 118px;
  }

  .site-title {
    grid-column: 2 / 3;
    font-size: 1rem;
    white-space: normal;
  }

  .header-actions {
    display: none;
    grid-column: 1 / -1;
    justify-items: start;
    gap: 12px;
    padding: 16px 18px 0;
  }

  .header-actions form {
    width: 100%;
  }

  .header-actions .btn,
  .header-actions .btn-ghost,
  .header-actions .tag,
  .header-actions form button {
    width: 100%;
  }

  .footer-note {
    text-align: left;
  }

  .legal-page {
    padding: 22px 0 40px;
  }

  .legal-card {
    padding: 22px 18px;
    border-radius: 24px;
  }

  .episode-page {
    gap: 18px;
    padding: 20px 0 40px;
  }

  .adventure-progress-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .adventure-progress-shell {
    padding: 22px 18px 18px;
  }

  .adventure-progress-mascot {
    position: static;
    width: 154px;
    margin: 0 auto 12px;
  }

  .adventure-progress-card {
    min-height: auto;
    padding: 22px 20px 24px;
  }

  .adventure-progress-head {
    margin-bottom: 30px;
  }

  .adventure-progress-title {
    margin-bottom: 24px;
  }

  .adventure-progress-side {
    gap: 26px;
    padding-top: 26px;
  }

  .adventure-stat-medal {
    width: 92px;
  }

  .adventure-map-head {
    margin-bottom: 48px;
  }

  .adventure-map-head-icon {
    width: 150px;
  }

  .episode-page-hero {
    padding: 20px;
  }

  .episode-page-hero {
    gap: 22px;
    background-size: auto 520px;
  }

  .episode-page-kicker {
    font-size: 1.25rem;
  }

  .episode-page-title-image {
    width: min(100%, 360px);
  }

  .episode-page-description {
    font-size: 1.08rem;
  }

  .episode-page-note {
    padding: 18px 18px;
    font-size: 1rem;
  }

  .episode-page-guide {
    padding: 34px 22px 24px;
  }

  .episode-page-guide-bird {
    top: -62px;
    width: 92px;
  }

  .episode-page-guide .card-title {
    font-size: 2rem;
  }

  .episode-page-guide-step {
    grid-template-columns: 1fr;
    gap: 10px;
    text-align: center;
  }

  .admin-stats-grid,
  .admin-filters {
    grid-template-columns: 1fr;
  }

  .admin-filter-actions {
    display: grid;
  }

  .episode-page-guide-step-image {
    width: min(100%, 170px);
  }

  .episode-page-guide-step p {
    font-size: 1rem;
  }

  .episode-page-block {
    padding: 20px;
  }

  .episode-page-block-head {
    margin-bottom: 16px;
  }

  .quiz-grid-visual {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 20px;
  }

  .quiz-question-visual::before {
    width: min(100%, 360px);
    margin-bottom: -28px;
  }

  .quiz-question-body-visual {
    padding: 58px 16px 18px;
    border-radius: 26px;
  }

  .quiz-option-with-icon input + span {
    padding: 12px 16px;
  }

  .quiz-option-art {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .quiz-option-text {
    font-size: 0.95rem;
  }

  .episode-page-story .page-title {
    font-size: clamp(1.65rem, 7vw, 2.3rem);
  }

  .tb-home-hero-copy h1 {
    max-width: none;
  }

  .tb-home-hero {
    aspect-ratio: auto;
    background-position: center top;
    background-size: cover;
  }

  .tb-home-hero-copy {
    width: 100%;
    max-width: 100%;
    padding: 18px 0 22px;
  }

  .tb-home-chip {
    margin-bottom: 14px;
    font-size: clamp(1rem, 4.2vw, 1.3rem);
  }

  .tb-home-hero-copy h1 {
    margin-bottom: 16px;
    font-size: clamp(1.5rem, 7.2vw, 2.15rem);
    line-height: 1.12;
  }

  .tb-home-hero-copy p {
    max-width: 620px;
    font-size: clamp(0.98rem, 3.7vw, 1.15rem);
    line-height: 1.45;
  }

  .tb-home-hero-arrow {
    width: 52px;
    height: 52px;
    font-size: 34px;
  }

  .tb-home-hero-arrow-prev {
    left: 0;
  }

  .tb-home-hero-arrow-next {
    right: 0;
  }

  .tb-home-actions {
    gap: 0.75rem;
    margin-top: 18px;
  }

  .tb-home-strip-inner,
  .tb-home-strip-copy {
    text-align: center;
  }

  .tb-home-journey-track {
    display: none;
  }

  .tb-home-journey-step p {
    max-width: 420px;
  }

  .tb-home-mission-card h3 {
    font-size: 1.7rem;
  }

  .tb-home-mission-card-featured,
  .tb-home-mission-card-pill-image {
    padding-top: 52px;
    padding: 15px 15px 25px;
  }

  .tb-home-mission-pill-image {
    position: absolute;
    top: -51px;
    left: -12px;
    z-index: 3;
    width: 204px;
    height: auto;
    pointer-events: none;
  }

  .tb-home-card-backpack {
    width: 82px;
  }

  .tb-home-card-backpack-left {
    left: -34px;
    bottom: 72px;
  }

  .tb-home-card-backpack-right {
    right: -18px;
    bottom: 26px;
  }

  .tb-home-card-backpack-middle-left {
    left: -32px;
    bottom: 112px;
  }

  .tb-home-card-backpack-middle-right {
    right: -42px;
    bottom: 128px;
  }
}

@media (max-width: 1250px) and (min-width: 921px) {
  .tb-home-mission-card-featured,
  .tb-home-mission-card-pill-image {
    padding-top: 52px;
  }

  .tb-home-mission-pill-image {
    position: absolute;
    top: -54px;
    left: -4px;
    z-index: 3;
    width: 172px;
    height: auto;
    pointer-events: none;
  }
}

@media (max-width: 640px) {
  .adventure-progress-top {
    padding-top: 22px;
  }

  .adventure-welcome {
    gap: 12px;
    margin-bottom: 22px;
  }

  .adventure-welcome-icon {
    width: 58px;
    height: 58px;
  }

  .adventure-welcome-copy h2 {
    font-size: 1.55rem;
  }

  .adventure-welcome-copy p {
    font-size: 1.15rem;
  }

  .adventure-progress-shell,
  .adventure-stat-shell {
    border-radius: 34px;
  }

  .adventure-progress-head {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 24px;
  }

  .adventure-progress-chip,
  .adventure-progress-action {
    min-height: 48px;
    padding: 10px 18px;
    font-size: 0.95rem;
  }

  .adventure-progress-title {
    gap: 12px;
  }

  .adventure-progress-star {
    width: 38px;
    height: 38px;
  }

  .adventure-progress-title .page-title {
    font-size: 1.7rem;
  }

  .adventure-progress-copy {
    font-size: 1rem;
  }

  .adventure-stat-card {
    min-height: 116px;
  }

  .adventure-stat-card span {
    font-size: 1.05rem;
  }

  .adventure-stat-medal {
    width: 78px;
  }

  .adventure-map-head-icon {
    width: 118px;
  }

  .episode-page-hero {
    padding: 18px 16px 24px;
    border-radius: 30px;
    background-size: auto 420px;
  }

  .episode-page-topline {
    gap: 10px;
  }

  .episode-page-kicker {
    font-size: 1.05rem;
  }

  .episode-page-title-image {
    width: min(100%, 280px);
  }

  .episode-page-story .section-lead {
    font-size: 1.1rem;
  }

  .episode-page-description {
    font-size: 0.98rem;
  }

  .episode-page-note {
    padding: 16px 16px;
    border-radius: 18px;
    font-size: 0.95rem;
  }

  .episode-page-guide {
    padding: 28px 16px 20px;
    border-radius: 28px;
  }

  .episode-page-guide-bird {
    top: -46px;
    width: 72px;
  }

  .episode-page-guide .card-title {
    margin-bottom: 18px;
    font-size: 1.7rem;
  }

  .episode-page-guide-step-image {
    width: min(100%, 144px);
  }

  .episode-page-guide-step p {
    font-size: 0.95rem;
  }

  .quiz-grid-visual {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .quiz-question-visual::before {
    width: min(100%, 320px);
    margin-bottom: -22px;
  }

  .quiz-question-body-visual {
    padding: 48px 14px 16px;
    border-radius: 22px;
  }

  .quiz-option-with-icon input + span {
    gap: 10px;
    padding: 12px 14px;
  }

  .quiz-option-art {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .quiz-option-text {
    font-size: 0.92rem;
  }

  .quiz-form-visual > .tb-home-watch {
    min-width: 220px;
  }

  .tb-home-mission-card-featured,
  .tb-home-mission-card-pill-image {
    padding-top: 42px;
  }

  .tb-home-mission-pill-image {
    top: -40px;
    left: -4px;
    width: 133px;
  }
}

body,
body *:not(.material-icons):not(.material-symbols-outlined) {
  font-family: "Montserrat", sans-serif !important;
}
