/* Semantic design tokens: the single source for X Marks visual decisions.
   Keep concepts (surface, content, accent) here, not individual page colors.
   The rendering layer reads these values through CSS; no JS theme fork. */
:root{
  color-scheme:light;
  --font-body:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --color-canvas:#f8f5ed;
  --color-surface:#fffdf8;
  --color-surface-muted:#f2f2ec;
  --color-surface-soft:#f1f4ef;
  --color-content:#202937;
  --color-content-muted:#6b7280;
  --color-content-soft:#56616f;
  --color-primary:#274556;
  --color-primary-hover:#162e3e;
  --color-primary-contrast:#ffffff;
  --color-accent:#f9bd69;
  --color-accent-ink:#a86b37;
  --color-border:#e7e4da;
  --color-control-border:#d4d7d8;
  --color-success:#2f7057;
  --color-danger:#9f3b43;
  --color-focus:#397d87;
  --color-selected:#deebee;
  --color-selected-border:#9cc0c5;
  --color-primary-muted:#d4e0e5;
  --color-surface-warm:#eee9da;
  --color-danger-border:#ddbcbf;
  --color-focus-soft:#83b6bc;
  --color-avatar-surface:#e7eef0;
  --color-clue-surface:#f7f0e3;
  --color-clue-border:#e8d6bc;
  --color-clue-accent:#be8c56;
  --color-clue-ink:#805d33;
  --color-map-surface:#b0d6d9;
  --color-map-ocean:#acd5da;
  --color-map-ocean-bright:#c4e2e9;
  --color-map-land:#e8d5ab;
  --color-map-land-bright:#f1e7c9;
  --color-map-land-minimal:#dce7d8;
  --color-map-coast:#6e9a98;
  --color-map-park:#c9dec1;
  --color-map-water:#acd5da;
  --color-map-building:#d9cbb5;
  --color-map-road:#fcfaf3;
  --color-map-road-border:#c7b7a3;
  --color-map-path:#97785b;
  --color-map-label:#354b52;
  --color-map-link:#cd7441;
  --color-map-preview:#be5e22;
  --color-map-approximate:#b07a39;
  --color-map-objective:#b56430;
  --color-map-objective-fill:#e9ae6b;
  --color-map-completed:#277451;
  --color-map-completed-fill:#4fa17b;
  --color-warning-surface:#f2ede1;
  --color-warning-ink:#856642;
  --color-success-surface:#e4f4eb;
  --color-info-surface:#e9f0f6;
  --color-info-ink:#28455b;
  --color-error-surface:#f9e5e6;
  --color-error-ink:#8d2735;
  --space-1:4px;
  --space-2:8px;
  --space-3:12px;
  --space-4:16px;
  --space-5:20px;
  --space-6:24px;
  --space-7:28px;
  --space-8:32px;
  --radius-control:10px;
  --radius-button:11px;
  --radius-panel:20px;
  --radius-card:18px;
  --radius-pill:999px;
  --border-subtle:1px solid var(--color-border);
  --shadow-panel:0 5px 20px #253b4a05;
  --touch-target:44px;
  --content-max:1060px;
  --motion-fast:160ms;
  /* Preserve established public tokens while the rest of the app migrates. */
  --bg:var(--color-canvas);
  --panel:var(--color-surface);
  --ink:var(--color-content);
  --sub:var(--color-content-muted);
  --primary:var(--color-primary);
  --gold:var(--color-accent);
  --line:var(--color-border);
  --red:var(--color-danger);
  --green:var(--color-success);
  --focus:var(--color-focus);
}

/* Layout and components. All colors and shared scales come from theme.css.
   This is the only stylesheet defining X Marks components. */
*{box-sizing:border-box}
body{margin:0;min-height:100vh;display:flex;flex-direction:column}
a{color:var(--primary)}
.topbar{height:76px;display:flex;align-items:center;justify-content:space-between;padding:0 max(22px,calc((100vw - 1060px)/2))}
.brand{text-decoration:none;color:var(--primary);font-size:24px;font-weight:800;letter-spacing:-1px;display:flex;gap:12px;align-items:center}
.brand em{font-weight:400;font-style:normal}
.topbar nav{display:flex;align-items:center;gap:14px}
.topbar nav a{text-decoration:none;font-size:14px;font-weight:650}
.signed-in{font-size:13px;color:var(--sub)}
main{width:min(1060px,calc(100% - 36px));margin:0 auto;flex:1;padding-bottom:90px}
footer{border-top:1px solid var(--line);color:var(--sub);text-align:center;font-size:12px;padding:24px}
footer span{margin:0 8px}
.hero{padding:58px 0 32px;max-width:810px}
.eyebrow{font-size:11px;font-weight:800;letter-spacing:2px;color:var(--color-accent-ink);text-transform:uppercase}
h1,h2,h3{letter-spacing:-.04em;line-height:1.17}
h1{font-size:clamp(38px,6.3vw,70px);max-width:740px;margin:10px 0 12px}
h2{font-size:25px;margin:2px 0 12px}
h3{font-size:18px;margin:0 0 8px}
.hero>p:not(.eyebrow){font-size:19px;color:var(--sub);max-width:650px}
.panel{margin:14px 0}
.panel p{line-height:1.55}
.split,.two-col{display:grid;grid-template-columns:1.1fr .9fr;gap:20px}
.lead{background:var(--primary);color:var(--color-primary-contrast)}
.lead p{color:var(--color-primary-muted)}
.section{margin:38px 0}
.section-title{display:flex;justify-content:space-between;align-items:center}
.section-title>span{background:var(--color-surface-warm);padding:5px 13px;border-radius:50px}
.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(245px,1fr));gap:14px}
.experience-card{text-decoration:none;min-height:180px;display:flex;flex-direction:column;justify-content:space-between}
.experience-card .mark{font-size:30px;font-weight:900}
.experience-card>span:last-child{font-size:13px;font-weight:700}
.experience-meta{display:flex;justify-content:space-between;color:var(--sub);margin-bottom:20px}
.experience-meta a{font-size:14px}
.button,button{display:inline-flex;align-items:center;justify-content:center;font-family:inherit;font-size:14px;font-weight:700;cursor:pointer;padding:12px 20px;text-decoration:none}
form{display:flex;flex-direction:column;margin-top:18px;align-items:flex-start}
form.inline{display:inline-flex;margin:0}
.inline button{min-height:34px;padding:7px 12px;font-size:12px;border-radius:8px}
.danger button{color:var(--red);background:transparent;border-color:var(--color-danger-border)}
label{display:flex;flex-direction:column;gap:7px;font-size:13px;font-weight:680;width:100%}
input,select{background:var(--color-primary-contrast);border:1px solid var(--color-control-border);border-radius:10px;padding:12px 14px;font-size:15px;font-family:inherit;min-height:46px;max-width:100%;color:var(--ink)}
input:focus,select:focus{outline:2px solid var(--color-focus-soft);outline-offset:1px}
.muted{color:var(--sub)!important;font-size:13px}
.notice{padding:14px;font-size:14px;line-height:1.45}
.auth,.invite{max-width:620px}
.prompt{border-top:1px solid var(--line);padding:16px 0;display:flex;gap:12px;align-items:center;justify-content:space-between}
.prompt h3{font-size:16px;margin:2px 0}
.prompt p{margin:0;max-width:275px}
.prompt form{flex:0 0 auto}
.status{display:inline-flex;padding:5px 8px;font-size:11px;font-weight:700}
.person{display:flex;align-items:center;gap:10px;padding:8px 0;border-bottom:1px solid var(--line);font-size:14px}
.avatar{width:32px;height:32px;display:grid;place-items:center;border-radius:50%;background:var(--color-avatar-surface);color:var(--primary);font-weight:800}
.clue{background:var(--color-clue-surface);border-color:var(--color-clue-border)}
.clue-reveal{padding:21px;border:2px dashed var(--color-clue-accent);border-radius:12px;color:var(--color-clue-ink);font-weight:750;font-size:18px}
.share-url{overflow-wrap:anywhere;padding:16px;background:var(--color-surface-muted);border-radius:10px}
.invite{border-top:5px solid var(--gold)}
@media(max-width:720px){
  .brand{font-size:19px}
  .brand em{display:none}
  .signed-in{display:none}
  .split,.two-col{display:block}
  .experience-meta{font-size:13px}
  .prompt{align-items:flex-start}
}
.context-tabs{display:flex;margin:1rem 0 1.5rem;overflow-x:auto}
.context-tabs a{padding:.7rem 1rem;text-decoration:none;white-space:nowrap}
.context-tabs a.selected{font-weight:700;background:var(--color-selected);text-decoration:underline}
.context-back{margin:.5rem 0 1rem}
.context-body{max-width:820px}
.context-body .cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:.8rem}
textarea{box-sizing:border-box;width:100%;max-width:100%;padding:.7rem;font:inherit}
.map-layout{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(230px,1fr);gap:18px;align-items:start}
.map-surface{min-width:0}
#world-map{height:min(67vh,620px);min-height:360px;position:relative;z-index:0;border-radius:18px;overflow:hidden;background:var(--color-map-surface);border:1px solid var(--line)}
.map-side .cards{display:grid;grid-template-columns:1fr;gap:9px;max-height:590px;overflow:auto}
.map-side .experience-card{display:grid;gap:6px}
.map-side small{font-size:12px;color:var(--sub)}
.map-controls{display:flex;align-items:end;flex-wrap:wrap;gap:12px;margin:12px 0}
.map-controls label{flex:1;min-width:130px}
.map-controls button{max-width:200px}
.map-help{margin:.4rem 0 .8rem;color:var(--sub);font-size:13px}
#placement-form{margin-top:12px}
#placement-form .coordinate-pair{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media(max-width:820px){
  .map-layout{grid-template-columns:1fr}
  #world-map{height:57vh;min-height:310px}
  .map-side .cards{max-height:none}
}
.context-tabs a{display:inline-flex;align-items:center}
.context-tabs a[aria-current="page"]{background:var(--color-selected);border-color:var(--color-selected-border)}
button:disabled{opacity:.5;cursor:not-allowed}
.panel ul{padding-left:1.2rem;line-height:1.7}
.panel .person{flex-wrap:wrap}
@media(max-width:720px){
  .topbar{height:auto;min-height:72px;flex-wrap:wrap;gap:7px;padding:11px 14px}
  .topbar nav{width:100%;gap:5px;justify-content:space-between;flex-wrap:wrap}
  .topbar nav a{font-size:13px;padding:9px 5px;min-height:42px;display:flex;align-items:center}
  .topbar nav form.inline{margin:0}
  .topbar nav .inline button{min-height:44px;padding:8px 10px}
  main{width:calc(100% - 24px);padding-bottom:48px}
  .hero{padding:22px 0 12px}
  h1{font-size:clamp(30px,9vw,44px);overflow-wrap:break-word}
  .context-tabs{gap:7px;margin:10px 0 18px;scrollbar-width:thin}
  .context-tabs a{padding:11px 14px}
  .context-body{max-width:100%;min-width:0}
  .experience-card{min-height:130px}
  form{max-width:100%;width:100%}
  form.inline{width:auto}
  input,select,textarea{width:100%;max-width:100%}
  .prompt{flex-wrap:wrap;gap:9px}
  .prompt p{max-width:none}
  .prompt form{align-self:auto}
  .inline button,.danger button{min-height:44px}
  .map-controls button{min-height:46px}
  #world-map{min-height:310px}
}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{scroll-behavior:auto!important;transition:none!important}
}
.party-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:16px 0}
.party-stats>div{display:flex;flex-direction:column;align-items:center;gap:3px;padding:15px 8px}
.party-stats strong{font-size:28px;letter-spacing:-.06em}
.party-stats small{font-size:12px;color:var(--sub);text-align:center}
.party-shortcuts{display:flex;gap:9px;flex-wrap:wrap;margin:18px 0}
.party-shortcuts a{display:inline-flex;align-items:center;padding:12px 15px;min-height:44px;border:1px solid var(--color-selected-border);text-decoration:none;font-weight:750;font-size:13px}
.panel .party-stats+h3,.panel .party-shortcuts+h3,.panel .cards+h3{margin-top:22px}
.decision-question{font-weight:750;font-size:20px;color:var(--ink)!important}
.decision-option{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 0;border-top:1px solid var(--line)}
.decision-option p{margin:4px 0 0}
.decision-option form{width:auto}
.conversation-message{border-top:1px solid var(--line);padding:14px 0}
.conversation-message p{white-space:pre-wrap;overflow-wrap:anywhere;margin:6px 0 0}
.message-head{display:flex;gap:8px;align-items:baseline;flex-wrap:wrap}
.message-head small{color:var(--sub);font-size:11px}
@media(max-width:480px){
  .party-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .party-shortcuts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .party-shortcuts a{justify-content:center;text-align:center}
  .decision-option{align-items:flex-start}
  .decision-option form{flex:none}
}
body{font-family:var(--font-body);background:var(--color-canvas);color:var(--color-content)}
main{max-width:var(--content-max)}
.topbar{border-bottom:var(--border-subtle)}
.topbar nav a{color:var(--color-primary)}
.panel{background:var(--color-surface);color:var(--color-content);border:var(--border-subtle);border-radius:var(--radius-panel);padding:var(--space-6);box-shadow:var(--shadow-panel)}
.panel p{color:var(--color-content-soft)}
.hero .eyebrow{color:var(--color-accent-ink)}
.experience-card{border:var(--border-subtle);border-radius:var(--radius-card);background:var(--color-surface);color:var(--color-content);padding:var(--space-6);transition:box-shadow var(--motion-fast),transform var(--motion-fast),border-color var(--motion-fast)}
.experience-card .mark{color:var(--color-accent-ink)}
.experience-card>span:last-child{color:var(--color-content-muted)}
@media(hover:hover){
  .experience-card:hover{border-color:var(--color-selected-border);box-shadow:var(--shadow-panel);transform:translateY(-2px)}
}
.button,button{color:var(--color-primary-contrast);background:var(--color-primary);border:1px solid var(--color-primary);border-radius:var(--radius-button);min-height:var(--touch-target);transition:background var(--motion-fast),border-color var(--motion-fast)}
.button:hover,button:hover{background:var(--color-primary-hover)}
input,select,textarea{border:1px solid var(--color-control-border);border-radius:var(--radius-control);background:var(--color-surface);color:var(--color-content)}
form{gap:var(--space-4)}
form.inline button{min-height:var(--touch-target)}
:where(a,button,input,select,textarea):focus-visible{outline:3px solid var(--color-focus);outline-offset:2px}
.context-tabs{gap:var(--space-2)}
.context-tabs a{min-height:var(--touch-target);border:var(--border-subtle);border-radius:var(--radius-control);color:var(--color-primary);background:var(--color-surface)}
.context-tabs a.selected,.context-tabs a[aria-current="page"]{background:var(--color-selected);border-color:var(--color-selected-border);text-decoration:none;font-weight:750}
.notice{background:var(--color-info-surface);color:var(--color-info-ink);border-radius:var(--radius-control)}
.notice.error{background:var(--color-error-surface);color:var(--color-error-ink)}
.notice.success{background:var(--color-success-surface);color:var(--color-success)}
.status{border-radius:var(--radius-pill);background:var(--color-warning-surface);color:var(--color-warning-ink)}
.status.success{background:var(--color-success-surface);color:var(--color-success)}
.prompt,.person,.conversation-message,.decision-option{border-color:var(--color-border)}
.party-stats>div{background:var(--color-surface-soft);border-radius:var(--radius-control)}
.party-stats strong{color:var(--color-primary)}
.party-stats small,.message-head small{color:var(--color-content-muted)}
.party-shortcuts a{border-color:var(--color-selected-border);border-radius:var(--radius-button);background:var(--color-surface-soft);color:var(--color-primary)}
:where(a,button,input,select,textarea){touch-action:manipulation}
@media(max-width:720px){
  .panel{padding:var(--space-4);border-radius:var(--radius-card)}
  .experience-card{padding:var(--space-4)}
}
@media(prefers-reduced-motion:reduce){
  .experience-card,.button,button{transition:none}
  .experience-card:hover{transform:none}
}


/* Living geographic world: the same accepted events drive explorer and editor. */
.world-page{width:calc(100vw - 32px);max-width:1700px;position:relative;left:50%;transform:translateX(-50%);padding-bottom:32px}
.world-heading{display:flex;align-items:end;justify-content:space-between;gap:20px;padding:16px 8px 22px}
.world-heading h1{font-size:clamp(28px,4.5vw,46px);margin:3px 0 7px}
.world-heading p{color:var(--sub);margin:0}
.world-heading-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.world-heading-actions a{font-size:13px;font-weight:700;text-decoration:none;padding:10px 14px;background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-button)}
.world-heading-actions button{padding:10px 14px}
.world-stage{position:relative;background:var(--color-map-surface);border-radius:var(--radius-panel);overflow:hidden;min-height:430px;border:1px solid var(--color-border);box-shadow:var(--shadow-panel)}
#world-map{width:100%;height:min(68dvh,730px);min-height:430px;border:0;border-radius:0;background:var(--color-map-surface)}
.world-map-fallback{display:grid;place-items:center;padding:32px;text-align:center;font-weight:700}
.world-map-actions{position:absolute;top:16px;left:16px;display:flex;align-items:end;gap:9px;flex-wrap:wrap;pointer-events:none;max-width:min(95%,750px)}
.world-map-actions>label,.world-time{pointer-events:auto;background:var(--color-surface);padding:8px 12px;border:1px solid var(--color-border);border-radius:var(--radius-control);box-shadow:var(--shadow-panel)}
.world-map-actions label{display:flex;flex-direction:column;gap:3px;font-size:11px;font-weight:700;width:auto}
.world-map-actions select,.world-map-actions input{min-height:34px;padding:6px 8px;font-size:12px;border:1px solid var(--color-control-border)}
.world-time{display:flex;gap:8px}
.world-map-note{position:absolute;left:14px;bottom:14px;max-width:65%;padding:9px 13px;border-radius:var(--radius-control);background:var(--color-surface);color:var(--color-content-soft);font-size:12px;box-shadow:var(--shadow-panel);pointer-events:none}
.world-lower{display:grid;grid-template-columns:minmax(320px,1fr) minmax(330px,1.2fr);gap:20px;align-items:start;margin-top:20px}
.world-controls,.world-nearby{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-card);padding:24px;min-width:0}
.world-controls h2,.world-nearby h2{font-size:21px}
.world-controls form{width:100%}
.world-style-controls{display:flex;flex-wrap:wrap;gap:8px;align-items:end;margin:16px 0}
.world-style-controls>label{flex:1;min-width:120px}
.world-style-controls button{flex:none}
.world-style-controls [hidden]{display:none!important}
.world-toolbox{border-top:1px solid var(--color-border);margin-top:18px;padding-top:17px}
.world-toolbox>label{margin:12px 0}
.world-modes{display:flex;flex-wrap:wrap;gap:8px}
.world-modes button{min-height:42px;padding:9px 12px;font-size:13px}
.world-modes button[data-draw]{background:var(--color-surface-soft);color:var(--color-primary)}
.world-fold{margin-top:17px;border-top:1px solid var(--color-border);padding-top:14px}
.world-fold summary{font-weight:750;font-size:15px;cursor:pointer;min-height:38px}
.world-fold .coordinate-pair{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.world-selection{background:var(--color-surface-soft);border:1px solid var(--color-selected-border);border-radius:var(--radius-card);padding:18px;margin:14px 0;display:flex;gap:12px;flex-wrap:wrap;align-items:center}
.world-selection[hidden]{display:none!important}
.world-selection h3{width:100%;margin:0}
.world-selection p{margin:0;flex:1;min-width:140px;font-size:13px;color:var(--color-content-muted)}
.world-selection .button,.world-selection button{padding:8px 12px;min-height:40px;font-size:13px}
.world-nearby .cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px}
.world-nearby .experience-card{min-height:100px;gap:8px;padding:16px}
.world-nearby .experience-card small{font-size:12px;color:var(--color-content-muted)}
.maplibregl-popup-content{border-radius:var(--radius-card);font-family:var(--font-body);box-shadow:var(--shadow-panel)}
@media(max-width:720px){
  .world-page{width:calc(100vw - 10px)}
  .world-heading{padding:12px 10px 16px;display:block}
  .world-heading h1{font-size:30px}
  .world-heading p{font-size:13px}
  .world-heading-actions{margin-top:14px;gap:8px}
  .world-stage{border-radius:14px;min-height:400px}
  #world-map{height:60dvh;min-height:400px}
  .world-map-actions{left:10px;top:10px;max-width:calc(100% - 18px)}
  .world-map-actions .world-time{display:none}
  .world-map-note{font-size:11px;max-width:70%;bottom:8px;left:8px}
  .world-lower{grid-template-columns:1fr;gap:10px;margin-top:12px}
  .world-controls,.world-nearby{padding:18px 14px}
  .world-heading-actions a{padding:8px 11px}
  .world-nearby .experience-card{min-height:85px}
}

/* The world is a playable surface first. The same controls and tokens are
   shared by player and creator; none of this owns a game result. */
.world-mode-switch{display:flex;justify-content:flex-end;gap:4px;margin:-7px 8px 16px}
.world-page .world-mode-switch[hidden]{display:none}
.world-mode-switch button{min-height:var(--touch-target);padding:9px 21px;border-radius:var(--radius-pill);border:var(--border-subtle);background:var(--color-surface);color:var(--color-primary)}
.world-mode-switch button[aria-pressed="true"]{background:var(--color-primary);border-color:var(--color-primary);color:var(--color-primary-contrast)}
.world-journey{border:var(--border-subtle);border-radius:var(--radius-panel);background:var(--color-surface);padding:18px 22px 16px;margin:0 0 16px;box-shadow:var(--shadow-panel)}
.world-journey[hidden],.world-controls[hidden]{display:none!important}
.world-journey-summary{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:11px}
.world-journey-summary .eyebrow{font-size:10px}
.world-journey-summary h2{font-size:clamp(18px,2vw,24px);margin:4px 0 0}
.world-journey-summary strong{white-space:nowrap;font-size:13px;color:var(--color-success)}
.world-progress-rail{height:8px;overflow:hidden;border-radius:var(--radius-pill);background:var(--color-surface-muted)}
#world-progress-fill{display:block;width:0;height:100%;border-radius:inherit;background:var(--color-success);transition:width 420ms ease-out}
.world-steps{display:flex;gap:8px;margin-top:14px;overflow-x:auto;padding:1px 1px 5px;scroll-snap-type:x proximity}
.world-step{flex:1 0 168px;max-width:280px;min-width:150px;display:flex;gap:10px;align-items:center;padding:11px;text-align:left;background:var(--color-surface-soft);color:var(--color-content);border:1px solid var(--color-border);border-radius:var(--radius-control);min-height:62px;scroll-snap-align:start}
.world-step.is-ready{background:var(--color-selected);border-color:var(--color-selected-border)}
.world-step.is-complete{background:var(--color-success-surface);border-color:var(--color-success)}
.world-step.is-locked{color:var(--color-content-muted);background:var(--color-surface-muted);opacity:.8}
.world-step-number{display:grid;place-items:center;flex:0 0 30px;height:30px;background:var(--color-surface);border:1px solid var(--color-border);border-radius:50%;font-size:12px;font-weight:800}
.world-step.is-complete .world-step-number{background:var(--color-success);color:var(--color-primary-contrast);border-color:var(--color-success)}
.world-step-text{min-width:0;display:grid;gap:3px}
.world-step-text strong{font-size:13px;line-height:1.25;overflow:hidden;text-overflow:ellipsis}
.world-step-text small{font-size:11px;color:var(--color-content-muted)}
.world-map-actions>button{pointer-events:auto;align-self:start;min-height:var(--touch-target);font-weight:750;border:1px solid var(--color-border);border-radius:var(--radius-control);background:var(--color-primary);color:var(--color-primary-contrast);box-shadow:var(--shadow-panel);padding:10px 14px}
.world-stage .world-selection{position:absolute;right:16px;bottom:16px;z-index:3;display:flex;flex-direction:column;align-items:stretch;gap:10px;width:min(410px,calc(100% - 32px));max-height:min(68%,520px);overflow-y:auto;padding:19px;background:var(--color-surface);border:1px solid var(--color-selected-border);border-radius:var(--radius-panel);box-shadow:0 12px 40px #20293729}
.world-stage .world-selection[hidden]{display:none!important}
.world-stage .world-selection h3{font-size:21px;margin:0;line-height:1.2;max-width:calc(100% - 30px)}
.world-stage .world-selection p{font-size:14px;line-height:1.5;min-width:0;color:var(--color-content-soft)}
.world-stage .world-selection .world-challenge-prompt{color:var(--color-content);font-weight:600}
.world-stage .world-selection-status{font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--color-success)}
.world-stage .world-selection .button,.world-stage .world-selection button{min-height:var(--touch-target);width:100%;text-align:center}
.world-stage .world-selection-close{position:absolute;right:12px;top:12px;width:36px!important;min-height:36px!important;padding:3px 8px!important;font-size:20px;background:var(--color-surface-muted);color:var(--color-content)}
.world-stage .world-selection .world-location-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.world-stage .world-selection .world-answer{display:flex;gap:8px;flex-wrap:wrap}
.world-stage .world-selection .world-answer input{min-width:100px;flex:1}
.world-stage .world-selection .world-answer button{flex:0 0 auto;width:auto}
.world-stage .world-selection .world-location-help{font-size:12px;color:var(--color-content-muted)}
.world-lower:has(.world-controls[hidden]){grid-template-columns:1fr}
.world-lower:has(.world-controls[hidden]) .world-nearby{padding:18px 22px}
@media(max-width:720px){
  .world-mode-switch{margin:0 10px 12px;justify-content:stretch}
  .world-mode-switch button{flex:1}
  .world-journey{padding:15px 12px;margin:0 5px 10px}
  .world-journey-summary{align-items:start}
  .world-journey-summary h2{font-size:19px}
  .world-journey-summary strong{font-size:11px;margin-top:4px}
  .world-steps{margin-top:11px}
  .world-step{flex:0 0 185px;min-width:165px}
  .world-map-actions{gap:6px}
  .world-map-actions>button{min-height:40px;padding:8px 12px}
  .world-stage .world-selection{bottom:8px;right:8px;width:calc(100% - 16px);max-height:49%;padding:13px 15px;gap:7px;border-radius:var(--radius-card)}
  .world-stage .world-selection h3{font-size:18px}
  .world-stage .world-selection p{font-size:12px}
  .world-stage .world-selection .world-location-actions{grid-template-columns:1fr 1fr}
  .world-map-note{max-width:80%;bottom:10px}
  .world-stage:has(.world-selection:not([hidden])) .world-map-note{display:none}
}
@media(prefers-reduced-motion:reduce){
  #world-progress-fill{transition:none}
  .world-steps{scroll-behavior:auto}
}

/* Build stays in the same world. There is still one creator form and one
   authoritative set of actions: this is a movable view, not another editor. */
.world-stage .world-controls-floating{position:absolute;z-index:4;top:68px;right:14px;width:min(410px,calc(100% - 28px));max-height:calc(100% - 82px);overflow-y:auto;overscroll-behavior:contain;background:var(--color-surface);box-shadow:0 12px 40px #20293729}
.world-lower:has(> .world-nearby:only-child){grid-template-columns:minmax(0,1fr)}
.world-stage:has(.world-controls-floating:not([hidden])) .world-selection{right:auto;left:14px;width:min(340px,calc(100% - 440px))}
@media(max-width:900px){
  .world-stage:has(.world-controls-floating:not([hidden])) .world-selection{left:8px;right:8px;bottom:8px;width:calc(100% - 16px);max-height:35%}
  .world-stage .world-controls-floating{top:59px;right:8px;width:calc(100% - 16px);max-height:48%;padding:16px}
}

/* World surface: one map, intentional tools, one active sheet. Legacy
   event pages retain the shared components above this section. */
body:has(.world-page){overflow:hidden;background:var(--color-map-ocean)}
body:has(.world-page)>main{width:100%;max-width:none;padding:0;margin:0}
body:has(.world-page)>footer{display:none}
body:has(.world-page)>.topbar{
  position:fixed;inset:0 0 auto;z-index:25;height:66px;min-height:0;
  display:flex;align-items:center;flex-wrap:nowrap;justify-content:space-between;
  padding:0 20px;gap:16px;border-bottom:1px solid var(--color-border);
  background:var(--color-surface);box-shadow:0 2px 14px #1b35451a
}
body:has(.world-page)>.topbar .brand{font-size:20px;white-space:nowrap}
body:has(.world-page)>.topbar nav{display:flex;width:auto;flex-wrap:nowrap;gap:14px}
body:has(.world-page)>.topbar nav a{white-space:nowrap}
#world-nav-toggle{display:none}
.world-page{position:fixed;inset:0;left:0;transform:none;width:100%;height:100dvh;max-width:none;padding:0;margin:0;overflow:hidden}
.world-page .world-stage{position:absolute;inset:0;height:100dvh;min-height:0;border:0;border-radius:0;box-shadow:none;background:var(--color-map-ocean)}
.world-page #world-map{position:absolute;inset:0;width:100%;height:100dvh;min-height:0;border:0;border-radius:0;background:var(--color-map-ocean)}
.world-earth-preview{position:absolute;inset:4% 0 0;width:100%;height:92%;z-index:1;pointer-events:none}
.world-map-fallback .world-earth-preview{pointer-events:auto}
.world-page .world-heading{
  position:fixed;top:82px;left:16px;z-index:4;width:fit-content;max-width:min(320px,calc(100vw - 32px));
  display:block;margin:0;padding:8px 12px;border:1px solid var(--color-border);
  border-radius:var(--radius-button);background:var(--color-surface);box-shadow:var(--shadow-panel)
}
.world-page .world-heading .eyebrow,.world-page .world-heading p,.world-page .world-heading-actions{display:none}
.world-page .world-heading h1{margin:0;font-size:17px;line-height:1.3}
.world-toolbar{
  position:fixed;top:82px;right:16px;z-index:15;display:flex;align-items:center;gap:8px;
  max-width:calc(100vw - 32px)
}
#world-add-challenge[hidden],.scene-palette .scene-action[hidden]{display:none}
.world-toolbar button{
  min-height:44px;padding:9px 13px;border:1px solid var(--color-border);
  border-radius:var(--radius-pill);background:var(--color-surface);
  color:var(--color-primary);box-shadow:var(--shadow-panel);white-space:nowrap
}
.world-toolbar #world-create-here{background:var(--color-primary);color:var(--color-primary-contrast);border-color:var(--color-primary)}
.world-toolbar .world-join-action{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 13px;white-space:nowrap;border-radius:var(--radius-pill);box-shadow:var(--shadow-panel);font-size:13px;text-decoration:none}
.world-page .world-stage .world-map-actions{
  display:none;position:fixed;left:auto;right:16px;top:138px;z-index:15;
  width:min(270px,calc(100vw - 32px));max-width:none;align-items:stretch;
  padding:12px;gap:8px;background:var(--color-surface);
  border:1px solid var(--color-border);border-radius:var(--radius-panel);box-shadow:var(--shadow-panel);
  pointer-events:auto
}
.world-page.is-layers-open .world-stage .world-map-actions{display:flex}
.world-page .world-stage .world-map-actions>label{width:100%;background:transparent;border:0;box-shadow:none;padding:0}
.world-page .world-stage .world-map-actions .world-time{display:flex;box-shadow:none;padding:0;border:0}
.world-page .world-stage .world-map-actions select{min-height:40px;font-size:14px}
.world-page .world-lower{display:contents;pointer-events:none}
.world-page .world-lower>.world-nearby{
  display:none;position:fixed;top:332px;right:16px;z-index:15;
  width:min(320px,calc(100vw - 32px));max-height:30dvh;overflow:auto;
  margin:0;padding:12px 14px;border-radius:var(--radius-panel);pointer-events:auto
}
.world-page.is-layers-open .world-lower>.world-nearby:not([hidden]){display:block}
.world-page .world-lower>.world-nearby h2{font-size:16px;margin:0 0 6px}
.world-page .world-lower>.world-nearby .cards{display:grid;grid-template-columns:1fr;gap:5px}
.world-page .world-lower>.world-nearby .experience-card{min-height:52px;padding:9px}
.world-page .world-lower>.world-nearby .experience-card small{font-size:11px}
.world-page .world-controls,
.world-page .world-stage .world-controls-floating{
  position:fixed;top:138px;right:16px;bottom:auto;left:auto;z-index:17;
  display:block;width:min(400px,calc(100vw - 32px));max-height:calc(100dvh - 156px);
  overflow-y:auto;overscroll-behavior:contain;margin:0;padding:18px 20px;
  background:var(--color-surface);border:1px solid var(--color-border);
  border-radius:var(--radius-panel);box-shadow:0 15px 48px #18314030;
  pointer-events:auto
}
.world-page .world-controls[hidden]{display:none!important}
.world-page .world-controls h2{font-size:21px;margin:0 34px 12px 0}
.world-page .world-controls .world-panel-close{position:sticky;top:-16px;float:right;z-index:1}
.world-page .world-controls form{margin-top:12px;gap:12px}
.world-page .world-map-settings{margin:0;border:0;padding:0}
.world-page .world-map-settings summary{font-size:13px;color:var(--color-content-muted);padding:8px 0;cursor:pointer}
.world-page .world-map-settings .world-style-controls{margin:8px 0}
.world-page .world-fold{margin-top:12px;padding-top:12px}
.world-page .world-toolbox{margin-top:12px;padding-top:12px}
.world-page .world-map-note{
  position:fixed;bottom:16px;left:16px;z-index:12;max-width:min(320px,calc(100vw - 32px));
  margin:0;padding:9px 12px;font-size:12px;line-height:1.4;
  color:var(--color-content);border:1px solid var(--color-border);
  border-radius:var(--radius-button);background:var(--color-surface);box-shadow:var(--shadow-panel);
  opacity:0;transition:opacity 200ms;pointer-events:none
}
.world-page .world-map-note.is-active{opacity:1}
.world-page .world-mode-switch{
  position:fixed;top:auto;bottom:18px;left:16px;right:auto;z-index:12;
  display:flex;gap:5px;margin:0
}
.world-page .world-journey{
  position:fixed;left:16px;bottom:20px;z-index:8;width:min(610px,calc(100vw - 32px));
  margin:0;padding:12px 16px;background:var(--color-surface);
  border:1px solid var(--color-border);box-shadow:var(--shadow-panel)
}
.world-page .world-stage .world-selection{
  position:fixed;left:auto;right:16px;bottom:20px;z-index:16;
  width:min(420px,calc(100vw - 32px));max-height:min(70dvh,620px);
  background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-panel)
}
.world-page .world-possibilities{position:fixed;bottom:66px;right:16px;z-index:17;width:min(350px,calc(100vw - 32px));max-height:min(46dvh,450px);overflow:auto;padding:14px;border:1px solid var(--color-border);border-radius:var(--radius-panel);background:var(--color-surface);box-shadow:var(--shadow-panel)}
.world-page .world-possibilities h2{font-size:17px;margin:0 0 8px}
.world-page .world-possibilities .panel{margin:0;padding:10px}
.world-page .world-possibilities .panel h2{font-size:15px}
.world-home-panel,.world-focus-panel{
  position:fixed;left:16px;top:138px;right:auto;bottom:16px;z-index:18;
  width:min(405px,calc(100vw - 32px));max-height:calc(100dvh - 154px);
  overflow:auto;overscroll-behavior:contain;padding:16px;
  background:var(--color-surface);border:1px solid var(--color-border);
  border-radius:var(--radius-panel);box-shadow:0 18px 60px #20293732
}
.world-focus-panel{left:auto;right:16px;width:min(470px,calc(100vw - 32px))}
.world-home-panel[hidden],.world-focus-panel[hidden],.world-nearby[hidden]{display:none!important}
.world-home-panel .hero{padding:0;margin:0 0 10px}
.world-home-panel .hero h1{font-size:23px;margin:0}
.world-home-panel .panel,.world-home-panel .section{padding:12px;margin:10px 0}
.world-home-panel .experience-card{min-height:60px}
.home-journey-section{padding:10px 0 14px;border-bottom:1px solid var(--color-border)}
.home-journey-section>h2{font-size:17px;margin:3px 0 8px}
.home-journey-section>p{font-size:13px;line-height:1.5}
.home-experience-list{display:grid;gap:8px}
.home-experience-card{padding:11px;border:1px solid var(--color-border);
  border-radius:var(--radius-control);background:var(--color-surface-soft)}
.home-experience-name{display:block;font-weight:750;color:var(--color-content);
  font-size:15px;line-height:1.4;min-height:24px}
.home-experience-card nav{display:flex;flex-wrap:wrap;gap:12px;margin-top:5px;font-size:12px}
.home-experience-card nav a{min-height:32px;display:inline-flex;align-items:center}
.home-journey-section:target{scroll-margin-top:16px}
.world-focus-header{display:flex;gap:8px;align-items:center;justify-content:space-between;position:sticky;top:-16px;margin:-16px -16px 12px;padding:12px 16px;z-index:2;background:var(--color-surface);border-bottom:1px solid var(--color-border)}
.world-focus-header h2{font-size:18px;margin:0}
.world-focus-header button{width:auto;min-height:44px;padding:7px 10px}
.world-focus-content .section,.world-focus-content .panel{margin:10px 0;padding:12px}
.world-focus-content .context-body{display:block}
.world-focus-content .context-tabs{display:flex;overflow-x:auto;gap:6px}
.world-focus-content .context-tabs a{white-space:nowrap}
.world-focus-content .section-title h2{font-size:20px}
.world-focus-content form{max-width:100%}
.world-panel-close{position:sticky;top:0;float:right;z-index:3;min-width:36px;width:36px;min-height:36px;padding:4px;border-radius:50%;background:var(--color-surface-muted);color:var(--color-primary);border:1px solid var(--color-border);font-size:19px}
.world-connection-hint{display:flex;align-items:center;gap:7px;padding:8px 12px;border-radius:var(--radius-control);background:var(--color-selected);color:var(--color-content);font-size:12px;font-weight:650}
.world-stage .world-selection .world-connect-action{background:var(--color-map-link);border-color:var(--color-map-link)}
.world-stage .world-selection .world-next-action{background:var(--color-primary)}
.world-map-context{position:fixed;bottom:16px;left:16px;z-index:12;max-width:370px;pointer-events:none}
.world-map-context:not([hidden]){pointer-events:auto}
.world-map-context .world-connection-hint{box-shadow:var(--shadow-panel)}

@media(max-width:720px){
  body:has(.world-page)>.topbar{
    height:58px;min-height:58px;max-height:58px;
    padding:0 13px;gap:8px;flex-wrap:nowrap
  }
  body:has(.world-page)>.topbar .brand{font-size:19px;letter-spacing:-.6px}
  body:has(.world-page)>.topbar .brand em{display:none}
  body:has(.world-page)>.topbar #world-nav-toggle{
    display:inline-flex;align-items:center;gap:5px;min-height:40px;
    padding:6px 11px;border-radius:var(--radius-pill);
    background:var(--color-surface-soft);color:var(--color-primary);
    border:1px solid var(--color-border);font-size:13px
  }
  body:has(.world-page)>.topbar nav{
    display:none;position:absolute;right:9px;top:62px;z-index:26;
    width:min(230px,calc(100vw - 18px));max-height:70dvh;overflow:auto;
    flex-direction:column;align-items:stretch;gap:0;
    padding:8px;background:var(--color-surface);
    border:1px solid var(--color-border);border-radius:var(--radius-panel);
    box-shadow:0 14px 38px #18314030
  }
  body:has(.world-page)>.topbar.is-nav-open nav{display:flex}
  body:has(.world-page)>.topbar nav a{min-height:44px;padding:11px 10px;font-size:14px}
  body:has(.world-page)>.topbar nav form.inline{display:flex;width:100%;margin:4px 0 0}
  body:has(.world-page)>.topbar nav .inline button{width:100%}
  .world-page .world-heading{display:none}
  .world-page[data-has-context="true"] .world-heading{display:block;top:125px;left:10px;max-width:min(320px,calc(100vw - 20px));pointer-events:none}
  .world-toolbar{top:70px;left:10px;right:10px;justify-content:space-between;gap:6px;max-width:none}
  .world-toolbar button{min-height:42px;padding:8px 13px;font-size:13px}
  .world-toolbar #map-locate{min-width:42px;padding:7px;font-size:22px;line-height:1}
  .world-toolbar #world-create-here{
    position:fixed;top:auto;bottom:calc(16px + env(safe-area-inset-bottom));
    right:12px;z-index:14;min-height:52px;padding:10px 21px;font-size:15px;
    border-radius:var(--radius-pill);box-shadow:0 6px 22px #18314033
  }
  .world-page .world-stage .world-map-actions{
    top:124px;right:10px;left:auto;width:min(258px,calc(100vw - 20px));
    max-width:none;max-height:54dvh;overflow:auto
  }
  .world-page .world-lower>.world-nearby{top:325px;right:10px;width:min(290px,calc(100vw - 20px));max-height:30dvh}
  .world-page .world-controls,
  .world-page .world-stage .world-controls-floating{
    position:fixed;top:auto;bottom:0;left:0;right:0;z-index:19;
    width:100%;max-width:none;max-height:min(57dvh,550px);height:auto;
    margin:0;padding:13px 16px calc(18px + env(safe-area-inset-bottom));
    border-radius:22px 22px 0 0;border-bottom:0;overflow-y:auto;
    box-shadow:0 -10px 32px #18314028
  }
  .world-page .world-controls h2{font-size:20px;margin-bottom:8px}
  .world-page .world-controls form{margin-top:10px;gap:10px}
  .world-page .world-controls .world-style-controls{flex-wrap:wrap}
  .world-page .world-controls input,.world-page .world-controls textarea,
  .world-page .world-controls select{font-size:16px}
  .world-home-panel,.world-focus-panel{
    top:auto;bottom:0;left:0;right:0;width:100%;height:auto;
    max-height:58dvh;padding:14px 16px calc(18px + env(safe-area-inset-bottom));
    border-radius:22px 22px 0 0;border-bottom:0
  }
  .world-focus-header{top:-14px;margin:-14px -16px 12px;padding:10px 16px}
  .world-home-panel .hero{padding:0}
  .world-home-panel .hero h1{font-size:20px}
  .world-page .world-journey{
    bottom:calc(10px + env(safe-area-inset-bottom));
    left:10px;width:calc(100vw - 20px);padding:10px 12px
  }
  .world-page .world-journey-summary h2{font-size:16px}
  .world-page .world-journey-summary strong{font-size:12px}
  .world-page .world-steps{margin-top:8px}
  .world-page .world-step{min-height:52px;flex:0 0 166px}
  .world-page .world-stage .world-selection{
    left:0;right:0;bottom:0;width:100%;max-height:55dvh;
    padding:14px 16px calc(18px + env(safe-area-inset-bottom));
    border-radius:22px 22px 0 0;border-bottom:0
  }
  .world-page:has(.world-stage .world-selection:not([hidden])) .world-journey{display:none}
  .world-page:has(.world-controls:not([hidden])) .world-journey{display:none}
  .world-page .world-mode-switch{
    top:auto;bottom:calc(16px + env(safe-area-inset-bottom));
    left:12px;right:auto;margin:0;gap:5px
  }
  .world-page:has(.world-controls:not([hidden])) .world-mode-switch{display:none}
  .world-page .world-mode-switch button{padding:8px 13px;min-height:44px;font-size:13px}
  .world-page .world-map-note{bottom:85px;left:10px;max-width:min(300px,calc(100vw - 20px))}
  .world-page .world-earth-preview{inset:2% 0 0;height:96%}
  .world-page .maplibregl-ctrl-bottom-right{bottom:72px;right:5px}
  .world-map-context{left:10px;bottom:83px;max-width:calc(100vw - 20px)}
}
@media(prefers-reduced-motion:reduce){.world-page .world-map-note{transition:none}}

/* The illustrated lens is a presentation of the authorized adventure, not a
   second map, game or persistent scene. Palette is scoped to this experience. */
.world-page .world-lens-switch{
  position:fixed;top:137px;left:16px;z-index:13;display:flex;gap:4px;
  border:1px solid var(--color-border);border-radius:var(--radius-pill);
  padding:4px;background:var(--color-surface);box-shadow:var(--shadow-panel)
}
.world-page .world-lens-switch[hidden]{display:none!important}
.world-lens-switch button{
  min-height:40px;padding:7px 15px;border:0;border-radius:var(--radius-pill);
  background:transparent;color:var(--color-primary);font-size:13px;font-weight:750
}
.world-lens-switch button[aria-pressed="true"]{
  background:var(--color-primary);color:var(--color-primary-contrast)
}
.world-page #world-map.world-map-under-illustration{visibility:hidden}
.world-page .world-illustrated-scene{
  --scene-sky:#91d5cf;--scene-light:#fff2b8;--scene-ground:#72b39c;
  --scene-ground-dark:#306f65;--scene-ink:#203d42;--scene-station:#fffbed;
  --scene-border:#365b58;--scene-glow:#ffc866;--scene-motif:"✦";
  position:absolute;inset:0;z-index:2;overflow-y:auto;overscroll-behavior:contain;
  background:linear-gradient(180deg,var(--scene-sky) 0%,var(--scene-sky) 63%,var(--scene-ground) 64%,var(--scene-ground-dark) 100%);
  color:var(--scene-ink)
}
.world-page .world-illustrated-scene[hidden]{display:none!important}
.world-illustrated-scene[data-theme="winter"]{
  --scene-sky:#3a6789;--scene-light:#faf6d9;--scene-ground:#f0f5ed;
  --scene-ground-dark:#aacad3;--scene-ink:#1f3e59;--scene-station:#f8fbff;
  --scene-border:#607a97;--scene-glow:#f2cf75;--scene-motif:"❄"
}
.world-illustrated-scene[data-theme="haunted"]{
  --scene-sky:#393554;--scene-light:#ffca72;--scene-ground:#60604e;
  --scene-ground-dark:#273f39;--scene-ink:#402d43;--scene-station:#fff4df;
  --scene-border:#805c86;--scene-glow:#f6a447;--scene-motif:"✧"
}
.world-illustrated-scene[data-theme="treasure"]{
  --scene-sky:#58bbc3;--scene-light:#ffde9c;--scene-ground:#e6d296;
  --scene-ground-dark:#629c7f;--scene-ink:#315048;--scene-station:#fff5d7;
  --scene-border:#896e45;--scene-glow:#ffd262;--scene-motif:"✦"
}
.world-illustrated-sky{position:absolute;inset:0;overflow:hidden;pointer-events:none}
.world-illustrated-sky::before{
  content:var(--scene-motif) "    " var(--scene-motif) "        " var(--scene-motif) "       " var(--scene-motif);
  position:absolute;left:4%;top:19%;width:95%;font-size:clamp(18px,3vw,38px);
  letter-spacing:clamp(9px,4vw,70px);color:var(--scene-light);opacity:.7;
  transform:rotate(-7deg)
}
.world-illustrated-orb{
  position:absolute;right:13%;top:17%;width:clamp(70px,12vw,145px);aspect-ratio:1;
  border-radius:50%;background:var(--scene-light);
  box-shadow:0 0 0 18px #fff8,0 0 80px 45px var(--scene-glow)
}
.world-illustrated-hills{
  position:absolute;left:-10%;right:-12%;bottom:12%;height:31%;
  border-radius:54% 46% 0 0 / 58% 58% 0 0;
  background:var(--scene-ground);transform:rotate(-2deg);
  box-shadow:0 38px 0 38px var(--scene-ground-dark)
}
.world-illustrated-content{
  position:relative;z-index:1;margin:0 auto;max-width:1160px;
  padding:clamp(185px,22vh,260px) 24px 230px
}
.world-illustrated-intro{
  width:fit-content;max-width:min(500px,100%);padding:16px 23px;
  border:2px solid var(--scene-border);border-radius:25px;
  background:var(--scene-station);box-shadow:0 8px 0 #223c3a22,0 16px 34px #132a2e28;
  transform:rotate(-1deg)
}
.world-illustrated-intro .eyebrow{font-size:11px;letter-spacing:.17em}
.world-illustrated-intro h2{font-size:clamp(25px,4vw,45px);line-height:1.1;margin:8px 0}
.world-illustrated-intro p{font-size:14px;margin:0;color:var(--scene-ink)}
.world-illustrated-steps{
  display:flex;flex-wrap:wrap;align-items:center;justify-content:center;
  gap:clamp(18px,3.5vw,56px);margin:38px auto 0;padding:0 10px
}
.world-illustrated-station{
  position:relative;flex:1 1 180px;max-width:240px;min-width:162px;
  min-height:155px;padding:15px 14px 20px;border:2px solid var(--scene-border);
  border-radius:28px 28px 18px 18px;background:var(--scene-station);
  box-shadow:0 9px 0 #193a3d28,0 17px 28px #193a3d26;
  display:flex;flex-direction:column;align-items:center;gap:10px;
  color:var(--scene-ink);cursor:pointer;transition:transform .18s ease,box-shadow .18s ease
}
.world-illustrated-station:nth-child(2n){transform:translateY(26px) rotate(2deg)}
.world-illustrated-station:nth-child(2n+1){transform:rotate(-2deg)}
.world-illustrated-station:not([disabled]):hover,
.world-illustrated-station:not([disabled]):focus-visible{
  transform:translateY(-6px) scale(1.03);box-shadow:0 13px 0 #193a3d28,0 20px 38px #193a3d44
}
.world-illustrated-station[disabled]{cursor:default;opacity:.65;filter:saturate(.6)}
.world-illustrated-station[data-status="complete"]{border-color:var(--color-success)}
.world-illustrated-station[data-status="ready"]{outline:4px solid var(--scene-glow);outline-offset:2px}
.world-illustrated-object{
  display:grid;place-items:center;min-width:66px;min-height:66px;padding:8px;
  border-radius:22px;background:var(--scene-glow);font-size:40px;font-weight:850;
  box-shadow:inset 0 -6px 0 #212e2a21;border:2px solid var(--scene-border)
}
.world-illustrated-station[data-status="complete"] .world-illustrated-object{
  background:var(--color-success-surface);color:var(--color-success)
}
.world-illustrated-station-text{display:flex;flex-direction:column;gap:4px;align-items:center;text-align:center}
.world-illustrated-station-text strong{font-size:15px;line-height:1.25}
.world-illustrated-station-text small{font-size:11px;text-transform:uppercase;letter-spacing:.12em;font-weight:750}
.world-illustrated-empty{padding:18px 24px;background:var(--scene-station);border-radius:20px;color:var(--scene-ink)}
.world-page:has(.world-illustrated-scene:not([hidden])) .world-map-note,
.world-page:has(.world-illustrated-scene:not([hidden])) .maplibregl-ctrl{display:none!important}
.world-page .world-look-settings{margin:8px 0 12px;border-top:1px solid var(--color-border);padding-top:9px}
.world-look-settings summary{cursor:pointer;font-size:13px;font-weight:700;color:var(--color-content)}
.world-look-settings label{display:flex;flex-direction:column;gap:6px}
@media(max-width:720px){
 .world-page .world-lens-switch{top:121px;left:10px;right:10px;justify-content:center}
 .world-lens-switch button{flex:1;min-height:43px;padding:9px 7px;font-size:13px}
 .world-illustrated-content{padding:183px 15px 210px}
 .world-illustrated-intro{padding:13px 16px}
 .world-illustrated-intro h2{font-size:26px}
 .world-illustrated-steps{gap:15px;margin:24px auto 0}
 .world-illustrated-station{max-width:none;min-width:124px;flex:1 1 130px;min-height:145px}
 .world-illustrated-station:nth-child(n){transform:none}
 .world-illustrated-object{font-size:31px;min-width:53px;min-height:53px}
 .world-illustrated-orb{top:22%;right:8%;opacity:.55}
}
@media(prefers-reduced-motion:reduce){.world-illustrated-station{transition:none}}

@media(max-width:720px){.world-toolbar #world-place-here{padding:8px 9px;font-size:12px}}

/* The illustrated embodiment is a spatial environment, not a station grid.
   Existing theme tokens and the same selection sheet remain in force. */
.world-illustrated-scene{overflow:hidden;isolation:isolate}
.world-illustrated-content{
  position:absolute;inset:0;z-index:1;max-width:none;margin:0;padding:0
}
.world-illustrated-intro{
  position:absolute;top:172px;left:18px;z-index:4;pointer-events:none;
  max-width:min(310px,calc(100vw - 36px));padding:11px 15px;border-width:1px;
  border-radius:16px;transform:none
}
.world-illustrated-intro .eyebrow{font-size:10px}
.world-illustrated-intro h2{font-size:clamp(18px,2.3vw,28px);margin:3px 0}
.world-illustrated-intro p{font-size:12px;line-height:1.3}
.world-illustrated-steps{
  position:absolute;inset:0;margin:0;padding:0;
  display:block;width:100%;max-width:none
}
/* One room-scale entrance into the same authorized event world. */
.world-page[data-personal="true"] .world-heading{display:none}
.world-page[data-personal="true"] #map-locate,
.world-page[data-personal="true"] #world-place-here,
.world-page[data-personal="true"] .world-mode-switch{display:none!important}
.world-page[data-personal="true"] .world-lens-switch{top:80px;left:16px;right:auto}
.world-page[data-personal="true"] .world-illustrated-intro{top:141px;left:16px}
.scene-personal-entrance{cursor:pointer;touch-action:manipulation;outline:none}
.scene-personal-entrance:focus-visible{filter:drop-shadow(0 0 3px var(--scene-glow))}
.scene-personal-avatar{pointer-events:none;filter:drop-shadow(0 1px 1px #16383e55)}
.scene-move-pad{position:absolute;bottom:16px;left:16px;z-index:8;display:grid;
  grid-template-columns:repeat(3,48px);gap:7px;align-items:center;
  padding:8px;border-radius:19px;background:var(--scene-station);
  border:1px solid var(--scene-border);box-shadow:var(--shadow-panel)}
.scene-move-pad[hidden]{display:none!important}
.scene-move-key{min-height:44px;min-width:44px;border-radius:12px;
  padding:6px;border:1px solid var(--scene-border);
  background:var(--color-surface-soft);color:var(--scene-ink);font-size:22px;font-weight:800}
.scene-move-key:nth-child(1){grid-column:2}
.scene-move-key:nth-child(2){grid-column:1;grid-row:2}
.scene-move-key:nth-child(3){grid-column:2;grid-row:2}
.scene-move-key:nth-child(4){grid-column:3;grid-row:2}
.scene-turn-key{grid-row:3;font-size:23px;touch-action:manipulation}
.scene-turn-key:nth-child(5){grid-column:1}
.scene-turn-key:nth-child(6){grid-column:3}
.scene-turn-key[hidden]{display:none!important}
.scene-move-more{grid-column:span 3;min-height:40px;border-radius:12px;
  border:1px solid var(--scene-border);background:var(--color-surface);
  color:var(--scene-ink);font-weight:700;font-size:12px}
.scene-move-more[aria-pressed="true"]{background:var(--scene-glow)}
.scene-plan-link[hidden]{display:none!important}
.scene-plan-link{background:var(--color-surface);color:var(--color-content);
  border-color:var(--color-border)}
.world-page[data-personal="true"] .scene-unplaced{top:187px;left:16px;right:16px;bottom:auto;
  max-width:min(580px,calc(100vw - 32px));align-items:center}
.world-page[data-personal="true"] .scene-personal-progress{white-space:nowrap;font-size:12px;
  padding:9px 11px;background:var(--scene-station);border-radius:10px;
  color:var(--scene-ink);border:1px solid var(--scene-border);margin:0}
.world-page[data-personal="true"] .scene-status{bottom:16px;left:auto;right:16px}
@media(max-width:720px){
  .world-page[data-personal="true"] .world-lens-switch{top:115px;left:10px;right:10px}
  .world-page[data-personal="true"] .world-illustrated-intro{top:164px;left:10px}
  .world-page[data-personal="true"] .scene-status{display:none}
  .world-page[data-personal="true"] .scene-status.is-error,
  .world-page[data-personal="true"] .scene-status.is-preview{
    display:block;bottom:calc(200px + env(safe-area-inset-bottom));
    right:8px;left:auto;max-width:min(170px,43vw);
    border:2px solid var(--color-border);font-size:12px;line-height:1.3;
    padding:10px 12px;box-shadow:var(--shadow-panel)
  }
}
.scene-workspace{position:absolute;inset:0;overflow:hidden;touch-action:pan-y}
.scene-workspace>svg{display:block;width:100%;height:100%;touch-action:none;user-select:none}
.scene-art-object{cursor:pointer;touch-action:none;outline:none}
.scene-art-object.selected>g:first-child{filter:drop-shadow(0 0 10px #f5db88)}
.scene-art-object:focus-visible{filter:drop-shadow(0 0 9px #fff)}
.scene-palette{
  position:absolute;right:16px;top:173px;z-index:5;width:min(181px,36vw);
  display:flex;flex-direction:column;gap:5px;max-height:48dvh;
  padding:9px;border:1px solid var(--scene-border);
  border-radius:18px;background:var(--scene-station);overflow:auto;
  box-shadow:0 8px 24px #1d302e32;overscroll-behavior:contain
}
.scene-palette[hidden]{display:none!important}
.scene-palette .scene-action{
  border:1px solid var(--scene-border);border-radius:11px;
  background:var(--color-surface);color:var(--scene-ink);
  padding:7px 10px;min-height:37px;text-align:left;
  font-size:12px;line-height:1.25;white-space:normal
}
.scene-palette .scene-action:hover{background:var(--scene-glow)}
.scene-status{
  position:absolute;left:16px;bottom:12px;z-index:5;pointer-events:none;
  max-width:min(420px,calc(100vw - 32px));font-size:12px;line-height:1.4;
  color:var(--scene-ink);background:var(--scene-station);
  padding:8px 11px;border-radius:12px;box-shadow:0 5px 20px #173b3340
}
.scene-unplaced{
  position:absolute;left:18px;right:210px;bottom:54px;z-index:4;
  display:flex;gap:10px;overflow-x:auto;padding:8px;overscroll-behavior:contain
}
.scene-unplaced .world-illustrated-station{
  flex:0 0 139px;min-width:139px;min-height:106px;
  padding:9px 10px 12px;gap:5px;transform:none!important;border-radius:16px
}
.scene-unplaced .world-illustrated-object{
  min-height:32px;min-width:32px;font-size:21px;padding:3px;border-radius:10px
}
.scene-unplaced .world-illustrated-station-text strong{font-size:11px}
.scene-unplaced .world-illustrated-station-text small{font-size:10px}
.scene-inspector{
  position:absolute;right:212px;top:180px;z-index:7;width:min(300px,42vw);
  max-height:55dvh;overflow-y:auto;overscroll-behavior:contain;
  padding:12px 14px;border:1px solid var(--scene-border);
  border-radius:18px;background:var(--scene-station);color:var(--scene-ink);
  box-shadow:0 10px 36px #203a3d36
}
.scene-inspector[hidden]{display:none!important}
.scene-conflict-note{border:1px solid var(--color-control-border);border-radius:12px;
  background:var(--color-surface-muted);padding:10px;display:grid;gap:7px}
.scene-conflict-note p{margin:0;font-size:12px;line-height:1.4}
.scene-conflict-note button{min-height:40px}
.scene-inspector h3{margin:0 0 8px;font-size:17px}
.scene-edit-form{display:flex;flex-direction:column;gap:8px}
.scene-field{display:flex;flex-direction:column;gap:3px;font-size:11px;font-weight:700}
.scene-field[hidden]{display:none!important}
.scene-field input,.scene-field select{
  min-height:35px;max-width:100%;padding:6px 8px;font-size:14px;
  color:var(--color-content);background:var(--color-surface);
  border-radius:9px;border:1px solid var(--color-border)
}
.scene-field:has([type=hidden]){display:none}
.scene-field:has([type=checkbox]){flex-direction:row;align-items:center;gap:8px;min-height:36px}
.scene-field input[type=checkbox]{min-height:22px;width:22px;margin:0}
.scene-object-position,.scene-object-help{font-size:11px;line-height:1.35;margin:3px 0}
.scene-edit-actions{display:flex;gap:7px}
.scene-edit-actions button{min-height:40px;font-size:12px;padding:8px;border-radius:10px}
.world-illustrated-scene[data-theme=winter] .scene-workspace>svg{
  filter:saturate(.85) brightness(1.04)
}
.world-illustrated-scene[data-theme=haunted] .scene-workspace>svg{
  filter:hue-rotate(52deg) saturate(.67) brightness(.75)
}
.world-illustrated-scene[data-theme=treasure] .scene-workspace>svg{
  filter:sepia(.19) saturate(1.24)
}
@media(max-width:720px){
  .world-illustrated-content{padding:0}
  .world-illustrated-intro{
    top:172px;left:10px;max-width:190px;padding:9px 12px;
    border-radius:13px
  }
  .world-illustrated-intro h2{font-size:18px}
  .world-illustrated-intro p{font-size:10px}
  .scene-palette .scene-action{
    flex:0 0 auto;min-height:43px;padding:8px 11px;font-size:12px;white-space:nowrap
  }
  .scene-inspector{
    top:auto;left:0;right:0;bottom:0;width:100%;max-height:52dvh;
    padding:14px 16px calc(20px + env(safe-area-inset-bottom));
    border-radius:22px 22px 0 0;z-index:17
  }
  .world-page:has(.world-illustrated-scene:not([hidden])) .world-journey{display:none}
}

.scene-inspector-close{position:absolute;top:7px;right:7px;border:1px solid var(--scene-border);border-radius:50%;width:36px;height:36px;padding:0;font-size:21px;background:var(--scene-station);color:var(--scene-ink)}
.scene-inspector{position:absolute}

/* A gathering is one usable phone journey; its plan, people and decisions
   share ordinary components and the existing theme tokens. */
.gathering-hub{display:grid;gap:12px}
.gathering-hub section{min-width:0;scroll-margin-top:82px}
.gathering-hub section>.panel{margin:8px 0}
.gathering-hub-links{display:flex;gap:7px;flex-wrap:wrap;position:sticky;top:0;
  z-index:3;padding:8px 0;background:var(--color-surface)}
.gathering-hub-links a{padding:9px 12px;border:1px solid var(--color-border);
  border-radius:var(--radius-pill);text-decoration:none;font-size:12px;font-weight:750}
.gathering-hub .decision-option{gap:12px;align-items:center}
.gathering-choice-actions{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.gathering-choice-actions form{margin:0}
.gathering-plan-tools{margin:12px 0;padding:12px;border:1px solid var(--color-border);
  border-radius:var(--radius-card);background:var(--color-surface)}
.gathering-plan-tools summary{cursor:pointer;font-weight:750;min-height:35px}
.gathering-proposal-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;
  width:100%}
.gathering-proposal{display:grid;gap:8px;padding:11px;border:1px solid var(--color-border);
  border-radius:var(--radius-card);min-width:0}
.gathering-coordinate-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.gathering-coordinate-pair input{width:100%;min-width:0;padding:10px 7px}
.gathering-pick-map{display:none}
body:has(#world-map) .gathering-pick-map{display:inline-flex}
.gathering-proposal-grid input{min-width:0;width:100%}
@media(max-width:720px){
  .gathering-proposal-grid{grid-template-columns:1fr}
  .gathering-hub-links{gap:5px}
  .gathering-hub-links a{padding:8px 9px}
  .gathering-coordinate-pair{grid-template-columns:1fr 1fr}
  .gathering-choice-actions button{padding:8px 12px}
}


/* Actual WebGL scene beneath existing contextual UI. Legacy SVG stays as a
   graceful fallback when WebGL2 is unavailable or ?classic is requested. */
.scene-three-canvas{position:absolute;inset:0;width:100%;height:100%;display:block;
  z-index:2;touch-action:none;outline:none}
.scene-three-canvas[hidden]{display:none!important}
/* The real scene, not an overlapping heading panel, is the personal entry. */
.world-page[data-personal="true"] .world-illustrated-scene:has(.scene-three-canvas) .world-illustrated-intro{display:none}
.world-page[data-personal="true"] .world-illustrated-scene:has(.scene-three-canvas) .scene-unplaced{
  top:167px;left:8px;right:8px;max-width:calc(100vw - 16px);align-items:start;
  pointer-events:none
}
.world-page[data-personal="true"] .world-illustrated-scene:has(.scene-three-canvas) .scene-unplaced>*{pointer-events:auto}
.scene-graphics-switch{position:absolute;right:12px;bottom:13px;z-index:9;
  border:1px solid var(--scene-border);background:var(--scene-station);
  border-radius:14px;padding:10px 13px;color:var(--scene-ink);font-size:11px;font-weight:700;
  box-shadow:var(--shadow-panel);min-height:40px}
@media(max-width:720px){
  .world-page[data-personal="true"] .scene-personal-progress{font-size:11px;
    border-radius:12px;white-space:normal;max-width:70vw}
}

/* A selection is a view of the same world, not a separate editor page. */
.scene-focus-actions{position:absolute;z-index:10;bottom:calc(76px + env(safe-area-inset-bottom));
  left:50%;transform:translateX(-50%);display:flex;align-items:center;justify-content:center;
  flex-wrap:wrap;gap:7px;padding:9px;max-width:min(680px,calc(100% - 20px));
  border:1px solid var(--scene-border);border-radius:16px;
  color:var(--scene-ink);background:var(--scene-station);
  box-shadow:var(--shadow-panel)}
.scene-focus-actions[hidden]{display:none!important}
.scene-focused-name{font-size:13px;max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.scene-focus-actions .scene-action{font-size:12px;padding:7px 11px;min-height:40px}
.scene-action-reason{flex-basis:100%;text-align:center;color:var(--color-content-muted);font-size:11px}
.scene-mechanism-state{padding:5px 8px;border-radius:var(--radius-pill);
  background:var(--color-surface-muted);font-size:11px;font-weight:750;text-transform:uppercase}
.scene-object-picker{position:absolute;z-index:10;top:12px;right:12px;display:grid;gap:3px;
  min-width:170px;padding:8px 10px;border:1px solid var(--scene-border);border-radius:12px;
  color:var(--scene-ink);background:var(--scene-station);box-shadow:var(--shadow-panel);
  font-size:10px;font-weight:750}
.scene-object-picker[hidden]{display:none!important}
.scene-object-picker select{min-height:35px;max-width:220px;border:1px solid var(--color-control-border);
  border-radius:9px;background:var(--color-surface);color:var(--color-content);padding:6px 8px}
.scene-mechanism-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;
  margin:4px 0;padding:9px;border:1px solid var(--color-border);border-radius:12px}
.scene-mechanism-fields[hidden]{display:none!important}
.scene-mechanism-fields legend{grid-column:1/-1;padding:0 4px;font-size:12px;font-weight:800}
.scene-mechanism-fields .scene-object-help{grid-column:1/-1}
.scene-recenter{position:absolute;right:10px;bottom:calc(202px + env(safe-area-inset-bottom));z-index:10;
  border:1px solid var(--scene-border);border-radius:12px;
  color:var(--scene-ink);background:var(--scene-station);padding:8px 11px;
  min-height:44px;box-shadow:var(--shadow-panel)}
.scene-recenter[hidden]{display:none!important}
@media(max-width:720px){
  .scene-mechanism-fields{grid-template-columns:1fr 1fr}
}

/* Player-first entry: keep the actual authorized 3D/SVG world in view, while
   retaining accessible map, account, invitations and creator controls. */
body:has(.world-page[data-personal="true"]) main{
  width:100%;max-width:none;padding-bottom:0
}
body:has(.world-page[data-personal="true"]) footer{display:none}
body:has(.world-page[data-personal="true"]) .topbar{
  position:absolute;top:0;left:0;right:0;z-index:30;
  height:60px;min-height:60px;display:flex;flex-wrap:nowrap;
  background:var(--color-surface);
  background:color-mix(in srgb,var(--color-surface) 86%,transparent);
  backdrop-filter:blur(16px);
  padding:0 16px;gap:14px
}
body:has(.world-page[data-personal="true"]) .topbar nav{
  width:auto;max-width:70vw;overflow-x:auto;flex-wrap:nowrap;
  gap:6px;scrollbar-width:thin
}
body:has(.world-page[data-personal="true"]) .topbar nav a{
  flex:none;white-space:nowrap;font-size:12px;min-height:40px
}
.world-page[data-personal="true"]{
  width:100%;max-width:none;padding:0;left:auto;transform:none
}
.world-page[data-personal="true"] .world-stage{
  height:100vh;height:100dvh;min-height:0;
  border:0;border-radius:0;box-shadow:none
}
.world-page[data-personal="true"] #world-map{
  height:100%;min-height:100%;border:0;border-radius:0
}
.world-page[data-personal="true"] .world-lens-switch{
  top:76px;left:14px;right:auto;
  border-color:color-mix(in srgb,var(--color-surface) 63%,transparent);
  background:var(--color-surface);
  background:color-mix(in srgb,var(--color-surface) 86%,transparent);
  backdrop-filter:blur(14px)
}
.world-page[data-personal="true"] .scene-graphics-switch,
.world-page[data-personal="true"] .scene-recenter,
.world-page[data-personal="true"] .scene-move-pad{
  background:var(--color-surface);
  background:color-mix(in srgb,var(--color-surface) 85%,transparent);
  backdrop-filter:blur(14px)
}
@media(max-width:720px){
  .world-page[data-personal="true"] .world-lens-switch{
    top:74px;left:8px;right:8px
  }
}


/* Inhabited entry: this is an invitation to act in the already accepted
   personal scene, not a second homepage or staged copy of the world. */
.world-arrival{
  position:absolute;top:170px;right:18px;z-index:14;
  width:min(348px,calc(100vw - 36px));max-height:calc(100dvh - 215px);
  overflow:auto;padding:17px 18px 18px;border-radius:23px;
  border:1px solid color-mix(in srgb,var(--color-border) 68%,transparent);
  background:color-mix(in srgb,var(--color-surface) 88%,transparent);
  color:var(--color-content);box-shadow:0 22px 70px #172d3938;
  backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px);
  animation:world-arrival-in .36s cubic-bezier(.18,.8,.2,1) both
}
.world-arrival[hidden],.world-arrival-reopen[hidden]{display:none!important}
.world-arrival-next{display:flex;gap:6px;margin:7px 0;overflow-x:auto;
  padding:2px 0 4px;overscroll-behavior-x:contain;scrollbar-width:thin}
.world-arrival-next:empty{display:none}
.world-arrival-entry{flex:none;min-height:38px;max-width:min(220px,62vw);
  padding:7px 10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  border-radius:11px;border:1px solid var(--color-border);
  background:var(--color-surface-soft);color:var(--color-content);
  font-size:12px;font-weight:700;text-decoration:none;cursor:pointer}
.world-arrival-memory{display:inline-flex;align-items:center;border-style:dashed}
.world-arrival-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.world-arrival-kicker{font-size:10px;font-weight:800;letter-spacing:.14em;color:var(--color-accent-ink)}
.world-arrival-top button{
  flex:none;min-width:38px;min-height:38px;padding:0;border-radius:50%;
  border:1px solid var(--color-border);background:var(--color-surface-soft);
  color:var(--color-content);font-size:20px
}
.world-arrival h2{font-size:25px;line-height:1.12;letter-spacing:-.035em;margin:11px 0 8px}
.world-arrival p{font-size:13px;line-height:1.5;color:var(--color-content-muted);margin:0 0 15px}
.world-arrival-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.world-arrival-actions button{
  min-height:44px;padding:9px 11px;border:1px solid var(--color-control-border);
  border-radius:12px;color:var(--color-primary);background:var(--color-surface-soft);
  font-size:12px;font-weight:750;text-align:center
}
.world-arrival-actions button:first-child{background:var(--color-primary);color:var(--color-primary-contrast);border-color:var(--color-primary)}
.world-arrival-actions button[hidden]{display:none!important}
.world-arrival-reopen{
  position:absolute;top:180px;right:18px;z-index:14;
  min-height:44px;padding:9px 15px;border-radius:var(--radius-pill);
  background:color-mix(in srgb,var(--color-surface) 88%,transparent);
  color:var(--color-primary);border:1px solid var(--color-border);
  backdrop-filter:blur(16px);box-shadow:var(--shadow-panel);font-size:13px;font-weight:750
}
.world-page[data-personal="false"] .world-arrival,
.world-page[data-personal="false"] .world-arrival-reopen{display:none!important}
.world-page:has(.world-home-panel:not([hidden])) .world-arrival,
.world-page:has(.world-focus-panel:not([hidden])) .world-arrival,
.world-page:has(.scene-inspector:not([hidden])) .world-arrival{display:none!important}
@keyframes world-arrival-in{
  from{opacity:0;transform:translateY(12px) scale(.985)}
  to{opacity:1;transform:translateY(0) scale(1)}
}
@media(max-width:720px){
  .world-arrival{top:210px;right:10px;width:min(290px,calc(100vw - 20px));
    max-height:calc(100dvh - 395px);padding:12px 13px 13px;border-radius:19px}
  .world-arrival h2{font-size:20px;margin:6px 0}
  .world-arrival p{font-size:12px;line-height:1.35;margin-bottom:8px}
  .world-arrival-actions{gap:5px}
  .world-arrival-actions button{min-height:42px;padding:6px;font-size:11px}
  .world-arrival-reopen{top:172px;right:10px}
}
@media(max-height:670px) and (max-width:720px){
  .world-arrival{top:185px;max-height:calc(100dvh - 367px)}
  .world-arrival-reopen{top:145px}
}
@media(prefers-reduced-motion:reduce){.world-arrival{animation:none}}

/* Lens navigation must remain tappable even when a narrow top toolbar has
   more actions than fit its row. This is a navigation surface, not decoration. */
.world-page[data-personal="true"] .world-lens-switch{z-index:17}

/* On a phone, orientation is a shallow edge rail. The avatar and entrance
   remain the dominant, directly tappable content at the center of the scene. */
@media(max-width:720px){
  .world-arrival{
    top:167px;left:10px;right:10px;width:auto;max-height:none;
    padding:9px 12px 11px;overflow:hidden;border-radius:17px
  }
  .world-arrival-top{
    position:absolute;top:7px;right:8px
  }
  .world-arrival-kicker{display:none}
  .world-arrival-top button{min-width:32px;min-height:32px;font-size:17px}
  .world-arrival h2{font-size:18px;line-height:1.1;margin:0 36px 5px 0}
  .world-arrival p{font-size:11px;line-height:1.3;max-height:30px;overflow:hidden;margin:0 0 8px}
  .world-arrival-actions{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none}
  .world-arrival-actions button{
    flex:none;min-height:38px;padding:7px 10px;white-space:nowrap;
    font-size:11px;border-radius:11px
  }
  .world-arrival-reopen{top:171px;right:10px}
}
@media(max-height:670px) and (max-width:720px){
  .world-arrival{top:162px;max-height:none}
  .world-arrival-reopen{top:161px}
}

/* A compact scene/Earth choice sits between the two existing personal-world
   actions. One navigation rail leaves the actual world visible on a phone. */
.world-lens-compact{display:none}
@media(max-width:720px){
  .world-page[data-personal="true"] .world-toolbar{
    top:70px;left:8px;right:8px;z-index:17;pointer-events:none
  }
  .world-page[data-personal="true"] .world-toolbar button{
    pointer-events:auto;min-height:42px;padding:8px 10px;font-size:12px
  }
  .world-page[data-personal="true"] .world-lens-switch{
    top:73px;left:102px;right:87px;z-index:16;
    padding:2px;gap:2px;min-width:0
  }
  .world-page[data-personal="true"] .world-lens-switch button{
    min-height:38px;padding:6px;font-size:12px
  }
  .world-page[data-personal="true"] .world-lens-full{display:none}
  .world-page[data-personal="true"] .world-lens-compact{display:inline}
  .world-page[data-personal="true"] .world-arrival{top:130px}
  .world-page[data-personal="true"] .world-arrival-reopen{top:130px}
}
@media(max-height:670px) and (max-width:720px){
  .world-page[data-personal="true"] .world-arrival{top:125px}
  .world-page[data-personal="true"] .world-arrival-reopen{top:125px}
}

.scene-connection-targets{position:absolute;inset:0;z-index:6;pointer-events:none}
.scene-connection-target{position:absolute;transform:translate(-50%,-50%);pointer-events:auto;
  min-width:44px;min-height:44px;padding:0 7px;border:2px solid var(--scene-station);
  border-radius:var(--radius-pill);background:var(--scene-ink);color:var(--scene-station);
  box-shadow:var(--shadow-panel);font-size:11px;font-weight:750;white-space:nowrap}
.scene-authored-cue{border-color:var(--scene-ink);background:var(--scene-station);
  color:var(--scene-ink);max-width:128px;overflow:hidden;text-overflow:ellipsis}
 .scene-authored-cue.is-pending{background:var(--scene-border);color:var(--scene-ink)}
.scene-authored-control{cursor:pointer;outline:none;touch-action:manipulation}
.scene-authored-control circle{fill:var(--scene-station);stroke:var(--scene-ink);stroke-width:2}
.scene-authored-control.is-pending circle{fill:var(--scene-border)}
.scene-authored-control text{font-weight:900;fill:var(--scene-ink)}
.scene-authored-control:focus-visible circle{stroke:var(--color-primary);stroke-width:4}
.scene-gathering-link{display:grid;place-items:center;text-decoration:none}
.scene-gathering-link[hidden]{display:none!important}
.scene-connection-editor{position:absolute;z-index:11;left:50%;transform:translateX(-50%);
  bottom:calc(76px + env(safe-area-inset-bottom));width:max-content;max-width:calc(100% - 16px);
  max-height:min(55vh,100% - 100px);overflow:auto;
  padding:10px 12px;border:1px solid var(--scene-border);border-radius:16px;
  background:var(--scene-station);color:var(--scene-ink);box-shadow:var(--shadow-panel)}
.scene-connection-editor[hidden],.scene-connection-targets[hidden],.scene-connection-target[hidden]{display:none}
.scene-authored-rows{display:grid;gap:8px;min-width:0;margin:0;padding:8px;border:1px solid var(--scene-border);border-radius:8px}
.scene-world-field[hidden],.scene-authored-rows[hidden],.scene-authored-rows button[hidden]{display:none}
.scene-authored-row{display:grid;gap:4px}
.scene-world-field{display:flex;gap:6px;align-items:end;min-width:0}
.scene-world-field .scene-field{flex:1;min-width:0}
.scene-world-field select{width:100%}
.scene-authored-rows button{justify-self:start}
.scene-workspace[data-picking] :is(.scene-inspector,.scene-connection-editor,.scene-dock){visibility:hidden}
.scene-world-pick{position:absolute;z-index:19;inset:auto 12px calc(12px + env(safe-area-inset-bottom));
  display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 10px;
  border-radius:12px;background:var(--scene-station);color:var(--scene-ink)}
.scene-world-pick[hidden]{display:none}
.scene-connection-actions{display:flex;flex-wrap:wrap;align-items:end;gap:6px}
.scene-connection-actions .scene-action{min-height:44px;padding:6px 10px;font-size:12px}
.scene-connection-actions input{width:80px;min-height:44px}
.scene-connection-note{margin:0 0 7px;font-size:12px}
.world-page:has(.scene-connection-editor:not([hidden])) #world-journey,
.world-page:has(.scene-connection-editor:not([hidden])) #world-mode-switch,
.scene-workspace:has(.scene-connection-editor:not([hidden])) :is(.scene-palette,.scene-move-pad,.scene-recenter,.scene-unplaced){
  display:none
}
.scene-connection-degrees{font-variant-numeric:tabular-nums;text-align:center}
span.scene-connection-target{display:grid;place-items:center;min-height:26px;pointer-events:none}
span.scene-connection-target[hidden]{display:none}
.scene-connection-actions .scene-field{width:auto;min-width:110px}
.scene-connection-actions .scene-field:has(input[type=range]){
  display:grid;grid-template-columns:minmax(100px,1fr) 42px;align-items:center
}
.scene-connection-actions input[type=range]{width:100%;grid-column:1;min-height:24px}
.scene-connection-actions output{grid-column:2;grid-row:2}
.scene-workspace:has(.scene-connection-editor:not([hidden])) .scene-status{display:none}

/* The room opens on the world. Precision controls remain available in Build
   and the room menu carries the existing account and geographic actions. */
body:has(.world-page :is([data-room="true"],[data-room-play="true"]):not([hidden])) .topbar{
  background:transparent;box-shadow:none;border:0;backdrop-filter:none;pointer-events:none
}
body:has(.world-page [data-room="true"]:not([hidden])) .topbar :is(nav,#world-nav-toggle),
body:has(.world-page[data-room-journey="true"]) .topbar :is(nav,#world-nav-toggle){display:none}
body:has(.world-page :is([data-room="true"],[data-room-play="true"]):not([hidden])) .topbar .brand{pointer-events:auto}
.world-page:has([data-room="true"]:not([hidden])) :is(.world-lens-switch,.world-toolbar,.world-journey),
.world-page[data-room-journey="true"]:has(#world-illustrated-scene:not([hidden])) :is(.world-heading,.world-lens-switch,.world-mode-switch,.world-journey,.world-illustrated-intro),
.world-page[data-room-journey="true"]:has(#world-illustrated-scene:not([hidden])) .world-toolbar > :not(#world-open-self),
[data-room="true"] .scene-personal-progress,
[data-room="true"] :is(.scene-recenter,.scene-move-more:not(.scene-plan-link),.scene-graphics-switch,.scene-status:not(.is-error):not(.is-preview)),
[data-room-play="true"] .scene-status:not(.is-error):not(.is-preview),
[data-room-play="true"] :is(.scene-recenter,.scene-move-more:not(.scene-gathering-link,.scene-build-toggle,.scene-sound-toggle),.scene-graphics-switch,.scene-focus-actions,.scene-object-picker,.scene-unplaced,.scene-palette),
[data-room="true"] .scene-workspace:not([data-building="true"]) :is(.scene-object-picker,.scene-unplaced){display:none}
[data-room="true"] .scene-workspace[data-building="true"] :is(.scene-build-toggle,.scene-graphics-switch){display:block}
[data-room="true"] .scene-workspace[data-building="true"] .scene-object-picker{top:122px}
[data-room="true"] .scene-workspace[data-building="true"] .scene-unplaced{top:200px}
.world-page:has([data-room="true"]:not([hidden])) .world-arrival-reopen{
  top:calc(62px + env(safe-area-inset-top));right:12px
}
.world-page:has([data-room="true"]:not([hidden])) .world-arrival{
  top:calc(62px + env(safe-area-inset-top));left:auto;right:12px;
  width:min(320px,calc(100vw - 24px));max-height:calc(100dvh - 100px);overflow:auto
}
.world-page:has([data-room="true"]:not([hidden])) .world-arrival-actions{
  display:grid;grid-template-columns:1fr 1fr;overflow:visible
}
.world-page:has([data-room="true"]:not([hidden])) .world-arrival p{max-height:none}
.world-page[data-room-journey="true"]:has(#world-illustrated-scene:not([hidden])) .world-stage{
  height:100dvh;min-height:0;border:0;border-radius:0
}
.world-page[data-room-journey="true"] .world-toolbar{top:62px;left:auto;right:12px}
.scene-perspective,.scene-room-cue{
  min-height:44px;border:1px solid var(--scene-border);border-radius:var(--radius-pill);
  background:var(--scene-station);color:var(--scene-ink);font-weight:750;font-size:12px;
  padding:6px 12px;box-shadow:var(--shadow-panel)
}
.scene-perspective{display:none;position:absolute;z-index:8;left:12px;bottom:16px}
[data-room="true"] .scene-perspective:not([hidden]),
[data-room-play="true"] .scene-perspective:not([hidden]){display:block}
.scene-phone-look{bottom:68px}
.scene-phone-look[aria-pressed="true"]{background:var(--color-primary);color:var(--color-on-primary,#fff)}
.world-page [data-room="true"] .scene-move-pad,.world-page [data-room-play="true"] .scene-move-pad{
  left:auto;right:12px;bottom:calc(12px + env(safe-area-inset-bottom));padding:4px;gap:2px;
  background:transparent;border:0;box-shadow:none
}
[data-room="true"] .scene-move-key,[data-room-play="true"] .scene-move-key{
  border-radius:50%;background:color-mix(in srgb,var(--scene-station) 93%,transparent)
}
.scene-room-cue{position:absolute;transform:translate(-50%,-50%);pointer-events:auto;white-space:nowrap}
.scene-room-cue[hidden]{display:none}
.scene-workspace .scene-inspector.scene-letter{
  top:auto;bottom:calc(22px + env(safe-area-inset-bottom));left:50%;right:auto;
  width:min(380px,calc(100% - 24px));max-height:min(320px,68dvh);transform:translateX(-50%);
  z-index:12;border-radius:20px;padding:18px 20px
}
.scene-letter h3{padding-right:36px}
.scene-letter p{font-size:14px;line-height:1.45}
.scene-letter-result{color:var(--color-primary);font-weight:800}
.world-page .world-stage .world-selection.world-scene-action{
  z-index:18;right:12px;bottom:12px;width:min(380px,calc(100% - 24px));max-height:48dvh
}
:is([data-room="true"],[data-room-play="true"]) .scene-workspace:has(.scene-three-canvas:is([data-attention="free"],[data-attention="object"])) .scene-recenter{
  display:block;bottom:170px;right:12px
}

.world-arrival-actions form{margin:0}
.world-arrival-actions form button{width:100%}

/* Compact accessible controls retain the world as the primary surface. */
.scene-workspace[data-graphics="3d"] .scene-object-picker{left:auto;width:min(180px,48vw);min-width:0;padding:5px 8px;background:color-mix(in srgb,var(--scene-station) 92%,transparent)}
.scene-workspace[data-graphics="3d"] .scene-object-picker select{min-height:36px;width:100%;font-size:12px}
.scene-workspace[data-graphics="3d"] .scene-focus-actions{padding:6px 8px;gap:5px;border-radius:14px;background:color-mix(in srgb,var(--scene-station) 94%,transparent)}
.scene-workspace[data-graphics="3d"] .scene-focus-actions .scene-action{min-height:44px}
.scene-room-cue{box-shadow:0 3px 12px #21382d30;letter-spacing:.01em;max-width:148px;overflow:hidden;text-overflow:ellipsis}
/* Shared and personal scenes use the same layout of existing controls. On a
   small viewport the action stack scrolls independently, leaving navigation
   in reach. No collection of independently positioned bottom overlays. */
.scene-dock,.scene-action-stack,.scene-navigation,.scene-view-controls{display:contents}
@media(max-width:720px){
  .world-page .scene-workspace .scene-dock{position:absolute;inset:auto 8px calc(8px + env(safe-area-inset-bottom)) 8px;z-index:12;display:flex;flex-direction:column;gap:6px;pointer-events:none;max-width:100%}
  .world-page .scene-workspace .scene-action-stack{display:flex;flex-direction:column;gap:6px;max-height:min(27dvh,224px);overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;pointer-events:auto}
  .world-page .scene-workspace .scene-action-stack:has(.scene-focus-actions[data-placement]){
    max-height:min(16dvh,110px)
  }
  .world-page .scene-workspace .scene-action-stack:empty{display:none}
  .world-page .scene-workspace .scene-action-stack > :is(.scene-status,.scene-unplaced,.scene-palette,.scene-object-picker,.scene-focus-actions){position:static;inset:auto;transform:none;width:auto;max-width:100%;min-width:0;margin:0;flex:none;box-sizing:border-box}
  .world-page .scene-workspace .scene-action-stack .scene-status{font-size:11px;padding:6px 9px;box-shadow:none}
  .world-page .scene-workspace .scene-action-stack .scene-unplaced{overflow-x:auto;overflow-y:hidden;gap:6px;padding:5px 4px;max-height:none;pointer-events:auto}
  .world-page .scene-workspace .scene-action-stack .scene-unplaced .world-illustrated-station{min-width:130px;flex:0 0 145px;min-height:54px;flex-direction:row;align-items:center;padding:6px 8px;gap:6px;border-radius:11px;box-shadow:none}
  .world-page .scene-workspace .scene-action-stack .scene-unplaced .world-illustrated-object{min-width:24px;min-height:24px;padding:3px;font-size:15px;border-radius:8px}
  .world-page .scene-workspace .scene-action-stack .scene-unplaced .world-illustrated-station-text{align-items:start;text-align:left}
  .world-page .scene-workspace .scene-action-stack .scene-unplaced .world-illustrated-station-text small{font-size:9px;letter-spacing:.04em}
  .world-page .scene-workspace .scene-action-stack .scene-palette{max-height:none;flex-direction:row;overflow-x:auto;padding:5px 7px}
  .world-page .scene-workspace .scene-action-stack .scene-object-picker{align-self:flex-end;display:flex;align-items:center;gap:7px;width:min(250px,100%);padding:4px 7px}
  .world-page .scene-workspace .scene-action-stack .scene-object-picker[hidden],
  [data-room="true"] .scene-workspace:not([data-building="true"]) .scene-action-stack .scene-object-picker,
  [data-room-play="true"] .scene-workspace .scene-action-stack .scene-object-picker{display:none}
  .world-page .scene-workspace .scene-action-stack .scene-object-picker select{flex:1;min-width:0;max-width:100%;min-height:36px}
  .world-page .scene-workspace .scene-action-stack .scene-focus-actions .scene-action{min-height:44px}
  .world-page .scene-workspace .scene-action-stack .scene-focus-actions{padding:5px 7px;gap:5px;justify-content:start;border-radius:12px;box-shadow:0 2px 12px #263b3820}
  .world-page .scene-workspace .scene-navigation{display:flex;align-items:end;justify-content:space-between;gap:6px;pointer-events:none}
  .world-page .scene-workspace .scene-view-controls{display:flex;flex-direction:column;align-items:start;gap:5px;min-width:0;pointer-events:auto}
  .world-page .scene-workspace .scene-view-controls > :is(.scene-perspective,.scene-graphics-switch,.scene-recenter){position:static;inset:auto;min-height:44px;padding:7px 10px;max-width:100%;white-space:nowrap;box-shadow:0 2px 10px #263b3820}
  .world-page .scene-workspace .scene-navigation .scene-move-pad{position:static;inset:auto;grid-template-columns:repeat(4,44px);grid-auto-rows:auto;gap:3px;padding:4px;align-self:end;background:transparent;border:0;box-shadow:none;pointer-events:auto}
  .world-page .scene-workspace .scene-navigation .scene-move-key:nth-child(n){grid-column:auto;grid-row:auto;min-width:44px;min-height:44px;border-radius:14px;box-shadow:0 2px 8px #263b3820}
  .world-page .scene-workspace .scene-navigation .scene-move-more{grid-column:span 2;min-height:44px;padding:5px 6px}
  .world-page .scene-workspace:has(.scene-inspector:not([hidden])) .scene-dock{z-index:18;bottom:calc(min(52dvh,440px) + 6px);pointer-events:none}
  .world-page .scene-workspace:has(.scene-inspector:not([hidden])) .scene-action-stack,
  .world-page .scene-workspace:has(.scene-inspector:not([hidden])) .scene-view-controls{display:none}
  .world-page .scene-workspace:has(.scene-inspector:not([hidden])) .scene-navigation{justify-content:end}
  .world-page .scene-workspace:has(.scene-inspector:not([hidden])) .scene-navigation .scene-move-pad{display:flex;pointer-events:none}
  .scene-workspace:has(.scene-inspector:not([hidden])) .scene-move-pad>.scene-build-toggle{pointer-events:auto}
  .scene-workspace:has(.scene-inspector:not([hidden])) .scene-move-pad>:not(.scene-build-toggle){display:none}
  .world-page .scene-workspace:has(.scene-inspector.scene-letter:not([hidden])) .scene-dock{display:none}
  .world-page .scene-workspace:has(.scene-connection-editor:not([hidden])) .scene-dock{display:none}
  .world-page .world-illustrated-intro{padding:7px 11px;border-radius:12px;max-width:min(260px,calc(100% - 20px));box-shadow:0 3px 12px #263b3820;border-width:1px}
  .world-page .world-illustrated-intro .eyebrow{display:none}
  .world-page .world-illustrated-intro h2{font-size:15px;margin:0 0 3px;line-height:1.2}
  .world-page .world-illustrated-intro p{font-size:10px;line-height:1.2}
}
.scene-unplaced:empty{display:none!important}

/* Selected operations belong at the front of the existing scroll region;
   unrelated progress and precision controls remain available below them. */
@media(max-width:720px){
  .world-page .scene-workspace .scene-action-stack>.scene-focus-actions:not([hidden]){order:-1}
  .world-page .scene-workspace .scene-action-stack>.scene-status:is(.is-error,.is-preview){order:-2}
  .world-page .scene-workspace .scene-action-stack>.scene-status:not(.is-error):not(.is-preview){order:2}
}

/* The illustrated scene already exposes its own current title and progress.
   Do not stack the geographic heading behind the lens switch. */
.world-page:has(#world-illustrated-scene:not([hidden])) .world-heading{display:none}
@media(max-width:720px){
  .world-page:not([data-personal="true"]) .world-illustrated-intro{top:182px}
}

/* A configured physical relationship is a direct, touch-accessible control.
   Use the existing selected-action surface rather than a new motion panel. */
.scene-focus-actions>.scene-field:has(input[type=range]){
  flex:1 1 180px;min-width:min(180px,100%);max-width:100%;
  padding:3px 5px;box-sizing:border-box
}
.scene-focus-actions>.scene-field input[type=range]{
  width:100%;min-height:44px;accent-color:var(--color-primary);
  touch-action:pan-x;cursor:pointer
}
.scene-focus-actions>.scene-field output{
  min-height:15px;font-size:11px;color:var(--color-content-muted)
}
@media(max-width:720px){
  .world-page .scene-workspace .scene-action-stack>.scene-focus-actions:has(input[name=connectionProgress]){
    display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:center;
    width:100%;gap:5px
  }
  .world-page .scene-workspace .scene-action-stack>.scene-focus-actions:has(input[name=connectionProgress])
    >:is(.scene-focused-name,.scene-mechanism-state,.scene-field,.scene-action-reason){
    grid-column:1/-1
  }
  .world-page .scene-workspace .scene-action-stack>.scene-focus-actions:has(input[name=connectionProgress])
    >.scene-action{min-width:0;min-height:44px}
}

/* A keyboard player can enter the actual world without inventing another
   mode; focus remains visible independently of mouse/touch selection. */
.scene-workspace:focus-visible{outline:3px solid var(--color-primary);outline-offset:-3px}

/* The creation intent reveals the existing gathering composer, not a catalog. */
.world-home-panel[data-intent="gather"] .home-journey-section:not([data-home-section="create"]),
.world-home-panel[data-intent="gather"] [data-home-section="create"] > :not([data-gathering-composer]),
.world-home-panel[data-intent="gather"] .home-journey-section ~ .panel{display:none!important}
.gathering-relations > section{margin-block:14px;scroll-margin-top:12px}

/* The gathering is one composition of actual relationships. Each constituent
   carries its current state; opening it exposes only its existing operations. */
.gathering-relations{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;align-items:start}
.gathering-relationship-title{grid-column:1/-1;display:grid;text-align:center;gap:3px;padding:14px;border-radius:18px;background:var(--color-surface-soft);border:1px solid var(--color-border)}
.gathering-relationship-title strong{font-size:19px}.gathering-relationship-title span{font-size:12px;color:var(--color-content-muted)}
.gathering-relation{min-width:0;border:1px solid var(--color-border);border-radius:15px;background:var(--color-surface);overflow:hidden}
.gathering-relation>summary{min-height:68px;padding:10px;display:flex;align-items:center;gap:9px;cursor:pointer;list-style:none}
.gathering-relation>summary::-webkit-details-marker{display:none}
.gathering-relation>summary>span:last-child{display:grid;gap:3px;min-width:0}
.gathering-relation>summary small{font-size:11px;color:var(--color-content-muted);overflow-wrap:anywhere}
.relation-symbol{display:grid;place-items:center;flex:none;width:34px;height:34px;border-radius:50%;background:var(--color-surface-soft);font-size:21px;color:var(--color-primary)}
.gathering-relation[open]{grid-column:1/-1;border-color:var(--color-control-border)}
.gathering-relation[open]>summary{border-bottom:1px solid var(--color-border)}
.relation-content{padding:4px 9px 9px}.relation-content .panel{margin:7px 0;padding:10px}
.gathering-relation>summary:focus-visible{outline:3px solid var(--color-primary);outline-offset:-3px}

/* A gathering with no authored physical scene is still an operative experience.
   Give its relationships the space rather than reserving a blank world view. */
.world-focus-panel:has(.gathering-relations) .context-back,
.world-focus-panel:has(.gathering-relations) .section-title,
.world-focus-panel .gathering-relationship-title>strong{display:none}
.world-focus-panel:has(.gathering-relations) .section{padding:0;margin:0}
.world-focus-panel:has(.gathering-relations) .context-body{padding:0}
.world-focus-panel .gathering-relationship-title{padding:9px}
@media(max-width:720px){
  .world-focus-panel:has(.gathering-relations){top:58px;bottom:0;max-height:none;border-radius:0;z-index:19}
  .world-focus-panel:has(.gathering-relations) .world-focus-header{margin-bottom:8px}
  .world-focus-panel:has(.gathering-relations) .gathering-relation>summary{min-height:84px}
  .world-page:has(.world-focus-panel:not([hidden]) .gathering-relations) :is(.world-toolbar,.world-lens-switch,.world-mode-switch){visibility:hidden}
}

/* A gathering's existing illustrated environment is an optional way in,
   not a replacement for ordinary participation and planning. */
.world-entry{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--space-4);padding:var(--space-5);margin:var(--space-3) 0;border:var(--border-subtle);border-radius:var(--radius-panel);background:var(--color-surface)}
.world-entry:has(.world-welcome-art){grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center}
.world-entry h3{margin:0 0 var(--space-2)}
.world-entry p{margin:0 0 var(--space-3);color:var(--color-content-soft);line-height:1.5}
.world-welcome-art{display:block;width:100%;max-width:480px;height:auto;border-radius:var(--radius-control)}
.welcome-sky{fill:var(--color-primary)}
.welcome-snow,.welcome-roof{fill:var(--color-primary-muted)}
.welcome-house{fill:var(--color-clue-accent)}
.welcome-light{fill:var(--color-accent)}
.welcome-tree{fill:var(--color-success)}
@media(max-width:600px){.world-entry:has(.world-welcome-art){grid-template-columns:minmax(0,1fr)}}

/* One visible entry to the currently featured experience, not another menu.
   Keep it out of the gathering and out of authoring. */
.world-christmas-entry{position:absolute;z-index:15;left:50%;transform:translateX(-50%);top:76px;display:flex;align-items:center;gap:9px;min-height:48px;padding:8px 16px;border-radius:var(--radius-pill);background:var(--color-surface);border:1px solid var(--color-border);box-shadow:var(--shadow-panel);color:var(--color-primary);font-weight:750;text-decoration:none;white-space:nowrap}
.world-christmas-entry[hidden],.world-page[data-personal="false"] .world-christmas-entry,.world-page:has(.world-home-panel:not([hidden])) .world-christmas-entry,.world-page:has(.scene-inspector:not([hidden])) .world-christmas-entry{display:none!important}
@media(max-width:720px){.world-christmas-entry{top:172px;min-height:44px;font-size:14px}}
