:root {
  --bg: #faf7f2;
  --text: #241c14;
  --muted: #6b5f52;
  --accent: #b5651d;
  --accent-dark: #8f4e15;
  --accent-light: #f4c542;
  --card-bg: #ffffff;
  --border: #e7ddce;
  --footer-bg: #201810;
  --footer-text: #cabfae;
  --footer-link: #f2e9dc;
  --header-bg: rgba(250, 247, 242, 0.92);
  --hero-bg: #1a130c;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Trebuchet MS", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: var(--accent-dark);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.site-header.scrolled {
  background: rgb(26 19 12 / 78%);
  backdrop-filter: blur(6px);
  border-bottom: 0;
}

.site-header .logo,
.site-header .main-nav a {
  color: #f2e9dc;
  transition: color 0.25s ease;
}

.site-header.scrolled .logo,
.site-header.scrolled .main-nav a {
  color: var(--text);
}
.site-header.scrolled .main-nav a {
    color: #faf7f2;
}
.site-header.scrolled .main-nav a:hover {
    color: var(--text);
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.logo span {
  color: var(--accent);
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  transition: background 0.15s ease;
}

.main-nav a:hover {
  background: rgba(255, 255, 255, 0.12);
}

.site-header.scrolled .main-nav a:hover {
  background: var(--border);
}

/* Hero */
.hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(ellipse at 20% 20%, #3a2a17 0%, transparent 55%),
    radial-gradient(ellipse at 85% 75%, #4a3319 0%, transparent 50%),
    var(--hero-bg);
  color: #f2e9dc;
  margin-top: -73px;
  padding-top: 73px;
}

.hero-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-decor span {
  position: absolute;
  font-size: 2.6rem;
  opacity: 0.18;
  animation: float 7s ease-in-out infinite;
}

.hero-decor span:nth-child(1) { top: 18%; left: 8%; animation-delay: 0s; }
.hero-decor span:nth-child(2) { top: 65%; left: 14%; font-size: 2rem; animation-delay: 1.4s; }
.hero-decor span:nth-child(3) { top: 24%; right: 10%; animation-delay: 0.8s; }
.hero-decor span:nth-child(4) { top: 70%; right: 16%; font-size: 2.2rem; animation-delay: 2.2s; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-22px) rotate(6deg); }
}

.marquee {
  border-top: 1px solid rgba(242, 233, 220, 0.15);
  border-bottom: 1px solid rgba(242, 233, 220, 0.15);
  padding: 12px 0;
  overflow: hidden;
  white-space: nowrap;
}

.marquee-track {
  display: inline-flex;
  width: max-content;
  animation: marquee 22s linear infinite;
}

.marquee-track span {
  display: inline-flex;
  align-items: center;
  padding: 0 20px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--accent-light);
}

.marquee-track span::after {
  content: "•";
  margin-left: 20px;
  color: rgba(242, 233, 220, 0.4);
}

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

.hero-body {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 24px;
  text-align: center;
}

.hero-eyebrow {
  display: inline-block;
  color: var(--accent-light);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 18px;
}

.hero-title {
  font-size: clamp(3.2rem, 11vw, 8rem);
  line-height: 0.95;
  font-weight: 800;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #fff4e0 0%, var(--accent-light) 60%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  max-width: 560px;
  margin: 0 auto 32px;
  font-size: 1.15rem;
  color: #d8ccba;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-dark);
}

.btn-ghost {
  background: transparent;
  color: #f2e9dc;
  border: 1px solid rgba(242, 233, 220, 0.4);
}

.btn-ghost:hover {
  background: rgba(242, 233, 220, 0.12);
}

.hero-scroll-cue {
  position: relative;
  z-index: 1;
  margin: 0 auto 28px;
  width: 26px;
  height: 42px;
  border: 2px solid rgba(242, 233, 220, 0.5);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.hero-scroll-cue::before {
  content: "";
  width: 4px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent-light);
  animation: scrollcue 1.6s ease-in-out infinite;
}

@keyframes scrollcue {
  0% { opacity: 1; transform: translateY(0); }
  70% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 0; transform: translateY(10px); }
}

@media (max-width: 600px) {
  .hero {
    min-height: 100vh;
  }
  .hero-title {
    font-size: clamp(2.6rem, 15vw, 5rem);
  }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: none;
}

/* Rólunk */
.about-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 72px 24px 56px;
  scroll-margin-top: 80px;
}

.about-section h1 {
  font-size: 2.1rem;
  margin-bottom: 8px;
}

.about-section .lead {
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 24px;
}

.about-section p {
  margin: 0 0 16px;
}

/* Games */
.games-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 24px 88px;
  scroll-margin-top: 80px;
}

.games-section h2 {
  font-size: 1.7rem;
  margin-bottom: 28px;
  text-align: center;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

@media (max-width: 860px) {
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .games-grid {
    grid-template-columns: 1fr;
  }
  .main-nav ul {
    gap: 2px;
  }
  .main-nav a {
    padding: 8px 10px;
    font-size: 0.95rem;
  }
}

.game-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.game-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(36, 28, 20, 0.14);
}

.game-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  width: 100%;
  overflow: hidden;
  background: #eee;
}

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

.game-card:hover .game-thumb img {
  transform: scale(1.08);
}

.game-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(26, 19, 12, 0.35);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.game-card:hover .game-thumb::after {
  opacity: 1;
}

.game-thumb-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  transform: translate(-50%, -50%) scale(0.6);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
  z-index: 1;
}

.game-card:hover .game-thumb-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.game-info {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.game-info h3 {
  margin: 0;
  font-size: 1.15rem;
}

.game-info p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  flex: 1;
}

.play-button {
  display: inline-block;
  text-align: center;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 8px;
  transition: background 0.15s ease;
}

.play-button:hover {
  background: var(--accent-dark);
}

.games-grid .reveal:nth-child(1) { transition-delay: 0s; }
.games-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.games-grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.games-grid .reveal:nth-child(4) { transition-delay: 0.24s; }

/* Parallax showcase */
.parallax-panel {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  background-image: url("assets/images/parallax-placeholder.svg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #f2e9dc;
}

@media (max-width: 768px) {
  .parallax-panel {
    background-attachment: scroll;
  }
}

.parallax-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(18, 13, 8, 0.88) 0%, rgba(18, 13, 8, 0.55) 55%, rgba(18, 13, 8, 0.35) 100%);
}

.parallax-inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 90px 24px;
}

.parallax-eyebrow {
  display: block;
  color: var(--accent-light);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 14px;
}

.parallax-inner h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0 0 16px;
  max-width: 640px;
}

.parallax-inner p {
  max-width: 560px;
  color: #d8ccba;
  font-size: 1.05rem;
  margin: 0;
}

/* Footer */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 22px 24px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  font-size: 0.9rem;
}

.footer-logo {
  text-align: center;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--footer-link);
  white-space: nowrap;
}

.footer-logo span {
  color: var(--accent-light);
}

.footer-legal {
  text-align: left;
}

.footer-legal-links {
  display: flex;
  gap: 18px;
  justify-content: flex-end;
}

.footer-legal-links a {
  color: var(--footer-link);
  text-decoration: none;
}

.footer-legal-links a:hover {
  text-decoration: underline;
}

@media (max-width: 700px) {
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-logo {
    order: -1;
  }
  .footer-legal {
    text-align: center;
  }
  .footer-legal-links {
    justify-content: center;
  }
}
