/* ==========================================================================
   Riobet Casino — Dark Theme
   riobet-qq.ru
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: #e0e0e0;
    background: #0a0e14;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: #2ecc71; text-decoration: none; transition: color .2s; }
a:hover { color: #27ae60; }
img { max-width: 100%; height: auto; display: block; }

/* Focus */
a:focus-visible, button:focus-visible, summary:focus-visible, .btn:focus-visible {
    outline: 2px solid #2ecc71;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Layout */
.wrap { max-width: 1200px; margin: 0 auto; }

/* ===== STICKY HEADER ===== */
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(15, 25, 35, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(46, 204, 113, 0.15);
    padding: 0 24px;
}
.topbar__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}
.topbar__logo { display: flex; align-items: center; gap: 10px; }
.topbar__logo-img { height: 32px; width: auto; }
.topbar__nav { display: flex; gap: 24px; }
.topbar__nav a { color: #a0aec0; font-size: 14px; font-weight: 500; transition: color .2s; }
.topbar__nav a:hover { color: #2ecc71; }
.topbar__right { display: flex; align-items: center; gap: 12px; }
.badge-age { background: #e53e3e; color: #fff; font-size: 10px; font-weight: 700; padding: 3px 7px; border-radius: 4px; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    padding: 11px 28px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: .6px;
    border: none;
    cursor: pointer;
    transition: transform .15s, box-shadow .2s;
    text-decoration: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(46, 204, 113, 0.3); color: #fff; }
.btn:active { transform: translateY(0); }
.btn--outline { background: transparent; border: 2px solid #2ecc71; color: #2ecc71; }
.btn--outline:hover { background: #2ecc71; color: #fff; }

/* ===== HERO ===== */
.hero {
    background: linear-gradient(135deg, #0f1923 0%, #1a2a3a 50%, #0f2318 100%);
    padding: 56px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -40%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(46, 204, 113, 0.08) 0%, transparent 70%);
    pointer-events: none;
}
.hero h1 {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.25;
    text-wrap: balance;
    position: relative;
}
.hero p { color: #a0aec0; font-size: 17px; margin-bottom: 24px; max-width: 700px; margin-left: auto; margin-right: auto; position: relative; }
.hero .btn { font-size: 16px; padding: 14px 40px; }

/* ===== STATS BAR ===== */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: rgba(46, 204, 113, 0.1);
    border-radius: 12px;
    overflow: hidden;
    margin: -28px 24px 32px;
    position: relative;
    z-index: 10;
}
.stats__item {
    background: #141e2b;
    padding: 20px 16px;
    text-align: center;
}
.stats__num { font-size: 22px; font-weight: 700; color: #2ecc71; }
.stats__label { font-size: 12px; color: #7a8a9e; margin-top: 4px; text-transform: uppercase; letter-spacing: .5px; }

/* ===== CONTENT ===== */
.content { padding: 32px 24px; }
.content--dark { background: #0f1923; }
.content--card { background: #141e2b; border-radius: 12px; padding: 32px; margin: 24px auto; max-width: 1200px; }

h2 {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin: 40px 0 18px;
    line-height: 1.3;
    text-wrap: balance;
    display: flex;
    align-items: center;
    gap: 10px;
}
h2::before { content: ''; width: 4px; height: 28px; background: #2ecc71; border-radius: 2px; flex-shrink: 0; }

h3 { font-size: 18px; font-weight: 600; color: #e0e0e0; margin: 28px 0 12px; }
p { margin-bottom: 14px; color: #b0bec5; }
ul, ol { margin: 12px 0 18px 28px; color: #b0bec5; }
li { margin-bottom: 8px; }
li strong { color: #e0e0e0; }

/* ===== INFO TABLE ===== */
.info-table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 24px 0; border-radius: 12px; overflow: hidden; }
.info-table td { padding: 13px 18px; font-size: 15px; border-bottom: 1px solid #1e2d3d; }
.info-table tr:last-child td { border-bottom: none; }
.info-table tr:nth-child(odd) { background: #141e2b; }
.info-table tr:nth-child(even) { background: #0f1923; }
.info-table td:first-child { font-weight: 500; color: #7a8a9e; width: 40%; }
.info-table td:last-child { color: #e0e0e0; }

/* ===== RTP TABLE ===== */
.rtp-table { width: 100%; border-collapse: collapse; margin: 16px 0 28px; font-size: 14px; }
.rtp-table th { background: #2ecc71; color: #0a0e14; padding: 12px 14px; text-align: left; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }
.rtp-table td { padding: 11px 14px; border-bottom: 1px solid #1e2d3d; color: #d0d0d0; font-variant-numeric: tabular-nums; }
.rtp-table tr:nth-child(even) { background: rgba(46, 204, 113, 0.03); }
.rtp-table tr:hover { background: rgba(46, 204, 113, 0.08); }

/* ===== VIP TABLE ===== */
.vip-table { width: 100%; border-collapse: collapse; margin: 16px 0 28px; font-size: 14px; }
.vip-table th { background: #1a2a3a; color: #2ecc71; padding: 12px 14px; text-align: left; font-weight: 700; font-size: 12px; text-transform: uppercase; }
.vip-table td { padding: 11px 14px; border-bottom: 1px solid #1e2d3d; color: #c0c0c0; vertical-align: top; font-variant-numeric: tabular-nums; }
.vip-table tr:nth-child(even) { background: rgba(255, 255, 255, 0.02); }
.vip-table tr:hover { background: rgba(46, 204, 113, 0.06); }

/* ===== SCREENSHOT ===== */
.screenshot { margin: 24px 0; text-align: center; }
.screenshot img { border-radius: 12px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4); }

/* ===== PROMO BANNER ===== */
.promo {
    background: linear-gradient(135deg, #0f2318 0%, #1a5c34 50%, #0f3520 100%);
    border: 1px solid rgba(46, 204, 113, 0.2);
    border-radius: 12px;
    padding: 36px;
    text-align: center;
    margin: 32px 0;
    position: relative;
    overflow: hidden;
}
.promo::after { content: ''; position: absolute; top: 0; right: 0; width: 200px; height: 200px; background: radial-gradient(circle, rgba(46, 204, 113, 0.15) 0%, transparent 70%); }
.promo h3 { color: #fff; margin: 0 0 8px; font-size: 22px; position: relative; z-index: 1; }
.promo p { color: rgba(255, 255, 255, 0.85); margin: 0 0 20px; position: relative; z-index: 1; }
.promo .btn { position: relative; z-index: 1; }

/* ===== FAQ ===== */
.faq { margin: 36px 0; }
.faq h2::before { display: none; }
.faq details { margin-bottom: 8px; border: 1px solid #1e2d3d; border-radius: 10px; overflow: hidden; transition: border-color .2s; }
.faq details:hover { border-color: rgba(46, 204, 113, 0.3); }
.faq summary { padding: 16px 20px; font-weight: 600; font-size: 15px; cursor: pointer; background: #141e2b; list-style: none; display: flex; justify-content: space-between; align-items: center; color: #e0e0e0; transition: background .2s; }
.faq summary:hover { background: #1a2a3a; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: #2ecc71; font-weight: 700; flex-shrink: 0; margin-left: 12px; }
.faq details[open] summary::after { content: "\2212"; }
.faq details[open] summary { border-bottom: 1px solid #1e2d3d; background: #1a2a3a; }
.faq-answer { padding: 16px 20px; font-size: 15px; color: #a0aec0; animation: fadeIn .2s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

/* ===== RG BLOCK ===== */
.rg-block {
    padding: 22px 24px;
    background: rgba(255, 193, 7, 0.08);
    border: 1px solid rgba(255, 193, 7, 0.25);
    border-radius: 10px;
    margin: 36px 0;
    font-size: 14px;
    color: #ffc107;
    line-height: 1.6;
}
.rg-block__title { display: block; margin-bottom: 10px; font-size: 16px; font-weight: 700; }

/* ===== FOOTER ===== */
.footer {
    background: #080c12;
    color: #5a6a7e;
    padding: 32px 24px;
    font-size: 13px;
    text-align: center;
    line-height: 1.7;
    border-top: 1px solid #1e2d3d;
}
.footer a { color: #2ecc71; }
.footer__license { margin-top: 8px; }
.footer__copy { margin-top: 12px; color: #3a4a5e; }
.badge-age--sm { font-size: 10px; padding: 2px 5px; }

/* ===== SCROLL TOP ===== */
.scroll-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 46px;
    height: 46px;
    background: #2ecc71;
    color: #0a0e14;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s, transform .2s;
    box-shadow: 0 4px 16px rgba(46, 204, 113, 0.3);
    z-index: 100;
}
.scroll-top.visible { opacity: 1; visibility: visible; }
.scroll-top:hover { transform: translateY(-3px); background: #27ae60; }

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
    html { scroll-behavior: auto; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .topbar { padding: 0 16px; }
    .topbar__inner { height: 52px; }
    .topbar__logo-img { height: 26px; }
    .topbar__nav { display: none; }
    .hero { padding: 40px 16px; }
    .hero h1 { font-size: 24px; }
    .hero p { font-size: 15px; }
    .stats { grid-template-columns: repeat(2, 1fr); margin: -20px 16px 24px; }
    .content { padding: 24px 16px; }
    .content--card { padding: 24px 16px; }
    h2 { font-size: 20px; }
    .info-table td { padding: 10px 12px; font-size: 14px; }
    .info-table td:first-child { width: 45%; }
    .promo { padding: 28px 20px; }
}

@media (max-width: 480px) {
    .topbar__logo-img { height: 22px; }
    .btn { padding: 10px 20px; font-size: 13px; }
    .hero h1 { font-size: 20px; }
    .hero .btn { padding: 12px 28px; font-size: 14px; }
    .stats { grid-template-columns: 1fr 1fr; }
    .stats__num { font-size: 18px; }
    h2 { font-size: 18px; }
    .rtp-table, .vip-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .faq summary { font-size: 14px; padding: 13px 14px; }
}
