/* База рейтинга (rt), инструментов (tw) и блока автора (au). Только раскладка и переменные:
   цвета, шрифты, рамки и характер задаёт CSS сайта, переопределяя --rt-* / --tw-* и классы. */
.rt, .tw, .au {
  --rt-bg: var(--tw-bg); --rt-ink: var(--tw-ink); --rt-mute: var(--tw-mute); --rt-line: var(--tw-line); --rt-accent: var(--tw-accent); --rt-card: var(--tw-card); --rt-radius: var(--tw-radius);
  color: var(--tw-ink, inherit);
}
:where(.rt, .tw, .au) { --tw-bg: transparent; --tw-card: rgba(127,127,127,.08); --tw-ink: inherit; --tw-mute: color-mix(in srgb, currentColor 65%, transparent); --tw-line: color-mix(in srgb, currentColor 18%, transparent); --tw-accent: currentColor; --tw-radius: 14px; }

/* ---------- рейтинг ---------- */
.rt { margin-block: 2.5rem; }
.rt__meta { margin: .4rem 0 1.2rem; font-size: .86rem; color: var(--rt-mute); }
.rt__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.rt__item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px 16px; align-items: start; padding: 16px; background: var(--rt-card); border: 1px solid var(--rt-line); border-radius: var(--rt-radius); }
.rt__rank { display: grid; place-items: center; width: 2.2em; height: 2.2em; border-radius: 50%; font-weight: 800; border: 2px solid var(--rt-accent); color: var(--rt-accent); }
.rt__name { margin: 0; font-size: 1.15rem; line-height: 1.2; }
.rt__dom, .rt__game { margin: .2rem 0 0; font-size: .84rem; color: var(--rt-mute); }
.rt__score { text-align: right; line-height: 1; }
.rt__score b { font-size: 1.7rem; color: var(--rt-accent); }
.rt__score span { font-size: .8rem; color: var(--rt-mute); }
.rt__offers { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 10px; }
.rt__bonus { flex: 1 1 220px; display: grid; gap: 2px; padding: 10px 12px; border-radius: calc(var(--rt-radius) - 4px); border: 1px dashed var(--rt-line); }
.rt__bonus b { font-size: .98rem; }
.rt__bonus small { font-size: .8rem; color: var(--rt-mute); }
.rt__lbl { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--rt-mute); }
.rt__why { grid-column: 2 / -1; font-size: .86rem; }
.rt__terms { font-size: .8rem; color: var(--rt-mute); }
.rt__terms summary { cursor: pointer; }
.rt__terms p { margin: .3rem 0 0; }
.rt__why summary { cursor: pointer; color: var(--rt-mute); }
.rt__why ul { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; gap: 4px; }
.rt__why li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dotted var(--rt-line); padding-bottom: 3px; }
.rt__text { margin-top: 1.4rem; }
.rt__warn { margin: 1rem 0 0; padding: 10px 12px; font-size: .82rem; color: var(--rt-mute); border-left: 3px solid var(--rt-accent); }
.rt__warn b { color: var(--rt-ink); }
.rt--compact .rt__item { padding: 12px 14px; }
@media (max-width: 560px) {
  .rt__item { grid-template-columns: auto minmax(0, 1fr); }
  .rt__score { grid-column: 2; text-align: left; }
  .rt__offers, .rt__why { grid-column: 1 / -1; }
}

/* ---------- инструменты ---------- */
.tw { margin-block: 2.5rem; padding: clamp(16px, 3vw, 28px); background: var(--tw-card); border: 1px solid var(--tw-line); border-radius: var(--tw-radius); }
.tw__h { margin: 0 0 .4rem; }
.tw__lead { margin: 0 0 1rem; }
.tw__form { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; align-items: end; }
.tw__f { display: grid; gap: 4px; font-size: .86rem; color: var(--tw-mute); }
.tw__f--wide { grid-column: 1 / -1; }
.tw__f input, .tw__f select { width: 100%; min-height: 44px; padding: 8px 10px; font: inherit; font-size: 1rem; color: var(--tw-ink); background: transparent; border: 1px solid var(--tw-line); border-radius: 8px; }
.tw__f select option { color: #111; }
.tw__f input:focus-visible, .tw__f select:focus-visible, .tw__btn:focus-visible { outline: 2px solid var(--tw-accent); outline-offset: 2px; }
.tw__btn { min-height: 44px; padding: 10px 16px; font: inherit; font-weight: 700; cursor: pointer; color: var(--tw-btn-ink, #111); background: var(--tw-accent); border: 0; border-radius: 8px; }
.tw__out { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 1.1rem 0 0; }
.tw__o { padding: 10px 12px; border: 1px solid var(--tw-line); border-radius: 10px; }
.tw__o dt { font-size: .78rem; color: var(--tw-mute); }
.tw__o dd { margin: 2px 0 0; font-size: 1.25rem; font-weight: 800; color: var(--tw-accent); }
.tw__t { width: 100%; margin-top: 1rem; border-collapse: collapse; font-size: .92rem; }
.tw__t th, .tw__t td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--tw-line); }
.tw__scroll { overflow-x: auto; }
.tw__note { margin: 1rem 0 0; font-size: .82rem; color: var(--tw-mute); }
.tw__canvas { display: block; width: 100%; height: auto; margin-top: 1rem; border: 1px solid var(--tw-line); border-radius: 10px; }
.tw__res { margin: .8rem 0 0; padding-left: 1.2em; display: grid; gap: 4px; }
.tw--simulator .tw__res { list-style: none; padding: 0; }
.tw__res i { display: inline-block; width: .8em; height: .8em; margin-right: .4em; border-radius: 2px; vertical-align: -1px; }
.tw__q { margin: 0; padding: 10px 12px; border: 1px solid var(--tw-line); border-radius: 10px; display: grid; gap: 6px; }
.tw__q legend { padding: 0 4px; font-weight: 700; }
.tw__q label { display: flex; gap: 8px; align-items: center; min-height: 32px; }
.tw__form--quiz { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.tw__verdict { margin: 1rem 0 0; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--tw-line); }
.tw__verdict.is-ok { border-color: #2e9e5b; }
.tw__verdict.is-warn { border-color: #d98e04; }
.tw__verdict.is-bad { border-color: #c8423b; }
.tw__dna { margin: 0 0 1rem; padding: 18px; border-radius: var(--tw-radius); border: 1px solid var(--tw-line); }
.tw__dna figcaption { display: grid; gap: 2px; margin-bottom: 12px; }
.tw__dna figcaption b { font-size: 1.3rem; color: var(--tw-accent); }
.tw__dna figcaption span { font-size: .86rem; color: var(--tw-mute); }
.tw__dna ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tw__dna li { display: grid; grid-template-columns: 9em 1fr auto; gap: 10px; align-items: center; font-size: .9rem; }
.tw__dna i { height: 10px; border-radius: 5px; background: linear-gradient(90deg, var(--tw-accent) calc(var(--v) * 100%), var(--tw-line) 0); }
@media (max-width: 560px) { .tw__dna li { grid-template-columns: 1fr auto; } .tw__dna i { grid-column: 1 / -1; grid-row: 2; } }

/* ---------- автор ---------- */
.au { display: grid; grid-template-columns: 72px 1fr; gap: 14px; align-items: center; margin-block: 2rem; padding: 14px 16px; border: 1px solid var(--tw-line); border-radius: var(--tw-radius); }
.au img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.au p { margin: 0; font-size: .88rem; color: var(--tw-mute); }
.au b { color: var(--tw-ink); }
.au a { color: inherit; }

@media (prefers-reduced-motion: reduce) { .rt *, .tw *, .au * { transition: none !important; animation: none !important; } }

/* ---------- таблица методики ---------- */
.rt-method { overflow-x: auto; margin-block: 1.5rem; }
.rt-method__t { width: 100%; border-collapse: collapse; font-size: .92rem; }
.rt-method__t caption { text-align: left; margin-bottom: .5rem; font-weight: 700; }
.rt-method__t th, .rt-method__t td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--tw-line, rgba(127,127,127,.25)); }
.rt-method__t td { white-space: nowrap; }

/* логотип priređivača и кнопка «условия бонуса» (раскрывается на месте, наружу не ведёт) */
.rt__main { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; min-width: 0; }
.rt__id { flex: 1 1 130px; min-width: 0; overflow-wrap: anywhere; }
.rt__logo { flex: none; display: grid; place-items: center; width: 112px; height: 46px; padding: 6px 10px; border-radius: 10px; background: #0f1722; overflow: hidden; }
.rt__logo img { width: auto; height: auto; max-width: 100%; max-height: 32px; object-fit: contain; }
.rt__logo--light { background: #fff; box-shadow: 0 0 0 1px var(--rt-line) inset; }
.rt__logo--mid { background: #6b7686; }
.rt__logo--sq { width: 46px; padding: 0; }
.rt__logo--sq img { width: 46px; height: 46px; max-height: none; }
.rt__logo--txt { width: 46px; font-weight: 800; color: #fff; text-transform: uppercase; }
.rt__cta { grid-column: 2 / -1; display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px; }
.rt__act { flex: 1 1 auto; min-width: 0; }
/* «Posetite kazino» — справа в ряду кнопок; вид как у второстепенной кнопки, сайт может переопределить */
.rt__go { font: inherit; font-weight: 700; cursor: pointer; flex: none; display: inline-flex; align-items: center; justify-content: center; gap: .45em; min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 2px solid var(--rt-accent); color: var(--rt-accent); background: transparent; font-weight: 700; text-decoration: none; white-space: nowrap; transition: transform .2s; }
.rt__go:hover { transform: translateY(-1px); color: var(--rt-accent); }
.rt__go:focus-visible { outline: 3px solid var(--rt-accent); outline-offset: 3px; }
.rt__btn { display: inline-flex; align-items: center; gap: .5em; min-height: 44px; padding: 10px 18px; border-radius: 999px; background: var(--rt-accent); color: var(--tw-btn-ink, #fff); font-weight: 700; cursor: pointer; list-style: none; user-select: none; }
.rt__btn::-webkit-details-marker { display: none; }
.rt__btn::after { content: ''; width: .5em; height: .5em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.rt__act[open] .rt__btn::after { transform: translateY(2px) rotate(-135deg); }
.rt__btn:focus-visible { outline: 3px solid var(--rt-accent); outline-offset: 3px; }
.rt__steps { margin: .8rem 0 0; padding-left: 1.3em; display: grid; gap: 4px; font-size: .88rem; }
@media (max-width: 560px) {
  .rt__cta { grid-column: 1 / -1; flex-direction: column; align-items: stretch; }
  .rt__go { width: 100%; }
  .rt__btn { width: 100%; justify-content: center; text-align: center; }
  .rt__main { align-items: flex-start; }
  .rt__logo { width: 84px; height: 40px; }
  .rt__logo--sq { width: 40px; }
  .rt__logo--sq img { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) { .rt__btn::after, .rt__go { transition: none; } .rt__go:hover { transform: none; } }
