/* Game.css - Guess That Song Amber Gold & Sunset Orange Concert Lounge Theme */

:root {
    --bg-dark: #0a0806;
    --card-bg: rgba(22, 16, 11, 0.88);
    --card-border: rgba(255, 183, 3, 0.18);
    --neon-gold: #ffd166;
    --neon-amber: #ffb703;
    --neon-orange: #fb8500;
    --neon-fiery: #ff5400;
    --neon-yellow: #ffe600;
    --neon-green: #00ff88;
    --neon-cyan: #00e5ff;
    --text-main: #ffffff;
    --text-muted: #d4a373;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 50% 30%, rgba(18, 12, 7, 0.5) 0%, rgba(8, 5, 3, 0.92) 100%),
        url('../bg.jpg');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Loading screen */
.loading-screen {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 40%, rgba(36, 25, 14, 0.95) 0%, rgba(10, 8, 6, 0.98) 100%), url('../bg.jpg');
    background-size: cover;
    background-position: center;
    font-family: 'Outfit', sans-serif;
    padding: 1.5rem;
    z-index: 9999;
}

.loading-box {
    background: rgba(22, 16, 11, 0.88);
    border: 1px solid rgba(255, 183, 3, 0.35);
    border-radius: 24px;
    padding: 2.5rem 2.5rem;
    max-width: 480px;
    width: 100%;
    text-align: center;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.8), 0 0 35px rgba(251, 133, 0, 0.25);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeInScale 0.6s ease-out forwards;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.94);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.loading-logo {
    width: 90px;
    height: 90px;
    margin-bottom: 1.2rem;
    animation: pulseGlow 1.8s infinite alternate ease-in-out;
}

.loading-title {
    font-family: 'Righteous', cursive;
    font-size: 2rem;
    color: var(--neon-gold);
    letter-spacing: 2px;
    margin-bottom: 0.3rem;
    text-shadow: 0 0 20px rgba(255, 183, 3, 0.6);
}

.loading-subtitle {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--neon-orange);
    letter-spacing: 3px;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.loading-progress-container {
    width: 100%;
    height: 14px;
    background: rgba(10, 8, 6, 0.85);
    border: 1px solid rgba(255, 183, 3, 0.3);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.8);
    margin-bottom: 1rem;
}

.loading-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ff5400 0%, #fb8500 40%, #ffb703 80%, #ffd166 100%);
    border-radius: 12px;
    transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 0 16px rgba(251, 133, 0, 0.9), 0 0 25px rgba(255, 183, 3, 0.5);
}

.loading-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.35) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 200% 100%;
    animation: shimmerProgress 1.5s infinite linear;
}

@keyframes shimmerProgress {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.loading-status-row {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.loading-status-text {
    color: #e0d0c0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 78%;
    text-align: left;
}

.loading-percentage-text {
    font-weight: 700;
    color: var(--neon-gold);
    text-shadow: 0 0 8px rgba(255, 209, 102, 0.5);
}

#blazor-error-ui {
    display: none;
    background: #1c1308;
    color: #ffd166;
    bottom: 0;
    box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.7);
    left: 0;
    padding: 0.8rem 1.5rem;
    position: fixed;
    width: 100%;
    z-index: 10000;
    border-top: 1px solid var(--neon-orange);
    text-align: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
}

#blazor-error-ui .reload {
    color: #ff5400;
    margin-left: 1rem;
    font-weight: 800;
    text-decoration: underline;
}

@keyframes pulseGlow {
    from {
        transform: scale(0.98);
        filter: drop-shadow(0 0 15px rgba(251, 133, 0, 0.5)) drop-shadow(0 0 25px rgba(255, 209, 102, 0.4));
    }
    to {
        transform: scale(1.04);
        filter: drop-shadow(0 0 30px rgba(251, 133, 0, 0.85)) drop-shadow(0 0 50px rgba(255, 183, 3, 0.7));
    }
}

/* Header */
.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2.5rem;
    background: rgba(16, 11, 7, 0.86);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 183, 3, 0.18);
}

.brand-container {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
    cursor: default;
}

.header-logo {
    width: 44px;
    height: 44px;
    filter: drop-shadow(0 0 10px rgba(251, 133, 0, 0.6));
    transition: transform 0.3s ease;
}

.header-logo:hover {
    transform: rotate(15deg) scale(1.1);
}

.brand-title {
    font-family: 'Righteous', cursive;
    font-size: 2rem;
    background: linear-gradient(90deg, #ffd166, #ffb703, #fb8500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
    text-shadow: 0 0 25px rgba(251, 133, 0, 0.5);
}

.round-badge {
    background: rgba(255, 183, 3, 0.1);
    padding: 0.5rem 1.2rem;
    border-radius: 999px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem;
    font-weight: 700;
    border: 1px solid rgba(255, 183, 3, 0.35);
    color: #ffd166;
}

.score-badge {
    background: rgba(0, 255, 136, 0.15);
    border: 1px solid var(--neon-green);
    color: var(--neon-green);
    padding: 0.5rem 1.2rem;
    border-radius: 999px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 800;
    font-size: 0.95rem;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.2);
}

/* Main arena layout */
.game-arena {
    display: flex;
    flex-direction: column;
    flex: 1;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    padding: 1.5rem;
    gap: 1.5rem;
}

/* Audio Visualizer Box */
.visualizer-box {
    background: rgba(18, 13, 8, 0.88);
    border: 1px solid rgba(255, 183, 3, 0.3);
    border-radius: 16px;
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    box-shadow: 0 0 30px rgba(251, 133, 0, 0.12);
}

.visualizer-canvas {
    width: 100%;
    height: 75px;
}

/* Clues Container */
.clues-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}

.clue-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 18px;
    padding: 1.4rem 1.8rem;
    position: relative;
    opacity: 0.35;
    transform: scale(0.98);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(10px);
}

.clue-card.unlocked {
    opacity: 1;
    transform: scale(1);
    border-color: rgba(255, 183, 3, 0.35);
}

.clue-card.current {
    border-color: var(--neon-amber);
    box-shadow: 0 0 25px rgba(251, 133, 0, 0.35);
    background: linear-gradient(135deg, rgba(251, 133, 0, 0.12) 0%, rgba(22, 16, 11, 0.96) 100%);
}

.clue-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.clue-badge {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 800;
    padding: 0.3rem 0.8rem;
    border-radius: 8px;
    background: rgba(255, 183, 3, 0.15);
    border: 1px solid rgba(255, 183, 3, 0.25);
    color: #ffd166;
}

.clue-points {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 900;
    font-size: 1.25rem;
    color: var(--neon-yellow);
    text-shadow: 0 0 10px rgba(255, 230, 0, 0.5);
}

.clue-body {
    font-size: 1.2rem;
    line-height: 1.6;
}

.masked-title-box {
    margin-top: 1rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 5px;
    color: var(--neon-green);
    background: rgba(0, 0, 0, 0.55);
    padding: 0.8rem 1.4rem;
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 136, 0.35);
    display: inline-block;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
}

/* Clue Cover Visual Hints */
.clue-cover-hint-box {
    margin: 1.2rem 0 0.5rem;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
}

.clue-cover-crop {
    width: 165px;
    height: 165px;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid rgba(255, 183, 3, 0.55);
    position: relative;
    background: #000;
    box-shadow: 0 0 25px rgba(251, 133, 0, 0.35);
}

.clue-cover-crop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.clue-blur-stage-2 img {
    filter: blur(3.5px) contrast(115%);
    transform: scale(1.25);
}

.clue-blur-stage-3 img {
    filter: blur(1.2px);
    transform: scale(1.08);
}

.clue-blur-stage-4 img {
    filter: none;
    transform: scale(1.0);
    border-color: var(--neon-green);
}

/* Discussion / Tip Bar */
.discuss-decision-bar {
    background: linear-gradient(135deg, rgba(251, 133, 0, 0.28) 0%, rgba(20, 14, 8, 0.96) 100%);
    border: 2px solid var(--neon-orange);
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    box-shadow: 0 0 35px rgba(251, 133, 0, 0.45);
    animation: popIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-decision-yes {
    background: linear-gradient(90deg, #10b981, #059669);
    border: none;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 800;
    padding: 0.9rem 2.2rem;
    border-radius: 14px;
    cursor: pointer;
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.5);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-decision-yes:hover {
    transform: scale(1.05);
    box-shadow: 0 0 35px rgba(16, 185, 129, 0.8);
}

.btn-decision-no {
    background: linear-gradient(90deg, #ef4444, #dc2626);
    border: none;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 800;
    padding: 0.9rem 2.2rem;
    border-radius: 14px;
    cursor: pointer;
    box-shadow: 0 0 25px rgba(239, 68, 68, 0.5);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-decision-no:hover {
    transform: scale(1.05);
    box-shadow: 0 0 35px rgba(239, 68, 68, 0.8);
}

/* Reveal Card */
.reveal-card {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.12) 0%, rgba(22, 16, 11, 0.96) 100%);
    border: 2px solid var(--neon-green);
    border-radius: 24px;
    padding: 2.2rem;
    text-align: center;
    box-shadow: 0 0 45px rgba(0, 255, 136, 0.25);
    animation: popIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes popIn {
    from { transform: scale(0.92); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.reveal-cover-wrapper {
    width: 200px;
    height: 200px;
    border-radius: 18px;
    overflow: hidden;
    border: 3px solid var(--neon-amber);
    box-shadow: 0 0 30px rgba(251, 133, 0, 0.5);
    flex-shrink: 0;
    position: relative;
}

.reveal-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reveal-song-title {
    font-family: 'Righteous', cursive;
    font-size: 2.8rem;
    color: var(--neon-green);
    margin-bottom: 0.3rem;
    letter-spacing: 1px;
}

.reveal-artist {
    font-size: 1.8rem;
    color: var(--neon-gold);
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.reveal-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.8rem;
    margin: 1.5rem 0 0;
    text-align: left;
}

.reveal-detail-item {
    background: rgba(0, 0, 0, 0.4);
    padding: 0.9rem 1.1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 183, 3, 0.12);
}

.reveal-detail-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.reveal-detail-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin-top: 0.2rem;
}

/* Shocking Trivia & Story Summary Box */
.shocking-trivia-box {
    margin-top: 1.4rem;
    background: linear-gradient(135deg, rgba(251, 133, 0, 0.22) 0%, rgba(255, 84, 0, 0.16) 100%);
    border: 2px solid var(--neon-orange);
    border-radius: 16px;
    padding: 1.2rem 1.6rem;
    text-align: left;
    box-shadow: 0 0 25px rgba(251, 133, 0, 0.35);
    animation: amberGlow 2.5s infinite alternate;
}

@keyframes amberGlow {
    from { box-shadow: 0 0 15px rgba(251, 133, 0, 0.25); }
    to { box-shadow: 0 0 35px rgba(251, 133, 0, 0.6); }
}

.shocking-trivia-header {
    font-family: 'Righteous', cursive;
    font-size: 1.05rem;
    letter-spacing: 1.5px;
    color: var(--neon-gold);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.shocking-trivia-content {
    font-size: 1.15rem;
    line-height: 1.6;
    color: #ffffff;
    font-weight: 600;
}

.story-summary-box {
    margin-top: 1rem;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 183, 3, 0.3);
    border-radius: 14px;
    padding: 1.1rem 1.4rem;
    text-align: left;
}

/* Bottom Party Dual Action Dock (SPACE = NEXT CLUE, ENTER = GUESSED) */
.party-action-dock {
    position: sticky;
    bottom: 1.2rem;
    display: flex;
    gap: 1.2rem;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    z-index: 100;
}

.dock-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem 1.6rem;
    border-radius: 999px;
    border: 2px solid;
    backdrop-filter: blur(16px);
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
}

.dock-btn:hover {
    transform: translateY(-3px) scale(1.02);
}

.dock-btn:active {
    transform: translateY(1px) scale(0.99);
}

.dock-btn-clue {
    background: rgba(26, 16, 8, 0.94);
    border-color: var(--neon-orange);
    box-shadow: 0 0 30px rgba(251, 133, 0, 0.35);
}

.dock-btn-clue:hover {
    box-shadow: 0 0 45px rgba(251, 133, 0, 0.65);
    border-color: #ffd166;
}

.dock-btn-win {
    background: rgba(10, 30, 20, 0.94);
    border-color: var(--neon-green);
    box-shadow: 0 0 35px rgba(0, 255, 136, 0.4);
}

.dock-btn-win:hover {
    box-shadow: 0 0 55px rgba(0, 255, 136, 0.75);
    border-color: #fff;
}

.dock-key-tag {
    background: #ffffff;
    color: #000000;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 900;
    font-size: 1rem;
    padding: 0.45rem 1rem;
    border-radius: 8px;
    box-shadow: 0 3px 0 #d4a373;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex-shrink: 0;
}

.dock-key-tag.key-enter {
    background: #00ff88;
    color: #062b16;
    box-shadow: 0 3px 0 #059669;
}

.dock-btn-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 1.15rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.dock-btn-clue .dock-btn-text {
    color: #ffd166;
}

.dock-btn-win .dock-btn-text {
    color: #00ff88;
}

/* Bottom Spacebar Action Footer - Ultra Radiant Arcade Prompt */
.space-action-bar {
    position: sticky;
    bottom: 1.2rem;
    background: rgba(18, 12, 7, 0.94);
    backdrop-filter: blur(16px);
    border: 2px solid var(--neon-amber);
    border-radius: 999px;
    padding: 1.1rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    box-shadow: 0 0 35px rgba(251, 133, 0, 0.4);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    max-width: 750px;
    margin: 0 auto;
    width: 100%;
}

.space-action-bar:hover, .space-action-bar:active {
    transform: scale(1.03);
    box-shadow: 0 0 50px rgba(251, 133, 0, 0.75);
    border-color: #ffd166;
}

.space-key-pill {
    background: #ffffff;
    color: #000000;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 900;
    font-size: 1.1rem;
    padding: 0.5rem 1.4rem;
    border-radius: 10px;
    box-shadow: 0 4px 0 #d4a373;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.space-action-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 1.35rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #ffd166;
}

.btn-replay-small {
    background: rgba(255, 183, 3, 0.15);
    border: 1px solid var(--neon-amber);
    color: #ffd166;
    padding: 0.4rem 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-replay-small:hover {
    background: rgba(255, 183, 3, 0.35);
    transform: scale(1.05);
}

.btn-intro-toggle {
    background: rgba(255, 183, 3, 0.12);
    border: 1px solid var(--neon-amber);
    color: var(--neon-gold);
    padding: 1.1rem 2.2rem;
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 15px rgba(251, 133, 0, 0.25);
}

.btn-intro-toggle:hover {
    background: rgba(255, 183, 3, 0.25);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(251, 133, 0, 0.55);
}

.btn-neon {
    background: linear-gradient(90deg, var(--neon-orange), var(--neon-fiery));
    border: none;
    color: #fff;
    padding: 0.9rem 2.2rem;
    font-size: 1.15rem;
    font-weight: 800;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 0 25px rgba(251, 133, 0, 0.45);
    transition: all 0.2s;
}

.btn-neon:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(251, 133, 0, 0.85);
}

.game-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    outline: none;
}
