* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --ink: #000000;
    --background: #faf9f5;
    --paper: #fff6ee;
    --mute: #555555;
    --line: #000000;
    --serif: 'Roboto Mono', monospace;
    --sans: 'IBM Plex Sans', 'Helvetica Neue', sans-serif;
}

html {
    min-height: 100%;
    max-width: 100%;
    overflow-x: hidden;
    scrollbar-gutter: stable;
}

body {
    font-family: var(--sans);
    font-size: 12px;
    color: var(--ink);
    background: var(--background);
    min-height: 100vh;
    max-width: 100%;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

.awards-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1fr);
    align-items: start;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    flex: 0 0 auto;
    min-width: 0;
}

.awards-menu-wrap {
    position: relative;
    z-index: 20;
    width: 100%;
    max-width: 100%;
    max-height: 30vh;
    min-width: 0;
    margin: 0;
    padding: 0;
    aspect-ratio: 1 / 1;
    transform-origin: top left;
}

.awards-menu-envelope {
    position: absolute;
    top: -20%;
    left: 5%;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: left top;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

.awards-menu {
    position: absolute;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: clamp(6px, 1vw, 12px);
    margin: 0;
    top: 15%;
    left: 15%;
    right: 5%;
    transform: rotate(-3deg);
    width: auto;
    min-height: 100%;
    height: auto;
    box-sizing: border-box;
    padding: clamp(12px, 1.4vw, 20px) clamp(12px, 1.8vw, 20px);
    border-radius: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
    background: url('assets/awards/back.png') center / cover no-repeat;
}

.awards-menu-title {
    margin: 0;
    font-family: 'Gupter', serif;
    font-size: clamp(1rem, 2.2vw, 1.8rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--ink);
}

.awards-menu-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: flex-start;
    align-items: stretch;
    gap: clamp(2px, 0.6vw, 6px) clamp(6px, 1.2vw, 12px);
    flex: 1 0 auto;
    width: 100%;
}

.awards-menu-item {
    appearance: none;
    display: block;
    flex: 1 1 calc(33.333% - 12px);
    min-width: 0;
    max-width: 100%;
    margin: 0;
    padding: 4px 2px;
    border: 0;
    background: transparent;
    font-family: var(--sans);
    font-size: clamp(0.7rem, 1.4vw, 1.05rem);
    font-weight: 400;
    text-align: left;
    white-space: normal;
    text-transform: uppercase;
    overflow-wrap: anywhere;
    color: #b5b5b5;
    cursor: pointer;
    transition: color 0.2s ease;
}

.awards-menu-item.is-active {
    color: var(--ink);
}

.awards-menu-item.is-voted {
    text-decoration: line-through;
    text-decoration-thickness: 1.5px;
}

.awards-menu-item:not(.is-active):hover {
    color: #777777;
}

.awards-menu-item:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 2px;
    color: var(--ink);
}

.awards-menu-submit {
    position: relative;
    z-index: 4;
    flex: 0 0 auto;
    width: 100%;
    margin-top: auto;
    padding: 8px 12px;
    font-size: clamp(0.7rem, 1.4vw, 1.05rem);
}

.ballot-seal {
    position: absolute;
    left: 50%;
    top: 42%;
    pointer-events: none;
    user-select: none;
}

.ballot-seal {
    z-index: 3;
    width: min(220px, 64%);
    height: auto;
    opacity: 0;
    transform: translate(-50%, -58%) scale(1.25) rotate(-14deg);
}

.ballot-seal.is-sealed {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(-8deg);
}

.ballot-seal.is-slamming {
    animation: ballot-seal-hit 0.28s cubic-bezier(0.15, 0.85, 0.2, 1) forwards;
}

.ballot-seal.is-lifting {
    animation: ballot-seal-lift 0.28s ease-in forwards;
}

@keyframes ballot-seal-hit {
    0% {
        opacity: 0;
        transform: translate(-50%, -216%) scale(2) rotate(-22deg);
    }
    30% {
        opacity: 1;
    }
    60% {
        opacity: 1;
        transform: translate(-50%, -44%) scale(0.9) rotate(-4deg);
    }
    74% {
        opacity: 1;
        transform: translate(-50%, -54%) scale(1.06) rotate(-11deg);
    }
    87% {
        opacity: 1;
        transform: translate(-50%, -49%) scale(0.98) rotate(-7deg);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) rotate(-8deg);
    }
}

@keyframes ballot-seal-lift {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) rotate(-8deg);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -68%) scale(1.12) rotate(-14deg);
    }
}

.awards-menu.is-sealing {
    animation: ballot-paper-hit 0.8s linear 0.28s both;
}

@keyframes ballot-paper-hit {
    0% {
        transform: rotate(-3deg);
    }
    12% {
        transform: rotate(-7deg) translate(3px, 5px);
    }
    28% {
        transform: rotate(0.5deg) translate(-3px, -2px);
    }
    46% {
        transform: rotate(-5deg) translate(2px, 2px);
    }
    64% {
        transform: rotate(-1.5deg) translate(-1px, -1px);
    }
    82% {
        transform: rotate(-3.8deg) translate(1px, 1px);
    }
    100% {
        transform: rotate(-3deg);
    }
}

.tiltify-ticket-btn {
    appearance: none;
    display: block;
    position: relative;
    z-index: 20;
    width: 100%;
    max-width: 100%;
    max-height: 30vh;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    line-height: 0;
    transform: rotate(10deg) scale(1);
    transform-origin: top right;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.tiltify-ticket-btn img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 40vh;
    object-fit: contain;
    object-position: right top;
    pointer-events: none;
    user-select: none;
}

.tiltify-ticket-btn:hover {
    transform: rotate(0deg) scale(1.15);
}

.tiltify-ticket-btn:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 2px;
}

.awards-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-align: center;
    margin: 0;
    padding: clamp(12px, 2.5vw, 28px) clamp(8px, 2vw, 20px);
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.awards-support-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 12px 32px;
    width: 100%;
    max-height: 80px;
    max-width: 100%;
    min-width: 0;
}

.awards-support-col {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 0;
    flex: 0 1 auto;
    align-self: stretch;
    min-width: 0;
    min-height: 100%;
    max-width: 200px;
    text-align: center;
}

.awards-support {
    margin: 0;
    font-family: var(--sans);
    font-size: max(16px, 0.85rem);
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--mute);
}

.awards-support-link {
    display: inline-block;
    line-height: 0;
}

.awards-support-logo {
    display: block;
    width: auto;
    height: auto;
    max-width: 150px;
    max-height: 70px;
}

.awards-support-link:hover .awards-support-logo {
    opacity: 0.75;
}

.awards-title-wrap {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    padding: 5em;
    box-sizing: border-box;
    background: url('assets/awards/star.png') center;
}

.awards-title-row {
    position: relative;
    display: inline-block;
    max-width: 100%;
    margin: 0;
    padding: 0;
    min-width: 0;
}

.awards-title-aside {
    position: absolute;
    margin: 0;
    font-family: 'Gupter', serif;
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 300;
    font-style: italic;
    line-height: 1;
    color: var(--ink);
    white-space: nowrap;
}

.awards-title-aside-left {
    right: 100%;
    bottom: 100%;
    transform: translateX(0.8em);
}

.awards-title-aside-right {
    left: 100%;
    top: 100%;
    transform: translateX(-0.8em);
}

.awards-title {
    margin: 0;
    font-family: 'Gupter', serif;
    font-size: clamp(2.4rem, 7vw, 4.2rem);
    font-weight: 600;
    letter-spacing: -0.06em;
    line-height: 0.92;
    color: var(--ink);
    overflow-wrap: break-word;
    text-align: center;
}

.awards-subtitle {
    margin: 0;
    max-width: 36rem;
    font-family: var(--sans);
    font-size: max(18px, 0.92rem);
    font-weight: 400;
    line-height: 1.45;
    text-align: center;
    color: var(--mute);
}

.awards-subtitle-link {
    margin: 0;
    font-family: var(--sans);
    font-size: max(18px, 0.92rem);
    font-weight: 400;
    line-height: 1.45;
    color: #1a4ed8;
    text-decoration: none;
}

.awards-subtitle-link:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.awards-ticket-row {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4px 20px 12px;
    flex: 0 0 auto;
}

.awards-ticket-btn {
    appearance: none;
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    line-height: 0;
    width: clamp(160px, 28vw, 260px);
}

.awards-ticket-btn img {
    display: block;
    width: 100%;
    height: auto;
    pointer-events: none;
    user-select: none;
}

.awards-ticket-btn:hover {
    opacity: 0.7;
}

.awards-ticket-btn:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 2px;
}

.awards-stage {
    flex: 1;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 0 12px 28px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
}

.awards-nav-pair {
    display: contents;
}

.awards-nav-prev {
    order: 1;
}

.awards-stage-viewport {
    flex: 1 1 auto;
    min-width: 0;
    max-width: min(1120px, 100%);
    overflow: hidden;
    order: 2;
}

.awards-nav-next {
    order: 3;
}

.awards-stage-track {
    display: flex;
    flex-direction: row;
    width: 100%;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.awards-nav-btn {
    appearance: none;
    flex: 0 0 auto;
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    line-height: 0;
    opacity: 1;
    transition: opacity 0.2s ease;
}

.awards-nav-btn img {
    display: block;
    width: auto;
    height: auto;
    max-width: none;
    pointer-events: none;
    user-select: none;
}

.awards-nav-prev img {
    transform: scaleX(-1);
}

.awards-nav-btn.is-dimmed,
.awards-nav-btn:disabled {
    opacity: 0.2;
    cursor: default;
}

.awards-nav-btn:not(:disabled):hover {
    opacity: 0.7;
}

.awards-nav-btn:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 2px;
}

.awards-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 12px 12px 12px;
    box-sizing: border-box;
    isolation: isolate;
}

.awards-category {
    margin: 0;
    font-family: 'Gupter', serif;
    font-size: clamp(1.8rem, 3vw, 3rem);
    font-weight: 500;
    letter-spacing: -0.03em;
    text-transform: none;
    text-align: center;
    color: var(--ink);
    max-width: 100%;
    overflow-wrap: none;
    overflow: visible;
    padding: 12px;
}

.awards-carousel {
    display: grid;
    grid-template-columns: repeat(var(--columns, 5), minmax(0, 1fr));
    align-items: stretch;
    gap: 6px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.awards-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    min-width: 0;
    height: 100%;
}

.awards-flip {
    appearance: none;
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    perspective: 1000px;
    line-height: 0;
    overflow: hidden;
    isolation: isolate;
    transform: translateZ(0);
    -webkit-tap-highlight-color: transparent;
}

.awards-flip:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 2px;
}

.awards-flip-inner {
    position: relative;
    width: 100%;
    transform-style: preserve-3d;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.awards-flip.is-flipped .awards-flip-inner {
    transform: rotateY(180deg);
}

.awards-flip-front,
.awards-flip-back {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.awards-flip-front {
    width: 100%;
}

.awards-image {
    display: block;
    width: 100%;
    max-width: 300px;
    height: auto;
    object-fit: contain;
    user-select: none;
    pointer-events: none;
}

.awards-flip-back {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: url('assets/awards/back.png') center / cover no-repeat;
    border: 0;
    transform: rotateY(180deg);
    text-align: center;
}

.awards-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 100%;
    min-width: 0;
    text-align: center;
}

.nominee-name,
.nominee-game,
.nominee-studio {
    max-width: 100%;
    overflow-wrap: anywhere;
}

.nominee-name {
    margin: 0;
    font-family: var(--serif);
    font-size: max(20px, 0.95rem);
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--ink);
}

.nominee-game {
    margin: 0;
    font-family: var(--sans);
    font-size: max(18px, 0.85rem);
    font-style: italic;
    font-weight: 400;
    line-height: 1.35;
    color: var(--ink);
}

.nominee-studio {
    margin: 0;
    font-family: var(--sans);
    font-size: max(14px, 0.85rem);
    font-weight: 400;
    line-height: 1.35;
    color: var(--mute);
}

@media (hover: hover) and (pointer: fine) {
    .awards-flip:hover .awards-flip-inner,
    .awards-flip:focus-visible .awards-flip-inner {
        transform: rotateY(180deg);
    }
}

.awards-column:has(.vote-pad.is-stamped),
.awards-column:has(.vote-pad.is-stamping) {
    position: relative;
    z-index: 5;
}

.vote-pad {
    appearance: none;
    position: relative;
    display: block;
    width: 100%;
    margin-top: auto;
    padding: 0;
    border: 0;
    border-radius: 14px;
    background: #f0eeeb;
    aspect-ratio: 2.4 / 1;
    min-height: 56px;
    cursor: pointer;
    overflow: visible;
    -webkit-tap-highlight-color: transparent;
}

.vote-pad::before {
    content: 'place vote';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 0;
    font-family: var(--sans);
    font-size: clamp(0.85rem, 1.6vw, 1.1rem);
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.5);
    pointer-events: none;
    user-select: none;
}

.vote-pad:hover {
    background: #e9e7e4;
}

.vote-pad:focus-visible {
    outline: 0px solid transparent;
    outline-offset: 2px;
}

.vote-stamp {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 1;
    width: auto;
    height: 180%;
    object-fit: cover;
    pointer-events: none;
    user-select: none;
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.5) rotate(-18deg);
}

.vote-pad.is-stamped .vote-stamp {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(-8deg);
}

.vote-pad.is-stamping .vote-stamp {
    animation: vote-stamp-hit 0.28s ease-out forwards;
}

@keyframes vote-stamp-hit {
    0% {
        opacity: 0;
        transform: translate(-50%, -54%) scale(1.55) rotate(-16deg);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) rotate(-8deg);
    }
}

.awards-submit-btn {
    appearance: none;
    margin: 0;
    padding: 12px 28px;
    border: 1.5px solid var(--ink);
    border-radius: 0;
    background: #98d054;
    font-family: 'Gupter', serif;
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--ink);
    cursor: pointer;
    transition: transform 80ms ease-out;
}

.awards-submit-btn:hover:not(:disabled) {
    background: var(--ink);
    color: var(--paper);
}

.awards-submit-btn.is-pressing {
    transform: scale(0.96);
}

.awards-submit-btn.is-relabel {
    animation: submit-relabel 0.2s ease-out;
}

@keyframes submit-relabel {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.awards-submit-btn:disabled {
    opacity: 0.45;
    cursor: default;
}

.awards-submit-btn.is-sending:disabled {
    opacity: 1;
    cursor: wait;
}

.awards-submit-btn:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 3px;
}

.awards-footer {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 8px 16px;
    padding: 20px 12px;
    margin-top: auto;
    box-sizing: border-box;
    overflow: hidden;
    border-top: 1px solid var(--ink);
}

.copyright-text {
    margin: 0;
    font-family: var(--sans);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.12em;
    line-height: 1;
    text-transform: uppercase;
    color: var(--mute);
    white-space: nowrap;
}

.legal-links {
    display: flex;
    gap: 12px;
}

.legal-links a {
    font-family: var(--sans);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.12em;
    line-height: 1;
    text-transform: uppercase;
    color: var(--ink);
    text-decoration: none;
    white-space: nowrap;
}

.legal-links a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 900px) {
    .awards-top {
        display: contents;
    }

    .awards-header {
        order: 1;
        max-height: none;
        padding: 20px 16px 12px;
    }

    .tiltify-ticket-btn {
        order: 2;
        width: min(280px, 72vw);
        max-width: 100%;
        max-height: none;
        margin: 4px auto 12px;
        transform: rotate(6deg);
        transform-origin: center center;
    }

    .tiltify-ticket-btn img {
        max-height: none;
    }

    .awards-stage {
        order: 3;
        display: block;
        padding: 8px 12px 16px;
        flex: 0 0 auto;
        width: 100%;
    }

    .awards-stage-viewport {
        width: 100%;
        max-width: 100%;
    }

    .awards-nav-pair {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: center;
        justify-items: center;
        gap: 12px;
        width: 100%;
        max-width: 150px;
        align-self: center;
        justify-self: center;
    }

    .awards-nav-prev,
    .awards-nav-next {
        order: unset;
    }

    .awards-carousel .awards-nav-btn {
        width: 100%;
    }

    .awards-carousel .awards-nav-btn img {
        max-width: 72px;
        width: 100%;
        height: auto;
        margin-inline: auto;
    }

    .awards-menu-wrap {
        order: 4;
        width: min(100%, 420px);
        max-width: 100%;
        max-height: none;
        aspect-ratio: auto;
        margin: 8px auto 28px;
        padding: 0 12px;
        box-sizing: border-box;
    }

    .awards-menu-envelope {
        left: -20px;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .awards-menu {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        width: 100%;
        height: auto;
        transform: none;
    }

    .ballot-seal {
        width: min(176px, 51.2%);
    }

    .awards-menu.is-sealing {
        animation-name: ballot-paper-hit-flat;
    }

    @keyframes ballot-paper-hit-flat {
        0% {
            transform: none;
        }
        12% {
            transform: rotate(-3.5deg) translate(2px, 4px);
        }
        28% {
            transform: rotate(1.5deg) translate(-2px, -1px);
        }
        46% {
            transform: rotate(-2.2deg) translate(1px, 2px);
        }
        64% {
            transform: rotate(0.6deg) translate(-1px, 0);
        }
        100% {
            transform: none;
        }
    }

    .awards-carousel {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(100px, 150px));
        justify-content: center;
        align-items: stretch;
        gap: 16px;
        width: 100%;
        max-width: 100%;
        margin-inline: auto;
    }

    .awards-column {
        width: auto;
        max-width: none;
        height: auto;
        margin-inline: 0;
    }

    .awards-column > * {
        max-width: 100%;
    }

    .nominee-name {
        font-size: 14px;
    }

    .awards-footer {
        order: 5;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        text-align: center;
        height: auto;
    }

    .copyright-text,
    .legal-links a {
        font-size: 10px;
    }
}
