/* ==========================================================================
   Casino Starter — Footer Styles
   Light texts: var(--footer-heading, #fff) — set by a footer colour (Customizer) / footer style, not by the primary colour
   ========================================================================== */

.site-footer {
    background: var(--color-dark);
    color: rgba(255, 255, 255, 0.7);
    margin-top: var(--space-3xl);
}

/* --- Footer Main (widgets area) --- */
.site-footer__main {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--space-2xl) var(--space-md);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
}

.footer-widget__title {
    color: var(--footer-heading, #fff);
    font-family: var(--font-heading);
    font-size: var(--text-base);
    font-weight: var(--weight-bold);
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-widget li {
    margin-bottom: var(--space-sm);
}

.footer-widget a {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--text-sm);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-widget a:hover {
    color: var(--color-cta);
}

/* Widgets the owner adds to the footer (classic and block widgets) look like the footer:
   light headings, muted text and links, lists without bullets, search field + button. */
.footer-widget {
    min-width: 0;
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.7);
}
.footer-widget h1, .footer-widget h2, .footer-widget h3,
.footer-widget h4, .footer-widget h5, .footer-widget h6,
.footer-widget .wp-block-heading,
.footer-widget .wp-block-search__label {
    color: var(--footer-heading, #fff);
    font-family: var(--font-heading);
    font-size: var(--text-base);
    font-weight: var(--weight-bold);
    line-height: 1.3;
    margin: 0 0 var(--space-md);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.footer-widget p { margin: 0 0 var(--space-sm); }
.footer-col { display: flex; flex-direction: column; gap: var(--space-lg); min-width: 0; } /* widgets of one column */
.footer-widget .wp-block-group > * + * { margin-top: 0; }
.footer-widget ul ul { margin: var(--space-sm) 0 0 var(--space-md); }
.footer-widget li { color: rgba(255, 255, 255, 0.55); }  /* post counts "(3)" next to the links */
.footer-widget .wp-block-latest-comments { padding: 0; margin: 0; }
.footer-widget .wp-block-latest-comments__comment { margin-bottom: var(--space-sm); line-height: 1.5; }
.footer-widget time,
.footer-widget .wp-block-latest-posts__post-date,
.footer-widget .post-date { display: block; font-size: var(--text-xs); color: rgba(255, 255, 255, 0.45); }
.footer-widget select {
    width: 100%;
    max-width: 100%;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.06);
    color: var(--footer-heading, #fff);
    font: inherit;
}
.footer-widget select option { color: #1a1a2e; }

/* Search: classic widget (.search-form) and block (.wp-block-search) */
.footer-widget .search-form,
.footer-widget .wp-block-search__inside-wrapper {
    display: flex;
    gap: 8px;
    width: 100%;
    border: 0;
    padding: 0;
}
.footer-widget .search-form label { flex: 1; min-width: 0; margin: 0; }
.footer-widget .search-form .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.footer-widget .search-field,
.footer-widget .wp-block-search__input,
.footer-widget input[type="search"] {
    flex: 1;
    min-width: 0;
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.06);
    color: var(--footer-heading, #fff);
    font: inherit;
    font-size: var(--text-sm);
}
.footer-widget .search-field::placeholder,
.footer-widget .wp-block-search__input::placeholder { color: rgba(255, 255, 255, 0.45); }
.footer-widget .search-field:focus,
.footer-widget .wp-block-search__input:focus {
    outline: 2px solid var(--color-cta);
    outline-offset: 1px;
    border-color: transparent;
}
.footer-widget .search-submit,
.footer-widget .wp-block-search__button,
.footer-widget input[type="submit"] {
    flex: 0 0 auto;
    height: 40px;
    margin: 0;
    padding: 0 16px;
    border: 0;
    border-radius: var(--radius-sm);
    background: var(--color-cta);
    color: #1a1a2e;
    font: inherit;
    font-size: var(--text-sm);
    font-weight: var(--weight-bold);
    cursor: pointer;
}
.footer-widget .search-submit:hover,
.footer-widget .wp-block-search__button:hover { filter: brightness(1.05); }

/* --- Responsible Gambling Banner --- */
.responsible-gambling {
    background: var(--color-dark-lighter);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.responsible-gambling__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--space-lg) var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.responsible-gambling__icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    opacity: 0.8;
}

.responsible-gambling__text {
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
}

.responsible-gambling__text strong {
    color: var(--footer-heading, #fff);
    display: block;
    margin-bottom: var(--space-xs);
}

.responsible-gambling__text a {
    color: var(--color-cta);
    text-decoration: underline;
}

/* --- Footer menu columns (Appearance → Menus → Footer column 1–3; layouts "stack" and "minimal") --- */
.footer-menus {
    display: grid;
    grid-template-columns: repeat(var(--footer-menus, 3), minmax(0, 1fr));
    gap: var(--space-lg) var(--space-xl);
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--space-xl) var(--space-md) var(--space-lg);
}
.footer-menus--1 { --footer-menus: 1; }
.footer-menus--2 { --footer-menus: 2; }
.footer-menus__title {
    margin: 0 0 var(--space-sm);
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: var(--weight-bold, 700);
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--footer-heading, #fff);
}
.footer-menus__list { margin: 0; padding: 0; list-style: none; font-size: var(--text-sm); }
.footer-menus__list li { margin: 0 0 6px; }
.footer-menus__list a { color: var(--footer-text, rgba(255, 255, 255, 0.7)); text-decoration: none; overflow-wrap: anywhere; }
.footer-menus__list a:hover { color: var(--footer-heading, #fff); text-decoration: underline; }
@media screen and (max-width: 640px) {
    .footer-menus { grid-template-columns: minmax(0, 1fr); gap: var(--space-md); padding-top: var(--space-lg); }
}

/* --- Footer Bottom (copyright + social) --- */
.site-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer__bottom-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--space-lg) var(--space-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.copyright {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.5);
}

.copyright a {
    color: rgba(255, 255, 255, 0.7);
}

.copyright a:hover {
    color: var(--color-cta);
}

/* --- Social Links --- */
.social-links {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.social-links__title {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.5);
    margin-right: var(--space-sm);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    transition: all var(--transition-fast);
}

.social-link:hover {
    background: var(--color-cta);
    color: var(--color-text);
    transform: translateY(-2px);
}

.social-link svg {
    width: 18px;
    height: 18px;
}

/* --- Footer Nav (for bottom links like privacy, sitemap) --- */
.footer-nav {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin: 0;
    padding: 0;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.5);
    font-size: var(--text-sm);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-nav a:hover {
    color: var(--color-cta);
}

/* --- Responsible Gambling Help Links --- */
.rg-links {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--space-md) var(--space-md) var(--space-lg);
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    justify-content: center;
}

.rg-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.rg-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--footer-heading, #fff);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.rg-link__icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    opacity: 0.8;
}

.rg-link__label {
    white-space: nowrap;
}

/* ==========================================================================
   Author / Casino Expert Box (E-E-A-T)
   ========================================================================== */
/* Same style as the casino data block: bold heading with an icon above a
   white card with a thin border */
.author-box {
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-xl);
}

.author-box__header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin: 0 0 10px;
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: var(--weight-bold);
    line-height: 1.25;
    color: var(--color-text);
}

.author-box__header-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--color-primary);
}

.author-box__body {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    display: flex;
    gap: var(--space-lg);
    padding: var(--space-lg);
    align-items: flex-start;
}

.author-box__avatar {
    flex-shrink: 0;
}

.author-box__img {
    width: 96px;
    height: 96px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 3px solid var(--color-border);
}

.author-box__info {
    flex: 1;
    min-width: 0;
}

.author-box__name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.author-box__name {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: var(--weight-bold);
    color: var(--color-text);
    text-decoration: none;
    line-height: 1.2;
}

.author-box__name:hover {
    color: var(--color-primary);
}

.author-box__verified-icon {
    flex-shrink: 0;
    display: block;
}

.author-box__jobtitle {
    display: inline-block;
    font-size: 11px;
    font-weight: var(--weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    background: var(--color-primary, #0a2463);
    color: var(--color-on-primary);
    border-radius: var(--radius-sm);
    white-space: nowrap;
}

.author-box__experience {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    color: var(--color-success, #28a745);
    margin-bottom: 10px;
    padding: 4px 12px;
    background: rgba(40, 167, 69, 0.08);
    border-radius: var(--radius-sm);
}

.author-box__experience svg {
    flex-shrink: 0;
    opacity: 0.8;
}

.author-box__bio {
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
    color: var(--color-text-secondary);
    margin-bottom: 12px;
}

.author-box__expertise {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.author-box__expertise-label {
    font-size: 11px;
    font-weight: var(--weight-bold);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 2px;
}

.author-box__tag {
    display: inline-block;
    font-size: 11px;
    font-weight: var(--weight-semibold);
    padding: 3px 10px;
    background: var(--color-light-bg, #f0f2f8);
    color: var(--color-primary, #0a2463);
    border: 1px solid var(--color-border, #dde0e8);
    border-radius: 100px;
    white-space: nowrap;
    line-height: 1.4;
}

.author-box__links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.author-box__link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: var(--weight-semibold);
    padding: 5px 12px;
    border-radius: 6px;
    text-decoration: none;
    line-height: 1;
    transition: opacity 0.2s ease, transform 0.15s ease;
}

.author-box__link:hover {
    transform: translateY(-1px);
    opacity: 0.9;
}

.author-box__link svg {
    flex-shrink: 0;
}

.author-box__link--linkedin {
    background: #0077b5;
    color: #fff;
}

.author-box__link--twitter {
    background: #14171a;
    color: #fff;
}

.author-box__link--twitch,
.author-hero__link--twitch {
    background: #9146ff;
    color: #fff;
}

.author-box__link--kick,
.author-hero__link--kick {
    background: #53fc18;
    color: #000;
}

.author-box__link--web {
    background: var(--color-light-bg, #f0f0f0);
    color: var(--color-primary, #0a2463);
    border: 1px solid var(--color-border, #ddd);
}

.author-box__factcheck {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    padding-top: 10px;
    border-top: 1px solid var(--color-border, #eee);
}

.author-box__factcheck svg {
    color: var(--color-success, #28a745);
    flex-shrink: 0;
}

.author-box__factcheck-name {
    font-weight: var(--weight-semibold);
    color: var(--color-primary, #0a2463);
    text-decoration: none;
}

.author-box__factcheck-name:hover {
    text-decoration: underline;
}

.author-box__factcheck-role {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    font-weight: var(--weight-normal, 400);
}

.post-meta-badge__item--reviewed {
    background: rgba(40, 167, 69, 0.08);
    color: var(--color-success, #28a745);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-weight: var(--weight-semibold);
}

/* Corrections / Change Log */
.corrections-log {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-top: var(--space-xl);
    margin-bottom: var(--space-lg);
}

.corrections-log__header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: var(--weight-bold);
    color: var(--color-text);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--color-border);
}

.corrections-log__header svg {
    color: var(--color-text-muted);
    flex-shrink: 0;
}

.corrections-log__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.corrections-log__item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 0;
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    border-bottom: 1px solid var(--color-border-light, rgba(0,0,0,0.05));
}

.corrections-log__item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.corrections-log__item svg {
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--color-text-muted);
    opacity: 0.5;
}

@media screen and (max-width: 600px) {
    .author-box__body {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-md);
    }

    .author-box__img {
        width: 72px;
        height: 72px;
    }

    .author-box__name {
        font-size: var(--text-lg);
    }

}

/* ==========================================================================
   FAQ Block (Shortcode)
   ========================================================================== */
.faq-block {
    margin: var(--space-xl) 0;
}

.faq-item {
    border: 1px solid var(--color-border, #e0e0e0);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    overflow: hidden;
    background: var(--color-surface);
    transition: box-shadow 0.2s;
}

.faq-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.faq-item__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: var(--text-base);
    font-weight: var(--weight-semibold);
    color: var(--color-text, #1a1a2e);
    text-align: left;
    gap: 12px;
    line-height: 1.4;
}

.faq-item__question:hover {
    color: var(--color-primary, #0a2463);
}

.faq-item__icon {
    flex-shrink: 0;
    transition: transform 0.3s ease;
    opacity: 0.5;
}

.faq-item.is-open .faq-item__icon {
    transform: rotate(180deg);
    opacity: 1;
}

.faq-item__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.faq-item__answer > div {
    padding: 0 20px 16px;
    color: var(--color-text-secondary, #555);
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed, 1.7);
}

.faq-item__answer p:last-child {
    margin-bottom: 0;
}

/* ============================================================
   Closed Casino Explanation Banner & Alternatives
   ============================================================ */
.casino-closed-banner {
    background: #fff8f8;
    border: 2px solid #ef4444;
    border-radius: var(--radius-lg, 12px);
    padding: 24px;
    margin: 0 auto 28px;
    max-width: 960px;
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.08);
}

.casino-closed-banner__top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.casino-closed-banner__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ef4444;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 4px;
}

.casino-closed-banner__title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #991b1b;
    margin: 0;
    line-height: 1.3;
}

.casino-closed-banner__desc {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #4b5563;
    margin: 0 0 20px;
}

.casino-closed-banner__alternatives {
    background: #ffffff;
    border: 1px solid #fee2e2;
    border-radius: var(--radius-md, 8px);
    padding: 18px;
}

.casino-closed-banner__alt-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    font-size: 0.95rem;
    color: #1f2937;
    flex-wrap: wrap;
}

.casino-closed-banner__alt-star {
    color: #f59e0b;
    font-size: 1.1rem;
}

.casino-closed-banner__alt-sub {
    color: #6b7280;
    font-size: 0.85rem;
    font-weight: normal;
}

.casino-closed-banner__alt-grid {
    display: grid;
    /* min(…, 100%): a column is never wider than the box (a long bonus must not widen the page) */
    grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
    gap: 14px;
}

/* Compact Alternative Casino Card */
.casino-alt-card {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px 14px;
    transition: transform 0.15s, box-shadow 0.15s;
}

.casino-alt-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border-color: #cbd5e1;
}

.casino-alt-card__logo-wrap {
    width: 60px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.casino-alt-card__logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.casino-alt-card__logo-placeholder {
    width: 36px;
    height: 36px;
    background: #0a2463;
    color: #ffffff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 14px;
}

.casino-alt-card__details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.casino-alt-card__title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.casino-alt-card__rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: #6b7280;
}

.casino-alt-card__bonus {
    font-size: 0.78rem;
    font-weight: 600;
    color: #059669;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.casino-alt-card__action {
    flex-shrink: 0;
}

.casino-alt-card__btn {
    white-space: nowrap;
    font-size: 0.8rem;
    padding: 6px 12px;
}

/* Bonus hero closed state */
.bonus-hero--closed {
    border-top: 4px solid #ef4444;
}

.bonus-hero--closed .bonus-hero__logo {
    filter: grayscale(30%);
}

/* ============================================================
   Closed Casino Pop-up Modal
   ============================================================ */
.casino-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.casino-modal[hidden] {
    display: none !important;
}

.casino-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.casino-modal__backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 36, 99, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    cursor: pointer;
    z-index: 1;
}

.casino-modal__dialog {
    position: relative;
    z-index: 2;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
    width: 100%;
    max-width: 580px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 32px 28px 24px;
    box-sizing: border-box;
    transform: scale(0.95) translateY(10px);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.casino-modal.is-open .casino-modal__dialog {
    transform: scale(1) translateY(0);
}

.casino-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: #f3f4f6;
    border: none;
    font-size: 24px;
    line-height: 1;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
}

.casino-modal__close:hover {
    background: #e5e7eb;
    color: #111827;
}

.casino-modal__header {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f3f4f6;
}

.casino-modal__status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fee2e2;
    color: #dc2626;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 12px;
    border-radius: 100px;
    margin-bottom: 12px;
}

.casino-modal__title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #111827;
    margin: 0 0 10px;
    line-height: 1.3;
}

.casino-modal__desc {
    font-size: 0.92rem;
    line-height: 1.5;
    color: #4b5563;
    margin: 0;
}

.casino-modal__alt-heading {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 14px;
    font-size: 0.95rem;
    color: #111827;
}

.casino-modal__alt-icon {
    color: #f59e0b;
}

.casino-modal__alt-subtitle {
    font-size: 0.82rem;
    color: #6b7280;
    font-weight: normal;
}

.casino-modal__items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.casino-modal__item {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px 16px;
    transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.casino-modal__item:hover {
    transform: translateY(-2px);
    border-color: #cbd5e1;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
}

.casino-modal__item-media {
    width: 80px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.casino-modal__item-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.casino-modal__item-logo-placeholder {
    width: 44px;
    height: 44px;
    background: #0a2463;
    color: #ffffff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 18px;
}

.casino-modal__item-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.casino-modal__item-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.casino-modal__item-stars {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: #6b7280;
}

.casino-modal__item-bonus {
    font-size: 0.85rem;
    color: #059669;
    font-weight: 600;
    line-height: 1.2;
}

.casino-modal__item-spins {
    display: inline-block;
    background: #e6f4ea;
    color: #137333;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 4px;
}

.casino-modal__item-btn {
    padding: 8px 16px;
    font-size: 0.85rem;
    white-space: nowrap;
}

.casino-modal__footer {
    text-align: center;
    padding-top: 14px;
    border-top: 1px solid #f3f4f6;
}

.casino-modal__disclaimer {
    font-size: 11px;
    color: #9ca3af;
    letter-spacing: 0.3px;
}

@media (max-width: 600px) {
    .casino-modal__dialog {
        padding: 24px 18px 18px;
    }
    .casino-modal__item {
        grid-template-columns: 72px minmax(0, 1fr); /* logo column as wide as the logo box: no overlap */
        gap: 10px 12px;
        padding: 12px;
    }
    .casino-modal__item-media { width: 72px; height: 40px; }
    .casino-modal__item-bonus { overflow-wrap: anywhere; }
    .casino-modal__item-action {
        grid-column: 1 / -1;
    }
    .casino-modal__item-btn {
        width: 100%;
        text-align: center;
        padding: 10px;
    }
    .casino-closed-banner {
        padding: 18px 14px;
    }
    .casino-closed-banner__alt-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Alternatives on a closed casino page, phones: logo | name, stars, bonus (wraps); the button full width below */
@media (max-width: 480px) {
    .casino-closed-banner__alternatives { padding: 14px 12px; }
    .casino-alt-card {
        display: grid;
        grid-template-columns: 64px minmax(0, 1fr);
        column-gap: 12px;
        row-gap: 10px;
        padding: 12px;
    }
    .casino-alt-card__logo-wrap { width: 64px; height: 40px; }
    .casino-alt-card__bonus { white-space: normal; overflow: visible; overflow-wrap: anywhere; line-height: 1.3; }
    .casino-alt-card__action { grid-column: 1 / -1; }
    .casino-alt-card__btn { display: block; width: 100%; text-align: center; padding: 10px; font-size: 0.9rem; }
}
