/* Chooser-only polish. Existing illustrated cards and their controllers remain owned
   by batch26-library-ambience.css and hub-library.js. Static, no new motion. */
html body #hub-chooser {
  --hub-ink:#223d35;--hub-muted:#314b41;--hub-silver:#355145;
  color-scheme:light;
  width:100vw;max-width:none;height:100dvh;max-height:100dvh;
  margin:0;padding:32px clamp(24px,7vw,104px);
  border:0;border-radius:0;
  /* The illustration belongs to ::backdrop exactly once. A transparent dialog
     avoids a second, differently cropped tree/gateway and keeps one horizon. */
  background:transparent;
  color:#223d35;
  box-shadow:none;
  scrollbar-color:#8a9167 #ede6cd;
  isolation:isolate;
  overscroll-behavior:contain;
}
html body #hub-chooser[open] {display:flex;flex-direction:column;align-items:center;justify-content:safe center;gap:0}
html body #hub-chooser>* {flex-shrink:0}
html body #hub-chooser::backdrop {
  background:linear-gradient(#172c3512,#172a3526),url('./chooser-journey-r69.webp') center/cover no-repeat;
  backdrop-filter:none;
}
html body #hub-chooser .hub-chooser-heading {
  position:relative;
  max-width:740px;
  margin:0 auto 25px;
  padding:12px 8px 15px;
  border-radius:24px;
  background:radial-gradient(ellipse closest-side,#fff6e6eb 40%,#fff6e6a3 78%,#fff6e600 100%);
  text-shadow:0 1px 2px #fff8e6;
}
html body #hub-chooser .hub-kicker {color:#355145;letter-spacing:.2em}
html body #hub-chooser h2 {
  margin:0 0 13px;
  color:#223d35;
  font:400 clamp(30px,3.25vw,42px)/1.15 Georgia,serif;
  letter-spacing:-.025em;
  text-wrap:balance;
}
html body #hub-chooser .hub-chooser-heading>p:not(.hub-kicker) {
  color:#314b41;
  max-width:565px;
  margin:0 auto;
  font:500 14px/1.65 system-ui,sans-serif;
  text-wrap:pretty;
}
html body #hub-chooser .hub-choices {width:100%;max-width:680px;margin-inline:auto;gap:22px}
html body #hub-chooser .hub-choice-r26 {box-shadow:0 10px 28px #172e364a,inset 0 0 0 1px #fff4d9}
html body #hub-chooser .hub-remember-choice {
  display:table;
  max-width:100%;
  margin:25px auto 0;
  padding:10px 17px;
  border:1px solid #e7d6a9;
  border-radius:22px;
  background:#fff7e7ed;
  color:#283f34;
  box-shadow:0 3px 12px #172e3624;
}
html body #hub-chooser .hub-remember-choice label {color:#283f34;min-height:24px;cursor:pointer}
html body #hub-chooser #hub-remember-choice {accent-color:#355a41}
html body #hub-chooser .hub-chooser-close {
  display:block;
  width:fit-content;
  margin:14px auto 0;
  padding:9px 17px;
  border:1px solid #e7d6a9;
  border-radius:20px;
  background:#fff7e7ed;
  color:#283f34;
  min-height:44px;
}
html body #hub-chooser :is(button,input):focus-visible {outline:3px solid #244d37;outline-offset:4px}
@media(max-width:600px), (max-height:500px) and (min-width:601px) {
  html body #hub-chooser {
    width:100vw;max-height:100dvh;
    padding:max(24px,env(safe-area-inset-top)) max(18px,env(safe-area-inset-right)) max(24px,env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left));
  }
  html body #hub-chooser .hub-chooser-heading {margin-bottom:22px;padding:10px 12px;max-width:390px}
  html body #hub-chooser h2 {font-size:31px}
  html body #hub-chooser .hub-kicker {font-size:9px;letter-spacing:.16em}
  html body #hub-chooser .hub-chooser-heading>p:not(.hub-kicker) {font-size:13px;line-height:1.6}
  html body #hub-chooser .hub-choices {gap:16px;max-width:390px}
  html body #hub-chooser .hub-choice-r26 {
    display:grid!important;grid-template-columns:42% minmax(0,1fr);
    min-height:208px;width:100%;max-width:none;border-radius:19px;
  }
  html body #hub-chooser .hub-choice-scene-r26 {position:relative;inset:auto;min-height:208px;height:100%;width:100%}
  html body #hub-chooser .hub-choice-r26-full .hub-choice-image-r26 {top:0;height:100%;object-position:50% 50%}
  html body #hub-chooser .hub-choice-r26 .hub-choice-copy {
    min-height:208px;padding:15px 13px!important;gap:9px;align-items:stretch;justify-content:center;text-align:left;
    background:#eed1a5;
  }
  html body #hub-chooser .hub-choice-r26-youth .hub-choice-copy {background:#f4edc9}
  html body #hub-chooser .hub-choice-r26 .hub-choice-copy h3 {
    position:static!important;width:auto!important;height:auto!important;margin:0!important;padding:0!important;
    clip:auto!important;clip-path:none!important;overflow:visible!important;white-space:normal!important;
    font:600 19px/1.2 Georgia,serif;color:inherit;
  }
  html body #hub-chooser .hub-choice-r26 .hub-choice-copy p {font-size:12px;line-height:1.5;min-height:0;max-width:none}
  html body #hub-chooser .hub-choice-enter-r26 {font-size:16px;min-height:46px;padding:9px 8px;width:100%;max-width:none;margin-top:3px}
  html body #hub-chooser .hub-choice-r26-youth .hub-choice-enter-r26 {font-size:12px;border-radius:11px}
  html body #hub-chooser .hub-choice-r26-full .hub-choice-enter-r26 {font:600 14px/1.3 Georgia,serif}
  html body #hub-chooser .hub-choice-title-r26 {display:none}
  html body #hub-chooser .hub-remember-choice {margin-top:20px}
}
@media(max-height:500px) and (min-width:601px) {
  html body #hub-chooser {padding:12px 24px!important;width:100vw;max-height:100dvh!important}
  html body #hub-chooser .hub-chooser-heading {margin-bottom:12px;padding:6px 18px;width:min(740px,100%);max-width:740px}
  html body #hub-chooser .hub-kicker {margin-bottom:4px}
  html body #hub-chooser .hub-chooser-heading>p:not(.hub-kicker) {font-size:12px;line-height:1.5}
  /* Short landscape uses compact art + copy beside one another in each card.
     Full portrait art fits its own slot, never covered by a copy overlay. */
  html body #hub-chooser .hub-choices {margin:0 auto!important;max-width:740px;gap:16px!important}
  html body #hub-chooser .hub-choice-r26 {min-height:196px!important}
  html body #hub-chooser .hub-choice-scene-r26 {
    min-height:196px;height:100%;
  }
  html body #hub-chooser .hub-choice-r26 .hub-choice-copy {min-height:196px!important}
  html body #hub-chooser .hub-choice-r26-full .hub-choice-image-r26 {
    top:0;bottom:auto;height:100%;object-fit:cover;object-position:50% 50%;
  }
  html body #hub-chooser .hub-remember-choice {margin-top:12px;padding:6px 16px}
}
@media(prefers-contrast:more),(prefers-reduced-transparency:reduce) {
  html body #hub-chooser .hub-chooser-heading {background:#fff5e1;border:1px solid #55704b}
  html body #hub-chooser :is(.hub-remember-choice,.hub-chooser-close) {background:#fff5e1}
}
@media(forced-colors:active) {
  html body #hub-chooser .hub-choice-r26 {min-height:0!important}
  html body #hub-chooser {background:Canvas;color:CanvasText;border:1px solid CanvasText;box-shadow:none}
  html body #hub-chooser::backdrop {background:Canvas}
  html body #hub-chooser :is(.hub-chooser-heading,.hub-remember-choice,.hub-chooser-close) {background:Canvas;color:CanvasText;box-shadow:none;text-shadow:none}
  html body #hub-chooser :is(h2,.hub-kicker,label,.hub-chooser-heading>p:not(.hub-kicker)) {color:CanvasText;text-shadow:none}
  html body #hub-chooser :is(button,input):focus-visible {outline-color:Highlight}
}
