:root {
  --navy-950: #03233b;
  --navy-900: #063554;
  --navy-800: #064b70;
  --blue-700: #087ca7;
  --blue-500: #18a9d2;
  --blue-300: #79d7ed;
  --blue-100: #dff7fc;
  --foam: #f8fdff;
  --sand: #fff3d7;
  --sun: #ffd166;
  --coral: #ff6b6b;
  --ink: #0b3550;
  --muted: #5d7482;
  --panel: rgba(250, 254, 255, 0.88);
  --shadow: 0 26px 80px rgba(0, 63, 91, 0.2);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max-width: 1180px;
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", Inter, system-ui, sans-serif;
  color: var(--ink);
  background: #cbedf7;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

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

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(218, 248, 255, 0.84), rgba(240, 252, 255, 0.94) 42%, #e9f8fb 100%),
    #d9f5fb;
  color: var(--ink);
}

body::before {
  position: fixed;
  inset: -22px;
  z-index: -2;
  content: "";
  background: url("https://d7a.uk/2/ocean.png") center / cover no-repeat;
  filter: blur(8px) saturate(1.05);
  opacity: 0.4;
  transform: scale(1.04);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    radial-gradient(circle at 14% 20%, rgba(255, 255, 255, 0.92) 0 2px, transparent 3px),
    radial-gradient(circle at 88% 26%, rgba(255, 255, 255, 0.8) 0 3px, transparent 4px),
    linear-gradient(180deg, rgba(228, 250, 255, 0.56), rgba(238, 250, 252, 0.9));
  background-size: 120px 120px, 180px 180px, auto;
  pointer-events: none;
}

button,
a,
input {
  font: inherit;
}

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

button {
  border: 0;
  cursor: pointer;
}

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

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.bubble {
  position: absolute;
  display: block;
  width: 18px;
  aspect-ratio: 1;
  border: 2px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  box-shadow: inset 2px 2px 4px rgba(255, 255, 255, 0.65);
  animation: bubble-rise 12s linear infinite;
}

.bubble--1 { left: 7%; top: 84%; animation-delay: -3s; }
.bubble--2 { left: 29%; top: 92%; width: 11px; animation-delay: -8s; }
.bubble--3 { left: 74%; top: 88%; width: 26px; animation-delay: -6s; }
.bubble--4 { left: 91%; top: 72%; width: 13px; animation-delay: -1s; }

@keyframes bubble-rise {
  0% { transform: translateY(80px) scale(0.7); opacity: 0; }
  15% { opacity: 0.72; }
  85% { opacity: 0.48; }
  100% { transform: translateY(-110vh) translateX(42px) scale(1.16); opacity: 0; }
}

/* Splash */
.splash {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  min-height: 100dvh;
  place-items: center;
  overflow: hidden;
  background: #73d6ef;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.splash::before {
  position: absolute;
  inset: -28px;
  content: "";
  background: url("https://d7a.uk/2/ocean.png") center / cover no-repeat;
  filter: blur(7px) saturate(1.1);
  transform: scale(1.06);
}

.splash::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.2), transparent 50%),
    linear-gradient(180deg, rgba(4, 72, 108, 0.08), rgba(1, 49, 76, 0.34));
}

.splash.is-hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.splash__wash {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.18), transparent 42%);
}

.splash__panel {
  position: relative;
  z-index: 2;
  width: min(720px, calc(100% - 36px));
  padding: clamp(28px, 5vw, 58px);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 44px;
  background: rgba(249, 254, 255, 0.2);
  box-shadow: 0 30px 90px rgba(1, 49, 76, 0.26), inset 0 1px rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(14px);
  animation: panel-arrive 1s cubic-bezier(0.2, 0.72, 0.2, 1) both;
}

@keyframes panel-arrive {
  from { opacity: 0; transform: translateY(22px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.splash__eyebrow {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.25em;
}

.splash__logo {
  width: min(560px, 100%);
  max-height: 270px;
  margin: 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 14px 28px rgba(0, 43, 73, 0.24));
}

.splash__lead {
  max-width: 500px;
  margin: 0 auto 26px;
  color: #fff;
  font-size: clamp(0.94rem, 2vw, 1.1rem);
  font-weight: 650;
  line-height: 1.8;
  text-shadow: 0 2px 12px rgba(1, 49, 76, 0.32);
}

.enter-button {
  display: inline-flex;
  min-width: min(100%, 330px);
  min-height: 60px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 16px 24px;
  color: white;
  font-weight: 900;
  letter-spacing: -0.02em;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--navy-800), var(--blue-500));
  box-shadow: 0 14px 30px rgba(2, 76, 109, 0.32), inset 0 1px rgba(255, 255, 255, 0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.enter-button:hover,
.enter-button:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 20px 38px rgba(2, 76, 109, 0.38), inset 0 1px rgba(255, 255, 255, 0.28);
}

.enter-button__arrow {
  display: grid;
  width: 30px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.splash__audio-note {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.82rem;
  font-weight: 750;
}

.splash__shore {
  position: absolute;
  right: -8%;
  bottom: -10%;
  left: -8%;
  z-index: 2;
  height: 23%;
  border-radius: 50% 48% 0 0 / 28% 24% 0 0;
  background:
    radial-gradient(ellipse at 50% 0, rgba(255, 255, 255, 0.88) 0 7%, transparent 8%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 243, 215, 0.94));
  filter: drop-shadow(0 -12px 16px rgba(255, 255, 255, 0.46));
}

/* Shell */
.site-shell {
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.site-shell.is-visible {
  visibility: visible;
  opacity: 1;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  width: min(var(--max-width), calc(100% - 32px));
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  margin: 16px auto 0;
  padding: 10px 14px 10px 20px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  background: rgba(248, 254, 255, 0.78);
  box-shadow: 0 12px 34px rgba(1, 67, 93, 0.12);
  backdrop-filter: blur(18px);
}

.brand img {
  width: 142px;
  height: 52px;
  object-fit: contain;
}

.topbar__nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.topbar__nav a {
  padding: 12px 17px;
  color: var(--navy-800);
  font-size: 0.88rem;
  font-weight: 800;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

.topbar__nav a:hover,
.topbar__nav a:focus-visible {
  color: white;
  background: var(--blue-700);
}

.hero,
.section,
.footer {
  width: min(var(--max-width), calc(100% - 32px));
  margin-inline: auto;
}

.hero {
  display: grid;
  min-height: 660px;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: clamp(34px, 7vw, 92px);
  padding: 70px 34px 90px;
}

.section-kicker {
  margin: 0 0 12px;
  color: var(--blue-700);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.2em;
}

.hero h2,
.section-heading h2 {
  margin: 0;
  color: var(--navy-950);
  letter-spacing: -0.055em;
}

.hero h2 {
  font-size: clamp(2.8rem, 6vw, 5.45rem);
  line-height: 1.05;
}

.hero h2 em {
  color: var(--blue-700);
  font-style: normal;
  text-decoration: underline;
  text-decoration-color: rgba(255, 209, 102, 0.82);
  text-decoration-thickness: 0.18em;
  text-underline-offset: -0.06em;
  text-decoration-skip-ink: none;
}

.hero__copy > p:not(.section-kicker) {
  max-width: 570px;
  margin: 28px 0;
  color: #496978;
  font-size: 1.04rem;
  line-height: 1.95;
}

.hero__cta {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  color: white;
  font-weight: 900;
  border-radius: 999px;
  background: var(--navy-900);
  box-shadow: 0 12px 26px rgba(3, 53, 84, 0.22);
  transition: transform 0.22s ease, background 0.22s ease;
}

.hero__cta:hover,
.hero__cta:focus-visible {
  background: var(--blue-700);
  transform: translateY(-2px);
}

.hero__postcard {
  position: relative;
  max-width: 500px;
  padding: 14px 14px 22px;
  transform: rotate(2.5deg);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  background: white;
  box-shadow: 0 32px 80px rgba(5, 76, 100, 0.25);
}

.hero__postcard::before {
  position: absolute;
  top: -36px;
  left: 50%;
  z-index: 2;
  width: 112px;
  height: 28px;
  content: "";
  transform: translateX(-50%) rotate(-3deg);
  background: rgba(255, 230, 155, 0.72);
  box-shadow: 0 2px 5px rgba(92, 65, 23, 0.08);
}

.hero__postcard-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 12px;
  background:
    linear-gradient(180deg, transparent 38%, rgba(4, 103, 140, 0.24)),
    url("https://d7a.uk/2/ocean.png") center / cover no-repeat;
}

.hero__postcard-caption {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
  padding: 18px 8px 0;
}

.hero__postcard-caption span {
  color: #7a8f99;
  font-size: 0.76rem;
  font-weight: 750;
}

.hero__postcard-caption strong {
  color: var(--navy-900);
  font-size: 1.3rem;
  letter-spacing: -0.04em;
}

.postcard-stamp {
  position: absolute;
  top: 28px;
  right: 28px;
  display: grid;
  width: 70px;
  aspect-ratio: 1;
  place-items: center;
  color: white;
  font-size: 0.66rem;
  font-weight: 950;
  line-height: 1.3;
  text-align: center;
  border: 3px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  background: rgba(255, 107, 107, 0.9);
  box-shadow: 0 6px 16px rgba(83, 31, 31, 0.16);
}

.section {
  margin-bottom: 92px;
  padding: clamp(28px, 5vw, 64px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-xl);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr minmax(270px, 0.7fr);
  align-items: end;
  gap: 40px;
  margin-bottom: 40px;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.section-heading > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

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

.zone-card {
  position: relative;
  display: flex;
  min-height: 166px;
  align-items: flex-start;
  gap: 18px;
  overflow: hidden;
  padding: 26px;
  border: 1px solid rgba(8, 124, 167, 0.12);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.74);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.zone-card::after {
  position: absolute;
  right: -28px;
  bottom: -46px;
  width: 150px;
  aspect-ratio: 1;
  content: "";
  border-radius: 50%;
  background: var(--zone-color, rgba(121, 215, 237, 0.22));
}

.zone-card:hover {
  z-index: 1;
  transform: translateY(-5px);
  box-shadow: 0 18px 34px rgba(1, 74, 101, 0.12);
}

.zone-card--a { --zone-color: rgba(120, 218, 172, 0.25); }
.zone-card--b { --zone-color: rgba(255, 209, 102, 0.28); }
.zone-card--c { --zone-color: rgba(54, 184, 224, 0.24); }
.zone-card--d { --zone-color: rgba(31, 64, 82, 0.2); }

.zone-card__letter {
  position: relative;
  z-index: 1;
  display: grid;
  flex: 0 0 50px;
  aspect-ratio: 1;
  place-items: center;
  color: white;
  font-size: 1.25rem;
  font-weight: 950;
  border-radius: 16px;
  background: var(--navy-900);
  box-shadow: 0 8px 18px rgba(3, 53, 84, 0.16);
}

.zone-card h3 {
  position: relative;
  z-index: 1;
  margin: 3px 0 8px;
  color: var(--navy-900);
  font-size: 1.1rem;
}

.zone-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #607985;
  font-size: 0.9rem;
  line-height: 1.72;
}

.pension-strip {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 22px;
  margin-top: 18px;
  padding: 24px 28px;
  color: white;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(110deg, rgba(3, 53, 84, 0.96), rgba(8, 124, 167, 0.88)),
    url("https://d7a.uk/2/ocean.png") center / cover;
}

.pension-strip__icon {
  display: grid;
  width: 58px;
  aspect-ratio: 1;
  place-items: center;
  color: var(--navy-900);
  font-size: 1.8rem;
  border-radius: 18px;
  background: var(--sun);
}

.pension-strip > div:nth-child(2) {
  min-width: 110px;
}

.pension-strip p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.86rem;
  line-height: 1.72;
}

.pension-strip h3 {
  margin: 2px 0 0;
  font-size: 1.5rem;
}

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

.character-card {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 28px;
  background: #ccecf4;
  box-shadow: 0 15px 32px rgba(2, 78, 108, 0.14);
  isolation: isolate;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease;
}

.character-card::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background: linear-gradient(180deg, transparent 40%, rgba(2, 30, 47, 0.1) 59%, rgba(2, 29, 45, 0.92) 100%);
}

.character-card:hover,
.character-card:focus-visible {
  z-index: 2;
  outline: none;
  transform: translateY(-9px) rotate(-0.4deg);
  box-shadow: 0 28px 52px rgba(2, 78, 108, 0.25);
}

.character-card__image {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  object-position: center 18%;
  transform: scale(1.01);
  transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.character-card:hover .character-card__image,
.character-card:focus-visible .character-card__image {
  transform: scale(1.055);
}

.character-card__number,
.character-card__open {
  position: absolute;
  z-index: 3;
  top: 16px;
}

.character-card__number {
  left: 16px;
  display: grid;
  width: 42px;
  aspect-ratio: 1;
  place-items: center;
  color: var(--navy-900);
  font-size: 0.72rem;
  font-weight: 950;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
}

.character-card__open {
  right: 16px;
  padding: 9px 12px;
  color: white;
  font-size: 0.73rem;
  font-weight: 850;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  background: rgba(3, 53, 84, 0.56);
  backdrop-filter: blur(10px);
}

.character-card__content {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  padding: 24px;
  color: white;
}

.character-card__role {
  margin: 0 0 5px;
  color: var(--blue-300);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.06em;
}

.character-card h3 {
  margin: 0;
  font-size: 1.65rem;
  letter-spacing: -0.04em;
}

.character-card__tagline {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.86rem;
  line-height: 1.55;
}

.characters .character-card:nth-child(4),
.characters .character-card:nth-child(5),
.characters .character-card:nth-child(6),
.characters .character-card:nth-child(7) {
  min-height: 390px;
}

.characters .character-card:nth-child(7) {
  grid-column: 2;
}

.footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 24px 28px 40px;
  color: #587481;
}

.footer img {
  width: 112px;
  height: 46px;
  object-fit: contain;
}

.footer p {
  margin: 0;
  font-size: 0.82rem;
}

.footer a {
  font-size: 0.82rem;
  font-weight: 850;
}

/* Music */
.music-dock {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 90;
  display: none;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 999px;
  background: rgba(248, 254, 255, 0.87);
  box-shadow: 0 14px 36px rgba(1, 58, 84, 0.24);
  backdrop-filter: blur(14px);
}

.music-dock.is-visible {
  display: flex;
}

.music-toggle {
  display: flex;
  min-height: 50px;
  align-items: center;
  gap: 10px;
  padding: 7px 15px 7px 7px;
  color: var(--navy-900);
  border-radius: 999px;
  background: transparent;
}

.music-toggle__icon {
  display: grid;
  width: 38px;
  aspect-ratio: 1;
  place-items: center;
  color: white;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
}

.music-toggle__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}

.music-toggle__copy small {
  color: #7b929d;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.music-toggle__copy strong {
  margin-top: 4px;
  font-size: 0.78rem;
}

.volume-control {
  display: flex;
  width: 70px;
  padding-right: 12px;
}

.volume-control input {
  width: 100%;
  accent-color: var(--blue-700);
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  visibility: hidden;
  place-items: center;
  padding: 26px;
  opacity: 0;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal.is-open {
  visibility: visible;
  opacity: 1;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(1, 28, 43, 0.74);
  backdrop-filter: blur(14px);
}

.modal__dialog {
  position: relative;
  display: grid;
  width: min(1120px, 100%);
  height: min(780px, calc(100dvh - 52px));
  grid-template-columns: minmax(340px, 0.9fr) minmax(450px, 1.1fr);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 34px;
  background: #f7fcfe;
  box-shadow: 0 42px 110px rgba(0, 22, 34, 0.46);
  transform: translateY(18px) scale(0.985);
  transition: transform 0.34s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.modal.is-open .modal__dialog {
  transform: translateY(0) scale(1);
}

.modal__image-column {
  position: relative;
  display: flex;
  min-height: 0;
  flex-direction: column;
  padding: 18px;
  background:
    radial-gradient(circle at 15% 12%, rgba(255, 255, 255, 0.9), transparent 35%),
    linear-gradient(160deg, #aee8f4, #48b9d7 58%, #087ca7);
}

.modal__image-wrap {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.22);
}

.modal__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 16%;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.5s ease;
}

.modal__image-wrap img.is-loaded {
  opacity: 1;
}

.modal__image-wrap:hover img {
  transform: scale(1.02);
}

.modal__outfit-label {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  padding: 9px 13px;
  color: var(--navy-900);
  font-size: 0.74rem;
  font-weight: 900;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 8px 20px rgba(2, 56, 82, 0.13);
  backdrop-filter: blur(8px);
}

.image-loader {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  background: linear-gradient(110deg, rgba(255, 255, 255, 0.12) 8%, rgba(255, 255, 255, 0.42) 18%, rgba(255, 255, 255, 0.12) 33%);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
}

.image-loader.is-hidden {
  display: none;
}

@keyframes shimmer { to { background-position-x: -200%; } }

.outfit-toggle {
  position: absolute;
  top: 32px;
  right: 32px;
  z-index: 4;
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 12px 16px;
  color: var(--navy-900);
  font-weight: 950;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 24px rgba(2, 63, 91, 0.18);
  transition: transform 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.outfit-toggle:hover,
.outfit-toggle:focus-visible {
  color: white;
  background: var(--navy-900);
  transform: translateY(-2px);
}

.modal__content-column {
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-template-rows: auto 1fr auto;
  background:
    radial-gradient(circle at 100% 0, rgba(121, 215, 237, 0.2), transparent 28%),
    #f8fdff;
}

.modal__top-actions {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px 0 32px;
}

.modal__top-actions > span {
  color: var(--blue-700);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.14em;
}

.modal__close {
  display: grid;
  width: 44px;
  aspect-ratio: 1;
  place-items: center;
  color: var(--navy-900);
  font-size: 1.8rem;
  line-height: 1;
  border-radius: 50%;
  background: rgba(8, 124, 167, 0.08);
}

.modal__scroll {
  min-height: 0;
  padding: 4px 38px 38px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: rgba(8, 124, 167, 0.36) transparent;
}

.modal__identity > p {
  margin: 0 0 6px;
  color: var(--blue-700);
  font-size: 0.84rem;
  font-weight: 900;
}

.modal__identity h2 {
  margin: 0;
  color: var(--navy-950);
  font-size: clamp(2.6rem, 5vw, 4.3rem);
  letter-spacing: -0.07em;
  line-height: 1.08;
}

.modal__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.modal__meta span,
.trait-list span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 6px 11px;
  border-radius: 999px;
}

.modal__meta span {
  color: #526f7d;
  font-size: 0.76rem;
  font-weight: 750;
  background: rgba(8, 124, 167, 0.08);
}

.modal__quote {
  position: relative;
  margin: 26px 0 20px;
  padding: 20px 22px 20px 26px;
  color: var(--navy-900);
  font-size: 1.03rem;
  font-weight: 850;
  line-height: 1.65;
  border-left: 5px solid var(--sun);
  border-radius: 0 18px 18px 0;
  background: linear-gradient(90deg, rgba(255, 209, 102, 0.2), rgba(255, 255, 255, 0.46));
}

.trait-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 28px;
}

.trait-list span {
  color: white;
  font-size: 0.73rem;
  font-weight: 850;
  background: linear-gradient(135deg, var(--navy-800), var(--blue-700));
}

.profile-section {
  padding: 24px 0;
  border-top: 1px solid rgba(8, 124, 167, 0.13);
}

.profile-section:first-child {
  border-top: 0;
}

.profile-section__label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.profile-section__label span {
  display: grid;
  width: 29px;
  aspect-ratio: 1;
  place-items: center;
  color: var(--navy-900);
  font-size: 0.76rem;
  border-radius: 10px;
  background: var(--blue-100);
}

.profile-section__label h3 {
  margin: 0;
  color: var(--navy-900);
  font-size: 0.96rem;
}

.profile-section p {
  margin: 0;
  color: #536e7b;
  font-size: 0.93rem;
  line-height: 1.82;
  word-break: keep-all;
}

.taste-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.taste-card {
  padding: 18px;
  border-radius: 18px;
  background: rgba(8, 124, 167, 0.06);
}

.taste-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--navy-900);
  font-size: 0.78rem;
}

.taste-card p {
  font-size: 0.84rem;
  line-height: 1.7;
}

.modal__nav {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 16px 24px 20px;
  border-top: 1px solid rgba(8, 124, 167, 0.12);
  background: rgba(255, 255, 255, 0.7);
}

.modal__nav button {
  min-height: 42px;
  padding: 9px 14px;
  color: var(--navy-800);
  font-size: 0.78rem;
  font-weight: 900;
  border-radius: 999px;
  background: rgba(8, 124, 167, 0.08);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 1200;
  max-width: calc(100% - 32px);
  padding: 13px 18px;
  color: white;
  font-size: 0.85rem;
  font-weight: 800;
  border-radius: 999px;
  background: rgba(3, 35, 59, 0.92);
  box-shadow: 0 12px 30px rgba(0, 22, 34, 0.24);
  opacity: 0;
  transform: translate(-50%, 18px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 960px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 72px;
  }

  .hero__postcard {
    width: min(580px, 92%);
    justify-self: center;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 16px;
  }

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

  .characters .character-card:nth-child(7) {
    grid-column: auto;
  }

  .modal__dialog {
    grid-template-columns: minmax(290px, 0.82fr) minmax(360px, 1.18fr);
  }

  .modal__scroll {
    padding-inline: 28px;
  }
}

@media (max-width: 720px) {
  html {
    scroll-padding-top: 76px;
  }

  .topbar {
    width: calc(100% - 20px);
    min-height: 64px;
    margin-top: 10px;
    padding: 6px 8px 6px 12px;
  }

  .brand img {
    width: 108px;
    height: 44px;
  }

  .topbar__nav a {
    padding: 10px 11px;
    font-size: 0.74rem;
  }

  .hero,
  .section,
  .footer {
    width: calc(100% - 20px);
  }

  .hero {
    gap: 56px;
    padding: 70px 16px 74px;
  }

  .hero h2 {
    font-size: clamp(2.65rem, 14vw, 4.6rem);
  }

  .hero__postcard {
    width: 93%;
  }

  .section {
    margin-bottom: 46px;
    padding: 28px 18px;
    border-radius: 26px;
  }

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

  .zone-card {
    min-height: auto;
    padding: 20px;
  }

  .pension-strip {
    grid-template-columns: auto 1fr;
    gap: 14px;
    padding: 20px;
  }

  .pension-strip > p {
    grid-column: 1 / -1;
  }

  .character-grid {
    display: flex;
    gap: 14px;
    margin-inline: -18px;
    padding: 4px 18px 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .character-grid::-webkit-scrollbar {
    display: none;
  }

  .character-card,
  .characters .character-card:nth-child(n) {
    flex: 0 0 min(79vw, 310px);
    min-height: 420px;
    scroll-snap-align: center;
  }

  .footer {
    grid-template-columns: 1fr auto;
    padding-inline: 12px;
  }

  .footer img {
    display: none;
  }

  .modal {
    align-items: end;
    padding: 0;
  }

  .modal__dialog {
    width: 100%;
    height: 94dvh;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(280px, 43dvh) minmax(0, 1fr);
    border-radius: 28px 28px 0 0;
  }

  .modal__image-column {
    padding: 10px;
  }

  .modal__image-wrap {
    border-radius: 20px;
  }

  .outfit-toggle {
    top: auto;
    right: 20px;
    bottom: 20px;
    z-index: 4;
    min-height: 46px;
    margin: 0;
    padding: 10px 14px;
    font-size: 0.76rem;
    border-radius: 999px;
  }

  .modal__top-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 6;
    min-height: 44px;
    gap: 6px;
    padding: 0;
  }

  .modal__top-actions > span {
    display: none;
  }

  .modal__close {
    color: white;
    background: rgba(3, 35, 59, 0.58);
    backdrop-filter: blur(8px);
  }

  .modal__scroll {
    padding: 24px 20px 28px;
  }

  .modal__identity h2 {
    font-size: 2.75rem;
  }

  .modal__nav {
    padding: 12px 16px max(14px, env(safe-area-inset-bottom));
  }

  .music-dock {
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
  }

  .volume-control {
    display: none;
  }

  .music-toggle__copy small {
    display: none;
  }
}

@media (max-width: 420px) {
  .topbar__nav a:first-child {
    display: none;
  }

  .splash__panel {
    padding: 28px 18px 34px;
    border-radius: 30px;
  }

  .splash__lead {
    margin-bottom: 20px;
    font-size: 0.88rem;
  }

  .enter-button {
    min-height: 56px;
    font-size: 0.9rem;
  }

  .hero {
    padding-inline: 10px;
  }

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

@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;
  }
}
