/* star/roblox_classic/css/style.css */
body {
    margin: 0;
    overflow: hidden;
    background-color: #000;
    font-family: 'Roboto', sans-serif;
}

#game-container {
    width: 100vw;
    height: 100vh;
}

#hud {
    position: fixed;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* TOP BAR (Roblox Style) */
#top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    padding: 5px 15px;
    border-radius: 8px;
    color: #fff;
    pointer-events: auto;
}

#experience-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

#rbx-logo {
    height: 24px;
}

#player-list-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    cursor: pointer;
}

/* SIDEBAR (Tools) */
#sidebar {
    position: absolute;
    top: 70px;
    left: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: auto;
}

.sidebar-item {
    width: 42px;
    height: 42px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.sidebar-item.active {
    background: #00A2FF;
    /* Roblox Blue */
    border-color: #fff;
}

.icon {
    width: 24px;
    height: 24px;
    filter: invert(1);
}

/* CHAT AREA */
#chat {
    width: 320px;
    max-height: 200px;
    display: flex;
    flex-direction: column;
    pointer-events: auto;
}

#chat-box {
    background: rgba(0, 0, 0, 0.2);
    overflow-y: auto;
    padding: 8px;
    font-size: 14px;
    color: #fff;
    text-shadow: 1px 1px 2px #000;
}

#chat-input {
    background: rgba(0, 0, 0, 0.5);
    border: none;
    padding: 8px;
    color: #fff;
    outline: none;
    border-radius: 4px;
}

/* OVERLAY */
#overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

#overlay.hidden {
    display: none;
}

.card {
    background: #23222B;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    color: #fff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid #393B42;
    min-width: 320px;
}

h1 {
    margin: 0 0 10px;
    font-size: 32px;
    font-weight: 900;
    letter-spacing: 2px;
}

.rbx-btn-primary {
    background: #00A2FF;
    color: #fff;
    border: none;
    padding: 12px 60px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
    margin-top: 20px;
}

.rbx-btn-primary:hover {
    scale: 1.05;
    background: #39C0FF;
}

.controls-guide {
    margin-top: 30px;
    font-size: 14px;
    color: #BBB;
    text-align: left;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

/* HUD STATS (Health) */
#stat-bar {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
}

#health-bar-container {
    width: 6px;
    height: 120px;
    background: #333;
    border-radius: 3px;
    overflow: hidden;
}

#health-bar-fill {
    width: 100%;
    height: 100%;
    background: #00E676;
    /* Green */
    transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}