@font-face {
  font-family: "Arcade Classic";
  src: url("fonts/OpenSans-Regular.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Press Start 2P";
  src: url("fonts/OpenSans-SemiBold.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  background: #1e2526;
  color: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

.menu-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.menu-backdrop.active {
  display: block;
  opacity: 1;
}

.header {
  background: rgba(42, 47, 50, 0.9);
  backdrop-filter: blur(8px);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(to right, #ff4500, #ffd700) 1;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: baseline;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.5));
}

.logo-text {
  font-size: 2.5rem;
  font-weight: 900;
  color: #ffd700;
  letter-spacing: -1px;
}

.logo-subtext {
  font-size: 1.2rem;
  font-weight: 400;
  color: #ff4500;
  margin-left: 8px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
  display: block;
  width: 30px;
  height: 4px;
  background: #ffd700;
  border-radius: 2px;
  transition: all 0.4s ease;
}

.menu-icon::before,
.menu-icon::after {
  content: "";
  position: absolute;
}

.menu-icon::before {
  transform: translateY(-10px);
}

.menu-icon::after {
  transform: translateY(10px);
}

.menu-toggle.active .menu-icon {
  background: transparent;
}

.menu-toggle.active .menu-icon::before {
  transform: translateY(0) rotate(45deg);
}

.menu-toggle.active .menu-icon::after {
  transform: translateY(0) rotate(-45deg);
}

.nav-menu {
  display: flex;
  align-items: center;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 25px;
}

.nav-list a {
  color: #ddd;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

.nav-list a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background: #ff4500;
  transition: width 0.3s ease;
}

.nav-list a:hover::after {
  width: 100%;
}

.nav-list a:hover {
  color: #ffd700;
}

.hero,
.section,
.contact {
  background: linear-gradient(to right, #2a2f32, #3a3f42);
  padding: 60px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.hero h2,
.section h2,
.contact h2 {
  font-size: 2.8rem;
  color: #ffd700;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero p,
.section p,
.contact p {
  max-width: 700px;
  font-size: 1.1rem;
  color: #ddd;
  margin: 0 auto;
}

.hero-image,
.section-image {
  display: block;
  max-width: 100%;
  width: 60%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  margin-top: 20px;
  margin-bottom: 20px;
  margin: 20px auto;
}

.btn {
  display: inline-block;
  padding: 10px 25px;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 5px;
  color: #fff;
  background: #ff4500;
  transition: background 0.3s, transform 0.3s;
  touch-action: manipulation;
  margin-top: 10px;
}

.btn:hover {
  background: #e33e00;
  transform: translateY(-2px);
}

.btn-primary {
  background: #ff4500;
}

.btn-secondary {
  background: #ffd700;
  color: #2a2f32;
}

.btn-secondary:hover {
  background: #e6c200;
}

.btn-control {
  background: #3a3f42;
  color: #ffd700;
  padding: 8px 15px;
  margin: 0 5px;
  font-size: 1rem;
}

.btn-control:hover {
  background: #ff4500;
  color: #fff;
}

.features-grid,
.grid-container,
.games-grid,
.community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
  width: 100%;
}

.feature,
.card,
.game,
.community-item {
  background: #3a3f42;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s;
}

.feature:hover,
.card:hover,
.game:hover,
.community-item:hover {
  transform: translateY(-5px);
}

img {
  margin-top: 20px;
}

.feature img,
.card img,
.game img,
.community-item img {
  max-width: 100%;
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 10px;
}

.start-steps,
.tips-list,
.modes-list,
.rewards-list {
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
  font-size: 1rem;
  color: #ddd;
}

.start-steps li,
.tips-list li,
.modes-list li,
.rewards-list li {
  margin-bottom: 10px;
}

.testimonials blockquote {
  max-width: 600px;
  margin: 15px auto;
  font-size: 1rem;
  font-style: italic;
  color: #ddd;
  background: #3a3f42;
  padding: 15px;
  border-radius: 8px;
}

.game-demo {
  padding: 40px 20px;
  background: #2a2f32;
}

.game-demo canvas {
  border: 2px solid #ff4500;
  border-radius: 5px;
  max-width: 40%;
  width: 100%;
  background: linear-gradient(to bottom, #3a3f42, #2a2f32);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.game-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 10px 0;
}

#score,
#grabbedCount {
  font-size: 1.2rem;
  color: #ffd700;
  margin: 10px 0;
}

.faq-item {
  max-width: 700px;
  margin: 15px auto;
  background: #3a3f42;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.faq-item h3 {
  font-size: 1.4rem;
  color: #ffd700;
  margin-bottom: 10px;
}

.footer {
  background: #2a2f32;
  padding: 30px 20px;
  text-align: center;
}

.footer p {
  font-size: 0.9rem;
  color: #ddd;
}

.footer a {
  color: #ffd700;
  text-decoration: none;
  margin: 0 10px;
}

.footer a:hover {
  color: #ff4500;
}

.contact form {
  max-width: 600px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 0 auto;
}

.contact label {
  font-size: 1rem;
  color: #ddd;
  text-align: left;
}

.contact input,
.contact textarea {
  width: 100%;
  padding: 10px;
  font-size: 1rem;
  border: 2px solid #3a3f42;
  border-radius: 5px;
  background: #1e2526;
  color: #ddd;
}

.contact textarea {
  min-height: 120px;
  resize: vertical;
}

.contact .checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
}

.contact .checkbox-label input {
  width: auto;
  margin: 0;
}

.contact .checkbox-label a {
  color: #ffd700;
  text-decoration: underline;
}

.contact .checkbox-label a:hover {
  color: #ff4500;
}

.cta-btn {
  padding: 10px 25px;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: 5px;
  background: #ff4500;
  color: #fff;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.cta-btn:hover {
  background: #e33e00;
  transform: translateY(-2px);
}

.animate-fade-in {
  opacity: 0;
  animation: fadeIn 0.8s ease-in-out forwards;
}

.animate-slide-in {
  opacity: 0;
  transform: translateY(15px);
  animation: slideIn 0.6s ease-out forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    position: fixed;
    top: 70px;
    right: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background: #1e2526;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    z-index: 999;
  }

  .nav-menu.active {
    display: flex;
    transform: translateX(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    padding: 20px;
  }

  .nav-list li {
    margin: 15px 0;
  }

  .nav-list a {
    font-size: 1.8rem;
    padding: 15px;
    color: #ffd700;
  }

  .nav-list a:hover::after {
    width: 0;
  }

  .nav-list a:hover {
    color: #ff4500;
  }

  .logo-text {
    font-size: 2rem;
  }

  .logo-subtext {
    font-size: 1rem;
  }

  .hero h2,
  .section h2,
  .contact h2 {
    font-size: 2.2rem;
  }

  .hero p,
  .section p,
  .contact p {
    font-size: 0.95rem;
  }

  .btn,
  .cta-btn {
    padding: 8px 20px;
    font-size: 1rem;
  }

  .hero,
  .section,
  .contact {
    padding: 40px 20px;
  }

  .game-demo canvas {
    width: 500px;
    height: 500px;
    max-width: 90%;
  }
}

@media (max-width: 480px) {
  .game-demo canvas {
    width: 300px;
    height: 300px;
    max-width: 90%;
  }

  .logo-text {
    font-size: 1.8rem;
  }

  .logo-subtext {
    font-size: 0.9rem;
  }

  .hero h2,
  .section h2,
  .contact h2 {
    font-size: 1.8rem;
  }

  .hero p,
  .section p,
  .contact p {
    font-size: 0.9rem;
  }

  .features-grid,
  .grid-container,
  .games-grid,
  .community-grid {
    grid-template-columns: 1fr;
  }

  .nav-list a {
    font-size: 1.5rem;
  }

  .nav-menu {
    top: 60px;
    height: calc(100vh - 60px);
  }

  .contact input,
  .contact textarea {
    font-size: 0.9rem;
  }

  .contact .checkbox-label {
    font-size: 0.85rem;
  }
}

.privacy-policy,
.terms-conditions,
.thanks {
  background: linear-gradient(to right, #2a2f32, #3a3f42);
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

@media (max-width: 768px) {
  .privacy-policy h2,
  .terms-conditions h2,
  .thanks h2 {
    font-size: 2.2rem;
  }
  .privacy-policy p,
  .terms-conditions p,
  .thanks p {
    font-size: 0.95rem;
  }
}
@media (max-width: 480px) {
  .privacy-policy h2,
  .terms-conditions h2,
  .thanks h2 {
    font-size: 1.8rem;
  }
  .privacy-policy p,
  .terms-conditions p,
  .thanks p {
    font-size: 0.9rem;
  }
}
