:root {
  --ink: #122525;
  --ink-soft: #39504d;
  --surface: rgba(255, 252, 244, 0.92);
  --surface-strong: #fffaf0;
  --reef: #0c8f93;
  --leaf: #287a54;
  --coral: #e96f4c;
  --gold: #d7a53f;
  --lagoon: #68c8c6;
  --night: #0d2f2f;
  --shadow: 0 24px 70px rgba(10, 37, 36, 0.28);
  --radius: 8px;
  --topbar-height: 72px;
  --panel-width: min(470px, calc(100vw - 28px));
  --compass-rotation: 0deg;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #0d2f2f;
  letter-spacing: 0;
}

* {
  box-sizing: border-box;
}

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

body {
  overflow: hidden;
}

button,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(13, 47, 47, 0.32), rgba(13, 47, 47, 0.02)),
    #0d2f2f;
  color: var(--ink);
}

.arrival-sequence {
  position: fixed;
  z-index: 80;
  inset: 0;
  overflow: hidden;
  background: rgba(6, 24, 30, 0.12);
  color: #fffaf0;
  opacity: 1;
  visibility: visible;
  transition: opacity 950ms ease, visibility 950ms ease;
}

.app-shell.arrival-map-ready .arrival-sequence {
  background: transparent;
}

.arrival-sequence::before,
.arrival-sequence::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.arrival-sequence::before {
  background:
    linear-gradient(90deg, rgba(3, 18, 23, 0.24), rgba(3, 18, 23, 0.03) 48%, rgba(3, 18, 23, 0.06)),
    linear-gradient(0deg, rgba(3, 18, 23, 0.1), transparent 46%, rgba(255, 226, 178, 0.22));
}

.arrival-sequence::after {
  background:
    linear-gradient(112deg, rgba(255, 226, 174, 0.3), transparent 34%),
    linear-gradient(180deg, rgba(255, 250, 240, 0.14), transparent 34%, rgba(3, 18, 23, 0.04));
  mix-blend-mode: screen;
  opacity: 0.68;
  transition: opacity 1200ms ease;
}

.app-shell.arrival-final .arrival-sequence::after {
  opacity: 0.3;
}

.app-shell.has-arrived .arrival-sequence {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.topbar,
.intro-panel,
.island-strip,
.map-attribution {
  transition: opacity 720ms ease, transform 720ms cubic-bezier(0.2, 0.86, 0.2, 1);
}

.app-shell.is-arriving .topbar,
.app-shell.is-arriving .intro-panel,
.app-shell.is-arriving .island-strip,
.app-shell.is-arriving .map-attribution {
  opacity: 0;
  pointer-events: none;
}

.app-shell.is-arriving .topbar {
  transform: translateY(-16px);
}

.app-shell.is-arriving .intro-panel {
  transform: translateY(22px);
}

.app-shell.is-arriving .island-strip {
  transform: translateY(28px);
}

.app-shell.is-arriving .map-marker,
.app-shell.is-arriving .fallback-marker {
  opacity: 0 !important;
  visibility: hidden;
  pointer-events: none;
}

.app-shell.is-arriving .fallback-map {
  opacity: 0;
}

.app-shell.is-arriving:not(.arrival-map-ready) .map-canvas,
.app-shell.is-arriving:not(.arrival-map-ready) .fallback-map {
  opacity: 0;
  visibility: hidden;
}

.topbar {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 4vw, 36px);
  color: #fffaf0;
  pointer-events: none;
}

.brand,
.top-actions {
  pointer-events: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.34);
}

.brand-logo-slot {
  width: 48px;
  height: 48px;
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.brand-logo-image:not([hidden]) {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.brand-logo-image:not([hidden]) + .brand-mark {
  display: none;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 250, 240, 0.38);
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(255, 250, 240, 0.12), rgba(255, 250, 240, 0.03)),
    rgba(13, 47, 47, 0.34);
  backdrop-filter: blur(18px);
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.brand small {
  margin-top: 2px;
  font-size: 0.74rem;
  color: rgba(255, 250, 240, 0.78);
}

.top-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.icon-button,
.panel-close {
  border: 1px solid rgba(255, 250, 240, 0.32);
  background:
    linear-gradient(145deg, rgba(255, 250, 240, 0.13), rgba(255, 250, 240, 0.04)),
    rgba(8, 34, 38, 0.5);
  color: #fffaf0;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 250, 240, 0.16);
  backdrop-filter: blur(18px) saturate(1.08);
}

.icon-button {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 1.55rem;
  line-height: 1;
  transition: transform 190ms ease, border-color 190ms ease, background 190ms ease, box-shadow 190ms ease;
}

.icon-button:hover,
.icon-button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 250, 240, 0.62);
  background:
    linear-gradient(145deg, rgba(255, 250, 240, 0.2), rgba(104, 200, 198, 0.08)),
    rgba(9, 43, 47, 0.58);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.23), inset 0 1px 0 rgba(255, 250, 240, 0.24);
}

.compass-button > span:not(.compass-ring) {
  display: none;
}

.compass-ring {
  position: relative;
  width: 40px;
  height: 40px;
  display: block;
  border: 1px solid rgba(255, 250, 240, 0.34);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 250, 240, 0.2), transparent 32%),
    conic-gradient(from 45deg, rgba(255, 250, 240, 0.42), rgba(255, 250, 240, 0.06), rgba(104, 200, 198, 0.36), rgba(255, 250, 240, 0.08), rgba(255, 250, 240, 0.42));
}

.compass-ring::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: rgba(5, 25, 28, 0.54);
}

.compass-needle {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: 4px;
  height: 27px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, #ffe2a3 0 46%, rgba(255, 250, 240, 0.82) 46% 54%, rgba(104, 200, 198, 0.72) 54% 100%);
  box-shadow: 0 0 10px rgba(255, 226, 163, 0.28);
  transform: translate(-50%, -50%) rotate(var(--compass-rotation));
  transform-origin: center;
  transition: transform 220ms cubic-bezier(0.2, 0.86, 0.2, 1);
}

.compass-north {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: -3px;
  color: #fffaf0;
  font-size: 0.62rem;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.38);
  transform: translateX(-50%);
}

#randomButton span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 250, 240, 0.18);
  border-radius: 50%;
  background: rgba(255, 250, 240, 0.08);
  color: rgba(255, 250, 240, 0.92);
  font-size: 1.22rem;
  font-weight: 850;
  line-height: 1;
}

.experience {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.map-stage,
.map-canvas,
.fallback-map {
  position: absolute;
  inset: 0;
}

.map-stage {
  background:
    radial-gradient(ellipse at 64% 18%, rgba(104, 200, 198, 0.22), transparent 42%),
    linear-gradient(160deg, rgba(13, 47, 47, 0.48), rgba(12, 143, 147, 0.22)),
    #083642;
}

.map-canvas {
  z-index: 2;
  opacity: 1;
  filter: saturate(1.15) brightness(1.34) contrast(0.99);
  transition: opacity 220ms ease, filter 520ms ease;
}

.fallback-map {
  z-index: 1;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(11, 64, 71, 0.08), rgba(11, 64, 71, 0.42)),
    url("../assets/antilles-aerial-premium.png") center / cover;
}

.fallback-map::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 250, 240, 0.26), transparent 34%, rgba(104, 200, 198, 0.26) 62%, rgba(13, 47, 47, 0.2)),
    linear-gradient(180deg, rgba(13, 47, 47, 0.04), rgba(13, 47, 47, 0.18));
  mix-blend-mode: screen;
  opacity: 0.72;
}

.fallback-viewport {
  position: absolute;
  inset: 0;
  transform-origin: var(--focus-x, 50%) var(--focus-y, 50%);
  transform: scale(var(--focus-scale, 1));
  transition: transform 900ms cubic-bezier(0.2, 0.86, 0.2, 1);
}

.fallback-island-layer {
  position: absolute;
  inset: 0;
}

.fallback-marker,
.map-marker {
  --marker-color: var(--coral);
  --label-x: 0px;
  --label-y: -40px;
  border: 0;
  width: 34px;
  height: 34px;
  padding: 0;
  background: transparent;
  color: var(--ink);
  touch-action: manipulation;
}

.fallback-marker {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
}

.map-marker {
  position: relative;
  display: block;
}

.marker-label {
  position: absolute;
  left: 50%;
  top: 50%;
  pointer-events: none;
}

.marker-label {
  z-index: 3;
  min-width: max-content;
  border: 1px solid rgba(255, 250, 240, 0.36);
  border-radius: 7px;
  padding: 5px 8px 4px;
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.84), rgba(236, 248, 245, 0.68));
  color: rgba(18, 37, 37, 0.88);
  font-size: 0.62rem;
  font-weight: 780;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(5, 22, 26, 0.14), inset 0 1px 0 rgba(255, 250, 240, 0.42);
  text-shadow: none;
  opacity: 0.9;
  pointer-events: auto;
  backdrop-filter: blur(8px) saturate(1.05);
  transition: opacity 180ms ease, transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
  transform: translate(calc(-50% + var(--label-x)), calc(-50% + var(--label-y) - 2px));
}

.fallback-marker:hover .marker-label,
.fallback-marker:focus-visible .marker-label,
.fallback-marker.is-active .marker-label,
.map-marker:hover .marker-label,
.map-marker.is-active .marker-label {
  background: rgba(255, 250, 240, 0.94);
  opacity: 1;
  box-shadow: 0 12px 26px rgba(5, 22, 26, 0.24), inset 0 1px 0 rgba(255, 250, 240, 0.54);
  transform: translate(calc(-50% + var(--label-x)), calc(-50% + var(--label-y) - 5px));
}

.map-vignette {
  position: absolute;
  z-index: 3;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 68% 14%, rgba(255, 226, 166, 0.18), transparent 34%),
    radial-gradient(ellipse at 55% 46%, rgba(104, 200, 198, 0.16), transparent 46%),
    linear-gradient(90deg, rgba(5, 22, 26, 0.34), rgba(5, 22, 26, 0.04) 30%, rgba(5, 22, 26, 0.01) 74%),
    linear-gradient(180deg, rgba(255, 229, 176, 0.1), transparent 29%),
    linear-gradient(0deg, rgba(5, 22, 26, 0.16), transparent 38%, rgba(5, 22, 26, 0.02));
}

.map-vignette::before,
.map-vignette::after {
  content: "";
  position: absolute;
  inset: -12%;
  pointer-events: none;
}

.map-vignette::before {
  background:
    linear-gradient(118deg, rgba(255, 240, 202, 0.18), transparent 34%),
    radial-gradient(ellipse at 78% 22%, rgba(255, 250, 240, 0.12), transparent 36%);
  mix-blend-mode: screen;
  opacity: 0.76;
}

.map-vignette::after {
  background:
    repeating-linear-gradient(112deg, rgba(255, 250, 240, 0.035) 0 1px, transparent 1px 38px),
    radial-gradient(ellipse at 56% 58%, rgba(7, 89, 96, 0.18), transparent 40%);
  mix-blend-mode: soft-light;
  opacity: 0.42;
  transform: translate3d(0, 0, 0);
  animation: seaLightDrift 18s ease-in-out infinite alternate;
}

.app-shell.has-panel .map-canvas {
  filter: saturate(1.12) brightness(1.26) contrast(0.99);
}

@keyframes seaLightDrift {
  from {
    transform: translate3d(-1.2%, -0.8%, 0);
  }

  to {
    transform: translate3d(1.2%, 0.8%, 0);
  }
}

.map-attribution {
  position: fixed;
  z-index: 9;
  right: 10px;
  bottom: 8px;
  max-width: min(180px, calc(100vw - 20px));
  padding: 3px 6px;
  border: 1px solid rgba(255, 250, 240, 0.12);
  border-radius: 999px;
  background: rgba(5, 22, 26, 0.22);
  color: rgba(255, 250, 240, 0.48);
  font-size: 0.55rem;
  line-height: 1.25;
  opacity: 0.44;
  white-space: nowrap;
  backdrop-filter: blur(10px);
  cursor: help;
  pointer-events: auto;
  transition: opacity 180ms ease, max-width 180ms ease, color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.map-attribution::after {
  content: attr(data-credit);
  display: none;
  margin-left: 6px;
}

.map-attribution:hover,
.map-attribution:focus-visible {
  max-width: min(380px, calc(100vw - 20px));
  border-color: rgba(255, 250, 240, 0.28);
  background: rgba(5, 22, 26, 0.58);
  color: rgba(255, 250, 240, 0.86);
  opacity: 1;
}

.map-attribution:hover::after,
.map-attribution:focus-visible::after {
  display: inline;
}

.intro-panel {
  position: fixed;
  z-index: 10;
  left: clamp(16px, 4vw, 42px);
  top: calc(var(--topbar-height) + 42px);
  width: min(410px, calc(100vw - 32px));
  color: #fffaf0;
  text-shadow: 0 3px 26px rgba(0, 0, 0, 0.32);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.intro-panel h1 {
  margin: 0;
  max-width: 10ch;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3rem;
  line-height: 0.98;
  font-weight: 700;
}

.intro-panel p:not(.eyebrow) {
  max-width: 26rem;
  margin: 0;
  color: rgba(255, 250, 240, 0.8);
  font-size: 0.88rem;
  line-height: 1.52;
  transition: opacity 360ms ease, transform 360ms ease;
}

.intro-copy {
  width: min(390px, calc(100vw - 36px));
  margin-top: 20px;
  padding: 18px 18px 17px;
  border: 1px solid rgba(255, 250, 240, 0.22);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 250, 240, 0.11), rgba(255, 250, 240, 0.035)),
    rgba(8, 35, 42, 0.11);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(14px) saturate(1.04);
}

.intro-reassurance {
  max-width: 30rem;
}

.intro-promise {
  max-width: 20rem;
  margin-top: 18px !important;
  font-size: 0.92rem !important;
  font-weight: 760;
}

.journey-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: min(250px, calc(100vw - 40px));
  min-height: 52px;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 250, 240, 0.42);
  border-radius: var(--radius);
  padding: 13px 20px;
  background:
    linear-gradient(135deg, rgba(255, 250, 240, 0.22), rgba(255, 250, 240, 0.07)),
    rgba(255, 250, 240, 0.08);
  color: #fffaf0;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.13);
  text-transform: uppercase;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  backdrop-filter: blur(16px) saturate(1.1);
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.journey-cta::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: linear-gradient(110deg, transparent, rgba(255, 250, 240, 0.35), transparent);
  opacity: 0;
  transform: translateX(-55%);
  transition: opacity 220ms ease, transform 520ms cubic-bezier(0.2, 0.86, 0.2, 1);
}

.journey-cta:hover,
.journey-cta:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 250, 240, 0.72);
  background:
    linear-gradient(135deg, rgba(255, 250, 240, 0.3), rgba(255, 250, 240, 0.1)),
    rgba(104, 200, 198, 0.14);
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.18);
}

.journey-cta:hover::before,
.journey-cta:focus-visible::before {
  opacity: 1;
  transform: translateX(55%);
}

.island-strip {
  position: fixed;
  z-index: 12;
  left: 0;
  right: 0;
  bottom: 18px;
  padding: 0 clamp(14px, 4vw, 42px);
  pointer-events: none;
  transition: opacity 720ms ease, transform 720ms cubic-bezier(0.2, 0.86, 0.2, 1), right 520ms cubic-bezier(0.2, 0.86, 0.2, 1);
}

.island-strip-track {
  display: flex;
  gap: 8px;
  max-width: calc(100vw - clamp(28px, 8vw, 84px));
  padding: 7px;
  overflow-x: auto;
  scrollbar-width: none;
  pointer-events: auto;
  scroll-snap-type: x proximity;
  border: 1px solid rgba(255, 250, 240, 0.16);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(207, 230, 218, 0.08), rgba(123, 152, 145, 0.035)),
    rgba(8, 31, 34, 0.18);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.13), inset 0 1px 0 rgba(255, 250, 240, 0.08);
  backdrop-filter: blur(16px) saturate(1.04);
}

.island-strip-track::-webkit-scrollbar {
  display: none;
}

.island-chip {
  position: relative;
  flex: 0 0 auto;
  min-width: 142px;
  max-width: 196px;
  min-height: 52px;
  overflow: hidden;
  border: 1px solid rgba(255, 250, 240, 0.26);
  border-radius: var(--radius);
  padding: 9px 11px 12px;
  background:
    linear-gradient(135deg, rgba(226, 240, 232, 0.11), rgba(171, 196, 188, 0.045)),
    rgba(13, 44, 43, 0.38);
  color: rgba(255, 250, 240, 0.92);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 250, 240, 0.09);
  text-align: left;
  backdrop-filter: blur(18px) saturate(1.02);
  scroll-snap-align: start;
  transition: transform 220ms cubic-bezier(0.2, 0.86, 0.2, 1), background 220ms ease, border-color 220ms ease, box-shadow 220ms ease, color 220ms ease;
}

.island-chip::after {
  content: none;
}

.island-chip:hover,
.island-chip:focus-visible,
.island-chip.is-active {
  transform: translateY(-5px);
  background:
    linear-gradient(135deg, rgba(255, 250, 240, 0.86), rgba(224, 247, 241, 0.5)),
    rgba(255, 250, 240, 0.28);
  color: var(--ink);
  border-color: color-mix(in srgb, var(--chip-color, var(--coral)) 68%, white);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.19), 0 0 26px color-mix(in srgb, var(--chip-color, var(--coral)) 16%, transparent);
}

.island-chip:hover::after,
.island-chip:focus-visible::after,
.island-chip.is-active::after {
  content: none;
}

.island-chip strong,
.island-chip span {
  display: block;
}

.island-chip strong {
  font-size: 0.86rem;
  line-height: 1.1;
}

.island-chip span {
  margin-top: 4px;
  color: rgba(255, 250, 240, 0.72);
  font-size: 0.7rem;
  line-height: 1.25;
}

.island-chip:hover span,
.island-chip:focus-visible span,
.island-chip.is-active span {
  color: var(--ink-soft);
}

.island-panel {
  position: fixed;
  z-index: 22;
  top: 86px;
  right: clamp(14px, 3vw, 32px);
  bottom: 28px;
  width: var(--panel-width);
  border: 1px solid rgba(255, 250, 240, 0.34);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 30px 90px rgba(5, 22, 26, 0.34);
  overflow: hidden;
  transform: translateX(calc(100% + 42px)) translateY(16px) scale(0.975);
  opacity: 0;
  pointer-events: none;
  transition: transform 740ms cubic-bezier(0.18, 0.88, 0.18, 1), opacity 430ms ease;
  backdrop-filter: blur(18px);
}

.island-panel.is-open {
  transform: translateX(0) translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.panel-close {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 1.35rem;
  line-height: 1;
}

.panel-scroll {
  height: 100%;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(18, 37, 37, 0.28) transparent;
}

.panel-hero {
  position: relative;
  min-height: 226px;
  background-image:
    linear-gradient(180deg, rgba(13, 47, 47, 0.02), rgba(13, 47, 47, 0.5)),
    var(--panel-image, url("../assets/antilles-aerial-premium.png"));
  background-position: center, var(--panel-position, center);
  background-size: cover, cover;
  transition: background-size 760ms cubic-bezier(0.2, 0.86, 0.2, 1);
}

.island-panel.is-open .panel-hero {
  background-size: cover, cover;
}

.panel-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 72% 18%, rgba(255, 250, 240, 0.16), transparent 36%),
    linear-gradient(180deg, transparent 58%, rgba(13, 47, 47, 0.38));
  pointer-events: none;
}

.panel-content {
  padding: 22px;
}

.panel-content h2 {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  line-height: 1.05;
}

.panel-mood {
  margin: 10px 0 0;
  color: color-mix(in srgb, var(--active-color, var(--coral)) 62%, var(--ink));
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.38;
}

.lead {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.65;
}

@media (min-width: 901px) {
  .app-shell.has-panel .intro-panel {
    opacity: 0.58;
    transform: translateY(-8px) scale(0.96);
    pointer-events: none;
  }

  .app-shell.has-panel .intro-copy,
  .app-shell.has-panel .journey-cta {
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
  }

  .app-shell.has-panel .island-strip {
    right: calc(var(--panel-width) + clamp(18px, 3vw, 42px));
  }

  .app-shell.has-panel .island-strip-track {
    max-width: 100%;
  }
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 5px 9px;
  background: color-mix(in srgb, var(--active-color, var(--coral)) 16%, white);
  color: color-mix(in srgb, var(--active-color, var(--coral)) 62%, var(--ink));
  font-size: 0.72rem;
  font-weight: 800;
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
  margin: 22px 0;
  padding: 18px 0;
  border-top: 1px solid rgba(18, 37, 37, 0.12);
  border-bottom: 1px solid rgba(18, 37, 37, 0.12);
}

.facts-grid div {
  min-width: 0;
}

.facts-grid dt {
  color: rgba(18, 37, 37, 0.58);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.facts-grid dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.3;
}

.score-section,
.gallery-section,
.discovery-section {
  margin-top: 24px;
}

.panel-content h3 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.25;
}

.scores-list {
  display: grid;
  gap: 9px;
}

.score-row {
  display: grid;
  grid-template-columns: minmax(96px, 132px) 1fr;
  align-items: center;
  gap: 12px;
  min-height: 36px;
  border: 1px solid rgba(18, 37, 37, 0.07);
  border-radius: 8px;
  padding: 8px 10px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.42), rgba(255, 250, 240, 0.12)),
    rgba(18, 37, 37, 0.018);
}

.score-label {
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 760;
  line-height: 1.2;
}

.score-meter {
  position: relative;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(18, 37, 37, 0.2), rgba(18, 37, 37, 0.1));
  box-shadow: inset 0 1px 3px rgba(18, 37, 37, 0.18);
}

.score-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--score-level, 0%);
  border-radius: inherit;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--active-color, var(--coral)) 82%, #ffffff), color-mix(in srgb, var(--active-color, var(--coral)) 96%, #0a6f77));
  box-shadow: 0 0 18px color-mix(in srgb, var(--active-color, var(--coral)) 34%, transparent);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.gallery-card {
  position: relative;
  min-height: 118px;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, transparent, rgba(13, 47, 47, 0.58)),
    var(--gallery-image, url("../assets/antilles-aerial-premium.png")) var(--photo-position, center) / cover;
  box-shadow: inset 0 1px 0 rgba(255, 250, 240, 0.2);
  transition: transform 220ms ease, box-shadow 220ms ease, filter 220ms ease;
}

.gallery-card:first-child {
  grid-column: 1 / -1;
  min-height: 154px;
}

.gallery-card:hover {
  transform: translateY(-2px);
  filter: saturate(1.06) brightness(1.04);
  box-shadow: 0 12px 28px rgba(13, 47, 47, 0.16), inset 0 1px 0 rgba(255, 250, 240, 0.24);
}

.gallery-card::after {
  content: attr(data-caption);
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  color: #fffaf0;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.15;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.discovery-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.discovery-section ul {
  margin: 0;
  padding-left: 1rem;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.55;
}

.discovery-section li + li {
  margin-top: 6px;
}

.match-cta {
  width: 100%;
  min-height: 54px;
  margin-top: 24px;
  border: 0;
  border-radius: var(--radius);
  padding: 12px 16px;
  background: var(--active-color, var(--coral));
  color: #fffaf0;
  font-weight: 850;
  line-height: 1.2;
  box-shadow: 0 16px 34px color-mix(in srgb, var(--active-color, var(--coral)) 28%, transparent);
}

.toast {
  position: fixed;
  z-index: 40;
  left: 50%;
  bottom: 104px;
  width: min(420px, calc(100vw - 28px));
  transform: translateX(-50%) translateY(18px);
  border-radius: var(--radius);
  padding: 12px 14px;
  background: rgba(255, 250, 240, 0.94);
  color: var(--ink);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 900px) {
  body {
    overflow: auto;
    background: var(--night);
  }

  .app-shell,
  .experience {
    min-height: 100svh;
  }

  .topbar {
    height: 64px;
    padding: 10px 12px;
  }

  .brand small {
    display: none;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .brand-logo-slot {
    width: 42px;
    height: 42px;
  }

  .icon-button {
    width: 52px;
    height: 52px;
  }

  .compass-ring {
    width: 34px;
    height: 34px;
  }

  .compass-ring::after {
    inset: 7px;
  }

  .compass-needle {
    height: 23px;
  }

  #randomButton span {
    width: 32px;
    height: 32px;
  }

  .intro-panel {
    top: 78px;
    left: 14px;
    right: 14px;
    width: auto;
  }

  .app-shell.has-panel .intro-panel,
  .app-shell.has-panel .island-strip {
    opacity: 0;
    pointer-events: none;
  }

  .app-shell.has-panel .intro-panel {
    transform: translateY(-12px);
  }

  .intro-panel h1 {
    max-width: 12ch;
    font-size: 2.35rem;
  }

  .intro-panel p:not(.eyebrow) {
    max-width: 24rem;
    font-size: 0.82rem;
    line-height: 1.45;
  }

  .intro-promise {
    max-width: 20rem;
    margin-top: 10px !important;
    font-size: 0.84rem !important;
  }

  .intro-copy {
    width: min(360px, calc(100vw - 28px));
    margin-top: 10px;
    padding: 11px 12px;
  }

  .journey-cta {
    min-width: min(240px, calc(100vw - 28px));
    min-height: 44px;
    margin-top: 11px;
    padding: 10px 15px;
    font-size: 0.72rem;
  }

  .island-strip {
    bottom: 18px;
    padding: 0 12px;
  }

  .island-chip {
    min-width: 138px;
  }

  .island-panel {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: 78svh;
    border-radius: var(--radius) var(--radius) 0 0;
    transform: translateY(105%);
  }

  .island-panel.is-open {
    transform: translateY(0);
  }

  .panel-content {
    padding: 18px 16px 24px;
  }

  .panel-hero {
    min-height: 182px;
  }

  .facts-grid,
  .discovery-section {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .top-actions {
    gap: 8px;
  }

  .icon-button {
    width: 48px;
    height: 48px;
  }

  .intro-panel h1 {
    max-width: 11ch;
    font-size: 2rem;
  }

  .intro-panel p:not(.eyebrow) {
    max-width: 20rem;
    font-size: 0.82rem;
    line-height: 1.45;
  }

  .intro-promise {
    margin-top: 14px !important;
    font-size: 0.84rem !important;
  }

  .intro-copy {
    padding: 12px;
  }

  .journey-cta {
    min-width: min(230px, calc(100vw - 28px));
    min-height: 42px;
    font-size: 0.7rem;
  }

  .map-attribution {
    display: none;
  }

  .marker-label {
    padding: 4px 7px;
    font-size: 0.62rem;
  }

  .fallback-marker[data-island-id="saint-martin"],
  .map-marker[data-island-id="saint-martin"] {
    --label-x: -34px !important;
    --label-y: -34px !important;
  }

  .fallback-marker[data-island-id="saint-barthelemy"],
  .map-marker[data-island-id="saint-barthelemy"] {
    --label-x: 42px !important;
    --label-y: -30px !important;
  }

  .fallback-marker[data-island-id="marie-galante"],
  .map-marker[data-island-id="marie-galante"] {
    --label-x: 36px !important;
    --label-y: -22px !important;
  }

  .fallback-marker[data-island-id="les-saintes"],
  .map-marker[data-island-id="les-saintes"] {
    --label-x: -42px !important;
    --label-y: 4px !important;
  }

  .fallback-marker[data-island-id="la-desirade"],
  .map-marker[data-island-id="la-desirade"] {
    --label-x: -16px !important;
    --label-y: -54px !important;
  }

  .toast {
    bottom: 88px;
  }
}

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

}

/* Preview integration - lien retour vers le site principal */
.module-brand {
  min-width: 0;
}

.module-brand-logo {
  width: clamp(158px, 14vw, 214px);
  height: auto;
  max-height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .26));
}

.site-return-link {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border: 1px solid rgba(255, 250, 240, .24);
  border-radius: 999px;
  color: rgba(255, 250, 240, .78);
  background:
    linear-gradient(145deg, rgba(255, 250, 240, .10), rgba(255, 250, 240, .035)),
    rgba(8, 34, 38, .34);
  box-shadow: inset 0 1px 0 rgba(255, 250, 240, .12);
  backdrop-filter: blur(14px) saturate(1.04);
  font-size: .72rem;
  font-weight: 820;
  line-height: 1;
  text-decoration: none;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.site-return-link:hover,
.site-return-link:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 250, 240, .48);
  color: #fffaf0;
  background:
    linear-gradient(145deg, rgba(255, 250, 240, .16), rgba(104, 200, 198, .07)),
    rgba(8, 34, 38, .46);
}

@media (max-width: 640px) {
  .module-brand-logo {
    width: 142px;
  }

  .site-return-link {
    min-height: 34px;
    padding: 0 10px;
    font-size: .66rem;
  }
}

@media (max-width: 420px) {
  .module-brand-logo {
    width: 124px;
  }
}

/* Preview premium - retour site plus clair avec libelle long */
.site-return-link {
  min-width: 0;
  max-width: min(280px, 42vw);
  padding: 0 16px;
  white-space: nowrap;
  color: rgba(255, 250, 240, .86);
  border-color: rgba(255, 250, 240, .34);
  background:
    linear-gradient(145deg, rgba(255, 250, 240, .13), rgba(104, 200, 198, .055)),
    rgba(8, 34, 38, .28);
}

.site-return-link:hover,
.site-return-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 250, 240, .62);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, .22),
    inset 0 1px 0 rgba(255, 250, 240, .22);
}

@media (max-width: 640px) {
  .site-return-link {
    max-width: 148px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* V6 preview : entree plus legere, carte visible, controles agrandis */
.intro-panel h1 {
  max-width: none;
  white-space: nowrap;
}

.intro-copy {
  width: min(410px, calc(100vw - 36px));
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.intro-promise {
  max-width: 25rem;
  margin-top: 0 !important;
  color: rgba(255, 250, 240, .96) !important;
  font-size: clamp(1rem, 1.35vw, 1.18rem) !important;
  line-height: 1.42 !important;
  text-shadow: 0 16px 38px rgba(0, 0, 0, .38);
}

.compass-ring {
  width: 48px;
  height: 48px;
}

.compass-ring::after {
  inset: 9px;
}

.compass-needle {
  height: 32px;
}

#randomButton span {
  width: 46px;
  height: 46px;
  font-size: 1.38rem;
}

.site-return-link {
  max-width: none;
  padding-inline: 18px;
}

@media (max-width: 900px) {
  .intro-panel h1 {
    max-width: none;
    font-size: clamp(1.72rem, 7vw, 2.18rem);
    white-space: nowrap;
  }

  .intro-copy {
    width: min(340px, calc(100vw - 28px));
    padding: 0;
  }

  .intro-promise {
    max-width: 19rem;
    font-size: .92rem !important;
  }

  .compass-ring {
    width: 40px;
    height: 40px;
  }

  .compass-ring::after {
    inset: 8px;
  }

  .compass-needle {
    height: 27px;
  }

  #randomButton span {
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 420px) {
  .intro-panel h1 {
    max-width: none;
  }
}

/* V7 preview : experience mobile plus respirante et fiche ile scrollable */
.match-cta-mobile {
  display: none;
}

@media (max-width: 900px) {
  html,
  body {
    min-height: 100%;
    overflow: hidden;
  }

  body.panel-open {
    overflow: hidden;
  }

  .app-shell,
  .experience {
    min-height: 100dvh;
    height: 100dvh;
    overflow: hidden;
  }

  .map-canvas {
    filter: saturate(1.12) brightness(1.24) contrast(0.98);
  }

  .intro-panel {
    top: calc(70px + env(safe-area-inset-top));
    left: 14px;
    right: auto;
    width: min(292px, calc(100vw - 28px));
    pointer-events: none;
  }

  .intro-panel .eyebrow {
    margin-bottom: 5px;
    font-size: 0.58rem;
    opacity: 0.82;
  }

  .intro-panel h1 {
    max-width: 9.6ch;
    white-space: normal;
    font-size: clamp(1.48rem, 6.2vw, 1.92rem);
    line-height: 0.98;
    text-shadow: 0 12px 30px rgba(0, 0, 0, 0.34);
  }

  .intro-copy {
    display: none;
  }

  .journey-cta {
    pointer-events: auto;
    min-width: min(226px, calc(100vw - 28px));
    min-height: 42px;
    margin-top: 11px;
    padding: 10px 14px;
    background:
      linear-gradient(135deg, rgba(255, 250, 240, 0.18), rgba(255, 250, 240, 0.06)),
      rgba(7, 35, 42, 0.12);
    font-size: 0.66rem;
  }

  .island-strip {
    bottom: calc(14px + env(safe-area-inset-bottom));
    padding-inline: 10px;
  }

  .island-strip-track {
    max-width: 100%;
    scroll-padding-inline: 10px;
  }

  .island-chip {
    min-width: min(160px, 43vw);
    min-height: 58px;
  }

  .island-panel {
    top: calc(72px + env(safe-area-inset-top));
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: none;
    height: calc(100dvh - 72px - env(safe-area-inset-top));
    border-radius: 10px 10px 0 0;
    transform: translateY(calc(100% + 18px));
  }

  .island-panel.is-open {
    transform: translateY(0);
  }

  .panel-scroll {
    height: 100%;
    max-height: 100%;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
  }

  .panel-hero {
    min-height: clamp(112px, 23dvh, 148px);
    background-position: center, var(--panel-position-mobile, var(--panel-position, center));
  }

  .panel-close {
    top: 10px;
    right: 10px;
    width: 42px;
    height: 42px;
  }

  .panel-content {
    padding: 16px 16px calc(30px + env(safe-area-inset-bottom));
  }

  .panel-content > .eyebrow {
    margin-bottom: 6px;
    font-size: 0.68rem;
  }

  .panel-content h2 {
    font-size: clamp(1.82rem, 8.2vw, 2.28rem);
    line-height: 1;
  }

  .panel-mood {
    margin-top: 9px;
    font-size: clamp(1rem, 4.8vw, 1.14rem);
  }

  .lead {
    font-size: 0.96rem;
    line-height: 1.55;
  }

  .badge-row {
    gap: 7px;
    margin-top: 15px;
  }

  .badge {
    min-height: 30px;
    font-size: 0.72rem;
  }

  .facts-grid {
    gap: 12px;
    margin: 18px 0;
    padding: 16px 0;
  }

  .score-row {
    grid-template-columns: minmax(88px, 122px) 1fr;
  }

  .gallery-card {
    min-height: 96px;
  }

  .gallery-card:first-child {
    min-height: 112px;
  }

  .match-cta-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    margin-top: 16px;
    margin-bottom: 0;
  }

  .panel-content > .match-cta:not(.match-cta-mobile) {
    position: static;
    margin-top: 22px;
    box-shadow: 0 18px 38px color-mix(in srgb, var(--active-color, var(--coral)) 30%, transparent);
  }
}

@media (max-width: 520px) {
  .intro-panel {
    width: min(262px, calc(100vw - 28px));
  }

  .intro-panel h1 {
    max-width: 9ch;
    font-size: clamp(1.44rem, 6.8vw, 1.86rem);
  }

  .journey-cta {
    min-width: min(218px, calc(100vw - 28px));
    font-size: 0.64rem;
  }

  .site-return-link {
    max-width: 92px;
  }

  .module-brand-logo {
    width: 118px;
  }
}

@media (max-width: 900px) and (max-height: 740px) {
  .intro-panel {
    top: calc(66px + env(safe-area-inset-top));
  }

  .intro-panel h1 {
    font-size: clamp(1.36rem, 6vw, 1.68rem);
  }

  .journey-cta {
    min-height: 40px;
    margin-top: 9px;
  }

  .island-strip {
    bottom: calc(8px + env(safe-area-inset-bottom));
  }

  .island-panel {
    top: calc(64px + env(safe-area-inset-top));
    height: calc(100dvh - 64px - env(safe-area-inset-top));
  }

  .panel-hero {
    min-height: 108px;
  }
}

@supports not (height: 100dvh) {
  @media (max-width: 900px) {
    .app-shell,
    .experience {
      height: 100vh;
    }

    .island-panel {
      height: calc(100vh - 72px - env(safe-area-inset-top));
    }
  }
}

/* V8 preview : navigation premium, aide utile et fiche en niveaux */
.fallback-marker::before,
.map-marker::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 16px;
  border: 1px solid color-mix(in srgb, var(--marker-color, var(--coral)) 72%, white);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 250, 240, 0.72) 0 22%, color-mix(in srgb, var(--marker-color, var(--coral)) 58%, transparent) 24% 52%, transparent 55%);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--marker-color, var(--coral)) 28%, transparent);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.72);
  transition: opacity 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}

.fallback-marker.is-active::before,
.map-marker.is-active::before,
.fallback-marker:hover::before,
.map-marker:hover::before {
  opacity: 0.96;
  transform: translate(-50%, -50%) scale(1);
  animation: markerPulseV8 2.6s ease-in-out infinite;
}

@keyframes markerPulseV8 {
  0%,
  100% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--marker-color, var(--coral)) 24%, transparent);
  }

  50% {
    box-shadow: 0 0 0 13px color-mix(in srgb, var(--marker-color, var(--coral)) 0%, transparent);
  }
}

.island-strip::before,
.island-strip::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  width: clamp(22px, 5vw, 58px);
  pointer-events: none;
}

.island-strip::before {
  left: 0;
  background: linear-gradient(90deg, rgba(7, 30, 34, 0.5), transparent);
}

.island-strip::after {
  right: 0;
  background: linear-gradient(270deg, rgba(7, 30, 34, 0.5), transparent);
}

.island-chip::before {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: 7px;
  height: 2px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--chip-color, var(--coral)) 76%, white);
  opacity: 0;
  transform: scaleX(0.44);
  transform-origin: left;
  transition: opacity 220ms ease, transform 260ms cubic-bezier(0.2, 0.86, 0.2, 1);
}

.island-chip:hover::before,
.island-chip:focus-visible::before,
.island-chip.is-active::before {
  opacity: 0.82;
  transform: scaleX(1);
}

.island-chip.is-active {
  outline: 1px solid color-mix(in srgb, var(--chip-color, var(--coral)) 58%, white);
  outline-offset: 2px;
}

.panel-level-label {
  margin: 18px 0 10px;
  color: color-mix(in srgb, var(--active-color, var(--coral)) 62%, var(--ink));
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.quick-profile {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 16px;
}

.quick-profile-item {
  min-width: 0;
  border: 1px solid rgba(18, 37, 37, 0.08);
  border-radius: var(--radius);
  padding: 10px 9px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.58), rgba(255, 250, 240, 0.2)),
    color-mix(in srgb, var(--active-color, var(--coral)) 8%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 250, 240, 0.44);
}

.quick-profile-item span,
.quick-profile-item strong {
  display: block;
}

.quick-profile-item span {
  color: rgba(18, 37, 37, 0.56);
  font-size: 0.62rem;
  font-weight: 860;
  text-transform: uppercase;
}

.quick-profile-item strong {
  margin-top: 5px;
  color: var(--ink);
  font-size: 0.82rem;
  line-height: 1.2;
}

.score-section,
.gallery-section,
.discovery-section {
  padding-top: 2px;
}

.discovery-label {
  grid-column: 1 / -1;
  margin-bottom: -2px;
}

.guide-popover {
  position: fixed;
  z-index: 34;
  top: calc(var(--topbar-height) + 12px);
  right: clamp(14px, 3vw, 36px);
  width: min(318px, calc(100vw - 28px));
  border: 1px solid rgba(255, 250, 240, 0.3);
  border-radius: var(--radius);
  padding: 15px;
  background:
    linear-gradient(145deg, rgba(255, 250, 240, 0.76), rgba(224, 247, 241, 0.58)),
    rgba(255, 250, 240, 0.64);
  color: var(--ink);
  box-shadow: 0 24px 72px rgba(5, 22, 26, 0.26), inset 0 1px 0 rgba(255, 250, 240, 0.54);
  backdrop-filter: blur(18px) saturate(1.08);
  transform-origin: top right;
  animation: guideRevealV8 240ms cubic-bezier(0.2, 0.86, 0.2, 1);
}

.guide-popover[hidden] {
  display: none;
}

.guide-title {
  margin: 0 0 6px;
  color: color-mix(in srgb, var(--gold) 76%, var(--ink));
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.guide-popover p:not(.guide-title) {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.48;
}

.guide-random {
  width: 100%;
  min-height: 42px;
  margin-top: 12px;
  border: 1px solid rgba(18, 37, 37, 0.1);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--gold) 58%, white), color-mix(in srgb, var(--lagoon) 28%, white));
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 0 12px 28px rgba(13, 47, 47, 0.12);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.guide-random:hover,
.guide-random:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(13, 47, 47, 0.18);
}

@keyframes guideRevealV8 {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.island-panel.is-open .panel-content > * {
  animation: panelRiseV8 480ms cubic-bezier(0.2, 0.86, 0.2, 1) both;
}

.island-panel.is-open .panel-content > *:nth-child(2) {
  animation-delay: 35ms;
}

.island-panel.is-open .panel-content > *:nth-child(3) {
  animation-delay: 70ms;
}

.island-panel.is-open .panel-content > *:nth-child(4) {
  animation-delay: 105ms;
}

@keyframes panelRiseV8 {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .guide-popover {
    top: calc(64px + env(safe-area-inset-top));
    right: 10px;
    width: min(300px, calc(100vw - 20px));
    padding: 13px;
  }

  .quick-profile {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .quick-profile-item {
    display: grid;
    grid-template-columns: minmax(72px, 0.34fr) 1fr;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
  }

  .quick-profile-item strong {
    margin-top: 0;
    font-size: 0.86rem;
  }

  .panel-level-label {
    margin-top: 16px;
    font-size: 0.62rem;
  }

  .island-strip::before,
  .island-strip::after {
    width: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fallback-marker.is-active::before,
  .map-marker.is-active::before,
  .fallback-marker:hover::before,
  .map-marker:hover::before,
  .island-panel.is-open .panel-content > * {
    animation: none;
  }
}
