@font-face {
    font-family: TT2020;
    font-display: swap;
    font-style: normal;
    font-weight: 400;
    src: url(../fonts/TT2020StyleE-Regular.woff2) format('woff2');
    font-display: swap;
}

@font-face {
    font-family: TT2020;
    font-display: swap;
    font-style: normal;
    font-weight: 700;
    src: url(../fonts/TT2020StyleB-Regular.woff2) format('woff2');
    font-display: swap;
}

@font-face {
    font-family: 'Bebas Neue';
    font-display: swap;
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/bebas-neue-v14-latin-regular.woff2') format('woff2');
}

@font-face {
    font-family: Inter;
    font-display: swap;
    font-style: normal;
    font-weight: 400;
    src: url(../fonts/Inter-Regular.woff2) format('woff2');
    font-display: swap;
}

@font-face {
    font-family: Inter;
    font-display: swap;
    font-style: italic;
    font-weight: 400;
    src: url(../fonts/Inter-Italic.woff2) format('woff2');
    font-display: swap;
}

@font-face {
    font-family: Inter;
    font-display: swap;
    font-style: normal;
    font-weight: 700;
    src: url(../fonts/Inter-Bold.woff2) format('woff2');
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'TT2020', monospace;
    font-size: 1.25rem;
    color: #fff;
    background-image: url('../img/site_bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

:root {
    --gap-s: 2rem;
    --gap-m: calc(var(--gap-s) * 2);
    --gap-l: calc(var(--gap-m) * 2);
    --gap-xl: calc(var(--gap-l) * 2);
}

.grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: var(--gap-s);
    padding: 0 var(--gap-s);
}

.grid-item-left {
    grid-column: 1 / -1;
    grid-row: 1 / 2;
}

.grid-item-right {
    grid-column: 1 / -1;
    grid-row: 3 / 4;
}

.highlight {
    position: relative;
    grid-column: 1 / -1;
    text-align: center;
}

.highlight :where(h2, p) {
    padding: var(--gap-s);
}

.highlight::before {
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
    content: '';
    background-image: url('../img/headline_bg.jpg');
    background-size: cover;
    border-top: 2px solid #fff;
    border-bottom: 2px solid #fff;
    box-shadow: inset 0 0 75px #000;
    mask-image: linear-gradient(to right, transparent 0%, #000 20%, #000 80%, transparent 100%);
    z-index: -1;
}

.box {
    position: relative;
    grid-column: 1 / -1;
    margin-bottom: var(--gap-xl);
    text-align: center;
    color: #210b01;
    background-image: url('../img/paper_middle.png');
    background-size: 100%;
}

.box::before {
    position: absolute;
    width: 100%;
    aspect-ratio: 1506 / 123;
    left: 0;
    content: '';
    background-image: url('../img/paper_top.png');
    background-size: contain;
    translate: 0 -100%;
}

.box::after {
    position: absolute;
    width: 100%;
    aspect-ratio: 1506 / 127;
    left: 0;
    bottom: 0;
    content: '';
    background-image: url('../img/paper_bottom.png');
    background-size: contain;
    translate: 0 100%;
}

.box :where(h2, p, form, iframe) {
    padding: 0 var(--gap-s);
    hyphens: auto;
}

.box :where(h2, p, form):first-child {
    padding-top: calc(var(--gap-s) / 2);
}

.box :where(h2, p, form):last-child {
    padding-bottom: calc(var(--gap-s) / 2);
}

.shadow {
    filter: drop-shadow(0 0 15px #000);
}

h2 {
    margin-bottom: var(--gap-s);
}

p:not(:last-child) {
    margin-bottom: var(--gap-s);
}

a {
    color: #fff;
}

.box a:not(.btn) {
    color: #210b01;
}

.reg-btn, .btn {
    padding: .25rem .5rem;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    color: #e79234;
    text-decoration: none;
    background: #000;
    border: 5px solid #e79234;
}

.play-btn {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
    background: transparent;
    border: 0;
}

.play-btn svg {
    width: 10rem;
    height: 10rem;
    fill: #e79234;
    filter: drop-shadow(0 0 15px #000);
}

/* Site Header */

#site-header {
    position: relative;
    width: 100%;
    aspect-ratio: 64 / 54;
    margin-bottom: 10%;
}

#site-header-small {
    position: relative;
    width: 100%;
    aspect-ratio: 32 / 20;
    margin-bottom: 10%;
}

#header-hero, #header-hero-small {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, 1fr);
    max-height: 100%;
    justify-items: center;
    padding-bottom: var(--gap-m);
}

#header-hero-small {
    mask-image: linear-gradient(#fff 0%, #fff 80%, transparent 99%);
}

.keyart {
    grid-column: 1 / -1;
    grid-row: 1 / span 2;
    max-width: 100%;
}

.logo {
    max-width: 75%;
    grid-column: 1 / -1;
    grid-row: 2 / span 2;
    align-self: end;
}

#site-header-small .logo {
    max-width: 50%;
}

#header-hero::before, #header-hero-small::before {
    position: absolute;
    width: 100%;
    height: 100%;
    content: '';
    background-image: url('../img/site_header_bg.jpg');
    background-position: bottom left;
    background-size: cover;
    mask-image: url('../img/mask_keyart.jpg');
    mask-mode: luminance;
    mask-size: cover;
    mask-position: center;
    z-index: -1;
}

#header-hero::after {
    position: absolute;
    width: 100%;
    aspect-ratio: 2004 / 235;
    bottom: 0;
    content: '';
    background-image: url('../img/map-end.png');
    background-position: top;
    background-size: 100%;
    background-repeat: no-repeat;
    translate: 0 100%;
    z-index: -1;
}

#site-nav {
    position: relative;
    translate: 0 -50%;
}

#site-nav::after {
    position: absolute;
    width: 100%;
    height: 50%;
    top: 50%;
    content: '';
    background-image: url('../img/metal-pattern.jpg');
    background-size: contain;
    box-shadow: 0 0 20px #000;
    translate: 0 -50%;
    z-index: -1;
}

#site-nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--gap-s);
    list-style-type: none;
}

#site-nav li {
    height: max-content;
    aspect-ratio: 250 / 59;
    background-image: url('../img/button.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    box-shadow: 0 0 20px 5px #000;
}

.nav-a {
    padding: calc(var(--gap-s) / 2) var(--gap-s);
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3rem;
    text-align: center;
    text-transform: uppercase;
    text-decoration: none;
    background: linear-gradient(to bottom, #ffae3e, #e18b34);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(1px 1px 5px #000);
}

.nav-a:not(.primary) {
    display: none;
}

.primary {
    font-size: 3.5rem;
    order: 2;
}

#site-nav li:nth-of-type(2) {
    order: 1;
}

#site-nav li:nth-of-type(3) {
    order: 3;
}

/* Intro */

#intro {
    margin-bottom: var(--gap-l);
}

#intro .box {
    margin-bottom: var(--gap-m);
}

/* Raffle */

#raffle {
    margin-bottom: var(--gap-l);
}

#raffle.grid {
    padding: 0;
}

.raffle-form {
    position: relative;
    margin-top: var(--gap-xl);
    margin-bottom: var(--gap-s);
}

.raffle-form img {
    position: absolute;
    top: 0;
    right: 0;
    translate: 5% -60%;
    transform: rotate(10deg) scale(80%);
    z-index: -1;
    filter: drop-shadow(0 0 20px #444);
}

/* Order */

.store-links {
    margin-bottom: var(--gap-s);
    text-align: center;
}

/* Content Block */

.content {
    justify-content: center;
    align-items: center;
    margin-bottom: var(--gap-xl);
}

.content-img {
    position: relative;
    grid-column: 1 / -1;
    aspect-ratio: 100 / 63;
}

.content-img::before {
    position: absolute;
    width: 100%;
    height: 100%;
    content: '';
    background-image: url('../img/image_bg.jpg');
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.content-img img {
    max-width: 100%;
    transform: scale(80%);
    translate: 0 6%;
    box-shadow: 0 0 10px 5px #000;
}

.content-text {
    position: relative;
    grid-column: 1 / -1;
    margin: 10% 0;
    color: #210b01;
    background-image: url('../img/paper_middle.jpg');
    background-size: 100%;
}

.content-text::before {
    position: absolute;
    width: 100%;
    aspect-ratio: 1506 / 123;
    content: '';
    background-image: url('../img/paper_top.png');
    background-size: contain;
    translate: 0 -100%;
}

.content-text::after {
    position: absolute;
    width: 100%;
    aspect-ratio: 1506 / 127;
    content: '';
    background-image: url('../img/paper_bottom.png');
    background-size: contain;
}

.content-text h2 {
    text-align: center;
}

.content-text p {
    padding: calc(var(--gap-s) / 2) var(--gap-s);
}

/* Newsletter */

.newsletter input[type=text] {
    width: 100%;
    padding: .25rem .5rem;
    font-family: 'TT2020', monospace;
    font-size: 1.25rem;
    background: transparent;
    border: 1px solid #000;
}

.newsletter form > *:not(:last-child) {
    margin-bottom: calc(var(--gap-s) / 2);
}

/* Media Slider */

.media-slider {
    position: relative;
    margin-bottom: var(--gap-l);
    text-align: center;
    background-image: linear-gradient(to bottom, transparent, #000, transparent);
}

.media-slider h2 {
    grid-row: 1 / 2;
}

.media-slider p {
    grid-column: 2 / -1;
    grid-row: 3 / 4;
    font-size: .75rem;
}

.media {
    /* position: relative; */
    grid-column: span 12;
    grid-row: 2 / 3;
    overflow: hidden;
}

.media a img {
    width: 100%;
}

.swiper-button-prev, .swiper-button-next {
    color: var(--keycol);
}

.yt-notice {
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    color: var(--keyclr-light);
    font-size: .75rem;
    background: #000000bf;
}

/* Site Footer */

#site-footer {
    position: relative;
    padding-bottom: var(--gap-l);
}

#site-footer::before, #site-footer::after {
    position: absolute;
    width: 50%;
    height: 100%;
    bottom: 0;
    content: '';
    background-size: contain;
    background-repeat: no-repeat;
    z-index: -1;
}

#site-footer::before {
    background-image: url('../img/fire_left.png');
    background-position: bottom left;
}

#site-footer::after {
    right: 0;
    background-image: url('../img/fire_right.png');
    background-position: bottom right;
}

#site-footer > div {
    grid-column: 1 / -1;
    text-align: center;
    font-size: .85rem;
}

.logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--gap-s);
    flex-wrap: wrap;
    margin-bottom: var(--gap-s);
}

#playtest {
    margin-bottom: var(--gap-l);
}

#playtest.grid {
    padding: 0;
}

.playtest, .cta {
    grid-column: 1 / -1;
}

.cta {
    display: grid;
    grid-template-columns: subgrid;
    row-gap: var(--gap-s);
}

/* Age Gate */

#age-header #logo {
    grid-column: 3 / span 4;
    justify-self: center;
    margin-top: var(--gap-l);
    max-width: 100%;
}

#age-gate h3, #age-gate form {
    grid-column: 3 / span 4;
    justify-self: center;
}

#age-gate h3 {
    grid-row: 1 / 2;
    margin-top: var(--gap-m);
}

#age-gate form {
    grid-row: 2 / 3;
}

#agegate .btn {
    display: block;
    margin: var(--gap-s) auto 0 auto;
}

.inputs {
    display: grid;
    grid-template-rows: repeat(4, 1fr);
    grid-template-columns: repeat(3, min-content);
    align-items: center;
    width: max-content;
    margin: 0 auto calc(var(--gap-m) / 2) auto;
}

label[for="month"], label[for="day"] {
    grid-row: 1 / 2;
    justify-self: center;
}

label[for="year"] {
    grid-row: 3 / 4;
    grid-column: 1 / span 2;
    justify-self: center;
    margin-top: var(--gap-s);
}

input[type="email"], input[type="text"], input[type="number"] {
    margin: 0 auto 1rem auto;
    padding: .5rem;
    font-family: 'TT2020', monospace;
    font-size: 1.2rem;
    border: 0;
}

#month, #day, #year {
    grid-row: 2 / 3;
    width: 6rem;
    margin: 0 var(--gap-s);
    justify-self: center;
    text-align: center;
}

#year {
    grid-row: 4 / 5;
    grid-column: 1 / span 2;
    width: auto;
    margin: 0 auto;
}

#agegate input[type=submit] {
    font-size: 1rem;
}

/* Responsive Media Queries */

@media (min-width: 500px ) {
    .grid, #raffle.grid, #playtest.grid {
        padding: 0 var(--gap-m);
    }

    .raffle-form img {
        transform: rotate(10deg) scale(90%);
    }
}

@media (min-width: 750px) {
    .grid, #raffle.grid, #playtest.grid {
        padding: 0 var(--gap-l);
    }

    #site-header {
        aspect-ratio: 64 / 27;
    }

    #site-header-small {
        aspect-ratio: 32 / 12;
    }

    .keyart {
        max-width: 75%;
    }

    #site-header-small .keyart {
        max-width: 60%;
    }

    .logo {
        max-width: 50%;
    }

    #site-header-small .logo {
        max-width: 35%;
    }

    .highlight p {
        padding: var(--gap-s) var(--gap-m);
    }

    .box {
        grid-column: 1 / -1;
    }

    .content-text p {
        padding: 0 var(--gap-m);
    }

    .box :where(h2, p, form, iframe) {
        padding: 0 var(--gap-m);
    }

    .box input[type=text] {
        width: 50%;
    }

    #site-footer > div {
        grid-column: 2 / span 6;
    }

    label[for="month"], label[for="day"], label[for="year"] {
        grid-row: 1 / 2;
    }

    label[for="year"] {
        margin-top: 0;
    }
    
    #month, #day, #year {
        grid-row: 2 / 3;
    }

    #month, label[for="month"] {
        grid-column: 1 / 2;
    }

    #day, label[for="day"] {
        grid-column: 2 / 3;
    }

    #year, label[for="year"] {
        grid-column: 3 / 4;
    }
}

@media (min-width: 1000px) {
    .raffle {
        position: relative;
    }
}

@media (min-width: 900px) {
    #site-header-small {
        aspect-ratio: 32 / 10;
    }
    
    .nav-a:not(.primary) {
        display: inline;
    }
}

@media (min-width: 1150px) {
    .content-img {
        grid-row: 1 / -1;
    }

    .content-text {
        grid-column: 5 / span 4;
        grid-row: 1 / -1;
        margin: 0;
    }

    .box {
        grid-column: 3 / span 4;
    }

    .playtest, .cta {
        grid-column: 1 / -1;
    }

    .raffle-form {
        margin-top: 0;
    }
    
    .raffle-form img {
        top: 50%;
        translate: 20% -60%;
    }

    #site-footer > div {
        grid-column: 3 / span 4;
    }
}

@media (min-width: 1200px) {
    .grid-item-left {
        grid-column: 1 / span 4;
        grid-row: 1 / -1;
    }
    
    .grid-item-right {
        grid-column: 5 / span 4;
        grid-row: 1 / -1;
    }

    #playtest {
        margin-bottom: var(--gap-xl);
    }
}

@media (min-width: 1700px) {
    .raffle-form {
        position: relative;
    }

    .raffle-form img {
        translate: -30% -60%;
    }
    
    .raffle-form img:hover {
        transform: rotate(10deg) scale(110%);
    }
}

@media (min-width: 2000px) {
    .raffle-form img {
        translate: -50% -60%;
    }
}

@media (min-width: 2300px) {
    .raffle-form img {
        translate: -100% -60%;
    }
}