/* Compatibility fixes layered over the supplied visual reference. */
:root {
  --sw-orange: #fecc00;
  --sw-amber: #ffdf5c;
  --sw-ember: #d4aa00;
  --sw-on-orange: #171400;
  --sw-night: #090909;
  --sw-deep: #111111;
  --sw-panel: #191919;
  --sw-panel-raised: #222222;
  --sw-line: #353535;
  --sw-stroke: #707070;
}
.logo-box, .avatar { background: #101010; }
.logo { gap: 10px; }
.logo .brand-mark { display: block; width: 64px; height: 64px; flex: 0 0 64px; object-fit: contain; }
.brand-wordmark { display: block; white-space: nowrap; font-size: 1.25rem; line-height: 1.2; color: #f5f5f5; }
.site-header .brand-wordmark { font-size: 1.5rem; }
@media (max-width: 600px) { .site-header .brand-wordmark { font-size: 1.25rem; } }
.brand-wordmark-accent { color: var(--sw-orange); }
* { letter-spacing: 0; }
h1, h2, h3, h4, h5, h6, .footer-title, .sg-faq__summary { color: #fecc00; text-shadow: none; }
:is(h1, h2, h3, h4, h5, h6) a { color: inherit; }
h1 { font-size: 2.5rem; }
h2 { font-size: 2.5rem; }
.stat { font-size: 5.5rem; }
.help-number { font-size: 2.5rem; }
.skip-link { position: fixed; left: 16px; top: -120px; z-index: 20; padding: 12px 20px; background: var(--sw-orange); color: var(--sw-on-orange); }
.skip-link:focus { top: 12px; }
.menu-toggle { padding: 0; width: 44px; flex: 0 0 44px; justify-content: center; }
.menu-toggle svg { width: 22px; height: 22px; }
.placeholder-label { display: block; margin-bottom: 4px; }
[aria-disabled="true"] { cursor: not-allowed; }
.btn[aria-disabled="true"] { opacity: .65; }
.btn[aria-disabled="true"]:hover { box-shadow: none; }
.btn-primary:hover { box-shadow: 0 0 20px rgb(254 204 0 / 50%); }
.btn-primary[aria-disabled="true"]:hover { box-shadow: none; }
.chip-tax { background: rgb(254 204 0 / 12%); border-color: rgb(254 204 0 / 45%); }
.casino-row--top { box-shadow: 0 0 24px rgb(254 204 0 / 25%); }
.rank { text-shadow: 0 0 18px rgb(254 204 0 / 60%); }
.stat--orange { text-shadow: 0 0 22px rgb(254 204 0 / 60%); }
.sw-sun { box-shadow: 0 0 120px rgb(254 204 0 / 45%); }
.casino-row { grid-template-columns: 48px 120px minmax(0, 1.25fr) minmax(0, .8fr) 176px; gap: 20px; }
.casino-row--unranked { grid-template-columns: 120px minmax(0, 1.25fr) minmax(0, .8fr) 176px; }
.casino-row > *, .grid > *, .grid-2 > *, .grid-3 > *, .grid-5 > * { min-width: 0; }
.casino-row .logo-box { width: 120px; }
.casino-row--compact { grid-template-columns: 120px minmax(0, 1fr) 176px; }
.grid-2 .casino-row--compact { grid-template-columns: 120px minmax(0, 1fr); gap: 16px; }
.grid-2 .casino-row--compact .cta-col { grid-column: 1 / -1; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.check-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.chip { white-space: normal; line-height: 1.35; padding-top: 5px; padding-bottom: 5px; }
a.chip { min-height: 44px; }
.contact-email { overflow-wrap: anywhere; }
.sw-hero { padding: 20px 0 24px; background: var(--sw-night); }
.sw-chrome { background: none; color: #fecc00; filter: none; }
.sw-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 240px; z-index: -3; background: url("assets/grid.webp") center bottom / 100% 100% no-repeat; opacity: .55; pointer-events: none; }
.hero-art { position: absolute; top: 0; bottom: 0; z-index: -2; width: min(28%, 300px); background-image: url("assets/casino-art-cutout.webp"); background-size: auto 300px; background-repeat: no-repeat; pointer-events: none; }
.hero-art--left { left: 0; background-position: left bottom; }
.hero-art--right { right: 0; background-position: right bottom; }
.sw-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgb(9 9 9 / 52%); pointer-events: none; }
.sw-hero .lead { font-size: 1.125rem; line-height: 1.5; margin: 10px auto 14px; }
.sw-hero .actions { margin-bottom: 12px; }
.breadcrumbs--below-hero { padding-top: 18px; margin-bottom: 0; text-align: left; }
.section[data-editorial] { padding: 40px 0; }
[data-editorial] p { max-width: none; }
.page-mga .section { padding: 40px 0; }
.page-mga .section p { max-width: none; }
.page-mga .section :is(.grid, .grid-2) { grid-template-columns: minmax(0, 1fr); gap: 28px; }
.page-mga .section .card,
.page-mga .section .rg-band { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.page-mga .section .card:hover { background: transparent; }
.page-mga .section .card .icon-tile { display: none; }
.page-mga .section .card h3 { margin-bottom: 12px; }
:is(.page-mga, .page-tax) .section-illustration { display: block; width: 100%; height: auto; aspect-ratio: 3 / 1; margin: 20px 0 24px; }
[data-editorial] :is(.grid, .grid-2, .grid-3, .steps) { grid-template-columns: minmax(0, 1fr); }
#licenser .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
#licenser .licence-card { padding: 18px; border: 1px solid var(--sw-line); border-radius: 8px; }
#licenser .licence-card p { margin: 0; font-size: 1rem; line-height: 1.55; }
#licenser .licence-logo { display: flex; align-items: center; justify-content: center; height: 88px; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--sw-line); }
#licenser .licence-logo img { display: block; width: 100%; max-width: 220px; height: 72px; object-fit: contain; }
#bonus .grid-3 { gap: 12px; }
#bonus .grid-3 > .card { --bonus-accent: var(--sw-blue); display: grid; grid-template-columns: 28px 250px minmax(0, 1fr); align-items: start; gap: 20px; padding: 24px; border-radius: 8px; border-left: 2px solid var(--bonus-accent); background: #151515; }
#bonus .grid-3 > .card:nth-child(2) { --bonus-accent: var(--sw-orange); }
#bonus .grid-3 > .card:hover { border-color: var(--sw-line); border-left-color: var(--bonus-accent); background: #151515; }
#bonus .bonus-icon { width: 26px; height: 26px; color: var(--bonus-accent); stroke-width: 1.75; }
#bonus .grid-3 h3 { margin: 0; font-size: 1.25rem; line-height: 1.4; }
#bonus .grid-3 p { margin: 0; font-size: 1.0625rem; line-height: 1.65; color: #dedede; }
#skatt .section-head { position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr); align-items: start; gap: 16px; padding-bottom: 24px; border-bottom: 1px solid var(--sw-line); }
#skatt .section-head::after { content: ""; position: absolute; bottom: -1px; left: 0; width: 80px; height: 2px; background: var(--sw-orange); }
#skatt .tax-heading-icon { width: 32px; height: 32px; margin-top: 6px; stroke-width: 1.75; color: var(--sw-orange); }
#skatt .section-head h2 { text-shadow: none; }
#skatt .section-head p { grid-column: 1 / -1; margin: 0; }
#skatt .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
#skatt .stat-card { padding: 20px; border-radius: 8px; text-align: left; }
#skatt .stat { font-size: 3rem; margin-bottom: 12px; text-shadow: none; }
#skatt .stat-card h3 { font-size: 1.25rem; }
#skatt .stat-card p { font-size: 1rem; line-height: 1.55; }
#uttag .security-illustration { display: block; width: 100%; height: auto; aspect-ratio: 3 / 1; margin: 0 0 28px; }
[data-editorial] .responsible-illustration { display: block; width: 100%; height: auto; aspect-ratio: 3 / 1; margin: 24px 0 28px; }
#topplista .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
#topplista .step { --step-accent: var(--sw-blue); min-width: 0; padding: 18px; background: #151515; border: 1px solid var(--sw-line); border-top: 2px solid var(--step-accent); border-radius: 8px; }
#topplista .step:nth-child(even) { --step-accent: var(--sw-orange); }
#topplista .step-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid #303030; color: var(--step-accent); }
#topplista .step-header svg { width: 22px; height: 22px; stroke-width: 1.75; }
#topplista .step-num { font-size: 1.375rem; margin: 0; color: var(--step-accent); text-shadow: none; }
#topplista .step p { margin: 0; font-size: 1rem; line-height: 1.5; }
#topplista .criteria-table-wrap { border-radius: 8px; border-color: #3b3b3b; background: #141414; }
#topplista .criteria-table { width: 100%; min-width: 680px; table-layout: fixed; border-collapse: collapse; font-size: 1rem; line-height: 1.55; }
#topplista .criteria-topic { width: 17%; }
#topplista .criteria-detail { width: 38%; }
#topplista .criteria-reason { width: 45%; }
#topplista .criteria-table :is(th, td) { padding: 20px 22px; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
#topplista .criteria-table thead { background: #242424; }
#topplista .criteria-table thead th { color: #fafafa; font-size: .9375rem; font-weight: 700; border-bottom: 2px solid var(--sw-orange); }
#topplista .criteria-table tbody th { color: var(--sw-blue); font-weight: 700; }
#topplista .criteria-table tbody td { color: #dedede; }
#topplista .criteria-table tbody tr:nth-child(even) { background: #1a1a1a; }
#topplista .criteria-table tbody tr + tr :is(th, td) { border-top: 1px solid #303030; }
#topplista .criteria-table tbody tr:hover { background: #232323; }
@media (max-width: 1200px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2.125rem; }
  .casino-row { gap: 16px; padding: 20px; grid-template-columns: 40px 100px minmax(0, 1fr) minmax(0, .65fr) 152px; }
  .casino-row--unranked { grid-template-columns: 100px minmax(0, 1fr) minmax(0, .65fr) 152px; }
  .casino-row .logo-box { width: 100px; }
  .casino-row--compact { grid-template-columns: 100px minmax(0, 1fr) 152px; }
}
@media (max-width: 960px) {
  #licenser .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #bonus .grid-3 > .card { grid-template-columns: 28px minmax(0, 1fr); gap: 10px 16px; padding: 20px; }
  #bonus .grid-3 p { grid-column: 2; }
  #topplista .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.875rem; }
  .stat { font-size: 4rem; }
  .casino-row, .casino-row--compact { grid-template-columns: 48px minmax(0, 1fr); }
  .casino-row--unranked { grid-template-columns: minmax(0, 1fr); }
  .casino-row--unranked .logo-box { grid-column: 1; }
  .casino-row .logo-box { width: 140px; }
  .casino-row .info, .casino-row .bonus-col, .casino-row .cta-col { grid-column: 1 / -1; }
  .grid-2 .casino-row--compact { grid-template-columns: minmax(0, 1fr); }
  .hero-art { background-size: auto 240px; }
  .sw-hero::after { height: 192px; }
}
@media (max-width: 640px) {
  .page-mga .section { padding: 28px 0; }
  .site-footer .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
  .site-footer .footer-cols > div { min-width: 0; overflow-wrap: anywhere; }
  .site-footer .footer-cols > div:first-child, .site-footer .footer-cols > div:last-child { grid-column: 1 / -1; }
  :is([data-editorial], .page-mga, .page-tax) .toplist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  :is([data-editorial], .page-mga, .page-tax) .toplist > .casino-row { display: flex; flex-direction: column; align-items: stretch; min-width: 0; padding: 12px; gap: 12px; overflow-wrap: anywhere; text-align: center; }
  :is([data-editorial], .page-mga, .page-tax) .toplist .casino-row .logo-box { width: 100%; max-width: 140px; height: 56px; align-self: center; }
  :is([data-editorial], .page-mga, .page-tax) .toplist .casino-name { font-size: 1.125rem; line-height: 1.3; }
  :is([data-editorial], .page-mga, .page-tax) .toplist .casino-row .chip-row { justify-content: center; }
  :is([data-editorial], .page-mga, .page-tax) .toplist .casino-row .chip { min-width: 0; max-width: 100%; padding-inline: 4px; font-size: .75rem; }
  :is([data-editorial], .page-mga, .page-tax) .toplist .casino-row .small { font-size: .75rem; line-height: 1.45; }
  :is([data-editorial], .page-mga, .page-tax) .toplist .casino-row .bonus { font-size: 1rem; line-height: 1.3; }
  :is([data-editorial], .page-mga, .page-tax) .toplist .casino-row .bonus-col .small { margin-bottom: 0; }
  :is([data-editorial], .page-mga, .page-tax) .toplist .casino-row .cta-col { margin-top: auto; }
  :is([data-editorial], .page-mga, .page-tax) .toplist .casino-row .btn { width: 100%; min-width: 0; min-height: 48px; padding: 8px 4px; font-size: .875rem; line-height: 1.3; text-align: center; }
  #skatt .grid-2 { grid-template-columns: minmax(0, 1fr); }
  #skatt .section-head { grid-template-columns: 24px minmax(0, 1fr); gap: 12px; padding-bottom: 20px; }
  #skatt .tax-heading-icon { width: 24px; height: 24px; margin-top: 4px; }
  #bonus .grid-3 > .card { padding: 18px; }
  #bonus .grid-3 p { grid-column: 1 / -1; font-size: 1rem; }
  #licenser .grid { grid-template-columns: minmax(0, 1fr); }
  #topplista .criteria-topic { width: 140px; }
  #topplista .criteria-detail { width: 260px; }
  #topplista .criteria-reason { width: 280px; }
  #topplista .steps { grid-template-columns: minmax(0, 1fr); }
  h1 { font-size: 1.625rem; line-height: 1.2; }
  h2 { font-size: 1.75rem; overflow-wrap: anywhere; }
  h3 { overflow-wrap: anywhere; }
  .logo { font-size: 1rem; }
  .lead { font-size: 1.125rem; }
  .grid, .grid-2, .grid-3, .grid-5, .check-list { grid-template-columns: minmax(0, 1fr); }
  .sw-hero { padding: 16px 0 20px; }
  .hero-art { width: 24%; background-size: auto 180px; }
  .sw-hero::after { height: 144px; }
  .sw-hero .actions { margin-bottom: 12px; }
  .sw-hero .actions .btn { padding: 0 16px; }
  .sw-hero .actions--crosslinks { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 10px; max-width: 420px; margin-inline: auto; align-items: stretch; }
  .sw-hero .actions--crosslinks .btn { min-width: 0; padding-inline: 8px; line-height: 1.3; text-align: center; }
  .sw-hero .lead { margin: 10px auto 14px; }
  .help-number { font-size: 1.75rem; }
  .help-box { padding: 24px; }
  .stat { font-size: 3.5rem; }
  .section { padding: 56px 0; }
  .section[data-editorial] { padding: 28px 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
