:root {
    --bg: #07060c;
    --panel: #111019;
    --panel2: #181520;
    --text: #f6f3fb;
    --muted: #aaa4b9;
    --purple: #be8aff;
    --cyan: #86e1ff;
    --pink: #ff4ff3;
    --border: #2d2836
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: radial-gradient(circle at 15% 10%, #28133d 0, transparent 35%), var(--bg);
    color: var(--text);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    min-height: 100vh
}

a {
    color: inherit
}

button,
input {
    font: inherit
}

.account-auth {
    display: grid;
    place-items: center;
    padding: 40px 20px
}

.auth-shell {
    width: min(980px, 100%);
    display: grid;
    grid-template-columns: 1fr 500px;
    gap: 70px;
    align-items: center
}

.account-logo img {
    width: 155px;
    max-height: 100px;
    object-fit: contain
}

.account-card {
    background: #111019e8;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 28px
}

.auth-card {
    grid-column: 2
}

.auth-shell>.account-logo {
    grid-column: 1;
    grid-row: 1
}

.kicker {
    color: var(--cyan);
    letter-spacing: 2px;
    font-size: 11px;
    font-weight: 800;
    margin: 0 0 10px
}

.muted {
    color: var(--muted)
}

h1 {
    font-size: clamp(34px, 5vw, 58px);
    margin: 0 0 10px;
    letter-spacing: -2px
}

h2 {
    margin: 0 0 8px;
    font-size: 23px
}

label {
    display: block;
    margin: 18px 0 8px;
    font-size: 12px;
    font-weight: 700;
    color: #d7d1df
}

input {
    width: 100%;
    margin-top: 7px;
    background: #090810;
    border: 1px solid #3a3344;
    border-radius: 9px;
    color: white;
    padding: 14px 15px;
    min-height: 49px
}

.account-button {
    width: 100%;
    display: flex;
    justify-content: space-between;
    background: linear-gradient(90deg, var(--purple), var(--pink));
    color: #120817;
    border: 0;
    border-radius: 9px;
    padding: 14px 16px;
    font-weight: 900;
    margin-top: 22px;
    cursor: pointer
}

.account-alert {
    margin: 16px 0;
    background: #351e28;
    border: 1px solid #985165;
    color: #ffd3df;
    padding: 11px 13px;
    border-radius: 8px
}

.account-alert.success {
    background: #132d2a;
    border-color: #2c746d;
    color: #bffaf4
}

.switch-auth {
    color: var(--muted);
    font-size: 13px;
    margin: 24px 0 0
}

.switch-auth a {
    color: var(--cyan)
}

.player-shell {
    width: min(1180px, calc(100% - 36px));
    margin: auto;
    padding: 28px 0 60px
}

.player-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    padding-bottom: 20px
}

.player-top nav {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px
}

.player-top nav a {
    text-decoration: none;
    color: var(--muted)
}

.player-top nav form {
    margin: 0
}

.player-top nav button {
    background: none;
    border: 0;
    color: var(--cyan);
    font-weight: 800;
    cursor: pointer
}

.profile-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    padding: 55px 0 28px
}

.profile-head>div:first-child span {
    color: var(--muted)
}

.time-bank {
    text-align: right;
    border-left: 1px solid var(--border);
    padding-left: 38px
}

.time-bank span,
.time-bank small {
    display: block;
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 1.5px
}

.time-bank strong {
    font-size: 42px;
    color: var(--cyan);
    display: block;
    line-height: 1.1;
    margin: 7px 0
}

.account-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px
}

.wide {
    grid-column: 1/-1
}

.wallet-row,
.session-list>div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
    padding: 15px 0
}

.wallet-row:first-of-type {
    margin-top: 18px
}

.wallet-row span {
    color: var(--muted)
}

.wallet-row b {
    font-size: 20px
}

.wallet-empty {
    border-top: 1px solid var(--border);
    padding-top: 16px;
    color: var(--muted)
}

.code-input {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 800;
    font-size: 18px
}

.session-list {
    margin-top: 17px
}

.session-list span b,
.session-list span small {
    display: block
}

.session-list span small {
    color: var(--muted);
    font-size: 10px;
    margin-top: 2px
}

.session-list strong {
    color: var(--cyan)
}

@media(max-width:760px) {
    .auth-shell {
        display: block
    }

    .auth-shell>.account-logo {
        display: block;
        margin-bottom: 30px
    }

    .auth-card {
        grid-column: auto
    }

    .player-top,
    .profile-head {
        align-items: flex-start;
        gap: 22px;
        flex-direction: column
    }

    .time-bank {
        text-align: left;
        border-left: 0;
        padding-left: 0
    }

    .account-grid {
        grid-template-columns: 1fr
    }

    .wide {
        grid-column: auto
    }

    .player-top nav {
        flex-wrap: wrap
    }
}

.player-top nav .staff-nav-link {
    color: var(--cyan);
    border: 1px solid #4a3b66;
    border-radius: 8px;
    padding: 10px 13px;
    background: #1c1429
}

.player-top nav .active {
    color: var(--text)
}

/* EIGHT BIT AUTH — add at the END of /account/assets/account.css
   Overrides auth screen only. The player dashboard styles stay intact. */
body.account-auth {
    display: block;
    min-height: 100vh;
    padding: 0;
    background: #08070c;
    background-image:
        linear-gradient(rgba(134,225,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(134,225,255,.025) 1px, transparent 1px),
        radial-gradient(ellipse at 50% 0%, rgba(120,58,160,.13), transparent 55%);
    background-size: 48px 48px, 48px 48px, auto;
}
.account-auth .auth-layout {
    width: min(1080px, calc(100% - 48px));
    min-height: 100vh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}
.account-auth .auth-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    min-height: 100px;
    border-bottom: 1px solid #292430;
}
.account-auth .auth-top-logo { display: inline-flex; align-items: center; }
.account-auth .auth-top-logo img { display: block; width: 122px; max-height: 75px; object-fit: contain; }
.account-auth .auth-back,
.account-auth .auth-footer {
    font-family: Oxanium, Inter, sans-serif;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 1px;
}
.account-auth .auth-back { color: #aaa4b9; text-decoration: none; transition: color .15s; }
.account-auth .auth-back:hover { color: #86e1ff; }
.account-auth .auth-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 55px 0 75px;
}
.account-auth .auth-terminal {
    width: min(100%, 460px);
    border: 1px solid #393040;
    border-radius: 4px;
    background: #111019;
    box-shadow: 0 22px 65px rgba(0,0,0,.35);
    overflow: hidden;
}
.account-auth .auth-terminal-bar {
    min-height: 42px;
    border-bottom: 1px solid #302a38;
    background: #18151f;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 0 23px;
}
.account-auth .auth-terminal-label,
.account-auth .auth-terminal-id,
.account-auth .auth-overline {
    font-family: Oxanium, Inter, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
}
.account-auth .auth-terminal-label { display: flex; gap: 9px; align-items: center; color: #ded7e7; }
.account-auth .auth-terminal-id { color: #767083; white-space: nowrap; }
.account-auth .auth-status-dot { width: 6px; height: 6px; border-radius: 50%; background: #86e1ff; box-shadow: 0 0 8px rgba(134,225,255,.45); }
.account-auth .auth-terminal-content { padding: 38px 38px 33px; }
.account-auth .auth-overline { color: #be8aff; margin: 0 0 10px; }
.account-auth .auth-overline span { color: #70677d; }
.account-auth h1 {
    margin: 0;
    font-family: Oxanium, Inter, sans-serif;
    font-size: clamp(30px, 5vw, 41px);
    letter-spacing: -.8px;
    line-height: 1.15;
    text-transform: uppercase;
}
.account-auth .auth-description { font-size: 13px; line-height: 1.65; color: #aaa4b9; margin: 12px 0 28px; }
.account-auth .auth-form { display: grid; }
.account-auth .auth-form label {
    margin: 0 0 8px;
    color: #c9c0d5;
    font-family: Oxanium, Inter, sans-serif;
    font-size: 11px;
    letter-spacing: 1.1px;
    font-weight: 700;
}
.account-auth .auth-form input:not([type="hidden"]) {
    width: 100%;
    min-height: 48px;
    margin: 0 0 22px;
    padding: 12px 13px;
    border: 1px solid #423a4b;
    border-radius: 4px;
    outline: none;
    background: #09080f;
    color: #f6f3fb;
    font-size: 14px;
    transition: border-color .15s, box-shadow .15s;
}
.account-auth .auth-form input:focus { border-color: #be8aff; box-shadow: 0 0 0 2px rgba(190,138,255,.15); }
.account-auth .auth-form .account-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 49px;
    margin: 4px 0 0;
    padding: 12px 16px;
    border-radius: 4px;
    border: 1px solid #c8a0f4;
    background: #be8aff;
    color: #150c1c;
    font-family: Oxanium, Inter, sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background .15s, transform .15s;
}
.account-auth .auth-form .account-button:hover { background: #d3b1ff; transform: translateY(-1px); }
.account-auth .auth-form .account-button:focus-visible { outline: 2px solid #86e1ff; outline-offset: 3px; }
.account-auth .switch-auth { margin: 26px 0 0; padding-top: 21px; border-top: 1px solid #302a38; font-size: 11px; line-height: 1.6; letter-spacing: .3px; color: #9b92a8; }
.account-auth .switch-auth a { display: inline-block; color: #86e1ff; font-weight: 700; text-decoration: none; margin-left: 4px; }
.account-auth .switch-auth a:hover { text-decoration: underline; }
.account-auth .account-alert { margin: 0 0 20px; font-size: 13px; line-height: 1.5; }
.account-auth .auth-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #797180;
    padding: 24px 0 28px;
    border-top: 1px solid #292430;
}
.account-auth .auth-footer i { color: #86e1ff; font-style: normal; font-size: 7px; vertical-align: 1px; margin: 0 3px; }
@media (max-width: 520px) {
    .account-auth .auth-layout { width: min(100% - 30px, 460px); }
    .account-auth .auth-topbar { min-height: 80px; }
    .account-auth .auth-top-logo img { width: 100px; }
    .account-auth .auth-back { font-size: 10px; }
    .account-auth .auth-main { padding: 32px 0 45px; align-items: flex-start; }
    .account-auth .auth-terminal-content { padding: 28px 23px 26px; }
    .account-auth .auth-terminal-bar { padding: 0 14px; }
    .account-auth .auth-terminal-id { font-size: 9px; }
    .account-auth .auth-footer { font-size: 9px; flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
    .account-auth .account-button,
    .account-auth .auth-back,
    .account-auth input { transition: none !important; }
}
