/*
Theme Name: Win222 Brasil
Description: Portal brasileiro de análise da plataforma Win222. Visual inspirado no parceiro: verde, amarelo, mobile-first. Conteúdo é dado, não código.
Version: 2.0.0
Author: Redação
Text Domain: win222-brasil
*/

:root {
  --green-900: #043d1c;
  --green-800: #065526;
  --green-700: #087a37;
  --green-600: #0c8f40;
  --green-500: #19a84d;
  --yellow-500: #ffe000;
  --yellow-400: #ffd23f;
  --gold-500: #e7a928;
  --white: #ffffff;
  --text-muted: #b8d3c2;
  --danger: #ff5a5f;
  --radius: 16px;
  --maxw: 1240px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--green-900);
  color: var(--white);
  font: 16px/1.55 Inter, Roboto, "Noto Sans", -apple-system, "Segoe UI", Arial, sans-serif;
}
body.has-pattern { background-image: var(--bg-tile); background-size: 128px 128px; }
img { max-width: 100%; height: auto; }
a { color: var(--yellow-400); }
a:hover { color: var(--yellow-500); }

h1, h2, h3 { line-height: 1.22; font-weight: 800; margin: 1.3em 0 .5em; color: var(--white); }
h1 { font-size: clamp(1.75rem, 6vw, 2.1rem); margin-top: .5em; }
h2 { font-size: clamp(1.35rem, 4.5vw, 1.55rem); }
h3 { font-size: clamp(1.12rem, 3.5vw, 1.25rem); }
p, ul, ol { margin: .8em 0; }
ul, ol { padding-left: 1.3em; }

.col { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
@media (min-width: 768px) { .col { padding: 0 40px; } }
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(1px,1px,1px,1px);
  white-space: nowrap;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--green-800);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.site-header .col {
  display: flex; align-items: center; gap: 10px;
  min-height: 58px;
}
.brand { display: flex; align-items: center; text-decoration: none; flex: 1 1 auto; min-width: 0; }
.brand img { display: block; height: 30px; width: auto; }
.brand-fallback { font-weight: 900; font-size: 1.15rem; color: var(--white); }
.brand-fallback b { color: var(--yellow-500); }
.header-cta { display: flex; gap: 8px; flex: 0 0 auto; }

.btn {
  display: inline-block;
  padding: 11px 16px;
  border-radius: 12px;
  font-weight: 800; font-size: .92rem;
  min-height: 44px;
  text-decoration: none; text-align: center;
  border: 1px solid transparent;
  line-height: 1.35;
}
.btn-primary { background: var(--yellow-500); color: #043d1c; box-shadow: 0 3px 0 rgba(0,0,0,.25); }
.btn-primary:hover { background: var(--yellow-400); color: #043d1c; }
.btn-ghost { border-color: var(--yellow-400); color: var(--yellow-400); }
.btn-ghost:hover { background: rgba(255,224,0,.12); color: var(--yellow-500); }
.btn-block { display: block; width: 100%; }

/* ---------- Категорийное меню ---------- */
.cat-menu {
  background: var(--green-800);
  border-bottom: 1px solid rgba(255,255,255,.06);
  overflow-x: auto;
  scrollbar-width: none;
}
.cat-menu::-webkit-scrollbar { display: none; }
.cat-menu ul {
  display: flex; gap: 4px;
  list-style: none; padding: 6px 24px;
  max-width: var(--maxw); margin: 0 auto;
}
@media (min-width: 768px) { .cat-menu ul { padding: 6px 40px; } }
.cat-menu a {
  display: block; padding: 8px 13px;
  white-space: nowrap;
  color: var(--text-muted); text-decoration: none;
  font-weight: 700; font-size: .92rem;
  border-radius: 99px;
}
.cat-menu a:hover, .cat-menu a.is-active { color: #043d1c; background: var(--yellow-500); }

/* ---------- Полоса 18+ ---------- */
.age-strip {
  background: var(--green-800);
  color: var(--text-muted);
  font-size: .8rem; font-weight: 600;
  text-align: center;
  padding: 6px 12px;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.age-strip b { color: var(--danger); }

/* ---------- Контент ---------- */
.content-area { padding: 4px 0 90px; }
.entry blockquote {
  margin: 1.1em 0;
  padding: 12px 16px;
  background: var(--green-800);
  border-left: 4px solid var(--yellow-400);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.entry blockquote p { margin: .3em 0; }
.entry code {
  background: rgba(255,224,0,.12);
  color: var(--yellow-400);
  border: 1px solid rgba(255,224,0,.35);
  padding: 1px 8px; border-radius: 99px;
  font-family: inherit; font-size: .85em; font-weight: 700;
  white-space: nowrap;
}
.table-scroll { overflow-x: auto; margin: 1em 0; border-radius: var(--radius); }
.entry table {
  border-collapse: collapse; width: 100%;
  background: var(--green-800);
  font-size: .92rem;
}
.entry th, .entry td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  text-align: left;
}
.entry th { background: var(--green-700); font-weight: 800; }
.entry tr:last-child td { border-bottom: none; }
.entry .num { color: var(--yellow-400); font-weight: 800; }

/* ---------- Партнёрский баннер ---------- */
.aff-card { margin: 1.2em auto; max-width: 900px; }
.aff-card__link {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--green-600);
  text-decoration: none;
  position: relative;
  transition: transform .15s, border-color .15s;
}
.aff-card__link:hover { transform: translateY(-2px); border-color: var(--yellow-400); }
.aff-card__link img { display: block; width: 100%; height: auto; }
.aff-card__cta {
  display: block;
  background: var(--yellow-500);
  color: #043d1c;
  font-weight: 900; font-size: 1.02rem;
  text-align: center;
  padding: 13px 16px;
}
.aff-card__terms {
  margin: 6px 2px 0;
  font-size: .78rem;
  color: var(--text-muted);
  text-align: center;
}

/* ---------- Строка оффера ---------- */
.offer-row {
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(120deg, var(--green-700), var(--green-800));
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin: 12px 0;
  flex-wrap: wrap;
}
.offer-logo img { height: 34px; width: auto; display: block; }
.offer-badge {
  background: var(--danger); color: #fff;
  font-size: .68rem; font-weight: 800; text-transform: uppercase;
  padding: 3px 9px; border-radius: 99px; letter-spacing: .5px;
}
.offer-bonus { font-weight: 700; flex: 1 1 160px; }
.offer-bonus .num { color: var(--yellow-400); }
.offer-bonus small { display: block; color: var(--text-muted); font-weight: 500; }
.offer-row .btn { flex: 1 1 100%; }
@media (min-width: 420px) { .offer-row .btn { flex: 0 0 auto; margin-left: auto; } }

/* ---------- 3D-иконки ---------- */
.features-row {
  display: grid; gap: 8px;
  grid-template-columns: repeat(5, 1fr);
  margin: 1.2em 0;
}
@media (min-width: 900px) { .features-row { gap: 14px; } .feature-item img { width: 60px; height: 60px; } .feature-item span { font-size: .85rem; } }
.feature-item {
  text-decoration: none;
  text-align: center;
  color: var(--white);
  background: var(--green-800);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  padding: 10px 4px;
}
.feature-item:hover { border-color: var(--yellow-400); color: var(--white); }
.feature-item img { width: 46px; height: 46px; }
.feature-item span { display: block; font-size: .72rem; font-weight: 700; margin-top: 4px; }

/* ---------- Секции игр ---------- */
.sec-head {
  display: flex; align-items: center; gap: 8px;
  margin: 1.4em 0 .6em;
}
.sec-head img { width: 30px; height: 23px; object-fit: contain; }
.sec-head h2, .sec-head .sec-title { margin: 0; font-size: 1.3rem; font-weight: 800; }
.sec-head a.sec-all {
  margin-left: auto;
  color: var(--text-muted); text-decoration: none; font-size: .88rem; font-weight: 600;
}
.sec-head a.sec-all:hover { color: var(--yellow-400); }
.games-grid {
  display: grid; gap: 10px;
  grid-template-columns: repeat(3, 1fr);
  margin: .6em 0 1.2em;
}
@media (min-width: 700px) { .games-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; } }
@media (min-width: 1000px) { .games-grid { grid-template-columns: repeat(6, 1fr); } }
.game-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
  text-decoration: none; color: var(--white);
  background: var(--green-800);
  transition: transform .15s, border-color .15s;
}
.game-card:hover { transform: translateY(-2px); border-color: var(--yellow-400); color: var(--white); }
.game-card img { display: block; width: 100%; height: auto; }
.game-card span {
  position: absolute; inset: auto 0 0 0;
  padding: 14px 6px 6px;
  background: linear-gradient(180deg, rgba(4,61,28,0), rgba(4,61,28,.92));
  font-weight: 700; font-size: .78rem; text-align: center;
  text-shadow: 0 1px 2px rgba(0,0,0,.6);
}

/* ---------- Шаги ---------- */
.steps-grid {
  display: grid; gap: 10px;
  grid-template-columns: repeat(2, 1fr);
  margin: 1em 0;
}
@media (min-width: 760px) { .steps-grid { grid-template-columns: repeat(4, 1fr); } }
.step-card {
  background: var(--green-800);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  padding: 14px 10px;
  text-align: center;
}
.step-card img { width: 42px; height: 42px; margin-bottom: 6px; }
.step-card b { display: block; font-size: .88rem; line-height: 1.3; }
.step-card i { color: var(--text-muted); font-style: normal; font-size: .76rem; }

/* ---------- Блок приложения ---------- */
.app-block {
  display: flex; gap: 16px; align-items: center;
  background: linear-gradient(120deg, var(--green-700), var(--green-800));
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 16px;
  margin: 1.2em 0;
  flex-wrap: wrap;
}
.app-block img { flex: 0 0 110px; width: 110px; height: auto; border-radius: 12px; }
.app-block-body { flex: 1 1 200px; }
.app-block-title { font-weight: 800; font-size: 1.1rem; margin: 0 0 .3em; }
.app-block-body p { margin: .4em 0 .9em; color: var(--text-muted); }

/* ---------- Нижняя навигация ---------- */
.tab-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  background: var(--green-800);
  border-top: 1px solid rgba(255,255,255,.1);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.tab-bar ul {
  list-style: none; margin: 0 auto; padding: 0;
  max-width: 620px;
  display: flex;
}
.tab-bar li { flex: 1; }
.tab-bar a {
  display: block;
  padding: 9px 2px 10px;
  text-align: center;
  text-decoration: none;
  color: var(--text-muted);
  font-size: .72rem; font-weight: 700;
}
.tab-bar a .t-ico { display: block; font-size: 1.15rem; line-height: 1.1; }
.tab-bar a .t-ico img { width: 26px; height: 26px; display: block; margin: 0 auto 2px; }
.tab-bar a:hover, .tab-bar a.is-active { color: var(--yellow-500); }

/* ---------- Футер ---------- */
.site-footer {
  margin-top: 28px;
  background: var(--green-900);
  border-top: 1px solid rgba(255,255,255,.1);
  color: var(--text-muted);
  font-size: .9rem;
}
.footer-cols {
  display: grid; gap: 20px;
  grid-template-columns: 1fr 1fr;
  padding: 24px 0 8px;
}
@media (min-width: 900px) { .footer-cols { grid-template-columns: repeat(4, 1fr); } }
.footer-cols h2 { font-size: .95rem; margin: 0 0 8px; color: var(--white); }
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li { margin: 5px 0; }
.footer-cols a { color: var(--text-muted); text-decoration: none; }
.footer-cols a:hover { color: var(--yellow-400); text-decoration: underline; }
.badge-18 {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  border: 2px solid var(--danger); color: var(--danger);
  font-weight: 900; font-size: .9rem;
}
.footer-disclaimer {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 14px 0 24px;
  font-size: .84rem;
}
.footer-disclaimer p { margin: .5em 0; }

/* ---------- Разное ---------- */
.update-note { color: var(--text-muted); font-size: .82rem; }
.error404 .entry { text-align: center; padding: 50px 0; }
