/* ===========================================================
 * Reset
 * =========================================================== */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    font-family:
        Arial,
        Helvetica,
        "Microsoft YaHei",
        sans-serif;
    background: #000;
    color: #fff;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
    border: 0;
    user-select: none;
    -webkit-user-drag: none;
}

/* ===========================================================
 * Variables
 * =========================================================== */
:root {
    --container-width: 1100px;
    --title-width: 820px;
    --logo-width: 420px;
    --grid-gap: 22px;
    --section-gap: 36px;
    --transition: .25s ease;
}

/* ===========================================================
 * App
 * =========================================================== */
.app {
    width: 100%;
    min-height: 100vh;
    background-image: url("/img/pc-bg.webp");
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

/* ===========================================================
 * Container
 * =========================================================== */
.container {
    width: 100%;
    max-width: var(--container-width);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ===========================================================
 * Header
 * =========================================================== */
.header {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: var(--section-gap);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* ===========================================================
 * Main Title
 * =========================================================== */
.title {
    width: 100%;
    max-width: var(--title-width);
    aspect-ratio: 1013 / 99;
    background-image: url("/img/fifa_wc_title.webp");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* ===========================================================
 * Sub Title
 * =========================================================== */
.stitle {
    width: 100%;
    max-width: 1047px;
    aspect-ratio: 1047 / 71;
    margin-top: 10px;
    background-image: url("/img/pc-stitle.webp");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* ===========================================================
 * Button Area
 * =========================================================== */
.content {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--grid-gap);
    align-items: start;
}

/* ===========================================================
 * Button
 * =========================================================== */
.btn {
    display: block;
    width: 100%;
    aspect-ratio: 828 / 179;
    border-radius: 8px;
    overflow: hidden;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
    will-change:transform;
    transition:
        transform var(--transition),
        filter var(--transition),
        box-shadow var(--transition);
}

.btn:hover {
    transform: translateY(-3px);
    filter: brightness(1.04);
    box-shadow:
        0 10px 28px rgba(0, 0, 0, .35);
}

.btn:active {
    transform: translateY(0);
}

/* ===========================================================
 * Logo
 * =========================================================== */
.logo {
    width: 100%;
    max-width: var(--logo-width);
    margin-top: 48px;
}

.logo img {
    width: 100%;
    height: auto;
}

/* ===========================================================
 * PC Button Images
 * =========================================================== */
.btn0 {
    background-image: url("/img/pc-btn0.webp");
}

.btn1 {
    background-image: url("/img/pc-btn1.webp");
}

.btn5 {
    background-image: url("/img/mb-btn1.webp");
}

.btn9 {
    background-image: url("/img/pc-btn5.webp");
}

.btn2 {
    background-image: url("/img/pc-btn2.webp");
}

.btn3 {
    background-image: url("/img/pc-btn3.webp");
}

.btn4 {
    background-image: url("/img/pc-btn4.webp");
}

.btn6 {
    background-image: url("/img/mb-btn2.webp");
}

.btn7 {
    background-image: url("/img/mb-btn3.webp");
}

.btn8 {
    background-image: url("/img/mb-btn4.webp");
}

/* .btn10 {
    background-image: url("/img/pc-btn6.webp");
} */

/* ===========================================================
 * Desktop Large
 * =========================================================== */
@media (min-width:1600px) {
    :root {
        --container-width: 1200px;
        --grid-gap: 26px;
    }

    .logo {
        max-width: 460px;
    }
}

/* ===========================================================
 * Desktop
 * =========================================================== */
@media (max-width:1200px) {
    :root {
        --container-width: 1000px;
        --grid-gap: 20px;
    }

    .app {
        padding: 36px 20px;
    }

    .logo {
        max-width: 380px;
    }
}

/* ===========================================================
 * Tablet
 * =========================================================== */
@media (max-width:992px) {
    :root {
        --grid-gap: 16px;
        --section-gap: 28px;
    }

    .app {
        padding: 28px 16px;
    }

    .container {
        max-width: 760px;
    }

    .logo {
        max-width: 320px;
        margin-top: 36px;
    }
}

/* ===========================================================
 * Mobile
 * =========================================================== */
@media (max-width:768px) {
    .app {
        background-image: url("/img/mb-bg.webp");
        align-items: flex-start;
        padding: 20px 12px 30px;
    }

    .container {
        width: 100%;
        max-width: 520px;
    }

    .header {
        margin-bottom: 18px;
    }

    .title {
        width: 100%;
        max-width: 100%;
        aspect-ratio: 750 / 220;
        background-image: url("/img/mb-btitle.webp");
    }

    .stitle {
        width: 100%;
        max-width: 100%;
        aspect-ratio: 750 / 90;
        margin-top: 6px;
        background-image: url("/img/mb-stitle.webp");
    }

    .content {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .btn {
        width: 100%;
        aspect-ratio: 828 / 179;
        background-size: 100% 100%;
    }

    /* Mobile Button */
    .btn0 {
        background-image: url("/img/pc-btn1.webp");
    }

    .btn1 {
        background-image: url("/img/mb-btn1.webp");
    }

    .btn5 {
        background-image: url("/img/pc-btn5.webp");
    }

    .btn9 {
        background-image: url("/img/pc-btn0.webp");
    }

    .btn2 {
        background-image: url("/img/mb-btn2.webp");
    }

    .btn3 {
        background-image: url("/img/mb-btn3.webp");
    }

    .btn4 {
        background-image: url("/img/mb-btn4.webp");
    }

    .btn6 {
        background-image: url("/img/pc-btn2.webp");
    }

    .btn7 {
        background-image: url("/img/pc-btn3.webp");
    }

    .btn8 {
        background-image: url("/img/pc-btn4.webp");
    }

    .logo {
        width: 72%;
        max-width: 240px;
        margin-top: 22px;
    }
}

/* ===========================================================
 * Small Mobile
 * =========================================================== */
@media (max-width:576px) {
    .app {
        padding: 18px 10px 26px;
    }

    .header {
        margin-bottom: 16px;
    }

    .stitle {
        margin-top: 4px;
    }

    .content {
        gap: 10px;
    }

    .logo {
        max-width: 210px;
    }
}

/* ===========================================================
 * iPhone
 * =========================================================== */
@media (max-width:480px) {
    .app {
        padding: 16px 10px 24px;
    }

    .content {
        gap: 8px;
    }

    .logo {
        width: 68%;
        margin-top: 18px;
    }

    .btn {
        border-radius: 6px;
    }
}

/* ===========================================================
 * Small Phones
 * =========================================================== */
@media (max-width:390px) {
    .app {
        padding: 14px 8px 20px;
    }

    .header {
        margin-bottom: 12px;
    }

    .content {
        gap: 6px;
    }

    .logo {
        width: 65%;
        margin-top: 16px;
    }
}

/* ===========================================================
 * Hover
 * =========================================================== */
@media (hover:none) {
    .btn:hover {
        transform: none;
        filter: none;
        box-shadow: none;
    }
}