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

html {
    min-height: 100%;
    height: 100%;
    background-color: #0a0a0a;
}

body {
    font-family: 'Arial Black', 'Arial Bold', Gadget, sans-serif;
    background-color: #0F4C5C;
    background-image: linear-gradient(135deg, #0F4C5C 0%, #2E8B78 30%, #1CA9C9 50%, #3CB371 70%, #0F4C5C 100%);
    background-attachment: fixed;
    background-size: cover;
    background-repeat: no-repeat;
    color: #FFFDF7;
    min-height: 100vh;
    min-height: -webkit-fill-available;
    overflow-x: hidden;
    box-shadow: inset 0 0 200px rgba(60, 179, 113, 0.2);
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

#app {
    width: 100%;
    min-height: 100vh;
    min-height: -webkit-fill-available;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

@media (max-width: 768px) {
    #app {
        padding: 10px;
    }
}

.page {
    display: none;
    width: 100%;
    max-width: 900px;
    animation: fadeIn 0.4s ease-in;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hq-container {
    background: rgba(244, 233, 216, 0.95);
    border: 4px solid #3CB371;
    border-radius: 25px;
    padding: 40px;
    box-shadow: 0 0 40px rgba(60, 179, 113, 0.6), 0 0 60px rgba(28, 169, 201, 0.4), 0 0 80px rgba(255, 111, 145, 0.3);
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

/* Typography */
.main-title {
    font-family: 'Impact', 'Arial Black', sans-serif;
    font-size: 6.5rem;
    font-weight: 900;
    text-align: center;
    color: #1CA9C9;
    margin-bottom: 20px;
    letter-spacing: 8px;
    text-transform: uppercase;
    text-shadow: 4px 4px 0px #0F4C5C, 6px 6px 20px rgba(28, 169, 201, 0.4);
    position: relative;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@media (max-width: 768px) {
    .main-title {
        font-size: 4rem;
        letter-spacing: 8px;
    }
}

.subtitle {
    font-size: 1.5rem;
    text-align: center;
    color: #00d4ff;
    margin-bottom: 50px;
    letter-spacing: 4px;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.page-title {
    font-size: 3rem;
    text-align: center;
    color: #1CA9C9;
    margin-bottom: 10px;
    letter-spacing: 4px;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.page-subtitle {
    font-size: 1.2rem;
    text-align: center;
    color: #0F4C5C;
    margin-bottom: 30px;
    font-weight: bold;
}

/* Buttons */
.game-btn {
    background: linear-gradient(135deg, #2E8B78, #3CB371, #1CA9C9);
    border: 4px solid #FFD966;
    border-radius: 20px;
    padding: 20px;
    font-size: 2rem;
    color: #FFFDF7;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    letter-spacing: 3px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
    min-height: 0;
}

.game-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 50px rgba(255, 217, 102, 0.8), 0 0 70px rgba(255, 111, 145, 0.5), 0 0 90px rgba(255, 140, 106, 0.4);
    border-color: #FF8C6A;
}

.game-btn.glow {
    animation: glow 5s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 217, 102, 0.7), 0 0 30px rgba(60, 179, 113, 0.5);
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 217, 102, 1), 0 0 60px rgba(255, 140, 106, 0.8), 0 0 80px rgba(255, 111, 145, 0.6);
    }
}

.game-icon {
    display: block;
    font-size: 4rem;
    margin-bottom: 20px;
}

.game-title {
    display: block;
}

.action-btn {
    background: linear-gradient(135deg, #FF6F91, #FF8C6A, #FFD966);
    border: 3px solid #8B6B4F;
    border-radius: 15px;
    padding: 20px 40px;
    font-size: 1.5rem;
    color: #FFFDF7;
    cursor: pointer;
    font-weight: bold;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(255, 140, 106, 0.5), 0 5px 30px rgba(255, 111, 145, 0.4);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 140, 106, 0.7), 0 8px 40px rgba(255, 111, 145, 0.6);
    border-color: #FFD966;
}

.action-btn-solid {
    background: #3CB371;
    border: 3px solid #FFD966;
    border-radius: 15px;
    padding: 20px 40px;
    font-size: 1.5rem;
    color: #FFFDF7;
    cursor: pointer;
    font-weight: bold;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(60, 179, 113, 0.6), 0 5px 30px rgba(255, 217, 102, 0.4);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.action-btn-solid.glow {
    animation: glow 5s ease-in-out infinite;
}

.action-btn-solid:hover {
    transform: translateY(-3px);
    background: #2E8B78;
    box-shadow: 0 8px 30px rgba(60, 179, 113, 0.8), 0 8px 40px rgba(255, 217, 102, 0.6);
}

.action-btn.disabled {
    background: #8B6B4F;
    color: #F4E9D8;
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.5;
}

.action-btn.disabled:hover {
    transform: none;
}

.secondary-btn {
    background: linear-gradient(135deg, #1CA9C9, #2E8B78);
    border: 3px solid #3CB371;
    border-radius: 15px;
    padding: 15px 30px;
    font-size: 1.3rem;
    color: #FFFDF7;
    cursor: pointer;
    font-weight: bold;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.secondary-btn:hover {
    background: linear-gradient(135deg, #2E8B78, #3CB371);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(28, 169, 201, 0.5), 0 5px 30px rgba(60, 179, 113, 0.4);
    border-color: #FFD966;
}

.button-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
}

.button-group-vertical {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

/* Player Setup */
.player-input-section {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.input-field {
    flex: 1;
    min-width: 200px;
    background: #FFFDF7;
    border: 3px solid #3CB371;
    border-radius: 10px;
    padding: 15px 20px;
    font-size: 1.3rem;
    color: #0F4C5C;
    font-weight: bold;
}

.input-field::placeholder {
    color: rgba(15, 76, 92, 0.5);
}

.player-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    min-height: 100px;
}

.player-chip {
    background: #F4E9D8;
    border: 3px solid #3CB371;
    border-radius: 15px;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.5rem;
    color: #0F4C5C;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.remove-player {
    background: #FF6F91;
    border: 2px solid #8B6B4F;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    color: #FFFDF7;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    transition: all 0.2s ease;
}

.remove-player:hover {
    background: #FF8C6A;
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 111, 145, 0.6);
}

.player-count {
    text-align: center;
    font-size: 1.3rem;
    color: #2E8B78;
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Saved Players Quick Add */
.saved-players-section {
    margin: 15px 0;
    padding: 15px;
    background: rgba(28, 169, 201, 0.1);
    border-radius: 15px;
    border: 2px solid rgba(28, 169, 201, 0.3);
}

.saved-players-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.saved-player-chip {
    background: #F4E9D8;
    border: 2px solid #1CA9C9;
    border-radius: 20px;
    padding: 8px 15px;
    font-size: 1rem;
    color: #0F4C5C;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.saved-player-chip:hover {
    background: #1CA9C9;
    color: #FFFDF7;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(28, 169, 201, 0.4);
}

/* Configuration */
.config-section {
    margin-bottom: 35px;
}

.config-label {
    display: block;
    font-size: 1.5rem;
    color: #2E8B78;
    margin-bottom: 15px;
    letter-spacing: 2px;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(60, 179, 113, 0.3);
}

.number-control {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: center;
}

.control-btn {
    background: rgba(60, 179, 113, 0.2);
    border: 3px solid #3CB371;
    border-radius: 15px;
    width: 60px;
    height: 60px;
    font-size: 2rem;
    color: #2E8B78;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.control-btn:hover {
    background: rgba(60, 179, 113, 0.4);
    transform: scale(1.1);
    border-color: #FFD966;
    box-shadow: 0 0 20px rgba(255, 217, 102, 0.5);
}

.control-value {
    font-size: 3rem;
    color: #2E8B78;
    min-width: 100px;
    text-align: center;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.random-btn {
    width: auto !important;
    min-width: 120px;
    padding: 15px 25px !important;
    font-size: 1.2rem;
    height: auto !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
}

.random-btn.active {
    background: #FFD966;
    color: #0F4C5C;
    border-color: #FF8C6A;
    box-shadow: 0 0 20px rgba(255, 217, 102, 0.6), 0 0 30px rgba(255, 140, 106, 0.4);
}

.select-field {
    width: 100%;
    background: #FFFDF7;
    border: 3px solid #3CB371;
    border-radius: 15px;
    padding: 15px 20px;
    font-size: 1.5rem;
    color: #0F4C5C;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.select-field:hover {
    border-color: #FFD966;
    box-shadow: 0 0 15px rgba(255, 217, 102, 0.3);
}

.select-field option {
    background: #F4E9D8;
    color: #0F4C5C;
}

.toggle-container {
    display: flex;
    justify-content: center;
}

.toggle-btn {
    background: #8B6B4F;
    border: 3px solid #8B6B4F;
    border-radius: 50px;
    padding: 15px 40px;
    font-size: 1.5rem;
    color: #F4E9D8;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    letter-spacing: 2px;
    opacity: 0.7;
}

.toggle-btn.on {
    background: linear-gradient(135deg, #FFD966, #FF8C6A);
    border-color: #3CB371;
    color: #0F4C5C;
    opacity: 1;
    box-shadow: 0 0 20px rgba(255, 217, 102, 0.5), 0 0 30px rgba(255, 140, 106, 0.3);
}

.option-btn {
    background: #F4E9D8;
    border: 3px solid #8B6B4F;
    border-radius: 15px;
    padding: 20px;
    font-size: 1.3rem;
    color: #0F4C5C;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.option-btn:hover {
    background: #FFFDF7;
    border-color: #3CB371;
    box-shadow: 0 0 15px rgba(60, 179, 113, 0.3);
    transform: translateY(-2px);
}

.option-btn.active {
    background: linear-gradient(135deg, #3CB371, #1CA9C9);
    border-color: #FFD966;
    color: #FFFDF7;
    box-shadow: 0 0 20px rgba(60, 179, 113, 0.4), 0 0 30px rgba(28, 169, 201, 0.3);
}

/* Player Reveal */
.player-buttons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.player-reveal-btn {
    background: linear-gradient(135deg, #F4E9D8, #FFFDF7);
    border: 3px solid #3CB371;
    border-radius: 15px;
    padding: 30px 20px;
    font-size: 1.5rem;
    color: #2E8B78;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.player-reveal-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(60, 179, 113, 0.4), 0 0 30px rgba(255, 217, 102, 0.3);
    border-color: #FFD966;
}

.player-reveal-btn.viewed {
    background: linear-gradient(135deg, #3CB371, #1CA9C9);
    border-color: #FFD966;
    color: #FFFDF7;
    box-shadow: 0 0 25px rgba(60, 179, 113, 0.6);
}

/* Word Reveal */
.reveal-container {
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin: 40px 0;
}

.reveal-btn {
    background: linear-gradient(135deg, #FF6F91, #FF8C6A, #FFD966, #3CB371, #1CA9C9);
    background-size: 200% 200%;
    border: 5px solid #FFFDF7;
    border-radius: 25px;
    padding: 80px 120px;
    font-size: 2.5rem;
    color: #FFFDF7;
    cursor: pointer;
    font-weight: bold;
    letter-spacing: 3px;
    filter: none;
    transition: all 0.5s ease;
    animation: gradientShift 3s ease infinite;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), 0 0 40px rgba(255, 217, 102, 0.3);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.reveal-btn:hover {
    transform: scale(1.05);
    filter: none;
}

.word-display {
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.word-display.hidden {
    display: none;
}

.category-text {
    font-size: 1.3rem;
    color: #1CA9C9;
    margin-bottom: 20px;
    letter-spacing: 2px;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(28, 169, 201, 0.3);
}

.word-text {
    font-size: 4rem;
    color: #FF6F91;
    font-weight: bold;
    margin-bottom: 30px;
    text-shadow: 0 0 20px rgba(255, 111, 145, 0.6), 0 0 30px rgba(255, 217, 102, 0.4);
    letter-spacing: 4px;
}

.hide-btn {
    background: rgba(139, 107, 79, 0.5);
    border: 2px solid #8B6B4F;
    border-radius: 10px;
    padding: 10px 25px;
    font-size: 1rem;
    color: #FFFDF7;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hide-btn:hover {
    background: rgba(139, 107, 79, 0.7);
    border-color: #FFD966;
}

/* Gameplay */
.gameplay-info {
    margin-bottom: 50px;
}

.info-box {
    background: rgba(244, 233, 216, 0.7);
    border: 3px solid #3CB371;
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
    text-align: center;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.info-label {
    font-size: 1.2rem;
    color: #2E8B78;
    margin-bottom: 10px;
    letter-spacing: 2px;
    font-weight: bold;
}

.info-value {
    font-size: 2.5rem;
    color: #FF6F91;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.instruction-box {
    background: rgba(244, 233, 216, 0.7);
    border: 3px solid #1CA9C9;
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
    text-align: center;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.instruction-box p {
    font-size: 1.3rem;
    color: #0F4C5C;
    margin-bottom: 10px;
    font-weight: 500;
}

.hint-instruction {
    color: #FF6F91;
    font-weight: bold;
}
    font-weight: bold;
}

.reveal-section {
    text-align: center;
    margin-top: 40px;
}

.vote-heading {
    font-size: 1.8rem;
    color: #FF6F91;
    margin-bottom: 25px;
    letter-spacing: 2px;
    font-weight: bold;
    text-shadow: 0 0 15px rgba(255, 111, 145, 0.4);
}

/* Imposter Reveal */
.imposter-reveal-section {
    text-align: center;
    margin-bottom: 40px;
}

.reveal-heading {
    font-size: 2.5rem;
    color: #FF6F91;
    margin-bottom: 30px;
    letter-spacing: 3px;
    font-weight: bold;
    text-shadow: 0 0 20px rgba(255, 111, 145, 0.5), 0 0 30px rgba(255, 140, 106, 0.3);
}

.imposter-list {
    margin-bottom: 40px;
}

.imposter-name {
    font-size: 3rem;
    color: #FF6F91;
    font-weight: bold;
    margin: 15px 0;
    text-shadow: 0 0 25px rgba(255, 111, 145, 0.6), 0 0 35px rgba(255, 140, 106, 0.4);
}

.word-reveal-section {
    background: rgba(244, 233, 216, 0.8);
    border: 4px solid #3CB371;
    border-radius: 20px;
    padding: 30px;
    margin-top: 40px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.word-reveal-label {
    font-size: 1.5rem;
    color: #2E8B78;
    margin-bottom: 15px;
    font-weight: bold;
}

.secret-word {
    font-size: 3.5rem;
    color: #FF6F91;
    font-weight: bold;
    text-shadow: 0 0 25px rgba(255, 111, 145, 0.6), 0 0 35px rgba(255, 217, 102, 0.3);
}

/* Who's Most Likely To Game */
.question-container {
    margin: 40px 0;
}

.question-instruction {
    text-align: center;
    font-size: 1rem;
    color: #1CA9C9;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    font-weight: bold;
}

.question-box {
    background: linear-gradient(135deg, rgba(60, 179, 113, 0.2), rgba(28, 169, 201, 0.2), rgba(255, 217, 102, 0.15));
    border: 4px solid #3CB371;
    border-radius: 25px;
    padding: 60px 40px;
    margin: 40px 0;
    box-shadow: 0 0 40px rgba(60, 179, 113, 0.4), 0 0 60px rgba(255, 217, 102, 0.3);
    animation: questionGlow 6s ease-in-out infinite;
}

@keyframes questionGlow {
    0%, 100% {
        box-shadow: 0 0 40px rgba(60, 179, 113, 0.4), 0 0 60px rgba(255, 217, 102, 0.3);
    }
    33% {
        box-shadow: 0 0 60px rgba(60, 179, 113, 0.6), 0 0 80px rgba(28, 169, 201, 0.5), 0 0 100px rgba(255, 140, 106, 0.4);
    }
    }
    66% {
        box-shadow: 0 0 60px rgba(28, 169, 201, 0.6), 0 0 80px rgba(60, 179, 113, 0.6), 0 0 100px rgba(255, 111, 145, 0.5);
    }
}

.question-text {
    font-size: 2.5rem;
    color: #0F4C5C;
    text-align: center;
    font-weight: bold;
    line-height: 1.4;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.mode-selector {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.mode-btn {
    background: linear-gradient(135deg, #3CB371, #1CA9C9);
    border: 3px solid #FFD966;
    border-radius: 12px;
    padding: 10px 20px;
    font-size: 1rem;
    color: #FFFDF7;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(60, 179, 113, 0.4), 0 0 25px rgba(28, 169, 201, 0.3);
}

.mode-btn:hover {
    background: linear-gradient(135deg, #4CD682, #2DBCD4);
    border-color: #FFD966;
    box-shadow: 0 6px 25px rgba(60, 179, 113, 0.6), 0 0 35px rgba(28, 169, 201, 0.5);
    transform: translateY(-2px);
}

.mode-btn.active {
    background: linear-gradient(135deg, #3CB371, #1CA9C9);
    border-color: #FFD966;
    color: #FFFDF7;
    box-shadow: 0 0 25px rgba(60, 179, 113, 0.5), 0 0 35px rgba(255, 217, 102, 0.3);
}

.mode-btn-custom {
    max-width: 280px;
    font-size: 0.9rem;
    padding: 8px 15px;
    background: #F4E9D8;
    color: #2E8B78;
    border-color: #3CB371;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.mode-btn-custom:hover {
    background: #FFFDF7;
    border-color: #FFD966;
    box-shadow: 0 0 15px rgba(255, 217, 102, 0.3);
}

.mode-btn-custom.active {
    background: linear-gradient(135deg, #3CB371, #1CA9C9);
    color: #FFFDF7;
    border-color: #FFD966;
    box-shadow: 0 0 25px rgba(60, 179, 113, 0.5), 0 0 35px rgba(255, 217, 102, 0.3);
}

.custom-prompt-container {
    margin: 40px 0;
}

.custom-instruction {
    text-align: center;
    font-size: 1rem;
    color: #1CA9C9;
    margin-bottom: 30px;
    font-weight: bold;
}

.custom-input-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.custom-count {
    text-align: center;
    font-size: 1.2rem;
    color: #2E8B78;
    margin-top: 20px;
    font-weight: bold;
}

.reset-btn {
    background: rgba(139, 107, 79, 0.3);
    border: 2px solid #8B6B4F;
    border-radius: 10px;
    padding: 10px 20px;
    font-size: 0.9rem;
    color: #8B6B4F;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-top: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.reset-btn:hover {
    background: rgba(139, 107, 79, 0.5);
    transform: scale(1.05);
    border-color: #FFD966;
    box-shadow: 0 0 15px rgba(255, 217, 102, 0.3);
}

/* This or That Game */
.thisorhat-options {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
}

.choice-btn {
    background: linear-gradient(135deg, #FF6F91, #FF8C6A);
    border: 4px solid #FFD966;
    border-radius: 25px;
    padding: 40px 60px;
    font-size: 2rem;
    color: #FFFDF7;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    min-width: 300px;
    text-align: center;
    box-shadow: 0 0 30px rgba(255, 111, 145, 0.4), 0 8px 16px rgba(0, 0, 0, 0.15);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.choice-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 50px rgba(255, 111, 145, 0.6), 0 0 70px rgba(255, 217, 102, 0.5);
    border-color: #3CB371;
}

.choice-btn.selected {
    background: linear-gradient(135deg, #3CB371, #1CA9C9);
    border-color: #FFD966;
    border-width: 5px;
    box-shadow: 0 0 50px rgba(60, 179, 113, 0.8), 0 0 70px rgba(255, 217, 102, 0.6);
    transform: scale(1.1);
    color: #FFFDF7;
}

.or-divider {
    font-size: 2.5rem;
    color: #1CA9C9;
    font-weight: bold;
    letter-spacing: 3px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Responsive */
@media (min-width: 769px) and (max-width: 1024px) {
    .hq-container {
        padding: 30px;
        max-width: 90%;
    }
    
    .games-grid {
        gap: 20px;
    }
    
    .game-btn {
        font-size: 1.8rem;
        padding: 25px 15px;
    }
    
    .game-icon {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .main-title {
        font-size: 3rem;
        letter-spacing: 4px;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .hq-container {
        padding: 20px;
        border-width: 3px;
        max-width: 95%;
    }
    
    .games-grid {
        gap: 15px;
        grid-template-columns: repeat(2, 1fr);
    }
    
    .game-btn {
        padding: 15px 10px;
        font-size: 1.2rem;
    }
    
    .game-icon {
        font-size: 2rem;
        margin-bottom: 10px;
    }
    
    .game-title {
        font-size: 0.9rem;
        line-height: 1.2;
    }
    
    .action-btn {
        padding: 15px 30px;
        font-size: 1.2rem;
    }
    
    .number-control {
        gap: 10px;
    }
    
    .control-btn {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
        padding: 0;
        min-width: 40px;
    }
    
    .control-value {
        min-width: 60px;
        font-size: 1.8rem;
    }
    
    .config-section {
        padding: 15px;
    }
    
    .config-label {
        font-size: 1rem;
    }
    
    .word-text {
        font-size: 2.5rem;
    }
    
    .reveal-btn {
        padding: 40px 50px;
        font-size: 1.5rem;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .question-text {
        font-size: 1.8rem;
    }
    
    .mode-selector {
        flex-direction: column;
        gap: 15px;
    }
    
    .custom-input-section {
        gap: 15px;
    }
    
    .choice-btn {
        min-width: 200px;
        padding: 30px 40px;
        font-size: 1.5rem;
    }
    
    .or-divider {
        font-size: 2rem;
    }
}

/* Telephone Game */
.difficulty-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.difficulty-btn {
    background: linear-gradient(135deg, #FF6F91, #FF8C6A);
    border: 4px solid #FFD966;
    border-radius: 25px;
    padding: 40px 30px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    box-shadow: 0 0 30px rgba(255, 111, 145, 0.4), 0 8px 16px rgba(0, 0, 0, 0.15);
}

.difficulty-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 50px rgba(255, 111, 145, 0.6), 0 0 70px rgba(255, 217, 102, 0.5);
    border-color: #3CB371;
}

.difficulty-icon {
    font-size: 3rem;
}

.difficulty-label {
    font-size: 1.8rem;
    color: #FFFDF7;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.telephone-info {
    margin: 40px 0;
}

.current-player-box {
    background: linear-gradient(135deg, rgba(244, 233, 216, 0.9), rgba(255, 253, 247, 0.9));
    border: 4px solid #3CB371;
    border-radius: 25px;
    padding: 30px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 0 30px rgba(60, 179, 113, 0.4), 0 8px 16px rgba(0, 0, 0, 0.1);
}

.instruction-text {
    text-align: center;
    font-size: 1.4rem;
    color: #FF6F91;
    margin-top: 30px;
    font-weight: bold;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(255, 111, 145, 0.3);
}

@media (max-width: 768px) {
    .difficulty-btn {
        padding: 30px 20px;
    }
    
    .difficulty-icon {
        font-size: 2.5rem;
    }
    
    .difficulty-label {
        font-size: 1.5rem;
    }
    
    .instruction-text {
        font-size: 1.2rem;
    }
}

/* Reveal/Hide Buttons */
.reveal-container {
    width: 100%;
    margin: 30px 0;
}

.reveal-btn {
    background: linear-gradient(135deg, #FF6F91, #FF8C6A);
    color: #FFFDF7;
    border: 4px solid #FFD966;
    padding: 20px 40px;
    border-radius: 15px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    display: block;
}

.reveal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(138, 43, 226, 0.5);
}

.hide-btn {
    background: linear-gradient(135deg, #1CA9C9, #2E8B78);
    color: #FFFDF7;
    border: 2px solid #3CB371;
    padding: 12px 30px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    margin-top: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hide-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(138, 43, 226, 0.5);
}

.hidden {
    display: none !important;
}

/* Bingo Styles */
.location-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.location-btn {
    background: linear-gradient(135deg, #FF6F91, #FF8C6A);
    color: #FFFDF7;
    border: 3px solid #FFD966;
    padding: 30px 20px;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.location-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(138, 43, 226, 0.6);
}

.location-emoji {
    font-size: 2.5rem;
}

.bingo-location-display {
    text-align: center;
    margin: 20px 0;
}

.bingo-board {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin: 30px auto;
    max-width: 600px;
    width: 100%;
}

.bingo-cell {
    background: rgba(244, 233, 216, 0.8);
    border: 3px solid #3CB371;
    border-radius: 15px;
    padding: 15px 10px;
    font-size: 0.9rem;
    color: #0F4C5C;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    font-weight: 600;
    word-wrap: break-word;
    overflow-wrap: break-word;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.bingo-cell:hover:not(.found) {
    background: rgba(255, 253, 247, 0.95);
    border-color: #FFD966;
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 217, 102, 0.3);
}

.bingo-cell.found {
    background: linear-gradient(135deg, #3CB371, #1CA9C9);
    border-color: #FFD966;
    color: #FFFDF7;
    box-shadow: 0 0 25px rgba(60, 179, 113, 0.6), 0 0 35px rgba(255, 217, 102, 0.4);
    animation: foundPulse 0.5s ease;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

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

.win-message {
    text-align: center;
    margin: 30px 0;
    padding: 30px;
    background: linear-gradient(135deg, #FFD966, #FF8C6A, #FF6F91);
    border-radius: 25px;
    animation: winPulse 1s ease infinite;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2), 0 0 40px rgba(255, 217, 102, 0.5);
}

.win-text {
    font-size: 2.5rem;
    font-weight: bold;
    color: #FFFDF7;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
    margin: 0;
}

.win-subtitle {
    font-size: 1.2rem;
    color: #FFFDF7;
    margin: 10px 0 0 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

@keyframes winPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@media (max-width: 768px) {
    .location-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .bingo-board {
        gap: 4px;
        max-width: 100%;
        width: 100%;
        padding: 0;
        margin: 20px auto;
    }

    .bingo-cell {
        padding: 6px 2px;
        font-size: 0.5rem;
        min-height: 50px;
        border-radius: 5px;
        border-width: 1px;
    }

    .win-text {
        font-size: 1.8rem;
    }

    .win-subtitle {
        font-size: 1rem;
    }
}

/* Alphabet Game Styles */
.alphabet-category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 30px 0;
}

.alphabet-cat-btn {
    background: linear-gradient(135deg, #FF6F91, #FF8C6A);
    color: #FFFDF7;
    border: 3px solid #FFD966;
    padding: 20px 15px;
    border-radius: 15px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.alphabet-cat-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 111, 145, 0.5), 0 0 35px rgba(255, 217, 102, 0.3);
    border-color: #3CB371;
}

.custom-alphabet-input {
    display: flex;
    gap: 15px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.alphabet-category-display {
    text-align: center;
    margin: 20px 0 30px 0;
    background: linear-gradient(135deg, rgba(255, 217, 102, 0.3), rgba(255, 140, 106, 0.3));
    border: 4px solid #FFD966;
    border-radius: 25px;
    padding: 30px 20px;
    box-shadow: 0 0 30px rgba(255, 217, 102, 0.4), 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* New Category Section */
.alphabet-category-section {
    text-align: center;
    margin: 25px 0;
}

.alphabet-mode-buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin: 40px 0;
}

.alphabet-mode-btn {
    background: linear-gradient(135deg, #F4E9D8, #FFFDF7, #F4E9D8);
    border: 4px solid #3CB371;
    border-radius: 25px;
    padding: 40px;
    font-size: 1.5rem;
    color: #2E8B78;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    letter-spacing: 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.alphabet-mode-btn:hover {
    transform: scale(1.03);
    box-shadow: 0 0 40px rgba(60, 179, 113, 0.4), 0 0 50px rgba(255, 217, 102, 0.3);
    border-color: #FFD966;
}

.mode-icon {
    font-size: 3rem;
}

.mode-text {
    font-size: 1.3rem;
}

.mode-description {
    font-size: 0.9rem;
    color: #FF6F91;
    font-weight: normal;
    margin-top: 10px;
    line-height: 1.4;
}

.countdown-display {
    text-align: center;
    margin: 50px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.alphabet-starting-player {
    font-size: 2.5rem;
    color: #ff00ff;
    font-weight: bold;
    text-align: center;
    margin: 30px 0;
    text-shadow: 0 0 20px rgba(255, 0, 255, 0.8);
}

.countdown-number {
    font-size: 8rem;
    font-weight: bold;
    color: #00d4ff;
    text-shadow: 0 0 40px rgba(0, 212, 255, 0.8), 0 0 80px rgba(0, 212, 255, 0.4);
    animation: countdownPulse 1s ease-in-out infinite;
    display: inline-block;
    padding: 20px 50px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(0, 153, 204, 0.2));
    border: 4px solid #00d4ff;
    border-radius: 30px;
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.6);
    margin: 20px 0;
}

@keyframes countdownPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.9; }
}

.countdown-instructions {
    text-align: center;
}

.countdown-text {
    font-size: 1.5rem;
    color: #ff00ff;
    margin: 15px 0;
    font-weight: bold;
}

.alphabet-game-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.alphabet-category-label {
    font-size: 2rem;
    color: #FF6F91;
    font-weight: bold;
    text-shadow: 0 0 15px rgba(255, 111, 145, 0.5), 0 2px 4px rgba(0, 0, 0, 0.2);
    flex: 1;
    line-height: 1.3;
    letter-spacing: 1px;
}

.alphabet-corner-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Game Controls */
.alphabet-game-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.alphabet-pause-btn {
    background: linear-gradient(135deg, #FF6F91, #FF8C6A);
    color: #FFFDF7;
    border: 2px solid #FFD966;
    border-radius: 15px;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 111, 145, 0.3);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.alphabet-pause-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 111, 145, 0.5), 0 0 30px rgba(255, 217, 102, 0.3);
    border-color: #3CB371;
}

.alphabet-last-btn {
    background: linear-gradient(135deg, #1CA9C9, #2E8B78);
    color: #FFFDF7;
    border: 2px solid #3CB371;
    border-radius: 15px;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(28, 169, 201, 0.3);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.alphabet-last-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(28, 169, 201, 0.5), 0 0 30px rgba(60, 179, 113, 0.3);
    border-color: #FFD966;
}

.alphabet-letter-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
}

.alphabet-big-letter {
    background: linear-gradient(135deg, #3CB371 0%, #1CA9C9 50%, #2E8B78 100%);
    color: #FFFDF7;
    border: 6px solid #FFD966;
    border-radius: 30px;
    width: 250px;
    height: 250px;
    font-size: 10rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(60, 179, 113, 0.5), 0 0 40px rgba(255, 217, 102, 0.3), inset 0 0 20px rgba(255, 253, 247, 0.2);
    position: relative;
    overflow: hidden;
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.3);
}

.alphabet-big-letter::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.alphabet-big-letter:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 12px 40px rgba(0, 212, 255, 0.7), inset 0 0 30px rgba(255, 255, 255, 0.3);
}

.alphabet-timer-container {
    text-align: center;
    margin: 25px 0;
}

.alphabet-timer {
    font-size: 2.5rem;
    font-weight: bold;
    color: #ff00ff;
    text-shadow: 0 0 25px rgba(255, 0, 255, 0.8), 0 0 50px rgba(255, 0, 255, 0.4);
    display: inline-block;
    padding: 10px 25px;
    background: linear-gradient(135deg, rgba(255, 0, 255, 0.2), rgba(138, 43, 226, 0.2));
    border: 3px solid #ff00ff;
    border-radius: 20px;
    box-shadow: 0 0 30px rgba(255, 0, 255, 0.5);
    animation: timerPulse 1s ease-in-out infinite;
}

@keyframes timerPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.alphabet-letter-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin: 30px 0;
    padding: 0 10px;
}

.alphabet-grid-letter {
    background: linear-gradient(135deg, #3CB371 0%, #1CA9C9 100%);\n    color: #FFFDF7;
    border: 3px solid #FFD966;
    border-radius: 15px;
    padding: 20px;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(60, 179, 113, 0.4);
    position: relative;
    overflow: hidden;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.alphabet-grid-letter::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.alphabet-grid-letter:hover::before {
    left: 100%;
}

.alphabet-grid-letter:hover {
    transform: scale(1.1) rotate(3deg);
    box-shadow: 0 6px 25px rgba(0, 212, 255, 0.6);
}

.alphabet-grid-letter.used {
    background: linear-gradient(135deg, #555555, #333333);
    border-color: #666666;
    box-shadow: 0 0 15px rgba(100, 100, 100, 0.4);
    cursor: default;
    opacity: 0.5;
}

.alphabet-grid-z {
    grid-column: 1;
}

/* Player Info Row */
.alphabet-player-info-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 20px 0;
}

.alphabet-current-player-box {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.25), rgba(0, 153, 204, 0.25));
    border: 3px solid #00d4ff;
    border-radius: 15px;
    padding: 15px 20px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}

.alphabet-current-player-box .info-label {
    font-size: 0.85rem;
    margin-bottom: 8px;
    color: #00d4ff;
    letter-spacing: 1px;
}

.alphabet-players-remaining {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.25), rgba(106, 13, 173, 0.25));
    border: 3px solid #8a2be2;
    border-radius: 15px;
    padding: 15px 20px;
    text-align: center;
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.4);
}

.alphabet-players-remaining .info-label {
    font-size: 0.85rem;
    margin-bottom: 8px;
    color: #8a2be2;
    letter-spacing: 1px;
}

.info-value-small {
    font-size: 1.1rem;
    color: #ffffff;
    font-weight: bold;
    margin-top: 5px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.alphabet-eliminated-name {
    font-size: 2.5rem;
    font-weight: bold;
    color: #1CA9C9;
    text-shadow: 0 0 20px rgba(28, 169, 201, 0.6), 0 2px 4px rgba(0, 0, 0, 0.2);
    margin-bottom: 10px;
}

.alphabet-out-message {
    text-align: center;
    margin: 50px 0;
}

.alphabet-out-text {
    font-size: 4rem;
    font-weight: bold;
    color: #FF6F91;
    text-shadow: 0 0 30px rgba(255, 111, 145, 0.6), 0 0 40px rgba(255, 140, 106, 0.4);
    margin-bottom: 20px;
}

.alphabet-out-emoji {
    font-size: 5rem;
}

.alphabet-complete-message {
    text-align: center;
    margin: 40px 0;
}

.alphabet-complete-text {
    font-size: 3rem;
    font-weight: bold;
    color: #3CB371;
    text-shadow: 0 0 30px rgba(60, 179, 113, 0.6), 0 2px 4px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
}

.alphabet-complete-emoji {
    font-size: 5rem;
}

.alphabet-complete-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.alphabet-winner-message {
    text-align: center;
    margin: 50px 0;
    padding: 40px;
    background: linear-gradient(135deg, #FFD966, #FF8C6A, #FF6F91);
    border-radius: 30px;
    animation: winPulse 1s ease infinite;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), 0 0 50px rgba(255, 217, 102, 0.5);
    border: 5px solid #FFFDF7;
}

.alphabet-winner-text {
    font-size: 3.5rem;
    font-weight: bold;
    color: #FFFDF7;
    text-shadow: 0 0 30px rgba(255, 253, 247, 0.8), 4px 4px 8px rgba(0, 0, 0, 0.3);
}
    margin-bottom: 15px;
}

.alphabet-winner-subtitle {
    font-size: 1.5rem;
    color: #FFFDF7;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.paused-message {
    text-align: center;
    margin: 80px 0;
}

.paused-text {
    font-size: 8rem;
}

/* Voting Styles */
.current-voter-box {
    background: linear-gradient(135deg, rgba(244, 233, 216, 0.9), rgba(255, 253, 247, 0.9));
    border: 4px solid #1CA9C9;
    border-radius: 20px;
    padding: 20px 25px;
    text-align: center;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    margin: 20px 0;
}

.current-voter-box .info-value {
    font-size: 1.8rem;
    color: #1CA9C9;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.vote-buttons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 30px 0;
}

.vote-player-btn {
    background: linear-gradient(135deg, #FF6F91, #FF8C6A);
    border: 3px solid #FFD966;
    border-radius: 15px;
    padding: 20px;
    font-size: 1.3rem;
    color: #FFFDF7;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 111, 145, 0.4);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.vote-player-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(255, 217, 102, 0.6);
    border-color: #3CB371;
}

.choice-btn-large {
    background: linear-gradient(135deg, #1CA9C9, #3CB371);
    border: 4px solid #FFD966;
    border-radius: 20px;
    padding: 40px 30px;
    font-size: 2rem;
    color: #FFFDF7;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 25px rgba(28, 169, 201, 0.5);
    min-width: 200px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}
}

.choice-btn-large:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 8px 35px rgba(0, 212, 255, 0.7);
}

/* Results Styles */
.results-container {
    margin: 40px 0;
}

.result-player-card {
    background: linear-gradient(135deg, rgba(244, 233, 216, 0.9), rgba(255, 253, 247, 0.9));
    border: 3px solid #3CB371;
    border-radius: 20px;
    padding: 20px;
    margin: 15px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.result-player-name {
    font-size: 1.8rem;
    color: #0F4C5C;
    font-weight: bold;
}

.result-votes {
    font-size: 1.5rem;
    color: #FF6F91;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.result-winner {
    border-color: #FFD966;
    border-width: 5px;
    box-shadow: 0 0 30px rgba(255, 217, 102, 0.6), 0 0 40px rgba(255, 111, 145, 0.4);
    background: linear-gradient(135deg, rgba(255, 217, 102, 0.4), rgba(255, 140, 106, 0.4));
}

.thisorhat-results {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin: 40px 0;
}

.result-option {
    flex: 1;
    min-width: 200px;
    background: linear-gradient(135deg, rgba(60, 179, 113, 0.3), rgba(28, 169, 201, 0.3));
    border: 4px solid #3CB371;
    border-radius: 25px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.result-choice-text {
    font-size: 2rem;
    color: #0F4C5C;
    font-weight: bold;
    margin-bottom: 20px;
}

.result-tally {
    font-size: 3rem;
    color: #FF6F91;
    font-weight: bold;
    text-shadow: 0 0 20px rgba(255, 111, 145, 0.5), 0 2px 4px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .alphabet-category-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .alphabet-cat-btn {
        padding: 15px 10px;
        font-size: 0.9rem;
    }

    .custom-alphabet-input {
        flex-direction: column;
        gap: 10px;
    }

    .alphabet-mode-btn {
        padding: 30px 20px;
        font-size: 1.2rem;
    }

    .mode-icon {
        font-size: 2.5rem;
    }

    .mode-text {
        font-size: 1rem;
    }

    .countdown-number {
        font-size: 5rem;
        padding: 15px 30px;
    }

    .alphabet-starting-player {
        font-size: 1.8rem;
        margin: 20px 0;
    }

    .countdown-text {
        font-size: 1.2rem;
    }

    .alphabet-player-info-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .alphabet-game-header {
        flex-direction: column;
        align-items: center;
    }

    .alphabet-category-label {
        font-size: 1.5rem;
        text-align: center;
    }

    .alphabet-game-controls {
        flex-direction: column;
        width: 100%;
    }

    .alphabet-pause-btn,
    .alphabet-last-btn {
        width: 100%;
        padding: 12px;
        font-size: 0.9rem;
    }

    .alphabet-big-letter {
        width: 200px;
        height: 200px;
        font-size: 8rem;
        border-width: 4px;
    }

    .alphabet-timer {
        font-size: 2rem;
        padding: 10px 20px;
    }

    .alphabet-letter-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 8px;
    }

    .alphabet-grid-letter {
        padding: 15px 8px;
        font-size: 1.4rem;
        border-width: 2px;
    }

    .alphabet-out-text {
        font-size: 2.5rem;
    }

    .alphabet-complete-text {
        font-size: 2rem;
    }

    .alphabet-winner-text {
        font-size: 2rem;
    }

    .alphabet-winner-subtitle {
        font-size: 1.2rem;
    }

    .paused-text {
        font-size: 5rem;
    }

    .vote-buttons-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .vote-player-btn {
        font-size: 1.1rem;
        padding: 18px;
    }

    .choice-btn-large {
        font-size: 1.5rem;
        padding: 30px 20px;
        min-width: 150px;
    }

    .result-choice-text {
        font-size: 1.5rem;
    }

    .result-tally {
        font-size: 2rem;
    }

    .result-player-name {
        font-size: 1.4rem;
    }

    .result-votes {
        font-size: 1.2rem;
    }

    .current-voter-box {
        margin: 15px 0;
    }

    .current-voter-box .info-value {
        font-size: 1.5rem;
    }

    .button-group {
        flex-direction: column;
        gap: 12px;
    }

    .button-group button {
        width: 100%;
    }
}

/* Instructions */
.instructions-btn {
    background: linear-gradient(135deg, #1CA9C9, #3CB371);
    color: #FFFDF7;
    border: 2px solid #FFD966;
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 10px auto;
    display: block;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.instructions-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(255, 217, 102, 0.4), 0 0 30px rgba(60, 179, 113, 0.3);
    border-color: #FF8C6A;
}

/* Page header buttons container */
.page-header-buttons {
    position: fixed;
    top: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    z-index: 1000;
    pointer-events: none;
}

.page-header-buttons > * {
    pointer-events: auto;
}

/* Back button for page header */
.header-back-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0F4C5C, #1CA9C9);
    border: 3px solid white;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-back-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.header-back-btn:active {
    transform: scale(0.95);
}

/* Instructions button for page header */
.header-instructions-btn {
    padding: 10px 25px;
    border-radius: 12px;
    background: linear-gradient(135deg, #1CA9C9, #3CB371);
    border: 3px solid white;
    color: white;
    font-size: 0.95rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
}

.header-instructions-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.header-instructions-btn:active {
    transform: scale(0.95);
}

/* Scrollable instructions button (appears under titles, scrolls with content) */
.page-instructions-btn {
    padding: 8px 20px;
    border-radius: 10px;
    background: linear-gradient(135deg, #1CA9C9, #3CB371);
    border: 2px solid white;
    color: white;
    font-size: 0.85rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
    display: block;
    text-align: center;
    text-transform: uppercase;
    margin: 10px auto;
}

.page-instructions-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.page-instructions-btn:active {
    transform: scale(0.95);
}

/* Home button for page header */
.header-home-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF6B9D, #C239B3);
    border: 3px solid white;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-home-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.header-home-btn:active {
    transform: scale(0.95);
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-content {
    background: linear-gradient(135deg, #F4E9D8, #FFFDF7);
    border: 5px solid #3CB371;
    border-radius: 25px;
    padding: 40px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 50px rgba(60, 179, 113, 0.4);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #FF6F91;
    color: #FFFDF7;
    border: 2px solid #FFD966;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

.modal-close:hover {
    background: #FF8C6A;
    transform: rotate(90deg);
    box-shadow: 0 0 20px rgba(255, 111, 145, 0.5);
}

.modal-title {
    color: #2E8B78;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.instructions-text {
    color: #0F4C5C;
    font-size: 1rem;
    line-height: 1.8;
}

/* Confirmation Modal */
.confirmation-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

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

.confirmation-content {
    background: linear-gradient(135deg, #F4E9D8, #FFFDF7);
    border: 5px solid #FF69B4;
    border-radius: 25px;
    padding: 40px;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.confirmation-content h3 {
    color: #FF1493;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.confirmation-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
}

.confirm-btn {
    padding: 12px 30px;
    border-radius: 15px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    border: 3px solid;
}

.confirm-yes {
    background: linear-gradient(135deg, #FF6B9D, #C239B3);
    border-color: #FF1493;
    color: white;
}

.confirm-yes:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 20, 147, 0.4);
}

.confirm-no {
    background: linear-gradient(135deg, #1CA9C9, #3CB371);
    border-color: #1CA9C9;
    color: white;
}

.confirm-no:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(28, 169, 201, 0.4);
}

.instructions-text h3 {
    color: #FF6F91;
    margin: 20px 0 10px 0;
    font-size: 1.3rem;
    font-weight: bold;
}

.instructions-text p {
    margin: 10px 0;
}

.instructions-text ul {
    margin: 10px 0 10px 20px;
}

.instructions-text li {
    margin: 5px 0;
}
/* ===== STORYTELLING GAME STYLES ===== */
.prompt-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 30px 0;
}

.prompt-btn {
    background: linear-gradient(135deg, rgba(244, 233, 216, 0.8), rgba(255, 253, 247, 0.8));
    border: 3px solid #3CB371;
    padding: 25px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    color: #0F4C5C;
    font-weight: 600;
}

.prompt-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(60, 179, 113, 0.4), 0 0 40px rgba(255, 217, 102, 0.3);
    border-color: #FFD966;
    background: linear-gradient(135deg, rgba(255, 253, 247, 0.9), rgba(244, 233, 216, 0.9));
}

.prompt-icon {
    font-size: 2.5rem;
}

.prompt-text {
    text-align: center;
    font-size: 1.3rem;
}

.prompt-description {
    font-size: 0.85rem;
    color: #8B6B4F;
    font-weight: normal;
    text-align: center;
    font-style: italic;
    opacity: 0.9;
}

.selected-prompt {
    background: rgba(60, 179, 113, 0.2);
    border: 3px solid #3CB371;
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    color: #0F4C5C;
    font-size: 1.1rem;
    text-align: center;
    font-weight: 600;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.custom-prompt-input {
    margin: 20px 0;
}

.custom-prompt-textarea {
    width: 100%;
    background: #FFFDF7;
    border: 3px solid #3CB371;
    border-radius: 15px;
    padding: 15px;
    color: #0F4C5C;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    margin-bottom: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.custom-prompt-textarea:focus {
    outline: none;
    border-color: #FFD966;
    box-shadow: 0 0 20px rgba(255, 217, 102, 0.3), 0 4px 8px rgba(0, 0, 0, 0.15);
}

.mode-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.mode-options .mode-btn:nth-child(5) {
    grid-column: 2;
}

@media (max-width: 900px) {
    .mode-options {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .mode-options .mode-btn:nth-child(5) {
        grid-column: span 2;
    }
}

@media (max-width: 600px) {
    .mode-options {
        grid-template-columns: 1fr;
    }
    
    .mode-options .mode-btn:nth-child(5) {
        grid-column: span 1;
    }
}

.mode-btn {
    background: linear-gradient(135deg, rgba(244, 233, 216, 0.8), rgba(255, 253, 247, 0.8));\n    border: 3px solid #3CB371;
    padding: 30px;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #0F4C5C;
    font-weight: 600;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.mode-options-compact {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 30px 0;
}

.mode-grid-2x2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 30px 0;
}

.mode-grid-2x2 .custom-mode-btn {
    grid-column: span 2;
}

@media (max-width: 600px) {
    .mode-options-compact,
    .mode-grid-2x2 {
        grid-template-columns: 1fr;
    }
    
    .mode-grid-2x2 .custom-mode-btn {
        grid-column: span 1;
    }
}

.mode-btn-compact {
    background: linear-gradient(135deg, #0F4C5C, #1976D2, #0D7377);
    border: 3px solid #14A5B8;
    padding: 20px;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: white;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(20, 165, 184, 0.4), 0 0 25px rgba(25, 118, 210, 0.3);
}

.mode-btn-compact:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(20, 165, 184, 0.6), 0 0 35px rgba(25, 118, 210, 0.5), 0 0 45px rgba(13, 115, 119, 0.4);
    border-color: #1E88E5;
    background: linear-gradient(135deg, #14A5B8, #2196F3, #0F4C5C);
}

.mode-btn-compact .mode-number {
    font-size: 2rem;
    font-weight: bold;
    color: #FFFFFF;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), 0 0 15px rgba(20, 165, 184, 0.8);
}

.mode-btn-compact .mode-icon {
    font-size: 2rem;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

.mode-btn-compact .mode-label {
    font-size: 1rem;
    font-weight: bold;
    color: #FFFFFF;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.mode-description {
    font-size: 0.8rem;
    color: #E0F7FA;
    font-weight: normal;
    font-style: italic;
    margin-top: 5px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.mode-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.6);
    border-color: #ff00ff;
}

.mode-number {
    font-size: 3rem;
    font-weight: bold;
    color: #00d4ff;
}

.mode-icon {
    font-size: 3rem;
}

.mode-label {
    font-size: 1.2rem;
    font-weight: bold;
}

.custom-mode-input {
    margin: 20px 0;
}

.custom-mode-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.custom-type-btn {
    flex: 1;
    background: rgba(244, 233, 216, 0.8);
    border: 3px solid #3CB371;
    padding: 15px;
    border-radius: 12px;
    color: #0F4C5C;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.custom-type-btn:hover, .custom-type-btn.active {
    background: rgba(255, 253, 247, 0.95);
    border-color: #FFD966;
    box-shadow: 0 0 15px rgba(255, 217, 102, 0.3);
}

.custom-mode-value {
    width: 100%;
    background: #FFFDF7;
    border: 3px solid #3CB371;
    border-radius: 12px;
    padding: 15px;
    color: #0F4C5C;
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 15px;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.custom-mode-value:focus {
    outline: none;
    border-color: #FFD966;
    box-shadow: 0 0 20px rgba(255, 217, 102, 0.3);
}

.selected-mode {
    background: rgba(60, 179, 113, 0.2);
    border: 3px solid #3CB371;
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    color: #0F4C5C;
    font-size: 1.3rem;
    text-align: center;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.storytelling-container {
    max-width: 900px;
    position: relative;
}

.story-back-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(28, 169, 201, 0.8);
    border: 2px solid #3CB371;
    color: #FFFDF7;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}
    z-index: 100;
}

.story-back-btn:hover {
    background: rgba(138, 43, 226, 0.7);
    transform: scale(1.05);
}

.story-header-compact {
    margin-bottom: 20px;
    margin-top: 45px;
}

.story-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    gap: 20px;
}

.current-storyteller-compact {
    color: #ff00ff;
    font-size: 1.5rem;
    margin: 0;
    flex: 1;
}

.story-timer-compact {
    background: rgba(255, 0, 255, 0.3);
    border: 2px solid #ff00ff;
    border-radius: 8px;
    padding: 8px 15px;
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    white-space: nowrap;
}

.story-prompt-display-compact {
    color: #00d4ff;
    font-size: 0.95rem;
    font-style: italic;
    margin: 0;
}

.story-instructions-compact {
    color: #ff00ff;
    font-size: 0.9rem;
    font-weight: bold;
    margin: 8px 0 0 0;
    text-align: center;
}

.story-textbox {
    background: linear-gradient(to bottom, #fff9e6 0%, #fff5d6 100%);
    border: 3px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    max-width: 100%;
    overflow: hidden;
}

.story-textarea-compact {
    width: 100%;
    height: 200px;
    background: transparent;
    border: none;
    color: #2c2c2c;
    font-size: 1.1rem;
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.6;
    resize: none;
    padding: 0;
    text-transform: none;
    overflow-y: auto;
}

.story-textarea-compact:focus {
    outline: none;
}

.story-textarea-compact::placeholder {
    color: #999;
    text-transform: none;
}

@media (max-width: 768px) {
    .story-info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .story-textarea-compact {
        height: 150px;
    }
}

.story-header {
    text-align: center;
    margin-bottom: 30px;
}

.current-storyteller {
    color: #ff00ff;
    font-size: 2rem;
    margin-bottom: 10px;
}

.story-prompt-display {
    color: #1CA9C9;
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 15px;
    font-weight: 600;
}

.story-timer {
    background: rgba(255, 111, 145, 0.3);
    border: 3px solid #FF6F91;
    border-radius: 15px;
    padding: 12px 24px;
    display: inline-block;
    font-size: 1.6rem;
    font-weight: bold;
    color: #FF6F91;
    margin-bottom: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.story-count {
    color: #00d4ff;
    font-size: 1.2rem;
    font-weight: bold;
}

.notepad {
    position: relative;
    background: linear-gradient(to bottom, #fff9e6 0%, #fff5d6 100%);
    border: 3px solid #ddd;
    border-radius: 10px;
    padding: 40px 30px;
    min-height: 400px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 30px;
}

.notepad-lines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: repeating-linear-gradient(
        transparent,
        transparent 39px,
        #e6d5b8 39px,
        #e6d5b8 40px
    );
    pointer-events: none;
    border-radius: 10px;
    padding: 40px 30px;
}

.story-textarea {
    width: 100%;
    min-height: 350px;
    background: transparent;
    border: none;
    color: #2c2c2c;
    font-size: 1.1rem;
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 40px;
    resize: none;
    position: relative;
    z-index: 1;
    padding: 0;
    text-transform: none;
}

.story-textarea:focus {
    outline: none;
}

.story-textarea::placeholder {
    color: #999;
    text-transform: none;
}

.story-countdown-info {
    text-align: center;
    margin: 40px 0;
}

.story-start-player {
    font-size: 2rem;
    color: #ff00ff;
    margin-bottom: 20px;
    font-weight: bold;
}

.story-mode-info {
    font-size: 1.3rem;
    color: #00d4ff;
}

.final-story-container {
    background: linear-gradient(to bottom, #fff9e6 0%, #fff5d6 100%);
    border: 3px solid #ddd;
    border-radius: 10px;
    padding: 40px;
    margin: 30px 0;
    max-height: 500px;
    overflow-y: auto;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.final-story-text {
    color: #2c2c2c;
    font-size: 1.2rem;
    font-family: 'Courier New', 'Monaco', monospace;
    line-height: 1.8;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.story-color-key {
    background: rgba(138, 43, 226, 0.2);
    border: 2px solid #8a2be2;
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
}

.story-color-key h3 {
    text-align: center;
    margin-bottom: 15px;
}

/* Confetti Animation */
@keyframes confetti-fall {
    0% {
        transform: translateY(-50px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(400px) rotate(360deg);
        opacity: 0;
    }
}

.confetti {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #ff00ff;
    animation: confetti-fall 2s ease-out forwards;
    pointer-events: none;
    z-index: 1000;
}
/* ==================== TRIVIA GAME STYLES ==================== */

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.category-btn {
    background: linear-gradient(135deg, #3CB371, #2E8B78);
    border: 4px solid #FFD966;
    border-radius: 20px;
    padding: 25px 15px;
    color: #FFFDF7;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.category-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(60, 179, 113, 0.4), 0 0 40px rgba(255, 217, 102, 0.3);
    border-color: #FF8C6A;
    background: linear-gradient(135deg, #1CA9C9, #3CB371);
}

.category-icon {
    font-size: 2.5rem;
}

.category-label {
    letter-spacing: 1px;
}

.category-badge {
    background: linear-gradient(135deg, #FF6F91, #1CA9C9);
    color: #FFFDF7;
    padding: 10px 30px;
    border-radius: 25px;
    display: inline-block;
    margin-bottom: 20px;
    font-size: 1.2rem;
    letter-spacing: 2px;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.current-player-display {
    color: #2E8B78;
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-shadow: 0 0 20px rgba(60, 179, 113, 0.4), 0 2px 4px rgba(0, 0, 0, 0.1);
    font-weight: bold;
}

.trivia-question-container {
    background: rgba(244, 233, 216, 0.8);
    border: 4px solid #3CB371;
    border-radius: 25px;
    padding: 40px;
    margin: 30px 0;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.trivia-question {
    font-size: 1.5rem;
    color: #0F4C5C;
    margin-bottom: 30px;
    line-height: 1.6;
    text-align: center;
    font-weight: 600;
}

.trivia-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 30px;
}

.trivia-option-btn {
    background: linear-gradient(135deg, #FFFDF7, #F4E9D8);
    border: 3px solid #3CB371;
    border-radius: 15px;
    padding: 20px;
    color: #0F4C5C;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.trivia-option-btn:hover:not(:disabled) {
    transform: scale(1.05);
    background: linear-gradient(135deg, #F4E9D8, #FFFDF7);
    box-shadow: 0 5px 20px rgba(60, 179, 113, 0.3), 0 0 30px rgba(255, 217, 102, 0.2);
    border-color: #FFD966;
}

.trivia-option-btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.trivia-option-btn.correct {
    background: linear-gradient(135deg, #3CB371, #1CA9C9);
    border-color: #FFD966;
    color: #FFFDF7;
    animation: pulse 0.5s ease;
    box-shadow: 0 0 30px rgba(60, 179, 113, 0.6), 0 0 40px rgba(255, 217, 102, 0.4);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.trivia-option-btn.incorrect {
    background: linear-gradient(135deg, #FF6F91, #FF8C6A);
    border-color: #FFD966;
    color: #FFFDF7;
    animation: shake 0.5s ease;
    box-shadow: 0 0 30px rgba(255, 111, 145, 0.5);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

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

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.result-title {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 0 0 30px currentColor;
}

.score-display {
    margin: 30px 0;
}

@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .trivia-question {
        font-size: 1.2rem;
    }
    
    .trivia-options {
        grid-template-columns: 1fr;
    }
    
    .trivia-question-container {
        padding: 25px;
    }
}

/* Game button player count */
.game-players {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 5px;
    display: block;
    letter-spacing: 1px;
}

/* ===== WAVELENGTH GAME STYLES ===== */

/* Team Setup */
.wavelength-teams-container {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.wavelength-team-section {
    flex: 1;
    background: rgba(244, 233, 216, 0.7);
    border-radius: 25px;
    padding: 25px;
    border: 4px solid #1CA9C9;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.wavelength-team-section.team-1 {
    border-color: #1CA9C9;
}

.wavelength-team-section.team-2 {
    border-color: #FF6F91;
}

.team-header {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 15px;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.wavelength-team-section.team-1 .team-header {
    color: #1CA9C9;
}

.wavelength-team-section.team-2 .team-header {
    color: #FF6F91;
}

/* Spectrum Display */
.wavelength-spectrum-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    margin: 30px 0;
    padding: 0 20px;
    position: relative;
}

.wavelength-spectrum {
    width: 100%;
    max-width: 600px;
    position: relative;
    padding: 30px 0;
    margin: 0 auto;
    min-height: 0;
}

/* Wavelength Label Container */
.wavelength-label-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 20px 10px 20px;
    padding: 0 20px;
}

.spectrum-label {
    font-size: 1.4rem;
    font-weight: bold;
    white-space: nowrap;
}

.spectrum-label.left {
    color: #FF1493;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.spectrum-label.right {
    color: #FF6F91;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.spectrum-bar {
    width: 100%;
    height: 300px;
    background: white;
    border-radius: 50% / 100%;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    position: relative;
    box-shadow: 0 0 40px rgba(255, 20, 147, 0.3), 0 8px 20px rgba(0, 0, 0, 0.15);
    border: 6px solid #FF69B4;
    border-bottom: none;
    overflow: hidden;
    margin: 0 auto;
}

/* Rotating cover sheet for reveal/hide animation */
.wavelength-cover-sheet {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #FF1493;
    border-radius: 50% / 100%;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    transform-origin: bottom center;
    transform: rotate(0deg);
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    pointer-events: none;
}

.wavelength-cover-sheet.covering {
    transform: rotate(0deg);
    z-index: 100;
}

.wavelength-cover-sheet:not(.covering) {
    transform: rotate(180deg);
    z-index: 1;
}

/* Magenta circular hub at center */
.spectrum-bar::after {
    content: '';
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: #FF1493;
    border-radius: 50%;
    z-index: 20;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3), 0 2px 4px rgba(255, 20, 147, 0.5);
    border: 3px solid white;
}

.target-zone {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform-origin: bottom center;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 50px 280px 50px;
    border-color: transparent transparent rgba(255, 200, 100, 0.25) transparent;
    background: transparent;
    transition: opacity 0.3s;
    z-index: 8;
}

.target-zone.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Tap to Reveal Overlay - covers entire spectrum */
.tap-to-reveal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 20, 147, 0.97);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 500px 500px 0 0;
    z-index: 100;
    cursor: pointer;
    transition: opacity 0.3s;
    border: 6px solid #FF1493;
    border-bottom: none;
}

.tap-to-reveal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.tap-to-reveal-content {
    text-align: center;
    padding: 20px;
    color: white;
}

/* Wavelength Button Container */
.wavelength-button-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
    padding: 0 20px;
    min-width: 0;
    width: 100%;
}

/* Floating Hide Button */
.wavelength-hide-btn {
    background: rgba(255, 20, 147, 0.95);
    color: white;
    border: 3px solid white;
    border-radius: 12px;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Re-spin Button (left side) */
.wavelength-respin-btn {
    background: rgba(28, 169, 201, 0.95);
    color: white;
    border: 3px solid white;
    border-radius: 12px;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    min-width: fit-content;
}

.wavelength-respin-btn:hover {
    background: rgba(28, 169, 201, 1);
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.wavelength-respin-btn.hidden {
    opacity: 0;
    pointer-events: none;
}

.wavelength-hide-btn:hover {
    background: rgba(255, 20, 147, 1);
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.wavelength-hide-btn.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Remove old point sections styling */
.point-sections {
    display: none;
}

.point-section:last-child {
    border-bottom: none;
}

/* Remove 1-point sections */
.point-1-left,
.point-1-right {
    display: none;
}

/* Radiating wedge sections - 5 wedges total */
/* Outer coral wedges (far left and far right) */
.point-2-left {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform-origin: bottom center;
    transform: translateX(-50%) rotate(-15deg);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 310px 28px 0 28px;
    border-color: #FF7F7F transparent transparent transparent;
    z-index: 5;
}

.point-2-right {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform-origin: bottom center;
    transform: translateX(-50%) rotate(15deg);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 310px 28px 0 28px;
    border-color: #FF7F7F transparent transparent transparent;
    z-index: 5;
}

/* Middle orange wedges */
.point-3-left {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform-origin: bottom center;
    transform: translateX(-50%) rotate(-7.5deg);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 310px 28px 0 28px;
    border-color: #FFA500 transparent transparent transparent;
    z-index: 6;
}

.point-3-right {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform-origin: bottom center;
    transform: translateX(-50%) rotate(7.5deg);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 310px 28px 0 28px;
    border-color: #FFA500 transparent transparent transparent;
    z-index: 6;
}

/* Wedge point labels */
.wedge-point-label {
    position: absolute;
    bottom: 170px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.4rem;
    font-weight: bold;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 0 10px rgba(0, 0, 0, 0.5);
    z-index: 10;
    pointer-events: none;
}

/* Center blue wedge */
.point-4 {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform-origin: bottom center;
    transform: translateX(-50%) rotate(0deg);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 310px 28px 0 28px;
    border-color: #4169E1 transparent transparent transparent;
    z-index: 7;
}

.wavelength-dial {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    transform-origin: bottom center;
    width: 12px;
    height: 280px;
    background: #FF1493;
    border-radius: 6px 6px 0 0;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2), 0 2px 4px rgba(255, 20, 147, 0.3);
    transition: box-shadow 0.2s;
    z-index: 15;
}

.wavelength-dial:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3), 0 2px 6px rgba(255, 20, 147, 0.5);
}

/* Category Selection */
.wavelength-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.category-btn {
    background: linear-gradient(135deg, #FF69B4, #FF1493);
    color: white;
    border: 3px solid #FF1493;
    padding: 25px 20px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(255, 20, 147, 0.3);
}

.category-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255, 20, 147, 0.5);
}

/* Spectrum Picker Grid */
.spectrum-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin: 20px 0;
    max-height: 60vh;
    overflow-y: auto;
    padding: 10px;
}

.spectrum-card-split {
    display: flex;
    height: 140px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 3px solid rgba(255, 255, 255, 0.8);
}

.spectrum-card-split:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border-color: white;
}

.spectrum-split-left,
.spectrum-split-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: white;
    position: relative;
}

.spectrum-split-text {
    font-size: 1.1rem;
    font-weight: bold;
    text-align: center;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.spectrum-arrow {
    font-size: 1.5rem;
    opacity: 0.8;
    margin: 5px 0;
}

/* Home corner button */
.home-corner-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF6B9D, #C239B3);
    border: 3px solid white;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Rectangular back button for wavelength spectrum page */
.wavelength-back-btn {
    position: fixed;
    top: 20px;
    left: 80px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0F4C5C, #1CA9C9);
    border: 3px solid white;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-corner-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.home-corner-btn:active {
    transform: scale(0.95);
}

.wavelength-back-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.wavelength-back-btn:active {
    transform: scale(0.95);
}

.wavelength-custom-category {
    background: rgba(255, 182, 217, 0.3);
    border: 3px solid #FF69B4;
    border-radius: 20px;
    padding: 30px;
    margin-top: 20px;
}

.wavelength-custom-category.hidden {
    display: none;
}

.custom-spectrum-inputs {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.custom-spectrum-inputs > div {
    flex: 1;
    min-width: 250px;
}

/* Wheel Wedges */
.wavelength-wheel {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin: 20px 0;
}

.wheel-wedge {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    border-radius: 15px;
    background: rgba(244, 233, 216, 0.8);
    border: 3px solid #8B6B4F;
    color: #0F4C5C;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.wheel-wedge.points-0 {
    border-color: #8B6B4F;
    color: #8B6B4F;
    opacity: 0.6;
}

.wheel-wedge.points-2 {
    border-color: #FF6F91;
    color: #FF6F91;
    background: rgba(255, 111, 145, 0.1);
}

.wheel-wedge.points-3 {
    border-color: #FFD966;
    color: #FFD966;
    background: rgba(255, 217, 102, 0.2);
    box-shadow: 0 0 15px rgba(255, 217, 102, 0.3);
}

.wheel-wedge.points-4 {
    border-color: #1CA9C9;
    color: #1CA9C9;
    background: rgba(28, 169, 201, 0.2);
    box-shadow: 0 0 20px rgba(28, 169, 201, 0.5), 0 0 30px rgba(28, 169, 201, 0.3);
}

/* Clue Section */
.wavelength-clue-section {
    background: rgba(244, 233, 216, 0.8);
    border: 4px solid #1CA9C9;
    border-radius: 25px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.wavelength-clue-section input {
    width: 100%;
    max-width: 500px;
    padding: 15px 20px;
    font-size: 1.2rem;
    border: 3px solid #1CA9C9;
    border-radius: 15px;
    background: #FFFDF7;
    color: #0F4C5C;
    margin: 15px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Guessing Section */
.wavelength-guessing-section {
    background: rgba(28, 169, 201, 0.15);
    border: 4px solid #1CA9C9;
    border-radius: 25px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

#wavelengthClueDisplay {
    font-size: 1.5rem;
    color: #1CA9C9;
    font-weight: bold;
    margin: 15px 0;
    text-shadow: 0 0 10px rgba(28, 169, 201, 0.3);
}

/* Opposing Guess Section */
.wavelength-opposing-section {
    background: rgba(255, 111, 145, 0.15);
    border: 4px solid #FF6F91;
    border-radius: 25px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.opposing-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

.opposing-buttons .action-btn {
    flex: 1;
    max-width: 200px;
}

/* Results Display */
.wavelength-result-display {
    margin: 30px 0;
}

.wavelength-score-display {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin: 30px 0;
}

.wavelength-team-score {
    text-align: center;
    padding: 20px 40px;
    background: rgba(244, 233, 216, 0.8);
    border-radius: 20px;
    border: 4px solid #1CA9C9;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.wavelength-team-score.team-1 {
    border-color: #1CA9C9;
}

.wavelength-team-score.team-2 {
    border-color: #FF6F91;
}

.wavelength-team-score h3 {
    margin-bottom: 10px;
}

.wavelength-team-score.team-1 h3 {
    color: #1CA9C9;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.wavelength-team-score.team-2 h3 {
    color: #FF6F91;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.wavelength-team-score .score {
    font-size: 2.5rem;
    font-weight: bold;
    color: #FF8C6A;
    text-shadow: 0 0 15px rgba(255, 140, 106, 0.4);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .wavelength-teams-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .wavelength-spectrum {
        max-width: 100%;
    }
    
    .spectrum-label {
        font-size: 1rem;
        top: -25px;
    }
    
    .spectrum-bar {
        height: 60px;
    }
    
    .wavelength-dial {
        height: 80px;
    }
    
    .wheel-wedge {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .wavelength-score-display {
        flex-direction: column;
        gap: 20px;
    }
}

/* Mode Selection */
.mode-selection-container {
    display: flex;
    gap: 30px;
    margin: 40px 0;
    justify-content: center;
}

.mode-card {
    flex: 1;
    max-width: 300px;
    background: rgba(244, 233, 216, 0.8);
    border: 4px solid #1CA9C9;
    border-radius: 25px;
    padding: 40px 30px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.mode-card:hover {
    background: rgba(255, 253, 247, 0.95);
    border-color: #FFD966;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(60, 179, 113, 0.3), 0 0 40px rgba(255, 217, 102, 0.2);
}

.mode-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.mode-card h2 {
    color: #2E8B78;
    font-size: 1.5rem;
    margin: 15px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.mode-card p {
    color: #0F4C5C;
    font-size: 1.1rem;
    margin: 10px 0;
    font-weight: 500;
}

.mode-detail {
    color: #8B6B4F !important;
    font-size: 0.9rem !important;
    margin-top: 15px !important;
}

/* Current Player Display */
.current-player-display {
    font-size: 1.8rem;
    font-weight: bold;
    margin: 20px 0;
    text-align: center;
    color: #00ff88;
}

/* Instruction Text */
.wavelength-instruction-text {
    color: #aaa;
    font-size: 1.1rem;
    margin: 15px 0;
    text-align: center;
}

/* Wavelength Psychic Info */
.wavelength-psychic-info {
    background: rgba(0, 255, 136, 0.1);
    border: 3px solid #00ff88;
    border-radius: 20px;
    padding: 40px;
    margin: 30px 0;
    text-align: center;
}

/* Reveal Overlay */
.wavelength-reveal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s;
}

.wavelength-reveal-overlay.hidden {
    display: none;
}

.reveal-overlay-content {
    background: rgba(244, 233, 216, 0.95);
    border: 5px solid #3CB371;
    border-radius: 25px;
    padding: 50px;
    text-align: center;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 50px rgba(60, 179, 113, 0.4);
}

/* Visual Markers on Spectrum */
.dial-marker {
    position: absolute;
    top: -15px;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: #3CB371;
    border-radius: 50%;
    border: 3px solid #FFFDF7;
    box-shadow: 0 0 25px rgba(60, 179, 113, 0.9), 0 0 40px rgba(60, 179, 113, 0.6);
    z-index: 10;
}

.dial-marker.hidden {
    display: none;
}

.target-marker {
    position: absolute;
    top: -15px;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: #FF6F91;
    border-radius: 50%;
    border: 3px solid #FFFDF7;
    box-shadow: 0 0 25px rgba(255, 111, 145, 0.9), 0 0 40px rgba(255, 111, 145, 0.6);
    z-index: 10;
}

.target-marker.hidden {
    display: none;
}

/* Mobile Responsive for Mode Selection */
@media (max-width: 768px) {
    .mode-selection-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .mode-card {
        max-width: 100%;
    }
    
    .mode-icon {
        font-size: 3rem;
    }
    
    .reveal-overlay-content {
        padding: 30px;
        max-width: 90%;
    }
}

/* Continue Section */
.wavelength-continue-section {
    margin-top: 30px;
    text-align: center;
}

.wavelength-continue-section.hidden {
    display: none;
}

.reveal-explanation {
    background: rgba(60, 179, 113, 0.15);
    border: 4px solid #3CB371;
    border-radius: 25px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

/* Enhanced Target Zone Visibility */
.target-zone {
    background: rgba(60, 179, 113, 0.4) !important;
    border: 4px solid #3CB371 !important;
    box-shadow: 0 0 25px rgba(60, 179, 113, 0.7), inset 0 0 30px rgba(60, 179, 113, 0.3) !important;
}

/* Enhanced Marker Visibility */
.dial-marker {
    width: 30px !important;
    height: 30px !important;
    top: -20px !important;
    box-shadow: 0 0 35px rgba(60, 179, 113, 1), 0 0 60px rgba(255, 217, 102, 0.5) !important;
    animation: pulse 1.5s infinite;
}

.target-marker {
    width: 30px !important;
    height: 30px !important;
    top: -20px !important;
    box-shadow: 0 0 35px rgba(255, 111, 145, 1), 0 0 60px rgba(255, 140, 106, 0.5) !important;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: translateX(-50%) scale(1);
    }
    50% {
        transform: translateX(-50%) scale(1.2);
    }
}

/* Mobile adjustments for markers */
@media (max-width: 768px) {
    .dial-marker, .target-marker {
        width: 25px !important;
        height: 25px !important;
        top: -15px !important;
    }
}
