:root {
  --ink: #17324a;
  --ink-soft: #526c7d;
  --blue: #2f78cc;
  --blue-dark: #1c568e;
  --green: #31916d;
  --green-dark: #216849;
  --purple: #7452bf;
  --gold: #e5a82d;
  --red: #cb5260;
  --cream: #fffaf0;
  --surface: #ffffff;
  --line: #d9e5e7;
  --shadow: 0 24px 70px rgb(38 78 91 / 14%);
  --shadow-small: 0 12px 32px rgb(38 78 91 / 13%);
  --radius-large: 34px;
  --radius-medium: 22px;
  --content-width: 1180px;
  color: var(--ink);
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  font-synthesis: none;
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 96px;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: #f7fbfa;
}

body::before {
  position: fixed;
  z-index: -2;
  inset: 0;
  background-image: radial-gradient(circle at center, rgb(47 120 204 / 6%) 1px, transparent 1.5px);
  background-size: 28px 28px;
  content: "";
  pointer-events: none;
}

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

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

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:not(:disabled),
a[href] {
  cursor: pointer;
}

:focus-visible {
  outline: 4px solid rgb(47 120 204 / 38%);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 11px 16px;
  border-radius: 12px;
  color: #fff;
  background: var(--blue-dark);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 18px;
  right: 24px;
  left: 24px;
  display: flex;
  width: min(calc(100% - 48px), var(--content-width));
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto;
  padding: 10px 14px 10px 18px;
  border: 1px solid rgb(255 255 255 / 88%);
  border-radius: 22px;
  background: rgb(255 255 255 / 78%);
  box-shadow: 0 15px 38px rgb(42 76 89 / 11%);
  backdrop-filter: blur(18px);
  transition: background-color 200ms ease, box-shadow 200ms ease;
}

.site-header.is-scrolled {
  background: rgb(255 255 255 / 95%);
  box-shadow: 0 18px 46px rgb(42 76 89 / 17%);
}

.brand {
  display: inline-flex;
  min-height: 44px;
  min-width: 0;
  align-items: center;
  gap: 11px;
}

.brand > svg {
  width: 40px;
  flex: 0 0 auto;
  fill: #e7f4ff;
  stroke: var(--blue-dark);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.brand span {
  display: grid;
  line-height: 1.05;
}

.brand strong {
  font-size: 1rem;
}

.brand small {
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.site-navigation {
  display: flex;
  align-items: center;
  gap: 3px;
}

.site-navigation a {
  min-height: 44px;
  padding: 12px 13px;
  border-radius: 13px;
  color: #405f70;
  font-size: 0.9rem;
  font-weight: 750;
  transition: color 180ms ease, background-color 180ms ease;
}

.site-navigation a:hover,
.site-navigation a:focus-visible,
.site-navigation a.is-current {
  color: var(--blue-dark);
  background: #eaf5ff;
}

.site-navigation a.is-current {
  box-shadow: inset 0 -3px 0 var(--blue);
}

.menu-button {
  display: none;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 14px;
  background: #eaf5ff;
}

.menu-button span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: var(--blue-dark);
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-button[aria-expanded="true"] span:first-child {
  transform: translateY(7px) rotate(45deg);
}

.menu-button[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-button[aria-expanded="true"] span:last-child {
  transform: translateY(-7px) rotate(-45deg);
}

.map-hero {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
  padding: 138px max(24px, calc((100% - var(--content-width)) / 2)) 72px;
  background:
    radial-gradient(circle at 85% 17%, rgb(255 255 255 / 96%) 0 6%, transparent 18%),
    linear-gradient(180deg, #d8f1ff 0%, #eefaff 46%, #e7f3db 46%, #b9daa8 100%);
}

.map-hero::before,
.map-hero::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.map-hero::before {
  right: -5%;
  bottom: 0;
  width: 52%;
  height: 44%;
  background: #9bc888;
  clip-path: polygon(0 100%, 11% 49%, 24% 65%, 39% 25%, 57% 62%, 70% 35%, 85% 69%, 100% 44%, 100% 100%);
  opacity: 0.75;
}

.map-hero::after {
  bottom: 0;
  left: -7%;
  width: 61%;
  height: 34%;
  border-radius: 50% 55% 0 0;
  background: #a9d495;
  transform: rotate(4deg);
}

.map-clouds {
  position: absolute;
  top: 13%;
  right: 4%;
  width: 170px;
  height: 65px;
  border-radius: 999px;
  background: rgb(255 255 255 / 76%);
  box-shadow:
    -60px 14px 0 -5px rgb(255 255 255 / 68%),
    58px 17px 0 -12px rgb(255 255 255 / 62%),
    -20px -22px 0 -12px rgb(255 255 255 / 76%);
}

.hero-copy,
.journey-status,
.adventure-map {
  position: relative;
  z-index: 2;
}

.hero-copy {
  width: min(690px, 100%);
}

.eyebrow,
.section-kicker,
.work-label {
  margin: 0 0 10px;
  color: var(--blue-dark);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.hero-copy h1 {
  max-width: 650px;
  margin: 0;
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-copy h1 span {
  display: block;
}

.hero-copy h1 .hero-name {
  color: var(--green-dark);
}

.hero-copy > p:not(.eyebrow) {
  max-width: 660px;
  margin: 22px 0 0;
  color: #3d6273;
  font-size: 1.05rem;
  line-height: 1.85;
}

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

.primary-button,
.secondary-button,
.outline-button,
.card-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 850;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.primary-button,
.card-button {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--green));
  box-shadow: 0 12px 25px rgb(47 120 204 / 24%);
}

.secondary-button,
.outline-button {
  border: 1px solid rgb(47 120 204 / 28%);
  color: var(--blue-dark);
  background: rgb(255 255 255 / 82%);
}

.primary-button:hover,
.secondary-button:hover,
.outline-button:hover,
.card-button:hover {
  transform: translateY(-2px);
}

.primary-button:active,
.secondary-button:active,
.outline-button:active,
.card-button:active {
  transform: translateY(0) scale(0.98);
}

.primary-button svg,
.outline-button svg,
.card-button svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.journey-status {
  display: grid;
  width: min(420px, 100%);
  gap: 9px;
  margin-top: 34px;
  padding: 18px 20px;
  border: 1px solid rgb(255 255 255 / 85%);
  border-radius: 20px;
  background: rgb(255 255 255 / 72%);
  box-shadow: var(--shadow-small);
  backdrop-filter: blur(12px);
}

.journey-status > div:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  color: #49687a;
  font-size: 0.9rem;
  font-weight: 750;
}

.journey-status strong {
  color: var(--green-dark);
  font-size: 1.2rem;
}

.journey-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #dcebdd;
}

.journey-track span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--green), var(--gold));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 260ms ease-out;
}

.journey-status p {
  margin: 0;
  color: #4e6773;
  font-size: 0.85rem;
  line-height: 1.5;
}

.adventure-map {
  width: min(1080px, 100%);
  height: 490px;
  margin: 50px auto 0;
  border: 2px solid rgb(255 255 255 / 78%);
  border-radius: 44px;
  background:
    radial-gradient(circle at 74% 28%, rgb(199 178 235 / 82%) 0 12%, transparent 12.5%),
    radial-gradient(circle at 25% 31%, rgb(140 208 235 / 78%) 0 14%, transparent 14.5%),
    radial-gradient(circle at 47% 78%, rgb(245 218 144 / 72%) 0 12%, transparent 12.5%),
    linear-gradient(145deg, rgb(235 250 235 / 88%), rgb(222 245 255 / 86%) 55%, rgb(244 235 255 / 84%));
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.route-line {
  position: absolute;
  inset: 5% 4%;
  width: 92%;
  height: 90%;
  overflow: visible;
  fill: none;
  stroke: #fff;
  stroke-dasharray: 3 17;
  stroke-linecap: round;
  stroke-width: 8;
  filter: drop-shadow(0 2px 1px rgb(148 106 31 / 35%));
}

.route-line path {
  vector-effect: non-scaling-stroke;
}

.map-stop {
  position: absolute;
  display: grid;
  justify-items: center;
  gap: 8px;
  transform: translate(-50%, -50%);
}

.stop-campus { top: 79%; left: 8%; }
.stop-mountain { top: 36%; left: 23%; }
.stop-music { top: 68%; left: 46%; }
.stop-academy { top: 50%; left: 63%; }
.stop-game { top: 29%; left: 78%; }
.stop-words { top: 15%; left: 91%; }

.stop-icon {
  position: relative;
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  border: 5px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
  box-shadow: 0 12px 22px rgb(42 72 88 / 22%);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.stop-mountain .stop-icon,
.stop-academy .stop-icon { background: var(--purple); }
.stop-music .stop-icon { background: #d98a3c; }
.stop-game .stop-icon { background: var(--red); }
.stop-words .stop-icon { background: var(--green); }

.stop-icon svg {
  width: 36px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.3;
}

.map-stop:hover .stop-icon,
.map-stop:focus-visible .stop-icon {
  transform: translateY(-5px) scale(1.06);
  box-shadow: 0 18px 30px rgb(42 72 88 / 28%);
}

.map-stop.is-visited .stop-icon::after {
  position: absolute;
  top: -4px;
  right: -4px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: var(--green-dark);
  content: "✓";
  font-size: 0.75rem;
  font-weight: 900;
}

.stop-copy {
  display: grid;
  min-width: 106px;
  padding: 7px 11px;
  border: 1px solid rgb(255 255 255 / 84%);
  border-radius: 13px;
  background: rgb(255 255 255 / 90%);
  box-shadow: 0 7px 17px rgb(42 72 88 / 13%);
  text-align: center;
}

.stop-copy small {
  color: var(--ink-soft);
  font-size: 0.64rem;
  font-weight: 750;
}

.stop-copy strong {
  margin-top: 2px;
  font-size: 0.86rem;
}

.explorer-avatar {
  position: absolute;
  bottom: 6%;
  left: 16%;
  display: grid;
  justify-items: center;
}

.explorer-avatar img {
  width: 76px;
  height: 76px;
  border: 5px solid #fff;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-small);
}

.explorer-avatar span {
  margin-top: -5px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #fff;
  background: var(--green-dark);
  font-size: 0.7rem;
  font-weight: 850;
}

.destination-section {
  position: relative;
  padding: 110px max(24px, calc((100% - var(--content-width)) / 2));
}

.destination-number {
  position: absolute;
  top: 48px;
  right: max(24px, calc((100% - var(--content-width)) / 2));
  color: rgb(47 120 204 / 9%);
  font-size: clamp(6rem, 15vw, 12rem);
  font-weight: 950;
  line-height: 1;
  pointer-events: none;
}

.section-heading {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin-bottom: 48px;
}

.section-heading h2,
.poetry-intro h2 {
  margin: 0;
  font-size: clamp(2rem, 4.8vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.section-heading > p:last-child,
.poetry-intro > p:last-of-type {
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.75;
}

.campus-section {
  background: linear-gradient(145deg, #faffff, #edf9f6);
}

.about-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 58px;
}

.profile-card {
  margin: 0;
  overflow: hidden;
  border: 8px solid #fff;
  border-radius: 32px;
  background: #fff;
  box-shadow: var(--shadow);
  transform: rotate(-2deg);
}

.profile-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 21px;
  object-fit: cover;
}

.profile-card figcaption {
  display: grid;
  gap: 3px;
  padding: 18px 18px 14px;
}

.profile-card figcaption span {
  color: var(--blue-dark);
  font-size: 0.78rem;
  font-weight: 850;
}

.about-copy h3 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.about-copy > p {
  margin: 18px 0 0;
  color: #486474;
  font-size: 1rem;
  line-height: 1.9;
}

.trait-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  margin-top: 30px;
}

.trait-grid article {
  display: grid;
  gap: 6px;
  min-height: 120px;
  align-content: center;
  padding: 18px;
  border: 1px solid #d9e9e8;
  border-radius: 20px;
  background: rgb(255 255 255 / 86%);
  box-shadow: 0 9px 24px rgb(42 76 89 / 7%);
}

.trait-grid strong {
  color: var(--green-dark);
  font-size: 1.2rem;
}

.trait-grid span {
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.55;
}

.poetry-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: 72px;
  overflow: hidden;
  color: #f8efe0;
  background:
    radial-gradient(circle at 80% 18%, #fceec1 0 4%, transparent 4.2%),
    linear-gradient(145deg, #102b46, #173f5c 64%, #265b65);
}

.poetry-section .destination-number {
  color: rgb(255 255 255 / 5%);
}

.mountain-layers {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 36%;
  background: #31576a;
  clip-path: polygon(0 100%, 0 73%, 9% 51%, 20% 74%, 35% 35%, 49% 72%, 62% 43%, 75% 78%, 91% 38%, 100% 61%, 100% 100%);
  opacity: 0.68;
}

.poetry-intro,
.poem-scroll {
  position: relative;
  z-index: 1;
}

.poetry-intro .section-kicker {
  color: #eac66d;
}

.poetry-intro > p:last-of-type {
  color: #c8d8dc;
}

.poetry-intro figure {
  display: grid;
  grid-template-columns: 84px 1fr;
  align-items: center;
  gap: 15px;
  max-width: 270px;
  margin: 32px 0 0;
  padding: 12px;
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 18px;
  background: rgb(255 255 255 / 8%);
}

.poetry-intro figure img {
  width: 84px;
  height: 84px;
  border-radius: 15px;
  object-fit: cover;
}

.poetry-intro figcaption {
  color: #f3d894;
  font-family: "Songti SC", "STSong", serif;
  font-size: 1.15rem;
  font-weight: 700;
}

.poem-scroll {
  padding: 52px 54px;
  border: 1px solid #d1bd8a;
  border-radius: 18px;
  color: #273b48;
  background:
    linear-gradient(90deg, rgb(160 122 50 / 10%) 1px, transparent 1px),
    #f5efdf;
  background-size: 34px 100%;
  box-shadow: 0 28px 70px rgb(4 18 30 / 28%);
}

.poem-scroll::before,
.poem-scroll::after {
  position: absolute;
  top: 20px;
  bottom: 20px;
  width: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, #8f6b2c, #e2c985, #8f6b2c);
  content: "";
}

.poem-scroll::before { left: 15px; }
.poem-scroll::after { right: 15px; }

.poem-scroll h3 {
  margin: 0 0 28px;
  color: #5a4227;
  font-family: "Songti SC", "STSong", serif;
  font-size: 1.7rem;
  text-align: center;
}

.poem-scroll p {
  margin: 13px 0;
  font-family: "Songti SC", "STSong", serif;
  font-size: clamp(1rem, 2vw, 1.23rem);
  line-height: 1.75;
  text-align: center;
}

.poem-scroll footer {
  margin-top: 28px;
  color: #8a5a42;
  font-weight: 750;
  text-align: right;
}

.works-section {
  background: linear-gradient(180deg, #fbfffe, #f5faf1);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 24px;
}

.music-island,
.comic-academy {
  position: relative;
  min-height: 530px;
  overflow: hidden;
  border-radius: var(--radius-large);
  box-shadow: var(--shadow);
}

.music-island {
  display: grid;
  align-content: stretch;
  min-height: 760px;
  padding: 34px;
  color: #173d43;
  background:
    radial-gradient(circle at 84% 15%, #fff5c7 0 4%, transparent 4.3%),
    radial-gradient(circle at 12% 26%, rgb(255 255 255 / 25%) 0 2px, transparent 2.5px),
    linear-gradient(155deg, #f9d878 0 42%, #ef8c62 42% 72%, #d85d4a 72% 100%);
  background-size: auto, 22px 22px, auto;
}

.music-island::before {
  position: absolute;
  right: -15%;
  bottom: -11%;
  left: -15%;
  height: 35%;
  border-radius: 50% 50% 0 0;
  background: #397f78;
  content: "";
  transform: rotate(4deg);
}

.music-island-content {
  position: relative;
  z-index: 1;
}

.music-island .work-label {
  color: #305e5e;
}

.music-island h3,
.comic-academy h3 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.comic-academy h3 {
  font-size: clamp(1.9rem, 3.2vw, 2.7rem);
}

.music-island p:not(.work-label),
.comic-academy p:not(.work-label) {
  max-width: 440px;
  margin: 14px 0 20px;
  line-height: 1.75;
}

.music-player {
  position: relative;
  width: 100%;
  margin-top: 24px;
  padding: 20px 22px 24px;
  border: 3px solid #173d43;
  border-radius: 30px 30px 22px 22px;
  background:
    radial-gradient(circle at 14px 14px, #766d59 0 2px, #d2c29d 2.5px 5px, transparent 5.5px),
    radial-gradient(circle at calc(100% - 14px) 14px, #766d59 0 2px, #d2c29d 2.5px 5px, transparent 5.5px),
    #f0e2ba;
  box-shadow: 8px 10px 0 #173d43, 0 28px 48px rgb(86 48 37 / 28%);
}

.player-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 1px 10px 14px;
  border-bottom: 2px solid #c4b487;
  color: #36565a;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.player-topbar strong {
  color: #d8573d;
  font-size: 0.85rem;
}

.play-mode {
  flex: 0 0 auto;
  padding: 6px 10px;
  border: 1px solid #173d43;
  border-radius: 5px;
  color: #f8e9bd;
  background: #397f78;
  box-shadow: 2px 2px 0 #173d43;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0;
}

.now-playing {
  display: grid;
  grid-template-columns: minmax(190px, 1.2fr) minmax(120px, 0.8fr);
  align-items: center;
  gap: 18px;
  padding: 18px 4px 16px;
}

.cassette-tape {
  position: relative;
  min-height: 132px;
  padding: 15px 18px;
  border: 3px solid #173d43;
  border-radius: 14px;
  background: #e96749;
  box-shadow: inset 0 -8px 0 rgb(116 47 38 / 18%), 4px 5px 0 #c6b686;
  transform: rotate(-1deg);
}

.cassette-tape::before,
.cassette-tape::after {
  position: absolute;
  bottom: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #173d43;
  content: "";
}

.cassette-tape::before {
  left: 10px;
}

.cassette-tape::after {
  right: 10px;
}

.cassette-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  color: #173d43;
  font-size: 0.63rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.cassette-label strong {
  padding: 2px 6px;
  border: 1px solid #173d43;
  border-radius: 3px;
  background: #f5d576;
}

.cassette-window {
  display: grid;
  min-height: 72px;
  grid-template-columns: 54px minmax(22px, 1fr) 54px;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 3px solid #173d43;
  border-radius: 35px;
  background: #f8efcf;
  box-shadow: inset 0 4px 0 rgb(74 62 45 / 12%);
}

.cassette-reel {
  position: relative;
  width: 50px;
  height: 50px;
  border: 3px solid #173d43;
  border-radius: 50%;
  background: repeating-conic-gradient(#f8efcf 0 13deg, #397f78 14deg 28deg);
}

.cassette-reel::after {
  position: absolute;
  inset: 15px;
  border: 2px solid #173d43;
  border-radius: 50%;
  background: #f2cb63;
  content: "";
}

.cassette-reel i {
  position: absolute;
  z-index: 1;
  inset: 21px;
  border-radius: 50%;
  background: #173d43;
}

.music-player.is-playing .cassette-reel {
  animation: cassette-spin 2.8s linear infinite;
}

.tape-line {
  height: 14px;
  border-top: 3px solid #173d43;
  border-bottom: 3px solid #173d43;
  background: #77453a;
}

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

.track-details {
  display: grid;
  min-width: 0;
  gap: 7px;
  padding: 16px 14px;
  border: 2px solid #173d43;
  border-radius: 9px;
  color: #bce8d6;
  background: #244c4d;
  box-shadow: inset 0 0 0 4px #193c3f;
}

.track-details span,
.track-details small {
  color: #abd5c3;
  font-size: 0.7rem;
}

.playlist-heading span {
  color: #305e5e;
  font-size: 0.72rem;
  font-weight: 750;
}

.track-details strong {
  overflow: hidden;
  color: #fff0b8;
  font-size: 1.05rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.progress-area {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  border: 2px solid #173d43;
  border-radius: 8px;
  color: #173d43;
  background: #d5cf9c;
  box-shadow: inset 0 3px 0 rgb(92 82 53 / 14%);
  font-size: 0.72rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.progress-area span:last-child {
  text-align: right;
}

.progress-area input {
  appearance: none;
  width: 100%;
  height: 44px;
  margin: 0;
  background: transparent;
  cursor: pointer;
}

.progress-area input::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: #7e876b;
}

.progress-area input::-webkit-slider-thumb {
  width: 20px;
  height: 20px;
  margin-top: -7px;
  appearance: none;
  border: 2px solid #173d43;
  border-radius: 50%;
  background: #d8573d;
  box-shadow: 0 2px 0 #173d43;
}

.progress-area input::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: #7e876b;
}

.progress-area input::-moz-range-progress {
  height: 6px;
  border-radius: 999px;
  background: #d8573d;
}

.progress-area input::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 2px solid #173d43;
  border-radius: 50%;
  background: #d8573d;
  box-shadow: 0 2px 0 #173d43;
}

.player-controls {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 15px 0 22px;
  padding: 14px 18px 12px;
  border: 2px solid #173d43;
  border-radius: 9px;
  background: #d4c49b;
  box-shadow: inset 0 -5px 0 rgb(95 76 48 / 14%);
}

.player-controls button {
  display: grid;
  width: 64px;
  height: 44px;
  place-items: center;
  border: 2px solid #173d43;
  border-radius: 6px 6px 10px 10px;
  color: #173d43;
  background: #f9ecc6;
  box-shadow: 0 5px 0 #173d43;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.player-controls button:hover {
  color: #fff3c5;
  background: #397f78;
}

.player-controls button:active {
  box-shadow: 0 2px 0 #173d43;
  transform: translateY(3px);
}

.player-controls .play-button {
  width: 82px;
  height: 52px;
  color: #fff5cb;
  background: #d8573d;
  box-shadow: 0 6px 0 #173d43;
}

.player-controls svg {
  width: 22px;
  fill: currentcolor;
  stroke: currentcolor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pause-icon,
.music-player.is-playing .play-icon {
  display: none;
}

.music-player.is-playing .pause-icon {
  display: block;
}

.playlist-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 2px 0;
  border-top: 2px dashed #b3a373;
  color: #173d43;
}

.playlist-heading > div {
  display: grid;
  gap: 2px;
}

.add-music-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 14px;
  border: 2px solid #173d43;
  border-radius: 7px;
  color: #fff4c8;
  background: #397f78;
  box-shadow: 3px 3px 0 #173d43;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.add-music-button:hover {
  background: #2d6b66;
}

.add-music-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.music-playlist {
  display: grid;
  max-height: 150px;
  gap: 6px;
  margin: 12px 0 0;
  padding: 0;
  overflow-y: auto;
  list-style: none;
  scrollbar-color: #8c805e transparent;
}

.music-playlist button {
  display: grid;
  width: 100%;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid #c8b889;
  border-radius: 6px;
  color: #284f52;
  background: #f8ecc7;
  text-align: left;
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.music-playlist button:hover,
.music-playlist button:focus-visible {
  border-color: #397f78;
  background: #fff7db;
  transform: translateX(2px);
}

.music-playlist button.is-current {
  border-color: #173d43;
  color: #fff6cf;
  background: #397f78;
}

.music-playlist .track-number {
  color: #c65742;
  font-size: 0.75rem;
  text-align: center;
}

.music-playlist .track-name {
  overflow: hidden;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.music-playlist .track-state {
  color: #b24937;
  font-size: 0.72rem;
  font-weight: 800;
}

.music-playlist button.is-current .track-number,
.music-playlist button.is-current .track-state {
  color: #ffe59b;
}

.music-feedback {
  min-height: 1.5em;
  margin: 10px 2px 0;
  color: #305e5e;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.5;
}

.music-feedback.is-error {
  color: #8e3028;
}

.comic-academy {
  display: grid;
  grid-template-columns: minmax(190px, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: 24px;
  padding: 34px;
  color: #fff;
  background:
    radial-gradient(circle at 15% 18%, rgb(255 255 255 / 12%) 0 5%, transparent 5.5%),
    linear-gradient(145deg, #4d388d, #2c2a68 64%, #17335d);
}

.comic-stack {
  position: relative;
  height: 360px;
}

.comic-stack img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 205px;
  max-height: 340px;
  border: 6px solid #fff;
  border-radius: 13px;
  object-fit: cover;
  box-shadow: 0 20px 46px rgb(14 10 47 / 35%);
}

.comic-stack img:first-child {
  transform: translate(-56%, -48%) rotate(-8deg);
}

.comic-stack img:last-child {
  transform: translate(-42%, -52%) rotate(5deg);
}

.comic-academy .work-label {
  color: #e2d9ff;
}

.outline-button {
  border-color: rgb(255 255 255 / 34%);
  color: #fff;
  background: rgb(255 255 255 / 12%);
}

.play-section {
  background: linear-gradient(145deg, #f4f7ff, #fff7f1);
}

.play-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}

.quest-card {
  position: relative;
  display: grid;
  min-height: 280px;
  grid-template-columns: 116px minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
  overflow: hidden;
  padding: 42px 46px;
  border: 3px solid #9d4350;
  border-radius: 34px;
  background:
    radial-gradient(circle at 89% 12%, rgb(255 255 255 / 70%) 0 7%, transparent 7.3%),
    linear-gradient(135deg, #fff 0 63%, #fff0e9 63% 100%);
  box-shadow: 9px 10px 0 #9d4350, 0 22px 45px rgb(96 52 63 / 13%);
}

.quest-card::after {
  position: absolute;
  right: 4%;
  bottom: -35%;
  color: rgb(157 67 80 / 7%);
  font-size: 13rem;
  font-weight: 950;
  line-height: 1;
  content: "05";
  pointer-events: none;
}

.word-quest {
  border-color: #38775e;
  background:
    radial-gradient(circle at 89% 12%, rgb(255 255 255 / 70%) 0 7%, transparent 7.3%),
    linear-gradient(135deg, #fff 0 63%, #e9f7ee 63% 100%);
  box-shadow: 9px 10px 0 #38775e, 0 22px 45px rgb(52 102 79 / 13%);
}

.word-quest::after {
  color: rgb(56 119 94 / 7%);
  content: "06";
}

.quest-icon {
  display: grid;
  width: 108px;
  height: 108px;
  place-items: center;
  border: 3px solid #8f3946;
  border-radius: 32px;
  color: #fff;
  background: var(--red);
  box-shadow: inset 0 -8px 0 rgb(115 37 49 / 16%), 5px 6px 0 #8f3946;
}

.word-quest .quest-icon {
  border-color: #2c684f;
  background: var(--green);
  box-shadow: inset 0 -8px 0 rgb(28 99 72 / 16%), 5px 6px 0 #2c684f;
}

.quest-icon svg {
  width: 56px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.3;
}

.quest-card .work-label {
  margin-bottom: 7px;
  color: #7a6370;
}

.word-quest .work-label {
  color: #437765;
}

.quest-copy {
  position: relative;
  z-index: 1;
}

.quest-copy h2 {
  margin: 0;
  color: #822e3d;
  font-size: clamp(2.1rem, 4.6vw, 3.8rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.word-quest .quest-copy h2 {
  color: #276d52;
}

.quest-card h3 {
  margin: 13px 0 0;
  color: var(--ink);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
}

.quest-copy > p:not(.work-label) {
  max-width: 610px;
  margin: 10px 0 0;
  color: var(--ink-soft);
  line-height: 1.75;
}

.quest-card .card-button {
  position: relative;
  z-index: 1;
  min-width: 142px;
  justify-self: end;
  box-shadow: none;
}

.card-button {
  box-shadow: none;
}

.game-quest .card-button {
  background: linear-gradient(135deg, #d44f60, #ec7f5c);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px max(24px, calc((100% - var(--content-width)) / 2));
  color: #526674;
  background: #eef5f4;
}

.site-footer p {
  margin: 0;
  font-weight: 800;
}

.site-footer a {
  min-height: 44px;
  padding: 11px 14px;
  border-radius: 12px;
  color: var(--blue-dark);
  font-weight: 800;
}

.comic-dialog {
  width: min(94vw, 900px);
  max-height: 92dvh;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 26px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 35px 100px rgb(5 20 37 / 38%);
}

.comic-dialog::backdrop {
  background: rgb(7 24 43 / 68%);
  backdrop-filter: blur(7px);
}

.comic-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  color: #fff;
  background: linear-gradient(135deg, #4b378d, #25346a);
}

.comic-dialog-header p,
.comic-dialog-header h2 {
  margin: 0;
}

.comic-dialog-header p {
  color: #d7ceff;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.14em;
}

.comic-dialog-header h2 {
  margin-top: 3px;
  font-size: 1.25rem;
}

.comic-dialog-header button,
.comic-reader > button {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  border-radius: 50%;
}

.comic-dialog-header button {
  color: #fff;
  background: rgb(255 255 255 / 14%);
}

.comic-dialog-header svg,
.comic-reader > button svg {
  width: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.3;
}

.comic-reader {
  display: grid;
  max-height: calc(92dvh - 84px);
  grid-template-columns: 58px minmax(0, 1fr) 58px;
  align-items: center;
  gap: 12px;
  padding: 18px;
  overflow: auto;
  background: #eef3f8;
}

.comic-reader > button {
  color: #fff;
  background: var(--blue-dark);
}

.comic-reader > button:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.comic-reader figure {
  margin: 0;
  text-align: center;
}

.comic-reader img {
  width: auto;
  max-width: 100%;
  max-height: 68dvh;
  margin: 0 auto;
  border-radius: 13px;
  box-shadow: var(--shadow-small);
}

.comic-reader figcaption {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 750;
}

.reveal-item {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1040px) {
  .site-navigation a {
    padding-inline: 9px;
    font-size: 0.82rem;
  }

  .adventure-map {
    height: auto;
    padding: 28px;
  }

  .route-line,
  .explorer-avatar {
    display: none;
  }

  .map-stop {
    position: static;
    display: grid;
    grid-template-columns: 64px 1fr;
    align-items: center;
    justify-items: start;
    gap: 14px;
    margin: 13px 0;
    transform: none;
  }

  .map-stop::before {
    position: absolute;
    left: 59px;
    width: 3px;
    height: 40px;
    margin-top: 78px;
    border-radius: 999px;
    background: rgb(47 120 204 / 25%);
    content: "";
  }

  .map-stop:last-of-type::before {
    display: none;
  }

  .stop-copy {
    width: 100%;
    min-height: 58px;
    align-content: center;
    text-align: left;
  }

  .stop-copy strong {
    font-size: 1rem;
  }

  .poetry-section {
    grid-template-columns: 1fr;
  }

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

  .comic-stack {
    height: 330px;
  }
}

@media (max-width: 820px) {
  .site-header {
    top: 10px;
    right: 12px;
    left: 12px;
    width: calc(100% - 24px);
  }

  .menu-button {
    display: block;
  }

  .site-navigation {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    display: none;
    padding: 10px;
    border: 1px solid #dce8eb;
    border-radius: 18px;
    background: rgb(255 255 255 / 98%);
    box-shadow: var(--shadow-small);
  }

  .site-navigation.is-open {
    display: grid;
  }

  .site-navigation a {
    font-size: 0.95rem;
  }

  .map-hero {
    padding-top: 122px;
  }

  .about-layout,
  .works-grid {
    grid-template-columns: 1fr;
  }

  .quest-card {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 24px;
    padding: 36px;
  }

  .quest-icon {
    width: 90px;
    height: 90px;
  }

  .quest-card .card-button {
    grid-column: 2;
    justify-self: start;
  }

  .profile-card {
    width: min(100%, 460px);
    margin: 0 auto;
  }

  .poetry-section {
    gap: 44px;
  }

  .music-island,
  .comic-academy {
    min-height: 500px;
  }

  .music-island {
    min-height: 720px;
  }

}

@media (max-width: 560px) {
  .brand small {
    display: none;
  }

  .brand > svg {
    width: 34px;
  }

  .map-hero,
  .destination-section {
    padding-right: 16px;
    padding-left: 16px;
  }

  .map-hero {
    padding-bottom: 48px;
  }

  .hero-copy h1 {
    font-size: clamp(2.2rem, 10.6vw, 3rem);
    line-height: 1.06;
    letter-spacing: -0.045em;
  }

  .hero-copy h1 .hero-line {
    white-space: nowrap;
  }

  .hero-copy > p:not(.eyebrow) {
    font-size: 1rem;
  }

  .hero-actions > * {
    width: 100%;
  }

  .adventure-map {
    padding: 20px 16px;
    border-radius: 27px;
  }

  .stop-icon {
    width: 58px;
    height: 58px;
  }

  .map-stop {
    grid-template-columns: 58px 1fr;
  }

  .map-stop::before {
    left: 43px;
  }

  .destination-section {
    padding-top: 82px;
    padding-bottom: 82px;
  }

  .destination-number {
    top: 25px;
  }

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

  .poem-scroll {
    padding: 43px 30px;
  }

  .music-island,
  .comic-academy {
    padding: 24px;
    border-radius: 25px;
  }

  .quest-card {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 28px 24px 32px;
    border-radius: 26px;
    box-shadow: 6px 7px 0 currentcolor, 0 16px 32px rgb(60 70 70 / 12%);
  }

  .game-quest {
    color: #9d4350;
  }

  .word-quest {
    color: #38775e;
  }

  .quest-icon {
    width: 82px;
    height: 82px;
    border-radius: 25px;
  }

  .quest-copy,
  .quest-card .card-button {
    grid-column: 1;
  }

  .quest-copy {
    color: var(--ink);
  }

  .quest-card .card-button {
    justify-self: stretch;
  }

  .comic-academy {
    min-height: 650px;
  }

  .music-player {
    padding: 18px 16px 22px;
    box-shadow: 5px 7px 0 #173d43, 0 20px 36px rgb(86 48 37 / 24%);
  }

  .now-playing {
    grid-template-columns: 1fr;
  }

  .cassette-tape {
    min-height: 126px;
  }

  .playlist-heading {
    align-items: flex-start;
  }

  .comic-reader {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 5px;
    padding: 10px;
  }

  .comic-reader > button {
    width: 42px;
    height: 42px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal-item {
    opacity: 1;
    transform: none;
  }
}
