:root {
  --bg-color: #0a0a0c;
  --surface-color: #1a1a20;
  --surface-color-light: #25252d;
  --accent-color: #e63946; /* Vibrant red based on banner */
  --accent-hover: #ff4d5a;
  --text-primary: #ffffff;
  --text-secondary: #a0a0ab;
  --border-color: #33333f;
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
  --border-radius: 12px;
  --transition: all 0.3s ease;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-family);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 80px; /* Space for mobile CTA */
}

a {
  color: var(--text-primary);
  text-decoration: none;
}

/* Header */
header {
  background-color: rgba(26, 26, 32, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-color);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  white-space: nowrap;
}

.logo span {
  color: var(--accent-color);
}

.logo-image {
  display: inline-flex;
  flex: 0 0 auto;
  width: clamp(142px, 36vw, 206px);
}

.logo-image img {
  display: block;
  height: auto;
  max-width: 100%;
  width: 100%;
}

.nav-links {
  display: none; /* Mobile first: hidden on small screens */
  gap: 24px;
}

.nav-links a {
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active {
  color: var(--text-primary);
}

.header-actions {
  display: none;
  align-items: center;
  gap: 12px;
}

.language-switcher {
  position: relative;
  z-index: 130;
}

.language-switcher summary {
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  cursor: pointer;
  display: inline-flex;
  gap: 8px;
  min-height: 42px;
  min-width: 58px;
  padding: 8px 12px;
  white-space: nowrap;
}

.language-switcher summary::after {
  content: '▾';
  color: var(--accent-color);
  font-size: 12px;
}

.language-switcher summary span {
  font-weight: 900;
}

.language-switcher summary small {
  color: var(--text-secondary);
  font-size: 12px;
}

.language-menu {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  display: grid;
  min-width: 78px;
  padding: 8px;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
}

.language-menu a {
  border-radius: 6px;
  color: var(--text-secondary);
  font-weight: 700;
  padding: 10px 12px;
  text-align: center;
}

.language-menu a:hover,
.language-menu a.active {
  background: var(--surface-color-light);
  color: var(--text-primary);
}

.language-switcher-mobile {
  border-top: 1px solid var(--border-color);
  margin-top: 10px;
  padding-top: 10px;
  width: 100%;
}

.language-switcher-mobile summary {
  justify-content: space-between;
  width: 100%;
}

.language-switcher-mobile .language-menu {
  box-shadow: none;
  margin-top: 8px;
  min-width: 0;
  position: static;
  width: 100%;
}

.language-switcher-mobile .language-menu a {
  display: flex;
  justify-content: space-between;
}

.language-switcher-mobile .language-menu a.active::after {
  content: '✓';
  color: var(--accent-color);
}

.mobile-menu {
  position: relative;
  z-index: 120;
}

.mobile-menu > summary {
  align-items: center;
  background: var(--surface-color-light);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  gap: 4px;
  height: 42px;
  justify-content: center;
  list-style: none;
  padding: 0;
  width: 42px;
}

.mobile-menu > summary::-webkit-details-marker,
.language-switcher summary::-webkit-details-marker {
  display: none;
}

.mobile-menu > summary::after {
  content: '';
}

.mobile-menu > summary span {
  background: var(--text-primary);
  border-radius: 999px;
  display: block;
  height: 2px;
  width: 18px;
}

.mobile-menu-panel {
  background: rgba(26, 26, 32, 0.98);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  padding: 12px;
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(88vw, 340px);
}

.mobile-menu-panel nav {
  display: grid;
  gap: 6px;
}

.mobile-menu-panel nav a {
  border-radius: 6px;
  color: var(--text-secondary);
  font-weight: 800;
  padding: 12px;
}

.mobile-menu-panel nav a.active,
.mobile-menu-panel nav a:hover {
  background: var(--surface-color-light);
  color: var(--text-primary);
}

.mobile-menu-actions {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 1fr;
  margin-top: 12px;
}

.mobile-menu-actions .btn {
  min-width: 0;
  padding-inline: 10px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--border-radius);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-size: 14px;
  min-height: 42px;
}

.btn-primary {
  background-color: var(--accent-color);
  color: #fff;
  box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(230, 57, 70, 0.4);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background-color: var(--surface-color-light);
}

/* Hero Section */
.hero {
  padding: 44px 16px;
  text-align: center;
  background: radial-gradient(circle at center, rgba(230, 57, 70, 0.15) 0%, rgba(10, 10, 12, 0) 70%);
}

.hero h1 {
  font-size: 34px;
  line-height: 1.1;
  margin-bottom: 16px;
  font-weight: 800;
}

.hero h1 span {
  color: var(--accent-color);
}

.hero p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 600px;
  margin-inline: auto;
}

.hero-local {
  background:
    linear-gradient(rgba(10, 10, 12, 0.78), rgba(10, 10, 12, 0.94)),
    url('/foto/casea-banner.png') center / cover no-repeat;
  border-bottom: 1px solid var(--border-color);
}

.region-kicker,
.offer-label {
  color: var(--accent-color);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.hero-cta {
  font-size: 18px;
  padding: 16px 32px;
  width: 100%;
}

.offer-box {
  background: var(--surface-color);
  border: 1px solid var(--accent-color);
  padding: 20px;
  border-radius: var(--border-radius);
  max-width: 500px;
  margin: 0 auto 32px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  position: relative;
  overflow: hidden;
}

.offer-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 4px;
  background: var(--accent-color);
}

.offer-value {
  font-size: 28px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 8px;
}

.offer-terms {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 16px;
}

/* Sections */
.section {
  padding: 32px 16px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 28px;
  margin-bottom: 24px;
  text-align: center;
}

/* Games Grid */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
  margin: 22px 0 34px;
}

.game-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 226 / 338;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow);
  display: block;
  min-width: 0;
}

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

.game-card:hover img {
  transform: scale(1.05);
}

.game-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.08), rgba(0,0,0,0.86));
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  opacity: 1;
  transition: var(--transition);
}

.game-card:hover .game-overlay {
  opacity: 1;
}

.game-title {
  margin-top: auto;
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  line-height: 1.15;
  text-shadow: 0 2px 10px rgba(0,0,0,0.65);
}

.game-meta {
  color: rgba(255,255,255,0.78);
  font-size: 12px;
  line-height: 1.3;
}

.game-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 6px;
  background: var(--primary-color);
  color: #111;
  font-size: 12px;
  font-weight: 800;
  max-width: 100%;
}

/* Trust Bar */
.trust-bar {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  padding: 24px 20px;
  background: var(--surface-color);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

.trust-item svg {
  width: 24px;
  height: 24px;
  fill: var(--accent-color);
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

details {
  background: var(--surface-color);
  margin-bottom: 12px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.language-switcher,
.mobile-menu {
  background: transparent;
  border: 0;
  margin-bottom: 0;
  overflow: visible;
}

summary {
  padding: 16px 20px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: '+';
  color: var(--accent-color);
  font-size: 20px;
}

details[open] summary::after {
  content: '-';
}

details p {
  padding: 0 20px 20px;
  color: var(--text-secondary);
}

/* Features List */
.features {
  display: grid;
  gap: 20px;
  margin-top: 32px;
}
.feature-item {
  background: var(--surface-color);
  padding: 24px;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
}
.feature-item h3 {
  color: var(--text-primary);
  margin-bottom: 8px;
}

/* Mobile Sticky CTA */
.mobile-cta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(26, 26, 32, 0.98);
  backdrop-filter: blur(10px);
  gap: 10px;
  padding: 10px 12px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
}

.mobile-cta-text {
  font-size: 12px;
  min-width: 0;
}
.mobile-cta-text strong {
  display: block;
  font-size: 14px;
  line-height: 1.15;
  color: var(--accent-color);
}

.mobile-cta-bar .btn {
  flex: 0 0 auto;
  padding: 10px 14px;
}

/* Geo Selector */
.geo-home {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(9, 9, 12, 0.74), rgba(9, 9, 12, 0.96)),
    url('/foto/casea-banner.png') center / cover fixed no-repeat;
}

.geo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 48px 20px;
  text-align: center;
}

.geo-hero {
  width: min(920px, 100%);
}

.geo-hero .logo-image {
  display: inline-flex;
  margin-bottom: 34px;
}

.geo-kicker {
  color: var(--accent-color);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.geo-hero h1 {
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.98;
  margin-bottom: 18px;
}

.geo-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  max-width: 1080px;
  margin-top: 34px;
}

.geo-card {
  background: rgba(20, 21, 26, 0.86);
  border: 1px solid var(--border-color);
  padding: 22px 16px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 218px;
  gap: 10px;
  transition: var(--transition);
  cursor: pointer;
  text-align: left;
  backdrop-filter: blur(12px);
}

.geo-card:hover {
  border-color: var(--accent-color);
  transform: translateY(-4px);
  background: rgba(28, 28, 34, 0.94);
}

.geo-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(214, 179, 90, 0.45);
  border-radius: 8px;
  color: var(--accent-color);
  font-size: 20px;
  font-weight: 900;
}

.geo-card strong {
  color: var(--text-primary);
  font-size: 20px;
  line-height: 1.15;
  margin-top: 6px;
}

.geo-card em {
  color: var(--text-secondary);
  font-size: 13px;
  font-style: normal;
}

.geo-suggest {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 10px 12px;
  border: 1px solid rgba(214, 179, 90, 0.35);
  border-radius: 8px;
  background: rgba(20, 21, 26, 0.72);
  color: var(--text-secondary);
}

.geo-suggest a {
  color: var(--accent-color);
  font-weight: 800;
}

.geo-note {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 860px;
  margin-top: 26px;
  color: var(--text-secondary);
  font-size: 13px;
}

.geo-note strong {
  color: var(--text-primary);
}

/* Content block styling for SEO */
.content-block {
  max-width: 800px;
  margin: 0 auto;
  color: var(--text-secondary);
}
.content-block h2, .content-block h3 {
  color: var(--text-primary);
  margin: 24px 0 12px;
}
.content-block p {
  margin-bottom: 16px;
}
.content-block ul {
  margin-bottom: 16px;
  padding-left: 20px;
}
.content-block li {
  margin-bottom: 8px;
}

.fact-table-wrap {
  margin: 24px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.fact-table {
  border-collapse: collapse;
  min-width: 620px;
  width: 100%;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
}

.fact-table th,
.fact-table td {
  border-bottom: 1px solid var(--border-color);
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  word-break: normal;
}

.fact-table th {
  color: var(--text-primary);
  width: 32%;
}

.fact-table tr:last-child th,
.fact-table tr:last-child td {
  border-bottom: 0;
}

.semantic-panel {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin: 28px 0;
  padding: 20px;
}

.semantic-panel h2 {
  margin-top: 0;
}

.semantic-grid {
  display: grid;
  gap: 12px;
}

.semantic-grid div {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 14px;
}

.semantic-grid strong,
.semantic-grid span {
  display: block;
}

.semantic-grid strong {
  color: var(--text-primary);
  margin-bottom: 6px;
}

.step-list {
  margin: 18px 0 18px 22px;
}

.entity-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 26px;
}

.entity-cloud span {
  background: rgba(230, 57, 70, 0.12);
  border: 1px solid rgba(230, 57, 70, 0.3);
  border-radius: 999px;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  padding: 8px 11px;
}

.intent-table td:first-child {
  color: var(--text-primary);
  font-weight: 700;
}

.geo-intro,
.geo-card span {
  color: var(--text-secondary);
}

.geo-card span {
  font-size: 12px;
}

@media (max-width: 980px) {
  .geo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .geo-container {
    justify-content: flex-start;
    padding: 30px 14px 40px;
  }
  .geo-hero .logo-image {
    margin-bottom: 26px;
  }
  .geo-hero h1 {
    font-size: 42px;
  }
  .geo-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 24px;
  }
  .geo-card {
    min-height: 0;
    padding: 16px;
  }
  .geo-suggest {
    align-items: flex-start;
    flex-direction: column;
    text-align: left;
  }
  .geo-note {
    justify-content: flex-start;
    text-align: left;
  }
}

/* Footer */
footer {
  text-align: center;
  padding: 40px 20px;
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 12px;
  margin-top: 40px;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
}
.footer-links a {
  color: var(--text-secondary);
}
.footer-links a:hover {
  text-decoration: underline;
}

/* Desktop Enhancements */
@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
  .nav-links {
    display: flex;
  }
  .header-container {
    padding: 16px 20px;
  }
  .logo {
    font-size: 24px;
  }
  .logo-image {
    width: 206px;
  }
  .header-actions {
    display: flex;
  }
  .mobile-menu {
    display: none;
  }
  .hero {
    padding: 60px 20px;
  }
  .hero h1 {
    font-size: 64px;
  }
  .hero p {
    font-size: 18px;
  }
  .offer-box {
    padding: 24px;
  }
  .offer-value {
    font-size: 32px;
  }
  .section {
    padding: 40px 20px;
  }
  .fact-table {
    min-width: 0;
  }
  .games-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
  .mobile-cta-bar {
    display: none;
  }
  .features {
    grid-template-columns: repeat(3, 1fr);
  }
}
