body {
    margin: 0;
    background-color: #000;
    color: #fff;
    font-family: 'Arial', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    text-align: center;
}

#intro-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    max-width: 960px;
    max-height: 90vh;
    overflow: auto;
    padding: 16px;
}

#intro-screen h1 {
    font-size: 4em;
    color: #ff0;
    margin-bottom: 0.5em;
}

#intro-screen p {
    font-size: 1.5em;
    margin-bottom: 1.5em;
}

#start-button {
    font-size: 1.5em;
    padding: 0.5em 1em;
    background-color: #ff0;
    color: #000;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

#start-button:hover {
    background-color: #fff;
}

#game-container {
    position: relative;
}

/* Intro: monsters preview */
.section-title { margin: 8px 0; font-size: 1.25em; color: #ffd966; }
.mob-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    width: 100%;
}
.status-section { width: 100%; }
.mob-card {
    background: rgba(0,0,0,0.35);
    border: 1px solid #444;
    border-radius: 8px;
    padding: 10px;
    text-align: left;
}
.mob-card h3 { margin: 6px 0; font-size: 1.05rem; color: #fff; }
.mob-card p { margin: 4px 0 0 0; font-size: 0.95rem; color: #cfcfcf; }
.mob-icon { width: 100%; height: 110px; display: block; background: rgba(255,255,255,0.02); border-radius: 6px; }
.mob-note { font-size: .95rem; color: #bbb; margin: 4px 0 0 0; }

/* Info/How-To sections */
.info-grid { width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.info-card { background: rgba(0,0,0,0.35); border: 1px solid #444; border-radius: 8px; padding: 10px; text-align: left; }
.info-card h3 { margin: 4px 0 8px 0; font-size: 1.05rem; color: #fff; }
.info-card ul { margin: 0; padding-left: 18px; text-align: left; }
.info-card li { margin: 4px 0; font-size: 0.95rem; color: #cfcfcf; }

#ui {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 20px;
    font-size: 1.5em;
}
/* Tighter font for counters so UI fits */
#ui div { font-size: 1rem; }
/* Lacy badge styling */
#lacy-badge.hud-badge {
    padding: 4px 8px;
    background: rgba(0, 128, 192, 0.25);
    border: 1px solid #2a6f9d;
    border-radius: 6px;
    color: #cfefff;
}

#ready {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4em;
    color: #ff0;
    display: none;
}

#minimap {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 200px;
    height: 200px;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid #555;
    border-radius: 6px;
}

#mute-toggle {
    font-size: 1rem;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #555;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
}

#pointer-hint {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 12px;
    background: rgba(0,0,0,0.7);
    border: 1px solid #666;
    border-radius: 6px;
    color: #fff;
    font-size: 1rem;
    pointer-events: none;
}

#crosshair-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

#crosshair {
    width: 50px;
    height: 50px;
    opacity: 0.9;
}

#compass {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1rem;
    padding: 4px 8px;
    background: rgba(0,0,0,0.5);
    border: 1px solid #444;
    border-radius: 4px;
}

#shop-modal {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.6);
    z-index: 10;
}

#shop-modal .shop-panel {
    width: 520px;
    max-width: 90vw;
    background: rgba(20,20,20,0.95);
    border: 1px solid #555;
    border-radius: 8px;
    padding: 16px;
    text-align: left;
}

#shop-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 12px 0;
}

.shop-card {
    border: 1px solid #444;
    padding: 10px;
    border-radius: 6px;
    background: rgba(0,0,0,0.5);
}
.shop-card h3 { margin: 0 0 6px 0; font-size: 1.1rem; }
.shop-card .row { display:flex; justify-content: space-between; margin: 6px 0; }
.shop-card button { padding: 6px 10px; border: 1px solid #666; border-radius: 4px; background: #222; color: #fff; cursor: pointer; }
.shop-card button:disabled { opacity: 0.5; cursor: not-allowed; }

#proximity-indicator {
    display: none; /* disabled overlay to avoid crosshair interference */
}

/* Party overlay */
#party-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.85);
    z-index: 9999;
}
#party-overlay .party-card {
    width: min(920px, 92vw);
    padding: 16px;
    background: rgba(10,10,20,0.9);
    border: 1px solid #5a5a7a;
    border-radius: 10px;
}
.party-title {
    font-size: 2rem;
    color: #ffd966;
    margin-bottom: 8px;
}
.party-sub {
    margin-top: 8px;
    font-size: 1rem;
    color: #ddd;
}
