@font-face {
    font-family: quan;
    src: url(../fonts/Quan/Quan.otf);
}

@font-face {
    font-family: quan-black;
    src: url(../fonts/Quan/Quan-Black.otf);
}

@font-face {
    font-family: quan-book;
    src: url(../fonts/Quan/Quan-Book.otf);
}

@font-face {
    font-family: quan-bold;
    src: url(../fonts/Quan/Quan-Bold.otf);
}

@font-face {
    font-family: nexa;
    src: url(../fonts/Nexa/NexaRegular.otf);
}

@font-face {
    font-family: nexa-black;
    src: url(../fonts/Nexa/NexaBlack.otf);
}

@font-face {
    font-family: nexa-light;
    src: url(../fonts/Nexa/NexaLight.otf);
}

@font-face {
    font-family: nexa-bold;
    src: url(../fonts/Nexa/NexaBold.otf);
}

:root {

}

::-webkit-scrollbar {
    visibility: hidden;
    width: 0;
    height: 0;
}


body {
    font-family: nexa-black, serif;
    padding: 0;
    margin: 0;
    overflow: hidden;
    background: #05060d;
    color: #e9ecf5;
}

canvas {
    display: block;
}

/* ---------------- HUD ---------------- */

#hud {
    position: fixed;
    top: 24px;
    left: 28px;
    z-index: 10;
    pointer-events: none;
    user-select: none;
}

#hud-title {
    font-family: nexa-black, sans-serif;
    font-size: 22px;
    letter-spacing: 0.35em;
    color: #ffffff;
    text-shadow: 0 0 18px rgba(120, 170, 255, 0.35);
}

#hud-sub {
    margin-top: 6px;
    font-family: nexa-light, sans-serif;
    font-size: 12px;
    letter-spacing: 0.18em;
    color: rgba(220, 230, 255, 0.55);
    text-transform: uppercase;
}

/* ---------------- Tooltip ---------------- */

#star-tooltip {
    position: fixed;
    z-index: 20;
    min-width: 220px;
    max-width: 320px;
    padding: 14px 16px;
    pointer-events: none;
    background: rgba(10, 14, 26, 0.78);
    border: 1px solid rgba(140, 180, 255, 0.25);
    border-radius: 8px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5),
                0 0 24px rgba(120, 170, 255, 0.08) inset;
    color: #e9ecf5;
    transform: translate(14px, 14px);
    transition: opacity 0.18s ease;
    opacity: 1;
}

#star-tooltip.hidden {
    opacity: 0;
    pointer-events: none;
}

.star-tooltip-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(140, 180, 255, 0.18);
}

#star-name {
    font-family: nexa-black, sans-serif;
    font-size: 15px;
    letter-spacing: 0.12em;
    color: #ffffff;
    text-transform: uppercase;
}

#star-constellation {
    font-family: nexa-light, sans-serif;
    font-size: 10px;
    letter-spacing: 0.2em;
    color: rgba(180, 200, 255, 0.7);
    text-transform: uppercase;
}

#star-description {
    font-family: nexa, sans-serif;
    font-size: 12.5px;
    line-height: 1.5;
    color: rgba(225, 232, 250, 0.85);
}

/* ---------------- Make-a-wish button ---------------- */

#wish-btn {
    position: fixed;
    right: 28px;
    bottom: 28px;
    z-index: 30;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(10, 14, 26, 0.78);
    border: 1px solid rgba(140, 180, 255, 0.25);
    border-radius: 999px;
    color: #e9ecf5;
    font-family: nexa-black, sans-serif;
    font-size: 12px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
    transition: transform 0.15s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    user-select: none;
}

#wish-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(180, 210, 255, 0.55);
    box-shadow: 0 0 30px rgba(140, 180, 255, 0.22),
                0 8px 22px rgba(0, 0, 0, 0.5);
}

#wish-btn:active {
    transform: translateY(0);
}

#wish-btn .wish-star {
    color: #ffe999;
    font-size: 15px;
    text-shadow: 0 0 10px rgba(255, 230, 153, 0.85);
}

#wish-btn .wish-label {
    padding-top: 1px;
}

/* ---------------- Recenter buttons (top right) ---------------- */

#recenter-panel {
    position: fixed;
    top: 24px;
    right: 28px;
    z-index: 30;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    padding-right: 2px;
    pointer-events: none; /* container itself is transparent; buttons re-enable */
}

.recenter-btn {
    pointer-events: auto;
    min-width: 160px;
    padding: 9px 14px;
    background: rgba(10, 14, 26, 0.72);
    border: 1px solid rgba(140, 180, 255, 0.20);
    border-radius: 999px;
    color: #e9ecf5;
    font-family: nexa-black, sans-serif;
    font-size: 10.5px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    text-align: center;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform 0.15s ease, border-color 0.25s ease,
                background-color 0.25s ease, box-shadow 0.25s ease;
    user-select: none;
}

.recenter-btn:hover {
    transform: translateX(-2px);
    border-color: rgba(180, 210, 255, 0.55);
    background: rgba(18, 26, 48, 0.85);
    box-shadow: 0 0 22px rgba(140, 180, 255, 0.18);
}

.recenter-btn.recenter-all {
    border-color: rgba(180, 210, 255, 0.40);
    color: #ffffff;
}

/* ---------------- Zodiac info panel (left side) ---------------- */

#zodiac-panel {
    position: fixed;
    top: 96px;
    left: 28px;
    z-index: 25;
    width: 320px;
    max-height: calc(100vh - 130px);
    overflow-y: auto;
    padding: 20px 22px 22px;
    background: rgba(10, 14, 26, 0.82);
    border: 1px solid rgba(140, 180, 255, 0.25);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.55),
                0 0 24px rgba(120, 170, 255, 0.06) inset;
    color: #e9ecf5;
    opacity: 1;
    transform: translateX(0);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#zodiac-panel.hidden {
    opacity: 0;
    transform: translateX(-18px);
    pointer-events: none;
}

#zodiac-close {
    position: absolute;
    top: 6px;
    right: 8px;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    color: rgba(220, 230, 255, 0.55);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
    transition: color 0.2s ease, background-color 0.2s ease;
}

#zodiac-close:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

.zp-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.zp-glyph {
    font-size: 38px;
    color: #ffe999;
    text-shadow: 0 0 16px rgba(255, 230, 153, 0.7);
    line-height: 1;
    min-width: 36px;
    text-align: center;
}

.zp-name {
    font-family: nexa-black, sans-serif;
    font-size: 18px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.zp-dates {
    margin-top: 4px;
    font-family: nexa-light, sans-serif;
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(200, 215, 255, 0.65);
}

.zp-meta {
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(140, 180, 255, 0.18);
    font-family: nexa, sans-serif;
    font-size: 11.5px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(200, 215, 255, 0.78);
}

#zodiac-panel section {
    margin-bottom: 14px;
}

#zodiac-panel section:last-child {
    margin-bottom: 0;
}

#zodiac-panel h4 {
    margin: 0 0 5px;
    font-family: nexa-black, sans-serif;
    font-size: 10.5px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(180, 210, 255, 0.78);
}

#zodiac-panel p {
    margin: 0;
    font-family: nexa, sans-serif;
    font-size: 12.5px;
    line-height: 1.55;
    color: rgba(225, 232, 250, 0.88);
}

.zp-compatibility {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 2px;
}

.zp-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px 6px 9px;
    background: rgba(20, 28, 50, 0.78);
    border: 1px solid rgba(140, 180, 255, 0.22);
    border-radius: 999px;
    font-family: nexa-black, sans-serif;
    font-size: 10.5px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #e9ecf5;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease,
                transform 0.15s ease, box-shadow 0.2s ease;
}

.zp-chip:hover {
    border-color: rgba(180, 210, 255, 0.6);
    background: rgba(34, 46, 78, 0.92);
    transform: translateY(-1px);
    box-shadow: 0 0 14px rgba(140, 180, 255, 0.18);
}

.zp-chip-glyph {
    color: #ffe999;
    font-size: 14px;
    text-shadow: 0 0 8px rgba(255, 230, 153, 0.7);
    line-height: 1;
}
