:root {
    --bw-ink: #040b10;
    --bw-ink-soft: #08151b;
    --bw-teal: #65b6c4;
    --bw-teal-bright: #a8edf1;
    --bw-gold: #cba45f;
    --bw-gold-bright: #f2d99b;
    --bw-paper: #f6ead0;
    --bw-muted: #aebdc1;
    --bw-line: rgba(226, 195, 132, 0.3);
    --pointer-x: 0px;
    --pointer-y: 0px;
    --scroll-shift: 0px;
    --storm-flash: 0;
    --storm-lift: 0;
    --storm-x: 68%;
    --storm-y: 9%;
}

html {
    background: var(--bw-ink);
    color-scheme: dark;
    scroll-behavior: smooth;
    scroll-padding-top: 32px;
}

body {
    overflow-x: hidden;
    background: var(--bw-ink);
}

.start-page {
    position: relative;
    isolation: isolate;
    overflow: clip;
    min-height: 100vh;
    background:
        radial-gradient(circle at 50% 18%, rgba(62, 137, 151, 0.2), transparent 42%),
        linear-gradient(180deg, #03090d 0%, #071218 60%, #03090d 100%);
}

.start-page::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(2, 7, 10, 0.64) 0%, rgba(2, 7, 10, 0.32) 26%, rgba(2, 7, 10, 0.04) 50%, rgba(2, 7, 10, 0.34) 78%, rgba(2, 7, 10, 0.7) 100%),
        linear-gradient(180deg, rgba(2, 7, 10, 0.18) 0%, rgba(2, 7, 10, 0.02) 42%, #071218 99%);
    content: "";
    mix-blend-mode: normal;
    pointer-events: none;
}

.start-page::after {
    position: fixed;
    inset: 0;
    z-index: 8;
    border: 1px solid rgba(231, 203, 146, 0.08);
    box-shadow: inset 0 0 120px rgba(0, 0, 0, 0.34);
    content: "";
    pointer-events: none;
}

.hero-scene {
    position: absolute;
    inset: 0 0 auto;
    z-index: -3;
    height: max(760px, 100svh);
    overflow: hidden;
    pointer-events: none;
}

.hero-scene::before {
    position: absolute;
    content: "";
    pointer-events: none;
}

.hero-scene::before {
    inset: 0;
    z-index: 4;
    background:
        radial-gradient(ellipse at 58% 82%, rgba(114, 172, 181, 0.15) 0%, rgba(40, 85, 94, 0.08) 24%, transparent 46%),
        radial-gradient(circle at 52% 37%, rgba(96, 204, 220, 0.15), transparent 27%),
        linear-gradient(180deg, rgba(3, 8, 11, 0.04), rgba(4, 11, 15, 0.14) 57%, rgba(7, 18, 24, 0.7) 94%, #071218 100%);
}

.hero-backdrop,
.hero-character-occlusion {
    position: absolute;
    inset: -2%;
    background:
        linear-gradient(90deg, rgba(2, 7, 10, 0.24) 0%, rgba(2, 7, 10, 0.05) 34%, rgba(2, 7, 10, 0.03) 70%, rgba(2, 7, 10, 0.2) 100%),
        url("/assets/img/start-page/battleworld-four-classes-storm-v3.webp") center bottom / cover no-repeat,
        linear-gradient(180deg, #03080c 0%, #07141a 54%, #061117 100%);
    filter: saturate(1.04) contrast(1.02) brightness(calc(1.05 + var(--storm-lift)));
    transform: translate3d(var(--pointer-x), var(--pointer-y), 0) scale(1.02);
    transform-origin: center bottom;
    animation: bw-backdrop-breathe 18s ease-in-out infinite alternate;
    pointer-events: none;
    will-change: transform, filter;
}

.hero-backdrop {
    z-index: 0;
}

.seo-card p a,
.game-guide p a {
    color: inherit;
    text-decoration-color: var(--bw-line);
    text-underline-offset: 0.16em;
}

.hero-storm-light {
    position: absolute;
    inset: -4%;
    z-index: 1;
    opacity: var(--storm-flash);
    background:
        radial-gradient(ellipse at var(--storm-x) var(--storm-y), rgba(236, 251, 255, 0.9) 0%, rgba(148, 220, 244, 0.44) 8%, rgba(86, 163, 196, 0.16) 21%, transparent 42%),
        linear-gradient(180deg, rgba(159, 219, 239, 0.2), transparent 62%);
    mix-blend-mode: screen;
    filter: blur(7px);
    pointer-events: none;
    will-change: opacity;
}

#battle-lightning {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: max(760px, 100svh);
    mix-blend-mode: screen;
    pointer-events: none;
}

.hero-character-occlusion {
    z-index: 3;
    -webkit-mask-image: url("/assets/img/start-page/battleworld-character-alpha-v2.webp");
    mask-image: url("/assets/img/start-page/battleworld-character-alpha-v2.webp");
    -webkit-mask-position: center bottom;
    mask-position: center bottom;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: cover;
    mask-size: cover;
    mask-mode: alpha;
}

.hero-noise {
    position: absolute;
    inset: 0;
    z-index: 5;
    opacity: 0.08;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.86' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
    mix-blend-mode: soft-light;
}

#battle-embers {
    position: absolute;
    inset: 0 0 auto;
    z-index: -1;
    width: 100%;
    height: max(760px, 100svh);
    pointer-events: none;
}

.start-topbar {
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 5;
    width: min(1320px, calc(100% - 48px));
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transform: translateX(-50%);
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    color: var(--bw-paper);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.brand-sigil {
    position: relative;
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    overflow: hidden;
    border: 1px solid rgba(229, 202, 150, 0.72);
    border-radius: 12px;
    background: #05080a;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 20px rgba(127, 76, 218, 0.16);
}

.brand-sigil::after {
    position: absolute;
    inset: 2px;
    border: 1px solid rgba(255, 235, 195, 0.18);
    border-radius: 9px;
    content: "";
    pointer-events: none;
}

.brand-sigil img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.brand-copy {
    display: grid;
    gap: 3px;
}

.brand-copy strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
    letter-spacing: 0.18em;
}

.brand-copy span {
    color: rgba(214, 230, 232, 0.64);
    font-size: 9px;
    letter-spacing: 0.24em;
}

.start-status {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 13px;
    border: 1px solid rgba(130, 196, 205, 0.2);
    border-radius: 999px;
    color: #c5d9dc;
    background: rgba(4, 13, 17, 0.44);
    backdrop-filter: blur(10px);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.start-status::before {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #8bd2b0;
    box-shadow: 0 0 0 4px rgba(139, 210, 176, 0.1), 0 0 14px rgba(139, 210, 176, 0.6);
    content: "";
    animation: bw-status-pulse 2.6s ease-in-out infinite;
}

.start-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.start-action {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0 14px;
    color: #e9d7ad;
    font: inherit;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.22s ease, border-color 0.22s ease, color 0.22s ease, background 0.22s ease;
}

.start-action--login {
    border: 1px solid rgba(224, 195, 137, 0.38);
    background: rgba(4, 13, 17, 0.52);
    backdrop-filter: blur(10px);
}

.start-action--register {
    border: 1px solid rgba(239, 215, 163, 0.62);
    color: #071017;
    background: linear-gradient(135deg, #f0d99e, #b88642);
    box-shadow: 0 8px 22px rgba(184, 134, 62, 0.2);
}

.start-action:hover,
.start-action:focus-visible {
    transform: translateY(-2px);
}

.start-action--login:hover,
.start-action--login:focus-visible {
    border-color: rgba(239, 215, 163, 0.72);
    color: var(--bw-paper);
    background: rgba(10, 27, 33, 0.72);
}

.start-nav {
    position: absolute;
    left: 50%;
    display: flex;
    align-items: center;
    gap: 28px;
    transform: translateX(-50%);
}

.start-nav a,
.start-footer a {
    color: rgba(217, 231, 233, 0.68);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.25s ease;
}

.start-nav a:hover,
.start-nav a:focus-visible,
.start-footer a:hover,
.start-footer a:focus-visible {
    color: var(--bw-gold-bright);
}

.hero {
    position: relative;
    z-index: 2;
    width: min(1320px, calc(100% - 48px));
    min-height: max(760px, 100svh);
    margin: 0 auto;
    padding: 126px 0 72px;
    display: grid;
    grid-template-columns: minmax(350px, 500px) minmax(280px, 1fr);
    gap: 26px;
    align-items: center;
}

.hero-copy {
    position: relative;
    z-index: 4;
    grid-column: 1;
    max-width: 480px;
    padding: 32px 0 0;
    filter: drop-shadow(0 18px 44px rgba(0, 0, 0, 0.5));
    animation: bw-reveal-left 0.9s cubic-bezier(0.2, 0.75, 0.24, 1) both;
}

.eyebrow {
    margin-bottom: 16px;
    color: var(--bw-gold-bright);
    letter-spacing: 0.2em;
}

.eyebrow::before {
    width: 48px;
    background: linear-gradient(90deg, transparent, var(--bw-gold-bright));
    box-shadow: 0 0 12px rgba(235, 200, 130, 0.5);
}

h1 {
    max-width: 470px;
    color: var(--bw-paper);
    font-size: clamp(55px, 6.4vw, 96px);
    line-height: 0.86;
    letter-spacing: -0.035em;
    text-wrap: balance;
    text-shadow: 0 5px 24px rgba(0, 0, 0, 0.82), 0 0 42px rgba(94, 171, 183, 0.12);
}

.lead {
    max-width: 455px;
    margin-top: 24px;
    color: #d4e0e2;
    font-size: clamp(16px, 1.5vw, 19px);
    line-height: 1.68;
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 28px;
}

.hero-point {
    min-height: 0;
    padding: 9px 12px;
    border: 1px solid rgba(223, 194, 135, 0.2);
    border-radius: 999px;
    background: rgba(4, 13, 17, 0.44);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(8px);
}

.hero-point strong {
    margin: 0;
    color: #ead6a8;
    font-size: 11px;
    letter-spacing: 0.04em;
}

.hero-point span {
    display: none;
}

.login-card {
    position: relative;
    z-index: 4;
    grid-column: 3;
    width: 100%;
    align-self: center;
    overflow: hidden;
    border: 1px solid rgba(231, 203, 145, 0.3);
    border-radius: 20px;
    padding: 22px;
    background:
        linear-gradient(145deg, rgba(17, 34, 40, 0.86), rgba(3, 10, 14, 0.82)),
        radial-gradient(circle at 100% 0, rgba(111, 194, 207, 0.13), transparent 35%);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.54), inset 0 1px 0 rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(18px) saturate(1.16);
    animation: bw-reveal-right 0.9s 0.12s cubic-bezier(0.2, 0.75, 0.24, 1) both;
}

.login-card::before {
    position: absolute;
    top: 0;
    left: -70%;
    width: 48%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #f2d99b, transparent);
    content: "";
    animation: bw-card-shine 6s 1.5s ease-in-out infinite;
}

.login-card::after {
    position: absolute;
    inset: auto 20px 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(100, 185, 199, 0.4), transparent);
    content: "";
}

body.login-modal-open {
    overflow: hidden;
}

.login-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.login-modal[hidden] {
    display: none;
}

.login-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.login-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(1, 6, 9, 0.72);
    backdrop-filter: blur(8px) saturate(0.85);
}

.login-modal__dialog {
    position: relative;
    z-index: 1;
    grid-column: auto;
    width: min(420px, calc(100vw - 32px));
    max-height: calc(100svh - 32px);
    overflow: auto;
    padding: 28px;
    opacity: 0;
    background: linear-gradient(155deg, rgba(13, 31, 38, 0.97), rgba(3, 10, 14, 0.97));
    box-shadow: 0 32px 110px rgba(0, 0, 0, 0.68), inset 0 1px 0 rgba(255, 255, 255, 0.07);
    animation: none;
    transform: translateY(16px) scale(0.98);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.login-modal.is-open .login-modal__dialog {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.login-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(222, 196, 143, 0.24);
    border-radius: 50%;
    padding: 0 0 2px;
    color: #d7c69e;
    background: rgba(2, 9, 12, 0.62);
    font-size: 23px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.login-modal__close:hover,
.login-modal__close:focus-visible {
    border-color: rgba(238, 216, 166, 0.64);
    color: #fff2d2;
    transform: rotate(6deg);
}

.login-modal__kicker {
    margin: 0 0 8px !important;
    color: var(--bw-gold-bright) !important;
    font-size: 10px !important;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.login-card h2 {
    margin-bottom: 4px;
    color: var(--bw-paper);
    font-size: 25px;
}

.login-card p {
    margin-bottom: 16px;
    color: #9eb0b5;
    font-size: 12px;
}

.form-group {
    margin-bottom: 10px;
}

.form-group label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.form-group input {
    height: 43px;
    border-color: rgba(215, 185, 130, 0.22);
    border-radius: 10px;
    padding: 0 13px;
    background: rgba(0, 5, 8, 0.58);
    font-size: 14px;
}

.form-group input::placeholder {
    color: #71858a;
}

.form-group input:focus {
    border-color: rgba(139, 210, 220, 0.66);
    box-shadow: 0 0 0 3px rgba(104, 184, 196, 0.1), 0 0 24px rgba(104, 184, 196, 0.08);
}

.message {
    margin-bottom: 10px;
    padding: 9px 11px;
    border-radius: 9px;
    font-size: 12px;
}

.actions {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 13px;
}

.btn-main,
.btn-secondary {
    position: relative;
    min-height: 42px;
    overflow: hidden;
    border-radius: 10px;
    font-size: 11px;
    letter-spacing: 0.07em;
}

.btn-main {
    background: linear-gradient(135deg, #f1d99d 0%, #b6813d 78%);
    box-shadow: 0 12px 26px rgba(175, 125, 54, 0.24);
}

.btn-main::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 25%, rgba(255, 255, 255, 0.36) 48%, transparent 70%);
    content: "";
    transform: translateX(-130%);
    transition: transform 0.65s ease;
}

.btn-main:hover::after {
    transform: translateX(130%);
}

.btn-main:hover,
.btn-secondary:hover {
    transform: translateY(-2px);
}

.below-fold {
    position: relative;
    z-index: 2;
    width: min(1160px, calc(100% - 48px));
    margin-top: -1px;
    padding: 44px 0 80px;
    gap: 16px;
}

.below-fold::before {
    position: absolute;
    top: 0;
    left: 50%;
    width: min(900px, 80vw);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(221, 193, 135, 0.36), transparent);
    content: "";
    transform: translateX(-50%);
}

.seo-card {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    padding: 26px;
    background: linear-gradient(145deg, rgba(12, 27, 33, 0.72), rgba(4, 12, 16, 0.66));
    transition: transform 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}

.seo-card:hover {
    border-color: rgba(225, 195, 133, 0.46);
    background: linear-gradient(145deg, rgba(15, 34, 41, 0.8), rgba(5, 15, 19, 0.7));
    transform: translateY(-4px);
}

.seo-card h2 {
    font-size: 23px;
}

.seo-card p {
    color: #b8c7ca;
    font-size: 14px;
    line-height: 1.75;
}

.game-guide,
.gameplay-path,
.game-faq,
.start-cta,
.start-footer {
    position: relative;
    z-index: 2;
    width: min(1160px, calc(100% - 48px));
    margin-inline: auto;
}

.game-guide {
    padding: 78px 0 88px;
}

.section-heading {
    max-width: 800px;
}

.section-kicker {
    margin: 0 0 12px;
    color: var(--bw-gold-bright);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.section-heading h2,
.gameplay-path h2,
.start-cta h2 {
    margin: 0;
    color: var(--bw-paper);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(34px, 4vw, 56px);
    line-height: 1.04;
    text-wrap: balance;
}

.section-heading > p:not(.section-kicker),
.gameplay-path__copy > p:not(.section-kicker) {
    margin: 20px 0 0;
    color: #b8c7ca;
    font-size: 16px;
    line-height: 1.78;
}

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

.feature-card,
.faq-grid article {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(220, 192, 133, 0.18);
    border-radius: 18px;
    background:
        radial-gradient(circle at 100% 0, rgba(91, 173, 187, 0.1), transparent 38%),
        linear-gradient(145deg, rgba(11, 27, 33, 0.72), rgba(3, 10, 14, 0.76));
}

.feature-card {
    min-height: 250px;
    padding: 28px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
    border-color: rgba(229, 199, 137, 0.42);
    transform: translateY(-4px);
}

.feature-number {
    display: block;
    margin-bottom: 34px;
    color: rgba(112, 191, 203, 0.54);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 15px;
    letter-spacing: 0.08em;
}

.feature-card h3,
.faq-grid h3 {
    margin: 0;
    color: #ead8b2;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    line-height: 1.2;
}

.feature-card p,
.faq-grid p {
    margin: 13px 0 0;
    color: #aebfc3;
    font-size: 14px;
    line-height: 1.72;
}

.gameplay-path {
    padding: 86px 0;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(390px, 1.05fr);
    gap: 76px;
    align-items: center;
    border-top: 1px solid rgba(222, 194, 136, 0.16);
    border-bottom: 1px solid rgba(222, 194, 136, 0.16);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 26px;
    color: var(--bw-gold-bright);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
}

.text-link span {
    font-size: 20px;
    transition: transform 0.2s ease;
}

.text-link:hover span {
    transform: translateX(4px);
}

.gameplay-steps {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: gameplay-step;
}

.gameplay-steps li {
    position: relative;
    min-height: 86px;
    padding: 4px 0 24px 72px;
    counter-increment: gameplay-step;
}

.gameplay-steps li:not(:last-child)::after {
    position: absolute;
    top: 48px;
    bottom: 0;
    left: 23px;
    width: 1px;
    background: linear-gradient(180deg, rgba(217, 187, 128, 0.48), rgba(100, 182, 196, 0.08));
    content: "";
}

.gameplay-steps li::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(224, 194, 134, 0.3);
    border-radius: 50%;
    color: var(--bw-gold-bright);
    background: rgba(6, 17, 22, 0.76);
    content: counter(gameplay-step, decimal-leading-zero);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 13px;
}

.gameplay-steps strong,
.gameplay-steps span {
    display: block;
}

.gameplay-steps strong {
    color: #ead8b2;
    font-size: 17px;
}

.gameplay-steps span {
    margin-top: 6px;
    color: #9fb2b6;
    font-size: 14px;
    line-height: 1.55;
}

.game-faq {
    padding: 88px 0 44px;
}

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

.faq-grid article {
    padding: 25px 27px;
}

.start-cta {
    margin-top: 44px;
    padding: 42px 46px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    border: 1px solid rgba(229, 199, 137, 0.3);
    border-radius: 22px;
    background:
        radial-gradient(circle at 85% 10%, rgba(102, 191, 205, 0.15), transparent 32%),
        linear-gradient(135deg, rgba(18, 37, 43, 0.86), rgba(4, 12, 16, 0.9));
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.3);
}

.start-cta h2 {
    max-width: 650px;
    font-size: clamp(30px, 3.5vw, 46px);
}

.start-cta__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(140px, 1fr));
    gap: 10px;
}

.start-cta__actions .btn-main,
.start-cta__actions .btn-secondary {
    min-width: 160px;
    padding-inline: 16px;
}

.start-footer {
    padding: 42px 0 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: rgba(181, 201, 205, 0.5);
    font-size: 12px;
}

.start-footer nav {
    display: flex;
    gap: 20px;
}

.scroll-cue {
    position: absolute;
    bottom: 23px;
    left: 50%;
    z-index: 3;
    display: grid;
    justify-items: center;
    gap: 6px;
    color: rgba(215, 230, 232, 0.52);
    font-size: 9px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    transform: translateX(-50%);
}

.scroll-cue::after {
    width: 1px;
    height: 30px;
    background: linear-gradient(180deg, rgba(225, 198, 140, 0.78), transparent);
    content: "";
    animation: bw-scroll-cue 2.2s ease-in-out infinite;
}

@keyframes bw-backdrop-breathe {
    from { transform: translate3d(var(--pointer-x), var(--pointer-y), 0) scale(1.02); }
    to { transform: translate3d(var(--pointer-x), var(--pointer-y), 0) scale(1.032); }
}

@keyframes bw-card-shine {
    0%, 55% { left: -70%; opacity: 0; }
    68% { opacity: 1; }
    82%, 100% { left: 122%; opacity: 0; }
}

@keyframes bw-status-pulse {
    0%, 100% { opacity: 0.62; transform: scale(0.92); }
    50% { opacity: 1; transform: scale(1.08); }
}

@keyframes bw-reveal-left {
    from { opacity: 0; transform: translate3d(-28px, 18px, 0); }
    to { opacity: 1; transform: none; }
}

@keyframes bw-reveal-right {
    from { opacity: 0; transform: translate3d(30px, 18px, 0); }
    to { opacity: 1; transform: none; }
}

@keyframes bw-scroll-cue {
    0%, 100% { opacity: 0.25; transform: scaleY(0.55); transform-origin: top; }
    50% { opacity: 0.9; transform: scaleY(1); transform-origin: top; }
}

@media (max-width: 1100px) {
    .hero {
        grid-template-columns: minmax(320px, 430px) minmax(120px, 1fr);
    }

    .hero-scene {
        opacity: 0.93;
    }

    h1 {
        font-size: clamp(54px, 7.5vw, 76px);
    }

    .start-nav {
        display: none;
    }

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

@media (max-width: 860px) {
    .start-page::before {
        background:
            linear-gradient(180deg, rgba(2, 7, 10, 0.74) 0%, rgba(2, 7, 10, 0.16) 30%, rgba(2, 7, 10, 0.5) 58%, #071218 100%),
            linear-gradient(90deg, rgba(2, 7, 10, 0.55), rgba(2, 7, 10, 0.12), rgba(2, 7, 10, 0.58));
    }

    .start-topbar {
        width: calc(100% - 28px);
        min-height: 72px;
    }

    .brand-copy span,
    .start-status {
        display: none;
    }

    .brand-sigil {
        width: 36px;
        height: 41px;
    }

    .hero {
        width: min(620px, calc(100% - 28px));
        min-height: 1050px;
        padding: 92px 0 72px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        gap: 20px;
    }

    .hero-copy {
        width: 100%;
        max-width: 560px;
        padding-top: 10px;
        align-self: flex-start;
    }

    h1 {
        max-width: 500px;
        font-size: clamp(54px, 14vw, 78px);
    }

    .lead {
        max-width: 480px;
        font-size: 15px;
    }

    .hero-scene,
    #battle-lightning,
    #battle-embers {
        height: 1050px;
    }

    .hero-backdrop,
    .hero-character-occlusion {
        background:
            linear-gradient(180deg, rgba(2, 7, 10, 0.54) 0%, rgba(2, 7, 10, 0.06) 27%, rgba(2, 7, 10, 0.1) 68%, rgba(2, 7, 10, 0.54) 100%),
            url("/assets/img/start-page/battleworld-four-classes-storm-v3.webp") center 57% / 122% auto no-repeat,
            linear-gradient(180deg, #03080c 0%, #07141a 54%, #061117 100%);
    }

    .hero-character-occlusion {
        -webkit-mask-position: center 57%;
        mask-position: center 57%;
        -webkit-mask-size: 122% auto;
        mask-size: 122% auto;
    }

    .below-fold {
        grid-template-columns: 1fr;
        width: min(620px, calc(100% - 28px));
        padding-bottom: 50px;
    }

    .game-guide,
    .gameplay-path,
    .game-faq,
    .start-cta,
    .start-footer {
        width: min(620px, calc(100% - 28px));
    }

    .game-guide,
    .game-faq {
        padding-block: 62px;
    }

    .gameplay-path {
        padding-block: 62px;
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .start-cta {
        padding: 32px;
        align-items: flex-start;
        flex-direction: column;
    }

    .scroll-cue {
        display: none;
    }
}

@media (max-width: 560px) {
    .brand-copy {
        display: none;
    }

    .start-actions {
        gap: 6px;
    }

    .start-action {
        min-height: 34px;
        padding-inline: 10px;
        font-size: 9px;
    }

    .start-page::before {
        background:
            linear-gradient(180deg, rgba(2, 7, 10, 0.74) 0%, rgba(2, 7, 10, 0.06) 31%, rgba(2, 7, 10, 0.08) 68%, #071218 100%),
            linear-gradient(90deg, rgba(2, 7, 10, 0.3), rgba(2, 7, 10, 0.02), rgba(2, 7, 10, 0.3));
    }

    .hero {
        min-height: 1100px;
    }

    .hero-scene,
    #battle-lightning,
    #battle-embers {
        height: 1100px;
    }

    .hero-scene::before {
        background:
            radial-gradient(ellipse at 50% 63%, rgba(108, 169, 179, 0.14), transparent 35%),
            linear-gradient(180deg, rgba(2, 7, 10, 0.15), rgba(3, 9, 12, 0.04) 45%, rgba(7, 18, 24, 0.62) 94%, #071218 100%),
            radial-gradient(circle at 50% 30%, transparent, rgba(1, 5, 7, 0.24));
    }

    .hero-backdrop,
    .hero-character-occlusion {
        background:
            linear-gradient(180deg, rgba(2, 7, 10, 0.44) 0%, rgba(2, 7, 10, 0.02) 28%, rgba(2, 7, 10, 0.04) 68%, rgba(2, 7, 10, 0.38) 100%),
            url("/assets/img/start-page/battleworld-four-classes-storm-v3.webp") center 52% / 124% auto no-repeat,
            linear-gradient(180deg, #03080c 0%, #07141a 54%, #061117 100%);
        filter: saturate(1.08) contrast(1.02) brightness(calc(1.22 + var(--storm-lift)));
    }

    .hero-character-occlusion {
        -webkit-mask-position: center 52%;
        mask-position: center 52%;
        -webkit-mask-size: 124% auto;
        mask-size: 124% auto;
    }

    .hero-copy {
        text-align: center;
    }

    .eyebrow {
        justify-content: center;
        font-size: 10px;
    }

    h1 {
        margin-inline: auto;
        font-size: clamp(50px, 16vw, 68px);
    }

    .lead {
        margin-inline: auto;
        font-size: 14px;
        line-height: 1.55;
    }

    .hero-points {
        justify-content: center;
    }

    .hero-point {
        padding: 8px 10px;
    }

    .login-card {
        width: 100%;
        padding: 18px;
    }

    .login-modal {
        padding: 14px;
    }

    .login-modal__dialog {
        width: 100%;
        max-height: calc(100svh - 28px);
        padding: 24px 18px 18px;
    }

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

    .seo-card {
        padding: 21px;
    }

    .feature-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        min-height: 0;
        padding: 23px;
    }

    .feature-number {
        margin-bottom: 20px;
    }

    .section-heading h2,
    .gameplay-path h2,
    .start-cta h2 {
        font-size: 32px;
    }

    .section-heading > p:not(.section-kicker),
    .gameplay-path__copy > p:not(.section-kicker) {
        font-size: 14px;
    }

    .start-cta {
        padding: 26px 22px;
    }

    .start-cta__actions {
        width: 100%;
        grid-template-columns: 1fr;
    }

    .start-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .hero-backdrop,
    .hero-character-occlusion {
        transform: scale(1.02);
    }

    #battle-embers,
    #battle-lightning,
    .hero-storm-light {
        display: none;
    }
}
