/* Outcome-first cinematic portal, visually distinct from technical source inspectors. */
.world .outcome-open{position:absolute;z-index:15;bottom:clamp(5.5rem,13vh,9rem);left:50%;transform:translateX(-50%);min-height:48px;padding:.8rem 1.4rem;border:1px solid #e7c888;border-radius:999px;background:linear-gradient(110deg,#542c40,#125047,#233e73);color:#fff8e7;font:700 clamp(.85rem,2.5vw,1rem)/1.3 system-ui;box-shadow:0 8px 36px #020c1cb8;cursor:pointer;max-width:calc(100% - 2rem)}
.world .outcome-open{position:relative;inset:auto;transform:none;justify-self:center;align-self:start;margin:.65rem auto 0;z-index:2}
.world .outcome-open:focus-visible,.outcome-portal :focus-visible{outline:3px solid #f7d897;outline-offset:3px}
.outcome-portal[hidden]{display:none}
.outcome-portal{position:fixed;z-index:1000;inset:0;overflow:auto;overscroll-behavior:contain;background:radial-gradient(ellipse at 55% 12%,#164d58 0%,#071622 58%,#090d20 100%);color:#f3f8fa;padding:clamp(1rem,4vw,3rem);font-family:system-ui}
.outcome-head{display:flex;justify-content:space-between;align-items:center;gap:1rem}.outcome-head h2{font-size:clamp(1.5rem,5vw,3rem);margin:0;color:#f7d897}
.outcome-close,.outcome-card{cursor:pointer;border:1px solid #7799a5;background:#102d3b;color:#fff;border-radius:1rem;min-height:48px;padding:.8rem}
.outcome-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));gap:1rem;margin:1.5rem 0}
.outcome-card{display:flex;flex-direction:column;gap:.6rem;text-align:left;background:linear-gradient(140deg,#5b283e,#0c4c43 55%,#263c73);box-shadow:0 8px 32px #0006}
.outcome-card span{font-size:2rem;color:#f7d897}.outcome-card strong{font-size:1.15rem}.outcome-card small{color:#d4e9e7}
.outcome-card[aria-pressed=true]{border:2px solid #f7d897;box-shadow:0 0 0 3px #f7d89733}
.outcome-detail{max-width:900px;margin:auto}.outcome-detail h3{font-size:clamp(1.25rem,4vw,2rem)}
.outcome-lineage{display:flex;flex-wrap:wrap;list-style:none;padding:0;gap:.7rem}.outcome-lineage li{display:flex;flex-direction:column;gap:.3rem;padding:.75rem;border:1px solid #527e88;border-radius:.8rem;background:#0c2637;min-width:120px}.outcome-lineage small{text-transform:uppercase;color:#b6d5d6}
.outcome-portal a{color:#f7d897}.outcome-destination{display:inline-block;margin:1rem 0;padding:.9rem 1.2rem;border:1px solid #f7d897;border-radius:999px;min-height:44px}
@media(max-width:600px){.outcome-portal{padding:1rem;padding-bottom:env(safe-area-inset-bottom,1rem)}.outcome-head{align-items:flex-start}.outcome-head h2{max-width:70%}.outcome-cards{grid-template-columns:1fr 1fr;gap:.5rem}.outcome-card{padding:.7rem}.outcome-lineage li{flex:1 1 130px}}
@media(max-width:360px){.outcome-cards{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.outcome-portal *{animation:none!important;transition:none!important}}

/* Outcome discovery: searchable ancestry without obstructing the cinematic world. */
.outcome-search-label{display:grid;gap:.4rem;max-width:46rem;color:#c7f5e6;font-weight:650;margin:.9rem 0}
.outcome-search{width:100%;min-height:48px;border:1px solid #8fb5c7;border-radius:12px;background:#071a2d;color:#fff;font:inherit;padding:.7rem 1rem}
.outcome-search:focus-visible{outline:3px solid #f7d18a;outline-offset:3px}
.outcome-results{color:#b9d9df;font-size:.9rem;margin:.3rem 0 1rem}
.outcome-card[hidden]{display:none!important}
@media(max-width:600px){.outcome-search-label{max-width:100%}.outcome-search{font-size:16px}}

/* Android action-rail separation: the outcome portal is a distinct destination,
   not an overlay on the pilgrimage's collapsed entrance. The two controls
   occupy separate vertical bands, retain 48px targets and remain source-bound. */
@media(max-width:600px){
 .world .outcome-open{
  bottom:calc(.8rem + env(safe-area-inset-bottom,0px));
  left:auto;right:.8rem;transform:none;
  max-width:min(17rem,calc(100% - 1.6rem));
  min-height:48px;z-index:15;
 }
 .world .pilgrimage:not(.pilgrimage-open){
  bottom:calc(8rem + env(safe-area-inset-bottom,0px));
  z-index:16;
 }
}
