@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&family=Kanit:wght@600;700;800&display=swap');

:root {
  --cp-bg: #0a1a2e;
  --cp-surface: #0f1f38;
  --cp-elev: #14213d;
  --cp-line: #1e3a5f;
  --cp-soft: #94a3b8;
  --cp-text: #f8fafc;
  --cp-sub: #cbd5e1;
  --cp-accent: #00d4ff;     /* бірюзовий */
  --cp-accent-2: #ffd700;   /* золотий */
  --cp-warn: #f59e0b;
  --cp-good: #22c55e;

  --cp-radius: 16px;
  --cp-shadow-1: 0 8px 24px rgba(0, 0, 0, 0.4);
  --cp-shadow-2: 0 16px 48px rgba(0, 0, 0, 0.6);
  --cp-glow: 0 0 20px rgba(0, 212, 255, 0.3);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  margin: 0;
  background: linear-gradient(rgba(10, 26, 46, 0.9), rgba(10, 26, 46, 0.9)), url('../images/main-bg.webp') center/cover no-repeat fixed;
  color: var(--cp-text);
  font: 400 16px/1.6 "Inter", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.cp-skip {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.cp-skip:focus {
  position: fixed;
  left: 12px;
  top: 12px;
  background: #000;
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  z-index: 9999;
  font-weight: 600;
}
:focus-visible {
  outline: 2px dashed var(--cp-accent);
  outline-offset: 2px;
}

.cp-container {
  width: min(1140px, 92%);
  margin-inline: auto;
}

.cp-section {
  padding: 24px 0;
  content-visibility: auto;
  contain-intrinsic-size: 500px;
}

.cp-h1, .cp-h2, .cp-h3 {
  font-family: "Kanit", sans-serif;
  letter-spacing: 0.3px;
}
.cp-h1 { font-size: clamp(28px, 4vw, 42px); margin: 0 0 8px; }
.cp-h2 { font-size: clamp(22px, 3vw, 30px); margin: 0 0 10px; position: relative; }
.cp-h2::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 60px; height: 4px;
  background: linear-gradient(90deg, var(--cp-accent), var(--cp-accent-2));
  border-radius: 2px;
}
.cp-h3 { font-size: clamp(18px, 2.5vw, 22px); margin: 0 0 6px; }
.cp-lead { color: var(--cp-sub); font-size: clamp(14px, 2vw, 16px); margin: 0; }

.cp-hero {
  background: var(--cp-surface);
  border: 1px solid var(--cp-line);
  border-radius: var(--cp-radius);
  overflow: hidden;
  box-shadow: var(--cp-shadow-1);
}
.cp-hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 16px;
  align-items: center;
  padding: 20px;
}
.cp-hero-visual {
  background: radial-gradient(circle at center, rgba(0, 212, 255, 0.15), transparent 70%);
  height: 200px;
  border-radius: 12px;
  position: relative;
  transform: scale(.5);
}
.cp-hero-visual::after {
  content: url("../images/logo.png");
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 64px;
  filter: drop-shadow(0 0 20px var(--cp-accent));
}

/* Картка казино — вертикальна, сучасна */
.cp-grid { display: grid; gap: 16px; justify-content: center; margin-top: 40px;}
.cp-card {
  background: var(--cp-surface);
  border: 1px solid var(--cp-line);
  border-radius: var(--cp-radius);
  overflow: hidden;
  box-shadow: var(--cp-shadow-1);
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  width: fit-content;
}
.cp-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--cp-shadow-2), var(--cp-glow);
  border-color: var(--cp-accent);
}

.cp-card-ribbon {
  position: absolute;
  left: 12px; top: 8px;
  background: linear-gradient(135deg, var(--cp-accent-2), #d4af37);
  color: #0a1a2e;
  font-weight: 800;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(255, 215, 0, 0.3);
  z-index: 2;
}
.cp-card-badge {
  position: absolute;
  right: 12px; top: 8px;
  background: rgba(0, 212, 255, 0.2);
  color: var(--cp-accent);
  font-weight: 700;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid var(--cp-accent);
  z-index: 2;
}

.cp-card-logo {
  width: 100%;
  height: 140px;
  object-fit: contain;
  background: #0a1a2e;
  padding: 16px;
  border-bottom: 1px solid var(--cp-line);
}

.cp-card-body {
  padding: 16px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cp-card-title { margin: 0; font-size: 20px; font-weight: 700; }
.cp-card-offer {
  color: #fff1d6;
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.1));
  border: 1px dashed rgba(245, 158, 11, 0.6);
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 700;
}
.cp-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.cp-tag {
  font-size: 11px;
  font-weight: 700;
  color: #e0f7ff;
  background: rgba(0, 212, 255, 0.15);
  border: 1px solid rgba(0, 212, 255, 0.4);
  padding: 4px 8px;
  border-radius: 999px;
}
.cp-card-payments {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.cp-card-payments img {
  width: 48px; height: 24px;
  object-fit: contain;
  border-radius: 6px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
}
.cp-card-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}
.cp-stars {
  --rating: 5;
  --size: 18px;
  width: calc(5 * var(--size));
  height: var(--size);
  background: linear-gradient(90deg, var(--cp-accent-2) calc((var(--rating) / 5) * 100%), rgba(255,255,255,0.2) 0);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><path fill="%23000" d="M10 0l2.6 6.2 6.8.6-5.1 4.2 1.6 6.7L10 14.6 4.1 17.7l1.6-6.7-5.1-4.2 6.8-.6L10 0zM30 0l2.6 6.2 6.8.6-5.1 4.2 1.6 6.7L30 14.6 24.1 17.7l1.6-6.7-5.1-4.2 6.8-.6L30 0zM50 0l2.6 6.2 6.8.6-5.1 4.2 1.6 6.7L50 14.6 44.1 17.7l1.6-6.7-5.1-4.2 6.8-.6L50 0zM70 0l2.6 6.2 6.8.6-5.1 4.2 1.6 6.7L70 14.6 64.1 17.7l1.6-6.7-5.1-4.2 6.8-.6L70 0zM90 0l2.6 6.2 6.8.6-5.1 4.2 1.6 6.7L90 14.6 84.1 17.7l1.6-6.7-5.1-4.2 6.8-.6L90 0z"/></svg>');
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><path fill="%23000" d="M10 0l2.6 6.2 6.8.6-5.1 4.2 1.6 6.7L10 14.6 4.1 17.7l1.6-6.7-5.1-4.2 6.8-.6L10 0zM30 0l2.6 6.2 6.8.6-5.1 4.2 1.6 6.7L30 14.6 24.1 17.7l1.6-6.7-5.1-4.2 6.8-.6L30 0zM50 0l2.6 6.2 6.8.6-5.1 4.2 1.6 6.7L50 14.6 44.1 17.7l1.6-6.7-5.1-4.2 6.8-.6L50 0zM70 0l2.6 6.2 6.8.6-5.1 4.2 1.6 6.7L70 14.6 64.1 17.7l1.6-6.7-5.1-4.2 6.8-.6L70 0zM90 0l2.6 6.2 6.8.6-5.1 4.2 1.6 6.7L90 14.6 84.1 17.7l1.6-6.7-5.1-4.2 6.8-.6L90 0z"/></svg>');
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}
.cp-card-cta {
  padding: 12px 16px 16px;
  background: var(--cp-elev);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 700;
  font-size: 15px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}
.cp-btn-primary {
  background: linear-gradient(135deg, var(--cp-accent), var(--cp-accent-2));
  color: #0a1a2e;
  box-shadow: 0 4px 12px rgba(0, 212, 255, 0.4);
}
.cp-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 212, 255, 0.6);
}
.cp-cta-foot { font-size: 12px; color: var(--cp-soft); text-align: center; }

.cp-accordion details {
  margin-bottom: 8px;
  background: var(--cp-elev);
  border: 1px solid var(--cp-line);
  border-radius: 12px;
  overflow: hidden;
}
.cp-accordion summary {
  cursor: pointer;
  padding: 10px 12px;
  font-weight: 700;
  font-size: 14px;
  background: #0a1a2e;
}
.cp-accordion p {
  padding: 0 12px 10px;
  color: var(--cp-sub);
  border-top: 1px dashed var(--cp-line);
}

.cp-reviews {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
.cp-review {
  background: var(--cp-elev);
  border: 1px solid var(--cp-line);
  border-radius: 12px;
  padding: 12px;
  box-shadow: var(--cp-shadow-1);
}
.cp-review .cp-stars { --size: 16px; }

.cp-games {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}
.cp-game {
  text-align: center;
  background: var(--cp-elev);
  border: 1px solid var(--cp-line);
  border-radius: 12px;
  padding: 12px;
  transition: all 0.2s ease;
}
.cp-game:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 212, 255, 0.25);
}

.cp-charts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
}
.cp-chart {
  background: var(--cp-elev);
  border: 1px solid var(--cp-line);
  border-radius: 12px;
  padding: 12px;
  box-shadow: var(--cp-shadow-1);
}
.cp-bar {
  --val: 50;
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cp-accent) calc(var(--val) * 1%), rgba(255,255,255,0.16) 0);
  margin-bottom: 6px;
}
.cp-ind { color: var(--cp-sub); font-size: 12px; }

.cp-banner {
  background: linear-gradient(135deg, rgba(0,212,255,0.15), rgba(255,215,0,0.15));
  border: 1px solid var(--cp-accent);
  border-radius: var(--cp-radius);
  padding: 16px;
  box-shadow: var(--cp-shadow-2);
  position: relative;
  overflow: hidden;
  width: fit-content;
}
.cp-banner-ribbon {
  position: absolute;
  left: 12px; top: 8px;
  background: var(--cp-accent-2);
  color: #0a1a2e;
  font-weight: 800;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 6px;
}
.cp-top-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 12px;
  align-items: center;
}

.cp-top-logo{
  width: 150px;
  margin-top: 30px;
}
.cp-top-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0;
}

.cp-footer {
  padding: 24px 0;
  border-top: 2px solid var(--cp-line);
  background: rgba(10, 26, 46, 0.95);
  backdrop-filter: blur(8px);
}
.cp-footgrid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-areas: "note row" "copy copy";
  gap: 16px;
  align-items: start;
}
.cp-note { grid-area: note; background: var(--cp-elev); border: 1px solid var(--cp-line); border-radius: 12px; padding: 14px; }
.cp-footrow { grid-area: row; display: flex; flex-direction: column; gap: 12px; }
.cp-nav { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-start; }
.cp-nav a { color: #b3d9ff; text-decoration: none; }
.cp-nav a:hover { color: var(--cp-accent); text-decoration: underline; }
.cp-logos { display: flex; gap: 8px; flex-wrap: wrap; }
.cp-logos a {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(0,212,255,0.3);
  transition: all 0.2s ease;
}
.cp-logos a:hover {
  background: rgba(0,212,255,0.1);
  border-color: var(--cp-accent);
  transform: translateY(-1px);
}
.cp-logos img { height: 20px; filter: brightness(1.2); }
.cp-copy { grid-area: copy; text-align: center; color: var(--cp-soft); font-size: 12px; }

.cp-muted { color: var(--cp-soft); font-size: 13px; }
.cp-p { margin: 0 0 8px; color: var(--cp-sub); }
.min-w { min-width: 220px; }

@media (max-width: 960px) {
  .cp-hero-grid { grid-template-columns: 1fr; }
  .cp-card { flex-direction: column; }
  .cp-top-grid { grid-template-columns: 1fr; text-align: center; }
  .cp-footgrid { grid-template-columns: 1fr; grid-template-areas: "note" "row" "copy"; }
  .cp-nav, .cp-logos { justify-content: center; }
}