/* ============================================ */
/* MENU.CSS - Language Flags, Menu Buttons,    */
/* Menu Container, In-Game Buttons, Cards      */
/* ============================================ */

/* ============================================ */
/* LANGUAGE FLAGS                              */
/* ============================================ */
.language-flags {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    gap: 10px;
    z-index: 30;
}
.flag-btn {
    width: 40px;
    height: 28px;
    border: 2px solid #333;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    opacity: 0.6;
    overflow: hidden;
    position: relative;
}
.flag-btn:hover {
    opacity: 1;
    transform: scale(1.1);
    border-color: #666;
}
.flag-btn.active {
    opacity: 1;
    border-color: #00ffaa;
    box-shadow: 0 0 10px rgba(0, 255, 170, 0.5);
}
/* UK Flag - Union Jack */
.flag-btn.flag-en {
    background:
        /* Red cross (top layer) */
        linear-gradient(to bottom, transparent 40%, #C8102E 40%, #C8102E 60%, transparent 60%),
        linear-gradient(to right, transparent 42%, #C8102E 42%, #C8102E 58%, transparent 58%),
        /* White cross */
        linear-gradient(to bottom, transparent 35%, #fff 35%, #fff 65%, transparent 65%),
        linear-gradient(to right, transparent 37%, #fff 37%, #fff 63%, transparent 63%),
        /* Red diagonals */
        linear-gradient(26deg, transparent 36%, #C8102E 36%, #C8102E 42%, transparent 42%, transparent 58%, #C8102E 58%, #C8102E 64%, transparent 64%),
        linear-gradient(-26deg, transparent 36%, #C8102E 36%, #C8102E 42%, transparent 42%, transparent 58%, #C8102E 58%, #C8102E 64%, transparent 64%),
        /* White diagonals (saltire) */
        linear-gradient(26deg, transparent 30%, #fff 30%, #fff 48%, transparent 48%, transparent 52%, #fff 52%, #fff 70%, transparent 70%),
        linear-gradient(-26deg, transparent 30%, #fff 30%, #fff 48%, transparent 48%, transparent 52%, #fff 52%, #fff 70%, transparent 70%),
        /* Blue background */
        #012169;
    overflow: hidden;
}
/* German Flag */
.flag-btn.flag-de {
    background: linear-gradient(to bottom,
        #000 0%, #000 33.33%,
        #DD0000 33.33%, #DD0000 66.66%,
        #FFCC00 66.66%, #FFCC00 100%);
}
/* Spanish Flag */
.flag-btn.flag-es {
    background: linear-gradient(to bottom,
        #AA151B 0%, #AA151B 25%,
        #F1BF00 25%, #F1BF00 75%,
        #AA151B 75%, #AA151B 100%);
}
/* French Flag */
.flag-btn.flag-fr {
    background: linear-gradient(to right,
        #002654 0%, #002654 33.33%,
        #FFFFFF 33.33%, #FFFFFF 66.66%,
        #ED2939 66.66%, #ED2939 100%);
}
/* Brazilian Flag */
.flag-btn.flag-pt {
    background: #009B3A;
    position: relative;
    overflow: hidden;
}
.flag-btn.flag-pt::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg) scaleY(0.7);
    width: 26px;
    height: 26px;
    background: #FEDF00;
}
.flag-btn.flag-pt::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 11px;
    height: 11px;
    background:
        linear-gradient(to right, transparent 30%, #fff 30%, #fff 70%, transparent 70%),
        #002776;
    background-size: 100% 2px, 100% 100%;
    background-position: center center, center center;
    background-repeat: no-repeat;
    border-radius: 50%;
}

/* ============================================ */
/* MENU BUTTONS - Split Gradient Design        */
/* ============================================ */
.menu-btn {
    position: relative;
    width: 240px;
    padding: 14px 30px;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #44aaff;
    background: #0a0a12;
    border: none;
    cursor: pointer;
    font-family: 'Segoe UI', Arial, sans-serif;
    transition: all 0.2s;
}
.menu-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 2px;
    background: linear-gradient(90deg, #44aaff, transparent);
    transition: width 0.2s;
}
.menu-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #aa55ff);
    transition: width 0.2s;
}
.menu-btn:hover {
    color: #88ccff;
}
.menu-btn:hover::before {
    width: 70%;
}
.menu-btn:hover::after {
    width: 70%;
}
/* Green variant for continue/positive buttons */
.menu-btn.green { color: #44ff88; }
.menu-btn.green::before { background: linear-gradient(90deg, #44ff88, transparent); }
.menu-btn.green::after { background: linear-gradient(90deg, transparent, #44aaff); }
.menu-btn.green:hover { color: #88ffaa; }
/* Red variant for danger buttons */
.menu-btn.danger { color: #ff5555; }
.menu-btn.danger::before { background: linear-gradient(90deg, #ff5555, transparent); }
.menu-btn.danger::after { background: linear-gradient(90deg, transparent, #ff44aa); }
.menu-btn.danger:hover { color: #ff8888; }
/* Blue variant for save/load buttons */
.menu-btn.blue { color: #44aaff; }
.menu-btn.blue::before { background: linear-gradient(90deg, #44aaff, transparent); }
.menu-btn.blue::after { background: linear-gradient(90deg, transparent, #44ffff); }
.menu-btn.blue:hover { color: #88ccff; }

/* ============================================ */
/* IN-GAME MENU CONTAINER                      */
/* ============================================ */
.game-menu-container {
    position: relative;
    width: 1024px;
    height: 576px;
    background: #0a0a1a;
    border-radius: 16px;
    z-index: 1;
}

.game-menu-container::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, #44aaff, #aa44ff, #ff44aa, #44aaff);
    background-size: 300% 300%;
    border-radius: 18px;
    z-index: -1;
    animation: gradientMove 4s ease infinite;
}

.game-menu-container::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: #0a0a1a;
    border-radius: 14px;
    z-index: -1;
}

/* Green variant for building menu */
.game-menu-container.green::before {
    background: linear-gradient(45deg, #44ff88, #44aaff, #88ff44, #44ff88);
    background-size: 300% 300%;
}

.game-menu-container.green::after {
    background: #0a1a0f;
}

.game-menu-container.green {
    background: #0a1a0f;
}

/* Purple variant for research menu */
.game-menu-container.purple::before {
    background: linear-gradient(45deg, #aa44ff, #ff44aa, #44aaff, #aa44ff);
    background-size: 300% 300%;
}

.game-menu-container.purple::after {
    background: #0f0a1a;
}

.game-menu-container.purple {
    background: #0f0a1a;
}

/* ============================================ */
/* IN-GAME BUTTONS                             */
/* ============================================ */
.game-btn {
    position: relative;
    width: 140px;
    padding: 12px 10px;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #44aaff;
    background: #0a0a1a;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    z-index: 1;
    font-family: Arial, sans-serif;
    transition: color 0.3s, text-shadow 0.3s;
}

.game-btn::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #44aaff, #aa44ff, #ff44aa, #44aaff);
    background-size: 300% 300%;
    border-radius: 8px;
    z-index: -1;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.game-btn::after {
    content: '';
    position: absolute;
    top: 1px;
    left: 1px;
    right: 1px;
    bottom: 1px;
    background: #0a0a1a;
    border-radius: 5px;
    z-index: -1;
}

.game-btn:hover::before {
    opacity: 1;
    animation: gradientMove 2s ease infinite;
}

.game-btn:hover {
    color: #88ccff;
    text-shadow: 0 0 10px rgba(68, 170, 255, 0.8);
}

/* Green game button */
.game-btn.green {
    color: #44ff88;
    background: #0a1a0f;
}

.game-btn.green::before {
    background: linear-gradient(45deg, #44ff88, #44aaff, #88ff44, #44ff88);
    background-size: 300% 300%;
}

.game-btn.green::after {
    background: #0a1a0f;
}

.game-btn.green:hover {
    color: #88ffaa;
    text-shadow: 0 0 10px rgba(68, 255, 136, 0.8);
}

/* Purple game button */
.game-btn.purple {
    color: #aa88ff;
    background: #0f0a1a;
}

.game-btn.purple::before {
    background: linear-gradient(45deg, #aa44ff, #ff44aa, #44aaff, #aa44ff);
    background-size: 300% 300%;
}

.game-btn.purple::after {
    background: #0f0a1a;
}

.game-btn.purple:hover {
    color: #cc99ff;
    text-shadow: 0 0 10px rgba(170, 68, 255, 0.8);
}

/* Close button style */
.game-btn.close {
    color: #ff6666;
    background: #1a0a0a;
    padding: 8px 12px;
    font-size: 20px;
}

.game-btn.close::before {
    background: linear-gradient(45deg, #ff4444, #ff44aa, #aa44ff, #ff4444);
    background-size: 300% 300%;
}

.game-btn.close::after {
    background: #1a0a0a;
}

.game-btn.close:hover {
    color: #ff9999;
    text-shadow: 0 0 10px rgba(255, 100, 100, 0.8);
}

/* Building item card */
.building-card {
    position: relative;
    width: 140px;
    height: 160px;
    background: #0a1a0f;
    border-radius: 10px;
    padding: 10px;
    cursor: pointer;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.2s;
}

.building-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #44ff88, #44aaff, #88ff44, #44ff88);
    background-size: 300% 300%;
    border-radius: 12px;
    z-index: -1;
    opacity: 0.4;
    transition: opacity 0.3s;
}

.building-card::after {
    content: '';
    position: absolute;
    top: 1px;
    left: 1px;
    right: 1px;
    bottom: 1px;
    background: #0a1a0f;
    border-radius: 9px;
    z-index: -1;
}

.building-card:hover {
    transform: translateY(-3px);
}

.building-card:hover::before {
    opacity: 1;
    animation: gradientMove 2s ease infinite;
}

.building-card .icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.building-card .title {
    color: #44ff88;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 4px;
}

.building-card .cost {
    color: #ffcc44;
    font-size: 14px;
    font-weight: bold;
}

.building-card.locked {
    opacity: 0.5;
    cursor: not-allowed;
}

.building-card.locked:hover {
    transform: none;
}

.building-card.locked::before {
    opacity: 0.2;
    animation: none;
}

/* ============================================ */
/* FLOATING HOLOGRAM BASE - Animationen        */
/* ============================================ */
.tower-container {
    pointer-events: none;
}

/* Emitter Glow Animation */
@keyframes emitterPulse {
    0%, 100% { box-shadow: 0 0 12px #00ffaa, 0 0 25px rgba(0,255,170,0.6); }
    50% { box-shadow: 0 0 18px #00ffaa, 0 0 35px rgba(0,255,170,0.8); }
}
.tower-emitter {
    animation: emitterPulse 2s ease-in-out infinite;
}

/* Hologramm Flicker Animation */
@keyframes holoFlicker {
    0%, 100% { opacity: 1; }
    92% { opacity: 1; }
    93% { opacity: 0.7; }
    94% { opacity: 1; }
    96% { opacity: 0.8; }
    97% { opacity: 1; }
}
.tower-dome, .tower-hologram, .tower-hololine {
    animation: holoFlicker 4s ease-in-out infinite;
}

/* ============================================ */
/* BUY ME A COFFEE - Menu Icon                 */
/* ============================================ */
.coffee-link {
    position: absolute;
    top: 10px;
    right: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    text-decoration: none;
    cursor: pointer;
    z-index: 30;
    transition: transform 0.2s;
}

.coffee-link:hover {
    transform: scale(1.05);
}

.coffee-link:hover .coffee-cup-mini {
    box-shadow: inset -3px 0 6px rgba(0,0,0,0.15), 0 0 15px rgba(255, 200, 100, 0.4);
}

.coffee-link-text {
    color: #c9a66b;
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 0 10px rgba(201, 166, 107, 0.5);
    white-space: nowrap;
    order: 2;
}

.coffee-container-mini {
    position: relative;
    width: 45px;
    height: 50px;
    order: 1;
}

.coffee-cup-mini {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 28px;
    background: linear-gradient(180deg, #f5f5f5 0%, #e0e0e0 100%);
    border-radius: 2px 2px 14px 14px;
    box-shadow: inset -3px 0 6px rgba(0,0,0,0.1);
}

.coffee-cup-mini::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    height: 24px;
    background: linear-gradient(180deg, #3d2314 0%, #5c3a21 50%, #4a2c17 100%);
    border-radius: 1px 1px 12px 12px;
}

.coffee-handle-mini {
    position: absolute;
    right: -7px;
    top: 6px;
    width: 10px;
    height: 14px;
    border: 3px solid #e0e0e0;
    border-left: none;
    border-radius: 0 8px 8px 0;
}

.coffee-steam-mini {
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
}

.coffee-steam-mini span {
    width: 4px;
    height: 18px;
    background: linear-gradient(180deg, transparent, rgba(255,255,255,0.5), transparent);
    border-radius: 50%;
    animation: steamMini 2s ease-in-out infinite;
}

.coffee-steam-mini span:nth-child(2) { animation-delay: 0.3s; }
.coffee-steam-mini span:nth-child(3) { animation-delay: 0.6s; }

@keyframes steamMini {
    0%, 100% { transform: translateY(0) scaleX(1); opacity: 0; }
    50% { transform: translateY(-10px) scaleX(1.5); opacity: 0.7; }
}

/* ============================================ */
/* INSTAGRAM LINK - Menu Icon                  */
/* ============================================ */
.instagram-link {
    position: absolute;
    top: 90px;
    right: 31px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    cursor: pointer;
    z-index: 30;
    transition: transform 0.2s;
}

.instagram-link:hover {
    transform: scale(1.1);
}

.instagram-link img {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 0 8px rgba(225, 48, 108, 0.5));
    transition: filter 0.2s;
}

.instagram-link:hover img {
    filter: drop-shadow(0 0 15px rgba(225, 48, 108, 0.8));
}

.instagram-link-text {
    color: #e1306c;
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 0 10px rgba(225, 48, 108, 0.5);
    white-space: nowrap;
}

/* ============================================ */
/* PATCHNOTES PANEL                            */
/* ============================================ */
.patchnotes-panel {
    width: 280px;
    max-height: 520px;
    overflow-y: auto;
    padding: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    text-align: left;
}

.patchnotes-title {
    color: #88ccff;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.patchnotes-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.patchnotes-list li {
    color: #aabbcc;
    font-size: 11px;
    line-height: 1.5;
    padding: 3px 0 3px 14px;
    position: relative;
}

.patchnotes-list li::before {
    content: '•';
    color: #44aa88;
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* ============================================ */
/* CREDITS SCENE                               */
/* ============================================ */
.credits-container {
    position: absolute;
    width: 950px;
    left: 50%;
    top: calc(50% + 60px);
    transform: translate(-50%, -50%);
    background: rgba(8, 8, 16, 0.92);
    border: 1px solid rgba(68, 170, 255, 0.3);
    border-radius: 16px;
    padding: 40px 50px;
    box-shadow:
        0 0 40px rgba(68, 170, 255, 0.15),
        inset 0 1px 0 rgba(68, 170, 255, 0.1);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.credits-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #44aaff, #aa44ff, #44aaff, transparent);
}

.credits-title {
    font-family: 'Arial Black', Arial, sans-serif;
    font-size: 42px;
    font-weight: 900;
    text-align: center;
    letter-spacing: 3px;
    background: linear-gradient(180deg, #66ccff 0%, #44aaff 40%, #aa44ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 15px rgba(68, 170, 255, 0.5));
    margin-bottom: 30px;
}

.credits-sections-row {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
    margin-bottom: 20px;
}

.credits-section {
    flex: 1;
    text-align: center;
}

.credits-section-title {
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #aa44ff;
    text-shadow: 0 0 10px rgba(170, 68, 255, 0.5);
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(170, 68, 255, 0.3);
    white-space: nowrap;
}

.credits-item {
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 15px;
    color: #88ccff;
    margin: 8px 0;
    padding-left: 15px;
    position: relative;
}

.credits-item::before {
    content: '›';
    position: absolute;
    left: 0;
    color: #44aaff;
}

.credits-item.highlight {
    color: #44ffaa;
    font-weight: 500;
}

.credits-item.small {
    font-size: 13px;
    color: #6699aa;
}

.credits-item a, .credits-item.small a {
    pointer-events: auto;
    cursor: pointer;
    position: relative;
    z-index: 100;
}

.credits-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(68, 170, 255, 0.3), transparent);
    margin: 20px 0;
}

.credits-copyright-below {
    text-align: center;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #446688;
    letter-spacing: 2px;
    margin-top: 14px;
}

.credits-back-btn,
.credits-privacy-btn {
    position: relative;
    min-width: 240px;
    width: auto;
    padding: 14px 50px;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    color: #44aaff;
    background: #0a0a12;
    border: none;
    cursor: pointer;
    font-family: 'Segoe UI', Arial, sans-serif;
    transition: all 0.2s;
    flex-shrink: 0;
    white-space: nowrap;
}
.credits-privacy-btn { margin-top: 25px; }
.credits-back-btn    { margin-top: 10px; }

.credits-back-btn::before,
.credits-privacy-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 2px;
    background: linear-gradient(90deg, #44aaff, transparent);
    transition: width 0.2s;
}

.credits-back-btn::after,
.credits-privacy-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #aa55ff);
    transition: width 0.2s;
}

.credits-back-btn:hover,
.credits-privacy-btn:hover {
    color: #88ccff;
}

.credits-back-btn:hover::before,
.credits-privacy-btn:hover::before {
    width: 70%;
}

.credits-back-btn:hover::after,
.credits-privacy-btn:hover::after {
    width: 70%;
}

/* ============================================ */
/* GUIDE SCENE                                 */
/* ============================================ */
.guide-container {
    width: 950px;
    background: rgba(8, 8, 16, 0.95);
    border: 1px solid rgba(68, 170, 255, 0.3);
    border-radius: 16px;
    overflow: hidden;
    box-shadow:
        0 0 40px rgba(68, 170, 255, 0.15),
        inset 0 1px 0 rgba(68, 170, 255, 0.1);
    display: flex;
    flex-direction: column;
    position: relative;
}

.guide-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #44aaff, #aa44ff, #44aaff, transparent);
    z-index: 1;
}

.guide-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(68, 170, 255, 0.2);
    background: linear-gradient(180deg, rgba(20, 38, 58, 0.97), rgba(15, 30, 50, 0.95));
    position: relative;
}

.guide-close-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: 1px solid rgba(255, 100, 100, 0.4);
    color: #ff6666;
    font-size: 22px;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.guide-close-btn:hover {
    background: rgba(255, 50, 50, 0.2);
    border-color: #ff4444;
}

.guide-title {
    font-family: 'Arial Black', Arial, sans-serif;
    font-size: 28px;
    font-weight: 900;
    text-align: center;
    letter-spacing: 3px;
    background: linear-gradient(180deg, #66ccff 0%, #44aaff 40%, #aa44ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 15px rgba(68, 170, 255, 0.5));
}

.guide-content {
    overflow-y: auto;
    padding: 20px 30px;
    max-height: 520px;
}

.guide-content::-webkit-scrollbar {
    width: 6px;
}

.guide-content::-webkit-scrollbar-track {
    background: rgba(68, 170, 255, 0.05);
    border-radius: 3px;
}

.guide-content::-webkit-scrollbar-thumb {
    background: rgba(68, 170, 255, 0.3);
    border-radius: 3px;
}

.guide-content::-webkit-scrollbar-thumb:hover {
    background: rgba(68, 170, 255, 0.5);
}

.guide-section {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(68, 170, 255, 0.1);
}

.guide-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.guide-section-title {
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #aa44ff;
    text-shadow: 0 0 10px rgba(170, 68, 255, 0.5);
    margin-bottom: 10px;
}

.guide-text {
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 13px;
    color: #88ccff;
    line-height: 1.6;
    margin: 6px 0;
}

.guide-text strong {
    color: #44ffaa;
}

/* ============================================ */
/* WAVE BONUS SELECTION (in-game HUD dialog)   */
/* ============================================ */
.wave-bonus-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 1280px;
    height: 720px;
    background: radial-gradient(ellipse at center, rgba(4, 8, 14, 0.7) 0%, rgba(4, 8, 14, 0.9) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    pointer-events: auto !important;
}

.wave-bonus-dialog {
    position: relative;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 25%),
        linear-gradient(180deg, rgba(22, 31, 46, 0.98) 0%, rgba(9, 13, 21, 0.98) 100%);
    border: 1px solid rgba(150, 180, 220, 0.22);
    border-top: 2px solid #f2c14e;
    border-radius: 12px;
    padding: 28px 40px 30px;
    text-align: center;
    font-family: 'Segoe UI', system-ui, Arial, sans-serif;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(0, 0, 0, 0.6), 0 0 40px rgba(242, 193, 78, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    animation: waveBonusAppear 0.28s ease-out;
}

@keyframes waveBonusAppear {
    from {
        opacity: 0;
        transform: scale(0.94) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.wave-bonus-header {
    margin-bottom: 24px;
}

.wave-bonus-title {
    font-family: 'Segoe UI', system-ui, Arial, sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: #f2c14e;
    text-shadow: 0 2px 0 rgba(0, 0, 0, 0.6), 0 0 18px rgba(242, 193, 78, 0.4);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.wave-bonus-cards {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 24px;
}

.wave-bonus-btn {
    position: relative;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0) 35%),
        linear-gradient(180deg, #1a2433 0%, #0e141e 100%);
    border: 1px solid rgba(150, 180, 220, 0.22);
    border-radius: 10px;
    padding: 20px 30px;
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    min-width: 160px;
    text-align: center;
    font-family: inherit;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.wave-bonus-btn:hover {
    border-color: rgba(71, 221, 132, 0.85);
    background:
        linear-gradient(180deg, rgba(71, 221, 132, 0.12) 0%, rgba(71, 221, 132, 0.02) 60%),
        linear-gradient(180deg, #1c2a33 0%, #0e161e 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5), 0 0 20px rgba(71, 221, 132, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.wave-bonus-btn:active {
    transform: translateY(-1px);
}

.wave-bonus-btn-icon {
    font-size: 32px;
    margin-bottom: 8px;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.6));
}

.wave-bonus-btn-title {
    font-family: 'Segoe UI', system-ui, Arial, sans-serif;
    font-size: 20px;
    font-weight: bold;
    color: #6ee89c;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.6), 0 0 10px rgba(71, 221, 132, 0.35);
    margin-bottom: 5px;
    font-variant-numeric: tabular-nums;
}

.wave-bonus-btn-desc {
    font-family: 'Segoe UI', system-ui, Arial, sans-serif;
    font-size: 12px;
    color: #8f9fb3;
}

.wave-bonus-skip {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(150, 180, 220, 0.3);
    border-radius: 6px;
    padding: 11px 36px;
    font-family: 'Segoe UI', system-ui, Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #a7b4c4;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    margin-top: 10px;
    pointer-events: auto !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.45);
}

.wave-bonus-skip:hover {
    border-color: rgba(150, 180, 220, 0.6);
    color: #e3ebf4;
    background: rgba(255, 255, 255, 0.09);
}

.wave-bonus-play {
    width: 50px;
    height: 36px;
    background: linear-gradient(180deg, #7af0a8 0%, #47dd84 45%, #22a85a 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 12px auto 0 auto;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.55),
        0 0 14px rgba(71, 221, 132, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.45),
        inset 0 -2px 0 rgba(0, 0, 0, 0.2);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    pointer-events: auto !important;
}

.wave-bonus-play::before {
    content: '';
    width: 0;
    height: 0;
    border-left: 14px solid #0c2416;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
    margin-left: 4px;
}

.wave-bonus-play:hover {
    transform: scale(1.08);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.55),
        0 0 24px rgba(71, 221, 132, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -2px 0 rgba(0, 0, 0, 0.2);
}

.wave-bonus-ad-label {
    font-size: 10px;
    color: #8394a9;
    margin-top: 5px;
    letter-spacing: 0.5px;
}

/* ============================================ */
/* PRIVACY POLICY MODAL (inside Credits scene)  */
/* ============================================ */
.privacy-container {
    width: 820px;
    max-height: 640px;
    background: rgba(8, 8, 16, 0.98);
    border: 1px solid rgba(68, 170, 255, 0.35);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(68, 170, 255, 0.2), inset 0 1px 0 rgba(68, 170, 255, 0.1);
    display: flex;
    flex-direction: column;
    position: relative;
}
.privacy-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 28px;
    border-bottom: 1px solid rgba(68, 170, 255, 0.2);
    background: linear-gradient(180deg, rgba(68, 170, 255, 0.05) 0%, transparent 100%);
}
.privacy-title {
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: #88ccff;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.privacy-close-btn {
    background: transparent;
    border: 1px solid rgba(68, 170, 255, 0.4);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    color: #88ccff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    padding: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
}
/* Center the × glyph optically — Segoe UI's × sits above the line's center */
.privacy-close-btn > span {
    display: inline-block;
    line-height: 1;
    transform: translateY(-2px);
}
.privacy-close-btn:hover {
    background: rgba(68, 170, 255, 0.15);
    color: #ffffff;
}
.privacy-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px 28px 24px 28px;
    color: #ccddee;
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 13px;
    line-height: 1.6;
}
.privacy-content::-webkit-scrollbar { width: 8px; }
.privacy-content::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.3); }
.privacy-content::-webkit-scrollbar-thumb { background: rgba(68, 170, 255, 0.35); border-radius: 4px; }
.privacy-content::-webkit-scrollbar-thumb:hover { background: rgba(68, 170, 255, 0.55); }
.privacy-section { margin-bottom: 20px; }
.privacy-section:last-child { margin-bottom: 8px; }
.privacy-section-title {
    color: #66bbff;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(68, 170, 255, 0.15);
}
.privacy-text {
    margin: 0 0 8px 0;
    color: #ccddee;
}
.privacy-text a { color: #44aaff; text-decoration: underline; }
.privacy-lastupdated {
    font-size: 11px;
    color: #667788;
    text-align: right;
    margin-top: 16px;
    font-style: italic;
}
