@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

@font-face {
    font-family: 'The Led Display';
    src: url('../fonts/TheLedDisplay.ttf') format('truetype');
}


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

html,
body {
    width: 100%;
    height: 100%;
}

h1,
h2 {
    font-weight: normal;
    font-family: "The Led Display", monospace;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: #33FF33;
    text-shadow: 0 0 2px #33FF33, 0 0 5px #33FF33;
}

body {
    font-family: "The Led Display", monospace;
    background-color: #020f02;
    color: #33FF33;
    overflow: hidden;
}

.menu {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 40px 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
}

.menu::before {
    content: "";
    position: fixed;
    inset: 0;
    background: url("../textures/noise.png") repeat;
    mix-blend-mode: screen;
    opacity: 0.40;
    pointer-events: none;
    z-index: 0;
}

.menu::after {
    content: "";
    position: fixed;
    inset: 0;
    background-image: linear-gradient(rgba(0, 0, 0, 0.25) 1px, transparent 1px);
    background-size: 100% 3px;
    mix-blend-mode: multiply;
    opacity: 0.25;
    pointer-events: none;
}

.menu-header {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-top: 20px;
}

.subtitle {
    font-size: 1.5rem;
}

.title {
    font-size: 4.8rem;
    margin-top: 10px;
}

.detective {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 78%;
    width: auto;
    opacity: 0.92;
    z-index: 1;
    image-rendering: crisp-edges;
    image-rendering: -moz-crisp-edges;
    image-rendering: pixelated;
}


.settings-button {
    position: absolute;
    right: 40px;
    bottom: 40px;
    width: 44px;
    height: 44px;
    border: none;
    background: none;
    cursor: pointer;
    z-index: 3;
}

.settings-button img {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 6px #33FF33);
    transition: 0.15s;
}

.settings-button:hover img {
    transform: scale(1.06);
    filter: drop-shadow(0 0 10px #33FF33);
}

@media (max-width: 768px) {
    .subtitle {
        font-size: 1rem;
    }

    .title {
        font-size: 2.6rem;
    }

    .settings-button {
        right: 20px;
        bottom: 20px;
        width: 34px;
        height: 34px;
    }
}

.settings-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 10, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
}

.settings-modal.hidden {
    display: none;
}

.settings-window {
    width: 360px;
    max-width: 85svw;
    padding: 28px 30px;
    border: 2px solid #33FF33;
    background: rgba(0, 20, 0, 0.95);
    box-shadow: 0 0 20px #33FF33;
    text-align: center;
}

.settings-window h3 {
    font-size: 1.2rem;
    margin-bottom: 25px;
    letter-spacing: 0.2em;
}

.setting-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.setting-row label {
    font-size: 1rem;
    letter-spacing: 0.15em;
}

.setting-row input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: #0a300a;
    border: 1px solid #33FF33;
    outline: none;
}

.setting-row input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 22px;
    background: #33FF33;
    cursor: pointer;
}

#settings-close {
    background: transparent;
    border: 1px solid #33FF33;
    color: #33FF33;
    font-family: "The Led Display", monospace;
    letter-spacing: 0.15em;
    padding: 10px 22px;
    cursor: pointer;
}

#settings-close:hover {
    background: rgba(0, 40, 0, 0.8);
    box-shadow: 0 0 10px #33FF33;
}

.action-buttons {
    position: absolute;
    left: 30px;
    bottom: 30px;
    display: flex;
    gap: 20px;
    z-index: 3;
}

.action-button {
    border: 2px solid #33FF33;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.15);
    color: #33FF33;
    font-family: 'The Led Display', monospace;
    font-size: 2.2rem;
    padding: 0 30px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
    letter-spacing: 0.1em;
    text-shadow: 0 0 2px #33FF33, 0 0 5px #33FF33;
    line-height: 1;
}

.action-button:hover {
    background: rgba(0, 40, 0, 0.8);
    box-shadow: 0 0 12px #33FF33, 0 0 28px #33FF33;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .action-buttons {
        left: 20px;
        bottom: 20px;
        gap: 10px;
        display: flex;
        flex-direction: column;
    }

    .action-button {
        font-size: 1.8rem;
        padding: 0 20px;
        height: 72px;
    }
}

#team-modal .settings-window {
    width: 400px;
    max-width: 90vw;
    padding: 20px;
}

#team-code-input {
    background: #000;
    border: 1px solid #33FF33;
    color: #33FF33;
    padding: 10px;
    font-family: 'VT323', monospace;
    width: 100%;
    box-sizing: border-box;
    outline: none;
    font-size: 1.3rem;
}

#team-code-input:focus {
    box-shadow: 0 0 8px #33FF33;
}

.team-modal-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
}

.team-modal-btn {
    background: transparent;
    border: 1px solid #33FF33;
    color: #33FF33;
    padding: 10px 0;
    cursor: pointer;
    font-family: 'The Led Display', monospace;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    width: 100%;
}

.team-modal-btn:hover {
    background: rgba(51, 255, 51, 0.2);
    box-shadow: 0 0 10px #33FF33;
}

#team-modal-error {
    color: #ff3333;
    font-size: 0.9rem;
    margin-top: 15px;
    display: none;
    text-align: center;
    font-family: 'VT323', monospace;
}

#team-modal-error::first-letter {
    text-transform: uppercase;
}

#team-modal-error::after {
    content: '.';
}

@media (max-width: 480px) {
    .team-modal-btn {
        font-size: 0.7rem;
        padding: 8px 0;
    }

    .team-modal-buttons {
        gap: 8px;
    }

    #team-modal .settings-window {
        padding: 15px;
    }

    #team-code-input {
        font-size: 0.9rem;
        padding: 8px;
    }
}

.member-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0;
    max-height: 300px;
    overflow-y: auto;
}

.member-option {
    background: transparent;
    border: 1px solid #33FF33;
    color: #33FF33;
    padding: 10px;
    font-family: 'VT323', monospace;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.member-option:hover {
    background: rgba(51, 255, 51, 0.2);
}

.member-option.selected {
    background: #33FF33;
    color: #000;
}

.member-option:disabled {
    border-color: #666;
    color: #666;
    cursor: not-allowed;
}

.member-option:disabled:hover {
    background: transparent;
}

#member-modal-error {
    font-size: 0.5rem;
    margin-top: 1rem;
}