@font-face {
    font-family: "Barlow TF";
    src: url("/thf-ui/fonts/barlow-regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Barlow TF";
    src: url("/thf-ui/fonts/barlow-semibold.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Cormorant TF";
    src: url("/thf-ui/fonts/cormorant-semibold.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

:root {
    --tf-bg-deep: #07080d;
    --tf-bg-panel: #11131c;
    --tf-bg-stone: #181b27;
    --tf-line: rgba(255, 255, 255, 0.08);
    --tf-text: #eef1f8;
    --tf-muted: #9aa3b8;
    --tf-blue: #4d79ff;
    --tf-blue-bright: #6b93ff;
    --tf-green: #38d996;
    --tf-radius: 14px;
    --tf-font-ui: "Barlow TF", "Segoe UI", sans-serif;
    --tf-font-display: "Cormorant TF", Georgia, serif;
    --tf-shell-width: 1240px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--tf-font-ui);
    font-size: 15px;
    line-height: 1.55;
    color: var(--tf-text);
    background:
        radial-gradient(circle at 20% -10%, rgba(77, 121, 255, 0.12), transparent 42%),
        radial-gradient(circle at 90% 0%, rgba(56, 217, 150, 0.05), transparent 35%),
        var(--tf-bg-deep);
}

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

a {
    color: inherit;
}

.tf-app-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- header chrome --- */
.tf-site-head {
    position: sticky;
    top: 0;
    z-index: 900;
    background: rgba(7, 8, 13, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--tf-line);
}

.tf-head-strip {
    max-width: var(--tf-shell-width);
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.tf-brand-mark {
    flex-shrink: 0;
}

.tf-brand-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.tf-brand-img {
    width: auto;
    height: 34px;
    object-fit: contain;
}

.tf-brand-text {
    font-family: var(--tf-font-display);
    font-size: 1.45rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tf-head-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.tf-lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 2px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.tf-lang-link {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    min-width: 34px;
    padding: 3px 5px;
    border-radius: 6px;
    text-decoration: none;
    color: var(--tf-text-muted, rgba(255, 255, 255, 0.45));
    line-height: 1;
    opacity: 0.65;
    transition: background 0.18s ease, opacity 0.18s ease, box-shadow 0.18s ease;
}

.tf-lang-link:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.06);
    color: var(--tf-text);
}

.tf-lang-link.is-active {
    opacity: 1;
    color: var(--tf-text);
    background: rgba(255, 193, 7, 0.12);
    box-shadow: inset 0 0 0 1px rgba(255, 193, 7, 0.45);
}

.tf-lang-flag {
    font-size: 0.95rem;
    line-height: 1;
}

.tf-lang-code {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1;
}

.tf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 18px;
    border-radius: 10px;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.tf-btn--ghost {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.14);
    color: var(--tf-text);
}

.tf-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.08);
}

.tf-btn--lightning {
    color: #fff;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, transparent 45%),
        linear-gradient(160deg, #5a86ff 0%, #3b63e8 55%, #2748b8 100%);
    box-shadow: 0 8px 24px rgba(77, 121, 255, 0.28);
}

.tf-btn--lightning:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(77, 121, 255, 0.38);
}

/* --- horizontal nav row (desktop) --- */
.tf-horiz-nav {
    border-top: 1px solid var(--tf-line);
    background: linear-gradient(180deg, rgba(24, 27, 39, 0.95), rgba(17, 19, 28, 0.95));
}

.tf-horiz-nav-list {
    list-style: none;
    margin: 0 auto;
    padding: 0 12px;
    max-width: var(--tf-shell-width);
    display: flex;
    align-items: stretch;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
}

.tf-horiz-nav-list::-webkit-scrollbar {
    display: none;
}

.tf-horiz-nav-item {
    flex: 0 0 auto;
}

.tf-horiz-nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--tf-muted);
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    border-bottom: 2px solid transparent;
    transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
    white-space: nowrap;
}

.tf-horiz-nav-link:hover,
.tf-horiz-nav-link.is-active {
    color: var(--tf-text);
    border-bottom-color: var(--tf-blue);
    background: rgba(77, 121, 255, 0.08);
}

.tf-nav-glyph {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* --- mobile drawer + burger --- */
.tf-burger-trigger {
    display: none;
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 1100;
    width: 54px;
    height: 54px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background: linear-gradient(160deg, #1a2030, #0d1018);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.tf-burger-line {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--tf-text);
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.tf-burger-trigger.is-open .tf-burger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.tf-burger-trigger.is-open .tf-burger-line:nth-child(2) {
    opacity: 0;
}

.tf-burger-trigger.is-open .tf-burger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.tf-drawer-scrim {
    position: fixed;
    inset: 0;
    z-index: 1050;
    background: rgba(0, 0, 0, 0.62);
}

.tf-drawer-scrim:not([hidden]) {
    display: block;
}

.tf-mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1060;
    width: min(88vw, 320px);
    height: 100vh;
    padding: 18px 16px 24px;
    background: linear-gradient(180deg, #151824 0%, #0b0d14 100%);
    border-left: 1px solid var(--tf-line);
    transform: translateX(105%);
    transition: transform 0.28s ease;
    overflow-y: auto;
}

.tf-mobile-drawer.is-visible {
    transform: translateX(0);
}

.tf-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.tf-drawer-title {
    font-family: var(--tf-font-display);
    font-size: 1.2rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.tf-drawer-close {
    width: 36px;
    height: 36px;
    border: 1px solid var(--tf-line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--tf-text);
    cursor: pointer;
}

.tf-drawer-close svg {
    width: 18px;
    height: 18px;
}

.tf-drawer-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 6px;
}

.tf-drawer-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--tf-muted);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
}

.tf-drawer-link.is-active,
.tf-drawer-link:hover {
    color: var(--tf-text);
    border-color: rgba(77, 121, 255, 0.35);
    background: rgba(77, 121, 255, 0.1);
}

/* --- page body --- */
.tf-page-body {
    flex: 1;
    width: 100%;
    max-width: var(--tf-shell-width);
    margin: 0 auto;
    padding: 20px;
}

.tf-crumb-trail {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 18px;
    font-size: 0.82rem;
}

.tf-crumb-link {
    color: var(--tf-muted);
    text-decoration: none;
}

.tf-crumb-link:hover {
    color: var(--tf-blue-bright);
}

.tf-crumb-sep {
    color: rgba(255, 255, 255, 0.25);
}

/* --- hero slider --- */
.tf-hero-slider {
    position: relative;
    margin-bottom: 28px;
    border-radius: var(--tf-radius);
    overflow: hidden;
    border: 1px solid var(--tf-line);
    background: var(--tf-bg-stone);
}

.tf-hero-track {
    display: flex;
    transition: transform 0.45s ease;
    will-change: transform;
}

.tf-hero-slide {
    flex: 0 0 100%;
    position: relative;
}

.tf-hero-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 760 / 260;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0d1018;
}

.tf-hero-frame picture,
.tf-hero-frame img {
    width: 100%;
    height: 100%;
}

.tf-hero-frame img {
    object-fit: contain;
}

.tf-hero-overlay {
    position: absolute;
    inset: auto 0 0 0;
    padding: 18px 20px;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.78));
}

.tf-hero-title {
    font-family: var(--tf-font-display);
    font-size: clamp(1.1rem, 2.4vw, 1.65rem);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.tf-hero-sub {
    color: var(--tf-muted);
    margin-bottom: 12px;
    font-size: 0.92rem;
}

.tf-hero-dots {
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.tf-hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 0;
    padding: 0;
    background: rgba(255, 255, 255, 0.28);
    cursor: pointer;
}

.tf-hero-dot.is-current {
    background: var(--tf-blue);
    box-shadow: 0 0 0 3px rgba(77, 121, 255, 0.25);
}

/* --- game sections --- */
.tf-games-block {
    margin-bottom: 34px;
}

.tf-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.tf-section-label {
    font-family: var(--tf-font-display);
    font-size: 1.35rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.tf-section-action {
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--tf-blue-bright);
    padding: 8px 14px;
    border: 1px solid rgba(77, 121, 255, 0.35);
    border-radius: 999px;
}

.tf-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
    gap: 14px;
}

.tf-slot-card {
    border-radius: 12px;
    overflow: hidden;
    background: var(--tf-bg-panel);
    border: 1px solid var(--tf-line);
}

.tf-slot-visual {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #0a0c12;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tf-slot-visual img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tf-slot-actions {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    background: rgba(7, 8, 13, 0.55);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.tf-slot-card:hover .tf-slot-actions,
.tf-slot-card:focus-within .tf-slot-actions {
    opacity: 1;
}

.tf-slot-btn {
    min-width: 108px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: 1px solid transparent;
}

.tf-slot-btn--demo {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
    color: var(--tf-text);
}

.tf-slot-btn--play {
    color: #fff;
    background: linear-gradient(160deg, #5a86ff, #3b63e8);
    box-shadow: 0 6px 18px rgba(77, 121, 255, 0.35);
}

.tf-slot-name {
    padding: 10px 12px;
    font-size: 0.84rem;
    font-weight: 600;
    text-align: center;
    color: var(--tf-muted);
}

/* --- bonuses --- */
.tf-bonus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.tf-bonus-card {
    position: relative;
    border-radius: var(--tf-radius);
    overflow: hidden;
    background: var(--tf-bg-panel);
    border: 1px solid var(--tf-line);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.tf-bonus-card:hover {
    transform: translateY(-4px);
    border-color: rgba(77, 121, 255, 0.35);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(77, 121, 255, 0.1);
}

.tf-bonus-card::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 3px;
    background: linear-gradient(90deg, var(--tf-blue), var(--tf-green));
    opacity: 0;
    transition: opacity 0.22s ease;
}

.tf-bonus-card:hover::after {
    opacity: 1;
}

.tf-bonus-visual {
    position: relative;
    overflow: hidden;
    background: #0a0c12;
}

.tf-bonus-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(7, 8, 13, 0.65));
    z-index: 1;
    pointer-events: none;
}

.tf-bonus-visual img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.tf-bonus-card:hover .tf-bonus-visual img {
    transform: scale(1.03);
}

.tf-bonus-body {
    padding: 18px;
}

.tf-bonus-name {
    font-family: var(--tf-font-display);
    font-size: 1.2rem;
    margin-bottom: 10px;
    letter-spacing: 0.03em;
}

.tf-bonus-desc {
    color: var(--tf-muted);
    font-size: 0.88rem;
    margin-bottom: 12px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tf-bonus-value {
    display: inline-block;
    color: var(--tf-green);
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 10px;
    padding: 4px 12px;
    border-radius: 8px;
    background: rgba(56, 217, 150, 0.1);
    border: 1px solid rgba(56, 217, 150, 0.25);
}

.tf-bonus-tag {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(77, 121, 255, 0.12);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--tf-blue-bright);
    border: 1px solid rgba(77, 121, 255, 0.2);
}

.tf-bonus-terms {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--tf-line);
    font-size: 0.75rem;
    color: var(--tf-muted);
    line-height: 1.45;
}

/* --- payments --- */
.tf-pay-block {
    margin: 34px 0;
}

.tf-pay-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 12px;
}

.tf-pay-item {
    padding: 14px 10px;
    border-radius: 12px;
    background: var(--tf-bg-panel);
    border: 1px solid var(--tf-line);
    text-align: center;
}

.tf-pay-item img {
    max-height: 34px;
    margin: 0 auto 8px;
    object-fit: contain;
}

.tf-pay-label {
    font-size: 0.75rem;
    color: var(--tf-muted);
}

/* --- SEO text block --- */
.tf-seo-block {
    margin-top: 28px;
    padding: 28px;
    border-radius: var(--tf-radius);
    background:
        radial-gradient(circle at 100% 0%, rgba(77, 121, 255, 0.06), transparent 38%),
        rgba(17, 19, 28, 0.72);
    border: 1px solid var(--tf-line);
}

.tf-seo-block h1 {
    font-family: var(--tf-font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin: 0 0 20px;
    letter-spacing: 0.03em;
    padding-bottom: 14px;
    border-bottom: 2px solid rgba(77, 121, 255, 0.2);
}

.tf-seo-block h2 {
    font-family: var(--tf-font-display);
    font-size: clamp(1.2rem, 2.4vw, 1.55rem);
    margin: 32px 0 14px;
    padding-left: 12px;
    border-left: 3px solid var(--tf-blue);
}

.tf-seo-block h3 {
    font-size: 1.02rem;
    margin: 24px 0 10px;
    color: var(--tf-blue-bright);
    font-weight: 600;
}

.tf-seo-block p {
    margin-bottom: 16px;
    color: #d5dbea;
    line-height: 1.65;
}

.tf-seo-block p:first-of-type {
    font-size: 1.02rem;
    color: #e2e8f4;
}

.tf-seo-block a {
    color: var(--tf-blue-bright);
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: rgba(107, 147, 255, 0.35);
    text-underline-offset: 3px;
    transition: color 0.18s ease, text-decoration-color 0.18s ease;
}

.tf-seo-block a:hover {
    color: var(--tf-green);
    text-decoration-color: rgba(56, 217, 150, 0.5);
}

.tf-seo-block img {
    margin: 20px 0;
    border-radius: 12px;
    border: 1px solid var(--tf-line);
}

.tf-seo-block blockquote {
    margin: 20px 0;
    padding: 16px 18px;
    border-left: 3px solid var(--tf-green);
    background: rgba(56, 217, 150, 0.06);
    border-radius: 0 10px 10px 0;
    font-style: italic;
    color: #c8d0e0;
}

.table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 18px 0;
    border: 1px solid var(--tf-line);
    border-radius: 10px;
}

.table-wrapper table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
}

.table-wrapper th,
.table-wrapper td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--tf-line);
    text-align: left;
    font-size: 0.9rem;
}

.table-wrapper th {
    background: rgba(255, 255, 255, 0.04);
    font-weight: 600;
}

.tf-seo-block ul,
.tf-seo-block ol,
.list-container ul,
.list-container ol {
    margin: 14px 0;
    padding-left: 22px;
}

.faq-wrapper,
.howto-wrapper {
    margin: 18px 0;
}

.faq-item-block {
    border: 1px solid var(--tf-line);
    border-radius: 12px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: border-color 0.18s ease;
}

.faq-item-block:hover {
    border-color: rgba(77, 121, 255, 0.3);
}

.faq-question-block {
    padding: 16px;
    background: rgba(255, 255, 255, 0.04);
    font-weight: 600;
}

.faq-answer-block {
    padding: 16px;
    color: var(--tf-muted);
    line-height: 1.6;
    border-top: 1px solid var(--tf-line);
}

.howto-steps-list {
    list-style: none;
    padding: 0;
    counter-reset: tf-step;
}

.howto-step-item {
    counter-increment: tf-step;
    padding: 16px 18px;
    margin-bottom: 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--tf-line);
    transition: border-color 0.18s ease, background 0.18s ease;
}

.howto-step-item:hover {
    border-color: rgba(77, 121, 255, 0.25);
    background: rgba(77, 121, 255, 0.04);
}

.howto-step-item::before {
    content: counter(tf-step) ".";
    font-weight: 600;
    color: var(--tf-blue-bright);
    margin-right: 8px;
}

/* --- app table --- */
.tf-app-hero {
    position: relative;
    margin: 0 0 32px;
    padding: 28px 24px 24px;
    border-radius: var(--tf-radius);
    background:
        radial-gradient(circle at 85% 15%, rgba(77, 121, 255, 0.14), transparent 45%),
        radial-gradient(circle at 10% 90%, rgba(56, 217, 150, 0.08), transparent 40%),
        linear-gradient(160deg, #151824 0%, #0d1018 100%);
    border: 1px solid rgba(77, 121, 255, 0.22);
    overflow: hidden;
}

.tf-app-hero-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--tf-blue-bright), var(--tf-green), var(--tf-blue-bright), transparent);
    opacity: 0.7;
}

.app-info-table-wrapper {
    margin: 20px 0 28px;
}

.tf-app-hero .app-info-table-wrapper {
    margin: 0;
}

.tf-app-hero .app-info-table-container {
    border: none;
    margin: 0;
    overflow: visible;
}

.app-info-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
}

.app-info-row {
    border-bottom: none;
}

.app-info-row:first-child .app-info-value-cell {
    font-family: var(--tf-font-display);
    font-size: 1.25rem;
    letter-spacing: 0.04em;
}

.app-info-label-cell,
.app-info-value-cell {
    padding: 14px 16px;
    vertical-align: middle;
}

.app-info-label-cell {
    width: 56px;
    padding-right: 8px;
}

.app-info-label-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(77, 121, 255, 0.1);
    border: 1px solid rgba(77, 121, 255, 0.25);
}

.app-info-row:nth-child(even) .app-info-label-wrapper {
    background: rgba(56, 217, 150, 0.08);
    border-color: rgba(56, 217, 150, 0.2);
}

.app-info-row:nth-child(even) .app-info-icon {
    color: var(--tf-green);
}

.app-info-value-cell {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.app-info-icon {
    width: 22px;
    height: 22px;
    color: var(--tf-blue-bright);
}

.app-name-with-logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.app-name-logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 14px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(77, 121, 255, 0.2);
    box-shadow: 0 4px 16px rgba(77, 121, 255, 0.15);
}

.app-name-text {
    font-family: var(--tf-font-display);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.app-download-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(160deg, #5a86ff 0%, #3b63e8 55%, #2748b8 100%);
    box-shadow: 0 8px 24px rgba(77, 121, 255, 0.35);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.app-download-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(77, 121, 255, 0.45);
}

.app-download-link::after {
    content: "";
    width: 16px;
    height: 16px;
    background: currentColor;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 4v10m0 0l-3.5-3.5M12 14l3.5-3.5M5 18h14'/%3E%3C/svg%3E") center/contain no-repeat;
    opacity: 0.85;
}

/* --- footer --- */
.tf-site-foot {
    position: relative;
    margin-top: auto;
    padding: 0 20px 32px;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(77, 121, 255, 0.08), transparent 55%),
        linear-gradient(180deg, #0f121c 0%, #07080d 100%);
    border-top: 1px solid rgba(77, 121, 255, 0.18);
    overflow: hidden;
}

.tf-foot-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(680px, 90%);
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--tf-blue-bright), var(--tf-green), var(--tf-blue-bright), transparent);
    box-shadow: 0 0 24px rgba(77, 121, 255, 0.45);
}

.tf-foot-inner {
    max-width: var(--tf-shell-width);
    margin: 0 auto;
    padding-top: 36px;
}

.tf-foot-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 32px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--tf-line);
}

.tf-foot-brand-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.tf-foot-brand-img {
    height: 36px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(77, 121, 255, 0.25));
}

.tf-foot-brand-text {
    font-family: var(--tf-font-display);
    font-size: 1.35rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tf-foot-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tf-foot-btn {
    min-height: 38px;
    padding: 0 16px;
    font-size: 0.85rem;
}

.tf-foot-btn--accent {
    color: #fff;
    background: linear-gradient(160deg, #38d996 0%, #22b87a 100%);
    box-shadow: 0 6px 20px rgba(56, 217, 150, 0.25);
    border: 1px solid rgba(56, 217, 150, 0.35);
}

.tf-foot-btn--accent:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(56, 217, 150, 0.35);
}

.tf-foot-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px 32px;
    margin-bottom: 32px;
}

.tf-foot-col {
    min-width: 0;
}

.tf-foot-heading {
    font-family: var(--tf-font-display);
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--tf-text);
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(77, 121, 255, 0.35);
}

.tf-foot-heading--center {
    text-align: center;
    border-bottom: none;
    padding-bottom: 0;
    color: var(--tf-muted);
    font-family: var(--tf-font-ui);
    font-size: 0.78rem;
    letter-spacing: 0.1em;
}

.tf-foot-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 6px;
}

.tf-foot-links a {
    display: inline-flex;
    align-items: center;
    color: var(--tf-muted);
    text-decoration: none;
    font-size: 0.88rem;
    padding: 4px 0;
    transition: color 0.18s ease, transform 0.18s ease;
}

.tf-foot-links a::before {
    content: "";
    width: 0;
    height: 2px;
    margin-right: 0;
    background: var(--tf-blue-bright);
    border-radius: 2px;
    transition: width 0.18s ease, margin-right 0.18s ease;
}

.tf-foot-links a:hover,
.tf-foot-links a.is-active {
    color: var(--tf-text);
}

.tf-foot-links a:hover::before,
.tf-foot-links a.is-active::before {
    width: 10px;
    margin-right: 8px;
}

.tf-foot-social-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tf-foot-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    min-height: 52px;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--tf-line);
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.tf-foot-social-link:hover {
    border-color: rgba(77, 121, 255, 0.45);
    background: rgba(77, 121, 255, 0.1);
    transform: translateY(-2px);
}

.tf-foot-social-img {
    max-height: 24px;
    width: auto;
    object-fit: contain;
}

.tf-foot-payments {
    margin-bottom: 28px;
    padding: 22px 20px;
    border-radius: var(--tf-radius);
    background: rgba(17, 19, 28, 0.65);
    border: 1px solid var(--tf-line);
}

.tf-foot-pay-list {
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.tf-foot-pay-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 96px;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: border-color 0.18s ease, background 0.18s ease;
}

.tf-foot-pay-item:hover {
    border-color: rgba(77, 121, 255, 0.3);
    background: rgba(77, 121, 255, 0.06);
}

.tf-foot-pay-img {
    max-height: 28px;
    width: auto;
    object-fit: contain;
    filter: grayscale(0.15);
}

.tf-foot-pay-name {
    font-size: 0.68rem;
    color: var(--tf-muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.tf-foot-base {
    padding-top: 24px;
    border-top: 1px solid var(--tf-line);
    text-align: center;
}

.tf-foot-safe {
    margin-bottom: 18px;
}

.tf-foot-safe-list {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.tf-foot-safe-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
    transition: border-color 0.18s ease, background 0.18s ease;
    text-decoration: none;
}

.tf-foot-safe-link:hover {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
}

.tf-safe-img {
    max-height: 38px;
    width: auto;
}

.tf-foot-copy {
    margin: 0 0 6px;
    font-size: 0.8rem;
    color: #c8d0e0;
}

.tf-foot-disclaimer {
    margin: 0;
    font-size: 0.72rem;
    color: var(--tf-muted);
    max-width: 640px;
    margin-inline: auto;
    line-height: 1.5;
}

/* --- 404 --- */
.tf-error-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: calc(100vh - 280px);
    padding: 60px 20px 80px;
    position: relative;
}

.tf-error-panel::before {
    content: "";
    position: absolute;
    inset: 10% 15%;
    background:
        radial-gradient(circle at 30% 40%, rgba(77, 121, 255, 0.18), transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(56, 217, 150, 0.1), transparent 45%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.tf-error-panel > * {
    position: relative;
    z-index: 1;
}

.tf-error-code {
    font-family: var(--tf-font-display);
    font-size: clamp(5rem, 18vw, 8.5rem);
    line-height: 1;
    font-weight: 600;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--tf-blue-bright) 0%, var(--tf-green) 50%, var(--tf-blue) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 24px rgba(77, 121, 255, 0.35));
    letter-spacing: 0.04em;
}

.tf-error-title {
    font-family: var(--tf-font-display);
    font-size: clamp(1.2rem, 3.5vw, 1.65rem);
    margin-bottom: 14px;
    letter-spacing: 0.03em;
    max-width: 520px;
}

.tf-error-text {
    color: var(--tf-muted);
    margin-bottom: 32px;
    font-size: 0.95rem;
    max-width: 440px;
    line-height: 1.6;
}

.tf-error-panel .tf-btn--lightning {
    min-width: 200px;
    min-height: 46px;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

/* --- contact page --- */
.tf-page--contact .tf-seo-block {
    max-width: 720px;
    margin-inline: auto;
    background:
        radial-gradient(circle at 100% 0%, rgba(77, 121, 255, 0.1), transparent 40%),
        radial-gradient(circle at 0% 100%, rgba(56, 217, 150, 0.06), transparent 35%),
        rgba(17, 19, 28, 0.82);
    border-color: rgba(77, 121, 255, 0.2);
}

.tf-page--contact .tf-seo-block h1 {
    text-align: center;
    background: linear-gradient(135deg, var(--tf-text) 0%, var(--tf-blue-bright) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tf-page--contact .tf-seo-block h2 {
    margin-top: 32px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(77, 121, 255, 0.25);
}

.tf-page--contact .tf-seo-block h3 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(77, 121, 255, 0.12);
    color: var(--tf-blue-bright);
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.tf-page--contact .tf-seo-block h3::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--tf-green);
    box-shadow: 0 0 8px rgba(56, 217, 150, 0.6);
}

.tf-page--contact .tf-seo-block p {
    padding-left: 4px;
}

.tf-page--contact .tf-seo-block a {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    margin-left: 4px;
    border-radius: 8px;
    background: rgba(77, 121, 255, 0.12);
    border: 1px solid rgba(77, 121, 255, 0.3);
    font-weight: 600;
    transition: background 0.18s ease, border-color 0.18s ease;
}

.tf-page--contact .tf-seo-block a:hover {
    background: rgba(77, 121, 255, 0.22);
    border-color: rgba(77, 121, 255, 0.5);
}

/* --- legal pages (privacy, terms) --- */
.tf-page--legal .tf-seo-block {
    max-width: 860px;
    margin-inline: auto;
    background:
        radial-gradient(circle at 90% 10%, rgba(77, 121, 255, 0.08), transparent 42%),
        rgba(17, 19, 28, 0.78);
    border-color: rgba(77, 121, 255, 0.15);
}

.tf-page--legal .tf-seo-block h1 {
    padding-bottom: 16px;
    margin-bottom: 24px;
    border-bottom: 2px solid rgba(77, 121, 255, 0.3);
    background: linear-gradient(135deg, var(--tf-text) 20%, var(--tf-blue-bright) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tf-page--legal .tf-seo-block h2 {
    margin-top: 36px;
    padding: 10px 0 10px 14px;
    border-left: 3px solid var(--tf-blue);
    background: linear-gradient(90deg, rgba(77, 121, 255, 0.1), transparent);
    border-radius: 0 8px 8px 0;
}

.tf-page--legal .tf-seo-block h3 {
    margin-top: 22px;
    color: var(--tf-green);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.tf-page--legal .tf-seo-block p {
    color: #c4cad8;
}

.tf-page--legal .tf-seo-block a {
    color: var(--tf-green);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(56, 217, 150, 0.4);
    text-underline-offset: 3px;
}

.tf-page--legal .tf-seo-block a:hover {
    color: #5eebb0;
    text-decoration-color: rgba(56, 217, 150, 0.7);
}

.tf-page--legal .tf-seo-block ul,
.tf-page--legal .tf-seo-block ol {
    padding-left: 24px;
}

.tf-page--legal .tf-seo-block li {
    margin-bottom: 8px;
    color: #c4cad8;
}

.tf-page--legal .tf-seo-block li::marker {
    color: var(--tf-blue-bright);
}

/* --- responsive --- */
@media (max-width: 992px) {
    .tf-horiz-nav {
        display: none;
    }

    .tf-burger-trigger {
        display: flex;
    }

    .tf-page-body {
        padding: 16px 16px 88px;
    }

    .tf-slot-actions {
        opacity: 1;
        background: linear-gradient(180deg, transparent 35%, rgba(7, 8, 13, 0.82));
        justify-content: flex-end;
        flex-direction: column;
        align-items: stretch;
    }

    .tf-slot-btn {
        min-width: 0;
        width: 100%;
    }

    .tf-foot-grid {
        grid-template-columns: 1fr 1fr;
    }

    .tf-foot-col--social {
        grid-column: 1 / -1;
    }

    .tf-foot-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .tf-foot-actions {
        width: 100%;
    }

    .tf-foot-btn {
        flex: 1 1 auto;
    }

    .tf-site-foot {
        padding-bottom: 84px;
    }
}

@media (max-width: 768px) {
    .tf-head-strip {
        padding: 12px 14px;
    }

    .tf-brand-img {
        height: 28px;
    }

    .tf-btn {
        min-height: 36px;
        padding: 0 12px;
        font-size: 0.82rem;
    }

    .tf-hero-frame {
        aspect-ratio: 255 / 265;
    }

    .tf-games-grid {
        grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
        gap: 10px;
    }

    .tf-seo-block {
        padding: 16px;
    }

    .tf-foot-grid {
        grid-template-columns: 1fr;
    }

    .tf-foot-pay-item {
        min-width: calc(50% - 10px);
        flex: 1 1 calc(50% - 10px);
    }

    .tf-site-foot {
        padding: 0 16px 28px;
    }
}

@media (min-width: 993px) {
    .tf-mobile-drawer,
    .tf-drawer-scrim,
    .tf-burger-trigger {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
}
