/* ==========================================================================
   Shadow Escape - UI Components Stylesheet
   ========================================================================== */

/* ==========================================================================
   AAA Gaming Poster View (Matching User Reference Image)
   ========================================================================== */
.poster-view {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: clamp(0.5rem, 1.5vw, 1.5rem);
    height: calc(100vh - 60px);
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-gold) rgba(6, 7, 12, 0.6);
}

/* Custom Cyber Scrollbar for Poster View */
.poster-view::-webkit-scrollbar {
    width: 6px;
}
.poster-view::-webkit-scrollbar-track {
    background: rgba(6, 7, 12, 0.6);
}
.poster-view::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-gold), var(--primary-amber));
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}
.poster-view::-webkit-scrollbar-thumb:hover {
    background: #fbbf24;
}

.poster-container {
    width: min(1280px, 98%);
    min-height: min-content;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.9fr);
    align-items: flex-start;
    position: relative;
    gap: clamp(1rem, 2.5vw, 2.5rem);
    padding-top: 1rem;
    padding-bottom: 2.5rem;
    will-change: transform;
    transform: translateZ(0);
}

.poster-left-content,
.poster-hero-img,
.poster-intel-card {
    will-change: transform;
    transform: translateZ(0);
}

.poster-left-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 10;
    padding-left: clamp(0.5rem, 1.5vw, 1.5rem);
}

.poster-tagline {
    font-family: var(--font-heading);
    font-size: clamp(0.75rem, 1.05vw, 0.9rem);
    font-weight: 700;
    color: var(--primary-gold);
    letter-spacing: 3.5px;
    margin-bottom: 0.6rem;
    text-shadow: 0 0 15px rgba(251, 191, 36, 0.6);
}

/* Big Aggressive Gaming Title */
.poster-title-wrapper {
    margin-bottom: 1.5rem;
    line-height: 0.88;
}

.poster-title-shadow {
    font-family: var(--font-heading);
    font-size: clamp(3.2rem, 6vw, 5.2rem);
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 4px;
    text-transform: uppercase;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.9), 0 0 30px rgba(255, 255, 255, 0.2);
    transform: skewX(-4deg);
    display: block;
}

.poster-title-escape {
    font-family: var(--font-heading);
    font-size: clamp(3.6rem, 7vw, 6.2rem);
    font-weight: 900;
    background: linear-gradient(180deg, #fef08a 0%, #fbbf24 50%, #d97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 5px;
    text-transform: uppercase;
    filter: drop-shadow(0 0 25px rgba(251, 191, 36, 0.75)) drop-shadow(0 6px 12px rgba(0, 0, 0, 0.9));
    transform: skewX(-4deg);
    display: block;
    margin-top: -0.1em;
}

.poster-subtitle-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 0.6rem;
    max-width: 320px;
}

.poster-subtitle-pill .pill-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-gold), transparent);
}

.poster-subtitle-pill .pill-line:last-child {
    background: linear-gradient(-90deg, var(--primary-gold), transparent);
}

.poster-subtitle-pill .pill-text {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--primary-gold);
    letter-spacing: 3px;
}

/* 4 Icon Pillars Row */
.poster-features-row {
    display: flex;
    gap: clamp(0.8rem, 1.8vw, 1.8rem);
    margin-bottom: 1.8rem;
    flex-wrap: wrap;
}

.poster-feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
}

.poster-feature-item .feature-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(10, 12, 18, 0.8);
    border: 1px solid var(--primary-gold);
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: transform var(--transition-fast);
}

.poster-feature-item:hover .feature-icon-box {
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(251, 191, 36, 0.6);
}

.poster-feature-item .feature-label {
    font-family: var(--font-heading);
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.8px;
    line-height: 1.2;
}

/* Mobile Player Name Customizer Card - Hidden on Laptop/Desktop screens */
.poster-mobile-callsign-card {
    display: none !important;
}

/* Operative Profile & Player Name Customizer Card */
.poster-callsign-card {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.75) 0%, rgba(10, 15, 28, 0.85) 100%);
    border: 1px solid rgba(251, 191, 36, 0.28);
    border-left: 3px solid var(--primary-gold);
    border-radius: 10px;
    padding: 0.85rem 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}

.poster-callsign-card:hover {
    border-color: rgba(251, 191, 36, 0.5);
    box-shadow: 0 10px 36px rgba(251, 191, 36, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.callsign-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem;
}

.callsign-label {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--primary-gold);
    letter-spacing: 1.5px;
}

.callsign-label .pulse-dot {
    width: 7px;
    height: 7px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
    animation: callsignPulse 1.8s infinite;
}

@keyframes callsignPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.5; }
}

.callsign-status-badge {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.55rem;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-muted);
    letter-spacing: 1px;
    transition: all 0.25s ease;
}

.callsign-input-group {
    display: flex;
    align-items: center;
    background: rgba(5, 8, 15, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    padding: 0.2rem 0.3rem 0.2rem 0.75rem;
    transition: all 0.25s ease;
}

.callsign-input-group:focus-within {
    border-color: var(--primary-gold);
    box-shadow: 0 0 12px rgba(251, 191, 36, 0.25);
    background: rgba(5, 8, 15, 0.85);
}

.callsign-prefix {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 800;
    color: rgba(251, 191, 36, 0.75);
    letter-spacing: 1px;
    user-select: none;
    margin-right: 0.4rem;
}

.callsign-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    padding: 0.4rem 0.2rem;
    text-transform: uppercase;
}

.callsign-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
    text-transform: none;
    font-weight: 400;
}

.callsign-save-btn {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.4rem 1.1rem;
    color: #000000;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    letter-spacing: 1.2px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
}

.callsign-save-btn:hover {
    background: linear-gradient(135deg, #fef08a 0%, #fbbf24 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(251, 191, 36, 0.5);
}

.callsign-save-btn:active {
    transform: translateY(0);
}

.user-you-tag {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--primary-gold);
    background: rgba(251, 191, 36, 0.2);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    border: 1px solid rgba(251, 191, 36, 0.4);
    margin-left: 0.35rem;
    display: inline-block;
    vertical-align: middle;
}

/* Poster Action Buttons Row */
.poster-actions-row {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.poster-secondary-group {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

/* Bevelled Hexagon / Angled Play Button */
.poster-play-btn {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 900;
    padding: 0.85rem 2.8rem;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.22) 0%, rgba(245, 158, 11, 0.35) 50%, rgba(10, 12, 18, 0.9) 100%);
    border: 2px solid #fbbf24;
    border-radius: 8px;
    clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
    cursor: pointer;
    letter-spacing: 3px;
    text-transform: uppercase;
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.5), inset 0 0 15px rgba(251, 191, 36, 0.2);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.poster-play-btn:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #050608;
    box-shadow: 0 0 45px rgba(251, 191, 36, 0.85), 0 0 80px rgba(245, 158, 11, 0.4);
    transform: translateY(-2px) scale(1.03);
}

.poster-secondary-btn {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.75rem 1.4rem;
    color: #cbd5e1;
    background: rgba(10, 12, 18, 0.75);
    border: 1px solid rgba(251, 191, 36, 0.4);
    border-radius: 8px;
    cursor: pointer;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: all 0.2s ease;
    backdrop-filter: blur(8px);
}

.poster-secondary-btn:hover {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    border-color: #fbbf24;
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.4);
}

/* Rich Mission Intel & Tech Specs Card */
.poster-intel-card {
    background: rgba(6, 7, 12, 0.85);
    border: 1px solid rgba(251, 191, 36, 0.35);
    border-radius: 14px;
    padding: 1rem 1.2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), inset 0 0 15px rgba(251, 191, 36, 0.05);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    margin-top: 0.8rem;
    width: 100%;
    text-align: left;
}

.intel-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 0.75rem;
}

.intel-tag-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.4);
    color: var(--primary-gold);
    font-family: var(--font-heading);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.intel-story-box {
    margin-bottom: 0.8rem;
}

.intel-story-title {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--primary-gold);
    letter-spacing: 1.2px;
    margin-bottom: 0.3rem;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
}

.intel-story-text {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.intel-story-text b {
    color: #ffffff;
}

.intel-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
}

.intel-feature-box {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: rgba(12, 16, 26, 0.65);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 10px;
    padding: 8px 10px;
    transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.intel-feature-box:hover {
    border-color: var(--primary-gold);
    transform: translateY(-2px);
}

.intel-feature-icon {
    font-size: 1.15rem;
    line-height: 1;
    margin-top: 2px;
}

.intel-feature-info {
    display: flex;
    flex-direction: column;
}

.intel-feature-info strong {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    color: #ffffff;
    letter-spacing: 0.8px;
}

.intel-feature-info span {
    font-size: 0.7rem;
    color: var(--text-muted);
    line-height: 1.3;
}

/* Right Content: Full-Bleed Cutout Hero Image & Shield Crest */
.poster-right-content {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
}

/* Top-Right Shield Crest Badge */
.poster-crest-badge {
    position: absolute;
    top: 10px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(6, 7, 12, 0.85);
    border: 1.5px solid #fbbf24;
    border-radius: 12px;
    padding: 8px 14px;
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.4), inset 0 0 10px rgba(251, 191, 36, 0.1);
    backdrop-filter: blur(12px);
    z-index: 20;
}

.crest-logo-img {
    width: 34px;
    height: 34px;
    object-fit: cover;
    filter: drop-shadow(0 0 8px #fbbf24);
}

.crest-text-box {
    display: flex;
    flex-direction: column;
}

.crest-title {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 1px;
}

.crest-sub {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--primary-gold);
    letter-spacing: 1.5px;
}

/* Hero Person Cutout */
.poster-hero-person-wrapper {
    position: relative;
    width: 100%;
    height: calc(100vh - 120px);
    max-height: 680px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.desktop-hero-img {
    display: block;
}

.mobile-hero-img {
    display: none;
}

.poster-hero-img {
    height: 100%;
    max-height: 680px;
    object-fit: contain;
    object-position: bottom center;
    filter: drop-shadow(0 0 35px rgba(251, 191, 36, 0.5)) drop-shadow(0 20px 40px rgba(0, 0, 0, 0.95));
    transition: transform var(--transition-normal);
}

.poster-hero-person-wrapper:hover .poster-hero-img {
    transform: scale(1.02);
}

.poster-hero-name-tag {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(6, 8, 14, 0.92);
    border: 1px solid #fbbf24;
    border-radius: 8px;
    padding: 8px 14px;
    text-align: left;
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    z-index: 10;
    min-width: 250px;
    transition: all 0.3s ease;
}

.poster-hero-name-tag:hover,
.poster-hero-name-tag:focus-within {
    box-shadow: 0 0 25px rgba(251, 191, 36, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-color: #fef08a;
}

.poster-hero-name-tag .tag-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 4px;
}

.poster-hero-name-tag .tag-role {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--primary-gold);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.poster-hero-name-tag .callsign-status-badge {
    font-family: var(--font-heading);
    font-size: 0.6rem;
    font-weight: 700;
    padding: 0.1rem 0.45rem;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-muted);
    letter-spacing: 0.8px;
    transition: all 0.25s ease;
}

.poster-hero-name-tag .tag-input-row {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(251, 191, 36, 0.25);
    border-radius: 5px;
    padding: 2px 4px 2px 8px;
}

.poster-hero-name-tag .tag-input-row:focus-within {
    border-color: var(--primary-gold);
    background: rgba(0, 0, 0, 0.75);
}

.poster-hero-name-tag .tag-prefix {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 800;
    color: rgba(251, 191, 36, 0.8);
    letter-spacing: 1px;
    user-select: none;
}

.poster-hero-name-tag .hero-tag-input {
    flex: 1;
    min-width: 90px;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    padding: 4px 2px;
    text-transform: uppercase;
}

.poster-hero-name-tag .hero-tag-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
    font-weight: 400;
    text-transform: none;
}

.poster-hero-name-tag .hero-tag-save-btn {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 10px;
    color: #000000;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    letter-spacing: 1px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(251, 191, 36, 0.3);
}

.poster-hero-name-tag .hero-tag-save-btn:hover {
    background: linear-gradient(135deg, #fef08a 0%, #fbbf24 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(251, 191, 36, 0.5);
}

/* Buttons */
.cyber-btn {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    padding: 0.75rem 1.8rem;
    color: #fff;
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.18), rgba(168, 85, 247, 0.28));
    border: 1px solid var(--primary-cyan);
    border-radius: var(--border-radius-md);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    min-height: 48px;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), color var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast), opacity var(--transition-fast);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    will-change: transform;
}

.cyber-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 18%, rgba(255, 255, 255, 0.35) 50%, transparent 82%);
    opacity: 0;
    transform: translateX(-100%);
    transition: opacity var(--transition-fast), transform 0.4s ease;
    pointer-events: none;
    z-index: -1;
}

.cyber-btn:focus-visible {
    outline: 2px solid rgba(0, 243, 255, 0.95);
    outline-offset: 3px;
}

.cyber-btn:hover {
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-purple));
    color: #040714;
    font-weight: 800;
    box-shadow: 0 0 25px rgba(0, 243, 255, 0.7), 0 0 45px rgba(168, 85, 247, 0.35);
    transform: translateY(-2px) scale(1.02);
}

.cyber-btn:hover::before {
    opacity: 1;
    transform: translateX(100%);
}

.cyber-btn:active {
    transform: translateY(0) scale(0.98);
}

.cyber-btn.secondary {
    border-color: rgba(168, 85, 247, 0.55);
    background: rgba(168, 85, 247, 0.12);
    color: #e2e8f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.cyber-btn.secondary:hover {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.4), rgba(236, 72, 153, 0.4));
    color: #fff;
    border-color: var(--primary-purple);
    box-shadow: 0 0 22px rgba(168, 85, 247, 0.5);
}

.cyber-btn.danger {
    border-color: var(--accent-red);
    box-shadow: 0 0 14px rgba(244, 63, 94, 0.3);
}

.cyber-btn.danger:hover {
    background: var(--accent-red);
    color: #fff;
    box-shadow: 0 0 24px rgba(244, 63, 94, 0.7);
}

.cyber-btn-lg {
    padding: 0.85rem 2.2rem;
    font-size: 1.08rem;
    min-height: 52px;
}

/* Home Landing Screen - Optimized for Laptop Viewports */
.home-view {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: clamp(0.6rem, 1.6vw, 1.4rem);
    overflow-y: auto;
}

.home-layout {
    width: min(1200px, 98%);
    display: grid;
    grid-template-columns: minmax(0, 1.28fr) minmax(280px, 0.82fr);
    gap: clamp(1rem, 2vw, 2rem);
    align-items: center;
}

.home-panel {
    padding: clamp(1.2rem, 2.2vw, 2rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.home-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0.25rem 0.85rem;
    margin-bottom: 0.6rem;
    border: 1px solid rgba(0, 243, 255, 0.45);
    border-radius: 999px;
    background: rgba(0, 243, 255, 0.08);
    color: var(--primary-cyan);
    font-family: var(--font-heading);
    font-size: clamp(0.7rem, 0.85vw, 0.78rem);
    letter-spacing: 1.5px;
    line-height: 1.2;
    align-self: flex-start;
}

.home-copy {
    max-width: 42rem;
}

.home-title {
    font-size: clamp(2.2rem, 3.8vw, 3.5rem);
    line-height: 0.95;
    margin-bottom: 0.5rem;
    background: linear-gradient(90deg, #ffffff 0%, var(--primary-cyan) 60%, var(--primary-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 25px rgba(0, 243, 255, 0.4);
}

.home-description {
    max-width: 36rem;
    font-size: clamp(0.88rem, 1.05vw, 0.98rem);
    line-height: 1.55;
    color: #cbd5e1;
    margin-bottom: 1rem;
}

.home-actions {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.home-actions .cyber-btn {
    min-height: 48px;
}

.home-primary-action {
    flex: 1 1 200px;
    background: linear-gradient(135deg, #00f3ff 0%, #0099ff 50%, #7c3aed 100%) !important;
    color: #040714 !important;
    font-weight: 800 !important;
    border: 1px solid #00f3ff !important;
    box-shadow: 0 0 22px rgba(0, 243, 255, 0.55), 0 0 45px rgba(0, 243, 255, 0.2) !important;
}

.home-primary-action:hover {
    box-shadow: 0 0 35px rgba(0, 243, 255, 0.8), 0 0 70px rgba(124, 58, 237, 0.4) !important;
    transform: translateY(-2px) scale(1.02) !important;
}

.home-secondary-action,
.home-score-action {
    flex: 1 1 140px;
}

.home-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    text-align: left;
}

.home-feature-card {
    background: rgba(6, 10, 24, 0.65);
    padding: 0.75rem 0.9rem;
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-left-width: 3px;
    backdrop-filter: blur(10px);
    transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.home-feature-card:hover {
    transform: translateY(-2px);
    background: rgba(10, 16, 36, 0.8);
}

.home-feature-card h4 {
    margin-bottom: 0.25rem;
    font-size: 0.84rem;
    letter-spacing: 1px;
}

.home-feature-card p {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.home-feature-card.cyan {
    border-left-color: var(--primary-cyan);
}

.home-feature-card.cyan h4 {
    color: var(--primary-cyan);
}

.home-feature-card.purple {
    border-left-color: var(--primary-purple);
}

.home-feature-card.purple h4 {
    color: var(--primary-purple);
}

.home-profile-card {
    max-height: clamp(380px, 58vh, 480px);
    min-height: unset;
    max-width: 380px;
    margin: 0 auto;
    width: 100%;
}

.home-mobile-card {
    display: none;
}

.home-profile-card .hero-showcase-img {
    max-height: clamp(380px, 58vh, 480px);
    object-fit: cover;
    object-position: center 10%;
}

.home-profile-label,
.home-profile-name,
.home-status-label {
    display: block;
    font-family: var(--font-heading);
}

.home-profile-label {
    font-size: 0.7rem;
    color: var(--primary-cyan);
    letter-spacing: 1.2px;
}

.home-profile-name {
    font-size: 1rem;
    color: #fff;
}

.home-status {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    text-align: right;
}

.home-status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent-green);
    box-shadow: 0 0 10px var(--accent-green);
    flex: 0 0 auto;
}

.home-status-label {
    color: var(--accent-green);
    font-size: 0.75rem;
    letter-spacing: 1px;
}

/* Glassmorphism Cards */
.cyber-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--border-radius-md);
    padding: 2rem;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.7), inset 0 0 15px rgba(251, 191, 36, 0.05);
    position: relative;
}

.cyber-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-gold), transparent);
}

/* Section Header */
.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    background: linear-gradient(90deg, #fff, var(--primary-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.4);
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Modal Dialogs */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 5, 12, 0.84);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    padding: 1.2rem 1rem;
    box-sizing: border-box;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-gold) rgba(6, 7, 12, 0.6);
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s cubic-bezier(0.16, 1, 0.3, 1), backdrop-filter 0.35s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-overlay.closing {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.modal-content {
    background: linear-gradient(135deg, rgba(12, 16, 32, 0.96), rgba(6, 8, 18, 0.98));
    border: 1.5px solid var(--primary-gold);
    border-radius: var(--border-radius-md);
    padding: clamp(1.2rem, 2.5vh, 2.2rem);
    width: 90%;
    max-width: 540px;
    max-height: calc(100vh - 2.5rem);
    overflow-y: auto;
    box-sizing: border-box;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85), inset 0 0 25px rgba(251, 191, 36, 0.1);
    transform: scale(0.91) translateY(18px);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.modal-close-btn {
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.5);
    color: var(--primary-gold);
    width: 38px;
    height: 38px;
    border-radius: 10px;
    font-size: 1.25rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), background var(--transition-normal);
}

.modal-close-btn:hover {
    background: rgba(251, 191, 36, 0.25);
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.4);
    transform: translateY(-2px);
}

.modal-close-btn:focus-visible {
    outline: 2px solid rgba(251, 191, 36, 0.95);
    outline-offset: 3px;
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.modal-overlay.closing .modal-content {
    transform: scale(0.93) translateY(12px);
    opacity: 0;
}

/* Pause & Game Over Gameplay Modals Sizing & Styling */
.pause-modal-content, .game-over-modal-content {
    max-width: 450px;
    width: 90%;
    padding: 1.6rem 2rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.game-over-modal-content {
    border-color: var(--accent-red, #ef4444);
    box-shadow: 0 0 45px rgba(239, 68, 68, 0.4), inset 0 0 25px rgba(239, 68, 68, 0.1);
}

.pause-modal-title, .game-over-title {
    margin: 0 0 0.4rem 0;
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 900;
    letter-spacing: 1.5px;
}

.game-over-title {
    color: var(--accent-red, #ef4444);
    text-shadow: 0 0 18px rgba(239, 68, 68, 0.5);
}

.pause-modal-desc, .game-over-desc {
    color: var(--text-muted, #94a3b8);
    font-size: 0.85rem;
    margin: 0 0 1.4rem 0;
    line-height: 1.3;
}

.pause-actions-group, .game-over-actions-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    width: 100%;
}

.pause-btn, .game-over-btn {
    width: 100% !important;
    justify-content: center !important;
    clip-path: none !important;
    border-radius: 8px !important;
    min-height: 48px;
    font-size: 0.92rem;
    display: inline-flex;
    align-items: center;
}

/* ==========================================================================
   Professional 5-Level Animated Sector Map Transition Screen
   ========================================================================== */

.modal-content.sector-map-modal-content {
    max-width: 980px;
    width: 96%;
    padding: 1.4rem 1.8rem;
    background: linear-gradient(155deg, rgba(6, 10, 22, 0.98), rgba(2, 4, 12, 0.99));
    border: 1.5px solid rgba(251, 191, 36, 0.35);
    border-radius: 18px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.95), 
                0 0 50px rgba(251, 191, 36, 0.15),
                inset 0 0 30px rgba(251, 191, 36, 0.04);
    position: relative;
    overflow: hidden;
    color: #ffffff;
    text-align: left;
}

.modal-content.sector-map-modal-content::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        radial-gradient(circle at 50% 40%, rgba(56, 189, 248, 0.08) 0%, transparent 70%),
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 100% 100%, 32px 32px, 32px 32px;
    pointer-events: none;
    z-index: 0;
}

/* Cyber Corner Accents */
.cyber-corner {
    position: absolute;
    width: 16px;
    height: 16px;
    border-color: rgba(251, 191, 36, 0.8);
    border-style: solid;
    pointer-events: none;
    z-index: 10;
}

.cyber-corner.top-left { top: 10px; left: 10px; border-width: 2.5px 0 0 2.5px; }
.cyber-corner.top-right { top: 10px; right: 10px; border-width: 2.5px 2.5px 0 0; }
.cyber-corner.bottom-left { bottom: 10px; left: 10px; border-width: 0 0 2.5px 2.5px; }
.cyber-corner.bottom-right { bottom: 10px; right: 10px; border-width: 0 2.5px 2.5px 0; }

/* AAA World Map Header Bar */
.world-map-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
    margin-bottom: 1rem;
    gap: 15px;
    flex-wrap: wrap;
}

.map-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.map-title-slash {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary-gold, #fbbf24);
    font-family: var(--font-heading, sans-serif);
}

.map-main-title {
    font-size: 1.85rem;
    font-weight: 900;
    font-family: var(--font-heading, sans-serif);
    letter-spacing: 3.5px;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
    margin: 0;
    text-transform: uppercase;
}

.map-sub-title {
    font-size: 0.72rem;
    font-family: var(--font-heading, sans-serif);
    letter-spacing: 2px;
    color: rgba(251, 191, 36, 0.85);
    margin: 2px 0 0 0;
    text-transform: uppercase;
}

.world-map-stats-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.world-hud-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.hud-pill-icon {
    font-size: 1.1rem;
}

.hud-pill-text {
    display: flex;
    flex-direction: column;
}

.hud-pill-label {
    font-size: 0.58rem;
    font-weight: 700;
    color: rgba(148, 163, 184, 0.85);
    letter-spacing: 1px;
}

.hud-pill-val {
    font-size: 1.05rem;
    font-weight: 800;
    font-family: var(--font-heading, sans-serif);
    line-height: 1.1;
}

.hud-pill-val.gold { color: #fbbf24; text-shadow: 0 0 8px rgba(251, 191, 36, 0.5); }
.hud-pill-val.cyan { color: #38bdf8; text-shadow: 0 0 8px rgba(56, 189, 248, 0.5); }

/* Main Stage World Map Area */
.sector-map-wrapper {
    position: relative;
    width: 100%;
    height: 380px;
    background: url('../uploads/world_map.webp') center/cover no-repeat;
    border: 1.5px solid rgba(251, 191, 36, 0.4);
    border-radius: 16px;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.92), 0 12px 35px rgba(0, 0, 0, 0.8);
    z-index: 1;
}

.sector-map-bg-grid {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 50%, rgba(6, 12, 28, 0.35) 0%, rgba(2, 5, 14, 0.82) 100%),
                linear-gradient(rgba(56, 189, 248, 0.04) 1px, transparent 1px),
                linear-gradient(90deg, rgba(56, 189, 248, 0.04) 1px, transparent 1px);
    background-size: 100% 100%, 28px 28px, 28px 28px;
    pointer-events: none;
}

.sector-map-canvas {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.sector-nodes-container {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 3;
    pointer-events: none;
}

/* AAA World Map Sector Node Card (Compact Tactical Size) */
.sector-card-node {
    position: absolute;
    transform: translate(-50%, -50%);
    width: 125px;
    display: flex;
    flex-direction: column;
    background: rgba(8, 14, 28, 0.95);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    pointer-events: auto;
    z-index: 4;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.85);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.sector-card-node:hover {
    transform: translate(-50%, -54%) scale(1.08);
    z-index: 8;
}

/* Card Header Bar */
.card-header-bar {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 3px 5px;
    background: rgba(12, 18, 36, 0.96);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.card-lvl-num {
    font-size: 0.58rem;
    font-weight: 900;
    font-family: var(--font-heading, sans-serif);
    padding: 1px 4px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    flex-shrink: 0;
    line-height: 1.1;
}

.card-lvl-name {
    font-size: 0.52rem;
    font-weight: 800;
    font-family: var(--font-heading, sans-serif);
    letter-spacing: 0.2px;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
    line-height: 1.1;
}

/* Card Thumbnail Area */
.card-thumb-wrapper {
    position: relative;
    width: 100%;
    height: 48px;
    background: #000000;
    overflow: hidden;
}

.card-thumb-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.sector-card-node:hover .card-thumb-img {
    transform: scale(1.08);
    filter: brightness(1.15);
}

.card-badge-overlay {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.62rem;
    font-weight: 800;
    background: rgba(15, 23, 42, 0.9);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.7);
}

/* Card Footer Bar */
.card-footer-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 3px 6px;
    background: rgba(6, 10, 22, 0.96);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.diff-tag {
    font-size: 0.5rem;
    font-weight: 800;
    font-family: var(--font-heading, sans-serif);
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.card-stars-val {
    font-size: 0.54rem;
    font-weight: 700;
    color: rgba(226, 232, 240, 0.85);
}

/* Color Themes & Difficulty Tags */
.theme-green .card-lvl-num { background: rgba(16, 185, 129, 0.3); color: #34d399; }
.theme-green .diff-tag { color: #34d399; }

.theme-cyan .card-lvl-num { background: rgba(56, 189, 248, 0.3); color: #38bdf8; }
.theme-cyan .diff-tag { color: #38bdf8; }

.theme-orange .card-lvl-num { background: rgba(251, 191, 36, 0.3); color: #fbbf24; }
.theme-orange .diff-tag { color: #fbbf24; }

.theme-purple .card-lvl-num { background: rgba(168, 85, 247, 0.3); color: #c084fc; }
.theme-purple .diff-tag { color: #c084fc; }

.theme-red .card-lvl-num { background: rgba(239, 68, 68, 0.3); color: #f87171; }
.theme-red .diff-tag { color: #f87171; }

/* Card Node States (Completed, Active Target, Locked) */
.sector-card-node.completed {
    border-color: #10b981;
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.45);
}
.sector-card-node.completed .card-badge-overlay {
    background: #10b981;
    border-color: #34d399;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.8);
}

.sector-card-node.target-unlocked {
    border-color: #fbbf24;
    box-shadow: 0 0 24px rgba(251, 191, 36, 0.85);
    animation: targetCardGlow 1.8s infinite alternate ease-in-out;
}

@keyframes targetCardGlow {
    0% { border-color: rgba(251, 191, 36, 0.7); box-shadow: 0 0 16px rgba(251, 191, 36, 0.6); }
    100% { border-color: rgba(251, 191, 36, 1); box-shadow: 0 0 30px rgba(251, 191, 36, 1); }
}

.sector-card-node.target-unlocked .card-badge-overlay {
    background: linear-gradient(135deg, #d97706, #fbbf24);
    border-color: #fef08a;
    color: #000000;
    box-shadow: 0 0 14px rgba(251, 191, 36, 0.9);
}

.sector-card-node.locked {
    opacity: 0.6;
    filter: grayscale(0.6);
    border-color: rgba(255, 255, 255, 0.12);
}

.sector-card-node.locked .card-badge-overlay {
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.4);
}

/* Level Cleared Pop Animation Sequence */
.sector-card-node.just-cleared-pop {
    animation: cardClearPop 0.85s cubic-bezier(0.34, 1.56, 0.64, 1) forwards !important;
    border-color: #10b981 !important;
    z-index: 15 !important;
}

@keyframes cardClearPop {
    0% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 0 20px rgba(16, 185, 129, 0.4); }
    40% { transform: translate(-50%, -55%) scale(1.24); box-shadow: 0 0 65px rgba(16, 185, 129, 0.95), 0 0 90px rgba(52, 211, 153, 0.7); }
    100% { transform: translate(-50%, -50%) scale(1.05); box-shadow: 0 0 35px rgba(16, 185, 129, 0.7); }
}

.sector-card-node.just-cleared-pop .card-badge-overlay {
    animation: badgePopSpin 0.75s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    background: #10b981 !important;
    border-color: #34d399 !important;
    color: #ffffff !important;
}

@keyframes badgePopSpin {
    0% { transform: scale(0) rotate(-180deg); }
    70% { transform: scale(1.4) rotate(15deg); }
    100% { transform: scale(1) rotate(0deg); }
}

/* Map Runner Avatar (TACTICAL HERO SIZE Standing on Level Map Point) */
.map-runner-avatar {
    position: absolute;
    width: 105px;
    height: 105px;
    top: 0; left: 0;
    z-index: 12;
    pointer-events: none;
    margin-top: -90px;
    margin-left: -52px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 0 20px rgba(251, 191, 36, 0.95)) drop-shadow(0 0 30px rgba(16, 185, 129, 0.9));
}

.avatar-ring-glow {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 3px solid rgba(251, 191, 36, 0.95);
    box-shadow: 0 0 28px rgba(251, 191, 36, 0.95), inset 0 0 16px rgba(251, 191, 36, 0.6);
    pointer-events: none;
    animation: ringGlowPulse 1.2s infinite alternate ease-in-out;
}

@keyframes ringGlowPulse {
    0% { transform: scale(0.94); opacity: 0.85; box-shadow: 0 0 15px rgba(251, 191, 36, 0.75); }
    100% { transform: scale(1.12); opacity: 1; box-shadow: 0 0 25px rgba(251, 191, 36, 1); }
}

.map-runner-avatar img {
    width: 96px;
    height: 96px;
    object-fit: contain;
    filter: brightness(1.25) contrast(1.18);
    animation: runnerBob 0.5s infinite alternate ease-in-out;
}

@keyframes runnerBob {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-4px) scale(1.08); }
}

.runner-pulse-ring {
    position: absolute;
    top: 50%; left: 50%;
    width: 72px; height: 72px;
    margin-top: -36px; margin-left: -36px;
    border-radius: 50%;
    border: 2px solid rgba(251, 191, 36, 0.9);
    box-shadow: 0 0 22px rgba(251, 191, 36, 0.85);
    animation: runnerRingPulse 1.2s infinite ease-out;
}

@keyframes runnerRingPulse {
    0% { transform: scale(0.5); opacity: 1; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* AAA World Map Footer Bar */
.world-map-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
    gap: 15px;
    flex-wrap: wrap;
}

.map-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-heading, sans-serif);
    font-weight: 800;
    font-size: 0.92rem;
    letter-spacing: 1.2px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
    outline: none;
    border: none;
    text-transform: uppercase;
}

.map-btn-back {
    padding: 0.85rem 1.4rem;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    backdrop-filter: blur(10px);
}

.map-btn-back:hover {
    background: rgba(30, 41, 59, 0.95);
    border-color: rgba(251, 191, 36, 0.6);
    color: #fbbf24;
    transform: translateY(-2px);
    box-shadow: 0 0 18px rgba(251, 191, 36, 0.3);
}

.map-footer-tagline {
    font-size: 0.72rem;
    font-family: var(--font-heading, sans-serif);
    letter-spacing: 1.5px;
    color: rgba(148, 163, 184, 0.8);
    text-align: center;
    text-transform: uppercase;
}

.gold-highlight {
    color: #fbbf24;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

.map-btn-prepare {
    padding: 0.9rem 1.8rem;
    background: linear-gradient(135deg, #d97706 0%, #fbbf24 50%, #10b981 100%);
    color: #070a12;
    box-shadow: 0 0 28px rgba(251, 191, 36, 0.5), 0 4px 15px rgba(0, 0, 0, 0.5);
    font-size: 1.05rem;
    position: relative;
    overflow: hidden;
}

.map-btn-prepare::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: linear-gradient(60deg, transparent 40%, rgba(255, 255, 255, 0.35) 50%, transparent 60%);
    transform: rotate(25deg) translateY(-100%);
    transition: transform 0.6s ease;
}

.map-btn-prepare:hover::after {
    transform: rotate(25deg) translateY(100%);
}

.map-btn-prepare:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 0 38px rgba(251, 191, 36, 0.85), 0 6px 20px rgba(0, 0, 0, 0.6);
    filter: brightness(1.1);
}

/* Mobile Responsive Rules for Animated Sector Map Modal */
@media (max-width: 768px) {
    .modal-content.sector-map-modal-content {
        padding: 0.8rem 0.75rem;
        max-height: 95dvh;
        width: 96%;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 14px;
        box-sizing: border-box;
    }

    .world-map-header {
        margin-bottom: 0.5rem;
        gap: 8px;
    }

    .map-main-title {
        font-size: 1.35rem;
        letter-spacing: 2px;
    }

    .map-sub-title {
        font-size: 0.64rem;
        letter-spacing: 1.2px;
    }

    .world-hud-pill {
        padding: 4px 10px;
        gap: 6px;
    }

    .hud-pill-icon {
        font-size: 0.9rem;
    }

    .hud-pill-label {
        font-size: 0.5rem;
    }

    .hud-pill-val {
        font-size: 0.88rem;
    }

    .sector-map-wrapper {
        height: 280px;
        min-height: 280px;
        margin-bottom: 0.6rem;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x;
    }

    .sector-nodes-container, .sector-map-canvas {
        min-width: 650px;
    }

    .sector-card-node {
        width: 118px;
    }

    .card-thumb-wrapper {
        height: 48px;
    }

    .card-header-bar {
        padding: 3px 5px;
        gap: 4px;
    }

    .card-lvl-num {
        font-size: 0.55rem;
        padding: 1px 4px;
    }

    .card-lvl-name {
        font-size: 0.48rem;
        letter-spacing: 0.1px;
    }

    .map-runner-avatar {
        width: 82px;
        height: 82px;
        margin-top: -70px;
        margin-left: -41px;
    }

    .map-runner-avatar img {
        width: 74px;
        height: 74px;
    }

    .avatar-ring-glow {
        inset: -4px;
        border-width: 2.5px;
    }

    .runner-pulse-ring {
        width: 56px;
        height: 56px;
        margin-top: -28px;
        margin-left: -28px;
    }

    .world-map-footer {
        flex-direction: column;
        gap: 0.5rem;
        margin-top: 0.4rem;
    }

    .map-footer-tagline {
        font-size: 0.6rem;
        order: 3;
    }

    .map-btn {
        width: 100%;
        padding: 0.65rem 0.9rem;
        font-size: 0.85rem;
        min-height: 42px;
    }

    .map-btn-back {
        order: 2;
    }

    .map-btn-prepare {
        order: 1;
    }

    /* Pause & Game Over Mobile Portrait Adjustments */
    .pause-modal-content, .game-over-modal-content {
        padding: 1.25rem 1.4rem;
        max-width: 92%;
        border-radius: 14px;
    }

    .pause-modal-title, .game-over-title {
        font-size: 1.4rem;
        margin-bottom: 0.35rem;
    }

    .pause-modal-desc, .game-over-desc {
        font-size: 0.78rem;
        margin-bottom: 1rem;
    }

    .pause-actions-group, .game-over-actions-group {
        gap: 0.65rem;
    }

    .pause-btn, .game-over-btn {
        min-height: 42px;
        font-size: 0.86rem;
        padding: 0.6rem 1rem;
    }
}

/* Mobile Landscape & Short Viewports (AAA Mobile Phone Display) */
@media (max-height: 600px) and (orientation: landscape) {
    .modal-content.sector-map-modal-content {
        padding: 0.5rem 0.8rem;
        max-height: 98dvh;
        width: 98%;
        overflow-y: auto;
        border-radius: 12px;
    }

    .world-map-header {
        margin-bottom: 0.35rem;
        gap: 10px;
    }

    .map-main-title {
        font-size: 1.2rem;
        letter-spacing: 1.5px;
    }

    .map-sub-title {
        font-size: 0.58rem;
        letter-spacing: 1px;
    }

    .world-hud-pill {
        padding: 3px 8px;
        gap: 5px;
    }

    .hud-pill-label {
        font-size: 0.48rem;
    }

    .hud-pill-val {
        font-size: 0.8rem;
    }

    .sector-map-wrapper {
        height: 220px;
        min-height: 220px;
        margin-bottom: 0.35rem;
        overflow-x: hidden;
    }

    .sector-nodes-container, .sector-map-canvas {
        min-width: 100%;
    }

    .sector-card-node {
        width: 110px;
    }

    .card-thumb-wrapper {
        height: 42px;
    }

    .card-header-bar {
        padding: 2px 4px;
        gap: 3px;
    }

    .card-lvl-num {
        font-size: 0.52rem;
        padding: 1px 3px;
    }

    .card-lvl-name {
        font-size: 0.46rem;
        letter-spacing: 0px;
    }

    .card-badge-overlay {
        width: 17px;
        height: 17px;
        font-size: 0.54rem;
        top: 3px;
        right: 3px;
    }

    .diff-tag {
        font-size: 0.46rem;
    }

    .card-stars-val {
        font-size: 0.48rem;
    }

    .map-runner-avatar {
        width: 68px;
        height: 68px;
        margin-top: -58px;
        margin-left: -34px;
    }

    .map-runner-avatar img {
        width: 60px;
        height: 60px;
    }

    .avatar-ring-glow {
        inset: -3px;
        border-width: 2px;
    }

    .runner-pulse-ring {
        width: 46px;
        height: 46px;
        margin-top: -23px;
        margin-left: -23px;
    }

    .world-map-footer {
        flex-direction: row;
        gap: 0.5rem;
        margin-top: 0.2rem;
    }

    .map-footer-tagline {
        display: none;
    }

    .map-btn {
        flex: 1;
        min-height: 36px;
        padding: 0.4rem 0.6rem;
        font-size: 0.78rem;
    }

    /* Pause & Game Over Mobile Landscape Adjustments */
    .pause-modal-content, .game-over-modal-content {
        padding: 0.75rem 1.4rem;
        max-width: 420px;
        width: 90%;
        max-height: 94dvh;
        overflow-y: auto;
        border-radius: 12px;
    }

    .pause-modal-title, .game-over-title {
        font-size: 1.25rem;
        margin-bottom: 0.2rem;
        letter-spacing: 1px;
    }

    .pause-modal-desc, .game-over-desc {
        font-size: 0.74rem;
        margin-bottom: 0.6rem;
        line-height: 1.2;
    }

    .pause-actions-group, .game-over-actions-group {
        gap: 0.45rem;
    }

    .pause-btn, .game-over-btn {
        min-height: 36px;
        font-size: 0.8rem;
        padding: 0.45rem 0.9rem;
        letter-spacing: 1px;
    }
}

.modal-title {
    font-size: 2rem;
    color: var(--primary-gold);
    margin-bottom: 1rem;
    text-shadow: 0 0 15px rgba(251, 191, 36, 0.4);
}

/* Form Elements */
.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--primary-gold);
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.form-input, .form-textarea {
    width: 100%;
    padding: 0.8rem 1.2rem;
    background: rgba(6, 7, 12, 0.85);
    border: 1px solid rgba(251, 191, 36, 0.35);
    border-radius: var(--border-radius-sm);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: var(--transition-fast);
}

.form-input:focus, .form-textarea:focus {
    border-color: var(--primary-gold);
    box-shadow: var(--shadow-gold);
}

/* Leaderboard & Interactive Level Records Styles */
.modal-leaderboard-card {
    max-width: 920px !important;
    width: 95%;
    text-align: left;
    background: linear-gradient(145deg, rgba(12, 18, 34, 0.98), rgba(6, 9, 20, 0.99)) !important;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1.5px solid rgba(251, 191, 36, 0.5) !important;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.95), 
                0 0 45px rgba(251, 191, 36, 0.25), 
                inset 0 0 25px rgba(251, 191, 36, 0.06) !important;
    border-radius: 20px !important;
    padding: 1.75rem 2.2rem !important;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-header-cyber {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    gap: 14px;
    position: relative;
}

.modal-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0;
}

.modal-header-badge {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 14px;
    background: radial-gradient(circle at 35% 35%, rgba(251, 191, 36, 0.22) 0%, rgba(15, 23, 42, 0.95) 100%);
    border: 1.5px solid var(--primary-gold);
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.modal-header-text {
    flex: 1;
    min-width: 0;
}

.modal-title-cyber {
    margin: 0;
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 2.5vw, 1.55rem);
    font-weight: 900;
    letter-spacing: 1.2px;
    color: #ffffff;
    background: linear-gradient(135deg, #ffffff 30%, #fbbf24 80%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    line-height: 1.2;
    filter: drop-shadow(0 0 12px rgba(251, 191, 36, 0.3));
}

.modal-subtitle-cyber {
    margin: 4px 0 0 0;
    font-size: clamp(0.75rem, 1.5vw, 0.84rem);
    color: #94a3b8;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

.modal-close-cyber-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1.5px solid rgba(251, 191, 36, 0.45);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    color: var(--primary-gold);
    font-size: 1.15rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.modal-close-cyber-btn:hover {
    background: rgba(251, 191, 36, 0.25);
    border-color: var(--primary-gold);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.6);
}

.modal-leaderboard-card .cyber-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 1.25rem;
    border-bottom: 1.5px solid rgba(251, 191, 36, 0.25);
    padding-bottom: 8px;
}

.modal-leaderboard-card .cyber-tab-btn {
    flex: 1;
    background: rgba(15, 23, 42, 0.75);
    border: 1.5px solid rgba(251, 191, 36, 0.25);
    border-radius: 10px;
    color: #94a3b8;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 800;
    padding: 0.7rem 1.1rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: 0.8px;
    text-align: center;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

.modal-leaderboard-card .cyber-tab-btn:hover {
    color: #ffffff;
    border-color: var(--primary-gold);
    background: rgba(251, 191, 36, 0.14);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.15);
}

.modal-leaderboard-card .cyber-tab-btn.active {
    color: #ffffff;
    border-color: var(--primary-gold);
    background: linear-gradient(180deg, rgba(251, 191, 36, 0.28), rgba(251, 191, 36, 0.08));
    box-shadow: 0 0 18px rgba(251, 191, 36, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.2);
    position: relative;
}

.modal-leaderboard-card .cyber-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -9.5px;
    left: 15%;
    right: 15%;
    height: 3px;
    background: var(--primary-gold);
    box-shadow: 0 0 10px var(--primary-gold), 0 0 20px var(--primary-gold);
    border-radius: 3px;
}

.modal-leaderboard-card .tab-pane {
    flex: 1;
    overflow-y: auto;
    padding-right: 6px;
}

.modal-leaderboard-card .tab-pane::-webkit-scrollbar,
.level-cards-list::-webkit-scrollbar {
    width: 6px;
}

.modal-leaderboard-card .tab-pane::-webkit-scrollbar-track,
.level-cards-list::-webkit-scrollbar-track {
    background: rgba(10, 15, 29, 0.6);
    border-radius: 4px;
}

.modal-leaderboard-card .tab-pane::-webkit-scrollbar-thumb,
.level-cards-list::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #fbbf24 0%, #d97706 100%);
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.6);
}

.facility-progress-val {
    color: #34d399;
    font-weight: 900;
    letter-spacing: 0.8px;
    text-shadow: 0 0 8px rgba(52, 211, 153, 0.6);
}

.stats-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.9rem;
}

@media (max-width: 768px) {
    .stats-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }
}

.stat-card {
    background: rgba(6, 9, 18, 0.9);
    border-radius: 10px;
    padding: 0.9rem 1rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-card-gold { border: 1px solid var(--primary-gold); box-shadow: 0 0 15px rgba(251, 191, 36, 0.15); }
.stat-card-amber { border: 1px solid #f59e0b; box-shadow: 0 0 15px rgba(245, 158, 11, 0.15); }
.stat-card-cyan { border: 1px solid #06b6d4; box-shadow: 0 0 15px rgba(6, 182, 212, 0.15); }
.stat-card-emerald { border: 1px solid #10b981; box-shadow: 0 0 15px rgba(16, 185, 129, 0.15); }

.stat-card-label {
    color: var(--text-muted);
    font-size: 0.74rem;
    font-family: var(--font-heading);
    letter-spacing: 1px;
    display: block;
}

.stat-card-val {
    font-size: clamp(1.4rem, 2.5vw, 1.85rem);
    font-family: var(--font-heading);
    font-weight: 900;
    margin-top: 4px;
}

.val-gold { color: var(--primary-gold); }
.val-amber { color: #f59e0b; }
.val-cyan { color: #06b6d4; }
.val-emerald { color: #10b981; }

.global-tab-subtitle {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 0.8rem;
}

.cyber-table-wrapper {
    background: rgba(6, 9, 18, 0.85);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 10px;
    overflow-x: auto;
}

.cyber-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid rgba(251, 191, 36, 0.2);
    padding-bottom: 4px;
}

.cyber-tab-btn {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(251, 191, 36, 0.25);
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.55rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.5px;
}

.cyber-tab-btn:hover {
    color: #ffffff;
    border-color: var(--primary-gold);
    background: rgba(251, 191, 36, 0.1);
}

.cyber-tab-btn.active {
    color: var(--primary-gold);
    border-color: var(--primary-gold);
    background: rgba(251, 191, 36, 0.15);
    box-shadow: 0 -2px 10px rgba(251, 191, 36, 0.25);
    position: relative;
}

.cyber-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gold);
    box-shadow: 0 0 8px var(--primary-gold);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeInTab 0.3s ease forwards;
}

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

/* Facility Overall Progress Bar */
.facility-progress-box {
    background: radial-gradient(circle at 50% 0%, rgba(15, 23, 42, 0.95), rgba(6, 9, 18, 0.98));
    border: 1.5px solid rgba(251, 191, 36, 0.35);
    border-radius: 12px;
    padding: 0.95rem 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(0, 0, 0, 0.7);
}

.facility-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
    font-size: 0.82rem;
    color: var(--text-muted);
}

.facility-progress-title {
    color: var(--primary-gold);
    font-weight: 800;
    letter-spacing: 1.2px;
    text-shadow: 0 0 8px rgba(251, 191, 36, 0.5);
}

.facility-progress-track {
    height: 12px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(251, 191, 36, 0.25);
    position: relative;
}

.facility-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #06b6d4 50%, #fbbf24 100%);
    border-radius: 6px;
    width: 0%;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 14px rgba(251, 191, 36, 0.7);
}

/* Level Record Interactive Cards */
.level-cards-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 6px;
}

.level-card {
    background: linear-gradient(135deg, rgba(16, 24, 44, 0.96) 0%, rgba(8, 12, 22, 0.98) 100%);
    border: 1.5px solid rgba(251, 191, 36, 0.3);
    border-radius: 12px;
    padding: 0.95rem 1.25rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

.level-card-bg-thumb {
    position: absolute;
    top: 0;
    right: 0;
    width: 65%;
    height: 100%;
    background-image: var(--lvl-bg);
    background-size: cover;
    background-position: center right;
    opacity: 0.22;
    mask-image: linear-gradient(to right, transparent 0%, black 50%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 50%);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 0;
}

.level-card:hover .level-card-bg-thumb {
    opacity: 0.4;
    transform: scale(1.08);
}

.level-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
}

.level-card.unlocked::before {
    background: #00f3ff;
    box-shadow: 0 0 10px #00f3ff;
}

.level-card.completed::before {
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
}

.level-card.unlocked:hover {
    border-color: var(--primary-gold);
    transform: translateX(6px);
    box-shadow: 0 8px 30px rgba(251, 191, 36, 0.22), inset 0 0 15px rgba(251, 191, 36, 0.08);
}

.level-card.locked {
    opacity: 0.7;
    border-color: rgba(255, 255, 255, 0.12);
}

.level-card-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.4rem;
    flex-wrap: nowrap;
    position: relative;
    z-index: 1;
}

.level-info-group {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    flex: 1 1 auto;
    min-width: 0;
}

.level-badge {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 12px;
    background: radial-gradient(circle at 35% 35%, rgba(251, 191, 36, 0.2) 0%, rgba(15, 23, 42, 0.95) 100%);
    border: 1.5px solid var(--primary-gold);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    line-height: 1;
    box-shadow: 0 0 16px rgba(251, 191, 36, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
}

.level-badge-lbl {
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--primary-gold);
    text-shadow: 0 0 6px rgba(251, 191, 36, 0.6);
}

.level-badge-num {
    font-size: 1.18rem;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.8);
}

.level-text-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
}

.level-title-text {
    font-family: var(--font-heading);
    font-size: clamp(0.95rem, 1.8vw, 1.12rem);
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.4px;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.15);
}

.level-subtitle-text {
    font-size: 0.78rem;
    color: rgba(148, 163, 184, 0.85);
    letter-spacing: 0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.level-meta-group {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-shrink: 0;
}

.level-status-pill {
    padding: 0.38rem 0.85rem;
    border-radius: 20px;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(8px);
}

.status-pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

.level-status-pill.completed .status-pulse-dot {
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: statusPulse 1.8s infinite;
}

.level-status-pill.unlocked .status-pulse-dot {
    background: #00f3ff;
    box-shadow: 0 0 8px #00f3ff;
    animation: statusPulse 1.8s infinite;
}

.level-status-pill.locked .status-pulse-dot {
    background: #64748b;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.3); }
}

.level-status-pill.unlocked {
    background: rgba(0, 243, 255, 0.12);
    border: 1px solid rgba(0, 243, 255, 0.8);
    color: #00f3ff;
    box-shadow: 0 0 14px rgba(0, 243, 255, 0.35);
}

.level-status-pill.completed {
    background: rgba(16, 185, 129, 0.14);
    border: 1px solid rgba(16, 185, 129, 0.8);
    color: #34d399;
    box-shadow: 0 0 14px rgba(16, 185, 129, 0.35);
}

.level-status-pill.locked {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #94a3b8;
}

.level-stars {
    display: flex;
    gap: 4px;
    font-size: 1.15rem;
    flex-shrink: 0;
    filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.8));
}

.level-stars .star-filled {
    color: #fbbf24;
    text-shadow: 0 0 8px rgba(251, 191, 36, 0.9);
}

.level-stars .star-empty {
    color: rgba(255, 255, 255, 0.15);
}

.level-time-box {
    background: rgba(5, 9, 18, 0.92);
    border: 1.5px solid rgba(251, 191, 36, 0.45);
    border-radius: 9px;
    padding: 0.38rem 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    box-shadow: 0 0 14px rgba(251, 191, 36, 0.2), inset 0 0 10px rgba(0, 0, 0, 0.6);
}

.time-box-icon {
    font-size: 0.95rem;
    filter: drop-shadow(0 0 4px rgba(251, 191, 36, 0.6));
}

.time-box-val {
    font-family: var(--font-heading);
    font-size: 0.98rem;
    font-weight: 900;
    color: #fbbf24;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.7);
}

/* Agent Tier Card in Player Stats */
.agent-rank-banner {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(6, 182, 212, 0.1));
    border: 1px solid var(--primary-gold);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.15);
}

.agent-rank-icon {
    font-size: 2.2rem;
    filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.6));
}

.agent-rank-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary-gold);
    letter-spacing: 1px;
}

.agent-rank-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Cyber Table for Leaderboard */
.cyber-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.5rem;
}

.cyber-table th, .cyber-table td {
    padding: 0.85rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(251, 191, 36, 0.15);
}

.cyber-table th {
    font-family: var(--font-heading);
    color: var(--primary-gold);
    font-size: 0.82rem;
    letter-spacing: 1px;
}

.cyber-table tr:hover td {
    background: rgba(251, 191, 36, 0.08);
}

.rank-badge {
    display: inline-block;
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.85rem;
}

.rank-badge.top-1 { background: var(--primary-gold); color: #000; }
.rank-badge.top-2 { background: #cbd5e1; color: #000; }
.rank-badge.top-3 { background: #b45309; color: #fff; }
.rank-badge.top-other { background: rgba(255,255,255,0.1); color: var(--text-muted); }

@media (max-width: 680px) {
    .modal-leaderboard-card {
        padding: 1rem 0.85rem !important;
        width: 96% !important;
        max-height: 92vh !important;
        max-height: 92dvh !important;
        border-radius: 14px !important;
    }

    .modal-header-cyber {
        margin-bottom: 0.85rem;
        gap: 8px;
    }

    .modal-header-badge {
        width: 38px;
        height: 38px;
        min-width: 38px;
        font-size: 1.2rem;
        border-radius: 10px;
    }

    .modal-title-cyber {
        font-size: 0.95rem;
        letter-spacing: 0.5px;
    }

    .modal-subtitle-cyber {
        font-size: 0.68rem;
    }

    .modal-close-cyber-btn {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .modal-leaderboard-card .cyber-tabs {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 4px;
        margin-bottom: 0.85rem;
        padding-bottom: 0;
        border-bottom: none;
    }

    .modal-leaderboard-card .cyber-tab-btn {
        padding: 0.45rem 0.2rem;
        font-size: 0.68rem;
        gap: 3px;
        flex-direction: column;
        letter-spacing: 0.2px;
    }

    .modal-leaderboard-card .tab-icon {
        font-size: 0.9rem;
    }

    .modal-leaderboard-card .tab-label {
        font-size: 0.65rem;
    }

    .facility-progress-box {
        padding: 0.65rem 0.8rem;
        margin-bottom: 0.8rem;
    }

    .facility-progress-header {
        font-size: 0.72rem;
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        flex-wrap: wrap;
        gap: 4px 10px;
    }

    .facility-progress-title {
        font-size: 0.75rem;
        letter-spacing: 1px;
    }

    .facility-progress-val {
        font-size: 0.72rem;
        white-space: nowrap;
    }

    .level-cards-list {
        gap: 0.65rem;
        max-height: calc(92vh - 200px);
        max-height: calc(92dvh - 200px);
        -webkit-overflow-scrolling: touch;
    }

    .level-card {
        padding: 0.8rem 0.85rem;
    }

    .level-card-main {
        flex-direction: column;
        align-items: stretch;
        gap: 0.55rem;
    }

    .level-info-group {
        gap: 0.75rem;
        width: 100%;
        align-items: center;
        flex: 1 1 auto;
        min-width: 0;
    }

    .level-text-group {
        flex: 1;
        min-width: 0;
        overflow: hidden;
    }

    .level-badge {
        width: 42px;
        height: 42px;
        min-width: 42px;
        border-radius: 10px;
    }

    .level-badge-lbl {
        font-size: 0.52rem;
    }

    .level-badge-num {
        font-size: 1.05rem;
    }

    .level-title-text {
        font-size: 0.88rem;
        letter-spacing: 0.2px;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        line-height: 1.25;
    }

    .level-subtitle-text {
        font-size: 0.7rem;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }

    .level-meta-group {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        gap: 0.4rem;
        border-top: 1px dashed rgba(251, 191, 36, 0.2);
        padding-top: 0.55rem;
        margin-top: 0.1rem;
    }

    .level-status-pill {
        padding: 0.28rem 0.65rem;
        font-size: 0.65rem;
    }

    .level-stars {
        font-size: 1.05rem;
        gap: 3px;
    }

    .level-time-box {
        padding: 0.25rem 0.55rem;
    }

    .time-box-val {
        font-size: 0.85rem;
    }

    .stats-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .stat-card {
        padding: 0.65rem 0.4rem;
    }

    .stat-card-label {
        font-size: 0.65rem;
        letter-spacing: 0.5px;
    }

    .stat-card-val {
        font-size: 1.35rem;
    }

    .agent-rank-banner {
        padding: 0.75rem 0.85rem;
        gap: 0.75rem;
        margin-bottom: 0.85rem;
    }

    .agent-rank-icon {
        font-size: 1.7rem;
    }

    .agent-rank-title {
        font-size: 0.92rem;
    }

    .agent-rank-desc {
        font-size: 0.72rem;
    }

    .modal-content {
        padding: 1.25rem;
        width: 94%;
        max-height: calc(100vh - 2rem);
        overflow-y: auto;
    }

    .modal-title {
        font-size: 1.45rem;
    }

    .modal-close-btn {
        width: 34px;
        height: 34px;
    }

    .cyber-table th, .cyber-table td {
        padding: 0.7rem;
        font-size: 0.84rem;
    }

    .home-view {
        padding: 0.8rem;
        align-items: flex-start;
    }

    .home-layout {
        display: none;
    }

    .home-mobile-card {
        display: flex;
        flex-direction: column;
        gap: 0;
        width: 100%;
        max-width: 560px;
        margin: 0 auto;
        padding: 0;
        border-radius: 24px;
        overflow: hidden;
        background: linear-gradient(180deg, rgba(10, 16, 34, 0.98), rgba(5, 8, 20, 0.98));
        border: 1px solid rgba(0, 243, 255, 0.42);
        box-shadow: 0 0 28px rgba(0, 243, 255, 0.22), inset 0 0 20px rgba(0, 0, 0, 0.7);
    }

    .home-panel {
        padding: 0.95rem;
        display: flex;
        flex-direction: column;
    }

    .home-kicker {
        width: 100%;
        justify-content: center;
        text-align: center;
        min-height: 2.75rem;
        font-size: 0.74rem;
        letter-spacing: 1.2px;
        line-height: 1.35;
    }

    .home-title {
        font-size: 2.05rem;
        line-height: 1;
        text-align: left;
    }

    .home-description {
        font-size: 0.9rem;
        text-align: left;
        max-width: 100%;
    }

    .home-actions {
        flex-direction: column;
        gap: 0.6rem;
        margin: 1rem 0 0.9rem;
    }

    .home-actions .cyber-btn {
        width: 100%;
        min-height: 48px;
        font-size: 0.95rem;
    }

    .home-feature-grid {
        display: none;
    }

    .home-profile-card {
        min-height: 0;
        max-width: 100%;
        order: -1;
        margin: 0;
        border: none;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    .home-profile-card .hero-showcase-img {
        max-height: 280px;
        min-height: 280px;
        object-fit: cover;
        object-position: center top;
    }

    .hero-persona-badge {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
        padding: 0.7rem 0.75rem;
        left: 8px;
        right: 8px;
        bottom: 8px;
    }

    .home-status {
        text-align: left;
    }

    .home-profile-label {
        font-size: 0.64rem;
    }

    .home-profile-name {
        font-size: 0.92rem;
    }

    .home-status-label {
        font-size: 0.84rem;
    }

    .home-panel .home-copy {
        margin-top: 0;
    }

    .home-panel .home-feature-grid {
        margin-top: 0.25rem;
    }

    .hero-showcase-card:hover .hero-showcase-img {
        transform: none;
    }

    .home-mobile-hero {
        padding: 0.75rem;
        border-bottom: 1px solid rgba(0, 243, 255, 0.18);
    }

    .home-mobile-panel {
        border: none;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        padding: 0.85rem 0.95rem 0.95rem;
    }

    .home-mobile-hero .hero-showcase-img {
        width: 100%;
        height: auto;
        max-height: 240px;
        min-height: 0;
        object-fit: contain;
        object-position: center center;
        margin: 0 auto;
        display: block;
    }

    .home-mobile-panel .home-kicker {
        margin-bottom: 0.9rem;
    }

    .home-mobile-panel .home-title {
        margin-bottom: 0.75rem;
    }

    .home-mobile-panel .home-actions {
        margin-bottom: 0.8rem;
    }

    .home-mobile-features {
        display: grid;
        margin-top: 0.15rem;
    }
}

@media (max-width: 380px) {
    .level-card {
        padding: 0.65rem 0.7rem;
    }

    .level-status-pill {
        padding: 0.22rem 0.45rem;
        font-size: 0.6rem;
    }

    .level-stars {
        font-size: 0.95rem;
        gap: 2px;
    }

    .level-time-box {
        padding: 0.22rem 0.45rem;
    }

    .time-box-val {
        font-size: 0.78rem;
    }

    .time-box-icon {
        font-size: 0.82rem;
    }
}

@media (max-width: 900px) {
    .poster-view {
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        padding: 0.6rem 0.6rem 1.5rem !important;
        height: calc(100dvh - 54px) !important;
        max-height: calc(100dvh - 54px) !important;
        align-items: flex-start;
        box-sizing: border-box;
    }
    
    .poster-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
        max-height: none;
        width: 100%;
        padding-bottom: 0.5rem;
    }

    /* 1. Full Complete Mobile Poster Image (preview.png) - 100% Un-cropped */
    .poster-right-content {
        order: 1;
        width: 100%;
        height: auto;
        align-items: center;
        position: relative;
    }

    /* Hide extra cluttered badges on mobile */
    .poster-crest-badge,
    .poster-hero-name-tag {
        display: none !important;
    }

    .poster-hero-person-wrapper {
        height: auto;
        max-height: none;
        width: 100%;
    }

    .desktop-hero-img {
        display: none !important;
    }

    .mobile-hero-img {
        display: block !important;
        width: 100%;
        height: auto !important;
        max-height: none !important;
        object-fit: contain !important;
        border-radius: 14px;
        border: 2px solid var(--primary-gold);
        box-shadow: 0 0 30px rgba(251, 191, 36, 0.5);
        margin: 0 auto;
        cursor: pointer;
    }

    /* 2. Action Buttons & Navigation below Full Poster Image */
    .poster-left-content {
        order: 2;
        padding-left: 0;
        align-items: center;
        text-align: center;
        width: 100%;
    }

    /* Hide duplicate text/icons on mobile since preview.png contains full poster details */
    .poster-tagline,
    .poster-title-wrapper,
    .poster-subtitle-pill,
    .poster-features-row {
        display: none !important;
    }

    /* Action Buttons Row */
    .poster-actions-row {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
        margin-top: 0.4rem;
        margin-bottom: 1rem;
    }

    .poster-play-btn {
        width: 100%;
        justify-content: center;
        clip-path: none;
        border-radius: 10px;
        padding: 0.85rem 1.6rem;
        font-size: 1.15rem;
        letter-spacing: 2.5px;
    }

    /* Mobile Player Name Customizer Card (Placed directly below Play Now button) */
    .poster-mobile-callsign-card {
        display: block !important;
        width: 100%;
        background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(8, 12, 22, 0.98) 100%);
        border: 1.5px solid rgba(251, 191, 36, 0.4);
        border-left: 3px solid var(--primary-gold);
        border-radius: 10px;
        padding: 0.75rem 1rem;
        margin: 0.2rem 0 0.2rem 0;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
        backdrop-filter: blur(12px);
        text-align: left;
        box-sizing: border-box;
    }

    .mobile-callsign-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 0.45rem;
    }

    .mobile-callsign-label {
        display: flex;
        align-items: center;
        gap: 0.4rem;
        font-family: var(--font-heading);
        font-size: 0.68rem;
        font-weight: 800;
        color: var(--primary-gold);
        letter-spacing: 1.2px;
    }

    .mobile-callsign-label .pulse-dot {
        width: 6px;
        height: 6px;
        background-color: #10b981;
        border-radius: 50%;
        box-shadow: 0 0 8px #10b981;
        animation: callsignPulse 1.8s infinite;
    }

    .mobile-callsign-input-row {
        display: flex;
        align-items: center;
        gap: 0.3rem;
        background: rgba(0, 0, 0, 0.5);
        border: 1px solid rgba(251, 191, 36, 0.25);
        border-radius: 6px;
        padding: 3px 4px 3px 8px;
    }

    .mobile-callsign-input-row:focus-within {
        border-color: var(--primary-gold);
        background: rgba(0, 0, 0, 0.8);
        box-shadow: 0 0 10px rgba(251, 191, 36, 0.25);
    }

    .mobile-callsign-prefix {
        font-family: var(--font-heading);
        font-size: 0.8rem;
        font-weight: 800;
        color: rgba(251, 191, 36, 0.8);
        letter-spacing: 1px;
        user-select: none;
    }

    .mobile-callsign-input {
        flex: 1;
        min-width: 0;
        background: transparent;
        border: none;
        outline: none;
        color: #ffffff;
        font-family: var(--font-heading);
        font-size: 0.88rem;
        font-weight: 800;
        letter-spacing: 1.2px;
        padding: 4px 2px;
        text-transform: uppercase;
    }

    .mobile-callsign-input::placeholder {
        color: rgba(255, 255, 255, 0.35);
        font-weight: 400;
        text-transform: none;
    }

    .mobile-callsign-save-btn {
        font-family: var(--font-heading);
        font-size: 0.72rem;
        font-weight: 800;
        padding: 5px 12px;
        color: #000000;
        background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
        border: none;
        border-radius: 4px;
        cursor: pointer;
        letter-spacing: 1px;
        transition: all 0.2s ease;
        box-shadow: 0 2px 6px rgba(251, 191, 36, 0.3);
        flex-shrink: 0;
    }

    .mobile-callsign-save-btn:active {
        transform: translateY(1px);
    }

    .poster-secondary-group {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        width: 100%;
    }

    .poster-secondary-btn {
        width: 100%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 0.65rem 0.4rem;
        font-size: 0.82rem;
        min-height: 44px;
        box-sizing: border-box;
    }

    /* Mobile Mission Intel Showcase Card */
    .poster-intel-card {
        padding: 0.85rem 0.9rem 1rem;
        margin-top: 0.4rem;
        margin-bottom: 0.8rem;
    }

    .intel-hud-header {
        flex-wrap: wrap;
        gap: 6px;
        padding-bottom: 0.45rem;
        margin-bottom: 0.55rem;
    }

    .intel-hud-meta {
        gap: 4px;
    }

    .hud-meta-badge {
        font-size: 0.52rem;
        padding: 2px 5px;
    }

    .intel-badge-row {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px !important;
        margin-bottom: 0.85rem !important;
        width: 100%;
    }

    .intel-tag-pill {
        width: 100%;
        display: inline-flex;
        justify-content: center;
        align-items: center;
        gap: 4px;
        text-align: center;
        padding: 5px 4px;
        font-size: clamp(0.48rem, 2vw, 0.6rem);
        letter-spacing: 0.2px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        box-sizing: border-box;
    }

    .intel-features-grid {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }

    .intel-feature-box {
        padding: 9px 11px;
    }

    .intel-feature-info span {
        word-break: break-word;
    }

}

/* ==========================================================================
   Developer Contact Modal Custom Styling - Interactive Premium Theme
   ========================================================================== */
/* ==========================================================================
   Developer Contact Modal Custom Styling - Site Theme Match (Gold & Cyan Cyber)
   ========================================================================== */
.contact-modal-card {
    position: relative;
    background: linear-gradient(135deg, rgba(12, 16, 28, 0.96), rgba(6, 8, 18, 0.98)) !important;
    border: 1.5px solid var(--primary-gold, #fbbf24) !important;
    border-radius: 24px !important;
    padding: clamp(1.1rem, 2vh, 1.5rem) clamp(1.2rem, 2.5vw, 1.8rem) !important;
    max-width: 460px !important;
    width: 92% !important;
    max-height: calc(100vh - 2.5rem) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 
                0 0 35px rgba(251, 191, 36, 0.25), 
                inset 0 0 25px rgba(251, 191, 36, 0.08) !important;
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    text-align: center;
    color: #ffffff;
    font-family: var(--font-body, 'Rajdhani', sans-serif);
    overflow-y: auto !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
    margin: auto !important;
    z-index: 1000;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    scrollbar-width: thin;
    scrollbar-color: var(--primary-gold, #fbbf24) rgba(6, 8, 18, 0.8);
}

.contact-modal-card::-webkit-scrollbar {
    width: 5px;
}
.contact-modal-card::-webkit-scrollbar-track {
    background: rgba(6, 8, 18, 0.8);
    border-radius: 4px;
}
.contact-modal-card::-webkit-scrollbar-thumb {
    background: var(--primary-gold, #fbbf24);
    border-radius: 4px;
}

/* Background Ambient Glow Orbs - Gold & Cyan */
.contact-bg-glow-1 {
    position: absolute;
    top: -60px;
    left: -60px;
    width: 210px;
    height: 210px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.22) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
    animation: contactOrbPulse 6s ease-in-out infinite alternate;
}

.contact-bg-glow-2 {
    position: absolute;
    bottom: -60px;
    right: -60px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 243, 255, 0.2) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
    animation: contactOrbPulse 8s ease-in-out infinite alternate-reverse;
}

@keyframes contactOrbPulse {
    0% { transform: scale(1) translate(0, 0); opacity: 0.6; }
    100% { transform: scale(1.3) translate(15px, 15px); opacity: 0.95; }
}

/* Header & Status */
.contact-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.9rem;
    position: relative;
    z-index: 2;
}

.contact-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 14px;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.4);
    border-radius: 30px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--primary-gold, #fbbf24);
    font-family: var(--font-heading, 'Orbitron', sans-serif);
    text-transform: uppercase;
    box-shadow: 0 0 14px rgba(251, 191, 36, 0.2);
}

.status-pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-gold, #fbbf24);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 8px #fbbf24;
    animation: statusPulse 1.8s infinite;
}

@keyframes statusPulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(251, 191, 36, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(251, 191, 36, 0); }
}

.contact-close-btn {
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.4);
    color: var(--primary-gold, #fbbf24);
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-close-btn:hover {
    color: #ffffff;
    background: rgba(239, 68, 68, 0.25);
    border-color: rgba(239, 68, 68, 0.6);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.5);
}

/* Profile Section */
.contact-profile-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 0.9rem;
    position: relative;
    z-index: 2;
}

.contact-avatar-wrapper {
    position: relative;
    width: clamp(72px, 10vh, 90px);
    height: clamp(72px, 10vh, 90px);
    margin-bottom: 0.5rem;
}

.avatar-ring-animated {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-gold, #fbbf24), var(--primary-cyan, #00f3ff), var(--primary-amber, #f59e0b), var(--primary-gold, #fbbf24));
    background-size: 300% 300%;
    animation: gradientSpin 6s linear infinite;
    opacity: 0.9;
    filter: blur(2px);
}

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

.contact-avatar-img {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: #06070a;
    border: 3px solid #0a0e1a;
    display: block;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
    transition: transform 0.4s ease;
}

.contact-avatar-wrapper:hover .contact-avatar-img {
    transform: scale(1.04);
}

.verified-badge {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 22px;
    height: 22px;
    background: var(--primary-gold, #fbbf24);
    border: 2px solid #0a0e1a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #06070a;
    box-shadow: 0 2px 10px rgba(251, 191, 36, 0.6);
    z-index: 3;
}

.contact-dev-name {
    font-family: var(--font-heading, 'Orbitron', sans-serif);
    font-size: clamp(1.4rem, 2.5vh, 1.7rem);
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 0.15rem 0;
    letter-spacing: 1px;
}

.gradient-text-gold {
    background: linear-gradient(135deg, #ffffff 20%, var(--primary-gold, #fbbf24) 60%, var(--primary-cyan, #00f3ff) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.4);
}

.contact-dev-title {
    color: var(--text-muted, #cbd5e1);
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0 0 0.85rem 0;
    letter-spacing: 0.3px;
}

/* Skill Tags - Gold, Amber, Cyan */
.contact-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    justify-content: center;
}

.contact-tag {
    font-size: 0.72rem;
    font-weight: 700;
    font-family: var(--font-heading, sans-serif);
    padding: 4px 11px;
    border-radius: 20px;
    letter-spacing: 0.8px;
    backdrop-filter: blur(6px);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-tag:hover {
    transform: translateY(-1px);
}

.tag-gold {
    background: rgba(251, 191, 36, 0.12);
    color: var(--primary-gold, #fbbf24);
    border: 1px solid rgba(251, 191, 36, 0.35);
}

.tag-cyan {
    background: rgba(0, 243, 255, 0.12);
    color: var(--primary-cyan, #00f3ff);
    border: 1px solid rgba(0, 243, 255, 0.35);
}

.tag-amber {
    background: rgba(245, 158, 11, 0.12);
    color: var(--primary-amber, #f59e0b);
    border: 1px solid rgba(245, 158, 11, 0.35);
}

/* Link Cards Container */
.contact-links-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    text-align: left;
    position: relative;
    z-index: 2;
}

/* Generic Contact Card */
.contact-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 1.05rem;
    background: rgba(10, 14, 24, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.contact-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.contact-card:hover::before {
    transform: translateX(100%);
}

/* Portfolio Theme - Cyber Gold */
.card-portfolio {
    border-color: rgba(251, 191, 36, 0.3);
    background: rgba(251, 191, 36, 0.04);
}

.card-portfolio:hover {
    background: rgba(251, 191, 36, 0.12);
    border-color: rgba(251, 191, 36, 0.8);
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.25);
    transform: translateY(-3px) scale(1.01);
}

.card-portfolio .contact-card-icon {
    background: rgba(251, 191, 36, 0.15);
    border-color: rgba(251, 191, 36, 0.4);
    color: var(--primary-gold, #fbbf24);
}

.card-portfolio .contact-card-label {
    color: var(--primary-gold, #fbbf24);
}

/* Instagram Theme - Cyber Amber / Coral */
.card-instagram {
    border-color: rgba(245, 158, 11, 0.3);
    background: rgba(245, 158, 11, 0.04);
}

.card-instagram:hover {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.8);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.25);
    transform: translateY(-3px) scale(1.01);
}

.card-instagram .contact-card-icon {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.4);
    color: var(--primary-amber, #f59e0b);
}

.card-instagram .contact-card-label {
    color: var(--primary-amber, #f59e0b);
}

/* LinkedIn Theme - Cyber Cyan */
.card-linkedin {
    border-color: rgba(0, 243, 255, 0.3);
    background: rgba(0, 243, 255, 0.04);
}

.card-linkedin:hover {
    background: rgba(0, 243, 255, 0.12);
    border-color: rgba(0, 243, 255, 0.8);
    box-shadow: 0 8px 25px rgba(0, 243, 255, 0.25);
    transform: translateY(-3px) scale(1.01);
}

.card-linkedin .contact-card-icon {
    background: rgba(0, 243, 255, 0.15);
    border-color: rgba(0, 243, 255, 0.4);
    color: var(--primary-cyan, #00f3ff);
}

.card-linkedin .contact-card-label {
    color: var(--primary-cyan, #00f3ff);
}

/* Email Theme - Mint / Emerald */
.card-email {
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.04);
}

.card-email:hover {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.8);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.25);
    transform: translateY(-3px) scale(1.01);
}

.card-email .contact-card-icon {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.4);
    color: var(--accent-green, #10b981);
}

.card-email .contact-card-label {
    color: var(--accent-green, #10b981);
}

/* Card Left Section */
.contact-card-left {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.contact-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.contact-card:hover .contact-card-icon {
    transform: scale(1.1) rotate(-3deg);
}

.contact-card-details {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.contact-card-label {
    font-family: var(--font-heading, 'Orbitron', sans-serif);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.contact-card-value {
    font-size: 0.94rem;
    font-weight: 600;
    color: var(--text-main, #ffffff);
    word-break: break-all;
}

/* Card Action Area */
.contact-card-actions-wrapper {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.contact-action-btn {
    background: rgba(251, 191, 36, 0.08);
    border: 1px solid rgba(251, 191, 36, 0.2);
    color: var(--primary-gold, #fbbf24);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.contact-action-btn:hover {
    background: rgba(251, 191, 36, 0.25);
    color: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.4);
}

.contact-card-action {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted, #cbd5e1);
    transition: color 0.25s ease, transform 0.25s ease;
}

.contact-card:hover .contact-card-action {
    color: #ffffff;
    transform: translate(3px, -3px);
}

/* Copy Toast Banner - Gold Cyber Banner */
.contact-toast {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%) translateY(50px);
    background: var(--primary-gold, #fbbf24);
    color: #06070a;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 700;
    font-family: var(--font-heading, sans-serif);
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 8px 20px rgba(251, 191, 36, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 100;
}

.contact-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Interactive Skill Tag Button & Tooltip */
.contact-tag {
    cursor: pointer;
}

.contact-skill-badge {
    margin-top: 0.65rem;
    padding: 6px 14px;
    background: rgba(251, 191, 36, 0.08);
    border: 1px dashed rgba(251, 191, 36, 0.4);
    border-radius: 12px;
    font-size: 0.78rem;
    color: var(--primary-gold, #fbbf24);
    font-weight: 600;
    text-align: center;
    animation: fadeInBadge 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInBadge {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Interactive Quick Message Drawer Toggle */
.contact-quick-msg-toggle {
    margin-top: 1rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.75rem 1rem;
    background: rgba(251, 191, 36, 0.08);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 14px;
    color: var(--primary-gold, #fbbf24);
    font-family: var(--font-heading, 'Orbitron', sans-serif);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    z-index: 2;
}

.contact-quick-msg-toggle:hover {
    background: rgba(251, 191, 36, 0.2);
    border-color: rgba(251, 191, 36, 0.7);
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.3);
    transform: translateY(-2px);
}

.quick-msg-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.contact-quick-msg-toggle.active .quick-msg-arrow {
    transform: rotate(180deg);
}

/* Quick Message Form Container */
.contact-msg-form-container {
    margin-top: 0.75rem;
    padding: 1rem;
    background: rgba(8, 12, 22, 0.9);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 16px;
    position: relative;
    z-index: 2;
    animation: slideDownForm 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDownForm {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.contact-msg-form {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.contact-form-input, .contact-form-textarea {
    width: 100%;
    padding: 0.6rem 0.85rem;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: #ffffff;
    font-family: var(--font-body, 'Rajdhani', sans-serif);
    font-size: 0.88rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form-input:focus, .contact-form-textarea:focus {
    border-color: var(--primary-gold, #fbbf24);
    box-shadow: 0 0 12px rgba(251, 191, 36, 0.25);
}

.contact-send-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem;
    background: linear-gradient(135deg, var(--primary-gold, #fbbf24), var(--primary-amber, #f59e0b));
    border: none;
    border-radius: 10px;
    color: #06070a;
    font-family: var(--font-heading, 'Orbitron', sans-serif);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
}

.contact-send-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.5);
    background: linear-gradient(135deg, #ffffff, var(--primary-gold, #fbbf24));
}

/* Mobile Responsiveness for Contact Modal */
@media (max-width: 480px) {
    .contact-modal-card {
        padding: 1.4rem 1.2rem 1.4rem 1.2rem !important;
        border-radius: 22px !important;
    }

    .contact-avatar-wrapper {
        width: 88px;
        height: 88px;
    }

    .contact-dev-name {
        font-size: 1.55rem;
    }

    .contact-dev-title {
        font-size: 0.85rem;
    }

    .contact-card {
        padding: 0.75rem 0.95rem;
    }

    .contact-card-icon {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }

    .contact-card-value {
        font-size: 0.82rem;
    }
}

/* ==========================================================================
   Laptop & Desktop View - Non-Fullscreen & Fullscreen Viewport Fit
   ========================================================================== */
@media (min-width: 901px) {
    .poster-view {
        height: calc(100vh - 64px);
        max-height: calc(100vh - 64px);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: clamp(0.2rem, 1vh, 0.8rem) clamp(0.8rem, 1.5vw, 1.5rem);
        overflow: hidden;
        box-sizing: border-box;
    }

    .poster-container {
        height: 100%;
        max-height: calc(100vh - 72px);
        display: grid;
        grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.9fr);
        align-items: center;
        gap: clamp(0.6rem, 1.8vw, 2.2rem);
        padding-top: 0;
        padding-bottom: 0;
    }

    .poster-left-content {
        justify-content: center;
    }

    .poster-tagline {
        margin-bottom: clamp(0.2rem, 0.6vh, 0.5rem);
    }

    .poster-title-wrapper {
        margin-bottom: clamp(0.4rem, 1.2vh, 1.2rem);
    }

    .poster-intel-card {
        margin-top: clamp(0.35rem, 0.9vh, 0.75rem);
        padding: clamp(0.55rem, 1.2vh, 0.95rem) clamp(0.8rem, 1.2vw, 1.1rem);
    }

    .intel-badge-row {
        margin-bottom: clamp(0.3rem, 0.7vh, 0.65rem);
    }

    .intel-story-box {
        margin-bottom: clamp(0.3rem, 0.7vh, 0.65rem);
    }

    .poster-hero-person-wrapper {
        height: calc(100vh - 80px);
        max-height: calc(100vh - 80px);
    }

    .poster-hero-img {
        max-height: calc(100vh - 85px);
    }
}

/* ==========================================================================
   High Graphics Victory Theater Modal & Celebration Animation (Professional Style)
   ========================================================================== */
/* ==========================================================================
   AAA Temple Victory Screen & Player Run-In Entrance Animation System
   ========================================================================== */
.victory-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: #030612;
    z-index: 9999;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.5s ease;
    overflow: hidden;
    perspective: 1200px;
    padding: 1.4rem 2rem 1.4rem 2rem;
    box-sizing: border-box;
}

.victory-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Fullscreen Video Element: winning_video.mp4 (Full Bleed Mobile Cover Fit) */
.victory-video-element {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    pointer-events: none;
    z-index: 1;
    background: #030612 url('../uploads/winning_standing_pose.png') center center / cover no-repeat;
    opacity: 1;
    visibility: visible;
}

/* Fullscreen Stopping Image: winning standing pose.png (Full Bleed Mobile Cover Fit) */
.victory-end-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    filter: brightness(1.02) contrast(1.08);
}

.victory-end-img.show {
    opacity: 1;
}

/* Canvas Particle Layer (Confetti & Blue Temple Sparks) */
#victoryCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
}

/* Shockwave Ring Expanding on Hero Entrance Landing */
.victory-shockwave {
    position: absolute;
    top: 55%;
    left: 30%;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 4px solid #38bdf8;
    box-shadow: 0 0 50px #38bdf8, inset 0 0 30px #fbbf24;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    pointer-events: none;
    z-index: 5;
}

.victory-shockwave.burst {
    animation: shockwaveExpand 0.85s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
}

@keyframes shockwaveExpand {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 1; border-width: 8px; }
    50% { opacity: 0.85; }
    100% { transform: translate(-50%, -50%) scale(45); opacity: 0; border-width: 1px; }
}

/* Top Left HUD: Crown New Record Badge Box */
.victory-record-badge {
    position: relative;
    z-index: 10;
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    align-self: start;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(8, 14, 28, 0.95));
    border: 2px solid rgba(251, 191, 36, 0.8);
    border-radius: 18px;
    padding: 0.6rem 1.4rem;
    box-shadow: 0 0 25px rgba(251, 191, 36, 0.4), inset 0 0 12px rgba(251, 191, 36, 0.2);
    transform: translateY(-50px);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.25), opacity 0.4s ease;
}

.victory-modal-overlay.active .victory-record-badge {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.25s;
}

.record-crown-icon {
    font-size: 1.8rem;
    background: linear-gradient(135deg, #fff085 0%, #fbbf24 60%, #d97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.8));
    animation: badgePulse 2s ease-in-out infinite alternate;
}

.record-info {
    display: flex;
    flex-direction: column;
}

.record-label {
    font-family: var(--font-heading);
    font-size: 0.68rem;
    font-weight: 800;
    color: #94a3b8;
    letter-spacing: 1.5px;
}

.record-score-val {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 1px;
}

/* Center Stage: Seamless 3D Hero Video Arena Stage */
.victory-hero-sprint-container {
    position: relative;
    z-index: 8;
    grid-column: 1;
    grid-row: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    perspective: 1000px;
    pointer-events: none;
}

/* Top Right Header: 3 Gold Stars + YOU ESCAPED! 3D Title + Purple Ribbon Banner */
.victory-header-stage {
    position: relative;
    z-index: 10;
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    align-self: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 90%;
    max-width: 460px;
    margin-bottom: 0.5rem;
    transform: translateY(-40px);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.25), opacity 0.4s ease;
}

.victory-modal-overlay.active .victory-header-stage {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.3s;
}

/* 3 Gold Stars Row */
.victory-stars-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.2rem;
}

.star-item {
    font-size: 2.2rem;
    filter: drop-shadow(0 0 15px rgba(251, 191, 36, 0.9));
    animation: starPop 0.5s ease-out forwards;
}

.star-left { transform: scale(0.85) rotate(-10deg); }
.star-center { font-size: 3rem; transform: scale(1.1); filter: drop-shadow(0 0 25px rgba(251, 191, 36, 1)); }
.star-right { transform: scale(0.85) rotate(10deg); }

/* 3D Extruded YOU ESCAPED! Title (Strictly contained inside Right Column - No Hero Overlap) */
.victory-title-escaped {
    font-family: var(--font-heading);
    font-size: clamp(1.9rem, 3.4vw, 3.1rem);
    font-weight: 900;
    line-height: 1.1;
    margin: 0.1rem 0 0.35rem 0;
    background: linear-gradient(180deg, #ffffff 0%, #fff085 35%, #fbbf24 70%, #d97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 5px 0px rgba(0, 0, 0, 0.95))
            drop-shadow(0 0 25px rgba(251, 191, 36, 0.85));
    letter-spacing: 2px;
    white-space: nowrap;
    animation: titlePulse 2.5s ease-in-out infinite alternate;
}

/* Purple Gradient Ribbon Tagline: ALL STAGES CLEAR */
.victory-purple-ribbon {
    background: linear-gradient(90deg, #6b21a8 0%, #9333ea 50%, #6b21a8 100%);
    border: 2px solid #e9d5ff;
    border-radius: 14px;
    padding: 0.4rem 2rem;
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 900;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    box-shadow: 0 6px 20px rgba(147, 51, 234, 0.65), inset 0 0 10px rgba(255, 255, 255, 0.4);
    position: relative;
    white-space: nowrap;
}

.victory-purple-ribbon::before, .victory-purple-ribbon::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 14px;
    height: 14px;
    background: #6b21a8;
    transform: translateY(-50%) rotate(45deg);
}

.victory-purple-ribbon::before { left: -7px; }
.victory-purple-ribbon::after { right: -7px; }

/* Right Side Stats Card: Dark Glass Card with Gold Trim */
.victory-right-stats-card {
    position: relative;
    z-index: 10;
    grid-column: 2;
    grid-row: 2;
    justify-self: center;
    align-self: center;
    width: 90%;
    max-width: 460px;
    background: linear-gradient(165deg, rgba(10, 18, 36, 0.92) 0%, rgba(6, 12, 24, 0.96) 100%);
    border: 2px solid rgba(251, 191, 36, 0.75);
    border-radius: 22px;
    padding: 1.4rem 1.6rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.9),
                0 0 35px rgba(251, 191, 36, 0.25),
                inset 0 0 25px rgba(251, 191, 36, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transform: translateX(60px);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.25), opacity 0.4s ease;
}

.victory-modal-overlay.active .victory-right-stats-card {
    transform: translateX(0);
    opacity: 1;
    transition-delay: 0.35s;
}

/* Stats Card Rows */
.stats-card-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.55rem 0;
}

.stats-card-row.score-row {
    padding-bottom: 0.8rem;
}

.row-label {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 900;
    color: #fbbf24;
    letter-spacing: 2px;
}

.row-value-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.score-main-number {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 1.5px;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

.new-record-pill {
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
    color: #050b14;
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 900;
    padding: 0.25rem 0.6rem;
    border-radius: 8px;
    letter-spacing: 1px;
    box-shadow: 0 0 12px rgba(251, 191, 36, 0.6);
}

.stats-card-divider {
    height: 1px;
    width: 100%;
    background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.4), transparent);
    margin-bottom: 0.6rem;
}

.row-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 800;
    color: #94a3b8;
    letter-spacing: 1px;
}

.row-icon {
    font-size: 1.1rem;
}

.row-val-highlight {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 900;
    color: #38bdf8;
    letter-spacing: 1px;
}

.row-val-stars {
    font-size: 0.95rem;
    filter: drop-shadow(0 0 8px #fbbf24);
}

.row-val-text {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 1px;
}

.row-val-green {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 900;
    color: #4ade80;
    letter-spacing: 1px;
}

/* Bottom Action Bar: 3 Pill Buttons */
.victory-bottom-action-bar {
    position: relative;
    z-index: 10;
    grid-column: 1 / -1;
    grid-row: 3;
    justify-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    width: 100%;
    max-width: 680px;
    margin-top: 0.5rem;
    transform: translateY(60px);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.25), opacity 0.4s ease;
}

.victory-modal-overlay.active .victory-bottom-action-bar {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.45s;
}

.action-btn {
    flex: 1;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 1.2rem;
    border-radius: 16px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 900;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9), 0 0 10px rgba(0, 0, 0, 0.6);
    cursor: pointer;
    transition: transform 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.25), box-shadow 0.15s ease, background 0.25s ease;
    border: 2.5px solid rgba(255, 255, 255, 0.65);
    position: relative;
    overflow: hidden;
}

/* Glass Shine Reflection Sweep */
.action-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    transform: skewX(-25deg);
    transition: left 0.6s ease;
}

.action-btn:hover::after {
    left: 150%;
}

.action-btn:active {
    transform: translateY(4px) scale(0.98) !important;
}

.action-btn .btn-icon {
    font-size: 1.3rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
}

/* Royal Cyber Blue HOME Button */
.btn-home {
    background: linear-gradient(180deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%);
    border-color: #93c5fd;
    box-shadow: 0 6px 0px #1e3a8a, 0 10px 25px rgba(37, 99, 235, 0.6), inset 0 2px 0 rgba(255, 255, 255, 0.5);
}

.btn-home:hover {
    transform: translateY(-3px) scale(1.02);
    background: linear-gradient(180deg, #60a5fa 0%, #3b82f6 50%, #2563eb 100%);
    box-shadow: 0 8px 0px #1e3a8a, 0 14px 30px rgba(59, 130, 246, 0.85), inset 0 2px 0 rgba(255, 255, 255, 0.65);
}

/* Neon Emerald Green PLAY AGAIN Button */
.btn-play-again {
    background: linear-gradient(180deg, #22c55e 0%, #16a34a 50%, #15803d 100%);
    border-color: #86efac;
    box-shadow: 0 6px 0px #14532d, 0 10px 25px rgba(34, 197, 94, 0.6), inset 0 2px 0 rgba(255, 255, 255, 0.5);
}

.btn-play-again:hover {
    transform: translateY(-3px) scale(1.02);
    background: linear-gradient(180deg, #4ade80 0%, #22c55e 50%, #16a34a 100%);
    box-shadow: 0 8px 0px #14532d, 0 14px 30px rgba(34, 197, 94, 0.85), inset 0 2px 0 rgba(255, 255, 255, 0.65);
}

/* Metallic Trophy Gold LEADERBOARD Button */
.btn-leaderboard {
    background: linear-gradient(180deg, #facc15 0%, #eab308 50%, #ca8a04 100%);
    border-color: #fef08a;
    box-shadow: 0 6px 0px #78350f, 0 10px 25px rgba(234, 179, 8, 0.7), inset 0 2px 0 rgba(255, 255, 255, 0.7);
}

.btn-leaderboard:hover {
    transform: translateY(-3px) scale(1.02);
    background: linear-gradient(180deg, #fde047 0%, #facc15 50%, #eab308 100%);
    box-shadow: 0 8px 0px #78350f, 0 14px 30px rgba(250, 204, 21, 0.95), inset 0 2px 0 rgba(255, 255, 255, 0.8);
}

/* Mobile & Tablet Responsive Optimization (Preserving Laptop 2-Column Grid in Landscape Mode) */
@media (max-width: 950px) {
    .victory-modal-overlay {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto 1fr auto;
        padding: max(0.4rem, env(safe-area-inset-top)) max(0.8rem, env(safe-area-inset-right)) max(0.4rem, env(safe-area-inset-bottom)) max(0.8rem, env(safe-area-inset-left));
        gap: 0.35rem;
        overflow: hidden;
    }
    .victory-record-badge {
        grid-column: 1;
        grid-row: 1;
        justify-self: flex-start;
        align-self: center;
        margin-top: 0;
        padding: 0.2rem 0.65rem;
        z-index: 10;
    }
    .record-crown-icon {
        font-size: 1.05rem;
    }
    .record-label {
        font-size: 0.52rem;
    }
    .record-score-val {
        font-size: 1rem;
    }
    .victory-header-stage {
        grid-column: 2;
        grid-row: 1;
        justify-self: center;
        align-self: center;
        width: 100%;
        max-width: 360px;
        margin-bottom: 0.1rem;
        z-index: 10;
    }
    .star-item {
        font-size: 1.25rem;
    }
    .star-center {
        font-size: 1.6rem;
    }
    .victory-title-escaped {
        font-size: clamp(1.2rem, 3.2vw, 1.9rem);
        letter-spacing: 1.2px;
        margin: 0 0 0.15rem 0;
    }
    .victory-purple-ribbon {
        font-size: 0.65rem;
        padding: 0.2rem 0.75rem;
        letter-spacing: 1.2px;
        border-radius: 10px;
    }
    .victory-right-stats-card {
        grid-column: 2;
        grid-row: 2;
        justify-self: center;
        align-self: center;
        width: 100%;
        max-width: 360px;
        padding: 0.45rem 0.75rem;
        margin-top: 0;
        border-radius: 16px;
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        box-sizing: border-box;
        z-index: 10;
    }
    .stats-card-row {
        padding: 0.16rem 0;
    }
    .stats-card-row.score-row {
        padding-bottom: 0.25rem;
    }
    .row-label {
        font-size: 0.78rem;
    }
    .score-main-number {
        font-size: 1.25rem;
    }
    .new-record-pill {
        font-size: 0.52rem;
        padding: 0.1rem 0.38rem;
    }
    .row-title {
        font-size: 0.64rem;
    }
    .row-icon {
        font-size: 0.85rem;
    }
    .row-val-highlight, .row-val-text, .row-val-green {
        font-size: 0.78rem;
    }
    .row-val-stars {
        font-size: 0.75rem;
    }
    .victory-bottom-action-bar {
        grid-column: 1 / -1;
        grid-row: 3;
        justify-self: center;
        flex-direction: row;
        gap: 0.45rem;
        width: 100%;
        max-width: min(580px, 92vw);
        margin-top: 0.15rem;
        z-index: 10;
    }
    .action-btn {
        flex: 1;
        min-width: 0;
        height: 40px;
        padding: 0 0.35rem;
        font-size: clamp(0.62rem, 1.8vw, 0.78rem);
        letter-spacing: 0.4px;
        border-radius: 12px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        box-sizing: border-box;
    }
    .btn-leaderboard {
        letter-spacing: 0.2px;
    }
    .action-btn .btn-icon {
        font-size: clamp(0.85rem, 2vw, 1.05rem);
        flex-shrink: 0;
    }
}

/* Ultra-Compact Tuning for Low-Height Mobile Landscape Screens (Height <= 540px) */
@media (max-height: 540px) and (orientation: landscape) {
    .victory-modal-overlay {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto 1fr auto;
        padding: max(0.2rem, env(safe-area-inset-top)) max(0.5rem, env(safe-area-inset-right)) max(0.2rem, env(safe-area-inset-bottom)) max(0.5rem, env(safe-area-inset-left));
        gap: 0.15rem;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .victory-record-badge {
        padding: 0.12rem 0.45rem;
    }
    .record-crown-icon {
        font-size: 0.95rem;
    }
    .record-label {
        font-size: 0.5rem;
    }
    .record-score-val {
        font-size: 0.85rem;
    }
    .victory-header-stage {
        margin-bottom: 0;
        max-width: 310px;
    }
    .star-item {
        font-size: 1rem;
    }
    .star-center {
        font-size: 1.25rem;
    }
    .victory-title-escaped {
        font-size: clamp(0.95rem, 2.5vw, 1.35rem);
        letter-spacing: 1px;
        margin: 0 0 0.05rem 0;
    }
    .victory-purple-ribbon {
        font-size: 0.55rem;
        padding: 0.1rem 0.55rem;
        letter-spacing: 1px;
        border-radius: 8px;
    }
    .victory-right-stats-card {
        max-width: 310px;
        padding: 0.3rem 0.6rem;
        border-radius: 12px;
    }
    .stats-card-row {
        padding: 0.06rem 0;
    }
    .stats-card-row.score-row {
        padding-bottom: 0.12rem;
    }
    .score-main-number {
        font-size: 1.1rem;
    }
    .row-label {
        font-size: 0.7rem;
    }
    .row-title {
        font-size: 0.58rem;
    }
    .row-val-highlight, .row-val-text, .row-val-green {
        font-size: 0.72rem;
    }
    .row-val-stars {
        font-size: 0.68rem;
    }
    .victory-bottom-action-bar {
        margin-top: 0.05rem;
        gap: 0.3rem;
        max-width: 480px;
    }
    .action-btn {
        height: 35px;
        font-size: clamp(0.55rem, 1.5vw, 0.68rem);
        padding: 0 0.2rem;
        border-radius: 10px;
    }
    .action-btn .btn-icon {
        font-size: 0.8rem;
    }
}

/* Vertical Stack Only for Small Portrait Mobile Devices */
@media (max-width: 600px) and (orientation: portrait) {
    .victory-modal-overlay {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: max(0.75rem, env(safe-area-inset-top)) max(0.65rem, env(safe-area-inset-right)) max(0.75rem, env(safe-area-inset-bottom)) max(0.65rem, env(safe-area-inset-left));
        gap: 0.5rem;
    }
    .victory-record-badge {
        grid-column: 1;
        grid-row: 1;
        justify-self: center;
        margin-top: 0;
    }
    .victory-header-stage {
        grid-column: 1;
        grid-row: 2;
        justify-self: center;
        max-width: 100%;
        margin-bottom: 0;
    }
    .victory-title-escaped {
        font-size: clamp(1.3rem, 5vw, 2.1rem);
    }
    .victory-right-stats-card {
        grid-column: 1;
        grid-row: 3;
        justify-self: center;
        width: 100%;
        max-width: 380px;
        padding: 0.6rem 0.85rem;
    }
    .victory-bottom-action-bar {
        grid-column: 1;
        grid-row: 4;
        justify-self: center;
        flex-wrap: nowrap;
        width: 100%;
        max-width: 380px;
        gap: 0.4rem;
        margin-top: 0.2rem;
    }
    .action-btn {
        height: 44px;
        font-size: clamp(0.64rem, 2.8vw, 0.8rem);
        padding: 0 0.3rem;
    }
}

@media (max-width: 380px) and (orientation: portrait) {
    .victory-bottom-action-bar {
        flex-wrap: wrap;
    }
    .action-btn {
        flex: 1 1 45%;
        min-width: 110px;
    }
    .btn-leaderboard {
        flex: 1 1 100%;
    }
}

.victory-rank-stamp.stamped {
    transform: rotate(12deg) scale(1);
    opacity: 1;
    animation: stampBounce 0.4s ease-out;
}

.victory-rank-stamp .rank-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 1px;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.victory-rank-stamp .rank-subtitle {
    font-family: var(--font-heading);
    font-size: 0.6rem;
    font-weight: 800;
    color: #fef08a;
    letter-spacing: 1.5px;
    line-height: 1.2;
}

@keyframes stampBounce {
    0% { transform: rotate(12deg) scale(2.2); opacity: 0; }
    50% { transform: rotate(12deg) scale(0.9); opacity: 1; }
    75% { transform: rotate(12deg) scale(1.1); }
    100% { transform: rotate(12deg) scale(1); }
}

/* Floating 3D Coins Overlay */
.victory-coins-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 4;
}

.floating-coin {
    position: absolute;
    font-size: 1.8rem;
    filter: drop-shadow(0 4px 10px rgba(251, 191, 36, 0.8));
    animation: floatCoin 3s ease-in-out infinite alternate;
}

.floating-coin.coin-1 { top: 10%; left: 15%; animation-delay: 0s; }
.floating-coin.coin-2 { top: 60%; left: 10%; animation-delay: 0.6s; font-size: 2.1rem; }
.floating-coin.coin-3 { top: 15%; right: 15%; animation-delay: 1.2s; font-size: 2rem; }
.floating-coin.coin-4 { top: 65%; right: 12%; animation-delay: 1.8s; }

@keyframes floatCoin {
    0% { transform: translateY(0) rotate(0deg) scale(1); }
    100% { transform: translateY(-14px) rotate(20deg) scale(1.12); }
}

/* Score Display Card */
.victory-score-card {
    width: 100%;
    background: linear-gradient(135deg, rgba(8, 16, 32, 0.95), rgba(15, 23, 42, 0.95));
    border: 1.5px solid rgba(251, 191, 36, 0.5);
    border-radius: 20px;
    padding: 1.1rem 1.4rem;
    margin-bottom: 1.2rem;
    box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.8), 0 0 20px rgba(251, 191, 36, 0.15);
    position: relative;
    overflow: hidden;
}

.victory-score-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.4rem;
}

.victory-score-label {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 800;
    color: #94a3b8;
    letter-spacing: 1.8px;
}

.victory-bonus-pill {
    background: linear-gradient(90deg, #10b981, #059669);
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 0.68rem;
    font-weight: 900;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    letter-spacing: 1px;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.victory-score-number {
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 6.5vw, 3.4rem);
    font-weight: 900;
    color: #fbbf24;
    text-shadow: 0 0 30px rgba(251, 191, 36, 0.9), 0 0 12px rgba(251, 191, 36, 0.6);
    letter-spacing: 2px;
    line-height: 1;
    transition: transform 0.1s ease;
}

.victory-score-number.pulse {
    animation: scorePulse 0.3s ease-out;
}

@keyframes scorePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); color: #ffffff; text-shadow: 0 0 40px #ffffff; }
    100% { transform: scale(1); color: #fbbf24; }
}

/* Stats Grid Breakdown (4 Tiles) */
.victory-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.7rem;
    width: 100%;
    margin-bottom: 1.4rem;
}

.stat-tile {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 14px;
    padding: 0.65rem 0.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    transition: all 0.25s ease;
}

.stat-tile:hover {
    background: rgba(251, 191, 36, 0.12);
    border-color: rgba(251, 191, 36, 0.6);
    transform: translateY(-2px);
}

.stat-tile .stat-icon {
    font-size: 1.4rem;
    filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.5));
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 800;
    color: #94a3b8;
    letter-spacing: 1px;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 0.5px;
}

/* Action Buttons Deck */
.victory-action-grid {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    width: 100%;
}

.victory-primary-btn {
    position: relative;
    background: linear-gradient(135deg, #fff085 0%, #fbbf24 45%, #d97706 100%);
    color: #050b14;
    border: 2px solid #fef08a;
    border-radius: 16px;
    padding: 1rem 1.6rem;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: 2px;
    cursor: pointer;
    box-shadow: 0 0 35px rgba(251, 191, 36, 0.6), 0 8px 0px #b45309;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    overflow: hidden;
}

.victory-primary-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.6) 50%, transparent 60%);
    transform: rotate(30deg);
    animation: heroShimmer 2.8s infinite;
}

.victory-primary-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0 50px rgba(251, 191, 36, 0.9), 0 11px 0px #b45309;
    background: linear-gradient(135deg, #ffffff 0%, #fff085 45%, #fbbf24 100%);
}

.victory-primary-btn:active {
    transform: translateY(4px) scale(0.98);
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.4), 0 4px 0px #b45309;
}

.victory-primary-btn .btn-arrow {
    font-size: 1.3rem;
    transition: transform 0.2s ease;
}

.victory-primary-btn:hover .btn-arrow {
    transform: translateX(5px);
}

.victory-secondary-btn {
    background: rgba(15, 23, 42, 0.85);
    border: 1.5px solid rgba(56, 189, 248, 0.4);
    color: #ffffff;
    border-radius: 14px;
    padding: 0.82rem 1.4rem;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.victory-secondary-btn:hover {
    background: rgba(56, 189, 248, 0.18);
    border-color: #38bdf8;
    color: #38bdf8;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
    transform: translateY(-2px);
}

.victory-secondary-btn:active {
    transform: translateY(1px);
}

@media (max-width: 600px) {
    .victory-stage-container {
        padding: 1.5rem 1.2rem;
        width: 95%;
        border-radius: 20px;
    }
    .victory-hero-avatar-frame {
        width: 140px;
        height: 140px;
    }
    .victory-title-text {
        font-size: 1.9rem;
    }
    .victory-stats-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}

@media (max-width: 600px) {
    .victory-stage-container {
        padding: 1.5rem 1.2rem;
        width: 92%;
    }
    .victory-hero-avatar-frame {
        width: 130px;
        height: 130px;
    }
    .victory-title-text {
        font-size: 1.8rem;
    }
}

/* ==========================================================================
   SEO & Game Discovery Information Hub
   ========================================================================== */
.seo-game-info-section {
    display: none !important;
}

.seo-info-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.seo-main-heading {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 2.2vw, 2rem);
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 1.5px;
    margin: 0;
    text-transform: uppercase;
    background: linear-gradient(90deg, #ffffff 0%, var(--primary-gold) 60%, var(--primary-amber) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(251, 191, 36, 0.2);
}

.seo-lead-text {
    font-family: var(--font-body);
    font-size: clamp(0.9rem, 1.05vw, 1.05rem);
    line-height: 1.7;
    color: #cbd5e1;
    margin: 0;
}

.seo-lead-text strong {
    color: #ffffff;
    font-weight: 700;
}

.seo-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.2rem;
    margin-top: 0.5rem;
}

.seo-card {
    background: rgba(10, 16, 30, 0.6);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 12px;
    padding: 1.2rem;
    transition: all 0.3s ease;
}

.seo-card:hover {
    border-color: var(--primary-gold);
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.2);
    transform: translateY(-2px);
}

.seo-card-title {
    font-family: var(--font-heading);
    font-size: clamp(1.05rem, 1.2vw, 1.2rem);
    color: var(--primary-gold);
    margin: 0 0 0.6rem 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.seo-card-desc {
    font-family: var(--font-body);
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0;
}

.seo-card-desc strong {
    color: #f1f5f9;
}

.seo-keywords-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.seo-pill {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary-cyan);
    background: rgba(0, 243, 255, 0.08);
    border: 1px solid rgba(0, 243, 255, 0.3);
    border-radius: 20px;
    padding: 0.35rem 0.85rem;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
}

.seo-pill:hover {
    background: rgba(0, 243, 255, 0.2);
    color: #ffffff;
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.4);
}

/* ==========================================================================
   Admin Secret Key & Level Override System
   ========================================================================== */

.secret-key-btn {
    background: transparent;
    border: none;
    color: var(--primary-gold, #fbbf24);
    font-size: 0.92rem;
    opacity: 0.38;
    cursor: pointer;
    padding: 2px 6px;
    margin-left: 6px;
    border-radius: 4px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    user-select: none;
    vertical-align: middle;
}

.secret-key-btn:hover {
    opacity: 1;
    filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.85));
    transform: scale(1.18) rotate(-12deg);
}

.secret-key-btn:active {
    transform: scale(0.95);
}

.secret-key-pill {
    cursor: pointer !important;
    transition: all 0.25s ease !important;
}

.secret-key-pill:hover {
    background: rgba(251, 191, 36, 0.22) !important;
    border-color: rgba(251, 191, 36, 0.8) !important;
    box-shadow: 0 0 12px rgba(251, 191, 36, 0.5) !important;
    transform: translateY(-1px);
}

/* Admin Auth Modal Card */
.admin-auth-card {
    max-width: 480px !important;
    background: linear-gradient(145deg, rgba(13, 17, 34, 0.98), rgba(7, 9, 20, 0.99)) !important;
    border: 1.5px solid var(--primary-gold, #fbbf24) !important;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.9), 0 0 30px rgba(251, 191, 36, 0.15), inset 0 0 20px rgba(251, 191, 36, 0.05) !important;
    position: relative;
    padding: 2rem !important;
}

.admin-auth-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.35);
    border-radius: 20px;
    padding: 0.3rem 0.85rem;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--primary-gold, #fbbf24);
    text-transform: uppercase;
}

.admin-badge.badge-gold {
    background: rgba(251, 191, 36, 0.18);
    border-color: rgba(251, 191, 36, 0.6);
}

.admin-close-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #94a3b8;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.admin-close-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.6);
    color: #ef4444;
    transform: rotate(90deg);
}

.admin-security-icon-wrapper {
    position: relative;
    width: 64px;
    height: 64px;
    margin: 0.5rem auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-key-glow-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.3) 0%, rgba(251, 191, 36, 0) 70%);
    animation: keyPulseGlow 2.5s infinite alternate ease-in-out;
}

@keyframes keyPulseGlow {
    0% { transform: scale(0.9); opacity: 0.5; }
    100% { transform: scale(1.3); opacity: 0.9; }
}

.admin-security-icon {
    font-size: 2.2rem;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.6));
}

.admin-modal-title {
    font-family: var(--font-heading);
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 1px;
    margin: 0 0 0.4rem 0;
    text-transform: uppercase;
}

.admin-modal-subtitle {
    font-family: var(--font-body);
    font-size: 0.88rem;
    color: var(--text-muted, #94a3b8);
    margin: 0 0 1.5rem 0;
    line-height: 1.5;
}

/* Input Fields */
.admin-input-group {
    text-align: left;
    margin-bottom: 1.2rem;
}

.admin-input-label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--primary-gold, #fbbf24);
    margin-bottom: 0.4rem;
    text-transform: uppercase;
}

.admin-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(4, 6, 14, 0.8);
    border: 1.5px solid rgba(251, 191, 36, 0.35);
    border-radius: var(--border-radius-sm, 6px);
    transition: all 0.25s ease;
    overflow: hidden;
}

.admin-input-wrapper:focus-within {
    border-color: var(--primary-gold, #fbbf24);
    box-shadow: 0 0 16px rgba(251, 191, 36, 0.25);
}

.admin-input-icon {
    padding: 0 0.75rem;
    font-size: 1.1rem;
    opacity: 0.8;
}

.admin-password-input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-family: monospace, var(--font-body);
    font-size: 1.05rem;
    padding: 0.75rem 0.5rem;
    letter-spacing: 1px;
}

.admin-password-input::placeholder {
    color: #64748b;
    font-family: var(--font-body);
    font-size: 0.88rem;
    letter-spacing: normal;
}

.admin-pwd-toggle {
    background: transparent;
    border: none;
    color: #94a3b8;
    padding: 0 0.8rem;
    font-size: 1.05rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.admin-pwd-toggle:hover {
    color: var(--primary-gold, #fbbf24);
}

/* Status Error / Success Alert Box */
.admin-auth-status {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-align: center;
    animation: statusFadeIn 0.3s ease;
}

@keyframes statusFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.admin-auth-status.status-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1.5px solid rgba(239, 68, 68, 0.6);
    color: #fca5a5;
    box-shadow: 0 0 14px rgba(239, 68, 68, 0.2);
}

.admin-auth-status.status-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1.5px solid rgba(16, 185, 129, 0.6);
    color: #6ee7b7;
    box-shadow: 0 0 14px rgba(16, 185, 129, 0.2);
}

/* Error Shake Animation */
.status-error-shake {
    animation: adminInputShake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
    border-color: #ef4444 !important;
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.4) !important;
}

@keyframes adminInputShake {
    10%, 90% { transform: translate3d(-2px, 0, 0); }
    20%, 80% { transform: translate3d(4px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-6px, 0, 0); }
    40%, 60% { transform: translate3d(6px, 0, 0); }
}

/* Admin Modal Action Buttons */
.admin-modal-actions {
    display: flex;
    gap: 0.8rem;
    margin-top: 1rem;
}

.admin-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius-sm, 6px);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    text-transform: uppercase;
}

.admin-btn-submit {
    background: linear-gradient(135deg, #fbbf24, #d97706);
    border: 1px solid #fef08a;
    color: #0b0f19;
    box-shadow: 0 4px 16px rgba(251, 191, 36, 0.35);
}

.admin-btn-submit:hover {
    background: linear-gradient(135deg, #fef08a, #fbbf24);
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.5);
    transform: translateY(-1px);
}

.admin-btn-cancel {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #cbd5e1;
}

.admin-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.35);
}

/* Admin Level Selector Modal */
.admin-level-select-card {
    max-width: 640px !important;
    width: 92% !important;
}

.admin-level-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.1rem;
    margin: 1.4rem 0;
    text-align: left;
}

.admin-level-item {
    background: linear-gradient(140deg, rgba(14, 20, 40, 0.88), rgba(8, 12, 24, 0.96));
    border: 1.5px solid rgba(251, 191, 36, 0.35);
    border-radius: 10px;
    padding: 1.15rem;
    cursor: pointer;
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}

.admin-level-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-gold, #fbbf24), transparent);
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.admin-level-item:hover {
    background: linear-gradient(140deg, rgba(22, 30, 60, 0.96), rgba(12, 17, 35, 0.99));
    border-color: var(--primary-gold, #fbbf24);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.75), 0 0 22px rgba(251, 191, 36, 0.35);
    transform: translateY(-4px);
}

.admin-level-item:hover::before {
    opacity: 1;
}

.level-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem;
}

.level-num-badge {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--primary-gold, #fbbf24);
    background: rgba(251, 191, 36, 0.16);
    border: 1px solid rgba(251, 191, 36, 0.45);
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    letter-spacing: 1px;
    box-shadow: 0 0 8px rgba(251, 191, 36, 0.15);
}

.level-status-pill {
    font-family: var(--font-heading);
    font-size: 0.68rem;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.level-item-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.35rem;
    line-height: 1.35;
    letter-spacing: 0.3px;
}

.level-item-desc {
    font-family: var(--font-body);
    font-size: 0.82rem;
    color: #cbd5e1;
    line-height: 1.45;
    margin-bottom: 1.1rem;
}

.level-warp-btn {
    width: 100%;
    padding: 0.65rem 0.9rem;
    background: rgba(251, 191, 36, 0.14);
    border: 1px solid rgba(251, 191, 36, 0.5);
    color: var(--primary-gold, #fbbf24);
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 1px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.22s ease;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}

.admin-level-item:hover .level-warp-btn {
    background: linear-gradient(135deg, #fbbf24, #d97706);
    border-color: #fef08a;
    color: #0b0f19;
    box-shadow: 0 0 16px rgba(251, 191, 36, 0.5);
    transform: translateY(-1px);
}

.admin-modal-footer {
    margin-top: 1.2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Admin Enemy Configuration Modal */
.admin-enemy-config-card {
    max-width: 580px !important;
    width: 92% !important;
    background: linear-gradient(145deg, rgba(12, 16, 32, 0.98), rgba(6, 8, 18, 0.99)) !important;
    border: 1.5px solid var(--primary-gold, #fbbf24) !important;
    box-shadow: 0 25px 75px rgba(0, 0, 0, 0.95), 0 0 35px rgba(251, 191, 36, 0.2), inset 0 0 25px rgba(251, 191, 36, 0.05) !important;
}

.admin-enemy-target-info {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(251, 191, 36, 0.35);
    border-radius: 8px;
    padding: 0.9rem 1.2rem;
    margin-bottom: 1.2rem;
    text-align: center;
}

.target-level-badge {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--primary-gold, #fbbf24);
    background: rgba(251, 191, 36, 0.15);
    border: 1px solid rgba(251, 191, 36, 0.4);
    border-radius: 20px;
    padding: 0.2rem 0.7rem;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 0.3rem;
}

.target-level-name {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    letter-spacing: 0.5px;
}

.admin-enemy-options-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.3rem 0;
    text-align: left;
}

.admin-enemy-option-card {
    background: linear-gradient(140deg, rgba(14, 20, 40, 0.88), rgba(8, 12, 24, 0.96));
    border: 1.5px solid rgba(251, 191, 36, 0.35);
    border-radius: 10px;
    padding: 1.2rem;
    cursor: pointer;
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}

.admin-enemy-option-card.option-combat:hover {
    background: linear-gradient(140deg, rgba(28, 24, 12, 0.96), rgba(16, 13, 6, 0.98));
    border-color: var(--primary-gold, #fbbf24);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.75), 0 0 22px rgba(251, 191, 36, 0.35);
    transform: translateY(-3px);
}

.admin-enemy-option-card.option-stealth:hover {
    background: linear-gradient(140deg, rgba(8, 28, 40, 0.96), rgba(4, 15, 24, 0.98));
    border-color: var(--primary-cyan, #00f3ff);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.75), 0 0 22px rgba(0, 243, 255, 0.35);
    transform: translateY(-3px);
}

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

.option-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    letter-spacing: 0.5px;
}

.option-pill {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.25rem 0.65rem;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.option-pill.pill-gold {
    background: rgba(251, 191, 36, 0.15);
    border: 1px solid rgba(251, 191, 36, 0.4);
    color: #fbbf24;
}

.option-pill.pill-cyan {
    background: rgba(0, 243, 255, 0.15);
    border: 1px solid rgba(0, 243, 255, 0.4);
    color: #00f3ff;
}

.option-desc {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: #cbd5e1;
    line-height: 1.45;
    margin: 0;
}

.option-action-btn {
    width: 100%;
    padding: 0.65rem 1rem;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
}

.btn-combat {
    background: rgba(251, 191, 36, 0.15);
    border: 1px solid rgba(251, 191, 36, 0.5);
    color: #fbbf24;
}

.admin-enemy-option-card.option-combat:hover .btn-combat {
    background: linear-gradient(135deg, #fbbf24, #d97706);
    color: #0b0f19;
    box-shadow: 0 0 14px rgba(251, 191, 36, 0.5);
}

.btn-stealth {
    background: rgba(0, 243, 255, 0.15);
    border: 1px solid rgba(0, 243, 255, 0.5);
    color: #00f3ff;
}

.admin-enemy-option-card.option-stealth:hover .btn-stealth {
    background: linear-gradient(135deg, #00f3ff, #0284c7);
    color: #040914;
    box-shadow: 0 0 14px rgba(0, 243, 255, 0.5);
}

/* Dev Mode HUD Badge */
.dev-no-enemies-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(0, 243, 255, 0.15);
    border: 1px solid rgba(0, 243, 255, 0.6);
    color: #00f3ff;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
    box-shadow: 0 0 12px rgba(0, 243, 255, 0.35);
    margin-left: 0.6rem;
    animation: devBadgePulse 2s infinite alternate ease-in-out;
}

@keyframes devBadgePulse {
    from { opacity: 0.75; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1.03); }
}

/* ==========================================================================
   Mobile Size Optimization for Admin System (Portrait & Landscape)
   ========================================================================== */

@media (max-width: 640px) {
    /* Auth Modal Mobile */
    .admin-auth-card {
        padding: 1.2rem 1rem !important;
        width: 94% !important;
        max-width: 400px !important;
        border-radius: 12px !important;
    }

    .admin-security-icon-wrapper {
        width: 52px;
        height: 52px;
        margin: 0.2rem auto 0.8rem;
    }

    .admin-security-icon {
        font-size: 1.8rem;
    }

    .admin-modal-title {
        font-size: 1.15rem;
        letter-spacing: 0.5px;
    }

    .admin-modal-subtitle {
        font-size: 0.82rem;
        margin-bottom: 1.1rem;
    }

    .admin-password-input {
        font-size: 1rem;
        padding: 0.7rem 0.4rem;
    }

    .admin-btn {
        padding: 0.8rem 0.8rem;
        font-size: 0.8rem;
        min-height: 44px;
    }

    /* Level Selector Mobile */
    .admin-level-select-card {
        padding: 1.2rem 0.9rem !important;
        width: 95% !important;
        max-height: 88vh !important;
        border-radius: 12px !important;
    }

    .admin-level-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        margin: 1rem 0;
    }

    .admin-level-item {
        padding: 0.95rem;
        border-radius: 8px;
    }

    .level-item-title {
        font-size: 0.98rem;
    }

    .level-item-desc {
        font-size: 0.78rem;
        margin-bottom: 0.85rem;
    }

    .level-warp-btn {
        padding: 0.7rem 0.8rem;
        font-size: 0.75rem;
        min-height: 42px;
    }

    /* Enemy Config Popup Mobile */
    .admin-enemy-config-card {
        padding: 1.2rem 0.9rem !important;
        width: 95% !important;
        max-height: 88vh !important;
        border-radius: 12px !important;
    }

    .admin-enemy-target-info {
        padding: 0.7rem 0.9rem;
        margin-bottom: 0.9rem;
    }

    .target-level-name {
        font-size: 1.05rem;
    }

    .admin-enemy-options-grid {
        gap: 0.8rem;
        margin: 1rem 0;
    }

    .admin-enemy-option-card {
        padding: 0.95rem;
        border-radius: 8px;
    }

    .option-title {
        font-size: 0.95rem;
    }

    .option-desc {
        font-size: 0.78rem;
    }

    .option-action-btn {
        padding: 0.75rem 0.8rem;
        font-size: 0.75rem;
        min-height: 42px;
    }

    .dev-no-enemies-badge {
        font-size: 0.65rem;
        padding: 0.2rem 0.5rem;
        margin-left: 0.3rem;
    }
}

/* Low-Height Mobile Landscape Optimization (Phone in Horizontal Orientation) */
@media (max-height: 500px) and (orientation: landscape) {
    .admin-auth-card,
    .admin-level-select-card,
    .admin-enemy-config-card {
        padding: 0.8rem 1rem !important;
        max-height: 94vh !important;
        overflow-y: auto !important;
    }

    .admin-security-icon-wrapper {
        display: none;
    }

    .admin-modal-title {
        font-size: 1rem;
        margin-bottom: 0.2rem;
    }

    .admin-modal-subtitle {
        font-size: 0.75rem;
        margin-bottom: 0.7rem;
    }

    .admin-level-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.68rem;
        margin: 0.7rem 0;
    }

    .admin-level-item {
        padding: 0.7rem 0.8rem;
    }

    .level-item-desc {
        display: none;
    }

    .level-item-title {
        font-size: 0.88rem;
        margin-bottom: 0.4rem;
    }

    .level-warp-btn {
        padding: 0.5rem 0.6rem;
        font-size: 0.7rem;
        min-height: 36px;
    }

    .admin-enemy-options-grid {
        grid-template-columns: repeat(2, 1fr);
        display: grid;
        gap: 0.68rem;
        margin: 0.7rem 0;
    }

    .admin-enemy-option-card {
        padding: 0.75rem;
    }

    .option-desc {
        display: none;
    }

    .option-action-btn {
        padding: 0.5rem 0.6rem;
        font-size: 0.7rem;
        min-height: 36px;
    }
}

/* ==========================================================================
   Popup Prompt Card: Click to Fullscreen on Website Open
   ========================================================================== */
.fullscreen-prompt-card {
    position: relative;
    background: linear-gradient(135deg, rgba(14, 18, 32, 0.96), rgba(8, 10, 22, 0.98)) !important;
    border: 1.5px solid var(--primary-gold, #fbbf24) !important;
    border-radius: 20px !important;
    padding: 1.8rem 1.6rem 1.6rem 1.6rem !important;
    max-width: 400px !important;
    width: 90% !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 
                0 0 40px rgba(251, 191, 36, 0.3), 
                inset 0 0 25px rgba(251, 191, 36, 0.1) !important;
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    text-align: center;
    color: #ffffff;
    font-family: var(--font-body, 'Rajdhani', sans-serif);
    box-sizing: border-box !important;
    margin: auto !important;
    overflow: hidden !important;
    animation: promptPulseGlow 3s infinite alternate ease-in-out;
}

@keyframes promptPulseGlow {
    0% {
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 25px rgba(251, 191, 36, 0.25), inset 0 0 25px rgba(251, 191, 36, 0.08);
    }
    100% {
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 45px rgba(251, 191, 36, 0.45), inset 0 0 35px rgba(251, 191, 36, 0.15);
    }
}

.fullscreen-prompt-icon-badge {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.1rem auto;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(245, 158, 11, 0.05));
    border: 1.5px solid rgba(251, 191, 36, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary-gold, #fbbf24);
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.35);
    animation: promptIconPulse 2s infinite ease-in-out;
    cursor: pointer;
}

@keyframes promptIconPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 20px rgba(251, 191, 36, 0.35); }
    50% { transform: scale(1.08); box-shadow: 0 0 30px rgba(251, 191, 36, 0.6); }
}

.fullscreen-prompt-title {
    font-family: var(--font-heading, 'Orbitron', sans-serif);
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: #ffffff;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 12px rgba(251, 191, 36, 0.4);
}

.fullscreen-prompt-desc {
    font-size: 0.98rem;
    color: var(--text-muted, #cbd5e1);
    line-height: 1.45;
    margin-bottom: 1.4rem;
}

.fullscreen-prompt-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.fullscreen-prompt-btn-main {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #06070a;
    border: none;
    border-radius: 12px;
    padding: 0.85rem 1.4rem;
    font-family: var(--font-heading, 'Orbitron', sans-serif);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    box-shadow: 0 0 25px rgba(251, 191, 36, 0.5);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.fullscreen-prompt-btn-main:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 0 35px rgba(251, 191, 36, 0.75);
    background: linear-gradient(135deg, #fcd34d, #fbbf24);
}

.fullscreen-prompt-btn-main:active {
    transform: translateY(0) scale(0.99);
}

.fullscreen-prompt-btn-dismiss {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted, #cbd5e1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 0.55rem 1rem;
    font-family: var(--font-body, 'Rajdhani', sans-serif);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.fullscreen-prompt-btn-dismiss:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

/* ==========================================================================
   COMING SOON POPUP NOTIFICATION (Cyberpunk Toast Popup)
   ========================================================================== */
.coming-soon-pop {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(-30px) scale(0.9);
    background: rgba(10, 12, 20, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(251, 191, 36, 0.5);
    box-shadow: 0 0 25px rgba(251, 191, 36, 0.3), 0 12px 35px rgba(0, 0, 0, 0.8), inset 0 0 15px rgba(251, 191, 36, 0.05);
    border-radius: 14px;
    padding: 12px 20px;
    z-index: 999999;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
    max-width: 90vw;
}

.coming-soon-pop.show {
    transform: translateX(-50%) translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.coming-soon-pop.shake {
    animation: popShake 0.35s ease-in-out;
}

@keyframes popShake {
    0%, 100% { transform: translateX(-50%) translateY(0) scale(1); }
    25% { transform: translateX(-52%) translateY(0) scale(1.02); }
    75% { transform: translateX(-48%) translateY(0) scale(1.02); }
}

.coming-soon-pop-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.coming-soon-icon {
    font-size: 1.4rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 10px;
    animation: comingSoonPulse 1.8s infinite ease-in-out;
}

@keyframes comingSoonPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 rgba(251, 191, 36, 0); }
    50% { transform: scale(1.08); box-shadow: 0 0 12px rgba(251, 191, 36, 0.4); }
}

.coming-soon-text-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.coming-soon-title {
    font-family: var(--font-heading, 'Rajdhani', sans-serif);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--primary-gold, #fbbf24);
    text-transform: uppercase;
    line-height: 1.2;
}

.coming-soon-sub {
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 0.84rem;
    font-weight: 500;
    color: #e2e8f0;
    margin-top: 2px;
    line-height: 1.2;
}

.coming-soon-close-btn {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 2px 6px;
    margin-left: 6px;
    border-radius: 6px;
    transition: color 0.2s ease, background 0.2s ease;
}

.coming-soon-close-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}










