:root {
    /* Abyssal V2 Color Palette */
    --bg-surface: #0a141a;
    --bg-mid: #050b0f;
    --bg-deep: #020507;
    --bg-abyss: #000000;
    --text-main: #e0f2f1;
    --text-muted: #93aab6;
    --accent: #00d2ff;
    --accent-hover: #0091ea;
    --accent-glow: rgba(0, 210, 255, 0.4);
    --glass-bg: rgba(5, 11, 15, 0.4);
    --border-color: rgba(0, 210, 255, 0.15);
    --panel-surface: rgba(7, 17, 23, 0.42);
    --panel-border: rgba(0, 210, 255, 0.16);
    --panel-border-strong: rgba(0, 210, 255, 0.34);
    --panel-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
    --panel-shadow-hover: 0 24px 58px rgba(0, 0, 0, 0.28), 0 0 24px rgba(0, 210, 255, 0.12);
    --interaction-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-right: env(safe-area-inset-right, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-left: env(safe-area-inset-left, 0px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body, html {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-main);
    background-color: #000;
    isolation: isolate; 
    min-height: 100%;
    min-height: 100svh;
    overflow: hidden; 
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    max-width: 100%;
}

/* Global Link Style - Fix for "Blue" links */
a {
    color: var(--accent);
    text-decoration: none;
    transition: all 0.3s ease;
}
a:hover {
    color: var(--accent-hover);
    text-shadow: 0 0 10px var(--accent-glow);
}

/* Typografia */
h1, h2, h3, h4 { text-transform: uppercase; letter-spacing: 3px; font-weight: 700; }
h2 {
    font-size: 3rem;
    margin-bottom: 3.5rem;
    text-align: center;
    color: #fff;
    letter-spacing: 6px;
    position: relative;
    text-shadow: 0 0 20px rgba(0, 210, 255, 0.3);
}
h2::after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    margin: 20px auto 0;
    box-shadow: 0 0 15px var(--accent);
}

/* Przyciski */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    text-decoration: none;
    color: #fff;
    font-weight: 800;
    border-radius: 4px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    letter-spacing: 1px;
}

.btn i,
.contact-link-v2 i,
.social-icon i {
    width: 1.2em;
    min-width: 1.2em;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    flex: 0 0 1.2em;
}
.btn-steam { background-color: rgba(27, 40, 56, 0.9); border: 1px solid #66c0f4; }
.btn-steam:hover { background-color: #66c0f4; color: #1b2838; box-shadow: 0 0 30px #66c0f4; }
.btn-kickstarter { background-color: rgba(5, 206, 120, 0.9); color: #000; }
.btn-kickstarter:hover { background-color: #05ce78; box-shadow: 0 0 30px #05ce78; }
.btn-primary { 
    background-color: #ffffff !important; 
    color: #000000 !important; 
    font-weight: 900 !important; 
    font-size: 1.4rem !important;
    padding: 22px 60px !important;
    box-shadow: 0 0 40px rgba(255,255,255,0.5) !important;
    border: 3px solid var(--accent) !important;
    border-radius: 4px;
}

/* Layout */
.container { max-width: 1300px; margin: 0 auto; padding: 0 40px; }
.section { padding: 150px 0; background: transparent !important; }

#main-header { position: fixed; top: 0 !important; left: 0; width: 100%; z-index: 999999; padding: 0; background: transparent; transition: all 0.5s ease; pointer-events: none; }
#main-header::before { content: ""; position: absolute; top: 0; left: 0; right: 0; background: linear-gradient(to bottom, rgba(5, 11, 15, 1) 0%, rgba(5, 11, 15, 0.95) 70%, transparent 100%); opacity: 0; transition: opacity 0.8s ease; z-index: -1; height: 130px; }
#main-header.scrolled::before { opacity: 1; }
.header-container { max-width: 1600px; width: 100%; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 0 60px; position: relative; height: 100%; pointer-events: auto; }
.header-logo { height: 117px; width: auto; max-width: 400px; object-fit: contain; }
.header-page-title {
      font-size: 2.5rem;
      font-weight: 900;
      letter-spacing: 6px;
      color: var(--accent);
      text-transform: uppercase;
      text-shadow: 0 0 20px var(--accent);
      text-align: center;
      margin: 40px auto 0; /* Dodano 40px marginesu od góry, by obniżyć napis */
      width: 100%;
      position: relative;
      pointer-events: auto;
      white-space: normal;
      z-index: 10;
  }
.header-right { display: flex; align-items: center; gap: 30px; }
.nav-links { list-style: none; display: flex; gap: 25px; align-items: center; }
.nav-links a { color: #fff; text-decoration: none; font-size: 1.1rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; transition: all 0.3s ease; opacity: 0.7; }
.nav-links a:hover, .nav-links a.active { color: var(--accent); opacity: 1; text-shadow: 0 0 10px var(--accent); }
.language-switch { font-weight: 700; font-size: 0.9rem; }
.language-switch span { cursor: pointer; transition: all 0.3s; padding: 5px; opacity: 0.6; }
.language-switch span.active { color: var(--accent); opacity: 1; text-shadow: 0 0 8px var(--accent); }

.parallax-wrapper { height: 100vh; height: 100svh; min-height: 100vh; min-height: 100svh; overflow-x: hidden; overflow-y: auto; overscroll-behavior-y: none; display: flex; flex-direction: column; margin: 0 !important; padding: 0 !important; background-color: transparent !important; }
.parallax-bg.layer-0 { 
      position: fixed !important; 
      top: -40px !important; 
      left: 0 !important; 
      width: 100% !important;
      height: 300% !important; /* Wysoko pod format standardowy */
      height: calc(300% + 48px) !important;
      z-index: -1 !important;
      pointer-events: none !important;
      background-image: url("../home-bg-mobile-final.png");
      background-size: cover;
      background-repeat: no-repeat;
      background-position: center top;
      background-color: #000;
      will-change: transform;
      transform: translate3d(0, 0, 0); /* Wymuszenie akceleracji GPU */
  }.content { z-index: 10; position: relative; flex: 1 0 auto; display: flex; flex-direction: column; background-color: transparent !important; min-height: 100%; }

.hero { min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 120px; background: transparent !important; }
.game-title { font-size: 7rem; letter-spacing: 12px; text-shadow: 0px 0px 40px rgba(0, 210, 255, 0.4), 0 10px 20px #000; }
.elevator-pitch { font-size: 1.6rem; max-width: 900px; margin: 0 auto 60px; opacity: 0.9; text-align: center; line-height: 1.6; }
.hero-cta { display: flex; gap: 60px; justify-content: center; }
.cta-wrapper { display: flex; flex-direction: column; align-items: center; gap: 15px; }
.cta-subtext { font-size: 0.9rem; color: var(--accent); text-transform: uppercase; letter-spacing: 3px; font-weight: 700; text-shadow: 0 0 15px var(--accent-glow); opacity: 0.9; }

.feature-card { background: rgba(10, 20, 26, 0.3) !important; padding: 40px 30px; border-radius: 4px; border: 1px solid var(--border-color); transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.feature-card:hover { transform: translateY(-15px) scale(1.03); border-color: var(--accent); background: rgba(10, 25, 35, 0.6) !important; box-shadow: 0 0 30px rgba(0, 210, 255, 0.2); }
.feature-card h3 { color: var(--accent); margin-bottom: 20px; font-size: 1.8rem; text-shadow: 0 0 10px var(--accent-glow); text-align: center; width: 100%; }
.feature-card p { line-height: 1.7; color: var(--text-main); opacity: 0.9; text-align: justify; width: 100%; }

.newsletter { text-align: center; background: transparent !important; }
.newsletter-wrapper { max-width: 700px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.newsletter-form { margin-top: 40px; display: flex; flex-direction: column; align-items: center; width: 100%; gap: 15px; }
.newsletter-form input[type="email"] { padding: 18px 30px; width: 400px; background: rgba(4, 16, 24, 0.68); border: 1px solid var(--border-color); color: #fff; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18); }
.newsletter-form input[type="email"]::placeholder { color: rgba(255, 255, 255, 0.9); opacity: 1; font-weight: 600; letter-spacing: 0.02em; }
.newsletter-status { width: 100%; max-width: 620px; min-height: 1.4em; margin-top: 4px; font-size: 0.82rem; line-height: 1.45; text-align: center; color: var(--text-muted); }
.newsletter-status[data-state="pending"] { color: rgba(235, 244, 255, 0.92); }
.newsletter-status[data-state="success"] { color: #dffcf6; text-shadow: 0 0 12px rgba(0, 210, 255, 0.25); }
.newsletter-status[data-state="error"] { color: #ffd8d8; text-shadow: 0 0 10px rgba(255, 92, 92, 0.18); }
.newsletter-form .btn-primary:disabled { opacity: 0.72; cursor: wait; transform: none !important; box-shadow: 0 0 18px rgba(255,255,255,0.18) !important; }

.privacy-consent-checkbox input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    flex: 0 0 auto;
    display: inline-block !important;
    width: 20px !important;
    min-width: 20px !important;
    max-width: 20px !important;
    height: 20px !important;
    min-height: 20px !important;
    max-height: 20px !important;
    margin: 0 !important;
    border: 1px solid var(--border-color);
    background: rgba(0, 210, 255, 0.05);
    border-radius: 3px;
    position: relative;
    cursor: pointer;
    box-sizing: border-box;
    vertical-align: top;
    overflow: hidden;
}

.privacy-consent-checkbox input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 46%;
    width: 5px;
    height: 10px;
    border-right: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    transform: translate(-50%, -50%) rotate(45deg);
}

.privacy-consent { color: var(--text-muted); font-size: 0.9rem; line-height: 1.4; }
.privacy-consent a { color: var(--accent) !important; text-decoration: underline !important; font-weight: 700; }

.timeline-v1 { position: relative; max-width: 1500px; margin: 100px auto; background: transparent !important; }
.timeline-v1::after { content: ""; position: absolute; width: 2px; background: linear-gradient(to bottom, transparent, var(--accent), transparent); top: 0; bottom: 0; left: 50%; transform: none; margin-left: -1px; box-shadow: 0 0 15px var(--accent-glow); }
.timeline-item { padding: 40px 100px; position: relative; min-height: 150px; display: flex; flex-direction: column; justify-content: center; }
.timeline-item::after { content: ""; position: absolute; width: 22px; height: 22px; background-color: #000; border: 4px solid var(--accent); border-radius: 50%; z-index: 15; top: 50%; transform: translateY(-50%); box-shadow: 0 0 20px var(--accent); transition: box-shadow 0.3s ease, border-color 0.3s ease, background-color 0.3s ease; }
.timeline-content { padding: 35px; background: rgba(5, 11, 15, 0.4) !important; border: 1px solid var(--border-color); border-radius: 2px; }

.faq-item { background: rgba(10, 20, 26, 0.3) !important; border: 1px solid var(--border-color); border-radius: 4px; overflow: hidden; transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1); display: flex; flex-direction: column; }
.faq-question { width: 100%; padding: 35px 80px 35px 35px; background: transparent !important; border: none; color: #fff; font-size: 1.25rem; font-weight: 700; cursor: pointer; display: flex; justify-content: space-between; align-items: center; text-align: left; position: relative; flex-grow: 1; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.6s ease; background: transparent !important; }
.faq-answer p { padding: 0 40px 40px 40px; color: var(--text-muted); line-height: 1.8; text-align: left; margin: 0; }

.devlog-card { background: rgba(10, 20, 26, 0.3) !important; border: 1px solid var(--border-color); padding: 60px 45px; height: 100%; transition: all 0.4s ease; display: flex; flex-direction: column; justify-content: center; align-items: center; text-decoration: none !important; }
.devlog-card h3 { color: var(--accent); margin-bottom: 15px; text-align: center; transition: all 0.3s; }
.devlog-card .date { color: var(--text-muted); font-size: 0.9rem; font-weight: 600; }

/* Nawigacja Boczna (Dziennik) - Poprawiona dla Mobile */
.side-nav {
    position: fixed;
    z-index: 1000000;
    background: rgba(10, 20, 26, 0.9);
    color: var(--accent);
    padding: 12px 20px;
    text-decoration: none;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(15px);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    bottom: 20px;
    border-radius: 4px;
}

.side-nav.left { 
    left: 15px; 
}

.side-nav.right { 
    right: 15px; 
}

.side-nav:hover {
    background: var(--accent);
    color: #000;
    box-shadow: 0 0 20px var(--accent-glow);
}

.footer { background: #000 !important; padding: 20px 0 !important; text-align: center; position: relative; z-index: 9999; width: 100%; border-top: 1px solid var(--border-color); }
body.subpage .footer-spacer {
    flex: 0 0 clamp(24px, 5vh, 48px);
    width: 100%;
    position: relative;
    z-index: 20;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.08) 30%,
        rgba(0, 0, 0, 0.24) 70%,
        rgba(0, 0, 0, 0.42) 100%
    );
}
body.subpage .footer-spacer::after {
    display: none;
}
body.subpage .footer {
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.28) 0%,
        rgba(0, 0, 0, 0.5) 35%,
        rgba(0, 0, 0, 0.72) 100%
    ) !important;
    border-top: none;
    box-shadow: none;
}
.press-kit-page .section:last-of-type {
    padding-bottom: 28px;
}

.press-kit-page .box.card {
    aspect-ratio: auto !important;
    min-height: clamp(180px, 30vh, 240px);
    padding: 24px !important;
}

.press-kit-page .box.card .gallery-item {
    aspect-ratio: auto !important;
    height: auto !important;
    max-height: min(160px, 22vh);
    object-fit: contain !important;
}

.press-kit-page .footer {
    padding-bottom: calc(28px + var(--safe-bottom)) !important;
}
.footer-links { display: flex; justify-content: center; gap: 20px; margin-bottom: 20px; }
.footer-links a { color: #fff !important; font-size: 0.9rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; }
.social-icons { display: flex; justify-content: center; gap: 20px; margin-bottom: 20px; }
.social-icon { color: #fff !important; font-size: 2rem !important; transition: all 0.3s; }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 30px; margin-top: 40px; }
.gallery-item { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16/9; border-radius: 4px; border: 1px solid var(--border-color); cursor: pointer; transition: transform 0.4s, border-color 0.4s; }

.contact-container-v2 { max-width: 800px; margin: 40px auto; background: rgba(10, 20, 26, 0.3) !important; border: 1px solid var(--border-color); padding: 60px; border-radius: 4px; }
.contact-list-v2 { display: flex; flex-direction: column; gap: 40px; }
.contact-item-v2 { display: flex; flex-direction: column; align-items: center; }
.contact-label-v2 { font-size: 1.2rem; color: var(--accent); margin-bottom: 15px; text-transform: uppercase; font-weight: 700; letter-spacing: 2px; }
.contact-link-v2 { color: var(--text-main); text-decoration: none; font-size: 1.5rem; display: flex; align-items: center; gap: 15px; transition: all 0.3s; }
.contact-icon-v2 { color: var(--accent); font-size: 1.8rem; }

/* POLISH LAYER */
.section {
    padding: clamp(104px, 12vh, 138px) 0;
}

.section h2 {
    margin-bottom: 2.8rem;
}

body.subpage #main-header::before {
    opacity: 1;
    height: 140px;
    background: linear-gradient(to bottom, rgba(2, 7, 10, 0.98) 0%, rgba(2, 7, 10, 0.9) 58%, transparent 100%);
}

.feature-card,
.timeline-content,
.faq-item,
.devlog-card,
.contact-container-v2 {
    background: var(--panel-surface) !important;
    border-color: var(--panel-border) !important;
    box-shadow: var(--panel-shadow);
}

.box.card {
    border: 1px solid var(--panel-border) !important;
    box-shadow: var(--panel-shadow);
}

.gallery-item {
    border-color: var(--panel-border);
    box-shadow: var(--panel-shadow);
}

.feature-card p {
    color: rgba(224, 242, 241, 0.9);
    opacity: 1;
}

.faq-answer p,
.devlog-card .date,
.timeline-content ul,
.timeline-content li,
.privacy-consent,
.contact-container-v2 p {
    color: var(--text-muted);
}

.btn,
.feature-card,
.devlog-card,
.gallery-item,
.footer-links a,
.social-icon,
.contact-link-v2 {
    transition:
        transform 0.38s var(--interaction-ease),
        box-shadow 0.38s var(--interaction-ease),
        border-color 0.38s var(--interaction-ease),
        background-color 0.38s var(--interaction-ease),
        color 0.3s ease,
        opacity 0.3s ease;
}

.feature-card:hover,
.devlog-card:hover,
.gallery-item:hover {
    transform: translateY(-8px) scale(1.012);
    border-color: var(--panel-border-strong) !important;
    box-shadow: var(--panel-shadow-hover);
}

.btn:hover {
    transform: translateY(-3px);
}

.btn-steam:hover,
.btn-kickstarter:hover {
    transform: translateY(-4px);
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.03);
}

.hero-cta .btn-steam {
    border-color: rgba(102, 192, 244, 0.75);
    box-shadow: 0 16px 36px rgba(102, 192, 244, 0.18);
}

.hero-cta .btn-kickstarter {
    background-color: rgba(5, 206, 120, 0.78);
    border: 1px solid rgba(5, 206, 120, 0.38);
    box-shadow: 0 12px 28px rgba(5, 206, 120, 0.12);
    opacity: 0.92;
}

.cta-subtext {
    opacity: 0.82;
    letter-spacing: 2px;
}

.footer-links a {
    color: rgba(224, 242, 241, 0.78) !important;
    opacity: 0.82;
}

.footer-links a:hover {
    color: #fff !important;
    opacity: 1;
    transform: translateY(-2px);
}

.social-icon {
    color: rgba(224, 242, 241, 0.78) !important;
    font-size: 1.8rem !important;
}

.social-icon:hover {
    transform: translateY(-2px) scale(1.05);
}

.reveal-on-scroll {
    opacity: 0;
    transition: opacity 0.42s var(--interaction-ease);
    will-change: opacity;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .reveal-on-scroll {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        transition: none !important;
    }
}

/* --- DESKTOP SPECIFIC --- */
@media screen and (min-width: 951px) {
    .features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 35px; margin: 40px auto 0; }
    .feature-card { aspect-ratio: 1 / 1; }
    .timeline-item { width: 50%; }
    .timeline-item:nth-child(odd) { left: 0; text-align: right; }
    .timeline-item:nth-child(even) { left: 50%; text-align: left; }
    .timeline-item:not(:first-child) { margin-top: -80px; }
    .timeline-item:nth-child(odd)::after { left: calc(100% - 15px); right: auto; transform: translateY(-50%); }
    .timeline-item:nth-child(even)::after { left: -15px; transform: translateY(-50%); }
    .faq-container { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
    .devlog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 60px; margin-top: 50px; }
}

/* --- MOBILE PORTRAIT --- */
@media screen and (max-width: 950px) and (orientation: portrait) {
    /* Hide Scrollbar */
    .parallax-wrapper { scrollbar-width: none !important; -ms-overflow-style: none !important; }
    .parallax-wrapper::-webkit-scrollbar { display: none !important; }
    
    html, body { overflow-x: hidden !important; width: 100% !important; max-width: 100% !important; position: relative; }
    .content { padding-top: 0 !important; }
    .container { padding: 0 15px !important; width: 100% !important; max-width: 100% !important; box-sizing: border-box; }
    .header-container { flex-direction: column !important; padding: calc(var(--safe-top) + 12px) max(15px, calc(var(--safe-right) + 15px)) 12px max(15px, calc(var(--safe-left) + 15px)) !important; height: auto !important; position: relative !important; }
    .header-logo { height: clamp(42px, 8vw, 48px) !important; margin: 0 auto 12px !important; display: block !important; }
    .nav-links { flex-wrap: wrap !important; justify-content: center !important; gap: 12px !important; }
    .nav-links a { font-size: 0.8rem !important; }
    .language-switch { position: absolute !important; top: calc(var(--safe-top) + 12px) !important; right: max(15px, calc(var(--safe-right) + 15px)) !important; font-size: 0.8rem !important; background: rgba(0, 0, 0, 0.5) !important; padding: 5px 10px !important; border-radius: 4px !important; border: 1px solid var(--border-color) !important; z-index: 100 !important; }
    .hero { height: auto !important; min-height: calc(100svh - 12px); padding: clamp(152px, 24svh, 190px) 15px 56px !important; display: flex; flex-direction: column; justify-content: center; align-items: center !important; }
    .game-title { font-size: clamp(1.55rem, 8vw, 2rem) !important; letter-spacing: clamp(2px, 0.7vw, 3px) !important; margin-bottom: 20px !important; text-align: center !important; width: 100% !important; display: block !important; }
    .elevator-pitch { font-size: clamp(0.94rem, 3.8vw, 1.02rem) !important; line-height: 1.5 !important; margin: 0 auto 30px !important; max-width: min(92vw, 640px) !important; }
    .hero-cta { flex-direction: column !important; align-items: center !important; gap: 15px !important; width: 100% !important; }
    
    /* Przyciski CTA Portrait */
    .hero-cta .btn { 
        width: min(100%, 280px) !important; 
        max-width: 100% !important;
        height: 54px !important;
        display: inline-flex !important;
        justify-content: center !important; 
        align-items: center !important;
        padding: 0 20px !important; 
        font-size: 0.9rem !important; 
        gap: 12px !important;
        position: relative !important;
    }

    .hero-cta .btn i {
        font-size: 1.2rem !important;
        line-height: 1 !important;
        flex: 0 0 auto !important;
    }

    .hero-cta .btn span {
        line-height: 1.05 !important;
        text-align: center !important;
    }

    
    /* Newsletter Portrait */
    .newsletter-form div[style*="display: flex"] { flex-direction: row !important; width: 100% !important; align-items: stretch !important; gap: 8px !important; flex-wrap: nowrap !important; }
    .newsletter-form input[type="email"] { flex: 1 !important; min-width: 0 !important; width: auto !important; padding: 10px 12px !important; font-size: 0.85rem !important; height: 45px !important; margin-bottom: 0 !important; }
    .newsletter-form .btn-primary { width: auto !important; flex: 0 0 auto !important; padding: 0 15px !important; font-size: 0.85rem !important; height: 45px !important; min-height: auto !important; white-space: nowrap !important; }
    
    .privacy-consent-checkbox { 
        display: flex !important; 
        align-items: flex-start !important; 
        gap: 10px !important; 
        margin-top: 15px !important;
        text-align: left !important;
    }
    .privacy-consent-checkbox input[type="checkbox"] { 
        flex-shrink: 0 !important; 
        margin: 0 !important;
        display: inline-block !important;
        width: 20px !important; 
        min-width: 20px !important;
        max-width: 20px !important;
        height: 20px !important;
        min-height: 20px !important;
        max-height: 20px !important;
        appearance: none; -webkit-appearance: none;
        border: 1px solid var(--border-color); background: rgba(0, 210, 255, 0.05); border-radius: 3px; position: relative; cursor: pointer;
        box-sizing: border-box;
        vertical-align: top;
        overflow: hidden;
    }
    .privacy-consent-checkbox input[type="checkbox"]:checked::after { content: ""; position: absolute; left: 50%; top: 46%; width: 5px; height: 10px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: translate(-50%, -50%) rotate(45deg); }
    .privacy-consent { font-size: 0.8rem !important; margin: 0 !important; line-height: 1.3 !important; }

    .devlog-grid { display: flex !important; flex-direction: column !important; gap: 15px !important; }
    .devlog-card-link { text-decoration: none !important; display: flex !important; }
    .devlog-card { padding: 15px 15px !important; height: 90px !important; width: 100% !important; display: flex !important; flex-direction: column !important; justify-content: center !important; align-items: center !important; }
    .devlog-card h3 { font-size: 0.9rem !important; margin-bottom: 4px !important; line-height: 1.2 !important; }
    .devlog-card .date { font-size: 0.7rem !important; }
    
    /* Powikszenie dolnego przycisku Wishlisty */
    section:last-of-type .btn-steam { width: min(100%, 300px) !important; padding: 0 25px !important; height: 60px !important; font-size: 1.05rem !important; }
    
    .section { padding: 56px 0 !important; }
    h2 { font-size: 1.6rem !important; margin-bottom: 30px !important; letter-spacing: 3px !important; }
    .header-page-title { font-size: 1.7rem !important; letter-spacing: 3px !important; margin-top: 26px !important; }
    body.subpage .content > .section:first-of-type { padding-top: calc(108px + var(--safe-top)) !important; }
    body.subpage .subpage-hero { padding-top: calc(122px + var(--safe-top)) !important; padding-bottom: 28px !important; }
    body.subpage .content > .section:first-of-type > .container { padding-top: 0 !important; }
    body.subpage .subpage-hero h2,
    body.subpage .content > .section:first-of-type > .container > h2:first-child { margin-top: 12px !important; }
    .features-grid { grid-template-columns: 1fr !important; gap: 20px !important; }
    .feature-card { aspect-ratio: auto !important; padding: 30px 20px !important; }
    .faq-container { grid-template-columns: 1fr !important; gap: 15px !important; }
    /* Roadmap Portrait Fix */
    .timeline-v1::after { left: 30px !important; transform: none !important; margin-left: -1px !important; }
    .timeline-item { width: 100% !important; left: 0 !important; padding: 20px 10px 20px 60px !important; text-align: left !important; }
    .timeline-item::after { 
        content: "" !important; 
        position: absolute !important; 
        top: 50% !important; 
        left: 20px !important; 
        transform: translateY(-50%) !important; 
        width: 16px !important; 
        height: 16px !important; 
        background-color: #000 !important; 
        border: 2px solid var(--accent) !important; 
        border-radius: 50% !important; 
        z-index: 35 !important; 
        display: block !important; 
    }
    .timeline-item:nth-child(even)::after, .timeline-item:nth-child(odd)::after { 
        left: 20px !important; 
        right: auto !important;
    }
    
    .contact-container-v2 { padding: 30px 15px !important; }
    .contact-link-v2 { font-size: 1rem !important; flex-direction: column !important; text-align: center !important; }
    .gallery-grid { grid-template-columns: 1fr !important; }
    .press-kit-page .gallery-grid { gap: 18px !important; }
    .press-kit-page .box.card { min-height: 180px !important; padding: 20px !important; }
    .press-kit-page .box.card .gallery-item { max-height: 116px !important; }
    
    .footer { padding: 15px 0 calc(15px + var(--safe-bottom)) !important; }
    .footer-links { flex-direction: row !important; gap: 15px !important; align-items: center !important; flex-wrap: nowrap !important; margin-bottom: 10px !important; justify-content: center !important; }
    .footer-links a { font-size: 0.7rem !important; letter-spacing: 1px !important; }
    .social-icons { gap: 15px !important; margin-bottom: 10px !important; }
    .social-icon { font-size: 1.4rem !important; }
    .copyright { font-size: 0.7rem !important; }
}

/* --- MOBILE LANDSCAPE --- */
@media screen and (max-width: 950px) and (orientation: landscape) {
    /* Hide Scrollbar */
    .parallax-wrapper { scrollbar-width: none !important; -ms-overflow-style: none !important; }
    .parallax-wrapper::-webkit-scrollbar { display: none !important; }
    
    /* Header Fix: Wymuszenie jednej linii */
    .header-container { flex-direction: row !important; padding: calc(var(--safe-top) + 6px) max(20px, calc(var(--safe-right) + 20px)) 6px max(20px, calc(var(--safe-left) + 20px)) !important; justify-content: space-between !important; align-items: center !important; height: auto !important; min-height: 85px !important; }
    .header-logo { height: 60px !important; margin: 0 !important; }
    .nav-links { flex-direction: row !important; gap: 22px !important; flex-wrap: nowrap !important; }
    .nav-links a { font-size: 0.9rem !important; font-weight: 800 !important; white-space: nowrap !important; }
    .language-switch { position: static !important; font-size: 0.9rem !important; margin-left: 15px; }
    
    .content { padding-top: 0 !important; }
    .section { padding: 44px 0 !important; }
    .hero { min-height: 100svh !important; padding: clamp(108px, 24svh, 130px) 16px 36px !important; display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: center !important; }
    
    /* Przyciski CTA w Landscape */
    .hero-cta { flex-direction: row !important; gap: 15px !important; justify-content: center !important; width: 100% !important; }
    .hero-cta .btn { 
        width: min(100%, 260px) !important; 
        max-width: 100% !important;
        height: 54px !important;
        display: inline-flex !important;
        justify-content: center !important; 
        align-items: center !important;
        padding: 0 20px !important; 
        font-size: 0.9rem !important; 
        gap: 12px !important;
        position: relative !important;
    }

    .hero-cta .btn i {
        font-size: 1.15rem !important;
        line-height: 1 !important;
        flex: 0 0 auto !important;
    }

    .hero-cta .btn span {
        line-height: 1.05 !important;
        text-align: center !important;
    }

    .cta-subtext { font-size: 0.7rem !important; }
    .elevator-pitch { font-size: 0.85rem !important; max-width: min(82%, 720px) !important; margin-bottom: 20px !important; }
    .game-title { font-size: clamp(1.6rem, 5vw, 2rem) !important; letter-spacing: 3px !important; margin-top: 20px !important; text-align: center !important; width: 100% !important; display: block !important; }
    h2 { letter-spacing: 3px !important; }
    .header-page-title { font-size: 1.75rem !important; letter-spacing: 3px !important; margin-top: 18px !important; }
    body.subpage .content > .section:first-of-type { padding-top: calc(94px + var(--safe-top)) !important; }
    body.subpage .subpage-hero { padding-top: calc(104px + var(--safe-top)) !important; padding-bottom: 22px !important; }
    body.subpage .content > .section:first-of-type > .container { padding-top: 0 !important; }
    body.subpage .subpage-hero h2,
    body.subpage .content > .section:first-of-type > .container > h2:first-child { margin-top: 10px !important; }
    .hero-content { width: 100% !important; display: flex !important; flex-direction: column !important; align-items: center !important; }
    
    /* Newsletter Landscape */
    .newsletter-form div[style*="display: flex"] { flex-direction: row !important; width: 100% !important; align-items: stretch !important; gap: 8px !important; flex-wrap: nowrap !important; }
    .newsletter-form input[type="email"] { flex: 1 !important; min-width: 0 !important; width: auto !important; padding: 8px 12px !important; font-size: 0.8rem !important; height: 35px !important; margin-bottom: 0 !important; }
    .newsletter-form .btn-primary { width: auto !important; flex: 0 0 auto !important; padding: 0 15px !important; font-size: 0.8rem !important; height: 35px !important; min-height: auto !important; white-space: nowrap !important; }
    
    .privacy-consent-checkbox { display: flex !important; align-items: flex-start !important; gap: 10px !important; margin-top: 10px !important; text-align: left !important; }
    .privacy-consent-checkbox input[type="checkbox"] { 
        flex-shrink: 0 !important; display: inline-block !important; width: 18px !important; min-width: 18px !important; max-width: 18px !important; height: 18px !important; min-height: 18px !important; max-height: 18px !important; appearance: none; -webkit-appearance: none;
        border: 1px solid var(--border-color); background: rgba(0, 210, 255, 0.05); border-radius: 3px; position: relative; cursor: pointer;
        box-sizing: border-box;
        vertical-align: top;
        overflow: hidden;
    }
    .privacy-consent-checkbox input[type="checkbox"]:checked::after { content: ""; position: absolute; left: 50%; top: 46%; width: 4px; height: 8px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: translate(-50%, -50%) rotate(45deg); }
    .privacy-consent { font-size: 0.75rem !important; margin: 0 !important; line-height: 1.3 !important; }

    /* Dziennik Landscape */
    .devlog-grid { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 15px !important; }
    .devlog-card { padding: 15px 15px !important; height: 90px !important; width: 100% !important; display: flex !important; flex-direction: column !important; justify-content: center !important; align-items: center !important; }
    .devlog-card h3 { font-size: 0.85rem !important; margin-bottom: 4px !important; line-height: 1.2 !important; }
    .devlog-card .date { font-size: 0.7rem !important; }

    /* Roadmap Landscape Fix */
    .timeline-v1 { margin: 40px auto !important; padding: 0 !important; width: 100% !important; position: relative !important; }
    .timeline-v1::after { left: 50% !important; transform: none !important; margin-left: -1px !important; width: 2px !important; display: block !important; top: 0 !important; bottom: 0 !important; }
    .timeline-item { width: 50% !important; padding: 10px 30px !important; margin: 0 !important; min-height: 80px !important; position: relative !important; display: flex !important; flex-direction: column; }
    .timeline-item:nth-child(odd) { left: 0 !important; text-align: right !important; align-items: flex-end !important; }
    .timeline-item:nth-child(even) { left: 50% !important; text-align: left !important; align-items: flex-start !important; }
    .timeline-item:not(:first-child) { margin-top: -10px !important; }
    .timeline-item::after { content: "" !important; position: absolute !important; top: 50% !important; width: 14px !important; height: 14px !important; background-color: #000 !important; border: 2px solid var(--accent) !important; border-radius: 50% !important; z-index: 35 !important; display: block !important; transform: translateY(-50%) !important; }
    .timeline-item:nth-child(odd)::after { left: calc(100% - 9px) !important; }
    .timeline-item:nth-child(even)::after { left: -9px !important; }

    .timeline-content { 
        padding: 12px 18px !important; 
        width: 85% !important; 
        max-width: 280px !important; 
        background: rgba(5, 11, 15, 0.9) !important; 
        border: 1px solid var(--border-color) !important; 
        display: block !important; 
        box-shadow: 0 0 15px rgba(0, 210, 255, 0.1) !important;
    }
    .timeline-content h3 { font-size: 0.85rem !important; margin-bottom: 4px !important; }
    .timeline-content ul li { font-size: 0.75rem !important; margin-bottom: 2px !important; }
    
    .contact-container-v2 { padding: 25px !important; }
    .contact-link-v2 { font-size: 1.1rem !important; }
    .gallery-grid { grid-template-columns: 1fr 1fr !important; }
    .press-kit-page .gallery-grid { grid-template-columns: 1fr !important; gap: 18px !important; }
    .press-kit-page .box.card { min-height: 170px !important; padding: 20px !important; }
    .press-kit-page .box.card .gallery-item { max-height: 108px !important; }

    .footer { padding-bottom: calc(15px + var(--safe-bottom)) !important; }
    .footer-links { gap: 30px !important; }
    .social-icon { font-size: 2.2rem !important; }

    /* Powikszenie TYLKO dolnego przycisku Wishlisty w sekcji Join Us */
    section:last-of-type .btn-steam { 
        width: 300px !important; 
        padding: 0 25px !important; 
        height: 60px !important;
        font-size: 1rem !important; 
    }

    /* Fix dla ta w wersji lecej */
    .parallax-bg.layer-0 {
        height: 360% !important;
        background-position: center top !important;
    }
}

@media screen and (max-width: 950px) and (orientation: portrait) and (min-aspect-ratio: 9/16) {
    .header-container {
        padding-top: calc(var(--safe-top) + 10px) !important;
    }

    .header-logo {
        height: 40px !important;
        margin-bottom: 10px !important;
    }

    .hero {
        min-height: calc(100svh - 8px) !important;
        padding-top: clamp(136px, 22svh, 156px) !important;
        padding-bottom: 42px !important;
    }

    .game-title {
        font-size: clamp(1.48rem, 7.2vw, 1.82rem) !important;
        margin-bottom: 16px !important;
    }

    .elevator-pitch {
        font-size: 0.91rem !important;
        margin-bottom: 24px !important;
        max-width: min(94vw, 620px) !important;
    }

    .hero-cta {
        gap: 12px !important;
    }

    .hero-cta .btn {
        width: min(100%, 270px) !important;
        height: 50px !important;
        font-size: 0.84rem !important;
    }

    .cta-subtext {
        font-size: 0.76rem !important;
        letter-spacing: 1.6px !important;
    }
}

@media screen and (max-width: 950px) and (orientation: portrait) and (max-aspect-ratio: 10/19) {
    .header-container {
        padding-top: calc(var(--safe-top) + 10px) !important;
    }

    .header-logo {
        height: 40px !important;
        margin-bottom: 8px !important;
    }

    .hero {
        min-height: calc(100svh - 4px) !important;
        padding-top: clamp(132px, 19svh, 156px) !important;
        padding-bottom: 46px !important;
    }

    .game-title {
        font-size: clamp(1.28rem, 7.1vw, 1.66rem) !important;
        letter-spacing: 0.045em !important;
        line-height: 0.94 !important;
        max-width: 10.8ch !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .elevator-pitch {
        font-size: 0.86rem !important;
        line-height: 1.45 !important;
        max-width: min(88vw, 520px) !important;
        margin-bottom: 22px !important;
    }

    .hero-cta {
        gap: 12px !important;
    }

    .hero-cta .btn {
        width: min(100%, 258px) !important;
        height: 50px !important;
        font-size: 0.82rem !important;
        padding: 0 16px !important;
        gap: 10px !important;
    }

    .hero-cta .btn i {
        font-size: 1.05rem !important;
    }

    .cta-subtext {
        font-size: 0.72rem !important;
        letter-spacing: 0.12em !important;
    }
}

@media screen and (min-width: 500px) and (max-width: 620px) and (orientation: portrait) and (max-height: 820px) {
    .header-container {
        padding: calc(var(--safe-top) + 10px) max(14px, calc(var(--safe-right) + 14px)) 10px max(14px, calc(var(--safe-left) + 14px)) !important;
    }

    .header-logo {
        height: 36px !important;
        margin-bottom: 8px !important;
    }

    .nav-links {
        gap: 10px !important;
        row-gap: 6px !important;
    }

    .nav-links a {
        font-size: 0.72rem !important;
        letter-spacing: 0.02em !important;
    }

    .language-switch {
        font-size: 0.74rem !important;
        top: calc(var(--safe-top) + 10px) !important;
        right: max(14px, calc(var(--safe-right) + 14px)) !important;
        padding: 4px 8px !important;
    }

    .hero {
        min-height: calc(84svh - 4px) !important;
        padding: clamp(118px, 19svh, 142px) 14px 38px !important;
    }

    .game-title {
        font-size: clamp(1.22rem, 5.8vw, 1.55rem) !important;
        letter-spacing: 0.045em !important;
        line-height: 0.95 !important;
        margin-bottom: 14px !important;
        max-width: 9.5ch !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .elevator-pitch {
        font-size: 0.82rem !important;
        line-height: 1.42 !important;
        max-width: min(88vw, 500px) !important;
        margin-bottom: 18px !important;
    }

    .hero-cta {
        gap: 10px !important;
    }

    .hero-cta .btn {
        width: min(100%, 240px) !important;
        height: 48px !important;
        font-size: 0.8rem !important;
        padding: 0 14px !important;
    }

    .hero-cta .btn i {
        font-size: 0.98rem !important;
    }

    .cta-subtext {
        font-size: 0.68rem !important;
        letter-spacing: 0.12em !important;
    }
}

@media screen and (min-width: 360px) and (max-width: 430px) and (orientation: portrait) and (min-height: 780px) {
    .header-container {
        padding: calc(var(--safe-top) + 10px) max(14px, calc(var(--safe-right) + 14px)) 10px max(14px, calc(var(--safe-left) + 14px)) !important;
    }

    .header-logo {
        height: 38px !important;
        margin-bottom: 8px !important;
    }

    .nav-links {
        gap: 10px !important;
        row-gap: 6px !important;
    }

    .nav-links a {
        font-size: 0.76rem !important;
        letter-spacing: 0.03em !important;
    }

    .language-switch {
        top: calc(var(--safe-top) + 10px) !important;
        right: max(14px, calc(var(--safe-right) + 14px)) !important;
        font-size: 0.76rem !important;
        padding: 4px 9px !important;
    }

    .hero {
        min-height: calc(100svh - 6px) !important;
        padding-top: clamp(126px, 18svh, 148px) !important;
        padding-bottom: 42px !important;
    }

    .game-title {
        font-size: clamp(1.2rem, 6.3vw, 1.52rem) !important;
        letter-spacing: 0.045em !important;
        line-height: 0.92 !important;
        max-width: 11ch !important;
        margin-bottom: 14px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .elevator-pitch {
        font-size: 0.82rem !important;
        line-height: 1.4 !important;
        max-width: min(88vw, 480px) !important;
        margin-bottom: 18px !important;
    }

    .hero-cta {
        gap: 10px !important;
    }

    .hero-cta .btn {
        width: min(100%, 248px) !important;
        height: 48px !important;
        font-size: 0.78rem !important;
        padding: 0 14px !important;
        gap: 9px !important;
    }

    .hero-cta .btn i {
        font-size: 1rem !important;
    }

    .cta-subtext {
        font-size: 0.66rem !important;
        letter-spacing: 0.12em !important;
    }
}

@media screen and (max-width: 400px) {
    .game-title { font-size: 1.5rem !important; letter-spacing: 2px !important; }
    .nav-links a { font-size: 0.7rem !important; }
}
