:root {
  color-scheme: dark light;
}

html {
  scroll-behavior: smooth;
}

body.webtoon-page:not(.intent-page):not(.editorial-page) {
  --story-bg: #08090a;
  --story-ink: #f4f2eb;
  --story-muted: #aaa9a4;
  --story-line: rgba(244, 242, 235, 0.3);
  --late-panel-line: rgba(244, 242, 235, 0.3);
  --panel-frame-strength: 1;
  --accessory-tone-progress: 0;
  --accessory-echo-visibility: 0;
  --end-rails-progress: 0;
  --end-chrome-opacity: 1;
  --story-progress: 0;
  --rail-shift: 0px;
  margin: 0;
  overflow-x: clip;
  background: var(--story-bg);
  color: var(--story-ink);
  font-family: "Source Sans 3", system-ui, sans-serif;
  transition: color 120ms linear;
}

body.webtoon-page:not(.intent-page):not(.editorial-page) h2,
body.webtoon-page:not(.intent-page):not(.editorial-page) h3 {
  color: var(--story-ink);
}

.webtoon-page *,
.webtoon-page *::before,
.webtoon-page *::after {
  box-sizing: border-box;
}

.webtoon-page a {
  color: inherit;
}

.webtoon-page .skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  translate: 0 -180%;
  padding: 0.8rem 1rem;
  background: #e7b743;
  color: #0b0d0f;
  font-weight: 800;
}

.webtoon-page .skip-link:focus {
  translate: 0;
}

.webtoon-page :focus-visible {
  outline: 3px solid #e7b743;
  outline-offset: 4px;
}

.webtoon-progress {
  position: fixed;
  z-index: 80;
  inset: 0 0 auto;
  height: 3px;
  background: rgba(119, 128, 138, 0.24);
}

.webtoon-progress span {
  display: block;
  width: calc(var(--story-progress) * 100%);
  height: 100%;
  transform-origin: left center;
  background: #e7b743;
}

.webtoon-bar {
  position: fixed;
  z-index: 70;
  top: 3px;
  left: 50%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(100% - 2rem, 86rem);
  min-height: 4rem;
  padding: 0 0.35rem;
  color: var(--story-ink);
  translate: -50% 0;
}

.webtoon-bar::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  border-bottom: 1px solid var(--story-line);
  background: var(--story-bg);
  content: "";
  opacity: 0.94;
}

.webtoon-bar a {
  justify-self: start;
  min-height: 44px;
  padding: 0.75rem;
  text-decoration: none;
  font-weight: 700;
}

.webtoon-bar a:hover {
  text-decoration: underline;
  text-decoration-color: #e7b743;
  text-decoration-thickness: 3px;
  text-underline-offset: 0.35rem;
}

.webtoon-bar p,
.webtoon-progress-label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  opacity: var(--end-chrome-opacity);
  text-transform: uppercase;
  transition: opacity 120ms linear;
}

.webtoon-bar-tools {
  justify-self: end;
  display: flex;
  gap: 0.15rem;
  align-items: center;
}

.webtoon-sound-toggle {
  display: inline-flex;
  gap: 0.42rem;
  align-items: center;
  min-height: 44px;
  margin: 0;
  padding: 0.75rem 0.45rem;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  cursor: pointer;
}

.webtoon-sound-toggle::before {
  width: 0.42rem;
  height: 0.42rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  content: "";
}

.webtoon-sound-toggle[aria-pressed="true"]::before {
  border-color: #e7b743;
  background: #e7b743;
}

.webtoon-sound-toggle:hover > span:first-child {
  text-decoration: underline;
  text-decoration-color: #e7b743;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.25rem;
}

.webtoon-sound-activity {
  display: inline-flex;
  gap: 2px;
  align-items: flex-end;
  width: 0.72rem;
  height: 0.62rem;
  color: #e7b743;
  opacity: 0;
  transition: opacity 480ms ease-in;
}

.webtoon-sound-activity > span {
  width: 2px;
  height: 100%;
  background: currentColor;
  transform: scaleY(0.24);
  transform-origin: center bottom;
}

.webtoon-sound-toggle[data-sound-active="true"] .webtoon-sound-activity {
  opacity: 0.56;
  transition-duration: 900ms;
  transition-timing-function: ease-out;
}

.webtoon-sound-toggle[data-sound-active="true"] .webtoon-sound-activity > span {
  animation: webtoon-sound-activity 1140ms ease-in-out infinite alternate;
}

.webtoon-sound-toggle[data-sound-active="true"] .webtoon-sound-activity > span:nth-child(2) {
  animation-delay: -380ms;
}

.webtoon-sound-toggle[data-sound-active="true"] .webtoon-sound-activity > span:nth-child(3) {
  animation-delay: -760ms;
}

@keyframes webtoon-sound-activity {
  from {
    transform: scaleY(0.32);
  }

  to {
    transform: scaleY(0.68);
  }
}

.webtoon-sound-toggle:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.webtoon-sound-notice {
  position: fixed;
  z-index: 90;
  right: clamp(0.75rem, 2vw, 1.5rem);
  bottom: clamp(0.75rem, 2vw, 1.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem 1.4rem;
  align-items: center;
  width: min(calc(100% - 1.5rem), 44rem);
  padding: 1rem;
  border: 1px solid #3d4144;
  border-top: 3px solid #e7b743;
  background: #111416;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.38);
  color: #f3f0e8;
}

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

.webtoon-sound-notice p {
  margin: 0;
}

.webtoon-sound-notice p:first-child {
  font-weight: 800;
}

.webtoon-sound-notice p + p {
  margin-top: 0.2rem;
  color: #b5b0a6;
  font-size: 0.88rem;
  line-height: 1.35;
}

.webtoon-sound-notice-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.webtoon-sound-notice button {
  min-height: 44px;
  padding: 0.68rem 0.82rem;
  border: 1px solid #77808a;
  background: transparent;
  color: #f3f0e8;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.webtoon-sound-notice .webtoon-sound-continue {
  border-color: #e7b743;
  background: #e7b743;
  color: #0b0d0f;
}

.webtoon-sound-notice button:hover {
  border-color: #e7b743;
}

.webtoon-progress-label {
  padding: 0.75rem;
  font-variant-numeric: tabular-nums;
}

.webtoon-hero {
  position: relative;
  display: grid;
  min-height: 180svh;
  isolation: isolate;
}

.webtoon-hero-copy {
  position: sticky;
  z-index: 3;
  top: 0;
  align-self: start;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(100% - 2rem, 86rem);
  height: 100svh;
  min-height: 100svh;
  margin: 0 auto;
  padding: 7rem 0 5rem;
}

.webtoon-kicker,
.webtoon-act-number {
  margin: 0 0 1.5rem;
  color: var(--story-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.webtoon-hero h1 {
  max-width: 12ch;
  margin: 0;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(4rem, 11vw, 10rem);
  font-weight: 800;
  letter-spacing: -0.075em;
  line-height: 0.78;
}

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

.webtoon-hero h1 span:last-child {
  color: #e7b743;
}

.webtoon-subtitle {
  margin: 2.5rem 0 0;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(1.1rem, 2vw, 1.65rem);
  font-weight: 600;
}

.webtoon-description {
  max-width: 42rem;
  margin: 1.25rem 0 0;
  color: var(--story-muted);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.55;
}

.webtoon-instruction {
  position: absolute;
  right: 0;
  bottom: 5rem;
  margin: 0;
  color: var(--story-muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.webtoon-hero-rails {
  position: absolute;
  z-index: 1;
  right: -8vw;
  bottom: 0;
  width: min(72rem, 78vw);
  height: auto;
  opacity: 0.38;
  pointer-events: none;
  transform: translate3d(0, var(--rail-shift), 0);
  filter: invert(1) grayscale(1) contrast(1.3);
  mix-blend-mode: screen;
}

.webtoon-yellow-line {
  position: absolute;
  z-index: 4;
  right: 0;
  bottom: 0;
  left: 0;
  height: 5px;
  background: #e7b743;
  box-shadow: none;
}

.webtoon-story {
  position: relative;
  z-index: 2;
}

.webtoon-accessory-echo {
  position: fixed;
  z-index: 0;
  right: auto;
  bottom: clamp(2rem, 8svh, 6rem);
  left: clamp(1rem, 4vw, 4rem);
  width: clamp(8rem, 17vw, 15rem);
  aspect-ratio: 1;
  opacity: calc(var(--accessory-echo-visibility) * 0.16);
  pointer-events: none;
  transform: rotate(4deg);
  transition: opacity 120ms linear;
}

.webtoon-act {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(14rem, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(2rem, 8vw, 10rem);
  width: min(100% - 2rem, 86rem);
  min-height: 170svh;
  margin: 0 auto;
  padding: 20svh 0 28svh;
  border-top: 1px solid var(--story-line);
}

.webtoon-index-act {
  grid-template-columns: minmax(12rem, 0.58fr) minmax(0, 1.42fr);
  gap: clamp(2rem, 5vw, 6rem);
}

.webtoon-act-intro {
  position: sticky;
  top: 9rem;
  align-self: start;
  min-width: 0;
}

.webtoon-act-intro h2 {
  max-width: 8ch;
  margin: 0;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(3.2rem, 8vw, 8rem);
  font-weight: 800;
  letter-spacing: -0.07em;
  line-height: 0.85;
}

.webtoon-act-intro > p:last-child:not(.webtoon-act-number) {
  max-width: 32ch;
  margin: 2rem 0 0;
  color: var(--story-muted);
  font-size: 1rem;
}

.webtoon-panel-stream {
  display: flex;
  flex-direction: column;
  gap: clamp(5rem, 16svh, 12rem);
  min-width: 0;
  padding-top: 22svh;
}

.webtoon-panel {
  position: relative;
  width: min(100%, 44rem);
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid var(--story-line);
  background: var(--story-bg);
}

.webtoon-scambio-act .webtoon-panel,
.webtoon-scambio-act ~ .webtoon-act .webtoon-panel {
  border-color: var(--late-panel-line);
  transition: border-color 120ms linear;
}

.webtoon-panel-title,
.webtoon-panel .webtoon-verse,
.webtoon-panel .webtoon-prose-line,
.webtoon-panel .webtoon-dialogue {
  position: relative;
  z-index: 1;
}

.webtoon-accessory {
  --accessory-opacity: 0.34;
  --accessory-rotation: 0deg;
  --accessory-start-rotation: 0deg;
  --accessory-start-x: 0;
  position: absolute;
  z-index: 0;
  top: -2.8rem;
  right: 0.8rem;
  width: clamp(5.5rem, 9vw, 8.25rem);
  aspect-ratio: 1;
  opacity: var(--accessory-opacity);
  pointer-events: none;
  transform: rotate(var(--accessory-rotation));
}

.webtoon-accessory-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 120ms linear;
}

.webtoon-accessory-light {
  opacity: calc(1 - var(--accessory-tone-progress));
  filter: invert(1) grayscale(1) contrast(1.2);
  mix-blend-mode: screen;
}

.webtoon-accessory-graphite {
  opacity: var(--accessory-tone-progress);
  filter: grayscale(1) contrast(1.15);
  mix-blend-mode: multiply;
}

.webtoon-panel:nth-child(even) .webtoon-accessory {
  right: auto;
  left: 0.8rem;
}

.webtoon-accessory-controllore {
  --accessory-rotation: -4deg;
  --accessory-start-rotation: -10deg;
  --accessory-start-x: 0.35rem;
}

.webtoon-accessory-equilibrista {
  --accessory-rotation: 7deg;
  --accessory-start-rotation: 1deg;
  --accessory-start-x: -0.45rem;
}

.webtoon-accessory-matematico {
  --accessory-rotation: -6deg;
  --accessory-start-rotation: -1deg;
  --accessory-start-x: 0.3rem;
}

.webtoon-accessory-viaggiatrice {
  --accessory-rotation: 5deg;
  --accessory-start-rotation: 11deg;
  --accessory-start-x: -0.35rem;
}

.webtoon-accessory-musicista {
  --accessory-rotation: -7deg;
  --accessory-start-rotation: -10deg;
}

.webtoon-accessory-ragazzo {
  --accessory-rotation: 4deg;
  --accessory-start-rotation: -2deg;
  --accessory-start-x: 0.4rem;
}

.js .webtoon-accessory {
  opacity: 0;
}

.js .webtoon-panel.is-visible .webtoon-accessory {
  animation: accessory-arrival 820ms cubic-bezier(0.22, 1, 0.36, 1) 180ms both;
}

.js .webtoon-panel.is-visible .webtoon-accessory-musicista {
  animation-name: accessory-vibration;
}

@keyframes accessory-arrival {
  0% {
    opacity: 0;
    transform: translate3d(var(--accessory-start-x), -0.65rem, 0) rotate(var(--accessory-start-rotation));
  }

  68% {
    opacity: var(--accessory-opacity);
    transform: translate3d(0, 0.08rem, 0) rotate(var(--accessory-rotation));
  }

  100% {
    opacity: var(--accessory-opacity);
    transform: rotate(var(--accessory-rotation));
  }
}

@keyframes accessory-vibration {
  0% {
    opacity: 0;
    transform: translate3d(0, -0.65rem, 0) rotate(var(--accessory-start-rotation));
  }

  55% {
    opacity: var(--accessory-opacity);
    transform: translate3d(-0.12rem, 0, 0) rotate(-8deg);
  }

  72% {
    transform: translate3d(0.12rem, 0, 0) rotate(-6deg);
  }

  86% {
    transform: translate3d(-0.06rem, 0, 0) rotate(-7.5deg);
  }

  100% {
    opacity: var(--accessory-opacity);
    transform: rotate(var(--accessory-rotation));
  }
}

.webtoon-panel:nth-child(even) {
  margin-left: auto;
}

.webtoon-panel::before {
  position: absolute;
  top: -1px;
  left: -1px;
  width: 3.5rem;
  height: 3px;
  background: #e7b743;
  content: "";
}

.webtoon-panel-title {
  scroll-margin-top: 6rem;
  margin: 0 0 2rem;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(2rem, 5vw, 4.8rem);
  letter-spacing: -0.055em;
  line-height: 0.95;
}

.webtoon-verse {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.15rem, 2.15vw, 1.7rem);
  line-height: 1.45;
}

.webtoon-verse-line {
  display: block;
}

.webtoon-share {
  position: relative;
  z-index: 1;
  display: flex;
  margin-top: 2rem;
}

.webtoon-share-button {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(244, 242, 235, 0.58);
  border-radius: 999px;
  background: rgba(244, 242, 235, 0.08);
  color: var(--story-ink);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  line-height: 1;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.webtoon-share-button:hover {
  border-color: #e7b743;
  background: rgba(231, 183, 67, 0.12);
}

.webtoon-share-button.is-copied {
  border-color: #e7b743;
  background: #e7b743;
  color: #0b0d0f;
}

.webtoon-share-button .webtoon-share-icon {
  display: block;
  flex: 0 0 1.25rem;
  width: 1.25rem;
  height: 1.25rem;
  overflow: visible;
  fill: none;
  stroke: var(--story-ink);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.webtoon-share-button .webtoon-share-icon circle,
.webtoon-share-button .webtoon-share-icon path {
  vector-effect: non-scaling-stroke;
}

.webtoon-share-button.is-copied .webtoon-share-icon {
  stroke: #0b0d0f;
}

.webtoon-prose-line,
.webtoon-dialogue {
  max-width: 43rem;
  margin: 0 0 1.25rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.12rem, 1.7vw, 1.42rem);
  line-height: 1.58;
}

.webtoon-dialogue {
  width: fit-content;
  max-width: min(36rem, 92%);
  padding: 1.15rem 1.4rem;
  border: 1px solid var(--story-line);
  border-radius: 1.25rem 1.25rem 1.25rem 0.15rem;
}

.webtoon-dialogue:nth-child(even) {
  margin-left: auto;
  border-radius: 1.25rem 1.25rem 0.15rem 1.25rem;
}

.webtoon-separator {
  display: grid;
  place-items: center;
  min-height: 48svh;
  color: #e7b743;
  font-size: clamp(4rem, 12vw, 10rem);
  font-weight: 200;
}

.webtoon-visual {
  position: absolute;
  z-index: -1;
  height: auto;
  opacity: 0.14;
  pointer-events: none;
  mix-blend-mode: difference;
}

.webtoon-train {
  top: 18svh;
  right: -18vw;
  width: min(68rem, 74vw);
  opacity: 0.2;
  filter: invert(1) grayscale(1) contrast(1.3);
  mix-blend-mode: screen;
}

.webtoon-map {
  top: 0;
  left: -12vw;
  width: min(58rem, 56vw);
  opacity: 0.25;
  filter: invert(1) grayscale(1) contrast(1.35);
  mix-blend-mode: screen;
}

.webtoon-cap {
  top: 30svh;
  right: 4vw;
  width: min(30rem, 34vw);
}

.webtoon-scambio-act {
  display: block;
}

.webtoon-scambio-act .webtoon-act-intro {
  position: relative;
  top: auto;
  width: min(100%, 30rem);
}

.webtoon-full-scene {
  position: relative;
  display: grid;
  place-items: center;
  width: 100vw;
  min-height: clamp(36rem, 88svh, 64rem);
  margin: clamp(6rem, 14svh, 10rem) calc(50% - 50vw) clamp(8rem, 18svh, 14rem);
  overflow: hidden;
  border-block: 1px solid var(--story-line);
  background: var(--story-bg);
  isolation: isolate;
}

.webtoon-full-scene::before {
  position: absolute;
  z-index: 2;
  top: -1px;
  left: clamp(1rem, 6vw, 6rem);
  width: clamp(4rem, 12vw, 10rem);
  height: 3px;
  background: #e7b743;
  content: "";
}

.webtoon-full-scene-image {
  --split-scale: 1;
  --split-lift: 0px;
  width: min(94vw, 92rem);
  max-width: none;
  height: auto;
  opacity: 0.58;
  pointer-events: none;
  filter: invert(1) grayscale(1) contrast(1.3);
  mix-blend-mode: screen;
  transform: translate3d(0, var(--split-lift), 0) scaleX(var(--split-scale));
  transform-origin: center center;
}

.js .webtoon-full-scene:not(.is-split-complete) .webtoon-full-scene-image {
  will-change: transform;
}

.webtoon-full-scene.is-split-complete .webtoon-full-scene-image {
  will-change: auto;
}

.webtoon-scambio-act .webtoon-panel-stream {
  width: min(100%, 44rem);
  margin-left: auto;
  padding-top: 0;
}

.departure-board {
  align-self: start;
  min-width: 0;
  margin: 20svh 0 0;
  padding: clamp(0.7rem, 1.8vw, 1.35rem);
  border: 1px solid #343638;
  border-radius: 0.2rem;
  background: #090a0a;
  box-shadow: 0 1.75rem 5rem rgba(0, 0, 0, 0.34);
  color: #f4f2eb;
  font-family: "Source Sans 3", system-ui, sans-serif;
}

.departure-board-titlebar,
.departure-board-head,
.departure-route {
  display: grid;
  grid-template-columns: minmax(6.1rem, 0.72fr) minmax(10.8rem, 1.75fr) minmax(2.6rem, 0.3fr) minmax(7.8rem, 0.84fr);
  gap: clamp(0.45rem, 1vw, 0.85rem);
  align-items: center;
}

.departure-board-titlebar {
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 4.4rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid #3f4142;
}

.departure-board-titlebar strong {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(1.65rem, 3vw, 2.6rem);
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

.departure-board-titlebar span {
  color: #e7b743;
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-align: right;
  text-transform: uppercase;
}

.departure-board-head {
  min-height: 2.4rem;
  padding: 0.55rem 1rem;
  color: #aaa9a4;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.webtoon-route-board {
  padding: 0;
  margin: 0;
  border-top: 1px solid #343638;
  list-style: none;
}

.departure-row,
.departure-message {
  overflow: hidden;
  border-bottom: 1px solid #292b2c;
  background: linear-gradient(180deg, #141515 0 49%, #0c0d0d 50% 100%);
}

.departure-route {
  min-height: 3.65rem;
  padding: 0.75rem 1rem;
  color: #f4f2eb;
  font-size: clamp(1rem, 1.45vw, 1.16rem);
  font-variant-numeric: tabular-nums;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.15;
  text-decoration: none;
  text-shadow: none;
  text-transform: uppercase;
}

.departure-row.is-unavailable .departure-route {
  color: #85827a;
  cursor: not-allowed;
  text-shadow: none;
}

.departure-row a:hover,
.departure-row a:focus-visible {
  background: #e7b743;
  color: #0b0d0f;
  text-shadow: none;
}

.departure-destination {
  min-width: 0;
}

.departure-platform {
  justify-content: center;
}

.departure-section,
.departure-platform {
  color: #f2c04a;
}

.departure-status {
  color: #f4f2eb;
  font-size: 0.7em;
  flex-wrap: nowrap;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.departure-row a:hover .departure-status,
.departure-row a:focus-visible .departure-status {
  color: inherit;
}

.split-flap-text {
  display: flex;
  flex-wrap: wrap;
  gap: 0.08em 0;
  align-items: center;
  min-width: 0;
}

.split-flap-char {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 0.72em;
  height: 1.42em;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 1px;
  background: linear-gradient(180deg, #202222 0 48%, #101111 49% 100%);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.035), inset 0 -1px rgba(0, 0, 0, 0.6);
  line-height: 1;
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 1em;
  font-weight: 900;
  font-kerning: none;
  perspective: 8rem;
  transform-style: preserve-3d;
}

.split-flap-char::after {
  position: absolute;
  right: 0;
  bottom: 50%;
  left: 0;
  height: 1px;
  background: #050606;
  box-shadow: 0 1px rgba(255, 255, 255, 0.055);
  content: "";
}

.split-flap-face {
  display: block;
  transform: scaleX(1.08);
  transform-origin: center center;
  backface-visibility: hidden;
}

.split-flap-char.is-space {
  width: 0.44em;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.departure-section .split-flap-char,
.departure-destination .split-flap-char,
.departure-status .split-flap-char {
  width: auto;
  min-width: 0.48em;
  padding-inline: 0.015em;
}

.split-flap-char.is-space::after {
  display: none;
}

.departure-row a:hover .split-flap-char:not(.is-space),
.departure-row a:focus-visible .split-flap-char:not(.is-space) {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.departure-message {
  min-height: 2.55rem;
  padding: 0.72rem 1rem;
  color: #f2b63d;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-align: center;
  text-transform: uppercase;
}

.js .departure-board:not(.is-live) .split-flap-char:not(.is-space),
.js .departure-board:not(.is-live) .departure-message {
  opacity: 0.08;
}

.js .departure-board.is-live .split-flap-char:not(.is-space) {
  animation: split-flap-character 300ms steps(4, end) both;
  animation-delay: calc((var(--row-index) * 8ms) + (var(--char-index) * 3ms));
  transform-origin: center center;
}

.js .departure-board.is-live .departure-message {
  animation: departure-message-arrival 260ms steps(3, end) both;
  animation-delay: calc(var(--row-index) * 8ms);
}

@keyframes split-flap-character {
  0% {
    opacity: 0.08;
    transform: perspective(8rem) rotateX(-88deg) translateY(-0.24em);
  }

  52% {
    opacity: 0.72;
    transform: perspective(8rem) rotateX(18deg);
  }

  100% {
    opacity: 1;
    transform: none;
  }
}

@keyframes departure-message-arrival {
  from {
    opacity: 0.08;
  }

  to {
    opacity: 1;
  }
}

.webtoon-end {
  position: relative;
  display: grid;
  place-items: end center;
  min-height: 100svh;
  padding: 8rem 1rem 10svh;
  overflow: hidden;
  text-align: center;
  isolation: isolate;
}

.webtoon-end-rails {
  position: absolute;
  z-index: -1;
  top: 4svh;
  left: 50%;
  width: min(92rem, 128vw);
  height: auto;
  opacity: calc((1 - var(--end-rails-progress)) * 0.24);
  pointer-events: none;
  filter: grayscale(1) contrast(1.12);
  mix-blend-mode: multiply;
  transform: translateX(-50%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 16%, #000 66%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 16%, #000 66%, transparent 100%);
}

.webtoon-end-copy {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
}

.webtoon-end-copy > p:nth-child(2) {
  max-width: 10ch;
  margin: 0;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 0.92;
}

.webtoon-end-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 3rem;
}

.webtoon-end-actions a {
  display: inline-grid;
  place-items: center;
  min-height: 48px;
  padding: 0.8rem 1.25rem;
  border: 1px solid currentColor;
  text-decoration: none;
  font-weight: 800;
}

.webtoon-end-primary {
  background: #e7b743;
  color: #0b0d0f;
  border-color: #e7b743;
}

.webtoon-end-primary:hover {
  background: #0b0d0f;
  color: #f3f0e8;
  border-color: #0b0d0f;
}

.webtoon-end-primary:focus-visible {
  outline-color: #0b0d0f;
}

.webtoon-end-secondary {
  border-color: transparent !important;
  text-decoration: underline !important;
  text-underline-offset: 0.28em;
}

.webtoon-end-secondary:hover {
  border-color: currentColor !important;
  background: rgba(11, 13, 15, 0.05);
}

.js .webtoon-reveal {
  opacity: 0.07;
  transform: translate3d(0, 3.5rem, 0) scale(0.985);
  transition: opacity 720ms cubic-bezier(0.22, 1, 0.36, 1), transform 720ms cubic-bezier(0.22, 1, 0.36, 1);
}

.js .webtoon-reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 820px) {
  .webtoon-bar {
    grid-template-columns: 1fr auto;
    width: calc(100% - 1rem);
  }

  .webtoon-bar p {
    display: none;
  }

  .webtoon-sound-notice {
    grid-template-columns: minmax(0, 1fr);
  }

  .webtoon-hero-copy {
    width: calc(100% - 2rem);
  }

  .webtoon-hero h1 {
    font-size: clamp(4rem, 20vw, 7rem);
    line-height: 0.82;
  }

  .webtoon-instruction {
    right: 0.5rem;
    bottom: 3rem;
  }

  .webtoon-hero-rails {
    right: -56vw;
    width: 150vw;
    opacity: 0.32;
  }

  .webtoon-act {
    display: block;
    width: calc(100% - 2rem);
    min-height: auto;
    padding: 8rem 0 12rem;
  }

  .webtoon-act-intro {
    position: relative;
    top: auto;
  }

  .webtoon-act-intro h2 {
    max-width: 9ch;
    font-size: clamp(3.5rem, 18vw, 6.5rem);
  }

  .webtoon-panel-stream,
  .departure-board {
    margin-top: 6rem;
    padding-top: 0;
  }

  .webtoon-panel-stream {
    gap: 6rem;
  }

  .webtoon-panel {
    padding: 1.4rem;
  }

  .webtoon-accessory,
  .webtoon-panel:nth-child(even) .webtoon-accessory {
    --accessory-opacity: 0.3;
    top: -3.1rem;
    right: 0.25rem;
    left: auto;
    width: clamp(5rem, 24vw, 7rem);
  }

  .webtoon-accessory-echo {
    right: -1rem;
    bottom: 3.5rem;
    left: auto;
    width: clamp(6.5rem, 30vw, 9rem);
    opacity: calc(var(--accessory-echo-visibility) * 0.11);
  }

  .webtoon-end-rails {
    top: 12svh;
    width: 190vw;
  }

  .webtoon-end-actions {
    flex-direction: column;
    width: min(100%, 18rem);
  }

  .webtoon-end-actions a {
    width: 100%;
  }

  .departure-board {
    padding: 0.55rem;
  }

  .departure-board-titlebar,
  .departure-board-head,
  .departure-route {
    grid-template-columns: 5.15rem minmax(0, 1fr) 2.5rem;
    gap: 0.55rem;
  }

  .departure-route {
    font-size: 0.94rem;
  }

  .departure-board-titlebar {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.35rem;
  }

  .departure-board-titlebar span {
    text-align: left;
  }

  .departure-board-head span:last-child,
  .departure-status {
    display: none;
  }

  .departure-row.is-unavailable .departure-status {
    display: flex;
    grid-column: 2 / -1;
    font-size: 0.58rem;
    text-align: left;
  }

  .departure-board-head,
  .departure-route {
    padding-inline: 0.7rem;
  }

  .webtoon-visual {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    display: block;
    width: min(100%, 32rem);
    margin: 4rem auto -2rem;
    opacity: 0.12;
  }

  .webtoon-map {
    width: min(96vw, 36rem);
    margin-top: 2.5rem;
    opacity: 0.28;
  }

  .webtoon-train {
    width: min(110vw, 40rem);
    margin-left: -5vw;
    opacity: 0.22;
  }

  .webtoon-full-scene {
    min-height: 72svh;
    margin-top: 5rem;
    margin-bottom: 7rem;
  }

  .webtoon-full-scene-image {
    width: min(112vw, 42rem);
    opacity: 0.48;
  }
}

@media (max-width: 420px) {
  .webtoon-bar a,
  .webtoon-sound-toggle,
  .webtoon-progress-label {
    padding-inline: 0.45rem;
  }

  .webtoon-sound-toggle {
    gap: 0.3rem;
    font-size: 0.64rem;
  }

  .webtoon-sound-notice-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .webtoon-sound-notice button {
    width: 100%;
  }

  .webtoon-panel-title {
    font-size: clamp(2.4rem, 13vw, 4rem);
  }

  .webtoon-dialogue {
    max-width: 96%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  body.webtoon-page:not(.intent-page):not(.editorial-page) {
    transition: none;
  }

  .js .webtoon-reveal,
  .js .webtoon-reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .js .departure-board:not(.is-live) .split-flap-char,
  .js .departure-board:not(.is-live) .departure-message,
  .js .departure-board.is-live .split-flap-char,
  .js .departure-board.is-live .departure-message {
    opacity: 1;
    animation: none;
    transform: none;
  }

  .webtoon-hero-rails {
    transform: none;
  }

  .webtoon-full-scene-image {
    --split-scale: 1 !important;
    --split-lift: 0px !important;
    transform: none;
    will-change: auto;
  }

  .js .webtoon-accessory,
  .js .webtoon-panel.is-visible .webtoon-accessory {
    opacity: var(--accessory-opacity);
    animation: none;
    transform: rotate(var(--accessory-rotation));
  }

  .webtoon-accessory-layer {
    transition: none;
  }

  .webtoon-bar p,
  .webtoon-progress-label {
    transition: none;
  }

  .webtoon-sound-activity {
    transition: none;
  }

  .webtoon-sound-toggle[data-sound-active="true"] .webtoon-sound-activity > span {
    animation: none;
  }

  .webtoon-sound-toggle[data-sound-active="true"] .webtoon-sound-activity > span:nth-child(1) {
    transform: scaleY(0.38);
  }

  .webtoon-sound-toggle[data-sound-active="true"] .webtoon-sound-activity > span:nth-child(2) {
    transform: scaleY(0.68);
  }

  .webtoon-sound-toggle[data-sound-active="true"] .webtoon-sound-activity > span:nth-child(3) {
    transform: scaleY(0.5);
  }

  .webtoon-accessory-echo {
    transition: none;
  }

  .webtoon-end-rails {
    opacity: 0.12;
  }
}
