/* --- Shell --- */
.shell,
.golden-shell {
    --how-footer-flow-bg: linear-gradient(180deg, #02030b 0%, #0b2f6b 50%, #02030b 100%);
    width: 100%;
    max-width: var(--shell-desktop-width);
    min-height: 100vh;
    margin: 0 auto;
    overflow-x: hidden;
    overflow-y: visible;
    background: #070044 url("../images/bg/BG.webp") top center/100% auto repeat-y;
    box-shadow: 0 0 42px rgba(0, 0, 0, 0.85);
}

@media (max-width: 900px) {
    .shell,
    .golden-shell {
        max-width: var(--shell-tablet-width);
    }
}

@media (max-width: 767px) {
    .shell,
    .golden-shell {
        max-width: var(--shell-mobile-width);
    }
}

/* --- Header --- */
header { position: relative; }

.site-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 20px;
    background: url("../images/bg/Gold-Lens-Flare-Line left.webp") center/100% 100% no-repeat;
    pointer-events: none;
    z-index: 2;
}

.golden-header {
    height: 114px;
    padding: 12px 45px 12px 69px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
    background: #05002f url("../images/bg/Header.webp") center/100% 100% no-repeat;
}

.top-logo {
    width: 144px;
    flex: 0 0 auto;
}

.top-nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    gap: 38px;
    color: #fff;
    font-size: 21px;
    font-weight: 900;
    line-height: 1;
    text-shadow: 0 1px 2px #000;
    white-space: nowrap;
}

.top-social {
    display: flex;
    gap: 12px;
    flex: 0 0 auto;
}

.top-social a {
    display: block;
    line-height: 0;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.top-social img {
    width: 39px;
    height: 39px;
}

.top-social a:hover,
.top-social a:focus-visible {
    transform: translateY(-2px) scale(1.1);
    filter: drop-shadow(0 0 8px rgba(255, 232, 117, 0.85));
}

.top-social a:active {
    transform: translateY(0) scale(0.96);
    filter: drop-shadow(0 0 5px rgba(255, 178, 46, 0.75));
}

@media (max-width: 767px) {
    .golden-header {
        height: 75px;
        padding: 4px 11px 4px 20px;
        gap: 8px;
        justify-content: flex-start;
    }
    .top-logo { width: 62px; }
    .top-nav { flex: 0 1 auto; margin-left: auto; gap: 10px; font-size: 10px; }
    .top-social { gap: 4px; margin-right: 30px; }
    .top-social img { width: 16px; height: 16px; }
}

/* --- Footer --- */
.footer {
    padding: 35px 61px 50px;
    text-align: center;
}

.golden-footer {
    position: relative;
    padding: 4px 18px 0;
    overflow: hidden;
    background: transparent !important;
    border-top: 0;
    text-align: center;
}

.footer-text {
    position: relative;
    z-index: 1;
    margin: 0 -18px;
    padding: 10px 18px 25px;
    background: #000;
}

.footer-links-wrap {
    position: relative;
    z-index: 2;
    margin: 0 -18px 18px;
    padding: 26px clamp(48px, 7vw, 86px) 30px;
    background: var(--how-footer-flow-bg);
    background-size: 100% 200%;
    background-position: bottom;
}

.footer-flare {
    position: absolute;
    left: 0;
    width: 100%;
    height: 20px;
    pointer-events: none;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    z-index: 1;
}

.footer-flare-left {
    bottom: -13px;
    background-image: url("../images/bg/Gold-Lens-Flare-Line left.webp");
}

.footer-flare-right {
    top: -13px;
    background-image: url("../images/bg/Gold-Lens-Flare-Line right.webp");
}

.golden-footer .links {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(16px, 2vw, 24px);
    width: min(100%, 900px);
    margin: 0 auto;
}

.golden-footer .links > div,
.golden-footer .links_lable {
    flex: none;
    min-width: 0;
}

.golden-footer .links_lable {
    width: 100%;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255, 255, 255, 0.92);
    border-radius: 13px;
    background: linear-gradient(180deg, rgba(11, 39, 96, 0.88), rgba(2, 3, 11, 0.9));
    box-shadow:
        inset 0 0 14px rgba(118, 188, 255, 0.16),
        0 2px 0 rgba(255, 255, 255, 0.28);
}

.golden-footer .links_lable > a,
.golden-footer .links_lable > .contact-link {
    width: 100%;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    color: #fff;
    font-size: clamp(12px, 1.2vw, 16px);
    font-weight: 700;
    line-height: 1.05;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
    white-space: nowrap;
    overflow-wrap: normal;
}

.golden-footer .links_lable > .contact-link {
    gap: 9px;
    overflow-wrap: normal;
}

.footer-contact-icons {
    display: flex;
    align-items: center;
    gap: 5px;
    flex: 0 0 auto;
}

.footer-contact-icons img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.footer-contact-icons a {
    display: block;
    flex: 0 0 auto;
    line-height: 0;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.footer-contact-icons a:hover,
.footer-contact-icons a:focus-visible {
    transform: translateY(-2px) scale(1.1);
    filter: drop-shadow(0 0 8px rgba(255, 232, 117, 0.85));
}

.footer-contact-icons a:active {
    transform: translateY(0) scale(0.96);
    filter: drop-shadow(0 0 5px rgba(255, 178, 46, 0.75));
}

.footer-logo {
    position: relative;
    z-index: 1;
    width: 142px;
    margin: 0 auto 29px;
}

.copyright {
    position: relative;
    z-index: 1;
    margin: 0 auto;
    color: #8a8a8a;
    font-size: 18px !important;
    line-height: 1.18;
}

@media (max-width: 767px) {
    .footer-links-wrap {
        padding: 12px 20px 14px;
    }
    .footer-flare { height: 20px; }
    .golden-footer .links { gap: 6px; }
    .golden-footer .links_lable,
    .golden-footer .links_lable > a,
    .golden-footer .links_lable > .contact-link {
        min-height: 32px;
    }
    .golden-footer .links_lable {
        border-width: 2px;
        border-radius: 7px;
    }
    .golden-footer .links_lable > a,
    .golden-footer .links_lable > .contact-link {
        padding: 0 3px;
        font-size: 7px;
        line-height: 1.05;
    }
    .golden-footer .links_lable > .contact-link { gap: 4px; }
    .footer-contact-icons { gap: 2px; }
    .footer-contact-icons img {
        width: 13px;
        height: 13px;
    }
}

/* --- Game cards --- */
.home-games,
.games {
    position: relative;
    padding: 20px 17px 21px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 11px 10px;
}

.games-title-image {
    grid-column: 1 / -1;
    justify-self: center;
    width: clamp(310px, 52%, 540px);
    height: auto;
    margin: -3px auto 2px;
}

.game-card {
    position: relative;
}

.game-card img {
    width: 100%;
}

.game-card .badge {
    position: absolute;
    left: 0;
    top: 0;
    width: 33px;
    height: auto;
}

.more-card {
    display: flex;
    align-items: center;
    justify-content: center;
}

.more-card img {
    width: clamp(88px, 58%, 150px);
}

.semantic-heading {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* --- Download button --- */
.download-buttons {
    position: static;
}

.way-download {
    --download-fixed-top: 50%;
    --download-fixed-right: 20px;
    --download-button-width: 205px;
    --download-small-width: 63px;
    position: fixed;
    top: var(--download-fixed-top);
    right: var(--download-fixed-right);
    z-index: 1000;
    display: block;
    width: var(--download-button-width);
    height: var(--download-small-width);
    cursor: pointer;
    transform: translateY(-50%);
    overflow: visible;
}

.download-buttons .way-download-full,
.way-download-full {
    position: absolute;
    top: 10%;
    right: 0;
    z-index: 3;
    display: block;
    width: 100%;
    height: auto;
    opacity: 0;
    pointer-events: none;
    transform: translate(22px, -50%) scaleX(0.28);
    transform-origin: right center;
    transition: opacity 0.28s ease, transform 0.28s ease, filter 0.28s ease;
    filter: drop-shadow(0 0 0 rgba(255, 231, 123, 0));
}

.way-download:hover .way-download-full,
.way-download:focus .way-download-full,
.way-download:focus-visible .way-download-full,
.way-download:active .way-download-full {
    opacity: 1;
    pointer-events: auto;
    transform: translate(0, -50%) scaleX(1);
    filter: drop-shadow(0 0 12px rgba(255, 231, 123, 0.68));
}

.way-download-small-frame {
    position: absolute;
    top: 60%;
    right: 0;
    z-index: 2;
    display: block;
    width: var(--download-small-width);
    aspect-ratio: 1 / 1.56;
    border-radius: 999px;
    transform: translateY(-50%);
    overflow: hidden;
}

.way-download-small-frame::before {
    content: "";
    position: absolute;
    inset: -45%;
    background: conic-gradient(from 0deg, transparent 0 18%, rgba(255, 244, 170, 0.15) 24%, #fff4a8 32%, #ffcf2e 38%, transparent 48% 100%);
    animation: downloadGlowSpin 1.8s linear infinite;
    z-index: 0;
}

.way-download-small-frame::after {
    content: "";
    position: absolute;
    inset: 5px;
    border-radius: inherit;
    background: rgba(0, 0, 0, 0.08);
    z-index: 1;
}

.download-buttons .way-download-small,
.way-download-small {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    height: auto;
    transform: none;
    filter: drop-shadow(0 0 7px rgba(255, 238, 135, 0.42));
}

@keyframes downloadGlowSpin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 767px) {
    .way-download {
        --download-fixed-top: 55%;
        --download-fixed-right: 11px;
        --download-button-width: 112px;
        --download-small-width: 35px;
    }
}
