/* Reference read: dense Swedish casino lobby, light canvas, burgundy category rails, green actions. */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.64;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-deep); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.skip-link { position: fixed; left: 12px; top: -100px; z-index: 9999; padding: 10px 14px; border-radius: 8px; background: var(--paper); color: var(--ink); }
.skip-link:focus { top: 12px; }
.container { width: var(--container); margin-inline: auto; }
.eyebrow { margin: 0 0 8px; color: var(--brand); font-size: var(--step--1); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.section-title h2 { margin: 0; font: 800 var(--step-2)/1.15 var(--font-display); letter-spacing: -.025em; }
.section-title a { font-size: var(--step--1); font-weight: 800; white-space: nowrap; }
.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 8px; padding: 10px 19px; border: 0; border-radius: 999px; background: var(--action); color: #fff; font-weight: 800; text-decoration: none; box-shadow: var(--shadow-sm); cursor: pointer; transition: transform .16s ease, background .16s ease; }
.button:hover { color: #fff; background: var(--action-dark); transform: translateY(-1px); }
.button-secondary { background: var(--paper); color: var(--brand); border: 1px solid var(--brand); box-shadow: none; }
.button-secondary:hover { background: var(--brand-soft); color: var(--brand-deep); }

.site-header { position: sticky; z-index: 100; top: 0; color: #fff; background: var(--brand); box-shadow: 0 5px 20px rgba(70, 0, 8, .22); }
.header-main { min-height: 66px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; min-width: 178px; color: #fff; text-decoration: none; }
.brand img { width: 180px; max-height: 39px; }
.primary-nav { display: flex; align-items: center; justify-content: center; gap: 4px; }
.primary-nav a { padding: 9px 12px; border-radius: 999px; color: #fff; font-size: .9rem; font-weight: 750; text-decoration: none; }
.primary-nav a:hover, .primary-nav a[aria-current="page"] { background: rgba(255,255,255,.14); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.4); border-radius: 12px; background: transparent; color: #fff; cursor: pointer; }


.timer { display: inline-flex; padding: 5px 9px; border-radius: 7px; background: var(--brand-soft); color: var(--brand-deep); font-variant-numeric: tabular-nums; font-weight: 800; }

.trust-strip { padding: 20px 0; }



.trust-panel { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 12px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--paper); }
.trust-intro h2 { margin: 0 0 8px; font: 850 var(--step-2)/1.1 var(--font-display); }
.trust-intro p { margin: 0; color: var(--muted); }
.trust-item { padding: 14px; border-left: 1px solid var(--line); }
.trust-item strong { display: block; font-size: var(--step-1); }
.trust-item small { color: var(--muted); }

.article-shell { padding: 32px 0 var(--space-8); content-visibility: auto; contain-intrinsic-size: 1400px; }
.article-layout { display: grid; grid-template-columns: minmax(0, var(--reading)) 260px; align-items: start; justify-content: center; gap: 52px; }
.article { min-width: 0; padding: clamp(22px, 4vw, 52px); border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--paper); box-shadow: var(--shadow-sm); }
.article > :first-child { margin-top: 0; }
.article h2, .article h3 { color: #332526; font-family: var(--font-display); letter-spacing: -.025em; text-wrap: balance; scroll-margin-top: 130px; }
.article h2 { margin: 2.2em 0 .7em; font-size: var(--step-2); line-height: 1.2; }
.article h3 { margin: 1.8em 0 .55em; font-size: var(--step-1); line-height: 1.25; }
.article p, .article li { color: #3e3737; }
.article a { font-weight: 700; }
.article ul, .article ol { padding-left: 1.35em; }
.article li + li { margin-top: .48em; }
.article figure { margin: 30px 0; }
.article figure img { width: 100%; height: auto; border-radius: 14px; background: #ece7e2; }
.article figcaption { margin-top: 9px; color: var(--muted); font-size: var(--step--1); }
.article table { width: 100%; margin: 24px 0; border-collapse: collapse; font-size: .93rem; }
.article th, .article td { padding: 11px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.article th { background: var(--brand-soft); color: var(--brand-deep); }
.article blockquote { margin: 26px 0; padding: 18px 22px; border-left: 5px solid var(--accent); background: var(--surface); }
.article details { margin: 10px 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.article summary { padding: 13px 15px; cursor: pointer; font-weight: 800; }
.article details > *:not(summary) { margin-inline: 15px; }
.related-guides { margin-top: 36px; padding: 20px; border-radius: 14px; background: var(--brand-soft); }
.related-guides h2 { margin-top: 0; font-size: var(--step-1); }
.related-guides ul { display: grid; gap: 8px; margin-bottom: 0; }
.author-card { display: grid; gap: 4px; margin-top: 38px; padding: 18px 20px; border: 1px solid var(--line); border-left: 5px solid var(--action); border-radius: 12px; background: var(--surface); }
.author-card span { color: var(--muted); font-size: var(--step--1); }
.author-card a { justify-self: start; font-size: var(--step--1); }
.toc { position: sticky; top: 128px; max-height: calc(100vh - 150px); overflow: auto; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.toc strong { display: block; margin-bottom: 10px; }
.toc a { display: block; padding: 6px 0; color: var(--muted); font-size: var(--step--1); line-height: 1.3; text-decoration: none; }
.toc a:hover { color: var(--brand); }

.page-hero { padding: 28px 0 12px; }
.page-hero-panel { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); min-height: 330px; overflow: clip; border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--brand-deep), var(--brand)); color: #fff; box-shadow: var(--shadow-md); }
.page-hero-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(28px, 5vw, 60px); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 15px; color: #ffd6da; font-size: var(--step--1); }
.breadcrumbs a { color: #fff; }
.page-hero h1 { margin: 0; font: 850 var(--step-3)/1.08 var(--font-display); letter-spacing: -.04em; text-wrap: balance; }
.page-hero .lead { margin: 16px 0 0; color: #fff4f4; font-size: var(--step-1); }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }

.site-footer { color: #fff; background: #3b070c; }
.footer-main { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 34px; padding: 48px 0 34px; }
.footer-brand img { width: 190px; }
.footer-brand p { max-width: 440px; color: #eedfe0; }
.footer-column h2 { margin: 0 0 12px; font-size: var(--step-0); }
.footer-column a { display: block; padding: 4px 0; color: #f8e9ea; font-size: var(--step--1); text-decoration: none; }
.footer-column a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { padding: 18px 0 82px; border-top: 1px solid rgba(255,255,255,.16); color: #e5ced0; font-size: var(--step--1); }
.footer-bottom p { margin: 5px 0; }
.footer-contact { overflow-wrap: anywhere; }
.footer-help { padding-bottom: 28px; }
.footer-help a { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px; padding: 18px 20px; border: 1px solid rgba(255,255,255,.22); border-radius: 14px; background: #520a11; color: #fff; text-decoration: none; }
.footer-help strong { font-size: var(--step-1); }
.footer-help [data-help-warning] { color: #f0dfe1; }

.cookie-banner { position: fixed; z-index: 500; right: 18px; bottom: 18px; left: 18px; max-width: 860px; margin-inline: auto; display: none; gap: 18px; align-items: center; justify-content: space-between; padding: 18px; border: 1px solid #4b3d3e; border-radius: 16px; background: #211b1c; color: #fff; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.cookie-banner[data-open="true"] { display: flex; }
.cookie-banner p { margin: 0; font-size: var(--step--1); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie-actions button { min-height: 40px; padding: 7px 13px; border: 1px solid rgba(255,255,255,.5); border-radius: 999px; background: transparent; color: #fff; font-weight: 750; cursor: pointer; }
.cookie-actions .accept { border-color: var(--action); background: var(--action); }
.cookie-dialog { max-width: 570px; border: 0; border-radius: 18px; padding: 0; box-shadow: var(--shadow-md); }
.cookie-dialog::backdrop { background: rgba(24,10,11,.6); }
.dialog-body { padding: 26px; }
.dialog-body h2 { margin-top: 0; }
.consent-row { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-top: 1px solid var(--line); }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }

.mobile-nav { position: fixed; z-index: 150; right: 0; bottom: 0; left: 0; display: none; grid-template-columns: repeat(4, 1fr); min-height: 62px; border-top: 1px solid #78101a; background: var(--brand); }
.mobile-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; color: #fff; font-size: .66rem; font-weight: 800; text-decoration: none; }
.mobile-nav span { font-size: 1.05rem; }

.error-page { min-height: 65vh; display: grid; place-items: center; padding: 60px 0; text-align: center; }
.error-page h1 { margin: 0; color: var(--brand); font: 900 clamp(5rem, 18vw, 12rem)/.85 var(--font-display); }
.error-page h2 { font-size: var(--step-3); }

@media (max-width: 1024px) {
  .header-main { grid-template-columns: auto 1fr auto; }
  .menu-toggle { display: inline-grid; place-items: center; }
  .primary-nav { position: absolute; top: 66px; right: 16px; left: 16px; display: none; flex-direction: column; align-items: stretch; padding: 12px; border-radius: 14px; background: var(--brand-deep); box-shadow: var(--shadow-md); }
  .primary-nav[data-open="true"] { display: flex; }
  .primary-nav a { text-align: center; }
  .header-actions { justify-self: end; }
  .trust-panel { grid-template-columns: 1fr 1fr; }
  .trust-item { border-left: 0; border-top: 1px solid var(--line); }
  .article-layout { grid-template-columns: minmax(0, var(--reading)); }
  .toc { display: none; }
  .footer-main { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-column:last-child { grid-column: 2 / -1; }
}

@media (max-width: 680px) {
  body { padding-bottom: 62px; }
  .site-header { position: relative; }
  .header-main { min-height: 58px; gap: 10px; }
  .brand { min-width: 0; }
  .brand img { width: 144px; }
  .primary-nav { top: 58px; }
  .section-title { align-items: center; }
  .trust-panel { grid-template-columns: 1fr; padding: 16px; }
  .page-hero { padding-top: 12px; }
  .page-hero-panel { grid-template-columns: 1fr; }
  .page-hero-copy { padding: 26px 20px; }
  .page-hero-media { height: 210px; order: -1; }
  .article { padding: 22px 17px; overflow: hidden; }
  .article table { display: block; overflow-x: auto; }
  .article figure { margin-inline: -5px; }
  .footer-main { grid-template-columns: 1fr; gap: 28px; padding-top: 38px; }
  .footer-column:last-child { grid-column: auto; }
  .cookie-banner { right: 10px; bottom: 72px; left: 10px; flex-direction: column; align-items: stretch; }
  .cookie-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .cookie-actions button { min-height: 44px; }
  .mobile-nav { display: grid; }
  .footer-help a { grid-template-columns: 1fr; gap: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* ===== Homepage v2 (owner review 2026-10-06): reference lobby head ===== */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header: responsible pills, burgundy main bar, white category chips */
.rg-strip { background: var(--brand); }
.rg-pills { display: flex; justify-content: center; gap: 8px; padding-top: 8px; }
.rg-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px 4px 7px; border-radius: 999px; background: #fff; color: var(--ink); font-size: .78rem; font-weight: 700; text-decoration: none; }
.rg-pill:hover { color: var(--brand); }
.rg-pill svg { flex: none; }
.header-actions .button { min-height: 42px; padding: 8px 22px; background: var(--action); color: #fff; font-size: 1rem; box-shadow: none; }
.header-actions .button:hover { background: var(--action-dark); color: #fff; }
.chip-bar { position: sticky; z-index: 90; top: 0; background: var(--paper); border-bottom: 1px solid var(--line); }
.chip-list { display: flex; gap: 8px; padding: 10px 0; overflow-x: auto; scrollbar-width: none; }
.chip-list::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 8px 15px; border-radius: 999px; background: #f1eeec; color: var(--ink); font-size: .88rem; font-weight: 750; text-decoration: none; white-space: nowrap; }
.chip:hover, .chip[aria-current="page"] { background: #e7e1dd; color: var(--ink); }
.chip-primary, .chip-primary:hover, .chip-primary[aria-current="page"] { background: var(--action); color: #fff; }
.site-header { position: relative; box-shadow: none; }

/* Compact hero: light surface, max ~360px, continues into the offer row */
.hero { padding: 18px 0 4px; }
.hero-panel { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); height: clamp(300px, 26vw, 360px); overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding: 26px clamp(22px, 3.4vw, 46px); }
.hero-copy .eyebrow { margin-bottom: 6px; }
.hero-copy h1 { margin: 0; color: var(--ink); font: 800 clamp(1.9rem, 1.4rem + 1.4vw, 2.75rem)/1.06 var(--font-display); letter-spacing: -.035em; text-wrap: balance; }
.hero-copy .lead { display: -webkit-box; margin: 12px 0 18px; overflow: hidden; color: var(--muted); font-size: 1rem; line-height: 1.5; -webkit-line-clamp: 4; -webkit-box-orient: vertical; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.hero-badges { display: inline-flex; gap: 6px; }
.hero-badges span { padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: .78rem; font-weight: 750; }
.hero-media { position: relative; min-height: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 55%; }

/* Offer banners: the banner is the card and its painted CTA is the only CTA */
.offer-section { padding: 18px 0 6px; }
.offer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.offer-card { position: relative; display: block; aspect-ratio: 1000 / 488; overflow: hidden; border-radius: 12px; background: var(--brand); text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.offer-art { display: block; width: 100%; height: 100%; }
.offer-card img { width: 100%; height: 100%; object-fit: cover; }
.offer-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(99, 5, 14, .18); }
.offer-check { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 12px; color: var(--muted); font-size: .8rem; }
.offer-check strong { color: var(--brand); }
.timer { display: inline-flex; padding: 3px 8px; border-radius: 6px; background: var(--brand-soft); color: var(--brand-deep); font-variant-numeric: tabular-nums; font-weight: 800; }

/* Game rows: identical square media frames, fixed two-line captions */
.lobby-section { padding: 16px 0 6px; }
.lobby-band { margin-bottom: 12px; padding: 9px 14px; border-radius: 10px; background: var(--brand); color: #fff; font-size: .86rem; font-weight: 800; }
.lobby-section .section-title { margin-bottom: 10px; }
.rail-controls { display: flex; align-items: center; gap: 6px; }
.rail-button { display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); color: var(--ink); font-size: 1.2rem; line-height: 1; cursor: pointer; }
.game-rail { --cols: 8; display: grid; grid-auto-flow: column; grid-auto-columns: 128px; gap: 12px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: inline mandatory; overscroll-behavior-inline: contain; scrollbar-width: none; }
.game-rail::-webkit-scrollbar { display: none; }
.game-card { display: flex; flex-direction: column; min-width: 0; scroll-snap-align: start; color: var(--ink); text-decoration: none; }
.game-media { display: block; position: relative; width: 100%; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 12px; background: #2a1517; }
.game-media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .2s ease; }
.game-card:hover .game-media img { transform: scale(1.04); }
.game-title { display: -webkit-box; height: 2.5em; margin-top: 7px; overflow: hidden; font-size: .8rem; font-weight: 750; line-height: 1.25; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.game-card:hover .game-title { color: var(--brand); }

/* Secondary promo row */
.promo-rail { padding: 20px 0 8px; }
.promo-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.promo-text { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; position: relative; padding: 34px 32px 26px; border: 3px solid var(--accent); border-radius: 12px; background: var(--brand); color: #fff; }
.promo-tab { position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%); padding: 4px 14px; border-radius: 8px; background: #f1eeec; color: var(--ink); font-size: .85rem; font-weight: 800; }
.promo-text h3 { margin: 0 0 8px; font: 800 1.45rem/1.15 var(--font-display); }
.promo-text p { margin: 0 0 16px; color: #ffe7ea; }

@media (min-width: 1180px) {
  .game-rail { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); overflow: visible; scroll-snap-type: none; }
  .game-rail > :nth-child(n + 9) { display: none; }
  .rail-button { display: none; }
}
@media (min-width: 1440px) {
  .game-rail { --cols: 9; }
  .game-rail > :nth-child(9) { display: flex; }
}
@media (min-width: 1800px) {
  .game-rail { --cols: 10; }
  .game-rail > :nth-child(10) { display: flex; }
}
@media (max-width: 1024px) {
  .offer-grid { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: minmax(380px, 46%); overflow-x: auto; scroll-snap-type: inline mandatory; scrollbar-width: none; }
  .offer-card { scroll-snap-align: start; }
}
@media (max-width: 680px) {
  .rg-pills { justify-content: flex-start; overflow-x: auto; padding-top: 6px; }
  .rg-pill { flex: none; font-size: .72rem; }
  .chip-bar { position: relative; }
  .hero-panel { display: flex; flex-direction: column-reverse; height: auto; }
  .hero-media { height: 170px; }
  .hero-copy { padding: 18px 16px 20px; }
  .hero-copy .lead { -webkit-line-clamp: 5; font-size: .95rem; }
  .offer-grid { grid-auto-columns: 86%; gap: 12px; }
  .game-rail { grid-auto-columns: 124px; gap: 10px; }
  .promo-grid { grid-template-columns: 1fr; }
  .promo-text { padding: 30px 20px 22px; }
  .header-actions .button { min-height: 36px; padding: 6px 13px; font-size: .8rem; white-space: nowrap; }
  .rail-button { display: none; }
  .section-title { flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
  .section-title h2 { font-size: 1.3rem; }
}
