:root {
  color-scheme: light;
  --ground: #eee8dc;
  --paper: #fffefa;
  --kaart-rand-diep: #f9f5ef;
  --kaart-rand: linear-gradient(180deg, #fffefa 0%, #fcfaf6 50%, var(--kaart-rand-diep) 100%);
  --ink: #123c42;
  --muted: #756f67;
  --zacht: #756f67;
  --line: rgba(18, 60, 66, .22);
  --accent: #85d3dc;
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  background: var(--ground);
}

body {
  min-width: 300px;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 254, 250, .92) 0 22%, rgba(255, 254, 250, 0) 56%),
    var(--ground);
  color: var(--ink);
  font-family: "Jost", system-ui, sans-serif;
}

.journey-shell {
  width: min(100%, 460px);
  min-height: 100svh;
  margin: 0 auto;
  padding: max(22px, env(safe-area-inset-top)) 18px max(24px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
}

.journey-heading {
  text-align: center;
}

.journey-kicker {
  margin: 0 0 7px;
  color: var(--muted);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.journey-heading h1 {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .18em;
  line-height: 1;
}

.journey-heading h1 span {
  color: var(--muted);
  font-weight: 500;
}

.journey-status {
  min-height: 17px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.journey-stage {
  flex: 0 0 auto;
  min-height: 380px;
  padding: 20px 0 18px;
  display: grid;
  place-items: center;
}

/* The Card front is the existing EOZOE grid Card, not a Journey variant. Its
   240 × 340 canvas and full internal anatomy remain fixed on every phone. */
.card-canvas {
  position: relative;
  isolation: isolate;
  width: 240px;
  height: 340px;
  padding: 7px 7px 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 15px;
  background: var(--kaart-rand);
  color: #443a30;
  box-shadow:
    0 2px 3px rgba(35, 31, 28, .08),
    0 12px 28px rgba(35, 31, 28, .14);
  user-select: none;
}

.card-inner {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-height: 0;
  padding: 3px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 9.5px;
  background: #fffefa;
}

.card-frame {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(150, 118, 80, .4);
  border-radius: 7px;
}

.card-beeld {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  background: #e9e2d4;
}
.card-beeld::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 25px;
  pointer-events: none;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 498 64' preserveAspectRatio='none'><path fill='%23fffefa' d='M0 64 H498 V21 C418 14 353 8 308 8 C270 10 260 24 249 38 C238 24 228 10 190 8 C145 8 80 14 0 21 Z'/><path fill='none' stroke='rgba(153,120,78,.48)' stroke-width='1.4' d='M0 21 C80 14 145 8 190 8 C228 10 238 24 249 38 C260 24 270 10 308 8 C353 8 418 14 498 21'/></svg>") center / 100% 100% no-repeat;
}
.card-beeld img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  padding: 0;
  filter: saturate(1.04) contrast(1.04);
  opacity: 0;
  transform: scale(1);
  transform-origin: 50% 50%;
  transition: opacity 240ms ease, transform 3800ms cubic-bezier(.22, 1, .36, 1);
  -webkit-user-drag: none;
  user-select: none;
}
.card-canvas.is-image-ready .card-beeld img {
  opacity: 1;
  transform: scale(1);
}
.card-canvas.is-image-missing .card-beeld::before {
  content: "IMAGE UNAVAILABLE";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 10px;
  letter-spacing: .16em;
  color: var(--zacht);
}
.card-canvas.is-image-missing .card-beeld img { display: none; }

.card-meta {
  position: relative;
  z-index: 3;
  flex: 0 0 38px;
  min-height: 38px;
  margin-top: -3px;
  padding: 4px 10px 9px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  background: #fffefa;
  font-family: 'Jost', system-ui, sans-serif;
}

.card-brand {
  min-width: 0;
  overflow: hidden;
  color: #443a30;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .115em;
  line-height: 1.2;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.card-price {
  color: #443a30;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .01em;
  white-space: nowrap;
}

.card-footer {
  position: relative;
  z-index: 1;
  flex: 0 0 23px;
  height: 23px;
  padding: 0 10.5px 1px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  color: #8f877c;
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 4px;
  font-weight: 600;
  letter-spacing: .3em;
  line-height: 1;
  pointer-events: none;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .72);
  white-space: nowrap;
}
.card-footer .turn { display: inline-flex; align-items: center; gap: 3.5px; color: inherit; }
.card-footer .turn-glyph {
  position: relative;
  top: -1.2px;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0;
}

/* Phase 1 scales the complete approved 240 × 340 Card as one unit. The flip
   stage uses the existing 640 × 907 reverse-side coordinate system (8/3). */
.journey-shell--phase-one {
  width: min(100%, 470px);
  padding: max(8px, env(safe-area-inset-top)) 10px max(12px, env(safe-area-inset-bottom));
}

.journey-heading--compact .journey-kicker { margin-bottom: 5px; }
.journey-heading--compact h1 { font-size: 17px; }
.journey-heading--compact .journey-status { margin-top: 6px; }

.journey-stage--interactive {
  min-height: 0;
  padding: 10px 0 12px;
}

.journey-card-slot {
  position: relative;
  width: 370px;
  height: 524px;
  perspective: 2200px;
}

.journey-card-scaler {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 640px;
  height: 907px;
  transform: translate(-50%, -50%) scale(var(--card-display-scale, .546875));
  transform-origin: 50% 50%;
}

.journey-flip {
  position: relative;
  width: 640px;
  height: 907px;
  transform: rotateY(0deg);
  transform-style: preserve-3d;
  transition: transform 560ms cubic-bezier(.22, 1, .36, 1);
}

.journey-flip.is-flipped { transform: rotateY(180deg); }

.journey-pane {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 40px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.journey-front {
  cursor: pointer;
  transform: rotateY(0deg);
}

.journey-front .card-canvas {
  transform: scale(2.6666667);
  transform-origin: 0 0;
}

.journey-back {
  pointer-events: none;
  transform: rotateY(180deg);
}

.journey-flip.is-flipped .journey-front { pointer-events: none; }
.journey-flip.is-flipped .journey-back { pointer-events: auto; }

.detail-canvas {
  position: relative;
  isolation: isolate;
  width: 640px;
  height: 907px;
  padding: 18.667px 18.667px 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 0;
  border-radius: 40px;
  background: var(--kaart-rand);
  color: #f2ead6;
  box-shadow: 0 6px 14px rgba(54, 45, 33, .11), 0 34px 70px rgba(54, 45, 33, .23);
}

.detail-inner {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  padding: 8px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 25.333px;
  background: #fffefa;
}

.detail-frame {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 2.667px solid rgba(117, 111, 100, .48);
  border-radius: 18.667px;
  background: #fffefa;
}

.detail-kop {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 7;
  min-height: 100px;
  padding: 20px 24px 16px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2px;
  overflow: visible;
  border-bottom: 1px solid rgba(255, 254, 250, .20);
  background: linear-gradient(180deg, rgba(35, 31, 28, .62) 0%, rgba(35, 31, 28, .34) 72%, rgba(35, 31, 28, .16) 100%);
  backdrop-filter: blur(8px) saturate(1.04);
  -webkit-backdrop-filter: blur(8px) saturate(1.04);
}

.detail-kop h2 {
  min-width: 0;
  max-width: 500px;
  margin: 0;
  overflow: hidden;
  display: block;
  color: #f2ead6;
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: .015em;
  line-height: 1;
  text-overflow: ellipsis;
  text-shadow: 0 1px 8px rgba(24, 20, 17, .38);
  white-space: nowrap;
}

.journey-back .card-tools {
  position: relative;
  z-index: 6;
  flex: 0 0 auto;
  height: auto;
  display: flex;
  align-items: center;
  padding: 0;
  margin: 0 0 0 -10px;
  border: 0;
}

.journey-back .tools-tab {
  position: relative;
  z-index: 3;
  width: 42px;
  height: 42px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #fffefa;
  cursor: pointer;
  filter: drop-shadow(0 1px 3px rgba(24, 20, 17, .42));
}

.journey-back .tools-tab svg { width: 23px; height: 23px; display: block; }
.journey-back .tools-tab svg path { stroke-width: 2.3; }
.journey-back .tools-tab .ic-x { display: none; }
.journey-back .card-tools.tools-open .tools-tab .ic-ham { display: none; }
.journey-back .card-tools.tools-open .tools-tab .ic-x { display: block; }
.journey-back .tools-tab:hover { color: #fffefa; background: rgba(255, 254, 250, .12); }
.journey-back .tools-tab:focus-visible { outline: 2px solid #f2ead6; outline-offset: 2px; }

.journey-back .tools-scrim {
  display: none;
  position: absolute;
  inset: -2000px;
  z-index: 1;
  background: rgba(35, 31, 28, .05);
  cursor: default;
}

.journey-back .card-tools.tools-open .tools-scrim { display: block; }

.journey-back .tools-tray {
  display: none;
  position: absolute;
  top: calc(100% + 14px);
  left: -8px;
  z-index: 2;
  width: 310px;
  padding: 9px;
  border: 1.5px dashed rgba(68, 58, 48, .38);
  border-radius: 14px;
  background: rgba(252, 250, 244, .92);
  box-shadow: 0 4px 8px rgba(35, 31, 28, .10), 0 14px 30px rgba(35, 31, 28, .16);
  backdrop-filter: blur(7px) saturate(1.05);
  -webkit-backdrop-filter: blur(7px) saturate(1.05);
}

.journey-back .tools-tray::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, rgba(70, 50, 25, .028) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 3px);
}

.journey-back .card-tools.tools-open .tools-tray { display: block; }

.journey-back .tools-tray > button {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 46px;
  padding: 0 13px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: rgba(68, 58, 48, .78);
  cursor: pointer;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1;
  text-align: left;
}

.journey-back .tools-tray > button svg {
  width: 22px;
  height: 22px;
  flex: none;
  display: block;
  color: rgba(68, 58, 48, .55);
}

.journey-back .tools-tray > button:hover {
  color: #443a30;
  background: rgba(255, 255, 255, .82);
}

.journey-back .tools-tray > button:hover svg { color: #443a30; }

.detail-inhoud {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.detail-beeldvak {
  position: relative;
  flex: 0 0 62%;
  width: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #e9e2d4;
}

.detail-beeldvak::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 60px;
  pointer-events: none;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 498 64' preserveAspectRatio='none'><path fill='%23fffefa' d='M0 64 H498 V21 C418 14 353 8 308 8 C270 10 260 24 249 38 C238 24 228 10 190 8 C145 8 80 14 0 21 Z'/><path fill='none' stroke='rgba(153,120,78,.48)' stroke-width='1.4' d='M0 21 C80 14 145 8 190 8 C228 10 238 24 249 38 C260 24 270 10 308 8 C353 8 418 14 498 21'/></svg>") center / 100% 100% no-repeat;
}

#detail-image {
  width: 100%;
  height: 100%;
  display: block;
  max-height: none;
  object-fit: cover;
  padding: 0;
  filter: saturate(1.04) contrast(1.04);
  -webkit-user-drag: none;
}

.detail-info {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  margin-top: -1px;
  padding: 17px 30px 24px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.detail-merchant {
  margin: 0 0 7px;
  color: #756f64;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.detail-prijs {
  margin: 0 0 18px;
  color: #443a30;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: 31px;
  font-weight: 700;
  letter-spacing: -.03em;
}

.detail-beschrijving {
  margin: 0 0 20px;
  overflow: hidden;
  display: -webkit-box;
  color: rgba(68, 58, 48, .78);
  font-size: 14.5px;
  line-height: 1.53;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.detail-acties {
  flex: 0 0 auto;
  margin-top: auto;
  display: grid;
  gap: 9px;
}

.koop-link,
.verken-knop {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  backdrop-filter: blur(10px) saturate(1.04);
  -webkit-backdrop-filter: blur(10px) saturate(1.04);
}

.koop-link {
  border: 1.5px solid rgba(117, 111, 100, .68);
  border-radius: 10px;
  background: rgba(255, 254, 250, .46);
  color: #443a30;
  box-shadow: 0 5px 16px rgba(68, 58, 48, .08);
}

.koop-link[aria-disabled="true"] { opacity: .4; pointer-events: none; }
.koop-link:hover,
.koop-link:focus-visible { background: rgba(255, 254, 250, .78); border-color: #756f64; outline: 3px solid #85d3dc; }

.detail-sold-out {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 4;
  margin: 0;
  padding: 13px 22px 12px;
  border: 1px solid rgba(255, 254, 250, .82);
  border-radius: 999px;
  background: rgba(53, 48, 43, .72);
  color: #fffefa;
  box-shadow: 0 8px 30px rgba(20, 18, 16, .18);
  backdrop-filter: blur(12px) saturate(.8);
  -webkit-backdrop-filter: blur(12px) saturate(.8);
  transform: translate(-50%, -50%) rotate(-2deg);
  font-size: 15px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.verken-overlay {
  position: absolute;
  bottom: 68px;
  left: 50%;
  z-index: 3;
  width: max-content;
  max-width: calc(100% - 60px);
  display: grid;
  overflow: hidden;
  border: 1.5px solid rgba(255, 254, 250, .58);
  border-radius: 10px;
  background: rgba(35, 31, 28, .34);
  box-shadow: 0 8px 24px rgba(35, 31, 28, .16);
  backdrop-filter: blur(10px) saturate(1.04);
  -webkit-backdrop-filter: blur(10px) saturate(1.04);
  transform: translateX(-50%);
}
.verken-overlay .verken-knop { border-radius: 0; }
.verken-overlay:hover { border-color: rgba(255, 254, 250, .88); }

.verken-richtingen {
  display: flex;
  border-bottom: 1px solid rgba(255, 254, 250, .34);
}

.verken-richtingen .verken-knop + .verken-knop {
  border-left: 1px solid rgba(255, 254, 250, .34);
}

.verken-knop {
  padding: 0 22px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fffefa;
  box-shadow: none;
  text-shadow: 0 1px 5px rgba(24, 20, 17, .34);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.verken-knop:hover,
.verken-knop:focus-visible { background: rgba(255, 254, 250, .16); outline: 3px solid #85d3dc; outline-offset: -3px; }
.verken-knop:disabled { opacity: .45; cursor: wait; }
.verken-knop--primary { width: 100%; background: rgba(255, 254, 250, .88); color: #443a30; text-shadow: none; }
.verken-knop--primary:hover { background: #fffefa; }

.detail-voet {
  position: relative;
  z-index: 1;
  flex: 0 0 61.333px;
  margin: 0 -18.667px;
  padding: 0 28px 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  color: #8f877c;
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 10.667px;
  font-weight: 600;
  letter-spacing: .3em;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .72);
}

.detail-voet button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 3px 8px 10px;
  border: 0;
  background: transparent;
  color: #6c655c;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  border-radius: 999px;
  transition: color 160ms ease, background 160ms ease;
}

.detail-voet button:hover,
.detail-voet button:focus-visible {
  color: #292b26;
  background: rgba(255, 254, 250, .38);
  outline: 3px solid #85d3dc;
  outline-offset: 2px;
}
.detail-voet button b {
  position: relative;
  top: -2px;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 27px;
  font-weight: 400;
  letter-spacing: 0;
}

/* Existing EOZOE/kenjemenog translucent overlay-card grammar. */
.ghostcard {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 640px;
  height: 907px;
  padding: 19px 19px 0;
  display: none;
  flex-direction: column;
  border-radius: 40px;
  background: rgba(252, 252, 250, .68);
  color: #443a30;
  box-shadow: 0 4px 8px rgba(35, 31, 28, .10), 0 20px 42px rgba(35, 31, 28, .18);
  backdrop-filter: blur(7px) saturate(1.05);
  -webkit-backdrop-filter: blur(7px) saturate(1.05);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  --ghost-ink: #443a30;
  --ghost-dash: rgba(68, 58, 48, .38);
  --ghost-soft: rgba(68, 58, 48, .60);
}

.ghostcard.is-open { display: flex; pointer-events: auto; }

.ghostcard::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, rgba(70, 50, 25, .028) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 3px);
}

.ghostcard .ghost-frame {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  padding: 24px 38px 22px;
  display: flex;
  flex-direction: column;
  border: 1.5px dashed var(--ghost-dash);
  border-radius: 25px;
}

.ghostcard .ghost-foot {
  position: relative;
  z-index: 1;
  flex: 0 0 61px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ghost-soft);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: .11em;
  text-align: center;
}

.ghostcard .ghost-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  width: 46px;
  height: 46px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--ghost-ink);
  border-radius: 50%;
  background: transparent;
  color: var(--ghost-ink);
  cursor: pointer;
  transition: background .18s, color .18s, transform .22s;
}

.ghostcard .ghost-close svg { width: 19px; height: 19px; }
.ghostcard .ghost-close:hover,
.ghostcard .ghost-close:focus-visible {
  outline: none;
  background: var(--ghost-ink);
  color: rgba(252, 252, 250, .95);
  transform: rotate(90deg);
}

.ghostcard .ghost-body { flex: 1 1 auto; min-height: 0; overflow: hidden; }

.ghostcard .ghost-title {
  max-width: 475px;
  margin: 14px 0 0;
  color: var(--ghost-ink);
  font-family: inherit;
  font-size: 31px;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.1;
}

.ghostcard .ghost-title::after {
  content: "";
  display: block;
  width: 66px;
  height: 2.5px;
  margin-top: 11px;
  background: var(--ghost-ink);
}

.ghostcard .ghost-rule {
  margin: 22px 0 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ghost-soft);
  font-size: 10.5px;
  letter-spacing: .3em;
  white-space: nowrap;
}

.ghostcard .ghost-rule::before,
.ghostcard .ghost-rule::after {
  content: "";
  flex: 1;
  border-top: 1.5px dashed var(--ghost-dash);
}

.ghostcard .ghost-cta {
  position: relative;
  z-index: 1;
  flex: none;
  width: 100%;
  margin-top: 18px;
  padding: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1.5px solid var(--ghost-ink);
  border-radius: 15px;
  background: transparent;
  color: var(--ghost-ink);
  cursor: pointer;
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  transition: background .2s, color .2s;
}

.ghostcard .ghost-cta svg { width: 22px; height: 22px; }
.ghostcard .ghost-cta:hover,
.ghostcard .ghost-cta:focus-visible {
  outline: none;
  background: var(--ghost-ink);
  color: rgba(252, 252, 250, .95);
}

.context-label {
  margin: 14px 0 7px;
  color: var(--ghost-soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.context-lead {
  max-width: 500px;
  margin: 20px 0 0;
  color: var(--ghost-ink);
  font-size: 14px;
  line-height: 1.5;
}

.context-feiten { display: flex; flex-direction: column; }

.context-feiten--path {
  max-height: 480px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.context-feit {
  min-height: 74px;
  padding: 12px 0;
  display: grid;
  grid-template-columns: 128px 88px 1fr;
  align-items: baseline;
  gap: 14px;
  border-bottom: 1.5px dashed var(--ghost-dash);
}

.context-feit:last-child { border-bottom: 0; }
.context-feit strong {
  color: var(--ghost-ink);
  font-size: 11px;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.context-feit b { overflow-wrap: anywhere; color: var(--ghost-ink); font-size: 20px; }
.context-feit span { overflow-wrap: anywhere; color: var(--ghost-ink); font-size: 12px; line-height: 1.42; }

.journey-controls {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.journey-controls button {
  min-width: 0;
  min-height: 48px;
  padding: 6px 3px 7px;
  display: grid;
  place-items: center;
  gap: 1px;
  border: 1px solid rgba(18, 60, 66, .28);
  border-radius: 9px;
  background: rgba(255, 254, 250, .54);
  color: var(--ink);
  cursor: pointer;
  font-family: "Jost", system-ui, sans-serif;
}

.journey-controls button:disabled { opacity: .34; cursor: default; }
.journey-controls button:hover:not(:disabled),
.journey-controls button:focus-visible { border-color: var(--ink); background: #fffefa; outline: 2px solid var(--accent); outline-offset: 2px; }
.journey-controls b { font-size: 17px; line-height: 1; }
.journey-controls span { font-size: 9px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }

.proof--state { margin-top: 10px; }

.proof {
  width: 100%;
  border-top: 1px solid var(--line);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}

.proof summary {
  padding: 11px 2px 8px;
  color: var(--ink);
  cursor: pointer;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.proof dl {
  margin: 0;
  display: grid;
  gap: 4px;
}

.proof dl div {
  min-width: 0;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 8px;
  font-size: 9px;
  line-height: 1.45;
}

.proof dt { color: var(--muted); }

.proof dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.proof-bundles {
  margin-top: 10px;
  display: grid;
  gap: 6px;
}

.proof-bundles article {
  padding: 8px 9px;
  border: 1px dashed rgba(18, 60, 66, .28);
  border-radius: 8px;
  background: rgba(255, 254, 250, .48);
}

.proof-bundles h3,
.proof-bundles p { margin: 0; }
.proof-bundles h3 { color: var(--muted); font-size: 9px; text-transform: uppercase; }
.proof-bundles p { margin-top: 3px; font-size: 9px; line-height: 1.4; }
.proof-bundles code {
  display: block;
  margin-top: 3px;
  overflow-wrap: anywhere;
  color: var(--ink);
  font: inherit;
  font-size: 8px;
  line-height: 1.45;
}

.proof-measurement {
  margin: 9px 0 0;
  padding: 8px 9px;
  border-left: 3px solid var(--accent);
  background: rgba(255, 254, 250, .55);
  font-size: 8px;
  line-height: 1.55;
}

.proof-dwell {
  margin-top: 10px;
  padding: 9px;
  border: 1px solid rgba(133, 211, 220, .76);
  border-radius: 8px;
  background: rgba(255, 254, 250, .62);
}

.proof-dwell[hidden] { display: none; }
.proof-dwell h3,
.proof-dwell p { margin: 0; }
.proof-dwell h3 {
  font-size: 9px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.proof-dwell dl { margin-top: 7px; }
.proof-dwell p { margin-top: 8px; color: var(--muted); font-size: 8px; line-height: 1.5; }
.proof-dwell button {
  min-height: 36px;
  margin-top: 8px;
  padding: 7px 10px;
  border: 1px solid rgba(18, 60, 66, .32);
  border-radius: 7px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.proof-dwell button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.routing-mode {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 8px 0;
}
.routing-mode[hidden] { display: none; }
.routing-mode button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}
.phase-six-roots {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0;
}
.phase-six-roots[hidden] { display: none; }
.phase-six-roots a {
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 5px 8px;
  color: inherit;
  font-size: 9px;
  text-decoration: none;
}
.phase-six-roots a[aria-current="page"] {
  background: var(--ink);
  color: var(--paper);
}

/* From phase 3 onward the viewport is one Card surface in a continuous
   four-direction deck. The canonical Card itself remains uniformly scaled. */
.phase-three {
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
  background: #2d2d28;
  overscroll-behavior-y: contain;
}

.journey-shell--phase-three {
  position: fixed;
  inset: 0;
  isolation: isolate;
  width: 100vw;
  max-width: none;
  min-height: 0;
  height: 100dvh;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.journey-shell--phase-three > :not(.journey-current-backdrop, .journey-depth-veil) {
  position: relative;
  z-index: 3;
}

.journey-current-backdrop {
  --backdrop-x: 0px;
  --backdrop-y: 0px;
  position: fixed;
  z-index: 0;
  inset: -7vh -7vw;
  overflow: hidden;
  opacity: .82;
  filter: blur(2.4px) saturate(.76) brightness(.72);
  pointer-events: none;
  transform: translate3d(var(--backdrop-x), var(--backdrop-y), 0) scale(1.06);
  transform-origin: 50% 50%;
  transition: opacity 360ms ease, filter 520ms ease, transform 460ms cubic-bezier(.22, 1, .36, 1);
  user-select: none;
}

.journey-current-backdrop.is-arriving {
  opacity: .42;
  transform: translate3d(var(--backdrop-x), var(--backdrop-y), 0) scale(1.09);
}

.journey-backdrop-grid {
  width: 100%;
  height: 100%;
  padding: 4vh 3vw;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(5, minmax(0, 1fr));
  gap: 11px;
}

.journey-backdrop-card {
  position: relative;
  min-width: 0;
  min-height: 0;
  padding: 5px 5px 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: 12px;
  background: #fffefa;
  box-shadow: 0 9px 22px rgba(0, 0, 0, .22);
}

.journey-backdrop-card:nth-child(3n + 1) { transform: rotate(-1.1deg); }
.journey-backdrop-card:nth-child(3n) { transform: rotate(.9deg); }
.journey-backdrop-card.is-current { outline: 2px solid rgba(133, 211, 220, .78); }

.journey-backdrop-card img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 8px 8px 2px 2px;
  object-fit: cover;
}

.journey-backdrop-card::after {
  content: "";
  position: absolute;
  right: 5px;
  bottom: 10px;
  left: 5px;
  height: 16px;
  background:
    radial-gradient(72% 125% at 24% 0, transparent 48%, #fffefa 50%) left/52% 100% no-repeat,
    radial-gradient(72% 125% at 76% 0, transparent 48%, #fffefa 50%) right/52% 100% no-repeat;
}

.journey-depth-veil {
  position: fixed;
  z-index: 1;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(238, 232, 220, .04) 0 31%, rgba(27, 28, 25, .25) 76%),
    rgba(32, 33, 29, .11);
  pointer-events: none;
  transition: background 480ms ease;
}

.phase-three.is-card-back .journey-current-backdrop {
  opacity: .72;
  filter: blur(4.8px) saturate(.68) brightness(.61);
  transform: translate3d(var(--backdrop-x), var(--backdrop-y), 0) scale(1.085);
}

.phase-three.is-card-back .journey-depth-veil { background: rgba(24, 25, 22, .24); }

.phase-three.is-route-changing[data-route-motion="flow"] .journey-current-backdrop { --backdrop-y: 30px; }
.phase-three.is-route-changing[data-route-motion="back"] .journey-current-backdrop { --backdrop-y: -30px; }
.phase-three.is-route-changing[data-route-motion="feeling"] .journey-current-backdrop { --backdrop-x: 30px; }
.phase-three.is-route-changing[data-route-motion="look"] .journey-current-backdrop { --backdrop-x: -30px; }
.phase-three.is-route-changing .journey-current-backdrop { opacity: .5; }

.journey-shell--phase-three .journey-current-backdrop,
.journey-shell--phase-three .journey-depth-veil { display: none; }

.journey-shell--phase-three .journey-heading {
  position: fixed;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.journey-shell--phase-three .journey-kicker,
.journey-shell--phase-three .journey-heading h1 { display: none; }
.journey-shell--phase-three .journey-status { margin: 0; }

.journey-shell--phase-three .journey-stage {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  touch-action: none;
}

.journey-shell--phase-three .journey-card-slot {
  --gesture-x: 0px;
  --gesture-y: 0px;
  --gesture-rotate: 0deg;
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 4;
  background: transparent;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, .28));
  transform: translate3d(
    calc(-50% + var(--gesture-x)), calc(-50% + var(--gesture-y)), 0
  ) rotate(var(--gesture-rotate));
  will-change: transform;
}

.journey-shell--phase-three .journey-card-slot.is-gesture-returning {
  transition: transform 230ms cubic-bezier(.2, .82, .24, 1);
}

.journey-shell--phase-three .journey-card-slot.is-route-entering {
  transition: transform var(--route-duration, 360ms) cubic-bezier(.22, 1, .36, 1);
}

.journey-shell--phase-three .journey-route-neighbour {
  position: fixed;
  z-index: 3;
  margin: 0;
  pointer-events: none;
  transform: translate3d(
    var(--route-neighbour-x, 0), var(--route-neighbour-y, 0), 0
  );
  will-change: transform;
}

.journey-shell--phase-three .journey-route-card-copy {
  position: fixed;
  z-index: 30;
  margin: 0;
  pointer-events: none;
  transform: translate3d(var(--route-copy-x, 0), var(--route-copy-y, 0), 0);
  transition: transform var(--route-duration, 360ms) cubic-bezier(.32, 0, .2, 1);
  will-change: transform;
}

.journey-shell--phase-three .proof--state {
  border-radius: 12px;
  background: rgba(255, 254, 250, .76);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .13);
  backdrop-filter: blur(14px) saturate(.9);
  -webkit-backdrop-filter: blur(14px) saturate(.9);
}

.journey-shell--phase-three .journey-controls {
  position: fixed;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.journey-shell--phase-three .proof--state {
  position: fixed;
  z-index: 30;
  top: max(8px, env(safe-area-inset-top));
  right: 8px;
  width: min(360px, calc(100vw - 16px));
  max-height: calc(100dvh - 92px);
  padding: 0 8px 8px;
  overflow: auto;
}
.phase-three.journey-public-entry .proof--state { display: none; }

.gesture-preview {
  --gesture-progress: 0;
  position: fixed !important;
  z-index: 20 !important;
  width: 104px;
  padding: 7px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  gap: 4px 7px;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 12px;
  background: rgba(22, 24, 21, .78);
  box-shadow: 0 14px 38px rgba(0, 0, 0, .28);
  color: #fffefa;
  opacity: 0;
  pointer-events: none;
  transform: scale(.9);
  transition: opacity 90ms linear, transform 160ms cubic-bezier(.2, .82, .24, 1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.phase-three .gesture-preview { display: none; }

.gesture-preview.is-active {
  opacity: calc(.18 + (var(--gesture-progress) * .82));
  transform: scale(calc(.92 + (var(--gesture-progress) * .08)));
}

.gesture-preview.is-blocked { filter: grayscale(1); }
.gesture-preview img {
  width: 38px;
  height: 50px;
  grid-row: 1 / 3;
  border-radius: 6px;
  background: rgba(255, 255, 255, .15);
  object-fit: cover;
}
.gesture-preview span {
  align-self: end;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.gesture-preview-title {
  min-width: 0;
  overflow: hidden;
  font-size: 8px;
  font-weight: 500;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gesture-preview--up { top: max(54px, calc(env(safe-area-inset-top) + 36px)); left: 50%; margin-left: -52px; }
.gesture-preview--down { bottom: max(72px, calc(env(safe-area-inset-bottom) + 62px)); left: 50%; margin-left: -52px; }
.gesture-preview--left { top: 48%; left: 7px; }
.gesture-preview--right { top: 48%; right: 7px; }

.phase-three .gesture-preview--left,
.phase-three .gesture-preview--right {
  position: fixed !important;
  inset: 0;
  z-index: 20 !important;
  width: 100vw;
  height: 100dvh;
  padding: 0 18px;
  display: none;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  opacity: 0;
  pointer-events: none;
  transform: none;
  transition: opacity 90ms linear;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.phase-three .gesture-preview--left span,
.phase-three .gesture-preview--right span {
  position: fixed;
  top: 50%;
  left: var(--semantic-label-x, 50vw);
  color: rgba(255, 255, 255, .62);
  font-size: clamp(32px, 8vw, 48px);
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1;
  text-align: center;
  text-shadow: 0 4px 18px rgba(0, 0, 0, .36);
  white-space: nowrap;
}
.phase-three .gesture-preview--left span {
  transform: translate(-50%, -50%) rotate(90deg);
}
.phase-three .gesture-preview--right span {
  transform: translate(-50%, -50%) rotate(-90deg);
}
.phase-three .gesture-preview--left.is-active,
.phase-three .gesture-preview--right.is-active {
  display: grid;
  opacity: calc(.08 + (var(--gesture-progress) * .8));
}
.phase-three.is-route-changing[data-route-motion="look"] .gesture-preview--left,
.phase-three.is-route-changing[data-route-motion="feeling"] .gesture-preview--right {
  display: grid;
  opacity: .92;
}

@media (min-width: 520px) {
  .journey-backdrop-grid { padding-right: calc((100vw - 520px) / 2); padding-left: calc((100vw - 520px) / 2); }
}

@media (max-width: 364px) {
  .journey-shell { padding-right: 14px; padding-left: 14px; }
  .journey-stage { min-height: 376px; padding-top: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .card-beeld img,
  .journey-current-backdrop,
  .journey-depth-veil,
  .journey-card-slot,
  .journey-route-neighbour,
  .journey-route-card-copy,
  .gesture-preview { transition: none !important; }
}
