@font-face{font-family:HydrogenHebrew;src:url('../assets/elipedia-hebrew.woff2') format('woff2');font-display:swap}
:root{color-scheme:dark;font-family:Arial,sans-serif;color:#edf4ff;background:#050c19;--muted:#91a7c0;--line:#b2d2ff25;--ice:#c4e7ff}
*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0;overflow:hidden}button,a,input,select{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{font:inherit;color:inherit;cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #b2dfff;outline-offset:4px}button:disabled{opacity:.45}svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
#hydrogen-app{height:100vh;height:100dvh;min-height:380px;position:relative;overflow:hidden;background:radial-gradient(ellipse at 45% 42%,#0d1c35 0%,#070f20 46%,#030912 100%)}#scene{position:absolute;inset:0}#scene canvas{display:block;width:100%;height:100%;touch-action:none;outline:none}#scene::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,#050c1988,transparent 25%,transparent 55%,#050c1944 74%,#050c19d9)}
.top-actions{position:absolute;top:max(22px,env(safe-area-inset-top));left:max(22px,env(safe-area-inset-left));display:flex;direction:ltr;gap:8px}.round{width:42px;height:42px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;border:1px solid var(--line);background:#0a172b9e;backdrop-filter:blur(16px);color:#deecff;text-decoration:none;font-size:19px}.round:hover{background:#213a58}.isotope{position:absolute;right:24px;top:max(22px,env(safe-area-inset-top));text-align:right}.segmented{display:inline-flex;border:1px solid var(--line);padding:3px;gap:2px;border-radius:22px;background:#0c192db8;backdrop-filter:blur(18px)}.segmented button{border:0;background:transparent;border-radius:18px;padding:9px 14px;font-size:12px;color:#9fb4cb}.segmented button[aria-pressed=true]{background:#d0e7f6;color:#152a40}.isotope small{display:block;font-size:10px;color:#93a8c2;margin:9px 4px}.stage{position:absolute;right:28px;top:118px;display:flex;gap:8px;align-items:center;font-size:12px;color:#a8bed7;pointer-events:none}.live-dot{width:4px;height:4px;border-radius:100%;background:#8ccdf6;box-shadow:0 0 12px #69bbff}.scale{position:absolute;left:29px;top:100px;direction:ltr;font-size:10px;color:#a4bad4;pointer-events:none}.scale>div{height:7px;border:1px solid #9db2cb;border-top:0;margin-top:7px;width:70px}.nucleon-choice{position:absolute;right:24px;top:150px}.nucleon-choice button{padding:7px 12px;font-size:11px}.zoom-buttons{position:absolute;right:22px;top:39%;display:grid;border:1px solid var(--line);border-radius:22px;overflow:hidden;background:#0e1a2ca8;backdrop-filter:blur(12px)}.zoom-buttons button{width:39px;height:42px;border:0;background:transparent;font-size:23px}.zoom-buttons button+button{border-top:1px solid var(--line)}
.bottom{position:absolute;bottom:max(13px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:min(540px,calc(100% - 32px));text-align:center;pointer-events:none}.bottom>*{pointer-events:auto}.caption{pointer-events:none;text-shadow:0 3px 22px #020813}.caption h1{font:500 clamp(24px,3vw,34px)/1.3 HydrogenHebrew,Georgia,serif;margin:0 0 9px}.caption p{font-size:13px;line-height:1.75;color:#b3c4d9;margin:0 auto 20px;max-width:440px;min-height:44px}.journey-actions{display:flex;justify-content:center;gap:8px;align-items:center;flex-wrap:wrap}.primary,.secondary{display:inline-flex;justify-content:center;align-items:center;padding:11px 20px;border:1px solid #d7edff42;border-radius:30px;background:#c6e6fa;color:#11253c;min-height:42px;font-size:12px;font-weight:bold}.primary:hover{background:#e2f2ff}.secondary{background:#122540aa;backdrop-filter:blur(14px);color:#c7deee;border-color:#b0d4ff35;font-weight:normal}.text-action{background:none;border:0;color:#b5dbf5;font-size:11px;padding:8px}.depth-stops{display:flex;align-items:center;justify-content:center;gap:13px;margin-top:15px;font-size:10px;color:#516a87}.depth-stops button{color:#9bb5d0;font-size:11px;background:none;border:0;padding:6px 2px}.depth-stops button:hover{color:white}.depth-rail{display:flex;align-items:center;direction:ltr;gap:12px;margin:3px auto 7px;max-width:440px;font-size:9px;color:#7993b3}.depth-rail input{flex:1;min-width:0}input[type=range]{-webkit-appearance:none;height:22px;accent-color:#cae6ff;cursor:pointer;background:transparent;margin:0}input[type=range]::-webkit-slider-runnable-track{height:3px;background:#98b9dc42;border-radius:3px}input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:15px;height:15px;border-radius:50%;background:#c9e5fb;margin-top:-6px;box-shadow:0 0 15px #c9e5fb30}input[type=range]::-moz-range-track{height:3px;background:#98b9dc42}input[type=range]::-moz-range-thumb{width:15px;height:15px;border:0;background:#c9e5fb;border-radius:50%}.gesture-hint{font-size:9px;line-height:1.5;color:#748ca8;margin:0}
.glass{border:1px solid #b9d4ff27;background:#0c182ce8;backdrop-filter:blur(24px);box-shadow:0 14px 48px #0004;border-radius:18px}.lab{text-align:right;margin:0 auto 13px;padding:13px 17px 10px}.lab-heading{display:flex;align-items:center;justify-content:space-between;font-size:10px;color:#91acc9;border-bottom:1px solid #b6daff14;padding-bottom:7px}.lab-heading .text-action{padding:1px}.event-row{display:flex;align-items:center;justify-content:space-between;margin-top:10px;gap:10px}.event-row strong{font-size:12px;font-weight:normal;color:#e6f1fd}.event-row bdi{font-family:ui-monospace,monospace;font-size:10px;color:#a7c9f3;white-space:nowrap}.lab p{margin:7px 0 8px;color:#b4c7dd;line-height:1.6;font-size:11px;min-height:36px}.energy{width:100%;padding:0;border:0;background:transparent;text-align:right;font-size:9px;color:#859cb7}.energy-heading{display:flex;justify-content:space-between;margin-bottom:5px}.energy-bar{height:5px;border-radius:5px;overflow:hidden;display:flex;background:#152b44;gap:2px}.energy-bar span{height:100%;display:block;transition:width .15s linear}.energy>span{display:block;font-size:9px;margin-top:5px;color:#90a5be;word-spacing:1px}.timeline{display:flex;direction:ltr;align-items:center;gap:9px;margin:8px 0 6px}.timeline input{flex:1;min-width:0}.mini{border:1px solid var(--line);border-radius:50%;width:30px;height:30px;background:#1b304b80;font-size:14px;padding:0}.lab-options{display:flex;justify-content:space-between;gap:8px;align-items:center;color:#8da3bf;font-size:10px}.lab-options select{font:inherit;color:#c3d5e8;border:1px solid var(--line);border-radius:7px;background:#11243c;padding:5px;max-width:155px}.lab-options>span{font-size:8px;color:#7d94b0}.lab-options label{white-space:nowrap}
.tag{position:absolute;transform:translate(-50%,-100%);border:1px solid #e4b37c42;border-radius:20px;padding:5px 9px;background:#111d2db8;font-size:11px;color:#efc69c;pointer-events:none;white-space:nowrap;backdrop-filter:blur(8px)}.tag.neutron{color:#9ccee7;border-color:#8ec8ea40}.tag.particle{background:#091629b8;border-color:#a7caeb28;font:12px ui-monospace,monospace;direction:ltr;padding:5px 8px}.tag.packet{color:#e1ecfa;border:0;background:#0a1729a8;font:10px ui-monospace,monospace;direction:ltr;padding:4px 6px}
.inspector{position:absolute;left:24px;top:152px;width:300px;max-height:calc(100dvh - 310px);padding:21px;overflow:auto;overscroll-behavior:contain;z-index:10;text-align:right}.inspector small{font-size:10px;color:#87abc9}.inspector h2{font:24px/1.35 HydrogenHebrew,Georgia,serif;margin:10px 0}.inspector p{font-size:12px;color:#bbccdd;line-height:1.85;margin:0}.inspector dl{font-size:11px;display:grid;grid-template-columns:auto 1fr;gap:10px;padding-top:14px;border-top:1px solid var(--line)}.inspector dt{color:#829fbd}.inspector dd{margin:0;text-align:left;unicode-bidi:plaintext}.inspector .primary{margin-top:6px}.close{position:absolute;left:8px;top:6px;width:33px;height:33px;background:none;border:0;font-size:25px;color:#a8bfd4}.help-dialog{width:min(590px,calc(100% - 28px));max-height:85dvh;color:#d8e6f3;padding:27px;line-height:1.8;overscroll-behavior:contain}.help-dialog::backdrop{background:#010813b8;backdrop-filter:blur(8px)}.help-dialog h2{font:29px HydrogenHebrew,serif;margin:4px 0 20px}.help-dialog h3{font-size:15px;margin-top:24px}.help-dialog p,.help-dialog li{font-size:13px;color:#b0c4db}.help-dialog a{color:#b5dcf8}.help-dialog ul{padding-right:18px}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}#loading{position:absolute;inset:0;display:grid;place-content:center;z-index:20;background:#070f1d;color:#bad5e8;padding:32px;text-align:center;font-size:14px;line-height:1.8}
@media(max-width:600px){.top-actions{left:14px;top:max(16px,env(safe-area-inset-top));gap:5px}.round{width:34px;height:34px;font-size:17px}.round svg{width:19px}.isotope{right:13px;top:max(15px,env(safe-area-inset-top))}.segmented button{font-size:10px;padding:8px 10px}.isotope small{font-size:8px;margin-top:7px}.stage{top:96px;right:17px;font-size:10px;max-width:190px}.scale{top:80px;left:18px;font-size:9px}.nucleon-choice{top:124px;right:13px}.zoom-buttons{right:12px;top:35%}.zoom-buttons button{width:32px;height:38px}.bottom{width:calc(100% - 24px);bottom:max(10px,env(safe-area-inset-bottom))}.caption h1{font-size:26px}.caption p{font-size:12px;max-width:330px;margin-bottom:16px}.primary,.secondary{padding:10px 15px;min-height:38px;font-size:11px}.depth-stops{margin-top:9px;gap:12px}.depth-stops button{font-size:10px}.gesture-hint{font-size:8px}.lab{padding:10px 12px 9px;margin-bottom:9px}.lab p{font-size:10px;min-height:32px;margin:6px 0}.event-row strong{font-size:11px}.event-row bdi{font-size:9px}.lab-options{gap:5px;font-size:9px}.lab-options select{max-width:140px;padding:4px}.lab-options>span{display:none}.timeline{margin:6px 0}.mini{width:28px;height:28px}.inspector{left:13px;top:135px;width:min(300px,calc(100% - 60px));max-height:calc(100dvh - 285px);padding:18px}.inspector h2{font-size:22px}}
@media(max-height:680px){.caption h1{font-size:23px}.caption p{font-size:11px;min-height:0;margin-bottom:10px}.gesture-hint{display:none}.lab p{display:none}.lab{padding-top:8px;padding-bottom:7px}.lab-heading{padding-bottom:5px}.event-row{margin-top:7px}.depth-stops{margin-top:4px}.energy-heading{margin-top:5px}.bottom{bottom:6px}}
@media(max-height:500px) and (min-width:600px){.bottom{left:16px;transform:none;width:310px;bottom:12px}.lab p,.gesture-hint,.depth-stops{display:none}.stage{top:96px}.caption h1{font-size:24px}.caption p{font-size:11px}.inspector{left:auto;right:75px;top:110px;max-height:calc(100dvh - 130px)}.lab{padding:9px 12px}.journey-actions{gap:6px}.primary,.secondary{font-size:10px;padding:8px 12px;min-height:32px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto}.energy-bar span{transition:none}}

/* Quiet viewer: all controls live in a closed bottom drawer. When opened, the
   canvas gets its own smaller viewport; explanations never cover the model. */
#scene::after{display:none}
.tools-toggle{position:absolute;z-index:12;bottom:max(12px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);border:1px solid #bad9f22b;background:#0a172bd9;color:#b8cee1;border-radius:24px;min-height:36px;padding:8px 20px;font-size:11px;backdrop-filter:blur(14px)}
.tools-panel{position:absolute;z-index:11;bottom:max(56px,calc(env(safe-area-inset-bottom) + 44px));left:50%;transform:translateX(-50%);width:min(540px,calc(100% - 20px));max-height:44dvh;padding:15px 16px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;text-align:center;border-radius:20px}
.tools-panel .top-actions{position:static;justify-content:center;margin:0 0 12px;gap:10px}
.tools-panel .isotope{position:static;text-align:center;margin:0 0 10px}
.tools-panel .nucleon-choice{position:static;margin:0 0 12px}
.tools-panel .stage,.tools-panel .scale,.tools-panel .zoom-buttons,.tools-panel #tags,.tools-panel .gesture-hint{display:none!important}
.tools-panel .bottom{position:static;transform:none;width:100%;text-align:center;pointer-events:auto}
.tools-panel .caption h1{font-size:22px;margin:5px 0 8px}
.tools-panel .caption p{font-size:11px;min-height:0;max-width:none;margin-bottom:14px}
.tools-panel .inspector{position:relative;inset:auto;width:100%;max-height:none;min-height:0;padding:18px;margin:0 0 12px;text-align:right}
.tools-panel .lab{margin:0 0 13px}.tools-panel .lab p{display:block}
.tools-panel .lab-heading{gap:8px}.tools-panel #show-lab{margin:0 0 12px}
.tools-panel .depth-stops{display:flex;margin-top:8px}
@media(max-height:500px){.tools-panel{max-height:44dvh;padding:10px 14px}.tools-panel .top-actions{margin-bottom:8px}}
