@font-face {
    font-family: "Sofia Pro Soft";
    src: url("assets/fonts/sofia-pro-soft-bold-webfont.woff2") format("woff2"),
         url("assets/fonts/sofia-pro-soft-bold-webfont.woff") format("woff");
    font-weight: 700;
    font-display: swap;
}

:root {
    --ink: #17211f;
    --muted: #687572;
    --line: #d5dedb;
    --paper: #f3f7f5;
    --white: #ffffff;
    --dark: #091210;
    --dark-soft: #111d1a;
    --pink: #d95d91;
    --pink-dark: #b73f72;
    --green: #2f8b6c;
    --focus: #49b99a;
    --display: "Sofia Pro Soft", "Trebuchet MS", sans-serif;
    --body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
    letter-spacing: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--body);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

button,
input {
    font: inherit;
}

a {
    color: inherit;
}

[hidden] {
    display: none !important;
}

.site-header {
    position: absolute;
    inset: 0 0 auto;
    z-index: 5;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 10px max(24px, calc((100vw - 1180px) / 2));
    border-bottom: 1px solid rgba(255, 255, 255, .16);
    background: rgba(5, 13, 11, .72);
    backdrop-filter: blur(12px);
}

.brand {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
}

.brand img {
    display: block;
    width: 82px;
    height: auto;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 28px;
}

.site-nav > a {
    position: relative;
    color: rgba(255, 255, 255, .78);
    font-size: .9rem;
    font-weight: 700;
    text-decoration: none;
}

.site-nav > a:hover,
.site-nav > a[aria-current="page"] {
    color: #fff;
}

.site-nav > a[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -10px;
    height: 2px;
    background: var(--pink);
}

.button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 9px 19px;
    color: var(--ink);
    background: transparent;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}

.button:focus-visible,
.icon-button:focus-visible,
input:focus-visible,
a:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
}

.button-primary {
    color: #fff;
    background: var(--pink-dark);
    border-color: var(--pink-dark);
}

.button-primary:hover {
    background: #9f2f62;
    border-color: #9f2f62;
}

.button-outline,
.button-header {
    color: #fff;
    border-color: rgba(255, 255, 255, .52);
    background: rgba(255, 255, 255, .05);
}

.button-outline:hover,
.button-header:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, .14);
}

.button-header {
    min-height: 38px;
    padding: 7px 17px;
}

.button-wide {
    width: 100%;
}

.hero {
    flex: 1;
    width: 100%;
    position: relative;
    min-height: 700px;
    display: grid;
    place-items: center;
    padding: 112px 24px 74px;
    overflow: hidden;
    color: #fff;
}

.hero-image {
    position: absolute;
    inset: 0;
    background: url("assets/hero.jpg") center 46% / cover no-repeat;
    transform: scale(1.01);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: rgba(4, 13, 11, .66);
}

.hero-content {
    position: relative;
    z-index: 1;
    width: min(620px, 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-logo {
    display: block;
    width: min(310px, 76vw);
    height: auto;
}

.hero h1 {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 26px;
}

.hero-actions .button {
    min-width: 132px;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--green);
    font-size: .72rem;
    font-weight: 900;
    text-transform: uppercase;
}

h2,
h3 {
    letter-spacing: 0;
}

.legal-hero h1,
.login-form h2 {
    margin: 0;
    font-family: var(--display);
    line-height: 1.12;
}

.site-footer {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
    padding: 29px max(24px, calc((100vw - 1180px) / 2));
    color: #bdc9c6;
    background: var(--dark);
    font-size: .84rem;
}

.site-footer > span {
    color: #fff;
    font-family: var(--display);
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 22px;
}

.site-footer > a {
    justify-self: end;
}

.site-footer a {
    color: #dce5e3;
    text-decoration: none;
}

.site-footer a:hover {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.login-dialog {
    width: min(420px, calc(100% - 28px));
    padding: 0;
    border: 0;
    border-radius: 8px;
    color: var(--ink);
    background: var(--white);
    box-shadow: 0 24px 80px rgba(0, 0, 0, .38);
}

.login-dialog::backdrop {
    background: rgba(4, 10, 9, .78);
    backdrop-filter: blur(4px);
}

.login-form {
    padding: 27px;
}

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

.login-form h2 {
    font-size: 1.9rem;
}

.icon-button {
    width: 36px;
    height: 36px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: var(--ink);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.login-form label {
    display: grid;
    gap: 7px;
    margin-top: 15px;
    color: #34413e;
    font-size: .82rem;
    font-weight: 800;
}

.login-form input {
    width: 100%;
    min-height: 44px;
    padding: 9px 11px;
    border: 1px solid #b5c1be;
    border-radius: 6px;
    color: var(--ink);
    background: #fff;
}

.form-message {
    min-height: 24px;
    margin: 12px 0;
    color: #a32758;
    font-size: .86rem;
}

.legal-body {
    background: var(--paper);
}

.legal-header {
    position: static;
    background: var(--dark);
}

.legal-main {
    min-height: calc(100vh - 160px);
}

.legal-hero {
    padding: 58px 20px 40px;
    color: #fff;
    background: var(--dark-soft);
}

.legal-hero > div,
.legal-content {
    width: min(780px, 100%);
    margin: 0 auto;
}

.legal-hero h1 {
    font-size: 3.15rem;
}

.legal-hero p {
    margin: 12px 0 0;
    color: #c8d2cf;
}

.legal-content {
    padding: 46px 20px 76px;
}

.legal-content h2 {
    margin: 34px 0 8px;
    font-size: 1.2rem;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content p,
.legal-content li {
    color: #465450;
}

.legal-content ul {
    padding-left: 20px;
}

.legal-content a {
    color: #16775d;
}

.support-address {
    display: inline-block;
    margin-top: 8px;
    color: var(--pink-dark) !important;
    font-size: 1.08rem;
    font-weight: 900;
}

.account-body {
    background: #eef3f1;
}

.signin-main,
.account-loading {
    min-height: calc(100svh - 146px);
    align-items: center;
    justify-content: center;
    padding: 118px 20px 56px;
}

.signin-panel {
    width: min(410px, 100%);
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 18px 50px rgba(19, 43, 36, .1);
}

.signin-panel h1,
.account-heading h1,
.section-heading h2 {
    margin: 0;
    font-family: var(--display);
    line-height: 1.12;
}

.signin-panel h1 {
    font-size: 2rem;
}

.signin-form label {
    display: grid;
    gap: 7px;
    margin-top: 17px;
    color: #34413e;
    font-size: .82rem;
    font-weight: 800;
}

.signin-form input {
    width: 100%;
    min-height: 46px;
    padding: 9px 11px;
    border: 1px solid #aebbb7;
    border-radius: 6px;
    color: var(--ink);
    background: #fff;
}

.signin-create {
    margin: 20px 0 0;
    color: var(--muted);
    text-align: center;
    font-size: .88rem;
}

.signin-create a {
    color: var(--pink-dark);
    font-weight: 800;
}

.account-main {
    width: min(940px, calc(100% - 40px));
    margin: 0 auto;
    padding: 120px 0 74px;
}

.account-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--line);
}

.account-heading h1 {
    font-size: 2.65rem;
}

.account-uid {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: .82rem;
    font-weight: 700;
}

.balance-block {
    min-width: 190px;
    text-align: right;
}

.balance-block span {
    display: block;
    color: var(--muted);
    font-size: .76rem;
    font-weight: 800;
    text-transform: uppercase;
}

.balance-block strong {
    display: block;
    margin-top: 3px;
    color: var(--pink-dark);
    font-family: var(--display);
    font-size: 2.15rem;
    line-height: 1;
}

.game-summary,
.support-packages {
    padding-top: 42px;
}

.section-heading h2 {
    font-size: 1.65rem;
}

.section-heading > p:last-child:not(.eyebrow) {
    margin: 8px 0 0;
    color: var(--muted);
}

.game-list {
    margin-top: 18px;
    border-top: 1px solid var(--line);
}

.game-row {
    min-height: 76px;
    display: grid;
    grid-template-columns: 120px 1fr;
    align-items: center;
    gap: 24px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.game-row h3 {
    margin: 0;
    font-family: var(--display);
    font-size: 1.28rem;
}

.game-row dl {
    display: flex;
    justify-content: flex-end;
    gap: 56px;
    margin: 0;
}

.game-row dl > div {
    min-width: 76px;
}

.game-row dt {
    color: var(--muted);
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.game-row dd {
    margin: 1px 0 0;
    font-size: 1.1rem;
    font-weight: 800;
}

.game-state {
    margin: 0;
    color: var(--muted);
    text-align: right;
}

.package-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.package {
    min-height: 112px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 12px 22px;
    padding: 19px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}

.package strong,
.package span {
    display: block;
}

.package strong {
    font-family: var(--display);
    font-size: 1.55rem;
}

.package span {
    color: var(--muted);
    font-size: .8rem;
}

.package b {
    color: var(--pink-dark);
    font-size: 1.3rem;
}

.package .button {
    grid-column: 1 / -1;
    min-height: 36px;
    border-color: var(--line);
    color: var(--muted);
    cursor: default;
}

.account-loading {
    color: var(--muted);
}

@media (max-width: 780px) {
    .site-header {
        min-height: 66px;
        padding: 9px 16px;
    }

    .brand img {
        width: 70px;
    }

    .site-nav {
        gap: 14px;
    }

    .site-nav > a:nth-child(2),
    .site-nav > a:nth-child(3),
    .site-nav > a:nth-child(4) {
        display: none;
    }

    .site-nav > a {
        font-size: .84rem;
    }

    .site-nav > a[aria-current="page"]::after {
        bottom: -8px;
    }

    .button-header {
        min-height: 36px;
        padding: 6px 12px;
        font-size: .84rem;
    }

    .hero {
        min-height: 610px;
        padding: 96px 20px 58px;
    }

    .hero-image {
        background-position: 42% center;
    }

    .hero-shade {
        background: rgba(4, 13, 11, .62);
    }

    .site-footer {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .site-footer nav {
        gap: 14px;
    }

    .site-footer > a {
        justify-self: center;
    }

    .legal-hero h1 {
        font-size: 2.35rem;
    }

    .account-main {
        width: min(100% - 32px, 940px);
        padding-top: 100px;
    }

    .account-heading {
        align-items: flex-start;
    }

    .account-heading h1 {
        font-size: 2rem;
    }

    .balance-block {
        min-width: 130px;
    }

    .balance-block strong {
        font-size: 1.7rem;
    }

    .package-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 410px) {
    .site-nav > a {
        display: none;
    }

    .hero {
        min-height: 580px;
    }

    .hero-logo {
        width: 240px;
    }

    .hero-actions {
        width: min(270px, 100%);
        flex-direction: column;
    }

    .hero-actions .button {
        width: 100%;
    }

    .signin-panel {
        padding: 24px 20px;
    }

    .account-heading {
        display: grid;
    }

    .balance-block {
        text-align: left;
    }

    .game-row {
        grid-template-columns: 76px 1fr;
        gap: 12px;
    }

    .game-row dl {
        gap: 20px;
    }

}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: .01ms !important;
    }
}
