/* Casino utan spelgränser — statisk sajt */
:root {
  --bg-deep: #07090f;
  --bg-card: #0f141f;
  --bg-elevated: #151c2c;
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8ecf4;
  --text-muted: #9aa3b5;
  --accent: #22d3a6;
  --accent-dim: #149b76;
  --accent-glow: rgba(34, 211, 166, 0.35);
  --warning: #fbbf24;
  --danger: #f87171;
  --radius: 12px;
  --radius-sm: 8px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 72rem;
  --header-h: 4.25rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-deep);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -30%, rgba(34, 211, 166, 0.12), transparent),
    radial-gradient(ellipse 60% 50% at 100% 50%, rgba(99, 102, 241, 0.06), transparent);
  min-height: 100vh;
  overflow-wrap: break-word;
  word-break: normal;
}

p,
li,
dd,
dt {
  text-wrap: pretty;       /* prevents lone words at start/end of lines */
  overflow-wrap: break-word;
  hyphens: auto;           /* Swedish hyphenation via html[lang=sv] */
  -webkit-hyphens: auto;
}

h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;      /* balances heading line lengths */
  overflow-wrap: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: #4ff0c8;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: 0.75rem 1.25rem;
  background: var(--accent);
  color: #04120c;
  font-weight: 700;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid var(--border);
  background: rgba(7, 9, 15, 0.85);
  backdrop-filter: blur(12px);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.logo-link img {
  width: 56px;
  height: 56px;
}

.nav-toggle {
  display: none;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.9rem;
}

.nav-primary ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  align-items: center;
}

.nav-primary a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-primary a:hover,
.nav-primary a[aria-current="page"] {
  color: var(--text);
}

.nav-cta {
  margin-left: 0.5rem;
}

.nav-cta a.btn-primary,
.nav-cta a.btn-primary:hover {
  color: #fff !important;
}

@media (max-width: 960px) {
  .nav-toggle {
    display: block;
  }

  .nav-primary {
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header-h);
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  .nav-primary.is-open {
    max-height: 28rem;
  }

  .nav-primary ul {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.25rem;
    gap: 0;
  }

  .nav-primary li {
    border-bottom: 1px solid var(--border);
  }

  .nav-primary a {
    display: block;
    padding: 0.75rem 0;
  }

  .nav-cta {
    margin-left: 0;
    margin-top: 0.75rem;
  }

  .nav-cta .btn {
    width: 100%;
    display: flex;
    justify-content: center;
    text-align: center;
  }
}

/* Hide logo text in header – show only icon */
.logo-link span:not(.tag-reklam) {
  display: none;
}

.logo-link .tag-reklam {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  color: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1) inset, 0 4px 24px var(--accent-glow);
}

.btn-primary:hover {
  color: #fff;
  background: linear-gradient(135deg, #2ff5bc, var(--accent));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15) inset, 0 6px 32px var(--accent-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--bg-elevated);
  color: var(--text);
}

.btn-lg {
  padding: 0.85rem 1.75rem;
  font-size: 1.05rem;
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.hero {
  padding: 2.5rem 0 3rem;
  text-align: center;
}

@media (min-width: 768px) {
  .hero {
    padding: 3.5rem 0 4rem;
  }
}

.hero-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  border: 1px solid rgba(34, 211, 166, 0.35);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 5vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.hero-lead {
  margin: 0 auto 1.75rem;
  max-width: 40rem;
  color: var(--text-muted);
  font-size: 1.125rem;
  text-wrap: balance;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.hero-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 32rem;
  margin: 0 auto;
}

.disclaimer-strip {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 2rem 0;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.disclaimer-strip img {
  width: 36px;
  flex-shrink: 0;
}

.disclaimer-strip p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.section {
  margin: 3.5rem 0;
}

.section-head {
  margin-bottom: 1.5rem;
}

.section-head h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
  max-width: 48rem;
}

.grid-2 {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.grid-3 {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.cta-panel {
  background: linear-gradient(145deg, var(--bg-elevated), var(--bg-card));
  border: 1px solid rgba(34, 211, 166, 0.25);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  margin: 3rem 0;
  box-shadow: 0 0 60px rgba(34, 211, 166, 0.08);
}

.cta-panel h2 {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
}

.cta-panel p {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  text-wrap: balance;
}

.toc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}

.toc h2 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.toc ol {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text-muted);
}

.toc a {
  color: var(--text);
}

.prose h2 {
  margin: 2.25rem 0 0.75rem;
  font-size: 1.45rem;
}

.prose h3 {
  margin: 1.75rem 0 0.5rem;
  font-size: 1.2rem;
}

.prose p,
.prose ul {
  color: var(--text-muted);
  max-width: 48rem;
}

.prose ul {
  padding-left: 1.25rem;
}

.prose li {
  margin-bottom: 0.35rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 4rem;
  padding: 2.5rem 1.25rem;
  background: #05070c;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}

.footer-brand img {
  width: 56px;
  height: 56px;
}

.footer-brand strong {
  display: block;
  color: var(--text);
}

/* Hide text div in footer-brand – keep logo image only */
.footer-brand > div {
  display: none;
}

.footer-col p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-col h3 {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.45rem;
}

.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-col a:hover {
  color: var(--accent);
}

.resp-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: center;
  margin-top: 1.25rem;
}

.resp-logos a img {
  height: 32px;
  width: auto;
  opacity: 0.85;
  filter: grayscale(0.2);
}

.resp-logos a:hover img {
  opacity: 1;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-bottom p {
  margin: 0.35rem 0;
}

.tag-reklam {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--warning);
  border: 1px solid rgba(251, 191, 36, 0.4);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  vertical-align: middle;
  margin-left: 0.35rem;
}

.icon-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.icon-row img {
  height: 40px;
  width: auto;
  padding: 0.35rem 0.5rem;
  background: var(--bg-deep);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.faq details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.65rem;
  padding: 0.85rem 1.1rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
}

.faq details[open] summary {
  margin-bottom: 0.5rem;
}

.faq p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ── Author box ────────────────────────────────── */
.author-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  max-width: var(--max);
  margin: 2rem auto;
}

.author-inner {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.author-info .author-name {
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0 0 0.1rem;
}

.author-info .author-title {
  color: var(--accent);
  font-size: 0.875rem;
  margin: 0 0 0.65rem;
}

.author-info .author-bio {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 0 0.5rem;
}

.author-info .author-company {
  font-size: 0.825rem;
  color: var(--text-muted);
  margin: 0;
}

/* ── Sticky mobile CTA ────────────────────────── */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  padding: 0.75rem 1rem;
  text-align: center;
}

.sticky-cta .btn {
  width: 100%;
  max-width: 28rem;
}

@media (max-width: 640px) {
  .sticky-cta {
    display: block;
  }
  body {
    padding-bottom: 4.5rem;
  }
}
