* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { overflow: hidden; height: 100%; background: #000; color: #e8e2d0; font-family: 'Cormorant Garamond', serif; }

.intro-overlay { position: fixed; inset: 0; z-index: 100; background: #000; display: flex; align-items: center; justify-content: center; transition: opacity 1.8s cubic-bezier(0.4, 0, 0.2, 1); }
.intro-overlay.hidden { opacity: 0; pointer-events: none; }
#intro-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.7; }
.intro-vignette { position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 20%, rgba(0,0,0,0.85) 100%); pointer-events: none; }
.intro-content { position: relative; z-index: 10; text-align: center; padding: 40px; max-width: 900px; }
.intro-eyebrow { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 6px; color: #c9a96e; text-transform: uppercase; margin-bottom: 48px; opacity: 0; animation: fadeUp 1.5s ease 0.3s forwards; }
.intro-title { display: flex; flex-direction: column; gap: 8px; margin-bottom: 32px; }
.intro-title-line { font-size: clamp(56px, 10vw, 140px); font-weight: 300; font-style: italic; line-height: 1; letter-spacing: -0.02em; color: #e8e2d0; opacity: 0; }
.intro-title-line:nth-child(1) { animation: fadeUp 1.8s ease 0.6s forwards; }
.intro-title-line:nth-child(2) { animation: fadeUp 1.8s ease 0.9s forwards; }
.intro-title em { color: #c9a96e; font-style: italic; position: relative; }
.intro-title em::after { content: ''; position: absolute; bottom: -4px; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, #c9a96e, transparent); opacity: 0.5; }
.intro-sub { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 5px; color: #8a8578; text-transform: uppercase; margin-bottom: 64px; opacity: 0; animation: fadeUp 1.5s ease 1.3s forwards; }
.enter { display: inline-flex; align-items: center; gap: 16px; background: transparent; border: 1px solid rgba(201, 169, 110, 0.4); color: #c9a96e; font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 4px; text-transform: uppercase; padding: 20px 48px; cursor: pointer; transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1); position: relative; overflow: hidden; opacity: 0; animation: fadeUp 1.5s ease 1.6s forwards; }
.enter::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(201, 169, 110, 0.15), transparent); transform: translateX(-100%); transition: transform 0.6s; }
.enter:hover::before { transform: translateX(100%); }
.enter:hover { border-color: #c9a96e; letter-spacing: 5px; box-shadow: 0 0 40px rgba(201, 169, 110, 0.3), inset 0 0 20px rgba(201, 169, 110, 0.1); transform: translateY(-2px); }
.enter-arrow { transition: transform 0.4s; font-size: 16px; }
.enter:hover .enter-arrow { transform: translateX(6px); }
.intro-meta { margin-top: 80px; display: flex; justify-content: center; gap: 16px; font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: 3px; color: #5a5548; text-transform: uppercase; opacity: 0; animation: fadeUp 1.5s ease 1.9s forwards; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

.loading-overlay { position: fixed; inset: 0; z-index: 90; background: #000; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.8s; }
.loading-overlay.visible { opacity: 1; pointer-events: auto; }
.loading-content { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.loading-ring { width: 80px; height: 80px; position: relative; }
.loading-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: rgba(201, 169, 110, 0.15); stroke-width: 1; }
.ring-fill { fill: none; stroke: #c9a96e; stroke-width: 1.5; stroke-dasharray: 283; stroke-dashoffset: 283; transition: stroke-dashoffset 0.4s ease-out; filter: drop-shadow(0 0 6px rgba(201, 169, 110, 0.6)); }
.loading-label { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 5px; color: #8a8578; text-transform: uppercase; }
.loading-status { font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: 3px; color: #c9a96e; text-transform: uppercase; min-height: 14px; }

#canvas-container { position: fixed; inset: 0; cursor: grab; opacity: 0; transition: opacity 1.5s; }
#canvas-container.ready { opacity: 1; }
#canvas-container:active { cursor: grabbing; }

.vignette { position: fixed; inset: 0; pointer-events: none; z-index: 5; background: radial-gradient(ellipse at center, transparent 30%, rgba(0,0,0,0.8) 100%); opacity: 0; transition: opacity 1.5s; }
.vignette.ready { opacity: 1; }
.grain { position: fixed; inset: 0; pointer-events: none; z-index: 6; opacity: 0; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.5'/></svg>"); mix-blend-mode: overlay; transition: opacity 1.5s; }
.grain.ready { opacity: 0.06; }

.masthead { position: fixed; top: 32px; left: 40px; z-index: 20; pointer-events: none; opacity: 0; transition: opacity 1s ease 0.5s; }
.masthead.ready { opacity: 1; }
.masthead .issue { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 3px; color: #8a8578; text-transform: uppercase; margin-bottom: 8px; }
.masthead .title { font-size: 22px; font-weight: 300; font-style: italic; color: #e8e2d0; }
.masthead .title em { color: #c9a96e; }

.planet-info { position: fixed; top: 0; right: 0; bottom: 0; width: 42%; max-width: 640px; padding: 80px 60px 60px; z-index: 18; background: linear-gradient(270deg, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.7) 70%, transparent 100%); backdrop-filter: blur(12px); overflow-y: auto; transform: translateX(100%); transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1); }
.planet-info.visible { transform: translateX(0); }
.planet-info .chapter { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 4px; color: #c9a96e; text-transform: uppercase; margin-bottom: 20px; opacity: 0; transform: translateY(20px); transition: all 0.8s ease 0.4s; }
.planet-info.visible .chapter { opacity: 1; transform: translateY(0); }
.planet-info .name { font-size: clamp(56px, 7vw, 96px); font-weight: 300; font-style: italic; line-height: 0.95; letter-spacing: -0.02em; margin-bottom: 16px; opacity: 0; transform: translateY(30px); transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.5s; }
.planet-info.visible .name { opacity: 1; transform: translateY(0); }
.planet-info .epigraph { font-size: 18px; font-style: italic; color: #c9a96e; line-height: 1.5; margin-bottom: 40px; max-width: 400px; opacity: 0; transform: translateY(20px); transition: all 0.8s ease 0.7s; }
.planet-info.visible .epigraph { opacity: 0.9; transform: translateY(0); }
.planet-info .prose { font-size: 16px; line-height: 1.8; color: #d8d2c0; max-width: 480px; margin-bottom: 40px; opacity: 0; transform: translateY(20px); transition: all 0.8s ease 0.9s; }
.planet-info.visible .prose { opacity: 0.85; transform: translateY(0); }
.planet-info .prose .dropcap { float: left; font-size: 64px; line-height: 0.85; font-weight: 300; font-style: italic; color: #c9a96e; margin: 6px 12px 0 0; }
.planet-info .data-sheet { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid rgba(201, 169, 110, 0.2); padding-top: 24px; opacity: 0; transform: translateY(20px); transition: all 0.8s ease 1.1s; }
.planet-info.visible .data-sheet { opacity: 1; transform: translateY(0); }
.planet-info .datum { padding: 14px 0; border-bottom: 1px solid rgba(201, 169, 110, 0.1); }
.planet-info .datum .label { font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: 2px; color: #8a8578; text-transform: uppercase; margin-bottom: 6px; }
.planet-info .datum .value { font-size: 18px; color: #e8e2d0; }
.planet-info .datum .unit { font-size: 11px; color: #8a8578; font-family: 'JetBrains Mono', monospace; margin-left: 4px; }
.planet-info .close { position: absolute; top: 32px; right: 40px; width: 36px; height: 36px; background: none; border: 1px solid rgba(201, 169, 110, 0.3); border-radius: 50%; color: #c9a96e; cursor: pointer; font-size: 18px; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.5s ease 1.3s, background 0.3s, border-color 0.3s; }
.planet-info.visible .close { opacity: 1; }
.planet-info .close:hover { background: rgba(201, 169, 110, 0.15); border-color: #c9a96e; }

.view-toggle { position: fixed; top: 110px; left: 40px; z-index: 20; display: flex; gap: 4px; background: rgba(10, 10, 15, 0.88); backdrop-filter: blur(12px); border: 1px solid rgba(201, 169, 110, 0.25); border-radius: 8px; padding: 6px; opacity: 0; transition: opacity 1s ease 0.5s; }
.view-toggle.ready { opacity: 1; }
.view-btn { background: transparent; border: none; color: #8a8578; padding: 10px 16px; border-radius: 6px; cursor: pointer; font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: 2px; text-transform: uppercase; transition: all 0.3s; white-space: nowrap; }
.view-btn:hover { color: #e8e2d0; background: rgba(201, 169, 110, 0.08); }
.view-btn.active { color: #c9a96e; background: rgba(201, 169, 110, 0.15); }

.bottom-bar { position: fixed; bottom: 32px; left: 40px; right: 40px; display: flex; justify-content: space-between; align-items: center; z-index: 20; opacity: 0; transition: opacity 1s ease 0.5s; }
.bottom-bar.ready { opacity: 1; }
.planet-nav { display: flex; gap: 2px; }
.planet-nav button { background: none; border: none; width: 24px; height: 24px; cursor: pointer; position: relative; transition: transform 0.3s; }
.planet-nav button:hover { transform: scale(1.3); }
.planet-nav button .orb { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); border-radius: 50%; background: #8a8578; transition: all 0.3s; }
.planet-nav button:hover .orb { background: #c9a96e; }
.planet-nav button.active .orb { background: #c9a96e; box-shadow: 0 0 8px rgba(201, 169, 110, 0.6); }
.nav-arrows { display: flex; gap: 12px; }
.nav-arrows button { width: 44px; height: 44px; border-radius: 50%; background: rgba(245, 241, 232, 0.05); border: 1px solid rgba(245, 241, 232, 0.2); color: #f5f1e8; cursor: pointer; font-size: 18px; transition: all 0.3s; }
.nav-arrows button:hover { background: rgba(201, 169, 110, 0.2); border-color: #c9a96e; }
.counter { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 3px; color: #8a8578; }
.counter .current { color: #f5f1e8; font-size: 14px; }
.hint { position: fixed; bottom: 32px; left: 50%; transform: translateX(-50%); font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 2px; color: #8a8578; z-index: 20; pointer-events: none; opacity: 0; transition: opacity 1s; }
.hint.ready { animation: fadeIn 1s ease 1s forwards; }
@keyframes fadeIn { to { opacity: 0.6; } }

.planet-info::-webkit-scrollbar { width: 1px; }
.planet-info::-webkit-scrollbar-track { background: transparent; }
.planet-info::-webkit-scrollbar-thumb { background: rgba(201, 169, 110, 0.3); }

.sun-marker { position: absolute; pointer-events: none; z-index: 15; }
.sun-marker .dot { width: 10px; height: 10px; border-radius: 50%; background: #ffd866; box-shadow: 0 0 15px #ffd866, 0 0 30px rgba(255, 216, 102, 0.5); animation: pulse 2s ease-in-out infinite; }
.sun-marker .label { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 2px; color: #ffd866; text-transform: uppercase; white-space: nowrap; text-shadow: 0 0 10px rgba(0,0,0,0.9); }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.4); opacity: 0.7; } }