*, *::before, *::after {
  box-sizing: border-box;
}

:root {
  --bedste-bg-1: #13111c;
  --bedste-bg-2: #1a1625;
  --bedste-card: #201d2e;
  --bedste-text: #ede9fe;
  --bedste-muted: #c4b5fd;
  --bedste-accent: #a855f7;
  --bedste-accent-2: #8b5cf6;
  --bedste-cyan: #22d3ee;
  --bedste-line: rgba(237, 233, 254, 0.16);
}

html, body {
  margin: 0;
  padding: 0;
  background: linear-gradient(180deg, var(--bedste-bg-1), var(--bedste-bg-2));
  color: var(--bedste-text);
  font-family: "Space Grotesk", Arial, sans-serif;
  line-height: 1.55;
}

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

a:hover {
  color: #8be9fa;
}

.bedste-page {
  min-height: 100vh;
}

.bedste-wrap {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.bedste-header {
  position: sticky;
  top: 0;
  height: 72px;
  z-index: 200;
  border-bottom: 1px solid rgba(168, 85, 247, 0.22);
  background: rgba(19, 17, 28, 0.82);
}

.bedste-header.bedste-header-scrolled {
  background: rgba(19, 17, 28, 0.95);
}

@media (max-width: 1100px) {
  .bedste-header { height: 68px; }
}

.bedste-header-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 1rem;
  position: relative;
  overflow: visible;
  justify-content: space-between;
  min-height: 100%;
}

.bedste-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--bedste-text);
}

.bedste-brand-logo,
.bedste-logo,
[class*="bedste-brand"] {
  flex-shrink: 1 !important;
  min-width: 0 !important;
  overflow: hidden !important;
}

.bedste-logo-wrap {
  width: 240px;
  min-height: 62px;
}

.bedste-logo-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 550px) {
  .bedste-logo-wrap {
    width: min(200px, 85%);
    min-height: 56px;
    margin: 0 auto 8px;
  }
}

@media (min-width: 1101px) {
  .bedste-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
    flex: 1;
    overflow: visible;
    justify-content: flex-end;
  }
  .bedste-nav ul {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0 0.25rem;
    list-style: none;
    margin: 0; padding: 0;
  }
  .bedste-burger { display: none; }
}

.bedste-nav a {
  display: inline-block;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  color: var(--bedste-text);
  font-weight: 600;
}

.bedste-nav a:hover,
.bedste-nav a:focus-visible {
  background: rgba(168, 85, 247, 0.2);
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.38);
  color: #f5f3ff;
}

.bedste-burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(168, 85, 247, 0.45);
  background: rgba(32, 29, 46, 0.9);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  flex-shrink: 0 !important;
}

.bedste-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--bedste-text);
}

@media (max-width: 1100px) {
  .bedste-burger { display: flex; }
  .bedste-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 85vw);
    height: 100dvh;
    z-index: 999;
    background: #ffffff;
    transform: translateX(calc(100% + 16px));
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0s linear 0.3s;
    overflow-y: auto;
    padding: 1.5rem 1rem;
    max-width: min(320px, 85vw) !important;
  }
  .bedste-nav ul {
    list-style: none;
    padding: 0;
    margin: 2.5rem 0 0;
  }
  .bedste-nav li + li {
    margin-top: 0.7rem;
  }
  .bedste-nav a {
    color: #2a1741;
    width: 100%;
  }
  .bedste-nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 998;
    background: transparent;
    display: none;
    pointer-events: none;
    max-width: unset !important;
    width: 100vw !important;
  }
  body.bedste-nav-open .bedste-nav {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0s linear 0s;
  }
  body.bedste-nav-open .bedste-nav-backdrop {
    display: block;
    pointer-events: auto;
    background: rgba(0, 0, 0, 0.45);
  }
  body.bedste-nav-open {
    overflow: hidden;
  }
}

body:not(.bedste-nav-open) .bedste-header {
  backdrop-filter: blur(8px);
}

body.bedste-nav-open .bedste-header {
  backdrop-filter: none;
  z-index: 1000;
}

.bedste-page > main,
.bedste-page > footer {
  position: relative;
  z-index: 1;
}

html, body {
  overflow-x: clip;
}

.bedste-grid, .bedste-casino-list {
  min-width: 0;
}

.bedste-grid > *, .bedste-casino-list > * {
  min-width: 0;
}

.bedste-hero {
  padding: 5rem 0 3rem;
  position: relative;
  overflow: hidden;
}

.bedste-hero::before {
  content: "";
  position: absolute;
  inset: -12% -10%;
  background:
    radial-gradient(circle at 20% 30%, rgba(168, 85, 247, 0.45), transparent 45%),
    radial-gradient(circle at 80% 20%, rgba(34, 211, 238, 0.35), transparent 35%),
    radial-gradient(circle at 50% 80%, rgba(139, 92, 246, 0.4), transparent 40%);
  z-index: 0;
}

.bedste-hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem 0 4.5rem;
}

.bedste-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 1.1;
}

.bedste-hero p {
  margin: 0 auto 1.8rem;
  max-width: 760px;
  color: var(--bedste-muted);
  font-size: 1.1rem;
}

.bedste-cta-btn,
.bedste-button {
  display: inline-block;
  padding: 0.78rem 1.3rem;
  border-radius: 999px;
  font-weight: 700;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(120deg, #a855f7, #8b5cf6);
  transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
  text-align: center;
}

.bedste-cta-btn:hover,
.bedste-button:hover {
  background: linear-gradient(120deg, #22d3ee, #8b5cf6);
  color: #ffffff;
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.34);
}

.bedste-hero-mosaic {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.bedste-mini-card {
  position: absolute;
  width: 130px;
  background: rgba(32, 29, 46, 0.96);
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-bottom: 3px solid var(--bedste-accent);
  border-radius: 12px;
  padding: 0.55rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.33);
}

.bedste-mini-card img {
  width: 100%;
  height: 42px;
  object-fit: contain;
  margin-bottom: 0.4rem;
}

.bedste-mini-rate {
  font-size: 0.85rem;
  color: #f5d0fe;
  font-weight: 700;
  text-align: center;
}

.bedste-mini-a { top: 15%; left: 7%; transform: rotate(-8deg); }
.bedste-mini-b { top: 20%; right: 10%; transform: rotate(7deg); }
.bedste-mini-c { bottom: 24%; left: 13%; transform: rotate(5deg); }
.bedste-mini-d { bottom: 17%; right: 16%; transform: rotate(-6deg); }
.bedste-mini-e { top: 54%; right: 2%; transform: rotate(4deg); }

.bedste-section {
  padding: 1.8rem 0;
}

.bedste-section h2 {
  margin: 0 0 0.9rem;
  font-size: clamp(1.6rem, 2.7vw, 2.2rem);
}

.bedste-section-intro {
  color: var(--bedste-muted);
  margin: 0 0 1.2rem;
}

.bedste-casino-list {
  display: grid;
  gap: 1rem;
}

.bedste-card {
  background: var(--bedste-card);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-bottom: 3px solid var(--bedste-accent);
  border-radius: 14px;
  padding: 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bedste-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.33), 0 0 24px rgba(168, 85, 247, 0.22);
}

.bedste-card--featured {
  border-bottom-color: var(--bedste-cyan);
  padding: 22px;
}

.bedste-card-top {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  align-items: stretch;
}

.bedste-card-left {
  width: 120px;
  min-width: 120px;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.bedste-card-logo {
  background: rgba(0, 0, 0, 0.18);
  border-radius: 10px;
  padding: 0.35rem;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bedste-card-logo img {
  max-width: 100%;
  max-height: 52px;
  object-fit: contain;
  display: block;
}

.bedste-rating-stars {
  color: #f5d0fe;
  font-size: 0.93rem;
  font-weight: 700;
  text-align: center;
}

.bedste-score-box {
  text-align: center;
  padding: 0.34rem;
  border-radius: 9px;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.32);
  font-weight: 700;
}

.bedste-card-right h3 {
  margin: 0;
  font-size: 1.25rem;
}

.bedste-row-sep {
  border-top: 1px solid var(--bedste-line);
  margin: 0.7rem 0;
}

.bedste-badge {
  display: inline-block;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  background: rgba(168, 85, 247, 0.2);
  border: 1px solid rgba(168, 85, 247, 0.45);
  font-size: 0.8rem;
  font-weight: 700;
}

.bedste-bonus-text {
  margin: 0;
  color: #f5d0fe;
  font-size: 1.05rem;
  font-weight: 700;
}

.bedste-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.bedste-pill {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.14);
  border: 1px solid rgba(34, 211, 238, 0.35);
  color: #ccfbf1;
  font-size: 0.76rem;
  font-weight: 600;
}

.bedste-card-desc {
  margin: 0;
  color: #e9d5ff;
}

.bedste-disclaimer {
  margin: 0.6rem 0 0;
  color: #c4b5fd;
  font-size: 0.82rem;
}

.bedste-quote {
  border-left: 4px solid var(--bedste-accent);
  margin: 1rem 0;
  padding: 0.7rem 1rem;
  background: rgba(139, 92, 246, 0.14);
  color: #f5d0fe;
}

.bedste-rg {
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(168, 85, 247, 0.26);
  border-radius: 14px;
  padding: 1.2rem;
}

.bedste-18-badge {
  display: inline-block;
  margin-left: 0.45rem;
  background: #ef4444;
  color: #fff;
  border-radius: 999px;
  padding: 0.14rem 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.bedste-rg-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.8rem;
  margin-top: 0.65rem;
}

.bedste-timeline {
  border-left: 2px solid rgba(34, 211, 238, 0.46);
  margin-left: 0.2rem;
  padding-left: 1rem;
}

.bedste-timeline-item {
  position: relative;
  margin-bottom: 1.1rem;
}

.bedste-timeline-item::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22d3ee;
  position: absolute;
  left: -1.35rem;
  top: 0.35rem;
}

.bedste-faq {
  display: grid;
  gap: 0.65rem;
}

.bedste-faq-item {
  border: 1px solid rgba(168, 85, 247, 0.32);
  border-radius: 10px;
  background: rgba(32, 29, 46, 0.88);
}

.bedste-faq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: var(--bedste-text);
  padding: 0.95rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.bedste-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  padding: 0 0.95rem;
}

.bedste-faq-item.bedste-open .bedste-faq-a {
  max-height: 260px;
  padding-bottom: 0.95rem;
}

.bedste-scrolltop {
  position: fixed;
  right: 14px;
  bottom: 16px;
  z-index: 210;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(168, 85, 247, 0.6);
  background: rgba(32, 29, 46, 0.95);
  color: #fff;
  font-size: 1.2rem;
  display: none;
  cursor: pointer;
}

.bedste-scrolltop.bedste-show {
  display: block;
}

.bedste-cookie-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 250;
  background: #100d18;
  border-bottom: 1px solid rgba(168, 85, 247, 0.45);
  padding: 0.85rem 1rem;
  display: none;
}

.bedste-cookie-banner[data-bedste-cookie-state="visible"] {
  display: block;
}

.bedste-cookie-inner {
  width: min(1120px, calc(100% - 1rem));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem 1.1rem;
}

.bedste-cookie-inner p {
  margin: 0;
  color: #ddd6fe;
  font-size: 0.93rem;
}

.bedste-cookie-actions {
  display: flex;
  gap: 0.5rem;
}

.bedste-cookie-actions button {
  border: 0;
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.bedste-cookie-accept {
  background: linear-gradient(120deg, #a855f7, #8b5cf6);
  color: #fff;
}

.bedste-cookie-decline {
  background: rgba(168, 85, 247, 0.14);
  color: #ede9fe;
  border: 1px solid rgba(168, 85, 247, 0.35) !important;
}

.bedste-age-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.92);
}

.bedste-age-box h2 {
  margin-top: 0;
  color: #2a1741;
}

.bedste-age-box p {
  color: #3f2d55;
}

.bedste-age-box button,
.bedste-age-box a {
  width: auto;
  border: 0;
  border-radius: 999px;
  padding: 0.65rem 1rem;
  margin: 0.2rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.bedste-age-ok {
  background: linear-gradient(120deg, #a855f7, #8b5cf6);
  color: #fff;
}

.bedste-age-leave {
  background: #ede9fe;
  color: #2a1741;
  border: 1px solid #d8b4fe;
}

html.bedste-age-scroll-lock .bedste-age-overlay {
  display: flex;
}

.bedste-footer {
  margin-top: 2rem;
  border-top: 1px solid rgba(168, 85, 247, 0.32);
  background: rgba(0, 0, 0, 0.22);
  padding: 1.3rem 0 2rem;
}

.bedste-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
}

.bedste-footer h3 {
  margin-top: 0;
}

.bedste-footer p {
  color: #ddd6fe;
}

.bedste-footer-small {
  font-size: 0.88rem;
}

@media (max-width: 850px) {
  .bedste-footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ── ПРОМЕЖУТОЧНЫЙ (≤700px) ── */
@media (max-width: 700px) {
  h1 { font-size: clamp(1.6rem, 5vw, 2.4rem) !important; }
  h2 { font-size: clamp(1.2rem, 4vw, 1.8rem) !important; }
  h3 { font-size: clamp(1rem, 3.5vw, 1.3rem) !important; }
  .bedste-bonus-text,
  [class*="bedste-bonus"] { font-size: clamp(0.95rem, 2.5vw, 1.15rem) !important; }
  .bedste-hero h1,
  [class*="bedste-hero"] h1 { font-size: clamp(1.8rem, 6vw, 2.8rem) !important; }
  .bedste-card { padding: 16px !important; }
}

@media (max-width: 550px) {
  html, body { overflow-x: clip; max-width: 100%; }
  .bedste-page * { max-width: 100%; }
  .bedste-casino-list, .bedste-grid {
    grid-template-columns: 1fr !important;
    min-width: 0;
  }
  .bedste-casino-list > *, .bedste-grid > * { min-width: 0; }
  .bedste-card { flex-direction: column !important; min-width: 0; padding: 12px !important; }
  .bedste-card * { min-width: 0; max-width: 100%; }
  .bedste-card-top { flex-wrap: wrap; gap: 8px; }
  .bedste-logo-wrap {
    width: min(200px, 85%);
    min-height: 56px;
    margin: 0 auto 8px;
  }
  .bedste-cta-btn, .bedste-button,
  .bedste-age-box button, .bedste-age-box a,
  .bedste-cookie-actions button, .bedste-cookie-actions a {
    width: 100% !important; max-width: 100%;
    white-space: normal; word-break: break-word; overflow-wrap: anywhere;
    display: block;
  }
  .bedste-age-box,
  .bedste-cookie-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    align-items: stretch !important;
  }
  h1 { font-size: clamp(1.25rem, 6vw, 2rem) !important; }
  h2 { font-size: clamp(1.1rem, 5vw, 1.6rem) !important; }
  h3 { font-size: clamp(0.95rem, 4vw, 1.2rem) !important; }
  .bedste-bonus-text,
  [class*="bedste-bonus"] { font-size: 0.95rem !important; }
  .bedste-card:hover { transform: none !important; }
  table { table-layout: auto; width: 100%; min-width: 0; }
  .bedste-table-wrap {
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    width: 100%; max-width: 100%;
  }
  .bedste-table-wrap table { min-width: max-content; width: max-content; }
  thead th { white-space: nowrap; }
  td { word-break: normal; overflow-wrap: break-word; hyphens: none; }
  .bedste-payment-grid,
  .bedste-method-grid,
  [class*="bedste-payment"],
  [class*="bedste-method"] {
    grid-template-columns: 1fr !important;
    min-width: 0;
  }
  .bedste-payment-grid > *,
  .bedste-method-grid > *,
  [class*="bedste-payment"] > *,
  [class*="bedste-method"] > * {
    min-width: 0;
  }
  .bedste-header-inner {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 0 8px !important;
  }
  .bedste-brand-logo,
  .bedste-logo,
  [class*="bedste-brand"] {
    flex-shrink: 1 !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }
  .bedste-burger {
    flex-shrink: 0 !important;
  }
  .bedste-timeline,
  .bedste-faq,
  .bedste-footer {
    word-break: break-word;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 380px) {
  h1 { font-size: clamp(1.1rem, 7vw, 1.5rem) !important; }
  h3 { font-size: clamp(0.9rem, 4vw, 1.1rem) !important; }
  .bedste-bonus-text,
  [class*="bedste-bonus"] { font-size: 0.85rem !important; }
  .bedste-card { padding: 10px !important; }
}
