:root {
    --bg-deep: #4f4d88;
    --bg-mid: #615592;
    --bg-soft: #7267a2;

    --accent: #efb6ac;
    --accent-strong: #e8a096;
    --accent-soft: #f8d4cb;

    --text: #fff9f7;
    --text-soft: rgba(255, 249, 247, 0.78);
    --text-faint: rgba(255, 249, 247, 0.58);

    --glass: rgba(255, 255, 255, 0.11);
    --glass-soft: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.18);

    --shadow: 0 26px 70px rgba(50, 34, 87, 0.24);
    --radius-xl: 34px;
    --radius-lg: 24px;
    --radius-md: 18px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background: linear-gradient(145deg, var(--bg-deep) 0%, var(--bg-mid) 48%, var(--bg-soft) 100%);
    background-attachment: fixed;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

.ambient-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.ambient-orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(90px);
    opacity: 0.32;
    animation: ambientFloat 16s ease-in-out infinite alternate;
}

.ambient-orb-1 {
    width: 520px;
    height: 520px;
    top: -150px;
    left: -150px;
    background: #8762c4;
}

.ambient-orb-2 {
    width: 480px;
    height: 480px;
    top: 20%;
    right: -180px;
    background: #d98ea5;
    animation-delay: -4s;
}

.ambient-orb-3 {
    width: 420px;
    height: 420px;
    bottom: -140px;
    left: 30%;
    background: #8796d9;
    animation-delay: -8s;
}

@keyframes ambientFloat {
    from {
        transform: translate3d(-18px, -12px, 0) scale(1);
    }
    to {
        transform: translate3d(24px, 20px, 0) scale(1.06);
    }
}

.glass {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(24px) saturate(140%);
    -webkit-backdrop-filter: blur(24px) saturate(140%);
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.14);
}

.glass-soft {
    background: var(--glass-soft);
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.site-navbar {
    position: sticky;
    top: 10px;
    z-index: 1000;
    padding-top: 12px;
}

.navbar-shell {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
}

.brand-logo {
    display: block;
    width: 138px;
    max-width: 100%;
    height: auto;
}

.navbar-nav .nav-link {
    color: rgba(255,255,255,0.80);
    font-size: 0.98rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    padding-left: 0.85rem !important;
    padding-right: 0.85rem !important;
    transition: color 0.2s ease, transform 0.2s ease;
}

.navbar-nav .nav-link:hover {
    color: #fff;
    transform: translateY(-1px);
}

.navbar-toggler {
    border: 0;
    box-shadow: none !important;
    filter: invert(1);
}

.btn-glass-primary,
.btn-hero-primary,
.game-book-button {
    border: 0;
    color: #513f67;
    background: linear-gradient(135deg, var(--accent-soft), var(--accent-strong));
    font-weight: 800;
    letter-spacing: 0.01em;
}

.btn-glass-primary {
    padding: 0.72rem 1.05rem;
    border-radius: 16px;
}

.btn-glass-primary:hover,
.btn-hero-primary:hover,
.game-book-button:hover {
    color: #513f67;
    transform: translateY(-2px);
}

.hero-section {
    padding: 58px 0 38px;
}

.hero-card {
    padding: clamp(2rem, 5vw, 4.5rem);
    border-radius: 40px;
    overflow: hidden;
}

.hero-kicker,
.section-kicker,
.venue-kicker {
    color: rgba(255,255,255,0.72);
    font-size: 0.80rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero-title {
    margin: 0.8rem 0 0;
    font-size: clamp(3.3rem, 7vw, 6.6rem);
    line-height: 0.94;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hero-copy {
    max-width: 620px;
    margin-top: 1.8rem;
    margin-bottom: 0;
    color: var(--text-soft);
    font-size: 1.14rem;
    line-height: 1.7;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 2rem;
}

.btn-hero-primary,
.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0.95rem 1.35rem;
    border-radius: 17px;
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease;
}

.btn-hero-secondary {
    color: #fff;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.08);
}

.btn-hero-secondary:hover {
    color: #fff;
    background: rgba(255,255,255,0.13);
    transform: translateY(-2px);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2.3rem;
}

.meta-pill {
    padding: 0.85rem 1rem;
    border-radius: 16px;
}

.meta-pill strong {
    display: block;
    font-size: 0.90rem;
    font-weight: 750;
    letter-spacing: 0.02em;
}

.meta-pill span {
    color: var(--text-faint);
    font-size: 0.78rem;
}

.hero-art-stage {
    min-height: 440px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1100px;
}

.hero-parallax {
    position: relative;
    width: 330px;
    height: 370px;
    transform-style: preserve-3d;
    transition: transform 0.16s ease-out;
    will-change: transform;
}

.hero-glow {
    position: absolute;
    inset: 36px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(248, 213, 204, 0.56), rgba(164, 140, 226, 0.30) 52%, transparent 72%);
    filter: blur(30px);
    transform: translateZ(-30px) scale(1.2);
}

.hero-logo-card {
    position: absolute;
    inset: 28px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    border-radius: 32px;
    transform: rotate(-4deg) translateZ(28px);
}

.hero-logo-image {
    width: 100%;
    max-width: 230px;
    height: auto;
}

.hero-logo-caption {
    margin-top: 1.2rem;
    color: var(--text-faint);
    font-size: 0.72rem;
    font-weight: 650;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.floating-chip {
    position: absolute;
    padding: 0.72rem 0.92rem;
    border-radius: 16px;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.floating-chip:first-of-type {
    top: 0;
    right: -12px;
}

.chip-two {
    bottom: 48px;
    left: -32px;
}

.chip-three {
    bottom: 0;
    right: -8px;
}

.games-section,
.how-section,
.about-section,
.schedule-section {
    padding: 72px 0;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
}

.section-title,
.section-heading h2,
.schedule-title {
    margin: 0;
    font-size: clamp(2.4rem, 5vw, 4rem);
    line-height: 1.03;
    font-weight: 900;
    letter-spacing: -0.025em;
}

.section-copy,
.schedule-lead {
    max-width: 650px;
    margin: 1rem 0 0;
    color: var(--text-soft);
    font-size: 1.03rem;
    line-height: 1.7;
}

.section-link {
    padding-bottom: 0.2rem;
    color: rgba(255,255,255,0.84);
    font-weight: 700;
    letter-spacing: 0.03em;
}

.section-link:hover {
    color: #fff;
}

.product-strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(320px, 372px);
    gap: 1.25rem;
    overflow-x: auto;
    padding: 0.4rem 0.1rem 1.4rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
}

.game-card {
    scroll-snap-align: start;
}

.game-card-scene {
    perspective: 1200px;
    min-height: 560px;
}

.game-card-inner {
    position: relative;
    min-height: 560px;
    transition: transform 0.65s ease;
    transform-style: preserve-3d;
}

.game-card.is-flipped .game-card-inner {
    transform: rotateY(180deg);
}

.game-card-face {
    border-radius: 28px;
}

.game-card-front,
.game-card-back {
    position: absolute;
    inset: 0;
    min-height: 560px;
    padding: 1.5rem;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.game-card-front {
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, background 0.25s ease;
}

.game-card-front:hover {
    transform: translateY(-6px);
    background: rgba(255,255,255,0.14);
}

.game-card-back {
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
}

.game-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

.game-date {
    color: rgba(255,255,255,0.82);
    font-size: 0.96rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.availability-badge {
    padding: 0.46rem 0.70rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.available {
    color: #eefbf7;
    background: rgba(111, 218, 181, 0.14);
}

.almost-full {
    color: #fff1eb;
    background: rgba(255, 166, 135, 0.16);
}

.sold-out {
    color: rgba(255,255,255,0.70);
    background: rgba(255,255,255,0.09);
}

.game-time {
    margin-top: 1.9rem;
    color: var(--accent-soft);
    font-size: 0.88rem;
    font-weight: 850;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.game-title {
    margin-top: 0.65rem;
    margin-bottom: 0;
    font-size: 2.0rem;
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.game-location {
    margin-top: 1.15rem;
    color: var(--text-soft);
    font-size: 1rem;
    line-height: 1.6;
}

.game-venue-inline {
    display: none;
    margin-top: 1.25rem;
    overflow: hidden;
    border-radius: 18px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.10);
}

.game-venue-inline img {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.game-venue-inline-caption {
    padding: 0.85rem 1rem;
    font-size: 0.90rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.game-spacer {
    flex: 1;
    min-height: 1.5rem;
}

.game-info {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1.15rem;
    border-top: 1px solid rgba(255,255,255,0.12);
}

.game-info-label {
    display: block;
    color: var(--text-faint);
    font-size: 0.76rem;
    letter-spacing: 0.04em;
}

.game-price {
    font-size: 1.38rem;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.game-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-top: 1.15rem;
}

.game-book-button,
.game-secondary-button {
    min-height: 52px;
    border-radius: 16px;
    font-weight: 800;
}

.game-book-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.game-book-button.disabled {
    color: rgba(255,255,255,0.52);
    background: rgba(255,255,255,0.08);
}

.game-secondary-button {
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.08);
    color: #fff;
}

.game-secondary-button:hover {
    color: #fff;
    background: rgba(255,255,255,0.12);
}

.flip-close {
    align-self: flex-start;
    padding: 0.55rem 0.9rem;
    border: 0;
    border-radius: 14px;
    background: rgba(255,255,255,0.12);
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.venue-photo-wrap {
    margin-top: 1rem;
    overflow: hidden;
    border-radius: 18px;
}

.venue-photo-wrap img {
    display: block;
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.venue-panel {
    margin-top: 1.25rem;
}

.venue-title {
    margin: 0.55rem 0 0;
    font-size: 1.5rem;
    line-height: 1.1;
    font-weight: 850;
    letter-spacing: -0.01em;
}

.venue-address {
    margin-top: 0.85rem;
    margin-bottom: 0;
    color: var(--text-soft);
    line-height: 1.7;
}

.feature-card {
    min-height: 255px;
    padding: 1.7rem;
    border-radius: 26px;
    transition: transform 0.24s ease, background 0.24s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    background: rgba(255,255,255,0.14);
}

.feature-number {
    color: var(--accent-soft);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.18em;
}

.feature-card h3 {
    margin-top: 2.8rem;
    margin-bottom: 0;
    font-size: 1.55rem;
    line-height: 1.12;
    font-weight: 850;
    letter-spacing: -0.01em;
}

.feature-card p {
    margin-top: 0.75rem;
    margin-bottom: 0;
    color: var(--text-soft);
    line-height: 1.7;
}

.about-card,
.schedule-page-shell {
    padding: clamp(2rem, 5vw, 4rem);
    border-radius: 34px;
}

.about-copy {
    max-width: 620px;
    margin-top: 1.4rem;
    color: var(--text-soft);
    font-size: 1.10rem;
    line-height: 1.75;
}

.about-quote {
    padding: 2rem;
    border-radius: 24px;
}

.quote-mark {
    height: 48px;
    color: var(--accent-soft);
    font-family: Georgia, serif;
    font-size: 5rem;
    line-height: 0.9;
}

.about-quote p {
    margin: 0.9rem 0 0;
    font-size: 1.22rem;
    line-height: 1.55;
    font-weight: 700;
}

.schedule-text {
    white-space: pre-wrap;
    max-width: 900px;
    margin-top: 1.8rem;
    padding: 2rem;
    border-radius: 26px;
    color: rgba(255,255,255,0.90);
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
    font-size: 1.12rem;
    line-height: 1.85;
}

.empty-games {
    padding: 2rem;
    border-radius: 24px;
}

.spotlight {
    position: relative;
    overflow: hidden;
}

.spotlight::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(
        420px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(255,255,255,0.14),
        transparent 44%
    );
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.spotlight:hover::before {
    opacity: 1;
}

.spotlight > * {
    position: relative;
    z-index: 1;
}

.site-footer {
    padding: 20px 0 36px;
}

.footer-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 1.25rem 1.4rem;
    border-radius: 24px;
}

.footer-left,
.footer-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-right {
    justify-content: flex-end;
}

.footer-logo {
    width: 120px;
    height: auto;
}

.footer-muted {
    color: var(--text-faint);
    font-size: 0.86rem;
    line-height: 1.5;
}

.footer-socials {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.social-link {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
}

.social-link img {
    width: 20px;
    height: 20px;
    opacity: 0.95;
}

@media (max-width: 991px) {
    .navbar-shell {
        flex-wrap: wrap;
    }

    .navbar-collapse {
        padding: 1rem 0.5rem 0.3rem;
    }

    .section-heading {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-art-stage {
        min-height: 360px;
    }

    .hero-parallax {
        transform: scale(0.92);
    }

    .footer-shell,
    .footer-left,
    .footer-right {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 767px) {
    .site-navbar {
        top: 6px;
        padding-top: 6px;
    }

    .hero-card,
    .about-card,
    .schedule-page-shell {
        padding: 1.5rem;
        border-radius: 28px;
    }

    .hero-title {
        font-size: clamp(2.9rem, 14vw, 4.6rem);
    }

    .hero-copy {
        font-size: 1rem;
    }

    .hero-actions > * {
        width: 100%;
    }

    .hero-meta {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .games-section,
    .how-section,
    .about-section,
    .schedule-section {
        padding: 52px 0;
    }

    .product-strip {
        grid-auto-columns: minmax(286px, 88vw);
    }

    .game-card-scene,
    .game-card-inner,
    .game-card-front,
    .game-card-back {
        min-height: auto;
    }

    .game-card-inner {
        transform: none !important;
    }

    .game-card-back {
        display: none;
    }

    .game-venue-inline {
        display: block;
    }

    .game-secondary-button {
        display: none;
    }

    .hero-art-stage {
        min-height: 320px;
    }

    .hero-parallax {
        width: 286px;
        height: 320px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


/* =========================================================
   QUIZNIGHT DEMO — STAGE 2 HARD OVERRIDES
   ========================================================= */

.site-navbar {
    top: 10px !important;
    padding-top: 10px !important;
}

.navbar-shell {
    width: 100% !important;
    min-height: 0 !important;

    display: flex !important;
    align-items: center !important;

    padding: 14px 18px !important;

    border-radius: 24px !important;
}

.brand {
    display: flex !important;
    align-items: center !important;

    flex: 0 0 auto !important;

    min-width: 0 !important;

    margin-right: auto !important;
}

.brand-logo {
    display: block !important;

    width: auto !important;
    height: 64px !important;

    max-width: 150px !important;
    max-height: 64px !important;

    object-fit: contain !important;
}

.navbar-collapse {
    flex-grow: 0 !important;
}

.navbar-nav {
    align-items: center !important;
}

.navbar-nav .nav-link {
    padding: 12px 14px !important;

    font-size: 16px !important;
    font-weight: 650 !important;

    line-height: 1.2 !important;

    white-space: nowrap !important;
}

.btn-glass-primary {
    min-height: 52px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 12px 22px !important;

    white-space: nowrap !important;
}


/* HERO */

.hero-title-accent {
    color: transparent !important;

    background:
        linear-gradient(
            100deg,
            #ffd1bb 0%,
            #ffad8d 50%,
            #ff8878 100%
        ) !important;

    -webkit-background-clip: text !important;
    background-clip: text !important;
}


/* не даём логотипу в hero раздувать блок */

.hero-logo-image {
    width: 100% !important;

    max-width: 230px !important;
    max-height: 150px !important;

    object-fit: contain !important;
}


/* MOBILE */

@media (max-width: 991px) {

    .navbar-shell {
        min-height: 0 !important;
        padding: 12px 16px !important;

        flex-wrap: wrap !important;
    }

    .brand-logo {
        height: 54px !important;

        max-width: 126px !important;
        max-height: 54px !important;
    }

    .navbar-collapse {
        width: 100% !important;

        padding-top: 12px !important;
    }
}


@media (max-width: 767px) {

    .brand-logo {
        height: 48px !important;

        max-width: 112px !important;
        max-height: 48px !important;
    }
}


/* =========================================================
   QUIZNIGHT — DYNAMIC SCHEDULE
   ========================================================= */

.schedule-list {
    display: flex;
    flex-direction: column;

    gap: 12px;

    margin-top: 2.4rem;
}


.schedule-game-row {
    display: grid;

    grid-template-columns:
        minmax(150px, 0.7fr)
        minmax(260px, 2fr)
        auto;

    align-items: center;

    gap: 1.5rem;

    padding:
        1.25rem
        1.35rem;

    border:
        1px solid
        rgba(255, 255, 255, 0.13);

    border-radius: 20px;

    color: inherit;

    background:
        rgba(255, 255, 255, 0.065);

    text-decoration: none;

    transition:
        transform 0.22s ease,
        background 0.22s ease,
        border-color 0.22s ease;
}


.schedule-game-row:hover {
    color: inherit;

    background:
        rgba(255, 255, 255, 0.12);

    border-color:
        rgba(255, 255, 255, 0.24);

    transform:
        translateX(6px);
}


.schedule-game-date {
    display: flex;
    flex-direction: column;

    gap: 4px;
}


.schedule-game-day {
    font-size: 1.06rem;
    font-weight: 800;

    letter-spacing: 0.02em;
}


.schedule-game-time {
    color: var(--accent-soft);

    font-size: 0.82rem;
    font-weight: 800;

    letter-spacing: 0.14em;
}


.schedule-game-title {
    font-size: 1.22rem;
    font-weight: 850;

    letter-spacing: -0.01em;
}


.schedule-game-location {
    margin-top: 0.35rem;

    color: var(--text-soft);

    font-size: 0.92rem;

    line-height: 1.5;
}


.schedule-game-status {
    display: flex;
    align-items: center;

    gap: 1rem;
}


.schedule-status {
    padding:
        0.45rem
        0.7rem;

    border-radius: 999px;

    font-size: 0.75rem;
    font-weight: 800;

    white-space: nowrap;
}


.schedule-arrow {
    color: var(--accent-soft);

    font-size: 1.5rem;

    transition:
        transform 0.2s ease;
}


.schedule-game-row:hover .schedule-arrow {
    transform:
        translateX(4px);
}


.schedule-empty {
    margin-top: 2rem;

    padding: 1.4rem;

    border-radius: 20px;

    background:
        rgba(255, 255, 255, 0.07);

    color: var(--text-soft);
}


/* карточка, к которой прилетели из расписания */

.game-card {
    scroll-margin-top: 145px;
}


.game-card:target .game-card-front {
    border-color:
        rgba(255, 211, 189, 0.72);

    box-shadow:
        0 0 0 2px rgba(255, 178, 153, 0.18),
        0 24px 70px rgba(57, 38, 93, 0.32);

    animation:
        scheduleTargetPulse
        1.25s
        ease;
}


@keyframes scheduleTargetPulse {

    0% {
        transform:
            translateY(0)
            scale(1);
    }

    35% {
        transform:
            translateY(-5px)
            scale(1.015);
    }

    100% {
        transform:
            translateY(0)
            scale(1);
    }
}


@media (max-width: 767px) {

    .schedule-game-row {
        grid-template-columns:
            1fr;

        gap: 0.85rem;

        padding: 1.15rem;
    }


    .schedule-game-status {
        justify-content:
            space-between;
    }


    .schedule-game-title {
        font-size:
            1.12rem;
    }
}


/* =========================================================
   QUIZNIGHT — DRAGGABLE GAME STRIP
   ========================================================= */

.product-strip {
    cursor: grab;

    scrollbar-width: none;

    -ms-overflow-style: none;

    overscroll-behavior-x: contain;

    touch-action: pan-x;

    user-select: none;

    -webkit-user-select: none;
}


.product-strip::-webkit-scrollbar {
    display: none;
}


.product-strip.is-dragging {
    cursor: grabbing;

    scroll-snap-type: none;
}


.product-strip.is-dragging * {
    pointer-events: none;
}


@media (hover: none) and (pointer: coarse) {

    .product-strip {
        cursor: auto;

        user-select: auto;

        -webkit-user-select: auto;
    }
}


/* =========================================================
   QUIZNIGHT — DRAG FIX
   ========================================================= */

.product-strip.is-dragging * {
    pointer-events: auto !important;
}


.product-strip.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
}


.product-strip a,
.product-strip button {
    cursor: pointer;
}


/* =========================================================
   QUIZNIGHT — CARD SYSTEM V1
   ========================================================= */

/*
 * Все карточки одного ряда имеют одинаковую геометрию.
 * Содержание больше не должно менять высоту соседей.
 */

.game-card-scene,
.game-card-inner,
.game-card-front,
.game-card-back {
    height: 660px;
    min-height: 660px;
}


.game-card-front,
.game-card-back {
    overflow: hidden;
}


/* -------------------------
   QUIZ FACE ART
   ------------------------- */

.quiz-face-art {
    position: relative;

    height: 138px;
    min-height: 138px;

    margin-top: 1.15rem;

    overflow: hidden;

    border-radius: 20px;

    border:
        1px solid
        rgba(255,255,255,0.14);

    isolation: isolate;
}


.quiz-face-art::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,0.10),
            transparent 55%
        );

    pointer-events: none;
}


.quiz-art-label {
    position: absolute;

    left: 16px;
    bottom: 14px;

    z-index: 5;

    color:
        rgba(255,255,255,0.88);

    font-size: 0.70rem;
    font-weight: 800;

    letter-spacing: 0.18em;

    text-transform: uppercase;
}


.quiz-art-wordmark {
    position: absolute;

    right: 15px;
    top: 11px;

    z-index: 5;

    color:
        rgba(255,255,255,0.25);

    font-size: 2.15rem;
    font-weight: 900;

    letter-spacing: -0.06em;
}


.quiz-art-shape {
    position: absolute;

    pointer-events: none;
}



/* -------------------------
   CLASSIC
   ------------------------- */

.quiz-face-art--classic {
    background:
        linear-gradient(
            135deg,
            #776cc7,
            #ba83b4
        );
}


.quiz-face-art--classic .quiz-art-shape-a {
    width: 110px;
    height: 110px;

    top: -34px;
    left: 42px;

    border:
        18px solid
        rgba(255,213,190,0.38);

    border-radius: 50%;
}


.quiz-face-art--classic .quiz-art-shape-b {
    width: 92px;
    height: 92px;

    right: 30px;
    bottom: -42px;

    border:
        1px solid
        rgba(255,255,255,0.28);

    transform:
        rotate(28deg);
}


.quiz-face-art--classic .quiz-art-shape-c {
    width: 120px;
    height: 2px;

    left: 115px;
    top: 62px;

    background:
        rgba(255,255,255,0.32);

    transform:
        rotate(-17deg);
}



/* -------------------------
   MUSIC
   ------------------------- */

.quiz-face-art--music {
    background:
        linear-gradient(
            135deg,
            #725fba,
            #d582a1
        );
}


.quiz-face-art--music .quiz-art-shape-a {
    width: 104px;
    height: 104px;

    left: 28px;
    top: 17px;

    border:
        18px solid
        rgba(255,190,165,0.42);

    border-radius: 50%;

    box-shadow:
        inset 0 0 0 14px
        rgba(82,61,128,0.35);
}


.quiz-face-art--music .quiz-art-shape-b {
    width: 7px;
    height: 82px;

    left: 190px;
    bottom: -8px;

    border-radius: 8px;

    background:
        rgba(255,255,255,0.22);

    box-shadow:
        22px -22px 0 rgba(255,255,255,0.16),
        44px 10px 0 rgba(255,255,255,0.24),
        66px -12px 0 rgba(255,255,255,0.13);
}


.quiz-face-art--music .quiz-art-shape-c {
    width: 120px;
    height: 120px;

    right: -50px;
    top: -50px;

    border-radius: 50%;

    background:
        rgba(255,205,177,0.18);
}



/* -------------------------
   CINEMA
   ------------------------- */

.quiz-face-art--cinema {
    background:
        linear-gradient(
            140deg,
            #62569e,
            #b47496
        );
}


.quiz-face-art--cinema .quiz-art-shape-a {
    width: 180px;
    height: 64px;

    left: 40px;
    top: 28px;

    transform:
        rotate(-8deg);

    background:
        repeating-linear-gradient(
            90deg,
            rgba(255,255,255,0.24) 0,
            rgba(255,255,255,0.24) 24px,
            transparent 24px,
            transparent 34px
        );

    border:
        1px solid
        rgba(255,255,255,0.18);
}


.quiz-face-art--cinema .quiz-art-shape-b {
    width: 130px;
    height: 3px;

    right: 18px;
    bottom: 35px;

    background:
        rgba(255,201,177,0.50);
}


.quiz-face-art--cinema .quiz-art-shape-c {
    width: 72px;
    height: 72px;

    right: 26px;
    top: -24px;

    border:
        14px solid
        rgba(255,216,195,0.18);

    border-radius: 50%;
}



/* -------------------------
   LOGIC
   ------------------------- */

.quiz-face-art--logic {
    background:
        linear-gradient(
            135deg,
            #625fb0,
            #9f78ba
        );
}


.quiz-face-art--logic .quiz-art-shape-a {
    width: 170px;
    height: 100px;

    left: 38px;
    top: 20px;

    background-image:
        radial-gradient(
            circle,
            rgba(255,255,255,0.38) 2px,
            transparent 3px
        );

    background-size:
        22px
        22px;
}


.quiz-face-art--logic .quiz-art-shape-b {
    width: 105px;
    height: 105px;

    right: 18px;
    top: 17px;

    border:
        1px solid
        rgba(255,206,184,0.37);

    transform:
        rotate(45deg);
}


.quiz-face-art--logic .quiz-art-shape-c {
    width: 62px;
    height: 62px;

    right: 52px;
    top: 38px;

    border:
        8px solid
        rgba(255,209,188,0.20);

    border-radius: 50%;
}



/* -------------------------
   CARD TEXT RHYTHM
   ------------------------- */

.game-time {
    margin-top: 1.15rem;
}


.game-title {
    min-height: 2.1em;

    display:
        -webkit-box;

    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

    overflow: hidden;
}


.game-location {
    min-height: 4.7em;

    display:
        -webkit-box;

    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;

    overflow: hidden;
}



/* -------------------------
   MOBILE
   ------------------------- */

@media (max-width: 767px) {

    .game-card-scene,
    .game-card-inner,
    .game-card-front {
        height: 755px !important;
        min-height: 755px !important;
    }


    .game-card-back {
        height: 755px !important;
        min-height: 755px !important;
    }


    .quiz-face-art {
        height: 112px;
        min-height: 112px;
    }


    .game-venue-inline {
        display: block;

        height: 190px;
        min-height: 190px;
    }


    .game-venue-inline img {
        width: 100%;
        height: 150px;

        object-fit: cover;
    }


    .game-venue-inline-caption {
        height: 40px;

        display: flex;
        align-items: center;
    }


    .game-location {
        min-height: 4.5em;
    }


    /*
     * На мобиле flip всё равно скрыт,
     * но сохраняем одинаковую геометрию ряда.
     */

    .game-card-back {
        display: none;
    }
}


/* =========================================================
   QUIZNIGHT ICON KIT — SOFT ROUNDED V0.1
   ========================================================= */

.qn-icon {
    display: inline-block;

    width: 26px;
    height: 26px;

    flex: 0 0 auto;

    background: currentColor;

    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;

    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
}


.qn-icon--music {
    mask-image: url("../assets/qn-icons/music.svg");
    -webkit-mask-image: url("../assets/qn-icons/music.svg");
}


.qn-icon--cinema {
    mask-image: url("../assets/qn-icons/cinema.svg");
    -webkit-mask-image: url("../assets/qn-icons/cinema.svg");
}


.qn-icon--logic {
    mask-image: url("../assets/qn-icons/logic.svg");
    -webkit-mask-image: url("../assets/qn-icons/logic.svg");
}


.qn-icon--quiz {
    mask-image: url("../assets/qn-icons/quiz.svg");
    -webkit-mask-image: url("../assets/qn-icons/quiz.svg");
}


.qn-icon--calendar {
    mask-image: url("../assets/qn-icons/calendar.svg");
    -webkit-mask-image: url("../assets/qn-icons/calendar.svg");
}


.qn-icon--location {
    mask-image: url("../assets/qn-icons/location.svg");
    -webkit-mask-image: url("../assets/qn-icons/location.svg");
}


.qn-icon--team {
    mask-image: url("../assets/qn-icons/team.svg");
    -webkit-mask-image: url("../assets/qn-icons/team.svg");
}


.qn-icon--arrow {
    mask-image: url("../assets/qn-icons/arrow.svg");
    -webkit-mask-image: url("../assets/qn-icons/arrow.svg");
}


/* =========================================================
   HERO ORBIT ICONS
   ========================================================= */

.hero-orbit-icon {
    position: absolute;

    width: 58px;
    height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    color: rgba(255,255,255,0.82);

    pointer-events: none;

    box-shadow:
        0 16px 40px rgba(55,35,94,0.20),
        inset 0 1px 0 rgba(255,255,255,0.14);
}


.hero-orbit-icon .qn-icon {
    width: 25px;
    height: 25px;
}


.hero-orbit-icon--cinema {
    top: 4px;
    right: -4px;

    transform:
        translateZ(85px)
        rotate(6deg);
}


.hero-orbit-icon--music {
    left: -28px;
    bottom: 42px;

    color: var(--accent-soft);

    transform:
        translateZ(70px)
        rotate(-7deg);
}


.hero-orbit-icon--logic {
    right: -10px;
    bottom: -3px;

    transform:
        translateZ(95px)
        rotate(8deg);
}


@media (max-width: 767px) {

    .hero-orbit-icon {
        width: 50px;
        height: 50px;
    }


    .hero-orbit-icon .qn-icon {
        width: 22px;
        height: 22px;
    }


    .hero-orbit-icon--music {
        left: -4px;
    }


    .hero-orbit-icon--cinema {
        right: 2px;
    }


    .hero-orbit-icon--logic {
        right: 3px;
    }
}


.quiz-art-icon {
    position: absolute;

    left: 16px;
    top: 14px;

    z-index: 6;

    color: rgba(255,255,255,0.76);
}


.quiz-art-icon .qn-icon {
    width: 29px;
    height: 29px;
}


/* Flip-card back layout */

.game-card-back {
    display: flex;
    flex-direction: column;
}


.venue-panel {
    display: flex;
    flex: 1;
    flex-direction: column;
}


.venue-panel .game-book-button {
    margin-top: auto !important;
}


/* =========================================================
   QUIZNIGHT — MOBILE DEMO POLISH
   ========================================================= */

@media (max-width: 767px) {

    /*
     * ВАЖНО:
     * разрешаем и вертикальную прокрутку страницы,
     * и горизонтальный нативный свайп карточек.
     */

    .product-strip {
        touch-action: pan-x pan-y !important;

        align-items: start !important;

        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }


    .product-strip::-webkit-scrollbar {
        display: none !important;
    }


    /*
     * Тематический face-art на мобильном не нужен.
     * Оставляем чистую карточку:
     * дата → название → место → фото → бронь.
     */

    .quiz-face-art {
        display: none !important;
    }


    /*
     * Убираем фиксированные 755px.
     * Карточка сама занимает столько места,
     * сколько реально нужно контенту.
     */

    .game-card,
    .game-card-scene,
    .game-card-inner {
        height: auto !important;
        min-height: 0 !important;

        overflow: visible !important;
    }


    .game-card-inner {
        transform: none !important;
    }


    .game-card-front {
        position: relative !important;

        inset: auto !important;

        height: auto !important;
        min-height: 0 !important;

        overflow: visible !important;

        display: flex !important;
        flex-direction: column !important;

        padding: 1.15rem !important;
    }


    /*
     * Flip на мобиле нам не нужен —
     * фото заведения уже находится прямо в карточке.
     */

    .game-card-back {
        display: none !important;
    }


    /*
     * Компактнее собираем текстовую часть.
     */

    .game-time {
        margin-top: 0.85rem !important;
    }


    .game-title {
        min-height: 0 !important;

        margin-top: 0.4rem !important;
        margin-bottom: 0 !important;

        font-size: 1.75rem !important;
        line-height: 1.05 !important;

        -webkit-line-clamp: unset !important;
        overflow: visible !important;
    }


    .game-location {
        min-height: 0 !important;

        margin-top: 0.75rem !important;

        font-size: 1rem !important;
        line-height: 1.45 !important;

        -webkit-line-clamp: 3 !important;
    }


    /*
     * Фото заведения остаётся,
     * но становится заметно компактнее.
     */

    .game-venue-inline {
        display: block !important;

        height: auto !important;
        min-height: 0 !important;

        margin-top: 0.9rem !important;
    }


    .game-venue-inline img {
        display: block !important;

        width: 100% !important;
        height: 135px !important;

        object-fit: cover !important;

        border-radius: 18px 18px 0 0 !important;
    }


    .game-venue-inline-caption {
        min-height: 38px !important;
        height: auto !important;

        display: flex !important;
        align-items: center !important;

        padding: 8px 12px !important;
    }


    /*
     * Кнопка бронирования всегда полноценная,
     * не режется краями карточки.
     */

    .game-card-front .game-book-button,
    .game-card-front a[href*="/booking/"] {
        position: relative !important;

        width: 100% !important;

        flex: 0 0 auto !important;

        margin-top: 1rem !important;
        margin-bottom: 0 !important;

        min-height: 56px !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }


    /*
     * Никаких скрытых обрезаний по вертикали.
     */

    .game-card-scene,
    .game-card-inner,
    .game-card-front {
        clip: auto !important;
    }

}


@media (max-width: 767px) {

    .product-strip {
        user-select: auto !important;
        -webkit-user-select: auto !important;

        cursor: auto !important;
    }

}


/* =========================================================
   QUIZNIGHT — MOBILE EQUAL CARD HEIGHT
   ========================================================= */

@media (max-width: 767px) {

    /*
     * Высоту ряда задаёт самая высокая карточка,
     * остальные растягиваются до неё.
     */

    .product-strip {
        align-items: stretch !important;
    }


    .game-card {
        height: 100% !important;

        display: flex !important;
        flex-direction: column !important;
    }


    .game-card-scene {
        height: 100% !important;

        display: flex !important;
        flex-direction: column !important;
    }


    .game-card-inner {
        height: 100% !important;

        display: flex !important;
        flex-direction: column !important;
    }


    .game-card-front {
        height: 100% !important;

        flex: 1 1 auto !important;

        display: flex !important;
        flex-direction: column !important;
    }


    /*
     * Нижнюю часть карточки прижимаем вниз,
     * чтобы все карточки выглядели одинаково.
     */

    .game-card-front .game-book-button,
    .game-card-front a[href*="/booking/"] {
        margin-top: auto !important;
    }

}


/* =========================================================
   QUIZNIGHT — ARSENIY FEEDBACK ROUND 1
   ========================================================= */


/* ---------------------------------------------------------
   COMPACT HERO
   --------------------------------------------------------- */

.hero-card {
    padding: 2.1rem 2.4rem !important;
}


.hero-card > .row {
    min-height: 0 !important;
}


.hero-title {
    margin-top: 0.45rem !important;

    font-size:
        clamp(3rem, 5.2vw, 5rem) !important;

    line-height: 0.94 !important;
}


.hero-copy {
    margin-top: 1rem !important;
    margin-bottom: 0 !important;

    max-width: 610px !important;
}


.hero-actions {
    margin-top: 1.3rem !important;
}


.hero-meta {
    display: none !important;
}


/*
 * Пока вместо старого логотипа —
 * лёгкая композиция из фирменных иконок.
 * Потом сюда посадим старую SVG-анимацию.
 */

.hero-art-stage {
    min-height: 210px !important;
    height: 210px !important;
}


.hero-parallax {
    position: relative !important;

    width: 100% !important;
    max-width: 300px !important;

    height: 200px !important;

    margin-left: auto !important;
    margin-right: auto !important;
}


.hero-glow {
    width: 190px !important;
    height: 190px !important;

    opacity: 0.55 !important;
}


.hero-orbit-icon--cinema {
    top: 16px !important;
    right: 42px !important;
}


.hero-orbit-icon--music {
    left: 26px !important;
    bottom: 40px !important;
}


.hero-orbit-icon--logic {
    right: 35px !important;
    bottom: 15px !important;
}



/* ---------------------------------------------------------
   CARD BACK — 50% GAME / 50% VENUE
   --------------------------------------------------------- */

.game-card-back {
    padding: 1.15rem !important;

    display: flex !important;
    flex-direction: column !important;

    overflow: hidden !important;
}


.game-back-content {
    height: 100%;

    display: flex;
    flex-direction: column;

    padding-top: 2.25rem;
}


.game-back-half {
    flex: 1 1 0;

    min-height: 0;
}


.game-back-about {
    display: flex;
    flex-direction: column;

    justify-content: center;

    padding:
        0.2rem
        0.2rem
        0.85rem;
}


.game-back-title {
    margin:
        0.45rem
        0
        0;

    font-size: 1.55rem;
    font-weight: 900;

    line-height: 1.05;

    letter-spacing: -0.02em;
}


.game-back-description {
    margin:
        0.8rem
        0
        0;

    color: var(--text-soft);

    font-size: 0.92rem;

    line-height: 1.48;

    display: -webkit-box;

    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;

    overflow: hidden;
}


.game-back-divider {
    width: 100%;
    height: 1px;

    flex: 0 0 1px;

    margin:
        0.2rem
        0
        0.9rem;

    background:
        rgba(255,255,255,0.14);
}


.game-back-venue {
    display: flex;
    flex-direction: column;

    min-height: 0;
}


.game-back-venue-row {
    display: grid;

    grid-template-columns:
        116px
        minmax(0, 1fr);

    gap: 0.85rem;

    align-items: center;

    margin-top: 0.55rem;
}


.game-back-venue-photo {
    width: 116px;
    height: 92px;

    overflow: hidden;

    border-radius: 16px;
}


.game-back-venue-photo img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}


.game-back-venue-copy {
    min-width: 0;
}


.game-back-venue .venue-title {
    margin: 0;

    font-size: 1.12rem;
}


.game-back-venue .venue-address {
    margin:
        0.4rem
        0
        0;

    font-size: 0.78rem;

    line-height: 1.35;

    display: -webkit-box;

    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;

    overflow: hidden;
}


.game-back-venue .game-book-button {
    width: 100%;

    margin-top: auto !important;

    min-height: 48px;
}



/* ---------------------------------------------------------
   COMPACT SCHEDULE
   --------------------------------------------------------- */

.schedule-list {
    gap: 8px !important;

    margin-top: 1.7rem !important;
}


.schedule-game-row {
    grid-template-columns:
        minmax(125px, 0.62fr)
        minmax(230px, 2fr)
        auto !important;

    gap: 1rem !important;

    padding:
        0.82rem
        1rem !important;

    border-radius: 16px !important;
}


.schedule-game-date {
    gap: 1px !important;
}


.schedule-game-day {
    font-size: 0.96rem !important;
}


.schedule-game-time {
    font-size: 0.72rem !important;

    letter-spacing: 0.11em !important;
}


.schedule-game-title {
    font-size: 1.08rem !important;
}


.schedule-game-location {
    margin-top: 0.2rem !important;

    font-size: 0.82rem !important;

    line-height: 1.3 !important;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}


.schedule-status {
    padding:
        0.34rem
        0.56rem !important;

    font-size: 0.69rem !important;
}


.schedule-arrow {
    font-size: 1.25rem !important;
}



/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 767px) {

    /*
     * На телефоне hero тоже становится компактнее,
     * а декоративный desktop-art убираем полностью.
     */

    .hero-card {
        padding:
            1.65rem
            1.2rem !important;
    }


    .hero-title {
        font-size:
            clamp(2.65rem, 13vw, 4rem) !important;
    }


    .hero-copy {
        margin-top: 0.85rem !important;
    }


    .hero-actions {
        margin-top: 1.15rem !important;
    }


    .hero-art-stage {
        display: none !important;
    }


    /*
     * Расписание компактнее,
     * но на мобиле сохраняем удобный tap-target.
     */

    .schedule-game-row {
        grid-template-columns:
            1fr
            auto !important;

        gap:
            0.45rem
            0.8rem !important;

        padding:
            0.85rem
            0.9rem !important;
    }


    .schedule-game-date {
        grid-column: 1;
    }


    .schedule-game-main {
        grid-column:
            1 / -1;
    }


    .schedule-game-status {
        grid-column: 2;
        grid-row: 1;

        align-self: center;
    }


    .schedule-game-location {
        white-space: normal;
    }

}


/* =========================================================
   QUIZNIGHT — MUSEUM
   ========================================================= */

.museum-section {
    padding:
        1.5rem
        0
        5rem;
}


.museum-hero {
    padding:
        3.4rem
        3.6rem;

    border-radius: 34px;
}


.museum-title {
    margin:
        0.6rem
        0
        0;

    font-size:
        clamp(4rem, 8vw, 7rem);

    font-weight: 900;

    line-height: 0.88;

    letter-spacing: -0.055em;
}


.museum-lead {
    max-width: 650px;

    margin:
        1.5rem
        0
        0;

    color: var(--text-soft);

    font-size: 1.12rem;

    line-height: 1.6;
}


.museum-preview {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 1rem;

    margin-top: 2rem;
}


.museum-preview-card {
    min-height: 300px;

    padding: 1.7rem;

    border-radius: 28px;

    display: flex;
    flex-direction: column;
}


.museum-preview-number {
    margin-left: auto;

    color: rgba(255,255,255,0.25);

    font-size: 3rem;
    font-weight: 900;

    line-height: 1;
}


.museum-preview-kicker {
    margin-top: auto;

    color: var(--accent-soft);

    font-size: 0.72rem;
    font-weight: 800;

    letter-spacing: 0.18em;
}


.museum-preview-card h2 {
    margin:
        0.6rem
        0
        0;

    font-size: 1.6rem;

    font-weight: 900;

    line-height: 1.05;
}


.museum-preview-card p {
    margin:
        0.85rem
        0
        0;

    color: var(--text-soft);

    line-height: 1.5;
}


.museum-empty {
    max-width: 780px;

    margin:
        1rem
        auto
        0;

    padding:
        2rem
        2.2rem;

    border-radius: 28px;

    text-align: center;
}


.museum-empty-kicker {
    color: var(--accent-soft);

    font-size: 0.7rem;
    font-weight: 800;

    letter-spacing: 0.18em;
}


.museum-empty h2 {
    margin:
        0.8rem
        0
        0;

    font-size: 2rem;
    font-weight: 900;

    line-height: 1.05;
}


.museum-empty p {
    max-width: 560px;

    margin:
        1rem
        auto
        0;

    color: var(--text-soft);

    line-height: 1.55;
}


/* будущие реальные финалы */

.museum-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 1.2rem;

    margin-top: 2rem;
}


.museum-event {
    overflow: hidden;

    border-radius: 28px;
}


.museum-event-media {
    aspect-ratio: 16 / 10;

    background:
        rgba(255,255,255,0.06);
}


.museum-event-media img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}


.museum-event-body {
    padding: 1.5rem;
}


.museum-event-date,
.museum-champion-label {
    font-size: 0.7rem;
    font-weight: 800;

    letter-spacing: 0.14em;

    color: var(--accent-soft);
}


.museum-event-title {
    margin:
        0.4rem
        0
        1.4rem;

    font-size: 1.9rem;

    font-weight: 900;
}


.museum-champion {
    margin-top: 0.25rem;

    font-size: 1.3rem;

    font-weight: 850;
}


.museum-event-copy {
    margin:
        1rem
        0
        0;

    color: var(--text-soft);
}


@media (max-width: 767px) {

    .museum-section {
        padding-top: 0.8rem;
    }


    .museum-hero {
        padding:
            2rem
            1.25rem;

        border-radius: 26px;
    }


    .museum-title {
        font-size:
            clamp(3.2rem, 17vw, 5rem);
    }


    .museum-preview,
    .museum-grid {
        grid-template-columns: 1fr;
    }


    .museum-preview-card {
        min-height: 230px;
    }

}


/* =========================================================
   QUIZNIGHT — DESKTOP NAVBAR ONE ROW FIX
   ========================================================= */

@media (min-width: 992px) {

    .navbar-shell {
        flex-wrap: nowrap !important;
    }


    .navbar-collapse {
        display: flex !important;

        flex-basis: auto !important;
        flex-grow: 1 !important;

        width: auto !important;

        justify-content: flex-end !important;

        padding: 0 !important;
    }


    .navbar-nav {
        display: flex !important;

        flex-direction: row !important;
        flex-wrap: nowrap !important;

        align-items: center !important;

        margin-left: auto !important;

        gap: 0.15rem !important;
    }


    .navbar-nav .nav-item {
        flex: 0 0 auto !important;
    }


    .navbar-nav .nav-link {
        white-space: nowrap !important;

        padding:
            0.7rem
            0.75rem !important;

        font-size: 15px !important;
    }


    .navbar-nav .btn-glass-primary,
    .navbar-shell .btn-glass-primary {
        flex: 0 0 auto !important;

        margin-left: 0.65rem !important;

        padding:
            0.8rem
            1.2rem !important;

        white-space: nowrap !important;
    }

}


/* ===== Privacy ===== */

.privacy-page {
    padding: 3rem 0 5rem;
}

.privacy-shell {
    max-width: 920px;
    margin: 0 auto;
    padding: clamp(1.4rem, 4vw, 3rem);
    border-radius: 28px;
}

.privacy-back,
.footer-legal a,
.privacy-consent a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.privacy-copy {
    margin-top: 2rem;
    white-space: pre-wrap;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.privacy-consent {
    padding: 1rem 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
}

.privacy-consent-label {
    display: flex;
    align-items: flex-start;
    gap: .8rem;
    cursor: pointer;
    line-height: 1.45;
}

.privacy-consent .form-check-input {
    flex: 0 0 auto;
    margin-top: .2rem;
}

.footer-legal {
    margin-bottom: .6rem;
    font-size: .9rem;
    opacity: .8;
}


/* =========================================================
   QUIZNIGHT — UX FIX ROUND 2
   ========================================================= */

/* ---------------------------------------------------------
   1. ANCHOR OFFSET FOR STICKY NAVBAR
   --------------------------------------------------------- */

:root {
    --qn-anchor-offset: 118px;
}

html {
    scroll-padding-top: var(--qn-anchor-offset);
}

.games-section,
.how-section,
.about-section {
    scroll-margin-top: var(--qn-anchor-offset);
}


/* ---------------------------------------------------------
   2. REMOVE PHANTOM / DOUBLE CARD BACKGROUND

   Внешние технические слои карточки полностью прозрачны.
   Стекло остаётся только на реальном front/back face.
   --------------------------------------------------------- */

.game-card,
.game-card-scene,
.game-card-inner {
    background: transparent !important;

    border-color: transparent !important;

    box-shadow: none !important;

    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}


/* ---------------------------------------------------------
   3. MOBILE GESTURE CONTRACT

   Вертикаль принадлежит странице.
   Горизонталь обрабатывает наш JS.
   --------------------------------------------------------- */

@media (max-width: 767px) {

    :root {
        --qn-anchor-offset: 92px;
    }

    .product-strip {
        touch-action: pan-y !important;

        overscroll-behavior-x: contain;

        -webkit-overflow-scrolling: touch;

        cursor: auto !important;
    }

    .game-card,
    .game-card-scene,
    .game-card-inner {
        background: transparent !important;

        border: 0 !important;

        box-shadow: none !important;
    }
}

/* =========================================================
   QUIZNIGHT — MOBILE NAV + SCROLL FIX
   ========================================================= */

@media (max-width: 991.98px) {

    /*
     * Mobile navbar:
     * убираем тяжёлый backdrop repaint во время collapse.
     * Внешне остаётся практически тот же фирменный фон.
     */

    .navbar-shell {
        background:
            rgba(121, 100, 190, 0.96) !important;

        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }


    /*
     * Bootstrap по умолчанию анимирует height.
     * На стеклянной sticky-панели это давало мерцание.
     */

    .navbar-collapse.collapsing {
        transition: none !important;
    }
}


@media (max-width: 767px) {

    /*
     * Карусель имеет горизонтальный overflow.
     * Явно запрещаем ей становиться вертикальным
     * вложенным scroll-container.
     */

    .product-strip {
        overflow-y: hidden !important;

        touch-action: pan-y !important;

        overscroll-behavior-x: contain !important;
        overscroll-behavior-y: auto !important;
    }


    /*
     * Более поздний desktop/back-face CSS раньше
     * снова включал эту сторону карточки через !important.
     * На мобиле flip отсутствует полностью.
     */

    .game-card-back {
        display: none !important;

        visibility: hidden !important;

        pointer-events: none !important;
    }


    .game-card-inner {
        transform: none !important;
    }


    /*
     * Технические оболочки никогда не рисуют
     * дополнительную карточку под основной.
     */

    .game-card,
    .game-card-scene,
    .game-card-inner {
        background: transparent !important;

        border: 0 !important;

        box-shadow: none !important;
    }
}

/* =========================================================
   QUIZNIGHT — GAME CARD SHADOW FIX
   ========================================================= */

/*
 * .glass даёт большой внешний shadow.
 * На игровых карточках он выглядел как вторая
 * фиолетовая подложка под карточкой.
 *
 * Оставляем только лёгкий внутренний glass-highlight.
 */

.game-card-front,
.game-card-back {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.14)
        !important;
}


/*
 * Старый hover физически поднимал absolute face вверх,
 * дополнительно открывая пространство под карточкой.
 * Теперь hover меняет поверхность, но не геометрию.
 */

.game-card-front:hover {
    transform: none !important;

    background:
        rgba(255, 255, 255, 0.13)
        !important;
}

/* =========================================================
   QUIZNIGHT — GAME FILTERS
   ========================================================= */

.game-filters {
    display: grid;

    grid-template-columns:
        minmax(150px, 0.8fr)
        minmax(140px, 0.65fr)
        minmax(240px, 1.4fr)
        auto
        auto;

    align-items: end;

    gap: 0.9rem;

    margin-bottom: 1.4rem;

    padding: 1rem;

    border-radius: 22px;
}


.game-filter-field {
    display: flex;
    flex-direction: column;

    gap: 0.45rem;

    min-width: 0;
}


.game-filter-field label {
    padding-left: 0.15rem;

    color: var(--text-soft);

    font-size: 0.72rem;
    font-weight: 800;

    letter-spacing: 0.08em;

    text-transform: uppercase;
}


.game-filter-field select {
    width: 100%;
    height: 48px;

    padding:
        0
        2.2rem
        0
        0.9rem;

    border:
        1px solid
        rgba(255, 255, 255, 0.16);

    border-radius: 14px;

    outline: none;

    color: var(--text);

    background:
        rgba(255, 255, 255, 0.08);

    font: inherit;
    font-size: 0.9rem;
    font-weight: 700;

    cursor: pointer;
}


.game-filter-field select:focus {
    border-color:
        rgba(255, 211, 189, 0.62);

    box-shadow:
        0 0 0 3px
        rgba(255, 170, 145, 0.10);
}


.game-filter-field select option {
    color: #33294f;
    background: #f7f2ff;
}


.game-filter-availability,
.game-filter-reset {
    min-height: 48px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin: 0;

    padding:
        0.7rem
        0.9rem;

    border-radius: 14px;

    font-size: 0.85rem;
    font-weight: 800;

    white-space: nowrap;
}


.game-filter-availability {
    gap: 0.55rem;

    border:
        1px solid
        rgba(255, 255, 255, 0.14);

    background:
        rgba(255, 255, 255, 0.06);

    cursor: pointer;
}


.game-filter-availability input {
    width: 17px;
    height: 17px;

    margin: 0;

    accent-color: var(--accent-strong);
}


.game-filter-reset {
    border:
        1px solid
        rgba(255, 255, 255, 0.14);

    color: var(--text);

    background:
        transparent;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


.game-filter-reset:hover {
    background:
        rgba(255, 255, 255, 0.10);

    transform:
        translateY(-1px);
}


.game-filter-summary {
    grid-column:
        1 / -1;

    min-height: 1.2em;

    padding-left: 0.15rem;

    color: var(--text-soft);

    font-size: 0.8rem;
}


.game-filter-empty {
    margin-bottom: 1.3rem;

    padding:
        1.25rem
        1.4rem;

    border-radius: 20px;
}


.game-filter-empty strong,
.game-filter-empty span {
    display: block;
}


.game-filter-empty span {
    margin-top: 0.25rem;

    color: var(--text-soft);
}


.game-card.is-filtered-out {
    display: none !important;
}


@media (max-width: 991.98px) {

    .game-filters {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .game-filter-location {
        grid-column:
            1 / -1;
    }


    .game-filter-availability,
    .game-filter-reset {
        width: 100%;
    }

}


@media (max-width: 575.98px) {

    .game-filters {
        grid-template-columns: 1fr;

        gap: 0.75rem;

        padding: 0.85rem;
    }


    .game-filter-location,
    .game-filter-summary {
        grid-column: auto;
    }


    .game-filter-field select,
    .game-filter-availability,
    .game-filter-reset {
        min-height: 50px;
    }

}

/* =========================================================
   QUIZNIGHT — MOBILE FILTER COLLAPSE
   ========================================================= */

.game-filter-toggle {
    display: none;
}


@media (max-width: 575.98px) {

    .game-filter-toggle {
        width: 100%;
        min-height: 54px;

        display: flex;
        align-items: center;
        justify-content: space-between;

        gap: 1rem;

        margin-bottom: 0.8rem;

        padding:
            0.85rem
            1rem;

        border-radius: 18px;

        color: var(--text);

        font: inherit;
        font-weight: 850;

        text-align: left;

        cursor: pointer;
    }


    .game-filter-toggle-right {
        display: inline-flex;
        align-items: center;

        gap: 0.55rem;
    }


    .game-filter-toggle-count {
        min-width: 25px;
        height: 25px;

        display: inline-flex;
        align-items: center;
        justify-content: center;

        padding:
            0
            0.42rem;

        border-radius: 999px;

        color: #513f67;

        background:
            linear-gradient(
                135deg,
                var(--accent-soft),
                var(--accent-strong)
            );

        font-size: 0.75rem;
        font-weight: 900;
    }


    .game-filter-toggle-arrow {
        display: inline-block;

        font-size: 1rem;

        transition:
            transform 0.2s ease;
    }


    .game-filter-toggle[aria-expanded="true"]
    .game-filter-toggle-arrow {
        transform:
            rotate(180deg);
    }


    /*
     * На телефоне фильтры изначально закрыты.
     */

    .game-filters {
        display: none;
    }


    .game-filters.is-open {
        display: grid;
    }

}

/* =========================================================
   QUIZNIGHT — DESKTOP HERO LOGO + RAINMAN
   ========================================================= */

.hero-animated-logo,
.hero-rainman-layer {
    display: none;
}


@media (min-width: 992px) {

    .hero-card {
        position: relative !important;
        isolation: isolate;
    }


    .hero-card > .row {
        position: relative;
        z-index: 3;
    }


    /*
     * Настоящий SVG QuizNight.
     */

    .hero-animated-logo {
        position: relative;

        z-index: 3;

        display: block;

        width: min(100%, 350px);
        height: auto;

        margin: auto;

        pointer-events: none;

        filter:
            drop-shadow(
                0 20px 34px
                rgba(44, 28, 75, 0.22)
            );
    }


    .hero-art-stage {
        display: flex !important;

        align-items: center;
        justify-content: center;
    }


    .hero-parallax {
        display: flex !important;

        align-items: center;
        justify-content: center;
    }


    .hero-glow {
        inset: 18px !important;

        opacity: 0.58 !important;

        transform:
            translateZ(-30px)
            scale(1.15) !important;
    }


    /*
     * Galifianakis / Rain Man math layer.
     */

    .hero-rainman-layer {
        position: absolute;

        inset: 0;

        z-index: 5;

        display: block;

        overflow: hidden;

        pointer-events: none;

        border-radius: inherit;
    }


    .hero-equation {
        position: absolute;

        display: block;

        color:
            rgba(
                255,
                250,
                248,
                var(--math-opacity, .12)
            );

        font-family:
            Georgia,
            "Times New Roman",
            serif;

        font-size:
            var(--math-size, 1rem);

        font-weight: 700;

        white-space: nowrap;

        will-change:
            transform,
            opacity;

        pointer-events: none;
    }


    .hero-equation > span {
        display: block;

        animation:
            qnMathFloat
            5.8s
            ease-in-out
            infinite
            alternate;
    }


    .hero-equation:nth-child(2n) > span {
        animation-duration: 7.2s;
        animation-delay: -2.5s;
    }


    .hero-equation:nth-child(3n) > span {
        animation-duration: 6.4s;
        animation-delay: -4s;
    }


    @keyframes qnMathFloat {

        from {
            transform:
                translate3d(
                    -3px,
                    -4px,
                    0
                )
                rotate(-1.5deg);
        }

        to {
            transform:
                translate3d(
                    6px,
                    7px,
                    0
                )
                rotate(1.8deg);
        }

    }

}


/*
 * На телефонах и планшетах:
 * ни логотипа справа, ни вычислений.
 */

@media (max-width: 991.98px) {

    .hero-rainman-layer,
    .hero-animated-logo,
    .hero-art-stage {
        display: none !important;
    }

}


@media (prefers-reduced-motion: reduce) {

    .hero-equation > span {
        animation: none !important;
    }

}

/* =========================================================
   QUIZNIGHT — RAINMAN BOOST
   ========================================================= */

@media (min-width: 992px) {

    /*
     * Раньше opacity применялась дважды:
     * и цветом, и JS.
     *
     * Теперь цвет почти непрозрачный,
     * а реальную прозрачность контролирует
     * только сама формула.
     */

    .hero-equation {
        color:
            rgba(
                255,
                250,
                248,
                0.94
            ) !important;

        opacity:
            var(--math-opacity, .22);

        text-shadow:
            0 0 18px
            rgba(255,255,255,0.08);

        mix-blend-mode: screen;
    }


    /*
     * Сначала символ буквально возникает
     * из размытия, затем продолжает плавать.
     */

    .hero-equation > span {
        opacity: 0;

        filter:
            blur(6px);

        animation:
            qnMathAppear
            1.15s
            cubic-bezier(.18,.75,.22,1)
            var(--spawn-delay, .15s)
            forwards,

            qnMathFloatBoost
            var(--float-duration, 6.8s)
            ease-in-out
            var(--float-delay, -2s)
            infinite
            alternate
            !important;
    }


    /*
     * Немного разной жизни каждому элементу.
     */

    .hero-equation:nth-child(5n + 1) {
        --spawn-delay: .08s;
        --float-duration: 5.8s;
        --float-delay: -1.1s;
    }


    .hero-equation:nth-child(5n + 2) {
        --spawn-delay: .42s;
        --float-duration: 7.4s;
        --float-delay: -3.4s;
    }


    .hero-equation:nth-child(5n + 3) {
        --spawn-delay: .78s;
        --float-duration: 6.3s;
        --float-delay: -2.2s;
    }


    .hero-equation:nth-child(5n + 4) {
        --spawn-delay: 1.08s;
        --float-duration: 8.1s;
        --float-delay: -4.6s;
    }


    .hero-equation:nth-child(5n) {
        --spawn-delay: 1.38s;
        --float-duration: 6.9s;
        --float-delay: -5.2s;
    }


    @keyframes qnMathAppear {

        0% {
            opacity: 0;

            filter:
                blur(8px);
        }


        40% {
            opacity: .25;

            filter:
                blur(4px);
        }


        100% {
            opacity: 1;

            filter:
                blur(0);
        }

    }


    @keyframes qnMathFloatBoost {

        0% {
            transform:
                translate3d(
                    -7px,
                    -8px,
                    0
                )
                rotate(-2deg)
                scale(.98);
        }


        50% {
            transform:
                translate3d(
                    3px,
                    4px,
                    0
                )
                rotate(.6deg)
                scale(1.01);
        }


        100% {
            transform:
                translate3d(
                    11px,
                    12px,
                    0
                )
                rotate(2.4deg)
                scale(1.03);
        }

    }

}


@media (max-width: 991.98px) {

    .hero-rainman-layer {
        display: none !important;
    }

}

/* =========================================================
   QUIZNIGHT — RAINMAN FULLSCREEN FOREGROUND
   ========================================================= */

@media (min-width: 992px) {

    /*
     * Формулы больше не ограничены hero-card.
     * JS переносит слой напрямую в body,
     * а здесь растягиваем его на весь viewport.
     */

    body > .hero-rainman-layer {
        position: fixed !important;

        inset: 0 !important;

        width: 100vw;
        height: 100vh;

        display: block !important;

        overflow: hidden !important;

        border-radius: 0 !important;

        pointer-events: none !important;

        z-index: 70 !important;

        /*
         * Формулы ощущаются как передний план,
         * но navbar остаётся поверх них.
         */
    }


    body > .hero-rainman-layer .hero-equation {
        position: absolute;
    }

}


@media (max-width: 991.98px) {

    body > .hero-rainman-layer {
        display: none !important;
    }

}

/* =========================================================
   QUIZNIGHT — SCHEDULE FILTERS
   ========================================================= */

.schedule-game-row.is-filtered-out {
    display: none !important;
}


/*
 * На schedule page панель использует те же стили,
 * что и фильтры карточек на главной.
 */

#scheduleFilterPanel {
    margin-top: 1.6rem;
}


/*
 * Mobile:
 * панель закрыта по умолчанию.
 */

@media (max-width: 575.98px) {

    #scheduleFilterPanel {
        display: none;
        margin-top: 0;
    }


    #scheduleFilterPanel.is-open {
        display: grid;
    }

}

/* =========================================================
   QUIZNIGHT — BOOKING TEXT CONTRAST
   ========================================================= */

/*
 * Bootstrap text-secondary слишком тёмный
 * для нашего фиолетового фона.
 *
 * Меняем только booking / success pages.
 */

.booking-page .text-secondary,
.booking-success-page .text-secondary {
    color:
        rgba(
            255,
            255,
            255,
            0.74
        )
        !important;
}


/*
 * Номер брони чуть заметнее остальных secondary-текстов.
 */

.booking-success-page .fs-5.text-secondary {
    color:
        rgba(
            255,
            255,
            255,
            0.82
        )
        !important;
}


.booking-page .form-label .text-secondary {
    color:
        rgba(
            255,
            255,
            255,
            0.68
        )
        !important;
}

/* =========================================================
   QUIZNIGHT — GAME META DISPLAY
   ========================================================= */

.game-subtitle {
    margin-top: 0.35rem;

    color: rgba(255, 255, 255, 0.72);

    font-size: 0.9rem;
    line-height: 1.3;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;

    overflow: hidden;
}


.game-event-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    gap: 0.35rem;

    margin-top: 0.55rem;
}


.game-event-comment {
    color: rgba(255, 255, 255, 0.68);

    font-size: 0.82rem;
    line-height: 1.3;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;

    overflow: hidden;
}


.game-season-badge {
    display: inline-flex;
    align-items: center;

    max-width: 100%;

    padding: 0.32rem 0.58rem;

    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;

    background: rgba(255, 255, 255, 0.08);

    color: rgba(255, 255, 255, 0.88);

    font-size: 0.76rem;
    line-height: 1.2;
}


.game-back-subtitle {
    margin-top: -0.15rem;
    margin-bottom: 0.7rem;

    color: rgba(255, 255, 255, 0.68);

    font-size: 0.9rem;
    line-height: 1.35;
}


/* Расписание */

.schedule-game-subtitle {
    margin-top: 0.15rem;

    color: rgba(255, 255, 255, 0.65);

    font-size: 0.88rem;
    line-height: 1.3;
}


.schedule-game-comment {
    margin-top: 0.3rem;

    color: rgba(255, 255, 255, 0.62);

    font-size: 0.82rem;
    line-height: 1.3;
}


.schedule-game-season {
    display: inline-flex;

    margin-top: 0.38rem;
    padding: 0.25rem 0.5rem;

    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;

    background: rgba(255, 255, 255, 0.07);

    color: rgba(255, 255, 255, 0.84);

    font-size: 0.76rem;
    line-height: 1.2;
}


@media (max-width: 767px) {

    .game-subtitle {
        margin-top: 0.28rem;

        font-size: 0.84rem;
    }


    .game-event-meta {
        margin-top: 0.45rem;
    }


    .game-event-comment {
        font-size: 0.78rem;

        -webkit-line-clamp: 1;
    }


    .game-season-badge {
        font-size: 0.72rem;
    }


    .schedule-game-subtitle,
    .schedule-game-comment {
        white-space: normal;
    }
}

/* =========================================================
   QUIZNIGHT — VISUAL META POLISH 2.4.2
   ========================================================= */


/* ---------------------------------------------------------
   DESKTOP GAME CARDS

   На небольшом ноутбуке карточка подстраивается под высоту
   viewport. Мобильную карточку этот блок НЕ затрагивает.
   --------------------------------------------------------- */

@media (min-width: 768px) {

    .game-card-scene,
    .game-card-inner {
        height:
            clamp(
                600px,
                calc(100vh - 145px),
                660px
            )
            !important;

        min-height: 600px !important;
    }


    .game-card-front,
    .game-card-back {
        box-sizing: border-box !important;

        height: 100% !important;
        min-height: 0 !important;
    }


    /*
     * Нижняя зона всегда остаётся внутри карточки.
     */

    .game-card-front {
        display: flex !important;
        flex-direction: column !important;
    }


    .game-spacer {
        flex: 1 1 auto !important;

        min-height: 0.35rem !important;
    }


    .game-info,
    .game-actions {
        flex: 0 0 auto !important;
    }
}


/*
 * Дополнительно уплотняем только невысокие desktop/laptop
 * экраны. Большие мониторы сохраняют прежнюю геометрию.
 */

@media
    (min-width: 768px)
    and (max-height: 850px) {

    .game-card-front,
    .game-card-back {
        padding: 1.2rem !important;
    }


    .quiz-face-art {
        height: 112px !important;
        min-height: 112px !important;
    }


    .game-time {
        margin-top: 0.55rem !important;
    }


    .game-title {
        margin-top: 0.3rem !important;

        font-size: 1.85rem !important;
        line-height: 1.06 !important;
    }


    .game-location {
        margin-top: 0.4rem !important;

        font-size: 0.94rem !important;
        line-height: 1.35 !important;
    }


    .game-subtitle {
        margin-top: 0.25rem !important;
    }


    .game-event-meta {
        margin-top: 0.35rem !important;

        gap: 0.22rem !important;
    }


    .game-event-comment {
        font-size: 0.76rem !important;
    }


    .game-season-badge {
        padding: 0.24rem 0.48rem !important;

        font-size: 0.70rem !important;
    }


    .game-info {
        margin-top: 0.55rem !important;
    }


    .game-actions {
        margin-top: 0.5rem !important;

        gap: 0.45rem !important;
    }
}


/* ---------------------------------------------------------
   DESKTOP SCHEDULE

   Не увеличиваем строку расписания:
   title + comment + season идут последовательно.
   --------------------------------------------------------- */

.schedule-game-main {
    min-width: 0;
}


.schedule-game-primary {
    display: flex;

    align-items: center;

    gap: 0.65rem;

    min-width: 0;
}


.schedule-game-primary .schedule-game-title {
    flex: 0 1 auto;

    min-width: 0;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}


.schedule-game-comment {
    flex: 1 1 auto;

    min-width: 60px;
    max-width: 330px;

    margin-top: 0 !important;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}


.schedule-game-season {
    flex: 0 0 auto;

    margin-top: 0 !important;

    white-space: nowrap;
}


.schedule-game-location {
    margin-top: 0.22rem;
}


@media (min-width: 768px) {

    .schedule-game-row {
        padding:
            0.9rem
            1.15rem
            !important;
    }
}


/* ---------------------------------------------------------
   MOBILE SCHEDULE

   Максимально компактный режим:
   дата | название+место | наличие

   Comment/season убираем именно в мобильном расписании.
   На карточке самой игры данные остаются.
   --------------------------------------------------------- */

@media (max-width: 767px) {

    .schedule-page-shell {
        padding: 1rem !important;
    }


    .schedule-list {
        gap: 0.55rem !important;
    }


    .schedule-game-row {
        display: grid !important;

        grid-template-columns:
            68px
            minmax(0, 1fr)
            auto
            !important;

        grid-template-rows:
            auto
            !important;

        align-items: center !important;

        gap:
            0.65rem
            !important;

        min-height: 82px !important;

        padding:
            0.65rem
            0.7rem
            !important;
    }


    .schedule-game-date {
        grid-column: 1 !important;
        grid-row: 1 !important;

        align-self: center !important;
    }


    .schedule-game-main {
        grid-column: 2 !important;
        grid-row: 1 !important;

        min-width: 0 !important;
    }


    .schedule-game-primary {
        display: block !important;

        min-width: 0 !important;
    }


    .schedule-game-status {
        grid-column: 3 !important;
        grid-row: 1 !important;

        align-self: center !important;

        gap: 0 !important;
    }


    .schedule-game-comment,
    .schedule-game-season {
        display: none !important;
    }


    .schedule-game-day {
        font-size: 0.88rem !important;
        line-height: 1.1 !important;
    }


    .schedule-game-time {
        margin-top: 0.22rem !important;

        font-size: 0.74rem !important;
        line-height: 1.1 !important;
    }


    .schedule-game-title {
        font-size: 0.96rem !important;
        line-height: 1.14 !important;

        white-space: normal !important;

        display: -webkit-box !important;
        -webkit-box-orient: vertical !important;
        -webkit-line-clamp: 2 !important;

        overflow: hidden !important;
    }


    .schedule-game-location {
        margin-top: 0.25rem !important;

        font-size: 0.74rem !important;
        line-height: 1.15 !important;

        white-space: nowrap !important;

        overflow: hidden !important;

        text-overflow: ellipsis !important;
    }


    .schedule-status {
        padding:
            0.35rem
            0.5rem
            !important;

        font-size: 0.68rem !important;

        white-space: nowrap !important;
    }


    .schedule-arrow {
        display: none !important;
    }
}


/* ---------------------------------------------------------
   ANCHOR LANDING

   Убираем лишнюю воздушную яму после клика
   Игры / Как играем / О нас.
   --------------------------------------------------------- */

@media (min-width: 768px) {

    .games-section,
    .how-section,
    .about-section {
        scroll-margin-top: 82px;

        padding-top: 36px !important;
    }
}


@media (max-width: 767px) {

    .games-section,
    .how-section,
    .about-section {
        scroll-margin-top: 100px;

        padding-top: 28px !important;
    }
}

/* =========================================================
   QUIZNIGHT — COMPACT LAPTOP CARDS 2.4.2B
   ========================================================= */

@media
    (min-width: 768px)
    and (max-height: 900px) {

    .game-card-scene,
    .game-card-inner {
        height: 560px !important;
        min-height: 560px !important;
    }


    .game-card-front,
    .game-card-back {
        height: 100% !important;
        min-height: 0 !important;

        padding: 1rem 1.1rem !important;
    }


    .game-card-top {
        margin-bottom: 0.25rem !important;
    }


    .quiz-face-art {
        height: 92px !important;
        min-height: 92px !important;

        margin-top: 0.45rem !important;
    }


    .game-time {
        margin-top: 0.45rem !important;

        font-size: 0.82rem !important;
    }


    .game-title {
        min-height: 0 !important;

        margin-top: 0.25rem !important;
        margin-bottom: 0 !important;

        font-size: 1.55rem !important;
        line-height: 1.04 !important;
    }


    .game-subtitle {
        margin-top: 0.2rem !important;

        font-size: 0.78rem !important;
        line-height: 1.2 !important;

        -webkit-line-clamp: 1 !important;
    }


    .game-location {
        min-height: 0 !important;

        margin-top: 0.45rem !important;

        font-size: 0.82rem !important;
        line-height: 1.3 !important;

        -webkit-line-clamp: 2 !important;
    }


    .game-event-meta {
        margin-top: 0.38rem !important;

        gap: 0.22rem !important;
    }


    .game-event-comment {
        font-size: 0.72rem !important;
        line-height: 1.2 !important;

        -webkit-line-clamp: 1 !important;
    }


    .game-season-badge {
        padding: 0.2rem 0.42rem !important;

        font-size: 0.67rem !important;
    }


    .game-spacer {
        flex: 1 1 auto !important;

        min-height: 0.15rem !important;
    }


    .game-info {
        margin-top: 0.4rem !important;

        padding-top: 0.55rem !important;
    }


    .game-actions {
        display: grid !important;

        grid-template-columns:
            1fr
            1fr;

        gap: 0.45rem !important;

        margin-top: 0.45rem !important;
    }


    .game-actions .btn {
        min-height: 46px !important;

        padding:
            0.55rem
            0.7rem
            !important;

        font-size: 0.9rem !important;
    }
}


/* =========================================================
   QUIZNIGHT — ANCHOR LANDING V2
   ========================================================= */

@media (min-width: 768px) {

    #games:target,
    #how:target,
    #about:target {
        scroll-margin-top: 112px !important;

        padding-top: 12px !important;
    }
}


@media (max-width: 767px) {

    #games:target,
    #how:target,
    #about:target {
        scroll-margin-top: 108px !important;

        padding-top: 12px !important;
    }
}


/* =========================================================
   QUIZNIGHT — SCHEDULE STATUS CLUSTER
   ========================================================= */

@media (min-width: 768px) {

    .schedule-game-status {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;

        gap: 0.45rem !important;

        white-space: nowrap;
    }


    .schedule-game-status .schedule-game-season {
        margin: 0 !important;
    }
}


/* =========================================================
   QUIZNIGHT — ANCHOR LANDING V3
   ========================================================= */

/*
 * Якорь теперь находится ВНУТРИ секции после её верхнего
 * padding. Поэтому при переходе мы позиционируем уже само
 * содержимое, а не начало огромного section-блока.
 */

.section-anchor {
    display: block;

    width: 0;
    height: 0;

    margin: 0 !important;
    padding: 0 !important;

    border: 0;
    pointer-events: none;
}


/*
 * Высота navbar + небольшой визуальный воздух.
 */

#games.section-anchor,
#games.section-anchor:target,
#how.section-anchor,
#how.section-anchor:target,
#about.section-anchor,
#about.section-anchor:target {
    scroll-margin-top: 200px !important;

    padding-top: 0 !important;
}


@media (max-width: 767px) {

    #games.section-anchor,
    #games.section-anchor:target,
    #how.section-anchor,
    #how.section-anchor:target,
    #about.section-anchor,
    #about.section-anchor:target {
        scroll-margin-top: 155px !important;

        padding-top: 0 !important;
    }
}


/* =========================================================
   QUIZNIGHT — ANCHOR CSS RESET FOR V4
   ========================================================= */

#games.section-anchor,
#games.section-anchor:target,
#how.section-anchor,
#how.section-anchor:target,
#about.section-anchor,
#about.section-anchor:target {
    scroll-margin-top: 0 !important;
    padding-top: 0 !important;
}

/* =========================================================
   QUIZNIGHT — BOOKING GAME META
   ========================================================= */

.booking-game-title {
    margin-bottom: 0;
}


.booking-game-subtitle {
    margin-top: 0.35rem;

    color: rgba(255, 255, 255, 0.72);

    font-size: 1.05rem;
    line-height: 1.35;
}


.booking-game-location {
    margin-top: 1rem;
    margin-bottom: 0.65rem;
}


.booking-game-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;

    gap: 0.45rem 0.6rem;

    margin-bottom: 0.9rem;
}


.booking-game-comment {
    color: rgba(255, 255, 255, 0.76);

    font-size: 0.92rem;
    line-height: 1.35;
}


.booking-game-season {
    display: inline-flex;
    align-items: center;

    padding: 0.3rem 0.55rem;

    border:
        1px solid
        rgba(255, 255, 255, 0.16);

    border-radius: 999px;

    background:
        rgba(255, 255, 255, 0.08);

    color:
        rgba(255, 255, 255, 0.90);

    font-size: 0.8rem;
    line-height: 1.2;
}


.booking-game-availability {
    margin-bottom: 0.5rem;
}


@media (max-width: 767px) {

    .booking-game-subtitle {
        font-size: 0.95rem;
    }


    .booking-game-meta {
        align-items: flex-start;
        flex-direction: column;
    }


    .booking-game-comment {
        font-size: 0.86rem;
    }
}


/* =========================================================
   QUIZNIGHT — REAL DATA ALIGNMENT V1
   ========================================================= */

/*
 * Боевые названия, комментарии и сезонные бейджи
 * могут иметь разную высоту.
 *
 * Нижняя часть каждой desktop-карточки всегда
 * остаётся на одной линии.
 */

@media (min-width: 768px) {

    .game-card-front {
        display: flex !important;
        flex-direction: column !important;
    }


    .game-spacer {
        flex: 1 1 auto !important;
        min-height: 0.35rem !important;
    }


    .game-info {
        margin-top: auto !important;
    }


    .game-actions {
        margin-top: 0.65rem !important;
    }


    .game-actions .btn {
        min-height: 52px !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }


    /*
     * Расписание:
     *
     * дата | название / локация | сезон / места / стрелка
     *
     * В отличие от fr + auto ширина правого блока
     * больше не двигает начало названия квиза.
     */

    .schedule-game-row {
        grid-template-columns:
            190px
            minmax(0, 1fr)
            300px
            !important;

        column-gap: 1.25rem !important;
    }


    .schedule-game-main {
        min-width: 0 !important;
    }


    .schedule-game-status {
        min-width: 0 !important;
    }

}


/*
 * Ноутбуки / более узкий desktop.
 */

@media (min-width: 768px) and (max-width: 1199px) {

    .schedule-game-row {
        grid-template-columns:
            150px
            minmax(0, 1fr)
            250px
            !important;

        column-gap: 1rem !important;
    }

}

/* =========================================================
   QUIZNIGHT — REAL DATA ALIGNMENT V2
   Убираем влияние comment и фиксируем вертикальный ритм карточек
   ========================================================= */

.game-card-front {
    display: flex;
    flex-direction: column;
}

.game-card-content,
.game-card-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

.game-card-title,
.game-title {
    min-height: 5.2rem;
}

.game-card-location,
.game-location {
    min-height: 4.6rem;
}

.game-card-meta,
.game-meta {
    min-height: 2.4rem;
}

.game-card-actions,
.game-actions {
    margin-top: auto;
    display: grid;
    gap: 0.9rem;
}

.game-card-comment {
    display: none !important;
}

/* =========================================================
   QUIZNIGHT — SCHEDULE LEFT ALIGN POLISH
   ========================================================= */

.schedule-game-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 1.2rem;
}

.schedule-game-primary {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.schedule-game-title {
    margin: 0;
}

.schedule-game-comment {
    display: none !important;
}

.schedule-game-season {
    flex: 0 0 auto;
    align-self: center;
}

@media (max-width: 767px) {
    .schedule-game-main {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .schedule-game-primary {
        gap: 0.55rem;
    }
}

/* =========================================================
   QUIZNIGHT — HIDE PUBLIC GAME COMMENT
   Комментарий остаётся в БД/боте, но не ломает карточки сайта
   ========================================================= */

.game-event-comment {
    display: none !important;
}

/* =========================================================
   QUIZNIGHT — DESKTOP CARD BOTTOM DOCK V1
   Нижняя часть карточки больше не зависит от высоты контента
   ========================================================= */

@media (min-width: 768px) {

    .game-card-front {
        position: relative !important;

        /* место под info + две кнопки */
        padding-bottom: 190px !important;
    }


    /*
     * Старый spacer больше ничего не решает:
     * нижний блок теперь физически закреплён.
     */
    .game-spacer {
        display: none !important;
    }


    /*
     * Название максимум две строки.
     * Одинаковая зона во всех карточках.
     */
    .game-title {
        min-height: 3.75rem !important;
        max-height: 3.75rem !important;

        overflow: hidden !important;

        display: -webkit-box !important;
        -webkit-box-orient: vertical !important;
        -webkit-line-clamp: 2 !important;
    }


    /*
     * Локация тоже получает одинаковую зону.
     */
    .game-location {
        min-height: 3.15rem !important;
        max-height: 3.15rem !important;

        overflow: hidden !important;

        display: -webkit-box !important;
        -webkit-box-orient: vertical !important;
        -webkit-line-clamp: 2 !important;
    }


    /*
     * Информация о местах и цене:
     * одна координата во всех карточках.
     */
    .game-info {
        position: absolute !important;

        left: 24px !important;
        right: 24px !important;
        bottom: 151px !important;

        margin: 0 !important;
    }


    /*
     * Обе кнопки — жёстко у нижнего края.
     */
    .game-actions {
        position: absolute !important;

        left: 24px !important;
        right: 24px !important;
        bottom: 24px !important;

        margin: 0 !important;

        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }


    .game-actions .btn {
        width: 100% !important;

        min-height: 52px !important;
        height: 52px !important;

        margin: 0 !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

}
