/*
 * V5 voyage layer: one continuous dragon-boat journey over the lake.
 * Existing gameplay, level and save contracts remain intact beneath this UI.
 */

:root {
  --voyage-ink: #103f46;
  --voyage-deep: #062f36;
  --voyage-jade: #087f72;
  --voyage-cinnabar: #cf452d;
  --voyage-gold: #d9aa48;
  --voyage-paper: rgba(255, 253, 239, 0.94);
  --voyage-glass: rgba(245, 252, 244, 0.88);
  --voyage-line: rgba(196, 136, 33, 0.58);
}

body.voyage-v5.theme-swiss-gallery::before {
  background:
    linear-gradient(90deg, rgba(3, 54, 63, 0.18), transparent 24% 76%, rgba(3, 54, 63, 0.18)),
    linear-gradient(180deg, rgba(255, 247, 207, 0.1), transparent 34%, rgba(0, 112, 128, 0.1));
}

.voyage-v5.theme-swiss-gallery .app-shell {
  width: 100%;
  height: 100svh;
  padding: 0;
}

.voyage-v5 .game-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 76px minmax(0, 1fr);
  height: 100svh;
  isolation: isolate;
}

.voyage-v5 .hud-header {
  position: relative;
  z-index: 40;
  grid-column: 1;
  grid-row: 1;
  display: grid;
  grid-template-columns: minmax(330px, 0.9fr) minmax(440px, 1.25fr);
  width: 100%;
  border-bottom: 1px solid var(--voyage-line);
  background:
    linear-gradient(90deg, rgba(255, 253, 239, 0.97), rgba(240, 250, 241, 0.91) 52%, rgba(220, 245, 239, 0.86));
  box-shadow: 0 8px 28px rgba(6, 48, 54, 0.13);
  backdrop-filter: blur(15px);
}

.voyage-v5.theme-swiss-gallery .topbar {
  grid-column: 1;
  grid-row: auto;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  min-height: 75px;
  gap: 12px;
  padding: 10px 18px;
  border: 0;
  border-right: 1px solid var(--voyage-line);
  background: transparent;
}

.voyage-v5 .title-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-content: center;
}

.voyage-v5 .title-block .kicker {
  grid-column: 1;
  grid-row: 1 / -1;
  align-self: center;
  max-width: 188px;
  font-size: 15px;
  line-height: 1.08;
  text-wrap: balance;
}

.voyage-v5 .title-block h1 {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  font-size: 25px;
}

.voyage-v5 .timer-pill {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  text-align: right;
}

.voyage-v5.theme-swiss-gallery .scorebar {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  grid-template-columns: repeat(5, minmax(64px, 1fr));
  align-items: stretch;
  gap: 0;
  margin: 0;
  background: transparent;
}

.voyage-v5.theme-swiss-gallery .scorebar article {
  display: grid;
  min-height: 75px;
  align-content: center;
  padding: 9px 13px;
  border: 0;
  border-right: 1px solid rgba(196, 136, 33, 0.34);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.voyage-v5.theme-swiss-gallery .scorebar article:last-child {
  border-right: 0;
}

.voyage-v5.theme-swiss-gallery .scorebar span {
  color: #526f6d;
  font-size: 9px;
  text-transform: uppercase;
}

.voyage-v5.theme-swiss-gallery .scorebar strong {
  margin-top: 5px;
  color: var(--voyage-ink);
  font-size: 18px;
}

.voyage-v5.theme-swiss-gallery .score-card strong,
.voyage-v5.theme-swiss-gallery .completion-card strong {
  color: var(--voyage-cinnabar);
}

.voyage-v5.theme-swiss-gallery .board-card {
  position: relative;
  z-index: 1;
  grid-column: 1;
  grid-row: 1 / -1;
  min-height: 0;
  border: 0;
  background: transparent;
}

.voyage-v5.theme-swiss-gallery .board {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  align-content: center;
  padding: 120px 24px 100px;
}

.voyage-v5.theme-swiss-gallery .goal-strip {
  position: absolute;
  top: 90px;
  left: 50%;
  z-index: 25;
  grid-row: auto;
  width: min(520px, calc(100vw - 540px));
  min-height: 66px;
  transform: translateX(-50%);
  padding: 9px 14px 9px 12px;
  border: 1px solid rgba(203, 147, 40, 0.7);
  border-radius: 4px;
  background:
    linear-gradient(90deg, rgba(255, 253, 239, 0.96), rgba(237, 250, 240, 0.91));
  box-shadow: 0 10px 28px rgba(5, 49, 57, 0.17);
  backdrop-filter: blur(12px);
}

.voyage-v5.theme-swiss-gallery .goal-strip::before {
  content: "";
  position: absolute;
  inset: 5px auto 5px 4px;
  width: 3px;
  background: linear-gradient(var(--voyage-cinnabar), var(--voyage-gold));
}

.voyage-v5 .goal-eyebrow {
  display: block;
  margin-bottom: 3px;
  color: var(--voyage-cinnabar);
  font-size: 9px;
  font-weight: 850;
  line-height: 1;
  text-transform: uppercase;
}

.voyage-v5.theme-swiss-gallery .goal-strip strong {
  font-size: 14px;
}

.voyage-v5.theme-swiss-gallery .goal-strip p {
  margin-top: 3px;
  font-size: 11px;
}

.voyage-v5 .formation-order {
  align-items: center;
  gap: 5px;
  margin-top: 6px;
}

.voyage-v5 .formation-order::before {
  content: "DRUM CALL";
  margin-right: 3px;
  color: var(--voyage-cinnabar);
  font-size: 8px;
  font-weight: 900;
}

.voyage-v5 .formation-beat {
  position: relative;
  width: 24px;
  height: 24px;
  border: 2px solid #f7dda0;
  border-radius: 50%;
  background: var(--beat-color);
  color: #fff;
  box-shadow: 0 0 0 1px #9c6820, inset 0 0 0 2px rgba(255,255,255,0.34);
  font-size: 10px;
}

.voyage-v5 .formation-beat.is-matched {
  box-shadow: 0 0 0 2px #087f72, 0 0 12px rgba(8, 127, 114, 0.45);
}

.voyage-v5 .formation-beat.is-missed {
  opacity: 0.42;
  filter: grayscale(0.65);
}

.voyage-v5 .voyage-route {
  position: absolute;
  top: 92px;
  right: 18px;
  z-index: 20;
  display: grid;
  width: 236px;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 4px;
  background: rgba(7, 70, 74, 0.69);
  color: #fffdf0;
  box-shadow: 0 9px 25px rgba(3, 47, 57, 0.18);
  backdrop-filter: blur(10px);
}

.voyage-v5 .voyage-route__copy {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.voyage-v5 .voyage-route__copy span {
  color: #ffda87;
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
}

.voyage-v5 .voyage-route__copy strong {
  font-size: 10px;
  text-align: right;
}

.voyage-v5 .voyage-route__line {
  position: relative;
  display: grid;
  min-height: 24px;
  grid-template-columns: 22px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 5px;
}

.voyage-v5 .voyage-route__line::before {
  content: "";
  position: absolute;
  right: 18px;
  left: 18px;
  top: 50%;
  height: 2px;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,0.82) 0 10px, transparent 10px 16px);
}

.voyage-v5 .route-drum,
.voyage-v5 .route-gate {
  position: relative;
  z-index: 2;
  width: 19px;
  height: 19px;
}

.voyage-v5 .route-drum {
  border: 2px solid #ffd578;
  border-radius: 50%;
  background: var(--voyage-cinnabar);
  box-shadow: inset 0 0 0 2px #8f291e;
}

.voyage-v5 .route-gate {
  border: solid #ffd578;
  border-width: 4px 3px 0;
}

.voyage-v5 .route-gate::before {
  content: "";
  position: absolute;
  top: 3px;
  left: -6px;
  width: 25px;
  height: 3px;
  background: var(--voyage-cinnabar);
}

.voyage-v5 .fleet-dock {
  position: relative;
  z-index: 3;
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.voyage-v5 .fleet-boat {
  display: block;
  width: 14px;
  height: 8px;
  border: 1px solid rgba(255,255,255,0.78);
  border-radius: 50% 50% 65% 65%;
  background: rgba(255,255,255,0.24);
  transform: translateY(1px);
}

.voyage-v5 .fleet-boat.is-sailing {
  background: var(--fleet-color);
  box-shadow: 0 0 0 1px #f7d67d, 0 0 8px rgba(255,255,255,0.42);
  animation: fleetBoatBreathe 1.6s ease-in-out infinite alternate;
}

.voyage-v5.theme-swiss-gallery .mochi-progress {
  display: none;
}

.voyage-v5.theme-swiss-gallery .hint-line {
  position: absolute;
  bottom: 79px;
  left: 50%;
  z-index: 24;
  grid-row: auto;
  width: min(520px, calc(100vw - 40px));
  min-height: 27px;
  transform: translateX(-50%);
  padding: 5px 12px;
  border: 0;
  background: rgba(5, 66, 73, 0.72);
  color: #fffef3;
  text-align: center;
  box-shadow: 0 5px 18px rgba(3, 43, 48, 0.18);
  backdrop-filter: blur(8px);
}

.voyage-v5.theme-swiss-gallery .action-row {
  position: absolute;
  bottom: 13px;
  left: 50%;
  z-index: 30;
  grid-row: auto;
  display: grid;
  width: min(390px, calc(100vw - 24px));
  min-height: 54px;
  grid-template-columns: 78px minmax(0, 1fr) 64px;
  gap: 0;
  transform: translateX(-50%);
  padding: 4px;
  border: 1px solid var(--voyage-line);
  border-radius: 7px;
  background: rgba(255, 253, 239, 0.93);
  box-shadow: 0 10px 28px rgba(3, 48, 55, 0.24);
  backdrop-filter: blur(13px);
}

.voyage-v5.theme-swiss-gallery .action-row button {
  min-height: 46px;
  border-radius: 4px;
}

.voyage-v5.theme-swiss-gallery .action-row .thumb-button {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.voyage-v5.theme-swiss-gallery .action-row .primary-button {
  border-color: #9a651d;
  background: linear-gradient(180deg, #de5237, #bf3525);
  color: #fffdf0;
  box-shadow: inset 0 1px rgba(255,255,255,0.32), 0 3px 8px rgba(113,38,24,0.24);
}

.voyage-v5.theme-swiss-gallery .more-menu {
  right: 18px;
  bottom: 78px;
  left: auto;
  width: min(330px, calc(100vw - 24px));
  border-radius: 5px;
}

.voyage-v5 .more-menu .journey-strip {
  grid-row: auto;
}

.voyage-v5 .tube.is-launching {
  z-index: 20;
  animation: voyageBoatDeparture 1.04s cubic-bezier(0.18, 0.72, 0.23, 1) forwards;
}

.voyage-v5 .tube.is-launching::after {
  opacity: 1;
  transform-origin: left center;
  animation: voyageWakeDeparture 1.04s ease-out forwards;
}

.voyage-v5 .game-panel.is-fleet-launching .voyage-route {
  animation: routeAnswer 520ms ease-out;
}

.voyage-v5.theme-swiss-gallery .win-layer,
.voyage-v5.theme-swiss-gallery .level-layer,
.voyage-v5.theme-swiss-gallery .guide-layer {
  padding: 14px;
  background: rgba(4, 42, 47, 0.58);
  backdrop-filter: blur(7px);
}

.voyage-v5.theme-swiss-gallery .win-card {
  position: relative;
  width: min(720px, calc(100vw - 28px));
  max-height: calc(100svh - 28px);
  padding: 28px 46px 26px;
  overflow: auto;
  border: 0;
  border-top: 4px solid var(--voyage-gold);
  border-bottom: 4px solid var(--voyage-gold);
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(207,69,45,0.1), transparent 16% 84%, rgba(8,127,114,0.12)),
    rgba(255, 253, 239, 0.97);
  box-shadow: 0 22px 58px rgba(2, 35, 41, 0.34);
  text-align: center;
}

.voyage-v5 .win-crest {
  display: block;
  width: 54px;
  height: 32px;
  margin: 0 auto 8px;
  border: solid var(--voyage-cinnabar);
  border-width: 0 4px 4px;
  border-radius: 0 0 50% 50%;
  box-shadow: inset 0 -6px #ffd46f;
}

.voyage-v5 .win-crest::before {
  content: "";
  display: block;
  width: 15px;
  height: 15px;
  margin: -5px auto 0;
  border: 3px solid var(--voyage-gold);
  border-radius: 50%;
  background: var(--voyage-jade);
}

.voyage-v5.theme-swiss-gallery .win-card h2 {
  margin: 5px 0 10px;
  color: var(--voyage-deep);
  font-size: clamp(24px, 4vw, 38px);
}

.voyage-v5.theme-swiss-gallery .win-card p {
  max-width: 580px;
  margin: 7px auto;
}

.voyage-v5 .win-card .reward-detail {
  color: var(--voyage-cinnabar);
  font-weight: 750;
}

.voyage-v5 .win-card .voyage-result {
  padding: 8px 12px;
  border-top: 1px solid rgba(196,136,33,0.34);
  border-bottom: 1px solid rgba(196,136,33,0.34);
  color: var(--voyage-jade);
}

.voyage-v5 .win-actions {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 8px;
  max-width: 470px;
  margin: 18px auto 0;
}

.voyage-v5.theme-swiss-gallery .level-card {
  width: min(880px, calc(100vw - 28px));
  max-height: calc(100svh - 28px);
  padding: 24px 30px 28px;
  border: 0;
  border-top: 4px solid var(--voyage-gold);
  border-bottom: 4px solid var(--voyage-gold);
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(255,253,239,0.98), rgba(230,248,239,0.96));
  box-shadow: 0 22px 58px rgba(2, 35, 41, 0.34);
}

.voyage-v5 .journey-pages {
  position: relative;
  max-width: 520px;
  margin: 14px auto;
}

.voyage-v5 .journey-pages::after {
  content: "";
  position: absolute;
  right: 54px;
  bottom: -9px;
  left: 54px;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--voyage-gold) 0 12px, transparent 12px 19px);
}

.voyage-v5.theme-swiss-gallery .level-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(74px, 1fr));
  gap: 8px 12px;
  padding: 10px 0 0;
}

.voyage-v5.theme-swiss-gallery .level-grid::before {
  content: "";
  position: absolute;
  inset: 32px 5% 28px;
  border: 2px dashed rgba(8,127,114,0.2);
  border-right-color: transparent;
  border-left-color: transparent;
  pointer-events: none;
}

.voyage-v5.theme-swiss-gallery .level-pill {
  position: relative;
  z-index: 1;
  min-height: 54px;
  border: 1px solid rgba(16,63,70,0.28);
  border-radius: 4px;
  background: rgba(255,255,255,0.62);
  color: var(--voyage-ink);
}

.voyage-v5.theme-swiss-gallery .level-pill.is-cleared {
  border-color: var(--voyage-jade);
  background: rgba(225, 248, 236, 0.94);
}

.voyage-v5.theme-swiss-gallery .level-pill.is-current {
  border-color: var(--voyage-cinnabar);
  background: #fff2e4;
  box-shadow: 0 0 0 2px rgba(207,69,45,0.16);
}

.voyage-v5.theme-swiss-gallery .level-pill.is-festival::after {
  content: "";
  position: absolute;
  top: 4px;
  right: 5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--voyage-cinnabar);
  box-shadow: 0 0 0 2px #ffd778;
}

.voyage-v5.theme-swiss-gallery .guide-card {
  border: 0;
  border-top: 4px solid var(--voyage-gold);
  border-bottom: 4px solid var(--voyage-gold);
  border-radius: 0;
  background: var(--voyage-paper);
  box-shadow: 0 22px 58px rgba(2, 35, 41, 0.34);
}

@keyframes voyageBoatDeparture {
  0% { opacity: 1; transform: translate(0, 0) scale(1); }
  18% { transform: translate(-7px, 4px) scale(1.04); }
  62% { opacity: 1; transform: translate(16vw, -12px) scale(0.93); }
  100% { opacity: 0; transform: translate(32vw, -34px) scale(0.76); }
}

@keyframes voyageWakeDeparture {
  0% { opacity: 0.25; transform: scaleX(0.6); }
  35% { opacity: 0.86; transform: translateX(-20px) scaleX(1.45); }
  100% { opacity: 0; transform: translateX(-80px) scaleX(2.4); }
}

@keyframes fleetBoatBreathe {
  from { transform: translateY(2px); }
  to { transform: translateY(-2px); }
}

@keyframes routeAnswer {
  0% { box-shadow: 0 9px 25px rgba(3,47,57,0.18); }
  50% { box-shadow: 0 0 0 3px rgba(255,211,107,0.45), 0 12px 30px rgba(3,47,57,0.24); }
  100% { box-shadow: 0 9px 25px rgba(3,47,57,0.18); }
}

@media (min-width: 700px) and (max-width: 980px) {
  .voyage-v5 .game-panel { grid-template-rows: 58px minmax(0, 1fr); }
  .voyage-v5 .hud-header { grid-template-columns: minmax(270px, 0.9fr) minmax(380px, 1.2fr); }
  .voyage-v5.theme-swiss-gallery .topbar { min-height: 57px; padding: 7px 10px; }
  .voyage-v5 .title-block .kicker { max-width: 150px; font-size: 12px; }
  .voyage-v5 .title-block h1 { font-size: 20px; }
  .voyage-v5.theme-swiss-gallery .scorebar article { min-height: 57px; padding: 6px 8px; }
  .voyage-v5.theme-swiss-gallery .scorebar strong { font-size: 15px; }
  .voyage-v5.theme-swiss-gallery .goal-strip { top: 70px; left: 10px; width: 320px; min-height: 54px; transform: none; }
  .voyage-v5.theme-swiss-gallery .goal-strip strong { font-size: 13px; }
  .voyage-v5 .voyage-route { top: 70px; right: 10px; width: 220px; }
  .voyage-v5.theme-swiss-gallery .board { padding: 74px 240px 74px 296px; }
  .voyage-v5.theme-swiss-gallery .hint-line { bottom: 73px; }
  .voyage-v5.theme-swiss-gallery .action-row { bottom: 7px; }
}

@media (max-width: 699px) {
  .voyage-v5 .game-panel {
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto auto;
    height: 100svh;
  }

  .voyage-v5 .hud-header {
    position: relative;
    grid-column: 1;
    grid-row: 1;
    display: grid;
    grid-template-columns: 1fr;
    border-bottom: 1px solid var(--voyage-line);
  }

  .voyage-v5.theme-swiss-gallery .topbar {
    min-height: 52px;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    padding: max(5px, env(safe-area-inset-top)) 8px 4px;
    border-right: 0;
    border-bottom: 1px solid rgba(196,136,33,0.28);
  }

  .voyage-v5 .title-block { display: flex; flex-direction: row; align-items: baseline; justify-content: center; gap: 8px; }
  .voyage-v5 .title-block .kicker { max-width: 150px; font-size: 12px; text-align: center; }
  .voyage-v5 .title-block h1 { font-size: 20px; }
  .voyage-v5 .timer-pill { display: none; }

  .voyage-v5.theme-swiss-gallery .scorebar {
    grid-column: 1;
    grid-row: 2;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .voyage-v5.theme-swiss-gallery .scorebar article {
    min-height: 32px;
    padding: 3px 8px;
  }

  .voyage-v5.theme-swiss-gallery .scorebar span { font-size: 8px; }
  .voyage-v5.theme-swiss-gallery .scorebar strong { margin-top: 1px; font-size: 13px; }
  .voyage-v5.theme-swiss-gallery .streak-card,
  .voyage-v5.theme-swiss-gallery .best-card { display: none; }

  .voyage-v5.theme-swiss-gallery .goal-strip {
    position: relative;
    top: auto;
    left: auto;
    z-index: 20;
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    min-height: 54px;
    transform: none;
    border: 0;
    border-bottom: 1px solid var(--voyage-line);
    border-radius: 0;
    box-shadow: 0 5px 16px rgba(4,47,54,0.1);
  }

  .voyage-v5.theme-swiss-gallery .goal-strip p { font-size: 10px; }
  .voyage-v5 .goal-eyebrow { display: none; }

  .voyage-v5.theme-swiss-gallery .board-card {
    grid-column: 1;
    grid-row: 3;
    min-height: 0;
    border: 0;
  }

  .voyage-v5 .voyage-route {
    top: 6px;
    right: 8px;
    left: 8px;
    width: auto;
    min-height: 35px;
    grid-template-columns: auto minmax(140px, 1fr);
    align-items: center;
    gap: 9px;
    padding: 5px 9px;
  }

  .voyage-v5 .voyage-route__copy { display: block; min-width: 92px; }
  .voyage-v5 .voyage-route__copy span { display: block; font-size: 8px; }
  .voyage-v5 .voyage-route__copy strong { display: block; margin-top: 2px; font-size: 9px; text-align: left; }
  .voyage-v5 .voyage-route__line { min-height: 20px; }

  .voyage-v5.theme-swiss-gallery .board {
    height: 100%;
    padding: 48px 7px 8px;
  }

  .voyage-v5.theme-swiss-gallery .hint-line {
    position: relative;
    bottom: auto;
    left: auto;
    z-index: 20;
    grid-column: 1;
    grid-row: 4;
    width: 100%;
    min-height: 25px;
    transform: none;
    padding: 5px 9px;
    border-radius: 0;
    font-size: 10px;
  }

  .voyage-v5.theme-swiss-gallery .action-row {
    position: relative;
    bottom: auto;
    left: auto;
    z-index: 30;
    grid-column: 1;
    grid-row: 5;
    width: 100%;
    min-height: 54px;
    transform: none;
    padding: 4px max(6px, env(safe-area-inset-right)) max(4px, env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-left));
    border: 0;
    border-top: 1px solid var(--voyage-line);
    border-radius: 0;
  }

  .voyage-v5.theme-swiss-gallery .more-menu {
    right: 7px;
    bottom: 58px;
    left: 7px;
    width: auto;
  }

  .voyage-v5.theme-swiss-gallery .win-card {
    padding: 20px 18px 18px;
  }

  .voyage-v5.theme-swiss-gallery .win-card h2 { font-size: 26px; }
  .voyage-v5.theme-swiss-gallery .win-card p { font-size: 12px; line-height: 1.35; }
  .voyage-v5 .win-actions { margin-top: 12px; }

  .voyage-v5.theme-swiss-gallery .level-card {
    padding: 18px 12px;
  }

  .voyage-v5.theme-swiss-gallery .level-grid {
    grid-template-columns: repeat(5, minmax(48px, 1fr));
    gap: 6px;
  }

  .voyage-v5.theme-swiss-gallery .level-pill {
    min-height: 50px;
    padding: 4px 2px;
  }
}

@media (max-width: 699px) and (max-height: 650px) {
  .voyage-v5.theme-swiss-gallery .topbar { min-height: 46px; }
  .voyage-v5.theme-swiss-gallery .scorebar article { min-height: 27px; }
  .voyage-v5.theme-swiss-gallery .goal-strip { min-height: 44px; padding-top: 5px; padding-bottom: 5px; }
  .voyage-v5.theme-swiss-gallery .goal-strip p { display: none; }
  .voyage-v5.theme-swiss-gallery .board { gap: 5px; padding: 38px 6px 4px; }
  .voyage-v5.theme-swiss-gallery .board.lanes-7 .tube,
  .voyage-v5.theme-swiss-gallery .board.lanes-8 .tube,
  .voyage-v5.theme-swiss-gallery .board.lanes-9 .tube {
    --orb-size: clamp(17px, 5.8vw, 22px);
    height: clamp(82px, 23vw, 92px);
  }
  .voyage-v5.theme-swiss-gallery .hint-line { min-height: 22px; padding-top: 3px; padding-bottom: 3px; }
  .voyage-v5.theme-swiss-gallery .action-row { min-height: 50px; }
  .voyage-v5.theme-swiss-gallery .action-row button { min-height: 42px; }
}

@media (max-width: 360px) {
  .voyage-v5 .title-block .kicker { max-width: 128px; font-size: 11px; }
  .voyage-v5.theme-swiss-gallery .goal-strip #goalIcon { width: 27px; height: 27px; }
  .voyage-v5.theme-swiss-gallery .level-grid { grid-template-columns: repeat(5, minmax(42px, 1fr)); }
  .voyage-v5.theme-swiss-gallery .level-pill small { font-size: 8px; }
}

@media (min-width: 700px) and (max-height: 480px) {
  .voyage-v5.theme-swiss-gallery .goal-strip p { display: none; }
  .voyage-v5.theme-swiss-gallery .goal-strip { min-height: 48px; padding-top: 6px; padding-bottom: 6px; }
  .voyage-v5 .voyage-route { padding-top: 7px; padding-bottom: 7px; }
  .voyage-v5.theme-swiss-gallery .board { padding-top: 62px; padding-bottom: 62px; }
}

.voyage-v5.reduce-motion .fleet-boat,
.voyage-v5.reduce-motion .tube.is-launching {
  animation-duration: 1ms !important;
}

@media (prefers-reduced-motion: reduce) {
  .voyage-v5 .fleet-boat,
  .voyage-v5 .tube.is-launching { animation-duration: 1ms !important; }
}
