
 *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

 html, body.explore-page {
 height: 100%;
 overflow: hidden;
 background: #050510 !important;
 color: #fff;
 font-family: system-ui, -apple-system, sans-serif;
 --explore-nav: 56px;
 --explore-toolbar: 100px;
 --explore-cookie: 0px;
 }
 body.explore-page.has-cookie-banner {
 --explore-cookie: 92px;
 }

 /* â”€â”€ Backgrounds â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
 #space-bg {
 position: fixed; inset: 0; z-index: 0;
 background:
 url('https://unpkg.com/three-globe/example/img/night-sky.png') center/cover,
 #050510;
 }

 /* â”€â”€ Shared full-screen layer â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
 .full-layer {
 position: fixed;
 top: var(--explore-nav);
 left: 0;
 right: 0;
 bottom: calc(var(--explore-toolbar) + var(--explore-cookie));
 z-index: 10;
 }

 /* â”€â”€ Solar canvas â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
 #solar-canvas {
 position: absolute; inset: 0;
 overflow: hidden;
 }

 #orbit-svg {
 position: absolute; inset: 0;
 width: 100%; height: 100%;
 pointer-events: none;
 }

 /* â”€â”€ Sun â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
 #sun-wrap {
 position: absolute;
 border-radius: 50%;
 cursor: pointer;
 z-index: 20;
 }
 #sun-glow {
 position: absolute; inset: -55%;
 border-radius: 50%;
 background: radial-gradient(circle, rgba(255,220,50,0.35) 0%, rgba(255,130,0,0.12) 50%, transparent 72%);
 animation: pulseSun 3.5s ease-in-out infinite;
 pointer-events: none;
 }
 #sun-sphere {
 position: absolute; inset: 0;
 border-radius: 50%;
 background: radial-gradient(circle at 32% 32%, #fff8b0, #f9d71c 28%, #f99217 55%, #e65c00);
 box-shadow: 0 0 40px rgba(249,215,28,0.9), 0 0 80px rgba(230,92,0,0.45);
 animation: rotateSun 28s linear infinite;
 }
 @keyframes pulseSun {
 0%,100% { opacity: 0.7; transform: scale(1); }
 50% { opacity: 1; transform: scale(1.12); }
 }
 @keyframes rotateSun {
 from { background-position: 0% 50%; }
 to { background-position: 100% 50%; }
 }
 @media (prefers-reduced-motion: reduce) {
 #sun-glow, #sun-sphere, .planet-sphere { animation: none !important; }
 }

 /* â”€â”€ Planet wrappers â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
 .planet-wrap {
 position: absolute;
 cursor: pointer;
 z-index: 20;
 overflow: visible;
 }
 .planet-sphere {
 position: absolute; inset: 0;
 border-radius: 50%;
 transition: filter 0.2s, box-shadow 0.2s;
 }
 .planet-wrap:hover .planet-sphere {
 filter: brightness(1.35);
 }
 .planet-wrap.selected .planet-sphere {
 filter: brightness(1.5);
 box-shadow: 0 0 0 2px rgba(255,255,255,0.5), 0 0 20px rgba(255,255,255,0.25) !important;
 }

 /* Saturn ring */
 .saturn-ring {
 position: absolute;
 left: -52%; top: 30%;
 width: 204%; height: 34%;
 border-radius: 50%;
 border: 4px solid rgba(210,185,125,0.52);
 transform: rotate(12deg);
 pointer-events: none;
 }
 .saturn-ring-back {
 z-index: -1; /* behind sphere */
 }
 .saturn-ring-front {
 z-index: 2; /* in front of sphere */
 border-color: rgba(210,185,125,0.28);
 }

 /* Uranus ring */
 .uranus-ring {
 position: absolute;
 left: -40%; top: 38%;
 width: 180%; height: 22%;
 border-radius: 50%;
 border: 3px solid rgba(125,232,232,0.3);
 transform: rotate(5deg);
 pointer-events: none;
 }

 /* Planet labels */
 .planet-label {
 position: absolute;
 top: calc(100% + 5px);
 left: 50%;
 transform: translateX(-50%);
 font-size: 0.62rem;
 font-weight: 500;
 color: rgba(255,255,255,0.55);
 white-space: nowrap;
 pointer-events: none;
 letter-spacing: 0.03em;
 transition: color 0.2s;
 }
 .planet-wrap:hover .planet-label,
 .planet-wrap.selected .planet-label {
 color: #fff;
 }

 /* â”€â”€ Globe view â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
 #globe-view {
 visibility: hidden;
 pointer-events: none;
 }
 #globe-view.active {
 visibility: visible;
 pointer-events: auto;
 }
 #globe-container {
 position: absolute; inset: 0;
 width: 100%; height: 100%;
 }
 #globe-container canvas {
 display: block;
 }
 #back-solar-btn {
 position: absolute;
 top: 16px; right: 16px;
 z-index: 500;
 background: rgba(0,0,0,0.5);
 backdrop-filter: blur(8px);
 border: 1px solid rgba(255,255,255,0.15);
 border-radius: 10px;
 color: #fff;
 font-size: 0.82rem;
 padding: 7px 14px;
 cursor: pointer;
 transition: background 0.2s;
 }
 #back-solar-btn:hover { background: rgba(255,255,255,0.15); }

 /* â”€â”€ Title overlay â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
 #title-overlay {
 position: fixed;
 top: calc(var(--explore-nav) + 10px);
 left: 12px;
 z-index: 500;
 pointer-events: none;
 color: #fff;
 background: rgba(0,0,0,0.42);
 backdrop-filter: blur(10px);
 padding: 8px 14px;
 border-radius: 11px;
 border: 1px solid rgba(255,255,255,0.09);
 max-width: min(360px, calc(100vw - 24px));
 }
 .title-fact {
 font-size: 0.7rem;
 color: rgba(255,255,255,0.72);
 margin-top: 8px;
 line-height: 1.45;
 border-top: 1px solid rgba(255,255,255,0.08);
 padding-top: 8px;
 }
 .title-fact strong { color: #48db6c; }
 .hub-popular-inline strong { color: #c4b5fd; }
 #title-overlay h1 {
 font-size: clamp(1rem, 2.2vw, 1.5rem);
 font-weight: 700;
 color: #fff;
 margin-bottom: 2px;
 }
 #title-overlay p {
 font-size: 0.75rem;
 color: rgba(255,255,255,0.6);
 }

 /* â”€â”€ Loading overlay â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
 #loading-overlay {
 position: fixed; inset: 0;
 background: rgba(0,0,0,0.88);
 display: flex; flex-direction: column;
 align-items: center; justify-content: center;
 z-index: 9999; color: #fff; gap: 14px;
 transition: opacity 0.5s;
 }
 #loading-overlay.hidden { opacity: 0; pointer-events: none; }
 #loading-overlay .spinner-border {
 width: 3rem; height: 3rem;
 border-width: 0.3em; color: #48db6c;
 }

 /* â”€â”€ Info panel â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
 #info-panel:not(.visible) {
 visibility: hidden;
 pointer-events: none;
 }
 #info-panel {
 position: fixed;
 bottom: -120%;
 left: 50%;
 transform: translateX(-50%);
 width: min(480px, calc(100vw - 20px));
 background: rgba(8,8,28,0.97);
 backdrop-filter: blur(22px);
 border: 1px solid rgba(255,255,255,0.11);
 border-radius: 20px 20px 0 0;
 padding: 18px 20px 24px;
 z-index: 900;
 transition: bottom 0.38s cubic-bezier(0.34,1.2,0.64,1);
 color: #fff;
 max-height: min(70vh, calc(100vh - var(--explore-nav) - var(--explore-toolbar) - var(--explore-cookie) - 24px));
 overflow-y: auto;
 }
 #info-panel.visible {
 visibility: visible;
 pointer-events: auto;
 bottom: calc(var(--explore-toolbar) + var(--explore-cookie) + 6px);
 }

 .panel-handle {
 width: 38px; height: 4px;
 background: rgba(255,255,255,0.2);
 border-radius: 2px;
 margin: 0 auto 14px;
 }
 .panel-header {
 display: flex; align-items: flex-start;
 justify-content: space-between; margin-bottom: 4px;
 }
 .panel-planet-name { font-size: 1.5rem; font-weight: 800; line-height: 1.1; }
 .panel-planet-type {
 font-size: 0.71rem; text-transform: uppercase;
 letter-spacing: 0.1em; opacity: 0.45; margin-bottom: 13px;
 }
 .panel-close {
 background: rgba(255,255,255,0.09); border: none; color: #fff;
 width: 30px; height: 30px; border-radius: 50%;
 display: flex; align-items: center; justify-content: center;
 cursor: pointer; flex-shrink: 0; margin-left: 10px;
 transition: background 0.2s;
 }
 .panel-close:hover { background: rgba(255,255,255,0.2); }

 .facts-grid {
 display: grid; grid-template-columns: 1fr 1fr;
 gap: 8px; margin-bottom: 12px;
 }
 .fact-item {
 background: rgba(255,255,255,0.055);
 border-radius: 10px; padding: 9px 11px;
 }
 .fact-label {
 font-size: 0.65rem; opacity: 0.44;
 text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 3px;
 }
 .fact-value { font-size: 0.87rem; font-weight: 600; }

 .fun-fact-box {
 background: rgba(72,219,108,0.09);
 border-left: 3px solid #48db6c;
 border-radius: 0 8px 8px 0;
 padding: 9px 12px; font-size: 0.82rem;
 line-height: 1.55; margin-bottom: 14px; opacity: 0.92;
 }

 .action-btns { display: flex; flex-wrap: wrap; gap: 10px; }
 .action-btn {
 flex: 1; padding: 11px 14px;
 border: none; border-radius: 11px;
 font-size: 0.88rem; font-weight: 600;
 text-align: center; text-decoration: none;
 cursor: pointer;
 transition: opacity 0.2s, transform 0.15s;
 color: #fff !important;
 }
 .action-btn:hover { opacity: 0.88; transform: translateY(-1px); }
 .btn-globe { background: linear-gradient(90deg, #1a4e6e, #2060b0); }
 .btn-quiz { background: linear-gradient(90deg, #2a8c35, #5b5ea6); }

 /* Tooltip */
 #planet-tooltip {
 position: fixed; z-index: 900;
 background: rgba(8,8,28,0.88);
 backdrop-filter: blur(8px);
 border: 1px solid rgba(255,255,255,0.14);
 color: #fff; padding: 5px 11px;
 border-radius: 8px; font-size: 0.8rem;
 font-weight: 600; pointer-events: none;
 opacity: 0; transition: opacity 0.15s;
 white-space: nowrap;
 }

 #hub-chrome {
 position: fixed;
 z-index: 520;
 top: calc(var(--explore-nav) + 10px);
 right: 12px;
 left: auto;
 display: flex;
 flex-direction: column;
 gap: 6px;
 align-items: flex-end;
 max-width: min(220px, 42vw);
 pointer-events: none;
 }
 #hub-chrome > * { pointer-events: auto; }
 .hub-pill {
 background: rgba(0,0,0,0.55);
 backdrop-filter: blur(10px);
 border: 1px solid rgba(255,255,255,0.1);
 border-radius: 10px;
 color: #fff;
 font-size: 0.68rem;
 padding: 5px 10px;
 line-height: 1.35;
 }
 .hub-pill strong { color: #48db6c; }
 .hub-popular { border-color: rgba(124,58,237,0.4); }
 .hub-badge {
 display: none;
 background: rgba(72,219,108,0.15);
 border: 1px solid rgba(72,219,108,0.35);
 color: #a8f0b8;
 font-size: 0.65rem;
 padding: 4px 10px;
 border-radius: 20px;
 margin-top: 4px;
 }
 .hub-badge.visible { display: inline-block; }

 #solar-toolbar {
 position: fixed;
 bottom: calc(8px + var(--explore-cookie));
 left: 50%;
 transform: translateX(-50%);
 z-index: 850;
 width: min(960px, calc(100vw - 16px));
 display: flex;
 flex-direction: column;
 gap: 6px;
 }
 #mobile-planet-picker {
 display: none;
 flex-direction: row;
 overflow-x: auto;
 gap: 6px;
 padding: 4px 2px;
 -webkit-overflow-scrolling: touch;
 scrollbar-width: thin;
 }
 #mobile-planet-picker::-webkit-scrollbar { height: 4px; }
 .mob-planet-btn {
 flex: 0 0 auto; border: 1px solid rgba(255,255,255,0.14);
 background: rgba(8,8,28,0.88); color: #fff; border-radius: 20px;
 font-size: 0.7rem; padding: 6px 12px; cursor: pointer; white-space: nowrap;
 }
 .mob-planet-btn.active { border-color: #48db6c; background: rgba(72,219,108,0.2); }
 .toolbar-row {
 display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
 justify-content: center;
 background: rgba(8,8,28,0.9); backdrop-filter: blur(14px);
 border: 1px solid rgba(255,255,255,0.1); border-radius: 14px;
 padding: 8px 12px;
 }
 .toolbar-row label {
 font-size: 0.68rem;
 color: rgba(255,255,255,0.65);
 margin: 0;
 font-weight: 600;
 }
 .toolbar-row select.explore-select {
 -webkit-appearance: menulist;
 appearance: menulist;
 background-color: #1e1e3a !important;
 color: #f4f4f8 !important;
 border: 1px solid rgba(255,255,255,0.28) !important;
 border-radius: 8px;
 font-size: 0.8rem;
 font-weight: 600;
 padding: 6px 28px 6px 10px;
 min-width: 96px;
 min-height: 34px;
 line-height: 1.2;
 color-scheme: dark;
 cursor: pointer;
 }
 .toolbar-row select.explore-select option {
 background-color: #1e1e3a;
 color: #f4f4f8;
 }
 .toolbar-row button {
 background: rgba(255,255,255,0.1);
 border: 1px solid rgba(255,255,255,0.18);
 color: #fff;
 border-radius: 8px;
 font-size: 0.75rem;
 padding: 6px 12px;
 cursor: pointer;
 }
 .toolbar-row button:hover { background: rgba(255,255,255,0.18); }
 .scale-badge {
 font-size: 0.65rem; color: rgba(255,255,255,0.45);
 padding: 2px 8px; border-radius: 6px;
 background: rgba(255,255,255,0.05);
 }

 #compare-modal, #faq-drawer, #dwarf-drawer {
 position: fixed; inset: 0; z-index: 1100;
 background: rgba(0,0,0,0.75); display: none;
 align-items: flex-end; justify-content: center;
 padding: 12px;
 }
 #compare-modal.open, #faq-drawer.open, #dwarf-drawer.open { display: flex; }
 .modal-sheet {
 background: #0c0c22; border: 1px solid rgba(255,255,255,0.12);
 border-radius: 16px 16px 0 0; width: min(520px, 100%);
 max-height: 85vh; overflow-y: auto; color: #fff; padding: 18px;
 }
 .modal-sheet h3 { font-size: 1.1rem; margin-bottom: 12px; }
 .compare-table { width: 100%; font-size: 0.78rem; border-collapse: collapse; }
 .compare-table th, .compare-table td {
 padding: 8px 6px; border-bottom: 1px solid rgba(255,255,255,0.08);
 text-align: left;
 }
 .faq-item { margin-bottom: 14px; }
 .faq-item strong { display: block; font-size: 0.85rem; margin-bottom: 4px; }
 .faq-item p { font-size: 0.78rem; opacity: 0.8; margin: 0; line-height: 1.5; }

 .panel-teaser {
 font-size: 0.72rem; opacity: 0.55; margin-bottom: 10px; line-height: 1.45;
 }
 .panel-links { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
 .panel-link {
 font-size: 0.72rem; color: #7eb8ff; text-decoration: none;
 border-bottom: 1px dotted rgba(126,184,255,0.4);
 }
 .panel-link:hover { color: #a8d4ff; }
 .panel-share-row { display: flex; gap: 8px; margin-bottom: 10px; }
 .btn-share {
 flex: 0 0 auto; padding: 8px 12px; border-radius: 9px; font-size: 0.78rem;
 background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
 color: #fff; cursor: pointer;
 }
 .hub-teaser-box {
 background: rgba(255,255,255,0.05); border-radius: 10px;
 padding: 10px 12px; margin-bottom: 12px; font-size: 0.8rem;
 }
 .hub-teaser-q { font-weight: 600; margin-bottom: 8px; line-height: 1.4; }
 .hub-teaser-opt {
 display: block; width: 100%; text-align: left; margin-bottom: 6px;
 padding: 7px 10px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.1);
 background: rgba(255,255,255,0.04); color: #fff; font-size: 0.76rem; cursor: pointer;
 }
 .hub-teaser-opt.correct { border-color: #48db6c; background: rgba(72,219,108,0.15); }
 .hub-teaser-opt.wrong { border-color: #e74c3c; opacity: 0.7; }
 .dwarf-card {
 background: rgba(255,255,255,0.05);
 border: 1px solid rgba(255,255,255,0.1);
 border-radius: 10px;
 padding: 10px 12px;
 margin-bottom: 8px;
 font-size: 0.78rem;
 color: rgba(255,255,255,0.85);
 cursor: pointer;
 }
 .dwarf-card:hover { border-color: rgba(255,255,255,0.25); }
 .dwarf-card strong { display: block; font-size: 0.88rem; color: #fff; margin-bottom: 4px; }

 body.scale-real .planet-wrap, body.scale-real #sun-wrap {
 transition: width 0.4s, height 0.4s, left 0.4s, top 0.4s;
 }

 @media (max-width: 768px) {
 body.explore-page { --explore-toolbar: 128px; }
 #mobile-planet-picker { display: flex; }
 #hub-chrome { display: none; }
 #title-overlay { max-width: calc(100vw - 24px); }
 }
 @media (min-width: 769px) {
 #hub-chrome { max-width: 240px; }
 }
 