/*
Theme Name: CroTorrents 2026
Theme URI: https://crotorrents.com/
Author: CroTorrents
Description: A fast, dark, game-first WordPress theme built for the CroTorrents catalog.
Version: 1.0.2
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: crotorrents-2026
*/

:root {
    --ct-bg: #080a0f;
    --ct-bg-soft: #0c1017;
    --ct-surface: #111620;
    --ct-surface-2: #171d29;
    --ct-surface-3: #1c2431;
    --ct-border: #252e3d;
    --ct-border-bright: #344157;
    --ct-text: #f5f7fb;
    --ct-text-soft: #c3cad5;
    --ct-muted: #8d97a7;
    --ct-accent: #16b9f2;
    --ct-accent-strong: #34c8ff;
    --ct-accent-soft: rgba(22, 185, 242, .12);
    --ct-green: #25bd68;
    --ct-green-hover: #31d778;
    --ct-danger: #ff667d;
    --ct-radius-sm: 10px;
    --ct-radius: 16px;
    --ct-radius-lg: 24px;
    --ct-shadow: 0 20px 60px rgba(0, 0, 0, .28);
    --ct-container: 1320px;
    --ct-reading: 780px;
    --ct-header-height: 74px;
    --ct-font: Inter, Geist, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--ct-bg);
}

body {
    margin: 0;
    background:
        radial-gradient(circle at 15% -5%, rgba(22, 185, 242, .09), transparent 32rem),
        var(--ct-bg);
    color: var(--ct-text-soft);
    font-family: var(--ct-font);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.menu-open {
    overflow: hidden;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
select {
    cursor: pointer;
}

a {
    color: var(--ct-accent-strong);
    text-decoration: none;
}

a:hover {
    color: #7bddff;
}

:focus-visible {
    outline: 3px solid rgba(52, 200, 255, .55);
    outline-offset: 3px;
}

::selection {
    background: rgba(22, 185, 242, .3);
    color: #fff;
}

.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link:focus {
    position: fixed !important;
    z-index: 99999;
    top: 12px;
    left: 12px;
    width: auto;
    height: auto;
    clip: auto;
    padding: 10px 16px;
    margin: 0;
    border-radius: 8px;
    background: #fff;
    color: #111;
}

.ct-container {
    width: min(calc(100% - 40px), var(--ct-container));
    margin-inline: auto;
}

.ct-main {
    min-height: 65vh;
}

.ct-section {
    padding-block: 46px;
}

.ct-section + .ct-section {
    border-top: 1px solid rgba(255, 255, 255, .045);
}

.ct-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

.ct-section-heading h1,
.ct-section-heading h2,
.ct-section-heading h3 {
    margin: 0;
    color: var(--ct-text);
    font-size: clamp(1.55rem, 3vw, 2.25rem);
    line-height: 1.15;
    letter-spacing: -.035em;
}

.ct-section-heading p {
    max-width: 650px;
    margin: 8px 0 0;
    color: var(--ct-muted);
}

.ct-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--ct-accent-strong);
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.ct-eyebrow::before {
    width: 22px;
    height: 2px;
    background: currentColor;
    content: "";
}

.ct-button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 11px 18px;
    border: 1px solid var(--ct-border);
    border-radius: var(--ct-radius-sm);
    background: var(--ct-surface-2);
    color: var(--ct-text);
    font-size: .92rem;
    font-weight: 750;
    line-height: 1;
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.ct-button:hover {
    border-color: var(--ct-border-bright);
    background: var(--ct-surface-3);
    color: #fff;
    transform: translateY(-1px);
}

.ct-button--primary {
    border-color: transparent;
    background: var(--ct-accent);
    color: #03131b;
}

.ct-button--primary:hover {
    border-color: transparent;
    background: var(--ct-accent-strong);
    color: #03131b;
}

/* Header */
.ct-site-header {
    position: sticky;
    z-index: 1000;
    top: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    background: rgba(8, 10, 15, .82);
    backdrop-filter: blur(18px) saturate(145%);
}

.admin-bar .ct-site-header {
    top: 32px;
}

.ct-header-inner {
    display: flex;
    min-height: var(--ct-header-height);
    align-items: center;
    gap: 28px;
}

.ct-brand {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    color: var(--ct-text);
    font-size: 1.45rem;
    font-weight: 900;
    letter-spacing: -.055em;
    line-height: 1;
}

.ct-brand:hover {
    color: #fff;
}

.ct-brand__cro {
    color: var(--ct-accent-strong);
}

.custom-logo-link {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
}

.custom-logo {
    width: auto;
    max-height: 42px;
}

.ct-primary-nav {
    margin-right: auto;
}

.ct-primary-nav ul {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.ct-primary-nav li {
    position: relative;
}

.ct-primary-nav a {
    display: flex;
    min-height: 42px;
    align-items: center;
    padding: 8px 12px;
    border-radius: 9px;
    color: var(--ct-text-soft);
    font-size: .9rem;
    font-weight: 650;
}

.ct-primary-nav a:hover,
.ct-primary-nav .current-menu-item > a,
.ct-primary-nav .current_page_item > a {
    background: rgba(255, 255, 255, .055);
    color: #fff;
}

.ct-primary-nav .sub-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    display: none;
    width: 230px;
    align-items: stretch;
    padding: 8px;
    border: 1px solid var(--ct-border);
    border-radius: 14px;
    background: #10151e;
    box-shadow: var(--ct-shadow);
}

.ct-primary-nav li:hover > .sub-menu,
.ct-primary-nav li:focus-within > .sub-menu {
    display: block;
}

.ct-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ct-header-search {
    position: relative;
    width: clamp(180px, 20vw, 290px);
}

.ct-header-search input,
.ct-search-field {
    width: 100%;
    min-height: 44px;
    padding: 10px 42px 10px 14px;
    border: 1px solid var(--ct-border);
    border-radius: 11px;
    outline: none;
    background: rgba(255, 255, 255, .045);
    color: var(--ct-text);
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.ct-header-search input::placeholder,
.ct-search-field::placeholder {
    color: #778293;
}

.ct-header-search input:focus,
.ct-search-field:focus {
    border-color: rgba(52, 200, 255, .65);
    background: rgba(255, 255, 255, .065);
    box-shadow: 0 0 0 4px rgba(22, 185, 242, .1);
}

.ct-search-submit {
    position: absolute;
    top: 50%;
    right: 6px;
    display: grid;
    width: 34px;
    height: 34px;
    padding: 0;
    transform: translateY(-50%);
    place-items: center;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--ct-muted);
    font-size: 1.15rem;
}

.ct-search-submit:hover {
    background: var(--ct-accent-soft);
    color: var(--ct-accent-strong);
}

.ct-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--ct-border);
    border-radius: 10px;
    background: var(--ct-surface);
    color: #fff;
    font-size: 1.25rem;
}

/* Homepage */
.ct-discovery-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(56px, 8vw, 100px) 0 68px;
    border-bottom: 1px solid rgba(255, 255, 255, .055);
}

.ct-discovery-hero::after {
    position: absolute;
    z-index: -1;
    top: -180px;
    left: 50%;
    width: 740px;
    height: 500px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: rgba(22, 185, 242, .08);
    filter: blur(80px);
    content: "";
}

.ct-discovery-copy {
    max-width: 820px;
    margin-inline: auto;
    text-align: center;
}

.ct-discovery-copy h1 {
    max-width: 780px;
    margin: 0 auto 18px;
    color: var(--ct-text);
    font-size: clamp(2.7rem, 7vw, 5.3rem);
    line-height: .98;
    letter-spacing: -.07em;
}

.ct-discovery-copy p {
    max-width: 670px;
    margin: 0 auto;
    color: var(--ct-muted);
    font-size: clamp(1rem, 2vw, 1.18rem);
}

.ct-hero-search {
    position: relative;
    max-width: 700px;
    margin: 30px auto 0;
}

.ct-hero-search .ct-search-field {
    min-height: 62px;
    padding: 14px 142px 14px 20px;
    border-radius: 15px;
    background: rgba(17, 22, 32, .9);
    box-shadow: 0 18px 55px rgba(0, 0, 0, .25);
}

.ct-hero-search .ct-button {
    position: absolute;
    top: 7px;
    right: 7px;
    min-height: 48px;
}

.ct-hero-stats {
    display: flex;
    justify-content: center;
    gap: 22px;
    margin-top: 24px;
    color: var(--ct-muted);
    font-size: .86rem;
}

.ct-hero-stats strong {
    color: var(--ct-text-soft);
}

.ct-category-strip {
    display: flex;
    overflow-x: auto;
    gap: 9px;
    padding: 4px 0 12px;
    scrollbar-width: thin;
}

.ct-category-pill {
    flex: 0 0 auto;
    padding: 8px 13px;
    border: 1px solid var(--ct-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, .025);
    color: var(--ct-text-soft);
    font-size: .82rem;
    font-weight: 650;
}

.ct-category-pill:hover,
.ct-category-pill.is-active {
    border-color: rgba(52, 200, 255, .4);
    background: var(--ct-accent-soft);
    color: var(--ct-accent-strong);
}

.ct-launcher-panel {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 26px;
    padding: 28px 30px;
    border: 1px solid rgba(52, 200, 255, .22);
    border-radius: var(--ct-radius-lg);
    background:
        linear-gradient(110deg, rgba(22, 185, 242, .14), rgba(22, 185, 242, .025) 64%),
        var(--ct-surface);
}

.ct-launcher-panel h2 {
    margin: 0 0 5px;
    color: #fff;
    font-size: 1.35rem;
    letter-spacing: -.025em;
}

.ct-launcher-panel p {
    margin: 0;
    color: var(--ct-muted);
}

/* Game cards */
.ct-game-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.ct-game-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--ct-border);
    border-radius: var(--ct-radius);
    background: var(--ct-surface);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.ct-game-card:hover {
    border-color: var(--ct-border-bright);
    transform: translateY(-4px);
    box-shadow: 0 20px 42px rgba(0, 0, 0, .25);
}

.ct-game-card__media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #0a0d12;
}

.ct-game-card__media::after {
    position: absolute;
    inset: auto 0 0;
    height: 46%;
    background: linear-gradient(transparent, rgba(8, 10, 15, .86));
    content: "";
}

.ct-game-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.ct-game-card:hover .ct-game-card__media img {
    transform: scale(1.035);
}

.ct-game-card__placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    background: linear-gradient(145deg, #151b26, #0c1017);
    color: #596477;
    font-size: 2rem;
    font-weight: 900;
}

.ct-game-card__body {
    padding: 15px 16px 16px;
}

.ct-game-card__title {
    display: -webkit-box;
    overflow: hidden;
    min-height: 2.7em;
    margin: 0 0 11px;
    color: var(--ct-text);
    font-size: 1rem;
    font-weight: 760;
    line-height: 1.35;
    letter-spacing: -.018em;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.ct-game-card__title a {
    color: inherit;
}

.ct-game-card__title a::after {
    position: absolute;
    inset: 0;
    content: "";
}

.ct-game-card__meta {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--ct-muted);
    font-size: .76rem;
}

.ct-game-card__genre {
    overflow: hidden;
    max-width: 65%;
    color: #aab4c3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ct-game-card__views {
    flex: 0 0 auto;
}

/* Browse and archives */
.ct-page-hero {
    padding: 54px 0 30px;
}

.ct-page-hero h1 {
    max-width: 840px;
    margin: 0;
    color: #fff;
    font-size: clamp(2.2rem, 5vw, 4.2rem);
    line-height: 1.02;
    letter-spacing: -.06em;
}

.ct-page-hero p {
    max-width: 650px;
    margin: 14px 0 0;
    color: var(--ct-muted);
    font-size: 1.04rem;
}

.ct-filter-panel {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 210px 190px auto;
    gap: 12px;
    padding: 16px;
    margin-bottom: 22px;
    border: 1px solid var(--ct-border);
    border-radius: var(--ct-radius);
    background: rgba(17, 22, 32, .92);
}

.ct-filter-panel input,
.ct-filter-panel select {
    width: 100%;
    min-height: 48px;
    padding: 10px 14px;
    border: 1px solid var(--ct-border);
    border-radius: 10px;
    outline: none;
    background: #0c1017;
    color: var(--ct-text-soft);
}

.ct-filter-panel input:focus,
.ct-filter-panel select:focus {
    border-color: rgba(52, 200, 255, .58);
    box-shadow: 0 0 0 4px rgba(22, 185, 242, .08);
}

.ct-filter-panel select {
    appearance: auto;
}

.ct-results-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
    color: var(--ct-muted);
    font-size: .88rem;
}

.ct-alpha-nav {
    display: flex;
    overflow-x: auto;
    gap: 4px;
    padding-bottom: 5px;
}

.ct-alpha-nav a {
    display: grid;
    min-width: 29px;
    height: 29px;
    place-items: center;
    border-radius: 7px;
    color: var(--ct-muted);
    font-size: .76rem;
    font-weight: 750;
}

.ct-alpha-nav a:hover,
.ct-alpha-nav a.is-active {
    background: var(--ct-accent-soft);
    color: var(--ct-accent-strong);
}

.ct-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;
    margin-top: 36px;
}

.ct-pagination .page-numbers {
    display: grid;
    min-width: 42px;
    min-height: 42px;
    place-items: center;
    padding: 7px 12px;
    border: 1px solid var(--ct-border);
    border-radius: 9px;
    background: var(--ct-surface);
    color: var(--ct-text-soft);
    font-size: .86rem;
    font-weight: 700;
}

.ct-pagination .page-numbers:hover,
.ct-pagination .page-numbers.current {
    border-color: rgba(52, 200, 255, .42);
    background: var(--ct-accent-soft);
    color: var(--ct-accent-strong);
}

.ct-empty-state {
    padding: 70px 24px;
    border: 1px dashed var(--ct-border-bright);
    border-radius: var(--ct-radius-lg);
    background: rgba(255, 255, 255, .018);
    text-align: center;
}

.ct-empty-state h2 {
    margin: 0 0 8px;
    color: #fff;
}

.ct-empty-state p {
    margin: 0 0 20px;
    color: var(--ct-muted);
}

/* Single game */
.ct-game-page {
    padding-bottom: 70px;
}

.ct-breadcrumbs {
    display: flex;
    overflow: hidden;
    align-items: center;
    gap: 9px;
    padding: 24px 0 16px;
    color: var(--ct-muted);
    font-size: .8rem;
    white-space: nowrap;
}

.ct-breadcrumbs a {
    color: var(--ct-muted);
}

.ct-breadcrumbs a:hover {
    color: var(--ct-accent-strong);
}

.ct-breadcrumbs span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
}

.ct-game-hero {
    position: relative;
    display: grid;
    overflow: hidden;
    grid-template-columns: minmax(300px, .9fr) minmax(0, 1.35fr);
    gap: clamp(26px, 4vw, 54px);
    align-items: center;
    padding: clamp(22px, 4vw, 42px);
    border: 1px solid var(--ct-border);
    border-radius: var(--ct-radius-lg);
    background: var(--ct-surface);
    box-shadow: var(--ct-shadow);
}

.ct-game-hero::before {
    position: absolute;
    z-index: 0;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(17, 22, 32, .94), rgba(17, 22, 32, .82)),
        var(--ct26-hero-image) center / cover;
    filter: saturate(.75);
    content: "";
}

.ct-game-hero::after {
    position: absolute;
    z-index: 0;
    inset: 0;
    background: linear-gradient(135deg, transparent 35%, rgba(22, 185, 242, .06));
    content: "";
}

.ct-game-hero > * {
    position: relative;
    z-index: 1;
}

.ct-game-hero__image {
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 16px;
    background: #090c12;
    box-shadow: 0 18px 44px rgba(0, 0, 0, .35);
}

.ct-game-hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ct-game-hero__content h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.03;
    letter-spacing: -.06em;
}

.ct-game-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0 24px;
}

.ct-meta-chip {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    gap: 6px;
    padding: 6px 11px;
    border: 1px solid var(--ct-border-bright);
    border-radius: 999px;
    background: rgba(8, 10, 15, .52);
    color: #aab4c3;
    font-size: .78rem;
    font-weight: 680;
}

.ct-meta-chip--genre {
    border-color: rgba(52, 200, 255, .28);
    color: var(--ct-accent-strong);
}

.ct-download-button {
    display: flex;
    width: 100%;
    min-height: 72px;
    align-items: center;
    justify-content: center;
    gap: 13px;
    padding: 14px 22px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 13px;
    background: var(--ct-green);
    color: #04130a;
    font-size: 1.07rem;
    font-weight: 850;
    box-shadow: 0 12px 32px rgba(37, 189, 104, .2);
    transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.ct-download-button:hover {
    background: var(--ct-green-hover);
    color: #04130a;
    transform: translateY(-2px);
    box-shadow: 0 16px 38px rgba(37, 189, 104, .28);
}

.ct-download-button__icon {
    font-size: 1.7rem;
    line-height: 1;
}

.ct-download-button__text {
    display: grid;
    line-height: 1.15;
    text-align: left;
}

.ct-download-button small {
    margin-top: 3px;
    color: rgba(4, 19, 10, .7);
    font-size: .71rem;
    font-weight: 700;
}

.ct-download-button--disabled {
    background: #2a313d;
    color: #7f8998;
    box-shadow: none;
}

.ct-download-button--disabled:hover {
    background: #2a313d;
    color: #7f8998;
    transform: none;
    box-shadow: none;
}

.ct-game-anchor-nav {
    position: sticky;
    z-index: 20;
    top: calc(var(--ct-header-height) + 12px);
    display: flex;
    overflow-x: auto;
    gap: 5px;
    width: max-content;
    max-width: 100%;
    padding: 6px;
    margin: 28px auto 0;
    border: 1px solid var(--ct-border);
    border-radius: 12px;
    background: rgba(12, 16, 23, .9);
    backdrop-filter: blur(14px);
    scrollbar-width: none;
}

.ct-game-anchor-nav a {
    flex: 0 0 auto;
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--ct-muted);
    font-size: .8rem;
    font-weight: 700;
}

.ct-game-anchor-nav a:hover {
    background: var(--ct-accent-soft);
    color: var(--ct-accent-strong);
}

.ct-game-sections {
    max-width: 1180px;
    margin: 26px auto 0;
}

.ct-game-section {
    padding: clamp(26px, 5vw, 48px);
    border: 1px solid var(--ct-border);
    border-radius: var(--ct-radius-lg);
    background: var(--ct-surface);
}

.ct-game-section + .ct-game-section {
    margin-top: 18px;
}

.ct-game-section h2 {
    margin: 0 0 24px;
    color: #fff;
    font-size: clamp(1.55rem, 3vw, 2.15rem);
    line-height: 1.15;
    letter-spacing: -.035em;
}

.ct-game-section h3,
.ct-game-section h4 {
    color: var(--ct-text);
}

.ct-game-section p,
.ct-game-section li {
    color: #b9c1ce;
}

.ct-game-section p:first-child {
    margin-top: 0;
}

.ct-game-section p:last-child {
    margin-bottom: 0;
}

.ct-game-section--overview .game_area_description,
.ct-game-section--overview > p,
.ct-game-section--instructions > ol,
.ct-game-section--instructions > .ct-safe-note {
    max-width: 860px;
}

.ct-game-section ul,
.ct-game-section ol {
    padding-left: 1.3rem;
}

.ct-game-section li + li {
    margin-top: 9px;
}

.ct-game-section--requirements ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px 18px;
    padding: 0;
    list-style: none;
}

.ct-game-section--requirements li {
    padding: 12px 14px;
    border: 1px solid var(--ct-border);
    border-radius: 10px;
    background: rgba(255, 255, 255, .025);
}

.ct-game-section--requirements strong {
    color: #e9edf4;
}

.ct-screenshot-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.ct-screenshot-button {
    overflow: hidden;
    padding: 0;
    border: 1px solid var(--ct-border);
    border-radius: 12px;
    background: #080a0f;
}

.ct-screenshot-button img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: opacity .18s ease, transform .25s ease;
}

.ct-screenshot-button:hover img {
    opacity: .9;
    transform: scale(1.02);
}

.ct-safe-note {
    padding: 14px 16px;
    margin-top: 22px;
    border-left: 3px solid var(--ct-accent);
    border-radius: 8px;
    background: var(--ct-accent-soft);
    color: #b9dceb;
    font-size: .86rem;
}

.ct-mobile-download {
    display: none;
}

.ct-lightbox {
    width: min(1100px, calc(100% - 28px));
    max-width: none;
    padding: 0;
    border: 1px solid var(--ct-border-bright);
    border-radius: 16px;
    background: #080a0f;
    color: #fff;
    box-shadow: var(--ct-shadow);
}

.ct-lightbox::backdrop {
    background: rgba(0, 0, 0, .84);
    backdrop-filter: blur(7px);
}

.ct-lightbox img {
    width: 100%;
    max-height: 82vh;
    object-fit: contain;
}

.ct-lightbox__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 50%;
    background: rgba(8, 10, 15, .82);
    color: #fff;
    font-size: 1.3rem;
}

/* Pages and editor content */
.ct-content-page {
    max-width: var(--ct-reading);
    padding: 58px 0 80px;
    margin-inline: auto;
}

.ct-content-page__header {
    margin-bottom: 30px;
}

.ct-content-page__header h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(2.3rem, 6vw, 4.4rem);
    line-height: 1.02;
    letter-spacing: -.06em;
}

.ct-entry-content {
    color: #bcc4d0;
}

.ct-entry-content > * + * {
    margin-top: 1.25em;
}

.ct-entry-content h2,
.ct-entry-content h3,
.ct-entry-content h4 {
    margin-top: 2.2em;
    color: #fff;
    line-height: 1.2;
    letter-spacing: -.025em;
}

.ct-entry-content img {
    border-radius: 12px;
}

.ct-entry-content blockquote {
    padding: 20px 24px;
    margin-inline: 0;
    border-left: 3px solid var(--ct-accent);
    border-radius: 0 10px 10px 0;
    background: var(--ct-accent-soft);
}

.ct-entry-content table {
    width: 100%;
    border-collapse: collapse;
}

.ct-entry-content th,
.ct-entry-content td {
    padding: 12px;
    border: 1px solid var(--ct-border);
    text-align: left;
}

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

.ct-genre-card {
    display: flex;
    min-height: 110px;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    border: 1px solid var(--ct-border);
    border-radius: var(--ct-radius);
    background: linear-gradient(145deg, var(--ct-surface-2), var(--ct-surface));
    color: #fff;
    transition: transform .18s ease, border-color .18s ease;
}

.ct-genre-card:hover {
    border-color: rgba(52, 200, 255, .38);
    color: #fff;
    transform: translateY(-2px);
}

.ct-genre-card strong {
    font-size: 1rem;
}

.ct-genre-card span {
    margin-top: 3px;
    color: var(--ct-muted);
    font-size: .78rem;
}

/* Footer */
.ct-site-footer {
    border-top: 1px solid rgba(255, 255, 255, .07);
    background: #07090d;
}

.ct-footer-main {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 52px;
    padding: 54px 0 38px;
}

.ct-footer-about {
    max-width: 450px;
}

.ct-footer-about p {
    margin: 16px 0 0;
    color: var(--ct-muted);
    font-size: .9rem;
}

.ct-footer-column h2 {
    margin: 0 0 14px;
    color: #fff;
    font-size: .82rem;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.ct-footer-column ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.ct-footer-column li + li {
    margin-top: 8px;
}

.ct-footer-column a {
    color: var(--ct-muted);
    font-size: .9rem;
}

.ct-footer-column a:hover {
    color: var(--ct-text);
}

.ct-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 0 28px;
    border-top: 1px solid rgba(255, 255, 255, .055);
    color: #697486;
    font-size: .78rem;
}

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

    .ct-primary-nav,
    .ct-header-search,
    .ct-header-actions .ct-button {
        display: none;
    }

    .ct-header-actions {
        margin-left: auto;
    }

    .ct-menu-toggle {
        display: block;
    }

    .ct-primary-nav.is-open {
        position: fixed;
        top: var(--ct-header-height);
        right: 0;
        bottom: 0;
        left: 0;
        display: block;
        padding: 18px 20px 80px;
        overflow-y: auto;
        background: rgba(8, 10, 15, .98);
    }

    .admin-bar .ct-primary-nav.is-open {
        top: calc(var(--ct-header-height) + 32px);
    }

    .ct-primary-nav.is-open ul {
        display: block;
    }

    .ct-primary-nav.is-open a {
        min-height: 50px;
        padding-inline: 14px;
        font-size: 1rem;
    }

    .ct-primary-nav.is-open .sub-menu {
        position: static;
        display: block;
        width: auto;
        padding: 0 0 0 16px;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .ct-filter-panel {
        grid-template-columns: 1fr 1fr;
    }

    .ct-game-hero {
        grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr);
    }

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

@media (max-width: 782px) {
    .admin-bar .ct-site-header {
        top: 46px;
    }

    .admin-bar .ct-primary-nav.is-open {
        top: calc(var(--ct-header-height) + 46px);
    }

    .ct-container {
        width: min(calc(100% - 28px), var(--ct-container));
    }

    .ct-section {
        padding-block: 36px;
    }

    .ct-game-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .ct-game-card__body {
        padding: 13px;
    }

    .ct-launcher-panel {
        grid-template-columns: 1fr;
        padding: 24px;
    }

    .ct-launcher-panel .ct-button {
        width: 100%;
    }

    .ct-game-hero {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .ct-game-hero__content h1 {
        font-size: clamp(2rem, 10vw, 3.2rem);
    }

    .ct-game-section {
        padding: 24px 20px;
    }

    .ct-game-section--requirements ul,
    .ct-screenshot-grid {
        grid-template-columns: 1fr;
    }

    .ct-filter-panel {
        grid-template-columns: 1fr;
    }

    .ct-results-bar {
        align-items: flex-start;
        flex-direction: column;
    }

    .ct-footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 34px;
    }

    .ct-footer-about {
        grid-column: 1 / -1;
    }

    .ct-mobile-download {
        position: fixed;
        z-index: 800;
        right: 12px;
        bottom: 12px;
        left: 12px;
        display: block;
    }

    .ct-mobile-download .ct-download-button {
        min-height: 58px;
        box-shadow: 0 12px 42px rgba(0, 0, 0, .42);
    }

    .single-post .ct-site-footer {
        padding-bottom: 76px;
    }
}

@media (max-width: 520px) {
    .ct-game-grid {
        gap: 10px;
    }

    .ct-game-card {
        border-radius: 12px;
    }

    .ct-game-card__title {
        font-size: .9rem;
    }

    .ct-game-card__meta {
        display: block;
    }

    .ct-game-card__views {
        display: block;
        margin-top: 5px;
    }

    .ct-hero-search .ct-search-field {
        min-height: 56px;
        padding-right: 18px;
    }

    .ct-hero-search .ct-button {
        position: static;
        width: 100%;
        margin-top: 10px;
    }

    .ct-hero-stats {
        align-items: center;
        flex-direction: column;
        gap: 5px;
    }

    .ct-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .ct-footer-main {
        grid-template-columns: 1fr;
    }

    .ct-footer-about {
        grid-column: auto;
    }

    .ct-footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
