:root {
    --bg-color: #050505;
    --primary-color: #00f2ff;
    --neon-green: #39ff14;
    --neon-red: #ff383f;
    --neon-purple: #bc13fe;
    --card-bg: rgba(15, 15, 20, 0.95);
    --font-head: 'Orbitron', sans-serif;
    --font-mono: 'Roboto Mono', monospace;
    --font-korean: 'Black Han Sans', sans-serif;
    --font-body: 'Noto Sans KR', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg-color);
    color: #e0e0e0;
    font-family: var(--font-body);
    overflow-x: hidden;
    min-height: 100vh;
    background-image: radial-gradient(circle at 50% 50%, #101015 0%, #050505 100%);
}

.screen {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
}

.hidden { display: none !important; }

/* REBOOT BUTTON - Ultra Fancy */
.reboot-btn {
    position: fixed;
    bottom: 40px;
    right: 40px;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 15px 35px;
    font-family: var(--font-head);
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: 5px;
    z-index: 1000;
    transition: 0.3s;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.reboot-btn:hover {
    background: var(--primary-color);
    color: #000;
    box-shadow: 0 0 40px var(--primary-color);
    transform: scale(1.05) translateY(-5px);
}

.reboot-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: 0.5s;
}

.reboot-btn:hover::before { left: 100%; }

/* AdSense Content Section */
.content-article {
    max-width: 800px;
    width: 100%;
    margin-top: 60px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 15px;
    line-height: 1.8;
    color: #aaa;
}

.content-article h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-family: var(--font-korean);
    font-size: 1.8rem;
    text-align: center;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.info-item {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.info-item h3 {
    color: var(--neon-green);
    font-size: 1rem;
    margin-bottom: 10px;
}

/* Setup UI (Existing) */
.setup-card {
    background: var(--card-bg);
    border: 1px solid rgba(0, 242, 255, 0.15);
    padding: 40px;
    border-radius: 20px;
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.8);
}

.player-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
    width: 100%;
}

.player-setup-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 10px;
}

.player-setup-card input {
    flex: 1;
    background: transparent;
    border: none;
    border-bottom: 1px solid #333;
    color: #fff;
    font-size: 0.9rem;
    outline: none;
}

.btn-mini {
    background: transparent;
    border: none;
    color: #555;
    cursor: pointer;
    padding: 5px;
}

.btn-mini:hover { color: var(--primary-color); }

/* Footer & Modal */
.site-footer {
    width: 100%;
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.8rem;
    color: #555;
}

.footer-links {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-links a {
    color: #888;
    text-decoration: none;
}

.footer-links a:hover { color: var(--primary-color); }

.modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    background: #111;
    padding: 40px;
    border-radius: 15px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    border: 1px solid var(--primary-color);
    position: relative;
}

.close-modal {
    position: absolute;
    top: 20px; right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: #555;
}

/* Original Game UI Styles (Keep) */
.game-layout { display: flex; width: 100%; max-width: 1600px; height: calc(100vh - 150px); gap: 20px; }
.canvas-container { flex: 1; display: flex; justify-content: center; align-items: center; }
.sidebar { width: 350px; display: flex; flex-direction: column; gap: 15px; }
.panel { background: var(--card-bg); border: 1px solid rgba(255, 255, 255, 0.05); padding: 15px; border-radius: 12px; display: flex; flex-direction: column; }
.runner-panel { height: 30%; }
.finish-panel { height: 25%; }
.history-panel { height: 45%; }
.log-content { flex: 1; overflow-y: auto; font-size: 0.8rem; display: flex; flex-direction: column; gap: 5px; }
.log-entry { padding: 5px 8px; border-left: 3px solid var(--primary-color); background: rgba(255,255,255,0.02); }
.glitch { font-family: var(--font-korean); color: var(--primary-color); }
.cyber-btn-large { background: transparent; border: 2px solid var(--neon-green); color: var(--neon-green); padding: 20px; font-family: var(--font-head); cursor: pointer; text-transform: uppercase; border-radius: 10px; }
.btn-round { width: 45px; height: 45px; border-radius: 50%; border: 2px solid var(--primary-color); background: transparent; color: var(--primary-color); cursor: pointer; }
#player-count { width: 50px; text-align: center; background: transparent; border: none; color: #fff; font-size: 1.5rem; font-family: var(--font-head); }
input[type="range"] { width: 100%; accent-color: var(--primary-color); }
.neon-badge { background: rgba(0,0,0,0.5); border: 1px solid var(--primary-color); padding: 10px 20px; border-radius: 50px; color: var(--primary-color); font-family: var(--font-head); }
ul { list-style: none; }
ul li { padding: 8px; background: rgba(255,255,255,0.03); margin-bottom: 5px; border-radius: 5px; display: flex; justify-content: space-between; font-size: 0.85rem; }
.badge { padding: 2px 6px; border-radius: 3px; font-size: 0.7rem; font-weight: bold; }
.badge-boost { background: var(--primary-color); color: #000; }
.badge-stun { background: var(--neon-red); color: #fff; }
.badge-slow { background: var(--neon-purple); color: #fff; }

@media (max-width: 1100px) {
    .game-layout { flex-direction: column; height: auto; }
    .sidebar { width: 100%; }
    .canvas-container { aspect-ratio: 1/1; width: 100%; }
    .reboot-btn { right: 20px; bottom: 20px; padding: 10px 20px; font-size: 1rem; }
}
