/* ------------------------------------------------------------
   Світла тема в палітрі Vbet: пурпурний акцент + глибокий фіолетовий
   ------------------------------------------------------------ */
:root {
    --accent: #d80d83;
    --accent-dark: #b00a6b;
    --ink: #14043a;
    --text: #2a2145;
    --bg: #faf7fd;
    --card: #ffffff;
    --tint: rgba(216, 13, 131, .09);      /* фон шапки таблиці = фон блоку «Зміст» */
    --tint-border: rgba(216, 13, 131, .35);
    --line: rgba(20, 4, 58, .14);
}

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
}

/* ---------- Таблиці (шаблонні стилі) ---------- */
.table { color: var(--text); }
.table thead th { background: var(--tint); border-bottom: 2px solid var(--accent); }
.table-hover tbody tr:hover { color: var(--accent-dark); background-color: var(--tint); }

/* ---------- Хедер ---------- */
header {
    background: #f3e8fb url("../img/header_bg.jpg") center / cover no-repeat;
    padding: 48px 0 24px;
    border-bottom: 1px solid var(--line);
}
.header__logo { margin-bottom: 22px; text-align: center; }
.header__logo-img {
    width: 140px;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    filter: drop-shadow(0 6px 16px rgba(216, 13, 131, .22));
}
.header__button { gap: 12px; flex-wrap: wrap; }

/* ---------- Посилання ---------- */
a { background-color: transparent; color: var(--accent); text-decoration: none; transition: all .35s; }
a:hover { text-decoration: none; color: var(--accent-dark); }
a:active, a:hover { outline-width: 0; }

/* ---------- Кнопки ---------- */
.button {
    display: block;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    min-height: 40px;
    padding: 8px 18px;
    border-radius: 8px;
    box-shadow: inset 0 -3px 0 0 rgba(0, 0, 0, .15);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    background: #fff;
    color: var(--ink);
    transition: background-color .2s linear, color .2s linear, border-color .2s linear;
}
.button span { pointer-events: none; }
.button:hover, .button:focus { text-decoration: none; outline: none; background: #f1e7f8; color: var(--ink); }
.button:active { box-shadow: none; }
.button-large { min-height: 50px; padding: 12px 24px; border-radius: 10px; font-size: 20px; }
.button-inline { display: inline-block; vertical-align: middle; }

.button.button-danger { background: var(--accent); color: #fff; box-shadow: inset 0 -4px 0 0 rgba(0, 0, 0, .2); }
.button.button-danger:hover, .button.button-danger:focus { background: var(--accent-dark); color: #fff; }
.button.button-outline { background: rgba(255, 255, 255, .92); border-color: var(--accent); color: var(--accent); }
.button.button-outline:hover, .button.button-outline:focus { background: var(--accent); color: #fff; }

/* ---------- Анкорні кнопки в хедері ---------- */
.anchors { padding: 28px 0 0; }
.action-link {
    display: block;
    margin: 0 auto 14px;
    position: relative;
    background: rgba(255, 255, 255, .92);
    border: 1px solid var(--accent);
    border-radius: 8px;
    color: var(--ink);
    padding: 10px 14px;
    overflow: hidden;
    max-width: 200px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}
.action-link:hover { text-decoration: none; }
.action-link .link-content {
    position: relative;
    z-index: 3;
    transition: color .35s;
    text-align: center;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.25;
}
.blip-link .blip,
.blip-link .blip-click {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    transition: all .35s;
    transform: translate(-50%, -50%);
}
.blip-link:hover .blip { width: 375px; height: 375px; }
.blip-link.red .blip { background: var(--accent); }
.blip-link.red .blip-click { background: var(--accent-dark); }
.blip-link.red .link-content { color: var(--ink); }
.blip-link.red:hover .link-content { color: #fff; }
@media (max-width: 1024px) { .action-link { margin: 0 auto 10px; } }
@media (max-width: 767px) { .action-link { max-width: none; min-height: 0; } }

/* ---------- Контент ---------- */
.content { padding: 32px 0 40px; }
.content article {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 36px 40px;
    box-shadow: 0 8px 30px rgba(20, 4, 58, .06);
}
.content h1, .content h2, .content h3 { color: var(--ink); scroll-margin-top: 16px; }
.content h1 { margin: 0 0 20px; font-weight: 800; font-size: 2.3rem; line-height: 1.2; }
.content h2 {
    margin: 44px 0 16px;
    padding-left: 14px;
    border-left: 5px solid var(--accent);
    font-weight: 700;
    font-size: 1.8rem;
    line-height: 1.25;
}
.content h3 { margin: 28px 0 12px; font-weight: 700; font-size: 1.35rem; }
.content p, .content li { line-height: 1.7; }
.content ul, .content ol { padding-left: 22px; margin-bottom: 1rem; }
.content li { margin-bottom: 6px; }
.content li::marker { color: var(--accent); font-weight: 700; }
.list-title { margin-bottom: 4px; }

/* ---------- Зміст ---------- */
.toc {
    background: var(--tint);                 /* той самий фон, що й у шапки таблиці */
    border: 1px solid var(--tint-border);
    border-radius: 10px;
    padding: 20px 26px 12px;
    margin: 28px 0 8px;
}
.toc__title { margin: 0 0 10px; font-size: 1.3rem; font-weight: 800; color: var(--ink); }
.toc ol, .toc ul { margin: 0; padding-left: 20px; }
.toc > ol { padding-left: 22px; }
.toc li { margin-bottom: 4px; line-height: 1.45; break-inside: avoid; }
.toc > ol > li { margin-bottom: 8px; font-weight: 600; }
.toc ul { margin-top: 4px; list-style: disc; font-weight: 400; }
.toc a { color: var(--ink); }
.toc a:hover { color: var(--accent); }
@media (min-width: 992px) { .toc > ol { column-count: 2; column-gap: 40px; } }

/* ---------- Кнопки переходу в гру ---------- */
.cta { display: flex; justify-content: center; margin: 26px 0 8px; }
.cta .button { max-width: 100%; }

/* ---------- FAQ ---------- */
.faq-item { padding: 14px 18px; margin-bottom: 12px; background: #fcfaff; border: 1px solid var(--line); border-radius: 10px; }
.faq-item p { margin: 0 0 6px; }
.faq-item p:last-child { margin-bottom: 0; }
.faq-item strong { color: var(--ink); }

/* ---------- Футер ---------- */
.footer { padding: 40px 15px 56px; text-align: center; }
.footer img { max-width: 100%; height: auto; }
.footer .row > div { margin-bottom: 14px; display: flex; align-items: center; justify-content: center; }
.age-note { margin: 18px 0 0; color: rgba(42, 33, 69, .75); font-size: .95rem; }

@media (max-width: 767px) {
    header { padding: 32px 0 16px; }
    .content article { padding: 22px 16px; }
    .content h1 { font-size: 1.75rem; }
    .content h2 { font-size: 1.45rem; }
    .content h3 { font-size: 1.2rem; }
    .button-large { font-size: 18px; }
    .cta .button { width: 100%; }
    .toc { padding: 16px 16px 8px; }
}

/* ---------- Таблиця рейтингу ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.rating-wrap { margin: 8px 0 24px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.rating-table { width: 100%; border-collapse: collapse; margin: 0; }
.rating-table thead th { background: var(--tint); border-bottom: 2px solid var(--accent); padding: 12px 16px; color: var(--ink); font-weight: 700; text-align: left; }
.rating-table td { padding: 14px 16px; vertical-align: middle; border-top: 1px solid var(--line); }
.rating-table tbody tr:first-child td { border-top: 0; }
.rating-table tr.is-best { background: rgba(245, 181, 61, .12); }
.rt-place { width: 48px; font-weight: 800; font-size: 1.2rem; color: var(--accent); }
.rt-casino { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; }
.rt-casino img { width: 160px; height: 80px; border-radius: 10px; border: 1px solid var(--line); object-fit: cover; }
.rt-name { font-weight: 700; font-size: 1.15rem; color: var(--ink); }
.badge-best { display: inline-block; background: var(--accent); color: #fff; font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; white-space: nowrap; }
.rt-rating { white-space: nowrap; }
.rt-rating strong { margin-left: 8px; font-size: 1.2rem; color: var(--ink); }
.stars {
    --r: 5;
    display: inline-block;
    font-size: 24px;
    line-height: 1;
    vertical-align: middle;
    background: linear-gradient(90deg, #f5a623 calc(var(--r) / 5 * 100%), #dcd3e6 calc(var(--r) / 5 * 100%));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.rt-play { text-align: right; width: 150px; }
.rt-play .button { display: inline-block; min-width: 110px; }
@media (max-width: 767px) {
    .rating-table thead { display: none; }
    .rating-table, .rating-table tbody, .rating-table tr, .rating-table td { display: block; width: 100%; }
    .rating-table td { border-top: 0; padding: 6px 16px; }
    .rating-table tr { padding: 12px 0; border-top: 1px solid var(--line); }
    .rating-table tbody tr:first-child { border-top: 0; }
    .rt-place { width: auto; padding-bottom: 0; }
    .rt-play { text-align: left; width: 100%; }
    .rt-play .button { display: block; }
}
@media (max-width: 767px) { .rating-table td.rt-casino { display: flex; } }
@media (max-width: 767px) {
    .rt-place { display: none; }
    .rating-table td.rt-casino { flex-direction: column; align-items: center; text-align: center; gap: 8px; }
    .rt-casino img { width: 100%; max-width: 320px; height: auto; aspect-ratio: 2 / 1; }
    .rt-rating { text-align: center; }
}
@media (max-width: 767px) { .rating-table td.rt-place { display: none; } }
