/* Consent banner — deliberately standalone (own tokens, no dependency on
   style.css) so the same file works if copied into a game bundle that
   doesn't share the portal's stylesheet. */
#slopz-consent-banner {
    --sc-bg: #13141f;
    --sc-border: #34364d;
    --sc-text: #f9faff;
    --sc-muted: #aaadbe;
    --sc-accent: #a892ff;
    --sc-btn: #6842ff;

    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20000;
    max-height: 85vh;
    overflow-y: auto;
    background: var(--sc-bg);
    border-top: 1px solid var(--sc-border);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.4);
    color: var(--sc-text);
    font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    animation: slopz-consent-in 0.25s ease;
}

#slopz-consent-banner:focus {
    outline: none;
}

@keyframes slopz-consent-in {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.slopz-consent-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    align-items: flex-end;
    gap: 20px;
    flex-wrap: wrap;
}

.slopz-consent-copy {
    flex: 1 1 420px;
    min-width: 0;
}

.slopz-consent-title {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 700;
}

.slopz-consent-text {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
}

.slopz-consent-text a {
    color: var(--sc-accent);
    text-decoration: underline;
}

.slopz-consent-options {
    margin: 12px 0 0;
    padding: 0;
    border: none;
    display: grid;
    gap: 8px;
}

.slopz-consent-options[hidden],
.slopz-consent-btn[hidden] {
    display: none;
}

.slopz-consent-legend {
    padding: 0;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 700;
}

.slopz-consent-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    line-height: 1.45;
    color: var(--sc-muted);
    cursor: pointer;
}

.slopz-consent-option strong {
    color: var(--sc-text);
}

.slopz-consent-option input {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin: 1px 0 0;
    accent-color: var(--sc-btn);
}

.slopz-consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex: 0 0 auto;
    margin-left: auto;
}

.slopz-consent-btn {
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 10px 16px;
    min-height: 40px;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.slopz-consent-btn:focus-visible,
.slopz-consent-option input:focus-visible,
.slopz-consent-text a:focus-visible {
    outline: 2px solid #c6ff4a;
    outline-offset: 2px;
}

/* "Reject all" and "Accept all" are styled identically on purpose: refusing
   has to be exactly as easy and as prominent as agreeing. */
.slopz-consent-reject,
.slopz-consent-accept,
.slopz-consent-save {
    background: var(--sc-btn);
    color: #ffffff;
}

.slopz-consent-reject:hover,
.slopz-consent-accept:hover,
.slopz-consent-save:hover {
    filter: brightness(1.15);
}

.slopz-consent-customize {
    background: transparent;
    color: var(--sc-text);
    border-color: var(--sc-border);
}

.slopz-consent-customize:hover {
    border-color: var(--sc-muted);
}

@media (max-width: 600px) {
    .slopz-consent-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .slopz-consent-copy {
        flex-basis: auto;
    }

    .slopz-consent-actions {
        margin-left: 0;
    }

    .slopz-consent-btn {
        flex: 1 1 40%;
    }
}

@media (prefers-reduced-motion: reduce) {
    #slopz-consent-banner {
        animation: none;
    }
}
