:root {
  --bg: #f5f2ea; --surface: #fffdf8; --ink: #17211c; --muted: #5b665f; --line: #ddd7c8;
  --brand: #0d5c46; --brand-ink: #ffffff; --gold: #a86a12; --focus: #1e4e8c;
  --ok-bg: #dcefe6; --ok: #0d5c46; --mono-bg: #dde8f6; --mono: #1e4e8c; --lim-bg: #f6e9c8; --lim: #7a4f00;
  --no-bg: #f6dcd9; --no: #8f1d1d; --grey-bg: #e3e6e8; --grey: #47515a;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --r: 10px;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #111815; --surface: #19221e; --ink: #ecefe9; --muted: #a3ada6; --line: #2e3a34; --brand: #5fc9a4; --brand-ink: #0b1a14; --gold: #e0b060; --focus: #8ab4f8;
    --ok-bg: #173a2e; --ok: #8fe0c0; --mono-bg: #1b2f4d; --mono: #a9c7f5; --lim-bg: #3d3011; --lim: #f0cf7a; --no-bg: #432020; --no: #f3a9a3; --grey-bg: #2a3238; --grey: #c3cbd1; }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--sans); overflow-wrap: break-word; }
a { color: var(--brand); text-underline-offset: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(1.7rem, 5vw, 2.6rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.25rem, 3.4vw, 1.6rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--brand); color: var(--brand-ink); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }
.small { font-size: .875rem; color: var(--muted); }

/* header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.bar { display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.logo { font-family: var(--serif); font-weight: 700; font-size: 1.2rem; color: var(--ink); text-decoration: none; margin-right: auto; }
.logo span { color: var(--brand); }
.main-nav { display: flex; gap: 4px 14px; flex-wrap: wrap; order: 3; width: 100%; font-size: .95rem; }
.main-nav a { color: var(--ink); text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover { border-color: var(--brand); }
.lang { position: relative; order: 2; }
.lang summary { list-style: none; cursor: pointer; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: .9rem; font-weight: 600; }
.lang summary::-webkit-details-marker { display: none; }
.lang ul { position: absolute; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); min-width: 220px; max-width: calc(100vw - 32px); box-shadow: 0 8px 24px rgba(0,0,0,.14); }
.lang a { display: block; padding: 8px 10px; border-radius: 6px; text-decoration: none; color: var(--ink); }
.lang a:hover { background: var(--bg); }
.lang a[aria-current] { font-weight: 700; color: var(--brand); }
@media (min-width: 820px) { .main-nav { order: 2; width: auto; } .lang { order: 3; } }

/* page */
main { padding-top: 16px; padding-bottom: 40px; }
.crumbs { font-size: .875rem; color: var(--muted); margin-bottom: 12px; }
.crumbs a { color: var(--muted); }
.hero { padding: 8px 0 20px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.hero-home h1 { max-width: 18ch; }
.lead { font-size: 1.08rem; max-width: 68ch; }
.facts { display: grid; gap: 10px; margin: 16px 0 0; grid-template-columns: minmax(0, 1fr); }
.facts div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; min-width: 0; }
.facts dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 600; }
@media (min-width: 700px) { .facts { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr); } }
.block { margin: 28px 0; }
.block > p, .block > ul, .prose p, .prose li { max-width: 72ch; }
.warn { background: var(--lim-bg); color: var(--lim); border-radius: var(--r); padding: 12px 14px; font-weight: 500; }
.chip { display: inline-block; font: 600 .8rem/1.2 var(--sans); padding: 4px 10px; border-radius: 999px; }
.chip-regulated { background: var(--ok-bg); color: var(--ok); } .chip-monopoly { background: var(--mono-bg); color: var(--mono); }
.chip-restricted { background: var(--lim-bg); color: var(--lim); } .chip-prohibited { background: var(--no-bg); color: var(--no); } .chip-grey { background: var(--grey-bg); color: var(--grey); }

/* filters */
.filters { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; }
.filters form { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); align-items: end; }
.filters label { display: grid; gap: 4px; font-size: .8rem; color: var(--muted); min-width: 0; }
.filters input, .filters select, .filters button { font: inherit; font-size: 1rem; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; width: 100%; min-width: 0; min-height: 44px; }
.filters button { cursor: pointer; font-weight: 600; }
.count { margin: 10px 0 0; font-size: .875rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.none { margin: 8px 0 0; font-weight: 600; }
@media (min-width: 560px) { .filters form { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .filters form { grid-template-columns: 2fr repeat(4, minmax(0, 1fr)) auto; } }

/* cards */
.cards { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 680px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1020px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: flex; flex-direction: column; min-width: 0; }
.card[hidden], .listing[hidden] { display: none; }
.card-top { border-color: var(--gold); box-shadow: inset 0 3px 0 var(--gold); }
.card-demo { border-style: dashed; }
.card h3 { margin-bottom: 6px; }
.tag { display: inline-block; font: 600 .72rem/1.3 var(--sans); padding: 2px 8px; border-radius: 6px; vertical-align: middle; }
.tag-top { color: var(--gold); padding: 0; margin: 0 0 6px; font-size: .8rem; }
.tag-demo { background: var(--grey-bg); color: var(--grey); }
.rating { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.score { font: 700 1.3rem/1 var(--serif); font-variant-numeric: tabular-nums; }
.stars { --v: 0; width: 5.2em; height: 1em; background: linear-gradient(90deg, var(--gold) calc(var(--v) / 5 * 100%), var(--line) 0); -webkit-mask: repeat-x left / 1.04em url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l3 6.6 7 .8-5.2 4.8 1.5 7L12 17.6 5.700 21.2l1.5-7L2 9.400l7-.8z'/%3E%3C/svg%3E"); mask: repeat-x left / 1.04em url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l3 6.6 7 .8-5.2 4.8 1.5 7L12 17.6 5.700 21.2l1.5-7L2 9.400l7-.8z'/%3E%3C/svg%3E"); }
.card dl { margin: 0 0 10px; display: grid; gap: 6px; font-size: .93rem; }
.card dl div { display: grid; grid-template-columns: minmax(0, 9.5em) minmax(0, 1fr); gap: 8px; }
.card dt { color: var(--muted); }
.card dd { margin: 0; }
.lic { display: inline-block; border: 1px solid var(--line); border-radius: 6px; padding: 0 6px; font-size: .85rem; }
.tbc { color: var(--muted); }
.src, .placeholder { font-size: .82rem; color: var(--muted); }
.cta-row { margin: auto 0 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 6px; }
.cta { display: inline-block; background: var(--brand); color: var(--brand-ink); font-weight: 700; text-decoration: none; padding: 10px 16px; border-radius: 8px; min-height: 44px; }
.cta:hover { filter: brightness(1.1); }
.cta.is-disabled { background: var(--grey-bg); color: var(--grey); cursor: not-allowed; font-weight: 500; }
.ad { font-size: .75rem; color: var(--muted); }

/* misc */
details { border-bottom: 1px solid var(--line); padding: 10px 0; }
#faq summary { cursor: pointer; font-weight: 600; }
#faq details p { margin: 8px 0 0; }
.lang { border: 0; padding: 0; }
.eeat, .disclaimer { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.disclaimer { border-left: 4px solid var(--no); }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 600px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; display: grid; gap: 6px; justify-items: start; min-width: 0; }
.tile-main { font-family: var(--serif); font-size: 1.1rem; text-decoration: none; }
.tile-main:hover { text-decoration: underline; }
.tile-reg { font-size: .82rem; color: var(--muted); }
.tile-langs { font-size: .78rem; display: flex; gap: 8px; }
.prose h2 { margin-top: 1.4em; }
code { font-size: .9em; background: var(--grey-bg); padding: 1px 5px; border-radius: 4px; }
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 24px 0; font-size: .9rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 12px 0; }
.age { color: var(--muted); max-width: 80ch; }
.age-badge { display: inline-block; border: 2px solid var(--no); color: var(--no); font-weight: 800; border-radius: 999px; padding: 0 7px; margin-right: 6px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* payments */
.facts-4 { }
@media (min-width: 700px) { .facts.facts-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.tbl { border-collapse: collapse; width: 100%; font-size: .93rem; }
.tbl th, .tbl td { text-align: left; vertical-align: top; padding: 9px 12px; border-bottom: 1px solid var(--line); min-width: 8em; }
.tbl thead th { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); white-space: nowrap; }
.tbl tbody tr:last-child th, .tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody th { font-weight: 600; }
.links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.links li a { display: inline-block; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 12px; text-decoration: none; }
.links li a:hover { border-color: var(--brand); }
.links-big { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
@media (min-width: 680px) { .links-big { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.links-big li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; display: grid; gap: 4px; }
.links-big li a { border: 0; padding: 0; background: none; font: 600 1.05rem var(--serif); }
.pill { display: inline-block; font-size: .8rem; font-weight: 600; padding: 2px 9px; border-radius: 999px; text-decoration: none; }
.pill-ok { background: var(--ok-bg); color: var(--ok); } .pill-tbc { background: var(--grey-bg); color: var(--grey); font-weight: 500; }
.empty { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--r); padding: 12px 14px; color: var(--muted); }
