* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #1a1a2e;
    color: #eee;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    background: linear-gradient(135deg, #16213e 0%, #1a1a2e 100%);
    padding: 1rem 2rem;
    border-bottom: 1px solid #333;
}

h1 {
    font-size: 1.5rem;
    font-weight: 300;
}

h1 span {
    color: #f39c12;
}

.container {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
}

.map-container {
    flex: 1;
    position: relative;
    background: #0b111f;
    border-radius: 8px;
    overflow: hidden;
    min-height: 500px;
    height: 60vh;
}

#map {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 500px;
    background: #0b111f;
}

#map .gm-style {
    background-color: #0b111f;
}

.info-panel {
    background: #16213e;
    border-radius: 8px;
    padding: 1rem;
}

.info-panel h2 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #f39c12;
}

.info-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.info-item {
    background: rgba(255,255,255,0.05);
    padding: 0.75rem;
    border-radius: 4px;
}

.info-item label {
    font-size: 0.75rem;
    color: #888;
    display: block;
    margin-bottom: 0.25rem;
}

.info-item .value {
    font-size: 1.1rem;
    font-weight: 600;
}

.info-item .value.highlight {
    color: #f39c12;
}

#locked-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.95rem;
}

#locked-links a {
    color: #f8d26b;
    text-decoration: none;
    padding: 0.15rem 0.35rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
}

#locked-links a:hover {
    color: #fff3c4;
    background: rgba(255, 255, 255, 0.12);
}

.cloud-0 {
    color: #5fb4ff;
}

.cloud-1 {
    color: #79bce8;
}

.cloud-2 {
    color: #93c0cf;
}

.cloud-3 {
    color: #a8b8b5;
}

.cloud-4 {
    color: #9a9fa1;
}

.cloud-5 {
    color: #7a7f86;
}

.instructions {
    font-size: 0.85rem;
    color: #888;
    margin-top: 0.5rem;
}

.instructions a {
    color: #888;
    text-decoration: none;
}

.instructions a:hover {
    color: #f39c12;
}

:root {
    --zinc-950: #09090b;
}

/* Body and header darken when eclipse-home is hovered - pure CSS with :has() */
body:has(.eclipse-home:hover) {
    background-color: var(--zinc-950);
}

body:has(.eclipse-home:hover) header {
    background: var(--zinc-950);
    border-bottom-color: #222;
}

/* Eclipse Home Button */
.eclipse-home {
    --size: 48px;
    position: relative;
    z-index: 9999;
    display: inline-block;
    width: var(--size);
    height: var(--size);
    min-width: var(--size);
    min-height: var(--size);
    flex-shrink: 0;
    aspect-ratio: 1;
    cursor: pointer;
}

.eclipse-home a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

/* Sun - always visible, centered */
.eclipse-home .sun {
    position: absolute;
    inset: 10%;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 50%,
        #fff8b0 0%,
        #ffdd44 30%,
        #f39c12 60%,
        #e67e22 80%,
        transparent 100%
    );
    box-shadow:
        0 0 10px 2px rgba(255, 200, 50, 0.6),
        0 0 20px 4px rgba(255, 150, 50, 0.3);
}

/* Moon - overlaps sun, offset in normal state */
.eclipse-home .moon {
    position: absolute;
    inset: 10%;
    border-radius: 50%;
    background: var(--zinc-950);
    transform: translate(-12%, -8%);
    transition: transform 0.4s ease;
    z-index: 2;
}

.eclipse-home:hover .moon {
    transform: translate(0%, 0%);
}

/* Corona layers - low opacity by default */
.eclipse-home .corona {
    position: absolute;
    inset: -30%;
    opacity: 0.1;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.eclipse-home:hover .corona {
    opacity: 0.75;
}

.eclipse-home .corona .layer {
    position: absolute;
    inset: 0;
}

/* Corona layer 1 - inner glow */
.eclipse-home .corona .layer-1 {
    background: radial-gradient(circle at 50% 50%,
        transparent 17%,
        rgba(255, 200, 150, 0.45) 19%,
        rgba(255, 150, 100, 0.2) 25%,
        transparent 35%
    );
}

/* Corona layer 2 - outer glow */
.eclipse-home .corona .layer-2 {
    background: radial-gradient(circle at 50% 50%,
        transparent 15%,
        rgba(255, 185, 147, 0.12) 22%,
        rgba(255, 220, 180, 0.05) 32%,
        transparent 40%
    );
}

/* Corona layer 3 - rays (masked to circle) */
.eclipse-home .corona .layer-3 {
    animation: rotate 30s linear infinite;
    background: repeating-conic-gradient(
        from 0deg at 50% 50%,
        transparent 0%,
        rgba(255, 248, 176, 0.28) 1.8%,
        transparent 3.5%
    );
    mask-image: radial-gradient(circle at 50% 50%, transparent 17%, black 19%, black 36%, transparent 46%);
    -webkit-mask-image: radial-gradient(circle at 50% 50%, transparent 17%, black 19%, black 36%, transparent 46%);
}

/* Corona layer 4 - more rays, slower (masked to circle) */
.eclipse-home .corona .layer-4 {
    animation: rotate 45s linear infinite reverse;
    background: repeating-conic-gradient(
        from 30deg at 50% 50%,
        transparent 0%,
        rgba(255, 200, 100, 0.18) 2.5%,
        transparent 5%
    );
    mask-image: radial-gradient(circle at 50% 50%, transparent 17%, black 19%, black 31%, transparent 43%);
    -webkit-mask-image: radial-gradient(circle at 50% 50%, transparent 17%, black 19%, black 31%, transparent 43%);
}

/* Corona layer 5 - red/pink rim */
.eclipse-home .corona .layer-5 {
    background: radial-gradient(circle at 50% 50%,
        transparent 16%,
        rgba(255, 100, 80, 0.32) 18%,
        rgba(255, 150, 130, 0.1) 21%,
        transparent 27%
    );
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Hero Eclipse (homepage) - uses same structure but larger */
.eclipse-hero {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem 1rem;
    background: var(--zinc-950);
}

.eclipse-hero .eclipse-home {
    --size: min(300px, 50vw);
    cursor: default;
}

.eclipse-hero .eclipse-home .moon {
    transform: translate(0%, 0%);
}

.eclipse-hero .eclipse-home .corona {
    opacity: 0.75;
}

/* Header with eclipse button */
header {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: background 0.4s ease, border-bottom-color 0.4s ease;
}
