:root {
    --bg: #111;
    --yellow: #ffcc00;
    --yellow-2: #ffc91d;
    --white: #fff;
    --panel-top: #242439;
    --panel-bottom: #184562;
    --radius: 18px;
    --page: 1440px;
    --side: 44px;
}
* {
    box-sizing: border-box;
}
html {
    background: var(--bg);
    scroll-behavior: smooth;
}
body {
    margin: 0;
    min-width: 320px;
    color: var(--white);
    background: var(--bg);
    font-family: "Poppins", sans-serif;
}
a {
    color: inherit;
    text-decoration: none;
}
mark {
    color: var(--yellow);
    background: none;
}
.site-header {
    position: absolute;
    z-index: 10;
    top: 0;
    left: 50%;
    width: min(100%, var(--page));
    height: 108px;
    transform: translateX(-50%);
}
.stats {
    position: absolute;
    top: 24px;
    left: 54px;
    display: flex;
    gap: 18px;
    font:
        400 9px "DM Sans",
        sans-serif;
}
.stats span {
    display: flex;
    align-items: center;
    gap: 5px;
}
.dot {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 3px;
}
.dot--green {
    background: #57bc7d;
}
.dot--gold {
    background: #ffcb3e;
}
.dot--blue {
    background: #2774ff;
}
.header-rule {
    position: absolute;
    top: 56px;
    left: 54px;
    width: 809px;
    height: 1px;
    background: #535157;
}
.logo {
    position: absolute;
    top: 26px;
    left: 874px;
    width: 221px;
    height: 69px;
}
.logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.auth-nav {
    position: absolute;
    top: 37px;
    right: 35px;
    display: flex;
    gap: 16px;
}
.auth-button {
    width: 137px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    font:
        700 20px "DM Sans",
        sans-serif;
    transition:
        filter 0.2s,
        transform 0.2s;
}
.auth-button:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}
.auth-button:focus-visible,
.hero-button:focus-visible,
.join__copy a:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}
.auth-button--signup {
    background: #e69c31;
}
.auth-button--login {
    color: #000;
    background: #d4d4d4;
}
.hero {
    position: relative;
    width: min(100%, var(--page));
    height: 732px;
    margin: auto;
    overflow: hidden;
    background: #111;
}
.hero__scene {
    position: absolute;
    left: -167px;
    top: 0;
    width: 1607px;
    height: 703px;
    object-fit: cover;
}
.hero__shade {
    position: absolute;
    inset: 111px 44px 58px;
    border-radius: 18px;
    background: linear-gradient(90deg, transparent 55%, #041b29 100%);
    pointer-events: none;
}
.hero__copy {
    position: absolute;
    z-index: 2;
    top: 185px;
    left: 99px;
    width: 430px;
}
.hero h1 {
    margin: 0;
    color: #fff;
    font:
        400 64px/0.82 "Anton",
        sans-serif;
    letter-spacing: 0.2px;
}
.hero h1 span,
.hero h1 strong {
    display: block;
    font-weight: 400;
}
.hero h1 strong {
    margin-top: 21px;
    color: var(--yellow-2);
}
.hero__copy p {
    margin: 35px 0 20px 5px;
    font:
        700 21px/1.3 "DM Sans",
        sans-serif;
}
.hero-button {
    margin-left: 5px;
    width: 295px;
    height: 71px;
    display: grid;
    place-items: center;
    color: #000;
    border-radius: 12px;
    background: linear-gradient(#fbe366, #ffc91d);
    font:
        400 48px "Anton",
        sans-serif;
}
.hero__board {
    position: absolute;
    z-index: 2;
    top: 122px;
    right: 67px;
    width: 535px;
    height: 534px;
    overflow: hidden;
    border-radius: 18px;
    background: #000;
}
.hero__board img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.about {
    position: relative;
    width: min(100%, var(--page));
    height: 386px;
    margin: auto;
}
.about__panel {
    position: absolute;
    inset: 0 44px 0;
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(36, 36, 57, 0.6), rgba(24, 69, 98, 0.6));
}
.about__copy {
    position: absolute;
    z-index: 2;
    top: 26px;
    left: 99px;
    width: 616px;
}
.about h2,
.rules h2 {
    margin: 0;
    color: var(--yellow);
    font:
        700 48px/1.3 "DM Sans",
        sans-serif;
}
.about__copy p {
    margin: 8px 0;
    color: #fff;
    font:
        400 16px/1.35 "Poppins",
        sans-serif;
}
.about__tagline {
    display: block;
    margin-top: 11px;
    color: var(--yellow);
    font:
        600 16px "Poppins",
        sans-serif;
}
.about__art {
    position: absolute;
    z-index: 3;
    top: -196px;
    right: 89px;
    width: 736px;
    height: 736px;
    object-fit: contain;
    pointer-events: none;
}
.rules {
    width: min(100%, var(--page));
    min-height: 624px;
    margin: auto;
    padding: 18px 44px 32px;
}
.rules > h2 {
    margin: 0 0 17px 55px;
}
.rules__grid {
    display: grid;
    grid-template-columns: 430px 430px 430px;
    gap: 31px;
    transform: translateY(-0.39px);
}
.rule-card {
    height: 494px;
    overflow: hidden;
    border-radius: var(--radius);
    background: linear-gradient(180deg, var(--panel-top), var(--panel-bottom));
}
.rule-card__visual {
    height: 211px;
    overflow: hidden;
}
.rule-card__visual img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.rule-card__visual--board img {
    object-position: center 0;
}
.rule-card__visual--king {
    display: grid;
    place-items: center;
    background: var(--yellow-2);
}
.rule-card__visual--king img {
    width: 189px;
    height: 187px;
    object-fit: contain;
}
.rule-card__visual--portal {
    background: var(--yellow-2);
}
.rule-card__visual--portal img {
    object-fit: cover;
}
.rule-card__copy {
    padding: 14px 42px 24px;
    text-align: center;
}
.rule-card h3 {
    margin: 0 0 20px;
    color: var(--yellow);
    font:
        700 24px/1.15 "DM Sans",
        sans-serif;
}
.rule-card p {
    margin: 0;
    color: #fff;
    font:
        400 20px/1.25 "Poppins",
        sans-serif;
}
.join {
    position: relative;
    width: min(100%, 1607px);
    height: 703px;
    margin: auto;
    overflow: hidden;
    background: #111;
}
.join__scene {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.join__copy {
    position: absolute;
    z-index: 2;
    top: 210px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}
.join h2 {
    margin: 0 0 26px;
    color: var(--yellow);
    font:
        400 64px "Anton",
        sans-serif;
}
.join__copy a {
    width: 295px;
    height: 71px;
    display: grid;
    place-items: center;
    margin: auto;
    color: #000;
    border-radius: 12px;
    background: linear-gradient(#fbe366, #ffc91d);
    font:
        400 48px "Anton",
        sans-serif;
}
@media (max-width: 1200px) {
    .site-header,
    .hero,
    .about,
    .rules {
        width: 100%;
    }
    .logo {
        left: auto;
        right: 300px;
    }
    .hero__copy {
        left: 7vw;
    }
    .hero__board {
        right: 4vw;
        width: 42vw;
        height: 42vw;
        max-width: 535px;
        max-height: 535px;
    }
    .about__copy {
        left: 7vw;
        width: 48vw;
    }
    .about__art {
        right: 1vw;
        width: 55vw;
        height: 55vw;
    }
    .rules {
        padding-inline: 3vw;
    }
    .rules > h2 {
        margin-left: 4vw;
    }
    .rules__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2vw;
    }
    .rule-card {
        width: auto;
    }
    .rule-card__copy {
        padding-inline: 2vw;
    }
    .rule-card h3 {
        font-size: 20px;
    }
    .rule-card p {
        font-size: 14px;
    }
}
@media (max-width: 900px) {
    .site-header {
        height: 92px;
        padding: 14px 20px;
        display: grid;
        grid-template-columns: minmax(120px, 170px) 1fr;
        align-items: start;
        gap: 14px;
        transform: translateX(-50%);
    }
    .stats,
    .header-rule {
        display: none;
    }
    .logo {
        position: relative;
        inset: auto;
        width: 170px;
        height: 55px;
    }
    .auth-nav {
        position: relative;
        inset: auto;
        display: flex;
        justify-content: flex-end;
        gap: 8px;
        padding-top: 8px;
    }
    .auth-button {
        width: 92px;
        height: 39px;
        font-size: 15px;
    }
    .hero {
        height: 1000px;
        min-height: 0;
    }
    .hero__scene {
        left: 0;
        width: 100%;
        height: 720px;
        object-fit: cover;
    }
    .hero__shade {
        inset: 92px 20px 180px;
    }
    .hero__copy {
        top: 135px;
        left: 7vw;
        width: 86vw;
    }
    .hero__board {
        top: 490px;
        left: 7.5vw;
        width: min(65vw, 430px);
        height: min(65vw, 430px);
    }
    .about {
        height: auto;
        min-height: 0;
        padding: 60px 7vw 40px;
        display: flex;
        flex-direction: column;
        background: linear-gradient(var(--panel-top), var(--panel-bottom));
    }
    .about__panel {
        display: none;
    }
    .about__copy {
        position: relative;
        inset: auto;
        width: 100%;
        max-width: 620px;
    }
    .about__art {
        position: relative;
        inset: auto;
        display: block;
        width: min(86vw, 600px);
        height: auto;
        margin: 42px auto 0;
    }
    .rules {
        min-height: 0;
        padding: 65px 7vw;
    }
    .rules > h2 {
        margin: 0 0 30px;
    }
    .rules__grid {
        grid-template-columns: 1fr;
        gap: 28px;
        transform: none;
    }
    .rule-card {
        height: auto;
        min-height: 0;
    }
    .rule-card__copy {
        padding: 24px 10% 36px;
    }
    .rule-card p {
        font-size: 18px;
        line-height: 1.45;
    }
    .join {
        height: min(703px, 80vw);
        min-height: 420px;
    }
    .join__copy {
        top: 28%;
        width: 90%;
    }
}
@media (max-width: 600px) {
    .site-header {
        grid-template-columns: minmax(116px, 145px) 1fr;
        padding-inline: 14px;
        gap: 8px;
    }
    .logo {
        width: 145px;
        height: 46px;
    }
    .auth-nav {
        gap: 6px;
        padding-top: 4px;
    }
    .auth-button {
        width: 70px;
        height: 36px;
        border-radius: 9px;
        font-size: 12px;
    }
    .hero {
        height: 720px;
    }
    .hero__scene {
        height: 570px;
    }
    .hero__shade {
        inset: 82px 14px 150px;
    }
    .hero__copy {
        top: 112px;
        left: 24px;
        width: calc(100% - 48px);
    }
    .hero h1 {
        font-size: 46px;
        line-height: 0.88;
    }
    .hero__copy p {
        margin: 28px 0 18px;
        font-size: 16px;
    }
    .hero-button,
    .join__copy a {
        margin-left: 0;
        width: 210px;
        height: 55px;
        font-size: 34px;
    }
    .hero__board {
        top: 405px;
        right: 24px;
        width: min(65vw, 300px);
        height: min(65vw, 300px);
    }
    .about {
        padding: 48px 24px 34px;
    }
    .about h2,
    .rules h2 {
        font-size: 34px;
        line-height: 1.2;
    }
    .about__copy p {
        font-size: 15px;
        line-height: 1.55;
        margin: 14px 0;
    }
    .about__tagline {
        margin-top: 20px;
        line-height: 1.5;
    }
    .about__art {
        width: 100%;
        margin-top: 36px;
    }
    .rules {
        padding: 60px 20px;
    }
    .rule-card__copy {
        padding: 24px 25px 34px;
    }
    .rule-card h3 {
        font-size: 22px;
    }
    .rule-card p {
        font-size: 17px;
        line-height: 1.5;
    }
    .join {
        height: 440px;
        min-height: 0;
    }
    .join__copy {
        top: 25%;
    }
    .join h2 {
        font-size: 44px;
        line-height: 1.1;
    }
}
@media (max-width: 360px) {
    .site-header {
        grid-template-columns: 112px 1fr;
        padding-inline: 10px;
    }
    .logo {
        width: 112px;
        height: 38px;
    }
    .auth-button {
        width: 62px;
        height: 34px;
        font-size: 11px;
    }
    .hero__copy {
        left: 20px;
        width: calc(100% - 40px);
    }
    .hero h1 {
        font-size: 42px;
    }
    .hero__board {
        right: 20px;
    }
    .about {
        padding-inline: 20px;
    }
    .about h2,
    .rules h2 {
        font-size: 31px;
    }
    .rule-card p {
        font-size: 16px;
    }
    .join h2 {
        font-size: 40px;
    }
}
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .auth-button {
        transition: none;
    }
}
