@font-face {
    font-family: Anton;
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/anton/v27/1Ptgg87LROyAm3Kz-C8CSKlv.woff2) format("woff2");
}

@font-face {
    font-family: Oswald;
    font-style: normal;
    font-weight: 200 700;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/oswald/v57/TK3IWkUHHAIjg75cFRf3bXL8LICs1_Fv40pKlN4NNSeSASz7FmlWHYjMdZwl.woff2) format("woff2");
}

:root {
    color-scheme: light;
    --ink: #15130f;
    --bone: #f1e6cf;
    --mustard: #e3a82b;
    --brick: #b8402a;
    --rust: #d2602a;
    --dust: #d9cbae;
    --night-blue: #7fa8e0;
    --gutter: 16px;
    --rule: 2px;
    --control-rule: 3px;
    --offset-shadow: 5px;
    --display: Anton, "Arial Narrow", Impact, sans-serif;
    --label: Oswald, "Arial Narrow", sans-serif;
    --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--mustard);
    color: var(--ink);
    font-family: var(--body);
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.site-header,
main,
.site-footer {
    max-width: 1120px;
    margin: 0 auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}

.site-header {
    display: flex;
    justify-content: flex-end;
    padding-top: 16px;
}

.log-in,
.eyebrow,
.free-label,
.footer-links a {
    font-family: var(--label);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.log-in {
    font-size: 15px;
    text-decoration: none;
    border: var(--rule) solid var(--ink);
    padding: 6px 16px;
}

.log-in:hover,
.log-in:focus-visible {
    background: var(--ink);
    color: var(--bone);
}

.poster {
    display: grid;
    grid-template-areas: "copy" "grid" "actions";
    gap: 28px;
    padding: 24px 0 48px;
}

.poster-copy { grid-area: copy; }

.eyebrow {
    margin: 0 0 8px;
    font-size: 13px;
}

.game-title {
    margin: 0;
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(44px, 12vw, 96px);
    line-height: 1.15;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

.pitch {
    margin: 20px 0 0;
    font-family: var(--label);
    font-weight: 600;
    font-size: clamp(18px, 2.2vw, 24px);
    line-height: 1.4;
    max-width: 30ch;
}

.actions {
    display: flex;
    flex-direction: column;
    grid-area: actions;
    gap: 18px;
    max-width: 400px;
}

.main-action {
    display: block;
    background: var(--ink);
    color: var(--bone);
    font-family: var(--label);
    font-weight: 700;
    font-size: 17px;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
    padding: 18px 16px;
    box-shadow: var(--offset-shadow) var(--offset-shadow) 0 var(--brick);
}

.free-label { font-size: 13px; }

.run-grid {
    grid-area: grid;
    container-type: inline-size;
    width: 100%;
    max-width: 468px;
    padding: 0 var(--offset-shadow) var(--offset-shadow) 0;
}

.run-grid-board {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2.564cqi;
}

.fog,
.square {
    aspect-ratio: 1;
}

.fog {
    border: var(--rule) dashed var(--ink);
    opacity: 0.35;
}

.square {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2cqi;
    border: var(--control-rule) solid var(--ink);
    box-shadow: var(--offset-shadow) var(--offset-shadow) 0 var(--ink);
}

.square svg { display: block; }

.rating,
.event-mark {
    font-family: var(--display);
    line-height: 1;
}

.rating { font-size: 8.5cqi; }

.boss {
    background: var(--brick);
    outline: var(--rule) solid var(--bone);
    outline-offset: -7px;
}

.boss svg {
    width: 60%;
    fill: var(--bone);
}

.rival { background: var(--rust); }

.rival-emblem {
    width: 2.6cqi;
    fill: var(--ink);
}

.event,
.store { background: var(--mustard); }

.event-mark { font-size: 11cqi; }

.store svg {
    width: 62%;
    fill: none;
    stroke: var(--ink);
    stroke-width: 1.8;
    stroke-linejoin: round;
}

.game { background: var(--dust); }

.start { background: var(--night-blue); }

.player {
    position: relative;
    width: 60%;
    filter: hue-rotate(217deg);
}

.plinth {
    position: absolute;
    left: 25%;
    top: 72%;
    width: 50%;
    height: 10%;
    background: var(--ink);
}

.steps {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: var(--rule) solid var(--ink);
}

.steps li {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 16px;
    align-items: baseline;
    padding: 18px 0;
    border-bottom: var(--rule) solid var(--ink);
}

.step-number,
.steps h2 {
    font-family: var(--display);
    font-weight: 400;
    font-size: 24px;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

.steps h2 { margin: 0 0 6px; }

.steps p {
    margin: 0;
    font-size: 16px;
    line-height: 1.45;
}

.site-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding-top: 40px;
    padding-bottom: 40px;
    font-size: 13px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links a {
    font-size: 14px;
    text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible { text-decoration: underline; }

@media (min-width: 860px) {
    :root { --gutter: 32px; }

    .eyebrow { font-size: 15px; }

    .poster {
        grid-template-columns: 1fr minmax(0, 468px);
        grid-template-areas: "copy grid" "actions grid";
        grid-template-rows: auto 1fr;
        align-items: center;
        column-gap: 64px;
        row-gap: 28px;
        padding: 56px 0 80px;
    }

    .poster-copy { align-self: end; }

    .actions { align-self: start; }

    .steps {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
        border-top: 0;
    }

    .steps li {
        border-top: var(--rule) solid var(--ink);
        align-content: start;
    }
}
