@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&display=swap');

/* =========================================================
   DESIGN TOKENS
   ========================================================= */
:root {
    --pink: #e91e90;
    --pink-light: #ff5eaf;
    --pink-dark: #a0136a;
    --pink-deep: #8e0b58;
    --purple: #a855f7;
    --discord: #5865F2;
    --discord-light: #6978ff;
    --discord-dark: #3b44b0;

    --bg: #0d0d0d;
    --surface: #141418;
    --surface-2: #1b1b21;
    --border: #2a2a2a;
    --text: #ffffff;
    --text-muted: #a0a0a0;
    --text-soft: #c9c9d1;

    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 20px;
    --container: 1240px;

    /* Apple Fluid Interface Physics */
    --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring-snappy: cubic-bezier(0.32, 0.72, 0, 1);
    --ease-press: cubic-bezier(0.2, 0, 0, 1);
    --nav-height: 84px;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 24px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    touch-action: pan-y;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--bg);
    color: var(--text);
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    touch-action: pan-y;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

:focus-visible {
    outline: 3px solid var(--pink-light);
    outline-offset: 3px;
}

.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;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-top: var(--nav-height, 84px);
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(3px);
    transform: scale(1.02);
}

.hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.3) 40%, rgba(13, 13, 13, 0.85) 85%),
                linear-gradient(to bottom, transparent 60%, rgba(13, 13, 13, 0.95) 95%, #0d0d0d 100%);
}

.hero__particles {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}

/* =========================================================
   NAVBAR (Apple Floating Translucent Chrome)
   ========================================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    width: 100%;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background 0.35s var(--ease-spring),
                border-color 0.35s var(--ease-spring),
                box-shadow 0.35s var(--ease-spring),
                backdrop-filter 0.35s var(--ease-spring),
                -webkit-backdrop-filter 0.35s var(--ease-spring);
}

.navbar.is-scrolled {
    background: rgba(13, 13, 17, 0.78);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.navbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
    height: 84px;
}

.navbar__left {
    display: flex;
    align-items: center;
    gap: 22px;
}

.navbar__links {
    display: flex;
    align-items: center;
    gap: 26px;
}

.navbar__links a {
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #ffffff;
    transition: color 0.2s ease, transform 0.15s var(--ease-spring);
    white-space: nowrap;
    touch-action: manipulation;
}

.navbar__links a:hover {
    color: var(--pink);
}

.navbar__links a:active {
    transform: scale(0.96);
    transition-duration: 80ms;
}

.navbar__right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.navbar__link {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #ffffff;
    transition: color 0.2s ease, transform 0.15s var(--ease-spring);
    white-space: nowrap;
    cursor: pointer;
    touch-action: manipulation;
}

.navbar__link:hover {
    color: var(--pink);
}

.navbar__link:active {
    transform: scale(0.96);
    transition-duration: 80ms;
}

.navbar__link-icon {
    width: 20px;
    height: 20px;
    vertical-align: middle;
}

.navbar__btn--discord {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(to bottom, var(--discord-light), var(--discord));
    box-shadow: 0 6px 0 var(--discord-dark), 0 10px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.15s var(--ease-spring), box-shadow 0.15s var(--ease-spring);
    cursor: pointer;
    touch-action: manipulation;
}

.navbar__btn--discord img {
    width: 26px;
    height: auto;
    filter: brightness(0) invert(1);
    transition: transform 0.15s var(--ease-spring);
}

.navbar__btn--discord:hover {
    transform: translateY(2px);
    box-shadow: 0 4px 0 var(--discord-dark), 0 6px 7px rgba(0, 0, 0, 0.2);
}

.navbar__btn--discord:active {
    transform: translateY(6px) scale(0.96);
    box-shadow: 0 0 0 var(--discord-dark), 0 2px 3px rgba(0, 0, 0, 0.2);
    transition-duration: 80ms;
}

.navbar__separator {
    width: 2px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 1px;
}

.navbar__hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 46px;
    height: 46px;
    padding: 11px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-top: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 10px;
    cursor: pointer;
    touch-action: manipulation;
    transition: background 0.2s ease, transform 0.15s var(--ease-spring), border-color 0.2s ease;
}

.navbar__hamburger:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.3);
}

.navbar__hamburger:active {
    transform: scale(0.92);
    transition-duration: 80ms;
}

.navbar__hamburger span {
    display: block;
    width: 100%;
    height: 2.5px;
    background: #ffffff;
    border-radius: 2px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.navbar__hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.navbar__hamburger.open span:nth-child(2) {
    opacity: 0;
}

.navbar__hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ---------- Language dropdown ---------- */
.lang-dropdown {
    position: relative;
}

.navbar__btn--lang {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 16px;
    height: 44px;
    border-radius: 10px;
    font-size: 1.05rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transition: background 0.2s ease, transform 0.15s var(--ease-spring), border-color 0.2s ease;
    touch-action: manipulation;
}

.navbar__btn--lang:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
}

.navbar__btn--lang:active {
    transform: translateY(0) scale(0.96);
    transition-duration: 80ms;
}

.lang-dropdown__arrow {
    font-size: 0.75rem;
    transition: transform 0.25s var(--ease-spring);
}

.lang-dropdown.open .lang-dropdown__arrow {
    transform: rotate(180deg);
}

.lang-dropdown__menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    background: rgba(20, 20, 26, 0.88);
    -webkit-backdrop-filter: blur(28px) saturate(190%);
    backdrop-filter: blur(28px) saturate(190%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 14px;
    min-width: 185px;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: scale(0.96) translateY(-8px);
    transition: opacity 0.25s var(--ease-spring),
                transform 0.25s var(--ease-spring),
                visibility 0.25s var(--ease-spring);
    z-index: 100;
    overflow: hidden;
    padding: 6px;
}

.lang-dropdown.open .lang-dropdown__menu {
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateY(0);
}

.lang-dropdown__header {
    padding: 10px 14px 8px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 4px;
}

.lang-dropdown__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: background-color 0.15s ease, transform 0.1s ease;
    cursor: pointer;
    touch-action: manipulation;
}

.lang-dropdown__item:hover {
    background-color: rgba(255, 94, 175, 0.12);
}

.lang-dropdown__item:active {
    transform: scale(0.97);
    background-color: rgba(255, 94, 175, 0.2);
    transition-duration: 60ms;
}

.lang-label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-dot {
    display: none;
    width: 6px;
    height: 6px;
    background-color: var(--pink-light);
    border-radius: 50%;
    flex-shrink: 0;
}

.lang-code {
    font-size: 11px;
    opacity: 0.6;
    font-weight: 600;
}

.lang-flag {
    margin-left: auto;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 3px;
}

/* Active state – highlight + pink dot */
.lang-dropdown__item.is-active {
    background-color: rgba(255, 94, 175, 0.18);
    font-weight: 700;
}

.lang-dropdown__item.is-active .lang-dot {
    display: inline-block;
}

.lang-dropdown__item.is-active .lang-code {
    opacity: 1;
    color: var(--pink-light);
}

/* ---------- Mobile menu (Apple Glass Sheet) ---------- */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(10, 10, 14, 0.88);
    -webkit-backdrop-filter: blur(32px) saturate(190%);
    backdrop-filter: blur(32px) saturate(190%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s var(--ease-spring), visibility 0.35s var(--ease-spring);
    overflow-y: auto;
    padding: 84px 16px 32px;
}

.mobile-menu.open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
    max-width: 360px;
}

.mobile-menu__content a {
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.2s ease, transform 0.15s var(--ease-spring);
    touch-action: manipulation;
    padding: 6px 16px;
    border-radius: 12px;
}

.mobile-menu__content a:hover {
    color: var(--pink-light);
    transform: scale(1.03);
}

.mobile-menu__content a:active {
    transform: scale(0.95);
    transition-duration: 80ms;
}

.mobile-menu__divider {
    width: 60px;
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
    margin: 4px 0;
}

/* =========================================================
   HERO CONTENT
   ========================================================= */
.hero__content {
    position: relative;
    z-index: 5;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px 100px;
    gap: 18px;
}

.hero__title {
    margin: 0;
    line-height: 0;
}

.hero__logo {
    width: 480px;
    max-width: 85vw;
    height: auto;
    filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.8));
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.hero__text {
    max-width: 800px;
    line-height: 1.55;
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-soft);
    letter-spacing: -0.01em;
}

.hero__cta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 10px;
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
}

.btn-hero {
    border-radius: 12px;
    border: none;
    color: #ffffff;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 6px 0 rgba(0, 0, 0, 0.4), 0 12px 20px rgba(0, 0, 0, 0.3);
    font-weight: 800;
    font-family: 'Montserrat', sans-serif;
    padding: 0.85rem 2rem;
    font-size: 1.25rem;
    letter-spacing: 0.5px;
    width: 22rem;
    position: relative;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s var(--ease-spring), box-shadow 0.15s var(--ease-spring);
    touch-action: manipulation;
}

.btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 0 rgba(0, 0, 0, 0.4), 0 16px 24px rgba(0, 0, 0, 0.35);
}

.btn-hero:active {
    transform: translateY(4px) scale(0.98);
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.4), 0 6px 10px rgba(0, 0, 0, 0.25);
    transition-duration: 80ms;
}

.btn-play {
    background: linear-gradient(to bottom, var(--pink-light), var(--pink));
    border-bottom: 4px solid var(--pink-dark);
}

.btn-play:active {
    border-bottom-width: 2px;
}

.btn-play__text-hover {
    display: none;
}

.btn-hero:hover .btn-play__text-default,
.btn-play.touch-ready .btn-play__text-default {
    display: none;
}

.btn-hero:hover .btn-play__text-hover,
.btn-play.touch-ready .btn-play__text-hover {
    display: block;
}

.btn-play--copied {
    background: linear-gradient(135deg, #2ecc40, #27ae60) !important;
    border-bottom: 4px solid #1e8429 !important;
}

.online-badge {
    position: absolute;
    top: -16px;
    right: -16px;
    background: #22c55e;
    color: #052e16;
    border-radius: 8px;
    padding: 4px 8px;
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    pointer-events: none;
    transform-origin: center;
}

.online-badge.offline {
    background: #ef4444;
    color: #450a0a;
}

.online-badge__icon {
    width: 16px;
    height: 16px;
}

.btn-discord {
    background: linear-gradient(to bottom, var(--discord-light), var(--discord));
    border-bottom: 4px solid var(--discord-dark);
    gap: 10px;
}

.btn-discord:active {
    border-bottom-width: 2px;
}

.btn-discord__icon {
    width: 24px;
    height: auto;
    filter: brightness(0) invert(1);
}

.hero__fade {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 380px;
    background: linear-gradient(to bottom, 
        rgba(13, 13, 13, 0) 0%, 
        rgba(13, 13, 13, 0.08) 22%, 
        rgba(13, 13, 13, 0.28) 45%, 
        rgba(13, 13, 13, 0.65) 70%, 
        rgba(13, 13, 13, 0.92) 88%, 
        #0d0d0d 100%
    );
    z-index: 4;
    pointer-events: none;
}

.hero__fade::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1100px;
    height: 180px;
    background: radial-gradient(ellipse at 50% 100%, rgba(233, 30, 144, 0.12) 0%, rgba(168, 85, 247, 0.05) 50%, transparent 80%);
    pointer-events: none;
}

/* =========================================================
   SHARED SECTION UI
   ========================================================= */
.section {
    position: relative;
    padding: 110px 24px;
}

.section--tight {
    padding-top: 40px;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
}

.section-head {
    margin-bottom: 48px;
}

.section-head--center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 760px;
}

.section-head--right {
    text-align: right;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 94, 175, 0.1);
    border: 1px solid rgba(255, 94, 175, 0.3);
    color: var(--pink-light);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    line-height: 1.08;
    text-transform: uppercase;
    letter-spacing: -0.025em;
}

.section-title .accent {
    background: linear-gradient(90deg, var(--pink-light), var(--purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-sub {
    margin-top: 8px;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.section-lead {
    margin-top: 18px;
    font-size: 1.08rem;
    line-height: 1.75;
    color: var(--text-soft);
}

/* 3D pink button (Apple tactile press physics) */
.btn-3d {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 26px;
    border: none;
    border-radius: 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #ffffff;
    cursor: pointer;
    background: linear-gradient(to bottom, var(--pink-light), var(--pink));
    box-shadow: 0 6px 0 var(--pink-deep), 0 10px 14px rgba(0, 0, 0, 0.35);
    transition: transform 0.15s var(--ease-spring), box-shadow 0.15s var(--ease-spring);
    white-space: nowrap;
    touch-action: manipulation;
}

.btn-3d:hover {
    transform: translateY(2px);
    box-shadow: 0 4px 0 var(--pink-deep), 0 6px 8px rgba(0, 0, 0, 0.3);
}

.btn-3d:active {
    transform: translateY(6px) scale(0.98);
    box-shadow: 0 0 0 var(--pink-deep), 0 2px 4px rgba(0, 0, 0, 0.3);
    transition-duration: 80ms;
}

.btn-3d--discord {
    background: linear-gradient(to bottom, var(--discord-light), var(--discord));
    box-shadow: 0 6px 0 var(--discord-dark), 0 10px 14px rgba(0, 0, 0, 0.35);
}

.btn-3d--discord:hover {
    transform: translateY(2px);
    box-shadow: 0 4px 0 var(--discord-dark), 0 6px 8px rgba(0, 0, 0, 0.3);
}

.btn-3d--discord:active {
    transform: translateY(6px) scale(0.98);
    box-shadow: 0 0 0 var(--discord-dark), 0 2px 4px rgba(0, 0, 0, 0.3);
    transition-duration: 80ms;
}

.btn-3d--copied {
    background: linear-gradient(135deg, #2ecc40, #27ae60) !important;
    box-shadow: 0 6px 0 #1e8429, 0 10px 14px rgba(0, 0, 0, 0.35) !important;
}

.btn-3d svg,
.btn-3d img {
    width: 18px;
    height: 18px;
}

.btn-3d img {
    filter: brightness(0) invert(1);
}

/* Glow blobs used as section decoration */
.glow {
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.18;
    pointer-events: none;
    z-index: 0;
}

.glow--pink {
    background: var(--pink);
}

.glow--purple {
    background: var(--purple);
}

.glow--center {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    max-width: 92vw;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(233, 30, 144, 0.12) 0%, rgba(168, 85, 247, 0.05) 50%, transparent 75%);
    filter: blur(80px);
    opacity: 1;
    pointer-events: none;
    z-index: 0;
}

.section > .container {
    position: relative;
    z-index: 1;
}

/* =========================================================
   ABOUT – "Czym jest ChunkCore?"
   ========================================================= */
.about {
    background: radial-gradient(ellipse at 50% 0%, rgba(233, 30, 144, 0.08) 0%, transparent 60%);
}

.about__grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 64px;
    align-items: center;
}

.about__text p + p {
    margin-top: 14px;
}

.about__text strong {
    color: #ffffff;
}

.about__list {
    margin-top: 26px;
    display: grid;
    gap: 12px;
}

.about__list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: var(--text-soft);
}

.about__list li::before {
    content: '';
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    background: var(--pink-light);
    box-shadow: 0 0 12px var(--pink-light);
    transform: rotate(45deg);
}

.about__media {
    position: relative;
}

.about__media img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 94, 175, 0.25);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 80px rgba(233, 30, 144, 0.18);
}

.about__chip {
    position: absolute;
    left: -22px;
    bottom: -22px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(20, 20, 24, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 94, 175, 0.35);
    border-radius: var(--radius);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
    animation: logoFloat 4s ease-in-out infinite;
}

.about__chip img {
    width: 38px;
    height: 38px;
    aspect-ratio: auto;
    border: none;
    border-radius: 0;
    box-shadow: none;
    object-fit: contain;
}

.about__chip strong {
    display: block;
    font-size: 1.1rem;
    font-weight: 900;
}

.about__chip span {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 600;
}



/* =========================================================
   STATS
   ========================================================= */
.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.stat-card {
    position: relative;
    height: 200px;
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    isolation: isolate;
    transition: transform 0.25s var(--ease-spring), border-color 0.25s ease, box-shadow 0.25s ease;
    touch-action: manipulation;
}

.stat-card:hover {
    transform: translateY(-3px) scale(1.01);
    border-color: rgba(255, 94, 175, 0.35);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.stat-card:active {
    transform: translateY(0) scale(0.985);
    transition-duration: 80ms;
}

.stat-card__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(5px) brightness(0.5) saturate(1.1);
    transform: scale(1.15);
    transition: filter 0.4s ease, transform 0.6s ease;
    z-index: -2;
}

.stat-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(13, 13, 13, 0.1), rgba(233, 30, 144, 0.25));
    z-index: -1;
}

.stat-card:hover .stat-card__bg {
    filter: blur(2px) brightness(0.55) saturate(1.2);
    transform: scale(1.08);
}

.stat-card__value {
    font-size: clamp(2.4rem, 4.2vw, 3.4rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.03em;
    text-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
    font-variant-numeric: tabular-nums;
}

.stat-card__label {
    margin-top: 10px;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.stat-card__live {
    position: absolute;
    top: 14px;
    right: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.45);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.stat-card__live::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: livePulse 1.8s infinite;
}

.stat-card__live.offline::before {
    background: #ef4444;
    animation: none;
}

@keyframes livePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

/* =========================================================
   JOIN – "Jak dołączyć?"
   ========================================================= */
.steps,
ol.steps,
ul.steps {
    list-style: none !important;
    list-style-type: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.step {
    list-style: none !important;
    list-style-type: none !important;
    position: relative;
    padding: 34px 28px 30px;
    background: linear-gradient(180deg, var(--surface-2), var(--surface));
    border: 1px solid var(--border);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: transform 0.25s var(--ease-spring), border-color 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden;
    touch-action: manipulation;
}

.step:hover {
    transform: translateY(-4px) scale(1.01);
    border-color: rgba(255, 94, 175, 0.4);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.step:active {
    transform: translateY(-1px) scale(0.985);
    transition-duration: 80ms;
}

.step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 94, 175, 0.5), transparent);
}

/* Watermark number in background */
.step::after {
    position: absolute;
    right: 22px;
    bottom: 8px;
    font-size: 6.8rem;
    font-weight: 900;
    line-height: 1;
    color: rgba(255, 255, 255, 0.025);
    pointer-events: none;
    user-select: none;
    font-family: 'Montserrat', sans-serif;
    transition: color 0.3s ease, transform 0.3s ease;
}

.step:nth-child(1)::after { content: '1'; }
.step:nth-child(2)::after { content: '2'; }
.step:nth-child(3)::after { content: '3'; }

.step:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 94, 175, 0.45);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
}

.step:hover::after {
    color: rgba(255, 94, 175, 0.08);
    transform: translateY(-4px);
}

.step__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.step__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255, 94, 175, 0.16), rgba(168, 85, 247, 0.08));
    border: 1px solid rgba(255, 94, 175, 0.35);
    box-shadow: 0 8px 20px rgba(233, 30, 144, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.step:hover .step__badge {
    transform: scale(1.06);
    border-color: var(--pink-light);
    box-shadow: 0 10px 25px rgba(233, 30, 144, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.step__num {
    font-size: 1.45rem;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, #ffffff 20%, var(--pink-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.5px;
}

.step__pill {
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 94, 175, 0.1);
    border: 1px solid rgba(255, 94, 175, 0.28);
    color: var(--pink-light);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: background 0.25s ease, border-color 0.25s ease;
}

.step:hover .step__pill {
    background: rgba(255, 94, 175, 0.18);
    border-color: rgba(255, 94, 175, 0.5);
}

.step h3 {
    font-size: 1.15rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.step p {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--text-muted);
}

.step p strong {
    color: var(--text-soft);
}

.step__action {
    margin-top: 20px;
}

.ip-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(255, 94, 175, 0.08);
    border: 1px dashed rgba(255, 94, 175, 0.5);
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s var(--ease-spring);
    touch-action: manipulation;
}

.ip-chip:hover {
    background: rgba(255, 94, 175, 0.16);
    border-color: var(--pink-light);
    transform: translateY(-1px);
}

.ip-chip:active {
    transform: scale(0.96);
    transition-duration: 80ms;
}

.ip-chip svg {
    width: 18px;
    height: 18px;
    color: var(--pink-light);
}

.ip-chip.is-copied {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.12);
}

/* =========================================================
   GALLERY (Apple Tactile Items)
   ========================================================= */
.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 230px;
    gap: 16px;
}

.gallery__item {
    position: relative;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: zoom-in;
    background: var(--surface);
    font-family: inherit;
    color: inherit;
    text-align: left;
    transition: transform 0.25s var(--ease-spring), border-color 0.25s ease, box-shadow 0.25s ease;
    touch-action: manipulation;
}

.gallery__item--big {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery__item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-spring);
}

.gallery__item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(13, 13, 13, 0.9));
    transition: opacity 0.3s ease;
}

.gallery__caption {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 16px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-weight: 800;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gallery__zoom {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--pink);
    box-shadow: 0 4px 0 var(--pink-deep);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.3s ease, transform 0.3s var(--ease-spring);
}

.gallery__zoom svg {
    width: 18px;
    height: 18px;
}

.gallery__item:hover {
    transform: translateY(-3px) scale(1.01);
    border-color: rgba(255, 94, 175, 0.45);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
}

.gallery__item:hover img,
.gallery__item:focus-visible img {
    transform: scale(1.07);
}

.gallery__item:hover .gallery__zoom,
.gallery__item:focus-visible .gallery__zoom {
    opacity: 1;
    transform: translateY(0);
}

.gallery__item:active {
    transform: translateY(0) scale(0.975);
    transition-duration: 80ms;
}

/* ---------- Lightbox (Apple Fluid Dialog) ---------- */
.lightbox {
    margin: auto;
    padding: 0;
    border: none;
    background: transparent;
    color: #ffffff;
    max-width: min(1200px, 92vw);
    width: 100%;
    overflow: visible;
    opacity: 0;
    transform: scale(0.94);
    filter: blur(8px);
    transition: opacity 0.35s var(--ease-spring),
                transform 0.35s var(--ease-spring),
                filter 0.35s var(--ease-spring),
                overlay 0.35s var(--ease-spring) allow-discrete,
                display 0.35s var(--ease-spring) allow-discrete;
}

.lightbox[open] {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
}

@starting-style {
    .lightbox[open] {
        opacity: 0;
        transform: scale(0.94);
        filter: blur(8px);
    }
}

.lightbox::backdrop {
    background: rgba(5, 5, 8, 0.85);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    backdrop-filter: blur(24px) saturate(180%);
}

.lightbox__figure {
    position: relative;
}

.lightbox__img {
    display: block;
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 94, 175, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    background: #000;
}

.lightbox__caption {
    margin-top: 14px;
    text-align: center;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.lightbox__btn {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 12px;
    color: #ffffff;
    cursor: pointer;
    background: linear-gradient(to bottom, var(--pink-light), var(--pink));
    box-shadow: 0 5px 0 var(--pink-deep);
    transition: transform 0.15s var(--ease-spring), box-shadow 0.15s var(--ease-spring);
    touch-action: manipulation;
}

.lightbox__btn:hover {
    transform: translateY(2px);
    box-shadow: 0 3px 0 var(--pink-deep);
}

.lightbox__btn:active {
    transform: translateY(5px) scale(0.92);
    box-shadow: 0 0 0 var(--pink-deep);
    transition-duration: 80ms;
}

.lightbox__btn svg {
    width: 22px;
    height: 22px;
}

.lightbox__btn--close {
    top: -18px;
    right: -18px;
    z-index: 2;
}

.lightbox__btn--prev,
.lightbox__btn--next {
    top: calc(50% - 40px);
}

.lightbox__btn--prev {
    left: -24px;
}

.lightbox__btn--next {
    right: -24px;
}

/* =========================================================
   NEWS (Apple Material Cards)
   ========================================================= */
.news-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.news-head__title {
    display: flex;
    align-items: center;
    gap: 18px;
}

.news-head__mascot {
    width: 64px;
    height: 64px;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(233, 30, 144, 0.45));
    animation: logoFloat 3.5s ease-in-out infinite;
}

.news {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.news-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 6px 0 #070709, 0 18px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: transform 0.25s var(--ease-spring), border-color 0.25s ease, box-shadow 0.25s ease;
    touch-action: manipulation;
}

.news-card:hover {
    transform: translateY(-4px) scale(1.01);
    border-color: rgba(255, 94, 175, 0.45);
    box-shadow: 0 8px 0 #070709, 0 24px 44px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.news-card:active {
    transform: translateY(-1px) scale(0.985);
    transition-duration: 80ms;
}

.news-card__media {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.news-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.news-card:hover .news-card__media img {
    transform: scale(1.06);
}

.news-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 12px;
    padding: 18px 20px 20px;
    background: linear-gradient(180deg, rgba(233, 30, 144, 0.08), transparent 60%);
}

.tag {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    background: var(--purple);
    color: #ffffff;
}

.tag--event {
    background: var(--pink);
}

.tag--guide {
    background: #0ea5e9;
}

.tag svg {
    width: 13px;
    height: 13px;
}

.news-card__title {
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.35;
    text-transform: uppercase;
}

.news-card__title a::after {
    /* stretched link – entire card clickable */
    content: '';
    position: absolute;
    inset: 0;
}

.news-card__excerpt {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.news-card__meta {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-soft);
}

.news-card__author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--pink-light), var(--purple));
}

/* =========================================================
   CTA BAND
   ========================================================= */
.cta-band {
    position: relative;
    overflow: hidden;
    padding: 72px 48px;
    border-radius: 28px;
    text-align: center;
    background: radial-gradient(120% 120% at 50% -10%, rgba(233, 30, 144, 0.22) 0%, rgba(168, 85, 247, 0.12) 45%, rgba(18, 18, 24, 0.96) 85%), #111116;
    border: 1px solid rgba(255, 94, 175, 0.35);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 60px rgba(233, 30, 144, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    isolation: isolate;
}

.cta-band::before {
    content: '';
    position: absolute;
    top: 0;
    left: 15%;
    right: 15%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 94, 175, 0.8), rgba(168, 85, 247, 0.8), transparent);
    z-index: 1;
}

.cta-band__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.14;
    filter: blur(2px) contrast(1.15) brightness(0.7);
    mix-blend-mode: luminosity;
    z-index: -1;
}

.cta-band__content {
    position: relative;
    z-index: 2;
    max-width: 780px;
    margin: 0 auto;
}

.cta-band__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 94, 175, 0.12);
    border: 1px solid rgba(255, 94, 175, 0.35);
    color: var(--pink-light);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.cta-band__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px #22c55e;
}

.cta-band__title {
    font-size: clamp(2rem, 3.8vw, 3rem);
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.15;
    letter-spacing: 0.5px;
    color: #ffffff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.cta-band__title .accent {
    background: linear-gradient(90deg, var(--pink-light), var(--purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.cta-band__text {
    margin: 16px auto 0;
    max-width: 620px;
    font-size: 1.08rem;
    line-height: 1.7;
    font-weight: 600;
    color: var(--text-soft);
}

.cta-band__actions {
    margin-top: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-3d--cta {
    background: linear-gradient(to bottom, var(--pink-light), var(--pink));
    box-shadow: 0 6px 0 var(--pink-deep), 0 12px 24px rgba(233, 30, 144, 0.35);
}

.btn-3d--cta:hover {
    transform: translateY(4px);
    box-shadow: 0 2px 0 var(--pink-deep), 0 4px 10px rgba(233, 30, 144, 0.3);
}

.cta-band__badges {
    margin-top: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.cta-band__sep {
    color: rgba(255, 94, 175, 0.5);
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
    position: relative;
    border-top: 1px solid var(--border);
    background: linear-gradient(180deg, #0d0d0d, #08080a);
    padding: 64px 24px 28px;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer__brand img {
    width: 170px;
    height: auto;
}

.footer__brand p {
    margin-top: 16px;
    max-width: 340px;
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-muted);
}

.footer__col h3 {
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.footer__col ul {
    display: grid;
    gap: 10px;
}

.footer__col a {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.footer__col a:hover {
    color: var(--pink-light);
}

.footer__bottom {
    margin-top: 48px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: #6b6b75;
}

/* =========================================================
   SCROLL REVEAL – see "SCROLL REVEAL (blur + rise)" at end of file
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    .hero__logo,
    .about__chip,
    .news-head__mascot {
        animation: none;
    }

    html {
        scroll-behavior: auto;
    }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (min-width: 1600px) {
    .navbar__inner {
        max-width: 1800px;
        padding: 0 56px;
    }

    .hero__logo {
        width: 420px;
    }

    .hero__text {
        font-size: 1.4rem;
        max-width: 100%;
    }
}

@media (max-width: 1199px) {
    :root {
        --nav-height: 70px;
    }

    .navbar__inner {
        padding: 0 24px;
        height: 70px;
    }

    .navbar__links a,
    .navbar__link {
        font-size: 1.1rem;
    }

    .hero__logo {
        width: 300px;
    }


    .footer__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 1023px) {
    :root {
        --nav-height: 60px;
    }

    .navbar__links {
        display: none;
    }

    .navbar__hamburger {
        display: flex;
    }

    .navbar__link,
    .navbar__separator {
        display: none;
    }

    .navbar__inner {
        height: 60px;
    }

    .hero__logo {
        width: 280px;
    }

    .hero__text {
        font-size: 1.1rem;
    }

    .btn-play,
    .btn-discord {
        width: 250px;
        font-size: 1.3rem;
        padding: 14px 28px;
    }

    .section {
        padding: 80px 20px;
    }

    .about__grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about__chip {
        left: 12px;
    }

    .stats,
    .steps,
    .news {
        grid-template-columns: 1fr 1fr;
    }

    .stats .stat-card:last-child,
    .steps .step:last-child,
    .news .news-card:last-child {
        grid-column: span 2;
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
    }

    .gallery__item--big {
        grid-column: span 2;
        grid-row: span 1;
    }

    .gallery__item:last-child {
        grid-column: span 2;
    }

    .section-head--right {
        text-align: left;
    }

    .lightbox__btn--prev {
        left: 8px;
    }

    .lightbox__btn--next {
        right: 8px;
    }

    .lightbox__btn--close {
        top: 8px;
        right: 8px;
    }
}

@media (max-width: 680px) {
    .stats,
    .steps,
    .news {
        grid-template-columns: 1fr;
    }

    .stats .stat-card:last-child,
    .news .news-card:last-child {
        grid-column: auto;
    }

    .stat-card {
        height: 160px;
    }

    .gallery {
        grid-auto-rows: 160px;
        gap: 10px;
    }

    .gallery__caption {
        font-size: 0.75rem;
        left: 12px;
        right: 12px;
        bottom: 10px;
    }

    .cta-band {
        padding: 44px 20px;
        border-radius: 20px;
    }

    .cta-band__actions {
        flex-direction: column;
        gap: 12px;
    }

    .cta-band__actions .btn-3d {
        width: 100%;
        max-width: 340px;
    }

    .cta-band__badges {
        font-size: 0.72rem;
        gap: 8px;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .news-head__mascot {
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 600px) {
    :root {
        --nav-height: 54px;
    }

    .navbar__inner {
        padding: 0 16px;
        height: 54px;
    }

    .hero__content {
        padding: 20px 16px 80px;
        gap: 14px;
    }

    .hero__logo {
        width: 200px;
    }

    .hero__text {
        font-size: 1rem;
        max-width: 100%;
    }

    .hero__cta {
        flex-direction: column;
        gap: 14px;
    }

    .btn-play,
    .btn-discord {
        width: 230px;
        font-size: 1.2rem;
        padding: 12px 20px;
    }
}

@media (max-width: 400px) {
    .hero__logo {
        width: 170px;
    }

    .btn-play,
    .btn-discord {
        width: 210px;
        font-size: 1.1rem;
    }

    .mobile-menu__content a {
        font-size: 1.5rem;
    }
}

/* =========================================================
   COOKIES
   ========================================================= */
/* adblock bypass – !important keeps the button visible under cosmetic filters */
body > #cookie-trigger,
.cookie-trigger {
    position: fixed !important;
    bottom: 24px !important;
    left: 24px !important;
    z-index: 2147483646 !important;
    width: 48px !important;
    height: 48px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    background: rgba(18, 18, 24, 0.78) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.28) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 94, 175, 0.25) !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    touch-action: manipulation;
    transition: transform 0.2s var(--ease-spring), box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease !important;
}

body > #cookie-trigger:hover,
.cookie-trigger:hover {
    background: rgba(28, 28, 38, 0.88) !important;
    border-color: var(--pink-light) !important;
    box-shadow: 0 0 20px rgba(255, 94, 175, 0.5) !important;
    transform: scale(1.08) !important;
}

body > #cookie-trigger:active,
.cookie-trigger:active {
    transform: scale(0.92) !important;
    transition-duration: 80ms !important;
}

.cookie-trigger svg {
    display: block !important;
    width: 24px !important;
    height: 24px !important;
    pointer-events: none !important;
}

/* adblock bypass */
#cc-privacy-dialog {
    position: fixed !important;
    bottom: 24px !important;
    left: 24px !important;
    top: auto !important;
    right: auto !important;
    transform: none !important;
    width: 380px !important;
    max-width: calc(100vw - 48px) !important;
    background: rgba(18, 18, 26, 0.82) !important;
    -webkit-backdrop-filter: blur(28px) saturate(180%) !important;
    backdrop-filter: blur(28px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.28) !important;
    border-radius: 20px !important;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 94, 175, 0.2) !important;
    padding: 22px !important;
    z-index: 2147483647 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transition: opacity 0.28s var(--ease-spring), transform 0.28s var(--ease-spring), visibility 0.28s !important;
}

/* adblock bypass */
#cc-privacy-dialog.cookie-banner--hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.cookie-banner__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.cookie-banner__header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cookie-banner__title-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cookie-banner__close {
    display: block;
    background: none;
    border: none;
    color: #888;
    width: 28px;
    height: 28px;
    cursor: pointer;
    padding: 0;
    font-size: 1.1rem;
    line-height: 1;
    border-radius: 8px;
    transition: color 0.15s ease, background 0.15s ease, transform 0.1s var(--ease-spring);
    touch-action: manipulation;
}

.cookie-banner__close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.cookie-banner__close:active {
    transform: scale(0.9);
    transition-duration: 80ms;
}

.cookie-banner__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 94, 175, 0.12);
    border: 1px solid rgba(255, 94, 175, 0.35);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--pink-light);
    font-size: 1.5rem;
}

.cookie-banner__title {
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.01em;
}

.cookie-banner__text {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
    font-weight: 500;
}

.cookie-banner__link {
    color: var(--pink-light);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.cookie-banner__link:hover {
    color: var(--pink);
}

.cookie-banner__actions {
    display: flex;
    gap: 12px;
    margin-top: 4px;
}

.cookie-banner__btn {
    flex: 1;
    padding: 12px 6px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: transform 0.15s var(--ease-spring), background 0.2s ease, box-shadow 0.2s ease;
    border: none;
    font-family: 'Montserrat', sans-serif;
    white-space: nowrap;
    text-align: center;
    touch-action: manipulation;
}

.cookie-banner__btn:active {
    transform: scale(0.95) !important;
    transition-duration: 80ms !important;
}

.cookie-banner__btn--secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
}

.cookie-banner__btn--secondary:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.cookie-banner__btn--primary {
    background: linear-gradient(135deg, var(--pink-light), var(--pink));
    border-top: 1px solid rgba(255, 255, 255, 0.35);
    border-bottom: 3px solid var(--pink-deep);
    color: #fff;
    box-shadow: 0 4px 14px rgba(233, 30, 144, 0.35);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.cookie-banner__btn--primary:hover {
    background: linear-gradient(135deg, #ff71b7, #d51781);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(233, 30, 144, 0.45);
}

/* =========================================================
   SUBPAGES (Regulamin itd.)
   ========================================================= */
.page-body {
    background-color: var(--bg);
    background-image: radial-gradient(circle at top, rgba(233, 30, 144, 0.1) 0%, transparent 40%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 120px 24px 80px 24px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.page-box {
    background: rgba(18, 18, 18, 0.85);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    width: 100%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
}

.page-box__header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 30px 40px;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
}

.page-box__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 94, 175, 0.1);
    border: 1px solid rgba(255, 94, 175, 0.3);
    border-radius: 12px;
    color: var(--pink-light);
    font-size: 1.5rem;
}

.page-box__title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    letter-spacing: 0.5px;
}

.page-box__body {
    padding: 40px;
    font-family: 'Montserrat', sans-serif;
    color: #b3b3b3;
    line-height: 1.8;
}

.page-box__body h2 {
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 700;
    margin: 32px 0 16px 0;
    letter-spacing: 0.5px;
}

.page-box__body h2:first-child {
    margin-top: 0;
}

.page-box__body p {
    margin-bottom: 12px;
}

.page-box__body ul {
    list-style: disc;
    padding-left: 22px;
    margin-bottom: 12px;
}

@media (max-width: 768px) {
    .page-content {
        padding: 100px 16px 60px 16px;
    }

    .page-box__header {
        padding: 24px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .page-box__body {
        padding: 24px;
    }

    .page-box__title {
        font-size: 1.25rem;
    }
}

/* =========================================================
   MOBILE-FIRST SAFEGUARDS (no zoom / no horizontal scroll,
   44px touch targets, iOS-safe form fields)
   ========================================================= */
img, video, svg, canvas, iframe, table, pre {
    max-width: 100%;
}

img, video {
    height: auto;
}

table {
    display: block;
    overflow-x: auto;
    border-collapse: collapse;
}

pre, code {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.glow {
    max-width: 100vw;
}

input, textarea, select {
    font-size: 16px;
    max-width: 100%;
}

@media (pointer: coarse), (max-width: 1023px) {
    a, button, [role="button"], summary, label,
    input[type="button"], input[type="submit"], select {
        touch-action: manipulation;
    }

    button, [role="button"], input[type="button"], input[type="submit"], select,
    .btn-3d, .navbar__hamburger, .navbar__btn--lang, .navbar__btn--discord,
    .lang-dropdown__item {
        min-width: 44px;
        min-height: 44px;
    }

    .footer__col a, .page-box a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }

    .footer__col li {
        margin-bottom: 2px;
    }
}

@media (max-width: 600px) {
    #cc-privacy-dialog {
        left: 12px !important;
        right: 12px !important;
        bottom: 12px !important;
        width: auto !important;
        max-width: calc(100vw - 24px) !important;
    }

    #cc-privacy-dialog button {
        min-height: 44px !important;
    }
}
/* Prevent grid/flex children from collapsing or overflowing */
.steps, .stats, .news, .about__grid, .footer__grid {
    min-width: 0;
}
.steps > *, .stats > *, .news > *, .about__grid > *, .footer__grid > *, .hero__content > * {
    min-width: 0;
}
.mobile-menu {
    overflow-y: auto;
    padding: 80px 16px 32px;
}
.mobile-menu__content a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
}
@media (max-width: 400px) {
    .mobile-menu__content a {
        font-size: 1.5rem;
        letter-spacing: 3px;
    }
}
@media (max-width: 680px) {
    .steps, .stats, .news {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* =========================================================
   MOBILE STEP PICKER (pill switcher for "How to join")
   ========================================================= */
.steps-tabs {
    display: none;
}

@media (max-width: 680px) {
    .steps-tabs {
        --tabs-w: min(100%, 320px);
        position: relative;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        align-items: stretch;
        width: var(--tabs-w);
        margin: 0 auto 24px;
        padding: 4px;
        border-radius: 9999px;
        background: rgba(20, 20, 28, 0.75);
        -webkit-backdrop-filter: blur(24px) saturate(180%);
        backdrop-filter: blur(24px) saturate(180%);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-top: 1px solid rgba(255, 255, 255, 0.22);
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
        overflow: hidden;
    }

    .steps-tabs input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

    .steps-tabs label {
        position: relative;
        z-index: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        cursor: pointer;
        font-family: 'Montserrat', sans-serif;
        font-weight: 800;
        font-size: 1rem;
        letter-spacing: 0.5px;
        color: var(--text-muted);
        transition: color 0.18s ease, transform 0.12s var(--ease-spring);
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    .steps-tabs label:active {
        transform: scale(0.92);
        transition-duration: 80ms;
    }

    .steps-tabs label:has(input:checked) {
        color: #fff;
    }

    .steps-tabs label:has(input:focus-visible) {
        outline: 3px solid var(--pink-light);
        outline-offset: -3px;
        border-radius: 9999px;
    }

    .steps-tabs__selection {
        position: absolute;
        z-index: 0;
        top: 4px;
        bottom: 4px;
        left: 4px;
        width: calc((100% - 8px) / 3);
        border-radius: 9999px;
        background: linear-gradient(135deg, var(--pink-light), var(--pink) 55%, var(--purple));
        border-top: 1px solid rgba(255, 255, 255, 0.35);
        box-shadow: 0 4px 18px rgba(233, 30, 144, 0.5);
        transition: transform 0.38s var(--ease-spring);
    }

    .steps-tabs:has(label:nth-of-type(2) input:checked) .steps-tabs__selection {
        transform: translateX(100%);
    }

    .steps-tabs:has(label:nth-of-type(3) input:checked) .steps-tabs__selection {
        transform: translateX(200%);
    }

    /* show only the selected step */
    .steps-tabs + .steps .step {
        display: none;
        animation: none;
    }

    .steps-tabs:has(label:nth-of-type(1) input:checked) + .steps .step:nth-child(1),
    .steps-tabs:has(label:nth-of-type(2) input:checked) + .steps .step:nth-child(2),
    .steps-tabs:has(label:nth-of-type(3) input:checked) + .steps .step:nth-child(3) {
        display: block;
        animation: stepIn 0.35s var(--ease-spring) both;
    }

    .steps-tabs + .steps .step:last-child {
        grid-column: auto;
    }
}

@keyframes stepIn {
    from { opacity: 0; transform: translateY(10px) scale(0.98); }
    to { opacity: 1; transform: none; }
}




.step__top {
    justify-content: flex-start;
}

.step__action .btn-3d {
    display: inline-flex;
    width: auto;
    padding: 10px 22px;
    font-size: 0.95rem;
}

/* =========================================================
   SCROLL REVEAL (blur + rise, staggered)
   Hidden state only applies when JS runs and motion is allowed,
   so the page stays fully visible without JS / with reduced motion.
   ========================================================= */
:root {
    --reveal-blur: 8px;
    --reveal-shift: 24px;
    --reveal-dur: 0.75s;
    --reveal-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 680px) {
    :root {
        --reveal-blur: 5px;
        --reveal-shift: 18px;
    }
}

@media (prefers-reduced-motion: no-preference) and (scripting: enabled) {
    .reveal:not(.is-visible) {
        opacity: 0;
        filter: blur(var(--reveal-blur));
        transform: translate3d(0, var(--reveal-shift), 0);
        will-change: transform, opacity, filter;
    }

    .reveal.is-visible {
        opacity: 1;
        filter: blur(0);
        transform: translate3d(0, 0, 0);
        transition:
            opacity var(--reveal-dur) var(--reveal-ease),
            filter var(--reveal-dur) var(--reveal-ease),
            transform var(--reveal-dur) var(--reveal-ease);
        transition-delay: var(--reveal-delay, 0ms);
        will-change: transform, opacity, filter;
    }
}

/* On mobile the step picker handles its own transition */
@media (max-width: 680px) {
    .steps-tabs + .steps .step.reveal {
        opacity: 1;
        filter: none;
        transform: none;
        will-change: auto;
    }
}
/* =========================================================
   GLOW FIX – soft radial gradients instead of blurred boxes.
   No hard edges against the hero fade, no spill into
   neighbouring sections, no filter:blur (cheaper on mobile).
   ========================================================= */
.section {
    overflow: clip;
}

.about {
    background: none;
}

.glow {
    width: 640px;
    height: 640px;
    max-width: 100vw;
    border-radius: 0;
    filter: none;
    opacity: 1;
}

.glow--pink {
    background: radial-gradient(closest-side, rgba(233, 30, 144, 0.16), rgba(233, 30, 144, 0.06) 55%, transparent 100%);
    bottom: 0 !important;
}

.glow--purple {
    background: radial-gradient(closest-side, rgba(168, 85, 247, 0.18), rgba(168, 85, 247, 0.06) 55%, transparent 100%);
    top: 0 !important;
}

.glow--center {
    top: 0;
    width: 1000px;
    max-width: 100vw;
    height: 520px;
    border-radius: 0;
    background: radial-gradient(closest-side, rgba(233, 30, 144, 0.13), rgba(168, 85, 247, 0.06) 55%, transparent 100%);
    filter: none;
}

@media (max-width: 680px) {
    .glow {
        width: 420px;
        height: 420px;
    }

    .glow--center {
        height: 380px;
    }
}
/* =========================================================
   ACCESSIBILITY & USER PREFERENCES (Apple Standards)
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1 !important;
        filter: none !important;
        transform: none !important;
    }
}

@media (prefers-reduced-transparency: reduce) {
    .navbar.is-scrolled,
    .lang-dropdown__menu,
    .mobile-menu,
    .steps-tabs,
    #cc-privacy-dialog,
    .cookie-trigger,
    .lightbox::backdrop {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .navbar.is-scrolled {
        background: #0d0d12 !important;
    }

    .lang-dropdown__menu {
        background: #14141a !important;
    }

    .mobile-menu {
        background: #0a0a0e !important;
    }

    .steps-tabs {
        background: #14141a !important;
    }

    #cc-privacy-dialog {
        background: #121218 !important;
    }

    .cookie-trigger {
        background: #121218 !important;
    }
}

@media (prefers-contrast: more) {
    :root {
        --border: rgba(255, 255, 255, 0.35);
        --text-muted: #e0e0e0;
    }

    .navbar.is-scrolled {
        border-bottom-color: rgba(255, 255, 255, 0.4);
    }

    .stat-card,
    .step,
    .news-card,
    .gallery__item,
    .cta-band {
        border-color: rgba(255, 255, 255, 0.4) !important;
    }
}
