* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Roboto', sans-serif;
}

body {
    background: #132959;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
}

.container {
    width: 100%;
    max-width: 400px;
    background: #224587;
    border-radius: 30px;
    padding: 30px 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: 2px solid #7AC3E6;
}

.game-title {
    text-align: center;
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 30px;
    color: white;
    text-shadow: 0 0 3px #7AC3E6;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    color: white;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

.input-group input {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid #7AC3E6;
    border-radius: 15px;
    font-size: 18px;
    color: white;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.input-group input:focus {
    outline: none;
    border-color: #7AC3E6;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(122, 195, 230, 0.3);
}

.primary-btn {
    width: 100%;
    padding: 16px;
    background: #7AC3E6;
    color: #224587;
    border: none;
    border-radius: 15px;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(122, 195, 230, 0.3);
}

.primary-btn:hover {
    background: #9ad4f0;
    transform: translateY(-2px);
}

.primary-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.error-message {
    color: #e94560;
    margin-top: 10px;
    text-align: center;
    font-weight: bold;
}

.player-info {
    display: flex;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid #7AC3E6;
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 20px;
}

.info-badge {
    color: white;
    font-size: 16px;
    font-weight: 600;
}

.info-badge span {
    color: #7AC3E6;
    margin-left: 5px;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid #7AC3E6;
}

.players-list {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid #7AC3E6;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    max-height: 300px;
    overflow-y: auto;
}

.players-list h3 {
    color: white;
    font-size: 18px;
    margin-bottom: 15px;
    text-transform: uppercase;
    text-align: center;
    border-bottom: 2px solid #7AC3E6;
    padding-bottom: 10px;
}

.player-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 8px;
    border-radius: 10px;
    color: white;
    border: 1px solid #7AC3E6;
}

.player-name {
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
}

.player-host-badge {
    background: #7AC3E6;
    color: #224587;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.player-disconnected {
    opacity: 0.6;
    background: rgba(233, 69, 96, 0.2);
    border-left: 4px solid #e94560;
}

.player-disconnected .player-name {
    color: #e94560;
    text-decoration: line-through;
}

.round-indicator {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 18px;
    font-weight: bold;
    padding: 10px;
    border-radius: 25px;
    margin-bottom: 20px;
    border: 2px solid #7AC3E6;
}

.question-box {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid #7AC3E6;
    border-radius: 20px;
    padding: 30px 20px;
    margin-bottom: 30px;
    text-align: center;
}

.question-text {
    color: white;
    font-size: 24px;
    line-height: 1.4;
    font-weight: bold;
}

.answer-area textarea {
    width: 100%;
    padding: 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid #7AC3E6;
    border-radius: 15px;
    font-size: 16px;
    margin-bottom: 15px;
    resize: none;
    color: white;
}

.answer-area textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.answer-area textarea:focus {
    outline: none;
    border-color: #7AC3E6;
    background: rgba(255, 255, 255, 0.15);
}

.vote-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
}

.vote-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid #7AC3E6;
    border-radius: 15px;
    padding: 20px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
    word-wrap: break-word;
}

.vote-btn:hover:not(:disabled) {
    background: rgba(122, 195, 230, 0.2);
    border-color: #7AC3E6;
    transform: translateY(-2px);
}

.vote-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.my-answer {
    opacity: 0.7;
    background: rgba(0, 0, 0, 0.3) !important;
    cursor: not-allowed;
}

.round-info {
    background: #2b1e8b2e;
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
    text-align: center;
    font-size: 18px;
    color: #cbcdd3;
}

.results-list {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid #7AC3E6;
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
}

.result-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 10px;
    border-radius: 10px;
    border: 1px solid #7AC3E6;
}

.result-medal {
    font-size: 24px;
    margin-right: 15px;
    width: 40px;
    text-align: center;
}

.result-name {
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    color: white;
}

.result-score {
    font-size: 20px;
    font-weight: 800;
    color: #7AC3E6;
}

.host-message {
    color: white;
    text-align: center;
    margin-bottom: 15px;
    font-size: 16px;
}

.waiting-message {
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    padding: 20px;
}

.small-text {
    font-size: 14px;
    opacity: 0.6;
    margin-top: 5px;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #224587;
}

::-webkit-scrollbar-thumb {
    background: #7AC3E6;
    border-radius: 4px;
}