/* The voyage hub, styled as a bright cartoon sea chart: hero and Continue card, the chart, chapter cards,
   the postcard album and the log book. Prefix: .voy-  Tokens only (see style.css and storybook.css). */

.voy-page { display: flex; flex-direction: column; gap: 28px; padding-bottom: 12px; }
.voy-page :is(h1, h2) { text-wrap: balance; }

/* ---------- Hero ---------- */

.voy-head { display: grid; gap: 18px; align-items: end; }
@media (min-width: 900px) { .voy-head { grid-template-columns: minmax(0, 1fr) auto; gap: 28px; } }
.voy-head .eyebrow { margin: 0 0 6px; color: var(--ink); font-weight: 700; }
.voy-title { margin: 0 0 10px; font-size: clamp(1.9rem, 4.6vw, 3rem); line-height: 1.06; }
.voy-role { margin: 0; max-width: 40rem; color: var(--ink); font-weight: 700; }

.voy-tally { display: flex; gap: 10px; margin: 0; padding: 0; list-style: none; }
.voy-chip { gap: 10px; min-height: 54px; padding: 6px 18px 6px 12px; }
.voy-chip .sb-icon { width: 1.7em; height: 1.7em; }
.voy-chip.is-stars .sb-icon { color: var(--sb-gold-lo); fill: var(--sb-gold); }
.voy-chip-text { display: flex; flex-direction: column; line-height: 1.15; }
.voy-chip-val { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; white-space: nowrap; }
.voy-chip-of { font-weight: 400; color: var(--sb-card-muted); font-size: 1rem; }
.voy-chip-label { font-size: 0.9rem; font-weight: 700; color: var(--sb-card-muted); }
@media (max-width: 520px) {
  .voy-tally { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .voy-chip { flex-direction: column; gap: 2px; padding: 8px 4px 8px; border-radius: 18px; text-align: center; }
  .voy-chip-text { align-items: center; }
  .voy-chip-val { font-size: 1.1rem; }
  .voy-chip-of { font-size: 0.9rem; }
  .voy-chip-label { font-size: 0.85rem; }
}

/* ---------- The Continue card ---------- */

.voy-cta {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: 24px 28px;
  align-items: center;
  padding: 22px 28px 22px 22px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(90% 140% at 0% 0%, color-mix(in srgb, var(--sb-glow-color) 22%, transparent), transparent 70%),
    var(--sb-panel);
}
@media (max-width: 680px) {
  .voy-cta { grid-template-columns: minmax(0, 1fr); padding: 16px; gap: 16px; }
}
.voy-cta-text { min-width: 0; }
.voy-cta-text > p { margin: 0 0 8px; }
.voy-cta-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.voy-cta-kicker .sb-pill { font-size: 0.95rem; background: var(--sb-primary); color: var(--sb-primary-ink); }
.voy-cta-when { font-size: 0.95rem; color: var(--ink-muted); font-weight: 700; }
.voy-cta-title { margin: 0 0 8px; font-size: clamp(1.7rem, 4vw, 2.5rem); line-height: 1.1; }
.voy-cta-line { margin: 0 0 18px; max-width: 38rem; font-weight: 700; font-size: clamp(1.1rem, 2.4vw, 1.3rem); line-height: 1.45; color: var(--ink); }
.voy-cta-line::before { content: '\201C'; margin-right: 2px; color: var(--accent-2); font-weight: 700; }
.voy-cta-line::after { content: '\201D'; margin-left: 1px; color: var(--accent-2); font-weight: 700; }
.voy-cta.is-complete .voy-cta-line::before, .voy-cta.is-complete .voy-cta-line::after { content: none; }
.voy-cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.voy-cta-actions .btn-lg { min-height: 60px; padding: 12px 38px; font-size: 1.35rem; }
.voy-btn-icon { display: inline-flex; }
.voy-btn-icon .sb-icon { width: 1.1em; height: 1.1em; fill: currentColor; }
.voy-cta-source { font-size: 0.95rem; color: var(--ink-muted); font-weight: 700; }
@media (max-width: 680px) {
  .voy-cta-actions { flex-direction: column; align-items: stretch; }
  .voy-cta-actions .btn-lg { width: 100%; }
  .voy-cta-source { text-align: center; }
}

.voy-cta-art { position: relative; min-width: 0; }
@media (max-width: 680px) { .voy-cta-art { order: -1; } }
/* The chapter's number over a little patch of sea, with the Nautilus bobbing by. */
.voy-cta-badge {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: var(--sb-outline-w) solid var(--sb-outline);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--sb-sky) 0%, var(--sb-sea) 62%, var(--sb-deep) 100%);
  box-shadow: var(--sb-pop);
}
.voy-cta-num { font-size: clamp(4rem, 9vw, 5.5rem); line-height: 1; margin-bottom: 14px; }
.voy-cta-ship { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); }
.voy-cta-ship svg { display: block; width: 84px; height: auto; animation: voy-bob 3.4s ease-in-out infinite; }
@media (max-width: 680px) { .voy-cta-badge { aspect-ratio: 16 / 6; } .voy-cta-num { font-size: 3.4rem; margin-bottom: 18px; } .voy-cta-ship svg { width: 64px; } }

/* Complete: the final postcard and a few sparkles. */
.voy-cta.is-complete { grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); }
@media (max-width: 680px) { .voy-cta.is-complete { grid-template-columns: minmax(0, 1fr); } }
.voy-cta-pc { width: min(190px, 60vw); margin: 6px auto 10px; }
.voy-cta-stars { display: inline-flex; align-items: center; gap: 10px; }
.voy-cta-count { font-weight: 700; }
.voy-spark { position: absolute; color: var(--sb-glow-color); pointer-events: none; opacity: 0; }
.voy-spark .sb-icon { width: 24px; height: 24px; fill: currentColor; stroke: var(--sb-outline); }
.voy-spark-0 { top: -8px; left: 4px; animation: sb-sparkle 2.6s ease-out 0.2s infinite; }
.voy-spark-1 { top: 6px; right: 0; animation: sb-sparkle 2.6s ease-out 1.1s infinite; }
.voy-spark-2 { bottom: 18px; left: -4px; animation: sb-sparkle 2.6s ease-out 1.7s infinite; }
.voy-spark-3 { bottom: 4px; right: 8px; animation: sb-sparkle 2.6s ease-out 0.7s infinite; }
.voy-cta.is-fresh .sb-ribbon { animation: sb-pop 0.6s var(--ease-spring) both; }

/* A postcard not yet earned: a dashed empty slot. */
.voy-locked-plate {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  border-radius: 12px;
  border: 3px dashed color-mix(in srgb, var(--sb-outline) 50%, transparent);
  background: color-mix(in srgb, var(--sb-card-2) 70%, transparent);
  color: var(--ink-muted);
}
.voy-locked-art .sb-icon { width: 3rem; height: 3rem; opacity: 0.5; stroke-width: 1.6; }
.voy-locked-lock {
  position: absolute;
  right: 6px;
  bottom: 6px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--sb-chip);
  color: var(--sb-chip-ink);
  border: 2px solid var(--sb-outline);
}
.voy-locked-lock .sb-icon { width: 16px; height: 16px; }
.voy-locked-label { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); white-space: nowrap; font-family: var(--font-display); font-weight: 600; }
.voy-locked-plate.is-thumb { border-radius: 8px; border-width: 2px; }
.voy-locked-plate.is-thumb .voy-locked-art .sb-icon { width: 1.9rem; height: 1.9rem; }
.voy-locked-plate.is-thumb .voy-locked-lock { right: 3px; bottom: 3px; width: 22px; height: 22px; border-width: 1.5px; }
.voy-locked-plate.is-thumb .voy-locked-lock .sb-icon { width: 12px; height: 12px; }
.voy-locked-plate.is-slot { aspect-ratio: 0.72; border-radius: 12px; }
.voy-locked-plate.is-slot .voy-locked-art { display: none; }
.voy-locked-plate.is-slot .voy-locked-label {
  top: 42%;
  bottom: auto;
  transform: translate(-50%, -50%);
  color: var(--ink-muted);
  font-size: 2.6rem;
  font-weight: 700;
}
.voy-locked-plate.is-slot .voy-locked-lock { right: 50%; bottom: 14px; transform: translateX(50%); }

/* ---------- Section heads ---------- */

.voy-h { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; }
.voy-h h2 { margin: 0; font-size: clamp(1.5rem, 3.6vw, 2rem); line-height: 1.1; }
.voy-h-icon {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--sb-primary);
  border: var(--sb-outline-w) solid var(--sb-outline);
  color: var(--sb-primary-ink);
  box-shadow: 0 3px 0 var(--sb-outline);
}
.voy-h-icon .sb-icon { width: 20px; height: 20px; }
.voy-h-meta { margin-left: auto; font-size: 0.95rem; white-space: nowrap; background: var(--sb-chip); color: var(--sb-chip-ink); }
.voy-sub { margin: -4px 0 18px; color: var(--ink-muted); font-weight: 700; }

/* ---------- The chart: turquoise sea, scalloped waves, cartoon islands ---------- */

.voy-chart {
  --chart-sea: var(--sb-sea);
  --chart-wave: white;
  --chart-land: var(--sb-sand);
  --chart-shore: color-mix(in srgb, var(--sb-sky) 80%, var(--sb-sea));
  --chart-ink: var(--sb-outline);
  --chart-halo: white;
  --chart-route: var(--sb-outline);
  --chart-pulse: var(--sb-pink);
  position: relative;
  overflow: hidden;
  background: var(--chart-sea);
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] .voy-chart {
    --chart-sea: color-mix(in srgb, var(--sb-sea) 42%, var(--sb-deep));
    --chart-wave: var(--sb-sea);
    --chart-shore: color-mix(in srgb, var(--sb-sea) 50%, var(--chart-sea));
    --chart-halo: var(--sb-outline);
    --chart-route: var(--sb-glow-color);
  }
}
:root[data-theme="dark"] .voy-chart {
  --chart-sea: color-mix(in srgb, var(--sb-sea) 42%, var(--sb-deep));
  --chart-wave: var(--sb-sea);
  --chart-shore: color-mix(in srgb, var(--sb-sea) 50%, var(--chart-sea));
  --chart-halo: var(--sb-outline);
  --chart-route: var(--sb-glow-color);
}

/* On a narrow screen the chart keeps its size and pans sideways inside its frame. */
.voy-scroll { overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: var(--sb-primary) transparent; }
.voy-stage { position: relative; width: 100%; min-width: 760px; aspect-ratio: 2 / 1; overflow: hidden; }
.voy-map-inner, .voy-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.voy-ocean { fill: var(--chart-sea); }
.voy-scallop { fill: none; stroke: var(--chart-wave); stroke-width: 1.8; stroke-linecap: round; opacity: 0.38; }
.voy-scallop-2 { opacity: 0.2; }
.voy-waves { animation: voy-drift 14s linear infinite; }
@keyframes voy-drift { to { transform: translateX(30px); } }
.voy-vig-in { stop-color: var(--chart-sea); stop-opacity: 0; }
.voy-vig-out { stop-color: var(--sb-deep); stop-opacity: 0.32; }
.voy-shore path { fill: none; stroke: var(--chart-shore); stroke-width: 11; stroke-linejoin: round; vector-effect: non-scaling-stroke; opacity: 0.85; }
.voy-land path { fill: var(--chart-land); stroke: var(--chart-ink); stroke-width: 2.4; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.voy-isle-shallow { fill: var(--chart-shore); opacity: 0.8; }
.voy-isle-sand { fill: var(--chart-land); stroke: var(--chart-ink); stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.voy-palm-trunk { fill: none; stroke: var(--chart-ink); stroke-width: 2.4; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.voy-palm-leaf { fill: var(--sb-kelp); stroke: var(--chart-ink); stroke-width: 1.4; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.voy-route path { fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.voy-route-halo { stroke: var(--chart-halo); stroke-width: 9; opacity: 0.9; }
.voy-route-done { stroke: var(--chart-route); stroke-width: 3.2; stroke-dasharray: 0.1 9; }

.voy-pins { position: absolute; inset: 0; }
.voy-pin {
  position: absolute;
  z-index: 1;
  transform: translate(-50%, -50%);
  width: 38px;
  height: 38px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: var(--sb-outline-w) solid var(--sb-outline);
  background: var(--sb-sun);
  color: var(--sb-primary-ink);
  font: inherit;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: inset 0 -4px 0 var(--sb-primary-lo), inset 0 3px 0 var(--sb-primary-hi), 0 4px 0 var(--sb-outline);
  transition: transform 0.18s var(--ease-spring);
}
.voy-pin::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; } /* a 48px tap target */
.voy-pin:hover, .voy-pin:focus-visible { transform: translate(-50%, -50%) scale(1.15); z-index: 5; }
.voy-pin:focus-visible { outline: 3px solid var(--chart-ink); outline-offset: 4px; box-shadow: inset 0 -4px 0 var(--sb-primary-lo), inset 0 3px 0 var(--sb-primary-hi), 0 4px 0 var(--sb-outline), 0 0 0 7px white; }
.voy-pin.is-done { background: var(--sb-kelp); box-shadow: inset 0 -4px 0 color-mix(in srgb, var(--sb-kelp) 60%, var(--sb-outline)), inset 0 3px 0 color-mix(in srgb, var(--sb-kelp) 55%, white), 0 4px 0 var(--sb-outline); }
.voy-pin.is-current {
  width: 46px;
  height: 46px;
  background: var(--sb-pink);
  font-size: 1.3rem;
  box-shadow: inset 0 -4px 0 color-mix(in srgb, var(--sb-pink) 60%, var(--sb-outline)), inset 0 3px 0 color-mix(in srgb, var(--sb-pink) 55%, white), 0 4px 0 var(--sb-outline);
  animation: voy-hop 1.3s var(--ease-spring) infinite;
}
.voy-pin.is-current:hover, .voy-pin.is-current:focus-visible { animation: none; }
.voy-pin.is-current::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 3px solid var(--sb-outline);
  animation: voy-pulse 2.2s ease-out infinite;
}
.voy-pin.is-arriving { opacity: 0.4; }
.voy-pin.is-landed { animation: sb-pop 0.5s var(--ease-spring) both; }
@keyframes voy-pulse { 0% { transform: scale(0.9); opacity: 0.8; } 100% { transform: scale(2.1); opacity: 0; } }
@keyframes voy-hop {
  0%, 55%, 100% { transform: translate(-50%, -50%); }
  25% { transform: translate(-50%, calc(-50% - 11px)) scale(1.06, 0.96); }
  40% { transform: translate(-50%, -50%) scale(1.1, 0.9); }
}

.voy-pin-tip {
  position: absolute;
  bottom: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 7px 14px 8px;
  border-radius: var(--radius-sm);
  border: var(--sb-outline-w) solid var(--sb-outline);
  background: var(--sb-card);
  color: var(--sb-card-ink);
  box-shadow: var(--sb-pop);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  text-align: left;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease;
}
.voy-pin-tip strong { font-family: var(--font-display); font-weight: 600; font-size: 1rem; }
.voy-pin-tip .is-here { color: var(--accent-2); font-weight: 700; }
.voy-pin:hover .voy-pin-tip, .voy-pin:focus-visible .voy-pin-tip { opacity: 1; visibility: visible; }
.voy-pin.tip-left .voy-pin-tip { left: -8px; transform: none; }
.voy-pin.tip-right .voy-pin-tip { left: auto; right: -8px; transform: none; }
.voy-pin.tip-below .voy-pin-tip { bottom: auto; top: calc(100% + 14px); }

/* The Nautilus rides beside its pin so the number stays readable; on the move it sits on the track. */
.voy-ship {
  position: absolute;
  z-index: 3;
  transform: translate(-50%, -62%);
  transition: transform 0.45s var(--ease-spring);
  pointer-events: none;
}
.voy-ship.is-docked { transform: translate(-22%, calc(-100% - 20px)); }
.voy-ship.is-docked.is-flip { transform: translate(-78%, calc(-100% - 20px)); }
.voy-ship.is-docked.is-under { transform: translate(-22%, 22px); }
.voy-ship.is-docked.is-under.is-flip { transform: translate(-78%, 22px); }
.voy-ship svg { display: block; width: clamp(50px, 6vw, 72px); height: auto; filter: drop-shadow(0 3px 0 var(--sb-outline)); animation: voy-bob 3.4s ease-in-out infinite; }
@keyframes voy-bob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-4px) rotate(2deg); } }

.voy-cartouche {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 20px 9px;
  background: var(--sb-card);
  color: var(--sb-card-ink);
  border: var(--sb-outline-w) solid var(--sb-outline);
  border-radius: var(--radius);
  box-shadow: var(--sb-pop);
  font-family: var(--font-display);
  line-height: 1.1;
  transform: rotate(-2deg);
  pointer-events: none;
}
.voy-cartouche-1 { font-size: 0.9rem; font-weight: 600; color: var(--sb-card-muted); }
.voy-cartouche-2 { font-size: 1.7rem; font-weight: 700; }
.voy-compass { position: absolute; right: 18px; bottom: 14px; width: clamp(64px, 9vw, 100px); pointer-events: none; filter: drop-shadow(0 3px 0 var(--sb-outline)); }
.voy-compass svg { display: block; width: 100%; height: auto; overflow: visible; }
.voy-map-note { margin: 14px 4px 0; font-size: 0.95rem; text-align: center; font-weight: 700; color: var(--ink-muted); }
.voy-pan-hint { display: none; }
@media (max-width: 759px) { .voy-pan-hint { display: inline; } }
@media (max-width: 560px) {
  .voy-cartouche { top: 10px; left: 10px; padding: 4px 14px 7px; }
  .voy-cartouche-2 { font-size: 1.4rem; }
}

/* ---------- Chapters ---------- */

.voy-chapters { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 900px) { .voy-chapters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; } }
.voy-ch {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 10px;
  border: var(--sb-outline-w) solid var(--sb-outline);
  border-radius: var(--radius);
  background: var(--sb-chip);
  color: var(--sb-chip-ink);
  box-shadow: var(--sb-pop);
  transition: transform 0.18s var(--ease-spring);
}
.voy-ch:not(.is-locked):hover { transform: translateY(-2px) rotate(-0.4deg); }
.voy-ch:has(.voy-ch-open:focus-visible) { box-shadow: var(--sb-pop), 0 0 0 4px var(--accent); }
.voy-ch.is-current { background: color-mix(in srgb, var(--sb-glow-color) 22%, var(--sb-chip)); }
.voy-ch.is-locked { border-style: dashed; border-color: color-mix(in srgb, var(--sb-outline) 50%, transparent); background: color-mix(in srgb, var(--sb-chip) 55%, transparent); box-shadow: none; }

.voy-ch-open {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
}
button.voy-ch-open { cursor: pointer; }
.voy-ch-open:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.voy-ch-thumb { position: relative; display: block; width: 78px; aspect-ratio: 1; }
.voy-ch-thumb .voy-locked-plate { aspect-ratio: auto; }
.voy-thumb-pc.pc-mini { width: 62px; margin: 5px auto 0; }
.voy-num {
  position: absolute;
  top: -8px;
  left: -8px;
  z-index: 1;
  display: grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--sb-sun);
  border: 2.5px solid var(--sb-outline);
  color: var(--sb-primary-ink);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 2px 0 var(--sb-outline);
}
.voy-ch.is-locked .voy-num { background: var(--sb-card-2); color: var(--sb-card-ink); box-shadow: none; }

.voy-ch-main { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
.voy-ch-tag {
  margin-bottom: 2px;
  padding: 1px 12px;
  border: 2px solid var(--sb-outline);
  border-radius: 999px;
  background: var(--sb-pink);
  color: var(--sb-outline);
  font-size: 0.85rem;
  font-weight: 700;
}
.voy-ch-title { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; line-height: 1.2; overflow-wrap: anywhere; }
.voy-ch-source { font-size: 0.9rem; font-weight: 600; color: var(--sb-card-muted); }

.voy-ch.is-locked .voy-ch-title { color: var(--sb-card-muted); }
.voy-ch-go { min-width: 84px; min-height: 44px; font-weight: 600; }
.voy-ch-go:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.voy-ch-main .voy-stars { margin-top: 3px; }
@media (max-width: 480px) {
  .voy-ch { padding: 8px 10px 8px 8px; gap: 8px; }
  .voy-ch-open { grid-template-columns: 62px minmax(0, 1fr); gap: 10px; }
  .voy-ch-thumb { width: 62px; }
  .voy-thumb-pc.pc-mini { width: 50px; }
  .voy-ch-title { font-size: 1.05rem; }
  .voy-ch-go { min-width: 72px; padding: 6px 12px; }
}

.voy-stars { display: inline-flex; gap: 2px; white-space: nowrap; }
.voy-star { display: inline-flex; }
.voy-star .sb-icon { width: 1.25rem; height: 1.25rem; fill: none; stroke: var(--sb-card-muted); stroke-width: 1.7; }
.voy-star.is-on .sb-icon { fill: var(--sb-gold); stroke: var(--sb-outline); stroke-width: 2; }
.voy-stars.is-lg .sb-icon { width: 2.2rem; height: 2.2rem; }
.voy-stars.is-lg { margin: 4px 0 10px; }
.voy-cta-stars .voy-stars.is-lg { margin: 0; }

/* ---------- The postcard album ---------- */

.voy-album { padding: 22px 22px 26px; border-radius: var(--radius-lg); }
.voy-plates { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 118px), 1fr)); }
.voy-plate-btn { display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; }
button.voy-plate-btn { cursor: pointer; }
.voy-slot { display: block; }
.voy-album-pc.pc-mini { width: 100%; margin: 0; padding: 7px 7px 7px; border-radius: 10px; box-shadow: var(--sb-pop), 0 10px 14px color-mix(in srgb, var(--sb-outline) 16%, transparent); transition: transform 0.22s var(--ease-spring); }
.voy-plate.is-owned:nth-child(odd) .voy-album-pc { transform: rotate(-2.6deg); }
.voy-plate.is-owned:nth-child(even) .voy-album-pc { transform: rotate(2deg); }
.voy-plate.is-owned:nth-child(3n) .voy-album-pc { transform: rotate(-1deg); }
button.voy-plate-btn:hover .voy-album-pc, button.voy-plate-btn:focus-visible .voy-album-pc { transform: translateY(-6px) rotate(0deg) scale(1.04); }
button.voy-plate-btn:focus-visible { outline: none; }
button.voy-plate-btn:focus-visible .voy-slot { outline: 3px solid var(--accent); outline-offset: 6px; border-radius: 12px; }
.voy-album-pc .pc-photo { border-width: 2px; }
.voy-album-pc .plate-caption { display: none; }
.voy-plate-cap { display: flex; flex-direction: column; margin-top: 12px; padding: 0 2px; font-family: var(--font-display); font-weight: 600; font-size: 1rem; line-height: 1.25; }
.voy-plate-num { font-family: var(--font-body); font-weight: 700; font-size: 0.85rem; color: var(--ink-muted); }
.voy-plate-lockedtxt { font-family: var(--font-body); font-weight: 700; font-size: 0.9rem; color: var(--ink-muted); }

@media (max-width: 480px) { .voy-album { padding: 16px 14px 20px; } .voy-plates { gap: 22px 14px; } }

/* ---------- Log book ---------- */

.voy-logbook summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 10px 20px 10px 12px;
  border: var(--sb-outline-w) solid var(--sb-outline);
  border-radius: 999px;
  background: var(--sb-panel);
  box-shadow: var(--sb-pop);
  cursor: pointer;
  list-style: none;
  transition: transform 0.15s var(--ease-spring);
}
.voy-logbook summary::-webkit-details-marker { display: none; }
.voy-logbook summary:hover { transform: translateY(-2px); }
.voy-logbook summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.voy-logbook-h { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; line-height: 1.1; }
.voy-logbook-chev { display: inline-flex; color: var(--ink-muted); transition: transform 0.2s var(--ease-out); }
.voy-logbook-chev .sb-icon { width: 1.4rem; height: 1.4rem; }
.voy-logbook[open] .voy-logbook-chev { transform: rotate(90deg); }
.voy-log-list { display: grid; gap: 22px; margin-top: 26px; }
@media (min-width: 900px) { .voy-log-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.voy-log-empty { margin: 18px 0 0; padding: 20px 24px; font-style: italic; font-weight: 700; }
.voy-log-list .log-page:nth-child(odd) { transform: rotate(-0.5deg); }
.voy-log-list .log-page:nth-child(even) { transform: rotate(0.5deg); }
.voy-log-list .log-page::before { display: block; }

/* ---------- Dialog ---------- */

.voy-dialog {
  width: min(44rem, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  padding: 0;
  background: var(--sb-card);
  color: var(--sb-card-ink);
  overflow: auto;
}
.voy-dialog::backdrop { background: color-mix(in srgb, var(--sb-deep) 72%, transparent); backdrop-filter: blur(3px); }
.voy-dialog[open] { animation: sb-pop 0.28s var(--ease-spring) both; }
.voy-card-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px 20px;
  border-bottom: var(--sb-outline-w) solid var(--sb-outline);
  background: linear-gradient(180deg, var(--sb-sky) 0%, var(--sb-sea) 100%);
}
.voy-card-band-text { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.voy-card-title { margin: 0; font-size: clamp(1.9rem, 5vw, 2.7rem); line-height: 1.05; }
.voy-card-source { margin: 0; background: var(--sb-chip); color: var(--sb-chip-ink); font-size: 0.9rem; }
.voy-card-pc.pc-mini { flex: none; width: 92px; margin: 0; }
.voy-card-pc .plate-caption { display: none; }
.voy-card-body { padding: 18px 24px 24px; }
.voy-card-bridge { font-weight: 700; color: var(--sb-card-muted); }
.voy-card-body .log-page { margin: 12px 0 18px; }
.voy-card-plate-only { padding: 20px 20px 22px; text-align: center; }
.voy-card-plate-only .eyebrow { margin: 0 0 14px; color: var(--sb-card-muted); font-weight: 700; }
.voy-pc-stage { padding: 8px 0 14px; }
.pc.pc-big { width: min(320px, 74vw); }
.voy-card-actions { margin-top: 16px; gap: 10px; }
.voy-card-plate-only .voy-card-actions { justify-content: center; }
@media (max-width: 480px) { .voy-card-band { padding: 18px 16px; } .voy-card-pc.pc-mini { width: 70px; } .voy-card-body { padding: 16px; } }

/* Motion is decoration: keep every beat, drop the movement. */
@media (prefers-reduced-motion: reduce) {
  .voy-pin.is-current, .voy-pin.is-current::before, .voy-ship svg, .voy-cta-ship svg, .voy-spark, .voy-pin.is-landed, .voy-dialog[open], .voy-cta.is-fresh .sb-ribbon, .voy-waves { animation: none; }
  .voy-ship, .voy-ch, .voy-pin, .voy-album-pc, .voy-logbook summary { transition: none; }
}
.reduced-motion .voy-pin.is-current, .reduced-motion .voy-pin.is-current::before, .reduced-motion .voy-ship svg,
.reduced-motion .voy-cta-ship svg, .reduced-motion .voy-spark, .reduced-motion .voy-waves { animation: none; }
