:root {
  --bg: #140e16;
  --bg2: #1c1522;
  --glass: rgba(28, 21, 34, .78);
  --card: #241b2b;
  --card2: #2d2236;
  --text: #f7efe9;
  --muted: #b6a8b0;
  --line: rgba(247, 239, 233, .12);
  --gold: #ff6b57;
  --gold2: #ffd0c7;
  --teal: #e8a598;
  --violet: #c45c8a;
  --radius: 18px;
  --max: 1180px;
  --shadow: 0 18px 40px rgba(0,0,0,.35);
  --font: "Segoe UI", "Helvetica Neue", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--bg); overflow-x: hidden; }
body.bestchat {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  min-height: 100vh;
  background:
    radial-gradient(900px 420px at 8% -8%, rgba(244,193,78,.12), transparent 50%),
    radial-gradient(700px 400px at 110% 8%, rgba(60,224,208,.1), transparent 46%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.screen-reader-text, .bestchat-skip {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0);
}
.bestchat-skip:focus { width: auto; height: auto; clip: auto; inset: 8px; z-index: 80; background: var(--gold); color: #111; padding: 8px 12px; border-radius: 999px; }
.bestchat-wrap { width: min(var(--max), calc(100% - 28px)); margin-inline: auto; }
.bestchat-wrap-narrow { width: min(760px, calc(100% - 28px)); }

.bestchat-header {
  position: sticky; top: 0; z-index: 50;
  overflow-x: hidden;
  background: var(--glass);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 30px rgba(0,0,0,.18);
}
.bestchat-header-inner {
  width: min(var(--max), calc(100% - 20px));
  margin-inline: auto;
  min-height: 62px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px;
  padding-top: 8px;
}
.bestchat-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; flex: none; }
.bestchat-logo-mark { width: 36px; height: 36px; filter: drop-shadow(0 4px 8px rgba(0,0,0,.35)); }
.bestchat-word { font-weight: 800; letter-spacing: -.03em; font-size: 1.02rem; }
.bestchat-word em, .bestchat-footer-brand em { color: var(--gold); font-style: normal; }
.bestchat-search { display: flex; flex: 1 0 100%; min-width: 0; order: 3; }
.bestchat-search input {
  flex: 1; min-width: 0;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line); border-right: 0;
  border-radius: 999px 0 0 999px;
  color: var(--text); padding: 9px 14px; font: inherit;
}
.bestchat-search button, .bestchat-btn, .bestchat-fav-lg {
  border: 0; cursor: pointer; font: inherit; font-weight: 700;
}
.bestchat-search button {
  background: linear-gradient(180deg, var(--gold2), var(--gold));
  color: #0b1020; border-radius: 0 999px 999px 0; padding: 9px 14px;
  box-shadow: 0 4px 12px rgba(244,193,78,.25);
}
.bestchat-util { display: flex; gap: 2px; margin-left: auto; order: 2; }
.bestchat-util-link {
  text-decoration: none; font-weight: 700; font-size: .86rem;
  padding: 7px 10px; border-radius: 999px; color: var(--text);
}
.bestchat-util-link:hover { background: rgba(255,255,255,.06); }
.bestchat-pills-wrap {
  border-top: 1px solid var(--line);
  overflow-x: hidden;
  overflow-y: hidden;
}
.bestchat-pills {
  width: min(var(--max), 100%);
  margin-inline: auto;
  display: flex; gap: 6px; overflow-x: auto; overflow-y: hidden;
  padding: 8px 12px 10px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}
.bestchat-pills::-webkit-scrollbar { width: 0; height: 0; display: none; background: transparent; }
.bestchat-pill {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  text-decoration: none; font-weight: 700; font-size: .82rem;
  padding: 6px 11px; border-radius: 999px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
  color: var(--text);
}
.bestchat-pill-icon { display: inline-flex; color: var(--gold); }
.bestchat-pill.is-active, .bestchat-pill:hover {
  background: linear-gradient(180deg, var(--gold2), var(--gold));
  color: #0b1020; border-color: transparent;
}
.bestchat-pill.is-active .bestchat-pill-icon, .bestchat-pill:hover .bestchat-pill-icon { color: #0b1020; }

.bestchat-hero { position: relative; padding: 36px 0 22px; overflow: hidden; }
.bestchat-hero-copy { position: relative; z-index: 1; max-width: 40rem; }
.bestchat-kicker { color: var(--gold); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; font-size: .7rem; margin: 0 0 8px; }
.bestchat-hero h1, .bestchat-section h1, .bestchat-page h1, .bestchat-404 h1 {
  font-size: clamp(1.75rem, 6.4vw, 3.15rem);
  line-height: 1.08; letter-spacing: -.045em; margin: 0 0 12px;
}
.bestchat-lead { color: var(--muted); margin: 0 0 18px; max-width: 38rem; }
.bestchat-search-lg { margin: 8px 0 0; max-width: 28rem; }
.bestchat-section { padding: 18px 0; }
.bestchat-section-first { padding-top: 14px; }
.bestchat-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.bestchat-section-head h2, .bestchat-prose h2 { font-size: 1.28rem; letter-spacing: -.03em; margin: 0; }
.bestchat-section-head p { color: var(--muted); margin: 0; font-size: .92rem; }
.bestchat-more { color: var(--gold2); text-decoration: none; font-weight: 700; font-size: .9rem; }

.bestchat-grid, .bestchat-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  max-width: 100%;
  overflow: visible;
}
.bestchat-card {
  position: relative; border-radius: var(--radius);
  min-width: 0;
  max-width: 100%;
  touch-action: manipulation;
}
.bestchat-card-inner {
  position: relative; background: linear-gradient(180deg, #1c2333, var(--card));
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
  min-width: 0; max-width: 100%;
}
.bestchat-card-inner::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(125deg, transparent 30%, rgba(255,255,255,.12) 48%, transparent 66%);
  transform: translateX(-120%);
}
@keyframes bestchat-shine { to { transform: translateX(120%); } }
.bestchat-card-link {
  display: block; text-decoration: none; color: inherit;
  min-width: 0; max-width: 100%;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.bestchat-card-link:active, .bestchat-card:active .bestchat-card-inner {
  transform: none;
}
.bestchat-card-art { display: block; aspect-ratio: 4 / 3; background: var(--card2); overflow: hidden; }
.bestchat-card-art img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.bestchat-card-meta { display: block; padding: 10px 12px 12px; min-width: 0; }
.bestchat-card-title {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  overflow: hidden; font-weight: 780; letter-spacing: -.02em; font-size: .95rem; line-height: 1.25;
  word-break: break-word;
}
.bestchat-card-genre {
  display: block; color: var(--muted); font-size: .76rem; margin-top: 3px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.bestchat-fav {
  position: absolute; top: 4px; right: 4px; z-index: 3;
  width: 44px; height: 44px; min-width: 44px; min-height: 44px;
  border: 0; border-radius: 50%;
  background: rgba(7,8,13,.72); color: var(--gold); cursor: pointer; font-size: 1.1rem;
  backdrop-filter: blur(8px);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.bestchat-fav.is-on, .bestchat-fav-lg.is-on { background: var(--gold); color: #0b1020; }
.bestchat-fav-lg {
  position: static; width: auto; height: auto; border-radius: 999px; padding: 8px 14px;
  font-size: .9rem; font-weight: 700; background: var(--card2); color: var(--text); border: 1px solid var(--line);
}

.bestchat-crumb { color: var(--muted); font-size: .88rem; margin-bottom: 12px; }
.bestchat-crumb a { color: var(--gold2); text-decoration: none; }
.bestchat-game-head { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; }
.bestchat-game-head h1 { margin: 0; font-size: clamp(1.4rem, 5vw, 2.3rem); }
.bestchat-frame-wrap {
  position: relative; z-index: 1;
  background: #000; border-radius: 20px; overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  aspect-ratio: var(--bestchat-w, 16) / var(--bestchat-h, 9);
  width: 100%; max-width: 100%;
  max-height: min(70vh, calc(100dvh - 12rem), 720px);
  margin-inline: auto;
}
.bestchat-frame-wrap iframe {
  width: 100%; height: 100%; border: 0; display: block; background: #000;
  pointer-events: auto; position: relative; z-index: 1;
}
.bestchat-player-bar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 12px 0 22px; }
.bestchat-btn {
  background: linear-gradient(180deg, var(--gold2), var(--gold)); color: #0b1020;
  border-radius: 999px; padding: 10px 16px; text-decoration: none; display: inline-block;
}
.bestchat-btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.bestchat-player-note, .bestchat-credit { color: var(--muted); font-size: .86rem; }
.bestchat-prose { margin: 8px 0 28px; }
.bestchat-prose p, .bestchat-page p, .bestchat-404 p { color: var(--muted); }
.bestchat-prose a, .bestchat-page a, .bestchat-footer a { color: var(--gold2); }
.bestchat-prose h2, .bestchat-prose h3 { color: var(--text); margin: 1.3em 0 .5em; }
.bestchat-prose ul { color: var(--muted); padding-left: 1.2em; }
.bestchat-empty { color: var(--muted); padding: 20px 0; }
.bestchat-sitemap-games { columns: 1; }
.bestchat-guide-grid { display: grid; gap: 12px; }
.bestchat-guide-card {
  background: var(--glass); border: 1px solid var(--line); border-radius: 16px;
  padding: 16px 18px; box-shadow: 0 10px 24px rgba(0,0,0,.18);
}
.bestchat-guide-card h2, .bestchat-guide-card h3 { margin: 0 0 8px; font-size: 1.05rem; letter-spacing: -.02em; }
.bestchat-guide-card a { text-decoration: none; }
.bestchat-guide-card p { color: var(--muted); margin: 0; }

.bestchat-ad-slot, .earnvato-ad { margin: 16px 0; text-align: center; overflow: hidden; }
.bestchat-ad-slot:empty, .earnvato-ad:empty { display: none; margin: 0; padding: 0; height: 0; }
.earnvato-ad iframe, .earnvato-ad ins, .bestchat-ad-slot iframe, .bestchat-ad-slot ins { max-width: 100%; }
body.bestchat-thin .earnvato-ad { display: none; }

.bestchat-footer { border-top: 1px solid var(--line); background: var(--bg2); padding: 36px 0 28px; color: var(--muted); font-size: .92rem; }
.bestchat-footer-inner { width: min(var(--max), calc(100% - 28px)); margin-inline: auto; }
.bestchat-footer-brand { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 800; font-size: 1.1rem; margin: 0 0 8px; }
.bestchat-footer-nav { display: flex; flex-wrap: wrap; gap: 10px 16px; margin: 18px 0; }
.bestchat-footer-nav a { color: var(--text); text-decoration: none; }
.bestchat-copy { margin: 0; }

body { padding-bottom: var(--consent-pad, 0px); }
.bestchat-consent {
  position: fixed; inset: auto 10px 10px 10px; z-index: 80;
  pointer-events: none;
}
.bestchat-consent-card {
  pointer-events: none;
  background: var(--glass); backdrop-filter: blur(16px);
  border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); padding: 6px 10px;
  max-width: 760px; margin-inline: auto;
  max-height: min(22vh, 160px);
  overflow: auto;
}

.bestchat-consent-lead a,
.bestchat-consent-actions,
.bestchat-consent-actions *,
.bestchat-consent-manage,
.bestchat-consent-manage * {
  pointer-events: auto;
}
.bestchat-consent-card h2 {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.bestchat-consent-lead { margin: 0 0 4px !important; color: var(--muted); font-size: .75rem; line-height: 1.25; }
.bestchat-consent-card p { margin: 0 0 6px; color: var(--muted); font-size: .8rem; }
.bestchat-consent-actions { display: flex; flex-wrap: nowrap; gap: 6px; }
.bestchat-consent-actions .bestchat-btn {
  padding: 5px 8px; font-size: .78rem; flex: 1 1 0;
  text-align: center; min-height: 34px; line-height: 1.2; box-sizing: border-box;
}
.bestchat-consent-manage { margin: 4px 0 8px; }
.bestchat-consent-note { font-size: .75rem !important; }
@media (min-width: 720px) {
  .bestchat-consent-card {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
    padding: 8px 14px; max-height: min(20vh, 200px);
  }
  .bestchat-consent-lead { margin: 0 !important; font-size: .85rem !important; flex: 1 1 auto; }
  .bestchat-consent-actions { margin-left: auto; flex: 0 0 auto; }
  .bestchat-consent-manage { flex: 1 1 100%; }
}

@media (min-width: 720px) {
  .bestchat-header-inner { flex-wrap: nowrap; padding-top: 0; }
  .bestchat-search { flex: 1 1 auto; order: 0; }
  .bestchat-util { margin-left: 0; order: 0; }
  .bestchat-grid, .bestchat-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .bestchat-guide-grid, .bestchat-guide-grid-wide { grid-template-columns: repeat(2, 1fr); }
  .bestchat-sitemap-games { columns: 2; }
}
@media (min-width: 1024px) {
  .bestchat-grid, .bestchat-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .bestchat-guide-grid-wide { grid-template-columns: repeat(3, 1fr); }
  .bestchat-sitemap-games { columns: 3; }
}
@media (prefers-reduced-motion: reduce) {
  .bestchat-card:hover .bestchat-card-inner::after { animation: none; }
  .bestchat-card-inner { transition: none; transform: none !important; }
}

/* Tilt disabled: hover rotate made cards feel hard to press. */
.bestchat-card, .bestchat-card-inner, .bestchat-card:hover .bestchat-card-inner, .bestchat-card:active .bestchat-card-inner {
  transform: none !important;
}
@media (hover: hover) and (pointer: fine) {
  .bestchat-card:hover .bestchat-card-inner::after { animation: bestchat-shine .7s ease forwards; }
}
@media (hover: none), (pointer: coarse) {
  .bestchat-card:hover .bestchat-card-inner::after,
  .bestchat-card:active .bestchat-card-inner::after { animation: none; }
}


/* v2.1.0 article cards, footer, home story, forms */
.bestchat-game-title { margin: 8px 0 18px; }
.bestchat-game-title h1 { font-size: clamp(1.35rem, 3vw, 2rem); letter-spacing: -.03em; margin: 4px 0 0; line-height: 1.2; overflow-wrap: anywhere; }
.bestchat-article { display: grid; gap: 14px; margin: 0 0 28px; }
.bestchat-card-block { background: var(--bg2, #12141c); border: 1px solid var(--line, #242734); border-radius: 16px; padding: 1.15rem 1.2rem; overflow-wrap: anywhere; }
.bestchat-card-block h2 { font-size: 1.18rem; letter-spacing: -.03em; margin: 0 0 .7rem; color: var(--text); }
.bestchat-card-block h3 { font-size: 1rem; margin: 1rem 0 .45rem; color: var(--text); }
.bestchat-card-block p { color: var(--muted); margin: 0 0 .75rem; line-height: 1.6; }
.bestchat-card-block p:last-child { margin-bottom: 0; }
.bestchat-card-block ul, .bestchat-card-block ol { margin: 0 0 .4rem; padding-left: 1.15rem; color: var(--muted); line-height: 1.55; }
.bestchat-card-block li { margin: 0 0 .4rem; }
.bestchat-steps { list-style: none; padding-left: 0; counter-reset: bestchat-step; }
.bestchat-steps li { counter-increment: bestchat-step; position: relative; padding-left: 2.1rem; margin: 0 0 .65rem; }
.bestchat-steps li::before { content: counter(bestchat-step); position: absolute; left: 0; top: 0; width: 1.5rem; height: 1.5rem; border-radius: 999px; background: #1b1e2a; border: 1px solid var(--line, #242734); color: var(--gold, #22d3ee); font-size: .75rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.bestchat-faq details { border-top: 1px solid var(--line, #242734); padding: .55rem 0; }
.bestchat-faq details:first-child { border-top: 0; }
.bestchat-faq summary { cursor: pointer; color: var(--text); font-weight: 650; list-style: none; padding: .2rem 0; }
.bestchat-faq summary::-webkit-details-marker { display: none; }
.bestchat-faq summary::after { content: "+"; float: right; color: var(--gold, #22d3ee); font-weight: 700; }
.bestchat-faq details[open] summary::after { content: "–"; }
.bestchat-faq details p { margin: .45rem 0 0; }
.bestchat-editorial { color: var(--muted); font-size: .88rem; line-height: 1.55; margin: 8px 2px 20px; }
.bestchat-updated { display: inline-block; margin-left: .25rem; }
.bestchat-rate { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; }
.bestchat-rate-label { color: var(--muted); font-size: .82rem; margin-right: 4px; }
.bestchat-rate-star { appearance: none; border: 0; background: transparent; color: #3a3d4a; font-size: 1.25rem; line-height: 1; cursor: pointer; padding: 6px; min-width: 36px; min-height: 36px; touch-action: manipulation; }
.bestchat-rate-star.is-on, .bestchat-rate[data-hover] .bestchat-rate-star.is-hover { color: var(--gold, #22d3ee); }
.bestchat-player-bar { display: flex; gap: 10px 14px; align-items: center; flex-wrap: wrap; margin: 12px 0 18px; }
.bestchat-footer-grid { display: grid; gap: 26px; grid-template-columns: 1fr; }
.bestchat-footer-col h2 { color: var(--text); font-size: .92rem; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 10px; }
.bestchat-footer-col a { display: block; color: var(--text); text-decoration: none; margin: 0 0 8px; }
.bestchat-footer-col a:hover { color: var(--gold2, #a5b4fc); }
.bestchat-footer-note { margin: 8px 0 0; font-size: .86rem; }
.bestchat-copy { margin: 22px 0 0; font-size: .8rem; }
.bestchat-story { padding: 10px 0 36px; }
.bestchat-story > .bestchat-wrap { display: grid; gap: 14px; }
.bestchat-icon-row { display: grid; gap: 14px; grid-template-columns: 1fr; }
.bestchat-icon-row h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 .5rem; }
.bestchat-facts { margin: 0; padding-left: 1.15rem; color: var(--muted); line-height: 1.55; }
.bestchat-readmore { border-top: 1px solid var(--line, #242734); padding: .55rem 0; }
.bestchat-readmore summary { cursor: pointer; font-weight: 650; color: var(--text); }
.bestchat-btn-ghost { background: transparent; border: 1px solid var(--line, #242734); }
.bestchat-form label { display: block; margin: 0 0 6px; color: var(--text); font-weight: 600; }
.bestchat-form input, .bestchat-form textarea { width: 100%; max-width: 100%; box-sizing: border-box; border-radius: 10px; border: 1px solid var(--line, #242734); background: #0d0f16; color: var(--text); padding: .7rem .8rem; font: inherit; }
.bestchat-form p { margin: 0 0 12px; }
.bestchat-form-ok { color: #8ecf9a; }
.bestchat-form-err { color: #e07a7a; }
.bestchat-hp { position: absolute; left: -9999px; }
@media (min-width: 720px) {
  .bestchat-icon-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .bestchat-footer-grid { grid-template-columns: 1.4fr 1fr 1fr .9fr; }
}

.bestchat-search { position: relative; }
.bestchat-suggest { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 60; background: var(--bg2, #12131a); border: 1px solid var(--line); border-radius: 10px; max-height: min(60vh, 22rem); overflow: auto; box-shadow: 0 12px 30px rgba(0,0,0,.35); }
.bestchat-suggest a { display: block; padding: 10px 12px; color: var(--text); text-decoration: none; line-height: 1.3; }
.bestchat-suggest a .genre { color: var(--muted); font-size: .8rem; margin-left: 6px; }
.bestchat-suggest a[aria-selected="true"], .bestchat-suggest a:hover { background: rgba(255,255,255,.06); }
.bestchat-popular-links { margin: 28px auto 0; width: min(var(--max, 1120px), calc(100% - 28px)); }
.bestchat-popular-links h2 { color: var(--text); font-size: .92rem; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 10px; }
.bestchat-popular-links ul, .bestchat-genre-links ul, ul.bestchat-genre-links { display: flex; flex-wrap: wrap; gap: 8px 14px; list-style: none; padding: 0; margin: 8px 0 0; }
.bestchat-popular-links li, .bestchat-genre-links li { margin: 0; }
.bestchat-popular-links a, .bestchat-genre-links a { display: inline; color: var(--text); }
.bestchat-popular-links a:hover, .bestchat-genre-links a:hover { color: var(--accent, #7dd3fc); }
.bestchat-404-links { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 16px 0; }
.bestchat-suggest-hint { margin-top: 8px; }

/* Bestchat header variation: logo + library links clustered, search on the right */
.bestchat-header { border-bottom: 2px solid rgba(255,107,87,.35); }
.bestchat-brand-cluster { display: flex; align-items: center; gap: 12px; min-width: 0; }
.bestchat-header-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.bestchat-util { margin-left: 0; order: 0; }
.bestchat-search { order: 3; }
.bestchat-pill { border-radius: 10px; }
.bestchat-pill.is-active, .bestchat-pill:hover {
  background: var(--gold);
  color: #1a1220;
  box-shadow: inset 4px 0 0 #c44536;
}
@media (min-width: 900px) {
  .bestchat-header-inner { flex-wrap: nowrap; }
  .bestchat-search { flex: 1 1 auto; order: 3; max-width: 28rem; margin-left: auto; }
  .bestchat-util { margin-left: 0; }
}
