/* Uusiakasinoja.fi. Logo blue on white; navy text, a numbered top list. */
:root {
  --purple: #2969b0;
  --purple-dark: #1d4f87;
  --purple-tint: #e7effa;
  --navy: #1f2a44;
  --ink: #1d2233;
  --muted: #5a6072;
  --bg: #f5f7fa;
  --card: #ffffff;
  --line: #dde3ec;
  --link: #245a9c;
  --cta: #d6492a;
  --cta-hover: #b53a1f;
  --tax: #0b6b3a;
  --tax-bg: #e3f4ea;
  --sport: #1f4f8f;
  --sport-bg: #e5eefb;
  --radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 2px; }
a:hover { color: var(--purple-dark); }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; color: var(--navy); }
h1 { font-size: clamp(1.7rem, 5.5vw, 2.6rem); font-weight: 800; letter-spacing: -.01em; hyphens: auto; }
h2 { font-size: clamp(1.4rem, 3.8vw, 1.85rem); font-weight: 800; margin-top: 1.6em; }
h3 { font-size: 1.2rem; font-weight: 750; margin-top: 1.4em; }
p { margin: 0 0 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--purple); color: #fff; padding: .6rem 1rem; z-index: 10; }
.skip-link:focus { left: 0; }
.wrap { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 1rem; }
.wrap.narrow { max-width: 760px; }
.preview-strip { background: #ffe58a; color: var(--navy); text-align: center; font-weight: 700; padding: .35rem 1rem; }

/* Header and footer */
.site-header { background: #fff; border-bottom: 4px solid var(--purple); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem 1.5rem; padding-top: .7rem; padding-bottom: .7rem; }
.brand { display: block; line-height: 0; }
.brand-logo { width: auto; height: 36px; max-width: 70vw; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .2rem 1.1rem; }
.nav-link { color: var(--navy); text-decoration: none; font-weight: 650; }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--purple); text-decoration: underline; }
.site-footer { background: var(--navy); color: #d6daea; margin-top: 3rem; padding: 2.2rem 0 1.6rem; font-size: .95rem; }
.site-footer a { color: #fff; }
.footer-brand { font-weight: 800; font-size: 1.1rem; }
.footer-brand a { text-decoration: none; }
.footer-copy { color: #aab1c8; margin-bottom: 0; }
.badge-18 { display: inline-block; border: 2px solid currentColor; border-radius: 999px; font-weight: 800; font-size: .8rem; padding: 0 .4rem; margin-right: .25rem; }
.crumbs { background: #fff; border-bottom: 1px solid var(--line); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .4rem; padding-top: .5rem; padding-bottom: .5rem; font-size: .9rem; color: var(--muted); }

/* Buttons */
.btn { display: inline-block; background: var(--cta); color: #fff; font-weight: 750; text-decoration: none; text-align: center; border-radius: 999px; padding: .6rem 1.2rem; line-height: 1.25; white-space: nowrap; }
.btn:hover { background: var(--cta-hover); color: #fff; }
.btn-ghost { background: transparent; color: var(--purple); border: 2px solid var(--purple); }
.btn-ghost:hover { background: var(--purple); color: #fff; }

/* Hero */
.hero { background: linear-gradient(180deg, var(--purple-tint), var(--bg)); padding: 2.2rem 0 1rem; }
.lead { font-size: 1.15rem; }

/* A–Ö list */
.list-section { padding: 1rem 0 1.5rem; }
.list-section h2 { margin-top: .5em; }
.legend { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 0 0 1rem; color: var(--muted); font-size: .95rem; }
.legend div { display: flex; gap: .5rem; align-items: baseline; }
.legend dt, .legend dd { margin: 0; }
.casino-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.row-name { display: flex; align-items: center; gap: .7rem; }
.rank { flex: none; width: 2rem; height: 2rem; border-radius: 999px; background: var(--navy); color: #fff; font-weight: 800; display: grid; place-items: center; }
.row-logo { flex: none; display: flex; align-items: center; justify-content: center; overflow: hidden; width: 112px; height: 52px; padding: 5px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.row-logo img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.casino-row { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; display: grid; gap: .5rem 1.2rem; grid-template-columns: 1fr; scroll-margin-top: 1rem; }
.row-name h3 { margin: 0; font-size: 1.2rem; }
.row-body p { margin: 0 0 .2rem; }
.label { display: inline-block; min-width: 5.5rem; color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .03em; }
.row-terms { color: var(--muted); font-size: .88rem; }
.casino-row .btn { justify-self: start; }
.tags { list-style: none; margin: .35rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem; }
.tag { display: inline-block; font-size: .78rem; font-weight: 700; border-radius: 999px; padding: .1rem .55rem; }
.tag-tax { color: var(--tax); background: var(--tax-bg); }
.tag-sport { color: var(--sport); background: var(--sport-bg); }
@media (min-width: 760px) {
  .casino-row { grid-template-columns: 20rem 1fr auto; align-items: center; }
  .casino-row .btn { justify-self: end; }
}

/* Text pages */
.prose { padding-top: 1.5rem; }
.prose h2:first-child { margin-top: .5em; }
.prose ul { padding-left: 1.3rem; }
.prose li { margin-bottom: .35rem; }
.page-dates { color: var(--muted); font-size: .95rem; }
.article-image { margin: 0 0 1.2rem; }
.article-image img { display: block; width: 100%; max-width: 320px; border-radius: var(--radius); }
@media (min-width: 760px) {
  .article-image { float: right; width: 280px; margin: .3rem 0 1rem 1.5rem; }
  .article-image img { max-width: 100%; }
  .article h2 { clear: none; }
}
.related { clear: both; margin-top: 2.5rem; border-top: 1px solid var(--line); padding-top: .5rem; }
.guides { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.guide { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem; }
.guide a { text-decoration: none; display: block; }
.guide img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; border-radius: 8px; margin-bottom: .6rem; }
.guide-title { display: block; font-weight: 750; color: var(--navy); line-height: 1.3; }
.guide a:hover .guide-title { color: var(--purple); text-decoration: underline; }
.guide p { margin: .4rem 0 0; color: var(--muted); font-size: .92rem; }
.error-page { padding-top: 3rem; padding-bottom: 2rem; }

.toc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1rem; margin: 0 0 1rem; }
.toc ol { margin: 0; }
.wide-image { margin: 1.5rem 0; }
.wide-image img { display: block; width: 100%; border-radius: var(--radius); }
.prose h4 { font-size: 1.05rem; margin: 1.2em 0 .4em; color: var(--navy); }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.2rem; font-size: .95rem; background: var(--card); }
.prose th, .prose td { text-align: left; padding: .5rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose thead th { color: var(--navy); border-bottom: 2px solid var(--line); }
