/* =====================================================
   Live RTP Theme — Main Stylesheet
   ===================================================== */

/* ---- 1. CSS Custom Properties (Design Tokens) ---- */
:root {
    --bg-base:          #050d1a;
    --bg-surface:       #0b1629;
    --bg-elevated:      #0f2040;
    --bg-nav:           #070f1e;
    --bg-card:          rgba(11, 22, 41, 0.75);

    --glass-border:     rgba(0, 229, 255, 0.15);
    --glass-border-hover: rgba(0, 229, 255, 0.4);
    --glass-bg:         rgba(11, 22, 41, 0.7);

    --accent-cyan:      #00e5ff;
    --accent-blue:      #2979ff;
    --accent-green:     #00ffc8;
    --accent-yellow:    #ffd600;
    --accent-red:       #ff1744;

    --bar-green:        #00ffc8;
    --bar-yellow:       #ffd600;
    --bar-red:          #ff1744;

    --text-primary:     #e0f4ff;
    --text-secondary:   #7ab8d4;
    --text-muted:       #4a7a91;

    --font-sans:        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    --radius-sm:        6px;
    --radius-md:        10px;
    --radius-card:      12px;
    --radius-modal:     18px;

    --shadow-card:      0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-card-hover: 0 8px 32px rgba(0, 229, 255, 0.18), 0 2px 8px rgba(0,0,0,0.5);
    --shadow-modal:     0 24px 80px rgba(0, 0, 0, 0.7);

    --transition-fast:  0.18s ease;
    --transition-med:   0.3s ease;
}

/* ---- 2. Reset & Base ---- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html { scroll-behavior: smooth; }
[hidden] { display: none !important; }

body {
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Preserve existing: no text selection on game cards */
    -webkit-touch-callout: none;
}

/* Allow text selection in content areas */
.single-game__content,
.game-info-table,
.page-article__content { user-select: text; }

a { color: var(--accent-cyan); text-decoration: none; }
a:hover { color: #fff; }

ul { list-style: none; }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb {
    background-color: var(--accent-red);
    border-radius: 8px;
}
::-webkit-scrollbar-track {
    background-color: #000;
}

/* ---- 3. Layout Utilities ---- */
.container {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 16px;
    padding-right: 16px;
}

/* ---- 4. Site Header ---- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(7, 15, 30, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    padding: 10px 0;
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.site-header__logo a {
    display: flex;
    align-items: center;
}

.site-header__logo-img {
    max-height: 70px;
    width: auto;
    border-radius: var(--radius-sm);
}

.site-header__site-name {
    font-size: 22px;
    font-weight: 800;
    color: var(--accent-cyan);
    letter-spacing: 1px;
}

.site-header__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Live pulsing badge */
.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 23, 68, 0.15);
    border: 1px solid rgba(255, 23, 68, 0.4);
    color: var(--accent-red);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
}

.live-badge__dot {
    width: 7px;
    height: 7px;
    background: var(--accent-red);
    border-radius: 50%;
    animation: pulse-dot 1.4s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.4; transform: scale(0.7); }
}

.site-header__date {
    font-size: 12px;
    color: var(--text-secondary);
}

/* ---- 5. Provider Navigation ---- */
.provider-nav {
    background: var(--bg-nav);
    border-bottom: 1px solid var(--glass-border);
    position: relative;
}

.provider-nav__track {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    cursor: grab;
    padding: 10px 16px;
    /* hide scrollbar but keep functionality */
    scrollbar-width: none;
}
.provider-nav__track::-webkit-scrollbar { display: none; }
.provider-nav__track:active { cursor: grabbing; }

.provider-nav__list {
    display: flex;
    gap: 6px;
    list-style: none;
    align-items: stretch;
    min-width: max-content;
}

/* Each nav item link */
.provider-nav__item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    padding: 6px 10px 7px;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    color: var(--text-secondary);
    text-decoration: none;
    transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
    scroll-snap-align: start;
    min-width: 62px;
    text-align: center;
    position: relative;
}

.provider-nav__item a:hover {
    background: var(--bg-elevated);
    border-color: var(--glass-border);
    color: var(--text-primary);
}

/* Active state */
.provider-nav__item.is-active a {
    background: rgba(0, 229, 255, 0.08);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.12);
}

.provider-nav__item.is-active a::after {
    content: '';
    position: absolute;
    bottom: -11px; /* touch bottom border of nav */
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 2px;
    background: var(--accent-cyan);
    border-radius: 2px 2px 0 0;
}

/* Provider thumbnail image */
.provider-nav__img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 6px;
    background: rgba(255,255,255,0.04);
}

/* Initials fallback (when no image) */
.provider-nav__initials {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid var(--glass-border);
}

.provider-nav__item.is-active .provider-nav__initials {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

/* Label + count */
.provider-nav__label {
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
    max-width: 72px;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.provider-nav__count {
    font-size: 9px;
    color: var(--text-muted);
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 1px 5px;
    line-height: 1.4;
}

.provider-nav__item.is-active .provider-nav__count {
    color: var(--accent-cyan);
    background: rgba(0, 229, 255, 0.08);
}

/* "All" special chip */
.provider-nav__item--all a {
    min-width: 54px;
    border: 1px solid var(--glass-border);
    background: rgba(255,255,255,0.03);
}

.provider-nav__chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.provider-nav__all-icon {
    font-size: 22px;
    line-height: 1;
}

.provider-nav__item--all.is-active a {
    background: rgba(0, 229, 255, 0.08);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

/* Ensure active underline doesn't overflow the nav container */
.provider-nav { overflow: hidden; }

/* Scroll arrow buttons */
.provider-nav__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 28px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(90deg, var(--bg-nav) 60%, transparent);
    border: none;
    color: var(--text-secondary);
    font-size: 22px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color var(--transition-fast);
}

.provider-nav__arrow:hover { color: var(--accent-cyan); }

.provider-nav__arrow--left  { left: 0; background: linear-gradient(90deg, var(--bg-nav) 60%, transparent); }
.provider-nav__arrow--right { right: 0; background: linear-gradient(270deg, var(--bg-nav) 60%, transparent); }

/* ---- 6. Page Intro ---- */
.page-intro {
    text-align: center;
    padding: 28px 0 16px;
}

.page-intro__title {
    font-size: clamp(20px, 4vw, 30px);
    color: #fff;
    margin-bottom: 6px;
}

.page-intro__cat { color: var(--accent-cyan); }

.page-intro__update {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.page-intro__desc {
    font-size: 13px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ---- 7. Search Form ---- */
.search-form {
    display: flex;
    max-width: 400px;
    margin: 12px auto 20px;
}

.search-form input[type="search"] {
    flex: 1;
    background: var(--bg-elevated);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    color: var(--text-primary);
    padding: 10px 14px;
    font-size: 14px;
    outline: none;
}

.search-form input[type="search"]::placeholder { color: var(--text-muted); }
.search-form input[type="search"]:focus { border-color: var(--accent-cyan); }

.search-form button[type="submit"],
.search-form input[type="submit"] {
    background: var(--accent-blue);
    border: none;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    color: #fff;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.search-form button[type="submit"]:hover { background: var(--accent-cyan); color: #000; }

/* ---- 8. RTP Card Grid ---- */
.rtp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    padding-bottom: 24px;
}

/* ---- 9. RTP Card ---- */
.rtp-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-card);
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    user-select: none;
    -webkit-user-select: none;
    outline: none;
}

.rtp-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--glass-border-hover);
}

.rtp-card:focus-visible {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 2px;
}

.rtp-card__link { display: block; }

.rtp-card__thumb {
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--bg-elevated);
}

.rtp-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

.rtp-card:hover .rtp-card__thumb img { transform: scale(1.05); }

.rtp-card__thumb-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        var(--bg-elevated) 25%,
        rgba(0, 229, 255, 0.06) 50%,
        var(--bg-elevated) 75%
    );
    background-size: 200% 100%;
    animation: thumb-shimmer 1.8s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(0, 229, 255, 0.18);
    font-size: 28px;
}
.rtp-card__thumb-placeholder::before {
    content: '🎰';
    filter: grayscale(1) opacity(0.25);
}
@keyframes thumb-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Show shimmer behind the img while it loads */
.rtp-card__thumb { background: var(--bg-elevated); }

.rtp-card__info { padding: 6px 8px 8px; }

.rtp-card__provider {
    font-size: 9px;
    font-weight: 700;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
    opacity: 0.8;
}

.rtp-card__name {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 5px;
}

/* RTP Bar */
.rtp-card__bar-wrap {
    position: relative;
    height: 26px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    overflow: hidden;
}

.rtp-card__bar {
    position: absolute;
    inset-block: 0;
    left: 0;
    height: 100%;
    border-radius: 4px;
    background-image: repeating-linear-gradient(
        45deg,
        rgba(255,255,255,0.1) 0px,
        rgba(255,255,255,0.1) 4px,
        transparent 4px,
        transparent 8px
    );
    animation: bar-stripes 1s linear infinite;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.rtp-card__bar--green  { background-color: var(--bar-green); }
.rtp-card__bar--yellow { background-color: var(--bar-yellow); }
.rtp-card__bar--red    { background-color: var(--bar-red); }

.rtp-card__pct {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.85);
    z-index: 2;
    pointer-events: none;
    text-shadow: 0 1px 2px rgba(255,255,255,0.2);
}

@keyframes bar-stripes {
    from { background-position-x: 0; }
    to   { background-position-x: 16px; }
}

/* ---- 10. RTP Now Bar (larger, used in single + modal) ---- */
.rtp-now-bar-wrap {
    position: relative;
    height: 36px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm);
    overflow: hidden;
    width: 100%;
}

.rtp-now-bar {
    position: absolute;
    inset-block: 0;
    left: 0;
    height: 100%;
    border-radius: var(--radius-sm);
    background-image: repeating-linear-gradient(
        45deg,
        rgba(255,255,255,0.12) 0px,
        rgba(255,255,255,0.12) 4px,
        transparent 4px,
        transparent 8px
    );
    animation: bar-stripes 1s linear infinite;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.rtp-now-bar--green  { background-color: var(--bar-green); }
.rtp-now-bar--yellow { background-color: var(--bar-yellow); }
.rtp-now-bar--red    { background-color: var(--bar-red); }

.rtp-now-pct {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 800;
    color: rgba(0, 0, 0, 0.85);
    z-index: 2;
    pointer-events: none;
}

/* ---- 11. Modal Overlay ---- */
.rtp-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(5, 13, 26, 0.88);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.rtp-modal-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}

/* ---- 12. Modal Box ---- */
.rtp-modal {
    position: relative;
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-modal);
    padding: 24px;
    width: min(580px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-modal);
    transform: translateY(24px);
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.rtp-modal-overlay.is-visible .rtp-modal {
    transform: translateY(0);
}

.rtp-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(255,255,255,0.08);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
    padding: 0;
}

.rtp-modal__close:hover { background: rgba(255,23,68,0.2); color: var(--accent-red); }

.rtp-modal__header {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 18px;
    padding-right: 40px;
}

.rtp-modal__thumb {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    flex-shrink: 0;
    background: var(--bg-elevated);
}

.rtp-modal__game-title {
    font-size: 17px;
    color: var(--accent-cyan);
    margin-bottom: 3px;
}

.rtp-modal__subtitle {
    font-size: 12px;
    color: var(--text-muted);
}

/* ---- 13. Game Info Table ---- */
.game-info-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-bottom: 18px;
}

.game-info-table th,
.game-info-table td {
    padding: 9px 10px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.game-info-table th {
    width: 36%;
    color: var(--text-secondary);
    font-weight: 600;
    white-space: nowrap;
}

.game-info-table td { color: var(--text-primary); }

.game-info-table tr:last-child th,
.game-info-table tr:last-child td { border-bottom: none; }

.pola-content { line-height: 1.9; letter-spacing: 0.5px; }

/* Pola Slot Strategy — new 3-phase format */
.pola-strategy {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    line-height: 1.5;
}
.pola-phase {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.pola-phase__num {
    font-size: 15px;
    line-height: 1.3;
    flex-shrink: 0;
}
.pola-stop {
    margin-top: 4px;
    padding: 5px 10px;
    background: rgba(255,255,255,0.05);
    border-radius: 6px;
    font-size: 12px;
    color: var(--text-secondary);
}
.risk--low    { color: var(--bar-green); }
.risk--medium { color: var(--bar-yellow); }
.risk--high   { color: var(--bar-red); }

.jam-content .jam-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid var(--glass-border);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-cyan);
}

/* ---- 14. RTP Badge ---- */
.rtp-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 16px;
}

.rtp-badge--green  { background: rgba(0, 255, 200, 0.12); color: var(--bar-green); border: 1px solid rgba(0,255,200,0.25); }
.rtp-badge--yellow { background: rgba(255, 214, 0, 0.12); color: var(--bar-yellow); border: 1px solid rgba(255,214,0,0.25); }
.rtp-badge--red    { background: rgba(255, 23, 68, 0.12); color: var(--bar-red); border: 1px solid rgba(255,23,68,0.25); }

/* Modal rtp badge (no explicit class, set by JS) */
#modal-rtp-value {
    font-size: 22px;
    font-weight: 800;
    color: var(--bar-green);
}

/* ---- 15. Chart Section ---- */
.rtp-modal__chart-section {
    margin-bottom: 18px;
}

.rtp-modal__chart-title {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-weight: 600;
}

.rtp-modal__chart-wrap {
    position: relative;
    background: rgba(0,0,0,0.2);
    border-radius: var(--radius-md);
    padding: 12px;
    border: 1px solid var(--glass-border);
    min-height: 160px;
}

.chart-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    height: 140px;
}

.chart-loading__spinner {
    width: 18px;
    height: 18px;
    border: 2px solid var(--glass-border);
    border-top-color: var(--accent-cyan);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ---- 16. Modal Footer ---- */
.rtp-modal__footer {
    border-top: 1px solid var(--glass-border);
    padding-top: 16px;
}

.rtp-modal__footer small {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 12px;
    line-height: 1.5;
}

.rtp-modal__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ---- 17. Button System ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: var(--transition-fast);
    letter-spacing: 0.3px;
    text-align: center;
    line-height: 1;
}

.btn--primary {
    background: linear-gradient(135deg, var(--accent-blue), #1565c0);
    color: #fff;
    box-shadow: 0 4px 14px rgba(41, 121, 255, 0.35);
}

.btn--primary:hover {
    background: linear-gradient(135deg, var(--accent-cyan), #00b8d4);
    color: #000;
    box-shadow: 0 6px 20px rgba(0, 229, 255, 0.35);
}

.btn--ghost {
    background: rgba(255,255,255,0.06);
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
}

.btn--ghost:hover { background: rgba(255,255,255,0.12); color: #fff; }

.btn--large { padding: 14px 32px; font-size: 16px; }

/* ---- 18. Single Game Page ---- */
.site-main--single { padding: 20px 0 40px; }

.breadcrumbs-wrap {
    margin-bottom: 14px;
    font-size: 13px;
    color: var(--text-muted);
}

.single-game__title {
    font-size: clamp(20px, 4vw, 28px);
    text-align: center;
    margin-bottom: 6px;
}

.single-game__subtitle {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.single-game__layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 28px;
    align-items: start;
    margin-bottom: 32px;
}

.single-game__img {
    width: 100%;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
}

.single-rtp-now { margin-bottom: 16px; }

.single-rtp-now__label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.game-info-table--single { margin-bottom: 14px; }

.single-game__note {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.5;
}

/* ---- 19. RTP History Chart (single page) ---- */
.rtp-history-chart {
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-card);
    padding: 20px;
    margin-bottom: 28px;
}

.rtp-history-chart__title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.rtp-history-chart__wrap {
    background: rgba(0,0,0,0.2);
    border-radius: var(--radius-md);
    padding: 12px;
}

.rtp-history-chart__empty {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    padding: 20px 0;
}

/* ---- 20. Post Content Area ---- */
.site-content {
    color: var(--text-primary);
    background-color: #670000;
    padding: 20px;
    border-radius: var(--radius-md);
}

.site-content a { color: #e5ee55; background-color: #670000; }
.site-content h1, .site-content h2, .site-content h3, .site-content h4 {
    color: #e5ee55;
    text-align: center;
    margin: 16px 0 8px;
}

blockquote {
    quotes: "\201C" "\201D" "\2018" "\2019";
    color: #b9b9b9;
    text-align: center;
    margin-bottom: 25px;
}
blockquote::before { content: open-quote; }
blockquote::after  { content: close-quote; }

/* ---- 21. Article Section (home center sidebar) ---- */
.article-section { padding: 24px 0; }

/* ---- 22. Pagination ---- */
.pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 20px 0;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition-fast);
}

.pagination .page-numbers:hover { background: var(--bg-elevated); color: var(--accent-cyan); border-color: var(--glass-border-hover); }
.pagination .page-numbers.current { background: var(--accent-blue); color: #fff; border-color: var(--accent-blue); }
.pagination .page-numbers.dots { background: transparent; border-color: transparent; }

/* ---- 23. Site Banner ---- */
.site-banner {
    text-align: center;
    padding: 16px 0 0;
}

.site-banner img {
    max-width: 100%;
    border-radius: var(--radius-card);
    margin: 0 auto;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.3);
}

/* ---- 24. Site Footer ---- */
.site-footer {
    background: var(--bg-nav);
    border-top: 1px solid var(--glass-border);
    padding: 20px 0;
    margin-top: 32px;
}

.site-footer__inner { text-align: center; }

.site-footer__copy {
    font-size: 13px;
    color: var(--text-muted);
}

.site-footer__copy a { color: var(--text-secondary); }
.site-footer__copy a:hover { color: var(--accent-cyan); }

/* ---- 25. Floating Action Buttons ---- */

.floating-actions {
    position: fixed;
    bottom: 24px;
    right: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 900;
}

.floating-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--text-primary);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.floating-btn:hover,
.floating-btn:focus-visible {
    background: var(--bg-elevated);
    transform: translateY(-3px);
    box-shadow: 0 6px 22px rgba(0, 229, 255, 0.25);
    outline: none;
}

.floating-btn--top {
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
}

/* ---- 26. 404 Page ---- */
.error-404 {
    text-align: center;
    padding: 80px 0;
}

.error-404__code {
    font-size: 100px;
    font-weight: 900;
    color: var(--glass-border);
    line-height: 1;
    margin-bottom: 16px;
}

.error-404__title { font-size: 28px; margin-bottom: 12px; }

.error-404__desc {
    color: var(--text-secondary);
    margin-bottom: 28px;
    font-size: 15px;
}

/* ---- 27. Admin styles (inline, loaded for logged-in users) ---- */
.admin-bar .site-header { top: 32px; }

/* ---- 28. Live activity popup ---- */
._lw{position:fixed;top:-120px;left:50%;transform:translateX(-50%);z-index:9998;background:var(--glass-bg);border:1px solid var(--glass-border);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-radius:14px;padding:12px 14px 12px 16px;display:flex;align-items:center;gap:12px;max-width:360px;width:calc(100% - 32px);box-shadow:0 8px 32px rgba(0,0,0,.55);transition:top .45s cubic-bezier(.34,1.56,.64,1),opacity .4s;opacity:0;pointer-events:none;}
._lw-v{top:76px;opacity:1;pointer-events:auto;}
._lw-i{font-size:24px;flex-shrink:0;line-height:1;}
._lw-m{flex:1;font-size:12.5px;line-height:1.45;color:var(--text-primary);}
._lw-m b{color:var(--accent-cyan);}
._lw-m span{font-weight:600;}
._lw-m small{color:var(--text-secondary);font-size:11px;}
._lw-x{background:none;border:none;color:var(--text-secondary);cursor:pointer;font-size:20px;padding:0 0 0 8px;flex-shrink:0;line-height:1;transition:color .15s;}
._lw-x:hover{color:var(--text-primary);}
@media(max-width:600px){._lw-v{top:64px;max-width:calc(100% - 24px);}}

/* ---- 29. Responsive ---- */

/* Tablet: 2–3 cols */
@media (max-width: 900px) {
    .single-game__layout {
        grid-template-columns: 1fr;
    }
    .rtp-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

/* Mobile: small grid, simpler header */
@media (max-width: 600px) {
    .rtp-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    .rtp-card__provider { font-size: 8px; }
    .rtp-card__name { font-size: 9px; }
    .site-header__date { display: none; }
    .rtp-modal { padding: 18px; }
    .rtp-modal__header { flex-direction: column; text-align: center; padding-right: 36px; }
    .rtp-modal__thumb { align-self: center; }
}

@media (max-width: 380px) {
    .rtp-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* High DPI */
@media (min-width: 1400px) {
    .rtp-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
}

/* =====================================================
   NEW FEATURES: Hot Section, Random Picker, RTP Search
   ===================================================== */

/* ---- Section divider ---- */
.section-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0 16px;
}
.section-divider__line {
    flex: 1;
    height: 1px;
    background: var(--glass-border);
}
.section-divider__label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* ---- Hot Section ---- */
.hot-sections { margin: 20px 0 8px; }

.hot-section {
    margin-bottom: 24px;
}

.hot-section__header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.hot-section__icon { font-size: 20px; line-height: 1; }

.hot-section__title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.hot-section__badge {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.2px;
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: uppercase;
}
.hot-section__badge--fire  { background: rgba(255,71,0,0.15); color: #ff6b35; border: 1px solid rgba(255,71,0,0.3); }
.hot-section__badge--view  { background: rgba(0,229,255,0.1);  color: var(--accent-cyan);  border: 1px solid var(--glass-border); }

.hot-section__track-wrap {
    position: relative;
}

.hot-section__track {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    scrollbar-width: none;
}
.hot-section__track::-webkit-scrollbar { display: none; }

/* Hot cards are slightly narrower so you can see more */
.hot-card {
    min-width: 120px;
    max-width: 130px;
    flex-shrink: 0;
    scroll-snap-align: start;
}

.hot-card__badge {
    position: absolute;
    top: 5px;
    left: 5px;
    font-size: 14px;
    z-index: 3;
    pointer-events: none;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.5));
}

.hot-card__views {
    font-size: 10px;
    color: var(--text-muted);
    margin-bottom: 3px;
    margin-top: -2px;
}

/* ---- Random Picker ---- */
.random-picker {
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-card);
    padding: 22px 24px;
    margin: 20px 0;
    position: relative;
    overflow: hidden;
}

/* Subtle background glow */
.random-picker::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 80% 50%, rgba(41,121,255,0.06) 0%, transparent 65%);
    pointer-events: none;
}

.random-picker__header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}
.random-picker__icon { font-size: 32px; line-height: 1; }
.random-picker__title { font-size: 18px; margin: 0 0 3px; }
.random-picker__subtitle { font-size: 13px; color: var(--text-secondary); margin: 0; }

.random-picker__controls {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.picker-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 180px;
}

.picker-field__label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 5px;
}

.picker-field__select {
    background: var(--bg-elevated);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    padding: 10px 12px;
    font-size: 14px;
    width: 100%;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237ab8d4' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}
.picker-field__select:focus { outline: none; border-color: var(--accent-cyan); }

/* Slider */
.picker-slider-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}
.picker-slider-min, .picker-slider-max {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
}

.picker-field__slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-cyan) 0%, var(--accent-blue) 100%);
    border-radius: 4px;
    outline: none;
    cursor: pointer;
}
.picker-field__slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--accent-cyan);
    box-shadow: 0 0 8px rgba(0,229,255,0.5);
    cursor: grab;
    border: 2px solid var(--bg-base);
    transition: transform var(--transition-fast);
}
.picker-field__slider::-webkit-slider-thumb:active { cursor: grabbing; transform: scale(1.2); }
.picker-field__slider::-moz-range-thumb {
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--accent-cyan);
    border: 2px solid var(--bg-base);
    cursor: grab;
}

.picker-slider-ticks {
    display: flex;
    justify-content: space-between;
    padding: 0 2px;
    margin-top: 2px;
}
.picker-slider-ticks span {
    font-size: 9px;
    color: var(--text-muted);
}

.picker-rtp-display {
    color: var(--accent-cyan);
    font-size: 15px;
    margin-left: 4px;
}

/* Spin button */
.btn--spin {
    background: linear-gradient(135deg, #7b2ff7, #4a00e0);
    color: #fff;
    padding: 12px 28px;
    font-size: 15px;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(123,47,247,0.35);
    white-space: nowrap;
    align-self: flex-end;
}
.btn--spin:hover {
    background: linear-gradient(135deg, #9d4bff, #6a00e0);
    transform: scale(1.03);
}
.btn--spin:active { transform: scale(0.97); }

.btn--spin-again {
    padding: 9px 18px;
    font-size: 13px;
    background: linear-gradient(135deg, rgba(123,47,247,0.3), rgba(74,0,224,0.3));
    border: 1px solid rgba(123,47,247,0.4);
}

/* Result area */
.picker-result {
    margin-top: 20px;
    border-top: 1px solid var(--glass-border);
    padding-top: 20px;
}

/* Dice spin animation */
.picker-dice-wrap {
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.picker-dice {
    font-size: 56px;
    display: inline-block;
    animation: dice-roll 0.35s linear infinite;
    filter: drop-shadow(0 0 14px rgba(0, 229, 255, 0.55));
}
@keyframes dice-roll {
    0%   { transform: rotate(0deg)   scale(1);   }
    25%  { transform: rotate(90deg)  scale(1.15); }
    50%  { transform: rotate(180deg) scale(1);   }
    75%  { transform: rotate(270deg) scale(1.15); }
    100% { transform: rotate(360deg) scale(1);   }
}
.picker-dice__label {
    font-size: 13px;
    color: var(--text-secondary);
    letter-spacing: 0.4px;
    margin: 0;
}

/* Result card layout */
.picker-result__card {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 20px;
    align-items: start;
    animation: result-reveal 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes result-reveal {
    from { opacity: 0; transform: scale(0.93) translateY(10px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.picker-result__thumb-wrap {
    position: relative;
    border-radius: var(--radius-card);
    overflow: hidden;
}
.picker-result__thumb {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
}
.picker-result__rtp-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 12px 8px 8px;
    text-align: center;
}
.picker-result__rtp-value {
    font-size: 26px;
    font-weight: 900;
    color: var(--bar-green);
    text-shadow: 0 0 10px rgba(0,255,200,0.5);
}

.picker-result__name {
    font-size: 20px;
    margin-bottom: 4px;
    color: var(--accent-cyan);
}
.picker-result__provider {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
}
.picker-result__bar-wrap {
    margin-bottom: 12px;
}
.picker-result__jam {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 14px;
}
.picker-result__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}
.picker-result__found {
    font-size: 11px;
    color: var(--text-muted);
}

.picker-result__error {
    text-align: center;
    padding: 20px 0;
    color: var(--accent-red);
}
.picker-error__icon { font-size: 28px; display: block; margin-bottom: 8px; }

/* ---- RTP Search Bar ---- */
.rtp-search-bar { margin-bottom: 20px; }

.rtp-search-bar__inner {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-card);
    padding: 12px 16px;
}

.rtp-search-bar__field {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 160px;
}
.rtp-search-bar__field--keyword { min-width: 200px; flex: 2; }
.rtp-search-bar__field--range { min-width: 200px; gap: 6px; }

.rtp-search-bar__icon { font-size: 16px; color: var(--text-muted); flex-shrink: 0; }
.rtp-search-bar__range-label { font-size: 12px; color: var(--text-muted); white-space: nowrap; }

.rtp-search-bar__input {
    flex: 1;
    background: var(--bg-elevated);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    padding: 9px 12px;
    font-size: 14px;
    outline: none;
    width: 100%;
}
.rtp-search-bar__input::placeholder { color: var(--text-muted); }
.rtp-search-bar__input:focus { border-color: var(--accent-cyan); }

.rtp-search-bar__select {
    background: var(--bg-elevated);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    padding: 9px 12px;
    font-size: 13px;
    cursor: pointer;
    outline: none;
    flex: 1;
}
.rtp-search-bar__select--sm { flex: 0 0 auto; padding: 9px 8px; font-size: 12px; }
.rtp-search-bar__select:focus { border-color: var(--accent-cyan); }

.rtp-search-bar__btn { padding: 9px 20px; flex-shrink: 0; }
.rtp-search-bar__reset { padding: 9px 16px; font-size: 13px; flex-shrink: 0; }

/* Search results */
.rtp-search-results {
    padding-top: 14px;
}
.rtp-search-results__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--text-secondary);
}
.rtp-search-results__close {
    background: none;
    border: none;
    color: var(--accent-red);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    padding: 0;
}
.rtp-search-results__close:hover { text-decoration: underline; }
.rtp-search-results__loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 30px 0;
    font-size: 14px;
    color: var(--text-muted);
}
.rtp-search-results__empty {
    text-align: center;
    padding: 30px 0;
    font-size: 15px;
    color: var(--text-muted);
}
.rtp-search-results__pagination {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 16px 0;
}
.rtp-search-results__pagination button {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}
.rtp-search-results__pagination button:hover { background: var(--bg-elevated); color: var(--accent-cyan); }
.rtp-search-results__pagination button.active { background: var(--accent-blue); color: #fff; border-color: var(--accent-blue); }

/* ---- Autocomplete dropdown ---- */
.rtp-ac-wrap { position: relative; flex: 2; display: flex; align-items: center; gap: 6px; min-width: 200px; }

.rtp-ac-list {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    z-index: 600;
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.55);
    overflow: hidden;
    overflow-y: auto;
    max-height: 340px;
    list-style: none;
    padding: 4px 0;
}

.rtp-ac__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.rtp-ac__item:hover,
.rtp-ac__item.is-active {
    background: var(--bg-elevated);
}

.rtp-ac__item img {
    width: 56px;
    height: 42px;
    object-fit: cover;
    border-radius: 5px;
    flex-shrink: 0;
    background: var(--bg-elevated);
}

.rtp-ac__placeholder {
    width: 56px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    border-radius: 5px;
    font-size: 20px;
    flex-shrink: 0;
    filter: grayscale(1) opacity(0.4);
}

.rtp-ac__name {
    font-size: 13px;
    color: var(--text-primary);
    line-height: 1.35;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Responsive adjustments for new features */
@media (max-width: 600px) {
    .random-picker__controls { flex-direction: column; }
    .picker-field { min-width: 100%; }
    .picker-result__card { grid-template-columns: 1fr; }
    .picker-result__thumb-wrap { max-width: 220px; margin: 0 auto; }
    .rtp-search-bar__inner { flex-direction: column; align-items: stretch; }
    .rtp-search-bar__field { min-width: 100%; }
    .hot-card { min-width: 100px; max-width: 110px; }
}
