/* ==========================================================================
   Kaloritaulukko — casino comparison (Geo 1: Amber / Inter / left)
   Ported verbatim from design_handoff_casino_geo1_amber. Dark = default;
   light theme via [data-theme="light"]. Tokens drive every surface.
   ========================================================================== */
:root{
  --accent:#f59e0b; --accentDark:#d97706; --premium:#f5b301;
  --font:'Inter',system-ui,-apple-system,sans-serif;
  --align:left;
  /* dark theme tokens (default) */
  --bg:#09090b; --bgGlass:rgba(9,9,11,0.82); --surface:#18181b; --surface2:#27272a;
  --logoBg:#0f0f12; --border:#27272a; --text:#fafafa; --muted:#a1a1aa; --rankColor:#52525b;
}
[data-theme="light"]{
  --bg:#f4f4f5; --bgGlass:rgba(244,244,245,0.82); --surface:#ffffff; --surface2:#f4f4f5;
  --logoBg:#fafafa; --border:#e4e4e7; --text:#18181b; --muted:#52525b; --rankColor:#a1a1aa;
}
*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{margin:0; min-height:100vh; background:var(--bg); color:var(--text);
  font-family:var(--font); -webkit-font-smoothing:antialiased; text-align:var(--align);}
a{color:inherit;}
img{max-width:100%;}
.wrap{max-width:1180px; margin:0 auto; padding:0 20px;}
@keyframes phGlow{0%,100%{box-shadow:0 0 0 1.5px var(--accent),0 0 30px -6px var(--accent);}
  50%{box-shadow:0 0 0 1.5px var(--accent),0 0 46px 0px var(--accent);}}

/* ---------- HEADER ---------- */
.hdr{position:sticky; top:0; z-index:40; background:var(--bgGlass);
  backdrop-filter:saturate(160%) blur(12px); -webkit-backdrop-filter:saturate(160%) blur(12px);
  border-bottom:1px solid var(--border);}
.hdr-in{height:66px; display:flex; align-items:center; gap:20px;}
.brand{display:flex; align-items:center; gap:9px; text-decoration:none; color:inherit; flex-shrink:0;}
.brand svg{display:block;}
.brand-name{font-weight:800; font-size:18px; letter-spacing:-0.02em;}
.brand-name b{color:var(--accent); font-weight:800;}
.hdr-nav{display:none; align-items:center; gap:26px; margin-left:8px;}
.hdr-nav a{text-decoration:none; color:var(--muted); font-size:14.5px; font-weight:600;}
.hdr-nav a:hover{color:var(--text);}
.hdr-right{margin-left:auto; display:flex; align-items:center; gap:10px;}
.search{display:flex; align-items:center; gap:7px; background:var(--surface2);
  border:1px solid var(--border); border-radius:9px; padding:8px 11px; color:var(--muted);}
.search span{font-size:13.5px;}
.tbtn{flex-shrink:0; height:40px; padding:0 16px; border-radius:99px; cursor:pointer;
  display:inline-flex; align-items:center; gap:8px; font-family:inherit; font-size:14px; font-weight:700;
  color:#1a1205; border:1px solid transparent;
  background:linear-gradient(135deg,var(--accent),var(--accentDark));
  box-shadow:0 4px 14px -4px var(--accent); transition:filter .15s, transform .15s;}
.tbtn:hover{filter:brightness(1.07); transform:translateY(-1px);}
.tbtn:focus-visible{outline:2px solid var(--text); outline-offset:2px;}
.tbtn-ico{font-size:17px; line-height:1;}
.tbtn-lbl{letter-spacing:0.01em;}
@media(max-width:560px){.tbtn{padding:0 12px;} .tbtn-lbl{display:none;}}
@media(min-width:860px){.hdr-nav{display:flex;}}

/* ---------- HERO + E-E-A-T ---------- */
.hero{padding:46px 0 30px;}
.hero-grid{display:grid; gap:34px; align-items:center; grid-template-columns:1fr;}
@media(min-width:900px){.hero-grid{grid-template-columns:minmax(0,1fr) 300px;}}
.eyebrow{display:inline-flex; align-items:center; gap:7px;
  background:color-mix(in srgb, var(--accent) 14%, transparent); color:var(--accent);
  border:1px solid color-mix(in srgb, var(--accent) 36%, transparent);
  padding:6px 12px; border-radius:99px; font-size:12.5px; font-weight:700;
  letter-spacing:0.02em; margin-bottom:18px;}
.eyebrow i{width:7px; height:7px; border-radius:99px; background:var(--accent);}
.hero h1{font-size:clamp(32px,5vw,52px); line-height:1.04; letter-spacing:-0.03em;
  font-weight:900; margin:0 0 16px;}
.hero h1 span{color:var(--accent);}
.hero-sub{font-size:clamp(15px,1.6vw,18px); line-height:1.55; color:var(--muted); margin:0; max-width:60ch;}
.author-card{background:var(--surface); border:1px solid var(--border); border-radius:16px; padding:18px; text-align:left;}
.author-top{display:flex; align-items:center; gap:13px;}
.author-av{width:52px; height:52px; border-radius:99px; flex-shrink:0; object-fit:cover;
  border:1px solid var(--border); background:var(--surface2);}
.author-nm{display:flex; align-items:center; gap:7px;}
.author-nm b{font-weight:700; font-size:15px;}
.verified{display:inline-flex; align-items:center; gap:3px;
  background:color-mix(in srgb, var(--accent) 16%, transparent); color:var(--accent);
  padding:2px 7px; border-radius:99px; font-size:10.5px; font-weight:800;}
.author-role{font-size:12.5px; color:var(--muted); margin-top:2px;}
.author-div{height:1px; background:var(--border); margin:15px 0;}
.author-upd{display:flex; align-items:center; justify-content:space-between; gap:10px;
  font-size:12.5px; color:var(--muted);}
.author-upd .lbl{display:inline-flex; align-items:center; gap:6px;}
.author-upd .val{color:var(--text); font-weight:700;}

/* ---------- STICKY FILTERS ---------- */
.filters{position:sticky; top:66px; z-index:30; background:var(--bgGlass);
  backdrop-filter:saturate(160%) blur(12px); -webkit-backdrop-filter:saturate(160%) blur(12px);
  margin:6px 0 22px; padding:12px 0; border-top:1px solid var(--border); border-bottom:1px solid var(--border);}
.filters-row{display:flex; gap:9px; overflow-x:auto; padding-bottom:2px; scrollbar-width:none;}
.filters-row::-webkit-scrollbar{display:none;}
.fpill{white-space:nowrap; cursor:pointer; font-family:inherit; padding:9px 16px;
  border-radius:99px; font-size:13.5px; font-weight:700; background:var(--surface2);
  color:var(--muted); border:1px solid var(--border); transition:background .15s,color .15s,border-color .15s;}
.fpill:hover{border-color:var(--accent);}
.fpill.active{background:var(--accent); color:#1a1205; border-color:var(--accent);}

/* ---------- COMPARISON STACK ---------- */
.stack{display:flex; flex-direction:column; gap:14px;}
.cmp-card{position:relative; display:grid; gap:16px; background:var(--surface);
  border-radius:16px; padding:18px; border:1px solid var(--border); grid-template-columns:1fr;}
.cmp-card.featured{border:1.5px solid var(--accent); animation:phGlow 3.4s ease-in-out infinite; padding-top:24px;}
@media(min-width:940px){.cmp-card{grid-template-columns:46px 144px minmax(0,1fr) 160px 132px 168px; align-items:center;}}
.ribbon{position:absolute; top:-1px; left:-1px;
  background:linear-gradient(135deg,var(--premium),#e0930a); color:#1a1205; font-size:11px;
  font-weight:900; letter-spacing:0.04em; padding:5px 13px 5px 12px; border-radius:16px 0 14px 0;}
.rank{display:flex; align-items:center; justify-content:center; padding-top:6px;}
.rank span{font-size:26px; font-weight:900; color:var(--rankColor); font-variant-numeric:tabular-nums;}
.logo-cell{height:74px; border-radius:11px; background:#ffffff; border:1px solid var(--border);
  display:flex; align-items:center; justify-content:center; padding:6px; overflow:hidden;}
.logo-cell img{max-height:62px; max-width:138px; width:auto; height:auto; object-fit:contain;}
.id-cell{text-align:left; min-width:0; display:flex; flex-direction:column; gap:7px; padding:4px 0;}
.rating{display:flex; align-items:center; gap:8px; flex-wrap:wrap;}
.rating .stars{display:inline-flex; align-items:center; gap:4px; color:var(--premium); font-weight:800; font-size:14px;}
.rating .stars b{font-weight:800;}
.rating .of{color:var(--muted); font-weight:600;}
.rating .votes{font-size:12px; color:var(--muted);}
.badges{display:flex; gap:6px; flex-wrap:wrap;}
.badge{font-size:11px; font-weight:600; color:var(--muted); background:var(--surface2);
  border:1px solid var(--border); padding:3px 8px; border-radius:6px;}
.bonus-cell{text-align:left; padding:4px 0;}
.bonus-cell .ov{font-size:10.5px; font-weight:700; letter-spacing:0.06em; color:var(--muted);
  text-transform:uppercase; margin-bottom:2px;}
.bonus-cell .val{font-size:21px; font-weight:900; line-height:1.05; letter-spacing:-0.02em; color:var(--text);}
.terms-cell{text-align:left; font-size:12px; color:var(--muted); padding:4px 0; line-height:1.5;}
.terms-cell strong{color:var(--text); font-weight:700;}
.cta-cell{display:flex; flex-direction:column; gap:7px; padding:4px 0;}
.cta{display:flex; align-items:center; justify-content:center; gap:7px; height:48px; border-radius:11px;
  background:linear-gradient(135deg,var(--accent),var(--accentDark)); color:#1a1205; font-weight:800;
  font-size:15px; text-decoration:none; box-shadow:0 6px 18px -6px var(--accent); transition:filter .15s,transform .15s;}
.cta:hover{filter:brightness(1.06); transform:translateY(-1px);}
.terms-toggle{background:none; border:none; cursor:pointer; color:var(--muted); font-size:11.5px;
  font-weight:600; display:flex; align-items:center; justify-content:center; gap:4px; padding:2px; font-family:inherit;}
.terms-toggle svg{transition:transform .2s;}
.terms-toggle[aria-expanded="true"] svg{transform:rotate(180deg);}
.terms-panel{grid-column:1/-1; text-align:left; font-size:12px; line-height:1.6; color:var(--muted);
  background:var(--logoBg); border:1px solid var(--border); border-radius:10px; padding:13px 15px;
  margin-top:4px; display:none;}
.terms-panel.open{display:block;}
.terms-panel strong{color:var(--text);}

/* ---------- SEO CONTENT ---------- */
.seo{padding:46px 0 10px; text-align:left;}
.seo h2{font-size:clamp(24px,3.4vw,34px); font-weight:800; letter-spacing:-0.02em; margin:0 0 8px;}
.seo .lead{color:var(--muted); font-size:15.5px; line-height:1.65; margin:0 0 26px; max-width:75ch;}
.seo-cols{display:grid; gap:30px; grid-template-columns:1fr;}
@media(min-width:760px){.seo-cols{grid-template-columns:1fr 1fr;}}
.seo-cols h3{font-size:18px; font-weight:700; margin:0 0 8px;}
.seo-cols p{color:var(--muted); font-size:14.5px; line-height:1.68; margin:0 0 12px;}
.prose{max-width:75ch; margin:34px 0 0;}
.prose h2{font-size:clamp(22px,3vw,30px); font-weight:800; letter-spacing:-0.02em; margin:30px 0 12px;}
.prose h3{font-size:18px; font-weight:700; margin:22px 0 8px;}
.prose p{color:var(--muted); font-size:15px; line-height:1.72; margin:0 0 14px;}
.prose ul,.prose ol{color:var(--muted); font-size:15px; line-height:1.8; margin:0 0 16px 22px;}
.prose strong{color:var(--text);}
.prose a{color:var(--accent);}

/* ---------- contextual official logos in body ---------- */
.logostrip,.liclogos{margin:18px 0 22px; padding:0;}
.logostrip .ls-row,.liclogos .ls-row{display:flex; flex-wrap:wrap; gap:12px; align-items:center;}
.logostrip figcaption,.liclogos figcaption{margin-top:9px; font-size:12.5px; color:var(--muted);}
.pchip{display:inline-flex; align-items:center; justify-content:center; background:#fff;
  border:1px solid var(--border); border-radius:10px; padding:11px 16px; min-width:74px; height:48px;}
.pchip img{height:24px; width:auto; display:block;}
.lchip{display:inline-flex; align-items:center; justify-content:center; background:#fff;
  border:1px solid var(--border); border-radius:12px; padding:12px 18px; height:74px;}
.lchip img{max-height:50px; max-width:185px; width:auto; height:auto; display:block; object-fit:contain;}
.lchip--dark{background:#0f2138; border-color:#24405f;}

/* ---------- FAQ ---------- */
.faq{padding:34px 0 56px; text-align:left;}
.faq h2{font-size:clamp(22px,3vw,30px); font-weight:800; letter-spacing:-0.02em; margin:0 0 20px;}
.faq-list{display:flex; flex-direction:column; gap:10px;}
.faq-item{border:1px solid var(--border); border-radius:12px; background:var(--surface); overflow:hidden;}
.faq-q{width:100%; text-align:left; display:flex; align-items:center; justify-content:space-between; gap:14px;
  background:none; border:none; cursor:pointer; color:var(--text); font-size:15.5px; font-weight:700;
  padding:16px 18px; font-family:inherit;}
.faq-q svg{flex-shrink:0; color:var(--muted); transition:transform .2s;}
.faq-q[aria-expanded="true"] svg{transform:rotate(180deg);}
.faq-a{margin:0; padding:0 18px 17px; color:var(--muted); font-size:14px; line-height:1.65; display:none;}
.faq-a.open{display:block;}

/* ---------- FOOTER ---------- */
.ftr{border-top:1px solid var(--border); background:var(--surface);}
.ftr-in{padding:30px 20px; max-width:1180px; margin:0 auto; text-align:left;}
.ftr-brand{display:flex; align-items:center; gap:9px; margin-bottom:12px;}
.ftr-brand .bn{font-weight:800; font-size:16px;}
.ftr-nav{display:flex; flex-wrap:wrap; gap:8px 18px; margin:0 0 14px;}
.ftr-nav a{color:var(--muted); font-size:13px; text-decoration:none;}
.ftr-nav a:hover{color:var(--accent);}
.ftr-disc{color:var(--muted); font-size:12.5px; line-height:1.6; margin:0 0 6px; max-width:80ch;}
.ftr-disc a{color:var(--accent);}
.ftr-cc{color:var(--muted); font-size:12px; margin:0;}

/* ---------- COOKIE CONSENT ---------- */
.cc{position:fixed; left:0; right:0; bottom:0; z-index:60; background:var(--surface);
  border-top:1px solid var(--border); box-shadow:0 -10px 30px -12px rgba(0,0,0,.5);
  transform:translateY(110%); transition:transform .4s cubic-bezier(0.16,1,0.3,1);}
.cc.show{transform:translateY(0);}
.cc-in{max-width:1180px; margin:0 auto; padding:18px 20px; display:flex; flex-wrap:wrap;
  align-items:center; gap:14px;}
.cc-txt{flex:1 1 320px; font-size:13px; color:var(--muted); line-height:1.55;}
.cc-txt b{color:var(--text);}
.cc-txt a{color:var(--accent);}
.cc-btns{display:flex; gap:9px; flex-wrap:wrap;}
.cc-btn{cursor:pointer; font-family:inherit; font-size:13px; font-weight:700; padding:10px 16px;
  border-radius:9px; border:1px solid var(--border); background:var(--surface2); color:var(--text);}
.cc-btn:hover{border-color:var(--accent);}
.cc-btn.primary{background:linear-gradient(135deg,var(--accent),var(--accentDark)); color:#1a1205; border-color:transparent;}
.cc-prefs{display:none; flex-basis:100%; border-top:1px solid var(--border); margin-top:6px; padding-top:14px;}
.cc-prefs.show{display:block;}
.cc-pref{display:flex; align-items:flex-start; gap:10px; margin-bottom:10px; font-size:13px; color:var(--muted);}
.cc-pref b{color:var(--text); display:block;}
.cc-pref input{margin-top:3px;}

/* ---------- legal / generic pages ---------- */
.page{padding:40px 0 56px;}
.page h1{font-size:clamp(28px,4vw,42px); font-weight:900; letter-spacing:-0.02em; margin:0 0 10px;}
.page .updated{color:var(--muted); font-size:13px; margin:0 0 24px;}
.tbl{width:100%; border-collapse:collapse; margin:16px 0; font-size:13.5px;}
.tbl th,.tbl td{border:1px solid var(--border); padding:10px 12px; text-align:left; color:var(--muted);}
.tbl th{background:var(--surface2); color:var(--text); font-weight:700;}
.cform{display:grid; gap:14px; max-width:520px; margin:18px 0;}
.cform label{font-size:13px; font-weight:600; color:var(--text); display:block; margin-bottom:5px;}
.cform input,.cform textarea{width:100%; background:var(--surface2); border:1px solid var(--border);
  border-radius:9px; padding:11px 13px; color:var(--text); font-family:inherit; font-size:14px;}
.cform button{justify-self:start;}
