/* Bingo Odyssey - Offline Games | domendomen.com */
/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&family=Open+Sans:wght@400;500;600&display=swap');

:root {
  --bg-dark: #1a1a2e;
  --bg-mid: #16213e;
  --bg-secondary: #0f3460;
  --text-primary: #e8e8e8;
  --text-muted: #b8b8c8;
  --accent-gradient: linear-gradient(135deg, #e94560 0%, #ff6b6b 25%, #ffd93d 50%, #6bcb77 75%, #4d96ff 100%);
  --accent-glow: 0 0 30px rgba(233, 69, 96, 0.4);
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.15);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition: 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-mid) 50%, var(--bg-secondary) 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}

a:hover {
  opacity: 0.9;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 1.5rem;
  background: rgba(26, 26, 46, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  transition: background var(--transition);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
}

.logo-text {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 1.25rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.35rem 0;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  transition: width var(--transition);
}

.nav-link:hover::after {
  width: 100%;
}

.play-btn-link {
  display: inline-block;
}

.play-btn-img {
  height: 44px;
  width: auto;
  transition: transform var(--transition), filter var(--transition);
}

.play-btn-link:hover .play-btn-img {
  transform: scale(1.05);
  filter: drop-shadow(var(--accent-glow));
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.burger span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

body.nav-open .burger span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

body.nav-open .burger span:nth-child(2) {
  opacity: 0;
}

body.nav-open .burger span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Main */
.main {
  padding-top: 80px;
  min-height: calc(100vh - 80px);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Hero */
.hero {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-color: var(--bg-mid);
  background-image: url('../images/7.png');
  background-size: cover;
  background-position: center;
  opacity: 0.25;
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26, 26, 46, 0.4) 0%, rgba(26, 26, 46, 0.8) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-logo {
  width: 140px;
  height: 140px;
  margin: 0 auto 1.5rem;
  border-radius: var(--radius-xl);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 0 3px rgba(255, 255, 255, 0.1);
  object-fit: cover;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 0.75rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  margin-top: 2rem;
}

/* Glass Card */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--glass-shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.feature-card .img-wrap {
  width: 140px;
  height: 140px;
  margin: 0 auto 1.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--glass-border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.feature-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition);
}

.feature-card:hover .feature-card-img {
  transform: scale(1.05);
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Screenshots Grid - Home (3 items, featured layout) */
.screenshots-preview {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1rem;
  max-width: 700px;
  margin: 0 auto;
  min-height: 320px;
}

.screenshots-preview .screenshot-item:first-child {
  grid-row: span 2;
  align-self: stretch;
  min-height: 200px;
}

.screenshots-preview .screenshot-item:not(:first-child) {
  aspect-ratio: 9/16;
}

.screenshots-preview .screenshot-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Screenshots Grid - Full page (6 items) */
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.screenshot-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 9/16;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
}

.screenshot-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 24px rgba(233, 69, 96, 0.12);
}

.screenshot-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  vertical-align: middle;
}

.screenshot-item .screenshot-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem 1rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  font-size: 0.85rem;
  color: var(--text-primary);
  opacity: 0;
  transition: opacity var(--transition);
}

.screenshot-item:hover .screenshot-caption {
  opacity: 1;
}

/* CTA Section */
.cta-section {
  text-align: center;
  padding: 4rem 1.5rem;
}

.cta-section h2 {
  margin-bottom: 1rem;
}

.cta-section p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* Footer */
.footer {
  background: linear-gradient(180deg, rgba(15, 52, 96, 0.9) 0%, rgba(10, 35, 65, 0.95) 100%);
  backdrop-filter: blur(12px);
  padding: 4rem 1.5rem 2rem;
  margin-top: 4rem;
  border-top: 1px solid var(--glass-border);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--glass-border);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-brand-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand .logo-img {
  width: 48px;
  height: 48px;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 280px;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 0.95rem;
  margin-bottom: 1rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-nav a {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-nav a:hover {
  color: var(--text-primary);
}

.footer-download {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-download p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--text-primary);
}

/* Stats block */
.stats-block {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 3rem 2rem;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  margin: 2rem 0;
}

.stat-item {
  text-align: center;
}

.stat-item .stat-value {
  font-family: 'Nunito', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-item .stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Rooms block */
.rooms-block {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
}

.room-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
  transition: var(--transition);
}

.room-card:hover {
  transform: translateY(-2px);
  border-color: rgba(233, 69, 96, 0.4);
}

.room-card .room-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 0.5rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.room-card .room-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.room-card .room-name {
  font-size: 0.85rem;
  font-weight: 600;
}

/* How it works */
.steps-block {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.step-card {
  text-align: center;
  padding: 1.5rem;
}

.step-card .step-num {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.step-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Banner block */
.banner-block {
  background: linear-gradient(135deg, rgba(233, 69, 96, 0.2) 0%, rgba(77, 150, 255, 0.2) 100%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.banner-block .banner-text h3 {
  margin-bottom: 0.5rem;
}

.banner-block .banner-text p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Page Content */
.page-header {
  padding: 3rem 0 2rem;
  text-align: center;
}

.page-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 0.5rem;
}

.page-header p {
  color: var(--text-muted);
}

.page-content {
  padding-bottom: 4rem;
}

.page-content h2 {
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
}

.page-content p, .page-content li {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.page-content ul {
  padding-left: 1.5rem;
}

/* Content image block (About, etc.) */
.content-image-card {
  margin-bottom: 2rem;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
}

.content-image-card .content-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

.content-image-card .content-img-body {
  padding: 2rem;
  border-top: 1px solid var(--glass-border);
}

.content-image-card .content-img-body h2 {
  margin-top: 0;
  margin-bottom: 1rem;
}

/* Contact */
.contact-card {
  max-width: 500px;
  margin: 0 auto;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  margin-bottom: 1rem;
  background: var(--glass-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
}

.contact-item a {
  color: #6bcb77;
}

/* Popups */
.cookie-popup,
.age-popup {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: 1.5rem 1.5rem 2rem;
  background: rgba(26, 26, 46, 0.98);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--glass-border);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.cookie-popup.visible,
.age-popup.visible {
  transform: translateY(0);
}

.popup-inner {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.popup-inner p {
  flex: 1;
  min-width: 250px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.popup-btn {
  padding: 0.75rem 1.5rem;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: var(--radius-md);
  background: var(--accent-gradient);
  color: #fff;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

.popup-btn:hover {
  transform: scale(1.02);
  box-shadow: var(--accent-glow);
}

/* Mobile */
@media (max-width: 768px) {
  .burger {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 300px;
    height: 100vh;
    background: rgba(26, 26, 46, 0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    justify-content: center;
    padding: 4rem 2rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    border-left: 1px solid var(--glass-border);
    z-index: 999;
  }

  body.nav-open .nav {
    transform: translateX(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .nav-link {
    font-size: 1.1rem;
  }

  .play-btn-link {
    margin-top: 1rem;
  }

  .screenshots-preview {
    grid-template-columns: 1fr;
  }

  .screenshots-preview .screenshot-item:first-child {
    grid-row: span 1;
    aspect-ratio: 9/16;
  }

  .screenshots-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-top {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand {
    align-items: center;
  }

  .footer-brand p {
    text-align: center;
  }

  .footer-nav {
    align-items: center;
  }

  .footer-download {
    align-items: center;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .stats-block {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .steps-block {
    grid-template-columns: 1fr;
  }

  .banner-block {
    flex-direction: column;
    text-align: center;
  }
}
