/* ============================================
   CM Casino — Slot & Live Casino Rehberi
   Dark + Emerald, .cm- prefix
   ============================================ */

@font-face {
  font-family: 'CMSans';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fontlar/tipo-ana.woff2') format('woff2-variations'),
       url('../fontlar/tipo-ana.woff2') format('woff2');
}
@font-face {
  font-family: 'CMSans';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fontlar/tipo-italik.woff2') format('woff2-variations'),
       url('../fontlar/tipo-italik.woff2') format('woff2');
}
@font-face {
  font-family: 'CMSerif';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fontlar/tipo-serif.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Palette — Dark slate + Emerald */
:root {
  --cm-bg: #0F172A;
  --cm-bg-elevated: #1E293B;
  --cm-bg-card: #1E293B;
  --cm-bg-soft: #1A2236;
  --cm-text: #F1F5F9;
  --cm-text-mute: #94A3B8;
  --cm-text-dim: #64748B;
  --cm-border: #334155;
  --cm-border-soft: #1E293B;
  --cm-accent: #10B981;
  --cm-accent-bright: #34D399;
  --cm-accent-dim: #047857;
  --cm-accent-soft: rgba(16, 185, 129, 0.12);
  --cm-success: #34D399;
  --cm-warn: #FBBF24;
  --cm-danger: #F87171;
  --cm-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  --cm-shadow-glow: 0 0 30px rgba(16, 185, 129, 0.18);

  --cm-font-ui: 'CMSans', system-ui, sans-serif;
  --cm-font-serif: 'CMSerif', Georgia, serif;
  --cm-radius: 12px;
  --cm-radius-pill: 999px;
  --cm-radius-tile: 18px;
  --cm-width-max: 1240px;
  --cm-width-narrow: 740px;
}

/* Skip-to-main */
.cm-bypass {
  position: absolute;
  top: -100px; left: 12px;
  background: var(--cm-accent);
  color: var(--cm-bg) !important;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  z-index: 200;
  text-decoration: none;
}
.cm-bypass:focus { top: 12px; outline: 2px solid var(--cm-accent-bright); outline-offset: 2px; }

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--cm-bg); }
body {
  margin: 0;
  font-family: var(--cm-font-ui);
  font-size: 17px;
  line-height: 1.65;
  color: var(--cm-text);
  background: var(--cm-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--cm-accent-bright); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--cm-accent); }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--cm-font-serif);
  font-weight: 700;
  line-height: 1.2;
  color: var(--cm-text);
  margin: 0 0 .6em;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); margin-top: 2.2em; }
h3 { font-size: clamp(1.15rem, 2.4vw, 1.4rem); margin-top: 1.8em; color: var(--cm-accent-bright); }
h4 { font-size: 1.1rem; margin-top: 1.4em; }
p { margin: 0 0 1.2em; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.5em; }
li { margin-bottom: 0.4em; }
strong { color: var(--cm-accent-bright); font-weight: 700; }

.cm-shell { max-width: var(--cm-width-max); margin: 0 auto; padding: 0 24px; }
.cm-shell--narrow { max-width: var(--cm-width-narrow); margin: 0 auto; padding: 0 24px; }

/* ============================================
   Top bar (logo center, hamburger left — different)
   ============================================ */
.cm-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--cm-border);
}
.cm-topbar__row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px 24px;
  max-width: var(--cm-width-max);
  margin: 0 auto;
}
.cm-burger {
  background: transparent;
  border: 1px solid var(--cm-border);
  border-radius: 10px;
  padding: 8px;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color .15s ease, background .15s ease;
}
.cm-burger:hover { border-color: var(--cm-accent); background: var(--cm-accent-soft); }
.cm-burger svg { width: 22px; height: 22px; color: var(--cm-text); }
.cm-burger .cm-burger__close { display: none; }
.cm-topbar.is-active .cm-burger .cm-burger__bars { display: none; }
.cm-topbar.is-active .cm-burger .cm-burger__close { display: block; }
.cm-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.cm-brand img { height: 65px; width: auto; }
.cm-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: var(--cm-accent);
  color: var(--cm-bg) !important;
  border-radius: var(--cm-radius-pill);
  font-weight: 700;
  font-size: 14px;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 0 0 0 var(--cm-accent);
}
.cm-action:hover {
  background: var(--cm-accent-bright);
  transform: translateY(-2px);
  box-shadow: var(--cm-shadow-glow);
  color: var(--cm-bg) !important;
}

/* Drawer menu (slides from top, different than ActuFax dropdown) */
.cm-drawer {
  display: none;
  position: sticky;
  top: 70px;
  z-index: 49;
  background: var(--cm-bg-elevated);
  border-bottom: 1px solid var(--cm-border);
}
.cm-topbar.is-active + .cm-drawer { display: block; }
.cm-drawer__list {
  max-width: var(--cm-width-max);
  margin: 0 auto;
  padding: 14px 24px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
.cm-drawer__list a {
  padding: 12px 14px;
  border-radius: var(--cm-radius);
  background: var(--cm-bg-soft);
  color: var(--cm-text);
  font-weight: 600;
  font-size: 14px;
  text-align: center;
  transition: background .15s ease, color .15s ease;
}
.cm-drawer__list a:hover {
  background: var(--cm-accent-soft);
  color: var(--cm-accent-bright);
}

/* ============================================
   Hero / intro panel
   ============================================ */
.cm-panel {
  padding: 80px 0 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 900px 500px at 50% 0%, rgba(16, 185, 129, 0.10), transparent 60%),
    linear-gradient(180deg, var(--cm-bg) 0%, var(--cm-bg-soft) 100%);
}
.cm-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.03) 1px, transparent 0);
  background-size: 28px 28px;
  pointer-events: none;
}
.cm-panel > * { position: relative; }
.cm-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: var(--cm-accent-soft);
  color: var(--cm-accent-bright);
  border: 1px solid var(--cm-accent-dim);
  border-radius: var(--cm-radius-pill);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 22px;
}
.cm-tag::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--cm-accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--cm-accent);
}
.cm-panel h1 {
  margin: 0 auto 18px;
  max-width: 900px;
  background: linear-gradient(180deg, #F1F5F9 0%, #94A3B8 110%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.cm-panel__lead {
  font-family: var(--cm-font-serif);
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.55;
  color: var(--cm-text-mute);
  max-width: 760px;
  margin: 0 auto;
}

/* ============================================
   Trust badges row
   ============================================ */
.cm-vouchers {
  padding: 28px 0;
  background: var(--cm-bg-elevated);
  border-bottom: 1px solid var(--cm-border-soft);
}
.cm-vouchers__row {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cm-voucher {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--cm-text-mute);
}
.cm-voucher__icon {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--cm-accent-soft);
  border: 1px solid var(--cm-accent-dim);
  border-radius: 8px;
  color: var(--cm-accent-bright);
}
.cm-voucher__icon svg { width: 16px; height: 16px; }

/* ============================================
   Brand strip
   ============================================ */
.cm-brands {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
  padding: 40px 24px;
  max-width: var(--cm-width-max);
  margin: 0 auto;
  border-bottom: 1px solid var(--cm-border-soft);
}
.cm-brands a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 4px 8px;
  border-radius: 8px;
  transition: transform .25s ease, filter .25s ease;
  filter: grayscale(50%) brightness(0.85);
  background: rgba(255, 255, 255, 0.04);
}
.cm-brands a:hover {
  transform: translateY(-3px);
  filter: grayscale(0%) brightness(1);
  background: rgba(16, 185, 129, 0.08);
}
.cm-brands img { max-height: 36px; width: auto; }

/* ============================================
   Lane (section wrapper)
   ============================================ */
.cm-lane { padding: 70px 0; }
.cm-lane--depth { background: var(--cm-bg-soft); }
.cm-lane__head {
  max-width: var(--cm-width-max);
  margin: 0 auto 38px;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  flex-wrap: wrap;
  gap: 16px;
}
.cm-lane__lab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--cm-font-ui);
  font-size: 11px;
  font-weight: 800;
  color: var(--cm-accent-bright);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 12px;
}
.cm-lane__lab::before {
  content: '';
  width: 24px; height: 2px;
  background: var(--cm-accent);
  display: inline-block;
}
.cm-lane__head h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--cm-text);
}
.cm-lane__more {
  font-weight: 700;
  color: var(--cm-accent-bright);
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap .2s ease;
}
.cm-lane__more:hover { gap: 12px; color: var(--cm-accent); }

/* ============================================
   Tiles (cards)
   ============================================ */
.cm-deck {
  max-width: var(--cm-width-max);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  gap: 24px;
  perspective: 1200px;
}
.cm-deck--3 { grid-template-columns: repeat(3, 1fr); }
.cm-deck--4 { grid-template-columns: repeat(4, 1fr); }
.cm-deck--2 { grid-template-columns: repeat(2, 1fr); }

.cm-tile {
  background: var(--cm-bg-card);
  border: 1px solid var(--cm-border);
  border-radius: var(--cm-radius-tile);
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform .35s cubic-bezier(.4,0,.2,1), border-color .25s ease, box-shadow .25s ease;
}
.cm-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0% 0%, rgba(16, 185, 129, 0.10), transparent 50%);
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}
.cm-tile:hover {
  transform: translateY(-5px);
  border-color: var(--cm-accent-dim);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), 0 0 30px rgba(16, 185, 129, 0.12);
}
.cm-tile:hover::before { opacity: 1; }
.cm-tile__chip {
  display: inline-block;
  padding: 3px 10px;
  background: var(--cm-accent-soft);
  color: var(--cm-accent-bright);
  border: 1px solid var(--cm-accent-dim);
  border-radius: var(--cm-radius-pill);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  align-self: flex-start;
}
.cm-tile__line {
  font-size: 12px;
  color: var(--cm-text-dim);
  margin-bottom: 10px;
}
.cm-tile__line strong { color: var(--cm-text-mute); font-weight: 500; }
.cm-tile h3 {
  font-size: 1.15rem;
  margin: 0 0 10px;
  line-height: 1.3;
  color: var(--cm-text);
}
.cm-tile h3 a { color: var(--cm-text); }
.cm-tile h3 a:hover { color: var(--cm-accent-bright); }
.cm-tile__teaser {
  color: var(--cm-text-mute);
  font-size: 14px;
  margin: 0 0 14px;
  flex: 1;
  line-height: 1.55;
}
.cm-tile__go {
  font-size: 13px;
  font-weight: 700;
  color: var(--cm-accent-bright);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap .2s ease;
}
.cm-tile:hover .cm-tile__go { gap: 10px; }

/* ============================================
   Article (long-form)
   ============================================ */
.cm-piece {
  max-width: var(--cm-width-narrow);
  margin: 0 auto;
  padding: 50px 24px 80px;
}
.cm-piece__crumb {
  font-size: 13px;
  color: var(--cm-text-dim);
  margin-bottom: 20px;
}
.cm-piece__crumb a { color: var(--cm-text-mute); }
.cm-piece__byline {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--cm-text-dim);
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--cm-border-soft);
}
.cm-piece__byline a { color: var(--cm-accent-bright); font-weight: 600; }
.cm-piece h1 { margin-bottom: 20px; }
.cm-piece__opening {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--cm-text-mute);
  font-family: var(--cm-font-serif);
  margin-bottom: 30px;
}
.cm-piece p, .cm-piece ul, .cm-piece ol { font-size: 17px; line-height: 1.7; }
.cm-piece a:not(.cm-button) {
  color: var(--cm-accent-bright);
  border-bottom: 1px dotted var(--cm-accent-dim);
}
.cm-piece a:not(.cm-button):hover { color: var(--cm-accent); border-color: var(--cm-accent); }
.cm-piece h2 { color: var(--cm-text); }
.cm-piece h2::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 12px;
  background: var(--cm-accent);
  border-radius: 4px;
  vertical-align: middle;
  margin-top: -3px;
}
.cm-piece h3 { color: var(--cm-accent-bright); }

/* TOC */
.cm-toc {
  background: var(--cm-bg-soft);
  border: 1px solid var(--cm-border);
  border-left: 4px solid var(--cm-accent);
  border-radius: var(--cm-radius);
  padding: 20px 24px;
  margin: 28px 0;
}
.cm-toc__lab {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--cm-accent-bright);
  margin-bottom: 12px;
}
.cm-toc ol { margin: 0; padding-left: 24px; counter-reset: cmtoc; list-style: none; }
.cm-toc li { margin-bottom: 6px; counter-increment: cmtoc; position: relative; }
.cm-toc li::before {
  content: counter(cmtoc, decimal-leading-zero);
  position: absolute; left: -32px;
  color: var(--cm-accent-bright);
  font-weight: 700;
  font-size: 13px;
  font-family: var(--cm-font-ui);
}
.cm-toc a { color: var(--cm-text); font-size: 15px; border-bottom: none !important; }
.cm-toc a:hover { color: var(--cm-accent-bright); }

/* BLUF / summary */
.cm-keyfacts {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(16, 185, 129, 0.02));
  border: 1px solid var(--cm-accent-dim);
  border-radius: var(--cm-radius);
  padding: 24px 28px;
  margin: 28px 0;
}
.cm-keyfacts__lab {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--cm-accent-bright);
  margin-bottom: 16px;
}
.cm-keyfacts__lab::before {
  content: '◆';
  color: var(--cm-accent);
}
.cm-keyfacts ul { margin: 0; padding-left: 20px; }
.cm-keyfacts li { margin-bottom: 8px; font-size: 16px; color: var(--cm-text); }
.cm-keyfacts li strong { color: var(--cm-accent-bright); }

/* Tables */
.cm-grid-wrap { overflow-x: auto; margin: 24px 0; border: 1px solid var(--cm-border); border-radius: var(--cm-radius); background: var(--cm-bg-card); }
.cm-grid {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.cm-grid th, .cm-grid td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--cm-border-soft);
  color: var(--cm-text);
}
.cm-grid th {
  background: var(--cm-bg-soft);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cm-accent-bright);
}
.cm-grid tr:last-child td { border-bottom: 0; }
.cm-grid tr.cm-first-place { background: rgba(16, 185, 129, 0.06); }
.cm-grid tr.cm-first-place td:first-child::before {
  content: '◆ ';
  color: var(--cm-accent-bright);
}

/* Quote */
.cm-saying {
  margin: 36px 0;
  padding: 30px 36px;
  background: var(--cm-bg-soft);
  border-left: 4px solid var(--cm-accent);
  border-radius: var(--cm-radius);
  font-family: var(--cm-font-serif);
  font-style: italic;
  font-size: 1.18rem;
  line-height: 1.55;
  color: var(--cm-text);
}
.cm-saying cite {
  display: block;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  font-style: normal;
  font-family: var(--cm-font-ui);
  color: var(--cm-text-mute);
}

/* FAQ */
.cm-faq { margin: 32px 0; }
.cm-faq details {
  background: var(--cm-bg-card);
  border: 1px solid var(--cm-border);
  border-radius: var(--cm-radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color .2s ease;
}
.cm-faq details[open] { border-color: var(--cm-accent-dim); }
.cm-faq summary {
  padding: 18px 22px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--cm-text);
}
.cm-faq summary::-webkit-details-marker { display: none; }
.cm-faq summary::after {
  content: '+';
  font-size: 24px;
  color: var(--cm-accent-bright);
  transition: transform .25s ease;
  font-weight: 300;
}
.cm-faq details[open] summary::after { transform: rotate(45deg); }
.cm-faq__answer { padding: 0 22px 22px; color: var(--cm-text-mute); }

/* Author bio */
.cm-bio {
  display: flex;
  gap: 22px;
  padding: 28px;
  background: var(--cm-bg-soft);
  border: 1px solid var(--cm-border);
  border-radius: var(--cm-radius-tile);
  margin: 40px 0;
  align-items: flex-start;
}
.cm-bio__pic {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cm-accent), var(--cm-accent-dim));
  flex-shrink: 0;
  overflow: hidden;
}
.cm-bio__pic img { width: 100%; height: 100%; object-fit: cover; }
.cm-bio__data h3 { margin: 0 0 6px; font-size: 1.15rem; color: var(--cm-text); }
.cm-bio__role { color: var(--cm-accent-bright); font-size: 13px; font-weight: 600; margin: 0 0 10px; text-transform: uppercase; letter-spacing: 0.08em; }
.cm-bio__about { font-size: 14px; color: var(--cm-text-mute); margin: 0 0 12px; line-height: 1.6; }
.cm-bio__creds { display: flex; gap: 8px; flex-wrap: wrap; }
.cm-bio__creds span {
  font-size: 11px;
  padding: 4px 10px;
  background: var(--cm-bg-card);
  border: 1px solid var(--cm-border);
  border-radius: var(--cm-radius-pill);
  color: var(--cm-text-mute);
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* Footer */
.cm-bottom {
  background: #0A1020;
  color: var(--cm-text-mute);
  padding: 56px 0 28px;
  margin-top: 60px;
  border-top: 1px solid var(--cm-border);
}
.cm-bottom h4 {
  color: var(--cm-accent-bright);
  font-family: var(--cm-font-ui);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}
.cm-bottom a { color: var(--cm-text-mute); font-size: 14px; }
.cm-bottom a:hover { color: var(--cm-accent-bright); }
.cm-bottom__cols {
  max-width: var(--cm-width-max);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 38px;
}
.cm-bottom__cols ul { list-style: none; padding: 0; margin: 0; }
.cm-bottom__cols li { margin-bottom: 8px; }
.cm-bottom__base {
  max-width: var(--cm-width-max);
  margin: 0 auto;
  padding: 22px 24px 0;
  border-top: 1px solid #1E293B;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
}
.cm-warning {
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: var(--cm-radius);
  padding: 16px 22px;
  font-size: 13px;
  color: #FCD34D;
  line-height: 1.55;
  max-width: var(--cm-width-max);
  margin: 0 auto 28px;
}
.cm-warning strong { color: #FBBF24; }
.cm-warning a { color: #FBBF24; border-bottom: 1px dotted #FBBF24; }

/* Responsible gambling pills */
.cm-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--cm-radius-pill);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.cm-pill--alert { background: rgba(248, 113, 113, 0.15); color: #FCA5A5; border: 1px solid rgba(248, 113, 113, 0.3); }
.cm-pill--warn { background: rgba(251, 191, 36, 0.15); color: #FCD34D; border: 1px solid rgba(251, 191, 36, 0.3); }

/* Age gate + cookies (override .af- with .cm-) */
.cm-age-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.cm-age-gate__panel {
  background: var(--cm-bg-elevated);
  border: 1px solid var(--cm-border);
  max-width: 480px;
  width: 100%;
  border-radius: var(--cm-radius-tile);
  padding: 36px 32px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0,0,0,0.6);
}
.cm-age-gate__shield {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--cm-accent);
  color: var(--cm-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--cm-font-serif);
  font-size: 28px;
  font-weight: 800;
  margin: 0 auto 22px;
}
.cm-age-gate__panel h2 { margin: 0 0 14px; font-size: 1.5rem; color: var(--cm-text); }
.cm-age-gate__panel p { color: var(--cm-text-mute); font-size: 15px; line-height: 1.5; margin: 0 0 24px; }
.cm-age-gate__buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cm-age-gate__yes, .cm-age-gate__no {
  padding: 12px 28px;
  border-radius: var(--cm-radius-pill);
  font-weight: 700;
  font-size: 15px;
  border: 0;
  cursor: pointer;
  transition: background .2s ease, transform .1s ease;
}
.cm-age-gate__yes { background: var(--cm-accent); color: var(--cm-bg); }
.cm-age-gate__yes:hover { background: var(--cm-accent-bright); }
.cm-age-gate__no { background: var(--cm-bg-card); color: var(--cm-text); border: 1px solid var(--cm-border); }
.cm-age-gate__no:hover { background: var(--cm-bg-soft); }
.cm-age-gate__note { font-size: 12px; color: var(--cm-text-dim); margin-top: 18px; line-height: 1.4; }
.cm-age-gate__note a { color: var(--cm-accent-bright); text-decoration: underline; }

.cm-cookie {
  position: fixed;
  bottom: 16px; left: 16px; right: 16px;
  max-width: 540px;
  margin: 0 auto;
  z-index: 90;
  background: var(--cm-bg-elevated);
  border: 1px solid var(--cm-accent-dim);
  border-radius: var(--cm-radius-tile);
  padding: 22px 24px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.5);
  display: none;
  font-size: 14px;
  line-height: 1.5;
  color: var(--cm-text);
}
.cm-cookie.is-on { display: block; animation: cmCookieIn .35s ease; }
@keyframes cmCookieIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.cm-cookie h4 { margin: 0 0 8px; font-size: 15px; font-family: var(--cm-font-ui); color: var(--cm-accent-bright); }
.cm-cookie p { margin: 0 0 14px; color: var(--cm-text-mute); }
.cm-cookie a { color: var(--cm-accent-bright); text-decoration: underline; }
.cm-cookie__btns { display: flex; gap: 8px; flex-wrap: wrap; }
.cm-cookie__b {
  padding: 10px 18px;
  border-radius: var(--cm-radius-pill);
  font-size: 13px;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  transition: background .15s ease;
}
.cm-cookie__b--yes { background: var(--cm-accent); color: var(--cm-bg); }
.cm-cookie__b--yes:hover { background: var(--cm-accent-bright); }
.cm-cookie__b--no, .cm-cookie__b--custom {
  background: transparent;
  color: var(--cm-text);
  border: 1px solid var(--cm-border);
}
.cm-cookie__b--no:hover, .cm-cookie__b--custom:hover { border-color: var(--cm-accent); }

.cm-cookie-prefs {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: rgba(15, 23, 42, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.cm-cookie-prefs.is-open { display: flex; }
.cm-cookie-prefs__panel {
  background: var(--cm-bg-elevated);
  border: 1px solid var(--cm-border);
  max-width: 560px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  border-radius: var(--cm-radius-tile);
  padding: 28px 32px;
}
.cm-cookie-prefs__panel h3 { margin: 0 0 16px; color: var(--cm-text); }
.cm-cookie-row {
  border: 1px solid var(--cm-border);
  border-radius: var(--cm-radius);
  padding: 16px 18px;
  margin-bottom: 12px;
}
.cm-cookie-row__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.cm-cookie-row__head strong { color: var(--cm-text); }
.cm-cookie-row p { margin: 0; font-size: 13px; color: var(--cm-text-mute); }
.cm-switch {
  position: relative;
  width: 42px; height: 24px;
  background: var(--cm-border);
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s ease;
}
.cm-switch::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 20px; height: 20px;
  background: var(--cm-text);
  border-radius: 50%;
  transition: transform .2s ease;
}
.cm-switch.cm-on { background: var(--cm-accent); }
.cm-switch.cm-on::after { transform: translateX(18px); background: var(--cm-bg); }
.cm-switch.cm-locked { opacity: .55; cursor: not-allowed; }

/* Reveal animation */
.cm-veil { opacity: 0; transform: translateY(20px); transition: opacity .55s cubic-bezier(.4,0,.2,1), transform .55s cubic-bezier(.4,0,.2,1); }
.cm-veil.cm-shown { opacity: 1; transform: translateY(0); }
.cm-deck .cm-tile.cm-veil:nth-child(1) { transition-delay: 0ms; }
.cm-deck .cm-tile.cm-veil:nth-child(2) { transition-delay: 70ms; }
.cm-deck .cm-tile.cm-veil:nth-child(3) { transition-delay: 140ms; }
.cm-deck .cm-tile.cm-veil:nth-child(4) { transition-delay: 210ms; }
.cm-deck .cm-tile.cm-veil:nth-child(5) { transition-delay: 90ms; }
.cm-deck .cm-tile.cm-veil:nth-child(6) { transition-delay: 160ms; }

:focus-visible {
  outline: 2px solid var(--cm-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .cm-veil { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 1020px) {
  .cm-deck--3 { grid-template-columns: 1fr 1fr; }
  .cm-deck--4 { grid-template-columns: 1fr 1fr; }
  .cm-bottom__cols { grid-template-columns: 1fr 1fr; }
  .cm-drawer__list { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .cm-panel { padding: 50px 0 30px; }
  .cm-deck--3, .cm-deck--4, .cm-deck--2 { grid-template-columns: 1fr; }
  .cm-bottom__cols { grid-template-columns: 1fr; }
  .cm-drawer__list { grid-template-columns: 1fr 1fr; }
  .cm-topbar__row { padding: 12px 18px; }
  .cm-action { padding: 8px 14px; font-size: 13px; }
  .cm-bio { flex-direction: column; }
}

@media print {
  .cm-topbar, .cm-drawer, .cm-bottom, .cm-action, .cm-cookie, .cm-age-gate { display: none !important; }
  body { background: #fff; color: #000; }
}
