/* PointerPointer Supreme - Modern Glassmorphism & Cyberpunk Design */
:root {
    --bg-dark: #080a10;
    --panel-bg: rgba(13, 17, 27, 0.85);
    --panel-border: rgba(0, 240, 255, 0.25);
    --neon-cyan: #00f0ff;
    --neon-green: #00ff88;
    --neon-red: #ff3344;
    --neon-amber: #ffaa00;
    --neon-purple: #bd00ff;
    --text-primary: #f1f5f9;
    --text-muted: #94a3b8;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
    --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none;
    -webkit-user-select: none;
}

/* Strict Zero-Text Homepage Enforcement */
#instruction-banner,
.instruction-box,
#pointer-caption-wrap,
#pointer-caption,
#top-hud,
#game-hud,
.modal-overlay {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Accessible semantic text for search crawlers (100% invisible on screen) */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--bg-dark);
    font-family: var(--font-sans);
    color: var(--text-primary);
    position: relative;
    cursor: crosshair;
}

/* Mobile Tap Prompt - Displayed only on mobile touch devices */
.mobile-tap-prompt {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 40;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-tap-box {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(14, 20, 32, 0.88);
    border: 1px solid rgba(0, 240, 255, 0.4);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 24px rgba(0, 240, 255, 0.25);
    border-radius: 999px;
    padding: 14px 26px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    animation: tapFloat 2.6s ease-in-out infinite;
}

.mobile-tap-box .tap-icon {
    font-size: 1.4rem;
    display: inline-block;
    animation: tapBounce 1.4s ease-in-out infinite;
}

.mobile-tap-box .tap-text {
    font-family: var(--font-sans);
    font-size: 1.05rem;
    font-weight: 600;
    color: #f1f5f9;
    letter-spacing: 0.02em;
    text-shadow: 0 0 12px rgba(0, 240, 255, 0.4);
    white-space: nowrap;
}

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

@keyframes tapBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.18) translateY(-3px); }
}

.mobile-tap-prompt.fade-out {
    opacity: 0 !important;
    transform: translate(-50%, -40%) scale(0.92) !important;
    pointer-events: none !important;
}

/* Show on touchscreens / mobile viewports */
@media (max-width: 768px), (pointer: coarse) {
    .mobile-tap-prompt {
        display: flex;
    }
}

/* Radar Canvas Overlay */
#radar-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
}

/* Pointer Display Stage */
#pointer-stage {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    overflow: hidden;
    pointer-events: none;
    transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

#pointer-stage.hidden {
    opacity: 0;
    pointer-events: none;
}

#pointer-stage.fade-in {
    opacity: 1;
}

.pointer-render-img {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    max-width: none !important;
    max-height: none !important;
    pointer-events: none;
    filter: brightness(0.96) contrast(1.05);
}

.pointer-render-img.glow {
    filter: blur(16px) brightness(1.15) opacity(0.5);
    z-index: 1;
}

#pointer-image {
    z-index: 2;
}

/* Floating Status / Instructions Overlay (Default State) */
#instruction-banner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 8;
    text-align: center;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.instruction-box {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 24px 36px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 240, 255, 0.15);
    max-width: 480px;
}

.instruction-box h1 {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #ffffff 30%, var(--neon-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.instruction-box p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.5;
}

.instruction-pulse {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--neon-cyan);
    margin-right: 8px;
    box-shadow: 0 0 10px var(--neon-cyan);
    animation: pulseGlow 1.5s infinite alternate;
}

@keyframes pulseGlow {
    0% { transform: scale(0.8); opacity: 0.5; }
    100% { transform: scale(1.4); opacity: 1; box-shadow: 0 0 16px var(--neon-cyan); }
}

/* Floating Caption Badge (When Locked) */
#pointer-caption-wrap {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    pointer-events: none;
}

#pointer-caption {
    background: rgba(13, 17, 27, 0.9);
    border: 1px solid rgba(0, 240, 255, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 14px 28px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.7), 0 0 20px rgba(0, 240, 255, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#pointer-caption.hidden {
    display: none;
}

@keyframes popIn {
    0% { transform: scale(0.85); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* Top Telemetry HUD */
#top-hud {
    position: absolute;
    top: 18px;
    left: 20px;
    right: 20px;
    z-index: 30;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
}

.hud-left {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 10px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
    pointer-events: auto;
}

.brand-title {
    font-weight: 900;
    font-size: 16px;
    letter-spacing: 1.5px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-badge {
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    color: #000;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 1px;
}

.telemetry-divider {
    width: 1px;
    height: 18px;
    background: rgba(255, 255, 255, 0.15);
}

.telemetry-readout {
    font-family: var(--font-mono);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 14px;
}

#status-indicator {
    color: var(--neon-green);
    font-weight: 700;
}

#hud-coordinates {
    color: var(--neon-cyan);
}

#hud-details {
    color: var(--text-muted);
    font-size: 11px;
}

/* Top Right Controls Toolbar */
.hud-right {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 6px 14px;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
    pointer-events: auto;
}

/* Sleek Dropdown Selects */
.hud-select {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    outline: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hud-select:hover {
    border-color: var(--neon-cyan);
    background: rgba(0, 240, 255, 0.08);
}

.hud-select option {
    background: #0f172a;
    color: #fff;
}

/* HUD Buttons */
.hud-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

.hud-btn:hover {
    background: rgba(0, 240, 255, 0.15);
    border-color: var(--neon-cyan);
    transform: translateY(-1px);
}

.hud-btn.active {
    background: var(--neon-cyan);
    color: #000;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 12px var(--neon-cyan);
}

.btn-label-icon {
    width: auto;
    padding: 0 12px;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
}

/* Mini-Game HUD (Dodge Mode) */
#game-hud {
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 30;
    background: rgba(255, 51, 68, 0.15);
    border: 1px solid var(--neon-red);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 8px 24px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    font-family: var(--font-mono);
    box-shadow: 0 0 20px rgba(255, 51, 68, 0.25);
    pointer-events: none;
}

#game-hud.hidden {
    display: none;
}

.game-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.game-stat-label {
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.game-stat-value {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
}

.game-stat-value.highlight {
    color: var(--neon-green);
}

/* Floating Arcade Text */
.game-floater {
    position: absolute;
    transform: translate(-50%, -50%);
    font-family: var(--font-mono);
    font-size: 28px;
    font-weight: 900;
    pointer-events: none;
    z-index: 40;
    animation: floatUpFade 1.2s forwards cubic-bezier(0.1, 0.9, 0.2, 1);
    text-shadow: 0 0 12px currentColor;
}

@keyframes floatUpFade {
    0% { transform: translate(-50%, -50%) scale(0.6); opacity: 0; }
    20% { transform: translate(-50%, -80%) scale(1.1); opacity: 1; }
    100% { transform: translate(-50%, -150%) scale(1); opacity: 0; }
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 7, 12, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.hidden {
    display: none;
}

.modal-card {
    background: #0d121d;
    border: 1px solid var(--panel-border);
    border-radius: 18px;
    width: 100%;
    max-width: 860px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 240, 255, 0.15);
    overflow: hidden;
}

.modal-header {
    padding: 18px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #fff;
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Studio Components */
.studio-drop-zone {
    border: 2px dashed rgba(0, 240, 255, 0.3);
    border-radius: 14px;
    padding: 28px;
    text-align: center;
    cursor: pointer;
    background: rgba(0, 240, 255, 0.02);
    transition: all 0.2s ease;
}

.studio-drop-zone:hover, .studio-drop-zone.drag-active {
    border-color: var(--neon-cyan);
    background: rgba(0, 240, 255, 0.06);
}

.studio-canvas-container {
    position: relative;
    background: #07090e;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 260px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

#studio-canvas {
    max-width: 100%;
    max-height: 380px;
    cursor: crosshair;
}

.studio-form-row {
    display: flex;
    gap: 12px;
}

.studio-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 10px 14px;
    color: #fff;
    font-size: 14px;
    outline: none;
}

.studio-input:focus {
    border-color: var(--neon-cyan);
}

.btn-primary {
    background: var(--neon-cyan);
    color: #000;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary:hover:not(:disabled) {
    background: #5cffff;
    box-shadow: 0 0 15px var(--neon-cyan);
}

.btn-primary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 10px 18px;
    cursor: pointer;
}

.btn-secondary:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.14);
}

.btn-secondary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Custom Saved Cards Grid */
.custom-pointers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
    max-height: 200px;
    overflow-y: auto;
    padding-top: 10px;
}

.custom-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.custom-card img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 6px;
}

.custom-card-info {
    flex: 1;
    overflow: hidden;
}

.custom-card-info strong {
    display: block;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.custom-card-info span {
    font-size: 10px;
    color: var(--neon-cyan);
    font-family: var(--font-mono);
}

.btn-delete {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 14px;
    opacity: 0.7;
}

.btn-delete:hover {
    opacity: 1;
}

/* Help Shortcuts Table */
.shortcut-table {
    width: 100%;
    border-collapse: collapse;
}

.shortcut-table td {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

kbd {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 4px 8px;
    font-family: var(--font-mono);
    font-size: 12px;
    box-shadow: 0 2px 0 rgba(0,0,0,0.5);
}

/* Responsive adjustments */
@media (max-width: 840px) {
    #top-hud {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        top: 10px;
        left: 10px;
        right: 10px;
    }
    .hud-left {
        padding: 8px 12px;
        font-size: 12px;
    }
    .hud-right {
        justify-content: space-between;
        padding: 6px 10px;
    }
    #hud-details {
        display: none;
    }
    .instruction-box {
        margin: 0 16px;
        padding: 20px;
    }
    #pointer-caption {
        font-size: 14px;
        padding: 10px 20px;
    }
}

/* Floating Bottom Navigation Menu (AdSense & Policy Navigation) */
.floating-menu-container {
    position: fixed;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 60;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: auto;
}

.floating-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(14, 20, 32, 0.88);
    border: 1px solid rgba(0, 240, 255, 0.35);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 16px rgba(0, 240, 255, 0.15);
    border-radius: 999px;
    padding: 10px 20px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
}

.floating-nav-btn:hover {
    background: rgba(20, 28, 45, 0.96);
    border-color: var(--neon-cyan);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.7), 0 0 24px rgba(0, 240, 255, 0.35);
    transform: translateY(-2px);
}

.floating-nav-btn .fab-arrow {
    font-size: 0.75rem;
    color: var(--neon-cyan);
    transition: transform 0.25s ease;
}

.floating-menu-container.open .floating-nav-btn .fab-arrow {
    transform: rotate(180deg);
}

.floating-menu-popup {
    position: absolute;
    bottom: calc(100% + 12px);
    background: rgba(14, 20, 32, 0.95);
    border: 1px solid rgba(0, 240, 255, 0.3);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75), 0 0 24px rgba(0, 240, 255, 0.2);
    border-radius: 16px;
    padding: 8px;
    display: flex;
    gap: 6px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px) scale(0.96);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

.floating-menu-container.open .floating-menu-popup {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.floating-menu-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #cbd5e1;
    text-decoration: none;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 10px;
    transition: all 0.18s ease;
}

.floating-menu-link:hover {
    color: #ffffff;
    background: rgba(0, 240, 255, 0.12);
}

.floating-menu-link.active {
    color: var(--neon-cyan);
    background: rgba(0, 240, 255, 0.08);
}

@media (max-width: 600px) {
    .floating-menu-popup {
        flex-direction: column;
        width: 170px;
        bottom: calc(100% + 10px);
    }
    .floating-menu-link {
        padding: 10px 14px;
        width: 100%;
    }
}

