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

body {
    font-family: 'Space Mono', monospace;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    max-width: 800px;
    width: 90%;
    padding: 2rem;
}

header {
    text-align: center;
    margin-bottom: 2rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

.game-rules {
    background: rgba(255,255,255,0.1);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.game-rules h2 {
    margin-bottom: 1rem;
    color: #ffd700;
}

.game-rules ul {
    list-style: none;
    padding-left: 0;
}

.game-rules li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.game-rules li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #ffd700;
    font-weight: bold;
}

.difficulty-selector {
    background: rgba(255,255,255,0.1);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.difficulty-selector label {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffd700;
}

.difficulty-selector select {
    width: 100%;
    padding: 0.8rem;
    font-size: 1.1rem;
    font-family: 'Space Mono', monospace;
    background: rgba(255,255,255,0.9);
    color: #1e3c72;
    border: 2px solid #ffd700;
    border-radius: 10px;
    cursor: pointer;
    outline: none;
}

.difficulty-selector select:focus {
    border-color: #ff4757;
    box-shadow: 0 0 10px rgba(255,71,87,0.3);
}

.game-area {
    text-align: center;
}

.start-button {
    background: #ffd700;
    color: #1e3c72;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: 700;
    font-family: 'Space Mono', monospace;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255,215,0,0.4);
}

.start-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,215,0,0.6);
}

.hidden {
    display: none;
}

.simon-speaking {
    background: rgba(255,255,255,0.1);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.simon-avatar {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.game-interface {
    background: rgba(255,255,255,0.1);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.timer-container {
    margin-bottom: 1.5rem;
}

.timer {
    font-size: 3rem;
    font-weight: 700;
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.timer.warning {
    color: #ff4757;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

#typeInput {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    font-family: 'Space Mono', monospace;
    border: 2px solid #ffd700;
    border-radius: 10px;
    background: rgba(255,255,255,0.9);
    color: #1e3c72;
    margin-bottom: 1rem;
    outline: none;
}

#typeInput:focus {
    border-color: #ff4757;
    box-shadow: 0 0 10px rgba(255,71,87,0.3);
}

#submitBtn {
    background: #2ed573;
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'Space Mono', monospace;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#submitBtn:hover:not(:disabled) {
    background: #26d068;
    transform: translateY(-2px);
}

#submitBtn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
}

.game-status {
    margin-top: 1rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.game-over {
    background: rgba(255,255,255,0.1);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.game-over h2 {
    color: #ff4757;
    margin-bottom: 1rem;
    font-size: 2rem;
}

#gameOverMessage {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.tab-navigation {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.tab-button {
    background: rgba(255,255,255,0.1);
    color: white;
    border: 2px solid rgba(255,215,0,0.3);
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'Space Mono', monospace;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.tab-button:hover {
    border-color: #ffd700;
    background: rgba(255,255,255,0.15);
}

.tab-button.active {
    background: #ffd700;
    color: #1e3c72;
    border-color: #ffd700;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.leaderboard-container {
    background: rgba(255,255,255,0.1);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.leaderboard-container h2 {
    text-align: center;
    font-size: 2rem;
    color: #ffd700;
    margin-bottom: 2rem;
}

.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.leaderboard-entry {
    background: rgba(255,255,255,0.1);
    padding: 1.5rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

.leaderboard-entry:hover {
    background: rgba(255,255,255,0.15);
    transform: translateX(5px);
}

.leaderboard-entry.top-1 {
    border: 2px solid #ffd700;
    background: rgba(255,215,0,0.2);
}

.leaderboard-entry.top-2 {
    border: 2px solid #c0c0c0;
}

.leaderboard-entry.top-3 {
    border: 2px solid #cd7f32;
}

.leaderboard-position {
    font-size: 2rem;
    font-weight: 700;
    color: #ffd700;
    min-width: 50px;
    text-align: center;
}

.leaderboard-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #ffd700;
}

.leaderboard-info {
    flex: 1;
}

.leaderboard-username {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.leaderboard-score {
    font-size: 1rem;
    opacity: 0.8;
}

.loading {
    text-align: center;
    font-size: 1.2rem;
    opacity: 0.7;
}

.score-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
    background: rgba(255,255,255,0.1);
    padding: 1.5rem;
    border-radius: 10px;
}

.stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
}

.stat-label {
    font-weight: 700;
    color: #ffd700;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
}

.admin-container {
    background: rgba(255,255,255,0.1);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.admin-container h2 {
    text-align: center;
    font-size: 2rem;
    color: #ffd700;
    margin-bottom: 2rem;
}

.roast-examples-details {
    background: rgba(255,255,255,0.1);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.roast-examples-details summary {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffd700;
    cursor: pointer;
    margin-bottom: 1rem;
}

.add-example-section {
    margin: 1.5rem 0;
}

.example-input {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    font-family: 'Space Mono', monospace;
    border: 2px solid #ffd700;
    border-radius: 10px;
    background: rgba(255,255,255,0.9);
    color: #1e3c72;
    outline: none;
}

.example-input:focus {
    border-color: #ff4757;
    box-shadow: 0 0 10px rgba(255,71,87,0.3);
}

.examples-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.example-entry {
    background: rgba(255,255,255,0.1);
    padding: 1rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.example-entry:hover {
    background: rgba(255,255,255,0.15);
}

.example-number {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffd700;
    min-width: 40px;
}

.example-text {
    flex: 1;
    font-size: 1rem;
    line-height: 1.5;
}

.delete-button {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    transition: transform 0.2s ease;
    filter: hue-rotate(0deg);
}

.delete-button:hover {
    transform: scale(1.1);
}