/* PrizeCarousel - Christmas Fortune Main Stylesheet */
:root {
  --color-primary-bg: #0a1628;
  --color-secondary-bg: #162844;
  --color-accent-gold: #d4af37;
  --color-accent-teal: #4dd0e1;
  --color-text-light: #e8eaf6;
  --color-text-muted: #b0bec5;
  --color-card-bg: rgba(22, 40, 68, 0.6);
  --color-border: rgba(212, 175, 55, 0.3);
  --color-success: #4dd0e1;
  --color-danger: #ff5252;
  --border-radius: 16px;
  --box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(135deg, #0a1628 0%, #1a2f4f 50%, #0a1628 100%);
  background-attachment: fixed;
  color: var(--color-text-light);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}
h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}
h3 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
}

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

a {
  color: var(--color-accent-teal);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--color-accent-gold);
}

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

/* Navigation */
nav {
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: var(--transition);
  text-decoration: none;
}

.logo img {
  height: 50px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  transition: var(--transition);
  filter: drop-shadow(0 2px 8px rgba(212, 175, 55, 0.3));
}

.logo:hover img {
  transform: scale(1.05);
  filter: drop-shadow(0 4px 12px rgba(212, 175, 55, 0.5));
}

.logo-text {
  font-size: 1.75rem;
  font-weight: 700;
  background: linear-gradient(
    135deg,
    var(--color-accent-gold),
    var(--color-accent-teal)
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
  transition: var(--transition);
  white-space: nowrap;
}

.logo:hover .logo-text {
  background: linear-gradient(135deg, #f4d03f, #26c6da);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--color-text-light);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(212, 175, 55, 0.1);
  color: var(--color-accent-gold);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  width: 24px;
  height: 3px;
  background: var(--color-accent-gold);
  border-radius: 2px;
  transition: var(--transition);
}

/* Hero Section */
.hero {
  padding: 6rem 1.5rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(212, 175, 55, 0.1) 0%,
    transparent 70%
  );
  pointer-events: none;
  animation: glow 4s ease-in-out infinite;
}

@keyframes glow {
  0%,
  100% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  margin-bottom: 1.5rem;
  background: linear-gradient(
    135deg,
    var(--color-accent-gold),
    #ffffff,
    var(--color-accent-teal)
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--color-text-light);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-accent-gold), #f4d03f);
  color: var(--color-primary-bg);
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(212, 175, 55, 0.6);
  color: var(--color-primary-bg);
}

.btn-secondary {
  background: rgba(77, 208, 225, 0.1);
  border: 2px solid var(--color-accent-teal);
  color: var(--color-accent-teal);
}

.btn-secondary:hover {
  background: var(--color-accent-teal);
  color: var(--color-primary-bg);
}

/* Cards */
.card {
  background: var(--color-card-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--color-accent-gold);
  box-shadow: 0 12px 40px rgba(212, 175, 55, 0.2);
}

/* Game Card */
.game-card {
  background: var(--color-card-bg);
  backdrop-filter: blur(10px);
  border: 2px solid var(--color-border);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
  max-width: 500px;
  margin: 0 auto;
}

.game-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-accent-gold);
  box-shadow: 0 16px 48px rgba(212, 175, 55, 0.3);
}

.game-thumbnail {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

.game-info {
  padding: 2rem;
}

.game-info h3 {
  color: var(--color-accent-gold);
  margin-bottom: 1rem;
}

.game-info p {
  margin-bottom: 1.5rem;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  text-align: center;
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.feature-card h3 {
  color: var(--color-accent-gold);
}

/* Section */
section {
  padding: 4rem 0;
}

section h2 {
  text-align: center;
  margin-bottom: 1rem;
  background: linear-gradient(
    135deg,
    var(--color-accent-gold),
    var(--color-accent-teal)
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

section > p {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
  color: var(--color-text-muted);
}

/* Footer */
footer {
  background: rgba(10, 22, 40, 0.95);
  border-top: 1px solid var(--color-border);
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem 2rem;
}

.footer-section h3 {
  color: var(--color-accent-gold);
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: var(--color-text-muted);
}

.footer-section a:hover {
  color: var(--color-accent-gold);
}

.responsible-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1rem;
  align-items: center;
}

.responsible-logos a {
  display: block;
  transition: var(--transition);
}

.responsible-logos img {
  height: auto;
  width: 150px;
  filter: brightness(0.8);
  transition: var(--transition);
}

.responsible-logos a:hover img {
  filter: brightness(1);
  transform: scale(1.05);
}

.footer-18-notice {
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--color-accent-gold);
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 1rem;
  text-align: center;
  font-weight: 600;
  color: var(--color-accent-gold);
}

.footer-bottom {
  text-align: center;
  padding: 2rem 1.5rem 1rem;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* Age Gate Modal */
.age-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 22, 40, 0.98);
  backdrop-filter: blur(10px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.age-modal.active {
  display: flex;
}

.age-modal-content {
  background: linear-gradient(
    135deg,
    rgba(22, 40, 68, 0.95),
    rgba(10, 22, 40, 0.95)
  );
  border: 2px solid var(--color-accent-gold);
  border-radius: var(--border-radius);
  padding: 3rem;
  max-width: 500px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: slideIn 0.4s ease-out;
  margin: 1rem;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.age-modal-content h2 {
  color: var(--color-accent-gold);
  margin-bottom: 1.5rem;
}

.age-modal-content p {
  color: var(--color-text-light);
  margin-bottom: 1rem;
}

.age-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.age-btn {
  padding: 1rem 2rem;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
}

.age-yes {
  background: linear-gradient(135deg, var(--color-success), #26c6da);
  color: white;
}

.age-yes:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(77, 208, 225, 0.4);
}

.age-no {
  background: linear-gradient(135deg, var(--color-danger), #ff6e6e);
  color: white;
}

.age-no:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 82, 82, 0.4);
}

/* Cookie Banner */
.cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(10, 22, 40, 0.98);
  backdrop-filter: blur(10px);
  border-top: 2px solid var(--color-accent-gold);
  padding: 1.5rem;
  z-index: 999;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.cookie-banner.active {
  display: block;
  animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cookie-text {
  flex: 1;
  color: var(--color-text-muted);
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
}

.cookie-buttons button {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.cookie-accept {
  background: var(--color-accent-gold);
  color: var(--color-primary-bg);
}

.cookie-accept:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

.cookie-manage {
  background: rgba(77, 208, 225, 0.1);
  border: 1px solid var(--color-accent-teal);
  color: var(--color-accent-teal);
}

.cookie-manage:hover {
  background: rgba(77, 208, 225, 0.2);
}

/* Game Page Iframe */
.game-container {
  margin: 3rem 0;
  background: var(--color-card-bg);
  backdrop-filter: blur(10px);
  border: 2px solid var(--color-accent-gold);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.iframe-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.iframe-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.iframe-fallback {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  padding: 2rem;
  color: var(--color-text-muted);
}

/* Content Sections */
.content-section {
  background: var(--color-card-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 2.5rem;
  margin-bottom: 2rem;
}

.content-section h2 {
  text-align: left;
  margin-bottom: 1.5rem;
}

.content-section h3 {
  color: var(--color-accent-teal);
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.content-section ul,
.content-section ol {
  margin-left: 2rem;
  margin-bottom: 1rem;
  color: var(--color-text-muted);
}

.content-section li {
  margin-bottom: 0.5rem;
}

/* Contact Form */
.contact-form {
  background: var(--color-card-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 2.5rem;
  max-width: 600px;
  margin: 2rem auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--color-accent-gold);
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.875rem;
  background: rgba(10, 22, 40, 0.6);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  color: var(--color-text-light);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent-gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

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

.form-error {
  color: var(--color-danger);
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: none;
}

.form-error.active {
  display: block;
}

/* Notice Box */
.notice-box {
  background: rgba(212, 175, 55, 0.1);
  border: 2px solid var(--color-accent-gold);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin: 2rem 0;
}

.notice-box p {
  color: var(--color-text-light);
  margin: 0;
}

/* Scroll to Top */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--color-accent-gold), #f4d03f);
  color: var(--color-primary-bg);
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
  z-index: 99;
}

.scroll-top.active {
  opacity: 1;
  pointer-events: auto;
}

.scroll-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(10, 22, 40, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 2rem;
    gap: 1rem;
    transform: translateX(-100%);
    transition: var(--transition);
    border-bottom: 1px solid var(--color-border);
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .menu-toggle {
    display: flex;
  }

  .logo img {
    height: 40px;
    max-width: 150px;
  }

  .logo-text {
    font-size: 1.4rem;
  }

  .hero {
    padding: 4rem 1.5rem 3rem;
  }

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

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

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

  .cookie-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-buttons {
    width: 100%;
    flex-direction: column;
  }

  .cookie-buttons button {
    width: 100%;
  }
}

.text-center {
  text-align: center;
}
.text-gold {
  color: var(--color-accent-gold);
}
.text-teal {
  color: var(--color-accent-teal);
}
.mt-2 {
  margin-top: 2rem;
}
.mb-2 {
  margin-bottom: 2rem;
}
