/* Kasinotilmanrekisteroitymista.fi. Colours from the owner's logo: teal #00a885, ink #212529, blue #2969b0. */
:root {
  --teal: #00a885;
  --teal-ink: #00735b;
  --teal-deep: #006b54;
  --night: #14322b;
  --mint: #f2faf7;
  --line: #dbe8e3;
  --ink: #212529;
  --muted: #5a6670;
  --blue: #2969b0;
  --cta: #0b7a43;
  --cta-hover: #096636;
  --free: #0b6b3a;
  --free-bg: #e6f6ec;
  --taxed: #8a3b00;
  --taxed-bg: #fff1e6;
  --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: #fff;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; }
a { color: var(--teal-ink); text-underline-offset: 2px; }
a:hover { color: var(--teal-deep); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.2; color: var(--night); margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 6vw, 3rem); font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 760px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -999px; top: 0; background: #fff; padding: .5rem 1rem; z-index: 10; }
.skip-link:focus { left: 8px; top: 8px; }
.preview-strip { background: #ffe9a8; color: #5c4400; text-align: center; font-size: .9rem; font-weight: 600; padding: .35rem 16px; }
.is-planned, .nav-link.is-planned { color: #7d8b86; cursor: default; }
.site-footer .is-planned { color: #a9c4bc; }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; padding-top: .75rem; padding-bottom: .75rem; }
.brand { display: inline-flex; line-height: 0; }
.brand-logo { height: 38px; width: auto; }
.site-nav { min-width: 0; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: .25rem; margin: 0; padding: 0; list-style: none; }
.nav-link { display: inline-block; padding: .4rem .75rem; border-radius: 999px; font-weight: 650; color: var(--night); text-decoration: none; white-space: nowrap; }
a.nav-link:hover { background: var(--mint); color: var(--night); }
.nav-link[aria-current="page"] { background: var(--mint); color: var(--teal-ink); }
@media (max-width: 640px) {
  .site-nav { width: 100%; }
  .site-nav ul { margin-left: -.75rem; }
  .nav-link { padding: .35rem .75rem; }
  .brand-logo { height: 32px; }
}

/* Hero */
.hero { background: linear-gradient(135deg, var(--teal-deep) 0%, #008a6c 60%, #009a7a 100%); color: #fff; padding: 2.5rem 0 2.25rem; }
.hero h1 { color: #fff; }
.hero .lead { font-size: 1.2rem; }
.hero p { max-width: 42em; }
.hero p a { color: #fff; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.hero p a:hover { color: var(--mint); }
.hero-links { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 1.25rem 0 0; padding: 0; }
.hero-links a { display: inline-block; padding: .35rem .85rem; border: 1px solid rgba(255, 255, 255, .7); border-radius: 999px; color: #fff; text-decoration: none; font-weight: 600; font-size: .95rem; }
.hero-links a:hover { background: rgba(255, 255, 255, .15); color: #fff; }
.page-dates { font-size: .95rem; color: rgba(255, 255, 255, .88); margin: -.25rem 0 1rem; }
.crumbs { border-bottom: 1px solid var(--line); background: #fff; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; padding-top: .55rem; padding-bottom: .55rem; font-size: .9rem; color: var(--muted); }
.breadcrumb a { color: var(--teal-ink); }

/* Sections */
.section { padding: 2.75rem 0; }
.section-alt { background: var(--mint); }
.section-intro { max-width: 46em; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0 0 1.25em; }
.steps li { counter-increment: step; position: relative; padding: 0 0 .9em 3rem; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -.1em; width: 2rem; height: 2rem; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 800; display: grid; place-items: center; }
.facts { padding-left: 1.2em; }
.facts li { margin-bottom: .5em; }
.pick-list { list-style: none; padding: 0; margin: 0 0 1.25em; }
.pick-list li { position: relative; padding: .45em 0 .45em 1.6em; border-bottom: 1px solid var(--line); }
.pick-list li::before { content: ""; position: absolute; left: .2em; top: .95em; width: .55em; height: .55em; border-radius: 50%; background: var(--teal); }
.table-wrap { overflow-x: auto; margin: 0 0 1em; }
.pay-table, .data-table { width: 100%; border-collapse: collapse; font-size: .97rem; }
.pay-table caption, .data-table caption { text-align: left; font-weight: 700; padding-bottom: .5em; color: var(--night); }
.pay-table th, .pay-table td, .data-table th, .data-table td { text-align: left; vertical-align: top; padding: .6em .7em; border-bottom: 1px solid var(--line); }
.pay-table thead th, .data-table thead th { background: var(--mint); font-size: .9rem; }
.data-table { font-size: .92rem; min-width: 640px; }
.data-table td:nth-child(3), .data-table td:nth-child(4) { white-space: nowrap; }
.data-details { border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1rem; margin: 0 0 1.25em; background: #fff; }
.data-details summary { cursor: pointer; font-weight: 700; color: var(--teal-ink); }
.data-details[open] summary { margin-bottom: .75rem; }
.pay-table td:nth-child(2) { white-space: nowrap; text-align: center; }
.table-note { font-size: .9rem; color: var(--muted); }

/* Casino cards */
.casino-list { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1rem; }
.casino-list + p { margin-top: 1.25rem; }
.casino-card { display: grid; grid-template-columns: 1fr; gap: .9rem; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 1px 3px rgba(20, 50, 43, .06); scroll-margin-top: 1rem; }
.card-head { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "rank logo" "rank name"; align-items: center; align-content: start; column-gap: .75rem; }
.card-rank { grid-area: rank; width: 2rem; height: 2rem; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 800; display: grid; place-items: center; align-self: start; }
.card-logo { grid-area: logo; display: flex; align-items: center; justify-content: center; height: 76px; padding: 6px; background: #eef3f1; border-radius: 10px; }
.card-logo img { max-height: 64px; max-width: 100%; width: auto; object-fit: contain; }
.card-name { grid-area: name; font-size: 1.05rem; margin: .45rem 0 0; }
.card-offer { font-size: 1.3rem; font-weight: 800; line-height: 1.25; color: var(--night); margin: 0 0 .25rem; }
.card-sub { color: var(--muted); font-size: .95rem; margin: 0 0 .6rem; }
.card-chips { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.card-chips li { font-size: .82rem; font-weight: 600; padding: .2rem .6rem; border-radius: 999px; background: #eef3f1; color: var(--night); }
.card-chips .chip-free { background: var(--free-bg); color: var(--free); }
.card-chips .chip-taxed { background: var(--taxed-bg); color: var(--taxed); }
.card-note { font-size: .95rem; margin: .7rem 0 0; padding: .55rem .75rem; background: var(--mint); border-left: 3px solid var(--teal); border-radius: 6px; }
.btn { display: inline-block; border-radius: 10px; font-weight: 800; text-decoration: none; text-align: center; }
.btn-play { display: block; background: var(--cta); color: #fff; padding: .9rem 1rem; font-size: 1.05rem; }
.btn-play:hover { background: var(--cta-hover); color: #fff; }
.card-terms { font-size: .78rem; color: var(--muted); margin: .45rem 0 0; line-height: 1.45; }
.card-details { border-top: 1px solid var(--line); padding-top: .6rem; }
.card-details summary { cursor: pointer; font-weight: 700; color: var(--teal-ink); }
.details-inner { padding-top: .75rem; }
.details-inner dl { display: grid; grid-template-columns: 1fr; gap: .35rem 1.25rem; margin: 0 0 .75rem; font-size: .93rem; }
.details-inner dl div { border-bottom: 1px dashed var(--line); padding-bottom: .35rem; }
.details-inner dt { font-weight: 700; color: var(--night); }
.details-inner dd { margin: 0; }
.proscons { list-style: none; margin: 0; padding: 0; font-size: .95rem; }
.proscons li { position: relative; padding-left: 1.4em; margin-bottom: .3em; }
.proscons .pro::before { content: "+"; position: absolute; left: 0; font-weight: 800; color: var(--free); }
.proscons .con::before { content: "–"; position: absolute; left: 0; font-weight: 800; color: var(--taxed); }
@media (min-width: 760px) {
  .casino-card { grid-template-columns: 230px 1fr 210px; grid-template-areas: "head body cta" "details details details"; column-gap: 1.25rem; padding: 1.1rem 1.25rem; }
  .card-head { grid-area: head; }
  .card-body { grid-area: body; }
  .card-cta { grid-area: cta; align-self: center; }
  .card-details { grid-area: details; }
  .details-inner dl { grid-template-columns: 1fr 1fr; }
}

/* FAQ */
.faq details { border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1rem; margin-bottom: .6rem; background: #fff; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--night); }
.faq details[open] summary { margin-bottom: .5rem; }
.faq p { margin: 0; }

/* Footer */
.site-footer { background: var(--night); color: #e6f2ee; padding: 2.25rem 0 1.5rem; font-size: .95rem; }
.site-footer a { color: #7fe0c5; }
.footer-brand { font-weight: 800; font-size: 1.1rem; }
.footer-brand a { color: #fff; text-decoration: none; }
.badge-18 { display: inline-grid; place-items: center; width: 2.1em; height: 2.1em; border-radius: 50%; border: 2px solid #e6f2ee; font-weight: 800; font-size: .8em; margin-right: .35em; }
.footer-copy { color: #a9c4bc; font-size: .85rem; margin-bottom: 0; }

/* 404 */
.error-page { text-align: center; padding: 4rem 0; }
.btn-home { background: var(--cta); color: #fff; padding: .8rem 1.4rem; }
.btn-home:hover { background: var(--cta-hover); color: #fff; }
