
:root {
    --bg: #0c0e0e;
    --panel: #111414;
    --panel-hover: #191b1b;
    --border: #353735;
    --text: #f1eee5;
    --muted: #aaa9a1;
    --orange: #ff5a1f;
    --sidebar-width: 248px;
    --font-body: "Inter", sans-serif;
    --font-display: "Space Mono", monospace;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
}

.brand-title,
.featured h1,
.section-title h2,
.eyebrow {
    font-family: var(--font-display);
}

.featured-description,
.game-card-info > p:last-child {
    font-family: var(--font-body);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.app-shell {
    min-height: 100vh;
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 5;
    width: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    padding: 34px 17px 20px;
    overflow: hidden;
    color: #151411;
    background:
        radial-gradient(ellipse at bottom left, #bd3716 0%, transparent 45%),
        linear-gradient(150deg, #ff6b32, #ff5a1f 65%, #ec4b18);
    border-right: 1px solid #d84a1d;
}

.brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    line-height: 0.88;
}

.brand-icon {
    font-size: 43px;
    font-weight: bold;
}

.brand-title {
    font-size: 27px;
    font-weight: 900;
    letter-spacing: -2px;
}

.brand-caption {
    margin: 25px 0 22px;
    text-align: center;
    font-size: 13px;
    line-height: 1.8;
    letter-spacing: 1.5px;
}

.side-nav {
    display: grid;
    gap: 5px;
}

.side-link {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 39px;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 14px;
}

.side-link > span {
    width: 22px;
    text-align: center;
    font-size: 17px;
}

.side-link:hover,
.side-link.active {
    color: var(--orange);
    background: #111414;
}


.sidebar-art {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: flex-end;
    gap: 7px;
    margin: 22px -17px -20px;
    padding: 30px 20px;
    background:
        repeating-linear-gradient(
            0deg,
            transparent 0 12px,
            rgba(30, 16, 10, 0.12) 13px 14px
        ),
        linear-gradient(0deg, rgba(80, 22, 7, 0.3), transparent);
    border-top: 1px dotted rgba(20, 16, 12, 0.5);
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 1px;
}

.main-column {
    min-width: 0;
    margin-left: var(--sidebar-width);
    padding: 0 27px;
}

.topbar {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    max-width: 1600px;
    margin: 0 auto;
}

.top-search {
    width: min(600px, 75%);
    min-height: 37px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 12px;
    border: 1px solid var(--orange);
}

.top-search > span {
    color: var(--orange);
    font-size: 25px;
}

.top-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-size: 13px;
}

.theme-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 0;
    background: transparent;
    color: var(--text);
    font-size: 23px;
    cursor: pointer;
}

.toggle-track {
    width: 38px;
    height: 21px;
    padding: 2px;
    border: 1px solid #888;
    border-radius: 20px;
}

.toggle-track span {
    display: block;
    width: 15px;
    height: 15px;
    margin-left: auto;
    border-radius: 50%;
    background: var(--orange);
}

.homepage {
    max-width: 1600px;
    margin: 0 auto;
}

.featured {
    height: 560px;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 185px;
    overflow: hidden;
    border: 1px solid #c9c0a9;
    background: #111313;
}

.featured-hero {
    position: relative;
    isolation: isolate;
    min-width: 0;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #191b1b;
}

.featured-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    pointer-events: none;
}

.featured-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        90deg,
        rgba(8, 10, 10, 0.96) 0%,
        rgba(8, 10, 10, 0.82) 36%,
        rgba(8, 10, 10, 0.28) 72%,
        rgba(8, 10, 10, 0.08) 100%
    );
    pointer-events: none;
}

.featured-copy {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    max-width: 520px;
    padding: 28px 30px;
    text-align: left;
}

.eyebrow,
.section-title h2 {
    color: var(--orange);
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 0.4px;
}

.eyebrow {
    margin: 0 0 8px;
}

.featured h1 {
    margin: 0;
    font-size: clamp(36px, 4vw, 60px);
    line-height: 1.1;
    letter-spacing: -3px;
}

.featured-year {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: bold;
}

.featured-description {
    max-width: 250px;
    color: #d0cec7;
    font-size: 14px;
    line-height: 1.55;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    line-clamp: 5;
    overflow: hidden;
}

.featured-thumbnails {
    min-width: 0;
    display: grid;
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 7px;
    border-left: 1px solid #c9c0a9;
    background: #101212;
}

.screenshot {
    min-height: 0;
    /* border: 1px solid #353a36; */
    border-radius: 3px;
    background: #191b1b;
}

.outline-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 9px 16px;
    border: 1px solid var(--orange);
    border-radius: 4px;
    color: var(--orange);
    font-size: 13px;
    font-weight: bold;
}

.outline-button:hover {
    background: var(--orange);
    color: #111;
}

.slider-dots {
    display: flex;
    gap: 11px;
    margin-top: 25px;
}

.slider-dots span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #393b3a;
}

.slider-dots .selected {
    background: var(--orange);
}

    .slider-dot {
        width: 11px;
        height: 11px;
        padding: 0;
        border: none;
        border-radius: 50%;
        background-color: #444;
        cursor: pointer;
    }

    .slider-dot.selected {
        background-color: #ff5722;
    }

    .slider-dot:focus-visible {
        outline: 2px solid #f5f5f5;
        outline-offset: 3px;
    }

.featured-gallery {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 31%;
    border-left: 1px solid #574b3c;
}

.featured-main-image {
    min-width: 0;
    background: #191b1b;
}

.featured-thumbnails {
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    gap: 6px;
    padding: 7px;
    border-left: 1px solid #574b3c;
}

.screenshot {
    min-height: 0;
    border: 1px solid #343635;
    border-radius: 5px;
    background:
        linear-gradient(145deg, transparent, rgba(0, 0, 0, 0.55)),
        #26352f;
}

.featured-thumbnails .screenshot {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.featured-thumbnails .screenshot img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.content-section {
    margin-top: 18px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
}

.section-title h2 {
    flex-shrink: 0;
    margin: 0;
    font-size: 14px;
}

.section-title > span {
    height: 1px;
    flex: 1;
    background: var(--orange);
}

.section-title > a {
    flex-shrink: 0;
    color: var(--orange);
    font-size: 12px;
}

.genre-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.genre-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    background: transparent;
    color: #f5f5f5;
    cursor: pointer;
}

.genre-arrow .material-symbols-outlined {
    font-size: 28px;
    line-height: 1;
}

.genre-arrow:hover:not(:disabled) {
    color: #ff5722;
}

.genre-arrow:disabled {
    opacity: 0.35;
    cursor: default;
}

/* Horizontal genre list */
.genre-row {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding-bottom: 4px;
}

.genre-row::-webkit-scrollbar {
    display: none;
}

.genre-tile {
      flex: 0 0 180px;
    min-width: 0;
    min-height: 100px;
    box-sizing: border-box;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 16px;
    text-align: center;
    text-decoration: none;

    background-color: #191b1b;
    border: 1px solid #353a36;
    border-radius: 4px;
    color: #f5f5f5;

    transition: border-color 0.2s ease,
                background-color 0.2s ease;
}
.genre-tile small {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 540;
}

.genre-tile:hover {
    background-color: #222625;
    border-color: #ff5722;
    color: #ff5722;
}

.game-row {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
}

.game-card {
    min-width: 0;
}

.cover {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background-color: #191b1b;
    border: 1px solid #353a36;
    color: #f5f5f5;
    text-decoration: none;
}

.cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-genre,
.game-year {
    position: absolute;
    top: 10px;
    padding: 5px 7px;
    background-color: rgba(12, 14, 13, 0.88);
    border: 1px solid #454940;
    font-family: var(--font-display);
    font-size: 11px;
    line-height: 1.2;
}

.game-genre {
    left: 10px;
}

.game-year {
    right: 10px;
}

.game-title {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    margin: 0;
    padding: 30px 10px 14px;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(8, 10, 10, 0.95)
    );
    font-family: var(--font-display);
    font-size: 14px;
    line-height: 1.4;
    font-weight: 700;
    text-align: center;
    overflow-wrap: anywhere;
}

.cover:hover {
    border-color: #ff5722;
}

.cover img {
    transition: transform 0.25s ease;
}

.cover:hover img {
    transform: scale(1.04);
}


.release-year {
    margin: 3px 0 7px;
    color: var(--muted);
    font-size: 11px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.tags span {
    padding: 3px 6px;
    border: 1px solid #777;
    border-radius: 3px;
    color: #ddd;
    font-size: 10px;
}

.tags span:first-child {
    border-color: var(--orange);
    color: var(--orange);
}

.game-card-info > p:last-child {
    margin: 8px 0 0;
    color: #bcbcb6;
    font-size: 11px;
    line-height: 1.5;
}

.year-row {
    display: grid;
    grid-template-columns: repeat(11, minmax(0, 1fr));
    gap: 8px;
}

.year-tile {
    min-width: 0;
    aspect-ratio: 0.8;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 7px 2px;
    border: 1px solid #353735;
    border-radius: 4px;
    background: linear-gradient(160deg, #34423d, #161918 70%);
    font-size: 11px;

    position: relative;
    overflow: hidden;
}

.year-tile img {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.year-tile span {
    position: absolute;
    z-index: 1;

    bottom: 0;
    left: 0;

    width: 100%;
    padding: 10px 0;

    text-align: center;

    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.9),
        rgba(0, 0, 0, 0.55),
        transparent
    );
}

.year-tile:hover,
.year-tile.selected {
    border: 2px solid var(--orange);
    color: var(--orange);
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    max-width: 1600px;
    margin: 28px auto 0;
    padding: 20px 0;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 11px;
}

.footer-brand {
    color: var(--text);
    font-family: "Courier New", monospace;
    font-weight: bold;
}

.footer-brand span {
    color: var(--orange);
}

.site-footer p {
    margin: 0;
}

@media (max-width: 1250px) {

    .featured {
    height: 620px;
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) 260px;
    }
    .sidebar {
        --sidebar-width: 210px;
    }

    .main-column {
        padding-inline: 18px;
    }

    .genre-row {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .game-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .year-row {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}
@media (min-width: 1200px) {
    /* .featured {
        min-height: 580px;
        grid-template-columns: minmax(0, 1fr) 260px;
    }

    .featured-copy {
        max-width: 480px;
        padding: 36px 30px;
    }

    .featured-thumbnails {
        padding: 8px;
        gap: 8px;
    } */
}

@media (max-width: 760px) {
    :root {
        --sidebar-width: 0px;
    }

    .sidebar {
        position: static;
        width: 100%;
        min-height: auto;
        padding: 16px;
    }

    .brand {
        justify-content: flex-start;
    }

    .brand-icon,
    .brand-caption,
    .sidebar-art {
        display: none;
    }

    .featured-description {
        -webkit-line-clamp: 4;
        line-clamp: 4;
    }
    .brand-title {
        font-size: 20px;
        line-height: 1;
    }

    .side-nav {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        margin-top: 18px;
    }

    .side-link {
        justify-content: center;
        gap: 6px;
        padding-inline: 5px;
        font-size: 12px;
    }

    .main-column {
        margin-left: 0;
        padding-inline: 14px;
    }

    .topbar {
        min-height: 62px;
    }

    .featured {
    height: 700px;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) 180px;
    }

    .featured-copy {
        padding: 24px;
    }

    .featured-gallery {
        min-height: 190px;
        grid-template-columns: minmax(0, 1fr) 30%;
        border-top: 1px solid #574b3c;
        border-left: 0;
    }

    .genre-row {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 7px;
    }

    .genre-tile {
        min-height: 70px;
    }

    .game-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .year-row {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .genre-tile {
        flex-basis: 150px;
    }

    .genre-arrow .material-symbols-outlined {
        font-size: 25px;
    }
}

@media (max-width: 380px) {
   
    .genre-tile {
        flex-basis: 150px;
    }

    .genre-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .game-row {
        grid-template-columns: 1fr;
    }

    .genre-arrow .material-symbols-outlined {
        font-size: 25px;
    }
}


/*===========Genres Page===========*/

.main-content {
    min-width: 0;
    margin-left: var(--sidebar-width);
    padding: 18px 27px 0;
}

.genres-page {
    width: 100%;
    min-width: 0;
    max-width: 1600px;
    margin: 0 auto;
}


.genre-search {
    margin: 24px 0 32px;
}

.genre-search input {
    width: 100%;
    max-width: 470px;
    padding: 12px 14px;
    background: #111313;
    border: 1px solid #ff5722;
    color: #f5f5f5;
    font-family: var(--font-body);
    font-size: 14px;
    outline: none;
}

.genre-search input:focus {
    border-color: #ff7548;
}

.genres-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fill,
        minmax(150px, 1fr)
    );
    gap: 20px;
}

.genre-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    aspect-ratio: 1 / 1;
    padding: 16px;
    background: #191b1b;
    border: 1px solid #45433c;
    color: #f5f5f5;
    font-family: var(--font-display);
    font-size: 14px;
    text-align: center;
    text-decoration: none;
    overflow-wrap: anywhere;
    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        opacity 0.2s ease;
}

.genre-card:hover,
.genre-card:focus-visible {
    border-color: #ff5722;
    background: #202321;
}

.genre-card.is-disabled {
    opacity: 0.3;
    pointer-events: none;
    order: 1;
}

.genre-card:not(.is-disabled) {
    order: 0;
}

.genre-card-hidden {
    display: none;
}

@media (max-width: 1250px) {
    .genres-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 20px;
    }
}

@media (max-width: 760px) {
        .main-content {
        margin-left: 0;
        padding: 14px;
    }

    .genres-page {
        margin: 0;
    }

    .genre-search {
        margin-block: 20px 24px;
    }

    .genre-search input {
        max-width: none;
        box-sizing: border-box;
    }
    
    .genres-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }

    .genre-card {
        padding: 10px;
        font-size: 12px;
    }
}

@media (max-width: 600px) {
    .genres-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
}

@media (max-width: 380px) {
    .genres-grid {
        gap: 8px;
    }

    .genre-card {
        padding: 8px;
        font-size: 11px;
    }
}

@media (max-width: 760px) {
    .genre-search {
        margin-block: 20px 24px;
    }

    .genre-search input {
        max-width: none;
        box-sizing: border-box;
    }
}
/*===========END Genres Page===========*/

/*===========GAME LIST Page===========*/
.games-page {
    width: 100%;
}

/* Search */

.game-search {
    width: 100%;
    margin: 24px 0 30px;
}

.game-search input {
    width: 100%;
    padding: 12px 14px;

    background: #111313;
    color: #f5f5f5;

    border: 1px solid #ff5a1f;
    border-radius: 0;

    font-family: "Inter", sans-serif;
    font-size: 14px;
}

.game-search input::placeholder {
    color: #999;
}

.game-search input:focus {
    outline: 1px solid #ff6b32;
    outline-offset: 2px;
}

/* Games grid */

.games-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
}

/* Individual game card */

.games-grid .game-card {
    min-width: 0;
}

.games-grid .cover {
    position: relative;
    display: block;

    width: 100%;
    aspect-ratio: 3 / 4;

    overflow: hidden;

    background: #111313;
    border: 1px solid #393939;

    color: #f5f5f5;
    text-decoration: none;
}

/* Game cover */

.games-grid .cover img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    transition: transform 0.25s ease;
}

.games-grid .cover:hover img {
    transform: scale(1.04);
}

/* Genre and year labels */

.games-grid .game-genre,
.games-grid .game-year {
    position: absolute;
    top: 10px;

    padding: 4px 7px;

    background: rgba(12, 13, 13, 0.9);
    border: 1px solid #393939;

    font-family: "Space Mono", monospace;
    font-size: 10px;
    line-height: 1.4;
}

.games-grid .game-genre {
    left: 10px;
}

.games-grid .game-year {
    right: 10px;
}

/* Game title */

.games-grid .game-title {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;

    margin: 0;
    padding: 28px 10px 10px;

    background: linear-gradient(
        to bottom,
        transparent,
        rgba(0, 0, 0, 0.95)
    );

    color: #f5f5f5;

    font-family: "Space Mono", monospace;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;

    overflow-wrap: anywhere;
}

.games-page-description {
    margin: 16px 0 24px;

    color: #bdbdbd;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    line-height: 1.7;

    max-width: 800px;
}

.back-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    padding: 8px 12px;

    color: #F5F5F5;
    background-color: #1C1C1C;
    border: 1px solid #FF5A1F;

    font-family: 'Space Mono', monospace;
    font-size: 12px;
    text-decoration: none;
    white-space: nowrap;

    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.back-button:hover {
    background-color: #FF5A1F;
    color: #1C1C1C;
}

.back-button .material-symbols-outlined {
    font-size: 18px;
}
/* Search results */

.games-grid .game-card-hidden {
    display: none;
}

.no-games-message {
    margin-top: 30px;

    color: #bdbdbd;
    font-family: "Inter", sans-serif;
    font-size: 14px;
}

/* Responsive */

@media (max-width: 1100px) {
    .games-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .games-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
    }

    .game-search {
        margin: 20px 0 24px;
    }
}

@media (max-width: 480px) {
    .games-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .games-grid .game-genre,
    .games-grid .game-year {
        top: 6px;
        padding: 3px 5px;
        font-size: 9px;
    }

    .games-grid .game-genre {
        left: 6px;
    }

    .games-grid .game-year {
        right: 6px;
    }

    .games-grid .game-title {
        padding: 24px 7px 7px;
        font-size: 11px;
    }
}

/*===========End GAME LIST Page===========*/

/*===========YEARS Page===========*/

.years-page {
    width: 100%;
}

.years-description {
    margin: 24px 0;
    color: #B8B8B8;
    font-size: 14px;
    line-height: 1.6;
}


/* =========================================
   YEAR SEARCH
========================================= */

.archive-years-search {
    width: 100%;
    margin-bottom: 24px;
}

.archive-years-search input {
    width: 100%;
    padding: 12px;

    background-color: #111111;
    color: #F5F5F5;

    border: 1px solid #FF5A1F;
    border-radius: 0;

    font-family: var(--font-body);
    font-size: 13px;

    outline: none;

    transition: border-color 0.2s ease;
}

.archive-years-search input:focus {
    border-color: #F5F5F5;
}

.archive-years-search input::placeholder {
    color: #999999;
}


/* =========================================
   YEARS GRID
========================================= */

.archive-years-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}


/* =========================================
   YEAR CARD
========================================= */

.archive-year-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;

    min-height: 190px;
    padding: 20px;

    background-color: #1C1C1C;
    border: 1px solid #343434;
    border-radius: 3px;

    color: #F5F5F5;
    text-decoration: none;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}


/* Year number */

.archive-year-number {
    display: block;
    margin: 0;

    color: #F5F5F5;

    font-family: var(--font-body);
    font-size: clamp(28px, 2.5vw, 36px);
    font-weight: 700;

    letter-spacing: -2px;

    transition: color 0.2s ease;
}


/* Bottom action */

.archive-year-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    width: 100%;

    color: #B8B8B8;

    font-family: var(--font-body);
    font-size: 10px;
    letter-spacing: 0.3px;
}


/* Event icon */

.archive-year-icon {
    color: #FF5A1F;
    font-size: 20px;

    transition:
        transform 0.2s ease,
        color 0.2s ease;
}


/* Hover interaction */

.archive-year-card:hover {
    background-color: #252525;
    border-color: #FF5A1F;
    transform: translateY(-3px);
}

.archive-year-card:hover .archive-year-number {
    color: #FF5A1F;
}

.archive-year-card:hover .archive-year-icon {
    transform: translateY(-3px);
}


/* Keyboard accessibility */

.archive-year-card:focus-visible {
    outline: 2px solid #FF5A1F;
    outline-offset: 3px;
}


/* Hidden cards during search */

.archive-year-hidden {
    display: none;
}


/* Empty search results */

.archive-years-empty {
    margin-top: 24px;

    color: #B8B8B8;
    font-size: 14px;
}


/* =========================================
   RESPONSIVE LAYOUT
========================================= */

@media (max-width: 1200px) {
    .archive-years-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 800px) {
    .archive-years-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .archive-year-card {
        min-height: 170px;
    }
}

@media (max-width: 480px) {
    .archive-years-grid {
        grid-template-columns: 1fr;
    }

    .archive-year-card {
        min-height: 150px;
    }
}

/*===========End YEARS Page===========*/

/* Games Catalog */

.games-catalog-page {
    width: 100%;
}

.games-catalog-description {
    margin: 12px 0 24px;
    color: #bdbdbd;
    line-height: 1.6;
}

.games-catalog-search {
    margin-bottom: 24px;
}

.games-catalog-search input {
    width: 100%;
    padding: 12px 16px;

    background-color: #1c1c1c;
    color: #f5f5f5;

    border: 1px solid #383838;
    border-radius: 5px;

    font: inherit;

    transition: border-color 0.2s ease;
}

.games-catalog-search input:focus {
    outline: none;
    border-color: #ff5a1f;
}

.games-catalog-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fill,
        minmax(160px, 1fr)
    );
    gap: 16px;
}

.games-catalog-grid .game-card[hidden] {
    display: none;
}

.games-catalog-empty {
    margin-top: 24px;
    color: #bdbdbd;
    text-align: center;
}

.games-catalog-empty[hidden] {
    display: none;
}

@media (max-width: 600px) {
    .games-catalog-grid {
        grid-template-columns: repeat(
            auto-fill,
            minmax(130px, 1fr)
        );
        gap: 12px;
    }
}