@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Noto+Sans+JP:wght@400;700&display=swap');

:root {
    --primary: #00f2ff;
    --secondary: #ff00ea;
    --bg-dark: #0a0a12;
    --text: #ffffff;
    --overlay: rgba(10, 10, 18, 0.85);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text);
    font-family: 'Noto Sans JP', sans-serif;
    overflow: hidden;
    height: 100vh;
}

#game-container {
    position: relative;
    width: 100%;
    height: 100%;
}

canvas {
    display: block;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 4rem;
    letter-spacing: 0.5rem;
    color: var(--primary);
    text-shadow: 0 0 20px var(--primary);
    margin-bottom: 3rem;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 10px var(--primary), 0 0 20px var(--primary);
    }

    to {
        text-shadow: 0 0 20px var(--primary), 0 0 40px var(--primary), 0 0 60px var(--primary);
    }
}

.sub-logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 2rem;
    text-shadow: 0 0 15px var(--primary);
}

.input-group p {
    text-align: center;
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 0.5rem;
}

.menu-content {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem;
    color: #fff;
    border-radius: 5px;
    font-size: 1rem;
    text-align: center;
    transition: all 0.3s;
}

input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 10px rgba(0, 242, 255, 0.3);
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn {
    padding: 1.2rem;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
}

.btn.primary {
    background: linear-gradient(45deg, var(--primary), #00a2ff);
    color: #000;
}

.btn.secondary {
    background: transparent;
    border: 2px solid var(--secondary);
    color: var(--secondary);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.btn.primary:hover {
    box-shadow: 0 0 20px var(--primary);
}

.btn.secondary:hover {
    background: var(--secondary);
    color: #fff;
    box-shadow: 0 0 20px var(--secondary);
}

.instruction {
    text-align: center;
    font-size: 0.9rem;
    color: #aaa;
    margin-top: 1rem;
}

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

#player-hud-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#player-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.player-status {
    background: rgba(0, 0, 0, 0.6);
    padding: 12px;
    border-left: 5px solid var(--primary);
    width: 250px;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
}

.player-status.remote {
    border-left-color: var(--secondary);
}

.hp-bar-bg {
    width: 100%;
    height: 12px;
    background: #222;
    margin-top: 8px;
    border-radius: 6px;
    overflow: hidden;
}

.hp-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff0055, #ff00ea);
    transition: width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#log-container {
    align-self: flex-start;
    margin-top: auto;
    margin-bottom: 20px;
}

#message-log {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.log-entry {
    background: rgba(0, 0, 0, 0.6);
    color: var(--primary);
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 0.9rem;
    animation: slideIn 0.3s ease-out;
    border-left: 2px solid var(--primary);
}

@keyframes slideIn {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

#game-info {
    position: absolute;
    top: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 15px;
    border-radius: 20px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    color: #aaa;
}

.hidden {
    display: none !important;
}

#result-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--secondary);
}

#result-msg {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}