:root {
    --bg-1: #eadfe8;
    --bg-2: #eadfe8;
    --bg-3: #eadfe8;

    --panel: #ffffff;
    --panel-strong: #ffffff;

    --stroke: #e2cfe8;
    --white-soft: #ffffff;
    --text-soft: #6d5a73;
    --shadow: 0 10px 24px rgba(98, 26, 122, 0.10);

    --purple-1: #8e2bb2;
    --purple-2: #64156f;
    --purple-3: #74208e;

    --yellow-1: #f4be00;
    --yellow-2: #d8a300;

    --mustard-1: #f4be00;
    --mustard-2: #e0a800;
    --mustard-3: #c89200;
    --mustard-soft: rgba(244, 190, 0, 0.18);
    --mustard-line: #efbf1a;
    --mustard-line-strong: #e5b10a;

    --text-dark: #6b217d;
    --text-dark-2: #4e155d;
    --border-soft: #e4d1ea;
}

* {
    box-sizing: border-box;
}

html {
    background: #64156f;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--text-dark);
    background:
        radial-gradient(circle at top left, rgba(255,255,255,0.08), transparent 28%),
        radial-gradient(circle at top right, rgba(255,255,255,0.05), transparent 24%),
        linear-gradient(180deg, var(--purple-1) 0%, var(--purple-3) 45%, var(--purple-2) 100%);
}

.container {
    width: min(1540px, calc(100% - 78px));
    margin: 0 auto;
}

.top-shell {
    padding: 20px 18px 0;
}

/* Header */
.site-header {
    width: min(1180px, calc(100% - 6px));
    margin: 0 auto;
    padding: 14px 18px;
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02)),
        linear-gradient(180deg, var(--purple-1) 0%, var(--purple-2) 100%);
    border: 1px solid rgba(255,255,255,0.08);
    border-top: 5px solid var(--mustard-line);
    box-shadow:
        0 14px 34px rgba(98, 26, 122, 0.16),
        0 0 18px rgba(244, 190, 0, 0.10);
    position: relative;
}

.header-top {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    align-items: center;
    gap: 16px;
}

.header-left,
.header-right {
    position: relative;
    display: flex;
    align-items: center;
}

.header-right {
    justify-content: flex-end;
    gap: 10px;
}

.site-logo {
    justify-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.site-logo img {
    display: block;
    max-width: 340px;
    width: 100%;
    height: auto;
}

.menu-toggle,
.search-toggle,
.favorite-button {
    width: 48px;
    height: 48px;
    border: 2px solid var(--mustard-line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    padding: 0;
    transition: 0.2s ease;
    box-shadow: 0 6px 16px rgba(20, 8, 31, 0.18);
}

.menu-toggle:hover,
.search-toggle:hover,
.favorite-button:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.18);
    border-color: #ffd15a;
    box-shadow:
        0 10px 20px rgba(20, 8, 31, 0.24),
        0 0 14px rgba(244, 190, 0, 0.16);
}

.menu-toggle {
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: #fff4c7;
    transition: 0.2s ease;
}

.menu-toggle.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.search-toggle svg,
.favorite-button svg {
    width: 22px;
    height: 22px;
    fill: #fff4c7;
    display: block;
}

/* Popup / dropdown system */
.header-dropdown,
.search-dropdown,
.favorites-dropdown {
    background: transparent;
    border: 0;
    box-shadow: none;
}

.header-dropdown,
.search-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    display: none;
    z-index: 50;
}

.header-dropdown {
    left: 0;
    width: 340px;
}

.search-dropdown {
    right: 0;
    width: 360px;
}

.favorites-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 380px;
    display: none;
    z-index: 60;
}

.header-dropdown.is-open,
.search-dropdown.is-open,
.favorites-dropdown.is-open {
    display: block;
}

.header-panel {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(250,245,252,0.98) 100%);
    border: 1px solid rgba(142, 43, 178, 0.10);
    border-top: 3px solid var(--mustard-line);
    border-radius: 22px;
    box-shadow:
        0 22px 40px rgba(70, 18, 92, 0.18),
        0 10px 22px rgba(98, 26, 122, 0.10),
        inset 0 1px 0 rgba(255,255,255,0.85);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    overflow: hidden;
}

.header-panel-menu,
.header-panel-search,
.header-panel-favorites {
    padding: 14px;
}

.header-panel-section + .header-panel-section {
    margin-top: 14px;
}

.header-panel-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.header-panel-section-head span {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: #7d35b2;
    opacity: 0.95;
}

.mobile-only-block {
    display: none;
}

.header-dropdown-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.header-dropdown-links a {
    display: block;
    padding: 14px 15px;
    border-radius: 16px;
    text-decoration: none;
    background: linear-gradient(180deg, #ffffff 0%, #fbf7fd 100%);
    border: 1px solid rgba(142, 43, 178, 0.07);
    box-shadow:
        0 6px 14px rgba(98, 26, 122, 0.04),
        inset 0 1px 0 rgba(255,255,255,0.85);
    transition: 0.2s ease;
}

.header-dropdown-links a:hover {
    transform: translateY(-1px);
    border-color: rgba(239, 191, 26, 0.24);
    background: linear-gradient(180deg, #fffdf8 0%, #fbf2dc 100%);
    box-shadow:
        0 10px 18px rgba(98, 26, 122, 0.08),
        0 0 0 1px rgba(244, 190, 0, 0.05);
}

.header-link-title {
    display: block;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 3px;
}

.header-link-desc {
    display: block;
    font-size: 12px;
    line-height: 1.4;
    color: #7f6d86;
}

.desktop-search-input-wrap,
.mobile-search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.desktop-search-input-wrap svg,
.mobile-search-input-wrap svg {
    position: absolute;
    left: 14px;
    width: 18px;
    height: 18px;
    fill: #8e7a95;
    pointer-events: none;
}

.desktop-search-input-wrap input,
.mobile-search-input-wrap input {
    width: 100%;
    height: 50px;
    padding: 0 16px 0 44px;
    border-radius: 16px;
    border: 1px solid rgba(142, 43, 178, 0.12);
    background: linear-gradient(180deg, #ffffff 0%, #fbf8fd 100%);
    color: var(--text-dark);
    font-size: 14px;
    outline: none;
    box-shadow:
        inset 0 1px 2px rgba(98, 26, 122, 0.04),
        0 6px 14px rgba(98, 26, 122, 0.04);
    transition: 0.2s ease;
}

.desktop-search-input-wrap input:focus,
.mobile-search-input-wrap input:focus {
    border-color: rgba(239, 191, 26, 0.90);
    box-shadow:
        0 0 0 3px rgba(244, 190, 0, 0.14),
        inset 0 1px 2px rgba(98, 26, 122, 0.04);
}

.desktop-search-input-wrap input::placeholder,
.mobile-search-input-wrap input::placeholder {
    color: #8e7a95;
}

.mobile-menu-search-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #faf6fc 100%);
    border: 1px solid rgba(142, 43, 178, 0.08);
    box-shadow:
        0 8px 18px rgba(98, 26, 122, 0.06),
        inset 0 1px 0 rgba(255,255,255,0.85);
}

.favorites-dropdown-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(142, 43, 178, 0.08);
}

.favorites-dropdown-head h3 {
    margin: 0 0 4px;
    font-size: 16px;
    line-height: 1.2;
    color: var(--text-dark);
}

.favorites-dropdown-head p {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
    color: #7f6d86;
}

.favorites-dropdown-list,
.mobile-favorites-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.favorites-empty {
    margin: 0;
    padding: 16px 14px;
    border-radius: 16px;
    font-size: 13px;
    color: #7b6a82;
    background: linear-gradient(180deg, #fbf7fd 0%, #f7f1fa 100%);
    border: 1px dashed rgba(142, 43, 178, 0.12);
    text-align: center;
}

.favorite-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 9px;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #faf6fc 100%);
    border: 1px solid rgba(142, 43, 178, 0.08);
    box-shadow:
        0 6px 14px rgba(98, 26, 122, 0.05),
        inset 0 1px 0 rgba(255,255,255,0.85);
    transition: 0.2s ease;
}

.favorite-item:hover {
    transform: translateY(-1px);
    border-color: rgba(239, 191, 26, 0.28);
    box-shadow:
        0 10px 18px rgba(98, 26, 122, 0.08),
        0 0 0 1px rgba(244, 190, 0, 0.05);
}

.favorite-item-link {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 12px;
    align-items: center;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}

.favorite-item-thumb {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    overflow: hidden;
    background: #f1e8f5;
    box-shadow: 0 4px 10px rgba(98, 26, 122, 0.08);
}

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

.favorite-item-title {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-dark);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.favorite-remove-button {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(142, 43, 178, 0.10);
    border-radius: 12px;
    background: linear-gradient(180deg, #fbf6fd 0%, #f4e8f8 100%);
    color: var(--text-dark);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s ease;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.80);
}

.favorite-remove-button:hover {
    background: linear-gradient(180deg, #fff8ea 0%, #f6e7c0 100%);
    border-color: rgba(239, 191, 26, 0.40);
    color: #5d1b70;
    transform: scale(1.03);
}

/* Home */
.home-page {
    padding: 24px 0 42px;
}

.games-section {
    margin-bottom: 28px;
}

.games-grid,
.related-games-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-flow: dense;
    gap: 8px;
}

.home-games-grid > .game-tile:nth-child(7),
.home-games-grid > .game-tile:nth-child(19),
.home-games-grid > .game-tile:nth-child(34),
.home-games-grid > .game-tile:nth-child(47) {
    grid-column: span 2;
    grid-row: span 2;
    border-radius: 20px;
}

.game-tile {
    position: relative;
    contain: layout paint style;
    aspect-ratio: 1 / 1;
    min-height: 0;
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(255,255,255,0.14);
    box-shadow:
        0 7px 16px rgba(55, 10, 78, 0.14),
        0 0 0 1px rgba(255,255,255,0.05) inset;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    isolation: isolate;
}

.game-tile:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow:
        0 14px 26px rgba(55, 10, 78, 0.20),
        0 0 0 1px rgba(244, 190, 0, 0.14);
    border-color: rgba(244, 190, 0, 0.20);
}

.game-tile-link {
    position: absolute;
    inset: 0;
    display: block;
    text-decoration: none;
    color: inherit;
}

.game-tile-thumb {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: linear-gradient(135deg, #f6eef8, #efdef4);
}

.game-tile-thumb::before,
.category-icon::before {
    content: none;
}

.game-tile-thumb::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 22px;
    height: 22px;
    margin: -11px 0 0 -11px;
    border-radius: 50%;
    border: 2px solid rgba(123, 31, 162, 0.12);
    border-top-color: rgba(123, 31, 162, 0.62);
    border-right-color: rgba(123, 31, 162, 0.62);
    opacity: 0;
    pointer-events: none;
    z-index: 3;
}

html.gsc-card-load-enhanced .game-tile-thumb.is-media-loading::after {
    opacity: 1;
    animation: gsc-media-spinner 0.8s linear infinite;
}

html.gsc-card-load-enhanced .game-tile-thumb.is-media-loaded::after {
    opacity: 0;
    animation: none;
}

.game-tile-thumb img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 1;
    visibility: visible;
    filter: none;
    transform: none;
    transition: none;
}

html.gsc-card-load-enhanced .game-tile-thumb.is-media-loading img.gsc-card-image {
    opacity: 0;
    visibility: hidden;
}

html.gsc-card-load-enhanced .game-tile-thumb.is-media-loaded img.gsc-card-image.img-loaded {
    opacity: 1;
    visibility: visible;
}
.game-tile:hover .game-tile-thumb img.img-loaded {
    transform: scale(1.05);
    filter: brightness(0.9);
}

.game-tile-thumb-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f3e5f7, #ead6f0);
}

.game-tile-thumb-placeholder img.gsc-card-image--placeholder {
    opacity: 1;
    filter: none;
    z-index: 2;
}

@keyframes gsc-media-spinner {
    to {
        transform: rotate(360deg);
    }
}

.game-tile-rating-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 28px;
    padding: 0 9px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(16, 10, 26, 0.82) 0%, rgba(16, 10, 26, 0.68) 100%);
    border: 1px solid rgba(255,255,255,0.14);
    box-shadow:
        0 8px 16px rgba(0,0,0,0.22),
        inset 0 1px 0 rgba(255,255,255,0.08);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    pointer-events: none;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.game-tile:hover .game-tile-rating-badge {
    opacity: 1;
    transform: translateY(0);
}

.game-tile-rating-star {
    font-size: 13px;
    line-height: 1;
    color: #ffd54f;
    text-shadow: 0 0 8px rgba(244, 190, 0, 0.25);
}

.game-tile-rating-value {
    font-size: 11px;
    line-height: 1;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.01em;
}

.game-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(18, 12, 28, 0.00) 0%,
        rgba(18, 12, 28, 0.02) 42%,
        rgba(18, 12, 28, 0.10) 66%,
        rgba(18, 12, 28, 0.28) 84%,
        rgba(18, 12, 28, 0.44) 100%
    );
    opacity: 0.92;
    transition: opacity 0.22s ease, background 0.22s ease;
    pointer-events: none;
    z-index: 1;
}

.game-tile:hover::after {
    opacity: 1;
    background: linear-gradient(
        180deg,
        rgba(18, 12, 28, 0.02) 0%,
        rgba(18, 12, 28, 0.05) 40%,
        rgba(18, 12, 28, 0.15) 64%,
        rgba(18, 12, 28, 0.34) 84%,
        rgba(18, 12, 28, 0.54) 100%
    );
}

.game-tile-meta {
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 8px;
    z-index: 2;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.22s ease, transform 0.22s ease;
    pointer-events: none;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: calc(100% - 16px);
}

.game-tile:hover .game-tile-meta {
    opacity: 1;
    transform: translateY(0);
}

.game-tile-title {
    margin: 0;
    width: 100%;
    font-size: 12px;
    line-height: 1.24;
    font-weight: 800;
    color: #ffffff;
    text-align: center;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    word-break: break-word;
    overflow-wrap: anywhere;
    text-shadow:
        0 2px 10px rgba(0,0,0,0.45),
        0 1px 2px rgba(0,0,0,0.35);
}

.empty-text {
    font-size: 16px;
    color: #ffffff;
}

/* Pagination */
.pagination {
    margin-top: 24px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.pagination .page-numbers {
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    background: #ffffff;
    border: 2px solid #eddcc1;
    transition: 0.2s ease;
}

.pagination .page-numbers:hover {
    background: #fff7db;
    border-color: var(--mustard-line);
}

.pagination .page-numbers.current {
    background: linear-gradient(180deg, var(--purple-1) 0%, var(--purple-2) 100%);
    color: #ffd15a;
    border-color: var(--mustard-line);
}


.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;
}

/* Categories */
.categories-section {
    margin-top: 8px;
    margin-bottom: 32px;
}

.section-head {
    margin-bottom: 16px;
}

.section-head p {
    margin: 8px 0 0;
    line-height: 1.6;
}

.games-section--new .section-head p,
.games-section--popular .section-head p,
.categories-section--archive .section-head p {
    color: rgba(255, 255, 255, 0.88);
}

.section-head h1,
.section-head h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.12);
}

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

.category-card {
    min-height: 96px;
    contain: layout paint style;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    text-decoration: none;
    color: var(--text-dark);
    border-radius: 22px;
    background: #ffffff;
    border: 2px solid rgba(244, 190, 0, 0.30);
    box-shadow:
        0 10px 20px rgba(98, 26, 122, 0.08),
        0 0 0 1px rgba(255,255,255,0.06) inset;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow:
        0 16px 28px rgba(98, 26, 122, 0.16),
        0 0 18px rgba(244, 190, 0, 0.10);
    background: #fffdf7;
    border-color: var(--mustard-line-strong);
}

.category-icon {
    position: relative;
    width: 64px;
    height: 64px;
    min-width: 64px;
    border-radius: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.03));
    border: none;
    box-shadow: none;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-icon img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    opacity: 1;
    filter: none;
    transform: none;
    transition: none;
}

.category-name {
    font-size: 15px;
    line-height: 1.35;
    font-weight: 800;
    color: var(--text-dark);
}

/* About */
.about-section {
    margin-top: 6px;
}

.about-panel {
    padding: 28px 30px;
    border-radius: 26px;
    background: #ffffff;
    border: 1px solid rgba(255,255,255,0.08);
    border-top: 5px solid var(--mustard-line);
    box-shadow:
        0 14px 28px rgba(98, 26, 122, 0.10),
        0 0 18px rgba(244, 190, 0, 0.08);
}

.about-mini {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.10em;
    color: #7d35b2;
}

.about-panel h2 {
    margin: 0 0 14px;
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.18;
    color: #1e2a44;
}

.about-panel p {
    margin: 0;
    font-size: 17px;
    line-height: 1.85;
    color: #6c5a73;
}

/* Footer */
.site-footer {
    margin-top: 44px;
    padding: 26px 0 30px;
    background: transparent;
}

.footer-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: 22px 24px;
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02)),
        linear-gradient(180deg, var(--purple-1) 0%, var(--purple-2) 100%);
    border: 1px solid rgba(255,255,255,0.08);
    border-top: 5px solid var(--mustard-line);
    box-shadow:
        0 14px 34px rgba(98, 26, 122, 0.16),
        0 0 18px rgba(244, 190, 0, 0.10);
}

.footer-brand {
    max-width: 620px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    margin-bottom: 10px;
}

.footer-logo img {
    display: block;
    max-width: 260px;
    width: 100%;
    height: auto;
}

.footer-brand p {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: #f8ebff;
}

.footer-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.footer-social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 9px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.16);
    background: rgba(255,255,255,0.08);
    color: #fff4c8;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.footer-social-links a:hover {
    transform: translateY(-1px);
    background: rgba(255,255,255,0.14);
    border-color: rgba(255,255,255,0.26);
    color: #ffffff;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #fff2bf;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

.footer-links a:hover {
    color: #ffffff;
}

/* Single Game */
.single-game-page {
    padding-top: 26px;
    padding-bottom: 40px;
}

.single-game-page.container {
    width: min(1360px, calc(100% - 32px));
}

.single-game-card {
    background: transparent;
    color: #111827;
    border-radius: 26px;
    padding: 0;
    border: 0;
    box-shadow: none;
}

.single-game-top-shell {
    max-width: 1120px;
    margin: 0 auto 24px;
    padding: 18px 18px 22px;
    border-radius: 26px;
    background: linear-gradient(180deg, #ffffff 0%, #fcf9fe 100%);
    border: 1px solid rgba(122, 45, 160, 0.16);
    box-shadow:
        0 18px 40px rgba(83, 21, 107, 0.10),
        0 0 0 1px rgba(255,255,255,0.76) inset;
}

.single-game-header {
    margin-bottom: 18px;
}

.single-game-kicker {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.10em;
    color: #7d35b2;
}

.single-game-title {
    margin: 0;
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: #1e2a44;
}

.single-game-header-main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.single-game-header-tools {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 12px;
    flex-shrink: 0;
    margin-left: auto;
}

.single-game-header-main > .single-game-title {
    min-width: 0;
}


.single-game-meta-strip {
    margin-top: 14px;
}

.single-game-meta-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.single-game-meta-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
    background: linear-gradient(180deg, #fffdf7 0%, #fff4cf 100%);
    border: 1px solid rgba(239, 191, 26, 0.35);
    box-shadow: 0 4px 10px rgba(244, 190, 0, 0.08);
    transition: 0.2s ease;
}

.single-game-meta-chip:hover {
    transform: translateY(-1px);
    border-color: rgba(239, 191, 26, 0.6);
    background: linear-gradient(180deg, #fff9e8 0%, #ffefb8 100%);
}

.single-game-player {
    margin-bottom: 24px;
    width: 100%;
    max-width: 1040px;
    margin-left: auto;
    margin-right: auto;
}

.single-game-player-shell {
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01)),
        linear-gradient(135deg, #ffffff 0%, #faf7ff 48%, #f3edff 100%);
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow:
        0 24px 52px rgba(0, 0, 0, 0.34),
        inset 0 1px 0 rgba(255,255,255,0.05);
    position: relative;
    margin: 0 auto;
}

.single-game-player-shell::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 5px;
    background: none;
    z-index: 2;
}

.single-game-player-shell:fullscreen,
.single-game-player-shell:-webkit-full-screen,
.single-game-player-shell:-ms-fullscreen {
    width: 100vw;
    height: 100vh;
    max-width: none;
    border-radius: 0;
    border: 0;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    background: #fff;
}

.single-game-player-shell:fullscreen .single-game-player-topbar,
.single-game-player-shell:-webkit-full-screen .single-game-player-topbar,
.single-game-player-shell:-ms-fullscreen .single-game-player-topbar {
    flex: 0 0 52px;
}

.single-game-player-shell:fullscreen .single-game-cover,
.single-game-player-shell:fullscreen .game-frame-wrap,
.single-game-player-shell:-webkit-full-screen .single-game-cover,
.single-game-player-shell:-webkit-full-screen .game-frame-wrap,
.single-game-player-shell:-ms-fullscreen .single-game-cover,
.single-game-player-shell:-ms-fullscreen .game-frame-wrap {
    flex: 1 1 auto;
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: auto;
}

.single-game-player-shell:fullscreen .game-frame-wrap iframe,
.single-game-player-shell:-webkit-full-screen .game-frame-wrap iframe,
.single-game-player-shell:-ms-fullscreen .game-frame-wrap iframe {
    width: 100%;
    height: 100%;
    min-height: 100%;
    display: block;
    background: #fff;
}

.single-game-player-topbar {
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 0 16px;
    background: rgba(9, 6, 20, 0.32);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.single-game-player-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.single-game-player-dots span {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    display: block;
    background: rgba(255,255,255,0.30);
}

.single-game-player-dots span:nth-child(1) {
    background: #ff6b6b;
}

.single-game-player-dots span:nth-child(2) {
    background: #ffd166;
}

.single-game-player-dots span:nth-child(3) {
    background: #4cd964;
}

.single-game-topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.single-game-rating-box {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 14px;
    background: linear-gradient(180deg, var(--purple-1) 0%, var(--purple-2) 100%);
    border: 2px solid var(--mustard-line);
    box-shadow:
        0 10px 20px rgba(98, 26, 122, 0.16),
        inset 0 1px 0 rgba(255,255,255,0.14);
}

.single-game-rating-stars {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.single-game-rating-star {
    -webkit-appearance: none;
    appearance: none;
    border: 0;
    background: transparent;
    padding: 0 1px;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 19px;
    line-height: 1;
    transition: transform 0.18s ease, opacity 0.18s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    user-select: none;
}

.single-game-rating-star-glyph {
    position: relative;
    display: block;
    width: 1em;
    height: 1em;
    line-height: 1;
}

.single-game-rating-star-base,
.single-game-rating-star-fill {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    line-height: 1;
    white-space: nowrap;
    pointer-events: none;
}

.single-game-rating-star-base {
    color: rgba(255,255,255,0.24);
}

.single-game-rating-star-fill {
    width: calc(var(--star-fill, 0) * 1em);
    overflow: hidden;
    color: #ffd54f;
    text-shadow:
        0 0 12px rgba(244, 190, 0, 0.30),
        0 2px 6px rgba(0,0,0,0.20);
}

.single-game-rating-star:hover {
    transform: scale(1.08);
}

.single-game-rating-star:hover .single-game-rating-star-fill,
.single-game-rating-star.is-active .single-game-rating-star-fill {
    text-shadow:
        0 0 12px rgba(244, 190, 0, 0.30),
        0 2px 6px rgba(0,0,0,0.20);
}

.single-game-rating-box.is-rated .single-game-rating-star {
    cursor: default;
}

.single-game-rating-box.is-rated .single-game-rating-star:hover {
    transform: none;
}

.single-game-rating-box.is-loading {
    opacity: 0.72;
}

.single-game-rating-text {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    color: rgba(255,255,255,0.86);
    font-size: 13px;
    line-height: 1;
    white-space: nowrap;
}

.single-game-rating-text strong {
    font-size: 15px;
    font-weight: 800;
    color: #ffffff;
}

.single-game-fullscreen-btn {
    width: 46px;
    height: 46px;
    border: 2px solid var(--mustard-line);
    border-radius: 14px;
    background: linear-gradient(180deg, var(--purple-1) 0%, var(--purple-2) 100%);
    color: #fff4c7;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: 0.2s ease;
    box-shadow:
        0 10px 20px rgba(98, 26, 122, 0.16),
        inset 0 1px 0 rgba(255,255,255,0.14);
}

.single-game-fullscreen-btn:hover {
    transform: translateY(-1px);
    border-color: #ffd15a;
    background: linear-gradient(180deg, #9f32c7 0%, #74208e 100%);
    box-shadow:
        0 12px 24px rgba(98, 26, 122, 0.22),
        0 0 14px rgba(244, 190, 0, 0.14);
}

.single-game-fullscreen-btn.is-active {
    background: linear-gradient(180deg, var(--purple-1) 0%, var(--purple-2) 100%);
    border-color: #ffd15a;
    box-shadow:
        0 12px 24px rgba(98, 26, 122, 0.22),
        0 0 14px rgba(244, 190, 0, 0.14),
        inset 0 1px 0 rgba(255,255,255,0.14);
}

.single-game-fullscreen-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    stroke: none;
    display: block;
    pointer-events: none;
    filter: drop-shadow(0 1px 0 rgba(255,255,255,0.08));
}

.single-game-cover,
.game-frame-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 460px;
    max-height: 640px;
    position: relative;
}

.single-game-cover {
    overflow: hidden;
}

.single-game-cover-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.single-game-cover-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at center, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0.00) 38%),
        linear-gradient(180deg, rgba(116,32,142,0.26) 0%, rgba(69,21,103,0.54) 100%);
    z-index: 1;
    pointer-events: none;
}

.single-game-cover-bg img {
    display: none;
}

.single-game-cover-placeholder {
    background:
        radial-gradient(circle at top left, rgba(255,255,255,0.16), transparent 24%),
        radial-gradient(circle at bottom right, rgba(255,255,255,0.08), transparent 28%),
        linear-gradient(135deg, var(--purple-1) 0%, var(--purple-3) 46%, var(--purple-2) 100%);
}

.single-game-cover-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    background:
        radial-gradient(circle at center, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.00) 30%),
        linear-gradient(180deg, rgba(69, 21, 103, 0.14), rgba(69, 21, 103, 0.28));
}

.single-game-cover-content {
    width: min(560px, 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    text-align: center;
    z-index: 2;
}

.single-game-cover-thumb {
    width: 168px;
    height: 168px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.30),
        0 0 0 1px rgba(255,255,255,0.18);
    border: 2px solid rgba(255,255,255,0.26);
    background: rgba(255,255,255,0.08);
}

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

.single-game-cover-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.single-game-cover-kicker {
    margin: 0;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.10em;
    color: rgba(255,255,255,0.78);
    text-transform: uppercase;
}

.single-game-cover-title {
    margin: 0;
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.12;
    color: #ffffff;
}

.single-game-cover-desc {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255,255,255,0.82);
}

.play-button {
    min-width: 220px;
    height: 54px;
    border: 2px solid rgba(180, 126, 0, 0.22);
    border-radius: 16px;
    padding: 0 26px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    background: linear-gradient(135deg, #f4be00 0%, #e0a800 100%);
    color: #4b1a66;
    box-shadow:
        0 14px 26px rgba(244, 190, 0, 0.26),
        inset 0 1px 0 rgba(255,255,255,0.26);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.play-button:hover {
    transform: translateY(-2px);
    box-shadow:
        0 18px 30px rgba(244, 190, 0, 0.32),
        inset 0 1px 0 rgba(255,255,255,0.26);
    filter: brightness(1.02);
}

.play-button-center {
    position: relative;
    z-index: 2;
}

.game-warning {
    margin: 18px;
    padding: 16px 18px;
    border-radius: 16px;
    background: #fff7ed;
    color: #9a3412;
    font-size: 14px;
    font-weight: 700;
}

.game-frame-wrap {
    background: #fff;
    overflow: hidden;
}

.game-frame-wrap iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    background: #fff;
}

.single-game-action-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    margin: 14px auto 24px;
}

.single-game-share-wrap {
    position: relative;
    display: inline-flex;
}

.single-favorite-icon-button,
.single-share-icon-button {
    width: 46px;
    height: 46px;
    border: 2px solid var(--mustard-line);
    border-radius: 14px;
    background: linear-gradient(180deg, var(--purple-1) 0%, var(--purple-2) 100%);
    color: #fff4c7;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: 0.2s ease;
    box-shadow:
        0 10px 20px rgba(98, 26, 122, 0.16),
        inset 0 1px 0 rgba(255,255,255,0.14);
}

.single-favorite-icon-button svg,
.single-share-icon-button svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    display: block;
    transition: 0.2s ease;
}

.single-share-icon-button svg {
    fill: currentColor;
    stroke: currentColor;
    stroke-width: 0;
}

.single-favorite-icon-button svg {
    fill: rgba(255, 244, 199, 0.16);
    stroke-width: 2.35;
    filter: drop-shadow(0 1px 0 rgba(255,255,255,0.08));
}

.single-favorite-icon-button:hover,
.single-share-icon-button:hover,
.single-game-share-wrap.is-open .single-share-icon-button {
    transform: translateY(-1px);
    border-color: #ffd15a;
    background: linear-gradient(180deg, #9f32c7 0%, #74208e 100%);
    box-shadow:
        0 12px 24px rgba(98, 26, 122, 0.22),
        0 0 14px rgba(244, 190, 0, 0.14);
}

.single-game-fullscreen-btn:hover svg,
.single-game-fullscreen-btn.is-active svg,
.single-favorite-icon-button:hover svg,
.single-game-share-wrap.is-open .single-share-icon-button svg {
    filter: drop-shadow(0 1px 0 rgba(255,255,255,0.10));
}

.single-favorite-icon-button.is-favorite {
    background: linear-gradient(180deg, var(--purple-1) 0%, var(--purple-2) 100%);
    border-color: #ffd15a;
    box-shadow:
        0 12px 24px rgba(98, 26, 122, 0.22),
        0 0 14px rgba(244, 190, 0, 0.14),
        inset 0 1px 0 rgba(255,255,255,0.14);
}

.single-favorite-icon-button.is-favorite svg {
    fill: #ffd15a;
    stroke: #ffd15a;
    filter: drop-shadow(0 1px 0 rgba(255,255,255,0.10));
}

.single-game-share-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: auto;
    transform: none;
    min-width: 228px;
    padding: 12px;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #fcf7fe 100%);
    border: 1px solid rgba(142, 43, 178, 0.10);
    border-top: 3px solid var(--mustard-line);
    box-shadow:
        0 18px 36px rgba(70, 18, 92, 0.18),
        0 8px 18px rgba(98, 26, 122, 0.10);
    display: none;
    z-index: 40;
}

.single-game-share-wrap.is-open .single-game-share-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.single-game-share-menu a,
.single-game-share-copy {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    min-height: 50px;
    padding: 12px 16px;
    border-radius: 15px;
    border: 1px solid rgba(142, 43, 178, 0.08);
    background: linear-gradient(180deg, #ffffff 0%, #f8f0fb 100%);
    color: var(--purple-2);
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    text-decoration: none;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.22s ease;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.88);
}

.single-game-share-menu a:hover,
.single-game-share-copy:hover {
    transform: translateY(-1px);
    border-color: rgba(244, 190, 0, 0.34);
    background: linear-gradient(180deg, #fffdf7 0%, #fff7dc 100%);
    color: #7a2da0;
}

.single-game-description-box,
.single-game-controls-box {
    max-width: 100%;
    margin: 0 0 22px;
    padding: 22px 24px;
    border-radius: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.single-game-controls-box {
    margin-bottom: 0;
}

.single-game-description-box:hover,
.single-game-controls-box:hover {
    border: 0;
    box-shadow: none;
}

.single-game-description-head {
    padding-bottom: 0;
    margin-bottom: 16px;
    border-bottom: 0;
}

.single-game-description-kicker {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: #7d35b2;
}

.single-game-description-head h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.25;
    color: var(--purple-2);
}

.single-game-content {
    font-size: 16px;
    line-height: 1.9;
    color: #1f2937;
    font-weight: 400;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.single-game-content p {
    margin: 0 0 16px;
    color: #1f2937;
    font-weight: 400;
}

.single-game-content p:last-child {
    margin-bottom: 0;
}

.single-game-content h1,
.single-game-content h2,
.single-game-content h3,
.single-game-content h4,
.single-game-content h5,
.single-game-content h6 {
    margin: 22px 0 10px;
    line-height: 1.35;
    color: var(--purple-2);
}

.single-game-content ul,
.single-game-content ol {
    margin: 0 0 16px 20px;
    padding: 0;
}

.single-game-content li {
    margin-bottom: 8px;
}

.single-game-controls-head {
    padding-bottom: 14px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(122, 45, 160, 0.10);
}

.single-game-controls-kicker {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: #7d35b2;
}

.single-game-controls-head h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.25;
    color: #1e2a44;
}

.single-game-controls-inner {
    display: flex;
    justify-content: center;
    align-items: center;
}

.single-game-controls-placeholder {
    width: min(520px, 100%);
    min-height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-radius: 20px;
    background: linear-gradient(180deg, #fcf9fe 0%, #f7f1fa 100%);
    border: 1px dashed rgba(142, 43, 178, 0.22);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.82),
        0 6px 16px rgba(98, 26, 122, 0.05);
    color: #5d647d;
    font-size: 15px;
    font-weight: 700;
}

.related-games {
    margin-top: 8px;
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
}

.related-games-head {
    margin-bottom: 16px;
    padding: 18px 20px;
    border-radius: 18px;
    background: linear-gradient(180deg, var(--purple-1) 0%, var(--purple-2) 100%);
    border: 1px solid rgba(255,255,255,0.08);
    border-top: 4px solid var(--mustard-line);
    box-shadow:
        0 10px 22px rgba(83, 21, 107, 0.14),
        0 0 0 1px rgba(255,255,255,0.08) inset;
}

.related-games-head h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: #ffd15a;
}

/* Breakpoints */
@media (max-width: 1400px) {
    .container {
        width: min(100%, calc(100% - 52px));
    }

    .games-grid,
    .related-games-grid {
        grid-template-columns: repeat(10, minmax(0, 1fr));
        gap: 8px;
    }
}

@media (max-width: 1200px) {
    .container {
        width: min(100%, calc(100% - 34px));
    }

    .games-grid,
    .related-games-grid {
        grid-template-columns: repeat(8, minmax(0, 1fr));
        gap: 8px;
    }

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

    .single-game-top-shell,
    .related-games {
        max-width: 1120px;
    }

    .single-game-cover,
    .game-frame-wrap {
        min-height: 430px;
        max-height: 580px;
    }
}

@media (max-width: 992px) {
    .container {
        width: min(100%, calc(100% - 26px));
    }

    .games-grid,
    .related-games-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 9px;
    }

    .home-games-grid > .game-tile:nth-child(7),
    .home-games-grid > .game-tile:nth-child(19),
    .home-games-grid > .game-tile:nth-child(34),
    .home-games-grid > .game-tile:nth-child(47) {
        grid-column: span 2;
        grid-row: span 2;
    }

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

    .about-panel h2 {
        font-size: 28px;
    }

    .single-game-top-shell,
    .related-games {
        max-width: 100%;
    }

    .single-game-cover,
    .game-frame-wrap {
        aspect-ratio: 16 / 10;
        min-height: 380px;
        max-height: 520px;
    }
}

@media (max-width: 768px) {
    .single-game-inline-toast {
        bottom: 18px;
        max-width: min(calc(100vw - 22px), 360px);
        padding: 11px 15px;
        font-size: 12px;
    }


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

    .top-shell {
        padding: 12px 8px 0;
    }

    .site-header {
        width: min(100%, calc(100% - 2px));
        padding: 12px 14px;
        border-radius: 22px;
    }

    .header-top {
        grid-template-columns: 42px 1fr 42px;
        gap: 10px;
    }

    .header-left {
        width: 42px;
        justify-content: flex-start;
    }

    .header-right {
        width: 42px;
        justify-content: flex-end;
    }

    .site-logo {
        justify-self: center;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .site-logo img {
        width: auto;
        max-width: 275px;
        height: auto;
        max-height: 62px;
    }

    .menu-toggle,
    .search-toggle,
    .favorite-button {
        width: 42px;
        height: 42px;
        border-radius: 12px;
    }

    .search-toggle svg,
    .favorite-button svg {
        width: 20px;
        height: 20px;
    }

    .desktop-only-tool {
        display: none !important;
    }

    .favorite-panel-wrap {
        display: none !important;
    }

    .header-dropdown {
        width: min(340px, calc(100vw - 20px));
    }

    .mobile-only-block {
        display: block;
    }

    .header-panel-menu {
        padding: 14px;
    }

    .favorite-item-link {
        grid-template-columns: 52px 1fr;
        gap: 10px;
    }

    .favorite-item-thumb {
        width: 52px;
        height: 52px;
    }

    .games-grid,
    .related-games-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }

    .home-games-grid > .game-tile:nth-child(7),
    .home-games-grid > .game-tile:nth-child(19),
    .home-games-grid > .game-tile:nth-child(34),
    .home-games-grid > .game-tile:nth-child(47) {
        grid-column: span 1;
        grid-row: span 1;
        border-radius: 16px;
    }

    .game-tile {
        border-radius: 16px;
    }

    .game-tile-rating-badge {
        display: none;
    }

    .game-tile-rating-star {
        font-size: 12px;
    }

    .game-tile-rating-value {
        font-size: 10px;
    }

    .game-tile-meta {
        left: 8px;
        right: 8px;
        bottom: 8px;
        opacity: 0;
        transform: translateY(8px);
        min-height: calc(100% - 16px);
    }

    .game-tile::after {
        opacity: 0.92;
        background: linear-gradient(
            180deg,
            rgba(18, 12, 28, 0.00) 0%,
            rgba(18, 12, 28, 0.02) 42%,
            rgba(18, 12, 28, 0.10) 66%,
            rgba(18, 12, 28, 0.28) 84%,
            rgba(18, 12, 28, 0.44) 100%
        );
    }

    .game-tile-title {
        font-size: 11px;
        line-height: 1.24;
    }

    .category-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .category-card {
        min-height: 88px;
        border-radius: 18px;
        gap: 10px;
        padding: 12px 14px;
    }

    .category-icon {
        width: 64px;
        height: 64px;
        min-width: 64px;
    }

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

    .about-panel {
        padding: 22px 18px;
        border-radius: 20px;
    }

    .about-panel h2 {
        font-size: 24px;
    }

    .about-panel p {
        font-size: 15px;
        line-height: 1.75;
    }

    .footer-inner {
        flex-direction: column;
        padding: 18px;
    }

    .footer-logo img {
        max-width: 225px;
    }

    .single-game-page.container {
        width: min(100%, calc(100% - 14px));
    }

    .single-game-top-shell {
        padding: 14px 14px 18px;
        border-radius: 20px;
    }

    .single-game-header-main {
        flex-direction: row !important;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    .single-game-header-tools {
        width: auto !important;
        margin-left: auto;
        justify-content: flex-end;
    }

    .single-game-title {
        font-size: 22px;
        letter-spacing: -0.01em;
        flex: 1;
    }

    .single-game-meta-chip {
        min-height: 32px;
        padding: 0 12px;
        font-size: 12px;
    }

    .single-game-player-shell {
        border-radius: 18px;
        width: 100%;
    }

    .single-game-player-topbar {
        height: auto;
        min-height: 46px;
        padding: 8px 12px;
        align-items: center;
        flex-wrap: wrap;
    }

    .single-game-topbar-actions {
        width: 100%;
        justify-content: flex-end;
        gap: 8px;
    }

    .single-game-rating-box {
        min-height: 40px;
        padding: 0 12px;
        gap: 10px;
        border-radius: 12px;
    }

    .single-game-rating-star {
        font-size: 17px;
    }

    .single-game-rating-text {
        font-size: 12px;
    }

    .single-game-rating-text strong {
        font-size: 14px;
    }

    .single-game-fullscreen-btn,
    .single-favorite-icon-button,
    .single-share-icon-button {
        width: 42px;
        height: 42px;
        border-radius: 12px;
    }

    .single-game-fullscreen-btn svg,
    .single-favorite-icon-button svg,
    .single-share-icon-button svg {
        width: 18px;
        height: 18px;
    }

    .single-game-cover,
    .game-frame-wrap {
        aspect-ratio: 3 / 4;
        min-height: 460px;
        max-height: 620px;
    }

    .single-game-player-shell:fullscreen .single-game-player-topbar,
    .single-game-player-shell:-webkit-full-screen .single-game-player-topbar,
    .single-game-player-shell:-ms-fullscreen .single-game-player-topbar {
        flex: 0 0 46px;
    }

    .single-game-cover-overlay {
        padding: 18px;
    }

    .single-game-cover-thumb {
        width: 112px;
        height: 112px;
        border-radius: 18px;
    }

    .single-game-cover-title {
        font-size: 22px;
        letter-spacing: -0.01em;
    }

    .single-game-cover-desc {
        font-size: 13px;
        line-height: 1.6;
    }

    .play-button {
        min-width: 190px;
        height: 46px;
        padding: 0 20px;
        font-size: 14px;
        border-radius: 14px;
    }

    .single-game-action-buttons {
        width: 100%;
        gap: 10px;
        margin: 12px auto 20px;
        justify-content: center;
        flex-wrap: wrap;
    }

    .single-game-share-menu {
        min-width: 180px;
    }


    .single-game-share-wrap {
        display: inline-flex;
        position: relative;
    }

    .single-game-share-menu {
        right: 0;
        left: auto;
        transform: none;
        min-width: 228px;
        max-width: min(260px, calc(100vw - 28px));
    }

    .single-game-share-menu a,
    .single-game-share-copy {
        min-height: 48px;
        font-size: 14px;
    }

    .single-game-description-box,
    .single-game-controls-box {
        padding: 18px 0 0;
        margin: 0 0 18px;
    }

    .single-game-description-head h2,
    .single-game-controls-head h2 {
        font-size: 22px;
        letter-spacing: -0.01em;
    }

    .single-game-content {
        font-size: 15px;
        line-height: 1.8;
    }

    .single-game-controls-placeholder {
        min-height: 96px;
        font-size: 14px;
        border-radius: 16px;
    }

    .pagination .page-numbers {
        min-width: 38px;
        height: 38px;
        font-size: 13px;
    }
}

.theme-ad-slot {
    display: block;
    contain: layout paint style;
    width: 100%;
    max-width: 100%;
    margin: 18px auto 24px;
    clear: both;
    position: relative;
    z-index: 1;
    overflow: clip;
}

.theme-ad-slot__content {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    text-align: center;
    line-height: normal;
    position: relative;
}

.theme-ad-slot__frame {
    display: flex;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
}

.theme-ad-slot__rail {
    display: none;
    flex: 0 0 auto;
    background: transparent;
}

.theme-ad-slot__content > * {
    max-width: 100%;
    min-width: 0;
    margin-left: auto !important;
    margin-right: auto !important;
}

.theme-ad-slot__content iframe,
.theme-ad-slot__content img,
.theme-ad-slot__content ins {
    display: block;
    max-width: 100%;
    height: auto;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box;
}

.theme-ad-slot__content ins.adsbygoogle {
    display: block !important;
    clear: both;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 auto !important;
}

.theme-ad-slot--managed-banner .theme-ad-slot__content ins.adsbygoogle.gsc-exact-banner-ad {
    display: inline-block !important;
}

.theme-ad-slot--header,
.theme-ad-slot--archive,
.theme-ad-slot--single-top,
.theme-ad-slot--single-bottom,
.theme-ad-slot--footer {
    text-align: center;
}

.theme-ad-slot--managed-banner .theme-ad-slot__content {
    width: 728px;
    max-width: 100%;
    min-height: 90px;
    height: 90px;
    margin-left: auto;
    margin-right: auto;
}

.theme-ad-slot--managed-banner .theme-ad-slot__content > *,
.theme-ad-slot--managed-banner .theme-ad-slot__content iframe,
.theme-ad-slot--managed-banner .theme-ad-slot__content img,
.theme-ad-slot--managed-banner .theme-ad-slot__content ins,
.theme-ad-slot--managed-banner .theme-ad-slot__content ins.adsbygoogle {
    width: 728px !important;
    max-width: 100% !important;
    min-height: 90px !important;
    height: 90px !important;
}

.home-page .theme-ad-slot.container {
    margin-top: 0;
}

.single-page-content .theme-ad-slot,
.single-game-page .theme-ad-slot--single-bottom {
    margin-top: 16px;
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .theme-ad-slot {
        margin: 14px 0 20px;
        overflow: hidden;
    }

    .theme-ad-slot__frame {
        display: block;
        width: 100%;
    }

    .theme-ad-slot__rail {
        display: none;
    }

    .theme-ad-slot__content {
        display: block;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow: hidden;
    }

    .theme-ad-slot__content > * {
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .theme-ad-slot__content iframe,
    .theme-ad-slot__content img,
    .theme-ad-slot__content ins,
    .theme-ad-slot__content ins.adsbygoogle {
        max-width: 100% !important;
        min-width: 0 !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .theme-ad-slot__content iframe {
        width: 100% !important;
    }

    .theme-ad-slot--managed-banner .theme-ad-slot__content {
        width: 320px;
        max-width: 100%;
        min-height: 100px;
        height: 100px;
    }

    .theme-ad-slot--managed-banner .theme-ad-slot__content > *,
    .theme-ad-slot--managed-banner .theme-ad-slot__content iframe,
    .theme-ad-slot--managed-banner .theme-ad-slot__content img,
    .theme-ad-slot--managed-banner .theme-ad-slot__content ins,
    .theme-ad-slot--managed-banner .theme-ad-slot__content ins.adsbygoogle {
        width: 320px !important;
        max-width: 100% !important;
        min-height: 100px !important;
        height: 100px !important;
    }

    .theme-ad-slot.theme-ad-slot--touch-guard .theme-ad-slot__content iframe,
    .theme-ad-slot.theme-ad-slot--touch-guard .theme-ad-slot__content ins,
    .theme-ad-slot.theme-ad-slot--touch-guard .theme-ad-slot__content ins.adsbygoogle {
        pointer-events: none !important;
    }

    .theme-ad-slot.theme-ad-slot--touch-guard.is-ad-interactive .theme-ad-slot__content iframe,
    .theme-ad-slot.theme-ad-slot--touch-guard.is-ad-interactive .theme-ad-slot__content ins,
    .theme-ad-slot.theme-ad-slot--touch-guard.is-ad-interactive .theme-ad-slot__content ins.adsbygoogle {
        pointer-events: auto !important;
    }
}

/* ===== Comments: cleaner light theme fix ===== */
.game-comments-section {
    position: relative;
    margin: 40px auto 34px;
    padding: 26px 24px 28px;
    border: 2px solid var(--border-soft);
    border-top: 4px solid var(--mustard-line);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(250,245,252,0.98) 100%);
    box-shadow:
        0 16px 36px rgba(98, 26, 122, 0.08),
        0 8px 18px rgba(98, 26, 122, 0.05),
        inset 0 1px 0 rgba(255,255,255,0.90);
    color: var(--text-dark);
}

.game-comments-head {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 42px;
    margin-bottom: 22px;
    padding-bottom: 4px;
}

.game-comments-title {
    margin: 0;
    width: 100%;
    text-align: center;
    color: var(--text-dark-2);
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.game-comments-count,
.game-comments-head .comments-count,
.game-comments-title .comments-count {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--mustard-soft);
    border: 1px solid rgba(239, 191, 26, 0.28);
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.game-comments-form-shell {
    margin: 0 0 26px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.game-comment-form {
    display: grid;
    gap: 16px;
}

.game-comment-form .comment-form-author,
.game-comment-form .comment-form-email,
.game-comment-form .comment-form-comment {
    margin: 0;
}

.game-comment-form label {
    display: block;
    margin: 0 0 8px;
    color: var(--text-dark-2);
    font-size: 14px;
    font-weight: 800;
}

.game-comment-form input[type="text"],
.game-comment-form input[type="email"],
.game-comment-form textarea {
    width: 100%;
    border-radius: 18px;
    border: 1px solid rgba(142, 43, 178, 0.18);
    background: rgba(109, 90, 115, 0.10);
    color: var(--text-dark-2);
    padding: 16px 18px;
    font: inherit;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.game-comment-form textarea {
    min-height: 146px;
    resize: vertical;
}

.game-comment-form input[type="text"]::placeholder,
.game-comment-form input[type="email"]::placeholder,
.game-comment-form textarea::placeholder {
    color: #8f7c98;
}

.game-comment-form input[type="text"]:focus,
.game-comment-form input[type="email"]:focus,
.game-comment-form textarea:focus {
    border-color: rgba(142, 43, 178, 0.34);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(142, 43, 178, 0.10);
}

.game-comment-submit-wrap {
    display: flex;
    justify-content: center;
    margin-top: 4px;
}

.game-comment-submit {
    min-width: 220px;
    height: 46px;
    border: 2px solid var(--mustard-line);
    border-radius: 14px;
    background: linear-gradient(180deg, var(--purple-1) 0%, var(--purple-2) 100%);
    color: #fff4c7;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    font: inherit;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: .2s ease;
    box-shadow:
        0 10px 20px rgba(98, 26, 122, 0.16),
        inset 0 1px 0 rgba(255,255,255,0.14);
}

.game-comment-submit:hover {
    transform: translateY(-1px);
    border-color: #ffd15a;
    background: linear-gradient(180deg, #9f32c7 0%, #74208e 100%);
    box-shadow:
        0 12px 24px rgba(98, 26, 122, 0.22),
        inset 0 1px 0 rgba(255,255,255,0.16);
}

.game-comment-submit:active {
    transform: translateY(0);
}

.game-comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.game-comment-item {
    list-style: none;
    margin: 0;
    padding: 0;
}

.game-comment-card {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 14px;
    padding: 20px 0;
    border-top: 1px solid rgba(109, 90, 115, 0.18);
}

.game-comment-list > .game-comment-item:first-child > .game-comment-card {
    border-top: 1px solid rgba(109, 90, 115, 0.20);
}

.game-comment-avatar img,
.game-comment-avatar .avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: block;
    border: 1px solid rgba(122, 45, 160, 0.35);
}


.game-comment-author-line {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.game-comment-author {
    color: var(--text-dark-2);
    font-size: 15px;
    font-weight: 800;
}

.game-comment-dot {
    color: #9b85a3;
    font-size: 12px;
}

.game-comment-time {
    color: #8f7c98;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.game-comment-content {
    color: #1f2937;
    font-size: 16px;
    line-height: 1.7;
    word-break: break-word;
}

.game-comment-content a {
    color: #1f2937;
    text-decoration: underline;
}

.game-comment-content p {
    margin: 0;
    color: #1f2937;
}

.game-comment-mention {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    margin: 0 0 8px;
    color: var(--purple-1);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.4;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.game-comment-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-top: 10px;
}

.game-comment-reply a,
.game-comment-edit a {
    color: var(--mustard-3);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.game-comment-reply a:hover,
.game-comment-edit a:hover {
    color: var(--purple-1);
}

.game-comment-awaiting,
.game-comments-empty {
    margin: 16px 0 0;
    color: #8f7c98;
    font-size: 14px;
    font-weight: 700;
}

.game-comment-item .children {
    list-style: none;
    margin: 10px 0 0 22px;
    padding: 0 0 0 20px;
    border-left: 2px solid rgba(142, 43, 178, 0.18);
}

.game-comment-item .children .children {
    margin-top: 8px;
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
}

.game-comment-item .children .game-comment-card {
    border-top-color: rgba(109, 90, 115, 0.14);
    padding-top: 18px;
    padding-bottom: 18px;
}

.comment-respond {
    margin-top: 16px;
}

.game-comments-section .comment-navigation,
.game-comments-section .comments-pagination,
.game-comments-section .navigation {
    margin-top: 18px;
}

.game-comments-section .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    margin: 0 6px 0 0;
    padding: 0 14px;
    border-radius: 14px;
    border: 2px solid rgba(142, 43, 178, 0.16);
    background: #fffef9;
    color: var(--text-dark);
    font-weight: 800;
    text-decoration: none;
}

.game-comments-section .page-numbers.current,
.game-comments-section .page-numbers:hover {
    border-color: var(--mustard-line);
    background: linear-gradient(180deg, var(--purple-1) 0%, var(--purple-2) 100%);
    color: #fff4c7;
}

@media (max-width: 768px) {
    .game-comments-section {
        margin-top: 32px;
        padding: 22px 16px 24px;
    }

    .game-comments-head {
        display: grid;
        grid-template-columns: 1fr;
        justify-items: center;
        min-height: 0;
        gap: 10px;
        margin-bottom: 18px;
    }

    .game-comments-title {
        font-size: 24px;
    }

    .game-comments-count,
    .game-comments-head .comments-count,
    .game-comments-title .comments-count {
        position: static;
        transform: none;
        order: -1;
    }

    .game-comment-form textarea {
        min-height: 124px;
    }

    .game-comment-card {
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 12px;
        padding: 18px 0;
    }

    .game-comment-item .children {
        margin-left: 12px;
        padding-left: 14px;
    }

    .game-comment-item .children .children {
        margin-left: 0;
        padding-left: 0;
    }

    .game-comment-actions {
        gap: 10px 14px;
    }

    .game-comment-votes {
        flex-wrap: wrap;
        max-width: 100%;
    }

    .game-comment-submit {
        width: 100%;
        min-width: 0;
    }
}

/* Headings color alignment */
.page-hero-title,
.archive-page-title,
.search-page-title,
.game-description-title,
.single-game-content h1 {
    color: var(--purple-2);
}


/* Static / legal pages */
.static-page-shell {
    padding-top: 26px;
    padding-bottom: 40px;
}

.static-page-card {
    background: transparent;
    color: #111827;
    border-radius: 26px;
    padding: 0;
    border: 0;
    box-shadow: none;
}

.static-page-top-shell {
    margin-bottom: 0;
}

.static-page-head {
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(142, 43, 178, 0.10);
}

.static-page-title {
    margin: 0;
    color: var(--purple-2);
    font-size: clamp(30px, 3vw, 44px);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.static-page-content {
    color: #1f2937;
    font-size: 16px;
    line-height: 1.85;
    font-weight: 400;
}

.static-page-content > *:first-child {
    margin-top: 0;
}

.static-page-content > *:last-child {
    margin-bottom: 0;
}

.static-page-content h1,
.static-page-content h2,
.static-page-content h3,
.static-page-content h4,
.static-page-content h5,
.static-page-content h6 {
    margin: 28px 0 12px;
    color: var(--purple-2);
    line-height: 1.2;
    font-weight: 800;
}

.static-page-content h2 {
    font-size: 28px;
}

.static-page-content h3 {
    font-size: 22px;
}

.static-page-content p,
.static-page-content ul,
.static-page-content ol,
.static-page-content blockquote {
    margin: 0 0 16px;
    color: #1f2937;
    font-weight: 400;
}

.static-page-content ul,
.static-page-content ol {
    padding-left: 22px;
}

.static-page-content li + li {
    margin-top: 8px;
}

.static-page-content a {
    color: var(--purple-1);
    font-weight: 700;
}

.static-page-content a:hover {
    color: var(--mustard-3);
}

.static-page-content blockquote {
    padding: 16px 18px;
    border-left: 4px solid var(--mustard-line);
    border-radius: 0 16px 16px 0;
    background: rgba(123, 31, 162, 0.05);
}

.static-page-content strong {
    color: var(--text-dark-2);
}

.static-page-pagination {
    margin-top: 20px;
}

@media (max-width: 768px) {
    .static-page-shell {
        padding-bottom: 24px;
    }

    .static-page-card {
        border-radius: 22px;
    }

    .static-page-head {
        margin-bottom: 18px;
        padding-bottom: 14px;
    }

    .static-page-title {
        font-size: 28px;
    }

    .static-page-content {
        font-size: 15px;
        line-height: 1.8;
    }

    .static-page-content h2 {
        font-size: 24px;
    }

    .static-page-content h3 {
        font-size: 20px;
    }
}


.game-tile img,
.category-card img,
.single-game-media img,
.single-cover img,
.game-cover img,
#gameCover img {
    transition: none;
}

.game-tile img.img-loaded,
.category-card img.img-loaded,
.single-game-media img.img-loaded,
.single-cover img.img-loaded,
.game-cover img.img-loaded,
#gameCover img.img-loaded {
    opacity: 1;
    filter: none;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .game-tile img,
    .category-card img,
    .single-game-media img,
    .single-cover img,
    .game-cover img,
    #gameCover img {
        transition: none !important;
        transform: none !important;
        filter: none !important;
    }
}

/* =========================
   Üyelik paneli + hesap ikonu
   ========================= */
.header-auth-button {
    width: 48px;
    height: 48px;
    border: 2px solid var(--mustard-line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    transition: 0.2s ease;
    box-shadow: 0 6px 16px rgba(20, 8, 31, 0.18);
}

.header-auth-button:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.18);
    border-color: #ffd15a;
    box-shadow:
        0 10px 20px rgba(20, 8, 31, 0.24),
        0 0 14px rgba(244, 190, 0, 0.16);
}

.header-auth-button svg {
    width: 22px;
    height: 22px;
    display: block;
    fill: #fff4c7;
    transition: fill 0.2s ease, transform 0.2s ease;
}

.header-auth-button:hover svg {
    transform: scale(1.03);
}

.header-auth-button.is-logged-in {
    background: linear-gradient(180deg, rgba(255, 208, 82, 0.22), rgba(255, 190, 32, 0.14));
    border-color: rgba(255, 214, 100, 0.98);
    box-shadow:
        0 10px 22px rgba(64, 30, 6, 0.22),
        0 0 18px rgba(244, 190, 0, 0.20);
}

.header-auth-button.is-logged-in svg {
    fill: #ffe18b;
}

.header-auth-indicator {
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.38);
    box-shadow: 0 0 0 2px rgba(69, 21, 103, 0.95);
}

.header-auth-button.is-logged-in .header-auth-indicator {
    background: #f4be00;
}

.mobile-auth-shortcut {
    position: relative;
}

.auth-page-shell {
    margin-top: 24px;
}

.auth-page-card {
    background: transparent;
    box-shadow: none;
    border: 0;
}

.auth-page-top-shell {
    padding: 0;
}

.auth-stage-shell {
    display: grid;
    grid-template-columns: minmax(280px, 0.92fr) minmax(0, 1.08fr);
    gap: 24px;
    align-items: stretch;
}

.auth-stage-info,
.auth-stage-panel {
    background: #ffffff;
    border: 1px solid rgba(124, 78, 149, 0.14);
    border-radius: 24px;
    box-shadow: 0 18px 36px rgba(53, 16, 71, 0.08);
}

.auth-stage-info {
    padding: 30px;
    background:
        radial-gradient(circle at top right, rgba(244, 190, 0, 0.14), transparent 34%),
        linear-gradient(180deg, rgba(108, 51, 145, 0.96), rgba(84, 35, 117, 0.98));
    border-color: rgba(255, 227, 154, 0.22);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.auth-stage-kicker {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 244, 199, 0.28);
    color: #fff3c9;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-stage-title {
    margin: 0;
    color: #ffffff !important;
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.08;
}

.auth-stage-subtitle {
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 15px;
    line-height: 1.75;
}

.auth-stage-points {
    display: grid;
    gap: 14px;
    margin-top: auto;
}

.auth-stage-point {
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.10);
}

.auth-stage-point strong {
    display: block;
    color: #fff5d2;
    font-size: 15px;
    margin-bottom: 4px;
}

.auth-stage-point span {
    display: block;
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    line-height: 1.65;
}

.auth-stage-panel {
    padding: 26px;
}

.auth-page-copy {
    margin-bottom: 18px;
    color: #403349;
}

.auth-switcher {
    display: inline-grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 6px;
    margin-bottom: 18px;
    width: 100%;
    max-width: 360px;
    background: #f4ecf8;
    border: 1px solid rgba(116, 63, 149, 0.10);
    border-radius: 18px;
}

.auth-switcher-link {
    min-height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #63347b;
    font-weight: 800;
    transition: 0.2s ease;
}

.auth-switcher-link:hover {
    color: #4b2364;
    background: rgba(255, 255, 255, 0.6);
}

.auth-switcher-link.is-active {
    color: #4b2364;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(78, 24, 104, 0.10);
}

.auth-panel-card,
.auth-account-card {
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
}

.auth-card-head {
    margin-bottom: 20px;
}

.auth-card-head h2,
.auth-account-card h2,
.auth-account-card h3 {
    margin: 0 0 8px;
    color: #5c2f75 !important;
    font-size: 28px;
    line-height: 1.18;
}

.auth-card-head p,
.auth-account-card p,
.auth-account-note,
.auth-form-footnote {
    margin: 0;
    color: #56485f;
    font-size: 14px;
    line-height: 1.7;
}

.auth-form-footnote {
    margin-top: 14px;
}

.auth-form-footnote a {
    color: #6c3391;
    font-weight: 700;
    text-decoration: none;
}

.auth-form-footnote a:hover {
    color: #4b2364;
}

.auth-badge,
.auth-inline-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(108, 51, 145, 0.10);
    border: 1px solid rgba(108, 51, 145, 0.12);
    color: #6c3391;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.auth-badge-secondary {
    background: rgba(244, 190, 0, 0.14);
    border-color: rgba(244, 190, 0, 0.16);
    color: #875800;
}

.auth-form {
    display: grid;
    gap: 14px;
}

.auth-field {
    display: grid;
    gap: 8px;
}

.auth-field span,
.auth-check span {
    color: #5b4766;
    font-weight: 700;
    font-size: 14px;
}

.auth-field input {
    width: 100%;
    min-height: 54px;
    padding: 0 16px;
    border-radius: 16px;
    border: 1px solid rgba(116, 63, 149, 0.18);
    background: #fcfbff;
    color: #2f2337;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.auth-field input:focus {
    border-color: rgba(108, 51, 145, 0.48);
    box-shadow: 0 0 0 4px rgba(108, 51, 145, 0.10);
    background: #ffffff;
}

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

.auth-check {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 2px;
}

.auth-check input {
    width: 18px;
    height: 18px;
    accent-color: #6c3391;
}

.auth-submit-button {
    min-height: 54px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(180deg, #6c3391, #4f226c);
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 16px 26px rgba(79, 34, 108, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.auth-submit-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 30px rgba(79, 34, 108, 0.22);
    filter: brightness(1.03);
}

.auth-submit-button-secondary {
    background: linear-gradient(180deg, #f4be00, #d89d00);
    color: #422800;
    box-shadow: 0 16px 26px rgba(167, 119, 0, 0.18);
}

.auth-alert {
    margin-bottom: 16px;
    padding: 14px 16px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 700;
}

.auth-alert-error {
    background: rgba(220, 85, 85, 0.10);
    border: 1px solid rgba(220, 85, 85, 0.14);
    color: #9b2f2f;
}

.auth-alert-success {
    background: rgba(77, 177, 98, 0.12);
    border: 1px solid rgba(77, 177, 98, 0.16);
    color: #2b6b3b;
}

.auth-account-shell {
    display: grid;
    gap: 16px;
}

.auth-account-primary {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px;
    border-radius: 22px;
    background: #fbf9fd;
    border: 1px solid rgba(116, 63, 149, 0.12);
}

.auth-account-avatar img {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    border: 3px solid rgba(108, 51, 145, 0.18);
    background: #ffffff;
}

.auth-account-meta p {
    margin-bottom: 2px;
    color: #7a6785;
}

.auth-account-meta span:last-child {
    display: block;
    color: #4c3c56;
    font-size: 14px;
    line-height: 1.6;
}

.auth-account-actions {
    padding: 20px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid rgba(116, 63, 149, 0.12);
}

.auth-account-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 14px 0 12px;
}

.auth-account-links a {
    min-height: 44px;
    padding: 0 16px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 700;
    color: #5c2f75;
    background: rgba(108, 51, 145, 0.08);
    border: 1px solid rgba(108, 51, 145, 0.10);
    transition: 0.2s ease;
}

.auth-account-links a:hover {
    transform: translateY(-1px);
    background: rgba(108, 51, 145, 0.12);
}

@media (max-width: 980px) {
    .auth-stage-shell {
        grid-template-columns: 1fr;
    }

    .auth-stage-info,
    .auth-stage-panel {
        padding: 24px;
    }
}

@media (max-width: 767px) {
    .header-auth-button {
        display: none;
    }

    .auth-page-shell {
        margin-top: 18px;
    }

    .auth-stage-info,
    .auth-stage-panel {
        padding: 20px;
        border-radius: 20px;
    }

    .auth-stage-title {
        font-size: 28px;
    }

    .auth-stage-subtitle,
    .auth-card-head p,
    .auth-account-card p,
    .auth-account-note,
    .auth-form-footnote,
    .auth-page-copy {
        font-size: 14px;
    }

    .auth-card-head h2,
    .auth-account-card h2,
    .auth-account-card h3 {
        font-size: 24px;
    }

    .auth-field-row,
    .auth-account-primary,
    .auth-account-shell {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: flex-start;
    }

    .auth-switcher {
        max-width: none;
    }
}

/* Account menu + member pages */
.header-account-wrap {
    position: relative;
}

.account-dropdown {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    width: 270px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    z-index: 40;
}

.account-dropdown.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.header-panel-account {
    padding: 16px;
    border-radius: 22px;
    border: 1px solid rgba(120, 42, 160, 0.12);
    box-shadow: 0 20px 46px rgba(50, 9, 74, 0.18);
}

.account-dropdown-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid rgba(120, 42, 160, 0.10);
}

.account-dropdown-avatar img,
.account-dropdown-avatar .avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid rgba(120, 42, 160, 0.20);
}

.account-dropdown-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.account-dropdown-meta strong {
    color: var(--text-dark);
    font-size: 15px;
    line-height: 1.2;
}

.account-dropdown-meta span {
    color: rgba(60, 35, 81, 0.72);
    font-size: 12px;
}

.account-dropdown-links {
    display: grid;
    gap: 8px;
}

.account-dropdown-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 46px;
    padding: 0 14px;
    border-radius: 14px;
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(120, 42, 160, 0.10);
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.account-dropdown-links a:hover {
    transform: translateY(-1px);
    border-color: rgba(236, 181, 0, 0.36);
    box-shadow: 0 12px 24px rgba(51, 10, 76, 0.10);
}

.header-panel-account--menu-like .header-dropdown-links a {
    display: block;
    padding: 14px 15px;
    border-radius: 16px;
    text-decoration: none;
    background: linear-gradient(180deg, #ffffff 0%, #fbf7fd 100%);
    border: 1px solid rgba(142, 43, 178, 0.07);
    box-shadow:
        0 6px 14px rgba(98, 26, 122, 0.04),
        inset 0 1px 0 rgba(255,255,255,0.85);
    transition: 0.2s ease;
}

.header-panel-account--menu-like .header-dropdown-links a:hover {
    transform: translateY(-1px);
    border-color: rgba(239, 191, 26, 0.24);
    background: linear-gradient(180deg, #fffdf8 0%, #fbf2dc 100%);
    box-shadow:
        0 10px 18px rgba(98, 26, 122, 0.08),
        0 0 0 1px rgba(244, 190, 0, 0.05);
}

.auth-page-top-shell--member {
    padding: 26px;
}

.auth-page-layout--guest {
    max-width: 760px;
    margin: 0 auto;
}

.auth-page-layout--guest-solo {
    max-width: 620px;
}

.auth-page-panel--guest-solo {
    padding: 28px;
}

.auth-page-panel--guest-solo .auth-switcher {
    max-width: none;
    margin-bottom: 22px;
}

.auth-page-layout--member {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 22px;
}

.auth-page-panel--guest,
.member-sidebar-card,
.member-content-card {
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(120, 42, 160, 0.10);
    border-radius: 24px;
    box-shadow: 0 16px 34px rgba(50, 9, 74, 0.10);
}

.auth-page-panel--guest,
.member-content-card {
    padding: 24px;
}

.member-sidebar-card {
    padding: 18px;
    align-self: start;
    position: sticky;
    top: 24px;
}

.auth-card-head--tight h1,
.member-sidebar-meta h1,
.member-content-head h2 {
    color: var(--text-dark);
}

.auth-alert-info {
    background: rgba(123, 31, 162, 0.08);
    border: 1px solid rgba(123, 31, 162, 0.14);
    color: #5a2874;
}

.member-sidebar-profile {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(120, 42, 160, 0.10);
}

.member-sidebar-avatar img,
.member-sidebar-avatar .avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    border: 2px solid rgba(123, 31, 162, 0.14);
    object-fit: cover;
}

.member-sidebar-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.member-sidebar-meta p {
    margin: 0;
    color: rgba(58, 36, 76, 0.72);
}

.member-sidebar-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 18px;
}

.member-stat-card {
    min-height: 76px;
    padding: 12px 10px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(244,236,251,0.88));
    border: 1px solid rgba(120, 42, 160, 0.10);
    text-align: center;
}

.member-stat-card strong {
    display: block;
    color: #5a2874;
    font-size: 22px;
    line-height: 1;
    margin-bottom: 6px;
}

.member-stat-card span {
    color: rgba(58, 36, 76, 0.78);
    font-size: 12px;
    font-weight: 700;
}

.member-sidebar-nav {
    display: grid;
    gap: 9px;
}

.member-sidebar-link {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0 14px;
    border-radius: 14px;
    text-decoration: none;
    color: var(--text-dark);
    background: #fff;
    border: 1px solid rgba(120, 42, 160, 0.10);
    font-weight: 700;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.member-sidebar-link:hover,
.member-sidebar-link.is-active {
    transform: translateY(-1px);
    border-color: rgba(236, 181, 0, 0.34);
    box-shadow: 0 12px 24px rgba(51, 10, 76, 0.10);
}

.member-content-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.member-archive-page .section-head p,
.member-content-head p,
.member-empty-state p {
    color: rgba(255, 255, 255, 0.88);
}

.member-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.member-dashboard-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 145px;
    padding: 18px;
    text-decoration: none;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(245,239,251,0.90));
    border: 1px solid rgba(120, 42, 160, 0.10);
    color: var(--text-dark);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.member-dashboard-card:hover {
    transform: translateY(-2px);
    border-color: rgba(236, 181, 0, 0.34);
    box-shadow: 0 14px 28px rgba(51, 10, 76, 0.11);
}

.member-dashboard-card strong {
    font-size: 18px;
}

.member-dashboard-card span {
    color: rgba(58, 36, 76, 0.74);
    line-height: 1.55;
}

.member-empty-state {
    padding: 28px;
    border-radius: 20px;
    border: 1px dashed rgba(120, 42, 160, 0.20);
    background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(246,239,252,0.82));
}

.member-empty-state h3 {
    margin: 0 0 8px;
    color: #5a2874;
}

.member-empty-state p {
    margin: 0;
    color: rgba(58, 36, 76, 0.76);
}

.member-empty-state p.member-empty-note-dark {
    color: #111111;
}

.member-games-grid {
    margin-bottom: 16px;
}

.member-pagination .page-numbers {
    min-width: 42px;
}

.avatar-manager-card {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 22px;
    align-items: center;
}

.avatar-manager-preview img,
.avatar-manager-preview .avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(123, 31, 162, 0.16);
    box-shadow: 0 16px 28px rgba(51, 10, 76, 0.12);
}

.avatar-manager-actions {
    display: grid;
    gap: 12px;
}

.auth-form-compact {
    gap: 12px;
}

.auth-form-remove-avatar {
    margin: 0;
}

.auth-page-panel--guest .auth-field input,
.auth-page-panel--guest .auth-check,
.avatar-manager-card .auth-field input[type="file"],
.avatar-manager-card .auth-field input[type="text"],
.avatar-manager-card .auth-field input[type="email"],
.avatar-manager-card .auth-field input[type="password"] {
    border-radius: 16px;
}

.game-comments-lockbox {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px;
    margin-bottom: 18px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(245,238,251,0.88));
    border: 1px solid rgba(120, 42, 160, 0.10);
}

.game-comments-lock-content {
    display: grid;
    gap: 6px;
}

.game-comments-lock-content strong {
    color: #5a2874;
}

.game-comments-lock-content p {
    margin: 0;
    color: rgba(58, 36, 76, 0.76);
}

.game-comments-lock-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.game-comment-submit {
    text-decoration: none;
}

.game-comment-submit-secondary {
    background: linear-gradient(180deg, var(--purple-1) 0%, var(--purple-2) 100%);
    color: #fff4c7;
    border: 2px solid var(--mustard-line);
    box-shadow:
        0 10px 20px rgba(98, 26, 122, 0.16),
        inset 0 1px 0 rgba(255,255,255,0.14);
}

.game-comments-lock-actions .game-comment-submit,
.game-comments-lock-actions .game-comment-submit-secondary,
.member-empty-actions .game-comment-submit,
.member-empty-actions .game-comment-submit.game-comment-submit-secondary {
    background: linear-gradient(180deg, var(--purple-1) 0%, var(--purple-2) 100%);
    color: #fff4c7;
    border: 2px solid var(--mustard-line);
    box-shadow:
        0 10px 20px rgba(98, 26, 122, 0.16),
        inset 0 1px 0 rgba(255,255,255,0.14);
}

.game-comments-lock-actions .game-comment-submit:hover,
.game-comments-lock-actions .game-comment-submit-secondary:hover,
.member-empty-actions .game-comment-submit:hover,
.member-empty-actions .game-comment-submit.game-comment-submit-secondary:hover {
    transform: translateY(-1px);
    border-color: #ffd15a;
    background: linear-gradient(180deg, #9f32c7 0%, #74208e 100%);
    color: #fff4c7;
    box-shadow:
        0 12px 24px rgba(98, 26, 122, 0.22),
        inset 0 1px 0 rgba(255,255,255,0.16);
}

.game-comment-votes {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.game-comment-vote-button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(123, 31, 162, 0.12);
    background: rgba(255,255,255,0.90);
    color: #5a2874;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.game-comment-vote-button:hover {
    transform: translateY(-1px);
    border-color: rgba(236, 181, 0, 0.34);
    box-shadow: 0 10px 22px rgba(51, 10, 76, 0.08);
}

.game-comment-vote-button.is-active {
    border-color: rgba(236, 181, 0, 0.44);
    box-shadow: 0 12px 24px rgba(51, 10, 76, 0.10);
}

.game-comment-vote-button.is-loading {
    opacity: 0.65;
    pointer-events: none;
}

.game-comment-vote-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    line-height: 1;
}

.game-comment-vote-icon svg {
    width: 16px;
    height: 16px;
    display: block;
    fill: currentColor;
}

.game-comment-vote-count {
    min-width: 10px;
    text-align: center;
}

.single-favorite-icon-button.is-loading {
    opacity: 0.66;
    pointer-events: none;
}

@media (max-width: 991px) {
    .auth-page-layout--member {
        grid-template-columns: 1fr;
    }

    .member-sidebar-card {
        position: static;
    }

    .member-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .avatar-manager-card {
        grid-template-columns: 1fr;
    }

    .account-dropdown {
        width: 250px;
    }
}

@media (max-width: 767px) {
    .game-comments-lockbox {
        flex-direction: column;
        align-items: flex-start;
    }

    .member-sidebar-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .auth-page-panel--guest,
    .member-content-card,
    .member-sidebar-card {
        padding: 18px;
    }
}

/* Auth/member button refinement patch */
.auth-switcher {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.auth-switcher-link,
.auth-submit-button,
.auth-submit-button-secondary,
.auth-link-button,
.auth-form-remove-avatar .auth-submit-button,
.auth-form-remove-avatar .auth-submit-button-secondary,
.member-empty-actions .game-comment-submit {
    min-height: 46px;
    border: 2px solid var(--mustard-line);
    border-radius: 14px;
    background: linear-gradient(180deg, var(--purple-1) 0%, var(--purple-2) 100%);
    color: #fff4c7;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    font: inherit;
    font-size: 16px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: 0.2s ease;
    box-shadow:
        0 10px 20px rgba(98, 26, 122, 0.16),
        inset 0 1px 0 rgba(255,255,255,0.14);
}

.auth-switcher-link:hover,
.auth-switcher-link:focus-visible,
.auth-submit-button:hover,
.auth-submit-button:focus-visible,
.auth-submit-button-secondary:hover,
.auth-submit-button-secondary:focus-visible,
.auth-link-button:hover,
.auth-link-button:focus-visible,
.auth-form-remove-avatar .auth-submit-button:hover,
.auth-form-remove-avatar .auth-submit-button:focus-visible,
.auth-form-remove-avatar .auth-submit-button-secondary:hover,
.auth-form-remove-avatar .auth-submit-button-secondary:focus-visible,
.member-empty-actions .game-comment-submit:hover,
.member-empty-actions .game-comment-submit:focus-visible {
    transform: translateY(-1px);
    border-color: #ffd15a;
    background: linear-gradient(180deg, #9f32c7 0%, #74208e 100%);
    box-shadow:
        0 12px 24px rgba(98, 26, 122, 0.22),
        inset 0 1px 0 rgba(255,255,255,0.16);
    color: #fff4c7;
}

.auth-switcher-link:active,
.auth-submit-button:active,
.auth-submit-button-secondary:active,
.auth-link-button:active,
.member-empty-actions .game-comment-submit:active {
    transform: translateY(0);
}

.auth-switcher-link {
    min-width: 0;
}

.auth-switcher-link.is-active {
    color: #fff4c7;
    background: linear-gradient(180deg, var(--purple-1) 0%, var(--purple-2) 100%);
    border-color: var(--mustard-line);
    box-shadow:
        0 10px 20px rgba(98, 26, 122, 0.16),
        inset 0 1px 0 rgba(255,255,255,0.14);
}

.auth-switcher-link:not(.is-active) {
    background: #ffffff;
    color: #5a2874;
    box-shadow:
        0 8px 16px rgba(98, 26, 122, 0.08),
        inset 0 1px 0 rgba(255,255,255,0.12);
}

.auth-switcher-link:not(.is-active):hover,
.auth-switcher-link:not(.is-active):focus-visible {
    color: #fff4c7;
}

.auth-submit-button,
.auth-submit-button-secondary,
.auth-link-button,
.auth-form-remove-avatar .auth-submit-button,
.auth-form-remove-avatar .auth-submit-button-secondary {
    width: 100%;
}

.auth-submit-button-secondary {
    color: #fff4c7;
}

.member-archive-page .section-head p,
.member-content-head p,
.member-empty-state p {
    color: rgba(255, 255, 255, 0.88);
}


/* Footer layout refinements */
.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    margin-left: auto;
}

.footer-social-links {
    justify-content: flex-start;
    margin-top: 0;
}

.footer-bottom {
    padding-top: 12px;
    padding-bottom: 0;
}

.footer-copyright {
    margin: 0;
    text-align: center;
    color: rgba(255, 244, 200, 0.92);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .footer-right {
        width: 100%;
        align-items: flex-start;
    }

    .footer-links {
        gap: 14px;
    }

    .footer-social-links {
        width: 100%;
    }

    .footer-social-links a {
        min-height: 36px;
        padding: 8px 13px;
    }

    .footer-bottom {
        padding-top: 10px;
        padding-bottom: 0;
    }
}


/* 404 Page */
.error-404-shell {
    padding-top: 26px;
    padding-bottom: 42px;
}

.error-404-card {
    display: grid;
    grid-template-columns: minmax(280px, 460px) minmax(0, 1fr);
    align-items: center;
    gap: 34px;
}

.error-404-media {
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-404-media img {
    display: block;
    width: min(100%, 420px);
    height: auto;
}

.error-404-content {
    max-width: 620px;
}

.error-404-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 16px;
    margin-bottom: 14px;
    border-radius: 999px;
    border: 2px solid rgba(244, 190, 0, 0.42);
    background: linear-gradient(180deg, rgba(255, 248, 229, 0.96) 0%, rgba(255, 240, 196, 0.96) 100%);
    color: #6a4200;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.error-404-title {
    margin: 0 0 14px;
    color: var(--purple-2);
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1.04;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.error-404-text {
    margin: 0;
    max-width: 58ch;
    color: rgba(58, 36, 76, 0.88);
    font-size: 17px;
    line-height: 1.85;
}

.error-404-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 26px;
    justify-content: center;
}

.error-404-button {
    text-decoration: none;
}

.error-404-button-secondary {
    background: #ffffff;
    color: var(--purple-2);
}

.error-404-button-secondary:hover {
    background: #fffdf7;
}

@media (max-width: 980px) {
    .error-404-card {
        grid-template-columns: 1fr;
        gap: 22px;
        text-align: center;
    }

    .error-404-content {
        max-width: 100%;
    }

    .error-404-text {
        max-width: none;
    }

    .error-404-actions {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .error-404-shell {
        padding-top: 18px;
        padding-bottom: 28px;
    }

    .error-404-card {
        gap: 18px;
    }

    .error-404-media img {
        width: min(100%, 320px);
    }

    .error-404-title {
        font-size: 30px;
    }

    .error-404-text {
        font-size: 15px;
        line-height: 1.75;
    }

    .error-404-actions {
        gap: 12px;
    }

    .error-404-button {
        width: 100%;
    }
}


.auth-switcher-link--subtle {
    min-width: 100%;
    margin-top: 8px;
}

.auth-form-footnote--split {
    display: flex;
    justify-content: flex-end;
}

.auth-form-footnote--center {
    text-align: center;
}


/* Plain-card hotfixes: keep no-image placeholders centered after animation cleanup */
.game-tile-thumb-placeholder {
    position: absolute;
    inset: 0;
}

.game-tile-thumb-placeholder img,
.game-tile-thumb-placeholder img.gsc-card-image--placeholder {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 72px !important;
    height: 72px !important;
    display: block !important;
    object-fit: contain !important;
    transform: translate(-50%, -50%) !important;
    filter: drop-shadow(0 10px 18px rgba(46, 9, 63, 0.18)) !important;
    z-index: 2;
    max-width: none !important;
}

.single-game-share-wrap.is-open .single-share-icon-button,
.single-game-fullscreen-btn.is-active,
.single-favorite-icon-button.is-favorite {
    background: linear-gradient(180deg, var(--purple-1) 0%, var(--purple-2) 100%);
}


/* Overflow safety patch */
.auth-page-layout--member > *,
.auth-page-layout--guest > *,
.member-sidebar-profile > *,
.member-content-head > *,
.member-dashboard-grid > *,
.member-sidebar-stats > *,
.avatar-manager-card > *,
.game-comments-lockbox > *,
.header-top > * {
    min-width: 0;
}

.auth-badge,
.auth-inline-badge {
    width: fit-content;
    max-width: 100%;
    align-self: flex-start;
}

.member-sidebar-meta,
.member-content-head > div,
.member-dashboard-card,
.member-empty-state,
.section-head,
.account-dropdown-meta,
.favorite-item-content,
.auth-card-head,
.auth-page-copy,
.auth-stage-copy {
    min-width: 0;
}

.member-sidebar-meta h1,
.member-sidebar-meta p,
.member-content-head h2,
.member-content-head p,
.member-dashboard-card strong,
.member-dashboard-card span,
.member-sidebar-link,
.member-stat-card span,
.section-head h1,
.section-head h2,
.section-head p,
.account-dropdown-meta strong,
.account-dropdown-meta span,
.favorite-item-title,
.favorite-item-category,
.auth-card-head h1,
.auth-card-head h2,
.auth-card-head p,
.auth-inline-badge,
.page-hero-title,
.archive-page-title,
.search-page-title,
.static-page-title {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.member-sidebar-meta h1,
.member-content-head h2 {
    margin-top: 0;
}

.member-sidebar-meta p,
.member-content-head p {
    max-width: 100%;
}

.header-top > *,
.header-left > *,
.header-right > *,
.footer-inner > *,
.footer-bottom > *,
.top-shell > *,
.section-head > *,
.games-grid > *,
.home-games-grid > *,
.category-grid > *,
.related-games-grid > *,
.member-games-grid > *,
.single-game-header > *,
.single-game-header-main > *,
.single-game-header-tools > *,
.single-game-cover-content > *,
.single-game-meta-strip > *,
.single-game-description-toolbar > *,
.game-comment-card > *,
.game-comment-actions > * {
    min-width: 0;
}

.game-tile-title,
.category-name,
.single-game-title,
.single-game-cover-title,
.header-link-title,
.header-link-desc,
.game-comment-author,
.game-comment-content,
.game-comment-reply,
.game-comment-edit,
.game-comment-mention,
.static-page-title,
.page-hero-title,
.archive-page-title,
.search-page-title {
    overflow-wrap: anywhere;
    word-break: break-word;
}

img,
svg,
video,
canvas,
iframe {
    max-width: 100%;
}

/* Single game toolbar refresh: isolate action icons and rating in description area */
.single-game-description-toolbar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.single-game-description-toolbar .single-game-rating-box {
    min-height: 40px;
    padding: 0 14px;
    gap: 10px;
    flex-shrink: 0;
    margin: 0;
}

.single-game-description-toolbar .single-game-rating-stars {
    gap: 3px;
}

.single-game-description-toolbar .single-game-rating-star {
    font-size: 18px;
    padding: 0;
}

.single-game-description-toolbar .single-game-rating-text {
    gap: 3px;
}

.single-game-inline-actions,
.single-game-header-tools {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    flex-shrink: 0;
}

.single-game-inline-actions {
    margin-left: auto;
}

.single-game-inline-action {
    -webkit-appearance: none;
    appearance: none;
    border: 0;
    background: none;
    box-shadow: none;
    outline: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    color: var(--purple-2);
    cursor: pointer;
    opacity: 1;
    filter: none;
    transform: none;
    transition: color 0.16s ease, transform 0.16s ease, opacity 0.16s ease;
}

.single-game-inline-action:hover,
.single-game-inline-action:focus-visible,
.single-game-share-wrap.is-open .single-game-inline-action--share,
.single-game-inline-action.is-active {
    color: var(--purple-1);
    transform: translateY(-1px);
}

.single-game-inline-action:focus-visible {
    outline: 2px solid rgba(244, 190, 0, 0.55);
    outline-offset: 4px;
    border-radius: 8px;
}

.single-game-inline-action svg {
    width: 24px;
    height: 24px;
    display: block;
    pointer-events: none;
    filter: none;
}

.single-game-inline-action--favorite svg {
    fill: transparent;
    stroke: currentColor;
    stroke-width: 2.1;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.single-game-inline-action--favorite.is-favorite {
    color: #f4be00;
}

.single-game-inline-action--favorite.is-favorite svg {
    fill: currentColor;
    stroke: currentColor;
}

.single-game-inline-action--share svg {
    fill: currentColor;
    stroke: none;
}

.single-game-inline-action--fullscreen svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 2.15;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.single-game-inline-action.is-loading {
    opacity: 0.55;
    pointer-events: none;
}

.single-game-description-box {
    padding-top: 20px;
}

.single-game-inline-toast {
    position: fixed;
    left: 50%;
    bottom: 22px;
    z-index: 1200;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    max-width: min(calc(100vw - 28px), 420px);
    padding: 12px 18px;
    border-radius: 16px;
    border: 1px solid rgba(244, 190, 0, 0.22);
    background: linear-gradient(180deg, rgba(56, 24, 78, 0.98) 0%, rgba(40, 18, 58, 0.98) 100%);
    color: #fffaf1;
    box-shadow: 0 16px 38px rgba(23, 7, 34, 0.34);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 10px);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.single-game-inline-toast.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.single-game-inline-toast.is-error {
    border-color: rgba(255, 126, 126, 0.28);
    background: linear-gradient(180deg, rgba(87, 22, 34, 0.98) 0%, rgba(60, 15, 26, 0.98) 100%);
    color: #fff4f4;
}

.single-game-inline-toast.is-success {
    border-color: rgba(244, 190, 0, 0.22);
}

@media (max-width: 768px) {
    .single-game-description-toolbar {
        gap: 12px;
        align-items: center;
    }

    .single-game-description-toolbar .single-game-rating-box {
        min-height: 38px;
        padding: 0 12px;
        gap: 8px;
    }

    .single-game-description-toolbar .single-game-rating-star {
        font-size: 17px;
    }

    .single-game-inline-actions {
        gap: 14px;
    }

    .single-game-inline-action {
        width: 26px;
        height: 26px;
    }

    .single-game-inline-action svg {
        width: 22px;
        height: 22px;
    }
}


@media (max-width: 430px) {
    .header-top {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 10px;
    }

    .header-right {
        display: none;
    }

    .site-logo {
        grid-column: 2;
        justify-self: start;
        width: auto;
        max-width: 100%;
        overflow: visible;
    }

    .site-logo img {
        width: auto;
        max-width: 275px;
        max-height: 62px;
    }
}


/* Approved card shell integration from single-clone source */
.home-games-grid > .game-tile:nth-child(7),
.home-games-grid > .game-tile:nth-child(19),
.home-games-grid > .game-tile:nth-child(34),
.home-games-grid > .game-tile:nth-child(47) {
    border-radius: 24px;
}

.game-tile {
    border-radius: 24px;
    background: rgba(255,255,255,0.08);
    border: 2px solid rgba(255,255,255,0.26);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.24),
        0 0 0 1px rgba(255,255,255,0.18);
}

.game-tile:hover {
    box-shadow:
        0 24px 46px rgba(0, 0, 0, 0.28),
        0 0 0 1px rgba(255,255,255,0.22);
    border-color: rgba(255,255,255,0.32);
}

.game-tile-thumb,
.game-tile-thumb img {
    border-radius: inherit;
}

@media (max-width: 768px) {
    .home-games-grid > .game-tile:nth-child(7),
    .home-games-grid > .game-tile:nth-child(19),
    .home-games-grid > .game-tile:nth-child(34),
    .home-games-grid > .game-tile:nth-child(47) {
        border-radius: 20px;
    }

    .game-tile {
        border-radius: 20px;
    }
}


/* Global smooth surface cleanup */
html,
body {
    background: linear-gradient(180deg, var(--purple-1) 0%, var(--purple-3) 45%, var(--purple-2) 100%) !important;
}

*,
*::before,
*::after {
    box-shadow: none !important;
    text-shadow: none !important;
}


@supports (content-visibility: auto) {
    .game-tile,
    .category-card,
    .theme-ad-slot,
    .about-panel,
    .game-comments-section {
        content-visibility: auto;
    }

    .theme-ad-slot {
        contain-intrinsic-size: 120px;
    }
}

.theme-ad-slot__content ins.adsbygoogle[data-gsc-adsense-state="pending"],
.theme-ad-slot__content ins.adsbygoogle[data-gsc-adsense-state="loading"] {
    opacity: 0;
}

.theme-ad-slot.is-ad-filled .theme-ad-slot__content ins.adsbygoogle[data-gsc-adsense-state="filled"] {
    opacity: 1;
}

html.gsc-low-end-device .game-tile,
html.gsc-low-end-device .category-card,
html.gsc-low-end-device .theme-ad-slot {
    box-shadow: none !important;
}
