/* ===================================
   ZMIENNE CSS - shadcn/ui dark theme
   =================================== */
:root {
    --bg:          #09090b;
    --bg-dark:     #09090b;
    --bg-darker:   #050507;
    --bg-card:     #0f0f11;
    --bg-card-hover: #141418;
    --border:      #27272a;
    --border-subtle: #1c1c1f;

    --text:        #fafafa;
    --text-primary: #fafafa;
    --text-secondary: #a1a1aa;
    --text-muted:  #71717a;
    --text-dim:    #52525b;

    --accent:      #e4e4e7;
    --primary:     #e4e4e7;
    --primary-dark: #a1a1aa;
    --primary-light: #fafafa;
    --secondary:   #71717a;

    --green:       #22c55e;
    --orange:      #f59e0b;
    --red:         #ef4444;
    --blue:        #3b82f6;
    --blue-dim:    #1d4ed8;
    --blue-muted:  rgba(59,130,246,0.12);
    --blue-border: rgba(59,130,246,0.25);
    --discord:     #5865f2;

    --font-display: 'Geist', system-ui, sans-serif;
    --font-mono:    'Geist Mono', ui-monospace, monospace;

    --radius:    8px;
    --radius-sm: 6px;

    --transition-fast:   0.15s ease;
    --transition-normal: 0.2s ease;
    --transition-slow:   0.3s ease;

    --shadow-glow:        none;
    --shadow-glow-strong: none;
    --shadow-card:        none;
    --gradient-primary:   none;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 56px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-display);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    font-size: 1rem;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }

/* ===================================
   BACKGROUND — subtle static gradient
   =================================== */
.bg-particles { display: none; }
.scan-line    { display: none; }
.aurora-orb   { display: none; }

/* ===================================
   CONTAINER
   =================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===================================
   NAVBAR
   =================================== */
.navbar {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 56px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 1.5rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: -0.01em;
}

.nav-logo-icon {
    width: 28px;
    height: 28px;
    background: var(--text);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--bg);
    padding: 4px;
}

.logo-bracket { display: none; }
.logo-text    { color: var(--text); background: none; -webkit-text-fill-color: unset; }

.version {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--text-muted);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.1em 0.4em;
}

.nav-menu { display: flex; list-style: none; gap: 0.25rem; }

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius-sm);
    transition: color var(--transition-fast), background var(--transition-fast);
}

.nav-link::after { display: none; }
.nav-link:hover, .nav-link.active { color: var(--text); background: var(--bg-card); }
.nav-link.active { color: var(--blue) !important; background: var(--blue-muted) !important; border: 1px solid var(--blue-border); }

.hamburger { display: none; flex-direction: column; gap: 4px; cursor: pointer; padding: 0.5rem; }

.hamburger span {
    width: 20px; height: 2px;
    background: var(--text-muted);
    border-radius: 1px;
    transition: var(--transition-fast);
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -5px); }

/* ===================================
   HERO
   =================================== */
/* ===================================
   HERO — centered over globe
   =================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 56px;
    position: relative;
    overflow: visible;
}

.globe-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

/* Override container inside hero to be full-width centered */
.hero > .container,
.hero > .hero-center {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: none;
    padding: 0;
}

.hero-center {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
    max-width: none;
    padding: 0;
}

.hero-content {
    text-align: center;
    max-width: 680px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
}

.hero .container,
.hero .container-wide {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: none;
    width: 100%;
    padding: 0;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--blue-muted);
    border: 1px solid var(--blue-border);
    padding: 0.4rem 0.875rem;
    border-radius: 999px;
    font-size: 0.83rem;
    font-weight: 500;
    color: #93c5fd;
    margin-bottom: 1.5rem;
    animation: fadeUp 0.3s ease;
}

.tag-icon { animation: none; }

.hero-title {
    font-family: var(--font-display);
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.0;
    letter-spacing: -0.05em;
    margin-bottom: 1.1rem;
    animation: fadeUp 0.3s ease 0.1s both;
    color: var(--text);
}

.hero-subtitle {
    font-size: 1.05rem;
    color: #a1a1aa;
    line-height: 1.6;
    margin-bottom: 2rem;
    animation: fadeUp 0.3s ease 0.18s both;
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
}

.gradient-text {
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 50%, #93c5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.hero-buttons {
    display: flex;
    gap: 0.875rem;
    margin-bottom: 2rem;
    animation: fadeUp 0.3s ease 0.25s both;
    justify-content: center;
}

.btn-lg {
    padding: 0.8rem 1.75rem;
    font-size: 0.95rem;
    border-radius: var(--radius);
    gap: 0.6rem;
}

.status-indicators {
    display: flex;
    gap: 1.5rem;
    animation: fadeUp 0.3s ease 0.25s both;
    justify-content: center;
}

.status-indicators {
    display: flex;
    gap: 1.5rem;
    animation: fadeUp 0.3s ease 0.25s both;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #a1a1aa;
}

.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--border); }

.status-dot.active {
    background: var(--green);
    box-shadow: none;
    animation: blink 2.5s ease infinite;
}

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

/* ===================================
   EXECUTOR WINDOW
   =================================== */
.executor-window {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-top: 2px solid var(--blue);
    border-radius: var(--radius);
    overflow: hidden;
    animation: fadeUp 0.35s ease 0.15s both;
}

.executor-header {
    background: var(--bg);
    padding: 0.6rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-subtle);
}

.executor-buttons { display: flex; gap: 0.4rem; }
.executor-buttons span { width: 11px; height: 11px; border-radius: 50%; }
.btn-close    { background: #ff5f56; }
.btn-minimize { background: #ffbd2e; }
.btn-maximize { background: #27c93f; }

.executor-title {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.executor-title svg { color: var(--text-dim); }

.executor-status {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    color: var(--text-muted);
}

.executor-toolbar {
    display: flex;
    gap: 0.4rem;
    padding: 0.6rem 1rem;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-subtle);
}

.toolbar-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.875rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    cursor: pointer;
    transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

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

.toolbar-btn.primary { background: var(--blue); border-color: var(--blue-dim); color: #fff; font-weight: 600; }
.toolbar-btn.primary:hover { background: var(--blue-dim); border-color: var(--blue-dim); transform: none; box-shadow: none; }

.executor-body {
    display: flex;
    min-height: 320px;
    max-height: 400px;
    background: var(--bg);
    overflow: hidden;
    position: relative;
}

.line-numbers {
    padding: 1rem 0.75rem;
    background: var(--bg-card);
    border-right: 1px solid var(--border-subtle);
    text-align: right;
    user-select: none;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-dim);
    line-height: 1.6;
    min-width: 40px;
}

.line-numbers span { display: block; }

.code-container { position: relative; flex: 1; overflow: auto; }

.code-highlight {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    padding: 1rem;
    margin: 0;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.7;
    white-space: pre-wrap;
    word-break: break-word;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
    color: var(--text);
}

.code-editor {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%; height: 100%;
    padding: 1rem;
    background: transparent;
    border: none;
    outline: none;
    resize: none;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: rgba(0,0,0,0);
    caret-color: var(--text);
    line-height: 1.7;
    z-index: 2;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

.code-editor::selection { background: rgba(255,255,255,0.15); }
.code-editor[readonly]  { cursor: text; user-select: text; }

.lua-keyword     { color: #569cd6; font-weight: 600; }
.lua-function    { color: #dcdcaa; }
.lua-string      { color: #ce9178; }
.lua-number      { color: #b5cea8; }
.lua-comment     { color: #6a9955; font-style: italic; }
.lua-operator    { color: #d4d4d4; }
.lua-punctuation { color: #d4d4d4; }
.lua-global      { color: #4ec9b0; }
.lua-builtin     { color: #4fc1ff; }
.lua-property    { color: #9cdcfe; }
.lua-method      { color: #dcdcaa; }

.executor-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border-top: 1px solid var(--border-subtle);
    font-size: 0.72rem;
}

.footer-info { display: flex; gap: 1.25rem; }

.info-item { display: flex; align-items: center; gap: 0.35rem; color: var(--text-dim); }
.info-item svg  { color: var(--text-dim); }
.info-item span { color: var(--text-muted); font-weight: 600; }

.footer-hint { color: var(--text-dim); font-style: italic; }

/* ===================================
   BUTTONS
   =================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
    text-decoration: none;
}

.btn::before { display: none; }

.btn-primary { background: var(--blue); color: #fff; box-shadow: none; border: 1px solid var(--blue-dim); }
.btn-primary:hover { background: var(--blue-dim); transform: none; box-shadow: none; }

.btn-secondary { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--bg-card); border-color: var(--text-dim); }

.btn-download {
    width: 100%;
    justify-content: center;
    background: var(--text);
    color: var(--bg);
    font-size: 0.9rem;
    padding: 0.7rem 1.25rem;
    margin-top: 1rem;
}

/* ===================================
   ANIMATIONS
   =================================== */
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInRight { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }

/* ===================================
   SECTIONS
   =================================== */
section { padding: 5rem 0; }

.section-header { text-align: center; margin-bottom: 3rem; }

.section-tag {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--blue);
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 0.875rem;
    color: var(--text);
}

.section-description { font-size: 0.95rem; color: #a1a1aa; max-width: 540px; margin: 0 auto; line-height: 1.65; }

/* ===================================
   SUPPORTED GAMES
   =================================== */
.supported-games { background: var(--bg); }

.games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

/* Wrapper na animowaną obramówkę */
.game-card-wrap {
    border-radius: calc(var(--radius) + 1px);
    padding: 1px;
    position: relative;
    background: var(--border);
    transition: background 0.2s ease;
}

/* Animowany border — pseudoelement z conic-gradient */
.game-card-wrap::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: calc(var(--radius) + 2px);
    background: conic-gradient(
        from var(--angle, 0deg),
        transparent 0%,
        transparent 70%,
        var(--glow-color, transparent) 85%,
        transparent 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.game-card-wrap:hover::before {
    opacity: 1;
    animation: spin-border 3s linear infinite;
}

@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

@keyframes spin-border {
    0%   { --angle: 0deg; }
    100% { --angle: 360deg; }
}

.game-card-wrap.online { --glow-color: #4ade80; }
.game-card-wrap.soon   { --glow-color: #fbbf24; }

.game-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    z-index: 1;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.game-thumb {
    width: 100%;
    height: 190px;
    overflow: hidden;
    background: var(--bg);
    position: relative;
}

.game-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    pointer-events: none;
}

.game-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.game-bar {
    height: 2px;
}

.game-bar.online { background: rgba(34, 197, 94, 0.6); }
.game-bar.soon   { background: rgba(245, 158, 11, 0.6); }

.game-body {
    padding: 0.9rem 1rem 1rem;
}

.game-top {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.3rem;
}

.game-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.game-dot.online { background: #4ade80; }
.game-dot.soon   { background: #fbbf24; }

.game-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.01em;
}

.game-description {
    color: var(--text-muted);
    font-size: 0.75rem;
    line-height: 1.55;
}

/* ===================================
   GALLERY
   =================================== */
.gallery { padding: 5rem 0; background: var(--bg); }
.gallery::before { display: none; }

.gallery-header { text-align: center; margin-bottom: 2.5rem; }
.gallery-description { max-width: 520px; margin: 0.5rem auto 0; color: var(--text-muted); font-size: 0.85rem; }

.gallery-slider { position: relative; max-width: 1000px; margin: 0 auto; }

.slider-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--bg-card);
    border: 1px solid var(--border);
}

.slider-track {
    display: flex;
    transition: transform 0.45s cubic-bezier(0.4,0,0.2,1);
    will-change: transform;
}

.slide {
    min-width: 100%;
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.slide.active { opacity: 1; }

.slide-content {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    overflow: hidden;
    background: var(--bg);
}

.slide-image, .slide-video {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.slide:hover .slide-image, .slide:hover .slide-video { transform: scale(1.03); }

.custom-video-controls {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
    padding: 1.25rem 1.5rem;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
    z-index: 10;
}

.slide:hover .custom-video-controls,
.custom-video-controls.show { opacity: 1; pointer-events: auto; }

.video-progress-bar {
    position: relative;
    width: 100%; height: 4px;
    background: rgba(255,255,255,0.15);
    border-radius: 2px;
    cursor: pointer;
    margin-bottom: 0.75rem;
    overflow: visible;
}

.video-progress-bar:hover { height: 6px; }

.video-progress-filled {
    position: absolute;
    left: 0; top: 0; height: 100%;
    background: var(--text);
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s linear;
    box-shadow: none;
}

.video-progress-handle {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 12px; height: 12px;
    background: var(--text);
    border-radius: 50%;
    left: 0%;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.video-progress-bar:hover .video-progress-handle { opacity: 1; }

.video-controls-bottom { display: flex; align-items: center; gap: 0.75rem; }

.video-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,0.9);
    cursor: pointer;
    padding: 0.35rem;
    display: flex;
    align-items: center;
    border-radius: var(--radius-sm);
    transition: background 0.15s;
}

.video-btn:hover { background: rgba(255,255,255,0.1); color: #fff; transform: none; }

.play-pause-btn { width: 40px; height: 40px; }

.video-time {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    gap: 0.35rem;
    user-select: none;
}

.time-separator { color: rgba(255,255,255,0.4); }

.volume-control { display: flex; align-items: center; gap: 0.5rem; margin-left: auto; }

.volume-slider {
    position: relative;
    width: 72px; height: 4px;
    background: rgba(255,255,255,0.15);
    border-radius: 2px;
    cursor: pointer;
    overflow: visible;
}

.volume-slider:hover { height: 6px; }

.volume-slider-fill {
    position: absolute;
    left: 0; top: 0; height: 100%;
    width: 30%;
    background: var(--text);
    border-radius: 2px;
    transition: width 0.1s linear;
    box-shadow: none;
}

.volume-slider-handle {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 12px; height: 12px;
    background: var(--text);
    border-radius: 50%;
    left: 30%;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.volume-slider:hover .volume-slider-handle { opacity: 1; }
.fullscreen-btn { margin-left: 0.5rem; }

.slide-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(9,9,11,0.85) 0%, transparent 70%);
    padding: 5rem 1.5rem 90px;
    transform: translateY(6px);
    opacity: 0;
    transition: all 0.35s ease;
    pointer-events: none;
    z-index: 5;
}

.slide.active .slide-overlay { transform: translateY(0); opacity: 1; }

.slide-info { max-width: 500px; pointer-events: auto; margin-top: 0; }

.slide-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.35rem;
    color: var(--text);
    background: none;
    -webkit-text-fill-color: unset;
}

.slide-description { color: #a1a1aa; font-size: 0.88rem; margin-bottom: 0.65rem; }

.slide-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; }

.slide-tags .tag {
    padding: 0.18rem 0.55rem;
    background: rgba(255,255,255,0.08);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 500;
    transition: border-color var(--transition-fast);
}

.slide-tags .tag:hover { border-color: var(--text-dim); color: var(--text); box-shadow: none; }

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px; height: 38px;
    background: rgba(9,9,11,0.7);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--transition-fast), border-color var(--transition-fast);
    z-index: 10;
    backdrop-filter: none;
}

.slider-btn:hover { background: var(--bg-card); border-color: var(--text-dim); transform: translateY(-50%); box-shadow: none; }
.slider-btn:active { transform: translateY(-50%) scale(0.96); }
.slider-btn svg { color: var(--text-muted); }
.slider-btn.prev { left: 0.75rem; }
.slider-btn.next { right: 0.75rem; }

.slider-indicators { display: flex; gap: 0.5rem; justify-content: center; margin-top: 1.25rem; align-items: center; }

.indicator {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--border);
    border: none;
    cursor: pointer;
    transition: background 0.25s, width 0.25s, border-radius 0.25s;
    padding: 0;
}

.indicator::before { display: none; }
.indicator:hover { background: var(--text-dim); transform: none; }

.indicator.active {
    background: var(--text);
    width: 22px;
    border-radius: 4px;
    box-shadow: none;
    animation: none;
}

.gallery-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    transition: border-color var(--transition-fast);
}

.stat-card:hover { border-color: var(--text-dim); transform: none; box-shadow: none; background: var(--bg-card); }

.stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 0.75rem;
    transition: border-color var(--transition-fast);
}

.stat-card:hover .stat-icon { border-color: var(--text-dim); background: var(--bg); transform: none; box-shadow: none; }
.stat-icon svg { color: var(--text-muted); }

.stat-value {
    font-family: var(--font-mono);
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--text);
    background: none;
    -webkit-text-fill-color: unset;
    margin-bottom: 0.2rem;
}

.stat-label { color: var(--text-muted); font-size: 0.78rem; }

/* ===================================
   DOCS
   =================================== */
.docs { background: var(--bg); }

.inline-link {
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: var(--border);
    font-weight: 500;
    transition: text-decoration-color var(--transition-fast);
}

.inline-link::after  { display: none; }
.inline-link:hover   { color: var(--text); text-decoration-color: var(--text-muted); }

.docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 3rem;
}

.doc-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: border-color var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.doc-card::before { display: none; }
.doc-card:hover { border-color: var(--text-dim); background: var(--bg-card-hover); transform: none; }

.doc-number {
    font-family: var(--font-mono);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--border);
    background: none;
    -webkit-text-fill-color: unset;
    margin-bottom: 0.75rem;
    opacity: 1;
}

.doc-card h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.5rem; letter-spacing: -0.01em; }
.doc-card p  { color: #a1a1aa; font-size: 0.875rem; line-height: 1.65; }

.faq-section { max-width: 720px; margin: 0 auto; }
.faq-title { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; text-align: center; margin-bottom: 1.5rem; }
.faq-list  { display: flex; flex-direction: column; gap: 0.5rem; }

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

.faq-item:hover { border-color: var(--text-dim); }

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.1rem 1.25rem;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    transition: background var(--transition-fast);
}
.faq-question:hover { background: var(--bg-card-hover); }
.faq-icon { color: var(--text-muted); transition: transform var(--transition-fast); }
.faq-item.active .faq-icon { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-item.active .faq-answer { max-height: 500px; }
.faq-answer p { padding: 1.25rem 1.25rem 1.1rem; color: #a1a1aa; font-size: 0.875rem; line-height: 1.7; }

/* ===================================
   CONTACT
   =================================== */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.contact-info > p {
    color: #a1a1aa;
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 1.5rem;
}

.social-links { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 1.5rem; }

.social-link {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    transition: border-color var(--transition-fast), background var(--transition-fast);
}

.social-link:hover { background: var(--bg-card-hover); border-color: var(--text-dim); transform: none; }

.social-link svg {
    width: 36px; height: 36px;
    padding: 7px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.social-link.discord  svg { color: var(--discord); border-color: rgba(88,101,242,0.3); background: rgba(88,101,242,0.08); }
.social-link.youtube  svg { color: #ff0000; border-color: rgba(255,0,0,0.2); background: rgba(255,0,0,0.06); }
.social-link.telegram svg { color: #0088cc; border-color: rgba(0,136,204,0.2); background: rgba(0,136,204,0.06); }

.social-link.discord-status         { cursor: default; }
.social-link.discord-status:hover   { transform: none; }

.discord-avatar-container { position: relative; flex-shrink: 0; }

.discord-avatar { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--border); }

.discord-status-indicator {
    position: absolute;
    bottom: 0; right: 0;
    width: 12px; height: 12px;
    border-radius: 50%;
    border: 2px solid var(--bg-card);
    background: var(--text-dim);
}

.discord-status-indicator.online  { background: #23a55a; box-shadow: 0 0 6px rgba(35,165,90,0.5); }
.discord-status-indicator.idle    { background: #f0b232; box-shadow: 0 0 6px rgba(240,178,50,0.5); }
.discord-status-indicator.dnd     { background: #f23f43; box-shadow: 0 0 6px rgba(242,63,67,0.5); }
.discord-status-indicator.offline { background: var(--text-dim); box-shadow: none; }

.discord-status-text { font-size: 0.72rem; color: var(--text-muted); margin-top: 0.15rem; }
.discord-status-text.activity { color: var(--text-secondary); }

.social-label { font-size: 0.72rem; color: var(--text-dim); }
.social-value { font-weight: 500; font-size: 0.85rem; color: var(--text); }

/* Discord Widget */
.discord-widget-custom {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: none;
}

.discord-widget-custom::before { display: none; }

.discord-widget-header { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border-subtle); }

.discord-header-content { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }

.discord-icon {
    width: 38px; height: 38px;
    color: var(--discord);
    padding: 8px;
    background: rgba(88,101,242,0.08);
    border: 1px solid rgba(88,101,242,0.25);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.discord-widget-header h3 { font-size: 0.9rem; font-weight: 600; color: var(--text); margin: 0; }
.discord-subtitle { color: var(--text-muted); font-size: 0.78rem; margin: 0.15rem 0 0; }

.discord-stats { display: flex; gap: 0.5rem; }

.stat-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem 1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    flex: 1;
}

.stat-badge.online { border-color: rgba(34,197,94,0.3); background: rgba(34,197,94,0.04); }

.stat-badge .stat-number {
    font-family: var(--font-mono);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
    background: none;
    -webkit-text-fill-color: unset;
}

.stat-badge.online .stat-number { color: #22c55e; }

.stat-badge .stat-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.discord-widget-body {
    padding: 1rem 1.25rem;
    min-height: 260px;
    max-height: 360px;
    overflow-y: auto;
}

.discord-widget-body::-webkit-scrollbar { width: 4px; }
.discord-widget-body::-webkit-scrollbar-track { background: transparent; }
.discord-widget-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.members-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    gap: 0.75rem;
}

.loading-spinner {
    width: 24px; height: 24px;
    border: 2px solid var(--border);
    border-top-color: var(--text-muted);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.online-members { display: grid; gap: 0.4rem; }

.member-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0.7rem;
    background: var(--bg);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    transition: border-color var(--transition-fast), background var(--transition-fast);
}

.member-item:hover { background: var(--bg-card-hover); border-color: var(--border); transform: none; }

.member-avatar-container { position: relative; flex-shrink: 0; }

.member-avatar { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border); }

.member-status {
    position: absolute;
    bottom: -1px; right: -1px;
    width: 11px; height: 11px;
    border-radius: 50%;
    border: 2px solid var(--bg);
    background: #22c55e;
    box-shadow: none;
}

.member-status.idle { background: #f0b232; }
.member-status.dnd  { background: #f23f43; }

.member-info { flex: 1; min-width: 0; }

.member-name { font-weight: 500; font-size: 0.82rem; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.member-activity { font-size: 0.72rem; color: var(--text-muted); margin-top: 0.1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.member-activity.playing { color: var(--text-secondary); }

.discord-widget-footer { padding: 1rem 1.25rem; border-top: 1px solid var(--border-subtle); }

.discord-join-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.6rem 1rem;
    background: var(--discord);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.85rem;
    transition: opacity var(--transition-fast);
    box-shadow: none;
}

.discord-join-btn:hover { opacity: 0.85; transform: none; box-shadow: none; background: var(--discord); }
.discord-join-btn svg:last-child { transition: transform 0.2s ease; }
.discord-join-btn:hover svg:last-child { transform: translateX(3px); }

/* ===================================
   FOOTER
   =================================== */
.footer { background: var(--bg); border-top: 1px solid var(--border); padding: 2.5rem 0 1.5rem; }

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-subtle);
}

.footer-tagline { color: var(--text-muted); margin-top: 0.4rem; font-size: 0.8rem; }

.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }

.footer-column h4 { font-size: 0.85rem; font-weight: 600; color: var(--text); margin-bottom: 0.875rem; }

.footer-column a {
    display: block;
    color: #71717a;
    text-decoration: none;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    transition: color var(--transition-fast);
}

.footer-column a:hover { color: var(--text); transform: none; }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    color: var(--text-dim);
    font-size: 0.78rem;
}

.footer-disclaimer { text-align: right; max-width: 400px; }

/* ===================================
   SCROLL TO TOP
   =================================== */
.scroll-to-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 36px; height: 36px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-fast), visibility var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-to-top.visible { opacity: 1; visibility: visible; }
.scroll-to-top:hover { background: var(--bg-card-hover); color: var(--text); transform: none; }

/* ===================================
   USERS SECTION
   =================================== */
.users-section { background: var(--bg); }

.users-table-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-top: 2px solid var(--blue);
    border-radius: var(--radius);
    overflow: hidden;
    animation: fadeUp 0.3s ease;
}

.users-table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-subtle);
}

.users-table-header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.users-table-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
}

.users-count-badge {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--blue);
    background: var(--blue-muted);
    border: 1px solid var(--blue-border);
    border-radius: 999px;
    padding: 0.1em 0.6em;
    letter-spacing: 0.02em;
}

.users-refresh-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.users-refresh-btn:hover { background: var(--bg-card-hover); color: var(--text); border-color: var(--text-dim); }
.users-refresh-btn.spinning svg { animation: spin 0.7s linear infinite; }

.users-table-wrap { overflow-x: auto; }

.users-table {
    width: 100%;
    border-collapse: collapse;
}

.users-table thead th {
    background: transparent;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding: 0.65rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--border-subtle);
    white-space: nowrap;
}

.users-table tbody tr {
    border-bottom: 1px solid var(--border-subtle);
    transition: background var(--transition-fast);
}

.users-table tbody tr:last-child { border-bottom: none; }
.users-table tbody tr:hover { background: var(--bg-card-hover); }

.users-table tbody td {
    padding: 0.7rem 1.25rem;
    font-size: 0.8rem;
    color: var(--text);
    vertical-align: middle;
    white-space: nowrap;
}

.users-cell-username { font-weight: 600; }

.users-cell-display { color: var(--text-muted); }

.users-badge-executor {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 500;
    color: #93c5fd;
    background: var(--blue-muted);
    border: 1px solid var(--blue-border);
    border-radius: 999px;
    padding: 0.18em 0.6em;
}

.users-cell-ip {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-dim);
}

.users-cell-date {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
}

.users-cell-platform { font-size: 0.78rem; color: var(--text-muted); }

.users-cell-age {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
}

.users-loading-row td { padding: 3rem; }

.users-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: var(--text-dim);
    font-size: 0.82rem;
}

.users-spinner {
    width: 16px; height: 16px;
    border: 2px solid var(--border);
    border-top-color: var(--blue);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    flex-shrink: 0;
}

.users-error-row td {
    padding: 2.5rem;
    text-align: center;
    color: var(--red);
    font-size: 0.82rem;
}

.users-empty-row td {
    padding: 2.5rem;
    text-align: center;
    color: var(--text-dim);
    font-size: 0.82rem;
}

/* ===================================
   TEAM CARDS (Contact — FoxiHub API)
   =================================== */
.team-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
}

.team-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
}

.team-label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--blue);
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.team-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--green);
    background: rgba(34,197,94,0.08);
    border: 1px solid rgba(34,197,94,0.25);
    border-radius: 999px;
    padding: 0.12em 0.55em;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.team-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    animation: blink 2s ease infinite;
}

.team-cards {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.team-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color var(--transition-fast), background var(--transition-fast);
    animation: fadeUp 0.3s ease both;
}

.team-card:hover {
    border-color: var(--blue-border);
    background: var(--bg-card-hover);
}

.team-card-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
}

.team-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.team-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid var(--border);
    display: block;
    background: var(--bg);
    object-fit: cover;
    transition: border-color var(--transition-fast);
}

.team-card:hover .team-avatar { border-color: var(--blue-border); }

.team-status-dot {
    position: absolute;
    bottom: 1px;
    right: 1px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    border: 2px solid var(--bg-card);
    background: var(--text-dim);
}

.team-status-dot.online  { background: #23a55a; box-shadow: 0 0 6px rgba(35,165,90,0.5); }
.team-status-dot.idle    { background: #f0b232; box-shadow: 0 0 6px rgba(240,178,50,0.5); }
.team-status-dot.dnd     { background: #f23f43; box-shadow: 0 0 6px rgba(242,63,67,0.5); }
.team-status-dot.offline { background: var(--text-dim); box-shadow: none; }

.team-info { flex: 1; min-width: 0; }

.team-role {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.18rem;
}

.team-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.01em;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.team-activity {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 1rem;
}

.team-activity-spinner {
    width: 10px;
    height: 10px;
    border: 1.5px solid var(--border);
    border-top-color: var(--text-dim);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    flex-shrink: 0;
}

.team-activity.has-activity { color: var(--text-secondary); }
.team-activity.playing      { color: #93c5fd; }

/* ===================================
   RESPONSIVE — TABLET
   =================================== */
@media (max-width: 1024px) {
    .hero .container { gap: 2rem; }
    .hero-title { font-size: 3rem; }
    .section-title { font-size: 2.1rem; }
    .games-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===================================
   RESPONSIVE — MOBILE
   =================================== */
@media (max-width: 768px) {
    /* --- Nawigacja --- */
    .hamburger { display: flex; }

    .nav-menu {
        position: fixed;
        top: 56px; left: -100%;
        width: 100%;
        height: calc(100vh - 56px);
        background: var(--bg);
        border-top: 1px solid var(--border);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        transition: left var(--transition-slow);
        z-index: 999;
    }

    .nav-menu.active { left: 0; }

    .nav-link {
        font-size: 1rem;
        padding: 0.6rem 2rem;
        width: 100%;
        text-align: center;
    }

    /* --- Hero --- */
    .hero { height: auto; padding: 80px 1.25rem 3rem; align-items: center; min-height: 85vh; }
    .hero-center, .hero > .container { align-items: center; justify-content: center; padding-top: 0; }
    .hero-content { padding: 0 0.25rem; }
    .hero-title { font-size: 2.4rem; line-height: 1.05; margin-bottom: 0.85rem; }
    .hero-subtitle { font-size: 0.92rem; max-width: 100%; margin-bottom: 1.5rem; }
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
        gap: 0.75rem;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .status-indicators {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.75rem;
        justify-content: center;
    }

    /* --- Sekcje --- */
    .container { padding: 0 1rem; }
    section { padding: 3.5rem 0; }
    .section-title { font-size: 1.7rem; }
    .section-header { margin-bottom: 2rem; }

    /* --- Games grid --- */
    .games-grid { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
    .game-description { white-space: normal; font-size: 0.7rem; line-height: 1.4; }
    .game-thumb { aspect-ratio: 4/3; height: auto; }
    .game-body { padding: 0.6rem 0.7rem 0.75rem; }
    .game-thumb img { width: 100%; height: 100%; object-fit: cover; }
    .game-title { font-size: 0.78rem; }
    /* --- Gallery --- */
    .gallery-stats { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; margin-top: 1.5rem; }
    .slide-overlay { padding: 3rem 1rem 1rem; }
    .slide-title { font-size: 1rem; }
    .slide-description { font-size: 0.78rem; }
    .slider-btn { width: 32px; height: 32px; }

    /* Video controls — większe touch targety */
    .video-btn { padding: 0.5rem; }
    .play-pause-btn { width: 44px; height: 44px; }
    .volume-control { display: none; } /* ukryj suwak głośności na mobile */
    .custom-video-controls { padding: 0.75rem 1rem; opacity: 1; pointer-events: auto; }

    /* --- Executor --- */
    .executor-body { min-height: 180px; max-height: 260px; }
    .executor-toolbar { flex-wrap: wrap; gap: 0.35rem; }
    .toolbar-btn { padding: 0.3rem 0.55rem; font-size: 0.7rem; }
    .code-editor { font-size: 0.75rem; }
    .line-numbers { font-size: 0.72rem; padding: 1rem 0.4rem; min-width: 30px; }
    .executor-footer { flex-direction: column; gap: 0.35rem; align-items: flex-start; }
    .footer-info { gap: 0.75rem; flex-wrap: wrap; }
    .footer-hint { display: none; }

    /* --- Docs grid --- */
    .docs-grid { grid-template-columns: repeat(2, 1fr); }

    /* --- Contact --- */
    .contact-content { grid-template-columns: 1fr; gap: 2rem; }

    /* --- Discord widget --- */
    .discord-widget-header { padding: 1rem; }
    .discord-header-content { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
    .discord-stats { width: 100%; }
    .discord-widget-body { max-height: 280px; }

    /* --- Team cards --- */
    .team-cards { gap: 0.6rem; }
    .team-card-inner { padding: 0.9rem 1rem; }
    .team-avatar { width: 44px; height: 44px; }

    /* --- Scripts --- */
    .scripts-grid { grid-template-columns: 1fr; }
    .script-code-content { font-size: 0.72rem; }

    /* --- Footer --- */
    .footer-content { grid-template-columns: 1fr; gap: 2rem; }
    .footer-links   { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
    .footer-bottom  { flex-direction: column; gap: 0.75rem; text-align: center; }
    .footer-disclaimer { text-align: center; }
}

/* ===================================
   RESPONSIVE — SMALL MOBILE
   =================================== */
@media (max-width: 480px) {
    /* --- Hero --- */
    .hero-title { font-size: 2rem; }
    .section-title { font-size: 1.5rem; }
    .nav-brand { font-size: 0.82rem; }

    /* --- Games — 1 kolumna tylko na naprawdę małych --- */
    .games-grid { grid-template-columns: repeat(2, 1fr); }

    /* --- Gallery stats — 1 kolumna --- */
    .gallery-stats { grid-template-columns: 1fr; }

    /* --- Docs — 1 kolumna --- */
    .docs-grid { grid-template-columns: 1fr; }

    /* --- Footer links — stos pionowy --- */
    .footer-links { grid-template-columns: 1fr; gap: 1.25rem; }

    /* --- Sekcja hero — mniej paddingu --- */
    section { padding: 2.75rem 0; }

    /* --- Btn full width --- */
    .btn-lg { padding: 0.75rem 1.25rem; font-size: 0.9rem; }

    /* --- Social link wrap text --- */
    .social-value { font-size: 0.78rem; word-break: break-all; }

    /* --- Stat card compact --- */
    .stat-card { padding: 1.1rem; }
    .stat-value { font-size: 1.5rem; }
}

/* ===================================
   NOTIFICATIONS (keep functional)
   =================================== */
@keyframes notificationSlideIn {
    from { opacity: 0; transform: translateX(100%) translateY(-10px); }
    to   { opacity: 1; transform: translateX(0) translateY(0); }
}

@keyframes notificationSlideOut {
    from { opacity: 1; transform: translateX(0); }
    to   { opacity: 0; transform: translateX(100%); }
}

@keyframes notificationProgress {
    from { transform: scaleX(1); }
    to   { transform: scaleX(0); }
}
/* ===================================
   SCRIPTS SECTION
   =================================== */
.scripts-section {
    padding: 6rem 0;
    border-top: 1px solid var(--border-subtle);
}

.scripts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(480px, 100%), 1fr));
    gap: 1.25rem;
    margin-top: 3rem;
}

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

.script-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: border-color var(--transition-normal), background var(--transition-normal);
    animation: fadeUp 0.3s ease both;
    overflow: hidden;
    min-width: 0;
    max-width: 100%;
}

.script-card:hover {
    border-color: var(--text-dim);
    background: var(--bg-card-hover);
}

.script-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.script-icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.script-title-group {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.script-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.script-version {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1px 6px;
}

.script-status-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid transparent;
    flex-shrink: 0;
}

.script-status-badge.working {
    color: var(--green);
    background: rgba(34, 197, 94, 0.08);
    border-color: rgba(34, 197, 94, 0.2);
}

.script-status-badge .status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    animation: pulse 2s infinite;
}

.script-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.script-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.script-tag-item {
    font-size: 0.7rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 2px 7px;
    letter-spacing: 0.02em;
}

.script-code-block {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.script-code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.875rem;
    border-bottom: 1px solid var(--border);
}

.script-code-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.script-copy-btn {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-family: var(--font-display);
    font-weight: 500;
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 3px 10px;
    cursor: pointer;
    transition: color var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}

.script-copy-btn:hover {
    color: var(--text-primary);
    border-color: var(--text-dim);
    background: var(--bg-card);
}

.script-copy-btn.copied {
    color: var(--green);
    border-color: rgba(34, 197, 94, 0.3);
}

.script-code-content {
    padding: 0.875rem;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
    white-space: pre;
    word-break: break-all;
}

.script-code-content code {
    font-family: inherit;
}