/* RCRP.hu2 — professzionális dizájn rendszer */
:root {
    --bg: #08080a;
    --bg-raised: #0f0f13;
    --bg-card: #141419;
    --bg-card-hover: #1a1a21;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);
    --text: #f8f8fa;
    --text-secondary: #a0a0ab;
    --text-muted: #6b6b76;
    --accent: #e11d2e;
    --accent-hover: #ff3344;
    --accent-soft: rgba(225, 29, 46, 0.12);
    --accent-glow: rgba(225, 29, 46, 0.35);
    --success: #22c55e;
    --warning: #f59e0b;
    --discord: #5865f2;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
    --header-h: 72px;
    --font: 'Plus Jakarta Sans', system-ui, sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, monospace;
    --container: 1200px;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.preview-bar {
    position: sticky;
    top: 0;
    z-index: 200;
    padding: 8px 16px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #fde68a;
    background: #422006;
    border-bottom: 1px solid #92400e;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color 0.15s var(--ease); }
a:hover { color: var(--accent-hover); }

.ambient {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(225, 29, 46, 0.15), transparent 60%),
        radial-gradient(ellipse 40% 30% at 100% 50%, rgba(225, 29, 46, 0.06), transparent 50%),
        radial-gradient(ellipse 30% 25% at 0% 80%, rgba(88, 101, 242, 0.05), transparent 50%);
}

.container {
    width: min(var(--container), 100% - 40px);
    margin-inline: auto;
}

.container-narrow { max-width: 720px; }

/* ── Header ── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-h);
    background: rgba(8, 8, 10, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    height: 100%;
    width: min(var(--container), 100% - 32px);
    margin-inline: auto;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    text-decoration: none;
    flex-shrink: 0;
}

.brand img { border-radius: 10px; }

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-text strong { font-size: 15px; font-weight: 800; letter-spacing: 0.02em; }
.brand-text small { font-size: 11px; color: var(--text-muted); font-weight: 500; }

.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    justify-content: center;
}

.site-nav a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.site-nav a:hover {
    background: var(--bg-card);
    color: var(--text);
}

.site-nav a i { font-size: 13px; opacity: 0.7; }

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: auto;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.header-drawer {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 16px;
    min-width: 0;
}

body.nav-open {
    overflow: hidden;
    touch-action: none;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 10px;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s var(--ease);
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    border-color: rgba(0,0,0,0.2);
    box-shadow: 0 4px 16px var(--accent-glow);
}

.btn-primary:hover {
    background: var(--accent-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 24px var(--accent-glow);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border-color: var(--border-strong);
}

.btn-outline:hover {
    background: var(--bg-card);
    border-color: var(--text-muted);
    color: var(--text);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border-color: transparent;
}

.btn-ghost:hover { background: var(--bg-card); color: var(--text); }

.btn-lg { padding: 14px 24px; font-size: 15px; border-radius: 12px; }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s;
}

.btn-icon:hover { border-color: var(--accent); color: var(--accent); }

/* ── Hero ── */
.hero {
    padding: 64px 0 80px;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 48px;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--accent-soft);
    border: 1px solid rgba(225, 29, 46, 0.25);
    color: #ff8a95;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.85); }
}

.hero h1 {
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.text-gradient {
    background: linear-gradient(135deg, #fff 30%, #ff6b7a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.lead {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 540px;
    margin-bottom: 24px;
}

.hero-live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 28px;
}

.hero-live i { color: var(--success); font-size: 12px; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hero-panel-inner {
    position: relative;
    overflow: hidden;
    min-height: 340px;
    padding: 0;
    background: linear-gradient(180deg, #18181f 0%, #0d0d11 55%, #0a0a0e 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}

.hero-panel-inner.is-loading .hero-players-num {
    animation: shimmer 1.2s ease-in-out infinite;
}

.hero-panel-inner.is-offline {
    border-color: rgba(239, 68, 68, 0.25);
}

.hero-panel-chart {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 42%;
    min-height: 110px;
    z-index: 0;
    pointer-events: none;
}

.hero-panel-chart::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(13, 13, 17, 0.85) 0%, transparent 45%);
    z-index: 1;
}

.hero-panel-chart canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

.hero-panel-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 340px;
    padding: 22px 20px 18px;
}

.hero-panel-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.hero-panel-brand img {
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(225, 29, 46, 0.2);
}

.hero-panel-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 0.04em;
}

.hero-panel-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 0 20px;
}

.hero-panel-meta {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding-bottom: 8px;
}

.hero-panel-inner::before {
    display: none;
}

.hero-panel-head {
    display: none;
}

.hero-players {
    display: block;
}

.hero-players-num {
    font-size: clamp(3rem, 10vw, 4.25rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    color: #fff;
    text-shadow: 0 2px 24px rgba(225, 29, 46, 0.15);
}

.hero-players-sep,
.hero-players-max {
    display: none;
}

.hero-players-label {
    margin-top: 8px;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.hero-connect {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    text-decoration: none;
    box-shadow: 0 8px 28px var(--accent-glow);
}

.hero-connect:hover {
    color: #fff;
}

/* ── Badges ── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.badge-loading { background: var(--bg-raised); color: var(--text-muted); }
.badge-online { background: rgba(34, 197, 94, 0.15); color: #4ade80; border: 1px solid rgba(34, 197, 94, 0.3); }
.badge-offline { background: rgba(239, 68, 68, 0.12); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.25); }

/* ── Sections ── */
.section { padding: 80px 0; }
.section-dark { background: var(--bg-raised); border-block: 1px solid var(--border); }
.section-alt { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-raised) 100%); }

.section-head {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 48px;
}

.section-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}

.section-head h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.section-head p { color: var(--text-secondary); font-size: 16px; }

/* ── Bento grid ── */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.bento-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: border-color 0.2s, transform 0.2s;
}

.bento-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-2px);
}

.bento-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--accent-soft);
    display: grid;
    place-items: center;
    color: var(--accent);
    font-size: 18px;
    margin-bottom: 16px;
}

.bento-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.bento-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.55; }

.bento-wide { grid-column: span 3; }
.bento-highlight {
    background: linear-gradient(135deg, rgba(225,29,46,0.15) 0%, var(--bg-card) 60%);
    border-color: rgba(225, 29, 46, 0.2);
}

.bento-highlight-content h3 { font-size: 20px; margin-bottom: 8px; }
.bento-highlight-content p { margin-bottom: 20px; }
.bento-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Dashboard / Stats ── */
.dashboard {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 28px;
    box-shadow: var(--shadow);
}

.dashboard.is-loading { opacity: 0.85; }
.dashboard.is-loading .dash-num { animation: shimmer 1.2s ease-in-out infinite; }

@keyframes shimmer {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

.dashboard-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    padding: 24px;
    margin: -8px -8px 20px;
    background: linear-gradient(135deg, var(--accent-soft) 0%, transparent 70%);
    border: 1px solid rgba(225, 29, 46, 0.15);
    border-radius: var(--radius-lg);
}

.dash-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}

.dash-players {
    display: flex;
    align-items: baseline;
    gap: 4px;
    font-variant-numeric: tabular-nums;
}

.dash-num { font-size: clamp(2.5rem, 6vw, 3.5rem); font-weight: 800; line-height: 1; }
.dash-sep { font-size: 1.75rem; color: var(--text-muted); }
.dash-max { font-size: 1.75rem; font-weight: 700; color: var(--text-secondary); }
.dash-caption { font-size: 13px; color: var(--text-muted); margin-top: 6px; display: block; }

.dash-side { text-align: right; }
.dash-server {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 12px;
    max-width: 280px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dash-server i { color: var(--accent); margin-right: 6px; }
.dash-updated { text-align: center; font-size: 12px; color: var(--text-muted); margin-bottom: 20px; }

.dash-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.dash-card {
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
}

.dash-card-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.dash-card-value { display: block; font-size: 2rem; font-weight: 800; }
.dash-card-sub { display: block; font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.dash-card-mono {
    display: block;
    font-family: var(--mono);
    font-size: 14px;
    margin-bottom: 12px;
    word-break: break-all;
}

.dash-card-record { border-color: rgba(96, 165, 250, 0.2); }
.dash-card-record .dash-card-label { color: #93c5fd; }

.dash-chart {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.dash-chart-head {
    padding: 14px 18px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
    background: var(--bg-raised);
}

.dash-chart-head i { margin-right: 8px; color: var(--accent); }

.chart-wrap {
    position: relative;
    padding: 16px;
    height: 220px;
}

.chart-wrap canvas { width: 100% !important; height: 100% !important; }

.chart-empty {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 14px;
    color: var(--text-muted);
    padding: 20px;
    text-align: center;
}

.chart-tooltip {
    position: absolute;
    pointer-events: none;
    padding: 6px 10px;
    border-radius: 6px;
    background: rgba(10, 10, 12, 0.95);
    border: 1px solid var(--border-strong);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transform: translate3d(-50%, calc(-100% - 10px), 0);
    transition: opacity 0.12s;
    z-index: 5;
}

.dashboard.is-offline .dashboard-top {
    border-color: rgba(239, 68, 68, 0.2);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, transparent 70%);
}

/* ── Gallery ── */
.gallery-main {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-card);
    aspect-ratio: 16 / 9;
}

.gallery-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s var(--ease);
    pointer-events: none;
}

.gallery-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.gallery-slide img,
.gallery-slide .compare {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
}

.gallery-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    background: var(--accent);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
}

.gallery-caption p { font-size: 15px; font-weight: 500; }

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    background: rgba(8, 8, 10, 0.75);
    backdrop-filter: blur(8px);
    color: var(--text);
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: all 0.15s;
    z-index: 2;
}

.gallery-nav:hover { background: var(--accent); border-color: var(--accent); }
.gallery-prev { left: 16px; }
.gallery-next { right: 16px; }

.gallery-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
}

.gallery-thumb {
    flex-shrink: 0;
    width: 100px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    padding: 0;
    cursor: pointer;
    opacity: 0.55;
    transition: opacity 0.2s, border-color 0.2s;
    background: none;
}

.gallery-thumb.is-active { opacity: 1; border-color: var(--accent); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.gallery-empty {
    text-align: center;
    padding: 48px;
    color: var(--text-muted);
    border: 1px dashed var(--border);
    border-radius: var(--radius-lg);
}

/* Compare slider */
.compare {
    position: relative;
    overflow: hidden;
    --pos: 50%;
    height: 100%;
}

.compare-base, .compare-top {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.compare-top {
    clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}

.compare-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--pos);
    width: 4px;
    margin-left: -2px;
    background: #fff;
    border: none;
    cursor: ew-resize;
    z-index: 3;
    box-shadow: 0 0 12px rgba(0,0,0,0.5);
}

.compare-handle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--accent);
}

.compare--dragging { cursor: ew-resize; }

/* ── Join + FAQ ── */
.join-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.join-steps h2, .join-side h2 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.steps-list {
    list-style: none;
    counter-reset: step;
}

.steps-list li {
    position: relative;
    padding: 0 0 24px 48px;
    counter-increment: step;
}

.steps-list li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 800;
    font-size: 14px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(225, 29, 46, 0.3);
}

.steps-list li strong { display: block; font-size: 15px; margin-bottom: 4px; }
.steps-list li p { font-size: 14px; color: var(--text-secondary); }

.accordion { display: flex; flex-direction: column; gap: 8px; }

.accordion-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.accordion-item summary {
    padding: 16px 18px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.15s;
}

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

.accordion-item summary::after {
    content: '+';
    font-size: 18px;
    color: var(--accent);
    font-weight: 400;
    transition: transform 0.2s;
}

.accordion-item[open] summary::after { transform: rotate(45deg); }
.accordion-item summary:hover { background: var(--bg-card-hover); }

.accordion-body {
    padding: 0 18px 16px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.accordion-body p + p { margin-top: 8px; }

/* ── Partner carousel ── */
.partner-carousel {
    position: relative;
    max-width: 700px;
    margin-inline: auto;
}

.partner-carousel-glow {
    position: absolute;
    inset: -20px -30px;
    background: radial-gradient(ellipse at 50% 50%, rgba(225, 29, 46, 0.18) 0%, transparent 70%);
    filter: blur(20px);
    pointer-events: none;
    z-index: 0;
    animation: partnerPulse 4s ease-in-out infinite;
}

@keyframes partnerPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.04); }
}

.partner-carousel-viewport {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    perspective: 1200px;
}

.partner-carousel-viewport::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-xl);
    padding: 1px;
    background: linear-gradient(135deg, rgba(225, 29, 46, 0.6), transparent 40%, transparent 60%, rgba(225, 29, 46, 0.35));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 3;
    animation: partnerBorderSpin 6s linear infinite;
}

@keyframes partnerBorderSpin {
    0% { filter: hue-rotate(0deg); opacity: 0.7; }
    50% { opacity: 1; }
    100% { filter: hue-rotate(0deg); opacity: 0.7; }
}

.partner-card {
    grid-row: 1;
    grid-column: 1;
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 28px;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 28px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(48px) scale(0.94) rotateY(-12deg);
    transform-origin: center center;
    filter: blur(10px);
    transition:
        opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.65s cubic-bezier(0.4, 0, 0.2, 1),
        filter 0.65s cubic-bezier(0.4, 0, 0.2, 1),
        visibility 0.65s;
    pointer-events: none;
    z-index: 0;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.partner-card.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) scale(1) rotateY(0);
    filter: blur(0);
    pointer-events: auto;
    z-index: 2;
}

.partner-card.is-leaving {
    opacity: 0;
    visibility: visible;
    transform: translateX(-48px) scale(0.94) rotateY(12deg);
    filter: blur(10px);
    pointer-events: none;
    z-index: 1;
}

.partner-carousel-controls {
    position: relative;
    z-index: 2;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.partner-carousel-dots {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.partner-dot {
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.partner-dot:hover {
    border-color: var(--border-strong);
    color: var(--text-secondary);
}

.partner-dot.is-active {
    border-color: var(--accent);
    color: #fff;
    background: var(--accent-soft);
    box-shadow: 0 0 20px rgba(225, 29, 46, 0.25);
}

.partner-carousel-progress {
    width: 100%;
    max-width: 280px;
    height: 3px;
    border-radius: 999px;
    background: var(--border);
    overflow: hidden;
}

.partner-carousel-progress span {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent), #ff6b7a);
    box-shadow: 0 0 12px rgba(225, 29, 46, 0.5);
}

.partner-carousel.is-playing .partner-carousel-progress span {
    animation: partnerProgress 6s linear forwards;
}

@keyframes partnerProgress {
    from { width: 0; }
    to { width: 100%; }
}

.partner-logo img { border-radius: var(--radius); object-fit: cover; aspect-ratio: 1; }
.partner-body h3 { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.partner-body p { font-size: 14px; color: var(--text-secondary); margin-bottom: 16px; }

.partner-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.partner-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s;
}

.partner-links a:hover {
    border-color: var(--accent);
    color: var(--text);
    background: var(--accent-soft);
}

/* ── Rules page ── */
.page-hero { padding-top: 48px; }

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 32px;
    text-decoration: none;
}

.back-link:hover { color: var(--accent); }

.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 32px;
}

.rules-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    color: var(--text);
    text-decoration: none;
    transition: all 0.2s;
}

.rules-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.3);
    color: var(--text);
}

.rules-card i { font-size: 28px; color: var(--accent); }
.rules-card h3 { font-size: 17px; font-weight: 700; }
.rules-card p { font-size: 14px; color: var(--text-secondary); }

/* ── Footer ── */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 48px 0 24px;
    background: var(--bg-raised);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 32px;
    width: min(var(--container), 100% - 40px);
    margin: 0 auto 32px;
}

.footer-brand img { margin-bottom: 12px; border-radius: 8px; }
.footer-brand p { font-weight: 700; font-size: 15px; }
.footer-tagline { font-size: 13px; color: var(--text-muted); }

.footer-col h4 {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.footer-col a {
    display: block;
    color: var(--text-secondary);
    font-size: 14px;
    padding: 4px 0;
    text-decoration: none;
}

.footer-col a:hover { color: var(--text); }

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    width: min(var(--container), 100% - 40px);
    margin-inline: auto;
}

.footer-bottom p { font-size: 12px; color: var(--text-muted); }

/* ── Toast, FAB, Scroll ── */
.toast {
    position: fixed;
    top: calc(var(--header-h) + 16px);
    left: 50%;
    transform: translateX(-50%) translateY(-12px);
    padding: 12px 20px;
    border-radius: 10px;
    background: #166534;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    box-shadow: var(--shadow);
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s, transform 0.25s;
}

.toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.scroll-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    background: var(--bg-card);
    color: var(--text);
    cursor: pointer;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.2s;
    z-index: 50;
    display: grid;
    place-items: center;
}

.scroll-top.is-visible { opacity: 1; transform: translateY(0); }
.scroll-top:hover { border-color: var(--accent); color: var(--accent); }

.fab-stack {
    position: fixed;
    right: 24px;
    bottom: 80px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 50;
}

.fab {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 22px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.fab i {
    font-style: normal;
    line-height: 1;
    display: block;
}

.fab i.fa-brands {
    font-family: "Font Awesome 6 Brands";
    font-weight: 400;
}

.fab i.fa-solid {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

.fab:hover {
    transform: scale(1.08);
    color: #fff;
}

.fab-discord {
    background: var(--discord);
    box-shadow: 0 8px 24px rgba(88, 101, 242, 0.4);
}

.fab-discord:hover {
    box-shadow: 0 12px 32px rgba(88, 101, 242, 0.55);
}

.fab-tiktok {
    background: #000;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.fab-tiktok:hover {
    box-shadow: 0 12px 32px rgba(254, 44, 85, 0.35);
}

.fab-youtube {
    background: #ff0000;
    box-shadow: 0 8px 24px rgba(255, 0, 0, 0.35);
}

.fab-youtube:hover {
    box-shadow: 0 12px 32px rgba(255, 0, 0, 0.5);
}

.fab-facebook {
    background: #1877f2;
    box-shadow: 0 8px 24px rgba(24, 119, 242, 0.4);
}

.fab-facebook:hover {
    box-shadow: 0 12px 32px rgba(24, 119, 242, 0.55);
}

/* ── Lightbox ── */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 300;
    background: rgba(4, 4, 6, 0.94);
    backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 60px 20px;
}

.lightbox[hidden] { display: none !important; }

.lightbox-figure img {
    max-width: min(96vw, 1200px);
    max-height: 78vh;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-strong);
    box-shadow: var(--shadow);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
    font-size: 24px;
    cursor: pointer;
}

.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
    cursor: pointer;
    display: grid;
    place-items: center;
}

.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

.lightbox-counter {
    position: absolute;
    bottom: 24px;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    font-size: 13px;
    font-weight: 600;
}

.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; gap: 32px; }
    .hero-panel { max-width: 440px; width: 100%; margin-inline: auto; }
    .bento-grid { grid-template-columns: 1fr 1fr; }
    .bento-wide { grid-column: span 2; }
    .join-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 768px) {
    :root {
        --header-h: 60px;
    }

    body {
        overflow-x: hidden;
    }

    html {
        scroll-padding-top: calc(var(--header-h) + 16px);
    }

    .container {
        width: min(var(--container), 100% - 32px);
    }

    .header-inner {
        width: min(var(--container), 100% - 24px);
        gap: 12px;
    }

    .brand img {
        width: 40px;
        height: 40px;
    }

    .brand-text small { display: none; }
    .brand-text strong { font-size: 14px; }

    .nav-toggle {
        display: flex;
        order: 2;
        margin-left: auto;
        z-index: 101;
    }

    .header-drawer {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        bottom: 0;
        flex: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 20px 20px calc(24px + env(safe-area-inset-bottom, 0px));
        background: rgba(8, 8, 10, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid var(--border);
        transform: translateX(100%);
        transition: transform 0.3s var(--ease);
        z-index: 100;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .header-drawer.is-open {
        transform: translateX(0);
    }

    .site-nav {
        position: static;
        flex: 1;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 0;
        gap: 6px;
        transform: none;
        background: transparent;
    }

    .site-nav a {
        width: 100%;
        padding: 14px 16px;
        font-size: 16px;
        border-radius: var(--radius);
        min-height: 48px;
    }

    .site-nav a i {
        width: 20px;
        text-align: center;
        opacity: 1;
    }

    .header-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding-top: 16px;
        margin-top: 8px;
        border-top: 1px solid var(--border);
        flex-shrink: 0;
    }

    .header-actions .btn {
        width: 100%;
        justify-content: center;
        min-height: 48px;
        padding: 12px 18px;
    }

    .header-actions .btn span {
        display: inline;
    }

    .hero {
        padding: 32px 0 48px;
    }

    .hero-grid {
        gap: 28px;
    }

    .hero h1 {
        font-size: clamp(1.65rem, 7vw, 2.25rem);
        margin-bottom: 12px;
    }

    .lead {
        font-size: 15px;
        line-height: 1.55;
        margin-bottom: 20px;
    }

    .hero-live {
        width: 100%;
        margin-bottom: 20px;
        font-size: 12px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .hero-cta .btn {
        width: 100%;
        white-space: normal;
        text-align: center;
    }

    .hero-panel {
        max-width: none;
    }

    .hero-panel-inner {
        min-height: 300px;
    }

    .hero-panel-content {
        min-height: 300px;
        padding: 18px 16px 14px;
    }

    .hero-players-num {
        font-size: clamp(2.5rem, 14vw, 3.5rem);
    }

    .hero-connect {
        margin-top: 10px;
        min-height: 52px;
    }

    .section {
        padding: 48px 0;
    }

    .section-head {
        margin-bottom: 32px;
    }

    .section-head h2 {
        font-size: 1.5rem;
    }

    .partner-carousel {
        max-width: none;
    }

    .partner-carousel-glow {
        inset: -12px -8px;
    }

    .partner-card {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 22px 18px;
        gap: 18px;
    }

    .partner-logo {
        display: flex;
        justify-content: center;
    }

    .partner-logo img {
        width: 96px;
        height: 96px;
        margin-inline: auto;
    }

    .partner-body h3 {
        font-size: 18px;
    }

    .partner-links {
        justify-content: center;
    }

    .partner-links a {
        flex: 1 1 calc(50% - 4px);
        justify-content: center;
        min-width: 0;
    }

    .partner-dot {
        padding: 10px 14px;
        font-size: 11px;
    }

    .join-steps h2,
    .join-side h2 {
        font-size: 1.45rem;
    }

    .steps-list li {
        padding-left: 44px;
        padding-bottom: 20px;
    }

    .steps-list li p {
        word-break: break-word;
    }

    .accordion-item summary {
        padding: 14px 16px;
        font-size: 15px;
        gap: 12px;
    }

    .bento-grid { grid-template-columns: 1fr; }
    .bento-wide { grid-column: span 1; }

    .dash-cards { grid-template-columns: 1fr; }
    .dashboard-top { flex-direction: column; }
    .dash-side { text-align: left; }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        width: min(var(--container), 100% - 32px);
    }

    .footer-brand {
        text-align: center;
    }

    .footer-brand img {
        margin-inline: auto;
    }

    .footer-col {
        text-align: center;
    }

    .footer-col a {
        padding: 6px 0;
    }

    .fab-stack {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        bottom: calc(12px + env(safe-area-inset-bottom, 0px));
        flex-direction: row;
        gap: 8px;
    }

    .fab {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

    .scroll-top {
        right: 14px;
        bottom: calc(68px + env(safe-area-inset-bottom, 0px));
        width: 40px;
        height: 40px;
    }

    .toast {
        left: 16px;
        right: 16px;
        transform: translateY(-12px);
        text-align: center;
    }

    .toast.is-visible {
        transform: translateY(0);
    }

    .rules-grid {
        grid-template-columns: 1fr;
    }

    .page-hero {
        padding-top: 28px;
    }
}

@media (max-width: 480px) {
    .container {
        width: min(var(--container), 100% - 24px);
    }

    .header-inner {
        width: min(var(--container), 100% - 20px);
    }

    .brand-text {
        display: none;
    }

    .partner-links a {
        flex: 1 1 100%;
    }

    .partner-dot {
        padding: 8px 12px;
    }

    .btn-lg {
        padding: 13px 18px;
        font-size: 14px;
    }
}

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

/* ── Jogi oldalak (ÁSZF, adatvédelem) ── */
.legal-page {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 0 48px;
    text-align: left;
}

.legal-page h1 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.legal-page-date {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.legal-meta {
    margin: 20px 0 28px;
    padding: 18px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    font-size: 13px;
    color: var(--text-secondary);
}

.legal-meta dl {
    display: grid;
    grid-template-columns: minmax(140px, 34%) 1fr;
    gap: 8px 16px;
    margin: 0;
}

.legal-meta dt { font-weight: 600; color: var(--text); }
.legal-meta dd { margin: 0; }
.legal-meta a { color: var(--accent); }

.legal-toc {
    margin: 24px 0 32px;
    padding: 20px 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg-raised);
}

.legal-toc h2 {
    font-size: 13px !important;
    margin: 0 0 12px !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.legal-toc ol {
    margin: 0;
    padding-left: 20px;
    columns: 2;
    column-gap: 28px;
}

.legal-toc li { margin-bottom: 6px; font-size: 13px; break-inside: avoid; }
.legal-toc a { color: var(--text-secondary); text-decoration: none; }
.legal-toc a:hover { color: var(--accent); }

.legal-section {
    margin-top: 28px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.legal-section h2 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
}

.legal-section p,
.legal-section li {
    font-size: 14px;
    line-height: 1.65;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.legal-section ol.legal-list {
    margin: 8px 0 12px 22px;
}

.legal-section ol.legal-list li { margin-bottom: 6px; }

.legal-notice {
    margin: 16px 0;
    padding: 14px 16px;
    border-left: 3px solid var(--accent);
    background: var(--accent-soft);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-size: 13px;
    color: var(--text-secondary);
}

.legal-related {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.legal-related ul { margin: 12px 0 0 20px; }
.legal-related li { margin-bottom: 6px; font-size: 14px; }

@media (max-width: 640px) {
    .legal-meta dl { grid-template-columns: 1fr; }
    .legal-toc ol { columns: 1; }
}
