:root {
    color-scheme: dark;
    --navy: #101229;
    --dark: #0c1226;
    --panel: #1b2339;
    --cyan: #49d7e2;
    --cyan-light: #88edf1;
    --text: #f4f8fb;
    --muted: #b7c5d2;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    color: var(--text);
    background: var(--navy);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    line-height: 1.5;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.035em; }
:focus-visible { outline: 3px solid var(--cyan-light); outline-offset: 5px; }
.skip-link {
    position: absolute;
    top: -80px;
    left: 16px;
    z-index: 2;
    padding: 10px 16px;
    color: var(--dark);
    background: var(--cyan);
}
.skip-link:focus { top: 12px; }
.page-shell {
    min-height: 100vh;
    overflow: hidden;
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    background: radial-gradient(circle at 88% 27%, rgba(40, 169, 185, .18), transparent 32%),
                linear-gradient(130deg, #101229 15%, #101b30 75%, #101229);
}
.page-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: .22;
    background-image: linear-gradient(rgba(113, 225, 234, .13) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(113, 225, 234, .13) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(90deg, transparent 20%, #000);
}
.portal-header, .portal-main, .portal-footer {
    width: min(100% - 48px, 1160px);
    margin-inline: auto;
}
.portal-header {
    min-height: 116px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.brand { display: inline-flex; }
.brand img { width: 188px; height: auto; }
.back-link {
    text-decoration: none;
    color: #d0e2ea;
    font-size: .9rem;
    font-weight: 700;
}
.back-link:hover { color: var(--cyan-light); }
.back-link span { margin-right: 8px; color: var(--cyan); }
.portal-main {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, .83fr) minmax(0, 1.17fr);
    align-items: center;
    gap: clamp(44px, 7vw, 105px);
    padding-block: 48px 86px;
}
.intro { position: relative; }
.intro::after {
    content: "✦";
    position: absolute;
    top: -118px;
    right: 8%;
    color: var(--cyan);
    font-size: 32px;
    text-shadow: 0 0 19px var(--cyan);
}
.eyebrow, .panel-label, .option-label, .access-badge, .portal-footer {
    font-size: .73rem;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
}
.eyebrow { margin-bottom: 22px; color: var(--cyan-light); }
.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 9px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 14px var(--cyan);
}
.intro h1 { margin-bottom: 25px; font-size: clamp(3.2rem, 5.3vw, 5.35rem); }
.intro h1 span { color: var(--cyan); }
.intro > p:last-child {
    max-width: 500px;
    margin: 0;
    color: #d0dce6;
    font-size: 1.08rem;
    line-height: 1.75;
}
.entry-panel {
    padding: clamp(24px, 3vw, 40px);
    border: 1px solid rgba(107, 220, 229, .4);
    background: rgba(17, 25, 47, .94);
    box-shadow: 22px 22px 0 rgba(67, 206, 219, .07), 0 35px 90px rgba(0,0,0,.27);
}
.entry-heading { display: flex; justify-content: space-between; align-items: start; gap: 20px; margin-bottom: 31px; }
.panel-label { margin-bottom: 9px; color: var(--cyan); }
.entry-heading h2 { margin: 0; font-size: clamp(2rem, 2.7vw, 2.8rem); }
.access-badge { padding: 8px 10px; border: 1px solid #4a9aab; color: var(--cyan-light); white-space: nowrap; }
.option-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.option-card {
    min-height: 285px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    align-items: start;
    border: 1px solid #45566c;
    background: linear-gradient(140deg, #26334a, #1b2137 72%);
}
.option-card:last-child { background: linear-gradient(140deg, #20394e, #1b2137 72%); }
.option-icon {
    width: 42px;
    height: 42px;
    margin-bottom: 25px;
    display: grid;
    place-items: center;
    border: 1px solid var(--cyan);
    color: var(--cyan);
    font-size: 1.5rem;
    line-height: 1;
}
.option-label { margin-bottom: 8px; color: #a9c6d2; font-size: .67rem; }
.option-card h3 { margin-bottom: 10px; font-size: 2rem; }
.option-card > p:not(.option-label) { margin-bottom: 23px; color: #c8d5e0; font-size: .9rem; }
.option-card button {
    width: 100%;
    min-height: 44px;
    margin-top: auto;
    padding: 9px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #659aa7;
    background: rgba(70, 201, 214, .09);
    color: #c2e9ed;
    font: inherit;
    font-size: .88rem;
    font-weight: 800;
    cursor: not-allowed;
}
.panel-note { margin: 22px 0 0; color: var(--muted); font-size: .85rem; line-height: 1.6; }
.portal-footer {
    min-height: 75px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid rgba(179, 230, 239, .14);
    color: #a8bdcb;
}
@media (max-width: 950px) {
    .portal-main { grid-template-columns: 1fr; max-width: 680px; padding-block: 40px 80px; }
    .intro::after { right: 12%; top: -25px; }
}
@media (max-width: 560px) {
    .portal-header, .portal-main, .portal-footer { width: min(100% - 36px, 1160px); }
    .portal-header { min-height: 86px; }
    .brand img { width: 155px; }
    .back-link { font-size: .74rem; }
    .portal-main { gap: 44px; padding-block: 58px 65px; }
    .intro h1 { font-size: clamp(2.8rem, 11vw, 4.4rem); }
    .entry-heading { flex-direction: column; gap: 15px; }
    .option-grid { grid-template-columns: 1fr; }
    .option-card { min-height: 245px; }
    .portal-footer { align-items: start; flex-direction: column; justify-content: center; gap: 4px; padding-block: 20px; }
}
@media (max-width: 360px) {
    .brand img { width: 118px; }
    .back-link { font-size: .68rem; }
    .intro h1 { font-size: 2.7rem; }
}

/* Working account panel and first user Home. */
.account-tabs { display: flex; gap: 8px; border-bottom: 1px solid #45566c; margin-bottom: 28px; }
.account-tabs a { padding: 10px 12px 13px; text-decoration: none; color: var(--muted); font-size: .9rem; font-weight: 700; border-bottom: 3px solid transparent; }
.account-tabs a[aria-current="page"] { color: var(--cyan-light); border-bottom-color: var(--cyan); }
.entry-heading { margin-bottom: 14px; }
.form-description { color: #c8d5e0; font-size: .95rem; line-height: 1.65; margin-bottom: 24px; }
.account-form { display: flex; flex-direction: column; gap: 10px; }
.account-form > label { font-size: .9rem; font-weight: 700; margin-top: 8px; }
.account-form input:not([type="hidden"]):not([type="checkbox"]) { width: 100%; min-width: 0; min-height: 48px; padding: 12px 14px; border: 1px solid #62748c; border-radius: 6px; background: #10192d; color: var(--text); font: inherit; color-scheme: dark; }
.account-form input::placeholder { color: #aab8c8; }
.account-form input:focus { border-color: var(--cyan); }
.primary-button, .secondary-button { min-height: 48px; width: 100%; padding: 12px 16px; border-radius: 6px; display: flex; align-items: center; justify-content: space-between; gap: 10px; font: inherit; font-weight: 800; cursor: pointer; }
.primary-button { margin-top: 14px; border: 1px solid var(--cyan); color: var(--dark); background: var(--cyan); }
.primary-button:hover { background: var(--cyan-light); }
.secondary-button { border: 1px solid #659aa7; background: transparent; color: var(--cyan-light); }
.secondary-button:hover { background: rgba(70,201,214,.12); }
.form-footer { margin: 23px 0 0; color: var(--muted); font-size: .9rem; }
.form-footer a, .policy-box a, .text-button { color: var(--cyan-light); }
.field-help { margin: 0 0 5px; color: var(--muted); font-size: .8rem; line-height: 1.6; }
.form-notice { border: 1px solid #d4a45e; background: rgba(212,164,94,.1); color: #ffe2b9; padding: 14px; border-radius: 6px; margin: 0 0 20px; font-size: .9rem; }
.signup-progress { list-style: none; display: flex; gap: 12px; padding: 0; margin: 0 0 25px; color: var(--muted); font-size: .76rem; }
.signup-progress li { display: flex; align-items: center; gap: 6px; }
.signup-progress span { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid #62748c; border-radius: 50%; flex-shrink: 0; }
.signup-progress li[aria-current="step"] { color: var(--cyan-light); font-weight: 800; }
.signup-progress li[aria-current="step"] span { background: var(--cyan); color: var(--dark); border-color: var(--cyan); }
.verification-address, .account-email { color: var(--cyan-light); overflow-wrap: anywhere; font-size: .9rem; }
.pin-input { letter-spacing: .35em; font-size: 1.5rem !important; }
.resend-form { margin-top: 22px; }
.text-button { background: none; padding: 0; border: none; text-decoration: underline; font: inherit; font-size: .9rem; cursor: pointer; margin-bottom: 8px; }
.policy-box, .home-placeholder { padding: 18px; border: 1px solid #45566c; border-radius: 6px; background: rgba(38,51,74,.5); margin-top: 12px; }
.policy-box > p { font-size: .85rem; }
.policy-version { display: block; margin-top: 3px; color: var(--muted); font-size: .7rem; overflow-wrap: anywhere; }
.checkbox-label { display: flex; align-items: flex-start; gap: 10px; font-size: .88rem; line-height: 1.6; margin-bottom: 10px; cursor: pointer; }
.checkbox-label input { width: 18px; height: 18px; accent-color: var(--cyan); margin: 4px 0 0; flex-shrink: 0; }
.player-summary { display: flex; gap: 16px; align-items: center; margin: 28px 0 18px; }
.player-summary img { border-radius: 50%; flex-shrink: 0; }
.welcome-name { font-size: 1.15rem; font-weight: 700; margin-bottom: 6px; overflow-wrap: anywhere; }
.player-tag { font-size: .85rem; color: var(--muted); margin: 0; }
.player-tag strong { color: var(--cyan-light); letter-spacing: .08em; }
.home-placeholder { margin: 24px 0; color: var(--muted); }
.home-placeholder > p:last-child { margin-bottom: 0; }
@media (max-width: 560px) {
    .intro::after { display: none; }
    .portal-main { gap: 28px; padding-block: 24px 50px; }
    .intro h1 { font-size: 2.6rem; margin-bottom: 14px; }
    .intro > p:last-child { font-size: .95rem; line-height: 1.6; }
    .entry-panel { padding: 22px; }
    .account-tabs a { padding-inline: 8px; font-size: .82rem; }
    .signup-progress { gap: 9px; font-size: .7rem; }
}

/* Public entry: the same quiet Bronze guidance throughout signup and recovery. */
.entry-benefits{margin-top:30px;padding:22px;border:1px solid #35455d;border-radius:14px;background:rgba(18,30,47,.7);max-width:460px}
.entry-benefits p{font-size:15px;line-height:1.6}.entry-benefits .panel-label{font-size:11px;color:#7ee8e5}.entry-benefits .field-help{font-size:13px;color:#b3c3d6}
.account-form select{width:100%;min-height:48px;padding:12px 14px;border:1px solid #425570;border-radius:8px;background:#142137;color:#eef5ff;font:inherit;color-scheme:dark}
.account-form select:focus-visible{outline:2px solid #40ddd4;outline-offset:2px}.account-form select option{background:#142137;color:#eef5ff}
@media(max-width:560px){
    .intro h1{font-size:2rem;margin-bottom:0}
    .intro>p:not(.eyebrow),.intro .entry-benefits{display:none}
    .portal-main{gap:24px}
}
