/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.25rem 4rem;
  overflow: hidden;
}

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

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 14, 26, 0.75) 0%, rgba(10, 14, 26, 0.92) 100%);
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.hero-particles span {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent-blue);
  opacity: 0.35;
  animation: float-particle 8s ease-in-out infinite;
}

.hero-particles span:nth-child(1) {
  left: 10%;
  top: 20%;
  animation-delay: 0s;
}

.hero-particles span:nth-child(2) {
  left: 80%;
  top: 30%;
  animation-delay: 1.5s;
  background: var(--color-accent-purple);
}

.hero-particles span:nth-child(3) {
  left: 25%;
  top: 70%;
  animation-delay: 3s;
}

.hero-particles span:nth-child(4) {
  left: 70%;
  top: 60%;
  animation-delay: 2s;
  background: var(--color-accent-orange);
}

@keyframes float-particle {
  0%,
  100% {
    transform: translate(0, 0);
    opacity: 0.2;
  }
  50% {
    transform: translate(12px, -24px);
    opacity: 0.55;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 720px;
}

.hero-badge {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: rgba(79, 142, 247, 0.15);
  border: 1px solid rgba(79, 142, 247, 0.35);
  color: var(--color-accent-blue);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 3.25rem);
  color: var(--color-text-primary);
  margin-bottom: 1rem;
}

.hero-content > p {
  font-size: 1.0625rem;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.hero-trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.5rem;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.hero-trust-row span {
  position: relative;
  padding-left: 1rem;
}

.hero-trust-row span::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent-gradient);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce-arrow 2s ease-in-out infinite;
}

@keyframes bounce-arrow {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

/* Games preview & grid */
.games-preview,
.games-page-section {
  padding: 4rem 0;
}

.games-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .games-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.games-preview .games-grid .game-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  max-width: 400px;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .games-preview .games-grid .game-card:last-child:nth-child(odd) {
    grid-column: 2 / 3;
    max-width: none;
    margin: 0;
  }
}

.games-cta {
  text-align: center;
  margin-top: 2.5rem;
}

.games-page-hero {
  padding: 5rem 0 2rem;
  text-align: center;
}

.games-page-hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
}

.game-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin: 2rem 0;
}

.game-filter-tabs button {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text-secondary);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.game-filter-tabs button.active,
.game-filter-tabs button:hover {
  border-color: var(--color-accent-blue);
  color: var(--color-text-primary);
  background: rgba(79, 142, 247, 0.12);
}

.game-card-desc {
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

.daily-bonus-banner {
  margin: 3rem 0;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(79, 142, 247, 0.15), rgba(139, 92, 246, 0.12));
  border: 1px solid rgba(79, 142, 247, 0.25);
  text-align: center;
}

.daily-bonus-banner h2 {
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
}

.mechanics-section {
  padding: 3rem 0;
  border-top: 1px solid var(--color-border);
}

.mechanics-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .mechanics-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.mechanics-card {
  padding: 1.5rem;
  border-radius: var(--radius-md);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
}

.mechanics-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

/* Benefits */
.benefits {
  padding: 4rem 0;
  background: linear-gradient(180deg, var(--color-bg-primary) 0%, var(--color-bg-secondary) 50%, var(--color-bg-primary) 100%);
}

.benefits-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .benefits-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Trust */
.trust-section {
  padding: 4rem 0;
}

.trust-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .trust-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Community */
.community {
  position: relative;
  padding: 5rem 0;
  overflow: hidden;
}

.community-bg {
  position: absolute;
  inset: 0;
}

.community-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.community-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 14, 26, 0.92) 0%, rgba(10, 14, 26, 0.75) 100%);
}

.community .container {
  position: relative;
  z-index: 1;
}

.community-content {
  max-width: 520px;
}

.community-content h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: var(--color-text-primary);
}

.community-content p {
  margin-bottom: 1.5rem;
}

/* Responsible teaser */
.responsible-teaser {
  padding: 3rem 0 4rem;
}

.responsible-card {
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.responsible-card h3 {
  margin-bottom: 0.75rem;
}

/* Contact */
.contact-section {
  padding: 5rem 0 4rem;
}

.contact-grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.contact-info h1 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
}

.contact-detail {
  margin-bottom: 1.25rem;
}

.contact-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-bottom: 0.25rem;
}

.contact-social {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.contact-social a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.contact-social a span {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.contact-form-wrapper {
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
}

/* About */
.about-page {
  padding: 5rem 0 4rem;
}

.about-hero-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 3rem;
  border: 1px solid var(--color-border);
}

.about-hero-image img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

.about-content article {
  max-width: 720px;
  margin: 0 auto;
}

.about-content h1 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  margin-bottom: 2rem;
  text-align: center;
}

.about-content h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--color-text-primary);
}

.about-content p {
  margin-bottom: 1rem;
}

/* Legal pages */
.legal-page {
  padding: 5rem 0 4rem;
}

.legal-page article {
  max-width: 720px;
  margin: 0 auto;
}

.legal-page h1 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 0.5rem;
}

.legal-meta {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

.legal-page h2 {
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--color-text-primary);
}

.legal-page ul {
  margin: 0 0 1rem 1.25rem;
  padding: 0;
  color: var(--color-text-secondary);
}

.legal-page li {
  margin-bottom: 0.35rem;
}

/* Page shell */
.page-main {
  min-height: 60vh;
}

.games-page-hero .lead {
  max-width: 560px;
  margin: 0 auto;
}

.game-modal-label {
  margin-bottom: 0.25rem;
}

.game-modal-note {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin: 0 0 0.5rem;
}

.game-modal-loading-text {
  font-size: 0.875rem;
  margin: 0.5rem 0 0;
  color: var(--color-text-secondary);
}

.daily-bonus-banner p {
  margin: 0;
  color: var(--color-text-secondary);
}
