:root {
    --bg-dark: #0a0a0c;
    --surface: #141418;
    --surface-glass: rgba(20, 20, 24, 0.8);
    --accent: #ff8c00;
    --accent-glow: rgba(255, 140, 0, 0.3);
    --accent-green: #00ff88;
    --text-primary: #f8f8f8;
    --text-secondary: #a0a0a8;
    --border: #2a2a30;
    --radius: 16px;
    --font-main: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
}

body {
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 0% 0%, rgba(255, 140, 0, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(0, 255, 136, 0.05) 0%, transparent 50%);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

.noselect {
    user-select: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Top Bar */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -1px;
    color: var(--text-primary);
    text-decoration: none;
}

.logo span {
    color: var(--accent);
}

.custom-select {
    background: var(--surface);
    color: var(--text-primary);
    border: 1px solid var(--border);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    outline: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.custom-select:hover {
    border-color: var(--accent);
}

/* Main Navigation */
.main-nav {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    background: var(--surface);
    padding: 0.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px solid var(--border);
    flex-wrap: wrap;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-transform: uppercase;
}

.main-nav a:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.main-nav a.active {
    background: var(--accent);
    color: #000;
}

/* Tool Header */
.tool-header {
    text-align: center;
    margin-bottom: 3rem;
}

.tool-header h1 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    line-height: 1.1;
    background: linear-gradient(to right, #fff, rgba(255,255,255,0.7));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (max-width: 768px) {
    .tool-header h1 {
        font-size: 2rem;
    }
}

.tool-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Main Layout Grid */
.main-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    margin-bottom: 4rem;
}
/* Mobile Responsiveness */
@media (max-width: 1000px) {
    .main-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    .stat-card {
        padding: 1rem;
    }
    .stat-value {
        font-size: 2rem;
    }
    .click-area {
        height: 350px;
    }
    .tool-header h1 {
        font-size: 2.5rem;
    }
}

/* Game Area */
.game-container {
    background: var(--surface-glass);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 2rem;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--accent);
    font-family: var(--font-mono);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}

.click-area {
    height: 450px;
    background: rgba(0,0,0,0.3);
    border-radius: 12px;
    border: 2px dashed var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.click-area:hover {
    border-color: var(--accent);
    background: rgba(255, 140, 0, 0.02);
}

.click-area:active {
    transform: scale(0.99);
}

.click-area span {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-primary);
    text-transform: uppercase;
    pointer-events: none;
    z-index: 10;
    text-shadow: 0 0 20px rgba(255,255,255,0.2);
}

/* Radar Rings */
.radar-ring {
    position: absolute;
    width: 60px;
    height: 60px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 5;
    transform: translate(-50%, -50%) scale(0);
    animation: radar-expand 0.6s cubic-bezier(0, 0.5, 0.5, 1) forwards;
}

@keyframes radar-expand {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 1; border-width: 8px; }
    100% { transform: translate(-50%, -50%) scale(6); opacity: 0; border-width: 1px; }
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ad-slot {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
}

.ad-slot::after {
    content: "ADVERTISEMENT";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    opacity: 0.05;
    font-size: 2rem;
    white-space: nowrap;
}

/* Content Section */
.content-section {
    margin-top: 4rem;
    padding: 3rem;
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.content-section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.content-section p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* Modal Styling */
.cpsmsgmodal {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    padding: 1rem;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
}

.modal-content {
    background: var(--surface);
    max-width: 650px;
    width: 100%;
    border-radius: 24px;
    padding: 2.5rem;
    border: 1px solid var(--border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    text-align: center;
    position: relative;
    margin: auto;
}

.inner-box {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 2rem;
    align-items: center;
    text-align: left;
    margin-bottom: 2rem;
}

@media (max-width: 600px) {
    .inner-box {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
    .modal-content {
        padding: 1.5rem;
    }
}

.img-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-img {
    width: 100%;
    max-height: 180px;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
}

.rank-header {
    color: var(--accent);
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: 2px;
    font-size: 1rem;
}

.rank-name {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.modal-stats {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.modal-stats span {
    color: var(--accent);
    font-weight: 900;
    font-family: var(--font-mono);
}

.modal-msg {
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.btn-group {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
}

.try-again-btn {
    background: var(--accent);
    color: #000;
    border: none;
    padding: 1rem 3rem;
    font-size: 1.1rem;
    font-weight: 900;
    border-radius: 12px;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.try-again-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px var(--accent-glow);
}

.social-link:hover {
    transform: scale(1.1);
}

footer {
    text-align: center;
    padding: 4rem 0;
    color: var(--text-secondary);
    border-top: 1px solid var(--border);
    margin-top: 4rem;
}

/* Blog Styles */
.post-body h1, .post-body h2, .post-body h3 { margin-top: 2.5rem; margin-bottom: 1rem; color: var(--text-primary); }
.post-body p { margin-bottom: 1.5rem; line-height: 1.8; }
.post-body ul { margin-bottom: 1.5rem; padding-left: 1.5rem; }
.post-body li { margin-bottom: 0.5rem; }
