/* =====================================================================
   FormulaB135 — Glass 2.0 / Cyberpunk theme (motyw zloty)
   Jeden wspolny plik motywu. Kazda sekcja jest scoped pod klase <body>,
   zeby strony nie wplywaly na siebie nawzajem:
     .login-cyber / .signup-cyber  — logowanie, rejestracja, reset hasla
     .index-cyber                  — strona glowna (landing)
   Strony spoza tych klas (log.css / login.css / style.css itd.) nietkniete.
   ===================================================================== */

@property --sc-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

@keyframes scGridDrift { to { background-position: 46px 46px, 46px 46px; } }
@keyframes scSpin      { to { --sc-angle: 360deg; } }
@keyframes scPulseDot  { 50% { opacity: .35; transform: scale(.7); } }
@keyframes scRise {
    from { opacity: 0; transform: translateY(24px); filter: blur(6px); }
    to   { opacity: 1; transform: none;             filter: blur(0); }
}
@keyframes scFlicker {
    0%, 100% { opacity: 1; }
    92%      { opacity: 1; }
    93%      { opacity: .6; }
    94%      { opacity: 1; }
}

.signup-cyber,
.login-cyber {
    --sc-bg: #0a0704;
    --sc-cyan: #ffc73d;
    --sc-magenta: #ff8c1a;
    --sc-violet: #c8821e;
    --sc-text: #f0e7d4;
    --sc-muted: #9a8c70;
    --sc-line: rgba(255, 199, 61, .14);

    background: var(--sc-bg) !important;
    background-image:
        radial-gradient(900px 520px at 88% -8%, rgba(255, 140, 26, .20), transparent 60%),
        radial-gradient(820px 600px at 4% 4%, rgba(255, 199, 61, .18), transparent 55%),
        radial-gradient(700px 700px at 50% 115%, rgba(200, 130, 30, .16), transparent 60%) !important;
    color: var(--sc-text);
}

/* #blurred-image-container zawiera zdjecia z inline background-image -
   inline style ma wyzsza specyficznosc niz zwykla klasa, wiec trzeba je
   ukryc calkowicie zeby motyw byl spojny zamiast realistycznego zdjecia w tle */
.signup-cyber #blurred-image-container,
.login-cyber #blurred-image-container {
    display: none !important;
}

.signup-cyber::before,
.login-cyber::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(var(--sc-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--sc-line) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: radial-gradient(circle at 50% 20%, #000 0%, transparent 78%);
    -webkit-mask-image: radial-gradient(circle at 50% 20%, #000 0%, transparent 78%);
    animation: scGridDrift 22s linear infinite;
    pointer-events: none;
}

/* ---------------------------------------------------------------- topbar */
.signup-cyber #navigation,
.login-cyber #navigation {
    background: rgba(6, 10, 18, .55) !important;
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border-bottom: 1px solid var(--sc-line) !important;
}

.signup-cyber .nav-link,
.login-cyber .nav-link {
    color: var(--sc-text) !important;
    transition: color .2s ease, text-shadow .2s ease;
}

.signup-cyber .nav-link:hover,
.login-cyber .nav-link:hover {
    color: var(--sc-cyan) !important;
    text-shadow: 0 0 10px rgba(255, 199, 61, .6);
}

.signup-cyber .btn-outline-light,
.login-cyber .btn-outline-light {
    border: 1px solid var(--sc-cyan) !important;
    color: var(--sc-cyan) !important;
    background: transparent !important;
    box-shadow: 0 0 12px rgba(255, 199, 61, .25) inset;
}

.signup-cyber .btn-outline-light:hover,
.login-cyber .btn-outline-light:hover {
    background: rgba(255, 199, 61, .12) !important;
    box-shadow: 0 0 16px rgba(255, 199, 61, .45);
}

.signup-cyber .btn-warning,
.login-cyber .btn-warning {
    background: linear-gradient(135deg, var(--sc-magenta), var(--sc-violet)) !important;
    border: none !important;
    color: #1a1204 !important;
    box-shadow: 0 0 18px rgba(255, 140, 26, .45);
}

/* ---------------------------------------------------------------- card glass */
.signup-cyber .formularz,
.login-cyber .formularz {
    animation: scRise .6s ease both;
    background: rgba(8, 10, 16, .82) !important;
    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    border: 1px solid var(--sc-line) !important;
    border-radius: 22px !important;
    box-shadow:
        0 0 0 1px rgba(255, 199, 61, .06),
        0 25px 60px -20px rgba(0, 0, 0, .85),
        0 0 40px -10px rgba(255, 199, 61, .15) !important;
    position: relative;
    /* NIE overflow:hidden - #panel (checkboxy regulaminu w signup) rozwija
       sie w dol przez jQuery slideToggle i byl obcinany razem z ramka ::before */
}

.signup-cyber .formularz::before,
.login-cyber .formularz::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 22px;
    padding: 1px;
    background: conic-gradient(from var(--sc-angle), var(--sc-cyan), var(--sc-magenta), var(--sc-violet), var(--sc-cyan));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: .55;
    animation: scSpin 6s linear infinite;
    pointer-events: none;
}

.signup-cyber .formularz h2,
.login-cyber .formularz h2 {
    color: var(--sc-text) !important;
    text-shadow: 0 0 18px rgba(255, 199, 61, .55);
    letter-spacing: .5px;
}

.signup-cyber .formularz h5,
.login-cyber .formularz h5 {
    color: var(--sc-muted) !important;
}

.signup-cyber .bx-x-circle,
.login-cyber .bx-x-circle {
    color: var(--sc-muted) !important;
    transition: color .2s ease, transform .2s ease;
}

.signup-cyber .bx-x-circle:hover,
.login-cyber .bx-x-circle:hover {
    color: var(--sc-magenta) !important;
    transform: rotate(90deg);
}

/* ---------------------------------------------------------------- inputs */
.signup-cyber .form-control,
.signup-cyber input.form-control,
.signup-cyber input[type="text"],
.signup-cyber input[type="email"],
.signup-cyber input[type="password"],
.login-cyber .form-control,
.login-cyber input.form-control,
.login-cyber input[type="text"],
.login-cyber input[type="email"],
.login-cyber input[type="password"] {
    background: rgba(255, 255, 255, .04) !important;
    border: 1px solid rgba(255, 199, 61, .25) !important;
    color: var(--sc-text) !important;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.signup-cyber .form-control::placeholder,
.login-cyber .form-control::placeholder {
    color: var(--sc-muted) !important;
    opacity: .8;
}

.signup-cyber .form-control:focus,
.signup-cyber input:not([type="checkbox"]):not([type="radio"]):focus,
.login-cyber .form-control:focus,
.login-cyber input:not([type="checkbox"]):not([type="radio"]):focus {
    background: rgba(255, 199, 61, .06) !important;
    border-color: var(--sc-cyan) !important;
    box-shadow: 0 0 0 3px rgba(255, 199, 61, .18), 0 0 22px rgba(255, 199, 61, .35) !important;
    outline: none !important;
}

/* Chrome/Edge/Safari autofill maluje wlasne tlo poza normalna kaskada CSS -
   jedyny sposob na jego nadpisanie to inset box-shadow + text-fill-color */
.signup-cyber input:-webkit-autofill,
.signup-cyber input:-webkit-autofill:hover,
.signup-cyber input:-webkit-autofill:focus,
.signup-cyber input:-webkit-autofill:active,
.login-cyber input:-webkit-autofill,
.login-cyber input:-webkit-autofill:hover,
.login-cyber input:-webkit-autofill:focus,
.login-cyber input:-webkit-autofill:active {
    -webkit-text-fill-color: var(--sc-text) !important;
    -webkit-box-shadow: 0 0 0 1000px rgba(20, 22, 30, .95) inset !important;
    box-shadow: 0 0 0 1000px rgba(20, 22, 30, .95) inset !important;
    caret-color: var(--sc-text);
    transition: background-color 9999s ease-in-out 0s;
}

.signup-cyber .search-icon i,
.login-cyber .search-icon i {
    color: var(--sc-cyan) !important;
    filter: drop-shadow(0 0 6px rgba(255, 199, 61, .5));
}

/* ---------------------------------------------------------------- checkboxy / regulamin (signup) */
.signup-cyber .form-check-input,
.signup-cyber input[type="checkbox"] {
    accent-color: var(--sc-cyan);
}

.signup-cyber #panel a {
    color: var(--sc-magenta) !important;
    text-shadow: 0 0 8px rgba(255, 140, 26, .35);
}

.signup-cyber label,
.signup-cyber #panel {
    color: var(--sc-text) !important;
}

/* ---------------------------------------------------------------- linki / hr (login) */
.login-cyber .formularz a {
    color: var(--sc-cyan) !important;
    transition: color .2s ease, text-shadow .2s ease;
}

.login-cyber .formularz a:hover {
    color: var(--sc-magenta) !important;
    text-shadow: 0 0 8px rgba(255, 140, 26, .35);
}

.login-cyber .formularz hr {
    border-color: var(--sc-line) !important;
    opacity: .5;
}

.login-cyber .formularz span {
    color: var(--sc-muted) !important;
}

/* ---------------------------------------------------------------- CTA button */
.signup-cyber .button-login,
.login-cyber .button-login {
    background: linear-gradient(90deg, var(--sc-cyan) 0%, var(--sc-violet) 50%, var(--sc-magenta) 100%) !important;
    background-size: 200% auto;
    border: none !important;
    color: #1a1204 !important;
    font-weight: 700;
    letter-spacing: .5px;
    box-shadow: 0 0 24px rgba(255, 199, 61, .35), 0 8px 24px -8px rgba(255, 140, 26, .4) !important;
    transition: background-position .5s ease, box-shadow .3s ease, transform .15s ease;
}

.signup-cyber .button-login:hover,
.login-cyber .button-login:hover {
    background-position: right center;
    box-shadow: 0 0 32px rgba(255, 199, 61, .55), 0 10px 28px -6px rgba(255, 140, 26, .55) !important;
    transform: translateY(-1px);
    color: #1a1204 !important;
}

.signup-cyber .button-login:active,
.login-cyber .button-login:active {
    transform: translateY(0);
}

/* ---------------------------------------------------------------- alerty */
.signup-cyber .alert-danger,
.login-cyber .alert-danger {
    background: rgba(255, 43, 90, .12) !important;
    border: 1px solid rgba(255, 43, 90, .4) !important;
    color: #ffd7df !important;
    backdrop-filter: blur(14px);
    box-shadow: 0 0 24px rgba(255, 43, 90, .25) !important;
}

.signup-cyber .alert-success,
.login-cyber .alert-success {
    background: rgba(255, 199, 61, .10) !important;
    border: 1px solid rgba(255, 199, 61, .4) !important;
    color: #fff3d6 !important;
    backdrop-filter: blur(14px);
    box-shadow: 0 0 24px rgba(255, 199, 61, .25) !important;
}

.signup-cyber font[style*="ff7b7b"] {
    color: var(--sc-magenta) !important;
    text-shadow: 0 0 6px rgba(255, 140, 26, .3);
}

/* ---------------------------------------------------------------- footer */
.signup-cyber .footer,
.login-cyber .footer {
    color: var(--sc-muted);
}


/* =====================================================================
   =====================================================================
   STRONA GLOWNA  —  .index-cyber
   Te same tokeny kolorow co wyzej (i co cyber-news.css) - jeden motyw.
   Korzysta z --sc-angle, scGridDrift i scSpin zdefiniowanych na gorze pliku.
   =====================================================================
   ===================================================================== */

/* ---------------------------------------------------------------- tokeny */
.index-cyber {
    --ix-bg: #0a0704;
    --ix-gold: #ffc73d;
    --ix-amber: #ff8c1a;
    --ix-bronze: #c8821e;
    --ix-text: #f0e7d4;
    --ix-muted: #9a8c70;
    --ix-line: rgba(255, 199, 61, .14);
    --ix-line-strong: rgba(255, 199, 61, .32);

    /* Ryzyko/akcent: zielen sukna bilardowego jako swiatlo ambientowe od
       dolu - jedyny kolor spoza rodziny zlota. Bardzo niskie krycie. */
    --ix-felt: rgba(18, 74, 58, .30);

    --ix-glass: rgba(12, 10, 8, .55);
    --ix-glass-solid: rgba(10, 8, 6, .82);

    --ix-display: 'Archivo', 'Segoe UI', system-ui, sans-serif;
    --ix-body: 'Sora', 'Segoe UI', system-ui, sans-serif;
    --ix-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', monospace;

    --ix-r: 18px;
    --ix-r-sm: 12px;
}

/* ---------------------------------------------------------------- baza */
body.index-cyber {
    background: var(--ix-bg) !important;
    background-image:
        radial-gradient(900px 520px at 88% -6%, rgba(255, 140, 26, .18), transparent 60%),
        radial-gradient(820px 600px at 4% 2%, rgba(255, 199, 61, .16), transparent 55%),
        radial-gradient(1000px 700px at 50% 108%, var(--ix-felt), transparent 62%) !important;
    background-attachment: fixed;
    color: var(--ix-text);
    font-family: var(--ix-body);
    font-weight: 300;
    /* oryginal mial height:100vh + overflow-y:scroll na body - to obcinalo
       tresc i dawalo podwojny pasek przewijania przy tresci dluzszej niz ekran */
    width: 100%;
    min-height: 100vh;
    height: auto;
    /* 'clip' zamiast 'hidden': hidden robi z <body> kontener przewijania,
       co psuje position:sticky topbara (.sticky-md-top). clip przycina
       poziome wystawanie nie tworzac scroll-portu. hidden zostaje jako
       fallback dla starszych przegladarek. */
    overflow-x: hidden;
    overflow-x: clip;
    overflow-y: visible;
    -webkit-font-smoothing: antialiased;
}

/* dryfujaca siatka */
body.index-cyber::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(var(--ix-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--ix-line) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: radial-gradient(circle at 50% 18%, #000 0%, transparent 76%);
    -webkit-mask-image: radial-gradient(circle at 50% 18%, #000 0%, transparent 76%);
    animation: scGridDrift 22s linear infinite;
    pointer-events: none;
}

/* cala tresc nad siatka (kontener tla wylaczony - ma isc pod spod).
   .ix-ball wykluczona: rozbite bile JS przenosi do <body>, wiec ta regula
   by je zlapala i wypchnela na warstwe tresci - maja isc pod nia. */
.index-cyber > *:not(.loader):not(#blurred-image-container):not(.ix-ball) {
    position: relative;
    z-index: 1;
}

/* ---------------------------------------------------------------- zdjecie w tle
   Kolejnosc malowania: tlo <body> -> kontener ze zdjeciem (z-index -1)
   -> siatka body::before (z-index 0) -> tresc strony (z-index 1). */
.index-cyber #blurred-image-container {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

/* Bazowe reguly warstw tla. Byly wczesniej w <style> w index.php - musza
   zostac tutaj, inaczej diwy maja zerowa wysokosc i tla nie widac wcale. */
.index-cyber .img-src {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-position: center;
    background-repeat: no-repeat;
    -webkit-background-size: cover;
    background-size: cover;
    /* duotone w palecie zlota zamiast surowej fotografii */
    filter: grayscale(1) contrast(1.15) brightness(.5) sepia(.55) hue-rotate(-12deg) saturate(1.6);
}

/* Druga warstwa (rozmyta) startuje niewidoczna - jQuery podnosi jej opacity
   przy przewijaniu. Regula musi byc PO .img-src, zeby wygrala kaskade. */
.index-cyber .blurred-img {
    opacity: 0;
}

/* przyciemnienie ku dolowi, zeby tresc zawsze byla czytelna */
.index-cyber #blurred-image-container::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg,
            rgba(10, 7, 4, .30) 0%,
            rgba(10, 7, 4, .72) 45%,
            var(--ix-bg) 92%);
    pointer-events: none;
}

/* ---------------------------------------------------------------- logo
   Obracajace sie logo. Wlasna nazwa klatek (ixObrot zamiast obrot), bo
   @keyframes sa globalne - nie chcemy kolizji z innymi stronami. */
@keyframes ixObrot {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(1440deg); }
}

.index-cyber #logo-1 {
    float: left;
    width: 125px;
    display: table;
}

.index-cyber .logo-stream {
    width: 100px;
    top: 10px;
    left: 15px;
    position: relative;
    z-index: 1;
}

.index-cyber .logo-stream-obrot {
    animation-name: ixObrot;
    animation-duration: 25s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    animation-fill-mode: backwards;
}

.index-cyber .logo-stream2 {
    width: 95px;
    margin: 12px 0 0 -85px;
    position: absolute;
    opacity: 1;
    z-index: 1;
}

.index-cyber .logo-2-obrot {
    width: 99px !important;
}

/* ---------------------------------------------------------------- typografia */
.index-cyber h1,
.index-cyber h2,
.index-cyber h3,
.index-cyber h4 {
    font-family: var(--ix-display);
    font-weight: 800;
    letter-spacing: -.02em;
}

.index-cyber .ix-eyebrow {
    font-family: var(--ix-mono);
    font-size: .72rem;
    font-weight: 500;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--ix-muted);
    display: inline-flex;
    align-items: center;
    gap: .6rem;
}

.index-cyber .ix-eyebrow::before {
    content: "";
    width: 26px;
    height: 1px;
    background: var(--ix-gold);
    box-shadow: 0 0 8px rgba(255, 199, 61, .8);
}

/* ---------------------------------------------------------------- topbar */
.index-cyber #navigation {
    background: rgba(6, 5, 3, .55) !important;
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border-bottom: 1px solid var(--ix-line);
    transition: background .35s ease, border-color .35s ease;
    /* Musi byc nad sekcjami idacymi po nim w DOM (.ix-hero i dalsze dostaja
       z-index:1 z reguly ".index-cyber > :not(...)"): przy rownym z-index
       wygrywa pozniejszy element, wiec hero przykrywala menu rozwiniete pod
       awatarem i klikalna zostawala tylko pierwsza pozycja.
       !important, bo tamta regula ma w :not() selektor ID i wyzsza
       specyficznosc (1,1,0) niz ".index-cyber #navigation" (0,1,1). */
    z-index: 50 !important;
}

.index-cyber #navigation.ix-stuck {
    background: rgba(6, 5, 3, .88) !important;
    border-bottom-color: var(--ix-line-strong);
    box-shadow: 0 10px 40px -20px rgba(0, 0, 0, .9);
}

.index-cyber #navigation .border-bottom {
    border-bottom: 0 !important;
}

.index-cyber .nav-link {
    font-family: var(--ix-mono);
    font-size: .8rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ix-text) !important;
    padding: .5rem .85rem !important;
    border-radius: 8px;
    transition: color .2s ease, background .2s ease, text-shadow .2s ease;
}

.index-cyber .nav-link:hover,
.index-cyber .nav-link:focus-visible {
    color: var(--ix-gold) !important;
    background: rgba(255, 199, 61, .07);
    text-shadow: 0 0 10px rgba(255, 199, 61, .55);
}

.index-cyber .dropdown-menu {
    background: var(--ix-glass-solid);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    border: 1px solid var(--ix-line);
    border-radius: var(--ix-r-sm);
    box-shadow: 0 24px 50px -22px rgba(0, 0, 0, .9);
    padding: .35rem;
}

.index-cyber .dropdown-item {
    color: var(--ix-text);
    border-radius: 8px;
    font-size: .9rem;
    transition: background .18s ease, color .18s ease;
}

.index-cyber .dropdown-item:hover,
.index-cyber .dropdown-item:focus {
    background: rgba(255, 199, 61, .12);
    color: var(--ix-gold);
}

/* przyciski auth */
.index-cyber .btn-outline-light {
    font-family: var(--ix-mono);
    font-size: .78rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    border: 1px solid var(--ix-line-strong) !important;
    color: var(--ix-gold) !important;
    background: transparent !important;
    border-radius: 10px;
    transition: background .2s ease, box-shadow .2s ease, transform .12s ease;
}

.index-cyber .btn-outline-light:hover {
    background: rgba(255, 199, 61, .10) !important;
    box-shadow: 0 0 18px rgba(255, 199, 61, .35);
}

.index-cyber .btn-warning {
    font-family: var(--ix-mono);
    font-size: .78rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    font-weight: 700;
    background: linear-gradient(135deg, var(--ix-gold), var(--ix-amber)) !important;
    border: none !important;
    color: #1a1204 !important;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255, 140, 26, .40);
    transition: box-shadow .25s ease, transform .12s ease;
}

.index-cyber .btn-warning:hover {
    box-shadow: 0 0 30px rgba(255, 199, 61, .60);
    transform: translateY(-1px);
}

/* zalogowany uzytkownik */
.index-cyber .ix-user {
    border: 1px solid var(--ix-line);
    background: rgba(255, 199, 61, .06);
    border-radius: 999px;
    padding: .3rem .85rem .3rem .3rem !important;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease;
}

.index-cyber .ix-user:hover {
    background: rgba(255, 199, 61, .13);
    border-color: var(--ix-line-strong);
}

.index-cyber .ix-user p {
    font-family: var(--ix-mono);
    font-size: .72rem;
    color: var(--ix-muted);
    text-transform: uppercase;
    letter-spacing: .1em;
}

.index-cyber .ix-user h6 {
    font-family: var(--ix-display);
    font-weight: 700;
    color: var(--ix-text);
    font-size: .92rem;
}

.index-cyber .ix-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50% !important;
    object-fit: cover;
    border: 1px solid var(--ix-line-strong);
    background: #1a1204;
}

/* dropdown wyboru trybu gry pod awatarem - otwiera sie po najechaniu,
   niezaleznie od klasy .show, ktora Bootstrap dodaje tylko po kliku */
.index-cyber .ix-user-dropdown {
    position: relative;
}

.index-cyber .ix-user-dropdown>.dropdown-menu {
    position: absolute;
    inset: auto 0 auto auto;
    top: 100%;
    margin-top: 0;
    /* pas .5rem u gory jest CZESCIA hitboxa menu (nie osobny pseudo-element),
       zeby kursor jadac w dol z awatara nigdy nie wypadl z hover na styku */
    padding-top: .85rem;
    background: transparent;
    border: none;
    box-shadow: none;
    /* Bile logo lataja po <body> na position:fixed, z-index:25 i
       pointer-events:auto (index-cyber.js). Przelatujac nad menu przechwytywaly
       kursor - wychodzil mouseleave i menu znikalo w polowie drogi. */
    z-index: 40;
}

.index-cyber .ix-user-dropdown>.dropdown-menu .ix-menu-panel {
    list-style: none;
    background: var(--ix-glass-solid);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    border: 1px solid var(--ix-line);
    border-radius: var(--ix-r-sm);
    box-shadow: 0 24px 50px -22px rgba(0, 0, 0, .9);
    padding: .35rem;
}

.index-cyber .ix-user-dropdown .ix-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.index-cyber .ix-user-dropdown .dropdown-divider {
    border-top-color: var(--ix-line);
    margin: .35rem 0;
}

/* widocznoscia steruje JS (klasa .show), nie :hover - CSS zamykalby menu
   natychmiast po zjechaniu kursora, bez tolerancji na chwilowe wyjscie */
.index-cyber .ix-user-dropdown>.dropdown-menu.show {
    display: block;
}

.index-cyber .dropdown-item.disabled {
    color: var(--ix-muted) !important;
    background: transparent !important;
    cursor: not-allowed;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
}

.index-cyber .ix-soon-tag {
    font-family: var(--ix-mono);
    font-size: .62rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ix-muted);
    border: 1px solid var(--ix-line);
    border-radius: 999px;
    padding: .1rem .5rem;
}

/* ---------------------------------------------------------------- hero */
.index-cyber .ix-hero {
    padding: clamp(2.5rem, 7vw, 6rem) 0 clamp(2rem, 5vw, 4rem);
    /* Bile rozbite klikiem wylatuja daleko poza rack. Bez przyciecia
       powiekszalyby obszar przewijania i strona skakalaby paskiem. */
    overflow: clip;
}

.index-cyber .ix-hero h1 {
    font-size: clamp(2.6rem, 7.2vw, 5.6rem);
    line-height: .92;
    font-weight: 800;
    font-stretch: 112%;
    text-transform: uppercase;
    letter-spacing: -.03em;
    margin: 1.1rem 0 0;
    color: #fff;
}

/* drugi wiersz naglowka na zloto - podzial robimy w markupie */
.index-cyber .ix-hero h1 .ix-hl {
    background: linear-gradient(100deg, var(--ix-gold) 0%, #fff3d6 42%, var(--ix-amber) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Maski do animacji wjazdu wierszy. padding+ujemny margin daja miejsce na
   dolne wydluzenia liter (np. "y" w "Nowy wymiar") — bez tego overflow:hidden
   obcinalby je rowno z linia bazowa. */
.index-cyber .ix-line {
    display: block;
    overflow: hidden;
    padding-bottom: .12em;
    margin-bottom: -.12em;
}

.index-cyber .ix-line > span {
    display: block;
}

.index-cyber .ix-lead {
    font-size: clamp(1rem, 1.5vw, 1.18rem);
    line-height: 1.75;
    font-weight: 300;
    color: rgba(240, 231, 212, .82);
    max-width: 46ch;
    margin: 1.4rem 0 0;
}

.index-cyber .ix-link {
    font-family: var(--ix-mono);
    font-size: .82rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ix-gold);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease, gap .2s ease, color .2s ease;
}

.index-cyber .ix-link:hover,
.index-cyber .ix-link:focus-visible {
    color: #fff3d6;
    border-bottom-color: var(--ix-gold);
    gap: .8rem;
}

.index-cyber .ix-link i {
    font-size: .85em;
}

/* =====================================================================
   WYBOR TRYBU GRY — glowna sciezka do produktu, wiec ma dominowac.
   Pelna szerokosc kontenera, duze karty, oddech swiatlem.

   Kazdy tryb ma dwa odcienie tej samej rodziny: --m-a i --m-b. Animacja
   przechodzi miedzy nimi, wiec kolor pulsuje, ale nigdy nie ucieka poza
   swoja rodzine (dlatego NIE hue-rotate - ten wyprowadzilby zloto w zielen).
   ===================================================================== */
@keyframes ixModeBreath {
    0%, 100% {
        border-color: color-mix(in srgb, var(--m-a) 42%, transparent);
        box-shadow:
            0 0 26px -12px var(--m-a),
            inset 0 1px 0 rgba(255, 255, 255, .05);
    }
    50% {
        border-color: color-mix(in srgb, var(--m-b) 85%, transparent);
        box-shadow:
            0 0 52px -6px var(--m-b),
            inset 0 1px 0 rgba(255, 255, 255, .08);
    }
}

/* poswiata pod karta - osobna warstwa, zeby nie animowac drugiego cienia */
@keyframes ixModeHalo {
    0%, 100% { opacity: .30; }
    50%      { opacity: .75; }
}

/* przejazd polysku - powtarzalny, zeby przyciagal wzrok bez hovera */
@keyframes ixModeSheen {
    0%, 62%  { transform: translateX(-130%); }
    92%, 100% { transform: translateX(130%); }
}

.index-cyber .ix-modes-band {
    margin-top: clamp(2rem, 5vw, 3.5rem);
}

.index-cyber .ix-modes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: clamp(.8rem, 1.6vw, 1.2rem);
    margin: 1.1rem 0 0;
    /* potrzebne, zeby GSAP-owy rotationX/rotationY na kaflach wygladal
       jak przechyl w 3D, a nie jak plaskie skosowanie */
    perspective: 1000px;
}

.index-cyber .ix-mode {
    --m-a: var(--ix-gold);
    --m-b: var(--ix-amber);

    position: relative;
    font-family: inherit;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .55rem;
    min-height: 200px;
    padding: 1.5rem 1.4rem 1.3rem;
    border: 1px solid color-mix(in srgb, var(--m-a) 42%, transparent);
    border-radius: var(--ix-r);
    background:
        radial-gradient(120% 90% at 12% 0%, color-mix(in srgb, var(--m-a) 16%, transparent) 0%, transparent 62%),
        rgba(10, 8, 6, .62);
    backdrop-filter: blur(14px) saturate(150%);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    cursor: pointer;
    overflow: hidden;
    text-align: left;
    width: 100%;
    transition: background .3s ease;
    animation: ixModeBreath 3.4s ease-in-out infinite;
}

/* rozstrajamy oddech - rowny puls wygladalby jak awaria panelu */
.index-cyber .ix-mode:nth-child(2) { animation-delay: -1.1s; }
.index-cyber .ix-mode:nth-child(3) { animation-delay: -2.2s; }
.index-cyber .ix-mode:nth-child(4) { animation-delay: -.55s; }

/* poswiata bijaca od dolu karty */
.index-cyber .ix-mode::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -55%;
    width: 130%;
    height: 105%;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at 50% 50%,
            color-mix(in srgb, var(--m-a) 55%, transparent) 0%,
            transparent 68%);
    filter: blur(30px);
    pointer-events: none;
    animation: ixModeHalo 3.4s ease-in-out infinite;
    animation-delay: inherit;
    z-index: 0;
}

/* cykliczny przejazd polysku */
.index-cyber .ix-mode::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg,
            transparent 40%,
            color-mix(in srgb, var(--m-a) 30%, transparent) 50%,
            transparent 60%);
    transform: translateX(-130%);
    pointer-events: none;
    animation: ixModeSheen 5.5s ease-in-out infinite;
    z-index: 1;
}

.index-cyber .ix-mode:nth-child(2)::after { animation-delay: -1.8s; }
.index-cyber .ix-mode:nth-child(3)::after { animation-delay: -3.6s; }
.index-cyber .ix-mode:nth-child(4)::after { animation-delay: -.9s; }

.index-cyber .ix-mode > * {
    position: relative;
    z-index: 2;
}

.index-cyber .ix-mode:hover,
.index-cyber .ix-mode:focus-visible {
    background:
        radial-gradient(120% 90% at 12% 0%, color-mix(in srgb, var(--m-a) 26%, transparent) 0%, transparent 62%),
        rgba(10, 8, 6, .62);
}

/* ---- bila trybu: ten sam jezyk co rack, ale w barwie trybu ---- */
.index-cyber .ix-mode-ball {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex: none;
    background:
        radial-gradient(circle at 32% 26%, rgba(255, 255, 255, .6) 0%, transparent 38%),
        radial-gradient(circle at 50% 50%, var(--m-a) 0%, var(--m-b) 62%, #0b0805 100%);
    box-shadow:
        inset 0 -6px 14px -6px rgba(0, 0, 0, .9),
        0 8px 18px -10px rgba(0, 0, 0, .95);
}

/* biale kolko z numerem - jak na bilach w racku */
.index-cyber .ix-mode-ball > span {
    width: 58%;
    aspect-ratio: 1;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-family: var(--ix-mono);
    font-weight: 700;
    font-size: .95rem;
    color: #17130c;
    background: radial-gradient(circle at 38% 32%, #fff 0%, #f2ece0 58%, #d8cfbd 100%);
    box-shadow: inset 0 -2px 4px rgba(0, 0, 0, .15);
}

.index-cyber .ix-mode-ball > span i {
    font-size: .85rem;
}

.index-cyber .ix-mode-name {
    font-family: var(--ix-display);
    font-weight: 800;
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    letter-spacing: -.02em;
    text-transform: uppercase;
    line-height: 1;
    color: #fff;
    margin: .25rem 0 0;
}

.index-cyber .ix-mode-tag {
    font-family: var(--ix-mono);
    font-size: .68rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--m-a) 75%, #fff);
    margin: 0;
}

/* wezwanie do akcji przyklejone do dolu karty */
.index-cyber .ix-mode-go {
    margin-top: auto;
    padding-top: .9rem;
    font-family: var(--ix-mono);
    font-size: .76rem;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--m-a);
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    transition: gap .25s ease, color .25s ease;
}

.index-cyber .ix-mode:hover .ix-mode-go {
    gap: .85rem;
    color: #fff;
}

/* ---- tryb niedostepny: bez pulsu, wygaszony ---- */
.index-cyber .ix-mode.is-soon {
    cursor: default;
    animation: none;
    border-color: rgba(255, 255, 255, .10);
    background: rgba(10, 8, 6, .5);
    opacity: .55;
}

.index-cyber .ix-mode.is-soon::before,
.index-cyber .ix-mode.is-soon::after {
    display: none;
}

.index-cyber .ix-mode.is-soon:hover {
    background: rgba(10, 8, 6, .5);
}

.index-cyber .ix-store {
    margin-top: 1.8rem;
}

.index-cyber .ix-store img {
    width: 190px;
    max-width: 60%;
    filter: grayscale(.35) brightness(.95);
    transition: filter .25s ease, transform .25s ease;
}

.index-cyber .ix-store a:hover img {
    filter: none;
    transform: translateY(-2px);
}

/* =====================================================================
   SYGNATURA: RACK — romb dziewiatki.
   Geometria: heksagonalne upakowanie, wiersze co 0.866 srednicy.
   Kontener ma proporcje 3 : 4.464 (3 bile szerokosci, 5 rzedow).
   Jasnosc bili koduje jej wartosc punktowa w Formule B135.
   ===================================================================== */
.index-cyber .ix-rack-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    /* dolny zapas na .ix-rack-readout */
    padding: 1rem 0 3rem;
}

.index-cyber .ix-rack {
    position: relative;
    width: min(100%, 380px);
    aspect-ratio: 3 / 4.464;
    transform-style: preserve-3d;
}

/* Poswiata pod rackiem. Jawne rgba(...,0) zamiast 'transparent' - transparent
   interpoluje przez przezroczysta czern i daje szara obwodke. Duzy blur, zeby
   czytalo sie jako swiatlo, a nie jako dysk. */
.index-cyber .ix-rack::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 52%;
    width: 165%;
    height: 135%;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse at 50% 50%,
            rgba(255, 199, 61, .13) 0%,
            rgba(255, 140, 26, .06) 40%,
            rgba(255, 140, 26, 0) 72%);
    filter: blur(34px);
    pointer-events: none;
    z-index: 0;
}

/* fallback, gdyby doszla bila bez wlasnego koloru */
.index-cyber .ix-ball {
    --b-hi: #a9741f;
    --b-lo: #4a3210;
    --b-glow: 18px;

    position: absolute;
    width: 33.333%;
    aspect-ratio: 1;
    border-radius: 50%;
    display: grid;
    place-items: center;
    z-index: 1;
    /* klik rozbija rack */
    cursor: pointer;
    background:
        radial-gradient(circle at 32% 26%, rgba(255, 255, 255, .55) 0%, transparent 34%),
        radial-gradient(circle at 50% 50%, var(--b-hi) 0%, var(--b-lo) 62%, #120b03 100%);
    border: 1px solid color-mix(in srgb, var(--b-hi) 45%, transparent);
    box-shadow:
        inset 0 -8px 18px -8px rgba(0, 0, 0, .9),
        0 0 var(--b-glow) color-mix(in srgb, var(--b-hi) 55%, transparent),
        0 14px 28px -14px rgba(0, 0, 0, .95);
}

/* ---- prawdziwe kolory bil pulowych ----
   --b-hi = strona oswietlona, --b-lo = strona w cieniu. */
.index-cyber .ix-ball[data-slot="1"] { --b-hi: #ffc400; --b-lo: #8a6a00; --b-glow: 26px; }
.index-cyber .ix-ball[data-slot="2"] { --b-hi: #1f5fbf; --b-lo: #0a2a5e; --b-glow: 26px; }
.index-cyber .ix-ball[data-slot="3"] { --b-hi: #e03127; --b-lo: #6e1310; --b-glow: 26px; }
.index-cyber .ix-ball[data-slot="4"] { --b-hi: #7b34a8; --b-lo: #391450; --b-glow: 26px; }
.index-cyber .ix-ball[data-slot="5"] { --b-hi: #f57f17; --b-lo: #7a3c05; --b-glow: 26px; }
.index-cyber .ix-ball[data-slot="6"] { --b-hi: #128a58; --b-lo: #05412a; --b-glow: 26px; }
.index-cyber .ix-ball[data-slot="7"] { --b-hi: #96263a; --b-lo: #450e18; --b-glow: 26px; }

/* Osemka: czarna. color-mix z czerni nie daje zadnej poswiaty, wiec obwodke
   i glow ustawiamy jawnie - inaczej bila znika w ciemnym tle. */
.index-cyber .ix-ball[data-slot="8"] {
    --b-hi: #322c26;
    --b-lo: #080706;
    --b-glow: 18px;
    border-color: rgba(255, 199, 61, .28);
    box-shadow:
        inset 0 -8px 18px -8px rgba(0, 0, 0, .95),
        0 0 22px rgba(255, 199, 61, .16),
        0 14px 28px -14px rgba(0, 0, 0, .95);
}

/* Dziewiatka: bila z paskiem - bialy korpus z zoltym pasem przez srodek.
   Warstwy od gory: blik -> cieniowanie kuli -> pas. */
.index-cyber .ix-ball[data-slot="9"] {
    --b-hi: #ffd54a;
    --b-lo: #b8912a;
    --b-glow: 46px;
    z-index: 3;
    background:
        radial-gradient(circle at 32% 26%, rgba(255, 255, 255, .8) 0%, rgba(255, 255, 255, 0) 36%),
        radial-gradient(circle at 50% 48%, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, .48) 100%),
        linear-gradient(180deg,
            #f7f2e6 0%, #f7f2e6 21%,
            #ffc400 27%, #ffc400 73%,
            #f7f2e6 79%, #f7f2e6 100%);
    border-color: rgba(255, 255, 255, .45);
}

/* obracajacy sie pierscien tylko wokol dziewiatki */
.index-cyber .ix-ball[data-slot="9"]::after {
    content: "";
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    padding: 2px;
    background: conic-gradient(from var(--sc-angle), var(--ix-gold), var(--ix-amber), transparent 55%, var(--ix-gold));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: scSpin 4s linear infinite;
    pointer-events: none;
}

/* Biale kolko z numerem - tak wygladaja prawdziwe bile. Rozwiazuje przy
   okazji kontrast: ten sam ciemny numer jest czytelny i na zoltej jedynce,
   i na czarnej osemce. */
.index-cyber .ix-ball-num {
    font-family: var(--ix-mono);
    font-weight: 700;
    font-size: clamp(.8rem, 2.5vw, 1.15rem);
    color: #17130c;
    line-height: 1;
    width: 46%;
    aspect-ratio: 1;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 38% 32%, #fff 0%, #f2ece0 58%, #d8cfbd 100%);
    box-shadow:
        inset 0 -2px 5px rgba(0, 0, 0, .16),
        0 1px 2px rgba(0, 0, 0, .35);
    user-select: none;
}

/* pozycje w rombie */
.index-cyber .ix-ball[data-slot="1"] { left: 33.333%; top: 0; }
.index-cyber .ix-ball[data-slot="2"] { left: 16.667%; top: 19.4%; }
.index-cyber .ix-ball[data-slot="3"] { left: 50%;     top: 19.4%; }
.index-cyber .ix-ball[data-slot="4"] { left: 0;       top: 38.8%; }
.index-cyber .ix-ball[data-slot="9"] { left: 33.333%; top: 38.8%; }
.index-cyber .ix-ball[data-slot="5"] { left: 66.667%; top: 38.8%; }
.index-cyber .ix-ball[data-slot="6"] { left: 16.667%; top: 58.2%; }
.index-cyber .ix-ball[data-slot="7"] { left: 50%;     top: 58.2%; }
.index-cyber .ix-ball[data-slot="8"] { left: 33.333%; top: 77.6%; }

/* Rack pusty po rozbiciu — gasimy poswiate, bo nie ma juz nad czym swiecic */
.index-cyber .ix-rack.is-empty::before {
    opacity: 0;
    transition: opacity .5s ease;
}

/* Przycisk powrotu bil do rombu. Pojawia sie w miejscu racka dopiero
   wtedy, gdy bile sa rozbite (JS zdejmuje atrybut hidden). */
.index-cyber .ix-rack-reset {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .8rem 1.3rem;
    font-family: var(--ix-mono);
    font-size: .78rem;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ix-gold);
    background: rgba(10, 8, 6, .72);
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    border: 1px solid var(--ix-line-strong);
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 0 30px -8px rgba(255, 199, 61, .45);
    transition: background .22s ease, box-shadow .22s ease, color .22s ease;
}

.index-cyber .ix-rack-reset:hover,
.index-cyber .ix-rack-reset:focus-visible {
    color: #fff3d6;
    background: rgba(255, 199, 61, .14);
    box-shadow: 0 0 40px -6px rgba(255, 199, 61, .65);
}

.index-cyber .ix-rack-reset[hidden] {
    display: none;
}

/* Odczyt wartosci punktowej — pojawia sie przy hoverze bili.
   Siedzi w .ix-rack-wrap, a nie w .ix-rack: .ix-rack ma role="list",
   wiec nie moze zawierac elementow spoza listy. */
.index-cyber .ix-rack-readout {
    position: absolute;
    left: 50%;
    bottom: .5rem;
    transform: translateX(-50%);
    margin: 0;
    font-family: var(--ix-mono);
    font-size: .72rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ix-muted);
    white-space: nowrap;
    pointer-events: none;
    text-align: center;
}

.index-cyber .ix-rack-readout b {
    color: var(--ix-gold);
    font-weight: 600;
}

/* ---------------------------------------------------------------- panele szklane */
.index-cyber .ix-glass {
    background: var(--ix-glass);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border: 1px solid var(--ix-line);
    border-radius: var(--ix-r);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .05),
        0 30px 60px -32px rgba(0, 0, 0, .9);
}

/* ---------------------------------------------------------------- statystyki */
.index-cyber .ix-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 0;
    overflow: hidden;
}

.index-cyber .ix-stat {
    padding: 1.6rem 1rem;
    text-align: center;
    border-right: 1px solid var(--ix-line);
}

.index-cyber .ix-stat:last-child {
    border-right: 0;
}

.index-cyber .ix-stat-num {
    font-family: var(--ix-mono);
    font-weight: 700;
    font-size: clamp(1.6rem, 3.4vw, 2.5rem);
    line-height: 1;
    color: var(--ix-gold);
    text-shadow: 0 0 26px rgba(255, 199, 61, .35);
    font-variant-numeric: tabular-nums;
    margin: 0;
}

.index-cyber .ix-stat-label {
    font-family: var(--ix-mono);
    font-size: .68rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ix-muted);
    margin: .6rem 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
}

.index-cyber .ix-stat-label i {
    color: var(--ix-bronze);
    font-size: 1em;
}

/* ---------------------------------------------------------------- sekcje */
.index-cyber .ix-section {
    padding: clamp(3rem, 8vw, 6rem) 0;
}

.index-cyber .ix-section-head {
    margin-bottom: clamp(1.5rem, 4vw, 3rem);
}

.index-cyber .ix-section-head h2 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.02;
    text-transform: uppercase;
    margin: .8rem 0 0;
    color: #fff;
}

/* karty "o nas" */
.index-cyber .ix-feature {
    padding: 1.6rem;
    border-radius: var(--ix-r);
    border: 1px solid var(--ix-line);
    background: rgba(255, 255, 255, .022);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: border-color .3s ease, background .3s ease, transform .3s cubic-bezier(.22, 1, .36, 1);
    height: 100%;
}

.index-cyber .ix-feature:hover {
    border-color: var(--ix-line-strong);
    background: rgba(255, 199, 61, .05);
    transform: translateY(-4px);
}

.index-cyber .ix-feature-icon {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(255, 199, 61, .18), rgba(255, 140, 26, .10));
    border: 1px solid var(--ix-line);
    color: var(--ix-gold);
    font-size: 1.15rem;
    margin-bottom: 1rem;
}

.index-cyber .ix-feature h3 {
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: .01em;
    color: var(--ix-text);
    margin: 0 0 .6rem;
}

.index-cyber .ix-feature p {
    font-size: .95rem;
    line-height: 1.7;
    font-weight: 300;
    color: rgba(240, 231, 212, .72);
    margin: 0 0 1rem;
}

/* media (youtube + plakat turnieju) */
.index-cyber .ix-media {
    border-radius: var(--ix-r);
    overflow: hidden;
    border: 1px solid var(--ix-line);
    background: #06040a;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    transition: border-color .3s ease, box-shadow .3s ease;
}

.index-cyber .ix-media:hover {
    border-color: var(--ix-line-strong);
    box-shadow: 0 0 34px -12px rgba(255, 199, 61, .45);
}

.index-cyber img.ix-media {
    object-fit: cover;
    cursor: pointer;
}

.index-cyber iframe.ix-media {
    display: block;
}

/* ---------------------------------------------------------------- partnerzy */
.index-cyber .ix-partners {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: clamp(1rem, 4vw, 3rem);
}

.index-cyber .ix-partner {
    height: 62px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    cursor: pointer;
    filter: grayscale(1) brightness(1.5) opacity(.45);
    transition: filter .3s ease, transform .3s ease;
}

.index-cyber .ix-partner:hover {
    filter: grayscale(0) brightness(1) opacity(1);
    transform: translateY(-3px);
}

/* ---------------------------------------------------------------- social */
.index-cyber .ix-social {
    display: flex;
    justify-content: center;
    gap: .75rem;
}

.index-cyber .ix-social a {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    border: 1px solid var(--ix-line);
    background: rgba(255, 255, 255, .02);
    color: var(--ix-muted);
    font-size: 1.2rem;
    text-decoration: none;
    transition: color .22s ease, border-color .22s ease, background .22s ease, transform .22s ease;
}

.index-cyber .ix-social a:hover,
.index-cyber .ix-social a:focus-visible {
    color: var(--ix-gold);
    border-color: var(--ix-line-strong);
    background: rgba(255, 199, 61, .09);
    transform: translateY(-3px);
}

/* ---------------------------------------------------------------- separatory */
.index-cyber .ix-rule {
    height: 1px;
    border: 0;
    margin: 0;
    background: linear-gradient(90deg, transparent, var(--ix-line-strong) 22%, var(--ix-line-strong) 78%, transparent);
    opacity: 1;
}

/* ---------------------------------------------------------------- modal */
.index-cyber .modal-content {
    background: var(--ix-glass-solid);
    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    border: 1px solid var(--ix-line);
    border-radius: var(--ix-r);
    color: var(--ix-text);
}

.index-cyber .modal-header,
.index-cyber .modal-footer {
    border-color: var(--ix-line);
}

.index-cyber .modal-title {
    font-family: var(--ix-display);
    text-transform: uppercase;
    font-size: 1.1rem;
}

.index-cyber .btn-close {
    filter: invert(1) sepia(1) saturate(3) hue-rotate(5deg);
}

/* =====================================================================
   SEKCJE DOKLEJANE — /new/pierwsza-art.php i /new/pierwsza-game.php
   Tych plikow nie ma w repo (sa tylko na serwerze), wiec stylujemy je
   "z zewnatrz", po klasach z ich markupu. Struktura obu jest taka sama:

     .index-content > .container > .col-12 > hr + .row
        .row > h1.center
             > div.col-12.col-md-6.p-3   (onclick -> artykul)   x N
                  > div.p-2  [inline: background/border/radius]
                       > .w-100.text-center.div-img-art > img.img-art
                       > div > h2.tytul-art-all + .d-flex(h4,h4) + .p-2>p
             > div.text-center            (odnosnik "wszystkie")

   Karta ma tlo, ramke i zaokraglenie w atrybucie style, dlatego czesc
   regul musi byc !important - inline wygrywa z kazdym selektorem.
   ===================================================================== */
.index-cyber .index-content {
    background: transparent !important;
}

/* naglowek sekcji — dociagniety do reszty strony (.ix-section-head) */
.index-cyber .index-content h1.center {
    width: 100%;
    font-family: var(--ix-display);
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -.02em;
    text-transform: uppercase;
    color: #fff;
    text-align: left;
    margin: 0 0 clamp(1.2rem, 3vw, 2.2rem);
    padding-top: 1.4rem;
    position: relative;
}

.index-cyber .index-content h1.center::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 42px;
    height: 2px;
    background: var(--ix-gold);
    box-shadow: 0 0 10px rgba(255, 199, 61, .8);
}

/* separatory sekcji w tej samej konwencji co .ix-rule */
.index-cyber .index-content hr {
    height: 1px;
    border: 0;
    opacity: 1;
    margin: clamp(1.5rem, 4vw, 3rem) 0;
    background: linear-gradient(90deg, transparent, var(--ix-line-strong) 22%, var(--ix-line-strong) 78%, transparent);
}

/* kolumna-karta: flex, zeby karty w wierszu mialy rowna wysokosc */
.index-cyber .index-content .row > div[class*="col-"] {
    display: flex;
    cursor: pointer;
}

/* wlasciwa karta — szklany panel jak .ix-feature */
.index-cyber .index-content .row > div[class*="col-"] > div {
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: .85rem !important;
    background: rgba(255, 255, 255, .022) !important;
    border: 1px solid var(--ix-line) !important;
    border-radius: var(--ix-r) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: border-color .3s ease, background .3s ease, transform .3s cubic-bezier(.22, 1, .36, 1), box-shadow .3s ease;
}

.index-cyber .index-content .row > div[class*="col-"]:hover > div {
    border-color: var(--ix-line-strong) !important;
    background: rgba(255, 199, 61, .05) !important;
    transform: translateY(-4px);
    box-shadow: 0 22px 44px -26px rgba(0, 0, 0, .95);
}

/* blok tekstowy ma rosnac, zeby stopki kart rownaly sie do dolu */
.index-cyber .index-content .row > div[class*="col-"] > div > div:last-child {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ---- obrazek artykulu ----
   Sedno problemu: bez tych regul <img class="img-art"> renderuje sie
   w rozmiarze naturalnym (800x200, 800x670...), przez co karty mialy
   skrajnie rozne wysokosci. Staly kadr 16:9 rownia cala siatke. */
.index-cyber .div-img-art {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--ix-r-sm);
    background: #06040a;
    border: 1px solid var(--ix-line);
    flex: none;
}

.index-cyber .img-art {
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform .5s cubic-bezier(.22, 1, .36, 1);
}

.index-cyber .index-content .row > div[class*="col-"]:hover .img-art {
    transform: scale(1.05);
}

/* ---- tytul ---- */
.index-cyber .tytul-art-all {
    font-family: var(--ix-display);
    font-weight: 700;
    font-size: 1.02rem !important;
    line-height: 1.3;
    letter-spacing: -.01em;
    color: var(--ix-text);
    margin: .9rem 0 .2rem;
    padding: 0 .35rem !important;
    transition: color .25s ease;
}

.index-cyber .index-content .row > div[class*="col-"]:hover .tytul-art-all {
    color: var(--ix-gold);
}

/* ---- metadane (data / numer) ---- */
.index-cyber .index-content .row > div[class*="col-"] .d-flex.justify-content-between h4 {
    font-family: var(--ix-mono);
    font-size: .68rem !important;
    font-weight: 500 !important;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ix-muted);
    padding: .35rem !important;
    margin: 0;
}

/* ---- zajawka ---- */
.index-cyber .index-content .row > div[class*="col-"] p {
    font-family: var(--ix-body);
    font-size: .9rem;
    font-weight: 300;
    line-height: 1.65;
    color: rgba(240, 231, 212, .72);
    margin: 0;
    /* rowna dlugosc zajawek - inaczej jedna karta ciagnie wiersz w dol */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---- odnosnik "zobacz wszystkie" pod siatka ---- */
.index-cyber .index-content .row > div.text-center {
    width: 100%;
    margin-top: 1.2rem;
}

.index-cyber .index-content .row > div.text-center a {
    font-family: var(--ix-mono);
    font-size: .8rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ix-gold);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease, color .2s ease;
}

.index-cyber .index-content .row > div.text-center a:hover {
    color: #fff3d6;
    border-bottom-color: var(--ix-gold);
}

/* ---------------------------------------------------------------- loader w palecie motywu */
.index-cyber .loader {
    background-color: var(--ix-bg) !important;
    z-index: 9999;
}

.index-cyber .loader::after {
    border-color: rgba(255, 199, 61, .18) !important;
    border-top-color: var(--ix-gold) !important;
}

/* ---------------------------------------------------------------- dostepnosc */
.index-cyber :focus-visible {
    outline: 2px solid var(--ix-gold);
    outline-offset: 3px;
    border-radius: 6px;
}

.index-cyber .ix-skip {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100;
    background: var(--ix-gold);
    color: #1a1204;
    padding: .7rem 1.1rem;
    font-family: var(--ix-mono);
    font-size: .8rem;
    border-radius: 0 0 10px 0;
    text-decoration: none;
}

.index-cyber .ix-skip:focus {
    left: 0;
}

/* stan startowy dla elementow animowanych — GSAP je odsloni.
   .ix-ready trafia na <html> tylko gdy JS wystartuje; bez JS nic nie znika. */
html.ix-ready .index-cyber [data-ix-fade] {
    opacity: 0;
}

/* ---------------------------------------------------------------- responsywnosc */
@media (max-width: 991.98px) {
    .index-cyber .ix-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .index-cyber .ix-stat:nth-child(2) {
        border-right: 0;
    }

    .index-cyber .ix-stat:nth-child(1),
    .index-cyber .ix-stat:nth-child(2) {
        border-bottom: 1px solid var(--ix-line);
    }

    .index-cyber .ix-rack {
        width: min(74%, 300px);
    }

    .index-cyber .ix-rack-wrap {
        padding: 2.5rem 0 3rem;
    }
}

@media (max-width: 575.98px) {
    .index-cyber .ix-stats {
        grid-template-columns: 1fr;
    }

    .index-cyber .ix-stat {
        border-right: 0;
        border-bottom: 1px solid var(--ix-line);
        padding: 1.15rem 1rem;
    }

    .index-cyber .ix-stat:last-child {
        border-bottom: 0;
    }

    .index-cyber .ix-rack {
        width: min(68%, 240px);
    }
}

/* Wybor trybu to glowna akcja strony - na waskich ekranach karty ida
   jedna pod druga na pelna szerokosc. Dwie kolumny sciskaly je do ~169 px
   i tryby znowu wygladaly jak drobne kafelki. */
@media (max-width: 767.98px) {
    .index-cyber .ix-modes {
        grid-template-columns: 1fr;
    }

    .index-cyber .ix-mode {
        min-height: 0;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: .35rem 1rem;
        padding: 1.15rem 1.2rem;
    }

    .index-cyber .ix-mode-ball {
        width: 48px;
        height: 48px;
    }

    /* nazwa i podpis obok bili, akcja w prawym gornym rogu wiersza */
    .index-cyber .ix-mode-name {
        margin: 0;
        font-size: 1.45rem;
    }

    .index-cyber .ix-mode-tag {
        flex-basis: 100%;
        margin-left: calc(48px + 1rem);
        margin-top: -.35rem;
    }

    .index-cyber .ix-mode-go {
        margin-left: auto;
        margin-top: 0;
        padding-top: 0;
    }
}

/* ---------------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {

    .index-cyber *,
    .index-cyber *::before,
    .index-cyber *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }

    html.ix-ready .index-cyber [data-ix-fade] {
        opacity: 1 !important;
    }
}
