@import url("https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Inter:wght@400;600;700&display=swap");

:root {
    --grass: #5b8a2c;
    --grass-dark: #446b1f;
    --dirt: #7a5230;
    --stone: #6b6b5f;
    --stone-dark: #46463d;
    --sky: #8fd0ea;
    --ink: #1c1c19;
    --panel: #f4efe1;
    --gold: #f2b632;
    --red: #c1432f;
    --amber: #d98c2b;
    font-family: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--ink);
    color: var(--panel);
    min-height: 100vh;
}

#placeholderNote {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 11px;
    padding: 6px 10px;
    border: 2px solid var(--ink);
}

#statusPill {
    position: absolute;
    top: 12px;
    right: 12px;
    font-family: "Press Start 2P", monospace;
    font-size: 10px;
    padding: 8px 12px;
    border: 3px solid var(--ink);
    background: var(--grass);
    color: #fff;
    z-index: 10;
}

#statusPill.closed { background: var(--red); }
#statusPill.extended { background: var(--gold); color: var(--ink); }
#statusPill.closing-soon { background: var(--amber); color: var(--ink); }
#statusPill.private-event { background: var(--sky); color: var(--ink); }

.map-wrap-tight {
    padding: 12px;
}

.map-canvas {
    max-width: 1400px;
    margin: 0 auto;
}

.channel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    margin: 20px;
}

.channel-card {
    background: var(--panel);
    padding: 18px;
    border: 4px solid var(--stone-dark);
    border-radius: 0;
    cursor: pointer;
    transition: all 0.2s;
}

.channel-card:hover { background: #e3f0d8; transform: translate(2px, 2px); box-shadow: 3px 3px 0 rgba(0,0,0,0.3); }

.channel-card h3 {
    margin: 0 0 8px;
    font-size: 14px;
    font-family: "Press Start 2P", monospace;
    color: var(--ink);
}

.dispatch-btn {
    background: var(--red);
    color: white;
    padding: 12px 25px;
    font-size: 16px;
    font-weight: 700;
    border: 4px solid var(--stone-dark);
    cursor: pointer;
    margin: 20px;
    box-shadow: 3px 3px 0 rgba(0,0,0,0.3);
}

.dispatch-btn:hover { filter: brightness(1.1); }
.dispatch-btn:active { transform: translate(2px, 2px); box-shadow: none; }

#adminPanel {
    position: absolute;
    top: 80px;
    right: 20px;
    background: var(--panel);
    border: 4px solid var(--stone-dark);
    padding: 18px;
    max-width: 320px;
    display: none;
}

#adminPanel h2 {
    font-size: 12px;
    font-family: "Press Start 2P", monospace;
    margin: 0 0 12px;
}

.field-row {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

input, button {
    font-family: inherit;
    font-size: 14px;
    padding: 8px 10px;
    border: 3px solid var(--ink);
}

button {
    background: var(--grass);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 3px 3px 0 rgba(0,0,0,0.3);
}

button:hover { filter: brightness(1.08); }
button:active { transform: translate(2px, 2px); box-shadow: none; }

#player {
    max-width: 100%;
    margin: 20px auto;
    display: block;
    border: 4px solid var(--stone-dark);
}
