/* =====================================================================
   Royal Caribbean - Hub de Vacaciones
   Estilos globales (mobile-first, 1:1 con el diseño del PDF)
   ===================================================================== */

:root {
  --rc-blue-dark:  #0b1a37;
  --rc-blue:       #1a4ee0;
  --rc-blue-bright:#3aa4ff;
  --rc-cyan:       #1ec6ff;
  --rc-bg:         #f1f1f1;
  --rc-card-bg:    #ffffff;
  --rc-text:       #1d1d1d;
  --rc-text-muted: #6e6e6e;
  --rc-border:     rgba(0,0,0,.06);
  --rc-shadow:     0 10px 30px rgba(0,0,0,.08);

  --gradient-quiz:  linear-gradient(180deg, #1c61e3 0%, #2bb8ff 100%);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: #0a0f1e;
  color: var(--rc-text);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}

/* ====== Mobile-app frame (centered on desktop) ====== */
.app-shell {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(ellipse at top, #1a2b55 0%, #0a0f1e 60%, #050810 100%);
  padding: 0;
}
#app {
  width: 100%;
  max-width: 430px;
  height: 100vh;
  height: 100dvh;
  position: relative;
  background: var(--rc-bg);
  overflow: hidden;
  box-shadow: 0 0 80px rgba(0,0,0,.55);
}
@media (min-width: 540px) {
  .app-shell { padding: 24px 16px; align-items: center; }
  #app {
    border-radius: 36px;
    height: min(920px, calc(100dvh - 48px));
  }
}

/* ====== Screen container & transitions ====== */
.screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  background-color: var(--rc-bg);
  animation: screenFade .35s ease both;
}
@keyframes screenFade {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============== WELCOME (page 1) ============== */
.welcome { background: var(--rc-bg); }

.welcome-hero {
  position: relative;
  background-color: #0a1d3a;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 50%;
  min-height: 380px;
  padding: 22px 22px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  flex-shrink: 0;
}
.welcome-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,.55) 100%);
  pointer-events: none;
}
.welcome-hero > * { position: relative; z-index: 2; }
.rc-logo {
  width: 40px; height: 40px; color: #fff;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.4));
}
.welcome-title {
  font-size: clamp(28px, 7vw, 32px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.01em;
  margin: 0;
}

.welcome-body {
  padding: 18px 18px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
  background: var(--rc-bg);
}
.welcome-body h2 {
  margin: 4px 4px 2px;
  font-size: 22px;
  font-weight: 800;
}

.user-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--rc-shadow);
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease;
  border: 2px solid transparent;
}
.user-card:hover { transform: translateY(-2px); }
.user-card.selected {
  border-color: var(--rc-blue-bright);
  box-shadow: 0 0 0 3px rgba(58,164,255,.25), var(--rc-shadow);
}
.user-card .photo {
  height: 150px;
  background-size: cover;
  background-position: center;
}
.user-card .photo.kal {
  background-color: #6acaff;
}
.user-card .name {
  padding: 13px 18px;
  font-weight: 600;
  font-size: 18px;
}

/* ============== QUIZ HEADER (questions 1–6) ============== */
.quiz-header {
  position: relative;
  background-color: #0a1d3a;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 18px 18px 56px;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  flex-shrink: 0;
}
.quiz-header::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.4));
}
.quiz-header > * { position: relative; z-index: 2; }

.title-card {
  background: linear-gradient(180deg, #1c61e3 0%, #2bb8ff 100%);
  border-radius: 22px;
  padding: 20px 22px 22px;
  color: #fff;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  position: absolute;
  left: 18px; right: 18px;
  bottom: -28px;
  z-index: 3;
}
.title-card h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.01em;
}
.title-card p {
  margin: 6px 0 0;
  font-size: 14px;
  font-weight: 500;
  white-space: pre-line;
  opacity: .98;
}
.title-card.single { padding: 28px 22px; }
.title-card.single h1 { font-size: 22px; }
.title-card.single p  { display: none; }

/* ============== QUIZ BODY ============== */
.quiz-body {
  padding: 46px 14px 14px;
  background: var(--rc-bg);
  flex: 1;
}
.section-title {
  text-align: center;
  margin: 8px 8px 14px;
  font-size: 17px;
  font-weight: 600;
  color: #222;
}

/* Grid layout: 2 columns (5th card alone on 3rd row, centered) */
.options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 0 4px;
}
.options-grid .opt:nth-child(5) {
  grid-column: 1 / 3;
  justify-self: center;
  max-width: calc(50% - 5px);
  width: 100%;
}

/* Stacked layout: full-width banner cards */
.options-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 4px;
}

/* ---- Option card (grid version - vertical photo + label below) ---- */
.opt {
  position: relative;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 2.5px solid transparent;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,.06);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.opt:hover { transform: translateY(-2px); }
.opt.selected {
  border-color: #2a91ff;
  box-shadow: 0 0 0 3px rgba(42,145,255,.25), 0 6px 18px rgba(0,0,0,.1);
}
.opt .opt-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
}
.opt .opt-label {
  padding: 8px 12px 10px;
  font-size: 12.5px;
  font-weight: 500;
  color: #222;
  line-height: 1.22;
  text-align: center;
}

/* ---- Option card (stack version - photo with overlay label) ---- */
.opt-banner {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  height: 120px;
  background: #222 center/cover no-repeat;
  cursor: pointer;
  border: 2.5px solid transparent;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  box-shadow: 0 6px 16px rgba(0,0,0,.10);
}
.opt-banner::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.25) 55%, rgba(0,0,0,0) 100%);
}
.opt-banner .opt-label {
  position: absolute;
  left: 22px; top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.01em;
  text-shadow: 0 2px 6px rgba(0,0,0,.5);
  z-index: 2;
}
.opt-banner.selected {
  border-color: #2a91ff;
  box-shadow: 0 0 0 3px rgba(42,145,255,.28), 0 8px 20px rgba(0,0,0,.18);
}

/* ============== FOOTER NAV (Regresar / 0/1 / Continuar) ============== */
.footer-nav {
  background: var(--rc-bg);
  padding: 14px 22px 18px;
  padding-bottom: max(18px, env(safe-area-inset-bottom));
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 5;
  margin-top: auto;
}
.footer-nav .nav-btn {
  background: none;
  border: 0;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  color: #9e9e9e;
  cursor: pointer;
  padding: 6px 4px;
  transition: color .2s ease, transform .2s ease;
}
.footer-nav .nav-btn:hover:not(:disabled) { transform: translateX(2px); }
.footer-nav .nav-btn.back:hover { transform: translateX(-2px); }
.footer-nav .nav-btn.active {
  color: #2a91ff;
  font-weight: 700;
}
.footer-nav .nav-btn:disabled {
  cursor: default;
  opacity: .55;
}
.footer-nav .progress {
  font-size: 16px;
  color: #4d4d4d;
  font-weight: 500;
}
.footer-nav .nav-btn.active.themed { color: var(--accent, #2a91ff); }

/* ============== RESULT INTRO (traveler type) ============== */
.result-intro {
  background-color: #0a1d3a;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  overflow: hidden;
}
.result-intro::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.10) 0%, rgba(0,0,0,0) 35%, rgba(0,0,0,.78) 100%);
  z-index: 1;
}
.result-intro > * { position: relative; z-index: 2; }

.result-badge {
  margin: 22px 18px 0;
  background: var(--badge-gradient);
  border-radius: 22px;
  padding: 18px 22px;
  text-align: center;
  color: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  flex-shrink: 0;
}
.result-badge .small {
  font-size: 15px;
  font-weight: 500;
  display: block;
  opacity: .95;
}
.result-badge .big {
  display: block;
  font-size: 26px;
  font-weight: 800;
  margin-top: 2px;
  letter-spacing: -.01em;
}

.result-crown {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 24px;
  min-height: 0;
}
.result-crown svg {
  width: 55%;
  max-width: 220px;
  color: #fff;
  filter: drop-shadow(0 8px 22px rgba(0,0,0,.45));
}

.result-tagline {
  text-align: center;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.25;
  padding: 0 26px 22px;
  white-space: pre-line;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
  flex-shrink: 0;
}

.result-footer {
  padding: 16px 22px 20px;
  padding-bottom: max(20px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
}
.result-footer .back-link {
  background: none;
  border: 0;
  color: #e7e7e7;
  font-size: 16px;
  font-family: inherit;
  cursor: pointer;
  padding: 6px 0;
}
.result-footer .cta {
  background: none;
  border: 0;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  text-align: right;
  line-height: 1.25;
  white-space: pre-line;
  font-family: inherit;
  cursor: pointer;
  padding: 4px 0;
}
.result-footer .cta:hover { filter: brightness(1.15); }

/* ============== EXPERIENCES / SHIPS (themed title-card top) ============== */
.experiences-screen,
.ships-screen {
  background: var(--rc-bg);
}
.top-title-card {
  background: var(--badge-gradient, var(--gradient-quiz));
  border-radius: 22px;
  margin: 22px 18px 0;
  padding: 26px 18px;
  text-align: center;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.01em;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
  flex-shrink: 0;
}

.exp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 18px 14px 8px;
  flex: 1;
}
.exp-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 5px 14px rgba(0,0,0,.07);
  display: flex;
  flex-direction: column;
}
.exp-card .photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  background-color: #ddd;
}
.exp-card .expand-btn {
  position: absolute;
  right: 8px; bottom: 8px;
  width: 26px; height: 26px;
  background: rgba(0,0,0,.35);
  border: 0;
  border-radius: 6px;
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .2s ease;
}
.exp-card .expand-btn:hover { background: rgba(0,0,0,.6); }
.exp-card .expand-btn svg { width: 18px; height: 18px; }
.exp-card .body {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 130px;
}
.exp-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 4px;
  color: #1a1a1a;
}
.exp-card p {
  font-size: 11.5px;
  line-height: 1.35;
  color: #444;
  margin: 0;
  white-space: pre-line;
  flex: 1;
}
.exp-card .ship-tag {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 900;
  font-style: italic;
  color: var(--rc-blue-dark);
  letter-spacing: -.01em;
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.exp-card .ship-tag .of {
  font-size: 7px;
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
  margin: 0 2px;
}
.exp-card .ship-tag .of small {
  display: block;
}

/* ============== SHIPS RECOMMENDATION ============== */
.ships-list {
  padding: 18px 14px 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.ship-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 16 / 7;
  background: #111 center/cover no-repeat;
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
}
.ship-card::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.3) 50%, rgba(0,0,0,0) 90%);
}
.ship-card .ship-label {
  position: absolute;
  left: 22px; top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-style: italic;
  font-weight: 900;
  letter-spacing: -.01em;
  line-height: .95;
  text-shadow: 0 4px 12px rgba(0,0,0,.45);
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.ship-card .ship-label .name { font-size: 36px; }
.ship-card .ship-label .ofthe {
  display: inline-flex;
  flex-direction: column;
  font-size: 12px;
  line-height: 1;
  font-style: italic;
  font-weight: 900;
  align-self: center;
}
.ship-card .ship-label .ofthe small { display: block; }
.ship-card .ship-label .suffix { font-size: 36px; }

/* ============== BOARDING (anim + pase) ============== */
.boarding-screen {
  background-color: #08203b;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  overflow: hidden;
}
.boarding-screen::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,32,60,0) 0%, rgba(5,8,16,.85) 80%, #050810 100%);
  z-index: 1;
}
.boarding-screen > * { position: relative; z-index: 2; }

.boarding-screen .top-title-card.cyan {
  background: linear-gradient(180deg, #1c61e3 0%, #2bb8ff 100%);
  margin: 22px 18px 0;
}

/* ---------- Animation ---------- */
.boarding-anim {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 30px 0 0;
  min-height: 0;
}
.boarding-anim .top-dot,
.boarding-anim .bot-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: transparent;
  flex-shrink: 0;
}
.boarding-anim .track {
  position: relative;
  width: 1.5px;
  background: rgba(255,255,255,.7);
  flex: 1;
  display: flex;
  justify-content: center;
  margin: 6px 0;
}
.boarding-anim .ship-pin {
  position: absolute;
  left: 50%;
  width: 40px; height: 185px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 18px 18px 4px 4px / 14px 14px 4px 4px;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,.6));
  top: 0;
  transform: translate(-50%, 0);
  transition: top 1.4s cubic-bezier(.55,.05,.35,1);
}
.boarding-anim.stage-2 .ship-pin {
  top: calc(100% - 130px);
}
.boarding-anim .ticket-cap {
  margin-top: 10px;
  width: 48px;
  height: 32px;
  display: grid;
  place-items: center;
  color: #fff;
  flex-shrink: 0;
}
.boarding-anim .ticket-cap svg { width: 48px; height: 32px; }

/* ---------- Boarding pass ---------- */
.boarding-pass {
  margin: 20px 18px 0;
  background: #fff;
  border-radius: 6px;
  color: var(--rc-text);
  display: grid;
  grid-template-columns: 46px 1fr;
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(0,0,0,.4);
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
  flex-shrink: 0;
}
.boarding-pass.show {
  opacity: 1;
  transform: translateY(0);
}
.boarding-pass .stub {
  background: #ffd400;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.boarding-pass .stub-text {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  color: #1d1d1d;
  white-space: nowrap;
}
.boarding-pass .stub-barcode {
  position: absolute;
  left: 4px; top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 80%;
  background: repeating-linear-gradient(
    to bottom,
    #1d1d1d 0 3px,
    transparent 3px 6px,
    #1d1d1d 6px 8px,
    transparent 8px 12px
  );
}
.boarding-pass .stub::before,
.boarding-pass .stub::after {
  content: "";
  position: absolute;
  right: -6px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #08203b;
}
.boarding-pass .stub::before { top: -6px; }
.boarding-pass .stub::after  { bottom: -6px; }

.boarding-pass .content {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  padding: 8px 10px;
  gap: 8px;
  align-items: stretch;
}
.boarding-pass .content .ship-photo {
  width: 100%;
  min-height: 90px;
  background-size: cover;
  background-position: center;
  border-radius: 4px;
  position: relative;
}
.boarding-pass .content .ship-photo .rc-mark {
  position: absolute;
  top: 6px; left: 6px;
  background: #08203b;
  color: #fff;
  font-size: 6.5px;
  font-weight: 800;
  padding: 3px 5px;
  border-radius: 2px;
  letter-spacing: .06em;
  display: flex;
  align-items: center;
  gap: 3px;
}
.boarding-pass .content .ship-photo .rc-mark svg { width: 10px; height: 10px; }
.boarding-pass .info {
  font-size: 7.5px;
  line-height: 1.35;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.boarding-pass .info .row { margin-bottom: 2px; }
.boarding-pass .info .label {
  font-weight: 800;
  font-size: 8px;
  letter-spacing: .02em;
}
.boarding-pass .info .value {
  color: #333;
  font-size: 7.5px;
}

/* ---------- Video preview ---------- */
.video-preview {
  margin: 22px 18px 0;
  aspect-ratio: 16 / 9;
  background: #000 center/cover no-repeat;
  border-radius: 6px;
  position: relative;
  display: grid;
  place-items: center;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,.5);
  flex-shrink: 0;
}
.video-preview::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(0,0,0,.18);
}
.video-preview::after {
  content: "INCLUDING…";
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: .04em;
  color: rgba(255,255,255,.92);
  text-shadow: 0 2px 6px rgba(0,0,0,.6);
  pointer-events: none;
  z-index: 1;
}
.video-preview .play {
  position: relative;
  width: 72px; height: 72px;
  z-index: 2;
}

/* ---------- Email block ---------- */
.email-block {
  margin: 28px 18px 16px;
  text-align: center;
  color: #fff;
  flex-shrink: 0;
}
.email-block h3 {
  font-size: 19px;
  font-weight: 500;
  margin: 0 0 14px;
  line-height: 1.25;
}
.email-block .email-input-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}
.email-block input {
  width: 100%;
  max-width: 320px;
  border: 0;
  background: #fff;
  border-radius: 24px;
  padding: 13px 56px 13px 22px;
  font-family: inherit;
  font-size: 15px;
  color: var(--rc-blue);
  outline: none;
  text-align: center;
  font-weight: 500;
}
.email-block input::placeholder {
  color: var(--rc-blue);
  opacity: .9;
  font-weight: 500;
}
.email-block input:focus {
  box-shadow: 0 0 0 3px rgba(58,164,255,.25);
}
.email-block button.email-submit {
  position: absolute;
  right: calc(50% - 160px + 6px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--rc-blue);
  color: #fff;
  border: 0;
  border-radius: 50%;
  width: 38px; height: 38px;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease;
}
.email-block button.email-submit:hover { background: #144bc6; }
.email-block .confirmation {
  margin-top: 12px;
  font-size: 13px;
  color: #2bb8ff;
  font-weight: 600;
  display: none;
}
.email-block .confirmation.show { display: block; }

.boarding-footer {
  margin-top: auto;
  padding: 16px 22px 20px;
  padding-bottom: max(20px, env(safe-area-inset-bottom));
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}
.boarding-footer button {
  background: none; border: 0;
  font-family: inherit;
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
}
.boarding-footer .back   { color: #e2e2e2; }
.boarding-footer .print  { color: #2bb8ff; font-weight: 700; }

/* ============== FINAL THANK YOU SCREEN ============== */
.final-screen {
  background-color: #08203b;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  overflow: hidden;
}
.final-screen::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,32,59,.45) 0%, rgba(5,8,16,.2) 40%, rgba(5,8,16,.85) 100%);
  z-index: 1;
}
.final-screen > * { position: relative; z-index: 2; }

.final-screen .top-title-card.cyan {
  background: linear-gradient(180deg, #1c61e3 0%, #2bb8ff 100%);
  margin: 22px 18px 0;
}
.final-text {
  text-align: center;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.4;
  margin: 22px 26px 16px;
  white-space: pre-line;
  flex-shrink: 0;
}
.final-crown {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 30px;
  min-height: 0;
}
.final-crown svg {
  width: 60%;
  max-width: 240px;
  color: #fff;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,.5));
}
.final-restart {
  text-align: center;
  padding: 14px 18px 18px;
  padding-bottom: max(20px, env(safe-area-inset-bottom));
  flex-shrink: 0;
}
.final-restart button {
  background: none;
  border: 0;
  color: #2bb8ff;
  font-family: inherit;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  padding: 6px 10px;
}

/* ============== LIGHTBOX (zoom on experiences) ============== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.78);
  display: grid;
  place-items: center;
  z-index: 100;
  padding: 24px;
  animation: lbFade .25s ease;
}
@keyframes lbFade { from { opacity: 0; } to { opacity: 1; } }
.lightbox img {
  max-width: 100%;
  max-height: 80%;
  border-radius: 6px;
  box-shadow: 0 14px 40px rgba(0,0,0,.5);
}
.lightbox .lb-close {
  position: absolute;
  top: 22px; right: 22px;
  background: none; border: 0;
  font-size: 36px; color: #fff;
  cursor: pointer;
  line-height: 1;
}
.lightbox .lb-arrow {
  background: none; border: 0;
  color: #fff;
  font-size: 56px;
  cursor: pointer;
  position: absolute;
  top: 50%; transform: translateY(-50%);
  padding: 10px;
}
.lightbox .lb-prev { left: 8px; }
.lightbox .lb-next { right: 8px; }

/* ============== Small utilities ============== */
.spacer { flex: 1; }

img, .opt-img, .ship-card, .opt-banner, .photo, .exp-card .photo {
  background-color: #2a2a2a;
}

/* Print styles for boarding pass */
@media print {
  body * { visibility: hidden; }
  .boarding-pass, .boarding-pass * { visibility: visible; }
  .boarding-pass {
    position: absolute;
    top: 30px; left: 30px;
    width: 620px;
    box-shadow: none;
  }
}
