@font-face {
  font-family: "Onest";
  src: url("/assets/fonts/onest.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: optional;
}

@font-face {
  font-family: "Prata";
  src: url("/assets/fonts/prata.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: optional;
}

:root {
  --deep: #150a12;
  --panel: #241220;
  --panel-2: #31182a;
  --line: #46213a;
  --ink: #f6eef2;
  --muted: #b9a0ae;
  --accent: #46c8b2;
  --accent-2: #1f8f7f;
  --accent-dark: #10574d;
  --wine: #a4243d;
  --wine-2: #6e1226;
  --row-a: #fbf7f9;
  --row-b: #ffffff;
  --row-ink: #24121c;
  --row-line: #ece1e7;
  --cookie-h: 0px;
  --shell: 70%;
  --shell-max: 90%;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  width: var(--shell);
  max-width: var(--shell-max);
  min-height: 100vh;
  font-family: "Onest", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--deep);
  background-image: url("/assets/img/hero/hero-bg.avif");
  background-repeat: no-repeat;
  background-position: 50% 0;
  background-size: cover;
  background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Prata", Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: .2px;
  overflow-wrap: break-word;
  word-break: break-word;
  line-height: 1.3;
  margin: 0 0 10px;
}

a { color: inherit; overflow-wrap: break-word; word-break: break-word; }

img, svg { max-width: 100%; }

button, a, .burger, .chat-toggle {
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
}

button { text-transform: uppercase; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  margin: auto;
  padding-inline: 15px;
}

.ico { width: 1em; height: 1em; display: inline-block; vertical-align: -0.125em; fill: currentColor; }

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1002;
  width: var(--shell);
  max-width: var(--shell-max);
  margin: auto;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-inline: 15px;
  background: #100710;
  border-bottom: 1px solid var(--line);
}

.site-header .brand { display: block; width: 178px; height: 50px; }
.site-header .brand img { width: 100%; height: 100%; object-fit: contain; }

.nav ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav a {
  display: block;
  padding: 14px 12px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color .15s ease, color .15s ease;
}
.nav a:hover, .nav a.active { color: var(--accent); }

.burger {
  display: none;
  position: relative;
  z-index: 3;
  width: 40px; height: 30px;
  border: 0; padding: 0;
  background: none;
  cursor: pointer;
}
.burger span {
  position: absolute; left: 0;
  display: block; width: 100%; height: 3px;
  border-radius: 3px;
  background: var(--ink);
  transition: transform .25s ease, opacity .2s ease, top .25s ease;
}
.burger span:nth-child(1) { top: 3px; }
.burger span:nth-child(2) { top: 13px; }
.burger span:nth-child(3) { top: 23px; }
.burger.is-open span:nth-child(1) { top: 13px; transform: rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { top: 13px; transform: rotate(-45deg); }

.nav-mobile {
  position: fixed;
  top: 0; bottom: 0; right: -100%;
  width: 88%;
  max-width: 360px;
  z-index: 1001;
  padding: 110px 0 30px;
  background: #100710;
  border-left: 1px solid var(--line);
  transition: right .35s ease;
  overflow-y: auto;
}
.nav-mobile.is-open { right: 0; }
.nav-mobile ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.nav-mobile li { border-bottom: 1px solid var(--line); }
.nav-mobile a { display: block; padding: 15px 25px; font-size: 18px; font-weight: 600; text-decoration: none; }
.nav-mobile a.active { color: var(--accent); }

/* voile translucide au-dessus du feutre, pour garder le texte lisible */
.main-wrapper { flex: 1 0 auto; padding-top: 110px; background: rgba(19, 9, 16, .72); }

.breadcrumbs { display: flex; gap: 6px; list-style: none; margin: 0 0 14px; padding: 0; font-size: 11px; color: var(--muted); }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); }

/* Hero showcase */
.top-showcase { position: relative; }
.showcase-grid { display: grid; grid-template-columns: 1.75fr 1fr; gap: 20px; align-items: center; }
.top-showcase h1 { font-size: 34px; letter-spacing: 0; }
.showcase-update { margin: 0 0 6px; font-size: 14px; color: var(--muted); }
.showcase-update .ico { color: var(--accent); margin-right: 6px; }
.showcase-month { color: var(--accent); font-weight: 700; }
.showcase-points { list-style: none; margin: 14px 0; padding: 0; }
.showcase-points li { padding: 3px 0 3px 4px; font-size: 16px; }
.showcase-points .suit { color: var(--wine); margin-right: 8px; }
.showcase-tags { display: flex; flex-wrap: wrap; gap: 14px; list-style: none; margin: 0 0 10px; padding: 0; font-size: 14px; }
.showcase-tags li { display: flex; align-items: center; gap: 6px; }
.showcase-tags img { width: 20px; height: 14px; }
.showcase-tags .ico { color: var(--accent); }
.showcase-tags .tag-emoji { font-size: 15px; line-height: 1; }
.showcase-mobile { display: none; }

/* Bannière partenaire — une seule image */
.showcase-banner {
  display: block;
  width: 100%;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(158deg, #33182b 0%, #150a12 68%);
  box-shadow: inset 0 0 0 1px rgba(70, 200, 178, .16), 0 14px 30px rgba(0, 0, 0, .42);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
.showcase-banner:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgba(70, 200, 178, .34), 0 18px 34px rgba(0, 0, 0, .5); }
.showcase-banner img { display: block; width: 100%; height: auto; }

/* Advertiser disclaimer */
.adv-disclaimer { padding: 2px 0 4px; }
.adv-disclaimer .adv-trigger {
  display: block;
  margin-left: auto;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 10px;
  cursor: pointer;
  text-decoration: underline;
}
.adv-popup {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, .72);
}
.adv-popup-body {
  position: relative;
  max-width: 520px;
  padding: 22px;
  border-radius: 12px;
  background: #fff;
  color: var(--row-ink);
  font-size: 12.5px;
  line-height: 1.55;
}
.adv-popup-body h2 { font-size: 16px; margin-bottom: 10px; }
.adv-close {
  position: absolute;
  top: 10px; right: 10px;
  width: 28px; height: 28px;
  border: 0; border-radius: 50%;
  background: #f4ecf0;
  color: #6b4a58;
  cursor: pointer;
}
.adv-close .ico { width: 14px; height: 14px; }

/* Classement — cartes opérateurs */
.rank-table { padding-bottom: 10px; }
.rank-grid { width: 100%; margin-bottom: 28px; }
.rank-head, .rank-row {
  display: grid;
  grid-template-columns: 52px 1fr 1fr 1fr 1fr 1fr;
  align-items: center;
}
.rank-head {
  margin-bottom: 10px;
  border-radius: 8px;
  background: var(--panel-2);
  overflow: hidden;
}
.rank-head div {
  color: var(--ink);
  text-align: center;
  line-height: 40px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.rank-item {
  display: block;
  margin-bottom: 10px;
  border: 1px solid var(--row-line);
  border-radius: 12px;
  background: var(--row-b);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.rank-item:nth-child(odd) { background: var(--row-a); }
.rank-row {
  position: relative;
  min-height: 116px;
  color: var(--row-ink);
}
.rank-item:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: 0 12px 26px rgba(0, 0, 0, .35); }
.rank-item:hover .visit-cell button { background: linear-gradient(180deg, var(--accent), var(--accent-2)); color: #21101a; }
.rank-item:hover .visit-tooltip { visibility: visible; opacity: 1; }

.rank-row .cell { position: relative; height: 100%; display: flex; align-items: center; justify-content: center; text-align: center; padding: 12px 8px; }
.rank-row .cell-link { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; text-decoration: none; color: inherit; }
.pos-cell {
  /* la carte n'a plus overflow:hidden : on arrondit la colonne nous-mêmes */
  border-radius: 11px 0 0 11px;
  font-family: "Prata", Georgia, serif;
  font-size: 19px;
  color: var(--accent-dark);
  background-color: #f6eef2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Crect x='8' y='8' width='24' height='24' rx='4' fill='%23ffffff' stroke='%23e6d3dd' transform='rotate(45 20 20)'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 42px 42px;
}
.logo-cell .brand-image { display: flex; align-items: center; justify-content: center; width: 165px; height: 74px; }
.logo-cell .brand-image img { max-width: 100%; max-height: 100%; object-fit: contain; }
/* badge 18+ en bas à droite : le ruban occupe déjà le haut de la cellule */
.age-badge {
  position: absolute;
  right: 8px; bottom: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .3px;
  color: #9b8b93;
}
.bonus-cell { font-size: 18px; font-weight: 700; line-height: 1.35; }
.bonus-cell span { display: block; margin-top: 2px; font-weight: 600; font-size: 16px; color: #6b4a58; }
.score-cell .cell-link > span { display: block; width: 100%; }
.score-bar { display: block; width: 100%; max-width: 118px; margin: 0 auto 6px; }
.score-num {
  display: block;
  font-family: "Prata", Georgia, serif;
  font-size: 26px;
  line-height: 1.1;
  color: var(--wine-2);
}
.score-track { display: block; height: 7px; margin-top: 4px; border-radius: 999px; background: #eadfe4; overflow: hidden; }
.score-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform-origin: left center;
  animation: bar-fill 1.1s ease forwards;
}
@keyframes bar-fill { from { transform: scaleX(0); } }
.verdict { display: block; font-size: 12px; font-weight: 700; color: var(--wine); text-transform: uppercase; letter-spacing: .5px; }

.stars { position: relative; display: inline-block; width: max-content; margin: 0 auto 6px; line-height: 1; }
.stars .row { display: flex; gap: 3px; color: #e2d3da; }
.stars .row .ico { width: 20px; height: 20px; }
.stars .fill { position: absolute; top: 0; left: 0; height: 100%; overflow: hidden; color: var(--accent); }
.stars .fill .row { width: max-content; color: var(--accent); }
.votes { display: block; text-align: center; font-size: 13.5px; font-weight: 600; color: #6b4a58; }
.stars-cell .cell-link > span { display: block; text-align: center; }

.visit-cell { padding: 10px; }
.visit-cell button {
  position: relative;
  display: block;
  width: 100%;
  max-width: 170px;
  margin: 0 auto;
  padding: 12px 8px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #c02f4b, var(--wine-2));
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .6px;
  cursor: pointer;
  transition: background .2s ease, transform .15s ease, color .2s ease;
}
.visit-cell button:hover { transform: translateY(-1px); }
.visit-cell button .ico, .ticket-body button .ico { width: 1.1em; height: 1.1em; margin-left: 5px; vertical-align: -.2em; }
.visit-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%);
  min-width: 232px;
  padding: 5px 8px;
  border-radius: 5px;
  background: #2f1626;
  color: #fff;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0;
  visibility: hidden;
  opacity: 0;
  transition: opacity .18s ease;
}
.visit-tooltip::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -6px;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #2f1626;
  border-bottom: 0;
}

.ribbon {
  position: absolute;
  top: 0; left: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 14px 3px 6px;
  border-radius: 0 999px 999px 0;
  background: linear-gradient(90deg, var(--wine-2), var(--wine));
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  white-space: nowrap;
}
.ribbon .ico {
  width: 30px; height: 30px;
  flex: none;
  margin: -8px 0;
  padding: 4px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .35);
}

/* Offre spéciale du mois */
.ticket-offer { display: grid; grid-template-columns: 62px 1fr; margin: 6px 0 26px; border-radius: 12px; background: linear-gradient(90deg, #2f1626, #5a1a30); }
.ticket-offer .ticket-flag { position: relative; border-radius: 12px 0 0 12px; background: var(--accent); }
.ticket-offer .ticket-flag span {
  position: absolute;
  bottom: 50%; left: 50%;
  transform-origin: 0 0;
  transform: rotate(270deg) translate(-50%, -50%);
  margin-bottom: -34px;
  font-family: "Prata", Georgia, serif;
  font-size: 21px;
  color: #21101a;
}
.ticket-offer a { display: block; height: 100%; text-decoration: none; color: #fff; }
.ticket-body { display: grid; grid-template-columns: 1fr 190px; align-items: center; gap: 0; margin: 10px; padding: 26px 14px; border: 2px dashed rgba(255,255,255,.55); border-radius: 10px; text-align: center; }
.ticket-body img { display: block; width: 170px; height: auto; margin: 0 auto 8px; }
.ticket-body .ticket-text { font-family: "Prata", Georgia, serif; font-size: 21px; }
.ticket-body .ticket-text span { display: block; margin-top: 4px; font-family: "Onest", sans-serif; font-size: 15px; font-weight: 600; color: var(--accent); }
.ticket-body button {
  width: 100%;
  max-width: 180px;
  padding: 13px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #21101a;
  font: inherit;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .6px;
  cursor: pointer;
}

/* Editorial content */
.poker-guide, .legal-content, .page-intro { padding-bottom: 20px; }
.poker-guide h2, .legal-content h2, .page-intro h2 { margin-top: 26px; font-size: 25px; color: var(--accent); }
.poker-guide h3, .legal-content h3 { margin-top: 20px; font-size: 19px; }
.poker-guide p, .legal-content p, .page-intro p { margin: 0 0 12px; color: #ecdfe6; }
.poker-guide ul, .legal-content ul { margin: 0 0 14px; padding-left: 20px; color: #ecdfe6; }
.poker-guide li, .legal-content li { margin-bottom: 6px; }
.poker-guide a, .legal-content a { color: var(--accent); }

.info-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 18px 0 26px; }
.info-card { padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: rgba(31, 15, 27, .84); }
.info-card h3 { margin-bottom: 6px; font-size: 18px; color: var(--accent); }
.info-card p { margin: 0; font-size: 14.5px; color: #ddcbd6; }

/* Contact form */
.contact-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: 720px; margin-bottom: 26px; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.contact-form .full { grid-column: 1 / -1; }
.contact-form input, .contact-form textarea, .contact-form select {
  padding: 11px 13px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #1c0e18;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
}
.contact-form textarea { min-height: 130px; resize: none; }
.contact-form select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 46px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%2346c8b2' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px 16px;
  cursor: pointer;
}
.contact-form select option { background: #1c0e18; color: var(--ink); }
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.contact-form button {
  justify-self: start;
  padding: 12px 28px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  color: #21101a;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.toast-backdrop { position: fixed; inset: 0; z-index: 1300; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(0,0,0,.6); }
.toast-box { max-width: 380px; padding: 22px 24px; border-radius: 14px; background: #241220; border: 1px solid var(--line); text-align: center; }
.toast-box h2 { font-size: 19px; color: var(--accent); }
.toast-box p { margin: 0; font-size: 14.5px; color: #ddcbd6; }

/* Footer */
.site-footer { flex: none; margin-top: auto; }
.site-footer > .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 15px calc(26px + var(--cookie-h));
  background: #100710;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: #dccdd6;
}
.footer-nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; list-style: none; margin: 0 0 14px; padding: 0; }
.footer-nav a { text-decoration: none; font-weight: 600; }
.footer-nav a:hover { color: var(--accent); }
.site-footer p { text-align: center; margin: 0 0 8px; }
.footer-legal { max-width: 900px; font-size: 12px; color: #b19aa6; }
.footer-icons .wp-block-group__inner-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.footer-icons a, .footer-icons figure { display: flex; align-items: center; justify-content: center; margin: 0; }
.footer-icons img { width: auto; height: 34px; opacity: .85; transition: opacity .2s ease; }
.footer-icons .rg-18 { height: 34px; }
.footer-icons .rg-ssl { height: 30px; }
.footer-icons .rg-bga { height: 21px; }
.footer-icons .rg-gc { height: 40px; }
.footer-icons .rg-anj { height: 42px; }
.footer-icons a:hover img { opacity: 1; }

/* Cookie bar */
.cookie-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 14px;
  background: #100710;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: #c9b4bf;
}
.cookie-bar p { margin: 0; }
.cookie-bar a { color: var(--accent); }
.cookie-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.cookie-bar button {
  padding: 8px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #21101a;
  font: inherit;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.cookie-bar .cookie-decline {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-weight: 600;
}
.cookie-bar .cookie-decline:hover { border-color: var(--muted); color: var(--ink); }

/* Scroll to top */
.scroll-top {
  position: fixed;
  right: 24px;
  bottom: calc(82px + var(--cookie-h));
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #241220;
  color: var(--ink);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease, bottom .25s ease;
}
.scroll-top.is-visible { opacity: .9; visibility: visible; }
.scroll-top:hover { background: var(--accent); color: #21101a; }
.scroll-top .ico { width: 20px; height: 20px; }

/* Support chat */
.chat-toggle {
  position: fixed;
  right: 24px;
  bottom: calc(24px + var(--cookie-h));
  will-change: transform;
  z-index: 1150;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  color: #1d0e17;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .45);
  transition: transform .18s ease, box-shadow .18s ease, bottom .25s ease;
}
.chat-toggle:hover { transform: scale(1.06); box-shadow: 0 10px 26px rgba(0, 0, 0, .55); }
.chat-toggle .ico { width: 24px; height: 24px; }

.chat-panel {
  position: fixed;
  right: 24px;
  bottom: calc(84px + var(--cookie-h));
  z-index: 1160;
  display: flex;
  flex-direction: column;
  width: 360px;
  height: 460px;
  max-width: calc(100vw - 32px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #1c0e18;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .5);
}
.chat-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #241220; border-bottom: 1px solid var(--line); }
.chat-head .avatar {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  font-family: "Prata", Georgia, serif;
  font-size: 17px;
  color: #21101a;
}
.chat-head .who { font-family: "Prata", Georgia, serif; font-size: 15px; font-weight: 400; line-height: 1.2; }
.chat-head .who span { display: block; margin-top: 2px; font-family: "Onest", sans-serif; font-size: 11.5px; font-weight: 600; color: var(--accent); }
.chat-head button { margin-left: auto; border: 0; background: none; color: var(--muted); cursor: pointer; }
.chat-head button .ico { width: 16px; height: 16px; }
.chat-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.chat-msg { max-width: 80%; padding: 9px 12px; border-radius: 12px; font-size: 14px; line-height: 1.45; }
.chat-msg.bot { align-self: flex-start; background: #31182a; border-bottom-left-radius: 4px; }
.chat-msg.me { align-self: flex-end; background: var(--accent); color: #21101a; font-weight: 600; border-bottom-right-radius: 4px; }
.chat-quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 10px; }
.chat-quick button {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #241220;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.chat-quick button:hover { border-color: var(--accent); color: var(--accent); }
.chat-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; min-width: 0; padding: 9px 12px; border: 1px solid var(--line); border-radius: 20px; background: #1c0e18; color: var(--ink); font: inherit; font-size: 14px; }
.chat-form input:focus { outline: 1px solid var(--accent); }
.chat-form button { width: 40px; border: 0; border-radius: 50%; background: var(--accent); color: #21101a; cursor: pointer; }
.chat-form button .ico { width: 18px; height: 18px; }

/* Responsive */
@media (max-width: 1399.98px) { :root { --shell: 100%; } }
@media (max-width: 991.98px) { :root { --shell-max: 100%; } }

@media (max-width: 1220px) {
  .nav { display: none; }
  .burger { display: block; }
  .site-header { height: 84px; }
  .main-wrapper { padding-top: 98px; }
  .top-showcase h1 { font-size: 27px; }
  .rank-head { display: none; }
  .rank-row {
    grid-template-columns: repeat(4, 1fr);
    grid-template-areas:
      "logo logo offer offer"
      "stars score visit visit";
    grid-template-rows: auto auto;
    min-height: 0;
  }
  .rank-row .pos-cell { display: none; }
  .logo-cell { grid-area: logo; border-right: 1px solid var(--row-line); }
  .rank-row .logo-cell { padding: 40px 26px 10px 8px; }
  .logo-cell .brand-image { width: 128px; height: 52px; }
  .ribbon { font-size: 10px; padding: 2px 12px 2px 5px; }
  .bonus-cell { grid-area: offer; font-size: 14px; }
  .bonus-cell span { font-size: 13.5px; }
  .votes { font-size: 11px; }
  .stars-cell { grid-area: stars; }
  .score-cell { grid-area: score; border-right: 1px solid var(--row-line); }
  .visit-cell { grid-area: visit; }
  .score-bar { max-width: 84px; }
  .score-num { font-size: 19px; }
  .score-track { height: 6px; }
  .verdict { font-size: 10px; white-space: nowrap; }
  .visit-tooltip { display: none; }
  .info-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .breadcrumbs, .showcase-update { display: none; }
  .stars .row { gap: 0; }
  .rank-row .cell { padding: 4px 4px; }
  .rank-row .logo-cell { padding: 22px 24px 6px 4px; }
  /* на мобиле картинка живёт в hero-секции, а не под всей страницей */
  body { background-image: none; }
  .top-showcase {
    background-image: linear-gradient(180deg, rgb(255 255 255 / 0%), rgb(162 54 70 / 80%)), url("/assets/img/hero/hero-bg.avif");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-top: 20px;
    margin-inline: 12px;
  }
  .showcase-grid { display: none; }
  .showcase-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 18px 14px;
    text-align: center;
  }
  .top-showcase h1 { margin-top: 10px; font-size: 22px; text-align: center; }
  .showcase-update { text-align: center; }
  .showcase-mobile .showcase-tags { justify-content: center; font-size: 12.5px; }
  .ticket-body { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .ticket-body button { justify-self: center; margin: 0 auto; }
  .contact-form { grid-template-columns: 1fr; }
  .info-cards { grid-template-columns: minmax(0, 1fr); }
  .poker-guide h2, .legal-content h2, .page-intro h2 { font-size: 21px; }
}

@media (max-width: 520px) {
  .site-header .brand { width: 150px; height: 42px; }
  .site-header { height: 74px; }
  .main-wrapper { padding-top: 64px; }
  .bonus-cell { font-size: 13px; }
  .bonus-cell span { font-size: 12.5px; }
  .logo-cell .brand-image { width: 104px; height: 44px; }
  .visit-cell button { font-size: 14px; padding: 10px 6px; }
  .ticket-offer { grid-template-columns: 44px 1fr; }
  .ticket-offer .ticket-flag span { font-size: 17px; margin-bottom: -26px; }
  .ticket-body { padding: 18px 10px; }
  .ticket-body .ticket-text { font-size: 12px; }
  .chat-panel { right: 12px; bottom: calc(74px + var(--cookie-h)); height: 420px; }
  .chat-toggle { right: 16px; width: 42px; height: 42px; }
  .scroll-top { right: 16px; width: 40px; height: 40px; }
}

@media (max-width: 430px) {
  .container { padding-inline: 12px; }
  .stars .row .ico { width: 17px; height: 17px; }
  .score-bar { max-width: 70px; }
  .score-num { font-size: 17px; }
  .cookie-bar { flex-direction: column; gap: 8px; text-align: center; }
}
