/* r59: readable surfaces and reliable controls; existing artwork and saves retained. */
body[data-ar-page="home"] .hero .eyebrow,
body[data-ar-page="home"] .hero h1,
body[data-ar-page="home"] .hero .tagline{filter:brightness(1.2);text-shadow:0 0 22px #d8b57638}
body[data-ar-page="home"] .hero{position:relative;isolation:isolate}
body[data-ar-page="home"] .ar-hero-illumination{opacity:.9!important;background:radial-gradient(ellipse at 65% 0%,#e5c77c30,transparent 60%)!important}
.contact-banner-link svg{color:#d9bd80;filter:drop-shadow(0 1px 2px #b7974438)}
.contact-banner-link img{filter:brightness(1.14) saturate(1.3) drop-shadow(0 2px 3px #c49a4a22)}
.ar-content-runner{border-bottom-color:transparent!important;box-shadow:0 8px 18px -15px #bfa77755}
.ar-content-runner::after{pointer-events:none}
body[data-ar-page="home"] .home-library-card .text-actions,
body[data-ar-page="home"] .ar-home-library-actions{justify-content:center;text-align:center}
/* The entire toolbar must be above the hero's stacking context. */
body:not(.ar-simple):not(.ar-cyber) #workspace>.workspace-top{z-index:110!important;overflow:visible!important;isolation:isolate}
body:not(.ar-simple):not(.ar-cyber) #workspace>.workspace-panel{position:relative;z-index:1}
#ar-workspace-actions{overflow:visible!important}
#ar-theme-chooser,#ar-ambience-chooser,.reading-options68{position:relative}
#ar-theme-menu,#ar-ambience-panel,.reading-options-body68{z-index:150!important;max-width:min(94vw,540px);max-height:75dvh;overflow:auto;overscroll-behavior:contain}
#study-tree .tree-group :is(a,button)+:is(a,button){border-top:1px solid color-mix(in srgb,currentColor 19%,transparent)!important}
#study-tree .tree-group :is(a,button){padding-block:12px!important}
body:not(.ar-simple):not(.ar-cyber) #workspace>.workspace-top{background:transparent!important;border:0!important;box-shadow:none!important}
body:not(.ar-simple):not(.ar-cyber) #workspace>.workspace-top::before{background:linear-gradient(90deg,transparent,#080807d9 12%,#080807d9 88%,transparent)!important;mask-image:linear-gradient(transparent,#000 15%,#000 75%,transparent)!important;-webkit-mask-image:linear-gradient(transparent,#000 15%,#000 75%,transparent)!important}
#app-status:empty{display:none}
body.ar-simple:not(.ar-simple-dark) #sidebar :is(svg,.ar-route-icon,.tree-icon){color:#f5eee1!important;opacity:1!important;filter:none!important}
body.ar-simple:not(.ar-simple-dark) #sidebar :is(a,button){--icon-color:#f5eee1}
@media(max-width:640px){
 #ar-workspace-actions{gap:6px!important;justify-content:flex-start!important}
 #ar-workspace-actions>button,#ar-visual-mode-toggle,#ar-ambience-toggle,.reading-options68>summary{min-height:44px!important;max-width:100%;font-size:13px!important;padding:10px!important;white-space:normal!important}
 #panel-welcome :is(.ar-dashboard-quicklinks,.ar-dashboard-links,.ar-welcome-links,.ar-quick-links){display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
 #panel-welcome a{min-width:0;overflow-wrap:break-word}
}
/* First visit: native dialog owns focus, Escape and the backdrop. */
#ar-first-theme59{width:min(920px,calc(100vw - 28px));max-height:90dvh;overflow:auto;border:1px solid #bca16c;border-radius:18px;padding:clamp(18px,4vw,38px);background:#12100d;color:#f1e7d2;box-shadow:0 24px 90px #000b}
#ar-first-theme59::backdrop{background:#000a;backdrop-filter:blur(5px)}
#ar-first-theme59 h2{font:clamp(24px,4vw,36px)/1.2 Georgia,serif;margin:0 0 14px}
.ar-theme-cards59{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:24px 0}
.ar-theme-card59{display:flex;flex-direction:column;text-align:left;padding:0 0 18px;overflow:hidden;border:1px solid #8a724c;border-radius:12px;background:#201a14;color:#f7ecd4;cursor:pointer}
.ar-theme-card59 strong,.ar-theme-card59 small{margin:12px 15px 0;line-height:1.5}
.ar-theme-card59 strong{font-size:19px}.ar-theme-card59 small{font-size:13px}
.ar-theme-preview59{display:block;height:145px;width:100%;position:relative;background-size:cover;background-position:center;overflow:hidden}
.ar-theme-preview59::after{content:"";position:absolute;inset:0;clip-path:polygon(62% 0,100% 0,100% 100%,32% 100%);background:linear-gradient(135deg,#28231d88,#080808aa)}
.ar-theme-preview59.simple{background:linear-gradient(115deg,#f6f4ec 50%,#171819 50%)}
.ar-theme-preview59.simple::before{content:'Aa   Aa';position:absolute;inset:35px 10px;color:#6d6d68;font:46px Georgia;text-align:center;white-space:pre}
.ar-theme-preview59.standard{background-image:url('/assets/61fbe3cc2ca813567cd52e35.png');background-color:#b99b62}
.ar-theme-preview59.cyber{background:repeating-linear-gradient(0deg,transparent 0 12px,#ec3c6b11 13px),linear-gradient(115deg,#1e070f 48%,#171229 49%)}
.ar-theme-preview59.cyber::before{content:'בְּרֵאשִׁית  Α Ω';position:absolute;inset:45px 10px;font:24px monospace;color:#ff537a;text-align:center}
.ar-theme-card59:hover{border-color:#f1d69a}.ar-theme-card59:focus-visible{outline:3px solid #f1d69a;outline-offset:3px}
@media(max-width:600px){.ar-theme-cards59{grid-template-columns:1fr}.ar-theme-card59{display:grid;grid-template-columns:110px 1fr;padding:0 12px 10px 0}.ar-theme-preview59{grid-row:1/3;height:112px}.ar-theme-card59 small{margin-top:0}.ar-theme-card59 strong{margin-top:10px}}
/* Native sheep hit target; drag remains grounded and does not intercept the page. */
.ar-website-sheep-talk{left:38px!important;width:144px!important;height:138px!important;touch-action:none!important;cursor:grab!important}
.ar-website-sheep[data-dragging=true] .ar-website-sheep-talk{cursor:grabbing!important}
.ar-website-sheep-recall{display:none!important}
.ar-sheep-guest-hit59{position:fixed;z-index:33;width:144px;height:142px;padding:0;border:0;background:transparent;touch-action:none;cursor:grab;border-radius:45%}
.ar-sheep-guest-hit59:focus-visible{outline:3px solid #d8b767;outline-offset:3px}
.ar-sheep-guest-bubble59{position:fixed;z-index:35;bottom:165px;left:20px;max-width:min(340px,calc(100vw - 28px));padding:20px;border:1px solid #78855c;border-radius:24px;background:#fff7df;color:#304d41;font:16px/1.5 Georgia,serif;box-shadow:0 5px 20px #0003}
/* Compact, separate navigation and reply choices. */
.ar-agandar-dialogue-content{line-height:1.65;font-size:15px}
.ar-agandar-dialogue-content p{margin:0 0 14px;text-wrap:pretty}
.ar-agandar-dialogue-actions{display:grid!important;grid-template-columns:1fr;gap:8px!important}
.ar-agandar-dialogue-actions button{text-align:left!important;min-height:44px;white-space:normal;line-height:1.35}
.ar-agandar-dialogue-actions .agandar-nav59{font-size:12px;opacity:.85;border-style:dashed}
/* A room-local prop layer uses the same native coordinates as the room art. */
.ar-azeroth-props59{position:absolute;inset:0;pointer-events:none;z-index:8}
.ar-azeroth-globe59{position:absolute;left:52.25%;top:39.1%;width:4.5%;height:7.2%;padding:0;border:0;background:transparent;pointer-events:auto;cursor:pointer;filter:drop-shadow(1px 2px 1px #070309b0)}
.ar-azeroth-globe59>img{width:100%;height:100%;object-fit:contain;pointer-events:none}
.ar-azeroth-globe59:focus-visible{outline:2px solid #f7a4ce;outline-offset:3px}
.ar-globe-flakes59{position:absolute;left:15%;top:5%;width:70%;height:66%;border-radius:50%;overflow:hidden;pointer-events:none}
.ar-globe-flakes59 i{position:absolute;width:2px;height:2px;border-radius:50%;background:#ffe2f8;opacity:0;left:var(--x);top:-10%}
.ar-azeroth-globe59[data-snow=true] .ar-globe-flakes59 i{animation:globe-snow59 2.6s var(--delay) linear 3}
.ar-azeroth-globe59[data-snow=true]>img{animation:globe-shake59 .38s ease-in-out}
.ar-azeroth-records59{position:absolute;left:93.7%;top:58%;width:6.1%;height:15%;object-fit:contain;filter:brightness(.58) saturate(.78) drop-shadow(-2px 3px 2px #0009)}
#sanctuary-view[data-room-lighting=off] .ar-azeroth-props59{filter:brightness(.65)}
@keyframes globe-snow59{0%{opacity:0;transform:translate(0,0)}10%{opacity:.8}80%{opacity:.5}100%{opacity:0;transform:translate(7px,60px)}}
@keyframes globe-shake59{25%{transform:rotate(-7deg)}75%{transform:rotate(6deg)}}
/* Natural restrained recess: avoid a painted dark band over every pane. */
#sanctuary-view[data-scene=agandar] #sanctuary-scene-bounds::after{opacity:.24!important;mix-blend-mode:multiply}
#sanctuary-view[data-scene=agandar][data-authored-lighting-state$=off] #sanctuary-scene-bounds::after{opacity:.35!important}
.ar-agandar-interior [data-interior-layer=recess-shadows]{opacity:.36!important}
.ar-agandar-interior [data-interior-layer=edge-optics]{opacity:.45!important}
.ar-games-audio59{position:absolute;z-index:160;width:min(330px,calc(100vw - 24px));padding:20px;background:var(--hub-panel,#171310);color:var(--hub-ink,#f3e5c8);border:1px solid var(--hub-accent,#ae8a54);border-radius:14px;box-shadow:0 12px 45px #0008}
.ar-games-audio59 h3{font:22px Georgia;margin:0 0 16px}.ar-games-audio59 label{display:grid;grid-template-columns:1fr 48px;gap:8px;margin:15px 0}.ar-games-audio59 input[type=range]{grid-column:1/-1;width:100%;accent-color:var(--hub-accent,#bc955c)}.ar-games-audio59 button{min-height:44px;padding:9px 16px;border:1px solid currentColor;border-radius:8px;background:transparent;color:inherit;cursor:pointer}
@media(prefers-reduced-motion:reduce){.ar-azeroth-globe59[data-snow=true]>img{animation:none}.ar-azeroth-globe59[data-snow=true] .ar-globe-flakes59 i{animation-duration:5s;animation-iteration-count:1}}
@media(forced-colors:active){.ar-theme-card59,.ar-games-audio59{background:Canvas;color:CanvasText;border-color:CanvasText}.ar-theme-preview59{forced-color-adjust:none}}

.home-games-copy .home-games-cta{display:table!important;margin:24px auto 0!important}.home-games-copy>.ar-section-subtitle:empty{display:none}.ar-content-runner{border-bottom:0!important;background-image:linear-gradient(to bottom,transparent calc(100% - 45px),#08080700)!important}

#ar-site-header,.site-header{border-bottom-color:transparent!important}.ar-runner-bottom-fade59{position:absolute;left:0;right:0;bottom:-20px;height:22px;background:linear-gradient(to bottom,#080807c0,transparent);pointer-events:none}.ar-azeroth-props59[data-lit=false]{filter:brightness(.62)}

.ar-theme-preview59.standard{background-image:url('/assets/props-r59/theme-default-reference.png');background-position:center 10%;background-size:cover}.ar-theme-preview59.cyber{background-image:url('/assets/props-r59/theme-cyber-reference.png');background-size:cover;background-position:center 15%}.ar-theme-preview59.cyber::before{content:none}.ar-theme-preview59.simple{background-image:linear-gradient(115deg,transparent 50%,#131415 50%),url('/assets/props-r59/theme-simple-reference.png');background-size:cover;background-position:center}

/* Light Simple: header glyphs follow the white labels, not the red accent. */
@layer ar-simple {
 html[data-ar-theme="simple"][data-ar-simple-palette="light"] body #sidebar :is(svg,.tree-icon,.ar-route-icon){color:var(--simple-ink,#222)!important;opacity:1!important;filter:none!important;fill:none!important}
 html[data-ar-theme="simple"][data-ar-simple-palette="light"] body #sidebar :is(.tree-group>summary,button,a)>svg{color:inherit!important;stroke:currentColor!important;opacity:1!important}
 html[data-ar-theme="simple"][data-ar-simple-palette="light"] body #sidebar :is(a,button)[style*="background"] svg{color:#fff!important}
}
