:root {
    color-scheme: dark;
    --background: #070707;
    --panel: rgba(17, 17, 18, 0.88);
    --panel-solid: #111112;
    --panel-light: rgba(255, 255, 255, 0.045);
    --border: rgba(255, 255, 255, 0.09);
    --border-bright: rgba(247, 147, 26, 0.34);
    --text: #f7f7f7;
    --muted: #949494;
    --muted-light: #c3c3c3;
    --bitcoin: #f7931a;
    --bitcoin-soft: rgba(247, 147, 26, 0.12);
    --success: #68e5a7;
    --error: #ff6b6b;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--background);
}

body {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    color: var(--text);
    background:
        radial-gradient(circle at 15% 10%, rgba(247, 147, 26, 0.10), transparent 28%),
        radial-gradient(circle at 85% 18%, rgba(247, 147, 26, 0.05), transparent 25%),
        var(--background);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
a {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
}

[hidden] {
    display: none !important;
}

.grid-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.22;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: linear-gradient(to bottom, black, transparent 86%);
}

.ambient {
    position: fixed;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    filter: blur(110px);
    pointer-events: none;
}

.ambient-one {
    top: -180px;
    left: -140px;
    background: rgba(247, 147, 26, 0.12);
}

.ambient-two {
    right: -180px;
    bottom: -200px;
    background: rgba(247, 147, 26, 0.07);
}

.site-shell {
    position: relative;
    z-index: 1;
    width: min(1480px, calc(100% - 40px));
    min-height: 100vh;
    margin: 0 auto;
}

.centre-view {
    min-height: 100vh;
    display: grid;
    place-items: center;
    align-content: center;
    padding: 30px 0;
}

.loading-text {
    margin: 18px 0 0;
    color: var(--muted);
}

.login-panel {
    width: min(100%, 560px);
    padding: 46px;
    text-align: center;
    border: 1px solid var(--border);
    border-radius: 26px;
    background: rgba(14, 14, 15, 0.94);
    box-shadow: var(--shadow);
    backdrop-filter: blur(22px);
}

.bitcoin-mark,
.brand-icon {
    display: grid;
    place-items: center;
    color: #111;
    background: var(--bitcoin);
    border-radius: 50%;
    font-weight: 900;
    box-shadow: 0 0 45px rgba(247, 147, 26, 0.26);
}

.bitcoin-mark {
    width: 74px;
    height: 74px;
    margin: 0 auto 22px;
    font-size: 44px;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--bitcoin);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.18em;
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 0;
    font-size: clamp(38px, 6vw, 62px);
    line-height: 0.98;
    letter-spacing: -0.045em;
}

h2 {
    margin-bottom: 0;
    font-size: 24px;
    letter-spacing: -0.025em;
}

.intro,
.hero-copy {
    color: var(--muted);
    line-height: 1.65;
}

.intro {
    max-width: 430px;
    margin: 20px auto 0;
}

.login-form {
    margin-top: 30px;
    text-align: left;
}

.field {
    display: block;
    margin-bottom: 17px;
}

.field span {
    display: block;
    margin-bottom: 8px;
    color: var(--muted-light);
    font-size: 13px;
    font-weight: 750;
}

.field input {
    width: 100%;
    padding: 15px 16px;
    color: var(--text);
    background: var(--panel-light);
    border: 1px solid var(--border);
    border-radius: 12px;
    outline: none;
    transition: 150ms ease;
}

.field input:focus {
    border-color: var(--bitcoin);
    box-shadow: 0 0 0 4px rgba(247, 147, 26, 0.12);
}

.button {
    border: 0;
    border-radius: 11px;
    font-weight: 850;
    transition: 150ms ease;
}

.button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.button-primary {
    width: 100%;
    padding: 15px 18px;
    color: #111;
    background: var(--bitcoin);
}

.button-primary:hover {
    background: #ffa531;
}

.button-text {
    display: block;
    margin: 14px auto 0;
    padding: 6px;
    color: var(--muted);
    background: transparent;
}

.button-text:hover {
    color: var(--bitcoin);
}

.button-outline {
    padding: 11px 16px;
    color: var(--muted-light);
    background: rgba(255,255,255,0.035);
    border: 1px solid var(--border);
}

.button-outline:hover {
    color: var(--text);
    border-color: rgba(255,255,255,0.22);
}

.status-message {
    margin-bottom: 17px;
    padding: 12px 14px;
    text-align: center;
    color: var(--muted-light);
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 13px;
}

.status-message.error {
    color: var(--error);
    border-color: rgba(255, 107, 107, 0.30);
}

.status-message.success {
    color: var(--success);
    border-color: rgba(104, 229, 167, 0.30);
}

.secure-line {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 9px;
    margin-top: 26px;
    color: var(--muted);
    font-size: 13px;
}

.online-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 13px rgba(104, 229, 167, 0.72);
}

.dashboard {
    padding: 20px 0 34px;
}

.topbar {
    min-height: 70px;
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 12px 18px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(12, 12, 13, 0.80);
    backdrop-filter: blur(18px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.22);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-icon {
    width: 42px;
    height: 42px;
    font-size: 25px;
}

.brand strong,
.brand small {
    display: block;
}

.brand strong {
    font-size: 13px;
    letter-spacing: 0.08em;
}

.brand small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 0.18em;
}

.top-links {
    display: flex;
    gap: 22px;
    margin-left: auto;
}

.top-links a {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.top-links a:hover {
    color: var(--bitcoin);
}

.hero-card {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 30px;
    margin-top: 18px;
    padding: 48px;
    overflow: hidden;
    border: 1px solid var(--border-bright);
    border-radius: 24px;
    background:
        linear-gradient(120deg, rgba(247, 147, 26, 0.15), rgba(247, 147, 26, 0.025) 52%, rgba(255,255,255,0.025)),
        var(--panel-solid);
    box-shadow: var(--shadow);
}

.hero-card h1 {
    max-width: 900px;
}

.hero-card h1 span {
    color: var(--bitcoin);
}

.hero-copy {
    max-width: 680px;
    margin: 18px 0 0;
}

.player-identity {
    min-width: 270px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: rgba(0,0,0,0.22);
    border: 1px solid var(--border);
    border-radius: 16px;
}

.player-avatar {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: #111;
    background: var(--bitcoin);
    border-radius: 14px;
    font-size: 22px;
    font-weight: 950;
}

.identity-label,
.player-identity strong {
    display: block;
}

.identity-label {
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.player-identity strong {
    max-width: 190px;
    overflow: hidden;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-status {
    margin: 16px 0 0;
}

.quick-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.stat-card {
    min-height: 128px;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--panel);
    box-shadow: 0 14px 36px rgba(0,0,0,0.18);
}

.featured-stat {
    border-color: var(--border-bright);
    background: linear-gradient(145deg, rgba(247,147,26,0.14), rgba(17,17,18,0.9));
}

.stat-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: var(--bitcoin);
    background: var(--bitcoin-soft);
    border: 1px solid rgba(247,147,26,0.22);
    border-radius: 14px;
    font-size: 14px;
    font-weight: 950;
}

.stat-label,
.stat-card strong,
.stat-card small {
    display: block;
}

.stat-label {
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 12px;
}

.stat-card strong {
    font-size: 29px;
    line-height: 1;
}

.stat-card small {
    margin-top: 7px;
    color: #737373;
    font-size: 11px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.panel {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--panel);
    box-shadow: 0 16px 42px rgba(0,0,0,0.19);
}

.performance-panel {
    grid-column: span 8;
}

.currencies-panel {
    grid-column: span 4;
}

.activity-panel,
.collection-panel {
    grid-column: span 6;
}

.milestone-panel {
    grid-column: span 12;
}

.panel-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 22px;
}

.panel-heading a {
    color: var(--bitcoin);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.panel-chip {
    padding: 7px 9px;
    color: var(--muted);
    background: rgba(255,255,255,0.035);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.record-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.record-item,
.activity-grid > div,
.collection-details > div {
    padding: 15px;
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.055);
    border-radius: 12px;
}

.record-item span,
.record-item strong,
.activity-grid span,
.activity-grid strong,
.collection-details span,
.collection-details strong {
    display: block;
}

.record-item span,
.activity-grid span,
.collection-details span {
    color: var(--muted);
    font-size: 11px;
}

.record-item strong,
.activity-grid strong,
.collection-details strong {
    margin-top: 7px;
    font-size: 21px;
}

.progress-block {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.progress-copy {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 12px;
}

.progress-copy strong {
    color: var(--text);
}

.progress-track {
    height: 8px;
    overflow: hidden;
    background: rgba(255,255,255,0.05);
    border-radius: 999px;
}

.progress-track span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--bitcoin), #ffc36f);
    border-radius: inherit;
    transition: width 400ms ease;
}

.currency-list {
    display: grid;
    gap: 11px;
}

.currency-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.055);
    border-radius: 13px;
}

.currency-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 13px;
    font-size: 12px;
    font-weight: 950;
}

.currency-icon.sparks {
    color: #ffbd67;
    background: rgba(255, 170, 70, 0.11);
}

.currency-icon.shards {
    color: #82d6ff;
    background: rgba(80, 175, 255, 0.11);
}

.currency-icon.sats {
    color: var(--bitcoin);
    background: var(--bitcoin-soft);
    font-size: 22px;
}

.currency-row span,
.currency-row strong {
    display: block;
}

.currency-row div > span {
    color: var(--muted);
    font-size: 11px;
}

.currency-row strong {
    margin-top: 4px;
    font-size: 24px;
}

.activity-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.collection-summary {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 20px;
    align-items: center;
}

.collection-ring {
    width: 142px;
    height: 142px;
    display: grid;
    place-items: center;
    align-content: center;
    border: 10px solid rgba(247,147,26,0.14);
    border-top-color: var(--bitcoin);
    border-radius: 50%;
}

.collection-ring strong,
.collection-ring span {
    display: block;
}

.collection-ring strong {
    font-size: 31px;
}

.collection-ring span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
}

.collection-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.milestone-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.milestone {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 17px;
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.055);
    border-radius: 13px;
}

.milestone-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: var(--bitcoin);
    background: var(--bitcoin-soft);
    border-radius: 11px;
    font-size: 11px;
    font-weight: 900;
}

.milestone div span,
.milestone div strong {
    display: block;
}

.milestone div span {
    color: var(--muted);
    font-size: 11px;
}

.milestone div strong {
    margin-top: 5px;
    font-size: 20px;
}

.footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 4px 0;
    color: #666;
    font-size: 11px;
}

@media (max-width: 1100px) {
    .quick-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .performance-panel,
    .currencies-panel,
    .activity-panel,
    .collection-panel {
        grid-column: span 12;
    }

    .milestone-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .site-shell {
        width: min(100% - 22px, 1480px);
    }

    .topbar {
        flex-wrap: wrap;
    }

    .top-links {
        width: 100%;
        order: 3;
        justify-content: center;
        padding-top: 10px;
        border-top: 1px solid var(--border);
    }

    .topbar .button-outline {
        margin-left: auto;
    }

    .hero-card {
        display: block;
        padding: 30px 24px;
    }

    .player-identity {
        width: 100%;
        margin-top: 26px;
    }

    .record-grid,
    .activity-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .collection-summary {
        grid-template-columns: 1fr;
    }

    .collection-ring {
        margin: 0 auto;
    }
}

@media (max-width: 520px) {
    .login-panel {
        padding: 34px 20px;
    }

    .quick-stats,
    .record-grid,
    .activity-grid,
    .collection-details,
    .milestone-list {
        grid-template-columns: 1fr;
    }

    .top-links {
        gap: 13px;
        font-size: 11px;
    }

    .brand strong {
        font-size: 11px;
    }

    .hero-card h1 {
        font-size: 42px;
    }

    .panel {
        padding: 20px;
    }

    .footer {
        display: block;
    }

    .footer span {
        display: block;
        margin-top: 5px;
    }
}
