/* ==========================================================
   GAMING FOOTER — red / grey, angled style
   ========================================================== */
html[data-theme="dark"] {
    --gzf-bg: #0b0c0e;
    --gzf-pattern: rgba(255, 255, 255, .02);
    --gzf-text: #9aa0a9;
    --gzf-head: #ffffff;
    --gzf-line: #1f2226;
    --gzf-card: #15171a;
    --gzf-bottom: #070809;
    --gzf-chip: #2a2d33;
    --gzf-watermark: rgba(255, 255, 255, .08);
}
html[data-theme="light"] {
    --gzf-bg: #ffffff;
    --gzf-pattern: rgba(0, 0, 0, .025);
    --gzf-text: #5a5f68;
    --gzf-head: #15171a;
    --gzf-line: #e3e5e8;
    --gzf-card: #f2f3f5;
    --gzf-bottom: #f2f3f5;
    --gzf-chip: #4a4e56;
    --gzf-watermark: rgba(0, 0, 0, .1);
}

.gz-footer {
    position: relative;
    overflow: hidden;
    margin-top: 60px;
    background-color: var(--gzf-bg);
    background-image: repeating-linear-gradient(135deg, var(--gzf-pattern) 0 2px, transparent 2px 12px);
    border-top: 3px solid var(--gz-red);
    color: var(--gzf-text);
}
.gz-footer svg { display: block; flex-shrink: 0; }

/* Angled tabs on top edge */
.gz-footer-tab {
    position: absolute;
    top: 0;
    left: 0;
    width: min(420px, 45%);
    height: 12px;
    background: var(--gz-red);
    clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
}
.gz-footer-tab--r {
    left: auto;
    right: 0;
    width: min(180px, 25%);
    background: var(--gzf-chip);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 12px 100%);
}

/* ---------- Main grid ---------- */
.gz-footer-main { padding-top: 64px; }
.gz-footer-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px 48px;
}
.gz-fcol { flex: 1 1 180px; min-width: 0; }
.gz-fcol--brand { flex: 1.6 1 280px; }
.gz-fcol--cta { flex: 1.2 1 240px; }

/* Brand */
.gz-flogo { line-height: 0; margin-bottom: 18px; }
.gz-footer .custom-logo-link { display: inline-block; }
.gz-footer .custom-logo { max-height: 60px; width: auto; height: auto; }
.gz-footer .gz-site-title {
    display: inline-block;
    line-height: 1.1;
    font-size: 24px;
    font-weight: 800;
    font-style: italic;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--gzf-head);
}
.gz-footer .gz-site-title:hover { color: var(--gz-red); }

.gz-footer-about {
    max-width: 380px;
    margin: 0 0 22px;
    font-size: 14px;
    line-height: 1.75;
}

/* Social */
.gz-footer .gz-social {
    display: flex;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.gz-footer .gz-soc {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 34px;
    background: var(--gzf-chip);
    color: #fff;
    text-decoration: none;
    transition: background-color .2s, transform .2s;
}
.gz-footer .gz-soc svg { width: 16px; height: 16px; }
.gz-footer .gz-soc:hover,
.gz-footer .gz-soc:focus-visible {
    background: var(--gz-red);
    color: #fff;
    transform: translateY(-3px);
}

/* Headings */
.gz-footer .gz-fhead {
    position: relative;
    margin: 0 0 22px;
    padding-left: 20px;
    color: var(--gzf-head);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.gz-footer .gz-fhead::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 10px;
    height: 14px;
    margin-top: -7px;
    background: var(--gz-red);
    transform: skewX(-20deg);
}

/* Link lists */
.gz-flinks { list-style: none; margin: 0; padding: 0; }
.gz-flinks li { margin: 0; border-bottom: 1px dashed var(--gzf-line); }
.gz-footer .gz-flinks a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    color: var(--gzf-text);
    font-size: 14px;
    text-decoration: none;
    transition: color .2s, transform .2s;
}
.gz-footer .gz-flinks a::before {
    content: "";
    flex-shrink: 0;
    width: 6px;
    height: 6px;
    border-top: 2px solid var(--gz-red);
    border-right: 2px solid var(--gz-red);
    transform: rotate(45deg);
}
.gz-footer .gz-flinks a:hover,
.gz-footer .gz-flinks a:focus-visible {
    color: var(--gzf-head);
    transform: translateX(4px);
}
.gz-fcount {
    margin-left: auto;
    min-width: 32px;
    padding: 2px 8px;
    background: var(--gzf-chip);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    clip-path: polygon(15% 0, 100% 0, 85% 100%, 0 100%);
    transition: background-color .2s;
}
.gz-footer .gz-flinks a:hover .gz-fcount { background: var(--gz-red); }

/* Telegram card */
.gz-tg-card {
    position: relative;
    overflow: hidden;
    padding: 22px;
    background: var(--gzf-card);
    border-left: 4px solid var(--gz-red);
}
.gz-tg-card-icon {
    position: absolute;
    right: -14px;
    bottom: -16px;
    width: 100px;
    height: 100px;
    color: var(--gz-red);
    opacity: .12;
    pointer-events: none;
}
.gz-tg-card-icon svg { width: 100%; height: 100%; }
.gz-tg-card p {
    position: relative;
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.7;
}
.gz-footer .gz-tg-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 26px;
    background: var(--gz-red);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
    transition: background-color .2s;
}
.gz-footer .gz-tg-btn svg { width: 16px; height: 16px; }
.gz-footer .gz-tg-btn:hover,
.gz-footer .gz-tg-btn:focus-visible { background: var(--gz-red-hover); color: #fff; }

/* Big outlined watermark */
.gz-footer-watermark {
    margin-top: 56px;
    overflow: hidden;
    font-size: clamp(48px, 11vw, 170px);
    font-weight: 900;
    font-style: italic;
    line-height: .78;
    letter-spacing: -2px;
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap;
    color: transparent;
    -webkit-text-stroke: 1px var(--gzf-watermark);
    user-select: none;
    pointer-events: none;
}

/* ---------- Bottom bar ---------- */
.gz-footer-bottom {
    position: relative;
    background: var(--gzf-bottom);
    border-top: 1px solid var(--gzf-line);
}
.gz-footer-bottom-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    padding-top: 18px;
    padding-bottom: 18px;
    font-size: 13px;
}
.gz-copy { margin: 0; }
.gz-copy strong { color: var(--gzf-head); }

.gz-footer-legal {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}
.gz-footer-legal li + li::before {
    content: "/";
    margin: 0 12px;
    color: var(--gz-red);
}
.gz-footer .gz-footer-legal a {
    color: var(--gzf-text);
    text-decoration: none;
    transition: color .2s;
}
.gz-footer .gz-footer-legal a:hover { color: var(--gz-red); }

/* ---------- Back to top ---------- */
.gz-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: var(--gz-red);
    color: #fff;
    box-shadow: none;
    cursor: pointer;
    clip-path: polygon(20% 0, 100% 0, 80% 100%, 0 100%);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .25s, visibility .25s, transform .25s, background-color .2s;
}
.gz-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.gz-to-top:hover,
.gz-to-top:focus,
.gz-to-top:focus-visible { background: var(--gz-red-hover); color: #fff; }
.gz-to-top svg { display: block; width: 20px; height: 20px; }

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 921px) {
    .gz-footer-main { padding-top: 48px; }
    .gz-footer-grid { gap: 36px 32px; }
    .gz-fcol--brand { flex-basis: 100%; }
}

@media (max-width: 600px) {
    .gz-fcol--links { flex-basis: calc(50% - 16px); }
    .gz-fcol--cta { flex-basis: 100%; }
    .gz-footer-watermark { margin-top: 40px; }
    .gz-footer-bottom-inner { flex-direction: column; text-align: center; }
    .gz-footer-legal { justify-content: center; }
    .gz-to-top { right: 14px; bottom: 14px; width: 46px; height: 40px; }
}

@media (max-width: 380px) {
    .gz-fcol--links { flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .gz-footer *,
    .gz-to-top { transition: none !important; }
}