/* ============================================================
   Casino På Nett — Norsk casino-guide
   Tema: dyp natt-blå + norsk flagg-rød + gull. Mobile-first.
   ============================================================ */

:root {
  /* Farger */
  --bg-0:      #070c1c;
  --bg-1:      #0a1023;
  --bg-2:      #0e1631;
  --surface:   #141d3b;
  --surface-2: #1a2547;
  --surface-3: #212e57;
  --border:    #26325e;
  --border-2:  #33427a;

  --red:       #ef2b45;
  --red-dark:  #c81733;
  --red-glow:  rgba(239, 43, 69, .45);
  --blue:      #3b82f6;
  --blue-2:    #2563eb;
  --gold:      #ffc93c;
  --gold-2:    #f0a91e;
  --gold-glow: rgba(255, 201, 60, .45);
  --green:     #34d399;

  --text:      #eef3ff;
  --muted:     #9db0d6;
  --muted-2:   #6f81ab;

  /* Spacing scale (8pt) */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;

  --radius:    14px;
  --radius-lg: 20px;
  --radius-sm: 10px;

  --shadow:    0 10px 30px -12px rgba(0,0,0,.6);
  --shadow-lg: 0 24px 60px -20px rgba(0,0,0,.7);

  --container: 1040px;
  --sbw: 190px; /* bredde på sidebanner (skaleres opp på store skjermer) */
  --font: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 50% -200px, #16224a 0%, transparent 60%) no-repeat,
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 100%) no-repeat;
  background-color: var(--bg-0);
  min-height: 100dvh;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
h1, h2, h3 { line-height: 1.2; font-weight: 800; letter-spacing: -.01em; }

.bd-container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--s-4); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--gold); color: #1a1300; padding: var(--s-2) var(--s-4);
  border-radius: 0 0 var(--radius-sm) 0; font-weight: 700;
}
.skip-link:focus { left: 0; }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: linear-gradient(180deg, rgba(10,16,35,.96), rgba(10,16,35,.82));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: var(--s-3); color: var(--text); }
.brand-logo { width: 44px; height: 44px; object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.5)); }
.brand-name { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em;
  background: linear-gradient(90deg, #fff, #cdd8ff); -webkit-background-clip: text;
  background-clip: text; color: transparent; }

/* ---------- Hero ---------- */
.hero {
  position: relative; margin-top: var(--s-5);
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background-size: cover; background-position: center;
  transform: scale(1.03);
}
.hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(7,12,28,.92) 0%, rgba(7,12,28,.55) 55%, rgba(7,12,28,.25) 100%),
    linear-gradient(0deg, rgba(7,12,28,.85), transparent 60%);
}
.hero-content { padding: var(--s-6) var(--s-5); max-width: 640px; }
.hero h1 {
  font-size: clamp(1.6rem, 4.2vw, 2.5rem);
  background: linear-gradient(90deg, #fff 30%, #b9c8ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 2px 30px rgba(0,0,0,.4);
}
.hero-sub { margin-top: var(--s-3); color: #d7e0fa; font-size: 1.05rem; max-width: 52ch; }
.hero-badges {
  list-style: none; padding: 0; margin-top: var(--s-4);
  display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5);
}
.hero-badges li { display: inline-flex; align-items: center; gap: var(--s-2);
  font-size: .9rem; color: #cfd9f5; font-weight: 600; }
.hb-dot { width: 10px; height: 10px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 12px var(--gold-glow); }

/* ---------- Rating ---------- */
.rating { margin-top: var(--s-7); }
.rating-head { text-align: center; margin-bottom: var(--s-6); }
.rating-head h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); }
.rating-head h2::after {
  content: ""; display: block; width: 72px; height: 4px; margin: var(--s-3) auto 0;
  border-radius: 4px; background: linear-gradient(90deg, var(--red), var(--gold));
}
.rating-status { color: var(--muted); font-size: .9rem; margin-top: var(--s-2); }

/* Podium */
.podium {
  display: grid; grid-template-columns: 1fr; gap: var(--s-4);
  align-items: stretch;
}
/* Mobil: vis i rangeringsrekkefølge 1, 2, 3 (DOM er 2,1,3 for podium-effekt) */
.rank-card[data-number="1"] { order: 1; }
.rank-card[data-number="2"] { order: 2; }
.rank-card[data-number="3"] { order: 3; }
.rank-card {
  position: relative; background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--s-6) var(--s-4) var(--s-4);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.rank-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--border-2); }
/* Podium-medaljer: alle topp-3 får ramme. Kantlinjen holdes skarp/lys
   på alle; den myke gløden avtar fra #1 (sterkest) til #3 (svakest). */
.rank-card[data-number="1"],
.rank-card[data-number="2"],
.rank-card[data-number="3"] {
  background: linear-gradient(180deg, #26305c, #182247);
}
.rank-card[data-number="1"] {  /* GULL — sterkest glød */
  border-color: var(--gold-2);
  box-shadow: 0 0 0 1.5px var(--gold-2), 0 20px 55px -18px rgba(255,201,60,.55);
}
.rank-card[data-number="2"] {  /* SØLV — svakere glød */
  border-color: #cbd6ef;
  box-shadow: 0 0 0 1.5px #cbd6ef, 0 20px 55px -22px rgba(200,215,245,.28);
}
.rank-card[data-number="3"] {  /* BRONSE — svakest glød */
  border-color: #e0a877;
  box-shadow: 0 0 0 1.5px #e0a877, 0 20px 55px -26px rgba(224,140,90,.18);
}
/* Rangeringsnummer som topp-plassert "pill" (erstatter BEST I TEST) */
.rank-num {
  position: absolute; top: -17px; left: 50%; transform: translateX(-50%);
  min-width: 42px; height: 34px; padding: 0 16px; border-radius: 999px;
  display: grid; place-items: center; font-weight: 800; font-size: 1.15rem;
  background: var(--surface-3); color: var(--text); border: 1px solid var(--border-2);
  box-shadow: 0 6px 16px -4px rgba(0,0,0,.55);
}
.rank-num--1 { background: linear-gradient(180deg, var(--gold), var(--gold-2)); color: #2a1e00;
  border: 0; box-shadow: 0 6px 18px -4px var(--gold-glow); }
.rank-num--2 { background: linear-gradient(180deg, #eef2fb, #b4c1de); color: #1a2140;
  border: 0; box-shadow: 0 6px 18px -4px rgba(200,215,245,.4); }
.rank-num--3 { background: linear-gradient(180deg, #f0a877, #c07a44); color: #241000;
  border: 0; box-shadow: 0 6px 18px -4px rgba(224,140,90,.4); }

.c-logo-wrap { position: relative; width: 100px; height: 100px; margin-bottom: var(--s-3);
  display: grid; place-items: center; }
/* Feathered glow behind the logo */
.c-logo-wrap::before {
  content: ""; position: absolute; inset: -12px; z-index: 0; border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,.65), rgba(59,130,246,0) 70%);
  filter: blur(16px);
}
/* Glød bak logo per medalje (avtagende styrke) */
.rank-card[data-number="1"] .c-logo-wrap::before {
  background: radial-gradient(circle, rgba(255,201,60,.75), transparent 70%); }
.rank-card[data-number="2"] .c-logo-wrap::before {
  background: radial-gradient(circle, rgba(210,222,248,.50), transparent 70%); }
.rank-card[data-number="3"] .c-logo-wrap::before {
  background: radial-gradient(circle, rgba(224,150,95,.38), transparent 70%); }

.c-logo { position: relative; z-index: 1; width: 100px; height: 100px; object-fit: cover;
  border-radius: 28px; border: 3px solid rgba(255,255,255,.55);
  box-shadow: 0 0 22px 2px rgba(59,130,246,.5), 0 8px 20px rgba(0,0,0,.5); }
/* Logo-kant lys på alle; glød avtar 1 -> 3 */
.rank-card[data-number="1"] .c-logo { border-color: rgba(255,224,140,.95);
  box-shadow: 0 0 26px 3px rgba(255,201,60,.60), 0 8px 20px rgba(0,0,0,.5); }
.rank-card[data-number="2"] .c-logo { border-color: rgba(233,239,250,.95);
  box-shadow: 0 0 20px 2px rgba(205,216,240,.40), 0 8px 20px rgba(0,0,0,.5); }
.rank-card[data-number="3"] .c-logo { border-color: rgba(244,190,145,.95);
  box-shadow: 0 0 16px 2px rgba(224,150,95,.30), 0 8px 20px rgba(0,0,0,.5); }
.c-logo--ph, .row-logo--ph {
  background: var(--surface-3); border-radius: 14px; color: var(--muted);
  font-weight: 800; font-size: 1.5rem; width: 100%; height: 100%;
  display: grid; place-items: center; text-transform: uppercase;
}
.c-name { font-size: 1.25rem; }
.c-rating { display: flex; align-items: center; justify-content: center; gap: var(--s-2);
  margin-top: var(--s-1); }
.c-rating-txt { font-size: .8rem; color: var(--muted); }

/* Stars */
.stars { --val: 5; display: inline-block; position: relative;
  font-size: 1rem; line-height: 1; letter-spacing: 2px; }
.stars::before { content: "★★★★★"; color: #3b477a; }
.stars::after {
  content: "★★★★★"; color: var(--gold); position: absolute; inset: 0;
  width: calc(var(--val) / 5 * 100%); overflow: hidden; white-space: nowrap;
}

.c-bonus {
  margin-top: var(--s-4); width: 100%;
  background: linear-gradient(180deg, rgba(59,130,246,.14), rgba(59,130,246,.06));
  border: 1px solid var(--border-2); border-radius: var(--radius-sm);
  padding: var(--s-3); font-weight: 700; color: #eaf1ff; font-size: 1rem; min-height: 58px;
  display: grid; place-items: center;
}
.is-featured .c-bonus {
  background: linear-gradient(180deg, rgba(255,201,60,.18), rgba(255,201,60,.05));
  border-color: var(--gold-2); color: #fff5d8;
}
.pay-row { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center;
  margin: var(--s-3) 0; }
.pay { font-size: .62rem; font-weight: 700; letter-spacing: .03em; color: var(--muted);
  background: var(--surface-3); border: 1px solid var(--border); border-radius: 6px;
  padding: 3px 7px; }

/* CTA button */
.btn-cta {
  margin-top: auto; width: 100%;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: linear-gradient(180deg, var(--red), var(--red-dark));
  color: #fff; font-weight: 800; font-size: 1.02rem;
  padding: 13px 18px; border-radius: var(--radius-sm);
  box-shadow: 0 10px 22px -8px var(--red-glow); cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
  border: 0;
}
.btn-cta:hover { transform: translateY(-2px); filter: brightness(1.07);
  box-shadow: 0 16px 30px -10px var(--red-glow); }
.btn-cta:active { transform: translateY(0); }
/* CTA-knapp per medalje */
.rank-card[data-number="1"] .btn-cta { background: linear-gradient(180deg, var(--gold), var(--gold-2)); color: #2a1e00;
  box-shadow: 0 10px 22px -8px var(--gold-glow); }
.rank-card[data-number="2"] .btn-cta { background: linear-gradient(180deg, #eef2fb, #aebdda); color: #1a2140;
  box-shadow: 0 10px 22px -8px rgba(200,215,245,.45); }
.rank-card[data-number="3"] .btn-cta { background: linear-gradient(180deg, #f0a877, #c07a44); color: #2a1400;
  box-shadow: 0 10px 22px -8px rgba(224,140,90,.45); }
.btn-arrow { font-size: 1.3em; line-height: 1; transition: transform .15s ease; }
.btn-cta:hover .btn-arrow { transform: translateX(3px); }

/* Rank rows (4+) */
.rank-list { margin-top: var(--s-4); display: flex; flex-direction: column; gap: var(--s-3); }
.rank-row {
  display: grid; gap: var(--s-3) var(--s-4);
  grid-template-columns: auto auto 1fr; align-items: center;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: var(--s-4); box-shadow: var(--shadow);
  transition: transform .2s ease, border-color .2s ease;
}
.rank-row:hover { transform: translateY(-2px); border-color: var(--border-2); }
.row-rank { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center;
  font-weight: 800; background: var(--surface-3); border: 1px solid var(--border-2); }
.row-logo-wrap { width: 72px; height: 72px; display: grid; place-items: center; flex: none; }
.row-logo { width: 72px; height: 72px; object-fit: cover; border-radius: 16px;
  border: 2px solid rgba(255,255,255,.42);
  box-shadow: 0 0 14px rgba(59,130,246,.32), 0 4px 14px rgba(0,0,0,.4); }
.row-main { min-width: 0; }
.row-name { font-size: 1.1rem; }
.row-bonus { font-weight: 700; color: #dbe6ff; grid-column: 1 / -1; }
.row-feats { list-style: none; padding: 0; grid-column: 1 / -1;
  display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); }
.row-feats li { display: inline-flex; align-items: center; gap: 6px; font-size: .86rem; color: var(--muted); }
.row-feats svg { width: 16px; height: 16px; fill: var(--green); flex: none; }
.rank-row .btn-cta { grid-column: 1 / -1; margin-top: var(--s-1); }

/* ---------- Trust bar ---------- */
.trust-bar {
  margin-top: var(--s-7);
  display: grid; grid-template-columns: 1fr; gap: var(--s-4);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--s-5);
}
.trust-item { display: flex; align-items: center; gap: var(--s-3); }
.trust-item img { width: 48px; height: 48px; object-fit: contain; flex: none; }
.trust-item strong { display: block; font-size: .98rem; }
.trust-item span { display: block; font-size: .82rem; color: var(--muted); line-height: 1.45; }

/* ---------- Article ---------- */
.article { margin: var(--s-7) 0 var(--s-8); }
.article h2 {
  font-size: clamp(1.4rem, 3.5vw, 1.9rem); margin-top: var(--s-7); margin-bottom: var(--s-4);
  padding-bottom: var(--s-3); border-bottom: 1px solid var(--border);
  scroll-margin-top: 80px;
}
.article h2:first-child { margin-top: 0; }
.article p { margin-top: var(--s-4); color: #d3ddf5; }
.article > p:first-of-type { font-size: 1.08rem; }

/* Tip callout */
.tip {
  margin: var(--s-5) 0; padding: var(--s-4) var(--s-5);
  background: linear-gradient(180deg, rgba(52,211,153,.10), rgba(52,211,153,.03));
  border: 1px solid rgba(52,211,153,.35); border-left: 4px solid var(--green);
  border-radius: var(--radius-sm);
}
.tip-badge { display: inline-flex; align-items: center; gap: 6px; font-weight: 800;
  color: var(--green); text-transform: uppercase; font-size: .8rem; letter-spacing: .04em; }
.tip-badge svg { width: 18px; height: 18px; fill: var(--green); }
.tip p { margin-top: 6px; color: #dbeee5; }

/* Feature lists */
.feature-list { margin: var(--s-4) 0; padding: 0; list-style: none; display: grid; gap: var(--s-2); }
.feature-list li { position: relative; padding-left: 30px; color: #d3ddf5; }
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: .35em;
  width: 18px; height: 18px; border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, var(--gold), var(--gold-2));
  box-shadow: 0 0 0 3px rgba(255,201,60,.14);
}
.feature-list li::after {
  content: ""; position: absolute; left: 6px; top: .55em;
  width: 6px; height: 3px; border-left: 2px solid #2a1e00; border-bottom: 2px solid #2a1e00;
  transform: rotate(-45deg);
}
.feature-list strong { color: #fff; }

/* Data tables */
.table-wrap { margin: var(--s-5) 0; overflow-x: auto; border-radius: var(--radius);
  border: 1px solid var(--border); box-shadow: var(--shadow); -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; min-width: 520px; font-size: .95rem; }
.data-table thead th {
  background: linear-gradient(180deg, #1b2450, #151d3f); color: #fff;
  text-align: left; font-weight: 700; padding: var(--s-3) var(--s-4);
  border-bottom: 2px solid var(--gold-2); white-space: nowrap;
}
.data-table tbody th, .data-table tbody td {
  padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--border); vertical-align: top;
}
.data-table tbody th { text-align: left; color: #fff; font-weight: 700;
  background: rgba(59,130,246,.06); }
.data-table tbody td { color: #cdd8f2; }
.data-table tbody tr:nth-child(even) th { background: rgba(59,130,246,.10); }
.data-table tbody tr:nth-child(even) td { background: rgba(255,255,255,.02); }
.data-table tbody tr:hover td, .data-table tbody tr:hover th { background: rgba(255,201,60,.06); }
.data-table tbody tr:last-child th, .data-table tbody tr:last-child td { border-bottom: 0; }

/* Pros / cons */
.proscons { display: grid; grid-template-columns: 1fr; gap: var(--s-4); margin: var(--s-5) 0; }
.pc-card { border-radius: var(--radius); padding: var(--s-5); border: 1px solid var(--border); }
.pc-card h3 { display: flex; align-items: center; gap: var(--s-2); font-size: 1.15rem; margin-bottom: var(--s-3); }
.pc-ico { width: 22px; height: 22px; flex: none; }
.pc-card ul { list-style: none; padding: 0; display: grid; gap: var(--s-2); }
.pc-card li { position: relative; padding-left: 26px; color: #d3ddf5; }
.pc-card li::before { position: absolute; left: 0; top: 0; font-weight: 800; }
.pc-pros { background: linear-gradient(180deg, rgba(52,211,153,.10), transparent);
  border-color: rgba(52,211,153,.35); }
.pc-pros h3 { color: var(--green); } .pc-pros .pc-ico { fill: var(--green); }
.pc-pros li::before { content: "✓"; color: var(--green); }
.pc-cons { background: linear-gradient(180deg, rgba(239,43,69,.10), transparent);
  border-color: rgba(239,43,69,.35); }
.pc-cons h3 { color: #ff6377; } .pc-cons .pc-ico { fill: #ff6377; }
.pc-cons li::before { content: "✕"; color: #ff6377; }

/* FAQ accordion */
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); margin-top: var(--s-3); overflow: hidden; }
.faq-item summary {
  cursor: pointer; list-style: none; padding: var(--s-4) var(--s-5);
  font-weight: 700; color: #fff; display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-4); transition: background .15s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: var(--surface-2); }
.faq-chev { width: 12px; height: 12px; border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold); transform: rotate(45deg); transition: transform .2s ease; flex: none; }
.faq-item[open] .faq-chev { transform: rotate(-135deg); }
.faq-answer { padding: 0 var(--s-5) var(--s-4); }
.faq-answer p { margin-top: var(--s-2); color: #cdd8f2; }

/* ---------- Sidebars ---------- */
.sidebar { display: none; transition: opacity .25s ease, visibility .25s ease; }
.sidebar--hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.side-banner {
  position: relative; display: block; width: var(--sbw); height: calc(var(--sbw) * 1.5);
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border-2);
  box-shadow: var(--shadow-lg); isolation: isolate;
}
.sb-bg {
  position: absolute; inset: 0; z-index: -2;
  background-size: cover; background-position: center;
  transition: transform .4s ease;
}
.side-banner:hover .sb-bg { transform: scale(1.06); }
.sb-overlay { position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(7,12,28,.88) 0%, rgba(7,12,28,.35) 32%, rgba(7,12,28,.30) 60%, rgba(7,12,28,.85) 100%); }
.sb-content { position: absolute; inset: 0; padding: var(--s-4);
  display: flex; flex-direction: column; justify-content: space-between; text-align: center; gap: var(--s-3); }
.sb-top { display: flex; flex-direction: column; gap: var(--s-2); }
.sb-kicker { font-size: calc(var(--sbw) * 0.058); text-transform: uppercase; letter-spacing: .06em;
  color: var(--gold); font-weight: 800; text-shadow: 0 2px 8px rgba(0,0,0,.7); }
.sb-bonus { font-size: calc(var(--sbw) * 0.122); font-weight: 800; color: #fff; line-height: 1.25;
  text-shadow: 0 2px 10px rgba(0,0,0,.9), 0 1px 3px rgba(0,0,0,.95); }
.sb-btn { background: linear-gradient(180deg, var(--red), var(--red-dark));
  color: #fff; font-weight: 800; font-size: 1.05rem; padding: 16px 14px; border-radius: 10px;
  box-shadow: 0 8px 18px -6px var(--red-glow); transition: filter .15s ease; }
.side-banner:hover .sb-btn { filter: brightness(1.1); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg-2), var(--bg-0)); margin-top: var(--s-8); }
.footer-inner { padding: var(--s-6) var(--s-4); text-align: center; display: grid; gap: var(--s-4); }
.footer-brand { display: inline-flex; align-items: center; gap: var(--s-2); justify-content: center;
  font-weight: 800; font-size: 1.1rem; }
.footer-brand img { width: 40px; height: 40px; object-fit: contain; }
.footer-disclaimer { color: var(--muted); font-size: .85rem; max-width: 70ch; margin-inline: auto; }
.footer-responsible { display: inline-flex; align-items: center; gap: var(--s-3); justify-content: center;
  flex-wrap: wrap; color: var(--muted); font-size: .85rem; }
.age-badge { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid var(--red); color: #ff6377; font-weight: 800; font-size: .85rem; flex: none; }
.footer-copy { color: var(--muted-2); font-size: .8rem; }

/* c-main wrapper (navn + rating) — nøytral på desktop */
.c-main { display: contents; }

/* ============================================================
   Responsive
   ============================================================ */

/* --- Mobil: topp-3 vises kompakt som rader (men beholder
       gull/sølv/bronse-farger og gløden på #1) --- */
@media (max-width: 767px) {
  /* Skjul hero-underteksten på mobil (beholdes i HTML for desktop/SEO) */
  .hero-sub { display: none; }

  .podium { display: flex; flex-direction: column; gap: var(--s-3); }

  .rank-card {
    display: grid;
    grid-template-columns: auto 60px 1fr;
    grid-template-areas:
      "num logo main"
      "bonus bonus bonus"
      "cta cta cta";
    align-items: center; text-align: left;
    padding: var(--s-4); gap: var(--s-3);
    transform: none !important;
  }
  .rank-card.is-featured { transform: none !important; }

  .c-main { display: block; grid-area: main; min-width: 0; }
  .c-main .c-name { font-size: 1.1rem; }
  .c-main .c-rating { justify-content: flex-start; margin-top: 2px; }

  .rank-card .rank-num {
    position: static; transform: none;
    grid-area: num; justify-self: start; align-self: center;
    min-width: 30px; height: 30px; padding: 0 9px; font-size: 1rem; border-radius: 9px;
  }
  .rank-card .c-logo-wrap { grid-area: logo; width: 60px; height: 60px; margin: 0; }
  .rank-card .c-logo { width: 60px; height: 60px; border-radius: 14px; border-width: 2px; }
  .rank-card .c-logo-wrap::before { inset: -5px; filter: blur(9px); }

  .rank-card .c-bonus { grid-area: bonus; width: 100%; min-height: 0;
    padding: 10px var(--s-3); font-size: .95rem; }
  .rank-card .pay-row { display: none; }
  .rank-card .btn-cta { grid-area: cta; width: 100%; margin-top: 0; }
}

@media (min-width: 560px) {
  .proscons { grid-template-columns: 1fr 1fr; }
  .trust-bar { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 768px) {
  .hero-content { padding: var(--s-6) var(--s-7); }
  .podium {
    grid-template-columns: 1fr 1.12fr 1fr; gap: var(--s-4); align-items: start;
  }
  .podium .rank-card { order: 0; } /* behold DOM-rekkefølge 2-1-3 på desktop */
  .podium .is-featured { transform: scale(1.05) translateY(-4px); z-index: 2; }
  .podium .rank-card:hover { transform: translateY(-6px); }
  .podium .is-featured:hover { transform: scale(1.05) translateY(-10px); }
  .trust-bar { grid-template-columns: repeat(4, 1fr); }
  .trust-item { flex-direction: column; text-align: center; }

  /* Rangeringsrader: én horisontal linje, knapp til høyre */
  .rank-row {
    grid-template-columns: auto auto minmax(120px, 1.1fr) minmax(130px, 1.2fr) auto auto;
    align-items: center; column-gap: var(--s-5);
  }
  .rank-row .row-bonus { grid-column: auto; }
  .rank-row .row-feats { grid-column: auto; flex-direction: column; flex-wrap: nowrap;
    gap: 6px; }
  .rank-row .btn-cta { grid-column: auto; width: auto; min-width: 150px;
    margin-top: 0; justify-self: end; align-self: center; }
}
@media (min-width: 1500px) {
  .sidebar {
    display: flex; flex-direction: column; gap: var(--s-5);
    position: fixed; top: 89px; z-index: 40;
  }
  .sidebar--left  { left:  max(16px, calc((100vw - var(--container)) / 2 - var(--sbw) - 24px)); }
  .sidebar--right { right: max(16px, calc((100vw - var(--container)) / 2 - var(--sbw) - 24px)); }
}
/* Større skjermer: øk bannerstørrelsen siden det er mer plass */
@media (min-width: 1800px) { :root { --sbw: 250px; } }
@media (min-width: 2300px) { :root { --sbw: 320px; } }
@media (min-width: 3000px) { :root { --sbw: 400px; } }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important;
      scroll-behavior: auto !important; }
  .hero-bg { transform: none; }
}
