/* =========================================================
   Utländska Casino – Synthwave theme (blue + orange)
   Plain CSS, no framework. All colours live in :root.
   ========================================================= */

:root {
  --sw-night: #0A0920;
  --sw-deep: #100E33;
  --sw-panel: #16134A;
  --sw-panel-raised: #1E1A5C;
  --sw-line: #2D2A78;
  --sw-stroke: #6C78E0;
  --sw-blue: #39C2FF;
  --sw-blue-deep: #2A5BFF;
  --sw-orange: #FF8A2A;
  --sw-amber: #FFC15E;
  --sw-ember: #FF5A1F;
  --sw-text: #ECEEFF;
  --sw-text-muted: #A7ADDC;
  --sw-on-orange: #1A0D00;

  --font-display: "Audiowide", "Chakra Petch", sans-serif;
  --font-body: "Chakra Petch", system-ui, sans-serif;

  --radius-card: 14px;
  --radius-btn: 10px;
  --container: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--sw-night);
  color: var(--sw-text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--sw-blue); text-underline-offset: 3px; }
a:hover { color: var(--sw-amber); }

:focus-visible { outline: 2px solid var(--sw-blue); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- Type ---------- */

h1, h2 { font-family: var(--font-display); font-weight: 400; margin: 0; }
h1 { font-size: clamp(2.25rem, 5vw, 4.25rem); line-height: 1.1; }
h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.2;
  text-shadow: 0 0 18px rgba(57, 194, 255, 0.55);
  margin-bottom: 16px;
}
h3 { font-size: 1.375rem; line-height: 1.3; font-weight: 700; margin: 0 0 8px; }
p { margin: 0 0 16px; max-width: 68ch; }
.lead { font-size: 1.25rem; line-height: 1.6; }
.muted { color: var(--sw-text-muted); }
.small { font-size: 0.875rem; line-height: 1.5; color: var(--sw-text-muted); }

.sw-chrome {
  background: linear-gradient(180deg, #FFFFFF 0%, #CFEFFF 42%, var(--sw-blue) 50%, var(--sw-amber) 54%, var(--sw-orange) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 0 rgba(10, 9, 32, 0.9));
  -webkit-box-decoration-break: clone;
          box-decoration-break: clone;
}
@media (forced-colors: active) { .sw-chrome { color: CanvasText; background: none; } }

/* ---------- Header ---------- */

.site-header { border-bottom: 1px solid var(--sw-line); background: var(--sw-night); position: relative; z-index: 5; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--sw-text); font-family: var(--font-display); font-size: 1.25rem; }
.logo:hover { color: var(--sw-text); }
.logo svg { width: 28px; height: 28px; }
.nav { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.nav a { color: var(--sw-text); text-decoration: none; font-weight: 600; font-size: 0.9375rem; padding: 8px 0; }
.nav a:hover { color: var(--sw-blue); }
.nav a[aria-current="page"] { color: var(--sw-blue); box-shadow: 0 2px 0 var(--sw-blue), 0 6px 10px -4px rgba(57, 194, 255, 0.7); }
.menu-toggle { display: none; }

@media (max-width: 960px) {
  .menu-toggle {
    display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px;
    background: transparent; color: var(--sw-text); border: 1.5px solid var(--sw-stroke);
    border-radius: var(--radius-btn); font: 600 0.9375rem var(--font-body); cursor: pointer;
  }
  .nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; gap: 4px; padding: 8px 0 16px; }
  .nav.is-open { display: flex; }
}

/* ---------- Buttons & chips ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: var(--radius-btn);
  font: 600 1rem var(--font-body); text-decoration: none; cursor: pointer; transition: background .15s, box-shadow .15s;
}
.btn-primary { background: var(--sw-orange); color: var(--sw-on-orange); border: 0; }
.btn-primary:hover { background: var(--sw-amber); color: var(--sw-on-orange); box-shadow: 0 0 20px rgba(255, 138, 42, 0.5); }
.btn-secondary { background: transparent; color: var(--sw-blue); border: 1.5px solid var(--sw-blue); }
.btn-secondary:hover { background: rgba(57, 194, 255, 0.12); color: var(--sw-blue); }
.btn-block { width: 100%; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 12px; border-radius: 999px;
  font-size: 0.8125rem; font-weight: 600; line-height: 1; white-space: nowrap;
  color: var(--sw-text-muted); background: var(--sw-panel); border: 1px solid var(--sw-line); text-decoration: none;
}
a.chip:hover { color: var(--sw-blue); border-color: var(--sw-blue); }
.chip-eu { color: var(--sw-blue); background: rgba(57, 194, 255, 0.12); border-color: rgba(57, 194, 255, 0.45); }
.chip-tax { color: var(--sw-orange); background: rgba(255, 138, 42, 0.12); border-color: rgba(255, 138, 42, 0.45); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Hero (synthwave scene) ---------- */

.sw-hero {
  position: relative; overflow: hidden; isolation: isolate; text-align: center;
  background:
    radial-gradient(ellipse 70% 40% at 50% 88%, rgba(255, 138, 42, 0.35), transparent 70%),
    linear-gradient(180deg, #07061A 0%, #0D1B5C 66%, var(--sw-night) 100%);
  padding: 80px 0 0;
}
.sw-hero--short { padding-top: 48px; }
.sw-hero .lead { margin: 20px auto 28px; color: var(--sw-text); }
.sw-hero .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 28px; }
.sw-hero .chip-row { justify-content: center; }

/* The scene lives in its own strip under the hero text, so it never sits behind copy */
.sw-horizon { position: relative; height: 340px; margin-top: 40px; z-index: -1; }
.sw-hero--short .sw-horizon { height: 230px; margin-top: 24px; }

.sw-sun {
  position: absolute; left: 50%; bottom: 40px; width: min(340px, 72vw); aspect-ratio: 1;
  transform: translateX(-50%); border-radius: 50%;
  background: linear-gradient(180deg, var(--sw-amber) 0%, var(--sw-orange) 55%, var(--sw-ember) 100%);
  box-shadow: 0 0 120px rgba(255, 138, 42, 0.45);
  -webkit-mask-image: linear-gradient(180deg, #000 0 52%, transparent 52% 55%, #000 55% 63%, transparent 63% 67%, #000 67% 74%, transparent 74% 79%, #000 79% 85%, transparent 85% 91%, #000 91%);
          mask-image: linear-gradient(180deg, #000 0 52%, transparent 52% 55%, #000 55% 63%, transparent 63% 67%, #000 67% 74%, transparent 74% 79%, #000 79% 85%, transparent 85% 91%, #000 91%);
}
.sw-hero--short .sw-sun { width: min(220px, 56vw); bottom: 30px; }

.sw-floor {
  position: absolute; left: -50%; right: -50%; bottom: 0; height: 260px;
  background-image:
    linear-gradient(rgba(57, 194, 255, 0.55) 2px, transparent 2px),
    linear-gradient(90deg, rgba(57, 194, 255, 0.55) 2px, transparent 2px);
  background-size: 72px 44px;
  transform: perspective(320px) rotateX(60deg); transform-origin: bottom center;
  -webkit-mask-image: linear-gradient(to top, #000 35%, transparent 100%);
          mask-image: linear-gradient(to top, #000 35%, transparent 100%);
  animation: sw-drive 6s linear infinite;
}
.sw-hero--short .sw-floor { height: 190px; }
.sw-floor::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: var(--sw-blue); box-shadow: 0 0 16px var(--sw-blue); }
@keyframes sw-drive { to { background-position: 0 44px, 0 0; } }
@media (prefers-reduced-motion: reduce) { .sw-floor { animation: none; } html { scroll-behavior: auto; } }

.sw-divider { height: 2px; border: 0; margin: 0; background: linear-gradient(90deg, transparent, var(--sw-blue) 20%, var(--sw-orange) 80%, transparent); box-shadow: 0 0 12px rgba(57, 194, 255, 0.5); }

.breadcrumbs { font-size: 0.875rem; color: var(--sw-text-muted); margin-bottom: 20px; }
.breadcrumbs a { color: var(--sw-blue); }

/* ---------- Sections ---------- */

.section { padding: 96px 0; }
.section--alt { background: var(--sw-deep); }
.section-head { margin-bottom: 32px; }
.sub-block { margin-top: 56px; }
@media (max-width: 960px) { .section { padding: 64px 0; } }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.grid-5 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }

/* ---------- Cards ---------- */

.card { background: var(--sw-panel); border: 1px solid var(--sw-line); border-radius: var(--radius-card); padding: 24px; transition: border-color .15s, background .15s; }
.card:hover { border-color: var(--sw-stroke); background: var(--sw-panel-raised); }
.card p:last-child { margin-bottom: 0; }
.icon-tile { width: 40px; height: 40px; border-radius: var(--radius-btn); background: rgba(57, 194, 255, 0.12); display: grid; place-items: center; margin-bottom: 16px; }
.icon-tile svg { width: 24px; height: 24px; stroke: var(--sw-blue); fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.card--wide { grid-column: 1 / -1; }

.licence-card .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.licence-card h3 { font-size: 1.25rem; margin: 0; }

/* ---------- Casino toplist ---------- */

.toplist { display: flex; flex-direction: column; gap: 12px; list-style: none; margin: 0; padding: 0; }
.casino-row {
  position: relative; display: grid; grid-template-columns: 64px 140px 1fr 1fr 190px; gap: 24px; align-items: center;
  background: var(--sw-panel); border: 1px solid var(--sw-line); border-radius: var(--radius-card); padding: 24px;
  font-variant-numeric: tabular-nums;
}
.casino-row:hover { border-color: var(--sw-stroke); }
.casino-row--top { background: var(--sw-panel-raised); border: 1.5px solid var(--sw-orange); box-shadow: 0 0 24px rgba(255, 138, 42, 0.25); }
.casino-row--top:hover { border-color: var(--sw-orange); }
.badge-top { position: absolute; top: -12px; left: 24px; background: var(--sw-orange); color: var(--sw-on-orange); font-weight: 700; font-size: 0.8125rem; padding: 4px 12px; border-radius: 999px; }
.rank { font-family: var(--font-display); font-size: 2.25rem; line-height: 1; color: var(--sw-orange); text-shadow: 0 0 18px rgba(255, 138, 42, 0.6); }
.logo-box { width: 140px; height: 64px; border-radius: var(--radius-btn); background: #0F0D2E; border: 1px dashed var(--sw-line); display: grid; place-items: center; color: var(--sw-text-muted); font-size: 0.8125rem; }
.casino-name { font-size: 1.25rem; font-weight: 700; margin: 0 0 8px; }
.casino-name + .chip-row { gap: 6px; }
.bonus { font-size: 1.125rem; font-weight: 600; margin: 0 0 2px; }
.cta-col { display: flex; flex-direction: column; gap: 8px; text-align: center; }
.cta-col .small { margin: 0; }
.toplist-more { margin-top: 24px; text-align: center; }

.casino-row--compact { grid-template-columns: 140px 1fr 190px; }

@media (max-width: 960px) {
  .casino-row, .casino-row--compact { grid-template-columns: 48px 1fr; gap: 16px; padding: 20px; }
  .casino-row .logo-box { grid-column: 2; }
  .casino-row .info, .casino-row .bonus-col, .casino-row .cta-col { grid-column: 1 / -1; }
  .casino-row--compact .logo-box { grid-column: 1 / -1; }
  .rank { font-size: 1.75rem; }
}

/* ---------- Steps ---------- */

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.step { position: relative; padding-top: 4px; }
.step-num { font-family: var(--font-display); font-size: 2rem; line-height: 1; color: var(--sw-blue); text-shadow: 0 0 16px rgba(57, 194, 255, 0.6); display: block; margin-bottom: 12px; }

/* ---------- Pros / cons ---------- */

.pc-panel { background: var(--sw-panel); border: 1px solid var(--sw-line); border-radius: var(--radius-card); padding: 28px; }
.pc-panel--pro { border-top: 3px solid var(--sw-blue); }
.pc-panel--con { border-top: 3px solid var(--sw-orange); }
.pc-panel ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.pc-panel li { display: flex; gap: 12px; align-items: flex-start; }
.pc-panel li svg { flex: 0 0 20px; width: 20px; height: 20px; margin-top: 4px; fill: none; stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }
.pc-panel--pro li svg { stroke: var(--sw-blue); }
.pc-panel--con li svg { stroke: var(--sw-orange); }

/* ---------- Tax band ---------- */

.tax-band { position: relative; overflow: hidden; isolation: isolate; }
.tax-band .sw-sun { width: 180px; bottom: auto; top: 20px; transform: translateX(-50%); opacity: 0.22; z-index: -1; }
.stat-card { text-align: center; background: var(--sw-panel); border: 1px solid var(--sw-line); border-radius: var(--radius-card); padding: 32px 24px; }
.stat { font-family: var(--font-display); font-size: clamp(3rem, 7vw, 5.5rem); line-height: 1; display: block; margin-bottom: 12px; }
.stat--blue { color: var(--sw-blue); text-shadow: 0 0 22px rgba(57, 194, 255, 0.55); }
.stat--orange { color: var(--sw-orange); text-shadow: 0 0 22px rgba(255, 138, 42, 0.6); }
.stat-card p { margin: 0 auto; }

/* ---------- Comparison table ---------- */

.table-wrap { overflow-x: auto; border: 1px solid var(--sw-line); border-radius: var(--radius-card); }
table.compare { width: 100%; min-width: 640px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.compare th, .compare td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--sw-line); vertical-align: top; }
.compare thead th { background: var(--sw-panel-raised); font-weight: 700; }
.compare tbody th { font-weight: 600; color: var(--sw-text-muted); width: 26%; }
.compare tbody tr { background: var(--sw-panel); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }

/* ---------- Responsible gambling ---------- */

.rg-band { background: var(--sw-panel); border: 1px solid var(--sw-stroke); border-radius: var(--radius-card); padding: 32px; }
.rg-band h2 { text-shadow: none; }

/* ---------- FAQ ---------- */

.sg-faq { display: flex; flex-direction: column; gap: 8px; }
.sg-faq__item { background: var(--sw-panel); border: 1px solid var(--sw-line); border-radius: 12px; }
.sg-faq__item[open] { border-color: var(--sw-stroke); }
.sg-faq__summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; font-weight: 600; font-size: 1.0625rem; position: relative; }
.sg-faq__summary::-webkit-details-marker { display: none; }
.sg-faq__summary::after { content: "+"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); color: var(--sw-blue); font-size: 1.5rem; line-height: 1; transition: transform .2s; }
.sg-faq__item[open] .sg-faq__summary::after { transform: translateY(-50%) rotate(45deg); }
.sg-faq__answer { padding: 0 24px 20px; }
.sg-faq__answer p:last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */

.site-footer { padding: 64px 0 32px; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; margin-bottom: 40px; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-cols a { color: var(--sw-text); text-decoration: none; }
.footer-cols a:hover { color: var(--sw-blue); }
.footer-cols .small a { color: var(--sw-blue); }
.footer-cols .small a:hover { color: var(--sw-amber); }
.nowrap { white-space: nowrap; }
.footer-title { font-weight: 700; margin: 0 0 12px; }
.footer-bottom { border-top: 1px solid var(--sw-line); padding-top: 24px; }

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .sw-hero { padding-top: 56px; }
  .sw-horizon { height: 260px; }
  .rg-band { padding: 24px; }
}

/* ---------- Help box (responsible gambling page) ---------- */

.help-box { background: var(--sw-panel); border: 1.5px solid var(--sw-blue); border-radius: var(--radius-card); padding: 32px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.help-box h2 { text-shadow: none; margin-bottom: 8px; }
.help-box p { margin: 0; }
.help-number { font-family: var(--font-display); font-size: clamp(1.75rem, 4vw, 2.5rem); color: var(--sw-blue); text-decoration: none; white-space: nowrap; }
.help-number:hover { color: var(--sw-amber); }
.help-actions { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }

/* ---------- Self-check list ---------- */

.check-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 12px; }
.check-list li { display: flex; gap: 14px; align-items: flex-start; background: var(--sw-panel); border: 1px solid var(--sw-line); border-radius: 12px; padding: 18px 20px; }
.check-list svg { flex: 0 0 22px; width: 22px; height: 22px; margin-top: 2px; fill: none; stroke: var(--sw-blue); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.note { border-left: 0; background: rgba(57, 194, 255, 0.08); border: 1px solid rgba(57, 194, 255, 0.35); border-radius: 12px; padding: 18px 20px; margin-top: 24px; max-width: none; }

/* ---------- Team & contact (about page) ---------- */

.team-card { text-align: center; }
.avatar { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center; background: #0F0D2E; border: 1.5px dashed var(--sw-stroke); color: var(--sw-text-muted); font-size: 0.8125rem; }
.team-card .role { color: var(--sw-blue); font-weight: 600; margin: 0 0 8px; }
.team-card p { margin-left: auto; margin-right: auto; }
.contact-box { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; align-items: start; }
.contact-email { font-family: var(--font-display); font-size: 1.5rem; color: var(--sw-blue); text-decoration: none; }
.steps--5 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
