:root {
    --bg: #080b10;
    --surface: #111827;
    --surface-light: #1f2937;
    --text: #e8ecf4;
    --text-muted: #cbd5e1;
    --primary: #7c6bff;
    --primary-dark: #5b4ad4;
    --secondary: #e8a838;
    --error: #f87171;
    --success: #34d399;
    --border: rgba(255, 255, 255, 0.08);
    --radius: 14px;
    --font-body: "DM Sans", system-ui, sans-serif;
    --font-heading: "Sora", system-ui, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

a {
    color: #9d8cff;
}

.container {
    width: min(1080px, calc(100% - 2rem));
    margin: 0 auto;
}

.site-header {
    border-bottom: 1px solid var(--border);
    background: #0f1419;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
}

.brand {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    font-size: 1.125rem;
}

.nav a {
    margin-left: 1rem;
    text-decoration: none;
    color: var(--text-muted);
}

.nav a:hover {
    color: var(--text);
}

.main {
    padding: 2rem 0 4rem;
}

.site-footer {
    border-top: 1px solid var(--border);
    padding: 1.5rem 0 2rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin: 0 0 0.75rem;
}

.hero.compact {
    margin-bottom: 1.5rem;
}

.lead {
    color: var(--text-muted);
    max-width: 62ch;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    color: var(--secondary);
    margin: 0 0 0.5rem;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.game-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.game-card h2 {
    font-family: var(--font-heading);
    margin-top: 0;
}

.shop-layout {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1.4fr 1fr;
}

@media (max-width: 860px) {
    .shop-layout {
        grid-template-columns: 1fr;
    }
}

.field-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.field-input {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface-light);
    color: var(--text);
    font-size: 1.125rem;
    margin-bottom: 1.25rem;
}

.quote-panel {
    background: rgba(124, 107, 255, 0.08);
    border: 1px solid rgba(124, 107, 255, 0.25);
    border-radius: 12px;
    padding: 1rem 1.125rem;
    margin-bottom: 1rem;
}

.quote-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.35rem 0;
}

.quote-row.highlight strong {
    color: var(--secondary);
}

.quote-row.subtle {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.quote-meta,
.fine-print {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.checkout-panel {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.wallet-panel {
    margin: 1rem 0;
    padding: 1rem;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
}

.wallet-row {
    display: grid;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
}

.wallet-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.checkout-status {
    min-height: 1.25rem;
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.checkout-status-success {
    color: var(--success);
}

.checkout-status-error {
    color: var(--error);
}

.checkout-status-info {
    color: var(--text-muted);
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    color: var(--text);
}

.btn[hidden] {
    display: none !important;
}

.checkout-placeholder {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.check-list {
    padding-left: 1.1rem;
    color: var(--text-muted);
}

.check-list li + li {
    margin-top: 0.75rem;
}

.meta-list {
    margin: 1.5rem 0 0;
}

.meta-list div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.35rem 0;
    border-top: 1px solid var(--border);
}

.meta-list dt {
    color: var(--text-muted);
}

.meta-list dd {
    margin: 0;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    border: none;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: var(--surface-light);
    color: var(--text-muted);
}

.alert {
    padding: 0.875rem 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.alert-error {
    background: rgba(248, 113, 113, 0.12);
    border: 1px solid rgba(248, 113, 113, 0.35);
    color: #fecaca;
}

.mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.8125rem;
    word-break: break-all;
}
