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

body {
    font-family: 'Rajdhani', sans-serif;
    background: radial-gradient(circle at top, #1b1b26 0%, #0f0f18 45%, #05050a 100%);
    background-image:
        radial-gradient(circle at 12% 18%, rgba(244, 83, 102, 0.6) 2px, transparent 0),
        radial-gradient(circle at 84% 12%, rgba(255, 206, 69, 0.6) 3px, transparent 0),
        radial-gradient(circle at 22% 78%, rgba(78, 189, 255, 0.55) 2px, transparent 0),
        radial-gradient(circle at 66% 68%, rgba(111, 230, 178, 0.55) 3px, transparent 0),
        radial-gradient(circle at 40% 40%, rgba(244, 83, 102, 0.35) 5px, transparent 0);
    background-size: cover;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
    color: #f7f3e9;
}

.game-container {
    background: rgba(10, 10, 16, 0.92);
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 36px;
    max-width: 1500px;
    width: 100%;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.55),
        inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.game-container::before {
    content: '';
    position: absolute;
    inset: 28px;
    border-radius: 12px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

.header {
    text-align: center;
    margin-bottom: 32px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: center;
}

h1,
.star-wars-title {
    font-size: 42px;
    color: #f7f3e9;
    letter-spacing: 8px;
    text-transform: uppercase;
    font-weight: 700;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    position: relative;
    display: inline-block;
    padding: 12px 32px 18px;
}

h1::after,
.star-wars-title::after {
    content: '● ● ● ● ●';
    display: block;
    font-size: 20px;
    letter-spacing: 20px;
    margin-top: 8px;
    color: transparent;
    background-image: linear-gradient(90deg, #f55f77, #fbe04b, #4fb0ff, #71f5a3, #f55f77);
    -webkit-background-clip: text;
    background-clip: text;
}

.intro-banner {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.banner-title {
    font-size: 20px;
    font-weight: 700;
    color: #f7f3e9;
}

.banner-subtitle {
    font-size: 22px;
    font-weight: 700;
    color: #fbe04b;
    letter-spacing: 4px;
    display: inline-block;
    text-shadow: 0 0 12px rgba(251, 224, 75, 0.4), 0 0 24px rgba(251, 224, 75, 0.25);
    animation: prizePulse 1.8s ease-in-out infinite;
    transform-origin: center;
}

.control-bar {
    width: 100%;
    padding: 18px 24px;
    background: rgba(16, 16, 26, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    display: grid;
    grid-template-columns: 1.5fr 0.6fr auto;
    gap: 18px;
    align-items: center;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45);
}

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

.control-buttons {
    gap: 12px;
}

.announcer-line {
    font-size: 16px;
    letter-spacing: 2px;
    color: rgba(247, 243, 233, 0.88);
    text-transform: uppercase;
    text-align: center;
}

.hint-label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(247, 243, 233, 0.7);
}

.hint-count {
    font-size: 22px;
    font-weight: 700;
    color: #fbe04b;
    background: rgba(251, 224, 75, 0.15);
    padding: 8px 16px;
    border-radius: 999px;
    min-width: 52px;
    text-align: center;
    box-shadow: inset 0 0 12px rgba(251, 224, 75, 0.25);
}

.mute-btn {
    font-family: 'Rajdhani', sans-serif;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 12px 26px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.mute-btn {
    background: linear-gradient(135deg, #4fb0ff, #71f5a3);
    color: #0f0f18;
    box-shadow: 0 16px 32px rgba(79, 176, 255, 0.3);
}

.mute-btn[aria-pressed='true'] {
    background: rgba(79, 176, 255, 0.18);
    color: rgba(247, 243, 233, 0.8);
    box-shadow: none;
}

.mute-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 38px rgba(79, 176, 255, 0.4);
}

.game-content {
    opacity: 1;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
}

.images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 32px;
    margin-top: 32px;
}

.image-item {
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 30px;
    background: linear-gradient(160deg, rgba(17, 17, 26, 0.94), rgba(10, 10, 16, 0.92));
    border-radius: 22px;
    box-shadow: 0 24px 42px rgba(5, 5, 10, 0.6);
    transition: all 0.3s ease;
    animation: fadeIn 0.5s ease;
    min-height: 520px;
    display: flex;
    flex-direction: column;
    position: relative;
    perspective: 1000px;
}

.image-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 45px rgba(5, 5, 10, 0.65);
}

.image-item.answered {
    opacity: 0.9;
}

.image-item.correct-answer {
    border-color: rgba(111, 230, 178, 0.85);
    box-shadow: 0 26px 40px rgba(111, 230, 178, 0.25);
    background: linear-gradient(160deg, rgba(17, 34, 26, 0.96), rgba(10, 20, 16, 0.92));
}

.image-item.wrong-answer {
    border-color: rgba(245, 95, 119, 0.85);
    box-shadow: 0 26px 40px rgba(245, 95, 119, 0.25);
    background: linear-gradient(160deg, rgba(34, 16, 22, 0.96), rgba(21, 8, 12, 0.92));
}

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

@keyframes prizePulse {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 6px rgba(251, 224, 75, 0.4));
    }
    50% {
        transform: scale(1.08);
        filter: drop-shadow(0 0 18px rgba(251, 224, 75, 0.6));
    }
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 6px rgba(251, 224, 75, 0.4));
    }
}

.player-image {
    width: 100%;
    height: auto;
    max-height: 360px;
    min-height: 320px;
    object-fit: cover;
    border-radius: 16px;
    border: 3px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 20px 40px rgba(5, 5, 10, 0.65);
    margin-bottom: 24px;
    backface-visibility: hidden;
    transition: transform 0.6s ease, opacity 0.6s ease;
}

.player-image {
    cursor: pointer;
}

.player-image:focus-visible {
    outline: 3px solid rgba(251, 224, 75, 0.8);
    outline-offset: 4px;
}

.image-controls {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: auto;
}

.user-dropdown {
    font-family: 'Rajdhani', sans-serif;
    font-size: 14px;
    padding: 14px;
    background: rgba(12, 12, 18, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    cursor: pointer;
    text-transform: uppercase;
    color: #f7f3e9;
    letter-spacing: 2px;
    font-weight: 600;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath fill='%23f7f3e9' d='M7 10L2 5h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 48px;
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.4);
    transition: all 0.2s ease;
}

.user-dropdown:hover:not(:disabled),
.user-dropdown:focus {
    border-color: rgba(255, 255, 255, 0.32);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.5);
    outline: none;
}

.user-dropdown:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    border-color: rgba(255, 255, 255, 0.08);
}

.image-message {
    text-align: center;
    font-size: 12px;
    padding: 12px;
    min-height: 0;
    display: none;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    background: rgba(12, 12, 18, 0.85);
    color: #f7f3e9;
    transition: all 0.3s ease;
    letter-spacing: 2px;
    font-weight: 600;
    text-transform: uppercase;
}

.image-message.has-text {
    display: flex;
    min-height: 42px;
}

.image-message.correct {
    background: rgba(111, 230, 178, 0.18);
    color: #71f5a3;
    border-color: rgba(111, 230, 178, 0.6);
    box-shadow: 0 14px 28px rgba(111, 230, 178, 0.25);
    animation: pulse 0.5s ease;
}

.image-message.wrong {
    background: rgba(245, 95, 119, 0.18);
    color: #f55f77;
    border-color: rgba(245, 95, 119, 0.6);
    box-shadow: 0 14px 28px rgba(245, 95, 119, 0.25);
    animation: shake 0.5s ease;
}

.clue-card {
    position: absolute;
    inset: 30px;
    border-radius: 16px;
    background: rgba(5, 5, 10, 0.92);
    border: 2px dashed rgba(251, 224, 75, 0.6);
    color: #fbe04b;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
    font-size: 16px;
    letter-spacing: 2px;
    text-transform: uppercase;
    box-shadow: 0 14px 32px rgba(251, 224, 75, 0.25);
    transform: rotateY(180deg);
    backface-visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.6s ease, opacity 0.6s ease;
}

.image-item.show-clue .player-image {
    transform: rotateY(180deg);
    opacity: 0;
}

.image-item.show-clue .clue-card {
    transform: rotateY(0deg);
    opacity: 1;
}

.reveal-card {
    position: absolute;
    inset: 30px;
    border-radius: 16px;
    background: rgba(12, 12, 18, 0.94);
    border: 2px solid rgba(79, 176, 255, 0.65);
    color: #4fb0ff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 26px;
    font-size: 16px;
    letter-spacing: 2px;
    line-height: 1.5;
    text-transform: uppercase;
    box-shadow: 0 18px 36px rgba(79, 176, 255, 0.25);
    transform: rotateY(180deg);
    backface-visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.6s ease, opacity 0.6s ease;
}

.image-item.show-reveal .player-image {
    transform: rotateY(180deg);
    opacity: 0;
}

.image-item.show-reveal .reveal-card {
    transform: rotateY(0deg);
    opacity: 1;
    pointer-events: auto;
}

.card-hint-btn {
    font-family: 'Rajdhani', sans-serif;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 10px 18px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    background: linear-gradient(135deg, #f55f77, #fbe04b);
    color: #0f0f18;
    box-shadow: 0 12px 26px rgba(245, 95, 119, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.card-hint-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(245, 95, 119, 0.4);
}

.card-hint-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.game-actions {
    margin-top: 32px;
    display: flex;
    justify-content: center;
}

.submit-all-btn {
    font-family: 'Rajdhani', sans-serif;
    font-size: 18px;
    padding: 14px 52px;
    background: linear-gradient(135deg, #fbe04b, #f55f77, #4fb0ff, #71f5a3);
    color: #11111b;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-weight: 700;
    box-shadow: 0 20px 45px rgba(245, 95, 119, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

.submit-all-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -60%;
    width: 200%;
    height: 100%;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
    transform: skewX(-20deg);
    transition: transform 0.4s ease;
}

.submit-all-btn:hover::after {
    transform: translateX(120%);
}

.submit-all-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 52px rgba(245, 95, 119, 0.45);
}

.submit-all-btn:active {
    transform: translateY(1px);
    box-shadow: 0 16px 32px rgba(245, 95, 119, 0.3);
}

.submit-all-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.1);
}

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

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

.game-over {
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.game-over h2 {
    font-size: 36px;
    margin-bottom: 18px;
    color: #f7f3e9;
    letter-spacing: 6px;
    text-transform: uppercase;
    font-weight: 700;
}

.victory-message {
    font-size: 20px;
    margin-bottom: 30px;
    color: #f7f3e9;
    padding: 24px 48px;
    background: rgba(12, 12, 18, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.18);
    display: inline-block;
    animation: pulse 1.4s ease infinite;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.restart-btn {
    font-family: 'Rajdhani', sans-serif;
    font-size: 16px;
    padding: 14px 42px;
    background: linear-gradient(135deg, #4fb0ff, #71f5a3);
    color: #0f0f18;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 700;
    box-shadow: 0 20px 40px rgba(79, 176, 255, 0.35);
}

.restart-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 26px 50px rgba(79, 176, 255, 0.45);
}

.restart-btn:active {
    transform: translateY(1px);
    box-shadow: 0 14px 24px rgba(79, 176, 255, 0.3);
}

.final-container {
    max-width: 1400px;
}

.final-header {
    gap: 12px;
}

.final-instructions {
    max-width: 720px;
    font-size: 16px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(247, 243, 233, 0.78);
    background: rgba(12, 12, 18, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 14px 24px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.final-grid {
    margin-top: 24px;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.final-card {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(160deg, rgba(17, 17, 26, 0.94), rgba(10, 10, 16, 0.92));
    border-radius: 18px;
    box-shadow: 0 20px 35px rgba(5, 5, 10, 0.55);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    min-height: 340px;
}

.final-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 45px rgba(5, 5, 10, 0.65);
}

.final-toggle {
    width: 100%;
    min-height: 220px;
    border: 1px dashed rgba(251, 224, 75, 0.6);
    border-radius: 14px;
    background: rgba(5, 5, 10, 0.92);
    color: #f7f3e9;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 14px 32px rgba(251, 224, 75, 0.2);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.final-toggle:hover,
.final-toggle:focus {
    transform: translateY(-2px);
    border-color: rgba(251, 224, 75, 0.8);
    box-shadow: 0 18px 40px rgba(251, 224, 75, 0.3);
    outline: none;
}

.final-toggle .final-name {
    font-size: 20px;
    color: #fbe04b;
}

.final-toggle .final-clue {
    font-size: 14px;
    color: rgba(247, 243, 233, 0.7);
    line-height: 1.4;
    text-transform: none;
    letter-spacing: 1.2px;
    text-align: center;
}

.final-toggle .final-prompt {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    color: #0f0f18;
    background: linear-gradient(135deg, #fbe04b, #f55f77);
    padding: 10px 20px;
    border-radius: 999px;
    box-shadow: 0 12px 26px rgba(245, 95, 119, 0.25);
}

.final-image {
    width: 100%;
    display: none;
    border-radius: 14px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 18px 38px rgba(5, 5, 10, 0.55);
}

.final-card.revealed {
    border-color: rgba(111, 230, 178, 0.6);
    box-shadow: 0 24px 45px rgba(111, 230, 178, 0.2);
}

.final-card.revealed .final-image {
    display: block;
    animation: fadeIn 0.35s ease;
}

.final-card.revealed .final-toggle {
    min-height: auto;
    padding: 12px 18px;
    align-self: stretch;
    background: rgba(12, 12, 18, 0.75);
    border-color: rgba(111, 230, 178, 0.75);
    box-shadow: none;
    gap: 8px;
}

.final-card.revealed .final-toggle .final-name,
.final-card.revealed .final-toggle .final-clue {
    display: none;
}

.final-card.revealed .final-toggle .final-prompt {
    background: linear-gradient(135deg, #4fb0ff, #71f5a3);
    color: #0f0f18;
    box-shadow: 0 12px 26px rgba(79, 176, 255, 0.25);
    padding: 8px 18px;
}

/* Responsive Design */
@media (max-width: 1400px) {
    .images-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 28px;
    }
}

@media (max-width: 1100px) {
    .images-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 24px;
    }

    h1,
    .star-wars-title {
        font-size: 34px;
        letter-spacing: 6px;
    }

    .control-bar {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .control-buttons {
        justify-content: center;
    }
}

@media (max-width: 860px) {
    .images-grid {
        grid-template-columns: 1fr;
    }

    .game-container {
        padding: 28px;
    }

    .control-bar {
        padding: 16px 18px;
        gap: 16px;
    }

    .image-item {
        min-height: 460px;
        padding: 26px;
    }

    .player-image {
        min-height: 280px;
        max-height: 320px;
    }

    .clue-card,
    .reveal-card {
        inset: 24px;
        padding: 22px;
    }

    .game-actions {
        margin-top: 26px;
    }
}

@media (max-width: 640px) {
    .images-grid {
        grid-template-columns: 1fr;
    }

    .image-item {
        min-height: 420px;
        padding: 22px;
    }

    .player-image {
        min-height: 240px;
        max-height: 280px;
    }

    .clue-card,
    .reveal-card {
        inset: 20px;
        padding: 20px;
    }

    h1,
    .star-wars-title {
        font-size: 28px;
        letter-spacing: 4px;
    }

    .announcer-line {
        font-size: 14px;
        line-height: 1.4;
    }

    .card-hint-btn,
    .mute-btn {
        width: 100%;
    }

    .submit-all-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    body {
        padding: 16px;
    }

    .game-container {
        padding: 22px;
    }

    .image-item {
        padding: 18px;
        min-height: 380px;
    }

    .user-dropdown {
        letter-spacing: 1.5px;
    }

    .control-bar {
        padding: 14px;
    }

    .hint-count {
        min-width: 44px;
    }

    .player-image {
        min-height: 220px;
        max-height: 250px;
    }

    .clue-card,
    .reveal-card {
        inset: 18px;
        padding: 18px;
    }
}


