/* ═══════════════════════════════════════════
   YDUCK MEDIA — Pixelart soft styl
   ═══════════════════════════════════════════ */

:root {
  /* Palette */
  --kachna: #ffda44;
  --raspberry: #e83e8c;
  --modra: #4dccff;
  --cerna: #111111;
  --bila: #ffffff;
  --papir: #fdf9f0;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-600: #4b5563;
  --gray-800: #1f2937;

  --header-bg: rgba(253, 249, 240, 0.9);
  --textura: url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.8' numOctaves='4' /%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23n)' opacity='.07'/%3E%3C/svg%3E");

  /* Typography — pixelart + soft */
  --font-pro: 'Inter', system-ui, sans-serif;
  --font-headline: 'Oswald', sans-serif;
  --font-comic: 'Comic Neue', cursive;
  --font-pixel: 'Silkscreen', monospace;
  --font-vt: 'VT323', monospace;

  /* Layout */
  --max-width: 1200px;
  --max-width-narrow: 720px;
  --section-py: 5rem;

  /* FUN ZONE – app plakáty: akcenty kanálů (báze karet v .app-card--*) */
  --fz-vestec: #f2b63d;   /* brass gold · báze #07312e */
  --fz-morpher: #ff5c8a;  /* magenta  · báze #10102a */
  --fz-morpher-b: #38e0ff;/* cyan pramen DNA */
  --fz-lov: #33ff66;      /* phosphor · báze #02120a */
  --fz-shot: #38bdf8;     /* arcade sky · báze #08243d */
  --fz-shot-red: #ff4d4d; /* muška */
  --fz-rss: #ffb020;      /* signal amber · báze #1c1103 */
  --fz-duck: #ff2bd6;     /* neon magenta · báze #0a0620 */
  --fz-duck-b: #00f0ff;   /* retro cyan trasa */
}

/* Dark mode */
body.dark-mode {
  --papir: #0a0a0a;
  --cerna: #e5e5e5;
  --bila: #1a1a1a;
  --gray-200: #333333;
  --gray-600: #d4d4d4;
  --header-bg: rgba(10, 10, 10, 0.9);
}

body.dark-mode::before { opacity: 0.03; filter: invert(1); }

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

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

:target { scroll-margin-top: 100px; }

body {
  font-family: var(--font-pro);
  background: var(--papir);
  color: var(--cerna);
  line-height: 1.6;
  transition: background 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul { list-style: none; }

/* ─── CRT ─── */
.crt-overlay {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  background:
    linear-gradient(rgba(0,0,0,0) 50%, rgba(0,0,0,0.05) 50%),
    linear-gradient(90deg, rgba(0,0,0,0.02), transparent);
  background-size: 100% 3px, 3px 100%;
  z-index: 0; pointer-events: none;
  opacity: 0.3;
}

/* ─── Background grid ─── */
.particles-container {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  z-index: -1; pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.012) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* ─── Skip link ─── */
.skip-link {
  position: absolute; top: -50px; left: 0;
  background: #000; color: #fff; padding: 10px 15px; z-index: 9999;
}
.skip-link:focus { top: 0; }

/* ─── Container ─── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: var(--max-width-narrow); }

/* ─── Section ─── */
.section { padding: var(--section-py) 0; position: relative; }
.section.alt-bg { background: var(--gray-100); }
body.dark-mode .section.alt-bg { background: #111; }
.section + .section::before {
  content: "";
  position: absolute; top: 0; left: 50%;
  width: 60%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--cerna), transparent);
  transform: translateX(-50%);
  opacity: 0.3;
}
.section-dark {
  background: #1a1a1a;
  color: #f0f0f0;
}
body.dark-mode .section-dark {
  background: #000;
  color: #e0e0e0;
}

/* ─── Section Header ─── */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-title {
  font-family: var(--font-headline);
  font-size: 3rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--cerna);
  margin-bottom: 0.5rem;
  letter-spacing: -1px;
  text-shadow: 4px 4px 0 var(--kachna);
}
body.dark-mode .section-title { color: #fff; text-shadow: 4px 4px 0 rgba(0,0,0,0.3); }
.section-title-light { color: #fff !important; text-shadow: 4px 4px 0 var(--kachna) !important; }
.section-subtitle {
  font-size: 1.05rem;
  color: var(--gray-600);
}
.section-subtitle-light { color: #aaa !important; }

/* ─── Pixel divider ─── */
.pixel-divider {
  position: relative; height: 4px; margin: 0; max-width: 100%;
  background: repeating-linear-gradient(90deg, var(--cerna), var(--cerna) 8px, transparent 8px, transparent 16px);
  opacity: 0.3;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-pro);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid var(--cerna);
  transition: all 0.15s ease;
  line-height: 1.2;
}
.btn-primary {
  background: var(--cerna);
  color: var(--bila);
  box-shadow: 4px 4px 0 rgba(0,0,0,0.15);
}
.btn-primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 rgba(0,0,0,0.15);
}
.btn-primary:active {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 rgba(0,0,0,0.15);
}

/* ─── Header ─── */
.header {
  background: var(--header-bg);
  border-bottom: 3px solid var(--cerna);
  position: fixed; top: 0; left: 0; width: 100%;
  z-index: 1000;
  padding: 0.8rem 0;
  transition: background 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-headline);
  font-size: 1.4rem;
  color: var(--cerna);
  text-decoration: none;
  line-height: 1.1;
  font-weight: 700;
}
.logo-icon {
  width: 44px; height: 44px;
  background: var(--kachna);
  border: 3px solid var(--cerna);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 1.6rem;
  color: #111;
  font-family: var(--font-pixel);
  transform: rotate(-3deg);
  transition: transform 0.2s ease;
}
.logo:hover .logo-icon { transform: rotate(10deg) scale(1.1); }
.logo-text { line-height: 1.1; }
.logo-sub {
  font-size: 0.7rem;
  letter-spacing: 2px;
  color: var(--gray-600);
  display: block;
  font-family: var(--font-pro);
  text-transform: uppercase;
}

/* ─── Nav ─── */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-link {
  display: inline-block;
  padding: 0.5rem 0.8rem;
  text-decoration: none;
  color: var(--cerna);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}
.nav-link:hover {
  color: var(--modra);
  background: var(--kachna);
  border-color: var(--cerna);
  transform: translate(-2px, -2px);
}
body.dark-mode .nav-link { color: #f0f0f0; }
body.dark-mode .nav-link:hover { color: var(--modra); background: var(--kachna); border-color: #000; }
.nav-cta {
  font-weight: 800;
  font-family: var(--font-headline);
  background: var(--kachna) !important;
  color: #111 !important;
  border: 2px solid var(--cerna) !important;
  box-shadow: 4px 4px 0 var(--cerna) !important;
}
.nav-cta:hover {
  background: var(--raspberry) !important;
  color: #fff !important;
  transform: translate(-2px, -2px) !important;
  box-shadow: 6px 6px 0 var(--cerna) !important;
}

/* Mobile menu */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}
.mobile-menu-btn span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--cerna);
  transition: 0.2s;
}
body.dark-mode .mobile-menu-btn span { background: #f0f0f0; }

.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.theme-btn {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  border: 2px solid var(--cerna);
  cursor: pointer;
  font-size: 1.1rem;
  box-shadow: 2px 2px 0 var(--cerna);
  transition: 0.15s;
}
.theme-btn:hover {
  background: var(--kachna);
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--cerna);
}

/* ─── HERO ─── */
.hero-video-wrapper {
  position: relative; width: 100%; height: 100vh; min-height: 600px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  border-bottom: 4px solid var(--cerna);
}
.hero-video-bg {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0; filter: contrast(1.1) brightness(0.9);
}
.hero-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1;
  animation: heroGradient 8s ease-in-out infinite alternate;
}
@keyframes heroGradient {
  0% { background-color: rgba(0,0,0,0.5); }
  50% { background-color: rgba(0,0,0,0.4); }
  100% { background-color: rgba(0,0,0,0.55); }
}
.hero-content-new {
  position: relative; z-index: 2;
  text-align: center; padding: 2rem; max-width: 1000px;
}

.hero-headline {
  font-family: var(--font-headline);
  font-size: 7rem; line-height: 0.9;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 6px 6px 0 #000;
  margin-bottom: 1.5rem;
  position: relative;
  animation: floatHead 6s infinite ease-in-out;
}
@keyframes floatHead {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.hero-headline::before, .hero-headline::after {
  content: "YDUCK MEDIA";
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0.8;
}
.hero-headline::before { color: var(--raspberry); z-index: -1; animation: glitch-anim-1 2.5s infinite linear alternate-reverse; }
.hero-headline::after { color: var(--modra); z-index: -2; animation: glitch-anim-2 3s infinite linear alternate-reverse; }
@keyframes glitch-anim-1 {
  0% { clip-path: inset(20% 0 80% 0); transform: translate(-2px, 2px); }
  20% { clip-path: inset(60% 0 10% 0); transform: translate(2px, -2px); }
  40% { clip-path: inset(10% 0 50% 0); transform: translate(-2px, 2px); }
  100% { clip-path: inset(80% 0 5% 0); transform: translate(2px, -2px); }
}
@keyframes glitch-anim-2 {
  0% { clip-path: inset(10% 0 60% 0); transform: translate(2px, -2px); }
  20% { clip-path: inset(80% 0 5% 0); transform: translate(-2px, 2px); }
  40% { clip-path: inset(30% 0 20% 0); transform: translate(2px, -2px); }
  100% { clip-path: inset(10% 0 80% 0); transform: translate(-2px, 2px); }
}

/* Animated logo — draw + fill */
.animated-logo { display: flex; justify-content: center; flex-wrap: wrap; gap: 0 0.25em; color: transparent; }
.hero-headline.animated-logo::before,
.hero-headline.animated-logo::after { display: none !important; }
.animated-logo .logo-word { display: inline-block; white-space: nowrap; }
.animated-logo .letter {
  display: inline-block;
  opacity: 0;
  color: transparent !important;
  -webkit-text-stroke: 1.5px rgba(255,255,255,0.45) !important;
  transform: translateY(12px) scale(0.92);
  transform-origin: bottom center;
}
.animated-logo .letter {
  animation:
    appearOutline 0.5s cubic-bezier(0.215,0.61,0.355,1) calc(var(--letter-index)*0.08s) forwards,
    fillLetter 0.6s cubic-bezier(0.25,1,0.5,1) calc(1.4s + var(--letter-index)*0.1s) forwards;
}
@keyframes appearOutline {
  0% { opacity: 0; transform: translateY(12px) scale(0.92); -webkit-text-stroke-color: rgba(255,255,255,0.3); }
  100% { opacity: 1; transform: translateY(0) scale(1); -webkit-text-stroke-color: rgba(255,255,255,0.75); }
}
@keyframes fillLetter {
  0% { color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,0.75); }
  50% { text-shadow: 0 0 15px var(--letter-color); }
  100% { color: var(--letter-color) !important; -webkit-text-stroke: 2px #000 !important; text-shadow: 6px 6px 0 #000; }
}

/* Tagline box */
.hero-tagline-box {
  display: inline-block;
  border: 3px solid var(--kachna);
  padding: 0.6rem 1.2rem;
  transform: rotate(-1deg);
  background: rgba(0,0,0,0.7);
  margin-bottom: 2rem;
}
.hero-tagline {
  font-family: var(--font-pixel);
  font-size: 1.2rem;
  color: var(--kachna);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin: 0;
}

/* Hero buttons */
.hero-btn {
  display: inline-block;
  font-family: var(--font-pixel);
  font-size: 1.1rem;
  text-decoration: none;
  padding: 1rem 2.5rem;
  border: 3px solid var(--cerna);
  transition: all 0.2s ease;
  text-align: center;
  cursor: pointer;
  position: relative;
}
.hero-btn:active { top: 4px; box-shadow: 0 0 0 !important; }
.hero-btn.primary {
  background: transparent;
  color: var(--kachna);
  border-color: var(--kachna);
  box-shadow: 8px 8px 0 var(--kachna);
  transform: rotate(-2deg);
}
.hero-btn.primary:hover {
  background: var(--kachna);
  color: #111;
  transform: scale(1.1) rotate(0deg);
  box-shadow: 12px 12px 0 var(--raspberry);
  border-color: var(--raspberry);
}
.hero-btn.secondary {
  background: transparent;
  color: #fff;
  border-color: #fff;
  box-shadow: 8px 8px 0 #fff;
  transform: rotate(2deg);
}
.hero-btn.secondary:hover {
  background: #fff;
  color: #000;
  transform: scale(1.1) rotate(0deg);
  box-shadow: 12px 12px 0 var(--kachna);
  border-color: var(--kachna);
}
.hero-buttons { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; }

.scroll-down {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  color: white; z-index: 3; font-family: var(--font-pixel); font-size: 0.8rem;
  animation: bounce 2s infinite; opacity: 0.8; cursor: pointer;
}
@keyframes bounce {
  0%,20%,50%,80%,100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

/* ─── ABOUT ─── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.about-video-wrap {
  width: 66.67%;
  margin: 0 auto;
  border: 4px solid var(--cerna);
  box-shadow: 8px 8px 0 var(--cerna);
  transform: rotate(0deg);
  transition: 0.3s ease;
  overflow: hidden;
}
.about-video-wrap:hover {
  transform: rotate(0deg) scale(1.02);
  box-shadow: 14px 14px 0 rgba(0,0,0,0.2);
}
.about-video { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; display: block; }
.about-text {
  font-size: 1.05rem;
  line-height: 1.7;
}
.about-text p { margin-bottom: 1rem; }
.about-signature {
  font-family: var(--font-comic);
  font-size: 1.2rem;
  color: var(--raspberry);
  margin-top: 1.5rem;
  transform: rotate(-1deg);
}

/* ─── PROJECTS ─── */
.projects-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1.5rem;
}
.project-card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  border: 3px solid var(--cerna);
  transition: all 0.2s ease;
}
.project-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: 10px 10px 0 var(--cerna);
  border-color: var(--raspberry);
}
.project-card-featured { grid-row: span 2; }
.project-card-img {
  overflow: hidden;
  aspect-ratio: 16/10;
  background: #ddd;
  border-bottom: 2px solid var(--cerna);
}
.project-card-img img { width: 100%; height: 100%; object-fit: cover; }
.project-card-body {
  padding: 1rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  background: var(--bila);
}
.section-dark .project-card-body {
  background: rgba(255,255,255,0.08);
}
.project-card-label {
  font-family: var(--font-pixel);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.6;
}
.project-card-title {
  font-family: var(--font-headline);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
}
.project-card-cta {
  font-family: var(--font-pixel);
  font-size: 0.75rem;
  margin-top: auto;
  color: var(--raspberry);
}
.project-card-desc {
  font-size: 0.85rem;
  opacity: 0.7;
  line-height: 1.4;
}

/* ─── VIDEOS ─── */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 2rem;
}

/* ─── PRESS ─── */
.press-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

/* ─── FUN ZONE — STEAM-LIKE GAME LIBRARY Redesign ─── */
.funzone-section {
  background: radial-gradient(ellipse at top, #1b2838 0%, #171a21 100%);
  color: #fff;
  position: relative;
  padding: 5rem 0;
  overflow: hidden;
}
body.dark-mode .funzone-section {
  background: radial-gradient(ellipse at top, #141f2a 0%, #0c0f14 100%);
}

/* CRT scanline overlay on entire section */
.funzone-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.05) 2px,
    rgba(0, 0, 0, 0.05) 4px
  );
  pointer-events: none;
  z-index: 1;
  opacity: 0.4;
}
.funzone-section > .container { position: relative; z-index: 2; }

/* Section title — sleek premium glow */
.funzone-section .section-title {
  font-family: var(--font-headline);
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 0 25px rgba(102, 192, 244, 0.25);
  margin-bottom: 0.5rem;
  text-align: center;
}

.funzone-section .section-subtitle {
  font-family: var(--font-pro);
  font-size: 1.1rem;
  color: #8f98a0;
  text-align: center;
  margin-bottom: 3.5rem;
}

/* Catalog grid */
.funzone-lobby {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2.5rem;
}

@media (max-width: 768px) {
  .funzone-lobby {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
  }
}

/* Steam Card Base - Pixel Art Vibe */
.steam-card {
  background: #3a4149; /* Lighter soft grey vs dark section bg */
  border-radius: 0px; /* Sharp retro corners */
  border: 4px double rgba(255, 255, 255, 0.15);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.5);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  /* Frame-by-frame chunky step scaling for true pixel animation */
  transition: transform 0.25s steps(4), 
              border-color 0.2s ease, 
              box-shadow 0.2s ease;
  position: relative;
  aspect-ratio: 16 / 10;
}

.steam-card:focus-visible {
  outline: 3px double #f5c842;
  outline-offset: 4px;
}

/* Screenshot image visual */
.steam-card__visual {
  position: relative;
  flex: 1;
  width: 100%;
  overflow: hidden;
  background: #0d121a;
}

.steam-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s steps(4); /* Chunky step zoom */
  display: block;
}

/* Dark cinematic vignette overlay */
.steam-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 14, 20, 0.98) 0%, rgba(11, 14, 20, 0.2) 65%, transparent 100%);
  opacity: 0.85;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}

/* Game Name Over Image - Sharp Pixel Style */
.steam-card__name {
  font-family: 'Silkscreen', 'VT323', monospace;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff; /* White by default */
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: center;
  text-shadow: 2px 2px 0 #000; /* Pixel shadow for readability, no box */
  transform: scale(1);
  transition: transform 0.2s steps(3),
              color 0.15s ease;
}

/* Bottom Title Bar */
.steam-card__footer {
  background: #2b323a;
  padding: 1rem 1.2rem;
  border-top: 4px double rgba(255, 255, 255, 0.1);
  transition: background-color 0.2s ease;
}

.steam-card__title {
  font-family: 'Silkscreen', 'VT323', monospace;
  font-size: 0.85rem;
  font-weight: 400;
  color: #b8bcbe;
  margin: 0;
  letter-spacing: 1px;
  transition: color 0.2s ease;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.8);
}

/* Hover & Focus Zoom, Glow effects */
.steam-card:hover,
.steam-card:focus-visible {
  transform: translateY(-8px) scale(1.02);
  border-color: #f5c842; /* Glowing brand yellow double border */
  box-shadow: 10px 14px 0 rgba(0, 0, 0, 0.6), 
              0 0 25px rgba(245, 200, 66, 0.25);
}

.steam-card:hover .steam-card__img,
.steam-card:focus-visible .steam-card__img {
  transform: scale(1.06);
}

.steam-card:hover .steam-card__overlay,
.steam-card:focus-visible .steam-card__overlay {
  opacity: 1;
  background-color: rgba(11, 14, 20, 0.5);
}

.steam-card:hover .steam-card__name,
.steam-card:focus-visible .steam-card__name {
  transform: scale(1.35); /* Enlarge on hover */
  color: #f5c842; /* Brand yellow on hover */
}

.steam-card:hover .steam-card__footer,
.steam-card:focus-visible .steam-card__footer {
  background: #39424c;
}

.steam-card:hover .steam-card__title,
.steam-card:focus-visible .steam-card__title {
  color: #f5c842;
}


/* Game player */
.funzone-player { position: fixed; inset: 0; z-index: 200; background: #000; display: flex; flex-direction: column; transform: none !important; }
.funzone-player-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.1);
  height: 52px;
}
.funzone-player-title { font-family: var(--font-pixel); font-weight: 600; }
.funzone-player-close {
  display: flex; align-items: center; gap: 0.5rem;
  background: none; border: none; color: #fff;
  cursor: pointer; font-size: 0.85rem; font-family: var(--font-pixel);
}
.funzone-player-frame-wrap { flex: 1; }
.funzone-player-frame { width: 100%; height: 100%; border: none; }
/* Game player must sit ABOVE the fixed header (z-index:1000) so its
   "Zpět" bar is clickable. */
.funzone-player { z-index: 2000 !important; }

/* ─── FAQ ─── */
.faq-list { display: flex; flex-direction: column; gap: 0; }
.faq-item { border-bottom: 1px solid var(--gray-200); }
body.dark-mode .faq-item { border-bottom-color: rgba(255,255,255,0.06); }
.faq-question {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 1.25rem 0; background: none; border: none;
  color: var(--cerna); font-size: 1rem; font-weight: 600;
  cursor: pointer; text-align: left; font-family: var(--font-pro);
}
.faq-question::after { content: '+'; font-size: 1.3rem; opacity: 0.4; }
.faq-item.open .faq-question::after { content: '−'; }
.faq-answer { max-height: 0; overflow: hidden; transition: 0.3s; }
.faq-item.open .faq-answer { max-height: 500px; padding-bottom: 1.25rem; }
.faq-answer p { font-size: 0.95rem; line-height: 1.6; opacity: 0.75; }

/* ─── CONTACT ─── */
.contact-form { padding: 2rem 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 1.5rem; }
.form-group { margin-bottom: 1.5rem; }
.form-group label {
  display: block; font-size: 0.8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.5rem; opacity: 0.7;
}
.form-group input, .form-group textarea {
  width: 100%; padding: 0.75rem 1rem;
  background: transparent; border: 2px solid rgba(255,255,255,0.2);
  color: #fff; font-family: var(--font-pro); font-size: 1rem;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--kachna); }
.form-group textarea { resize: vertical; min-height: 100px; }
.section-dark .btn-primary {
  background: var(--kachna);
  color: #111;
  border-color: var(--kachna);
  box-shadow: 4px 4px 0 rgba(0,0,0,0.3);
}
.section-dark .btn-primary:hover {
  background: #e8b830;
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 rgba(0,0,0,0.3);
}
.honeypot { display: none; }

.form-success p { font-size: 1.1rem; text-align: center; padding: 3rem 1rem; }

/* ─── FOOTER ─── */
.footer {
  background: #1a1a1a;
  color: #ddd;
  padding: 4rem 0 2rem;
  border-top: 6px solid var(--raspberry);
}
.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-logo {
  display: flex; align-items: center; gap: 0.8rem;
  text-decoration: none; color: #fff; margin-bottom: 1rem;
  font-family: var(--font-headline); font-size: 1.4rem;
}
.footer-logo-icon {
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  background: var(--kachna); color: #111; font-weight: 900; font-size: 1.6rem;
  font-family: var(--font-pixel);
}
.footer-logo-sub {
  font-size: 0.7rem; letter-spacing: 2px; opacity: 0.5;
  display: block; text-transform: uppercase; font-family: var(--font-pro);
}
.footer-tagline { font-size: 0.85rem; opacity: 0.5; line-height: 1.5; }
.footer-nav-title {
  font-family: var(--font-headline);
  font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 1rem; opacity: 0.5;
}
.footer-nav-list { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-nav-list a { text-decoration: none; font-size: 0.875rem; opacity: 0.7; transition: 0.1s; }
.footer-nav-list a:hover { opacity: 1; color: var(--kachna); }
.footer-social { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-social-link {
  text-decoration: none; font-size: 0.875rem; opacity: 0.7; transition: 0.1s;
}
.footer-social-link:hover { opacity: 1; color: var(--kachna); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding-top: 1.5rem; text-align: center; font-size: 0.8rem; opacity: 0.4; }

/* ─── CHAT ─── */
.chat-widget { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 500; }
.chat-toggle {
  width: 50px; height: 50px; border-radius: 50%; border: 3px solid var(--cerna);
  background: var(--kachna); color: #111;
  font-weight: 800; font-size: 1rem; cursor: pointer;
  box-shadow: 4px 4px 0 var(--cerna); font-family: var(--font-pixel);
  transition: 0.15s;
}
.chat-toggle:hover { transform: scale(1.05); }
.chat-window {
  position: absolute; bottom: 60px; right: 0; width: 340px; max-height: 460px;
  background: var(--bila); border: 3px solid var(--cerna);
  box-shadow: 8px 8px 0 var(--cerna);
  display: none; flex-direction: column; color: var(--cerna);
}
.chat-window.open { display: flex; }
.chat-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.75rem 1rem; border-bottom: 2px solid var(--cerna);
  font-family: var(--font-pixel); font-size: 0.85rem; background: var(--kachna);
}
.chat-header-title { font-weight: 600; }
.chat-close-btn { background: none; border: none; font-size: 1.1rem; cursor: pointer; }
.chat-messages { flex: 1; padding: 1rem; overflow-y: auto; display: flex; flex-direction: column; gap: 0.75rem; }
.chat-message { padding: 0.6rem 0.9rem; font-size: 0.875rem; line-height: 1.4; max-width: 85%; }

/* Real message classes used by duck-chat.js */
.message { padding: 0.6rem 0.9rem; font-size: 0.875rem; line-height: 1.4; max-width: 85%; border: 2px solid var(--cerna); }
.message.bot { background: #fff; color: #111; align-self: flex-start; }
.message.user { background: var(--kachna); color: #111; align-self: flex-end; border-color: var(--kachna); }
.message .chat-time, .message div[style*="font-size:0.7em"] { font-size: 0.65rem; opacity: 0.6; margin-top: 0.3rem; text-align: right; }

/* Contact card */
.message.contact-card { background: #fff; color: #111; align-self: flex-start; padding: 0; overflow: hidden; }
.contact-header { background: var(--kachna); color: #111; font-family: var(--font-pixel); font-size: 0.8rem; padding: 0.5rem 0.9rem; border-bottom: 2px solid var(--cerna); }
.contact-body { padding: 0.9rem; }
.contact-body p { margin-bottom: 0.75rem; }
.email-btn { display: inline-block; background: var(--cerna); color: #fff; font-family: var(--font-pixel); font-size: 0.8rem; padding: 0.5rem 1rem; text-decoration: none; border: 2px solid var(--cerna); }
.email-btn:hover { background: var(--raspberry); color: #fff; }

/* Dark-mode: keep ALL chat surfaces dark with light text */
body.dark-mode .message.bot,
body.dark-mode .message.contact-card { background: #2a2a2a; color: #e5e5e5; border-color: #555; }
body.dark-mode .message.user { background: #b58a1e; color: #111; }
body.dark-mode .contact-body { color: #e5e5e5; }
body.dark-mode .email-btn { background: #444; color: #fff; border-color: #555; }

.chat-time { display: block; font-size: 0.65rem; opacity: 0.5; margin-top: 0.3rem; text-align: right; }
.chat-typing { font-size: 0.8rem; opacity: 0.5; padding: 0.3rem 0; display: none; }
.chat-input-area { display: flex; border-top: 2px solid var(--cerna); padding: 0.5rem; }
.chat-input-area input {
  flex: 1; border: 2px solid var(--cerna); padding: 0.5rem 0.75rem;
  font-size: 0.875rem; font-family: var(--font-pro);
}
.chat-input-area input:focus { outline: none; border-color: var(--kachna); }
.chat-input-area button {
  width: 40px; height: 40px; background: var(--kachna); color: #111;
  border: 2px solid var(--cerna); cursor: pointer; font-size: 1.1rem; font-weight: 700;
  margin-left: 0.5rem;
}
body.dark-mode .chat-window { background: var(--bila); border-color: #444; color: var(--cerna); }

/* ─── Chat dark-mode contrast fixes (white-on-white prevention) ─── */
/* Header sits on yellow — text must always be dark */
.chat-header, .chat-header-title, .chat-close-btn { color: #111; }
/* Input: browser default is white bg → set explicit surface in dark mode */
body.dark-mode .chat-input-area input { background: #111; color: #eee; border-color: #555; }

/* ─── MODAL ─── */
.modal-overlay { position: fixed; inset: 0; z-index: 300; background: rgba(0,0,0,0.7); display: none; align-items: flex-start; justify-content: center; padding: 80px 1rem 2rem; overflow-y: auto; }
.modal-overlay.active { display: flex; }
.modal {
  background: var(--bila); max-width: 640px; width: 100%;
  max-height: 90vh; overflow-y: auto; padding: 2rem;
  position: relative; border: 4px solid var(--cerna);
  box-shadow: 12px 12px 0 var(--cerna);
}
.modal-close {
  position: absolute; top: 1rem; right: 1rem;
  background: var(--cerna); color: var(--bila);
  border: 2px solid var(--cerna);
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 700;
  cursor: pointer; z-index: 10;
  box-shadow: 3px 3px 0 rgba(0,0,0,0.2);
  transition: 0.1s;
}
.modal-close:hover { background: var(--raspberry); color: #fff; transform: scale(1.1); }
.modal-img { width: 100%; border: 3px solid var(--cerna); margin-bottom: 1.5rem; }
.modal-title { font-family: var(--font-headline); font-size: 1.8rem; margin-bottom: 1rem; }
.modal-text { font-size: 0.95rem; line-height: 1.7; opacity: 0.85; }

/* ─── Notification ─── */
.share-notification { position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%); background: #1a1a1a; color: #fff; padding: 0.75rem 1.5rem; font-weight: 600; z-index: 10000; animation: notifSlide 0.3s ease; }
@keyframes notifSlide { from { opacity: 0; transform: translateX(-50%) translateY(10px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }

/* ─── Reveal (visible by default, JS opt-in) ───
   SAFE: content is ALWAYS visible. Animation only runs when .is-visible is
   added by the observer (elements already entering viewport). If JS fails or
   reduced-motion is set, content stays fully readable. */
.reveal-element {
  opacity: 1 !important;
  will-change: transform, opacity;
}
.reveal-element.is-visible {
  animation: revealUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes revealUp {
  from { opacity: 0; transform: translateY(38px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* Stagger children inside a revealed group */
.reveal-stagger > * { animation-delay: calc(var(--i, 0) * 0.09s); }

/* ─── Marquee chaos band ─── */
.marquee {
  position: relative;
  overflow: hidden;
  background: var(--cerna);
  color: var(--kachna);
  border-top: 4px solid var(--kachna);
  border-bottom: 4px solid var(--kachna);
  padding: 0.7rem 0;
  white-space: nowrap;
}
body.dark-mode .marquee { background: #000; }
.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 2.5rem;
  font-family: var(--font-pixel);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  will-change: transform;
  animation: marqueeScroll 18s linear infinite;
}
.marquee-track span { display: inline-flex; align-items: center; gap: 2.5rem; }
.marquee-track .dot { color: var(--raspberry); font-style: normal; }
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─── Parallax layers (hero) ─── */
.hero-parallax { will-change: transform; }

/* ─── Pulse on key CTAs ─── */
.pulse-soft { animation: pulseSoft 2.4s ease-in-out infinite; }
@keyframes pulseSoft {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.05); }
}

/* ─── Reduced motion: kill all decorative motion, keep content ─── */
@media (prefers-reduced-motion: reduce) {
  .reveal-element.is-visible { animation: none !important; }
  .floating-duck,
  .marquee-track,
  .pulse-soft,
  .hero-headline,
  .hero-overlay,
  .scroll-down { animation: none !important; }
}

/* ─── Marquee (used by chaos mode) ─── */
.marquee-banner { display: none; }
#oracle-wrapper, #yourduck-wrapper { display: none; }
