@import url('https://fonts.googleapis.com/css2?family=Righteous&family=Poppins:wght@300;400;500;600;700&display=swap');

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

:root {
  --cherry-red: #e74c3c;
  --lime-green: #27ae60;
  --lemon-yellow: #f1c40f;
  --grape-purple: #9b59b6;
  --orange-bright: #e67e22;
  --white-clean: #ffffff;
  --dark-base: #1a1a2e;
  --light-bg: #f8f9fa;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--light-bg);
  color: var(--dark-base);
  line-height: 1.7;
  min-height: 100vh;
}

.grav-header {
  background: var(--white-clean);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.grav-header-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.grav-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.grav-logo-icon {
  width: 44px;
  height: 44px;
}

.grav-logo-text {
  font-family: 'Righteous', cursive;
  font-size: 1.6rem;
  background: linear-gradient(90deg, var(--cherry-red), var(--orange-bright), var(--lemon-yellow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.grav-nav {
  display: flex;
  gap: 2rem;
}

.grav-nav a {
  color: var(--dark-base);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s;
}

.grav-nav a:hover {
  color: var(--cherry-red);
}

.grav-burger {
  display: none;
  background: none;
  border: 2px solid var(--cherry-red);
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  border-radius: 6px;
}

.grav-burger span {
  display: block;
  width: 22px;
  height: 3px;
  background: var(--cherry-red);
  margin: 4px 0;
  transition: all 0.3s;
}

.grav-mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--white-clean);
  padding: 1rem 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.grav-mobile-menu.active {
  display: flex;
}

.grav-mobile-menu a {
  color: var(--dark-base);
  text-decoration: none;
  padding: 0.9rem 0;
  border-bottom: 1px solid #eee;
  font-weight: 500;
}

.grav-hero {
  background: linear-gradient(135deg, var(--cherry-red), var(--orange-bright));
  padding: 5rem 2rem;
  color: var(--white-clean);
}

.grav-hero-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.grav-hero-text h1 {
  font-family: 'Righteous', cursive;
  font-size: 3.2rem;
  margin-bottom: 1.5rem;
}

.grav-hero-text p {
  font-size: 1.15rem;
  opacity: 0.95;
  margin-bottom: 2rem;
}

.grav-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.grav-chip {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.6rem 1.2rem;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 500;
}

.grav-hero-visual {
  display: flex;
  justify-content: center;
}

.grav-hero-visual .big-emoji {
  font-size: 10rem;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
}

.grav-game-section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.grav-game-section h2 {
  font-family: 'Righteous', cursive;
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--dark-base);
}

.grav-game-frame {
  background: var(--dark-base);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 50px rgba(231, 76, 60, 0.2);
}

.grav-game-frame iframe {
  display: block;
  width: 100%;
  height: 600px;
  border: none;
}

.grav-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1300px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.grav-card {
  background: var(--white-clean);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.grav-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.grav-card .card-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.grav-card h3 {
  font-family: 'Righteous', cursive;
  font-size: 1.2rem;
  color: var(--dark-base);
  margin-bottom: 0.75rem;
}

.grav-card p {
  color: #666;
  font-size: 0.9rem;
}

.grav-article {
  max-width: 850px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.grav-article h1 {
  font-family: 'Righteous', cursive;
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--dark-base);
}

.grav-article h2 {
  font-family: 'Righteous', cursive;
  font-size: 1.4rem;
  color: var(--cherry-red);
  margin: 2rem 0 1rem;
}

.grav-article p {
  color: #555;
  margin-bottom: 1rem;
}

.grav-article ul {
  color: #555;
  margin: 1rem 0 1rem 2rem;
}

.grav-article li {
  margin-bottom: 0.5rem;
}

.grav-tip-box {
  background: linear-gradient(135deg, #fff5f5, #fff);
  border-left: 4px solid var(--cherry-red);
  padding: 1.5rem;
  margin-top: 2rem;
  border-radius: 0 12px 12px 0;
}

.grav-footer {
  background: var(--dark-base);
  color: var(--white-clean);
  padding: 3rem 2rem;
  text-align: center;
  margin-top: 4rem;
}

.grav-footer p {
  font-size: 0.9rem;
  opacity: 0.85;
  margin-bottom: 1.5rem;
}

.grav-footer-links {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.grav-footer-links a {
  color: var(--lemon-yellow);
  text-decoration: none;
  font-size: 0.85rem;
}

.grav-footer-links a:hover {
  color: var(--white-clean);
}

.grav-age-popup {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 46, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.grav-age-popup.hidden {
  display: none;
}

.grav-age-card {
  background: var(--white-clean);
  border-radius: 20px;
  padding: 3rem;
  max-width: 420px;
  text-align: center;
  margin: 1rem;
}

.grav-age-card h2 {
  font-family: 'Righteous', cursive;
  color: var(--dark-base);
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.grav-age-card p {
  color: #666;
  margin-bottom: 2rem;
}

.grav-age-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.grav-btn-confirm, .grav-btn-cancel {
  padding: 1rem 2rem;
  font-family: 'Righteous', cursive;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  border-radius: 10px;
  transition: all 0.3s;
}

.grav-btn-confirm {
  background: linear-gradient(90deg, var(--cherry-red), var(--orange-bright));
  color: var(--white-clean);
}

.grav-btn-confirm:hover {
  transform: scale(1.05);
}

.grav-btn-cancel {
  background: transparent;
  border: 2px solid #ccc;
  color: #999;
}

.grav-btn-cancel:hover {
  border-color: #c00;
  color: #c00;
}

@media (max-width: 1024px) {
  .grav-hero-wrapper {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .grav-chips {
    justify-content: center;
  }
  
  .grav-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .grav-nav {
    display: none;
  }
  
  .grav-burger {
    display: block;
  }
  
  .grav-hero-text h1 {
    font-size: 2.2rem;
  }
  
  .grav-hero-visual .big-emoji {
    font-size: 6rem;
  }
  
  .grav-cards {
    grid-template-columns: 1fr;
  }
  
  .grav-game-frame iframe {
    height: 420px;
  }
  
  .grav-age-btns {
    flex-direction: column;
  }
}
