/* ===== Game Detail Page Styles ===== */

/* Game Hero Banner */
.game-hero {
    position: relative;
    min-height: 500px;
    background: linear-gradient(160deg, rgba(15, 15, 19, 0.95) 0%, rgba(112, 0, 223, 0.3) 50%, rgba(15, 15, 19, 0.95) 100%);
    overflow: hidden;
    border-bottom: 3px solid var(--accent-purple);
}

.game-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(112, 0, 223, 0.15), transparent 70%);
    z-index: 1;
}

.game-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.game-hero-info {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 700px;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.game-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.badge-tag {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.badge-tag i {
    display: inline-block;
    width: 1.15em;
    text-align: center;
    flex-shrink: 0;
}

a.badge-tag {
    cursor: pointer;
    color: var(--text-primary);
    text-decoration: none;
}

a.badge-tag:hover {
    background: var(--accent-purple);
    border-color: var(--accent-purple);
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(112, 0, 223, 0.4);
}

.badge-tag.rating {
    background: rgba(255, 214, 0, 0.15);
    border-color: var(--accent-yellow);
    color: var(--accent-yellow);
}

.game-hero-title {
    font-size: clamp(2.2rem, 3.2vw, 3.1rem);
    font-weight: 900;
    margin-bottom: 12px;
    line-height: 1.25;
    background: linear-gradient(to left, #ffffff, #c4a1ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.game-hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 25px;
    font-weight: 600;
}

.game-meta-info {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.meta-item i {
    color: var(--accent-purple);
    font-size: 1.1rem;
    display: inline-block;
    width: 1.15em;
    text-align: center;
    flex-shrink: 0;
}

.meta-item strong {
    color: white;
}

.game-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    max-width: 100%;
}

.btn-download {
    background: linear-gradient(135deg, var(--accent-purple), #9b30ff);
    color: white;
    border: none;
    padding: 16px 40px;
    border-radius: 12px;
    font-size: 1.15rem;
    font-weight: 900;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    max-width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(var(--accent-purple-rgb), 0.4);
}

.btn-download:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(var(--accent-purple-rgb), 0.8), 0 0 40px rgba(var(--accent-purple-rgb), 0.5);
    background: var(--accent-purple-hover);
}

.btn-trailer {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 16px 30px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 100%;
    transition: all 0.3s ease;
}

.btn-screenshots {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 16px 30px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 100%;
    transition: all 0.3s ease;
}

.btn-trailer:hover {
    border-color: var(--accent-yellow);
    color: var(--accent-yellow);
    background: rgba(255, 214, 0, 0.1);
}

.btn-screenshots:hover {
    border-color: #00a8ff;
    color: #00a8ff;
    background: rgba(0, 168, 255, 0.1);
}

/* Game Cover */
.game-hero-cover {
    position: relative;
    width: 280px;
    aspect-ratio: 3 / 4;
    max-width: 100%;
    flex-shrink: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 993px) {
    .game-hero-content {
        gap: 48px;
        padding: 60px 20px;
    }
    .game-hero-cover {
        margin: 0;
        width: 280px;
    }
}

@media (min-width: 1200px) {
    .game-hero-content {
        gap: 50px;
        padding: 65px 20px;
    }
    .game-hero-cover {
        margin: 0;
        width: 290px;
    }
}

.game-hero-cover img {
    width: 100%;
    height: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.6), 0 0 30px rgba(112, 0, 223, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.12);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: rgba(15, 15, 20, 0.4);
}

.game-hero-cover:hover img {
    transform: scale(1.04);
}

.cover-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(112, 0, 223, 0.3), transparent 60%);
    z-index: -1;
    filter: blur(40px);
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 10px;
    padding: 15px 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.breadcrumb a {
    color: var(--text-secondary);
    transition: color 0.3s;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.breadcrumb a:hover {
    color: var(--accent-yellow);
}

.breadcrumb span {
    color: var(--accent-yellow);
    font-weight: 700;
    white-space: normal;
    word-break: break-word;
}

.breadcrumb i.fa-chevron-left {
    font-size: 0.65rem;
    opacity: 0.5;
    flex-shrink: 0;
}

/* Section Header */
.section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.section-header h2 {
    font-size: 1.4rem;
    font-weight: 900;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header h2 i {
    color: var(--accent-purple);
}

.section-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(to left, transparent, var(--accent-purple), transparent);
}

/* Screenshots */
.screenshots-section {
    margin-top: 30px;
    margin-bottom: 40px;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: 200px 200px;
    gap: 12px;
}

.screenshot-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.screenshot-item.main-shot {
    grid-row: span 2;
}

.screenshot-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.screenshot-item:hover img {
    transform: scale(1.1);
}

.screenshot-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(112, 0, 223, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.screenshot-overlay i {
    font-size: 2rem;
    color: white;
}

.screenshot-item:hover .screenshot-overlay {
    opacity: 1;
}

.screenshot-item:hover {
    border-color: var(--accent-purple);
    box-shadow: 0 5px 20px rgba(112, 0, 223, 0.3);
}

/* Game Details Layout */
.game-details {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 350px);
    gap: 30px;
    margin-bottom: 50px;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

.details-main {
    min-width: 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

/* Detail Cards */
.detail-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 25px;
    border: 1px solid var(--border-color);
    min-width: 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

.detail-card-header {
    padding: 20px 25px;
    border-bottom: 2px solid var(--accent-purple);
    background: linear-gradient(to left, rgba(112, 0, 223, 0.1), transparent);
}

.detail-card-header h2 {
    font-size: 1.2rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-card-header h2 i {
    color: var(--accent-purple);
}

.download-header {
    border-bottom-color: var(--accent-yellow);
    background: linear-gradient(to left, rgba(255, 214, 0, 0.1), transparent);
}

.download-header h2 i {
    color: var(--accent-yellow) !important;
}

.detail-card-body {
    padding: 25px;
    line-height: 1.88;
    color: var(--text-secondary);
    font-size: 0.94rem;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.detail-card-body p,
.detail-card-body li {
    font-size: 0.94rem;
    line-height: 1.88;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.detail-card-body h1 {
    font-size: clamp(1.2rem, 4.5vw, 1.4rem);
    margin: 18px 0 10px 0;
    color: #fff;
    font-weight: 800;
}

.detail-card-body h2 {
    font-size: clamp(1.1rem, 3.8vw, 1.25rem);
    margin: 16px 0 10px 0;
    color: #fff;
    font-weight: 800;
}

.detail-card-body h3 {
    font-size: clamp(1.00rem, 3.2vw, 1.12rem);
    margin: 14px 0 8px 0;
    color: var(--accent-yellow);
    font-weight: 800;
}

.detail-card-body h4,
.detail-card-body h5,
.detail-card-body h6 {
    font-size: 0.96rem;
    margin: 12px 0 6px 0;
    color: #fff;
    font-weight: 700;
}

.detail-card-body *,
.breadcrumb * {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

#descriptionCard .detail-card-body a {
    display: inline;
    unicode-bidi: isolate;
    color: #00b4d8;
    text-decoration: underline;
    font-weight: bold;
}

#descriptionCard .detail-card-body strong {
    color: white;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.feature-list li i {
    color: #2ecc71;
    font-size: 1.1rem;
}

/* Download Section */
.download-notice {
    background: rgba(255, 214, 0, 0.1);
    border: 1px solid rgba(255, 214, 0, 0.3);
    border-radius: 12px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    color: var(--accent-yellow);
    font-weight: 600;
}

.download-notice i {
    font-size: 1.5rem;
}

.download-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dl-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    background: rgba(112, 0, 223, 0.1);
    border: 1px solid rgba(112, 0, 223, 0.3);
    border-radius: 14px;
    padding: 18px 22px;
    transition: all 0.3s ease;
}

.dl-link > * {
    max-width: 100%;
}

.dl-link:hover {
    background: rgba(112, 0, 223, 0.2);
    border-color: var(--accent-purple);
    transform: translateX(-5px);
}

.dl-info {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 0;
    max-width: 100%;
    flex-wrap: wrap;
}

.dl-info > div {
    min-width: 0;
    max-width: 100%;
}

.dl-info strong,
.dl-info small {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.dl-info i {
    font-size: 2rem;
    color: var(--accent-purple);
}

.dl-info strong {
    display: block;
    font-size: 1rem;
    color: white;
}

.dl-info small {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.dl-size {
    background: var(--accent-purple);
    color: white;
    padding: 8px 18px;
    border-radius: 10px;
    font-weight: 900;
    font-size: 0.9rem;
    flex-shrink: 0;
    max-width: 100%;
}

/* Sidebar */
.sidebar-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    min-width: 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.sidebar-card h3 {
    font-size: 1.1rem;
    font-weight: 900;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--accent-purple);
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-wrap: break-word;
}

.sidebar-card h3 i {
    color: var(--accent-purple);
    flex-shrink: 0;
}

/* Info List */
.info-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
    max-width: 100%;
    width: 100%;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    min-width: 0;
    max-width: 100%;
}

.info-key {
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.info-val {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: left;
    word-break: break-word;
    overflow-wrap: anywhere;
    max-width: 100%;
    min-width: 0;
}

/* System Requirements */
.sys-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.sys-tab {
    flex: 1;
    padding: 10px;
    border: 2px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.sys-tab.active {
    background: var(--accent-purple);
    border-color: var(--accent-purple);
    color: white;
}

.sys-tab:hover:not(.active) {
    border-color: var(--accent-purple);
    color: white;
}

.sys-content {
    display: none;
}

.sys-content.active {
    display: block;
}

.sys-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sys-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sys-label i {
    color: var(--accent-purple);
    width: 18px;
    text-align: center;
}

.sys-value {
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    padding-right: 26px;
}

/* Tags */
.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-item {
    background: rgba(112, 0, 223, 0.15);
    border: 1px solid rgba(112, 0, 223, 0.3);
    padding: 6px 16px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.tag-item:hover {
    background: var(--accent-purple);
    color: white;
    border-color: var(--accent-purple);
}

/* Related Games */
.related-games {
    margin-bottom: 50px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

/* Responsive visibility helper classes */
.mobile-only-card {
    display: none !important;
}

/* Responsive for game page */
@media (max-width: 992px) {
    .mobile-only-card {
        display: block !important;
    }
    .desktop-only-card {
        display: none !important;
    }

    .game-hero-content {
        flex-direction: column-reverse;
        text-align: center;
        padding: 40px 15px;
        gap: 25px;
    }

    .game-hero-cover {
        width: 180px;
        max-width: 60%;
        margin: 0 auto;
    }

    .game-hero-badges {
        justify-content: center;
        gap: 8px;
    }

    .badge-tag {
        font-size: 0.82rem;
        padding: 5px 12px;
    }

    .game-meta-info {
        justify-content: center;
        gap: 12px;
    }

    .game-hero-actions {
        justify-content: center;
        gap: 10px;
    }

    .game-hero-title {
        font-size: clamp(1.4rem, 5vw, 2.2rem);
        line-height: 1.35;
        margin-bottom: 12px;
    }

    .game-hero-subtitle {
        font-size: clamp(0.9rem, 3.5vw, 1.05rem);
        margin-bottom: 18px;
    }

    .game-details {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
        padding: 0 10px;
    }
    .details-main {
        display: flex;
        flex-direction: column;
    }
    #descriptionCard { order: 1; }
    .mobile-only-card { order: 2; }
    #sysReqCard { order: 3; }
    #downloadCard { order: 4; }
    #relatedCard { order: 5; }

    .screenshots-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }

    .screenshot-item.main-shot {
        grid-row: span 1;
        grid-column: span 2;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .game-hero-content {
        padding: 25px 10px;
        gap: 20px;
    }

    .game-hero-cover {
        width: 150px;
    }

    .game-hero-title {
        font-size: clamp(1.25rem, 5.5vw, 1.6rem);
        word-break: break-word;
    }

    .game-hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 8px;
    }

    .btn-download,
    .btn-trailer,
    .btn-screenshots,
    .btn-share-hero {
        width: 100%;
        justify-content: center;
        padding: 10px 15px;
        font-size: 0.92rem;
    }

    .detail-card-header {
        padding: 14px 18px;
    }

    .detail-card-header h2 {
        font-size: 1.15rem;
    }

    .detail-card-body {
        padding: 16px 14px;
    }

    .info-list .info-row {
        font-size: 0.88rem;
        padding: 8px 0;
    }

    .screenshots-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .screenshot-item.main-shot {
        grid-column: span 1;
    }

    .related-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .crack-notes li {
        font-size: 0.9rem;
    }

    .steam-screenshots-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .meta-item {
        font-size: 0.82rem;
    }
}

/* System Requirements */
.sys-req-card {
    margin-top: 25px;
}

.sys-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.sys-tab {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.sys-tab:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.sys-tab.active {
    color: var(--accent-yellow);
    background: rgba(255, 214, 0, 0.1);
}

.sys-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.sys-content.active {
    display: block;
}

.sys-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
}

.sys-list li {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* GPU card spans 2 columns on desktop and tablet to create a balanced full grid with 0 empty spaces */
@media (min-width: 993px) {
    .sys-list li:nth-child(4) {
        grid-column: span 2;
    }
}

@media (max-width: 992px) and (min-width: 577px) {
    .sys-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .sys-list li:nth-child(4) {
        grid-column: span 2;
    }
}

@media (max-width: 576px) {
    .sys-list {
        grid-template-columns: 1fr;
    }
}

.sys-list li strong {
    color: var(--accent-purple);
    font-size: 0.95rem;
}

.sys-list li span {
    color: var(--text-primary);
    font-weight: 600;
}

/* ===== Download Timer Gate ===== */
.download-timer-gate {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 40px 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    border: 1px solid rgba(112, 0, 223, 0.2);
    margin-bottom: 20px;
}

.timer-circle {
    position: relative;
    width: 120px;
    height: 120px;
}

.timer-circle svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.timer-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 6;
}

.timer-progress {
    fill: none;
    stroke: var(--accent-purple);
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1s linear;
}

.timer-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--accent-yellow);
    text-shadow: 0 0 20px rgba(255, 214, 0, 0.4);
}

.timer-text {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 600;
    animation: pulse-text 1.5s ease-in-out infinite;
}

@keyframes pulse-text {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.telegram-join-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #0088cc, #00aaff);
    color: white;
    padding: 14px 35px;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 136, 204, 0.35);
}

.telegram-join-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 136, 204, 0.5);
    background: linear-gradient(135deg, #00aaff, #0088cc);
}

.telegram-join-btn i {
    font-size: 1.4rem;
}

.download-timer-gate.completed {
    display: none;
}

/* ===== Star Rating ===== */
.rating-card {
    text-align: center;
}

.user-rating {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 15px 0 10px;
    direction: ltr;
}

.star-btn {
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.star-btn:hover,
.star-btn.hovered {
    color: var(--accent-yellow);
    transform: scale(1.2);
    filter: drop-shadow(0 0 8px rgba(255, 214, 0, 0.6));
}

.star-btn.active {
    color: var(--accent-yellow);
}

.rating-text {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 5px;
}

.rating-text.rated {
    color: var(--accent-yellow);
    font-weight: 700;
}

/* Related Games */
.related-card {
    margin-top: 30px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr));
    gap: 15px;
}

.related-item,
.related-item:hover,
.related-item:focus,
.related-item:active {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    min-width: 0;
    max-width: 100%;
    text-decoration: none !important;
}

.related-item *,
.related-info,
.related-info h3,
.related-info h4 {
    text-decoration: none !important;
}

.related-info {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.related-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    background: rgba(255, 255, 255, 0.05);
}

.related-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.related-info {
    padding: 12px;
}

.related-info h3,
.related-info h4 {
    font-size: 0.95rem;
    color: var(--text-primary);
    margin: 0;
    text-align: right;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* ==========================================
   Dynamic Hardware Match Alert Styling
   ========================================== */
.system-match-alert {
    display: none;
    align-items: center;
    gap: 15px;
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 25px;
    animation: fadeIn 0.5s ease;
    direction: rtl;
}

.system-match-alert i {
    font-size: 1.6rem;
    flex-shrink: 0;
}

/* Green: Perfect/Ideal */
.sys-match-perfect {
    background: rgba(46, 204, 113, 0.08);
    border: 1px solid rgba(46, 204, 113, 0.2);
    border-right: 5px solid #2ecc71;
    color: #a4f4c2;
    box-shadow: 0 0 15px rgba(46, 204, 113, 0.1);
}
.sys-match-perfect i {
    color: #2ecc71;
    text-shadow: 0 0 8px rgba(46, 204, 113, 0.5);
}

/* Yellow: Minimum Specs */
.sys-match-good {
    background: rgba(241, 196, 15, 0.08);
    border: 1px solid rgba(241, 196, 15, 0.2);
    border-right: 5px solid #f1c40f;
    color: #f7e28f;
    box-shadow: 0 0 15px rgba(241, 196, 15, 0.1);
}
.sys-match-good i {
    color: #f1c40f;
    text-shadow: 0 0 8px rgba(241, 196, 15, 0.5);
}

/* Red: Insufficient Specs */
.sys-match-bad {
    background: rgba(231, 76, 60, 0.08);
    border: 1px solid rgba(231, 76, 60, 0.2);
    border-right: 5px solid #e74c3c;
    color: #f7a59c;
    box-shadow: 0 0 15px rgba(231, 76, 60, 0.1);
}
.sys-match-bad i {
    color: #e74c3c;
    text-shadow: 0 0 8px rgba(231, 76, 60, 0.5);
}

/* ==========================================
   Shortlink Widget Styling
   ========================================== */
.shortlink-card .shortlink-box input {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.shortlink-card .shortlink-box input:focus {
    border-color: var(--accent-purple);
    box-shadow: 0 0 10px rgba(var(--accent-purple-rgb), 0.2);
    color: var(--text-primary);
}

.shortlink-card .shortlink-box button:hover {
    background-color: var(--accent-purple-hover) !important;
    box-shadow: 0 0 15px rgba(var(--accent-purple-rgb), 0.5) !important;
}

.shortlink-card #copyFeedback {
    animation: fadeIn 0.3s ease;
}

/* Shortlink box: long URLs must never push the copy button off-screen */
.shortlink-box {
    min-width: 0;
    max-width: 100%;
}

.shortlink-box input {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    overflow-wrap: anywhere;
}

@media (max-width: 400px) {
    .shortlink-box {
        flex-wrap: wrap;
    }
    .shortlink-box button {
        flex: 0 0 auto;
    }
}

/* ==========================================
   Share Sheet Glassmorphism Modal
   ========================================== */
.btn-share-hero {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 16px 30px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 100%;
    transition: all 0.3s ease;
}

.btn-share-hero:hover {
    border-color: var(--accent-yellow);
    color: var(--accent-yellow);
    background: rgba(255, 214, 0, 0.1);
}

@media (max-width: 768px) {
    .btn-share-hero {
        width: 100%;
        justify-content: center;
    }
}

.share-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 10, 14, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.share-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.share-modal-box {
    background: rgba(26, 26, 36, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    width: 90%;
    max-width: 450px;
    overflow: hidden;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    direction: rtl;
    text-align: right;
}

.share-modal-overlay.active .share-modal-box {
    transform: translateY(0) scale(1);
}

.share-modal-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.share-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 900;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-close-share {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #a0a0b0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.3s;
}

.btn-close-share:hover {
    background: rgba(231, 76, 60, 0.2);
    border-color: rgba(231, 76, 60, 0.4);
    color: #ff4d4d;
}

.share-modal-body {
    padding: 24px;
}

.share-modal-intro {
    color: #a0a0b0;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.share-social-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.share-social-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border-radius: 12px;
    text-decoration: none;
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    transition: 0.3s ease;
    border: 1px solid rgba(255,255,255,0.02);
}

.share-social-btn i {
    font-size: 1.5rem;
}

.share-social-btn.telegram {
    background: rgba(0, 136, 204, 0.15);
    border-color: rgba(0, 136, 204, 0.2);
    color: #33b5e5;
}

.share-social-btn.telegram:hover {
    background: #0088cc;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 136, 204, 0.4);
}

.share-social-btn.whatsapp {
    background: rgba(37, 211, 102, 0.15);
    border-color: rgba(37, 211, 102, 0.2);
    color: #2ecc71;
}

.share-social-btn.whatsapp:hover {
    background: #25d366;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}

.share-social-btn.twitter {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: #e1e8ed;
}

.share-social-btn.twitter:hover {
    background: white;
    color: black;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

.share-divider {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, rgba(255,255,255,0), rgba(255,255,255,0.08), rgba(255,255,255,0));
    margin: 20px 0;
}

.share-qr-section {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 16px;
    border-radius: 14px;
    margin-bottom: 20px;
}

.share-qr-code {
    width: 100px;
    height: 100px;
    background: rgba(26, 26, 36, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    flex-shrink: 0;
}

.share-qr-code img {
    width: 100%;
    height: 100%;
    border-radius: 6px;
}

.share-qr-text {
    flex: 1;
}

.share-qr-text h4,
.share-qr-text h5 {
    color: white;
    font-size: 0.95rem;
    font-weight: 800;
    margin: 0 0 5px 0;
}

.share-qr-text p {
    color: #a0a0b0;
    font-size: 0.8rem;
    line-height: 1.6;
    margin: 0;
}

.share-copy-box {
    display: flex;
    gap: 8px;
    direction: ltr;
}

.share-copy-box input {
    flex: 1;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #a0a0b0;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 0.85rem;
    outline: none;
    text-align: left;
    font-family: monospace;
}

.share-copy-box button {
    background: var(--accent-purple);
    border: none;
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.9rem;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 5px 15px rgba(var(--accent-purple-rgb), 0.25);
}

.share-copy-box button:hover {
    background: var(--accent-purple-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(var(--accent-purple-rgb), 0.45);
}

.share-copy-success {
    display: none;
    color: #2ecc71;
    font-size: 0.85rem;
    font-weight: 700;
    margin-top: 10px;
    text-align: center;
    animation: fadeInUp 0.3s ease;
}

/* ==========================================================================
   Interactive Download Parts Grid - Cyberpunk / Glassmorphism (v7.8.24)
   ========================================================================== */

/* --- Grid Layout --- */
.download-parts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr));
    gap: 12px;
    margin-top: 20px;
}

/* --- Part Item Card (Zero-Lag GPU Composited) --- */
.dl-part-item,
.dl-part-item:hover,
.dl-part-item:focus,
.dl-part-item:active,
.dl-part-item:visited {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px 18px;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    text-decoration: none !important;
    transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.2s ease;
    position: relative;
    overflow: hidden;
    contain: layout style;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
}

.dl-part-item * {
    text-decoration: none !important;
}

/* --- Collapsed state (Strictly enforce display: none) --- */
.dl-part-item.dl-part-collapsed,
.dl-part-collapsed {
    display: none !important;
}

/* Pre-painted themed highlight overlay (GPU opacity-only toggle, zero frame-by-frame repaint) */
.dl-part-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
        135deg,
        rgba(var(--accent-purple-rgb, 112, 0, 223), 0.24) 0%,
        rgba(0, 242, 254, 0.12) 100%
    );
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
    opacity: 0;
    transition: opacity 0.22s ease;
    pointer-events: none;
    z-index: 0;
}
.dl-part-item:hover::after {
    opacity: 1;
}

/* GPU-composited angled shimmer sweep on hover */
.dl-part-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 48%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transform: translate3d(-160%, 0, 0) skewX(-20deg);
    transition: transform 0.52s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
    z-index: 2;
}
.dl-part-item:hover::before {
    transform: translate3d(320%, 0, 0) skewX(-20deg);
}

/* Zero-repaint GPU lift + crisp themed border */
.dl-part-item:hover {
    transform: translate3d(0, -4px, 0) scale(1.015);
    border-color: rgba(var(--accent-purple-rgb, 112, 0, 223), 0.72);
}

.dl-part-item:active {
    transform: translate3d(0, -1px, 0) scale(0.99);
    transition-duration: 0.1s;
}

/* --- Left section --- */
.dl-part-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    max-width: 100%;
    flex: 1 1 auto;
    position: relative;
    z-index: 1;
}

/* --- Right section --- */
.dl-part-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    max-width: 100%;
    position: relative;
    z-index: 1;
}

/* --- Part Icon (Restored Tilted Gradient Glow on GPU Compositor) --- */
.dl-part-item .part-icon {
    position: relative;
    overflow: hidden;
    background: rgba(var(--accent-purple-rgb, 112, 0, 223), 0.14);
    color: var(--accent-purple, #e0c3fc);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    border: 1px solid rgba(var(--accent-purple-rgb, 112, 0, 223), 0.32);
    flex-shrink: 0;
    transition: transform 0.26s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.18s ease, border-color 0.18s ease;
}

.dl-part-item .part-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--accent-cyan, #00f2fe), var(--accent-purple, #9333ea));
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    z-index: 0;
}

.dl-part-item .part-icon > * {
    position: relative;
    z-index: 1;
}

.dl-part-item:hover .part-icon {
    color: #ffffff;
    border-color: transparent;
    transform: scale(1.14) rotate(-10deg);
}

.dl-part-item:hover .part-icon::before {
    opacity: 1;
}

body.theme-halo .dl-part-item:hover .part-icon {
    color: #06180f;
}

/* --- Part Title --- */
.dl-part-item .part-title {
    color: #e5e7eb;
    font-size: 0.88rem;
    font-weight: 800;
    transition: color 0.18s ease;
    line-height: 1.4;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.dl-part-item:hover .part-title {
    color: #ffffff;
}

/* --- Download Section Wrapper (Lightweight Themed Surface) --- */
.download-wrapper-box {
    background: linear-gradient(
        155deg,
        rgba(var(--accent-purple-rgb, 112, 0, 223), 0.1) 0%,
        rgba(15, 15, 22, 0.94) 55%,
        rgba(0, 242, 254, 0.06) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 30px;
    margin-top: 35px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.42);
    position: relative;
    overflow: hidden;
}

.download-wrapper-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-cyan, #00f2fe), var(--accent-purple, #9333ea), var(--accent-yellow, #fbc2eb));
    box-shadow: 0 0 20px color-mix(in srgb, var(--accent-purple, #9333ea) 60%, transparent);
}

/* --- Header Badges --- */
.download-box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.download-repack-badge,
.download-version-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: color-mix(in srgb, var(--accent-purple, #9333ea) 20%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent-purple, #9333ea) 50%, transparent);
    color: #fff;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 800;
    box-shadow: 0 4px 20px color-mix(in srgb, var(--accent-purple, #9333ea) 30%, transparent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.download-version-badge {
    background: color-mix(in srgb, var(--accent-cyan, #00f2fe) 15%, transparent);
    border-color: color-mix(in srgb, var(--accent-cyan, #00f2fe) 40%, transparent);
    box-shadow: 0 4px 20px color-mix(in srgb, var(--accent-cyan, #00f2fe) 20%, transparent);
}

.download-repack-badge i {
    color: var(--accent-cyan, #00f2fe);
    filter: drop-shadow(0 0 5px color-mix(in srgb, var(--accent-cyan, #00f2fe) 50%, transparent));
}

.download-version-badge i {
    color: var(--accent-yellow, #fbbf24);
    filter: drop-shadow(0 0 5px color-mix(in srgb, var(--accent-yellow, #fbbf24) 50%, transparent));
}

/* --- Size Tag --- */
.dl-part-item .part-size-tag {
    background: rgba(255, 255, 255, 0.05);
    color: #9ca3af;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.74rem;
    font-weight: 700;
    flex-shrink: 0;
    transition: color 0.18s ease, border-color 0.18s ease;
}

.dl-part-item:hover .part-size-tag {
    background: rgba(16, 185, 129, 0.16);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.4);
}

/* --- Part Number Badge --- */
.dl-part-item .part-num-badge {
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.25);
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 6px;
    transition: background-color 0.24s ease, color 0.24s ease;
    font-family: monospace;
}

.dl-part-item:hover .part-num-badge {
    background: rgba(112, 0, 223, 0.2);
    color: rgba(168, 85, 247, 0.8);
}

/* ==========================================================================
   Expand Parts Button & Fade Overlay
   ========================================================================== */
.expand-parts-wrapper {
    position: relative;
    text-align: center;
    margin-top: -10px;
    padding-top: 45px;
}

.expand-parts-fade {
    position: absolute;
    top: -60px;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, transparent, var(--bg-dark, #0f0f13));
    pointer-events: none;
    z-index: 1;
}

.btn-expand-parts {
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, rgba(112,0,223,0.14), rgba(147,51,234,0.1));
    border: 1px solid rgba(168, 85, 247, 0.35);
    color: #e0c3fc;
    padding: 12px 28px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.btn-expand-parts:hover {
    background: linear-gradient(135deg, rgba(112,0,223,0.25), rgba(147,51,234,0.18));
    border-color: rgba(168, 85, 247, 0.6);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(112, 0, 223, 0.35), 0 0 15px rgba(168, 85, 247, 0.15);
}

.btn-expand-parts:active {
    transform: translateY(0);
    transition-duration: 0.1s;
}

.btn-expand-parts .expand-chevron {
    font-size: 0.85rem;
    transition: transform 0.22s ease;
}
.btn-expand-parts:hover .expand-chevron {
    transform: translateY(3px);
}

/* --- Search Input Polish --- */
.parts-search-input {
    background: rgba(255,255,255,0.06) !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    color: #fff !important;
    border-radius: 10px !important;
    padding: 7px 14px !important;
    font-size: 0.82rem !important;
    width: clamp(90px, 30vw, 130px) !important;
    max-width: 100% !important;
    outline: none !important;
    transition: all 0.3s ease !important;
}

.parts-search-input:focus {
    border-color: rgba(168, 85, 247, 0.5) !important;
    background: rgba(112, 0, 223, 0.08) !important;
    box-shadow: 0 0 12px rgba(112, 0, 223, 0.2) !important;
    width: min(180px, 60vw) !important;
}

/* --- Copy All Parts Button Polish --- */
.btn-copy-all-parts:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(147, 51, 234, 0.55) !important;
    filter: brightness(1.15);
}

.btn-copy-all-parts:active {
    transform: translateY(0) !important;
}

/* ==========================================================================
   Keyframes
   ========================================================================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(15px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes bounceDown {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(4px); }
}

@keyframes partReveal {
    from { opacity: 0; transform: translateY(10px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ==========================================================================
   Download Parts Grid Responsive
   ========================================================================== */
@media (max-width: 768px) {
    .download-parts-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }
    .dl-part-item {
        padding: 12px 16px;
    }
    .dl-part-item .part-title {
        font-size: 0.9rem;
    }
    .dl-part-item .part-num-badge {
        display: inline-block;
    }
    .parts-search-input:focus {
        width: min(140px, 50vw) !important;
    }
}

@media (max-width: 480px) {
    .download-parts-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .download-bulk-bar {
        flex-direction: column;
        align-items: stretch !important;
        gap: 10px !important;
    }
}

/* ==========================================================================
   Mobile & Large-Font Anti-Overflow Safeguards (320px - 430px, font 20px+)
   Applied only below 600px so desktop/tablet stay pixel-identical.
   ========================================================================== */
@media (max-width: 600px) {
    /* Hero actions: buttons stack safely, never overflow */
    .game-hero-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }

    /* Meta info wraps instead of pushing content out */
    .game-meta-info {
        gap: 10px 18px;
    }

    /* Breadcrumb: allow full wrapping of long English titles in RTL */
    .breadcrumb {
        padding-left: 12px;
        padding-right: 12px;
    }

    /* Info rows: value takes remaining space, wraps cleanly */
    .info-row {
        align-items: baseline;
    }
    .info-key {
        white-space: nowrap;
    }
    .info-val {
        text-align: right;
        flex: 1 1 auto;
    }

    /* Download notice + guide notice stack cleanly */
    .download-notice,
    .download-guide-notice {
        max-width: 100%;
    }

    /* System requirement values break long GPU/CPU names */
    .sys-value,
    .sys-list li span {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    /* Share modal fits ultra-narrow screens */
    .share-modal-box {
        width: calc(100vw - 24px);
        max-width: 450px;
    }
    .share-copy-box input {
        min-width: 0;
        width: 100%;
    }
    .share-social-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Steam Screenshots Grid */
.steam-screenshots-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}
.steam-screenshots-grid img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    transition: transform 0.2s;
    cursor: pointer;
}
.steam-screenshots-grid img:hover {
    transform: scale(1.03);
}

@media (max-width: 768px) {
    .steam-screenshots-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Post Description Links styling */
#descriptionCard a {
    color: #00b4d8 !important;
    text-decoration: underline !important;
    font-weight: bold !important;
    transition: color 0.2s ease-in-out;
}
#descriptionCard a:hover {
    color: #a855f7 !important;
}

/* Interactive Platform Links */
.platform-link-btn:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3), 0 0 8px rgba(255,255,255,0.08);
}
.platform-link-btn.steam-btn:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.3), 0 0 10px rgba(27, 40, 56, 0.6);
}
.platform-link-btn.windows-btn:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.3), 0 0 10px rgba(0, 120, 215, 0.4);
}

/* ==========================================
   Elastic Tab & Download Part Jelly Interaction
   ========================================== */
.game-tab-btn,
.nav-tab,
.faq-question-btn,
.dl-part-btn {
    position: relative;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease, color 0.3s ease !important;
}

.game-tab-btn:hover,
.nav-tab:hover {
    transform: translateY(-2px) scale(1.03);
}

.game-tab-btn:active,
.nav-tab:active {
    transform: translateY(1px) scale(0.95);
    transition: transform 0.1s ease !important;
}

.game-tab-btn.active {
    animation: jellyBounce 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dl-part-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(var(--accent-purple-rgb), 0.35);
}

.dl-part-btn:active {
    transform: translateY(1px) scale(0.96);
}

/* Single Post Layout, Mobile Responsiveness & News Styles (moved from single.php for browser caching) */
*, *::before, *::after {
    box-sizing: border-box !important;
}
html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    width: 100% !important;
}
html.modal-open,
body.modal-open {
    overflow: hidden !important;
    height: 100% !important;
}
.game-details,
.details-main,
.detail-card,
.sidebar-card,
.detail-card-body,
.detail-card-header,
.info-list,
.info-row,
.breadcrumb {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}
.detail-card,
.sidebar-card {
    overflow: hidden !important;
}
.detail-card-body {
    direction: rtl !important;
    text-align: right !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
    font-size: 0.94rem !important;
    line-height: 1.88 !important;
    color: var(--text-secondary) !important;
}
.detail-card-body p,
.detail-card-body li {
    font-size: 0.94rem !important;
    line-height: 1.88 !important;
    color: var(--text-secondary) !important;
    margin-bottom: 15px !important;
}
.detail-card-body h1 {
    font-size: clamp(1.2rem, 4.5vw, 1.4rem) !important;
    margin: 18px 0 10px 0 !important;
    color: #fff !important;
    font-weight: 800 !important;
}
.detail-card-body h2 {
    font-size: clamp(1.1rem, 3.8vw, 1.25rem) !important;
    margin: 16px 0 10px 0 !important;
    color: #fff !important;
    font-weight: 800 !important;
}
.detail-card-body h3 {
    font-size: clamp(1.00rem, 3.2vw, 1.12rem) !important;
    margin: 14px 0 8px 0 !important;
    color: var(--accent-yellow) !important;
    font-weight: 800 !important;
}
.detail-card-body h4,
.detail-card-body h5,
.detail-card-body h6 {
    font-size: 0.96rem !important;
    margin: 12px 0 6px 0 !important;
    color: #fff !important;
    font-weight: 700 !important;
}
.detail-card-body *,
.breadcrumb * {
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
    white-space: normal !important;
}
#descriptionCard .detail-card-body a {
    display: inline !important;
    color: #00b4d8 !important;
    text-decoration: underline !important;
    font-weight: bold !important;
}
.dl-part-item,
.dl-part-item *,
.related-item,
.related-item *,
.btn-guide-link,
.btn-guide-link * {
    text-decoration: none !important;
}
.related-info h3,
.related-info h4 {
    color: #ffffff !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    transition: color 0.2s ease !important;
}
.related-item:hover .related-info h3,
.related-item:hover .related-info h4 {
    color: var(--accent-yellow, #ffd600) !important;
    text-decoration: none !important;
}
.info-row {
    flex-wrap: wrap !important;
    align-items: baseline !important;
    gap: 4px 10px !important;
    font-size: 0.92rem !important;
}
.info-key {
    font-size: 0.92rem !important;
    flex-shrink: 0 !important;
}
.info-val {
    font-size: 0.92rem !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    max-width: 100% !important;
}
.mobile-only-card { display: none !important; }
@media (max-width: 992px) {
    .mobile-only-card { display: block !important; }
    .desktop-only-card { display: none !important; }
    .game-details {
        padding: 0 10px !important;
    }
}
@media (max-width: 768px) {
    .detail-card-body {
        padding: 14px 12px !important;
    }
    .detail-card-header {
        padding: 12px 14px !important;
    }
}

/* ===== Zero horizontal overflow on small screens & large fonts ===== */
.game-hero-content {
    min-width: 0 !important;
    max-width: 1200px !important;
    width: 100% !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
}
.game-hero-info,
.download-wrapper-box,
.download-bulk-bar,
.download-parts-grid,
.related-grid,
.info-list,
.tags-list,
.news-hero-meta,
.news-share-box {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}
.game-hero-actions > *,
.download-bulk-bar button,
.btn-guide-link,
.btn-copy-all-parts {
    max-width: 100% !important;
}
.btn-copy-all-parts,
.btn-expand-parts {
    white-space: normal !important;
    overflow-wrap: anywhere !important;
}
.part-title,
.info-val,
.breadcrumb span,
.tag-item,
.badge-tag {
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
}
.sidebar-card h3,
.detail-card-header h2 {
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
}
#shortlinkInput {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}
.platforms-list {
    max-width: 100% !important;
}
@media (max-width: 600px) {
    /* Hero title/subtitle wrap instead of clipping */
    .game-hero-title,
    .game-hero-subtitle {
        overflow-wrap: anywhere !important;
        word-break: break-word !important;
        max-width: 100% !important;
    }

    /* Meta items stack when they don't fit */
    .game-meta-info {
        flex-wrap: wrap !important;
        justify-content: center !important;
    }
    .meta-item {
        max-width: 100% !important;
    }
    .meta-item strong {
        overflow-wrap: anywhere !important;
    }

    /* Download bulk bar children go full-width and stack */
    .download-bulk-bar {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    .download-bulk-bar > div {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Part rows keep icon+title inside the card */
    .dl-part-left {
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }
    .part-size-tag,
    .part-num-badge {
        flex-shrink: 0 !important;
    }

    /* Related cards: titles clamp to two lines, never clip sideways */
    .related-info h3,
    .related-info h4 {
        white-space: normal !important;
        text-overflow: clip !important;
    }

    /* Sidebar inline-styled boxes stay in bounds */
    .sidebar-card .shortlink-box,
    .guide-sidebar-content,
    .platforms-list {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* News single layout stacks safely */
    .news-main-content {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    .news-rich-text,
    .news-rich-text * {
        max-width: 100% !important;
        overflow-wrap: anywhere !important;
        word-break: break-word !important;
    }
    .ai-news-summary-box ul {
        padding-right: 22px !important;
        padding-left: 4px !important;
    }

    /* Share/social buttons wrap to full width if needed */
    .news-share-box a {
        max-width: 100% !important;
    }
}
/* Modal container and scroll behavior */
.picker-modal {
    padding: 15px !important;
    overscroll-behavior: contain !important;
    touch-action: pan-y !important;
}
.picker-modal-content.steam-modal-content,
.picker-modal-content {
    max-height: 85vh !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 0 !important;
    overflow: hidden !important;
    overscroll-behavior: contain !important;
    touch-action: pan-y !important;
}
.picker-modal-header {
    padding: 14px 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-shrink: 0 !important;
    border-bottom: 1px solid rgba(255,255,255,0.1) !important;
    background: #141420 !important;
    margin-bottom: 0 !important;
}
.picker-modal-header h3,
.picker-modal-header h4 {
    margin: 0 !important;
    font-size: 1.15rem !important;
}
.picker-modal-header .picker-close {
    position: static !important;
    background: rgba(255,255,255,0.1) !important;
    color: #fff !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.1rem !important;
    cursor: pointer !important;
    transition: background 0.2s !important;
}
.picker-modal-header .picker-close:hover {
    background: rgba(255,255,255,0.25) !important;
}
.picker-modal-body {
    padding: 16px !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    flex: 1 !important;
    overscroll-behavior: contain !important;
    touch-action: pan-y !important;
}
.steam-screenshots-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
}
.steam-screenshots-grid img {
    width: 100% !important;
    aspect-ratio: 16 / 9 !important;
    object-fit: cover !important;
    border-radius: 10px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    cursor: pointer !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}
.steam-screenshots-grid img:hover {
    transform: scale(1.02) !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.6) !important;
}
@media (max-width: 768px) {
    .steam-screenshots-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
}

  .news-rich-text a {
    color: #00b4d8 !important;
    text-decoration: underline !important;
    font-weight: bold !important;
    transition: color 0.2s ease-in-out;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }
  .news-rich-text a:hover {
    color: #a855f7 !important;
  }
  .news-hero-meta,
  .news-hero-meta span {
    max-width: 100%;
    min-width: 0;
  }
  .news-title {
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }
  .news-featured-img-wrapper img {
    max-width: 100% !important;
  }
  .news-share-box > div {
    flex-wrap: wrap;
    min-width: 0;
  }
  @media (max-width: 991px) {
    .news-body {
      flex-direction: column !important;
      padding: 0 15px !important;
    }
    .news-sidebar {
      width: 100% !important;
      max-width: 100% !important;
    }
  }
  @media (max-width: 768px) {
    .news-hero {
      margin-top: 80px !important;
      padding: 0 15px !important;
    }
    .news-hero .news-title {
      font-size: 1.8rem !important;
    }
    .news-main-content {
      padding: 22px !important;
      font-size: 0.98rem !important;
      line-height: 1.85 !important;
    }
    /* Large accessibility fonts on news pages */
    .news-hero-meta {
      font-size: 0.85rem !important;
    }
  }

/* Telegram Archive Mirror Bar (Phase 1 Unified Ecosystem + Theme Sync) */
.tg-mirror-bar {
    container-type: inline-size;
    container-name: tg-mirror;
    margin-top: 24px;
    padding: 18px 20px;
    border-top: 2px solid rgba(var(--accent-purple-rgb, 112, 0, 223), 0.72);
    border-right: 1px solid rgba(var(--accent-purple-rgb, 112, 0, 223), 0.28);
    border-bottom: 1px solid rgba(var(--accent-purple-rgb, 112, 0, 223), 0.28);
    border-left: 1px solid rgba(var(--accent-purple-rgb, 112, 0, 223), 0.28);
    border-radius: 16px;
    background: radial-gradient(circle at top right, rgba(var(--accent-purple-rgb, 112, 0, 223), 0.16), transparent 55%),
                rgba(16, 17, 25, 0.9);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    transition: border-color 220ms ease, box-shadow 220ms ease;
}

.tg-mirror-bar:hover {
    border-color: rgba(var(--accent-purple-rgb, 112, 0, 223), 0.52);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.36), 0 0 22px rgba(var(--accent-purple-rgb, 112, 0, 223), 0.16);
}

.tg-mirror-bar--channel {
    border-top-color: rgba(var(--accent-purple-rgb, 112, 0, 223), 0.45);
    border-right-color: rgba(var(--accent-purple-rgb, 112, 0, 223), 0.22);
    border-bottom-color: rgba(var(--accent-purple-rgb, 112, 0, 223), 0.22);
    border-left-color: rgba(var(--accent-purple-rgb, 112, 0, 223), 0.22);
    background: radial-gradient(circle at top right, rgba(var(--accent-purple-rgb, 112, 0, 223), 0.08), transparent 55%),
                rgba(255, 255, 255, 0.03);
}

.tg-mirror-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-width: 0;
}

.tg-mirror-copy {
    flex: 1 1 auto;
    min-width: 0;
}

.tg-mirror-bar .tg-mirror-copy h3 {
    margin: 0 0 6px 0;
    font-size: 1.02rem;
    font-weight: 800;
    color: var(--accent-yellow, #ffd600);
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.45;
}

.tg-mirror-bar .tg-mirror-copy h3 i {
    color: var(--accent-purple, #7000df);
    font-size: 1.15rem;
    flex-shrink: 0;
}

.tg-mirror-bar .tg-mirror-copy p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.75;
    color: #cbd5e1;
}

.tg-mirror-bar .tg-mirror-copy p.tg-ver-meta {
    margin-top: 6px;
    color: rgba(241, 245, 249, 0.92);
    font-weight: 700;
}

.tg-mirror-bar .tg-mirror-copy p.tg-ver-meta bdi {
    color: var(--accent-yellow, #ffd600);
    font-weight: 800;
}

.tg-mirror-action {
    flex-shrink: 0;
}

.tg-mirror-cta {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 11px 22px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent-purple, #7000df), var(--accent-purple-hover, #5d00b8));
    border: 1px solid rgba(var(--accent-yellow-rgb, 255, 214, 0), 0.42);
    color: #ffffff;
    font-size: 0.93rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 6px 18px rgba(var(--accent-purple-rgb, 112, 0, 223), 0.34);
    transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1), background-color 200ms ease, border-color 200ms ease, box-shadow 200ms ease, color 200ms ease;
}

.tg-mirror-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 45%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.24), transparent);
    transform: translate3d(-160%, 0, 0) skewX(-22deg);
    transition: transform 480ms cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}

.tg-mirror-cta i {
    transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1);
}

.tg-mirror-cta:hover,
.tg-mirror-cta:focus-visible {
    border-color: rgba(var(--accent-yellow-rgb, 255, 214, 0), 0.78);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(var(--accent-purple-rgb, 112, 0, 223), 0.5), 0 0 0 1px rgba(var(--accent-yellow-rgb, 255, 214, 0), 0.45);
}

.tg-mirror-cta:hover::before,
.tg-mirror-cta:focus-visible::before {
    transform: translate3d(320%, 0, 0) skewX(-22deg);
}

.tg-mirror-cta:hover i,
.tg-mirror-cta:focus-visible i {
    transform: translate(-4px, -2px);
}

.tg-mirror-cta:active {
    transform: translateY(0) scale(0.98);
    transition-duration: 90ms;
}

/* Preserve WCAG AA text contrast on bright Neon Green (Halo theme) */
body.theme-halo .tg-mirror-cta,
body.theme-halo .tg-mirror-cta:hover,
body.theme-halo .tg-mirror-cta:focus-visible {
    color: #06180f;
}

.tg-mirror-cta--subtle {
    background: rgba(var(--accent-purple-rgb, 112, 0, 223), 0.16);
    border-color: rgba(var(--accent-purple-rgb, 112, 0, 223), 0.55);
    box-shadow: none;
    color: #f8fafc;
}

.tg-mirror-cta--subtle:hover,
.tg-mirror-cta--subtle:focus-visible {
    background: linear-gradient(135deg, var(--accent-purple, #7000df), var(--accent-purple-hover, #5d00b8));
    border-color: rgba(var(--accent-yellow-rgb, 255, 214, 0), 0.65);
    color: #ffffff;
}

body.theme-halo .tg-mirror-cta--subtle {
    color: #ecfdf5;
}

body.theme-halo .tg-mirror-cta--subtle:hover,
body.theme-halo .tg-mirror-cta--subtle:focus-visible {
    color: #06180f;
}

@container tg-mirror (max-width: 559px) {
    .tg-mirror-layout {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .tg-mirror-action {
        width: 100%;
    }

    .tg-mirror-cta {
        width: 100%;
        white-space: normal;
        text-align: center;
    }
}
