/* NewKirillSocial5 – társas játékok, HU */

:root {
    --bg-deep: #061a0f;
    --bg-green: #0a3d21;
    --bg-panel: #0d4a2a;
    --accent: #fbc02d;
    --accent-dim: #c9a227;
    --text: #f4f7f2;
    --text-muted: rgba(244, 247, 242, 0.72);
    --light-section: #f0f4ef;
    --light-text: #1a2e1f;
    --radius: 18px;
    --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    --glow: 0 0 32px rgba(251, 192, 45, 0.25);
    --font: 'Outfit', system-ui, sans-serif;
    --max: 1200px;
    --header-h: 72px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font);
    color: var(--text);
    background: var(--bg-deep);
    line-height: 1.55;
    overflow-x: hidden;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition:
        color 0.2s,
        transform 0.2s;
}

a:hover {
    color: #ffe082;
}

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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --- Felső: figyelmeztetés + fejléc együtt ragad --- */
.header-stack {
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

/* --- Figyelmeztető sáv (nagyon feltűnő) --- */
.warning-strip {
    background: linear-gradient(90deg, #b71c1c 0%, #c62828 50%, #b71c1c 100%);
    color: #fff;
    text-align: center;
    padding: 14px 16px;
    font-weight: 700;
    font-size: clamp(0.95rem, 2.5vw, 1.15rem);
    letter-spacing: 0.02em;
    border-bottom: 3px solid #ffc107;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.warning-strip svg {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
}

.warning-strip span strong {
    color: #ffeb3b;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
}

/* --- Háttér: lebegő fénykörök (CSS) --- */
.bg-orbits {
    pointer-events: none;
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.bg-orbits .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    animation: float-orb 18s ease-in-out infinite;
}

.bg-orbits .orb:nth-child(1) {
    width: min(420px, 80vw);
    height: min(420px, 80vw);
    background: radial-gradient(
        circle,
        rgba(251, 192, 45, 0.45) 0%,
        transparent 70%
    );
    top: 8%;
    left: -5%;
    animation-delay: 0s;
}

.bg-orbits .orb:nth-child(2) {
    width: min(360px, 70vw);
    height: min(360px, 70vw);
    background: radial-gradient(
        circle,
        rgba(46, 160, 100, 0.5) 0%,
        transparent 70%
    );
    bottom: 15%;
    right: -8%;
    animation-delay: -6s;
}

.bg-orbits .orb:nth-child(3) {
    width: min(280px, 55vw);
    height: min(280px, 55vw);
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.12) 0%,
        transparent 70%
    );
    top: 45%;
    left: 40%;
    animation-delay: -12s;
}

@keyframes float-orb {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(3%, -4%) scale(1.04);
    }
    66% {
        transform: translate(-2%, 3%) scale(0.98);
    }
}

/* --- Fejléc --- */
.site-header {
    background: linear-gradient(
        180deg,
        rgba(6, 26, 15, 0.96) 0%,
        rgba(6, 26, 15, 0.88) 100%
    );
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(251, 192, 45, 0.15);
}

.site-header__inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 20px;
    min-height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    font-weight: 700;
    font-size: 1.1rem;
}

.logo-link img {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    box-shadow: var(--glow);
}

.nav-main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px 16px;
}

.nav-main a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 6px 4px;
    border-bottom: 2px solid transparent;
}

.nav-main a:hover,
.nav-main a.is-active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.btn-nav {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(
        180deg,
        var(--accent) 0%,
        var(--accent-dim) 100%
    );
    color: #1a1505 !important;
    font-weight: 700;
    border-radius: 999px;
    border: none;
    box-shadow: 0 4px 20px rgba(251, 192, 45, 0.35);
    border-bottom: 2px solid transparent !important;
    transition:
        transform 0.2s,
        box-shadow 0.2s;
}

.btn-nav:hover {
    transform: scale(1.04);
    box-shadow: 0 6px 28px rgba(251, 192, 45, 0.5);
    color: #1a1505 !important;
}

/* --- Hero --- */
.page-wrap {
    position: relative;
    z-index: 1;
}

.hero {
    position: relative;
    min-height: min(88vh, 900px);
    display: flex;
    align-items: center;
    padding: 60px 20px 80px;
    overflow: hidden;
}

.hero__fx {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__fx canvas#hero-blob-canvas,
.hero__fx canvas#particles-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.hero__fx canvas#particles-canvas {
    z-index: 1;
}

.hero__grad {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(
        180deg,
        rgba(6, 26, 15, 0.75) 0%,
        rgba(10, 61, 33, 0.55) 40%,
        rgba(6, 26, 15, 0.92) 100%
    );
    pointer-events: none;
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: var(--max);
    margin: 0 auto;
    width: 100%;
}

.hero h1 {
    font-size: clamp(2.2rem, 5.5vw, 3.5rem);
    line-height: 1.1;
    margin: 0 0 20px;
    max-width: 16ch;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}

.hero h1 .hl {
    color: var(--accent);
    display: block;
    margin-top: 0.15em;
}

.hero__lead {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-muted);
    max-width: 40ch;
    margin-bottom: 32px;
}

.hero__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.btn-primary {
    display: inline-block;
    padding: 16px 32px;
    background: linear-gradient(180deg, var(--accent) 0%, #e6a800 100%);
    color: #1a1505;
    font-weight: 800;
    border-radius: 999px;
    font-size: 1.05rem;
    box-shadow: var(--shadow), var(--glow);
    transition:
        transform 0.25s,
        box-shadow 0.25s;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    color: #1a1505;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.btn-ghost {
    display: inline-block;
    padding: 16px 28px;
    color: var(--text);
    font-weight: 600;
    border: 2px solid rgba(251, 192, 45, 0.5);
    border-radius: 999px;
    transition:
        background 0.2s,
        border-color 0.2s;
}

.btn-ghost:hover {
    background: rgba(251, 192, 45, 0.12);
    border-color: var(--accent);
    color: var(--text);
}

/* --- Szekciók --- */
section {
    position: relative;
    z-index: 1;
}

.section-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 72px 20px;
}

.section-title {
    font-size: clamp(1.75rem, 3.5vw, 2.4rem);
    margin: 0 0 12px;
    text-align: center;
}

.section-sub {
    text-align: center;
    color: var(--text-muted);
    max-width: 60ch;
    margin: 0 auto 48px;
}

.section--light {
    background: var(--light-section);
    color: var(--light-text);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.section--light .section-sub {
    color: rgba(26, 46, 31, 0.75);
}

.section--light .section-title {
    color: #0a3d21;
}

/* stat grid */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 24px;
    text-align: center;
}

.stat-item {
    padding: 24px 16px;
    background: rgba(13, 74, 42, 0.45);
    border: 1px solid rgba(251, 192, 45, 0.12);
    border-radius: var(--radius);
    transition:
        transform 0.3s,
        border-color 0.3s;
}

.section--light .stat-item {
    background: #fff;
    border-color: rgba(10, 61, 33, 0.12);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.stat-item:hover {
    transform: translateY(-4px);
    border-color: rgba(251, 192, 45, 0.35);
}

.stat-item__icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    background: linear-gradient(
        135deg,
        var(--accent) 0%,
        var(--accent-dim) 100%
    );
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1505;
    font-size: 1.25rem;
    font-weight: 800;
}

.stat-item b {
    display: block;
    font-size: 1.5rem;
    color: var(--accent);
}

.section--light .stat-item b {
    color: #0a3d21;
}

/* steps */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
    counter-reset: step;
}

.step {
    position: relative;
    padding: 28px 24px 24px 24px;
    background: var(--bg-panel);
    border-radius: var(--radius);
    border: 1px solid rgba(251, 192, 45, 0.12);
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.step:hover {
    transform: translateY(-6px);
}

.section--light .step {
    background: #fff;
    color: var(--light-text);
}

.step::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    top: -16px;
    left: 24px;
    width: 40px;
    height: 40px;
    background: var(--accent);
    color: #1a1505;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--glow);
}

.step h3 {
    margin: 8px 0 10px;
    font-size: 1.15rem;
}

/* game card */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 400px));
    gap: 28px;
    justify-content: center;
    width: 100%;
}

.game-card {
    display: block;
    background: var(--bg-panel);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(251, 192, 45, 0.18);
    box-shadow: var(--shadow);
    transition:
        transform 0.35s,
        box-shadow 0.35s,
        border-color 0.35s;
    color: inherit;
}

.game-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    border-color: rgba(251, 192, 45, 0.45);
}

.game-card__img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
    width: 100%;
}

.game-card__body {
    padding: 22px 20px 24px;
}

.game-card h3 {
    margin: 0 0 8px;
    font-size: 1.25rem;
    color: var(--text);
}

.section--light .game-card {
    background: #fff;
}

.section--light .game-card h3 {
    color: #0a3d21;
}

.game-card p {
    margin: 0 0 16px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.section--light .game-card p {
    color: rgba(26, 46, 31, 0.75);
}

.game-card__go {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--accent);
}

.game-card:hover .game-card__go {
    color: #ffe082;
}

/* FAQ */
.faq-list {
    max-width: 720px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid rgba(251, 192, 45, 0.15);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    background: rgba(13, 74, 42, 0.35);
}

.section--light .faq-item {
    background: #fff;
    border-color: rgba(10, 61, 33, 0.12);
}

.faq-item summary {
    padding: 18px 20px;
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    position: relative;
    padding-right: 44px;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
    color: var(--accent);
    transition: transform 0.2s;
}

.faq-item[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-item .faq-a {
    padding: 0 20px 18px;
    color: var(--text-muted);
}

.section--light .faq-a {
    color: rgba(26, 46, 31, 0.8);
}

/* CTA block */
.cta-block {
    text-align: center;
    padding: 48px 24px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #0a3d21 0%, #0d4a2a 50%, #0a2e18 100%);
    border: 1px solid rgba(251, 192, 45, 0.25);
    box-shadow: var(--shadow);
}

.cta-block h2 {
    margin: 0 0 8px;
}

.cta-block p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Inner pages */
.page-hero {
    padding: 64px 20px 32px;
    text-align: center;
    max-width: var(--max);
    margin: 0 auto;
}

.page-hero h1 {
    font-size: clamp(1.85rem, 4vw, 2.5rem);
    margin: 0 0 12px;
    color: var(--text);
}

.page-hero p {
    color: var(--text-muted);
    max-width: 56ch;
    margin: 0 auto;
}

.legal {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px 80px;
    color: var(--text-muted);
}

.legal h2 {
    color: var(--text);
    font-size: 1.25rem;
    margin: 2rem 0 0.75rem;
}

.legal p,
.legal li {
    margin: 0 0 0.9rem;
}

.legal ul {
    padding-left: 1.25rem;
}

.section--light .legal {
    color: rgba(26, 46, 31, 0.88);
}

.section--light .legal h2 {
    color: #0a3d21;
}

/* Reveal */
.reveal,
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity 0.65s ease,
        transform 0.65s ease;
}

.reveal.is-visible,
.reveal-stagger > *.is-visible {
    opacity: 1;
    transform: none;
}

.reveal-stagger > *:nth-child(1) {
    transition-delay: 0.05s;
}
.reveal-stagger > *:nth-child(2) {
    transition-delay: 0.1s;
}
.reveal-stagger > *:nth-child(3) {
    transition-delay: 0.15s;
}
.reveal-stagger > *:nth-child(4) {
    transition-delay: 0.2s;
}
.reveal-stagger > *:nth-child(5) {
    transition-delay: 0.25s;
}

/* Footer */
.site-footer {
    position: relative;
    z-index: 2;
    background: #040f0a;
    color: var(--text-muted);
    padding: 56px 20px 32px;
    border-top: 1px solid rgba(251, 192, 45, 0.12);
}

.site-footer a {
    color: rgba(244, 247, 242, 0.85);
}

.site-footer a:hover {
    color: var(--accent);
}

.footer-grid {
    max-width: var(--max);
    margin: 0 auto 40px;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 40px;
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .nav-main {
        width: 100%;
        justify-content: center;
    }
    .site-header__inner {
        flex-wrap: wrap;
    }
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-brand .logo-link {
    font-size: 1.05rem;
}

.footer-col h3 {
    color: var(--accent);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 16px;
}

.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-col li {
    margin-bottom: 10px;
}

/* Responsible play row */
.responsible {
    max-width: var(--max);
    margin: 0 auto 32px;
    padding: 20px 22px;
    background: rgba(13, 74, 42, 0.4);
    border: 1px solid rgba(251, 192, 45, 0.15);
    border-radius: var(--radius);
}

.responsible p {
    margin: 0 0 16px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.responsible-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    align-items: center;
}

.responsible-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    border: 1px solid rgba(251, 192, 45, 0.15);
    transition:
        background 0.2s,
        border-color 0.2s;
}

.responsible-links a:hover {
    background: rgba(251, 192, 45, 0.1);
    border-color: rgba(251, 192, 45, 0.35);
    color: var(--accent);
}

.responsible-links svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    opacity: 0.9;
}

.footer-bottom {
    max-width: var(--max);
    margin: 0 auto;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
    font-size: 0.88rem;
}

/* Hero inner page: smaller FX */
.hero--sub {
    min-height: 42vh;
    padding: 40px 20px 50px;
}

.hero--sub .hero__grad {
    opacity: 0.95;
}

/* További „szikrák” a fő hős szekcióban (CSS) */
.hero-sparkles {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background-image:
        radial-gradient(
            1.5px 1.5px at 8% 15%,
            rgba(255, 255, 255, 0.7),
            transparent 60%
        ),
        radial-gradient(
            1.5px 1.5px at 22% 42%,
            rgba(255, 247, 214, 0.9),
            transparent 60%
        ),
        radial-gradient(
            1.2px 1.2px at 55% 8%,
            rgba(255, 255, 255, 0.55),
            transparent 60%
        ),
        radial-gradient(
            1.4px 1.4px at 78% 28%,
            rgba(251, 192, 45, 0.65),
            transparent 60%
        ),
        radial-gradient(
            1.2px 1.2px at 38% 68%,
            rgba(255, 255, 255, 0.5),
            transparent 60%
        ),
        radial-gradient(
            1.5px 1.5px at 88% 55%,
            rgba(255, 255, 255, 0.75),
            transparent 60%
        ),
        radial-gradient(
            1.1px 1.1px at 15% 82%,
            rgba(255, 247, 214, 0.6),
            transparent 60%
        ),
        radial-gradient(
            1.3px 1.3px at 65% 75%,
            rgba(251, 192, 45, 0.5),
            transparent 60%
        ),
        radial-gradient(
            1.2px 1.2px at 48% 38%,
            rgba(255, 255, 255, 0.45),
            transparent 60%
        ),
        radial-gradient(
            1.4px 1.4px at 92% 88%,
            rgba(255, 255, 255, 0.65),
            transparent 60%
        );
    background-size: 100% 100%;
    animation: twinkle 5s ease-in-out infinite;
}

@keyframes twinkle {
    0%,
    100% {
        opacity: 0.5;
    }
    50% {
        opacity: 0.9;
    }
}
