@font-face{font-family:Space;src:url('./assets/space-regular.ttf') format('truetype');font-weight:400;font-display:swap}
@font-face{font-family:Space;src:url('./assets/space-medium.ttf') format('truetype');font-weight:500 700;font-display:swap}
@font-face{font-family:Bricolage;src:url('./assets/bricolage-semibold.ttf') format('truetype');font-weight:600;font-display:swap}
:root{color-scheme:dark;--night:#080d23;--ink:#f3edf9;--soft:#d7d4ed;--gold:#f0caa1;--line:#d2c8e443;--veil:radial-gradient(70% 40px at 50% 0,#f1d9a814,transparent 70%),linear-gradient(#0a103080,#080c24a8 30%,#070b1fb8);--veil-dense:radial-gradient(70% 60px at 50% 0,#f1d9a817,transparent 70%),linear-gradient(#0a1030c4,#080c24e6 40%,#070b1ff0);--hairline:linear-gradient(90deg,transparent,#e9d2a852 22%,#e9d2a852 78%,transparent);--hairline-left:linear-gradient(90deg,#e9d2a84d,transparent 92%);font-family:Space,sans-serif;font-synthesis:none}
*{box-sizing:border-box}
html{overflow-x:hidden;touch-action:pan-x pan-y;-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{margin:0;min-height:100svh;display:grid;place-items:center;background:#030714;color:var(--ink)}
button{font:inherit;color:inherit;cursor:pointer}
button,summary{-webkit-tap-highlight-color:transparent}
button,a,summary,[role=button]{touch-action:manipulation}
h1,h2,h3{text-wrap:balance}
button:focus-visible,summary:focus-visible,.sphere-node:focus-visible,.scroll-viewport:focus-visible{outline:2px solid #e9d5ff;outline-offset:4px}
::selection{background:#674da9;color:#fff}
.device{position:relative;height:calc(100svh - 40px);width:calc((100svh - 40px)*9/16);max-width:100vw;overflow:hidden;border-radius:24px;background:var(--night);box-shadow:0 24px 80px #0008;isolation:isolate}
.atmosphere{position:absolute;inset:0;overflow:hidden;z-index:-1;pointer-events:none}
.nebula{position:absolute;will-change:transform;background-repeat:no-repeat}
.nebula-far{inset:-70px -36px;background-image:linear-gradient(#080c2420,#080c2433),url('./assets/nebula.webp');background-size:cover;background-position:center;opacity:.94;animation:nebula-float-far 32s ease-in-out -8s infinite alternate}
.nebula-near{inset:-120px -84px;background-image:url('./assets/nebula-near.webp');background-size:cover;background-position:center;opacity:.45;mix-blend-mode:screen;animation:nebula-float-near 22s ease-in-out -12s infinite alternate}
/* Independent translation composes with the scroll-driven transform. */
@keyframes nebula-float-far{from{translate:-7px -5px}to{translate:7px 5px}}
@keyframes nebula-float-near{from{translate:16px -10px}to{translate:-16px 12px}}
.stardust{position:absolute;inset:-35px -15px;will-change:transform}
.dust{position:absolute;display:block;background:#e3dcff;border-radius:50%;box-shadow:0 0 4px #bdb4ff6b}
.scroll-viewport{height:100%;overflow-x:hidden;overflow-y:auto;overscroll-behavior-y:contain;scrollbar-width:thin;scrollbar-color:#a899ca55 transparent;scroll-padding-top:82px}
.scroll-viewport::-webkit-scrollbar{width:3px}
.scroll-viewport::-webkit-scrollbar-thumb{background:#a899ca55;border-radius:3px}
.icon-button{width:40px;height:40px;display:grid;place-items:center;border:0;background:transparent;padding:9px;color:var(--gold);border-radius:50%}
svg{display:block}
.icon-button svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.profile-button{display:flex;align-items:center;gap:8px;background:none;border:0;padding:0;font-size:13px;color:var(--gold)}
.intro{text-align:center;padding:25px 29px 8px}
h1,h2,h3{font-family:Bricolage,Space,sans-serif;font-weight:600;letter-spacing:-.025em}
h1{font-size:34px;margin:0 0 10px;color:#f7dfc6}
.intro p{font-size:13px;line-height:1.65;margin:0 auto;max-width:32ch;color:#e9e2f3}
.intro strong{font-weight:500;color:#f6e9db}
.tree-figure{margin:0;padding:0 1px}
.tree-svg{width:100%;height:auto;overflow:visible;font-family:Space,sans-serif}
.world-circles{will-change:transform;transform-box:view-box;transform-origin:center}
.sphere-node{cursor:pointer;outline:none}
.sphere-node:hover .sphere-focus,.sphere-node:focus-visible .sphere-focus{opacity:1}
.tree-figure figcaption{text-align:center;font-size:11px;letter-spacing:.01em;color:#dfd5ed;margin:-6px 0 28px}
h2{font-size:25px;line-height:1.15;margin:0 0 21px;color:#f6e3d1;max-width:14ch}
details{border-top:1px solid var(--line)}
details:last-of-type{border-bottom:1px solid var(--line)}
summary{list-style:none;display:flex;align-items:center;gap:12px;min-height:61px;font-size:15px;cursor:pointer;color:#f1e6f4}
summary::-webkit-details-marker{display:none}
summary>svg:first-child{color:#e7cbae}
details[open] .chevron{transform:rotate(180deg)}
.section-copy{font-size:13px;line-height:1.7;color:#ded4ed;margin:0 0 18px}
.line-legend{display:grid;gap:17px;margin:4px 0 22px}
.legend-row{display:flex;align-items:center;gap:13px;color:#e8dff1;font-size:12px;line-height:1.5}
.line-sample{flex:0 0 68px;display:grid;place-items:center;height:32px}
.line-sample svg{overflow:visible}
[hidden]{display:none!important}
.sheet-backdrop{position:absolute;inset:0;z-index:10;background:radial-gradient(120% 70% at 50% 100%,#030513b8,#03051340);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}
.study-sheet{position:absolute;bottom:0;left:0;right:0;z-index:11;max-height:82%;overflow-y:auto;padding:40px 25px 34px;background:var(--veil-dense);-webkit-backdrop-filter:blur(18px) saturate(1.15);backdrop-filter:blur(18px) saturate(1.15);border-radius:0;box-shadow:none;-webkit-mask:linear-gradient(transparent,#000 34px);mask:linear-gradient(transparent,#000 34px);animation:sheet-in .28s cubic-bezier(.16,1,.3,1)}
.sheet-handle{position:absolute;top:22px;left:12%;right:12%;width:auto;height:30px;border-top:1px solid #e9d2a866;border-radius:50% 50% 0 0/100% 100% 0 0;background:none;-webkit-mask:linear-gradient(90deg,transparent,#000 35%,#000 65%,transparent);mask:linear-gradient(90deg,transparent,#000 35%,#000 65%,transparent)}
.sheet-close{position:absolute;right:12px;top:30px;color:#f1e2c6}
.study-sheet h2{font-size:30px;margin:12px 35px 3px 0}
.sheet-subtitle{color:#d5c6e5;font-size:13px;margin:0 0 23px}
.study-sheet p{font-size:13px;line-height:1.75;color:#e1d6ec}
.study-sheet dl{margin:20px 0 4px}
.study-sheet dl div{padding:12px 0;border-top:1px solid;border-image:var(--hairline-left) 1}
.study-sheet dt{font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:#e2c896;margin-bottom:6px}
.study-sheet dd{font-size:14px;line-height:1.55;margin:0;color:#f5e7f5}
.sheet-orb{width:62px;height:62px}
@keyframes sheet-in{from{transform:translateY(18px);filter:blur(3px)}to{transform:translateY(0);filter:blur(0)}}
@media(max-width:600px){.device{height:min(100svh,calc(100vw*16/9));width:min(100vw,calc(100svh*9/16));border-radius:0;box-shadow:none}body{background:#040817}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.nebula,.stardust,.world-circles{transform:none!important}}

/* The two contexts share one glass surface and independent tree layers. */
.scroll-viewport{scroll-padding-top:132px}
.icon-button,.profile-button{color:#e1dcfa}
.tree-tabs{position:sticky;top:64px;z-index:5;display:grid;grid-template-columns:1fr 1fr;gap:4px;margin:8px 18px 0;padding:5px;border:1px solid #d4def044;border-radius:21px;background:linear-gradient(145deg,#d0d3ee26,#0a123099 65%);backdrop-filter:blur(22px) saturate(140%);box-shadow:inset 0 1px 0 #ffffff1c}
.tree-tabs button{min-height:41px;border:1px solid transparent;border-radius:15px;background:transparent;color:#e1d7ef;font-size:12px;letter-spacing:.005em}
.tree-tabs button[aria-selected="true"]{color:#fff8ff;border-color:#e8eaff36;background:linear-gradient(130deg,#c8c4f03b,#8790c319 70%);box-shadow:inset 0 1px 0 #ffffff25}
h1{font-size:32px;color:#f2edff}
.tree-scene{position:relative}
#tree-mount{position:relative;z-index:1}
.world-circles{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;will-change:transform;transform-origin:center}
.path-node{cursor:pointer;outline:none}
.path-node .path-geometry{transition:opacity .2s,filter .2s}
.path-node:hover .path-geometry,.path-node:focus-visible .path-geometry{opacity:1;filter:brightness(1.45)}
.path-node:hover .path-focus,.path-node:focus-visible .path-focus{opacity:1}
.path-node:focus-visible .path-marker{filter:brightness(1.5);outline:none}
.path-node:hover .path-marker{filter:brightness(1.2)}
.reading-support{padding:0 24px 96px;background:linear-gradient(transparent,#090c2280 80%)}
.study-note{font-size:12px;line-height:1.8;color:#e3d9ee;margin:0 0 25px}
.reading-support summary svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.reading-support summary .chevron{width:17px;height:17px;margin-left:auto;color:#d5c9ea;transition:transform .2s}
.reading-support details[open] .chevron{transform:rotate(180deg)}
.study-sheet{background:linear-gradient(145deg,#c1b7ef1c,#10152de8 32%);backdrop-filter:blur(28px) saturate(140%);border-top:1px solid #dfdaff58;border-radius:28px 28px 0 0}
.sheet-orb{display:block;width:76px;height:76px;margin-top:2px}
.hebrew-name{display:inline-block;margin-left:8px;color:#e8dafa;font-size:20px}
.correspondence-symbol{display:inline-block;min-width:24px;margin-right:8px;color:#e8dafa;font-family:serif;font-size:22px;vertical-align:middle}
.correspondence-symbol svg,.correspondence-symbol img{display:inline-block;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.5;vertical-align:middle}
#sheet-content>.path-letter{display:block;font-size:58px;line-height:1.1;color:#e9ddff;text-shadow:1px 3px 12px #978cce5c}
.personal-path-number{display:grid;place-items:center;width:68px;height:68px;background:url('./assets/path-marker.svg') center/contain no-repeat;color:#ece6fb;font-size:26px}
.path-reading{margin-top:23px}
.path-reading-item{padding:15px 0;border-top:1px solid #d6c8ed2b}
.path-reading-item p{margin-bottom:0}
.path-cycle{margin:0;padding:15px 0;border-top:1px solid #d6c8ed2b;color:#eddcc7}

/* Ações de recuperação também aparecem fora da página de perfis. */
.profile-action { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 10px 16px; font: inherit; color: inherit; }
