/* Ezekiel's Temple page styles (moved from index.html). Collectible styles live in collectibles/collectibles.css. */
html, body { margin:0; width:100%; height:100%; overflow:hidden; background:#a8bfce; font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
canvas { display:block; }
#ui { position:fixed; top:14px; left:14px; width:min(330px,calc(100vw - 28px)); color:#201d17; background:rgba(248,244,234,.94); border:1px solid rgba(73,59,39,.25); box-shadow:0 10px 28px rgba(0,0,0,.16); border-radius:12px; z-index:10; backdrop-filter:blur(8px); }
#ui .head { padding:14px 16px 10px; border-bottom:1px solid rgba(73,59,39,.14); }
#ui h1 { font-size:18px; line-height:1.2; margin:0 0 4px; font-weight:750; }
#ui .sub { font-size:12px; color:#6d604d; }
#ui .body { padding:12px 16px 14px; max-height:68vh; overflow:auto; }
.row { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:9px; }
button, select { appearance:none; border:1px solid #a89779; background:#fffaf0; color:#322b21; border-radius:8px; padding:8px 10px; font:inherit; font-size:12px; cursor:pointer; }
button:hover { background:#f2e8d4; }
select { flex:1; min-width:170px; }
.toggle { display:flex; align-items:center; gap:7px; font-size:12px; margin:7px 0; }
.toggle input { accent-color:#755c34; }
.help { font-size:11px; line-height:1.45; color:#6c6254; padding-top:8px; border-top:1px solid rgba(73,59,39,.12); }
.note { margin-top:9px; padding:9px 10px; border-radius:8px; background:#efe6d4; color:#5b4c38; font-size:11px; line-height:1.4; }
#status { position:fixed; bottom:12px; left:50%; transform:translateX(-50%); z-index:8; background:rgba(30,27,22,.84); color:#f8f3e9; border-radius:999px; padding:7px 12px; font-size:11px; pointer-events:none; opacity:.94; white-space:nowrap; }
#compass { position:fixed; right:14px; top:14px; z-index:8; width:72px; height:72px; border-radius:50%; background:rgba(248,244,234,.86); border:1px solid rgba(73,59,39,.2); display:grid; place-items:center; color:#463b2c; font-weight:700; font-size:11px; box-shadow:0 6px 18px rgba(0,0,0,.12); }
#compass span { position:absolute; }
#compass .n { top:5px; left:31px; } #compass .s { bottom:5px; left:31px; }
#compass .e { right:7px; top:29px; } #compass .w { left:7px; top:29px; }
#compass .arrow { width:2px; height:38px; background:#6c5130; transform-origin:center 50%; }
#compass .arrow:before { content:""; position:absolute; left:-4px; top:0; border-left:5px solid transparent; border-right:5px solid transparent; border-bottom:9px solid #6c5130; transform:translateY(-5px); }
body > canvas { touch-action:none; }
body > canvas { cursor:grab; }
body.map-dragging > canvas { cursor:grabbing; }
body.picking-walk > canvas { cursor:crosshair; }
body.walking > canvas { cursor:default; }
#mapTools { position:fixed; right:14px; bottom:28px; display:grid; grid-template-columns:1fr 1fr; width:176px; gap:8px; z-index:9; }
#mapTools button { min-height:44px; background:#fffaf0; box-shadow:0 3px 12px #0003; font-size:12px; padding:6px; }
#zoomInBtn, #zoomOutBtn { font-size:23px !important; }
#rotateMapBtn, #tiltMapBtn, #walkHereBtn { grid-column:1 / -1; }
#mapTools button[aria-pressed="true"] { background:#235e65; color:white; }
#mapTools #walkHereBtn { position:relative; overflow:hidden; margin-top:4px; min-height:84px; border-radius:18px; border:2px solid #1f2a36; background:linear-gradient(#f5a53a,#e8801f); color:#1f2a36; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px; padding:6px; animation:walkPulse 1.8s infinite; }
#mapTools #walkHereBtn:hover { filter:brightness(1.08); }
#mapTools #walkHereBtn:active { transform:translateY(4px); }
#mapTools #walkHereBtn[aria-pressed="true"] { background:#1f2a36; color:#ffd58a; animation:none; box-shadow:0 3px 12px #0003; }
#walkHereBtn .sheen { position:absolute; top:0; left:0; width:30%; height:100%; background:rgba(255,255,255,.45); animation:walkSheen 2.8s infinite; pointer-events:none; }
#walkHereBtn[aria-pressed="true"] .sheen { display:none; }
#walkHereBtn .badge { position:relative; font-size:10px; font-weight:700; letter-spacing:.18em; background:#1f2a36; color:#ffd58a; padding:2px 8px; border-radius:99px; }
#walkHereBtn[aria-pressed="true"] .badge { background:#ffd58a; color:#1f2a36; }
#walkHereBtn .label { position:relative; font-size:21px; font-weight:800; letter-spacing:.02em; }
#walkHereBtn .sub { position:relative; font-size:11px; font-weight:600; }
@keyframes walkPulse { 0%{box-shadow:0 0 0 0 rgba(232,140,40,.55),0 6px 0 #b8611a} 70%{box-shadow:0 0 0 16px rgba(232,140,40,0),0 6px 0 #b8611a} 100%{box-shadow:0 0 0 0 rgba(232,140,40,0),0 6px 0 #b8611a} }
@keyframes walkSheen { 0%{transform:translateX(-120%) skewX(-20deg)} 60%,100%{transform:translateX(320%) skewX(-20deg)} }
@media (prefers-reduced-motion:reduce) { #mapTools #walkHereBtn, #walkHereBtn .sheen { animation:none; } }
body.compact #mapTools { right:max(10px,env(safe-area-inset-right)); bottom:calc(132px + env(safe-area-inset-bottom)); }
body.walking #mapTools { display:none; }
#interiorBar { display:none; position:fixed; top:14px; left:50%; transform:translateX(-50%); gap:5px; z-index:9; padding:6px; background:#fffaf0ed; border-radius:10px; box-shadow:0 3px 12px #0003; }
body.interior-map:not(.walking) #interiorBar { display:flex; }
#interiorBar button { min-height:44px; font-size:12px; }
#interiorBar button[aria-pressed="true"] { color:white; background:#235e65; }
body.compact #interiorBar { top:calc(84px + env(safe-area-inset-top)); width:calc(100vw - 32px); box-sizing:border-box; }
body.compact #interiorBar button { flex:1; min-width:0; padding:6px; }
button:focus-visible, select:focus-visible, #joystick:focus-visible { outline:3px solid #357c7b; outline-offset:3px; }
button:disabled { opacity:.5; cursor:default; }
#ui .head { position:relative; padding-right:90px; }
#panelToggle { position:absolute; right:10px; top:12px; min-height:44px; }
#ui.collapsed .body { display:none; }
#ui.collapsed .head { border-bottom:0; }
#mobileActions, #walkHud { display:none; }
body.compact #ui { top:max(8px,env(safe-area-inset-top)); left:max(8px,env(safe-area-inset-left)); width:calc(100vw - max(8px,env(safe-area-inset-left)) - max(8px,env(safe-area-inset-right))); }
body.compact #ui h1 { font-size:15px; }
body.compact #ui .sub { font-size:11px; }
body.compact #ui .head { padding:12px 94px 12px 12px; min-height:38px; }
body.compact #ui .body { max-height:calc(100vh - 220px); max-height:calc(100dvh - 220px); padding:10px 12px; overscroll-behavior:contain; }
body.compact button, body.compact select, #walkHud button { min-height:44px; font-size:13px; }
body.compact .row > button { flex:1 1 40%; }
body.compact .toggle { min-height:40px; margin:0; }
body.compact .toggle input { width:20px; height:20px; }
body.compact #compass { display:none; }
body.compact #status { bottom:calc(78px + env(safe-area-inset-bottom)); max-width:calc(100vw - 40px); width:max-content; white-space:normal; text-align:center; box-sizing:border-box; }
body.compact:not(.walking) #mobileActions { display:flex; position:fixed; bottom:calc(12px + env(safe-area-inset-bottom)); left:max(10px,env(safe-area-inset-left)); right:max(10px,env(safe-area-inset-right)); gap:7px; z-index:9; }
#mobileActions button { flex:1; background:#fffaf0; box-shadow:0 3px 12px #0003; padding:8px 5px; }
body.touch-mode.walking #walkHud { display:block; position:fixed; inset:0; pointer-events:none; z-index:9; }
#joystick { position:absolute; left:calc(20px + env(safe-area-inset-left)); bottom:calc(24px + env(safe-area-inset-bottom)); width:124px; height:124px; border-radius:50%; border:2px solid #ffffffb3; background:#162b3fb3; box-shadow:0 4px 20px #0003; touch-action:none; pointer-events:auto; user-select:none; -webkit-user-select:none; }
#joystick:before { content:'↑'; position:absolute; top:4px; left:0; right:0; text-align:center; color:#ffffffc9; font-size:21px; }
#joystickThumb { position:absolute; width:48px; height:48px; left:38px; top:38px; border-radius:50%; background:#fff5da; box-shadow:0 2px 8px #0006; pointer-events:none; }
#moveHint { position:absolute; left:0; right:0; bottom:7px; text-align:center; color:white; font-size:11px; pointer-events:none; }
#walkActions { position:absolute; right:calc(16px + env(safe-area-inset-right)); bottom:calc(28px + env(safe-area-inset-bottom)); display:grid; gap:12px; justify-items:end; }
#lookHint { color:white; background:#162b3fcc; border-radius:8px; padding:8px 10px; font-size:12px; }
#walkPad { display:flex; gap:8px; }
#walkPad button { pointer-events:auto; background:#fff5da; box-shadow:0 3px 12px #0003; }
#touchExitBtn { pointer-events:auto; background:#fff5da; box-shadow:0 3px 12px #0003; }
body.touch-mode.walking #status { bottom:calc(172px + env(safe-area-inset-bottom)); white-space:normal; text-align:center; max-width:calc(100vw - 32px); }
@media (max-height:500px) { body.compact #ui { width:min(350px,calc(100vw - 32px)); } body.compact #ui .body { max-height:calc(100dvh - 160px); } body.compact #ui .sub { display:none; } body.touch-mode.walking #status { bottom:calc(16px + env(safe-area-inset-bottom)); max-width:calc(100vw - 410px); font-size:10px; } }

/* EN / VI switcher in the panel header (same markup and storage key as the other models) */
.language-switcher { display:inline-flex; margin-top:8px; padding:3px; gap:2px; background:#efe6d4; border:1px solid #a89779; border-radius:999px; }
.language-switcher button { min-width:44px; min-height:32px; padding:3px 10px; border:0; border-radius:999px; background:transparent; font-size:12px; font-weight:800; letter-spacing:.05em; color:#6d604d; }
.language-switcher button[aria-pressed="true"] { background:#235e65; color:#fff; }
body.compact .language-switcher { margin-top:4px; }
body.compact .language-switcher button { min-height:36px; }
