/* ==========================================================================
   STYLE SYSTEM - TEMUKAN MAINAN (DARK NEON GAME THEME)
   ========================================================================== */

:root {
    --bg-dark: #061512;
    --bg-card: #0a221d;
    --bg-card-light: #10352e;
    --primary: #C9A24D;
    --primary-glow: rgba(201, 162, 77, 0.3);
    --neon-green: #059669;
    --neon-green-glow: rgba(5, 150, 105, 0.3);
    --neon-red: #ef4444;
    --neon-red-glow: rgba(239, 68, 68, 0.4);
    
    --accent: #C9A24D;
    --accent-light: #E2C279;
    --accent-dark: #8B6914;
    
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    --text-accent: #C9A24D;
    
    --font-main: 'Poppins', 'Inter', sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    height: 100% !important;
}

html.swal2-shown, body.swal2-shown,
html.swal2-height-auto, body.swal2-height-auto {
    height: 100% !important;
}

body {
    background-color: #020404;
    color: var(--text-primary);
    font-family: var(--font-main);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* ==========================================================================
   MOBILE DEVICE CONTAINER / FRAME
   ========================================================================== */
.mobile-frame {
    width: 420px;
    height: 90vh;
    max-height: 860px;
    min-height: 640px;
    background: var(--bg-dark);
    border-radius: 40px;
    border: 8px solid #10352e;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 30px rgba(201, 162, 77, 0.15);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Responsive adjustment for actual mobile screens */
@media (max-width: 480px) {
    body {
        align-items: stretch;
    }
    .mobile-frame {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
        border: none;
        box-shadow: none;
    }
}

/* ==========================================================================
   SCREEN MANAGER
   ========================================================================== */
.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: translateY(15px);
    background: var(--bg-dark);
    z-index: 1;
}

.screen.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    z-index: 2;
}

.scroll-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px 100px 20px; /* Space for bottom nav */
    scrollbar-width: none;
}

.scroll-content::-webkit-scrollbar {
    display: none;
}

/* ==========================================================================
   REGISTRATION SCREEN
   ========================================================================== */
.login-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 30px;
    text-align: center;
}

.logo-animation {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(201, 162, 77, 0.05);
    border: 2px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    position: relative;
    box-shadow: 0 0 25px var(--primary-glow);
}

.animated-radar-icon {
    font-size: 50px;
    color: var(--accent-light);
    animation: pulseRadar 2s infinite ease-in-out;
}

@keyframes pulseRadar {
    0% { transform: scale(0.9); opacity: 0.7; }
    50% { transform: scale(1.1); opacity: 1; text-shadow: 0 0 15px var(--primary-glow); }
    100% { transform: scale(0.9); opacity: 0.7; }
}

.login-title {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--text-primary);
    line-height: 1.1;
    margin-bottom: 8px;
}

.login-title span {
    color: var(--accent);
    text-shadow: 0 0 15px var(--primary-glow);
}

.login-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.login-form {
    width: 100%;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
    width: 100%;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 20px;
}

.input-group input {
    width: 100%;
    padding: 16px 16px 16px 48px;
    background: var(--bg-card);
    border: 1px solid rgba(201, 162, 77, 0.25);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 15px;
    transition: var(--transition-smooth);
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(201, 162, 77, 0.25);
    background: var(--bg-card-light);
}

.btn {
    font-family: inherit;
    font-weight: 700;
    padding: 16px 24px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition-smooth);
    font-size: 15px;
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #061512;
    box-shadow: 0 8px 20px rgba(201, 162, 77, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(201, 162, 77, 0.35);
}

.btn-secondary {
    background: var(--bg-card-light);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.04);
}

.btn-neon {
    background: linear-gradient(135deg, var(--accent-light), var(--accent));
    color: #061512;
    box-shadow: 0 8px 20px rgba(201, 162, 77, 0.25);
    text-shadow: none;
}

.btn-neon:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(201, 162, 77, 0.4);
}

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

.login-footer {
    margin-top: auto;
    font-size: 11px;
    color: var(--text-muted);
}

/* ==========================================================================
   APP HEADER
   ========================================================================== */
.app-header {
    height: 70px;
    min-height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    background: rgba(6, 21, 18, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(201, 162, 77, 0.15);
    z-index: 100;
}

.header-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.header-btn:hover {
    background: rgba(201, 162, 77, 0.1);
    color: var(--accent);
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 6px;
}

.search-icon-header {
    color: var(--accent);
    font-size: 20px;
}

.logo-text {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--text-primary);
}

.score-pill {
    background: var(--bg-card);
    border: 1px solid rgba(201, 162, 77, 0.35);
    padding: 6px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 13px;
    color: var(--accent-light);
}

.star-icon {
    font-size: 18px;
}

/* ==========================================================================
   BANNER SECTION (RESPONSIVE FLEXBOX)
   ========================================================================== */
.banner-layout-section {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-card);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
    animation: borderGlowShift 6s infinite ease-in-out;
}

/* Color Shifting Gradient Layers */
.banner-layout-section::before,
.banner-layout-section::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
}

.banner-layout-section::before {
    background: radial-gradient(circle at 10% 50%, rgba(16, 185, 129, 0.18), transparent 70%);
    animation: fadeGreen 6s infinite ease-in-out;
}

.banner-layout-section::after {
    background: radial-gradient(circle at 10% 50%, rgba(244, 63, 94, 0.18), transparent 70%);
    animation: fadePink 6s infinite ease-in-out;
}

.banner-icon-container {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(16, 185, 129, 0.5);
    animation: pulseGlowShift 6s infinite ease-in-out;
    z-index: 1;
    position: relative; /* Stacking context */
}

.banner-gift-icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-gift-icon.green-icon {
    animation: fadeGreenImage 6s infinite ease-in-out;
}

.banner-gift-icon.pink-icon {
    animation: fadePinkImage 6s infinite ease-in-out;
}

/* Animations for Banner Shifting Colors & Glows */
@keyframes borderGlowShift {
    0%, 100% {
        border-color: rgba(16, 185, 129, 0.25);
    }
    50% {
        border-color: rgba(244, 63, 94, 0.35);
    }
}

@keyframes fadeGreen {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@keyframes fadePink {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

@keyframes pulseGlowShift {
    0%, 100% {
        box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
        border-color: rgba(16, 185, 129, 0.5);
    }
    50% {
        box-shadow: 0 0 24px rgba(244, 63, 94, 0.8);
        border-color: rgba(244, 63, 94, 0.8);
    }
}

@keyframes fadeGreenImage {
    0%, 100% {
        opacity: 1;
        transform: scale(1.1) translateY(0) rotate(0deg);
    }
    50% {
        opacity: 0;
        transform: scale(1.1) translateY(-4px) rotate(5deg);
    }
}

@keyframes fadePinkImage {
    0%, 100% {
        opacity: 0;
        transform: scale(1.1) translateY(0) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.1) translateY(-4px) rotate(5deg);
    }
}

.banner-text-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 1;
}

.banner-title-top {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 1px;
    margin-bottom: -2px;
}

.banner-title-main {
    font-size: 26px;
    font-weight: 900;
    line-height: 1.1;
    color: #10b981;
    letter-spacing: 0.5px;
    animation: textGlowShift 6s infinite ease-in-out;
}

.banner-subtitle {
    font-size: 10.5px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.highlight-text {
    font-weight: 600;
    animation: highlightGlowShift 6s infinite ease-in-out;
}

@keyframes textGlowShift {
    0%, 100% {
        color: #10b981;
        text-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
    }
    50% {
        color: #f43f5e;
        text-shadow: 0 2px 8px rgba(244, 63, 94, 0.6);
    }
}

@keyframes highlightGlowShift {
    0%, 100% { color: #10b981; }
    50% { color: #f43f5e; }
}

/* ==========================================================================
   STATS CARD (TEMUANMU)
   ========================================================================== */
.stats-card {
    background: var(--bg-card);
    border: 1px solid rgba(201, 162, 77, 0.18);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.stats-header {
    display: flex;
    justify-content: space-between;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.stats-title {
    color: var(--primary);
}

.stats-count {
    color: var(--text-primary);
}

.toys-tracker {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
}

.toys-tracker::-webkit-scrollbar {
    display: none;
}

.tracker-item {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.tracker-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: var(--transition-smooth);
    opacity: 0.35;
    filter: grayscale(100%);
}

.tracker-circle.found {
    opacity: 1;
    filter: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
    background: rgba(201, 162, 77, 0.06);
}

.tracker-qty {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-secondary);
}

/* ==========================================================================
   SEARCH BAR
   ========================================================================== */
.search-bar-container {
    position: relative;
    margin-bottom: 20px;
}

.search-bar-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 18px;
}

.search-bar-container input {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid rgba(201, 162, 77, 0.2);
    border-radius: 12px;
    padding: 12px 12px 12px 42px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 13px;
    transition: var(--transition-smooth);
}

.search-bar-container input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(201, 162, 77, 0.25);
}

/* ==========================================================================
   3x3 GRID AND MYSTERY BOXES
   ========================================================================== */
.grid-3x3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}

.box-container {
    aspect-ratio: 1;
    perspective: 1000px;
    cursor: pointer;
}

.box-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.box-container.opened .box-inner {
    transform: rotateY(180deg);
}

.box-front, .box-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 15px rgba(0,0,0,0.4);
}

.box-front {
    background: linear-gradient(135deg, #0b221d, #061512);
    border: 1px solid rgba(201, 162, 77, 0.3);
    overflow: hidden;
}

/* Hover glow for mystery boxes */
.box-container:not(.opened):hover .box-front {
    border-color: var(--accent-light);
    box-shadow: 0 0 18px rgba(201, 162, 77, 0.45);
}

.box-glow {
    position: absolute;
    bottom: -15px;
    width: 60%;
    height: 30px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    border-radius: 50%;
    transition: var(--transition-smooth);
}

.box-question {
    font-size: 34px;
    font-weight: 800;
    color: var(--accent);
    text-shadow: 0 2px 8px rgba(201, 162, 77, 0.4);
    transition: var(--transition-smooth);
}

.box-container:not(.opened):hover .box-question {
    color: var(--accent-light);
    transform: scale(1.1);
}

.box-back {
    background: var(--bg-card-light);
    border: 2px solid var(--primary);
    transform: rotateY(180deg);
    box-shadow: 0 0 20px var(--primary-glow);
}

.box-container.found .box-back {
    border-color: var(--accent-light);
    box-shadow: 0 0 25px rgba(201, 162, 77, 0.6);
    background: linear-gradient(135deg, rgba(201, 162, 77, 0.15), rgba(10, 34, 29, 0.9));
}

.box-revealed-icon {
    font-size: 32px;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.5));
}

/* Status indicators for found/failed boxes */
.box-container {
    position: relative;
}

.box-status-indicator {
    position: absolute;
    top: -6px;
    right: -6px;
    z-index: 10;
    display: none;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #061512;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

.check-indicator {
    color: #10b981;
    border: 1.5px solid #10b981;
}

.check-indicator span {
    font-size: 16px !important;
}

.cross-indicator {
    color: #ef4444;
    border: 1.5px solid #ef4444;
}

.cross-indicator span {
    font-size: 16px !important;
}

.box-container.found .check-indicator {
    display: flex;
}

.box-container.failed .cross-indicator {
    display: flex;
}

/* ==========================================================================
   BOTTOM NAVIGATION BAR
   ========================================================================== */
.bottom-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 78px;
    background: rgba(6, 21, 18, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(201, 162, 77, 0.2);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 10px;
    z-index: 10;
}

.nav-item {
    background: none;
    border: none;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    font-family: inherit;
    font-size: 10px;
    font-weight: 700;
    width: 75px;
    height: 60px;
    transition: var(--transition-smooth);
    position: relative;
}

.nav-item:hover, .nav-item:active, .nav-item.active-btn {
    color: var(--accent);
}

.nav-item .material-icons-outlined {
    font-size: 24px;
}

.nav-center-icon {
    color: var(--primary);
    font-size: 28px !important;
}

.nav-item:hover .nav-center-icon, .nav-item.active-btn .nav-center-icon {
    color: var(--accent-light);
    transform: rotate(180deg);
}

.badge {
    position: absolute;
    top: 4px;
    right: 18px;
    background: var(--primary);
    color: #061512;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
}

/* ==========================================================================
   POP-UP MODAL WINDOWS
   ========================================================================== */
.modal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 6, 6, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    width: calc(100% - 32px);
    max-width: 380px;
    background: rgba(10, 34, 29, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid rgba(201, 162, 77, 0.35);
    border-radius: 24px;
    padding: 24px;
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    max-height: 85%;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary);
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
}

.modal-body {
    overflow-y: auto;
    margin-bottom: 20px;
}

.modal-footer {
    display: flex;
    gap: 12px;
}

.modal-footer .btn {
    flex: 1;
}

/* Modal Centered (for cards) */
.modal-content-centered {
    width: calc(100% - 32px);
    max-width: 380px;
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal.active .modal-content-centered {
    transform: scale(1);
    opacity: 1;
}

/* Glowing Toy Card Design */
.toy-card-glowing {
    background: radial-gradient(circle at top, rgba(201, 162, 77, 0.25) 0%, rgba(10, 34, 29, 0.75) 60%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid var(--accent);
    border-radius: 24px;
    padding: 30px 24px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(201, 162, 77, 0.4);
    position: relative;
    overflow: hidden;
}

.toy-card-icon {
    font-size: 64px;
    margin-bottom: 16px;
    filter: drop-shadow(0 4px 10px rgba(201, 162, 77, 0.5));
    animation: floatIcon 3s infinite ease-in-out;
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.toy-card-name {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.toy-card-badge {
    display: inline-block;
    background: rgba(201, 162, 77, 0.1);
    border: 1px solid var(--accent);
    color: var(--accent-light);
    font-size: 10px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.toy-card-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 20px;
}

.toy-card-points {
    font-size: 14px;
    font-weight: 700;
    color: #facc15;
    margin-bottom: 24px;
}

.toy-card-points span {
    font-size: 18px;
}

.toy-card-action-row {
    display: flex;
    gap: 12px;
}

.toy-card-action-row .btn {
    flex: 1;
}

/* ==========================================================================
   HUNT SCREEN (MAP & RADAR GAMEPLAY)
   ========================================================================== */
.hunt-header {
    height: 70px;
    min-height: 70px;
    background: var(--bg-card);
    border-bottom: 1px solid rgba(201, 162, 77, 0.15);
    display: flex;
    align-items: center;
    padding: 0 16px;
    justify-content: space-between;
}

.hunt-back-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hunt-target-info {
    display: flex;
    align-items: center;
    flex: 1;
    margin-left: 8px;
}

.hunt-toy-name {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-primary);
}

.hunt-toy-pts {
    font-size: 11px;
    color: #facc15;
    font-weight: 600;
}

.hunt-timer-pill {
    background: #0d2a24;
    border: 1px solid rgba(201, 162, 77, 0.25);
    padding: 6px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: monospace;
    font-weight: 700;
    font-size: 13px;
    color: var(--text-primary);
}

.timer-icon {
    font-size: 16px;
    color: var(--text-secondary);
}

.hunt-timer-pill.critical-time {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    color: #fca5a5;
    animation: flashTimer 1s infinite steps(2, start);
}

.hunt-timer-pill.critical-time .timer-icon {
    color: #ef4444;
}

@keyframes flashTimer {
    to { visibility: hidden; }
}

.hunt-area {
    flex: 1;
    position: relative;
    background: #000;
    overflow: hidden;
}

#huntMap {
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Custom dark styling filter for OpenStreetMap tiles (teal-bottle green tint) */
.leaflet-tile-container {
    filter: invert(100%) hue-rotate(140deg) brightness(75%) contrast(95%) sepia(20%) saturate(120%);
}

.leaflet-control-zoom {
    display: none !important; /* Hide defaults for clean app UI */
}

.radar-overlay {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 90px;
    height: 90px;
    background: rgba(6, 21, 18, 0.85);
    border: 1.5px solid var(--accent);
    border-radius: 50%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    pointer-events: none;
}

.radar-circle-visual {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 50%;
    background: repeating-radial-gradient(circle, transparent, transparent 10px, rgba(201, 162, 77, 0.08) 10px, rgba(201, 162, 77, 0.08) 11px);
}

.radar-sweep {
    position: absolute;
    width: 100%;
    height: 100%;
    background: conic-gradient(from 0deg, transparent 50%, rgba(201, 162, 77, 0.2) 95%, var(--accent) 100%);
    border-radius: 50%;
    animation: rotateSweep 3s infinite linear;
}

@keyframes rotateSweep {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.proximity-indicator {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(6, 21, 18, 0.9);
    border: 1px solid rgba(201, 162, 77, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    color: var(--accent);
    pointer-events: none;
}

.critical-alert-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9;
    pointer-events: none;
    border: 0px solid red;
}

.critical-alert-border.active {
    animation: redAlertPulse 1.2s infinite ease-in-out;
}

@keyframes redAlertPulse {
    0%, 100% {
        box-shadow: inset 0 0 0 0px rgba(239, 68, 68, 0);
    }
    50% {
        box-shadow: inset 0 0 30px 6px rgba(239, 68, 68, 0.7);
    }
}

.hunt-controls {
    background: var(--bg-card);
    padding: 16px 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
    z-index: 10;
}

.hunt-instruction {
    font-size: 11px;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.4;
    margin-bottom: 14px;
}

/* ==========================================================================
   CAMERA & PHOTO UI
   ========================================================================== */
.camera-feed-container {
    width: 100%;
    aspect-ratio: 4/3;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.1);
}

#cameraVideo, #capturedImage {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#cameraFallback {
    text-align: center;
    color: var(--text-muted);
    padding: 20px;
}

.fallback-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.location-details-overlay {
    background: rgba(6, 21, 18, 0.85);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 10px 14px;
    margin-top: 12px;
}

.location-details-overlay p {
    font-size: 11px;
    color: var(--text-primary);
    font-weight: 600;
}

.address-subtext {
    color: var(--text-secondary) !important;
    font-weight: 400 !important;
    margin-top: 2px;
    font-size: 10px !important;
}

/* ==========================================================================
   DEVELOPER SIMULATION GPS PANEL
   ========================================================================== */
.dev-sim-panel {
    background: #061512;
    border-top: 2px solid var(--accent);
    z-index: 2000;
    font-family: monospace;
}

.dev-sim-header {
    background: #0a221d;
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 11px;
    color: var(--accent);
    cursor: pointer;
    border-bottom: 1px solid rgba(201, 162, 77, 0.15);
}

.dev-sim-header span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.toggle-chevron {
    font-size: 16px;
    transition: var(--transition-smooth);
}

.dev-sim-panel.collapsed .toggle-chevron {
    transform: rotate(180deg);
}

.dev-sim-body {
    padding: 12px 16px;
    display: block;
    transition: var(--transition-smooth);
}

.dev-sim-panel.collapsed .dev-sim-body {
    display: none;
}

.dev-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.dev-input-row label {
    font-size: 11px;
    width: 35px;
    color: var(--text-secondary);
}

.dev-input-row input {
    flex: 1;
    background: #061512;
    border: 1px solid rgba(201, 162, 77, 0.2);
    padding: 6px 8px;
    color: var(--accent);
    border-radius: 6px;
    font-size: 11px;
}

.dev-btn-group {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}

.dev-btn {
    flex: 1;
    background: #10352e;
    color: var(--text-primary);
    border: none;
    padding: 8px 6px;
    font-size: 10px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    transition: var(--transition-smooth);
}

.dev-btn:hover {
    background: #15453c;
}

.dev-btn-green {
    background: #064e3b;
    color: #34d399;
}

.dev-btn-green:hover {
    background: #065f46;
}

.dev-btn-blue {
    background: #1e3a8a;
    color: #93c5fd;
}

.dev-btn-blue:hover {
    background: #1e40af;
}

.dev-btn-red {
    background: #7f1d1d;
    color: #fca5a5;
}

.dev-btn-red:hover {
    background: #991b1b;
}

/* ==========================================================================
   SWEETALERT CUSTOMIZATIONS (NEON DARK)
   ========================================================================== */
.swal2-popup.swal-game-theme {
    background: rgba(10, 34, 29, 0.75) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    color: var(--text-primary) !important;
    border: 2px solid var(--accent) !important;
    border-radius: 24px !important;
    font-family: var(--font-main) !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6) !important;
}

.swal2-title.swal-game-theme {
    color: var(--text-primary) !important;
    font-weight: 800 !important;
}

.swal2-html-container.swal-game-theme {
    color: var(--text-secondary) !important;
}

.swal2-confirm.swal-game-theme {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark)) !important;
    color: #061512 !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    padding: 12px 24px !important;
}

.swal2-cancel.swal-game-theme {
    background: var(--bg-card-light) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    padding: 12px 24px !important;
}
