:root { --bg: #0d0d0b; --accent: #b87333; --panel: #1a1a17; --text: #dcd7c9; --border: #4a4538; }
body { background: var(--bg); color: var(--text); font-family: sans-serif; margin: 0; padding-bottom: 20px; }
#clock-container { display: flex; border-bottom: 2px solid var(--accent); }
.tap-zone { flex: 1; padding: 15px; display: flex; flex-direction: column; align-items: center; background: var(--panel); cursor: pointer; transition: border 0.3s, box-shadow 0.3s; border: 3px solid transparent; }
.tap-zone.active { border: 3px solid var(--accent); box-shadow: 0 0 20px rgba(184, 115, 51, 0.6); }
.timer-display { font-family: monospace; font-size: 2rem; font-weight: bold; }
.score-group { display: flex; justify-content: space-between; background: #000; padding: 5px 10px; font-size: 0.8rem; width: 120px; margin-top:5px; }
.round-hub { width: 100px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #000; border: 1px solid var(--border); }
button { background: #2a2a25; border: 1px solid var(--border); color: var(--text); padding: 8px; cursor: pointer; font-weight: bold; margin: 2px; }
.active-missions-bar { display: flex; padding: 10px; gap: 20px; }
.mission-col { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.section-title { text-align: center; color: var(--accent); cursor: pointer; padding: 10px; background: #111; margin: 10px 0; }
.log-container { background: #111; padding: 10px; height: 150px; overflow-y: auto; margin: 0 15px; border: 1px solid var(--border); font-size: 0.8rem; }
.hidden { display: none !important; }
#matrix-table th, #matrix-table td { border: 1px solid var(--border); padding: 8px; text-align: center; }
.modal { position: fixed; top:0; left:0; width:100%; height:100%; background: #000; display: none; justify-content:center; align-items:center; z-index: 9999; }
.modal.open { display: flex; }
.modal-content { width: 100vw; height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; box-sizing: border-box; }
#modal-img { max-width: 100%; max-height: 70vh; object-fit: contain; }
.modal-btns { margin-top: 20px; display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; padding: 15px; max-width: 800px; margin: 0 auto; }
.mission-btn { aspect-ratio: 1/1; background: #252522; border: 1px solid var(--border); font-size: 0.6rem; cursor: pointer; }