:root {
    --bg-color: #0d0d0d;
    --card-bg: #161616;
    --text-main: #ededed;
    --text-muted: #888888;
    --accent: #3b82f6; /* Biru tech */
    --border: #333333;
    --font-mono: 'Space Mono', monospace;
}

* { box-sizing: border-box; }
body {
    margin: 0; background-color: var(--bg-color); color: var(--text-main);
    font-family: var(--font-mono); line-height: 1.5; -webkit-font-smoothing: antialiased;
}
a { color: var(--text-main); text-decoration: none; border-bottom: 1px dotted var(--text-muted); }
a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.container { max-width: 1100px; margin: 0 auto; padding: 20px; }

/* HEADER */
header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 0; margin-bottom: 40px; border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand h1 { font-size: 1.3rem; margin: 0; font-weight: 700; letter-spacing: -1px; }
.beta-tag {
    font-size: 0.65rem; background: #222; padding: 3px 6px;
    border-radius: 4px; border: 1px solid var(--border); color: var(--accent);
}
nav { display: flex; gap: 20px; align-items: center; }
.connect-btn {
    background: var(--text-main); color: var(--bg-color); border: none;
    padding: 8px 16px; font-family: var(--font-mono); font-weight: bold;
    cursor: pointer; border-radius: 2px;
}
.connect-btn:hover { opacity: 0.9; background: var(--accent); color: white;}

/* HERO & STATS */
.hero { margin-bottom: 40px; }
.hero-text { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 25px; }
.stats-row {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
    padding: 20px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.stat-item { display: flex; flex-direction: column; }
.stat-value { font-size: 1.5rem; font-weight: bold; }
.stat-label { font-size: 0.85rem; color: var(--text-muted); margin-top: 5px; text-transform: uppercase; letter-spacing: 1px;}

/* MAIN LAYOUT */
.main-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; }
@media (max-width: 768px) { .main-grid, .stats-row { grid-template-columns: 1fr; } }

/* GAME SECTION */
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.section-header h2 { font-size: 1rem; margin: 0; font-weight: normal; color: var(--text-muted); }
.status-indicator { font-size: 0.8rem; color: #4ade80; }
.game-frame {
    position: relative; border: 1px solid var(--border); background: #000;
    aspect-ratio: 16/9; overflow: hidden;
}
canvas { width: 100%; height: 100%; display: block; }
#ui-layer {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none;
}
#score-board {
    position: absolute; top: 15px; right: 20px; font-weight: bold;
    color: var(--accent); background: rgba(0,0,0,0.7); padding: 5px 10px; border: 1px solid var(--border);
}
#start-screen, #game-over-screen {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    display: flex; justify-content: center; align-items: center;
    background: rgba(0,0,0,0.75); pointer-events: auto; backdrop-filter: blur(3px);
}
.hidden { display: none !important; }
.pixel-box {
    background: var(--bg-color); border: 1px solid var(--text-main);
    padding: 30px; text-align: center; box-shadow: 6px 6px 0px rgba(59, 130, 246, 0.2);
}
.pixel-box h3 { margin-top: 0; }
.blink { animation: blink 1s infinite; margin-top: 20px; font-weight: bold; cursor: pointer; color: var(--accent);}
@keyframes blink { 50% { opacity: 0; } }
.retro-btn {
    margin-top: 15px; background: var(--text-main); color: var(--bg-color);
    border: none; padding: 10px 20px; font-family: var(--font-mono);
    cursor: pointer; font-weight: bold;
}
.retro-btn:hover { background: var(--accent); color: white; box-shadow: 3px 3px 0px var(--text-main);}
.game-footer {
    margin-top: 10px; display: flex; justify-content: space-between;
    font-size: 0.75rem; color: var(--text-muted);
}

/* SIDEBAR */
.activity-list { display: flex; flex-direction: column; gap: 15px; }
.activity-item { padding: 15px; border: 1px solid var(--border); background: var(--card-bg); }
.act-header { display: flex; justify-content: space-between; margin-bottom: 5px; font-size: 0.8rem; }
.user { color: var(--accent); }
.time { color: var(--text-muted); }
.act-detail { font-size: 0.9rem; }
.bounty-box { margin-top: 30px; border: 1px dashed var(--border); padding: 20px; }
.bounty-box h3 { margin-top: 0; font-size: 1rem; }
.reward { 
    display: inline-block; margin-top: 10px; background: rgba(59, 130, 246, 0.1); 
    color: var(--accent); padding: 5px 10px; font-size: 0.8rem; border: 1px solid var(--accent);
}
/* FOOTER */
footer {
    margin-top: 60px; padding-top: 20px; border-top: 1px solid var(--border);
    color: var(--text-muted); font-size: 0.9rem; text-align: center;
}