:root {
  --red: #ff2026;
  --blue: #35acd7;
  --green: #3dbb4f;
  --yellow: #f8d348;
  --orange: #f59a23;
  --teal: #01a7a2;
  --ink: #25313b;
  --muted: #66717c;
  --paper: #fffdf5;
  --soft: #f3f4f6;
  --line: #d6d6d6;
  --shadow: 0 12px 0 rgba(0, 0, 0, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 136px;
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

a {
  color: inherit;
}

[id] {
  scroll-margin-top: 136px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px clamp(16px, 4vw, 48px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: clamp(260px, 28vw, 460px);
  max-height: 100px;
  object-fit: contain;
  object-position: left center;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.top-nav a,
.top-nav button,
.button {
  border: 0;
  border-radius: 9px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  min-height: 42px;
  padding: 10px 15px;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.16);
}

.top-nav a {
  background: #929292;
  font-size: 13px;
}

.top-nav button {
  background: #929292;
  font-size: 13px;
}

.top-nav .nav-cta,
.button.red {
  background: var(--red);
}

.top-nav .nav-icon {
  width: 44px;
  padding: 10px;
  background: var(--blue);
  font-size: 18px;
}

.top-nav #openScheduleCalendar {
  background: var(--orange);
  color: #fff;
}

.top-nav #openScheduleCalendar i {
  color: #fff;
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 44px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-direction: column;
  border: 0;
  border-radius: 9px;
  background: var(--red);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.16);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 4px;
  border-radius: 999px;
  background: #fff;
}

.button.blue {
  background: var(--blue);
}

.button.yellow {
  background: var(--yellow);
  color: #5f4600;
}

.button.green {
  background: var(--green);
}

.button.small {
  min-height: 36px;
  padding: 8px 12px;
}

.hero {
  display: block;
  padding: 0;
  background: #fff;
  margin-bottom: 45px;
}

.kicker {
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0 0 8px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(58px, 10vw, 128px);
  line-height: 0.9;
  margin-bottom: 16px;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1.02;
  margin-bottom: 12px;
}

h3 {
  font-size: 24px;
  line-height: 1.1;
  margin-bottom: 8px;
}

.hero-lede,
.section-heading p,
.competition-copy p,
.register-strip p {
  color: var(--muted);
  font-size: 20px;
}

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

.hero-art {
  position: relative;
  min-height: auto;
  border-radius: 0;
  overflow: hidden;
  background: #dff5ff;
}

.hero-picture,
.hero-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
}

.hero-image {
  aspect-ratio: 1672 / 941;
  object-fit: cover;
}

.hero-menu {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  width: min(1180px, calc(100% - 32px));
  margin: -36px auto 0;
  position: relative;
  z-index: 2;
}

.hero-menu-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 84px;
  padding: 18px;
  color: #fff;
  font-size: clamp(22px, 2.3vw, 32px);
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.18);
}

.hero-menu-item:first-child {
  border-radius: 14px 0 0 14px;
}

.hero-menu-item:nth-child(4) {
  border-radius: 0 14px 14px 0;
}

.hero-menu-item:last-child {
  grid-column: 1 / -1;
  margin-top: 10px;
  border-radius: 14px;
}

.hero-menu-item.blue {
  background: var(--blue);
}

.hero-menu-item.yellow {
  background: var(--yellow);
}

.hero-menu-item.green {
  background: var(--green);
}

.hero-menu-item.red {
  background: var(--red);
}

.hero-menu-item.orange {
  background: var(--orange);
}

.closure-band {
  position: relative;
  display: block;
  margin-top: 0;
  padding: 0;
  border-top: 6px solid var(--yellow);
  border-bottom: 6px solid var(--yellow);
  background: #fff7cc;
  overflow: hidden;
}

.closure-band > * {
  position: relative;
  z-index: 1;
}

.closure-band.is-enhanced .closure-intro {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.closure-band h2 {
  font-size: clamp(28px, 4vw, 44px);
}

.closure-band p:last-child {
  color: #6d5400;
  font-weight: 800;
  margin-bottom: 0;
}

.closure-list {
  min-width: 0;
  overflow: hidden;
}

.closure-slider {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: clamp(20px, 3vw, 34px) 0 clamp(24px, 3vw, 38px) clamp(16px, 5vw, 70px);
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  scrollbar-width: thin;
  scroll-behavior: smooth;
}

.closure-slider.is-dragging {
  cursor: grabbing;
}

.closure-track {
  display: flex;
  align-items: stretch;
  gap: clamp(16px, 2vw, 26px);
  width: max-content;
  padding-right: clamp(45px, 10vw, 150px);
}

.closure-card,
.closure-list > article {
  display: grid;
  grid-template-rows: auto 1fr;
  align-content: start;
  gap: 14px;
  flex: 0 0 clamp(280px, 32vw, 390px);
  width: clamp(280px, 32vw, 390px);
  min-height: 430px;
  border: 3px solid #f0c93d;
  border-radius: 16px;
  background: #fff;
  padding: clamp(12px, 1.7vw, 18px);
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.12);
}

.closure-card-icon {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border: 3px solid rgba(255, 39, 51, .2);
  border-radius: 22px;
  background: #fff1c4;
  color: var(--red);
  font-size: 2rem;
}

.closure-list img {
  pointer-events: none;
  user-drag: none;
  -webkit-user-drag: none;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border-radius: 10px;
  background: #120d2f;
  object-fit: cover;
}

.closure-intro-card {
  display: grid;
  align-content: center;
  flex: 0 0 clamp(300px, 38vw, 500px);
  width: clamp(300px, 38vw, 500px);
  padding: clamp(18px, 3vw, 36px);
}

.closure-intro-card h2 {
  max-width: 15ch;
  margin-bottom: 10px;
}

.closure-intro-card p:last-child {
  color: #6d5400;
  font-weight: 800;
}

.closure-card.is-today,
.closure-list > article.is-today {
  border-color: var(--red);
  background: #fff3f3;
}

.closure-card.is-today::before,
.closure-card.is-this-week::before,
.closure-list > article.is-today::before,
.closure-list > article.is-this-week::before {
  display: inline-flex;
  width: max-content;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  padding: 5px 9px;
  text-transform: uppercase;
}

.closure-card.is-today::before,
.closure-list > article.is-today::before {
  content: "Today";
  background: var(--red);
}

.closure-card.is-this-week::before,
.closure-list > article.is-this-week::before {
  content: "This week";
  background: var(--orange);
}

.closure-list strong,
.closure-list span {
  display: block;
}

.closure-list strong {
  color: var(--red);
  font-size: 18px;
  line-height: 1.05;
  text-transform: uppercase;
}

.closure-list span {
  color: var(--ink);
  font-weight: 800;
}

.closure-list .closure-card-icon {
  display: grid;
  color: var(--red);
}

.closure-card > span,
.closure-list > article > span {
  min-width: 0;
  overflow-wrap: anywhere;
}


.video-showcase {
  display: grid;
  gap: 8px;
  padding: clamp(18px, 3vw, 34px) clamp(12px, 3vw, 44px);
  background: #fff;
  overflow: visible;
}

.video-carousel {
  display: flex;
  gap: clamp(12px, 1.8vw, 24px);
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  overflow-x: auto;
  padding: 10px 4px 18px;
  scroll-snap-type: x proximity;
}

.video-thumb {
  position: relative;
  flex: 0 0 auto;
  width: clamp(118px, 9.2vw, 168px);
  aspect-ratio: 1;
  padding: 0;
  border: 8px solid #e7656b;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.8), 0 5px 0 rgba(0, 0, 0, 0.14);
  cursor: pointer;
  overflow: hidden;
  scroll-snap-align: center;
}

@media (min-width: 1180px) {
  .video-carousel {
    justify-content: space-between;
    overflow-x: visible;
  }
}

.video-thumb.is-active {
  border-color: var(--red);
}

.video-thumb video,
.video-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0);
  opacity: 0;
  transition: background 160ms ease, opacity 160ms ease;
}

.video-overlay span {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 32, 38, 0.92);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.16);
}

.video-overlay span::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  margin: 12px 0 0 17px;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid #fff;
}

.video-thumb:hover .video-overlay,
.video-thumb:focus-visible .video-overlay {
  background: rgba(255, 255, 255, 0.56);
  opacity: 1;
}

.carousel-play-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  margin: 4px auto 0;
  border: 3px solid #f3c7ca;
  border-radius: 999px;
  background: #fff7f7;
  color: #ac2f37;
  cursor: pointer;
  font-weight: 900;
  padding: 10px 18px;
  text-transform: uppercase;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.12);
}

.carousel-play-button span {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--red);
}

.carousel-play-button span::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  margin: 8px 0 0 11px;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid #fff;
}

.video-lightbox {
  width: min(940px, calc(100vw - 28px));
  border: 0;
  border-radius: 16px;
  background: #151515;
  color: #fff;
  padding: 0;
  box-shadow: 0 16px 0 rgba(0, 0, 0, 0.25);
}

.video-lightbox::backdrop {
  background: rgba(0, 0, 0, 0.72);
}

.video-lightbox-inner {
  position: relative;
  padding: 46px 18px 18px;
}

.video-lightbox h2 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.video-lightbox video {
  display: block;
  width: 100%;
  max-height: min(72vh, 720px);
  border-radius: 10px;
  background: #000;
}

.video-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 44px;
  height: 54px;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 32, 38, 0.94);
  color: #fff;
  cursor: pointer;
  font-size: 38px;
  font-weight: 900;
  line-height: 1;
  transform: translateY(-50%);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.24);
}

.video-prev {
  left: 24px;
}

.video-next {
  right: 24px;
}

.video-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.24);
}

.info-modal {
  width: min(920px, calc(100vw - 28px));
  border: 0;
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  padding: 0;
  box-shadow: 0 16px 0 rgba(0, 0, 0, 0.18);
}

.info-modal::backdrop {
  background: rgba(0, 0, 0, 0.62);
}

.schedule-calendar-modal {
  width: min(1120px, calc(100vw - 28px));
  max-height: min(900px, calc(100vh - 28px));
  border: 0;
  border-radius: 14px;
  padding: 0;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 24px 0 rgba(0, 0, 0, 0.2);
}

.schedule-calendar-modal::backdrop {
  background: rgba(0, 0, 0, 0.62);
}

.class-preview-modal {
  width: min(860px, calc(100vw - 28px));
  max-height: min(820px, calc(100vh - 28px));
  border: 0;
  border-radius: 14px;
  padding: 0;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 24px 0 rgba(0, 0, 0, 0.2);
}

.class-preview-modal::backdrop {
  background: rgba(0, 0, 0, 0.62);
}

.class-preview-modal[open] {
  animation: elementModalFade .18s ease both;
}

.class-preview-modal[open] form {
  animation: elementModalSlideUp .28s cubic-bezier(.2, .86, .28, 1) both;
}

.class-preview-modal form {
  position: relative;
  max-height: min(820px, calc(100vh - 28px));
  overflow: auto;
  padding: clamp(18px, 3vw, 28px);
}

.class-preview-hero {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) 132px;
  gap: 18px;
  align-items: center;
  padding-right: 46px;
}

.class-preview-teacher,
.class-preview-logo {
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 3px solid rgba(53, 172, 215, .28);
  border-radius: 14px;
  background: #edf9ff;
}

.class-preview-teacher {
  width: 132px;
  height: 132px;
}

.class-preview-teacher img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.class-preview-logo {
  min-height: 132px;
  padding: 12px;
  color: var(--blue);
  text-align: center;
}

.class-preview-logo.has-image {
  padding: 0;
}

.class-preview-logo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 132px;
  object-fit: cover;
}

.class-preview-logo i {
  font-size: 34px;
}

.class-preview-logo span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.class-preview-hero h2 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: .95;
}

.class-preview-hero p:not(.kicker),
.class-preview-note p {
  margin: 0;
  color: var(--muted);
  font-weight: 850;
}

.class-preview-details {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0 14px;
}

.class-preview-details article {
  display: grid;
  gap: 6px;
  border: 2px solid #d4d9df;
  border-radius: 8px;
  padding: 12px;
  background: #f8fbfd;
}

.class-preview-details article > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: #e6f7fe;
  color: var(--blue);
}

.class-preview-details strong,
.class-preview-details small {
  display: block;
}

.class-preview-details small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.class-preview-note {
  border: 2px solid #ffd1d6;
  border-radius: 8px;
  padding: 12px;
  background: #fff6f8;
}

.class-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.schedule-calendar-modal form {
  display: grid;
  gap: 16px;
  max-height: min(900px, calc(100vh - 28px));
  overflow: auto;
  padding: 22px;
}

.schedule-calendar-modal header,
.schedule-calendar-nav,
.schedule-calendar-modal footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.schedule-calendar-modal header.schedule-calendar-band {
  align-items: flex-start;
  margin: -22px -22px 2px;
  padding: 22px;
  border-bottom: 3px solid rgba(84, 184, 208, 0.35);
  background:
    linear-gradient(135deg, rgba(84, 184, 208, 0.18), rgba(255, 247, 204, 0.96)),
    repeating-linear-gradient(90deg, rgba(84, 184, 208, 0.08) 0 1px, transparent 1px 76px);
}

.schedule-calendar-modal header.schedule-calendar-band h2 {
  max-width: 760px;
  margin: 0;
}

.schedule-calendar-modal header.schedule-calendar-band p:last-child {
  max-width: 720px;
  margin-bottom: 0;
  color: #425066;
}

.schedule-calendar-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.schedule-calendar-filters[hidden] {
  display: none;
}

.schedule-calendar-filters label,
.calendar-filter-block {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.calendar-filter-block > span {
  color: var(--muted);
}

.schedule-calendar-filters select {
  width: 100%;
  min-height: 44px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 900;
  padding: 8px 34px 8px 10px;
}

.calendar-choice-row,
.teacher-choice-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.calendar-choice-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  color: var(--ink);
  background: #fff;
  font-weight: 950;
  box-shadow: 0 4px 0 rgba(0, 0, 0, .12);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.calendar-choice-button:hover {
  border-color: var(--blue);
  background: #f1fbff;
}

.calendar-choice-button.is-active {
  color: #fff;
}

.calendar-choice-button.blue.is-active {
  border-color: var(--blue);
  background: var(--blue);
}

.calendar-choice-button.red.is-active {
  border-color: var(--red);
  background: var(--red);
}

.calendar-choice-button.yellow.is-active {
  border-color: #f3bc2f;
  background: #f3bc2f;
}

.teacher-filter-block {
  grid-column: 1 / -1;
}

.teacher-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.teacher-choice-card {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 76px;
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  color: var(--ink);
  background: #fff;
  text-align: left;
  box-shadow: 0 4px 0 rgba(0, 0, 0, .12);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.teacher-choice-card:hover,
.teacher-choice-card.is-active {
  border-color: var(--red);
  background: #fff7f8;
}

.teacher-choice-avatar {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  overflow: hidden;
  border: 3px solid #f2cad6;
  border-radius: 50%;
  background: #f8fbfd;
  color: var(--blue);
  font-size: 22px;
}

.teacher-choice-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.teacher-choice-card strong,
.teacher-choice-card small,
.teacher-choice-card em {
  display: block;
}

.teacher-choice-card strong {
  font-size: 15px;
  font-style: normal;
  line-height: 1.1;
}

.teacher-choice-card small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.teacher-choice-card em {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 5px;
  font-style: normal;
}

.teacher-choice-card b {
  border-radius: 999px;
  padding: 3px 7px;
  background: #eaf8fb;
  color: #157188;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.schedule-calendar-nav {
  justify-content: center;
  position: sticky;
  top: 0;
  z-index: 12;
  margin-inline: -22px;
  padding: 26px;
  border-block: 8px solid var(--blue);
  background: white;
}

.public-calendar-month {
  position: relative;
  padding-bottom: 18px;
}

.public-calendar-month + .public-calendar-month {
  margin-top: 6px;
}

.calendar-nav-spacer {
  width: 44px;
  height: 44px;
}

.calendar-loading {
  display: grid;
  justify-items: center;
  gap: 10px;
  min-height: 260px;
  padding: 64px 24px;
  color: var(--ink);
  text-align: center;
}

.calendar-loading::before {
  content: "";
  display: block;
  box-sizing: border-box;
  width: 58px;
  height: 58px;
  border: 7px solid #dff5ff;
  border-top-color: #35acd7;
  border-radius: 50%;
  animation: calendar-loading-spin 0.8s linear infinite;
}

.calendar-loading-spinner {
  display: none;
}

.calendar-loading strong {
  font-size: 20px;
}

.calendar-loading small {
  color: var(--muted);
  font-weight: 800;
}

@keyframes calendar-loading-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .calendar-loading::before {
    animation-duration: 2.4s;
  }
}

.schedule-calendar-nav button {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-size: 18px;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.18);
}

.schedule-calendar-nav strong {
  min-width: 220px;
  text-align: center;
  font-size: 24px;
}

.calendar-weekdays,
.calendar-month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-weekdays span {
  padding: 8px;
  color: var(--red);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.public-calendar-day {
  min-height: 150px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 8px;
}

.public-calendar-day.is-outside {
  background: #f6f7f8;
}

.public-calendar-day.is-closed {
  background: repeating-linear-gradient(-45deg, #f1f3f5, #f1f3f5 10px, #e5e8ec 10px, #e5e8ec 20px);
  color: #7a828a;
}

.public-calendar-day header {
  align-items: flex-start;
  min-height: 28px;
}

.public-calendar-day header span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #7a828a;
  color: #fff;
  font-size: 11px;
  font-weight: 950;
  padding: 4px 7px;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
}

.public-class-chip {
  display: grid;
  gap: 1px;
  margin-top: 6px;
  padding: 8px;
  border-radius: 8px;
  background: #e8f8fc;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.14);
}

.public-class-chip.is-private {
  background: #e9f7ee;
}

.public-class-chip.is-full {
  border: 2px solid var(--gold);
  background: #fff4d8;
}

.public-class-chip strong,
.public-class-chip span,
.public-class-chip small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-class-chip strong {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  color: var(--red);
  font-size: 13px;
}

.public-class-chip em {
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 10px;
  font-style: normal;
  padding: 3px 6px;
  text-transform: uppercase;
}

.public-class-chip.is-full em {
  background: var(--gold);
  color: #6d5400;
}

.public-class-chip span,
.public-class-chip small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.info-modal form {
  display: grid;
  gap: 18px;
  padding: clamp(20px, 4vw, 34px);
}

.info-modal header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.info-modal h2 {
  font-size: clamp(30px, 4vw, 48px);
}

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

.modal-grid article {
  border: 3px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  padding: 16px;
}

.modal-icon {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: 22px;
  margin-bottom: 12px;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.14);
}

.modal-icon.red {
  background: var(--red);
}

.modal-icon.blue {
  background: var(--blue);
}

.modal-icon.green {
  background: var(--green);
}

.modal-icon.yellow {
  background: var(--yellow);
  color: #624600;
}

.modal-grid strong {
  display: block;
  color: var(--red);
  font-size: 20px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.modal-grid p {
  color: var(--ink);
  font-weight: 800;
  margin: 0;
}

.modal-close {
  display: grid;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.2);
}

.cookie-notice {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: grid;
  gap: 14px;
  width: min(390px, calc(100vw - 36px));
  border: 3px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 16px;
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.18);
}

.cookie-notice[hidden] {
  display: none;
}

.cookie-notice strong {
  display: block;
  color: var(--red);
  font-size: 18px;
  line-height: 1.05;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.cookie-notice p {
  color: var(--ink);
  font-weight: 800;
  margin: 0;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.cookie-actions button {
  border: 0;
  border-radius: 9px;
  color: #fff;
  cursor: pointer;
  font-weight: 900;
  min-height: 40px;
  padding: 9px 13px;
  text-transform: uppercase;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.16);
}

.cookie-actions button:first-child {
  background: #7a828a;
}

.cookie-actions button:last-child {
  background: var(--green);
}

.section {
  padding: clamp(38px, 6vw, 78px) clamp(16px, 5vw, 70px);
}

.section-heading {
  max-width: 880px;
  margin-bottom: 28px;
}

.section-heading.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.story-band {
  background: var(--soft);
}

.feature-grid,
.kingdom-grid,
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card,
.plan-card,
.snail-stage,
.reward-board article {
  border: 3px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 22px;
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.11);
}

a.plan-card {
  color: var(--ink);
  text-decoration: none;
}

a.plan-card:hover,
a.plan-card:focus-visible {
  transform: translateY(-2px);
  outline: 3px solid rgba(53, 172, 215, 0.28);
}

.feature-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-weight: 900;
  margin-bottom: 14px;
}

.feature-icon.green {
  background: var(--green);
}

.feature-icon.yellow {
  background: var(--yellow);
  color: #684b00;
}

.feature-icon.blue {
  background: var(--blue);
}

.curriculum-section {
  background: #fff;
}

.quest-folder-story {
  width: min(1180px, 100%);
  margin: 0 auto 34px;
  padding: clamp(18px, 3vw, 30px);
  border: 3px solid #253243;
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(84, 184, 208, .16), transparent 18%, transparent 82%, rgba(255, 31, 42, .14)),
    #fffdf2;
  box-shadow: var(--shadow);
}

.quest-map-intro,
.quest-map-finale {
  width: min(680px, 100%);
  margin: 0 auto;
  padding: 16px 18px;
  border: 3px solid #ffcf42;
  border-radius: 16px;
  background: #fff;
  text-align: center;
}

.quest-map-intro span,
.quest-map-finale span {
  display: block;
  color: var(--red);
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.quest-map-intro strong,
.quest-map-finale strong,
.quest-path h3 {
  display: block;
  font-family: "Trebuchet MS", "Comic Sans MS", system-ui, sans-serif;
  letter-spacing: .02em;
}

.quest-map-intro strong,
.quest-map-finale strong {
  color: #253243;
  font-size: clamp(1.35rem, 3vw, 2.15rem);
  line-height: 1;
  margin-top: 3px;
}

.quest-map-intro p,
.quest-map-finale p,
.quest-path p {
  color: #5d6876;
  font-weight: 800;
  line-height: 1.35;
  margin: 8px 0 0;
}

.quest-map-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.quest-path {
  position: relative;
  min-height: 100%;
  padding: 18px 16px 16px;
  border: 3px solid currentColor;
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
}

.quest-path::before {
  content: "";
  position: absolute;
  inset: 0;
  background: currentColor;
  opacity: .12;
  pointer-events: none;
}

.quest-path-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 10px;
  border-radius: 14px;
  background: currentColor;
  color: #fff;
  font-family: "Trebuchet MS", "Comic Sans MS", system-ui, sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  box-shadow: 0 5px 0 rgba(0, 0, 0, .13);
}

.quest-path h3,
.quest-path p,
.quest-path ol {
  position: relative;
  z-index: 1;
}

.quest-path h3 {
  color: currentColor;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  margin: 0;
}

.quest-path ol {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}

.quest-path li {
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  color: #253243;
  font-size: .9rem;
  font-weight: 900;
  line-height: 1.1;
  padding: 9px 11px;
}

.quest-path.water {
  color: #35acd7;
}

.quest-path.earth {
  color: #2fbb57;
}

.quest-path.electric {
  color: #f4bd31;
}

.quest-path.fire {
  color: #ff4d5f;
}

.snail-stage {
  align-items: center;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  margin: 0 auto 28px;
  max-width: 880px;
  padding: 20px;
  border: 3px solid #25bf5a;
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(37, 191, 90, .08), rgba(255, 255, 255, .96)),
    #fff;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform .18s ease, outline-color .18s ease, border-color .18s ease;
}

.snail-stage:hover,
.snail-stage:focus-visible {
  transform: translateY(-2px);
  outline: 4px solid rgba(37, 191, 90, .18);
  border-color: #129b42;
}

.snail-stage img {
  width: 100%;
  aspect-ratio: 1;
  border: 4px solid #fff;
  border-radius: 18px;
  background: #fff;
  object-fit: contain;
  box-shadow: 0 7px 0 rgba(18, 155, 66, .18);
}

.snail-stage h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
}

.snail-stage p:not(.stage-label) {
  max-width: 560px;
  color: var(--muted);
  font-weight: 900;
}

.final-stage-card {
  display: grid;
  grid-template-columns: minmax(120px, 180px) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  width: min(760px, 100%);
  margin: 28px auto 0;
  padding: 20px;
  border: 3px solid #263142;
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(37, 49, 59, .06), rgba(255, 32, 38, .08)),
    #fff;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform .18s ease, outline-color .18s ease;
}

.final-stage-card:hover,
.final-stage-card:focus-visible {
  transform: translateY(-2px);
  outline: 4px solid rgba(255, 32, 38, .18);
}

.final-stage-card img {
  width: 100%;
  aspect-ratio: 1;
  border: 4px solid #fff;
  border-radius: 18px;
  background: #fff;
  object-fit: contain;
  box-shadow: 0 7px 0 rgba(0, 0, 0, .12);
}

.final-stage-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
}

.final-stage-card p:not(.stage-label) {
  max-width: 560px;
  color: var(--muted);
  font-weight: 900;
}

.stage-explore-note {
  display: inline-flex;
  width: fit-content;
  margin-top: 10px;
  border: 2px solid rgba(53, 183, 212, .32);
  border-radius: 999px;
  padding: 7px 12px;
  background: #e8f8ff;
  color: #0a6f83;
  font-weight: 900;
  text-transform: uppercase;
}

.stage-label,
.kingdom p {
  color: var(--red);
  font-weight: 900;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.oamie-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.oamie-row span {
  border-radius: 999px;
  background: #e6f7fe;
  color: #09546a;
  font-weight: 800;
  padding: 7px 10px;
}

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

.kingdom {
  min-height: 100%;
  border-radius: 18px;
  color: #233047;
  overflow: hidden;
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: filter .18s ease, outline-color .18s ease;
}

.kingdom:hover,
.kingdom:focus-visible {
  filter: brightness(1.04) saturate(1.05);
  outline: 4px solid rgba(53, 172, 215, .32);
  outline-offset: 4px;
}

.kingdom img {
  display: block;
  width: min(100%, 210px);
  margin: 0 auto 12px;
  filter: drop-shadow(0 7px 0 rgba(0, 0, 0, 0.16));
}

.kingdom img.element-symbol {
  width: min(100%, 178px);
  aspect-ratio: 1;
  border-radius: 28px;
  object-fit: contain;
  filter: drop-shadow(0 8px 0 rgba(0, 0, 0, 0.12));
}

.kingdom p,
.kingdom span {
  color: #233047;
}

.kingdom span {
  display: block;
  font-weight: 800;
}

.water {
  background: #dff6ff;
  border: 3px solid rgba(53, 172, 215, .32);
}

.earth {
  background: #e3f8df;
  border: 3px solid rgba(43, 171, 80, .28);
}

.electric {
  background: #fff3ba;
  border: 3px solid rgba(245, 197, 66, .42);
  color: #382a00;
}

.electric p,
.electric span {
  color: #382a00;
}

.fire {
  background: #ffe0e0;
  border: 3px solid rgba(255, 42, 50, .32);
}

.element-kingdom-modal {
  width: min(980px, calc(100vw - 28px));
  max-height: min(900px, calc(100vh - 28px));
  border: 0;
  border-radius: 22px 22px 14px 14px;
  padding: 0;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 22px 0 rgba(0, 0, 0, .2);
}

.element-kingdom-modal::backdrop {
  background: rgba(0, 0, 0, .62);
}

.element-kingdom-modal[open] {
  animation: elementModalFade .18s ease both;
}

.element-kingdom-modal[open] form {
  animation: elementModalSlideUp .28s cubic-bezier(.2, .86, .28, 1) both;
}

.element-kingdom-modal form {
  position: relative;
  display: grid;
  gap: 16px;
  max-height: min(900px, calc(100vh - 28px));
  overflow: auto;
  padding: clamp(18px, 3vw, 28px);
}

.element-kingdom-modal .modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 4;
}

#elementKingdomHeader {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding-right: 48px;
}

#elementKingdomHeader img {
  width: 104px;
  height: 104px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 5px 0 rgba(0, 0, 0, .14);
}

#elementKingdomHeader h2 {
  font-size: clamp(32px, 5vw, 58px);
}

#elementKingdomHeader p:not(.kicker) {
  max-width: 680px;
  color: var(--muted);
  font-weight: 800;
}

.snail-character-header {
  display: block;
  padding-right: 48px;
}

.snail-character-header h2 {
  font-size: clamp(32px, 5vw, 58px);
}

.snail-character-header p:not(.kicker) {
  max-width: 760px;
  color: var(--muted);
  font-weight: 800;
}

.element-kingdom-list {
  display: grid;
  gap: 12px;
}

.snail-character-list {
  gap: 18px;
}

.element-kingdom-card {
  display: grid;
  gap: 0;
  align-items: stretch;
  overflow: hidden;
  border: 3px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 0 rgba(0, 0, 0, .1);
}

.element-kingdom-banner {
  display: grid;
  align-content: end;
  min-height: clamp(260px, 32vw, 360px);
  padding: clamp(18px, 3vw, 30px);
  border-radius: 10px 10px 0 0;
  background-color: #1f2a44;
  background-position: center;
  background-size: cover;
  color: #fff;
}

.element-kingdom-banner .kicker {
  color: #fff;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .24);
}

.element-kingdom-banner h3 {
  margin: 0;
  max-width: 820px;
  color: #fff;
  font-size: clamp(30px, 4vw, 48px);
  text-shadow: 0 3px 0 rgba(0, 0, 0, .18);
}

.element-kingdom-banner span {
  max-width: 760px;
  color: rgba(255, 255, 255, .92);
  font-weight: 900;
  line-height: 1.3;
}

.element-kingdom-body {
  display: grid;
  gap: 16px;
  align-items: start;
  padding: 0 18px 18px;
}

.element-award-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
  margin: -18px 0 4px;
  position: relative;
  z-index: 1;
}

.element-award-chip {
  border-radius: 999px;
  padding: 7px 10px;
  background: #e6f7fe;
  color: #09546a;
  font-size: .82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.element-award-chip {
  background: #fff6d7;
  color: #6a4d00;
}

.element-oamie-row,
.element-bad-guy-row {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.element-oamie-row {
  grid-column: 2;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.element-oamie-wrap {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(132px, 190px) minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}

.element-kingdom-badge {
  grid-column: 1;
  grid-row: 1;
  display: block;
  width: min(100%, 180px);
  aspect-ratio: 1;
  max-height: 180px;
  border: 4px solid #fff;
  background: #fff;
  object-fit: contain;
}

.final-gateway-card {
  border-color: #263142;
}

.element-character-card,
.element-bad-guy-card {
  border: 2px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, #fff, #f8fbfd);
  box-shadow: 0 3px 0 rgba(0, 0, 0, .1);
  color: inherit;
  cursor: pointer;
  font: inherit;
  transition: transform .16s ease, outline-color .16s ease;
}

.element-character-card:hover,
.element-character-card:focus-visible,
.element-bad-guy-card:hover,
.element-bad-guy-card:focus-visible {
  transform: translateY(-2px);
  outline: 3px solid rgba(53, 172, 215, .24);
}

.element-character-card {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 10px 8px;
  text-align: center;
  animation: elementCharacterPop .28s ease both;
}

.element-character-card:nth-child(2) {
  animation-delay: .05s;
}

.element-character-card:nth-child(3) {
  animation-delay: .1s;
}

.element-character-card img {
  width: 76px;
  height: 76px;
  object-fit: contain;
  filter: drop-shadow(0 4px 0 rgba(0, 0, 0, .1));
}

.element-character-card strong {
  color: var(--ink);
  font-size: .92rem;
}

.element-character-card span,
.element-bad-guy-card span {
  border-radius: 999px;
  padding: 5px 8px;
  background: #e6f7fe;
  color: #09546a;
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.element-bad-guy-card {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: min(100%, 560px);
  margin: 0 auto;
  padding: 10px;
  border-color: var(--red);
  background: #fff7f7;
}

.element-bad-guy-card img {
  width: 88px;
  height: 88px;
  object-fit: contain;
}

.element-bad-guy-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.2rem;
}

.element-market-preview {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  width: min(100%, 680px);
  margin: 4px auto 0;
  padding: 12px 16px 12px 12px;
  border: 3px solid #7acb91;
  border-radius: 14px;
  background: #f2fff5;
  color: var(--ink);
  box-shadow: 0 4px 0 rgba(0, 0, 0, .1);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.element-market-preview:hover,
.element-market-preview:focus-visible {
  transform: translateY(-2px);
  outline: 3px solid rgba(38, 177, 83, .2);
}

.element-market-owner {
  position: relative;
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  min-width: 88px;
  min-height: 88px;
  aspect-ratio: 1;
  border: 4px solid #fff;
  border-radius: 999px;
  overflow: visible;
  background: #e6f7fe;
  box-shadow: 0 5px 0 rgba(0, 0, 0, .13);
  font-size: 1.8rem;
}

.element-market-owner > img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  clip-path: circle(50% at 50% 50%);
  object-fit: cover;
  object-position: center top;
  transform: scale(var(--owner-scale, 1));
  transform-origin: center 28%;
}

.element-market-expression {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: #fff;
  background-image: var(--expression-sheet);
  background-repeat: no-repeat;
  background-position: var(--expression-position, center);
  background-size: var(--expression-size, cover);
  clip-path: circle(50% at 50% 50%);
}

.element-market-owner em {
  position: absolute;
  right: -5px;
  bottom: -5px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 3px solid #fff;
  border-radius: 999px;
  background: #8f1f28;
  color: #fff;
  font-style: normal;
  font-size: .85rem;
}

.element-market-copy {
  min-width: 0;
}

.element-market-copy small {
  display: block;
  color: #16833c;
  font-weight: 900;
  text-transform: uppercase;
}

.element-market-copy strong {
  display: block;
  font-size: 1.25rem;
}

.element-market-copy span {
  color: var(--muted);
  font-weight: 800;
}

.element-market-preview > b {
  color: #8f1f28;
  font-size: .82rem;
  text-transform: uppercase;
}

.element-market-detail-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 280px);
  align-items: end;
  min-height: 520px;
  overflow: hidden;
  border: 3px solid #b9d7c1;
  border-radius: 18px;
  padding: clamp(22px, 4vw, 42px);
  background-color: #eff8f1;
  background-image: linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.9) 40%, rgba(255,255,255,.08) 75%), var(--market-hero);
  background-position: center;
  background-size: cover;
}

.element-market-detail-copy {
  position: relative;
  z-index: 1;
  max-width: 510px;
}

.element-market-browse-link {
  width: fit-content;
  margin-top: 18px;
}

.element-market-detail-copy h3 {
  margin: 0;
  font-size: clamp(38px, 6vw, 68px);
  line-height: .95;
}

.element-market-detail-copy > p:not(.kicker) {
  color: var(--ink);
  font-weight: 850;
}

.element-market-detail-copy > span {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  border-radius: 999px;
  padding: 9px 12px;
  background: #fff;
  color: #8f1f28;
  font-weight: 900;
}

.element-market-detail-owner {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  align-self: end;
  gap: 8px;
}

.element-market-detail-owner img {
  width: min(100%, 250px);
  aspect-ratio: 1;
  border: 6px solid #fff;
  border-radius: 999px;
  clip-path: circle(50% at 50% 50%);
  background: #fff;
  object-fit: cover;
  object-position: center top;
  transform: scale(var(--owner-scale, 1));
  transform-origin: center 28%;
  box-shadow: 0 10px 0 rgba(0, 0, 0, .16);
}

.element-market-detail-owner .element-market-expression {
  width: min(100%, 250px);
  aspect-ratio: 1;
  height: auto;
  border: 6px solid #fff;
  box-shadow: 0 10px 0 rgba(0, 0, 0, .16);
}

.element-market-detail-owner strong {
  border-radius: 999px;
  padding: 8px 14px;
  background: #fff;
  color: var(--ink);
}

@media (max-width: 680px) {
  .element-market-preview {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .element-market-owner {
    width: 68px;
    height: 68px;
  }

  .element-market-preview > b {
    grid-column: 2;
  }

  .element-market-detail-card {
    grid-template-columns: 1fr;
    min-height: 600px;
    align-content: end;
    background-image: linear-gradient(0deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.88) 47%, rgba(255,255,255,.04) 78%), var(--market-hero);
  }

  .element-market-detail-owner {
    grid-row: 1;
    justify-self: end;
  }

  .element-market-detail-owner img {
    width: 150px;
  }
}

.element-detail-view {
  display: grid;
  gap: 14px;
}

.element-detail-back {
  justify-self: start;
  border: 0;
  border-radius: 999px;
  background: #e6f7fe;
  color: #09546a;
  box-shadow: 0 4px 0 rgba(0, 0, 0, .12);
  cursor: pointer;
  font-weight: 900;
  padding: 10px 14px;
}

.element-detail-card {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  gap: clamp(16px, 3vw, 28px);
  align-items: center;
  border: 3px solid #bfe8f2;
  border-radius: 18px;
  background: linear-gradient(180deg, #f7fdff, #fff);
  padding: clamp(16px, 3vw, 24px);
}

.element-detail-card.is-bad-guy {
  border-color: rgba(255, 32, 38, .42);
  background: linear-gradient(180deg, #fff7f7, #fff);
}

.element-detail-art {
  display: grid;
  place-items: center;
  min-height: 220px;
  border: 3px solid #d7e6ef;
  border-radius: 18px;
  background: #fff;
}

.element-detail-art img {
  width: min(100%, 220px);
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 8px 0 rgba(0, 0, 0, .12));
}

.element-detail-art span {
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  border-radius: 999px;
  background: #e6f7fe;
  color: #09546a;
  font-size: 2.4rem;
}

.element-detail-copy h3 {
  margin: 0;
  font-size: clamp(32px, 5vw, 56px);
  line-height: .95;
}

.element-detail-copy > strong {
  display: inline-block;
  margin: 6px 0 10px;
  color: var(--muted);
  font-size: 1.05rem;
  text-transform: uppercase;
}

.element-detail-copy p {
  color: var(--muted);
  font-weight: 850;
}

.element-detail-story {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  margin: 14px 0;
  padding: 12px;
  border-radius: 16px;
  background: #fff8dc;
}

.element-detail-story > span {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: #fff;
  color: #7a5400;
}

.element-detail-story h4 {
  margin: 0;
}

.element-detail-story p {
  margin: 2px 0 0;
}

.element-detail-awards {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.element-sample-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.element-sample-slot {
  display: grid;
  place-items: center;
  min-height: 150px;
  border: 3px dashed #cfdbe5;
  border-radius: 16px;
  background: #f8fbfd;
  color: var(--muted);
  text-align: center;
}

.element-sample-slot.has-sample {
  border-style: solid;
  background: #fff;
}

.element-sample-slot img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 12px;
}

.element-sample-slot span {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 8px;
  border-radius: 999px;
  background: #e6f7fe;
  color: #09546a;
}

.element-kingdom-modal.water {
  border-top: 10px solid var(--blue);
}

.element-kingdom-modal.earth {
  border-top: 10px solid var(--green);
}

.element-kingdom-modal.electric {
  border-top: 10px solid var(--yellow);
}

.element-kingdom-modal.fire {
  border-top: 10px solid var(--red);
}

@keyframes elementModalFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes elementRevealOpen {
  from {
    opacity: 0;
    transform: translateY(-8px);
    max-height: 0;
  }
  to {
    opacity: 1;
    transform: translateY(0);
    max-height: 260px;
  }
}

@keyframes elementCharacterPop {
  from {
    opacity: 0;
    transform: translateY(8px) scale(.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes elementModalSlideUp {
  from {
    opacity: 0;
    transform: translateY(34px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .class-preview-hero,
  .class-preview-details {
    grid-template-columns: 1fr;
  }

  .class-preview-hero {
    padding-right: 0;
  }

  .class-preview-teacher,
  .class-preview-logo {
    width: min(100%, 240px);
    justify-self: center;
  }

  #elementKingdomHeader,
  .element-kingdom-body {
    grid-template-columns: 1fr;
  }

  #elementKingdomHeader img {
    width: 92px;
    height: 92px;
  }

  .element-kingdom-banner {
    min-height: 220px;
    padding: 16px;
  }

  .element-oamie-wrap {
    grid-template-columns: 1fr;
  }

  .element-kingdom-badge {
    display: none;
  }

  .element-award-row {
    display: none;
  }

  .element-oamie-row {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .element-bad-guy-card {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .element-bad-guy-card img {
    width: 72px;
    height: 72px;
  }

  .element-detail-card,
  .element-detail-story,
  .element-sample-grid {
    grid-template-columns: 1fr;
  }

  .element-detail-art {
    min-height: 180px;
  }

  .element-detail-art img {
    width: min(100%, 180px);
  }
}

.artwork-section {
  background: #fff7cc;
}

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

.artwork-card {
  border: 3px solid #f0c93d;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.12);
}

.artwork-card.is-pinned {
  border-color: var(--red);
}

.artwork-card a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.artwork-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1.05;
  object-fit: cover;
}

.artwork-card div {
  padding: 14px;
}

.artwork-chip {
  display: inline-flex;
  border-radius: 999px;
  background: #e6f7fe;
  color: #09546a;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 8px;
  padding: 5px 9px;
  text-transform: uppercase;
}

.artwork-card.is-pinned .artwork-chip {
  background: var(--red);
  color: #fff;
}

.artwork-card h3 {
  font-size: 20px;
}

.artwork-card p {
  color: var(--muted);
  font-weight: 900;
  margin: 0;
}

.artwork-register-cta {
  display: flex;
  justify-content: center;
  margin-top: clamp(22px, 4vw, 34px);
}

.artwork-placeholder {
  display: grid;
  min-height: 180px;
  place-items: center;
  color: var(--red);
  font-size: 42px;
}

.competitions-section {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  gap: 28px;
  align-items: center;
  background: var(--teal);
  color: #fff;
}

.competitions-section .kicker,
.competitions-section p {
  color: #fff;
}

.reward-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.reward-board article {
  border-color: rgba(255, 255, 255, 0.65);
  color: var(--ink);
}

.reward-board strong,
.reward-board span {
  display: block;
}

.reward-board strong {
  font-size: 24px;
}

.reward-board span {
  color: var(--muted);
  font-weight: 800;
}

.competition-board {
  grid-column: 1 / -1;
  display: grid;
  gap: 18px;
}

.competition-board h3 {
  color: #fff;
}

.competition-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.competition-card {
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.72);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.16);
}

.competition-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1.2;
  object-fit: cover;
}

.competition-card div {
  padding: 14px;
}

.competition-card span {
  display: inline-flex;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 8px;
  padding: 5px 9px;
  text-transform: uppercase;
}

.competition-card.is-archived span {
  background: #7a828a;
}

.competition-card h4 {
  font-size: 20px;
  line-height: 1.05;
  margin: 0 0 8px;
}

.competition-card p {
  color: var(--muted);
  font-weight: 800;
}

.competition-page-hero {
  background: var(--teal);
  color: #fff;
  padding-top: clamp(96px, 10vw, 140px);
}

.competition-page-hero .section-heading p,
.competition-page-hero .kicker {
  color: #fff;
}

.competition-page-hero .reward-board {
  max-width: 900px;
  margin: 28px auto 0;
}

.archived-competition-board {
  background: var(--soft-blue);
}

.plans-section {
  background: var(--paper);
}

.age-price-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 0 auto 24px;
}

.age-price-tabs button {
  border: 0;
  border-radius: 999px;
  background: #8d8d8d;
  color: #fff;
  cursor: pointer;
  font-size: 16px;
  font-weight: 900;
  min-height: 44px;
  padding: 10px 18px;
  text-transform: uppercase;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.16);
}

.age-price-tabs button.is-active {
  background: var(--red);
}

.price-note {
  width: min(760px, 100%);
  margin: -10px auto 22px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 900;
  text-align: center;
}

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

.plan-grid.is-private-pricing {
  grid-template-columns: repeat(2, minmax(280px, 380px));
  justify-content: center;
}

.plan-card[hidden] {
  display: none;
}

.private-plan-card {
  border-color: var(--blue);
}

.plan-card.featured {
  border-color: var(--red);
}

.plan-price {
  display: block;
  color: var(--red);
  font-size: 28px;
  line-height: 1.05;
  margin: 6px 0 12px;
}

.plan-meta {
  display: block;
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
  margin: -5px 0 12px;
  text-transform: uppercase;
}

.locations-section {
  background: #fff;
}

.location-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 960px;
  margin: 0 auto;
}

.location-card {
  border: 3px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  overflow: hidden;
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.11);
}

.location-card-body {
  padding: 22px;
}

.location-map {
  display: block;
  width: 100%;
  height: 240px;
  border: 0;
  border-bottom: 3px solid var(--line);
}

.location-business-info {
  display: grid;
  gap: 11px;
  margin: 18px 0;
}

.location-business-info div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px;
}

.location-business-info dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.location-business-info dt i {
  width: 18px;
  color: var(--blue);
}

.location-business-info dd {
  margin: 0;
}

.location-business-info a {
  color: var(--ink);
  font-weight: 800;
}

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

.location-icon {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 22px;
  margin-bottom: 12px;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.14);
}

.register-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: #fff;
}

.register-strip div {
  max-width: 760px;
}

.register-strip .registration-primary-button {
  border-radius: 14px;
  flex-shrink: 0;
  font-size: 20px;
  min-height: 66px;
  padding: 18px 34px;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.16);
}

.site-footer {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 26px 16px;
  background: #252525;
}

.site-footer a {
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 980px) {
  .competitions-section {
    grid-template-columns: 1fr;
  }

  .closure-slide,
  .closure-card,
  .closure-list > article {
    grid-template-columns: 1fr;
  }

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

  .hero-menu-item:first-child,
  .hero-menu-item:nth-child(4) {
    border-radius: 0;
  }

  .hero-menu-item:nth-child(1) {
    border-radius: 14px 0 0 0;
  }

  .hero-menu-item:nth-child(2) {
    border-radius: 0 14px 0 0;
  }

  .feature-grid,
  .quest-map-columns,
  .kingdom-grid,
  .plan-grid,
  .plan-grid.is-private-pricing {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 680px) {
  .site-header {
    align-items: center;
    flex-direction: row;
    gap: 12px;
    padding: 10px 14px;
  }

  .register-strip {
    align-items: stretch;
    flex-direction: column;
  }

  .brand-logo {
    width: min(62vw, 230px);
    max-height: 46px;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .top-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 12px 14px 16px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 0 rgba(0, 0, 0, 0.08);
  }

  .site-header.is-menu-open .top-nav {
    display: grid;
  }

  .top-nav a,
  .top-nav button {
    width: 100%;
  }

  .schedule-calendar-filters {
    grid-template-columns: 1fr;
  }

  .calendar-weekdays,
  .calendar-month-grid {
    grid-template-columns: 1fr;
  }

  .calendar-weekdays {
    display: none;
  }

  .public-calendar-day {
    min-height: 96px;
  }

  .hero {
    padding-top: 0;
  }

  .hero-image {
    aspect-ratio: 852 / 1846;
    min-height: 72vh;
  }

  .register-strip .button {
    width: 100%;
  }

  .hero-menu {
    width: 100%;
    grid-template-columns: 1fr;
    margin: 0;
  }

  .hero-menu-item,
  .hero-menu-item:first-child,
  .hero-menu-item:nth-child(2),
  .hero-menu-item:nth-child(4),
  .hero-menu-item:last-child {
    min-height: 58px;
    margin-top: 0;
    border-radius: 0;
    font-size: 22px;
  }

  .cookie-notice {
    right: 10px;
    bottom: 10px;
    width: calc(100vw - 20px);
  }

  .cookie-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

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

  .video-nav {
    top: auto;
    bottom: 28px;
    transform: none;
  }

  .video-prev {
    left: 28px;
  }

  .video-next {
    right: 28px;
  }

  .snail-stage,
  .final-stage-card,
  .feature-grid,
  .quest-map-columns,
  .kingdom-grid,
  .plan-grid,
  .plan-grid.is-private-pricing,
  .location-grid,
  .artwork-grid,
  .competition-card-grid,
  .reward-board {
    grid-template-columns: 1fr;
  }

  .snail-stage img {
    max-width: 220px;
    margin: 0 auto;
  }

  .final-stage-card {
    text-align: center;
  }

  .final-stage-card img {
    width: min(100%, 220px);
    margin: 0 auto;
  }
}

@media (max-width: 430px) {
  h1 {
    font-size: clamp(46px, 15vw, 64px);
  }
}

.registration-modal {
  width: min(1240px, calc(100vw - 16px));
  height: calc(100dvh - 16px);
  max-width: none;
  max-height: none;
  overflow: hidden;
  border: 3px solid var(--line);
  border-radius: 10px;
  padding: 0;
  background: #fff;
  box-shadow: 0 18px 48px rgba(20, 31, 51, 0.28);
}

.registration-modal::backdrop {
  background: rgba(20, 31, 51, 0.72);
}

.registration-modal > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  border-bottom: 2px solid var(--line);
  padding: 12px 18px;
  background: #fff;
}

.registration-modal > header h2,
.registration-modal > header p {
  margin: 0;
}

.registration-modal .modal-close {
  position: static;
  flex: 0 0 auto;
}

.registration-modal iframe {
  display: block;
  width: 100%;
  height: calc(100% - 60px);
  border: 0;
  background: #f7fbfd;
}

body.has-registration-modal {
  overflow: hidden;
}

@media (max-width: 680px) {
  .registration-modal {
    width: 100vw;
    height: 100dvh;
    border: 0;
    border-radius: 0;
  }
}
