@import url("https://fonts.googleapis.com/css2?family=Karla:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&display=swap");

:root {
  --bg: #1B2A4A;
  --bg-soft: #24365C;
  --surface: #2E4570;
  --text: #F6EDE3;
  --muted: #C4B5A5;
  --accent: #E86A4A;
  --accent-2: #C24E35;
  --button: #E86A4A;
  --button-text: #1B2A4A;
  --secondary: #7A8BA8;
  --border: rgba(232, 106, 74, 0.3);
  --font-display: "Libre Baskerville", Georgia, serif;
  --font-body: "Karla", "Segoe UI", sans-serif;
  --radius: 12px;
  --shadow: 0 18px 40px rgba(10, 18, 36, 0.35);
  --container: 1120px;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(232, 106, 74, 0.18), transparent 55%),
    radial-gradient(900px 420px at 90% 0%, rgba(122, 139, 168, 0.2), transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, #15233d 100%);
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: #f08a70;
}

h1,
h2,
h3,
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.4rem);
  margin: 0 0 0.75rem;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  margin: 0 0 0.75rem;
}

h3 {
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
}

p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(27, 42, 74, 0.82);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  text-decoration: none;
}

.brand img {
  width: 40px;
  height: 40px;
}

.brand-name {
  font-size: 1.15rem;
}

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

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.nav a:hover,
.nav a.is-active {
  color: var(--text);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-soft);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  position: relative;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle span::before {
  position: absolute;
  top: -6px;
}

.nav-toggle span::after {
  position: absolute;
  top: 6px;
}

.nav-toggle.is-open span {
  background: transparent;
}

.nav-toggle.is-open span::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.is-open span::after {
  transform: translateY(-6px) rotate(-45deg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  border: none;
  background: var(--button);
  color: var(--button-text);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(232, 106, 74, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  color: var(--button-text);
  background: #f07a5c;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(232, 106, 74, 0.38);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: none;
}

.btn-ghost:hover {
  color: var(--text);
  background: rgba(232, 106, 74, 0.12);
  box-shadow: none;
}

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.04);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(27, 42, 74, 0.35) 0%, rgba(27, 42, 74, 0.55) 40%, rgba(27, 42, 74, 0.92) 100%),
    linear-gradient(90deg, rgba(27, 42, 74, 0.55) 0%, transparent 55%);
}

.hero-content {
  padding: clamp(3rem, 8vw, 6rem) 0 3.5rem;
  max-width: 640px;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5rem);
  color: var(--text);
  margin: 0 0 0.85rem;
  text-shadow: 0 8px 30px rgba(10, 18, 36, 0.45);
  animation: riseIn 0.9s ease both;
}

.hero-title {
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-weight: 400;
  color: var(--text);
  margin: 0 0 0.85rem;
  animation: riseIn 0.9s ease 0.1s both;
}

.hero-lead {
  font-size: 1.08rem;
  max-width: 34rem;
  animation: riseIn 0.9s ease 0.2s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
  animation: riseIn 0.9s ease 0.3s both;
}

.wave-divider {
  height: 48px;
  background:
    radial-gradient(ellipse 60px 24px at 20% 100%, transparent 48%, var(--bg) 50%),
    radial-gradient(ellipse 60px 24px at 60% 100%, transparent 48%, var(--bg) 50%),
    radial-gradient(ellipse 60px 24px at 100% 100%, transparent 48%, var(--bg) 50%);
  margin-top: -1px;
}

.section {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}

.section-soft {
  background: linear-gradient(180deg, rgba(36, 54, 92, 0.55), rgba(36, 54, 92, 0.2));
}

.section-head {
  max-width: 640px;
  margin-bottom: 2rem;
}

.section-kicker {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 0.55rem;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.game-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.15rem 1.1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(46, 69, 112, 0.85), rgba(36, 54, 92, 0.65));
  color: inherit;
  text-decoration: none;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.game-item:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 106, 74, 0.55);
  color: var(--text);
}

.game-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
}

.game-item h3 {
  color: var(--text);
  margin: 0;
}

.game-item p {
  margin: 0;
  font-size: 0.92rem;
}

.game-cta {
  margin-top: auto;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
}

.about-grid,
.method-grid,
.tips-grid {
  display: grid;
  gap: 1.25rem;
}

.about-grid {
  grid-template-columns: 1.1fr 0.9fr;
  align-items: start;
}

.panel {
  padding: 1.4rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid rgba(122, 139, 168, 0.25);
  background: rgba(46, 69, 112, 0.35);
}

.method-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.method-step {
  position: relative;
  padding: 1.4rem 1.25rem 1.35rem;
}

.method-num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.65rem;
}

.genres-layout {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 1.5rem;
  align-items: center;
}

.genres-visual {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.genres-visual img {
  width: 100%;
  height: min(420px, 55vw);
  object-fit: cover;
}

.genre-list {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.genre-list li {
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--accent);
  background: rgba(36, 54, 92, 0.55);
  border-radius: 0 10px 10px 0;
}

.genre-list strong {
  display: block;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.tips-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tip {
  padding: 1.35rem 1.25rem;
}

.faq-list {
  display: grid;
  gap: 0.75rem;
  max-width: 820px;
}

.faq-item {
  border: 1px solid rgba(122, 139, 168, 0.28);
  border-radius: var(--radius);
  background: rgba(36, 54, 92, 0.4);
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.15rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: var(--accent);
  font-size: 1.25rem;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  margin: 0;
  padding: 0 1.15rem 1.1rem;
}

.page-hero {
  padding: 3.5rem 0 1.5rem;
}

.page-hero h1 {
  margin-bottom: 0.5rem;
}

.legal-content {
  max-width: 760px;
  padding-bottom: 4rem;
}

.legal-content h2 {
  margin-top: 2rem;
  font-size: 1.35rem;
}

.legal-content ul {
  color: var(--muted);
  padding-left: 1.2rem;
}

.contact-card {
  max-width: 560px;
  padding: 1.6rem 1.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(46, 69, 112, 0.45);
}

.contact-card dl {
  margin: 0;
  display: grid;
  gap: 1rem;
}

.contact-card dt {
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.contact-card dd {
  margin: 0;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(15, 24, 42, 0.55);
  padding: 2.5rem 0 1.75rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.75rem;
  color: var(--text);
  text-decoration: none;
}

.footer-brand img {
  width: 36px;
  height: 36px;
}

.footer-links {
  display: grid;
  gap: 0.45rem;
}

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

.footer-links a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(122, 139, 168, 0.2);
  color: var(--secondary);
  font-size: 0.9rem;
}

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 200;
  max-width: 520px;
  margin-inline: auto;
  padding: 1.15rem 1.2rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(27, 42, 74, 0.96);
  box-shadow: var(--shadow);
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.cookie-banner.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.cookie-banner p {
  margin: 0 0 0.9rem;
  font-size: 0.94rem;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

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

.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroDrift {
  from {
    transform: scale(1.04) translateY(0);
  }
  to {
    transform: scale(1.08) translateY(-1.5%);
  }
}

@media (max-width: 980px) {
  .games-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .about-grid,
  .genres-layout,
  .method-grid,
  .tips-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav {
    position: absolute;
    top: calc(var(--header-h) + 1px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1rem 1rem;
    background: rgba(27, 42, 74, 0.97);
    border-bottom: 1px solid var(--border);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 0.8rem 0.35rem;
    border-bottom: 1px solid rgba(122, 139, 168, 0.15);
  }

  .games-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    min-height: 78vh;
  }
}

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

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
