@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700;800;900&family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
    --navy: #082a48;
    --navy-deep: #041d33;
    --blue: #0d4777;
    --blue-soft: #eaf3f8;
    --yellow: #ffd643;
    --yellow-bright: #ffe169;
    --orange: #ef7a27;
    --cream: #f7f2e8;
    --paper: #fffdf8;
    --ink: #152331;
    --muted: #617180;
    --line: rgba(8, 42, 72, .14);
    --green: #28754f;
    --danger: #a52d35;
    --shadow: 0 22px 70px rgba(4, 29, 51, .13);
    --display: 'Barlow Condensed', Impact, sans-serif;
    --sans: 'DM Sans', Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background:
        linear-gradient(180deg, rgba(234, 243, 248, .65), transparent 420px),
        var(--paper);
    font-family: var(--sans);
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: '';
    position: fixed;
    inset: 0 0 auto;
    z-index: -1;
    height: 9px;
    background: linear-gradient(90deg, var(--yellow) 0 24%, var(--orange) 24% 32%, var(--blue) 32% 100%);
}

.page-shell {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 42px 0 88px;
}

.narrow-shell {
    width: min(920px, calc(100% - 48px));
}

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 7px;
    box-shadow: var(--shadow);
}

.hero {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: clamp(34px, 5vw, 70px);
    min-height: 390px;
    padding: clamp(38px, 6vw, 72px);
    overflow: hidden;
    align-items: end;
    color: #fff;
    background: var(--navy-deep);
    border: 0;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -2;
    background: url('hero.jpg') center 44% / cover no-repeat;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(4, 29, 51, .97) 0%, rgba(4, 29, 51, .86) 55%, rgba(4, 29, 51, .58) 100%),
        linear-gradient(0deg, rgba(4, 29, 51, .8), transparent 60%);
}

.login-hero {
    grid-template-columns: minmax(0, 720px);
    min-height: 430px;
}

.eyebrow {
    display: inline-flex;
    margin-bottom: 15px;
    color: var(--orange);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.hero .eyebrow {
    color: var(--yellow);
}

h1,
h2,
h3 {
    margin: 0;
    color: var(--navy);
    font-family: var(--display);
    font-weight: 800;
    line-height: .94;
    letter-spacing: -.035em;
    text-transform: uppercase;
}

h1 {
    font-size: clamp(4rem, 8vw, 7rem);
}

h2 {
    font-size: clamp(2.6rem, 4.5vw, 4.25rem);
}

h3 {
    font-size: 1.65rem;
}

.hero h1 {
    max-width: 800px;
    color: #fff;
}

p {
    color: var(--muted);
    line-height: 1.7;
}

.hero p{
    color: white;
}

.hero > div:first-child > p:last-child {
    max-width: 690px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, .76);
    font-size: 1.05rem;
}

a {
    color: var(--blue);
    font-weight: 800;
    text-underline-offset: 4px;
}

a:hover {
    color: var(--orange);
}

.seller-box {
    position: relative;
    min-height: 220px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    color: #fff;
    background: rgba(4, 29, 51, .84);
    border: 1px solid rgba(255, 255, 255, .22);
    border-top: 4px solid var(--yellow);
    border-radius: 4px;
    backdrop-filter: blur(14px);
}

.seller-box span,
.seller-box small {
    color: rgba(255, 255, 255, .62);
}

.seller-box span {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.seller-box strong {
    font-family: var(--display);
    font-size: 1.75rem;
    line-height: 1;
    text-transform: uppercase;
}

.seller-box a {
    width: fit-content;
    margin-top: 16px;
    padding-bottom: 4px;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, .45);
    font-size: .8rem;
    text-decoration: none;
}

.form-card {
    position: relative;
    margin-top: 26px;
    padding: clamp(28px, 5vw, 54px);
    border-top: 5px solid var(--yellow);
}

.form-card::after {
    content: '';
    position: absolute;
    top: -5px;
    right: 0;
    width: 28%;
    height: 5px;
    background: var(--orange);
}

.section-title {
    max-width: 760px;
    margin-bottom: 34px;
}

.section-title p {
    max-width: 640px;
    margin: 15px 0 0;
}

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

.field {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.field.full {
    grid-column: 1 / -1;
}

label {
    color: var(--navy);
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .025em;
}

input,
select,
textarea {
    width: 100%;
    min-height: 54px;
    padding: 14px 15px;
    color: var(--ink);
    background: #fff;
    border: 1px solid rgba(8, 42, 72, .22);
    border-radius: 4px;
    outline: none;
    font: inherit;
    transition: border-color .2s, box-shadow .2s, background .2s;
}

textarea {
    min-height: 108px;
    resize: vertical;
}

input::placeholder,
textarea::placeholder {
    color: #93a0ab;
}

input:hover,
select:hover,
textarea:hover {
    border-color: rgba(8, 42, 72, .4);
}

input:focus,
select:focus,
textarea:focus {
    background: #fffef9;
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(13, 71, 119, .11);
}

.game-card {
    position: relative;
    margin-bottom: 18px;
    padding: clamp(23px, 3vw, 32px);
    overflow: hidden;
    background: linear-gradient(135deg, #fff 0%, var(--blue-soft) 100%);
    border: 1px solid rgba(8, 42, 72, .15);
    border-left: 5px solid var(--yellow);
    border-radius: 5px;
}

.game-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 70px;
    height: 70px;
    background: linear-gradient(225deg, rgba(13, 71, 119, .11), transparent 68%);
    pointer-events: none;
}

.game-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 17px;
    border-bottom: 1px solid var(--line);
}

.game-header h3 {
    color: var(--navy);
    font-size: 2rem;
}

.actions-row,
.submit-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 24px;
}

.submit-row {
    margin-top: 34px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}

.btn {
    min-height: 52px;
    padding: 0 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--navy-deep);
    background: var(--yellow);
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    font: inherit;
    font-size: .86rem;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: transform .2s, background .2s, box-shadow .2s;
}

.btn:hover {
    color: var(--navy-deep);
    background: var(--yellow-bright);
    box-shadow: 0 12px 30px rgba(255, 214, 67, .25);
    transform: translateY(-2px);
}

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

.btn.ghost:hover {
    color: #fff;
    background: var(--blue);
}

.btn.primary {
    color: var(--navy-deep);
    background: var(--yellow);
    box-shadow: 0 12px 34px rgba(255, 214, 67, .2);
}

.btn.remove {
    min-height: 40px;
    padding: 0 15px;
    color: var(--danger);
    background: rgba(165, 45, 53, .08);
    border-color: rgba(165, 45, 53, .15);
}

.btn.remove:hover {
    color: #fff;
    background: var(--danger);
    box-shadow: none;
}

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

.btn.card-btn:hover {
    color: #fff;
    background: var(--navy);
}

.inline-link {
    display: inline-flex;
}

.total-box {
    min-width: 190px;
    padding: 15px 19px;
    background: var(--navy-deep);
    border: 0;
    border-top: 4px solid var(--yellow);
    border-radius: 4px;
}

.total-box span {
    display: block;
    color: rgba(255, 255, 255, .56);
    font-size: .67rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.total-box strong {
    color: var(--yellow);
    font-family: var(--display);
    font-size: 2.25rem;
    line-height: 1;
}

.alert {
    margin-bottom: 22px;
    padding: 16px 18px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: .88rem;
    font-weight: 700;
    line-height: 1.5;
}

.alert.success {
    color: #18593a;
    background: #eaf7ef;
    border-color: rgba(40, 117, 79, .22);
}

.alert.error {
    color: #8d2028;
    background: #fff0f1;
    border-color: rgba(165, 45, 53, .2);
}

@media (max-width: 900px) {
    .page-shell,
    .narrow-shell {
        width: min(100% - 32px, 720px);
        padding-top: 28px;
    }

    .hero,
    .login-hero {
        grid-template-columns: 1fr;
        min-height: 0;
        padding: 46px 34px;
    }

    .hero > div:first-child > p:last-child {
        font-size: .98rem;
    }

    .seller-box {
        min-height: 0;
    }

    .form-card {
        padding: 34px;
    }
}

@media (max-width: 620px) {
    body::before {
        height: 6px;
    }

    .page-shell,
    .narrow-shell {
        width: min(100% - 20px, 540px);
        padding: 16px 0 54px;
    }

    .hero,
    .login-hero {
        padding: 34px 23px;
        background-position: 58% center;
    }

    .hero::after {
        background: linear-gradient(0deg, rgba(4, 29, 51, .98), rgba(4, 29, 51, .7));
    }

    h1 {
        font-size: clamp(3.55rem, 18vw, 5rem);
    }

    h2 {
        font-size: clamp(2.65rem, 13vw, 3.8rem);
    }

    .form-card {
        margin-top: 14px;
        padding: 27px 19px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .field.full {
        grid-column: auto;
    }

    .game-card {
        padding: 22px 17px;
    }

    .game-header {
        align-items: flex-start;
    }

    .actions-row,
    .submit-row {
        align-items: stretch;
        flex-direction: column;
    }

    .actions-row .btn,
    .submit-row .btn,
    .total-box {
        width: 100%;
    }

    .total-box {
        min-width: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
