/* style.css */

/* for index.html */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { overflow: hidden; background: #000; }
#renderCanvas { width: 100vw; height: 100vh; display: block; }
#crosshair {
    position: fixed; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    color: white; font-size: 24px; pointer-events: none; opacity: 0.7;
}
#ui {
    position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
    background: rgba(0,0,0,0.6); color: #fff; padding: 10px 20px;
    border-radius: 8px; font-family: Arial, sans-serif; font-size: 13px;
    text-align: center; pointer-events: none;
}
#sign {
    position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
    background: rgba(0,0,0,0.6); color: #ffd700; padding: 8px 20px;
    border-radius: 8px; font-family: Arial, sans-serif; font-size: 16px;
    font-weight: bold; pointer-events: none;
}
#minimapCanvas {
    position: fixed;
    bottom: 12px;
    right: 12px;
    width: 200px;
    height: 200px;
    border-radius: 6px;
    box-shadow: 0 0 12px rgba(0,0,0,0.7);
    image-rendering: pixelated;
    z-index: 20;
    cursor: default;
}
#weatherCanvas {
    position: fixed;
    bottom: 12px;
    right: 222px;
    z-index: 20;
    cursor: default;
    border-radius: 10px;
}


/* map.js */



/* ── INTERACTION HINT ────────────────────────────────────────────────────── */

#interact-hint {
    position:        fixed;
    bottom:          18%;
    left:            50%;
    transform:       translateX(-50%);
    display:         flex;
    align-items:     center;
    gap:             10px;
    background:      rgba(0, 0, 0, 0.55);
    color:           #fff;
    padding:         8px 18px;
    border-radius:   24px;
    font-family:     sans-serif;
    font-size:       0.95rem;
    letter-spacing:  0.04em;
    pointer-events:  none;
    user-select:     none;
    opacity:         0;
    transition:      opacity 0.2s ease;
}

#interact-hint.visible {
    opacity: 1;
}

.hint-key {
    display:      inline-block;
    background:   rgba(255, 255, 255, 0.25);
    border:       1px solid rgba(255, 255, 255, 0.6);
    border-radius: 6px;
    padding:      2px 9px;
    font-weight:  700;
    font-size:    1rem;
}

.hint-label {
    font-weight: 400;
}

/* ── INTERACTION POPUP ───────────────────────────────────────────────────── */

#interaction-popup {
    position:        fixed;
    inset:           0;
    display:         flex;
    align-items:     center;
    justify-content: center;
    background:      rgba(0, 0, 0, 0.55);
    z-index:         1000;
    opacity:         0;
    pointer-events:  none;
    transition:      opacity 0.25s ease;
}

#interaction-popup.visible {
    opacity:        1;
    pointer-events: all;
}

#popup-inner {
    position:        relative;
    background:      rgba(15, 20, 35, 0.92);
    color:           #e8eaf0;
    border:          1px solid rgba(255, 255, 255, 0.15);
    border-radius:   14px;
    padding:         36px 40px 32px;
    max-width:       520px;
    width:           90%;
    box-shadow:      0 8px 40px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    font-family:     sans-serif;
}

#popup-close {
    position:    absolute;
    top:         14px;
    right:       16px;
    background:  transparent;
    border:      none;
    color:       rgba(255, 255, 255, 0.6);
    font-size:   1.5rem;
    line-height: 1;
    cursor:      pointer;
    padding:     0 4px;
    transition:  color 0.15s;
}

#popup-close:hover {
    color: #fff;
}

#popup-title {
    margin:        0 0 14px;
    font-size:     1.4rem;
    font-weight:   700;
    color:         #ffffff;
    padding-right: 24px;
}

#popup-description {
    margin:      0 0 18px;
    font-size:   0.95rem;
    line-height: 1.65;
    color:       #c8cdd8;
}

#popup-links {
    list-style: none;
    margin:     0;
    padding:    0;
    display:    flex;
    flex-direction: column;
    gap:        8px;
}

#popup-links li a {
    display:         inline-block;
    color:           #7eb8f7;
    font-size:       0.9rem;
    text-decoration: none;
    word-break:      break-all;
    transition:      color 0.15s;
}

#popup-links li a:hover {
    color:           #aed4ff;
    text-decoration: underline;
}


/** OBJECT LABEL **/
#object-label {
    position: fixed;
    top: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-family: sans-serif;
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 6px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

#object-label.visible {
    opacity: 1;
}

