:root{color-scheme:dark;font-family:Inter,system-ui,-apple-system,Segoe UI,sans-serif;background:#0a101c;color:#e8efff}*{box-sizing:border-box}body{margin:0;background:radial-gradient(circle at 50% 0%,#24344e 0%,#0a101c 64%)}button,a{font:inherit}a{color:#89dff6}.site-header{max-width:1400px;margin:auto;padding:18px clamp(16px,4vw,48px);display:flex;justify-content:space-between;gap:20px;align-items:center;border-bottom:1px solid #ffffff26}.site-header .home-link{color:#f8d88f;font-weight:850;letter-spacing:.1em;text-decoration:none}.site-header span{font-size:.7rem;letter-spacing:.17em;color:#d1dcf2;text-align:right}.site-header small{display:block;font-size:.68rem;color:#79e1d2;margin-top:4px}main{max-width:1400px;margin:auto;padding:16px clamp(12px,3vw,42px)}h1,h2,h3,p{margin-top:0}.eyebrow{color:#7be2ce;font-size:.72rem;font-weight:700;letter-spacing:.15em;text-transform:uppercase}.intro{display:flex;justify-content:space-between;gap:22px;align-items:center;padding:28px 0 18px}.intro h1{font-size:clamp(2rem,4vw,3.7rem);letter-spacing:-.05em;line-height:1.02;margin:8px 0 12px}.intro h1 em{color:#eec77d;font-style:normal}.intro p{max-width:730px;line-height:1.6;color:#b8c9dd}.status{border:1px solid #597e92;border-radius:14px;background:#101e2c;padding:14px;max-width:255px;flex:0 0 255px}.status strong,.status span{display:block}.status strong{color:#abecd6;font-size:.92rem}.status span{font-size:.75rem;line-height:1.5;color:#b4c5d8;margin-top:7px}.layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(250px,300px);align-items:start;gap:17px}.world-shell,.panel{background:#101a2b;border:1px solid #3c526e;border-radius:16px;box-shadow:0 14px 32px #0005;overflow:hidden}.world-top{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:12px 15px;font-weight:650;color:#eee2be;font-size:.85rem}.world-top span:last-child{font-size:.68rem;letter-spacing:.1em;color:#7ee3ca}canvas{display:block;width:100%;aspect-ratio:12/7;height:auto;background:#152530;outline:none;touch-action:none}canvas:focus-visible{outline:2px solid #6fe4df;outline-offset:-2px}.help{padding:12px 15px;font-size:.79rem;color:#b8c7da;margin:0}.panel{padding:20px}.panel h2{font-size:1.24rem;letter-spacing:-.03em}.panel p{font-size:.83rem;line-height:1.55;color:#bfcede}.location{margin:17px 0;border:1px solid #405b70;border-radius:13px;padding:15px;background:#0c1e2d}.location h3{margin:8px 0;font-size:1.03rem;color:#f3dcaa}.location p{margin-bottom:12px}button{border:1px solid #4b8e9a;background:#173e4d;color:#edffff;border-radius:9px;padding:12px;cursor:pointer;font-weight:700;font-size:.8rem}button:hover:not(:disabled){background:#236075}button:focus-visible{outline:2px solid #a1f3d9;outline-offset:2px}button:disabled{opacity:.55;cursor:default}.location button{width:100%}.guide{border-top:1px solid #ffffff26;padding-top:14px}.guide h3{font-size:1rem}.pad{display:flex;flex-direction:column;gap:4px;align-items:center;touch-action:none}.pad>button,.pad>div>button{min-width:54px;min-height:48px;font-size:1rem;touch-action:none;user-select:none}.pad>div{display:flex;gap:4px}.truth{border-top:1px solid #ffffff26;padding-top:15px;font-size:.76rem;line-height:1.55;color:#b9cbdf}.truth b{color:#f1d59a}footer{padding:22px 0;font-size:.77rem;line-height:1.5;color:#b5c6dd;text-align:center}@media(max-width:840px){.intro{flex-direction:column;align-items:flex-start}.status{max-width:none;flex:auto;width:100%}.layout{grid-template-columns:1fr}.panel{display:grid;grid-template-columns:1fr 1fr;gap:12px}.panel>h2,.panel>p,.truth{grid-column:1/-1}.location{margin:0}}@media(max-width:540px){.site-header{padding:15px}.site-header span{font-size:.6rem}.panel{display:block}.location{margin:12px 0}.intro{padding:16px 0 8px}.world-top{font-size:.75rem}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
/* One OMNI / Two views choice; no fake 3D access or public OMNI credentials. */
.experience-switch{margin:0 0 15px;display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.experience-switch>a,.experience-switch>span.experience-pending{padding:10px 13px;border:1px solid #506785;border-radius:10px;font-size:.78rem;font-weight:800;letter-spacing:.035em;text-decoration:none}
.experience-switch>.experience-active{color:#eaffdf;border-color:#8fe6c3;background:#16514f}
.experience-switch>.experience-pending{color:#bdc8d4;background:#172033}
.one-omni-identity{margin-left:auto;color:#8ca9b9;font-size:.7rem}
.catalog-label{font-size:.74rem;color:#a9ccbd;line-height:1.5;padding:0 0 12px;border-bottom:1px solid #ffffff19;margin:12px 0}
@media(max-width:590px){.experience-switch>a,.experience-switch>span.experience-pending{font-size:.69rem;padding:10px}.one-omni-identity{margin:0;width:100%;font-size:.67rem}}

/* SOPHIA IPHONE V1 — keep directional controls and ENTER directly beneath gameplay.
   The same native controls are MOVED, not cloned; pointer hold remains intact. */
.world-controls{display:flex;align-items:stretch;justify-content:center;gap:clamp(10px,3vw,22px);
  padding:12px 15px 13px;background:linear-gradient(180deg,#173042,#132333);
  border-top:1px solid #5a8c93;border-bottom:1px solid #425773;touch-action:pan-y}
.touch-pad-wrap,.touch-action{display:flex;flex-direction:column;align-items:center;gap:4px}
.touch-pad-wrap{flex:0 0 auto}
.touch-action{flex:1 1 130px;max-width:230px}
.control-caption{color:#b4dae4;font-size:.68rem;letter-spacing:.13em;font-weight:800;
  line-height:15px;text-align:center}
.world-controls .pad{gap:3px}
.world-controls .pad>div{gap:3px}
.world-controls .pad>button,
.world-controls .pad>div>button{padding:6px;min-width:50px;width:50px;min-height:45px;height:45px;
  font-size:1.14rem;line-height:1;touch-action:none;
  background:#1c5261;border-color:#6bb4bb;box-shadow:0 2px 4px #0006}
.world-controls .pad button:active{background:#318d8d;transform:scale(.96)}
.world-controls #enterBtn{width:100%;max-width:230px;min-height:57px;
  padding:10px 7px;font-size:.73rem;line-height:1.25;overflow-wrap:anywhere;
  background:#1a5960;border:1px solid #77d6bf;color:#e7fff7}
.world-controls #enterBtn:disabled{background:#1c3742;color:#b1c4c9;border-color:#4b7c83}
.world-controls #homeBtn{width:100%;max-width:230px;min-height:40px;padding:8px;
  font-size:.73rem;background:#27344d;border-color:#657d9b;color:#dae7ff}
.controls-location-hint{font-size:.75rem;color:#a7d9d0}
.guide .pad{display:none}/* no duplicate D-pad in the lower sidebar */
@media(max-width:540px){
 .world-controls{padding:9px 7px 10px;gap:9px}
 .world-controls .pad>button,.world-controls .pad>div>button{min-width:46px;width:46px;height:43px;min-height:43px}
 .world-controls .touch-action{flex:1 1 110px;max-width:none}
 .world-controls #enterBtn{font-size:.69rem;min-height:54px}
 .world-controls #homeBtn{min-height:38px}
 .help{padding:9px 11px;font-size:.72rem;line-height:1.4}
}
@media(max-width:345px){
 .world-controls .pad>button,.world-controls .pad>div>button{min-width:42px;width:42px;height:42px;min-height:42px}
 .world-controls{gap:6px}
}
@media(prefers-reduced-motion:reduce){.world-controls .pad button{transition:none}}

/* OMNI GUIDE / PUBLIC SCRIPTED PREVIEW - never expose private Sacred. */
.world-shell{position:relative}
.world-game-actions{display:flex;justify-content:flex-end;align-items:center;gap:9px;flex-wrap:wrap}
.world-game-actions #fps{font-size:.57rem;letter-spacing:.07em;color:#91cbca;white-space:nowrap}
.visited-counter{font-size:.69rem;font-weight:750;letter-spacing:.04em;color:#efd4a0;white-space:nowrap}
.omni-guide-trigger{padding:9px 11px;border:1px solid #70d7c0;border-radius:999px;
  font-size:.71rem;letter-spacing:.045em;font-weight:800;color:#e3fff5;background:#174953;
  white-space:nowrap;min-height:40px}
.omni-guide-trigger:hover,.omni-guide-trigger[aria-expanded="true"]{background:#246c71}
.omni-guide-speech{position:absolute;z-index:5;top:57px;right:9px;left:9px;
  max-width:430px;margin-left:auto;padding:13px 15px 12px;border:1px solid #72d4ca;
  border-radius:13px;background:rgba(11,31,49,.97);box-shadow:0 9px 28px #000b;
  color:#e9f3fa}
.omni-guide-speech[hidden]{display:none!important}
.omni-guide-speech-header{display:flex;justify-content:space-between;gap:10px;align-items:center}
.omni-guide-speech-header strong{font-size:.75rem;letter-spacing:.06em;color:#a7f2d9}
.omni-guide-close{padding:7px 9px;font-size:.68rem;color:#d5ecff;min-height:33px}
.omni-guide-speech p{font-size:.89rem;line-height:1.45;margin:9px 0;color:#eff5ff}
.omni-guide-speech small{display:block;font-size:.66rem;line-height:1.45;color:#a9c1cd}
.world-top:has(.world-game-actions){gap:6px}
@media(max-width:540px){
 .world-top{padding:8px 8px;gap:5px}
 .world-top>span:first-child{font-size:.64rem;max-width:45%;line-height:1.25}
 .world-game-actions{gap:5px}
 .omni-guide-trigger{padding:8px 7px;font-size:.61rem;min-height:38px}
 .visited-counter{font-size:.60rem}
 .world-game-actions #fps{display:none}
 .omni-guide-speech{top:53px;left:7px;right:7px;padding:11px}
 .omni-guide-speech p{font-size:.84rem}
}
@media(max-width:350px){.visited-counter{display:none}}

/* Narrow browser safe layout: show Guide button and visit counter without
   pushing controls into the info panel or requiring horizontal scrolling. */
@media(max-width:720px){
  .world-top{flex-direction:column;align-items:stretch;gap:7px}
  .world-top>span:first-child{max-width:none;width:100%;font-size:.72rem}
  .world-game-actions{width:100%;display:flex;align-items:center;justify-content:space-between;gap:8px}
  .world-game-actions .visited-counter{font-size:.70rem;display:inline}
  .world-game-actions .omni-guide-trigger{padding:8px 14px;min-height:39px;font-size:.72rem}
  .world-game-actions #fps{display:none}
  .omni-guide-speech{top:85px}
  .intro>div:first-child{min-width:0;max-width:100%}
  .intro p{overflow-wrap:anywhere}
  .world-shell,.panel{min-width:0}
}
@media(max-width:350px){
  .world-game-actions .visited-counter{display:inline;font-size:.63rem}
  .world-game-actions .omni-guide-trigger{font-size:.67rem;padding:8px}
}

/* OMNI Lite First Tour and verified-read-only Unreal asset projection */
.lite-tour{padding:11px 15px 12px;border-bottom:1px solid #345769;
  background:linear-gradient(135deg,#112d39,#152339);display:grid;gap:8px}
.lite-tour-title{display:flex;gap:9px;justify-content:space-between;align-items:center}
.lite-tour-title strong{font-size:.75rem;color:#f1d89e;letter-spacing:.055em}
.lite-tour-title span{font-size:.66rem;font-weight:800;color:#9eead0;white-space:nowrap}
.lite-tour-content{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center}
.lite-tour-content p{margin:0 0 3px;font-size:.88rem;font-weight:730;color:#eaf4fe;line-height:1.25}
.lite-tour-content small{display:block;color:#9bbdcb;font-size:.65rem;line-height:1.35}
#questHintBtn{min-height:43px;padding:8px 11px;border:1px solid #a4dbac;background:#325e4e;
  font-size:.70rem;color:#f2ffea;max-width:113px;line-height:1.18}
#questHintBtn:disabled{opacity:.8;background:#1d4749;color:#b1e6d4}
.native-source-details{margin:15px 0;padding:12px;border:1px solid #41657c;
  border-radius:12px;background:#0c2231;font-size:.79rem;color:#c4dce6}
.native-source-details>summary{display:flex;gap:7px;align-items:center;justify-content:space-between;
  cursor:pointer;list-style:none;font-size:.75rem;font-weight:850;color:#d9eaf6}
.native-source-details>summary::-webkit-details-marker{display:none}
.native-source-details>summary:before{content:"▸";color:#88cdbf}
.native-source-details[open]>summary:before{content:"▾"}
#nativeSnapshotBadge{font-weight:800;color:#d3b995;font-size:.59rem;white-space:nowrap}
#nativeSnapshotStatus{margin:11px 0 9px;font-size:.76rem;line-height:1.5;color:#bdcfdc}
#nativeSnapshotList{padding-left:17px;margin:8px 0;display:grid;gap:9px}
#nativeSnapshotList li{font-size:.74rem;line-height:1.44;color:#d3e3ec}
.native-source-details small{color:#a8c1cc;font-size:.69rem;line-height:1.5}
@media(max-width:540px){
 .lite-tour{padding:10px 9px;gap:7px}
 .lite-tour-title strong{font-size:.68rem}
 .lite-tour-title span{font-size:.62rem}
 .lite-tour-content{gap:6px}
 .lite-tour-content p{font-size:.78rem}
 .lite-tour-content small{font-size:.60rem}
 #questHintBtn{font-size:.64rem;max-width:86px;min-height:44px;padding:7px}
 .native-source-details{margin:12px 0}
}
@media(max-width:340px){.lite-tour-content{grid-template-columns:1fr}#questHintBtn{max-width:none}}

/* Explicit private handoff: the public web view contains no private base URL.
  This does NOT send an event; only paired Sacred confirmation sends it. */
.paired-handoff{margin:0;padding:10px 15px 13px;border-bottom:1px solid #406177;background:#101e31}
.paired-handoff-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.paired-handoff-head strong{font-size:.70rem;color:#a4eacb;letter-spacing:.04em}
.handoff-status{font-weight:850;font-size:.59rem;color:#f3d79c;white-space:nowrap}
.paired-handoff>p{font-size:.75rem;line-height:1.45;color:#bed2e1;margin:7px 0 10px}
.paired-handoff #prepareHandoff{width:100%;min-height:43px;font-size:.73rem;text-align:center;color:#e7fff6;border-color:#6ca7ab}
.paired-handoff #prepareHandoff:disabled{opacity:.55}
.handoff-panel{margin:10px 0 0;padding:12px;border:1px solid #4a8b81;border-radius:9px;background:#0a2530}
.handoff-panel[hidden],#privateHandoffLink[hidden]{display:none!important}
.handoff-panel label{display:block;font-size:.76rem;font-weight:780;margin:10px 0 6px;color:#e2f6ec}
.handoff-panel input{display:block;width:100%;min-height:44px;padding:9px;border-radius:8px;
 border:1px solid #679bb0;color:#efffff;background:#182b3b;font:inherit;font-size:16px}
.handoff-panel input:focus-visible{outline:2px solid #f6dea3;outline-offset:2px}
.handoff-panel p{font-size:.76rem;line-height:1.5;color:#d7eaf1}
.handoff-panel small{font-size:.69rem;line-height:1.46;color:#a6c5cf;display:block;margin:6px 0}
.handoff-panel #buildPrivateLink{margin:9px 0 0;width:100%;text-align:center;background:#286151}
#privateHandoffLink{display:block;padding:12px 9px;margin-top:10px;text-align:center;border:1px solid #b1eec9;
 border-radius:9px;background:#175148;text-decoration:none;color:#eafff6;font-size:.75rem;font-weight:850}
@media(max-width:540px){.paired-handoff{padding:9px}.paired-handoff-head strong{font-size:.62rem}}

/* Native-coordinate atlas: separate from local gameplay so iPhone controls stay adjacent. */
.real-atlas-shortcut{border:1px solid #e6c77f;border-radius:99px;background:#3c342a;
  color:#fff0c6;min-height:40px;padding:7px 11px;font-size:.71rem;white-space:nowrap}
.real-town-atlas{border:1px solid #67979b;border-radius:12px;padding:12px;margin:0 0 22px;
 background:linear-gradient(135deg,#12283d,#10202b)}
.real-town-atlas>summary{list-style:none;display:flex;justify-content:space-between;align-items:center;
 gap:7px;font-size:.82rem;font-weight:850;cursor:pointer;color:#f4d9a0}
.real-town-atlas>summary::-webkit-details-marker{display:none}
.real-town-atlas>summary:before{content:"▸ ";color:#89dacd}
.real-town-atlas[open]>summary:before{content:"▾ "}
#realTownAtlasBadge{font-size:.6rem;color:#a1ead4;white-space:nowrap}
.atlas-intro{font-size:.74rem;line-height:1.5;color:#bfd1e1}
.atlas-display{border:1px solid #477080;border-radius:12px;overflow:hidden;background:#11283a}
#nativeTownSvg{display:block;width:100%;height:auto;max-height:540px;aspect-ratio:1000/590}
#nativeTownSvg .atlas-marker{cursor:default;transition:opacity .1s}
#nativeTownSvg .atlas-primary{fill:#a8ebdb;stroke:#efffee;stroke-width:2}
#nativeTownSvg .atlas-optional{fill:#eccf80;stroke:#fff6c9;stroke-width:2}
#nativeTownSvg .atlas-label{font-size:17px;paint-order:stroke;stroke:#092338;stroke-width:3.5;
 fill:#e9f6ef;font-family:system-ui,sans-serif;font-weight:750}
.atlas-axes{font-size:.62rem;color:#a9cbd5;text-align:center;letter-spacing:.02em}
.native-atlas-chooser{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.native-atlas-chooser button{border:1px solid #547d88;border-radius:8px;background:#203c48;
 min-height:43px;padding:7px 8px;color:#d5edec;font-size:.67rem;line-height:1.25}
.native-atlas-chooser button[aria-pressed="true"]{border:2px solid #f3d69a;background:#3e4d4b}
.native-atlas-detail{border:1px solid #6f9ba8;padding:11px;border-radius:9px;background:#142e3c;
 color:#ecf4f8;font-size:.74rem;line-height:1.5;overflow-wrap:anywhere}
.atlas-pending{padding:10px 9px;border-radius:8px;background:#332d29;border:1px solid #8b785c;
 color:#edd6bc;font-size:.70rem;line-height:1.5;margin:12px 0}
.atlas-pending strong{color:#ffdea1}
.real-town-atlas small{display:block;font-size:.68rem;color:#aac3d0;line-height:1.5}
@media(max-width:720px){
 .world-game-actions .real-atlas-shortcut{width:100%;font-size:.7rem}
 .world-game-actions{flex-wrap:wrap}
 .real-town-atlas{padding:9px}
 #nativeTownSvg .atlas-label{font-size:16px}
 .native-atlas-chooser{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* 2026-11-08: Long-press movement must not open mobile copy/lookup menus. */
.pad, .pad button, .pad button * {touch-action:none;overscroll-behavior:contain;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}
