
body.atlas-location{font-family:Georgia,serif;--atlas-height:calc(100vh - 16px)}
body.atlas-location .atlas-workspace{padding-top:8px!important;padding-bottom:8px!important}
.atlas-left,.atlas-right{font-family:Georgia,serif;scrollbar-width:thin}
.atlas-left h1{font-size:clamp(1.65rem,2.1vw,2.25rem)!important}
.atlas-left h2,.atlas-right h2{font-size:1.15rem;margin:.85rem 0 .45rem}
.eyebrow{font:700 .68rem/1.5 system-ui;letter-spacing:.12em}
.atlas-left p,.atlas-right p{line-height:1.42;font-size:.91rem}
.atlas-destinations{gap:.25rem!important;margin:.6rem 0!important}
.atlas-destinations a{min-height:0!important;padding:.35rem .55rem!important;font-size:.81rem!important}
.activity-switch{display:grid;grid-template-columns:1fr;gap:5px}
.activity-switch button{min-height:33px!important;text-align:left;padding:5px 9px;cursor:pointer;font-size:.8rem}
.traveller-notes{border-top:1px solid var(--atlas-border);margin-top:1rem;padding-top:.65rem}
.traveller-notes label{display:block;margin-bottom:6px}
.traveller-notes textarea{box-sizing:border-box;width:100%;resize:vertical;max-height:90px;border:1px solid var(--atlas-border);border-radius:6px;padding:8px;background:#fff}
.note-status{font-size:.7rem!important;color:var(--graphoria-muted)}
body.atlas-location .rocky-stage{overflow:hidden!important;border:2px solid #657e69;border-radius:12px;padding:0;background:#8ba9a0}
.rocky-stage svg{display:block;width:100%;height:100%}
.scene-label{position:absolute;top:12px;left:12px;padding:8px 12px;background:#f3f5ebeb;color:#30443b;border:1px solid #9dac97;border-radius:8px;font:700 .8rem system-ui;letter-spacing:.07em}
.scene-label span{display:block;font-size:.65rem;margin-top:3px;opacity:.75}
body.atlas-location .atlas-activity-bar{position:absolute;bottom:10px;left:10px;right:10px;width:auto;z-index:3;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 10px!important;background:#f3f5ebec!important;box-shadow:0 3px 15px #0004;font:600 .77rem system-ui}
#move-hint{flex:1}
body.atlas-location .atlas-activity-bar button{min-height:34px;padding:4px 10px;cursor:pointer}
#holds .hold{cursor:pointer;outline:none}
#holds .hold circle{fill:#d8b88a;stroke:#554b3c;stroke-width:4}
#holds .hold.available circle{fill:#f8d46f;stroke:#674d23;stroke-width:5;filter:drop-shadow(0 0 9px #fff0a8)}
#holds .hold:focus-visible circle{stroke:#fff;stroke-width:8}
#holds .hold text{font:700 17px system-ui;fill:#292b27;text-anchor:middle;pointer-events:none}
#edges line{stroke:#e9ddba;stroke-width:4;stroke-dasharray:7 7;opacity:.7}
#edges text{fill:#fff9e9;paint-order:stroke;stroke:#3e4139;stroke-width:5;font:700 17px system-ui;text-anchor:middle}
#climber{transition:transform 1.45s cubic-bezier(.25,.7,.3,1)}
#climber #left-arm,#climber #right-arm,#climber #left-leg,#climber #right-leg{transition:d .35s}
.score{display:flex;justify-content:space-between;gap:8px;font:700 .95rem system-ui;margin-top:1.2rem}
.meter{height:16px;background:#d0d6c7;border:1px solid #8d9e87;border-radius:20px;overflow:hidden;margin-top:8px}
#fatigue-fill{height:100%;width:0;background:#527e62;transition:width .3s}
#status{padding:10px;border-left:3px solid var(--atlas-accent);background:#e5ebdd}
.atlas-right details{font-size:.84rem;border-top:1px solid var(--atlas-border);padding-top:10px}
@media(max-width:1199px){body.atlas-location .rocky-stage{height:min(78vh,750px)!important;min-height:480px!important}.atlas-left,.atlas-right{overflow:visible!important}}

/* Match the established Graphoria sidebar scale, not the compact prototype. */
body.atlas-location .atlas-destinations{gap:.5rem!important;margin:1rem 0!important}
body.atlas-location .atlas-destinations a{min-height:44px!important;padding:.55rem .7rem!important;font-size:.92rem!important}
body.atlas-location .activity-switch{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
body.atlas-location .activity-switch button{min-height:44px!important;text-align:center;font:700 .91rem Georgia,serif}
body.atlas-location .activity-switch button:last-child:nth-child(odd){grid-column:1/-1}
body.atlas-location .atlas-left h1{font-size:clamp(2rem,2.5vw,2.8rem)!important}
#edges{display:none}
#route .climbing-rope{stroke:#d5a86a;stroke-width:8;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(2px 2px 1px #31281d)}
#route .climbing-rope{stroke-dasharray:2 3}
#holds .hold circle{fill:#ba824b;stroke:#5c4630;stroke-width:4}
#holds .hold.available circle{fill:#e8b65d;stroke:#fce7a1;stroke-width:5}
#holds .hold.available:hover circle{fill:#ffe095;filter:drop-shadow(0 0 11px #ffe4a4)}
.cost-tooltip{pointer-events:none;filter:drop-shadow(1px 3px 4px #0006)}
.cost-tooltip rect{fill:#fff6df;stroke:#7c6344;stroke-width:2}
.cost-tooltip text{font:700 16px Georgia,serif;fill:#3c3429;text-anchor:middle}
#climber.shame{transition:transform 2.1s ease-in!important;transform:translate(360px,783px)!important}
#climber.shame #left-arm,#climber.shame #right-arm{transform:rotate(28deg)}
#climber.victory #left-arm{transform:rotate(-55deg)}
#climber.victory #right-arm{transform:rotate(55deg)}

/* V3: match the Crossing's navigation rhythm without forced button heights.
   The previous V2 rules used min-height:44px plus generous padding and
   inflated the rows to over 60px. */
body.atlas-location .atlas-destinations {
  gap: .5rem !important;
  margin: 1rem 0 !important;
}
body.atlas-location .atlas-destinations a {
  box-sizing: border-box;
  min-height: 44px !important;
  padding: .55rem .7rem !important;
  display: flex !important;
  align-items: center;
  font: 600 .92rem/1.4 system-ui, sans-serif !important;
}
body.atlas-location .atlas-left h1 {
  font-size: clamp(2rem,2.5vw,2.8rem) !important;
}
body.atlas-location .activity-switch {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 8px;
}
body.atlas-location .activity-switch button {
  box-sizing: border-box;
  min-height: 44px !important;
  padding: 7px 9px !important;
  font: 700 .92rem/1.15 Georgia,serif !important;
}
body.atlas-location .activity-switch button:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}
body.atlas-location .climb-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 14px 0;
}
body.atlas-location .climb-controls button {
  cursor: pointer;
  min-height: 42px !important;
  font: 600 .9rem system-ui,sans-serif;
}
body.atlas-location .climb-controls button:disabled {
  opacity: .48;
  cursor: default;
}
body.atlas-location .atlas-right #move-hint {
  font-size: .85rem;
  color: var(--atlas-ink);
}

/* V4 — overlay activity selector, constrained to central image */
body.atlas-location .rocky-stage .atlas-activity-bar {
  position:absolute!important;
  left:12px!important;
  right:12px!important;
  bottom:12px!important;
  width:auto!important;
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:8px!important;
  padding:9px!important;
  margin:0!important;
  background:#f3f5ebed!important;
  border-radius:10px;
}
body.atlas-location .rocky-stage .atlas-activity-bar button {
  min-height:42px!important;
  padding:6px!important;
  font:700 .86rem Georgia,serif!important;
  white-space:normal;
  text-align:center;
}
body.atlas-location .rocky-stage .atlas-activity-bar button:last-child:nth-child(odd) {
  grid-column:auto!important;
}
#holds .hold.blocked circle {
  fill:#d96c64;
  stroke:#873d37;
  stroke-width:5;
  filter:drop-shadow(0 0 8px #f1a19a);
}
#holds .hold.blocked{cursor:help}
#holds .hold.blocked text{fill:#fff8ef}

/* V5: distinguish hold states by hue, outline and shape (colour-blind accessible). */
#holds .hold.blocked circle:not(.blocked-badge) {
  fill:#1466cb; stroke:#ffffff; stroke-width:5;
  stroke-dasharray:5 3; filter:drop-shadow(0 0 7px #163d76);
}
#holds .hold.blocked .blocked-badge {
  fill:#ffffff; stroke:#103f88; stroke-width:2; filter:none;
}
#holds .hold.blocked .blocked-mark {
  font:bold 22px/1 system-ui,sans-serif; fill:#103f88;
  stroke:none; pointer-events:none;
}
#holds .hold.available circle {
  fill:#ffe044; stroke:#242424; stroke-width:5;
  stroke-dasharray:none;
}
#holds .hold:not(.available):not(.blocked) circle {
  fill:#96734f; stroke:#49392c; stroke-width:4;
  stroke-dasharray:none; filter:none;
}

/* V6: a third control on the right; no additional overlay or scene height. */
body.atlas-location .climb-controls{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
body.atlas-location .climb-controls button{padding:5px 3px!important;font-size:.77rem!important}
body.atlas-location #challenge-note{font-size:.76rem;line-height:1.35;margin:.35rem 0 .7rem}

/* Redux stage 2: scenery is independent of the interactive SVG. */
.rocky-stage{position:relative!important;isolation:isolate}
.rocky-scenery{
  position:absolute;
  inset:0;
  background-image:url("./graphoria-rocky-cliff.png");
  background-position:center center;
  background-size:cover;
  background-repeat:no-repeat;
  pointer-events:none;
  z-index:0;
}
.rocky-stage > #cliff{position:absolute;inset:0;z-index:1}
.rocky-stage > .atlas-activity-bar{z-index:4}
.rocky-stage > .scene-label{z-index:5}

/* Redux Stage 3: no image edits; SVG shapes only, aligned to existing cliff. */
#route,#edges,#summit-flag{display:none!important}
#holds .hold{cursor:help;outline:none}
#holds .hold.available{cursor:pointer}
#holds .hold-target{fill:transparent;stroke:none;pointer-events:all}
#holds .hold-outline{fill:rgba(232,207,148,.14);stroke:transparent;stroke-width:4;stroke-linejoin:round;pointer-events:none;transition:stroke .15s,fill .15s}
#holds .hold:is(:hover,:focus-visible) .hold-outline{stroke:#f5f1e4;fill:rgba(255,255,255,.14)}
#holds .hold.available:is(:hover,:focus-visible) .hold-outline{stroke:#fce05a;stroke-width:6;fill:rgba(255,224,90,.24);filter:drop-shadow(0 0 5px #ffdc50)}
#holds .hold.blocked:is(:hover,:focus-visible) .hold-outline{stroke:#28a6ff;stroke-width:6;stroke-dasharray:9 4;fill:rgba(30,139,241,.22)}
#holds .hold-label{pointer-events:none}
#holds .hold-label rect{fill:#fff8e6;stroke:#554d3e;stroke-width:1.5}
#holds .hold-label text{font:700 15px system-ui;fill:#2d322d;text-anchor:middle;stroke:none;paint-order:normal}
#holds .hold-x{pointer-events:none;opacity:0}
#holds .hold.blocked:is(:hover,:focus-visible) .hold-x{opacity:1}
#holds .hold-x circle{fill:#fff;stroke:#087cce;stroke-width:2.5}
#holds .hold-x path{fill:none;stroke:#087cce;stroke-width:2.5;stroke-linecap:round}
#holds .cost-tooltip rect{fill:#fff8e7;stroke:#544b37;stroke-width:2}
#holds .cost-tooltip text{font:700 15px Georgia,serif;fill:#302b23;text-anchor:middle;stroke:none;paint-order:normal}

/* Redux Stage 4: fix start/menu overlap, permanent accessible labels and rope. */
#route{display:block!important;pointer-events:none}
#route .climbing-rope{
  fill:none;stroke:#f1d18b;stroke-width:5;stroke-dasharray:none;
  stroke-linecap:round;stroke-linejoin:round;
  filter:drop-shadow(1px 2px 2px #302419bb);
}
#holds .hold-label rect{fill:#fff9e8!important;stroke:#3d473c!important;opacity:1!important}
#holds .hold-label text{fill:#1f2b27!important;opacity:1!important;font-weight:800!important}
#holds .hold-label.unavailable rect{fill:#cbd0cb!important;stroke:#707970!important;opacity:.92!important}
#holds .hold-label.unavailable text{fill:#45504a!important;opacity:1!important}
#holds .hold.current .hold-label rect{fill:#f8dfa0!important;stroke:#635127!important}
#holds .hold-label{visibility:visible!important;opacity:1!important}

/* Stage 5: illustrated, accessible activity controls (independent of scenery). */
body.atlas-location .rocky-stage .illustrated-switch {
  left:12px!important; right:12px!important; bottom:12px!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:7px!important; padding:8px!important;
  background:linear-gradient(145deg,rgba(22,52,41,.97),rgba(34,68,53,.97))!important;
  border:2px solid #78957b!important;
  border-radius:12px!important;
  box-shadow:inset 0 1px 0 #b7c6a155,0 6px 18px #17231bb0!important;
}
body.atlas-location .rocky-stage .illustrated-switch button {
  display:flex!important; align-items:center!important; justify-content:center!important;
  gap:clamp(5px,1.3vw,17px)!important;
  min-height:72px!important; padding:5px 8px!important;
  color:#f8f5e7!important;
  background:linear-gradient(150deg,#29483a,#1a332a)!important;
  border:1px solid #6b8c73!important;
  border-radius:7px!important;
  font:700 clamp(.75rem,1.05vw,1rem)/1.2 Georgia,serif!important;
  text-align:left!important;
  text-shadow:0 1px 2px #0009;
  transition:border-color .15s,background .15s;
}
body.atlas-location .rocky-stage .illustrated-switch button[aria-pressed="true"] {
  background:linear-gradient(150deg,#385a48,#213d30)!important;
  border:2px solid #f4e8c3!important;
  box-shadow:inset 0 0 0 1px #a5b49b,0 0 0 1px #f4e8c340!important;
}
body.atlas-location .rocky-stage .illustrated-switch button:hover {border-color:#ffda89!important;background:#3c5c48!important}
body.atlas-location .rocky-stage .illustrated-switch button:focus-visible {outline:3px solid #ffe174!important;outline-offset:2px!important}
body.atlas-location .rocky-stage .illustrated-switch .mode-art {
  display:block!important; width:clamp(40px,5vw,70px)!important;
  height:62px!important; flex:0 0 auto!important;
  overflow:visible!important; filter:drop-shadow(1px 3px 2px #0007);
}
body.atlas-location .rocky-stage .illustrated-switch .mode-name {display:block;max-width:145px}
@media(max-width:800px){
  body.atlas-location .rocky-stage .illustrated-switch button{flex-direction:column!important;gap:0!important;min-height:78px!important;text-align:center!important;font-size:.7rem!important}
  body.atlas-location .rocky-stage .illustrated-switch .mode-art{height:40px!important;width:48px!important}
}

/* Stage 7: independently illustrated Craig, with no sprite pixels in scenery. */
#climber { pointer-events:none; }
#craig-sprite { image-rendering:auto; overflow:visible; }
#climber.victory #craig-sprite { animation: craig-cheer .7s ease-in-out infinite alternate; transform-origin:center 75%; }
@keyframes craig-cheer { from {transform:translateY(0)} to {transform:translateY(-5px)} }
@media (prefers-reduced-motion:reduce) { #climber.victory #craig-sprite {animation:none} }

/* Stage 8: allow Craig to travel between holds without rapid sprite flicker. */
#climber:not(.shame){transition:transform 1.45s cubic-bezier(.25,.7,.3,1)}

/* Stage 9: return to A without interpolating incompatible SVG transforms. */
#climber.snap-home, #climber.snap-home:not(.shame) { transition:none!important; }
.rocky-arrival-art {
  display: block;
  width: 100%;
  height: 100%;
}

.rocky-goat-vignette {
  display: block;
  width: min(100%, 17rem);
  height: auto;
  max-height: 39dvh;
  margin: 1rem auto 0;
  object-fit: contain;
}

@media (min-width: 1200px) {
  body[data-place="the-rocky-ascent"] .audit-arrival-controls {
    display: flex;
    flex-direction: column;
  }
  .audit-arrival-controls .rocky-goat-vignette {
    flex: 1 1 0;
    min-height: 0;
    max-height: none;
  }
}
