.adventure-shell { padding-top: 2rem; }
.adventure-intro h1 { max-width: 21ch; }
.adventure-shell .experience-header, .tax-shell .experience-header { margin-bottom: 0; }
.adventure-mobile-notice { display: none; }

.adventure-map {
  --map-x: 18%;
  --map-y: 82%;
  min-height: 780px;
  display: block;
  padding: 5.8rem 2.25rem 2.25rem;
  border: 2px solid rgba(226, 208, 142, .46);
  border-radius: 28px;
  background: #171521;
  box-shadow: inset 0 0 0 7px rgba(49, 37, 74, .8), 0 22px 70px rgba(0, 0, 0, .3);
}
.adventure-map-scene { position: absolute; z-index: 0; inset: 0; overflow: hidden; border-radius: 26px; background: #d7b878; }
.map-paper {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 246, 188, .82) 0 2px, transparent 3px),
    radial-gradient(circle at 70% 44%, rgba(115, 73, 38, .22) 0 1px, transparent 2px),
    radial-gradient(circle at 48% 74%, rgba(255, 246, 188, .5) 0 1px, transparent 2px),
    repeating-linear-gradient(25deg, rgba(102, 55, 26, .05) 0 1px, transparent 1px 8px),
    linear-gradient(135deg, #f6df9e, #d9ae63 53%, #e4c277);
}
.map-paper svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.map-route { fill: none; stroke: #7d263f; stroke-width: 11; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 2 28; }
.map-route-alt { stroke: #355b58; stroke-width: 8; stroke-dasharray: 4 21; }
.map-river { fill: none; stroke: #5c9dbc; stroke-width: 13; opacity: .68; stroke-linecap: round; }
.map-mountain { position: absolute; width: 0; height: 0; border-right: 48px solid transparent; border-bottom: 90px solid #6f6554; border-left: 48px solid transparent; filter: drop-shadow(0 5px 0 rgba(83, 52, 35, .22)); }
.map-mountain::after { content: ''; position: absolute; top: 28px; left: -33px; width: 66px; height: 43px; background: #9e8d6e; clip-path: polygon(50% 0,100% 100%,0 100%); }
.mountain-one { top: 24%; left: 13%; }.mountain-two { top: 51%; right: 16%; transform: scale(.72); }
.map-tree { position: absolute; width: 21px; height: 39px; background: #476649; clip-path: polygon(50% 0,100% 73%,73% 73%,100% 100%,0 100%,27% 73%,0 73%); }
.map-tree::after { content: ''; position: absolute; bottom: -9px; left: 9px; width: 4px; height: 12px; background: #6a442c; }
.tree-one { top: 16%; right: 19%; }.tree-two { top: 62%; left: 19%; transform: scale(1.35); }.tree-three { right: 36%; bottom: 12%; transform: scale(.8); }
.map-town { position: absolute; display: grid; place-items: center; width: 62px; height: 62px; border: 3px solid #67452b; border-radius: 50% 50% 44% 56%; color: #5d3827; background: #e8c875; box-shadow: 4px 4px 0 rgba(102, 61, 35, .25); font: 800 9px/1 'DM Sans', sans-serif; letter-spacing: .09em; font-style: normal; transform: rotate(-8deg); }
.town-one { bottom: 11%; left: 9%; }.town-two { top: 53%; left: 34%; }.town-three { top: 27%; right: 29%; }.town-four { top: 7%; right: 8%; }
.map-player { position: absolute; z-index: 3; left: var(--map-x); top: var(--map-y); display: grid; width: 44px; height: 44px; place-items: center; border: 3px solid #fff2bd; border-radius: 48% 52% 47% 53%; color: #fff5bc; background: #752b6d; box-shadow: 0 0 0 5px rgba(117,43,109,.28), 0 9px 0 rgba(80,39,38,.22); font-size: 1.45rem; transform: translate(-50%, -50%) rotate(-8deg); transition: left 750ms cubic-bezier(.2,.8,.2,1), top 750ms cubic-bezier(.2,.8,.2,1), transform 750ms ease; }
.map-player::after { content: 'YOU'; position: absolute; top: 47px; color: #593525; font: 900 9px/1 'DM Sans', sans-serif; letter-spacing: .12em; text-shadow: 0 1px #f7db8d; }

.adventure-progress { z-index: 5; top: 1.35rem; left: 1.6rem; right: 1.6rem; padding-bottom: .75rem; border-bottom: 1px dashed rgba(255, 238, 175, .52); color: #fff0b8; }
.adventure-progress li { width: 10px; height: 10px; background: rgba(84, 51, 38, .78); border: 1px solid rgba(255, 236, 166, .56); }
.adventure-progress li.is-done { background: #d9bb59; }.adventure-progress li.is-current { background: #e5827d; box-shadow: 0 0 0 3px rgba(229,130,125,.25); }
.adventure-reset { color: #fff0b8; }
.adventure-card, .adventure-build { position: relative; z-index: 2; background: rgba(29, 23, 37, .92); box-shadow: 8px 10px 0 rgba(79, 47, 37, .28); backdrop-filter: none; }
.adventure-card { width: min(720px, calc(100% - 400px)); margin: 1.75rem auto 0 2.5rem; border: 2px solid rgba(255, 229, 157, .63); border-radius: 8px 18px 10px 22px; }
.adventure-card::before { content: ''; position: absolute; top: -11px; left: 9%; width: 28%; height: 21px; opacity: .75; background: linear-gradient(90deg, transparent, #e4c27a, transparent); transform: rotate(-2deg); }
.adventure-card .adventure-options { display: flex; flex-wrap: wrap; max-height: 318px; gap: .65rem; overflow-y: auto; }
.adventure-option { position: relative; flex: 1 1 calc(50% - .65rem); min-height: 66px; border: 2px solid rgba(240, 213, 138, .55); border-radius: 4px 13px 7px 10px; color: #fff5d7; background: linear-gradient(115deg, #3b2944, #1b1623); box-shadow: 3px 4px 0 rgba(68, 38, 32, .42); }
.adventure-option:nth-child(2n) { transform: rotate(.55deg); }.adventure-option:nth-child(3n) { transform: rotate(-.45deg); }
.adventure-option:hover, .adventure-option:focus-visible { transform: translateY(-4px) rotate(-.2deg); border-color: #ffe59f; }
.adventure-option.is-selected { background: linear-gradient(115deg, #8a3a70, #3c294c); border-color: #fff0b8; }
.adventure-build { position: absolute; right: 2.5rem; bottom: 2.5rem; width: 300px; border: 2px solid rgba(255,229,157,.55); border-radius: 18px 6px 16px 8px; }
.adventure-step-actions { justify-content: flex-start; }

@media (max-width: 900px) {
  .adventure-page .experience-shell { padding: 1rem; }
  .adventure-main { display: none; }
  .adventure-mobile-notice { display: grid; min-height: calc(100vh - 190px); align-content: center; justify-items: start; gap: .9rem; padding: 2rem 0 4rem; }
  .adventure-mobile-notice > span { font-size: 3rem; filter: drop-shadow(0 10px 20px rgba(124,58,237,.36)); }
  .adventure-mobile-notice h1 { max-width: 620px; margin: 0; font-size: clamp(2.6rem, 12vw, 4.5rem); line-height: .96; letter-spacing: -.065em; }
  .adventure-mobile-notice p:not(.eyebrow) { max-width: 500px; margin: 0; color: #c7bed8; font-size: 1.05rem; line-height: 1.65; }
}
@media (min-width: 901px) {
  .adventure-mobile-notice { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .map-player { transition: none; }
}

/* The decisions live on the paper now: the card is a signpost, not a questionnaire. */
.map-choices { position: absolute; z-index: 4; inset: 0; pointer-events: none; }
.map-choice {
  position: absolute;
  left: var(--choice-x);
  top: var(--choice-y);
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  padding: 0;
  border: 3px solid #67452b;
  border-radius: 48% 52% 44% 56%;
  color: #563322;
  background: #ebcb78;
  box-shadow: 4px 5px 0 rgba(91, 53, 34, .28);
  cursor: pointer;
  pointer-events: auto;
  transform: translate(-50%, -50%) rotate(-6deg);
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}
.map-choice::before {
  position: absolute;
  width: 73px;
  height: 73px;
  border: 2px dashed rgba(103, 69, 43, .5);
  border-radius: 50%;
  content: '';
  opacity: .5;
  transform: rotate(13deg);
}
.map-choice-icon { position: relative; z-index: 1; font: 900 1.55rem/1 'DM Sans', sans-serif; }
.map-choice-label {
  position: absolute;
  z-index: 2;
  bottom: calc(100% + 13px);
  left: 50%;
  width: max-content;
  max-width: 190px;
  padding: .5rem .68rem;
  border: 2px solid #68442d;
  border-radius: 8px 11px 7px 10px;
  color: #fff4d2;
  background: #35253a;
  box-shadow: 3px 4px 0 rgba(79, 47, 37, .28);
  font: 800 .78rem/1.2 'DM Sans', sans-serif;
  letter-spacing: .01em;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 7px) rotate(3deg);
  transition: opacity 160ms ease, transform 160ms ease;
}
.map-player { z-index: 6; }
.map-choice:hover, .map-choice:focus-visible {
  z-index: 8;
  outline: none;
  background: #f8dc8a;
  box-shadow: 5px 8px 0 rgba(91, 53, 34, .32), 0 0 0 5px rgba(117, 43, 109, .2);
  transform: translate(-50%, calc(-50% - 8px)) rotate(3deg) scale(1.08);
}
.map-choice:hover .map-choice-label, .map-choice:focus-visible .map-choice-label { opacity: 1; transform: translate(-50%, 0) rotate(-2deg); }
.adventure-card {
  z-index: 5;
  width: min(360px, calc(100% - 650px));
  min-width: 0;
  margin: 1.7rem auto 0 2rem;
  padding: 1.35rem 1.45rem 1.25rem;
}
.adventure-card h2 { margin: .28rem 0 .65rem; font-size: clamp(1.55rem, 2.15vw, 2.15rem); line-height: 1.02; }
.adventure-card > p:not(.eyebrow) { margin: 0; font-size: .95rem; line-height: 1.5; }
.adventure-card .map-instruction { margin-top: .9rem; color: #d8c8e5; font-size: .84rem; }
.adventure-map-actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.05rem; }
.adventure-map-actions .btn-secondary { min-height: auto; padding: .58rem .78rem; font-size: .8rem; }
.adventure-build { right: 1.7rem; bottom: 1.7rem; width: 245px; max-height: 255px; padding: 1.25rem; overflow: auto; }
.adventure-build h2 { margin: .3rem 0 .7rem; font-size: 1.35rem; }
.adventure-build ul { max-height: 95px; overflow: auto; }
.adventure-map-guide {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin: 1.4rem 0 0;
  padding: .7rem 1rem;
  border: 1px solid rgba(255, 226, 146, .42);
  border-radius: 999px;
  color: #f8e4ad;
  background: rgba(65, 42, 73, .58);
  box-shadow: 3px 4px 0 rgba(79, 47, 37, .2);
  font-size: .88rem;
  font-weight: 700;
  line-height: 1.35;
}
.adventure-map-guide span { color: #ffd968; font-size: 1.05rem; }
.adventure-route-panel { display: block; margin-top: 1rem; }
.adventure-route-panel .adventure-build {
  position: static;
  display: grid;
  grid-template-columns: minmax(190px, .8fr) minmax(300px, 1.45fr) minmax(210px, .75fr);
  grid-template-rows: auto auto;
  column-gap: 2rem;
  width: 100%;
  box-sizing: border-box;
  max-height: none;
  margin: 0;
  padding: 1.25rem 1.45rem;
  overflow: visible;
}
.adventure-route-panel .adventure-build .eyebrow { grid-column: 1; grid-row: 1; margin: 0; }
.adventure-route-panel .adventure-build h2 { grid-column: 1; grid-row: 2; margin: .3rem 0 0; }
.adventure-route-panel .adventure-build ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-column: 2; grid-row: 1 / span 2; max-height: none; column-gap: 1rem; }
.adventure-route-panel .adventure-build strong { align-self: center; grid-column: 3; grid-row: 1 / span 2; margin: 0; }
@media (max-width: 900px) {
  .adventure-page .site-shell { display: flex; height: 100svh; min-height: 100svh; flex-direction: column; overflow: hidden; }
  .adventure-page .site-shell > .page-footer { display: none; }
  .adventure-shell { flex: 1 1 auto; display: flex; min-height: 0; flex-direction: column; }
  .adventure-mobile-notice { flex: 1 1 auto; min-height: 0; padding: 1rem 0; }
  .adventure-mobile-notice h1 { font-size: clamp(2.2rem, 10vw, 3.35rem); }
}
@media (prefers-reduced-motion: reduce) {
  .map-choice, .map-choice-label { transition: none; }
}


/* Connected, reusable choice roads. The existing parchment, rivers and
   landmarks stay in place; old static dotted roads are replaced with roads
   that actually lead to the current stage's options. */
.map-paper .map-route { display: none; }
.map-stage-paths {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.map-stage-road-shadow, .map-stage-road {
  fill: none;
  vector-effect: non-scaling-stroke;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.map-stage-road-shadow {
  stroke: rgba(112, 69, 39, .42);
  stroke-width: 17;
}
.map-stage-road {
  stroke: #b46a4f;
  stroke-width: 8;
  stroke-dasharray: 6 14;
}
.map-stage-road-lane:nth-of-type(4n), .map-stage-road-lane:nth-of-type(5n) { stroke: #526c64; }
.map-stage-road.is-chosen { stroke: #9d3976; stroke-width: 10; stroke-dasharray: 1 0; }
.map-stage-crossroads { fill: #ecca7c; stroke: #75452f; stroke-width: .7; }
.map-motion-measure { fill: none; stroke: none; }
.adventure-map-scene .map-player { transition: none; pointer-events: none; }
.adventure-map-scene .map-choice.is-selected {
  background: #e5aaef;
  border-color: #8b3571;
  box-shadow: 0 0 0 5px rgba(147,52,112,.2), 4px 5px 0 rgba(91,53,34,.28);
}
.adventure-map-scene .map-choice.is-selected .map-choice-icon { color: #602452; }
.map-choice.is-edge-right .map-choice-label { left: auto; right: -20px; transform: translate(0, 7px) rotate(2deg); }
.map-choice.is-edge-right:hover .map-choice-label,
.map-choice.is-edge-right:focus-visible .map-choice-label { transform: translate(0, 0) rotate(0); }
.map-picked-count { margin: .75rem 0 0; font-weight: 800; color: #f4d485; }
.map-continue { border-color: #d7b071 !important; background: #52314a !important; color: #fff1d3 !important; }
.map-continue:disabled { opacity: .48; cursor: not-allowed; }
.adventure-card { min-height: 0; }
@media (max-width: 1170px) and (min-width: 901px) {
  .adventure-card { width: min(310px, 34%); margin-left: .9rem; padding: 1rem; }
  .adventure-map-scene .map-choice { width: 48px; height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .adventure-map-scene .map-player,
  .adventure-map-scene .map-choice { transition: none; }
}


/* Storybook Trails V2 — three legible destinations, choices in their own tray. */
.adventure-map { min-height: 0; display: flex; flex-direction: column; padding: 5.2rem 1.4rem 1.4rem; gap: 1.15rem; overflow: hidden; }
.adventure-map-scene { position: relative; flex: none; height: clamp(330px, 36vw, 470px); border: 3px solid #7e563c; border-radius: 18px; box-shadow: inset 0 0 0 8px rgba(112,69,39,.18); overflow: hidden; }
.map-paper { background: radial-gradient(circle at 30% 20%,rgba(255,247,207,.65),transparent 46%), repeating-linear-gradient(30deg,rgba(102,55,26,.035) 0 1px,transparent 1px 9px),linear-gradient(135deg,#f4e3b3,#d6b477); }
.map-paper .map-town { opacity: .42; transform: scale(.72); }
.map-paper .town-two { top: 60%; left: 40%; }.map-paper .town-three { top: 14%; right: 42%; }.map-paper .town-four { right: 7%; top: 47%; }
.map-paper .map-mountain, .map-paper .map-tree { opacity: .42; }
.map-paper .map-river { opacity: .24; }
.map-stage-paths { z-index: 2; }
.map-stage-road-shadow { stroke: rgba(103,69,44,.25); stroke-width: 12; }
.map-stage-road { stroke: #956b49; stroke-width: 4; stroke-dasharray: 4 9; }
.map-stage-road.is-active { stroke: #795b83; stroke-width: 6; }
.map-stage-road.is-chosen { stroke: #9b4d70; stroke-width: 7; stroke-dasharray: none; }
.map-choices { z-index: 5; }
.map-choice, .map-choice:hover, .map-choice:focus-visible {
  width: clamp(155px, 18vw, 222px); min-height: 100px; height: auto; padding: .75rem 1rem;
  display: grid; grid-template-columns: 32px 1fr; gap: .16rem .55rem; align-items: center;
  border-radius: 14px 18px 13px 17px; border: 2px solid #825f45;
  background: #fff1cd; color: #503b34; box-shadow: 5px 7px 0 rgba(99,66,44,.22);
  transform: translate(-50%,-50%); transition: background .18s ease, box-shadow .18s ease, border-color .18s ease;
  text-align: left; font: inherit;
}
.map-choice::before { display: none; }
.map-choice:hover, .map-choice:focus-visible, .map-choice.is-active { background: #fff7e3; border-color: #8b426b; box-shadow: 0 0 0 4px rgba(139,66,107,.16),5px 7px 0 rgba(99,66,44,.22); }
.map-choice.is-selected { background: #f5dce8; }
.map-choice-icon { grid-row: 1 / span 2; font-size: 1.7rem; text-align: center; }
.map-choice-name { display: block; font: 900 .9rem/1.1 'DM Sans',sans-serif; }
.map-choice-label { display: block; position: static; opacity: 1; transform: none !important; width: auto; max-width: none; padding: 0; border: 0; background: none; box-shadow: none; color: #735847; font: 600 .76rem/1.25 'DM Sans',sans-serif; grid-column: 2; pointer-events: none; }
.map-choice-count { grid-column: 2; font: 700 .68rem/1.2 'DM Sans',sans-serif; color: #82604c; }
.map-choice-selected-count { grid-column: 1 / -1; font: 800 .7rem/1 'DM Sans',sans-serif; color: #8b426b; }
.map-choice:hover .map-choice-label, .map-choice:focus-visible .map-choice-label { opacity: 1; transform: none; }
.map-player { z-index: 6; width: 32px; height: 32px; font-size: 1rem; }
.map-player::after { top: 34px; }
.adventure-card { order: 0; width: 100%; box-sizing: border-box; margin: 0; padding: 1.25rem 1.45rem; display: grid; grid-template-columns: minmax(240px,1fr) auto; gap: .35rem 1.2rem; border-radius: 14px; }
.adventure-card::before { display: none; }
.adventure-card h2 { grid-column: 1; font-size: clamp(1.4rem,2.3vw,2rem); margin: 0; }
.adventure-card > .eyebrow, .adventure-card > p { grid-column: 1; }
.adventure-card .map-instruction { margin-top: .25rem; }
.adventure-card .map-picked-count { margin-top: .3rem; }
.adventure-map-actions { grid-column: 2; grid-row: 1 / span 5; display: flex; align-items: center; justify-content: flex-end; align-content: center; max-width: 330px; }
.adventure-map-actions .btn-secondary { padding: .7rem .9rem; }
.adventure-map-actions .map-continue { background: #825174 !important; }
.adventure-trail-panel { order: 1; position: relative; z-index: 2; width: 100%; box-sizing: border-box; border: 2px solid #e2c586; border-radius: 15px; padding: 1.3rem; color: #f7ead0; background: #292132; }
.trail-panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.trail-panel-kicker { font-size: .69rem; letter-spacing: .15em; text-transform: uppercase; color: #e6c889; font-weight: 800; }
.trail-panel-heading h3 { margin: .25rem 0; font-size: 1.4rem; }
.trail-panel-heading p { margin: 0; color: #cfc2d6; font-size: .85rem; }
.trail-panel-heading strong { color: #f4d7a2; white-space: nowrap; font-size: .8rem; }
.trail-options { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .65rem; }
.trail-option { min-height: 57px; display: flex; align-items: center; gap: .65rem; text-align: left; padding: .65rem .85rem; border: 1px solid #6b536d; border-radius: 10px; background: #3c3046; color: #f8eedc; font: 700 .84rem/1.3 'DM Sans',sans-serif; cursor: pointer; }
.trail-option:hover, .trail-option:focus-visible { border-color: #f0ce86; background: #51415a; }
.trail-option.is-selected { border-color: #e4a3d5; background: #624361; }
.trail-option-check { display: grid; place-items: center; flex: 0 0 24px; height: 24px; border: 1px solid #cfb6a2; border-radius: 7px; font-weight: 900; }
.trail-option.is-selected .trail-option-check { background: #eac5dd; color: #5c3057; }
.adventure-progress { z-index: 7; }
.adventure-progress ol { max-width: 55%; overflow: hidden; }
.adventure-progress ol::before { content: ''; position: absolute; height: 2px; background: #e4bf80; width: var(--route-progress,0%); bottom: -9px; left: 0; }
@media (max-width: 1100px) {
  .map-choice { width: 165px; }
  .trail-options { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .adventure-card { grid-template-columns: 1fr; }
  .adventure-map-actions { grid-column: 1; grid-row: auto; max-width: none; justify-content: flex-start; }
}
@media (max-width: 900px) {
  .adventure-map { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .map-choice, .trail-option { transition: none; }
}


/* Adventure visual-layer recovery — 2026-11-09 */
/* The routing logic was working, but the storybook scene could render behind
   other Adventure surfaces. Keep every visual layer explicit and isolated. */
.adventure-map-scene {
  position: relative !important;
  isolation: isolate;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,247,207,.66), transparent 46%),
    repeating-linear-gradient(30deg, rgba(102,55,26,.035) 0 1px, transparent 1px 9px),
    linear-gradient(135deg,#f4e3b3,#d6b477) !important;
}
.adventure-map-scene .map-paper {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 1 !important;
  pointer-events: none;
}
.adventure-map-scene .map-stage-paths {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 3 !important;
}
.adventure-map-scene .map-choices {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 5 !important;
}
.adventure-map-scene .map-choice {
  display: grid !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}
.adventure-map-scene .map-player {
  display: grid !important;
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 7 !important;
}
.adventure-map-scene .map-stage-road {
  filter: drop-shadow(0 2px 0 rgba(255,244,204,.32));
}
.adventure-map-scene .map-stage-road.is-active {
  stroke: #6f4f7d;
  stroke-width: 7;
  stroke-dasharray: 5 7;
}
.adventure-map-scene .map-stage-road.is-chosen {
  stroke: #a04477;
  stroke-width: 8;
  stroke-dasharray: none;
}
.adventure-map-scene .map-choice.is-active {
  border-color: #7f3f6b;
  box-shadow: 0 0 0 5px rgba(127,63,107,.18), 5px 7px 0 rgba(99,66,44,.22);
}
.adventure-map-scene .map-choice.is-selected {
  background: #f2d2e3 !important;
  border-color: #8f3f70 !important;
  box-shadow: 0 0 0 5px rgba(143,63,112,.2), 5px 7px 0 rgba(99,66,44,.22) !important;
}
.adventure-map-scene[data-map-moving="true"] .map-player,
.adventure-map-scene[data-advancing="true"] .map-player {
  box-shadow: 0 0 0 8px rgba(117,43,109,.22), 0 9px 0 rgba(80,39,38,.22);
}
.adventure-map-scene[data-chapter="0"] { --chapter-wash: rgba(122,78,112,.05); }
.adventure-map-scene[data-chapter="1"] { --chapter-wash: rgba(77,102,93,.055); }
.adventure-map-scene[data-chapter="2"] { --chapter-wash: rgba(134,96,57,.05); }
.adventure-map-scene[data-chapter="3"] { --chapter-wash: rgba(92,83,132,.055); }
.adventure-map-scene::after {
  content: '';
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background: var(--chapter-wash, transparent);
}
@media (prefers-reduced-motion: no-preference) {
  .adventure-map-scene .map-choice.is-active {
    animation: adventure-destination-breathe 1.9s ease-in-out infinite;
  }
  @keyframes adventure-destination-breathe {
    0%,100% { box-shadow: 0 0 0 4px rgba(127,63,107,.12), 5px 7px 0 rgba(99,66,44,.22); }
    50% { box-shadow: 0 0 0 8px rgba(127,63,107,.22), 5px 7px 0 rgba(99,66,44,.22); }
  }
}


/* Adventure choice feedback — selected answers visibly build the route. */
.map-breadcrumbs {
  position:absolute;
  z-index:6;
  inset:0;
  pointer-events:none;
}
.map-breadcrumb {
  position:absolute;
  left:var(--crumb-x);
  top:var(--crumb-y);
  display:grid;
  grid-template-columns:26px minmax(0,120px);
  align-items:center;
  gap:.35rem;
  transform:translate(-50%,-50%);
  animation:adventure-crumb-in .28s ease-out both;
}
.map-breadcrumb b {
  display:grid;
  place-items:center;
  width:26px;
  height:26px;
  border:2px solid #fff0b8;
  border-radius:50%;
  color:#fff8df;
  background:#8d3f70;
  box-shadow:0 3px 0 rgba(79,47,37,.25);
  font:900 .72rem/1 'DM Sans',sans-serif;
}
.map-breadcrumb small {
  overflow:hidden;
  max-width:120px;
  padding:.3rem .45rem;
  border:1px solid rgba(117,72,50,.5);
  border-radius:7px;
  color:#503b34;
  background:rgba(255,241,205,.94);
  box-shadow:2px 3px 0 rgba(99,66,44,.14);
  font:800 .66rem/1.2 'DM Sans',sans-serif;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.map-breadcrumb.is-active b {
  background:#633f79;
  box-shadow:0 0 0 5px rgba(99,63,121,.18),0 3px 0 rgba(79,47,37,.25);
}
.adventure-map-scene.has-route-picks .map-stage-crossroads {
  fill:#f5dc95;
  stroke:#8d3f70;
  stroke-width:1.1;
}
.adventure-map-scene.route-choice-flash {
  box-shadow:inset 0 0 0 8px rgba(112,69,39,.18), inset 0 0 0 12px rgba(157,68,119,.2);
}
@keyframes adventure-crumb-in {
  from { opacity:0; transform:translate(-50%,-50%) scale(.7); }
  to { opacity:1; transform:translate(-50%,-50%) scale(1); }
}
@media (prefers-reduced-motion:reduce) {
  .map-breadcrumb { animation:none; }
}


/* Live Route Canvas — replaces the dead storybook/Pong visual. */
.adventure-map-scene {
  min-height: 420px;
  background: linear-gradient(180deg,#171421,#1d1726) !important;
  border-color: rgba(226,208,142,.42) !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.025), 0 18px 55px rgba(0,0,0,.22) !important;
}
.adventure-map-scene > .map-paper,
.adventure-map-scene > .map-stage-paths,
.adventure-map-scene > .map-choices,
.adventure-map-scene > .map-breadcrumbs,
.adventure-map-scene > .map-player {
  display: none !important;
}
.adventure-live-route {
  position:absolute;
  z-index:20;
  inset:0;
  display:grid;
  grid-template-columns:180px minmax(0,1fr);
  gap:1.2rem;
  align-items:center;
  padding:2rem;
  box-sizing:border-box;
  color:#f8f1ff;
}
.live-route-start {
  display:grid;
  gap:.8rem;
  justify-items:center;
  align-content:center;
  min-height:220px;
  padding:1rem;
  border-right:1px solid rgba(226,208,142,.25);
  text-align:center;
}
.live-route-you {
  display:grid;
  place-items:center;
  width:76px;
  height:76px;
  border:2px solid #e7cf8e;
  border-radius:50%;
  background:#7a4d70;
  color:#fff9df;
  box-shadow:0 0 0 8px rgba(122,77,112,.15);
  font:900 .83rem/1 'DM Sans',sans-serif;
  letter-spacing:.14em;
}
.live-route-start small,
.live-route-destination small {
  display:block;
  color:#b9acc8;
  font-size:.7rem;
  text-transform:uppercase;
  letter-spacing:.12em;
}
.live-route-start strong {
  display:block;
  margin-top:.25rem;
  font-size:.88rem;
  color:#f0dfac;
}
.live-route-lanes {
  display:grid;
  gap:1.15rem;
  min-width:0;
}
.live-route-lane {
  display:grid;
  grid-template-columns:150px minmax(0,1fr) 95px;
  gap:1rem;
  align-items:center;
  min-height:92px;
  padding:.85rem 1rem;
  border:1px solid rgba(147,124,161,.24);
  border-radius:16px;
  background:rgba(42,34,51,.56);
  transition:border-color .2s ease, background .2s ease, transform .2s ease;
}
.live-route-lane.is-active {
  border-color:rgba(226,197,134,.62);
  background:rgba(57,44,66,.82);
}
.live-route-lane.has-picks {
  border-color:rgba(197,117,168,.62);
}
.live-route-name {
  display:flex;
  align-items:center;
  gap:.65rem;
  min-width:0;
}
.live-route-name span {
  display:grid;
  place-items:center;
  flex:0 0 34px;
  width:34px;
  height:34px;
  border-radius:10px;
  background:#30263a;
  color:#ecd391;
  font-size:1.05rem;
}
.live-route-name strong {
  font-size:.83rem;
  line-height:1.2;
}
.live-route-track {
  position:relative;
  min-width:0;
  padding:.35rem 0;
}
.live-route-track > i {
  position:absolute;
  left:0;
  right:0;
  top:50%;
  height:3px;
  border-radius:999px;
  background:linear-gradient(90deg,#786174,#b69067);
  opacity:.72;
  transform:translateY(-50%);
}
.live-route-lane.has-picks .live-route-track > i {
  height:5px;
  background:linear-gradient(90deg,#8f5d85,#d68fb9,#e1bf79);
  opacity:1;
}
.live-route-picks {
  position:relative;
  z-index:2;
  display:flex;
  flex-wrap:wrap;
  gap:.45rem;
  align-items:center;
  min-height:44px;
}
.live-route-empty {
  padding:.35rem .55rem;
  color:#8e8399;
  background:#211b29;
  border-radius:8px;
  font-size:.72rem;
}
.live-route-pick {
  display:inline-flex;
  align-items:center;
  gap:.4rem;
  max-width:190px;
  padding:.45rem .6rem;
  border:1px solid rgba(229,179,211,.4);
  border-radius:999px;
  color:#fff3fb;
  background:#66455f;
  box-shadow:0 3px 0 rgba(0,0,0,.14);
  font:700 .72rem/1.2 'DM Sans',sans-serif;
  animation:live-route-pop .28s ease-out both;
  animation-delay:var(--pick-delay,0ms);
}
.live-route-pick b {
  display:grid;
  place-items:center;
  flex:0 0 21px;
  width:21px;
  height:21px;
  border-radius:50%;
  color:#5d3957;
  background:#efd8e6;
  font-size:.65rem;
}
.live-route-destination {
  text-align:right;
}
.live-route-destination strong {
  display:block;
  margin-top:.2rem;
  color:#f0d89c;
  font-size:.8rem;
}
.adventure-live-route.has-picks .live-route-you {
  background:#8a4b77;
  box-shadow:0 0 0 8px rgba(138,75,119,.18),0 0 26px rgba(212,137,185,.18);
}
@keyframes live-route-pop {
  from { opacity:0; transform:translateY(7px) scale(.92); }
  to { opacity:1; transform:none; }
}
@media (max-width:1100px) and (min-width:901px) {
  .adventure-live-route { grid-template-columns:135px minmax(0,1fr); padding:1.25rem; }
  .live-route-lane { grid-template-columns:120px minmax(0,1fr) 70px; gap:.65rem; }
  .live-route-pick { max-width:145px; }
}
@media (prefers-reduced-motion:reduce) {
  .live-route-pick,.live-route-lane { animation:none; transition:none; }
}


/* Static route canvas hardening — always visible before JS. */
.adventure-map-scene {
  display:block !important;
  position:relative !important;
  min-height:420px !important;
  height:clamp(420px,36vw,500px) !important;
  overflow:hidden !important;
}
.adventure-map-scene .adventure-live-route {
  display:grid !important;
  visibility:visible !important;
  opacity:1 !important;
  position:absolute !important;
  z-index:50 !important;
  inset:0 !important;
}
.adventure-map-scene .adventure-live-route * {
  visibility:visible !important;
  opacity:1 !important;
}
.adventure-map-scene .live-route-start {
  display:grid !important;
}
.adventure-map-scene .live-route-lanes {
  display:grid !important;
}
.adventure-map-scene .live-route-lane {
  display:grid !important;
}


/* DD isolated route canvas — no inheritance from legacy Adventure map. */
.adventure-map-scene .dd-route-canvas {
  position:absolute !important;
  inset:0 !important;
  z-index:100 !important;
  display:grid !important;
  grid-template-columns:180px minmax(0,1fr) !important;
  gap:20px !important;
  align-items:center !important;
  box-sizing:border-box !important;
  padding:28px !important;
  visibility:visible !important;
  opacity:1 !important;
  color:#f8f1ff !important;
  background:linear-gradient(180deg,#171421 0%,#1d1726 100%) !important;
  font-family:'DM Sans',system-ui,sans-serif !important;
  font-size:16px !important;
  line-height:1.3 !important;
}
.adventure-map-scene .dd-route-canvas,
.adventure-map-scene .dd-route-canvas * {
  box-sizing:border-box !important;
  visibility:visible !important;
  opacity:1 !important;
  text-indent:0 !important;
  -webkit-text-fill-color:currentColor !important;
}
.dd-route-start {
  display:grid !important;
  gap:14px !important;
  justify-items:center !important;
  align-content:center !important;
  min-height:260px !important;
  padding:16px !important;
  border-right:1px solid rgba(226,208,142,.32) !important;
  color:#f8f1ff !important;
  text-align:center !important;
}
.dd-route-you {
  display:grid !important;
  place-items:center !important;
  width:78px !important;
  height:78px !important;
  border:2px solid #e7cf8e !important;
  border-radius:50% !important;
  color:#fff9df !important;
  background:#7a4d70 !important;
  box-shadow:0 0 0 8px rgba(122,77,112,.16) !important;
  font:900 13px/1 'DM Sans',sans-serif !important;
  letter-spacing:.14em !important;
}
.dd-route-start small,
.dd-route-destination small {
  display:block !important;
  color:#b9acc8 !important;
  font-size:11px !important;
  font-weight:700 !important;
  letter-spacing:.1em !important;
  text-transform:uppercase !important;
}
.dd-route-start strong {
  display:block !important;
  margin-top:4px !important;
  color:#f0dfac !important;
  font-size:14px !important;
  font-weight:800 !important;
}
.dd-route-lanes {
  display:grid !important;
  gap:18px !important;
  min-width:0 !important;
}
.dd-route-lane {
  display:grid !important;
  grid-template-columns:150px minmax(0,1fr) 95px !important;
  gap:16px !important;
  align-items:center !important;
  min-height:96px !important;
  padding:14px 16px !important;
  border:1px solid rgba(147,124,161,.34) !important;
  border-radius:16px !important;
  color:#f8f1ff !important;
  background:#2a2233 !important;
}
.dd-route-lane.is-active {
  border-color:#e2c586 !important;
  background:#392d42 !important;
}
.dd-route-lane.has-picks {
  border-color:#c875a8 !important;
}
.dd-route-name {
  display:flex !important;
  align-items:center !important;
  gap:10px !important;
  min-width:0 !important;
  color:#fff7ff !important;
}
.dd-route-name > span {
  display:grid !important;
  place-items:center !important;
  flex:0 0 36px !important;
  width:36px !important;
  height:36px !important;
  border-radius:10px !important;
  color:#ecd391 !important;
  background:#30263a !important;
  font-size:17px !important;
}
.dd-route-name > strong {
  display:block !important;
  color:#fff7ff !important;
  font-size:14px !important;
  font-weight:900 !important;
}
.dd-route-track {
  position:relative !important;
  display:block !important;
  min-width:0 !important;
  min-height:54px !important;
  padding:5px 0 !important;
}
.dd-route-track > i {
  position:absolute !important;
  left:0 !important;
  right:0 !important;
  top:50% !important;
  display:block !important;
  height:4px !important;
  border-radius:999px !important;
  background:linear-gradient(90deg,#786174,#b69067) !important;
  transform:translateY(-50%) !important;
}
.dd-route-lane.has-picks .dd-route-track > i {
  height:6px !important;
  background:linear-gradient(90deg,#8f5d85,#d68fb9,#e1bf79) !important;
}
.dd-route-picks {
  position:relative !important;
  z-index:2 !important;
  display:flex !important;
  flex-wrap:wrap !important;
  gap:7px !important;
  align-items:center !important;
  min-height:44px !important;
}
.dd-route-empty {
  display:inline-block !important;
  padding:6px 9px !important;
  border-radius:8px !important;
  color:#aaa0b5 !important;
  background:#211b29 !important;
  font-size:12px !important;
  font-weight:700 !important;
}
.dd-route-pick {
  display:inline-flex !important;
  align-items:center !important;
  gap:6px !important;
  max-width:190px !important;
  padding:7px 10px !important;
  border:1px solid rgba(229,179,211,.5) !important;
  border-radius:999px !important;
  color:#fff3fb !important;
  background:#66455f !important;
  font:700 12px/1.2 'DM Sans',sans-serif !important;
}
.dd-route-pick > b {
  display:grid !important;
  place-items:center !important;
  flex:0 0 22px !important;
  width:22px !important;
  height:22px !important;
  border-radius:50% !important;
  color:#5d3957 !important;
  background:#efd8e6 !important;
  font-size:10px !important;
}
.dd-route-destination {
  display:block !important;
  color:#f0d89c !important;
  text-align:right !important;
}
.dd-route-destination > strong {
  display:block !important;
  margin-top:3px !important;
  color:#f0d89c !important;
  font-size:13px !important;
  font-weight:900 !important;
}
@media (max-width:1100px) and (min-width:901px) {
  .adventure-map-scene .dd-route-canvas {
    grid-template-columns:140px minmax(0,1fr) !important;
    padding:18px !important;
  }
  .dd-route-lane {
    grid-template-columns:120px minmax(0,1fr) 72px !important;
    gap:10px !important;
  }
}


/* Visible DD route lanes are the real Adventure controls. */
.adventure-map-scene button.dd-route-lane {
  width:100% !important;
  appearance:none !important;
  border:1px solid rgba(147,124,161,.34) !important;
  border-radius:16px !important;
  font:inherit !important;
  text-align:left !important;
  cursor:pointer !important;
  transition:transform .18s ease,border-color .18s ease,background .18s ease,box-shadow .18s ease !important;
}
.adventure-map-scene button.dd-route-lane:hover,
.adventure-map-scene button.dd-route-lane:focus-visible {
  transform:translateY(-2px) !important;
  border-color:#e2c586 !important;
  background:#41334a !important;
  box-shadow:0 10px 26px rgba(0,0,0,.2),0 0 0 3px rgba(226,197,134,.1) !important;
  outline:none !important;
}
.adventure-map-scene button.dd-route-lane.is-active {
  border-color:#e2c586 !important;
  background:#392d42 !important;
}
.adventure-map-scene button.dd-route-lane.has-picks {
  border-color:#c875a8 !important;
}
.adventure-map-scene button.dd-route-lane .dd-route-track,
.adventure-map-scene button.dd-route-lane .dd-route-picks,
.adventure-map-scene button.dd-route-lane .dd-route-pick {
  pointer-events:none !important;
}
