.sf-cc-v2 {
  background: #fff;
  border: 1px solid #E8E4F0;
  border-radius: 12px;
  display: grid;
  grid-template-columns: 24px 56px 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  margin-bottom: 12px;
  transition: box-shadow 0.2s;
  position: relative;
}

.sf-cc-v2:hover {
  box-shadow: 0 4px 20px rgba(74,16,96,0.1);
}

.sf-cc-v2.sf-cc-v2--top {
  border: 2px solid #FFB800;
  border-top: 3px solid #FFB800;  /* thicker top so badge sits flush */
  background: linear-gradient(90deg, #FFFBF0 0%, #fff 40%);
  padding-top: 22px; /* extra room for the absolute badge */
}

.sf-cc-v2-rank {
  font-size: 11px;
  font-weight: 800;
  color: #9B98A8;
  text-align: center;
}

.sf-cc-v2-rank.sf-cc-v2-rank--gold {
  color: #E6A500;
  font-size: 13px;
}

.sf-cc-v2-logo {
  width: 52px;
  height: 36px;
  border-radius: 8px;
  background: #F5F2EC;
  border: 1px solid #E8E4F0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  overflow: hidden;
}

.sf-cc-v2-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
}

.sf-cc-v2-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sf-cc-v2-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.sf-cc-v2-name {
  font-size: 13px;
  font-weight: 800;
  color: #1A1A2E;
}

.sf-cc-v2-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.sf-cc-v2-tag {
  font-size: 9px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  background: #F0EDF8;
  color: #6B6880;
  border: 1px solid #E8E4F0;
}

.sf-cc-v2-editor-badge {
  position: absolute;
  top: -1px;        /* sits on the card's top border */
  left: 10px;       /* aligns above the logo column */
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 9px;
  font-weight: 700;
  background: #FFB800;
  color: #380D4A;
  padding: 2px 8px;
  border-radius: 0 0 5px 5px; /* hangs down from the top edge */
  text-transform: uppercase;
  letter-spacing: 0.04em;
  z-index: 2;
  white-space: nowrap;
}

.sf-cc-v2-offer {
  border-left: 1px solid #E8E4F0;
  padding-left: 14px;
  min-width: 160px;
  max-width: 220px;
}

.sf-cc-v2-bonus {
  font-size: 14px;
  font-weight: 800;
  color: #FF6B2B;
  white-space: nowrap;
}

.sf-cc-v2-bonus-detail {
  font-size: 10px;
  color: #6B6880;
  margin-top: 2px;
}

.sf-cc-v2-bonus-detail.sf-cc-v2-bonus-detail--highlight {
  color: #5EA020;
  font-weight: 700;
}

.sf-cc-v2-right {
  display: flex;
  align-items: center;
  gap: 10px;
  border-left: 1px solid #E8E4F0;
  padding-left: 14px;
}

.sf-cc-v2-btns {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 120px;
}

.sf-cc-v2-ring-wrap {
  position: relative;
  flex-shrink: 0;
}

.sf-cc-v2-ring-wrap svg {
  display: block;
}

.sf-cc-v2-ring-score {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.sf-cc-v2-ring-score .sf-cc-v2-rs-num {
  font-size: 15px;
  font-weight: 800;
  color: #4A1060;
}

.sf-cc-v2-ring-score .sf-cc-v2-rs-lbl {
  font-size: 8px;
  font-weight: 700;
  color: #9B98A8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 1px;
}

.sf-cc-v2-btn-orange {
  background: #FF6B2B;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  text-decoration: none;
  display: block;
  width: 100%;
  text-align: center;
  box-shadow: 0 3px 10px rgba(255,107,43,.35);
  transition: background .15s, box-shadow .15s;
}

.sf-cc-v2-btn-orange:hover {
  background: #E55A1B;
}

.sf-cc-v2-btn-ghost {
  background: #F5F2EC;
  color: #4A1060;
  border: 1.5px solid #E8E4F0;
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  text-decoration: none;
  display: block;
  width: 100%;
  text-align: center;
  transition: border-color .15s, background .15s;
}

.sf-cc-v2-btn-ghost:hover {
  border-color: #4A1060;
}

@media (max-width: 640px) {
  .sf-cc-v2 {
    grid-template-columns: 24px 48px 1fr;
    grid-template-rows: auto auto auto;
  }
  
  .sf-cc-v2-offer {
    grid-column: 2 / 4;
    border-left: none;
    padding-left: 0;
    border-top: 1px solid #E8E4F0;
    padding-top: 8px;
    min-width: 0;
    max-width: none;
  }

  .sf-cc-v2-bonus {
    white-space: normal;
    word-break: break-word;
  }
  
  .sf-cc-v2-right {
    grid-column: 1 / 4;
    border-left: none;
    padding-left: 0;
    border-top: 1px solid #E8E4F0;
    padding-top: 10px;
    justify-content: space-between;
  }
  
  .sf-cc-v2-btns {
    flex-direction: row;
    flex-wrap: wrap;
    flex: 1 1 auto;
    min-width: 0;
  }

  .sf-cc-v2-btns .sf-cc-v2-btn-orange,
  .sf-cc-v2-btns .sf-cc-v2-btn-ghost {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
  }

  .sf-cc-v2-btns .sf-cc-v2-btn-orange {
    flex: 1 1 100%;
  }
}

.sf-cc-v2-container {
  width: 100%;
  padding: 20px 0 32px;
}

.sf-cc-v2-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

:root {
    --casino-ease:   cubic-bezier(0.25, 1, 0.5, 1);
    --pill-ease:     cubic-bezier(0.35, 1.4, 0.5, 1); /* slight spring overshoot */
}

.sf-casino-cards .sf-cc:nth-child(even),
.sf-casino-cards .sf-cc-v2:nth-child(even) {
    background-color: rgba(30, 27, 46, 0.018);
}

.sf-casino-cards {
    gap: 10px;
}

.sf-casino-cards .sf-cc,
.sf-casino-cards .sf-cc-v2 {
    animation: sfCardFadeUp 0.35s var(--casino-ease) both;
}
.sf-casino-cards .sf-cc:nth-child(1),  .sf-casino-cards .sf-cc-v2:nth-child(1)  { animation-delay: 0.00s; }
.sf-casino-cards .sf-cc:nth-child(2),  .sf-casino-cards .sf-cc-v2:nth-child(2)  { animation-delay: 0.05s; }
.sf-casino-cards .sf-cc:nth-child(3),  .sf-casino-cards .sf-cc-v2:nth-child(3)  { animation-delay: 0.10s; }
.sf-casino-cards .sf-cc:nth-child(4),  .sf-casino-cards .sf-cc-v2:nth-child(4)  { animation-delay: 0.15s; }
.sf-casino-cards .sf-cc:nth-child(5),  .sf-casino-cards .sf-cc-v2:nth-child(5)  { animation-delay: 0.20s; }
.sf-casino-cards .sf-cc:nth-child(6),  .sf-casino-cards .sf-cc-v2:nth-child(6)  { animation-delay: 0.25s; }

@keyframes sfCardFadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.sf-cc-btn-visit,
.sf-cc-v2-btn-orange {
    position: relative;
    overflow: hidden;
    color: #fff;
    isolation: isolate;
}

.sf-cc-btn-visit > *,
.sf-cc-v2-btn-orange > * {
    position: relative;
    z-index: 1;
}

.sf-cc-btn-visit::after,
.sf-cc-v2-btn-orange::after {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    z-index: 0;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.18),
        transparent
    );
    animation: sfBtnShimmer 2.8s ease infinite;
    pointer-events: none;
}

@keyframes sfBtnShimmer {
    0%   { left: -75%; }
    60%  { left: 125%; }
    100% { left: 125%; }
}

.sf-casino-filter-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 14px 0 12px;
    margin: 0 0 20px;
    /* Glass blur so casino cards pass legibly behind */
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    background: rgba(254, 252, 247, 0.88); /* --brand-cream at 88% */
    border-bottom: 1px solid rgba(30, 27, 46, 0.06);
    /* Slide down on first stick */
    transition: box-shadow 0.2s var(--casino-ease);
}
.sf-casino-filter-bar.is-stuck {
    box-shadow: 0 4px 24px rgba(30, 27, 46, 0.08);
}

.sf-cfl-pill-wrap {
    position: relative;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sf-cfl-indicator {
    position: absolute;
    height: 100%;
    background: var(--brand-plum, #1E1B2E);
    border-radius: 100px;
    transition:
        left   0.3s var(--pill-ease),
        width  0.3s var(--pill-ease);
    z-index: 0;
    pointer-events: none;
}

.sf-cfl-pill {
    position: relative;
    z-index: 1;
    transition:
        color       0.18s var(--casino-ease),
        border-color 0.18s var(--casino-ease);
}

.sf-cfl-pill.active {
    color: #fff;
    background: transparent; /* indicator provides the fill */
    border-color: transparent;
}

.no-js .sf-cfl-pill.active {
    background: var(--brand-plum, #1E1B2E);
}

.sf-casino-cards .sf-cc:hover {
    transform: translateY(-5px);
    box-shadow:
        0 12px 36px rgba(30, 27, 46, 0.10),
        0 2px  8px  rgba(30, 27, 46, 0.05);
}
.sf-casino-cards .sf-cc-v2:hover {
    transform: translateY(-5px);
    box-shadow:
        0 12px 36px rgba(30, 27, 46, 0.10),
        0 2px  8px  rgba(30, 27, 46, 0.05);
}

.sf-casino-cards .sf-cc-v2:hover .sf-cc-v2-logo {
    transform: scale(1.05);
    transition: transform 0.22s var(--casino-ease);
}

.sf-cc-v2-logo {
    transition: transform 0.22s var(--casino-ease);
}

.sf-cc,
.sf-cc-v2 {
    isolation: isolate; /* new stacking context for the overlay */
}

.sf-qv-overlay {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: rgba(30, 27, 46, 0.88);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 20px 24px;
    gap: 10px;
    transition:
        opacity 0.22s var(--casino-ease),
        backdrop-filter 0.22s;
    z-index: 5;
    color: rgba(255, 255, 255, 0.92);
}

.sf-casino-cards .sf-cc:hover .sf-qv-overlay,
.sf-casino-cards .sf-cc-v2:hover .sf-qv-overlay {
    opacity: 1;
    pointer-events: none; /* don't block clicks to Visit button */
}

.sf-qv-overlay .sf-qv-cta {
    pointer-events: auto;
}

.sf-qv-label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin: 0;
}

.sf-qv-providers {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.sf-qv-chip {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    white-space: nowrap;
}

.sf-qv-restricted {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.55);
    display: flex;
    align-items: center;
    gap: 6px;
}
.sf-qv-restricted::before {
    content: "🚫";
    font-size: 12px;
}

.sf-qv-cta {
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 800;
    color: #fff;
    background: var(--brand-orange, #FF6B2B);
    padding: 8px 18px;
    border-radius: 999px;
    text-decoration: none;
    transition: transform 0.18s var(--casino-ease), box-shadow 0.18s;
}
.sf-qv-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 43, 0.35);
}

@media (prefers-reduced-motion: reduce) {
    .sf-cc-btn-visit::after,
    .sf-cc-v2-btn-orange::after {
        animation: none !important;
    }
    .sf-casino-cards .sf-cc,
    .sf-casino-cards .sf-cc-v2 {
        animation: none !important;
    }
    .sf-cfl-indicator {
        transition: none !important;
    }
}

@media (max-width: 768px) {
    
    .sf-qv-overlay {
        display: none;
    }

    .sf-casino-filter-bar {
        overflow-x: auto;
        scrollbar-width: none;
        flex-wrap: nowrap;
        padding-bottom: 14px;
    }
    .sf-casino-filter-bar::-webkit-scrollbar {
        display: none;
    }

    .sf-casino-cards .sf-cc:hover,
    .sf-casino-cards .sf-cc-v2:hover {
        transform: translateY(-2px);
    }
}

/* v9.9.10: inline top-pick card inside blog posts. Post body links are
   underlined by .sf-single-main a; card buttons should not be. */
.sf-single-main .sf-inline-card-wrap a { text-decoration: none; }
