/* Night casino theme with Croatian flag accents (red, white, blue) */
:root {
  /* Croatian flag accurate tones */
  --hr-red: #c8102e; /* Pantone 186 C */
  --hr-blue: #171796; /* Deep royal approximation */
  --hr-white: #ffffff;

  --bg: #080a10;
  --bg-elev: #0e1528;
  --card: #0a1120;
  --text: #fff;
  --muted: #fff;
  --primary: var(--hr-blue);
  --primary-2: var(--hr-red);
  --accent: #2ac0ff;
  --border: #223052;
  --success: #10b981;
  --warning: #f59e0b;
  --neon-red: #ff2a44;
  --neon-white: #f4f8ff;
  --neon-blue: #2ea8ff;
  --glow: 0 0 12px rgba(46, 168, 255, 0.55), 0 0 24px rgba(200, 16, 46, 0.3);
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
body {
  font-family: Montserrat, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu,
    Cantarell, "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)),
    url("bg.webp") center top / cover no-repeat fixed,
    radial-gradient(
      1000px 500px at 15% -10%,
      rgba(46, 168, 255, 0.08),
      transparent
    ),
    radial-gradient(900px 400px at 100% 0, rgba(237, 41, 57, 0.07), transparent),
    linear-gradient(180deg, #070a10, var(--bg));
  background-attachment: scroll, fixed, scroll, scroll, scroll;
  color: var(--text);
  line-height: 1.65;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: #93c5fd;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
.container {
  max-width: 1100px;
  margin-inline: auto;
  padding: 0 16px;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  background: #fff;
  color: #000;
  padding: 8px 12px;
  border-radius: 6px;
  z-index: 1000;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 14, 22, 0.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: #fff;
}
.brand-flag {
  width: 28px;
  height: 18px;
  border: 1px solid #fff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
  background: linear-gradient(
    180deg,
    #c81e1e 0 33%,
    #ffffff 33% 66%,
    #1d4ed8 66%
  );
}
.nav ul {
  display: flex;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav a {
  padding: 8px 10px;
  border-radius: 8px;
}
.nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: var(--glow);
}

/* Hero */
.hero {
  padding: 56px 0;
}
.hero h1 {
  text-shadow: 0 0 10px rgba(46, 168, 255, 0.5),
    0 0 18px rgba(237, 41, 57, 0.35);
}
.hero h1 {
  font-size: clamp(26px, 4vw, 40px);
  margin: 0 0 12px;
}
.lead {
  font-size: clamp(16px, 2.2vw, 18px);
  color: #d1d5db;
  max-width: 900px;
}

/* Offers */
.offers {
  padding: 40px 0;
}
.offers .container {
  position: relative;
}
.offers .container::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      600px 180px at 20% 0,
      rgba(46, 168, 255, 0.07),
      transparent
    ),
    radial-gradient(600px 180px at 80% 0, rgba(237, 41, 57, 0.07), transparent);
  pointer-events: none;
}
.offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.card {
  position: relative;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--card), #0b131f);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}
.card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(237, 41, 57, 0.9),
    rgba(46, 168, 255, 0.9)
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.45;
  pointer-events: none;
}
.card:hover {
  box-shadow: 0 12px 40px rgba(46, 168, 255, 0.25),
    0 0 0 1px rgba(237, 41, 57, 0.15) inset;
}
.card.featured {
  transform: translateY(-2px);
}
.card.featured .ribbon {
  background: linear-gradient(
    90deg,
    rgba(23, 23, 150, 0.9),
    rgba(200, 16, 46, 0.9)
  );
}
.card.featured::before {
  opacity: 0.6;
}
/* Top ribbon to isolate badge from header area */
.ribbon {
  position: relative;
  padding: 8px 14px;
  background: linear-gradient(
    90deg,
    rgba(23, 23, 150, 0.65),
    rgba(200, 16, 46, 0.65)
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.ribbon .badge {
  position: static;
  display: inline-block;
}
.badge {
  position: absolute;
  top: -20px;
  left: 10px;
  background: linear-gradient(90deg, var(--neon-blue), var(--neon-red));
  color: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.25px;
  box-shadow: var(--glow);
}
.card-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}
.card-body {
  padding: 14px 16px;
}
.card-header .btn {
  margin-left: auto;
  flex-shrink: 0;
}
.logo {
  filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.6));
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 12px;
}
.specs > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: linear-gradient(
    180deg,
    rgba(23, 23, 150, 0.12),
    rgba(200, 16, 46, 0.1)
  );
  box-shadow: inset 0 0 12px rgba(46, 168, 255, 0.08);
}
.specs dt {
  font-weight: 700;
  color: #e6e9f5;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.4px;
}
.specs dd {
  margin: 0;
  color: #f3f4f6;
}
.bonus {
  margin: 10px 0 0;
  color: #f3f4f6;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(
    90deg,
    rgba(46, 168, 255, 0.1),
    rgba(200, 16, 46, 0.1)
  );
  box-shadow: inset 0 0 10px rgba(46, 168, 255, 0.12);
}

/* Buttons */
.btn {
  width: 100%;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.btn.primary {
  color: white;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  box-shadow: 0 6px 8px rgba(37, 99, 235, 0.45),
    0 0 8px rgba(46, 168, 255, 0.35);
}
.btn.primary:hover {
  filter: brightness(1.08);
  box-shadow: 0 10px 12px rgba(37, 99, 235, 0.5),
    0 0 12px rgba(46, 168, 255, 0.55);
  text-decoration: none;
}

/* Content sections */
.content {
  padding: 28px 0;
  border-top: 1px solid var(--border);
  position: relative;
}
.content::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(46, 168, 255, 0.5),
    rgba(237, 41, 57, 0.4)
  );
  box-shadow: 0 0 10px rgba(46, 168, 255, 0.5);
}
.content h2 {
  font-size: clamp(20px, 3vw, 28px);
  margin: 0 0 10px;
  text-shadow: 0 0 10px rgba(46, 168, 255, 0.35);
}
.content h3 {
  margin: 14px 0 8px;
}
.prose p {
  margin: 10px 0;
  color: #d1d5db;
}
.prose ul {
  margin: 10px 0 0 0;
  padding-left: 18px;
}
.prose li {
  margin: 6px 0;
}

/* Footer */
.site-footer {
  margin-top: 28px;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, #0a101a, #070b12);
  padding: 22px 0;
}
.site-footer h4 {
  margin: 0 0 8px;
}
.trust-logos {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 12px 0;
}
.trust-logos a {
  border: 1px solid var(--border);
  padding: 4px 8px;
  border-radius: 8px;
}
.trust-logos a.white {
  background-color: #fff;
}
.trust-logos img {
  height: 28px;
  opacity: 0.95;
  filter: none;
  filter: drop-shadow(0 0 8px rgba(46, 168, 255, 0.35));
}
.trust-logos .age {
  border: 1px solid var(--border);
  padding: 4px 8px;
  border-radius: 8px;
  background: #111827;
  color: #fff;
  font-weight: 700;
}
.footer-nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 8px 0;
}
.footer-nav a {
  color: #c7d2fe;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-nav a:hover {
  box-shadow: var(--glow);
  background: rgba(255, 255, 255, 0.04);
}

/* Responsive tweaks */
@media (max-width: 640px) {
  .card-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 10px;
    padding: 18px 12px 12px 12px;
  }
  .card-header .logo {
    justify-self: start;
  }
  .card-header .btn {
    justify-self: end;
    width: 100%;
    text-align: center;
  }
  .trust-logos {
    flex-wrap: wrap;
  }
  .btn {
    padding: 10px 6px;
    letter-spacing: 1px;
    font-size: 0.85rem;
  }
  .bonus {
    text-align: center;
    margin-top: 0;
    margin-bottom: 10px;
  }
  .bonus strong {
    display: block;
  }
  .card-body {
    display: flex;
    flex-direction: column;
    padding: 10px 12px;
  }
  .specs {
    order: 2;
    margin-bottom: 0;
  }
  .hero {
    padding: 24px 0 0 0;
  }
  .hero h1 {
    margin-bottom: 0;
  }
  .lead {
    margin: 0.5rem 0;
    font-size: 0.9rem;
  }
  .offers {
    padding: 24px 0;
  }
}
