.policy,
.success {
  padding-block: 70px 60px !important;
  min-height: 92vh;
}

@media (max-width: 768px) {
  .policy {
    padding-block: 60px 60px !important;
  }
}

.success__text {
  margin-bottom: 27px;
}

.success__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 600px;
  margin: 0 auto;
}

.success__btns {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.policy__title,
.success__title {
  font-weight: 700;
  font-size: 35px;
  line-height: 110%;
  letter-spacing: 0%;
  vertical-align: middle;
  margin-bottom: 28px;
  color: #ffffff;
}

.policy__text {
  font-weight: 400;
  font-size: 18px;
  line-height: 130%;
  letter-spacing: 0%;
  color: #ffffff;
}

.policy__title {
  color: #ffffff;
}

.policy__text h2 {
  text-align: left;
  font-size: 21px;
}

.policy__text ul {
  padding-left: 20px;
}

.policy__text h2,
.policy__text p,
.policy__text ul {
  margin-bottom: 22px;
}

.policy__link {
  color: #ffffff;
}

h1,
h2,
h3,
h4 {
  word-break: break-word;
}

html {
  scroll-behavior: smooth;
}

.container {
  margin: 0 auto;
  max-width: 1368px;
  padding-inline: 20px;
}

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

/* Custom Fonts */
@import url("https://fonts.googleapis.com/css2?family=Metropolis:wght@300;400;500;600;700&display=swap");

/* CSS Variables */
:root {
  --primary-color: #c91d5e;
  --secondary-color: #6b21a8;
  --text-color: #ffffff;
  --text-secondary: #d1d5db;
  --bg-dark: #0f0a1e;
  --bg-darker: #0a0612;
  --bg-card: rgba(139, 92, 246, 0.1);
  --accent-purple: #8b5cf6;
  --accent-pink: #ec4899;
}

/* Global Styles */
body {
  font-family: "Metropolis", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: url(/wp-content/themes/quenorix.com/img/bg.png) center / cover no-repeat;
  color: var(--text-color);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

.games-body {
  background: url(/wp-content/themes/quenorix.com/img/games-bg.png) center / cover no-repeat;
}

.game-body {
  background: url(/wp-content/themes/quenorix.com/img/game-bg.png) center / cover no-repeat;
}

@media (max-width: 768px) {
  body {
    background: url(/wp-content/themes/quenorix.com/img/bg-mob.png) center / cover no-repeat;
  }

  .games-body {
    background: url(/wp-content/themes/quenorix.com/img/games-bg-mob.png) center / cover no-repeat;
  }

  .game-body {
    background: url(/wp-content/themes/quenorix.com/img/game-bg-mob.png) center / cover no-repeat;
  }
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Artifika", serif;
  font-weight: 400;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Cookie Popup */
.cookie-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cookie-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cookie-popup {
  background: linear-gradient(238.06deg, #000a19 47.64%, #e9213d 207.98%);

  border-radius: 20px;
  padding: 40px;
  max-width: 600px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.cookie-popup h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--text-color);
}

.cookie-popup p {
  margin-bottom: 15px;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
}

.cookie-buttons {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.cookie-btn {
  padding: 12px 30px;
  border-radius: 30px;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Metropolis", sans-serif;
  font-weight: 500;
}

.accept-btn {
  background: linear-gradient(135deg, #c91d5e 0%, #8b5cf6 100%);
  color: white;
}

.accept-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(201, 29, 94, 0.4);
}

.learn-more-btn {
  background: rgba(139, 92, 246, 0.2);
  color: white;
  border: 1px solid rgba(139, 92, 246, 0.5);
}

.learn-more-btn:hover {
  background: rgba(139, 92, 246, 0.3);
}

/* Header */
.header {
  padding: 20px 0;
  position: sticky;
  top: 0;

  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-color);
  font-size: 1.5rem;
  font-weight: 600;
}

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

.nav-menu {
  display: flex;
  list-style: none;
  gap: 40px;
}

.nav-menu a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-menu a:hover {
  color: var(--accent-pink);
}

.burger-menu {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.burger-menu span {
  width: 25px;
  height: 3px;
  background: var(--text-color);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.burger-menu.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.burger-menu.active span:nth-child(2) {
  opacity: 0;
}

.burger-menu.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section */
.hero {
  padding: 80px 0;
  background: url(/wp-content/themes/quenorix.com/img/bg-logo.png) 65% / 20% no-repeat;

  position: relative;
  overflow: hidden;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-text p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
  line-height: 1.8;
}

.hero-image img {
  width: 100%;
  max-width: 500px;
  filter: drop-shadow(0 20px 40px rgba(201, 29, 94, 0.4));
}

.btn {
  display: inline-block;
  padding: 15px 40px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  backdrop-filter: blur(4px);
  background: #ffffff33;
  box-shadow: 1.2px 1.1px 0.8px 0px #f8faf0 inset;
  color: white;
}

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

/* About Section */
.about {
  padding: 100px 0;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  align-items: center;
}

.about-text h2 {
  font-size: 2.8rem;
  margin-bottom: 30px;
  line-height: 1.2;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-size: 1.05rem;
  line-height: 1.8;
}

.about-image img {
  width: 100%;
  max-width: 450px;
  filter: drop-shadow(0 20px 40px rgba(139, 92, 246, 0.4));
}

/* Reviews Section */
.reviews {
  padding: 100px 0;
}

.reviews h2 {
  font-size: 2.8rem;
  text-align: center;
  margin-bottom: 20px;
}

.reviews-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 60px;
  font-size: 1.1rem;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

.review-card {
  background: rgba(139, 92, 246, 0.1);
  backdrop-filter: blur(10px);
  padding: 30px;
  border-radius: 20px;
  border: 1px solid rgba(139, 92, 246, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
}

.review-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--text-color);
}

.review-card p {
  color: var(--text-secondary);
  line-height: 1.7;
}

.reviews-footer {
  text-align: center;
  color: var(--text-secondary);
  max-width: 900px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.8;
}

/* Edge Section */
.edge {
  padding: 100px 0;
}

.edge-header {
  text-align: center;
  margin-bottom: 60px;
}

.edge-header h2 {
  font-size: 2.8rem;
  margin-bottom: 20px;
}

.edge-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.edge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

.edge-card {
  background: rgba(139, 92, 246, 0.1);
  backdrop-filter: blur(10px);
  padding: 30px;
  border-radius: 20px;
  border: 1px solid rgba(139, 92, 246, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.edge-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
}

.edge-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--text-color);
}

.edge-card p {
  color: var(--text-secondary);
  line-height: 1.7;
}

.edge-footer {
  text-align: center;
  color: var(--text-secondary);
  max-width: 900px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.8;
}

/* Form Section */
.form-section {
  padding: 100px 0;
}

.form-section h2 {
  font-size: 2.8rem;
  text-align: center;
  margin-bottom: 40px;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form input,
.contact-form textarea {
  padding: 15px 20px;
  border-radius: 10px;
  border: 1px solid rgba(139, 92, 246, 0.3);
  background: rgba(139, 92, 246, 0.1);
  color: var(--text-color);
  font-family: "Metropolis", sans-serif;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent-purple);
}

.contact-form textarea {
  resize: vertical;
  min-height: 150px;
}

/* Footer */
.footer {
  padding: 60px 0 30px;

  border-top: 1px solid rgba(139, 92, 246, 0.2);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 40px;
  align-items: start;
}

.footer-info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  padding-bottom: 20px;
  border-bottom: 1px solid #ffffff4d;
}

.footer-bottom {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}

.footer-info p {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  margin-bottom: 15px;
  font-size: 0.95rem;
}

.footer-info img {
  width: 20px;
  height: 20px;
}

.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 25px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.95rem;
}

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

.footer-social {
  display: flex;
  gap: 15px;
}

.footer-social a img {
  width: 30px;
  height: 30px;
  transition: transform 0.3s ease;
}

.footer-social a:hover img {
  transform: scale(1.1);
}

.footer-copyright {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-content,
  .about-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-image,
  .about-image {
    display: flex;
    justify-content: center;
  }

  .hero {
    background: none;
  }

  .hero-image {
    display: none;
  }

  .reviews-grid,
  .edge-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-info p {
    justify-content: center;
  }

  .footer-social {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    flex-direction: column;
    background: url(/wp-content/themes/quenorix.com/img/bg-menu.png) center / cover no-repeat;
    width: 100%;
    padding: 40px 0;
    gap: 20px;
    height: 100vh;
    transition: left 0.3s ease;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu li {
    text-align: center;
  }

  .burger-menu {
    display: flex;
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }

  .about-text h2,
  .reviews h2,
  .edge-header h2,
  .form-section h2 {
    font-size: 2rem;
  }

  .reviews-grid,
  .edge-grid {
    grid-template-columns: 1fr;
  }

  .cookie-popup {
    padding: 30px;
  }

  .cookie-popup h2 {
    font-size: 2rem;
  }

  .cookie-buttons {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-text p,
  .about-text p {
    font-size: 1rem;
  }

  .btn {
    padding: 12px 30px;
    font-size: 0.95rem;
  }

  .review-card,
  .edge-card {
    padding: 20px;
  }

  .cookie-popup {
    padding: 20px;
    width: 95%;
  }

  .cookie-popup h2 {
    font-size: 1.5rem;
  }
}

/* Games Page Styles */
.games-section {
  padding: 100px 0;
  min-height: calc(100vh - 200px);
}

.games-header {
  text-align: center;
  margin-bottom: 60px;
}

.games-header h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  line-height: 1.2;
}

.games-header p {
  color: var(--text-secondary);
  max-width: 900px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.8;
}

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

.game-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 1;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
  transform: translateY(-10px);
}

.game-card a {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

.game-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.game-card-icon {
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
}

/* Game Detail Page Styles */
.game-detail {
  padding: 70px 0;
}

.game-hero {
  margin-bottom: 30px;
}

.game-detail-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: start;
}

.game-image {
  position: sticky;
  top: 100px;
}

.game-image img {
  width: 100%;
  border-radius: 36px;
  box-shadow: 0 20px 60px rgba(139, 92, 246, 0.4);
}

.game-info h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  line-height: 1.2;
}

.game-info > p {
  color: var(--text-secondary);
  margin-bottom: 30px;
  font-size: 1.1rem;
  line-height: 1.8;
}

.game-features,
.game-how-to-play {
  margin-top: 50px;
}

.game-features h2,
.game-how-to-play h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.game-features ul,
.game-how-to-play ol {
  color: var(--text-secondary);
  line-height: 1.8;
  padding-left: 20px;
}

.game-features li,
.game-how-to-play li {
  margin-bottom: 15px;
  font-size: 1.05rem;
}

.game-features li strong {
  color: var(--text-color);
  font-weight: 600;
}

/* Responsive for Games Page */
@media (max-width: 1024px) {
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .game-image {
    position: relative;
    top: 0;
  }
}

@media (max-width: 768px) {
  .games-header h1 {
    font-size: 2rem;
  }

  .game-info h1 {
    font-size: 2rem;
  }

  .game-features h2,
  .game-how-to-play h2 {
    font-size: 1.5rem;
  }
}

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

  .games-header h1 {
    font-size: 1.75rem;
  }

  .game-info h1 {
    font-size: 1.75rem;
  }
}
