/* casinoahora.info — Light, image-free, production CSS */
:root {
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --ink: #121417;
  --muted: #606a78;
  --line: #e4e7ec;
  --ok: #1b8f3a;
  --accent: #0a66ff;
  --gold: #d4af37;
  --radius: 12px;
  --shadow: 0 6px 18px rgba(16, 24, 40, 0.06);
  --font: 16px/1.7 system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell,
    Noto Sans, Helvetica, Arial, sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
}
.visually-hidden {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  padding: 0 !important;
  border: 0 !important;
  height: 1px !important;
  width: 1px !important;
  overflow: hidden;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: saturate(140%) blur(6px);
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid var(--line);
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.3px;
  flex: 1;
}

.brand__badge {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #111827;
  color: #fff;
  display: grid;
  place-items: center;
}
.topnav a {
  color: var(--ink);
  text-decoration: none;
  margin-left: 14px;
  font-size: 15px;
  padding: 8px 8px;
  border-radius: 8px;
}
.topnav a:hover {
  background: var(--bg-soft);
}
.topnav a[aria-current="page"] {
  font-weight: 800;
}
.burger {
  display: none;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  margin-left: 14px;
}
.burger span {
  display: block;
  width: 16px;
  height: 1px;
  background: #111;
  position: relative;
  margin: 0 auto;
}
.burger span:before,
.burger span:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: #111;
}
.burger span:before {
  top: -6px;
}
.burger span:after {
  top: 6px;
}
@media (max-width: 900px) {
  .topnav {
    display: none;
  }
  .burger {
    display: block;
  }
  .topnav.is-open {
    display: block;
    position: absolute;
    right: 16px;
    left: 16px;
    top: 54px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px;
    box-shadow: var(--shadow);
  }
  .topnav.is-open a {
    display: block;
    margin: 6px 0;
  }
}

/* Hero */
.hero {
  padding: 40px 0 24px;
  background: linear-gradient(180deg, #fff 0%, #fafbfc 100%);
  border-bottom: 1px solid var(--line);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: center;
}
.hero__panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}
.hero__title {
  margin: 0 0 8px;
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.15;
}
.hero__intro {
  margin: 0 0 14px;
  color: var(--muted);
}
.hero__bullets {
  margin: 0 0 16px;
  padding: 0 0 0 20px;
}
/* hero_art: info chips */
.hero__art {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, #eef2ff, #f8fafc);
  padding: 14px;
}
.hero__chips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.hero__chip {
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}
@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
  .hero__chips {
    grid-template-columns: 1fr 1fr;
  }
}

/* Sections */
.section {
  padding: 26px 0;
}
.section__title {
  margin: 0 0 10px;
  font-size: clamp(22px, 2.6vw, 28px);
}
.grid {
  display: grid;
  gap: 14px;
}
.grid--1 {
  grid-template-columns: 1fr;
}
.grid--3 {
  grid-template-columns: 1fr 1fr 1fr;
}
.grid--3 .card {
  display: flex;
  flex-direction: column;
}
.grid--3 .card .badge {
  background-color: #fff;
}
.grid--3 .card__media {
  padding: 0;
  width: 100%;
  height: 200px;
}
.grid--3 .card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}
/* Card */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 1rem;
  align-items: center;
}
.badge {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--line);
  display: grid;
  font-size: 0.9rem;
  place-items: center;
  font-weight: 800;
  color: #111;
}
.card__media {
  height: 100%;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(180deg, #f3f4f6, #fff);
}
.card__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}
.logo-box {
  width: 200px;
}
.logo-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.rating {
  margin-left: auto;
  color: #111;
  display: flex;
  align-items: center;
  gap: 8px;
}
.stars {
  color: var(--gold);
}
.pill {
  display: inline-block;
  font-size: 12px;
  color: var(--ok);
  border: 1px solid #b9e4c6;
  background: #eefaf2;
  padding: 4px 8px;
  border-radius: 999px;
}
.pros {
  margin: 10px 0 14px;
  padding-left: 15px;
}
.action {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}
.btn {
  display: inline-block;
  padding: 12px 16px;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid var(--line);
  background: #111827;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}
.btn:hover {
  filter: brightness(0.96);
}
.btn--secondary {
  background: #fff;
  color: #111;
  border: 1px solid var(--line);
}

/* Soft cards */
.card-soft {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
}

/* Details */
.details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
}
.details + .details {
  margin-top: 8px;
}

/* Footer */
footer {
  background: #fff;
  border-top: 1px solid var(--line);
}
.footgrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 18px 16px;
  text-align: center;
}
.reglist {
  justify-content: center;
}
@media (max-width: 900px) {
  .card {
    grid-template-columns: 1fr 1fr;
  }

  .grid--3 {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .card {
    gap: 0.5rem;
    padding: 10px;
  }
  .btn {
    text-align: center;
    padding: 8px;
    font-size: 0.9rem;
  }
  .card__desc {
    margin: 0.2rem 0 0 0;
    font-size: 0.85rem;
  }
  .pros {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.4;
  }
  .logo-box {
    width: 100%;
  }
  .card__media {
    padding: 0.5rem;
  }
  .action span {
    margin: 0;
    text-align: center;
  }
  .hidden,
  .hero__art,
  #cards-title {
    display: none;
  }
  .hero__panel {
    padding: 10px;
  }
  .hero,
  .section {
    padding: 20px 0;
  }
  .badge {
    top: 10px;
    left: 10px;
    width: 24px;
    height: 24px;
    font-size: 0.8rem;
  }
}
.footmenu a {
  display: inline-block;
  margin: 6px 10px 0 0;
  color: var(--ink);
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 6px;
}
.footmenu a:hover {
  background: var(--bg-soft);
}
.legal {
  font-size: 12px;
  color: var(--muted);
}
.legal--colored {
  color: var(--accent);
}

/* Regulators/logos block in footer */
.footgrid .regs {
  grid-column: 1 / -1;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 10px;
}
.regs__title {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.reglist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 8px;
}
.regbadge {
  width: 150px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--ink);
  color: var(--ink);
  text-decoration: none;
  font-size: 12px;
}
.regbadge img {
  display: block;
  max-width: 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

html.theme-dark .regs {
  background: #0f1623;
  border-color: var(--line);
}
html.theme-dark .regbadge {
  background: #0f1623;
  border-color: var(--line);
  color: var(--ink);
}
/* Cookie */
.cookie {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 12px;
  display: none;
}
.cookie__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

/* Forms */
.form {
  display: grid;
  gap: 12px;
  max-width: 640px;
}
.form label {
  display: block;
  font-weight: 600;
  font-size: 14px;
}
.input,
.select,
.textarea {
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  outline: none;
  font: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease,
    background-color 0.15s ease;
}
.textarea {
  min-height: 140px;
  resize: vertical;
}
.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(10, 102, 255, 0.12);
}
.field-error {
  display: block;
  min-height: 16px;
  margin-top: 6px;
  color: #dc2626;
  font-size: 12px;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.field-error.visible {
  opacity: 1;
}
.is-invalid {
  border-color: #ef4444 !important;
  background: #fff7f7 !important;
}
.is-valid {
  border-color: #22c55e !important;
  background: #f0fff4 !important;
}

/* Submit loading state */
.btn.is-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.9;
}
.btn.is-loading:after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  border: 2px solid #fff;
  border-right-color: transparent;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: translateY(-50%) rotate(360deg);
  }
}

/* Toast notification */
.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 1000;
  padding: 10px 12px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  color: #fff;
  background: #111827;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.toast--success {
  background: #16a34a;
}
.toast--error {
  background: #dc2626;
}

/* Theme toggle */
.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  margin-left: 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: #111;
  font-size: 16px;
  cursor: pointer;
}

/* Dark theme variables and overrides */
html.theme-dark {
  --bg: #0b0f14;
  --bg-soft: #0f1623;
  --ink: #e5e7eb;
  --muted: #9aa4b2;
  --line: #2a2f3a;
  --ok: #22c55e;
  --accent: #3b82f6;
  --gold: #d4af37;
}
html.theme-dark body {
  background: var(--bg);
  color: var(--ink);
}
html.theme-dark .site-header {
  background: rgba(17, 24, 39, 0.85);
  border-bottom-color: var(--line);
}
html.theme-dark .topnav a {
  color: var(--ink);
}
html.theme-dark .topnav a:hover {
  background: #111827;
}
html.theme-dark .hero {
  background: linear-gradient(180deg, #0b0f14 0%, #0f1623 100%);
  border-bottom-color: var(--line);
}
html.theme-dark .hero__panel,
html.theme-dark .hero__art,
html.theme-dark .card,
html.theme-dark .card-soft,
html.theme-dark .details,
html.theme-dark footer,
html.theme-dark .cookie,
html.theme-dark .topnav.is-open {
  background: #0f1623;
  border-color: var(--line);
}
html.theme-dark .hero__chip,
html.theme-dark .card__media {
  background: linear-gradient(180deg, #121826, #0f1623);
  border-color: var(--line);
}
html.theme-dark .grid--3 .card .badge {
  background-color: #0f1623;
}
html.theme-dark .footmenu a {
  color: var(--ink);
}
html.theme-dark .footmenu a:hover {
  background: #111827;
}
html.theme-dark .btn {
  background: #2563eb;
  color: #fff;
  border-color: #334155;
}
html.theme-dark .btn--secondary {
  background: #0f1623;
  color: var(--ink);
  border-color: var(--line);
}
html.theme-dark .input,
html.theme-dark .select,
html.theme-dark .textarea {
  background: #0f1623;
  color: var(--ink);
  border-color: var(--line);
}
html.theme-dark .field-error {
  color: #f87171;
}
html.theme-dark .is-invalid {
  background: #2a1515 !important;
  border-color: #ef4444 !important;
}
html.theme-dark .is-valid {
  background: #0f2416 !important;
  border-color: #22c55e !important;
}
html.theme-dark .badge {
  color: #fff;
}
html.theme-dark .rating {
  color: #fff;
}
html.theme-dark .pill {
  background-color: transparent;
  border: 1px solid var(--ok);
}
html.theme-dark .brand__badge {
  background: #fff;
  color: #111;
}
html.theme-dark .burger {
  background: #0f1623;
  border-color: var(--line);
}
html.theme-dark .burger span,
html.theme-dark .burger span:before,
html.theme-dark .burger span:after {
  background: #e5e7eb;
}

/* Age gate modal */
.age-gate {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
}
.age-gate.is-visible {
  display: flex;
}
.age-gate__dialog {
  max-width: 560px;
  width: calc(100% - 24px);
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 16px;
  text-align: center;
}
.age-gate__title {
  margin: 0 0 8px;
  font-size: 22px;
}
.age-gate__text {
  margin: 0 0 12px;
  color: var(--muted);
}
.age-gate__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 12px;
}
.age-gate__badge {
  display: inline-block;
  margin-bottom: 10px;
  font-weight: 800;
  background: #111827;
  color: #fff;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid var(--line);
}

/* Blur page content when age gate is active */
html.age-gate-active .site-header,
html.age-gate-active main,
html.age-gate-active footer,
html.age-gate-active #cookie {
  filter: blur(6px);
  pointer-events: none;
  user-select: none;
}

/* Dark theme for age gate */
html.theme-dark .age-gate__dialog {
  background: #0f1623;
  border-color: var(--line);
  color: var(--ink);
}
html.theme-dark .age-gate__badge {
  background: #2563eb;
  border-color: #334155;
}
@media (max-width: 600px) {
  .burger,
  .theme-toggle {
    border-radius: 6px;
  }
}
