* {
  box-sizing: border-box;
}

@font-face {
  font-family: "Caveat";
  src: url(./assets/fonts/Caveat/Caveat-Bold.ttf) format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "FunnelSans";
  src: url(./assets/fonts/FunnelSans/FunnelSans-VariableFont_wght.ttf)
    format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "FunnelSans";
  src: url(./assets/fonts/FunnelSans/FunnelSans-Italic-VariableFont_wght.ttf)
    format("truetype");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --scale: 1;
  --offset-x: 0px;
  --offset-y: 0px;
  --ui-scale: 1;
  --ui-scale-inv: 1;
  --marker-width: 219px;
  --marker-height: 235px;
  --btn-size: 180px;
  --playlist-width: clamp(720px, 38vw, 980px);
  --playlist-gap: 28px;
  --playlist-offset: 20px;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
}

body.onboarding-open {
  overflow: hidden;
}

body.onboarding-open .stage,
body.onboarding-open .route-menu,
body.onboarding-open .modal {
  pointer-events: none;
}

body.device-blocked .onboarding {
  display: none;
}

.onboarding {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9998;
  font-family: "Caveat", cursive;
  color: #084887;
}

.onboarding.is-open {
  display: flex;
}

.onboarding-shell {
  position: relative;
  z-index: 10;
  transform: scale(var(--ui-scale));
  transform-origin: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.onboarding-backdrop {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(6px);
  --hole-x: 0px;
  --hole-y: 0px;
  --hole-w: 0px;
  --hole-h: 0px;
  -webkit-mask:
    linear-gradient(#000 0 0) 0 0 / 100% 100% no-repeat,
    linear-gradient(#000 0 0) var(--hole-x) var(--hole-y) /
      var(--hole-w) var(--hole-h) no-repeat;
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) 0 0 / 100% 100% no-repeat,
    linear-gradient(#000 0 0) var(--hole-x) var(--hole-y) /
      var(--hole-w) var(--hole-h) no-repeat;
  mask-composite: exclude;
}

.onboarding-highlight {
  position: fixed;
  border: 3px solid #ea3364;
  border-radius: 20px;
  opacity: 0;
  transition: opacity 200ms, transform 200ms, width 200ms, height 200ms;
  pointer-events: none;
  z-index: 2;
}

.onboarding-card {
  position: relative;
  z-index: 2;
  width: min(calc(98vw * var(--ui-scale-inv)), 1760px);
  max-height: min(calc(92vh * var(--ui-scale-inv)), 2160px);
  overflow: auto;
  padding: 92px 110px 86px;
  border: 4px solid #084887;
  border-radius: 28px;
  background: #fff;
  box-shadow: 25px 25px 0 rgba(8, 72, 135, 1);
  text-align: center;
}

.onboarding-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 3px solid #084887;
  background: #fff;
  color: #084887;
  font-size: 56px;
  line-height: 1;
  cursor: pointer;
}

.onboarding-close.is-hidden {
  display: none;
}

.onboarding-card.is-center {
  transform: translate(0, 0);
}

.onboarding-card.is-center-right {
  transform: translate(80px, 0);
}

.onboarding-card.is-vertical {
  width: min(1180px, 96vw);
}

.onboarding-card.is-vertical .onboarding-actions {
  flex-direction: column;
  align-items: stretch;
  gap: 32px;
}

.onboarding-card.is-vertical .onboarding-nav {
  width: 100%;
  justify-content: center;
  margin-left: 0;
  gap: 40px;
}

.onboarding-card.is-vertical .onboarding-skip,
.onboarding-card.is-vertical .onboarding-prev,
.onboarding-card.is-vertical .onboarding-next,
.onboarding-card.is-vertical .onboarding-done {
  width: 100%;
  justify-content: center;
}

.onboarding-card.is-first .onboarding-actions {
  flex-direction: row;
  justify-content: center;
  width: 100%;
  gap: 60px;
}

.onboarding-card.is-first .onboarding-nav {
  width: auto;
  justify-content: flex-end;
}

.onboarding-step {
  font-size: 64px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 60px;
}

.onboarding-title {
  font-size: 150px;
  margin: 0 0 60px;
  line-height: 1;
  text-align: center;
}

.onboarding-text {
  font-size: 65px;
  margin: 0 0 60px;
  line-height: 1.2;
  font-family: "FunnelSans", sans-serif;
  text-align: left;
}

.onboarding-audio {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin: 0 0 80px;
}

.onboarding-audio-btn {
  width: 140px;
  height: 140px;
  border: 0;
  padding: 0;
  background: transparent;
  transform: translateY(var(--btn-shift, 0px));
}

.onboarding-audio-btn img {
  width: 100%;
  height: 100%;
  display: block;
}

.onboarding-audio-btn.is-hidden {
  display: none;
}

.onboarding-present-toggle {
  border: 3px solid #084887;
  background: #f4f9ff;
  color: #084887;
  font-family: "Caveat", cursive;
  font-size: 70px;
  line-height: 1;
  padding: 24px 48px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 8px 8px 0 rgba(8, 72, 135, 1);
  transition: transform 200ms, box-shadow 200ms;
}

.onboarding-present-toggle:hover {
  transform: translateY(2px);
  box-shadow: 4px 4px 0 rgba(8, 72, 135, 1);
}

.onboarding-present-toggle:active {
  transform: translateY(4px);
  box-shadow: none;
}

.onboarding-present-toggle.is-hidden {
  display: none;
}

.onboarding-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.onboarding-nav {
  display: flex;
  align-items: center;
  gap: 60px;
  margin-left: 0;
  justify-content: center;
  width: 100%;
}

.onboarding-skip,
.onboarding-prev,
.onboarding-next,
.onboarding-done {
  border: 3px solid #084887;
  background: #f4f9ff;
  color: #084887;
  font-family: "Caveat", cursive;
  font-size: 76px;
  line-height: 1;
  padding: 32px 56px;
  border-radius: 999px;
  cursor: pointer;
  width: 560px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 8px 8px 0 rgba(8, 72, 135, 1);
  transition: transform 200ms, box-shadow 200ms;
}

.onboarding-next,
.onboarding-done {
  border-color: #087f4e;
  background: #f4f9ff;
  color: #087f4e;
  box-shadow: 8px 8px 0 #087f4e;
}

.onboarding-skip:hover,
.onboarding-prev:hover,
.onboarding-next:hover,
.onboarding-done:hover {
  transform: translateY(2px);
  box-shadow: 4px 4px 0 rgba(8, 72, 135, 1);
}

.onboarding-next:hover,
.onboarding-done:hover {
  box-shadow: 4px 4px 0 #087f4e;
}

.onboarding-skip:active,
.onboarding-prev:active,
.onboarding-next:active,
.onboarding-done:active {
  transform: translateY(4px);
  box-shadow: none;
}

.onboarding-skip.is-hidden {
  display: none;
}

.onboarding-prev:disabled {
  opacity: 0.5;
  cursor: default;
  box-shadow: none;
  transform: none;
}

body.device-blocked {
  overflow: hidden;
}

body.device-blocked .stage,
body.device-blocked .route-menu,
body.device-blocked .modal {
  display: none;
}

.device-blocker {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: #f4f9ff;
  text-align: center;
  z-index: 9999;
}

body.device-blocked .device-blocker {
  display: flex;
}

.device-blocker-card {
  max-width: 720px;
  padding: 32px 36px;
  border: 4px solid #084887;
  border-radius: 28px;
  background: #fff;
  box-shadow: 12px 12px 0 rgba(8, 72, 135, 1);
  font-family: "Caveat", cursive;
  color: #084887;
}

.device-blocker-card h1 {
  font-size: 64px;
  margin: 0 0 12px;
  line-height: 1;
}

.device-blocker-card p {
  font-size: 36px;
  margin: 0;
  line-height: 1.2;
}

.stage {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.scene {
  position: absolute;
  inset: 0;
  min-width: 0;
  min-height: 0;
}

.artboard {
  position: absolute;
  left: var(--offset-x);
  top: var(--offset-y);
  width: 3840px;
  height: 2160px;
  transform: scale(var(--scale));
  transform-origin: top left;
  z-index: 1;
}

.foreground {
  position: absolute;
  left: var(--offset-x);
  top: var(--offset-y);
  width: 3840px;
  height: 2160px;
  transform: scale(var(--scale));
  transform-origin: top left;
  z-index: 3;
  pointer-events: none;
}

.route-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.route-path {
  fill: none;
  stroke: var(--route-color, #084887);
  stroke-width: var(--route-width, 12);
  stroke-dasharray: var(--route-dash, 24 40);
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.85;
}

.route-reveal {
  fill: none;
  stroke: #fff;
  stroke-width: var(--route-width, 12);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.route-static {
  transition: stroke 350ms ease, opacity 350ms ease;
}

.markers {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.map {
  position: absolute;
  left: 494.5px;
  top: 218.4px;
  display: block;
  max-width: none;
  width: 2869.1px;
  height: 1902.2px;
}

.compass {
  position: absolute;
  transform: translate(-50%, -50%);
  transform-origin: center;
  left: 3360px;
  top: 688px;
  display: block;
  max-width: none;
  width: 656px;
  height: 717px;
}

.overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 2;
}

.subtitle {
  position: absolute;
  left: 2012.3px;
  top: 111.8px;
  transform: translate(-50%, -50%) rotate(-2deg);
  transform-origin: center;
  font-family: "Caveat", cursive;
  font-weight: 700;
  font-size: 160px;
  line-height: 1;
  color: #094887;
  white-space: nowrap;
  margin: 0;
}

.subtitle-2 {
  position: absolute;
  left: 2093.4px;
  top: 275.3px;
  transform: translate(-50%, -50%) rotate(-2deg);
  transform-origin: center;
  font-family: "Caveat", cursive;
  font-weight: 700;
  font-size: 160px;
  line-height: 1;
  color: #3c91e6;
  white-space: nowrap;
  margin: 0;
}

.company {
  position: absolute;
  left: 3430px;
  top: 1532.4px;
  transform: translate(-50%, -50%) rotate(5deg);
  transform-origin: center;
  font-family: "Caveat", cursive;
  font-weight: 700;
  font-size: 100px;
  line-height: 1;
  color: #094887;
  white-space: nowrap;
  margin: 0;
}

.company-and {
  position: absolute;
  left: 3420.9px;
  top: 1635.9px;
  transform: translate(-50%, -50%) rotate(5deg);
  transform-origin: center;
  font-family: "Caveat", cursive;
  font-weight: 700;
  font-size: 100px;
  line-height: 1;
  color: #094887;
  white-space: nowrap;
  margin: 0;
}

.company-name {
  position: absolute;
  left: 3217.4px;
  top: 1618.1px;
  transform: translate(-50%, -50%) rotate(5deg);
  transform-origin: center;
  font-family: "Caveat", cursive;
  font-weight: 700;
  font-size: 100px;
  line-height: 1;
  color: #82307c;
  white-space: nowrap;
  margin: 0;
}

.company-name-2 {
  position: absolute;
  left: 3641.7px;
  top: 1655.2px;
  transform: translate(-50%, -50%) rotate(5deg);
  transform-origin: center;
  font-family: "Caveat", cursive;
  font-weight: 700;
  font-size: 100px;
  line-height: 1;
  color: #ea3364;
  white-space: nowrap;
  margin: 0;
}

.arrow-b {
  position: absolute;
  left: 2990.6px;
  top: 1540px;
  transform: translate(-50%,-50%);
  transform-origin: center;
  display: block;
}

.arrow-g {
  position: absolute;
  left: 3564.9px;
  top: 1872.6px;
  transform: translate(-50%,-50%);
  transform-origin: center;
  display: block;
}

.home-footer {
  /* Le bandeau suit la fenêtre, indépendamment du canevas 3840 × 2160. */
  --footer-scale: clamp(0.32, var(--scale), 0.6);
  --footer-inset: clamp(12px, calc(100px * var(--scale)), 50px);
  position: absolute;
  left: var(--footer-inset);
  bottom: clamp(12px, calc(40px * var(--scale)), 24px);
  width: min(
    max(440px, calc(1400px * var(--footer-scale))),
    calc(100% - 2 * var(--footer-inset))
  );
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border: calc(4px * var(--footer-scale)) solid #084887;
  border-radius: calc(24px * var(--footer-scale));
  box-shadow: calc(10px * var(--footer-scale))
    calc(10px * var(--footer-scale)) 0 rgba(8, 72, 135, 1);
  padding: calc(22px * var(--footer-scale))
    calc(28px * var(--footer-scale)) calc(18px * var(--footer-scale));
  display: flex;
  flex-direction: column;
  gap: calc(16px * var(--footer-scale));
  z-index: 5;
  pointer-events: auto;
  box-sizing: border-box;
}

.home-mention p {
  margin: 0 0 calc(8px * var(--footer-scale));
  font-family: "FunnelSans", sans-serif;
  font-size: max(11px, calc(24px * var(--footer-scale)));
  line-height: 1.35;
  color: #084887;
}

.home-mention p:last-child {
  margin-bottom: 0;
}

.home-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: calc(30px * var(--footer-scale));
  padding-top: calc(14px * var(--footer-scale));
  border-top: 1px dashed rgba(8, 72, 135, 0.25);
}

.home-logo {
  object-fit: contain;
  display: block;
  flex: 0 0 auto;
  max-width: 100%;
  width: auto;
}

.home-logo.logo-drac {
  height: calc(90px * var(--footer-scale));
}

.home-logo.logo-laval {
  height: calc(82px * var(--footer-scale));
}

.home-logo.logo-bib {
  height: calc(94px * var(--footer-scale));
}

.home-logo.logo-iut {
  height: calc(70px * var(--footer-scale));
}

/* Aux faibles hauteurs (dont le zoom 200 %), les logos ont leur propre ligne. */
@media (max-height: 600px) {
  .stage {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    row-gap: 8px;
  }

  .scene {
    position: relative;
    inset: auto;
    grid-row: 1;
  }

  .home-footer {
    position: relative;
    grid-row: 2;
    left: auto;
    bottom: auto;
    margin: 0 0 12px var(--footer-inset);
  }
}

.bretelle-img {
  position: absolute;
  left: 2980px;
  top: 1866.1px;
  transform: translate(-50%,-50%);
  transform-origin: center;
  display: block;
  max-width: none;
  height: auto;
  z-index: 2;
}

.garance-img {
  position: absolute;
  left: 3274.9px;
  top: 1921px;
  transform: translate(-50%,-50%);
  transform-origin: center;
  display: block;
  max-width: none;
  height: auto;
  z-index: 1;
}

.info-btn {
  position: absolute;
  left: 180px;
  top: 692.7px;
  transform: translate(-50%, -50%) translateY(var(--btn-shift, 0px));
  display: block;
  max-width: none;
  width: var(--btn-size);
  height: var(--btn-size);
}

.btn-press {
  --btn-shift: 0px;
  filter: drop-shadow(8px 8px 0 rgba(8, 72, 135, 1));
  transition: all 200ms;
  color: #084887;
  pointer-events: auto;
  cursor: pointer;
}

.btn-press:hover {
  --btn-shift: 4px;
  filter: drop-shadow(4px 4px 0 rgba(8, 72, 135, 1));
}

.btn-press:active {
  --btn-shift: 8px;
  filter: none;
}

.marker-press {
  transition: margin-top 200ms;
  pointer-events: auto;
  cursor: pointer;
}

.marker-press:hover {
  margin-top: 4px;
  transform: translate(-50%, -50%) scale(1.18);
}

.marker-press:active {
  margin-top: 8px;
  transform: translate(-50%, -50%) scale(1.24);
}

.btn-press {
  border-radius: 50%;
}

.menu-toggle {
  position: absolute;
  left: 3660px;
  top: 180px;
  transform: translate(-50%, -50%) translateY(var(--btn-shift, 0px));
  width: var(--btn-size);
  height: var(--btn-size);
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
}

.menu-icon {
  display: block;
  width: 100%;
  height: 100%;
}

.screen-toggle {
  position: absolute;
  left: 180px;
  top: 1152.7px;
  transform: translate(-50%, -50%) translateY(var(--btn-shift, 0px));
  width: var(--btn-size);
  height: var(--btn-size);
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
}

.screen-icon {
  display: block;
  width: 100%;
  height: 100%;
}

.volume-toggle {
  position: absolute;
  left: 180px;
  top: 922.7px;
  transform: translate(-50%, -50%) translateY(var(--btn-shift, 0px));
  width: var(--btn-size);
  height: var(--btn-size);
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
}

.volume-icon {
  display: block;
  width: 100%;
  height: 100%;
}

.ui-toggle {
  position: absolute;
  left: 180px;
  top: 1382.7px;
  transform: translate(-50%, -50%) translateY(var(--btn-shift, 0px));
  width: var(--btn-size);
  height: var(--btn-size);
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
}

.ui-icon {
  display: block;
  width: 100%;
  height: 100%;
}

body.ui-hidden .info-btn,
body.ui-hidden .menu-toggle,
body.ui-hidden .screen-toggle,
body.ui-hidden .volume-toggle,
body.ui-hidden .home-footer {
  display: none;
}

body.ui-hidden .ui-toggle {
  left: 180px;
  top: 692.7px;
}

.audio-hint {
  position: absolute;
  left: 300px;
  top: 922.7px;
  transform: translateY(-50%) translateY(var(--btn-shift, 0px));
  display: none;
  align-items: center;
  padding: 10px 24px;
  border: 4px solid #084887;
  border-radius: 999px;
  background: #fff;
  font-family: "Caveat", cursive;
  font-weight: 700;
  font-size: 64px;
  line-height: 1;
  color: #084887;
  white-space: nowrap;
  filter: drop-shadow(8px 8px 0 rgba(8, 72, 135, 1));
  transition: all 200ms;
  pointer-events: auto;
}

.audio-hint:hover {
  --btn-shift: 4px;
  filter: drop-shadow(4px 4px 0 rgba(8, 72, 135, 1));
}

.audio-hint:active {
  --btn-shift: 8px;
  filter: none;
}

body.audio-blocked .audio-hint {
  display: inline-flex;
}

body.ui-hidden .audio-hint {
  display: none;
}

.route-menu {
  --menu-size: calc(var(--btn-size) * var(--scale, 0.5));
  position: fixed;
  top: 90px;
  right: 90px;
  width: calc(var(--menu-size) * 4.4);
  max-width: calc(100vw - var(--menu-size));
  padding: calc(var(--menu-size) * 0.26) calc(var(--menu-size) * 0.33)
    calc(var(--menu-size) * 0.35);
  border: max(3px, calc(var(--menu-size) * 0.044)) solid #084887;
  border-radius: max(16px, calc(var(--menu-size) * 0.26));
  background: #fff;
  box-shadow: max(6px, calc(var(--menu-size) * 0.16))
    max(6px, calc(var(--menu-size) * 0.16)) 0 rgba(8, 72, 135, 1);
  font-family: "Caveat", cursive;
  color: #084887;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: all 200ms;
  z-index: 9;
}

.route-menu-header {
  font-size: calc(var(--menu-size) * 0.58);
  line-height: 1;
  margin-bottom: calc(var(--menu-size) * 0.16);
}

.route-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: calc(var(--menu-size) * 0.16);
}

.route-option {
  width: 100%;
  padding: calc(var(--menu-size) * 0.18) calc(var(--menu-size) * 0.32);
  border: max(2px, calc(var(--menu-size) * 0.045)) solid #084887;
  border-radius: 999px;
  background: #f4f9ff;
  font-family: "Caveat", cursive;
  font-size: calc(var(--menu-size) * 0.48);
  line-height: 1;
  color: #084887;
  text-align: left;
  cursor: pointer;
  box-shadow: max(4px, calc(var(--menu-size) * 0.11))
    max(4px, calc(var(--menu-size) * 0.11)) 0 rgba(8, 72, 135, 1);
  transition: transform 200ms, box-shadow 200ms;
}

.route-option:hover {
  transform: translateY(2px);
  box-shadow: max(2px, calc(var(--menu-size) * 0.06))
    max(2px, calc(var(--menu-size) * 0.06)) 0 rgba(8, 72, 135, 1);
}

.route-option.is-active {
  background: #084887;
  color: #fff;
}

body.menu-open .route-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

body.ui-hidden .route-menu {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  font-family: "Caveat", cursive;
  z-index: 10;
  padding: 24px;
  box-sizing: border-box;
}

.modal.is-open {
  display: flex;
}

.modal-shell {
  transform: scale(var(--ui-scale));
  transform-origin: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.credits-open {
  overflow: hidden;
}

body.credits-open .stage,
body.credits-open .route-menu,
body.credits-open .modal {
  pointer-events: none;
}

.credits {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  font-family: "Caveat", cursive;
  z-index: 12;
  padding: 0 24px;
  box-sizing: border-box;
  color: #084887;
}

.credits.is-open {
  display: flex;
}

.credits-shell {
  transform: scale(var(--ui-scale));
  transform-origin: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.credits-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(10px);
  z-index: 0;
}

.credits-card {
  position: relative;
  z-index: 1;
  width: min(calc(98vw * var(--ui-scale-inv)), 2100px);
  max-height: min(calc(80vh * var(--ui-scale-inv)), 2160px);
  overflow: auto;
  padding: 80px 90px 70px;
  border: 4px solid #084887;
  border-radius: 28px;
  background: #fff;
  box-shadow: 25px 25px 0 rgba(8, 72, 135, 1);
}

.credits-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 3px solid #084887;
  background: #fff;
  color: #084887;
  font-size: 50px;
  line-height: 1;
  cursor: pointer;
}

.credits-title {
  margin: 0 0 60px;
  font-size: 132px;
  line-height: 1;
}

.credits-text p {
  margin: 0 0 40px;
  font-size: 65px;
  line-height: 1.2;
  font-family: "FunnelSans", sans-serif;
}

.credits-text p:last-child {
  margin-bottom: 10px;
}

.credits-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  margin-top: 60px;
  flex-wrap: wrap;
  break-inside: avoid;
}

.credits-logos img {
  height: 110px;
  width: auto;
  max-width: 22%;
  object-fit: contain;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(10px);
  z-index: 0;
}

.modal-layout {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: var(--playlist-gap);
  z-index: 1;
  width: min(calc(96vw * var(--ui-scale-inv)), 3840px);
  height: min(calc(90vh * var(--ui-scale-inv)), 2160px);
}

.modal-card {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  height: 100%;
  max-height: none;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 70px 80px 64px;
  border: 4px solid #084887;
  border-radius: 28px;
  background: #fff;
  box-shadow: 12px 12px 0 rgba(8, 72, 135, 1);
  color: #084887;
}

.modal-playlist {
  width: var(--playlist-width);
  flex: 0 0 var(--playlist-width);
  min-width: var(--playlist-width);
  height: 100%;
  max-height: none;
  overflow: auto;
  padding: 28px;
  border: 4px solid #084887;
  border-radius: 28px;
  background: #f4f9ff;
  box-shadow: 16px 16px 0 rgba(8, 72, 135, 1);
  color: #084887;
}

.modal-playlist-panel {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  z-index: 1;
}

.modal-playlist-title {
  font-size: 78px;
  line-height: 1;
  margin: 0 0 24px;
}

.modal-playlist-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.playlist-item {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 18px 84px 18px 24px;
  border: 4px solid #084887;
  border-radius: 24px;
  background: #fff;
  font-family: "Caveat", cursive;
  font-size: 60px;
  line-height: 1;
  color: #084887;
  text-align: left;
  cursor: pointer;
  box-shadow: 10px 10px 0 rgba(8, 72, 135, 1);
  transition: transform 200ms, box-shadow 200ms;
  position: relative;
}

.playlist-item.is-viewed::after {
  content: "\2713";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 3px solid #084887;
  background: #0ead69;
  color: #fff;
  font-family: "Caveat", cursive;
  font-size: 36px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 4px 4px 0 rgba(8, 72, 135, 1);
}

.playlist-item > span {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
}

.playlist-item.is-active.is-viewed::after {
  background: #fff;
  color: #084887;
}

.playlist-item:hover {
  transform: translateY(2px);
  box-shadow: 6px 6px 0 rgba(8, 72, 135, 1);
}

.playlist-item.is-active {
  background: #084887;
  color: #fff;
}

.playlist-thumb {
  width: 220px;
  height: 124px;
  border-radius: 20px;
  border: 4px solid #084887;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}

.playlist-item.is-active .playlist-thumb {
  border-color: #fff;
}

@media (max-width: 1200px) {
  .modal {
    --playlist-width: 720px;
    --playlist-gap: 20px;
  }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 3px solid #084887;
  background: #fff;
  color: #084887;
  font-size: 64px;
  line-height: 1;
  cursor: pointer;
}

.modal-route {
  margin: 0 0 8px;
  font-size: 76px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.modal-title {
  margin: 0 0 10px;
  font-size: 170px;
  line-height: 1;
}

.modal-description {
  margin: 0 0 18px;
  font-size: 90px;
  font-family: "FunnelSans", sans-serif;
}

.modal-video-wrap {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
}

.player-status {
  --status-inverse: var(--ui-scale-inv);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(16px * var(--status-inverse));
  pointer-events: none;
  z-index: 5;
}

.player-status[hidden],
.player-retry[hidden] {
  display: none;
}

.player-status-card {
  max-width: min(100%, calc(600px * var(--status-inverse)));
  padding: calc(14px * var(--status-inverse))
    calc(18px * var(--status-inverse));
  border: calc(2px * var(--status-inverse)) solid #084887;
  border-radius: calc(12px * var(--status-inverse));
  background: #fff;
  color: #084887;
  font: 500 calc(14px * var(--status-inverse))/1.4 "FunnelSans", sans-serif;
  text-align: center;
}

.player-status-text {
  margin: 0;
}

.player-retry {
  margin-top: calc(12px * var(--status-inverse));
  padding: calc(8px * var(--status-inverse))
    calc(16px * var(--status-inverse));
  min-height: calc(40px * var(--status-inverse));
  border: calc(2px * var(--status-inverse)) solid #084887;
  border-radius: calc(8px * var(--status-inverse));
  background: #f4f9ff;
  color: #084887;
  font: inherit;
  cursor: pointer;
  pointer-events: auto;
}

.player-retry:focus-visible {
  outline: calc(2px * var(--status-inverse)) solid #084887;
  outline-offset: calc(4px * var(--status-inverse));
}

.modal-video-wrap:fullscreen .player-status {
  --status-inverse: 1;
}

.modal-video {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  border: 3px solid #084887;
  display: block;
  object-fit: contain;
  background: #000;
}

.modal-video.is-placeholder {
  min-height: 0;
  background: #f4f9ff;
}

.player-controls {
  --player-pad-x: 24px;
  --player-pad-y: 20px;
  --player-radius: 28px;
  --player-shadow: 12px;
  --player-btn-size: 86px;
  --player-time-size: 44px;
  --player-volume-width: 240px;
  --player-volume-height: 14px;
  --player-progress-height: 14px;
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: var(--player-pad-y) var(--player-pad-x);
  border: 2px solid #084887;
  border-radius: var(--player-radius);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--player-shadow) var(--player-shadow) 0 rgba(8, 72, 135, 1);
  font-family: "Caveat", cursive;
  color: #084887;
  pointer-events: auto;
  z-index: 2;
  transition: opacity 200ms;
}

.player-controls.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.player-controls-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  width: 100%;
}

.player-left,
.player-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.player-left {
  gap: 28px;
  grid-column: 2;
  justify-content: center;
  justify-self: center;
}

.player-right {
  grid-column: 3;
  justify-content: flex-end;
  justify-self: end;
}

.player-time {
  font-size: var(--player-time-size);
  line-height: 1;
  white-space: nowrap;
}

.player-btn {
  width: var(--player-btn-size);
  height: var(--player-btn-size);
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 200ms;
}

.player-btn:hover {
  transform: translateY(2px);
}

.player-btn:active {
  transform: translateY(4px);
}

.player-btn:disabled {
  opacity: 0.4;
  cursor: default;
  transform: none;
}

.player-icon {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.player-volume {
  display: flex;
  align-items: center;
  gap: 8px;
}

.player-volume-slider {
  position: relative;
  width: var(--player-volume-width);
  height: var(--player-volume-height);
}

.player-volume-track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 2px solid #084887;
  background: #f4f9ff;
  overflow: hidden;
}

.player-volume-fill {
  height: 100%;
  width: 100%;
  background: #084887;
  transform: scaleX(0.8);
  transform-origin: left;
}

.player-volume-input {
  position: absolute;
  inset: -6px 0;
  width: 100%;
  height: calc(var(--player-volume-height) + 12px);
  opacity: 0;
  cursor: pointer;
}

.player-progress {
  position: relative;
  height: var(--player-progress-height);
}

.player-progress-track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 2px solid #084887;
  background: #f4f9ff;
  overflow: hidden;
}

.player-progress-fill {
  height: 100%;
  width: 100%;
  background: #ea3364;
  transform: scaleX(0);
  transform-origin: left;
}

.player-progress-input {
  position: absolute;
  inset: -6px 0;
  width: 100%;
  height: calc(var(--player-progress-height) + 12px);
  opacity: 0;
  cursor: pointer;
}

.modal-video-wrap:fullscreen {
  width: 100%;
  height: 100%;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  overscroll-behavior: none;
}

.modal-video-wrap:fullscreen .modal-video {
  width: 100%;
  height: 100%;
  border-radius: 0;
  border: 0;
  object-fit: contain;
}

.modal-video-wrap:fullscreen .player-controls {
  left: 50%;
  right: auto;
  bottom: calc(120px * var(--ui-scale));
  width: min(1700px, calc(100% - calc(180px * var(--ui-scale))));
  transform: translateX(-50%) scale(var(--ui-scale));
  transform-origin: center bottom;
  --player-pad-x: 34px;
  --player-pad-y: 42px;
  --player-radius: 34px;
  --player-shadow: 14px;
  --player-btn-size: 104px;
  --player-time-size: 58px;
  --player-volume-width: 300px;
  --player-volume-height: 18px;
  --player-progress-height: 18px;
}

.modal-video-wrap:fullscreen .player-controls {
  gap: 34px;
}

.modal-video-wrap:fullscreen .video-next {
  right: calc(80px * var(--ui-scale));
  bottom: calc(300px * var(--ui-scale));
  transform: scale(calc(1.50 * var(--ui-scale)));
  transform-origin: right bottom;
}

.video-next {
  position: absolute;
  right: 48px;
  bottom: 220px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px 26px;
  border: 4px solid #084887;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 14px 14px 0 rgba(8, 72, 135, 1);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms;
  z-index: 3;
}

.video-next.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.video-next-btn {
  border: 0;
  background: #084887;
  color: #fff;
  font-family: "Caveat", cursive;
  font-size: 50px;
  line-height: 1;
  padding: 14px 24px;
  border-radius: 999px;
  cursor: pointer;
}

.video-next-bar {
  width: 100%;
  height: 14px;
  border-radius: 999px;
  background: #f4f9ff;
  border: 3px solid #084887;
  overflow: hidden;
}

.video-next-bar-fill {
  height: 100%;
  width: 100%;
  background: #ea3364;
  transform: scaleX(0);
  transform-origin: left;
}

.marker {
  position: absolute;
  transform: translate(-50%, -50%);
  display: block;
  max-width: none;
  width: var(--marker-width, 219px);
  height: var(--marker-height, 235px);
  margin: 0;
  border: 0;
  padding: 0;
  background: transparent;
}

.marker img {
  display: block;
  width: 100%;
  height: 100%;
}

.marker.is-viewed::after {
  content: "\2713";
  position: absolute;
  right: -10px;
  top: -12px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 4px solid #084887;
  background: #0ead69;
  color: #fff;
  font-family: "Caveat", cursive;
  font-size: 44px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 6px 6px 0 rgba(8, 72, 135, 1);
  pointer-events: none;
}

.marker.is-inactive.is-viewed::after {
  background: #9aa0a6;
}

.marker.marker-start {
  animation: markerStartPulse 1.2s ease-in-out infinite;
}

@keyframes markerStartPulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    filter: drop-shadow(0 0 0 rgba(234, 51, 100, 0));
  }
  50% {
    transform: translate(-50%, -50%) scale(1.18);
    filter: drop-shadow(0 0 18px rgba(234, 51, 100, 0.6));
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    filter: drop-shadow(0 0 0 rgba(234, 51, 100, 0));
  }
}

.marker-tooltip {
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(-50%, -100%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 24px;
  border: 3px solid #084887;
  border-radius: 18px;
  background: #fff;
  box-shadow: 8px 8px 0 rgba(8, 72, 135, 1);
  font-family: "Caveat", cursive;
  color: #084887;
  opacity: 0;
  pointer-events: none;
  transition: opacity 150ms;
  z-index: 4;
}

.marker-tooltip.is-visible {
  opacity: 1;
}

.marker-tooltip-thumb {
  width: 420px;
  height: 236px;
  border-radius: 12px;
  border: 3px solid #084887;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}

.marker-tooltip-title {
  font-size: 56px;
  line-height: 1;
  white-space: nowrap;
}

.marker.is-inactive {
  filter: grayscale(1);
  opacity: 0.75;
  pointer-events: none;
  cursor: default;
}

.marker-1 {
  left: 1005.9px;
  top: 443.1px;
}

.marker-2 {
  left: 767.3px;
  top: 791.1px;
}

.marker-3 {
  left: 1232.4px;
  top: 717.4px;
}

.marker-4 {
  left: 1861.3px;
  top: 638.3px;
}

.marker-5 {
  left: 2353.2px;
  top: 785px;
}

.marker-6 {
  left: 2709px;
  top: 992.6px;
}

.marker-7 {
  left: 3020.5px;
  top: 1208px;
}

.marker-8 {
  left: 2404.7px;
  top: 1234.5px;
}

.marker-9 {
  left: 2314.2px;
  top: 1815.1px;
}

.marker-10 {
  left: 1731.1px;
  top: 1621.6px;
}

.marker-11 {
  left: 1731.1px;
  top: 1152.9px;
}

.marker-12 {
  left: 1232.4px;
  top: 1225.1px;
}

.marker-13 {
  left: 843.4px;
  top: 1374.5px;
}
