@font-face {
    font-family: Cinzel;
    src: local("Cinzel"), local("Palatino");
    font-weight: 600;
    font-display: swap;
}
@font-face {
    font-family: Outfit;
    src: local("Outfit"), local("Segoe UI");
    font-weight: 400;
    font-display: swap;
}

:root {
    --bg: #07060a;
    --bg-raise: #141018;
    --ink: #f6efe4;
    --muted: #b7aa9a;
    --gold: #e8c98a;
    --gold-deep: #c4964e;
    --crimson: #d64545;
    --line: rgba(232, 201, 138, 0.24);
    --serif: Cinzel, Palatino, Georgia, serif;
    --sans: Outfit, "Segoe UI", system-ui, sans-serif;
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--sans);
    color: var(--ink);
    background:
        radial-gradient(ellipse 90% 42% at 50% -8%, rgba(196, 73, 54, 0.22), transparent 55%),
        linear-gradient(180deg, #16101a 0%, var(--bg) 32rem);
}
.wrap { width: min(1120px, calc(100% - 1.5rem)); margin-inline: auto; }
h1, h2 { font-family: var(--serif); letter-spacing: 0.02em; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
.muted { color: var(--muted); }
.lead { font-size: 1.15rem; color: var(--muted); }
.hint { font-size: 0.92rem; color: var(--muted); }

.geo-header {
    border-bottom: 1px solid var(--line);
    background: rgba(7, 6, 10, 0.85);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 10;
}
.geo-header__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 0;
}
.geo-brand { font-family: var(--serif); font-size: 1.1rem; color: var(--gold); font-weight: 600; }
.geo-nav { display: flex; flex-wrap: wrap; gap: 0.65rem 1rem; align-items: center; font-size: 0.95rem; }
.geo-main { padding: 1.5rem 0 3rem; }
.geo-footer { padding-bottom: 2rem; font-size: 0.9rem; color: var(--muted); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.1rem;
    border-radius: 4px;
    border: 1px solid var(--gold-deep);
    background: linear-gradient(180deg, #3a2a18, #1e140c);
    color: var(--ink);
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}
.btn--ghost { background: transparent; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.linkish { background: none; border: none; color: var(--gold); cursor: pointer; font: inherit; padding: 0; }

.geo-hero { text-align: center; margin-bottom: 2rem; }
.geo-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}
.geo-card, .geo-panel {
    background: var(--bg-raise);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1.25rem;
    box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}
.geo-panel label { display: block; margin-bottom: 0.75rem; }
.geo-panel input, .geo-panel select, .geo-panel textarea {
    width: 100%;
    margin-top: 0.25rem;
    padding: 0.5rem;
    border-radius: 4px;
    border: 1px solid var(--line);
    background: #0c0a10;
    color: var(--ink);
}

.geo-game__hud {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-family: var(--serif);
    color: var(--gold);
}
.geo-round { display: grid; gap: 1rem; }
@media (min-width: 800px) {
    .geo-round { grid-template-columns: 1.1fr 0.9fr; align-items: start; }
}
.geo-shot {
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow: hidden;
    background: #000;
    aspect-ratio: 16/10;
}
.geo-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }

.geo-minimap-wrap, .geo-admin-minimap {
    position: relative;
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow: hidden;
    touch-action: none;
    cursor: crosshair;
}
.geo-minimap-wrap img, .geo-admin-minimap img { width: 100%; display: block; user-select: none; }
.geo-pin {
    position: absolute;
    width: 14px;
    height: 14px;
    margin: -7px 0 0 -7px;
    border-radius: 50%;
    background: var(--crimson);
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.5);
    pointer-events: none;
}
.hidden { display: none !important; }

.geo-tabs { display: flex; gap: 0.5rem; margin: 1rem 0; flex-wrap: wrap; }
.geo-tabs a {
    padding: 0.4rem 0.75rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
}
.geo-tabs a.active { color: var(--ink); border-color: var(--gold); }

.geo-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.geo-table th, .geo-table td { padding: 0.5rem; border-bottom: 1px solid var(--line); text-align: left; }
.geo-leaderboard { list-style: none; padding: 0; margin: 1rem 0; }
.geo-leaderboard li { display: flex; justify-content: space-between; padding: 0.35rem 0; border-bottom: 1px solid var(--line); }
.geo-room-actions { display: grid; gap: 1rem; }
.geo-join { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: flex-end; }
.geo-inline-form { display: inline; margin: 0; }
