/* Vocab Voyage — nautical-chart theme.
   Chart sea + depth contours, buff land, chart magenta for routes and actions, navy ink.
   Display: Saira Stencil One (hull lettering). Body: Atkinson Hyperlegible (easy-to-tell-apart letters). */

:root {
  --sea: #DCEFF3;
  --sea-deep: #BFE0E8;
  --contour: rgba(76, 150, 172, 0.28);
  --land: #F3E3A6;
  --land-edge: #D9C27A;
  --ink: #12263A;
  --ink-soft: #3E5468;
  --ink-faint: #6B8194;
  --paper: #FFFFFF;
  --magenta: #C8197D;
  --magenta-dark: #9C0F5F;
  --magenta-tint: #FBE3F0;
  --red: #D7262E;
  --blue: #1E4FA8;
  --yellow: #F6C400;
  --black: #14181F;
  --good: #1F9D74;
  --good-tint: #D8F3E8;
  --bad: #D7262E;
  --bad-tint: #FBE0E1;
  --lvl0: #E6EEF2;
  --lvl1: #FFE9A8;
  --lvl2: #BFE7D6;
  --lvl3: #1F9D74;

  --font-display: 'Saira Stencil One', 'Arial Black', Impact, system-ui, sans-serif;
  --font-body: 'Atkinson Hyperlegible', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --radius: 14px;
  --radius-sm: 9px;
  --border: 2.5px solid var(--ink);
  --lift: 0 4px 0 var(--ink);
  --lift-sm: 0 3px 0 var(--ink);
  --topbar-h: 58px;
  --gutter: clamp(12px, 3vw, 28px);
  /* Room the floating parrot takes in the bottom-left corner (bird + margin). Games with bottom
     bars can pad by this much so the bird never covers their buttons. */
  --vv-parrot-space: 82px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.45;
  background-color: var(--sea);
  background-image:
    repeating-radial-gradient(circle at 12% 18%, transparent 0 46px, var(--contour) 46px 47.5px),
    repeating-radial-gradient(circle at 88% 82%, transparent 0 58px, var(--contour) 58px 59.5px),
    linear-gradient(180deg, var(--sea) 0%, var(--sea-deep) 100%);
  background-attachment: fixed;
  -webkit-tap-highlight-color: transparent;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--magenta); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.vv-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.vv-display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.05;
  margin: 0 0 0.4em;
}

/* ------------------------------------------------------------ top bar */
#vv-topbar {
  position: sticky; top: 0; z-index: 50;
  height: var(--topbar-h);
  display: flex; align-items: center; gap: 12px;
  padding: 0 var(--gutter);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(6px);
  border-bottom: var(--border);
}
#vv-title { flex: 1; min-width: 0; font-family: var(--font-display); font-size: 1.25rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vv-topbar-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.vv-icon-btn {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 40px; padding: 4px 12px;
  background: var(--paper); border: var(--border); border-radius: 999px; box-shadow: var(--lift-sm);
  font-weight: 700;
}
.vv-icon-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.vv-coins {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 40px; padding: 4px 14px;
  background: var(--yellow); border: var(--border); border-radius: 999px;
  font-weight: 700; font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------ screen */
.vv-screen {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(14px, 3vw, 32px) var(--gutter) 120px;
}

/* ------------------------------------------------------------ buttons */
.vv-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 22px;
  border: var(--border); border-radius: 999px; box-shadow: var(--lift);
  font-weight: 700; font-size: 1.05rem; line-height: 1.1;
  background: var(--paper); color: var(--ink);
  transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.15s;
  user-select: none;
}
.vv-btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 5px 0 var(--ink); }
.vv-btn:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.vv-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.vv-btn.primary { background: var(--magenta); color: #fff; }
.vv-btn.primary:hover:not(:disabled) { background: var(--magenta-dark); }
.vv-btn.secondary { background: var(--paper); }
.vv-btn.ghost { background: transparent; box-shadow: none; border-color: transparent; text-decoration: underline; text-underline-offset: 3px; }
.vv-btn.ghost:hover:not(:disabled) { box-shadow: none; transform: none; background: rgba(18, 38, 58, 0.06); }
.vv-btn.gold { background: var(--yellow); }
.vv-btn.good { background: var(--good); color: #fff; }
.vv-btn.bad { background: var(--red); color: #fff; }
.vv-btn.big { min-height: 56px; padding: 12px 30px; font-size: 1.2rem; }
.vv-btn.small { min-height: 44px; padding: 4px 12px; font-size: 0.95rem; box-shadow: var(--lift-sm); }
.vv-btn.ghost.small, .vv-btn.ghost.small:hover:not(:disabled) { box-shadow: none; }
.vv-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 18px; }

/* ------------------------------------------------------------ cards */
.vv-card {
  background: var(--paper);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: 0 6px 0 var(--ink);
  padding: clamp(18px, 3.5vw, 34px);
}
.vv-intro, .vv-results { max-width: 680px; margin: 10px auto; text-align: center; }
.vv-intro h2, .vv-results h2 { font-size: clamp(2rem, 6vw, 3rem); }
.vv-intro-emoji { font-size: 3.4rem; line-height: 1; margin-bottom: 8px; }
.vv-intro-blurb { font-size: 1.15rem; color: var(--ink-soft); margin: 0 auto 14px; max-width: 46ch; }
.vv-steps { text-align: left; max-width: 46ch; margin: 0 auto 10px; padding-left: 1.4em; }
.vv-steps li { margin: 6px 0; }
.vv-steps li::marker { color: var(--magenta); font-weight: 700; }
.vv-best { color: var(--ink-faint); margin: 6px 0 0; font-weight: 700; }
.vv-newbest { display: inline-block; margin: 0 0 10px; padding: 4px 14px; border-radius: 999px; background: var(--yellow); border: var(--border); font-weight: 700; }
.vv-earned { font-size: 1.3rem; font-weight: 700; margin: 14px 0 0; }
.vv-statgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 16px 0 0; }
.vv-stat { background: var(--sea); border: 2px solid var(--ink); border-radius: var(--radius-sm); padding: 10px; }
.vv-stat dt { font-size: 0.85rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.06em; }
.vv-stat dd { margin: 2px 0 0; font-family: var(--font-display); font-size: 1.8rem; font-variant-numeric: tabular-nums; }
.vv-review { margin-top: 18px; }
.vv-review h3 { margin: 0 0 8px; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); }
.vv-chiprow { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }

/* ------------------------------------------------------------ word chips + mastery */
.vv-chip {
  display: inline-flex; align-items: center; min-height: 34px;
  padding: 3px 12px; border: 2px solid var(--ink); border-radius: 999px;
  background: var(--lvl0); font-weight: 700; font-size: 0.95rem;
}
.vv-chip.lvl-1 { background: var(--lvl1); }
.vv-chip.lvl-2 { background: var(--lvl2); }
.vv-chip.lvl-3 { background: var(--lvl3); color: #fff; }
.vv-chip.lvl-3::after { content: ' ★'; }
.vv-mastery-strip { display: flex; flex-wrap: wrap; gap: 8px; }
.vv-stars { letter-spacing: 2px; font-size: 1.2em; }
.vv-stars .on { color: #E0A800; text-shadow: 0 1px 0 var(--ink); }
.vv-stars .off { color: rgba(18, 38, 58, 0.2); }

/* ------------------------------------------------------------ quiz widget */
.vv-q { max-width: 760px; margin: 0 auto; }
.vv-q-eyebrow {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--magenta-dark);
  margin-bottom: 6px;
}
.vv-q-tag { padding: 2px 10px; border-radius: 999px; background: var(--yellow); color: var(--ink); border: 2px solid var(--ink); letter-spacing: 0.04em; }
.vv-q-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.vv-q-prompt { flex: 1; font-size: clamp(1.25rem, 3.2vw, 1.6rem); line-height: 1.35; font-weight: 700; }
.vv-q-prompt strong { color: var(--magenta-dark); }
.vv-hear {
  flex: none; width: 46px; height: 46px; border-radius: 50%;
  border: var(--border); background: var(--paper); box-shadow: var(--lift-sm); font-size: 1.25rem;
}
.vv-hear:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.vv-q-passage {
  margin: 0 0 14px; padding: 12px 16px;
  background: var(--sea); border: 2px solid var(--ink); border-left-width: 6px; border-radius: var(--radius-sm);
  font-size: 1.08rem; line-height: 1.5; color: var(--ink);
}
.vv-q-sentence { font-size: 1.25rem; font-style: italic; margin: -4px 0 14px; color: var(--ink-soft); }
.vv-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.vv-choices.two { grid-template-columns: 1fr 1fr; }
.vv-choice {
  display: flex; align-items: center; gap: 12px; text-align: left;
  min-height: 64px; padding: 12px 16px;
  background: var(--paper); border: var(--border); border-radius: var(--radius); box-shadow: var(--lift);
  font-size: 1.1rem; font-weight: 600; line-height: 1.3;
  transition: transform 0.08s, box-shadow 0.08s, background 0.15s, opacity 0.2s;
}
.vv-choice:hover:not(:disabled) { background: var(--magenta-tint); transform: translateY(-1px); box-shadow: 0 5px 0 var(--ink); }
.vv-choice:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.vv-choice:disabled { cursor: default; }
.vv-key {
  flex: none; display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--sea); border: 2px solid var(--ink); font-size: 0.9rem; font-weight: 700;
}
.vv-choice.is-picked { background: var(--magenta-tint); outline: 3px solid var(--magenta); outline-offset: -6px; }
.vv-choice.is-right { background: var(--good-tint); border-color: var(--good); box-shadow: 0 4px 0 var(--good); }
.vv-choice.is-right .vv-key { background: var(--good); color: #fff; border-color: var(--good); }
.vv-choice.is-wrong { background: var(--bad-tint); border-color: var(--bad); box-shadow: 0 4px 0 var(--bad); }
.vv-choice.is-wrong .vv-key { background: var(--bad); color: #fff; border-color: var(--bad); }
.vv-choice.is-missed { background: var(--good-tint); border-style: dashed; border-color: var(--good); }
.vv-choice.is-dim { opacity: 0.5; }
.vv-choice.is-gone { opacity: 0.18; text-decoration: line-through; }
.vv-spell-hint { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; color: var(--ink-soft); font-weight: 700; margin-bottom: 10px; }
.vv-spell-row { display: flex; gap: 10px; flex-wrap: wrap; }
.vv-spell-input {
  flex: 1 1 240px; min-height: 58px; padding: 8px 16px;
  border: var(--border); border-radius: var(--radius); background: var(--paper);
  font-size: 1.6rem; font-weight: 700; letter-spacing: 0.12em; text-transform: lowercase;
}
.vv-spell-input.is-right { background: var(--good-tint); border-color: var(--good); }
.vv-spell-input.is-wrong { background: var(--bad-tint); border-color: var(--bad); }
.vv-feedback { display: none; margin-top: 18px; padding: 14px 18px; border-radius: var(--radius); border: var(--border); }
.vv-feedback.show { display: block; animation: vv-pop-in 0.22s ease-out; }
.vv-feedback.good { background: var(--good-tint); border-color: var(--good); }
.vv-feedback.bad { background: var(--bad-tint); border-color: var(--bad); }
.vv-fb-title { font-weight: 700; font-size: 1.2rem; }
.vv-fb-explain { margin-top: 6px; color: var(--ink-soft); }
.vv-feedback .vv-next { margin-top: 12px; }
.vv-fb-extra { margin-top: 8px; }

@media (max-width: 640px) {
  /* A pulsing badge at the edge must never make the whole page wobble sideways on a phone. */
  html, body { overflow-x: clip; }
  .vv-choices, .vv-choices.two { grid-template-columns: 1fr; }
  body { font-size: 17px; }
  #vv-home span { display: none; }
}

/* ------------------------------------------------------------ drag & drop */
.vv-draggable { cursor: grab; user-select: none; -webkit-user-select: none; }
.vv-draggable:active { cursor: grabbing; }
.vv-dnd-selected { outline: 3px dashed var(--magenta); outline-offset: 3px; transform: translateY(-3px); }
.vv-dnd-source { opacity: 0.35; }
.vv-dnd-disabled { cursor: default; }
.vv-dnd-ghost { position: fixed; z-index: 1000; pointer-events: none; margin: 0; transform: rotate(-3deg) scale(1.06); box-shadow: 0 12px 24px rgba(18, 38, 58, 0.3); }
.vv-dropzone { transition: background 0.15s, outline-color 0.15s; }
body.vv-dnd-armed .vv-dropzone { outline: 2px dashed rgba(200, 25, 125, 0.45); outline-offset: 2px; }
.vv-dropzone.vv-dnd-over { outline: 3px solid var(--magenta) !important; background-color: var(--magenta-tint); }

/* ------------------------------------------------------------ signal flags */
.vv-flag { display: block; filter: drop-shadow(0 2px 0 rgba(18, 38, 58, 0.35)); }
.vv-bunting { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 8px 22px; }
.vv-bunting-word { display: flex; flex-wrap: nowrap; gap: 6px; }
@media (max-width: 640px) {
  .vv-bunting { gap: 6px 14px; }
  .vv-bunting-word { gap: 3px; }
  .vv-bunting .vv-flag { width: 30px; height: auto; }
}
.vv-bunting-flag { display: flex; flex-direction: column; align-items: center; animation: vv-flutter 3.2s ease-in-out infinite; transform-origin: top center; }
.vv-bunting-flag:nth-child(2n) { animation-delay: -0.8s; }
.vv-bunting-flag:nth-child(3n) { animation-delay: -1.6s; }
.vv-bunting-letter { font-family: var(--font-display); font-size: 0.85rem; margin-top: 2px; color: var(--ink-soft); }

/* ------------------------------------------------------------ parrot */
.vv-parrot { position: fixed; left: 12px; bottom: 12px; z-index: 60; display: none; align-items: flex-end; gap: 8px; pointer-events: none; }
.vv-parrot.show { display: flex; }
.vv-parrot-bird {
  pointer-events: auto; position: relative;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--paper); border: var(--border); box-shadow: var(--lift-sm);
  font-size: 2rem; line-height: 1; display: grid; place-items: center;
}
.vv-parrot-hat { position: absolute; top: -17px; left: 50%; transform: translateX(-50%) rotate(-8deg); font-size: 1.4rem; }
.vv-parrot.talking .vv-parrot-body { display: inline-block; animation: vv-bob 0.5s ease-in-out 3; }
.vv-parrot-bubble {
  pointer-events: auto; display: none;
  max-width: min(340px, calc(100vw - 100px)); padding: 10px 14px; margin-bottom: 18px;
  background: var(--paper); border: var(--border); border-radius: 14px 14px 14px 2px; box-shadow: var(--lift-sm);
  font-size: 0.98rem; cursor: pointer;
}
.vv-parrot.talking .vv-parrot-bubble { display: block; animation: vv-pop-in 0.2s ease-out; }
/* say(text, { place: 'top' }): the bubble drops down under the top bar instead of next to the bird. */
.vv-parrot.top .vv-parrot-bubble {
  position: fixed; top: calc(var(--topbar-h) + 10px); right: 14px; left: auto;
  max-width: min(400px, calc(100vw - 28px)); margin: 0; border-radius: 14px 2px 14px 14px;
  box-shadow: var(--lift);
}
@media (max-width: 640px) {
  .vv-parrot.top .vv-parrot-bubble { left: 8px; right: 8px; max-width: none; }
  /* On phones the floating bird would sit on game buttons; inside games he only talks from the top. */
  body:not([data-screen="home"]) .vv-parrot-bird { display: none; }
}
@media (max-width: 640px) {
  :root { --vv-parrot-space: 64px; }
  .vv-parrot { left: 8px; bottom: 8px; }
  .vv-parrot-bird { width: 48px; height: 48px; font-size: 1.65rem; }
  .vv-parrot-hat { top: -15px; font-size: 1.2rem; }
  .vv-parrot-bubble { max-width: calc(100vw - 76px); padding: 8px 12px; margin-bottom: 12px; font-size: 0.92rem; }
}

/* ------------------------------------------------------------ modal */
.vv-modal-wrap { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; background: rgba(18, 38, 58, 0.45); }
.vv-modal { max-width: 520px; width: 100%; text-align: center; animation: vv-pop-in 0.2s ease-out; }
.vv-modal h2 { font-size: 2rem; }
.vv-modal-body { font-size: 1.1rem; }
.vv-modal input[type="text"] {
  width: 100%; min-height: 54px; padding: 8px 14px; margin-top: 12px;
  border: var(--border); border-radius: var(--radius); font-size: 1.4rem; font-weight: 700; text-align: center;
}

/* ------------------------------------------------------------ effects */
.vv-float {
  position: fixed; z-index: 300; pointer-events: none; transform: translate(-50%, -50%);
  font-family: var(--font-display); font-size: 1.8rem; color: var(--magenta-dark);
  text-shadow: 0 2px 0 #fff, 0 -2px 0 #fff, 2px 0 0 #fff, -2px 0 0 #fff;
  animation: vv-float-up 1.1s ease-out forwards;
}
.vv-float.good { color: var(--good); }
.vv-float.bad { color: var(--red); }
.vv-float.gold { color: #B88A00; }
.vv-coin-fly { position: fixed; z-index: 300; pointer-events: none; font-size: 1.4rem; transform: translate(-50%, -50%); transition: transform 0.75s cubic-bezier(0.5, -0.3, 0.7, 1), opacity 0.75s; }
.vv-flash { position: fixed; inset: 0; z-index: 250; pointer-events: none; animation: vv-fade-out 0.45s ease-out forwards; }
.vv-confetti { position: fixed; inset: 0; z-index: 400; pointer-events: none; }
.vv-shake { animation: vv-shake 0.45s ease-in-out; }
.vv-pulse { animation: vv-pulse 0.6s ease-out; }

@keyframes vv-shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-9px); } 40% { transform: translateX(8px); } 60% { transform: translateX(-6px); } 80% { transform: translateX(4px); } }
@keyframes vv-pulse { 0% { transform: scale(1); } 40% { transform: scale(1.18); } 100% { transform: scale(1); } }
@keyframes vv-pop-in { from { opacity: 0; transform: translateY(8px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes vv-float-up { from { opacity: 1; margin-top: 0; } to { opacity: 0; margin-top: -70px; } }
@keyframes vv-fade-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes vv-bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-5px) rotate(-6deg); } }
@keyframes vv-flutter { 0%, 100% { transform: rotate(-2.5deg); } 50% { transform: rotate(2.5deg); } }
@keyframes vv-sail { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-6px) rotate(1.5deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* ------------------------------------------------------------ home screen */
.vv-home-hero { text-align: center; padding: 6px 0 18px; }
.vv-home-hero .vv-bunting { margin-bottom: 10px; }
.vv-home-title { font-size: clamp(2.6rem, 9vw, 5.2rem); margin: 0; color: var(--ink); }
.vv-home-title span { color: var(--magenta); }
.vv-home-sub { margin: 6px 0 0; font-size: 1.15rem; color: var(--ink-soft); }
.vv-home-sub strong { color: var(--ink); }
.vv-home-ship { display: inline-block; margin: 6px auto 0; animation: vv-sail 4s ease-in-out infinite; }
.vv-home-waves { height: 18px; margin: -6px auto 0; max-width: 360px; background: radial-gradient(circle at 10px -4px, transparent 12px, var(--blue) 13px 15px, transparent 16px) repeat-x; background-size: 20px 18px; opacity: 0.35; }

.vv-section-label {
  display: flex; align-items: center; gap: 12px;
  margin: 26px 0 12px; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-soft);
}
.vv-section-label::after { content: ''; flex: 1; height: 0; border-top: 2px dashed var(--magenta); opacity: 0.6; }

.vv-dest-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.vv-dest {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left;
  min-height: 150px; padding: 16px 18px 18px;
  background: var(--land); border: var(--border); border-radius: 22px 30px 18px 34px / 30px 18px 34px 22px;
  box-shadow: 0 5px 0 var(--ink);
  transition: transform 0.1s, box-shadow 0.1s;
}
.vv-dest:hover { transform: translateY(-3px) rotate(-0.4deg); box-shadow: 0 8px 0 var(--ink); }
.vv-dest:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--ink); }
.vv-dest-emoji { font-size: 2.2rem; line-height: 1; }
.vv-dest-title { font-family: var(--font-display); font-size: 1.55rem; line-height: 1.05; }
.vv-dest-blurb { color: var(--ink-soft); font-size: 1rem; }
.vv-dest-best { margin-top: auto; padding-top: 6px; font-size: 0.85rem; font-weight: 700; color: var(--magenta-dark); }
.vv-dest.feature { grid-column: 1 / -1; min-height: 170px; background: var(--paper); flex-direction: row; align-items: center; gap: 18px; }
.vv-dest.feature .vv-dest-title { font-size: clamp(1.9rem, 5vw, 2.6rem); }
.vv-dest.feature .vv-dest-text { display: flex; flex-direction: column; gap: 4px; }
.vv-dest-tag { position: absolute; top: 12px; right: 14px; padding: 2px 10px; border-radius: 999px; background: var(--magenta); color: #fff; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }

.vv-home-mastery { margin-top: 10px; }
.vv-home-mastery p { margin: 0 0 10px; color: var(--ink-soft); }
.vv-home-mastery p strong { color: var(--ink); }
.vv-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; font-size: 0.85rem; color: var(--ink-soft); }
.vv-legend span::before { content: ''; display: inline-block; width: 12px; height: 12px; margin-right: 6px; border: 2px solid var(--ink); border-radius: 50%; vertical-align: -1px; }
.vv-legend .l0::before { background: var(--lvl0); }
.vv-legend .l1::before { background: var(--lvl1); }
.vv-legend .l2::before { background: var(--lvl2); }
.vv-legend .l3::before { background: var(--lvl3); }
.vv-footer { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; align-items: center; color: var(--ink-faint); font-size: 0.9rem; }

@media (max-width: 640px) {
  .vv-dest.feature { flex-direction: column; align-items: flex-start; }
  .vv-dest.feature .vv-ship { width: 96px; height: auto; }
}

/* ------------------------------------------------------------ worlds
   World 2 (The Frozen Peaks) turns the nautical chart into a topographic map: the same contour
   rings, drawn in brown on snow instead of blue on sea. Games pick it up through the tokens. */
body.world-peaks {
  --sea: #EEF3F6;
  --sea-deep: #D5E2EB;
  --contour: rgba(139, 94, 52, 0.24);
  --land: #ECE4D6;
  --land-edge: #B8AB95;
}

.vv-worlds { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin: 6px 0 24px; }
.vv-world {
  position: relative; display: flex; align-items: center; gap: 14px; text-align: left;
  padding: 14px 16px; border: var(--border); border-radius: var(--radius); box-shadow: var(--lift);
  background: var(--paper); transition: transform 0.1s, box-shadow 0.1s;
}
.vv-world[data-world="sea"] { background: #E2F1F5; }
.vv-world[data-world="peaks"] { background: #F4F0E8; }
.vv-world:hover:not(.is-here) { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); }
.vv-world:active:not(.is-here) { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.vv-world.is-here { outline: 3px solid var(--magenta); outline-offset: 3px; cursor: default; }
.vv-world-emoji { font-size: 2.5rem; line-height: 1; }
.vv-world-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.vv-world-eyebrow { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--magenta-dark); }
.vv-world-title { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.05; }
.vv-world-tag { font-size: 0.92rem; color: var(--ink-soft); }
.vv-world-meter { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 0.85rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.vv-world-bar { flex: 1; height: 9px; border: 2px solid var(--ink); border-radius: 999px; background: var(--lvl0); overflow: hidden; }
.vv-world-bar > span { display: block; height: 100%; background: var(--lvl3); }
.vv-world-badge {
  position: absolute; top: -12px; right: 12px; padding: 2px 10px; border: 2px solid var(--ink); border-radius: 999px;
  background: var(--magenta); color: #fff; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}
.vv-world-badge.new { background: var(--yellow); color: var(--ink); }
.vv-dest-art { display: inline-flex; flex: none; }
