:root {
  --red: #7a3318;
  --yellow: #c47c2e;
  --cream: #f5e8d8;
  --dark: #1a0e08;
  --mid: #3a1e0e;
  --accent: #d4bfa0;
  --border: 3px solid #1a0e08;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--cream);
  color: var(--dark);
  font-family: 'Space Mono', monospace;
  cursor: none;
  overflow-x: hidden;
}

.cursor {
  width: 20px;
  height: 20px;
  background: var(--red);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease, background 0.2s;
  mix-blend-mode: multiply;
}

.cursor.big {
  transform: translate(-50%, -50%) scale(3);
  background: var(--yellow);
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 64px;
  background: var(--dark);
  border-bottom: var(--border);
}

.nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.8rem;
  color: var(--yellow);
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-logo:hover {
  color: var(--red);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--cream);
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--yellow);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--yellow);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 200;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--cream);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.game-media {
  position: relative;
  aspect-ratio: 16 / 9;
  height: 100%;
}

.game-media iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: none;
}

#hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0 2rem;
}

.lang-switch {
  display: flex;
  gap: 0;
  border: 2px solid var(--yellow);
}

.lang-btn {
  background: transparent;
  border: none;
  color: rgba(245, 232, 216, 0.6);
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 6px 10px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.lang-btn:not(:last-child) {
  border-right: 2px solid var(--yellow);
}

.lang-btn.active {
  background: var(--yellow);
  color: var(--dark);
}

.lang-btn:hover:not(.active) {
  color: var(--cream);
}

.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background-image: url("/images/bg_big.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-logo {
  width: 90%;
  max-width: 650px;
  height: auto;
  display: block;
  margin-bottom: 2rem;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(26, 14, 8, 0.3) 0%,
      rgba(26, 14, 8, 0.0) 40%,
      rgba(26, 14, 8, 0.85) 100%);
  pointer-events: none;
}

.hero-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg,
      transparent,
      transparent 3px,
      rgba(0, 0, 0, 0.08) 3px,
      rgba(0, 0, 0, 0.08) 4px);
  pointer-events: none;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 5;
  max-width: 900px;

  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;

  transform: none;
}

.hero-tag {
  display: inline-block;
  background: var(--red);
  color: var(--cream);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 6px 14px;
  margin-bottom: 1rem;
  border: 2px solid var(--cream);
}

.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(5rem, 14vw, 12rem);
  line-height: 0.88;
  color: var(--cream);
  letter-spacing: -0.01em;
  text-shadow: 6px 6px 0px var(--red);
  margin-bottom: 1.5rem;
}

.hero-title span {
  color: var(--yellow);
  text-shadow: 6px 6px 0px #7a3318;
}

.hero-sub {
  font-size: 0.85rem;
  color: rgba(245, 232, 216, 0.7);
  max-width: 420px;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero-cta {
  display: inline-block;
  font-family: 'Space Mono', monospace;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 16px 36px;
  background: var(--yellow);
  color: var(--dark);
  text-decoration: none;
  border: 3px solid var(--dark);
  box-shadow: 5px 5px 0 var(--red);
  text-align: center;
  transition: transform 0.15s, box-shadow 0.15s;
}

.hero-cta:hover {
  transform: translate(-3px, -3px);
  box-shadow: 8px 8px 0 var(--red);
}

.hero-cta:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--red);
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  right: 2.5rem;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(245, 232, 216, 0.5);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.scroll-arrow {
  width: 24px;
  height: 24px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  animation: scrollBounce 1.5s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 0.5; }
  50% { transform: rotate(45deg) translate(4px, 4px); opacity: 1; }
}

.marquee-strip {
  background: var(--red);
  border-bottom: var(--border);
  overflow: hidden;
  padding: 0.8rem 0;
  white-space: nowrap;
}

.marquee-inner {
  display: inline-flex;
  gap: 0;
  animation: marquee 18s linear infinite;
}

.marquee-item {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.1em;
  color: var(--cream);
  padding: 0 2rem;
}

.marquee-item::before {
  content: '✦';
  margin-right: 2rem;
  color: var(--yellow);
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

#games {
  padding: 6rem 2.5rem;
  background: var(--cream);
}

.section-header {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  margin-bottom: 4rem;
  border-bottom: var(--border);
  padding-bottom: 1.5rem;
}

.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 1;
  letter-spacing: 0.02em;
}

.section-num {
  font-size: 0.7rem;
  color: var(--red);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
}

.games-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border: var(--border);
}

.game-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 500px;
  background: var(--dark);
  overflow: hidden;
}

.game-card-text {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.game-card:last-child {
  border-right: none;
  border-bottom: none;
}

.game-card-media {
  position: relative;
  overflow: hidden;
}

.game-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.game-card-bg {
  position: absolute;
  inset: 0;
  transition: transform 0.5s ease;
}

.game-card:hover .game-card-bg {
  transform: scale(1.06);
}

.bg-game1 {
  background:
    radial-gradient(ellipse at 50% 30%, #2e1a08 0%, #1a0e04 60%),
    repeating-linear-gradient(90deg, transparent 0px, transparent 39px, rgba(122, 51, 24, 0.12) 39px, rgba(122, 51, 24, 0.12) 40px),
    repeating-linear-gradient(0deg, transparent 0px, transparent 39px, rgba(122, 51, 24, 0.12) 39px, rgba(122, 51, 24, 0.12) 40px);
}

.bg-game2 {
  background:
    radial-gradient(ellipse at 30% 70%, #1f0e08 0%, #100704 70%),
    radial-gradient(ellipse at 80% 20%, #3d1e0e 0%, transparent 50%);
}

.bg-game3 {
  background:
    radial-gradient(ellipse at 60% 40%, #2a1208 0%, #1a0a04 70%),
    radial-gradient(ellipse at 20% 80%, #3a1a0a 0%, transparent 50%);
}

.game-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 14, 8, 0.95) 0%, rgba(26, 14, 8, 0.2) 60%, transparent 100%);
  transition: background 0.4s;
}

.game-card:hover .game-card-overlay {
  background: linear-gradient(to top, rgba(26, 14, 8, 0.98) 0%, rgba(26, 14, 8, 0.5) 60%, rgba(26, 14, 8, 0.1) 100%);
}

.game-art {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  opacity: 0.6;
  transition: opacity 0.4s, transform 0.4s;
  filter: saturate(0.7);
}

.game-card:hover .game-art {
  opacity: 0.9;
  transform: scale(1.05) translateY(-10px);
}

.game-card-body {
  position: relative;
  z-index: 2;
  padding: 1.5rem 1.8rem 2rem;
}

.game-platform {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 4px 10px;
  background: var(--yellow);
  color: var(--dark);
  margin-bottom: 0.8rem;
  border: 1px solid var(--dark);
}

.game-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.4rem;
  color: var(--cream);
  line-height: 1;
  margin-bottom: 0.6rem;
  letter-spacing: 0.04em;
}

.game-desc {
  font-size: 0.7rem;
  color: rgba(245, 232, 216, 0.6);
  line-height: 1.6;
}

.game-btn {
  display: inline-block;
  margin-top: 1.5rem;

  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;

  padding: 14px 28px;
  background: var(--yellow);
  color: var(--dark);
  width: fit-content;
  max-width: 100%;
  border: 3px solid var(--dark);
  box-shadow: 5px 5px 0 var(--red);

  text-decoration: none;
  text-align: center;
}

#about {
  background: var(--dark);
  color: var(--cream);
  padding: 6rem 2.5rem;
  border-top: var(--border);
  border-bottom: var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 1.5rem;
}

.about-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
  margin-bottom: 2rem;
  color: var(--cream);
}

.about-title em {
  font-style: normal;
  color: var(--yellow);
}

.about-text {
  font-size: 0.85rem;
  line-height: 1.8;
  color: rgba(245, 232, 216, 0.7);
  margin-bottom: 1.5rem;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid rgba(245, 232, 216, 0.15);
  margin-top: 3rem;
  overflow: hidden;
}

.stat {
  padding: 1.5rem 1rem;
  border: 1px solid rgba(245, 232, 216, 0.1);
  text-align: center;
}

.stat-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3rem;
  color: var(--yellow);
  line-height: 1;
  display: block;
}

.stat-label {
  font-size: 0.6rem;
  color: rgba(245, 232, 216, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-top: 0.4rem;
  display: block;
}

.about-image-side {
  position: relative;
}

.about-img-frame {
  position: relative;
  border: var(--border);
  border-color: rgba(245, 232, 216, 0.3);
  overflow: hidden;
}

.about-img-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg,
      transparent 0px,
      transparent 8px,
      rgba(196, 124, 46, 0.06) 8px,
      rgba(196, 124, 46, 0.06) 9px);
  z-index: 1;
  pointer-events: none;
}

.team-art {
  width: 100%;
  aspect-ratio: 4/3;
  background: #2e1a08;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8rem;
  position: relative;
  overflow: hidden;
}

.team-art::after {
  content: 'SkySwamp';
  position: absolute;
  bottom: 1.5rem;
  left: 0;
  right: 0;
  text-align: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.2rem;
  color: rgba(245, 232, 216, 0.2);
  letter-spacing: 0.3em;
}

.img-caption {
  position: absolute;
  bottom: -1px;
  left: -1px;
  background: var(--red);
  color: var(--cream);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-top: var(--border);
  border-right: var(--border);
  border-color: rgba(245, 232, 216, 0.3);
}

#news {
  padding: 6rem 2.5rem;
  background: var(--cream);
  border-top: var(--border);
}

.posts-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: var(--border);
}

.post-item {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  align-items: center;
  gap: 2rem;
  padding: 1.5rem 2rem;
  border-bottom: var(--border);
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
  color: inherit;
}

.post-item:last-child {
  border-bottom: none;
}

.post-item:hover {
  background: var(--dark);
  color: var(--cream);
}

.post-date {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--red);
  text-transform: uppercase;
}

.post-item:hover .post-date {
  color: var(--yellow);
}

.post-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.post-arrow {
  font-size: 1.2rem;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.2s, transform 0.2s;
  color: var(--yellow);
}

.post-item:hover .post-arrow {
  opacity: 1;
  transform: translateX(0);
}

#newsletter {
  background: var(--yellow);
  border-top: var(--border);
  border-bottom: var(--border);
  padding: 5rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
}

.newsletter-text h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 0.9;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.newsletter-text p {
  font-size: 0.75rem;
  color: rgba(26, 14, 8, 0.65);
  letter-spacing: 0.05em;
}

.newsletter-form {
  display: flex;
  gap: 0;
  flex: 1;
  max-width: 500px;
}

.newsletter-form input {
  flex: 1;
  padding: 16px 20px;
  font-family: 'Space Mono', monospace;
  font-size: 0.8rem;
  border: var(--border);
  border-right: none;
  background: white;
  outline: none;
  color: var(--dark);
}

.newsletter-form input::placeholder {
  color: rgba(26, 14, 8, 0.4);
}

.newsletter-form button {
  padding: 16px 28px;
  background: var(--dark);
  color: var(--yellow);
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: var(--border);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.newsletter-form button:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--cream);
}

footer {
  background: var(--dark);
  color: var(--cream);
  padding: 3rem 2.5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: end;
}

.footer-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3rem;
  color: var(--yellow);
  letter-spacing: 0.05em;
  margin-bottom: 0.8rem;
  text-shadow: 3px 3px 0 var(--red);
}

.footer-tagline {
  font-size: 0.7rem;
  color: rgba(245, 232, 216, 0.4);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid rgba(245, 232, 216, 0.2);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(245, 232, 216, 0.6);
  text-decoration: none;
  transition: all 0.2s;
}

.road {
  position: relative;
  background-image: url('/images/road_big2.png');
  background-repeat: repeat-x;
  background-position: left center;
  background-size: auto 100%;
  overflow: visible;
}

.lane {
  position: relative;
  height: 50px;
}

.lane-top {
  border-bottom: none;
  background-repeat: repeat-x;
  background-position: bottom;
  background-size: auto 3px;
}

.divider {
  position: absolute;
  left: 0;
  right: 0;
  top: 69px;
  height: 2px;
}

.car {
  position: absolute;
  left: -80px;
  top: 50%;
  translate: 0 -50%;
  font-size: 34px;
  line-height: 1;
  transform: none;
  animation: driveRight 12s linear infinite;
  will-change: left;
}

.car img {
  width: 90px;
  height: auto;
  display: block;
}

.reverse {
  animation: driveLeft 10s linear infinite;
}

.delay1 {
  animation-delay: -4s;
}

.delay2 {
  animation-delay: -8s;
}

@keyframes driveRight {
  from { left: -60px; }
  to { left: calc(100% + 60px); }
}

@keyframes driveLeft {
  from { left: calc(100% + 60px); }
  to { left: -60px; }
}

.social-link:hover {
  background: var(--red);
  border-color: var(--red);
  color: white;
}

.footer-right {
  text-align: right;
}

.footer-nav {
  list-style: none;
  margin-bottom: 2rem;
}

.footer-nav li {
  margin-bottom: 0.5rem;
}

.footer-nav a {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245, 232, 216, 0.5);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--yellow);
}

.footer-copy {
  font-size: 0.6rem;
  color: rgba(245, 232, 216, 0.2);
  letter-spacing: 0.1em;
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

@media (max-width: 640px) {
  #hero {
    height: auto;
    aspect-ratio: 2553 / 1190; 
    min-height: 60vh;
  }

  .hero-media {
    background-size: cover;
    background-position: center;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--dark);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 150;
  }

  .nav-menu.open {
    transform: translateX(0);
  }

  .nav-links {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .nav-links a {
    font-size: 1.2rem;
  }

  .hero-title { font-size: 5rem; }
  footer { grid-template-columns: 1fr; }
  .footer-right { text-align: left; }
  #newsletter { flex-direction: column; }
  .newsletter-form { max-width: 100%; width: 100%; }
  .post-item { grid-template-columns: 1fr; gap: 0.5rem; }
  .post-arrow { opacity: 1; transform: none; }

  .game-card {
    grid-template-columns: 1fr;
  }

  .game-card-text {
    text-align: center;
    align-items: center;
  }

  .game-btn {
    margin-top: auto;
  }
}
.stat-num-infinity {
  display: block;
  height: 1em;
  line-height: 1;
  text-align: center;
}

.stat-num-infinity svg {
  display: inline-block;
  width: 1.8em;
  height: 1em;
  color: var(--yellow);
}