:root { color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: #0a0a0a;
    color: #e8e4d8;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* Layout helpers */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 720px; margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }
.mb-1 { margin-bottom: 0.5rem; } .mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2rem; }
.mt-2 { margin-top: 1rem; } .mt-4 { margin-top: 2rem; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }
.w-full { width: 100%; }
.hidden { display: none; }

/* Grid */
.grid { display: grid; gap: 10px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr 1fr; }
@media (min-width: 640px) {
    .grid-2 { grid-template-columns: 1fr 1fr; }
    .grid-3 { grid-template-columns: 1fr 1fr 1fr; }
    .grid-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }
}
@media (min-width: 900px) {
    .grid-countries { grid-template-columns: repeat(4, 1fr); }
}

/* Text */
h1, h2, h3 { font-weight: 500; letter-spacing: -0.3px; color: #f5efdc; margin: 0 0 12px; }
h1 { font-size: 32px; } h2 { font-size: 22px; } h3 { font-size: 15px; }
p { margin: 0 0 12px; color: #a8a394; line-height: 1.6; }
.text-xs { font-size: 11px; } .text-sm { font-size: 13px; } .text-base { font-size: 14px; }
.text-lg { font-size: 16px; } .text-xl { font-size: 18px; } .text-2xl { font-size: 22px; }
.text-3xl { font-size: 28px; } .text-4xl { font-size: 36px; } .text-5xl { font-size: 44px; }
.text-gold { color: #c9a961; }
.text-ink-50 { color: #f5efdc; } .text-ink-100 { color: #e8e4d8; }
.text-ink-200 { color: #a8a394; } .text-ink-300 { color: #8a8578; }
.text-ink-400 { color: #6a6558; }
.tracking { letter-spacing: 1px; } .tracking-wide { letter-spacing: 2px; }
.tracking-xwide { letter-spacing: 3px; }
.uppercase { text-transform: uppercase; }
.font-medium { font-weight: 500; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 11px 22px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.8px;
    border: none;
    cursor: pointer;
    transition: all 0.15s;
    text-align: center;
    font-family: inherit;
}
.btn-gold { background: #c9a961; color: #0a0a0a; }
.btn-gold:hover { background: #d9ba75; }
.btn-outline { background: transparent; border: 0.5px solid #3a3228; color: #e8e4d8; }
.btn-outline:hover { border-color: #c9a961; color: #f5efdc; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-sm { padding: 7px 14px; font-size: 12px; }

/* Forms */
input, select, textarea {
    width: 100%;
    background: #111;
    border: 0.5px solid #2a241c;
    color: #f5efdc;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-family: inherit;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: #c9a961; }
label { display: block; font-size: 11px; letter-spacing: 1px; color: #8a8578; margin-bottom: 6px; }

/* Cards */
.card {
    background: #111;
    border: 0.5px solid #2a241c;
    border-radius: 10px;
    padding: 16px;
}
.card-gold {
    background: rgba(201, 169, 97, 0.06);
    border: 0.5px solid rgba(201, 169, 97, 0.3);
    border-radius: 10px;
    padding: 14px;
}

/* Nav */
nav.top {
    position: sticky; top: 0; z-index: 50;
    border-bottom: 0.5px solid #1f1a13;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(12px);
    padding: 14px 0;
}
nav.top .nav-inner {
    max-width: 1100px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
}
nav.top a { font-size: 12px; color: #a8a394; margin-left: 20px; }
nav.top a:hover { color: #c9a961; }
nav.top .logo { display: flex; align-items: center; gap: 10px; margin: 0; }
nav.top .logo-dot { width: 20px; height: 20px; border-radius: 50%; background: #c9a961; }
nav.top .logo-text { color: #f5efdc; letter-spacing: 0.5px; font-weight: 500; font-size: 14px; }

/* Footer */
footer {
    border-top: 0.5px solid #1f1a13;
    padding: 32px 24px;
    text-align: center;
}
footer .ft-logo { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 12px; }
footer .ft-logo-dot { width: 16px; height: 16px; border-radius: 50%; background: #c9a961; }

/* Hero */
.hero {
    padding: 80px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse at top, #1a1510 0%, #0a0a0a 65%);
}
.hero-tagline {
    display: inline-block; font-size: 10px; letter-spacing: 3px; color: #c9a961;
    border: 0.5px solid #c9a961; padding: 6px 14px; border-radius: 20px; margin-bottom: 24px;
}
.hero h1 { font-size: 44px; line-height: 1.1; margin-bottom: 16px; }
.hero p { max-width: 540px; margin: 0 auto 28px; color: #a8a394; }

.stat-card {
    padding: 14px 10px;
    background: rgba(201, 169, 97, 0.06);
    border: 0.5px solid rgba(201, 169, 97, 0.2);
    border-radius: 8px;
    text-align: center;
}
.stat-value { font-size: 22px; font-weight: 500; color: #c9a961; }
.stat-label { font-size: 10px; letter-spacing: 1px; color: #a8a394; }

/* Section */
section { padding: 64px 0; border-top: 0.5px solid #1f1a13; }
section.alt { background: #050505; }
.section-tagline { font-size: 10px; letter-spacing: 3px; color: #c9a961; margin-bottom: 8px; }

/* Pills */
.pill {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 10px;
    letter-spacing: 1px;
}
.pill-gold { background: rgba(201, 169, 97, 0.15); color: #c9a961; }
.pill-muted { background: #1f1a13; color: #a8a394; }

/* Country card */
.country-card {
    display: block;
    padding: 16px;
    background: #111;
    border: 0.5px solid #2a241c;
    border-radius: 10px;
    transition: all 0.15s;
}
.country-card:hover { border-color: #c9a961; background: #1a1510; }
.progress-bar { height: 3px; background: #1f1a13; border-radius: 2px; overflow: hidden; margin-top: 8px; }
.progress-bar > div { height: 100%; background: #c9a961; }

/* Board (the pixel grid) */
.board-wrap {
    position: relative;
    aspect-ratio: 1.45 / 1;
    background: #050505;
    border: 0.5px solid #2a241c;
    border-radius: 10px;
    overflow: hidden;
}
.board-grid-overlay {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(to right, rgba(201,169,97,0.08) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(201,169,97,0.08) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.4;
}
.board-tile {
    position: absolute;
    border-radius: 2px;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-weight: 500;
    letter-spacing: 0.3px;
}
.board-tile:hover {
    transform: scale(1.15);
    z-index: 10;
    box-shadow: 0 0 0 1.5px #c9a961, 0 0 20px rgba(201, 169, 97, 0.5);
}
.board-tile.founder::after {
    content: '';
    position: absolute; top: 1px; right: 1px;
    width: 5px; height: 5px; background: #c9a961; border-radius: 50%;
}
.board-tile.dimmed { opacity: 0.15; }

.board-cta {
    position: absolute; bottom: 14px; right: 14px;
    background: rgba(10,10,10,0.85);
    border: 0.5px solid #c9a961; border-radius: 8px;
    padding: 10px 14px; backdrop-filter: blur(8px);
    transition: all 0.15s;
}
.board-cta:hover { background: rgba(201, 169, 97, 0.15); }

/* Claim flow */
.step-pills { display: flex; gap: 8px; align-items: center; margin-bottom: 20px; flex-wrap: wrap; }
.step-pill {
    display: flex; align-items: center; gap: 6px;
    padding: 5px 12px; border-radius: 20px;
    background: #111; border: 0.5px solid #2a241c;
    font-size: 12px; color: #8a8578;
}
.step-pill.active { background: rgba(201, 169, 97, 0.12); border-color: #c9a961; color: #c9a961; }
.step-pill.done { background: rgba(201, 169, 97, 0.06); border-color: #6b5a3d; color: #8a7a5a; }
.step-num {
    width: 18px; height: 18px; border-radius: 50%;
    background: #2a241c; color: #8a8578;
    display: flex; align-items: center; justify-content: center;
    font-size: 10px; font-weight: 500;
}
.step-pill.active .step-num { background: #c9a961; color: #0a0a0a; }
.step-pill.done .step-num { background: #6b5a3d; color: #0a0a0a; }
.step-line { flex: 1; height: 0.5px; background: #2a241c; min-width: 10px; }

.tier-card {
    padding: 14px;
    background: #111;
    border: 0.5px solid #2a241c;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.15s;
}
.tier-card:hover { border-color: #6b5a3d; }
.tier-card.active { border-color: #c9a961; background: #1a1510; }
.tier-card-label { font-size: 10px; letter-spacing: 1px; color: #8a8578; }
.tier-card-label.active { color: #c9a961; }

.pixel-selector {
    position: relative;
    aspect-ratio: 1.45 / 1;
    background: #050505;
    border: 0.5px solid #2a241c;
    border-radius: 10px;
    overflow: hidden;
    cursor: crosshair;
}
.pixel-occupied {
    position: absolute;
    background: rgba(201, 169, 97, 0.7);
    border-radius: 1px;
}
.pixel-selection {
    position: absolute;
    background: rgba(201, 169, 97, 0.35);
    border: 1px solid #c9a961;
    border-radius: 2px;
    transition: all 0.15s;
    pointer-events: none;
}

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 13px;
}
.alert-error { background: rgba(239, 68, 68, 0.1); border: 0.5px solid rgba(239, 68, 68, 0.3); color: #f87171; }
.alert-success { background: rgba(201, 169, 97, 0.1); border: 0.5px solid rgba(201, 169, 97, 0.3); color: #c9a961; }
.alert-info { background: rgba(59, 130, 246, 0.08); border: 0.5px solid rgba(59, 130, 246, 0.25); color: #93c5fd; }

/* Tier pricing page */
.pricing-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .pricing-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .pricing-grid { grid-template-columns: repeat(4, 1fr); } }
.pricing-tier {
    position: relative;
    background: #111;
    border: 0.5px solid #2a241c;
    border-radius: 10px;
    padding: 20px;
}
.pricing-tier.popular { border: 1.5px solid #c9a961; }
.pricing-badge {
    position: absolute; top: -10px; left: 16px;
    background: #c9a961; color: #0a0a0a;
    font-size: 9px; padding: 3px 8px; border-radius: 3px;
    letter-spacing: 1px; font-weight: 500;
}
.pricing-tier ul { list-style: none; padding: 0; margin: 0; font-size: 11px; color: #a8a394; }
.pricing-tier li { padding: 2px 0; }

/* FAQ */
details.faq {
    background: #111;
    border: 0.5px solid #2a241c;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 8px;
    cursor: pointer;
}
details.faq:hover { border-color: #6b5a3d; }
details.faq summary {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #f5efdc;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: '+'; color: #c9a961; }
details.faq[open] summary::after { content: '−'; }
details.faq > p { margin-top: 10px; padding-top: 10px; border-top: 0.5px solid #2a241c; font-size: 12px; line-height: 1.7; }

/* Filter pills */
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 12px; }
.filter-pill {
    padding: 5px 11px;
    border-radius: 18px;
    font-size: 11px;
    border: 0.5px solid #2a241c;
    background: #111;
    color: #a8a394;
    cursor: pointer;
    font-family: inherit;
}
.filter-pill:hover { border-color: #c9a961; color: #c9a961; }
.filter-pill.active { background: rgba(201, 169, 97, 0.12); border-color: #c9a961; color: #c9a961; }
select.filter-pill { appearance: none; padding-right: 24px; background-image: linear-gradient(45deg, transparent 50%, #a8a394 50%), linear-gradient(135deg, #a8a394 50%, transparent 50%); background-position: calc(100% - 12px) 50%, calc(100% - 8px) 50%; background-size: 4px 4px; background-repeat: no-repeat; }

.hover-info {
    margin-top: 10px;
    padding: 10px 14px;
    background: #111;
    border: 0.5px solid #2a241c;
    border-radius: 8px;
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
}

/* Founders leaderboard */
.founder-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(201, 169, 97, 0.05);
    border: 0.5px solid rgba(201, 169, 97, 0.25);
    border-radius: 8px;
    transition: background 0.15s;
}
.founder-row:hover { background: rgba(201, 169, 97, 0.12); }
.founder-row.rank-1 { background: rgba(201, 169, 97, 0.1); border-color: rgba(201, 169, 97, 0.35); }
.founder-row.empty { background: #111; border: 0.5px dashed #6b5a3d; }
.founder-num {
    width: 24px; height: 24px; border-radius: 50%;
    background: #c9a961; color: #0a0a0a;
    display: flex; align-items: center; justify-content: center;
    font-weight: 500; font-size: 12px; flex-shrink: 0;
}
.founder-row.empty .founder-num { background: #2a241c; color: #c9a961; }

/* Auth forms */
.auth-form {
    max-width: 420px;
    margin: 40px auto;
    padding: 32px;
    background: #111;
    border: 0.5px solid #2a241c;
    border-radius: 10px;
}
.auth-form input { margin-bottom: 12px; }
.auth-form button { width: 100%; margin-top: 8px; }

/* Utility */
.divider { height: 0.5px; background: #2a241c; margin: 16px 0; }
.divider-flex { flex: 1; height: 0.5px; background: #2a241c; }
