/* OnlyPlay · canadaonlyplay.com
   Custom styles layered on top of Bootstrap 5
   Revised for higher contrast & readability (light theme)
*/

:root {
    --op-bg: #f3f4f6;
    --op-bg-soft: #e5e7eb;
    --op-surface: #ffffff;
    --op-surface-soft: #f9fafb;
    --op-border-subtle: rgba(148, 163, 184, 0.5);
    --op-accent: #0ea5e9;
    --op-accent-soft: rgba(14, 165, 233, 0.08);
    --op-accent-strong: #0369a1;
    --op-text-main: #0f172a;
    --op-text-muted: #6b7280;
    --op-pill-bg: #e5e7eb;
    --op-radius-lg: 18px;
    --op-radius-xl: 22px;
    --op-shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
}

/* Base background & text */

.bg-body {
    background:
        radial-gradient(circle at 10% 0%, rgba(56, 189, 248, 0.12), transparent 55%),
        radial-gradient(circle at 90% 100%, rgba(14, 165, 233, 0.1), transparent 55%),
        radial-gradient(circle at 0% 100%, rgba(251, 191, 36, 0.08), transparent 55%),
        var(--op-bg);
    color: var(--op-text-main);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
}

.resp-list {
    list-style: none;
    padding-left: 0;
    display: flex;
    gap: 5px;
    flex-wrap: nowrap;
    flex-direction: column;
}

.resp-list li {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}
.game-logo {
    position: relative;
    padding: 15px;
    margin-bottom: 15px;
    background: rgba(0, 86, 151, 0.05);
    border-radius: 10px;
}
.game-logo img {
    width: 100%;
}
section, section .container {
    position: relative;
}
.background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.18;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}
.background.hero {
    background-image: url(../img/hero.jpg);
}
.background.games {
    background-image: url(../img/background.jpg);
}
/* Body has class text-light in the HTML, but we want dark readable text */
.bg-body.text-light {
    color: var(--op-text-main) !important;
}

/* Make Bootstrap muted text readable on light background */
.text-muted {
    color: var(--op-text-muted) !important;
}

/* Navbar */

.main-nav {
    background: linear-gradient(to bottom, #0f172a, #111827);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.65);
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.navbar-brand .brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.brand-mark img {
    width: 100%;
}

.navbar-dark .navbar-nav .nav-link {
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #e5e7eb;
    opacity: 0.9;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: #ffffff;
}

/* 18+ Banner */

.age-banner {
    background: linear-gradient(90deg, #111827, #1d4ed8);
    border-bottom: 1px solid rgba(15, 23, 42, 0.7);
    font-size: 0.8rem;
    color: #e5e7eb;
}

.age-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid rgba(248, 250, 252, 0.85);
    font-size: 0.8rem;
    font-weight: 700;
}

.banner-note {
    max-width: 260px;
}

@media (max-width: 767.98px) {
    .banner-note {
        max-width: 100%;
    }
}

/* Hero */

.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 10% 0%, rgba(56, 189, 248, 0.18), transparent 55%),
        radial-gradient(circle at 90% 100%, rgba(59, 130, 246, 0.16), transparent 55%);
    opacity: 0.7;
    pointer-events: none;
}

.hero-section > .container {
    position: relative;
    z-index: 1;
}

.hero-slim {
    padding-top: 3.5rem !important;
    padding-bottom: 3rem !important;
}

.text-accent {
    color: var(--op-accent-strong);
}

.tracking-wide {
    letter-spacing: 0.16em;
}

.hero-panel {
    background: var(--op-surface);
    border-radius: var(--op-radius-xl);
    border: 1px solid var(--op-border-subtle);
    box-shadow: var(--op-shadow-soft);
    padding: 1.5rem 1.5rem 1.4rem;
}

/* Small bullets and dots */

.hero-list .bullet {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    display: inline-block;
    margin-right: 0.5rem;
    background: linear-gradient(to bottom right, #0ea5e9, #22c55e);
}

.dot-badge {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 0%, #0ea5e9, #22c55e);
    box-shadow: 0 0 0 6px rgba(56, 189, 248, 0.25);
}

.dot-badge.alt {
    background: radial-gradient(circle at 30% 0%, #22c55e, #a3e635);
    box-shadow: 0 0 0 6px rgba(74, 222, 128, 0.22);
}

/* Soft sections */

.section-soft {
    background: var(--op-surface-soft);
}

/* Info grid */

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.9rem;
}

.info-card {
    background: var(--op-surface);
    border-radius: var(--op-radius-lg);
    border: 1px solid var(--op-border-subtle);
    padding: 0.9rem 1rem;
}

.info-card .label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 0.2rem;
    color: var(--op-text-muted);
}

.info-card .value {
    font-size: 0.85rem;
    color: var(--op-text-main);
}

/* Game cards */

.game-card {
    position: relative;
    border-radius: var(--op-radius-xl);
    padding: 1.3rem 1.3rem 1.2rem;
    background: var(--op-surface);
    border: 1px solid var(--op-border-subtle);
    box-shadow: var(--op-shadow-soft);
    color: var(--op-text-main);
}

.game-card .game-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    background: var(--op-pill-bg);
    border: 1px solid var(--op-border-subtle);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--op-text-muted);
}

.game-card .game-pill.alt {
    border-color: rgba(34, 197, 94, 0.9);
}

.game-card .bullet.small {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    display: inline-block;
    margin-right: 0.35rem;
    background: var(--op-text-muted);
}

/* Game details */

.game-detail + .game-detail {
    margin-top: 2.5rem;
}

.game-detail .overline {
    letter-spacing: 0.16em;
}

/* Side panels */

.side-panel {
    background: var(--op-surface-soft);
    border-radius: var(--op-radius-lg);
    border: 1px dashed var(--op-border-subtle);
    padding: 1.1rem 1.2rem;
}

/* Checklist */

.checklist {
    background: var(--op-surface);
    border-radius: var(--op-radius-xl);
    border: 1px solid var(--op-border-subtle);
    padding: 1.25rem 1.35rem;
    box-shadow: var(--op-shadow-soft);
}

.checklist .check {
    display: inline-flex;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 1px solid rgba(34, 197, 94, 0.9);
    margin-right: 0.45rem;
    position: relative;
}

.checklist .check::after {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: inherit;
    background: linear-gradient(135deg, #22c55e, #a3e635);
}

/* CTA panel */

.cta-panel {
    border-radius: var(--op-radius-xl);
    border: 1px solid var(--op-border-subtle);
    background: var(--op-surface);
    padding: 1.4rem 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 768px) {
    .cta-panel {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

/* Auth cards & forms */

.auth-card {
    background: var(--op-surface);
    border-radius: var(--op-radius-xl);
    border: 1px solid var(--op-border-subtle);
    padding: 1.5rem 1.6rem;
    box-shadow: var(--op-shadow-soft);
    color: var(--op-text-main);
}

.demo-alert {
    border-radius: var(--op-radius-lg);
    border-style: dashed;
}

/* Make form fields readable & consistent */

.form-control,
.form-select,
textarea {
    background-color: var(--op-surface);
    color: var(--op-text-main);
    border-color: var(--op-border-subtle);
}

.form-control::placeholder,
textarea::placeholder {
    color: rgba(148, 163, 184, 0.9);
}

/* Buttons */

.btn-primary {
    background: linear-gradient(135deg, var(--op-accent-strong), var(--op-accent));
    border-color: transparent;
    color: #f9fafb;
    font-weight: 600;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0ea5e9, #22c55e);
    border-color: transparent;
    color: #f9fafb;
}

.btn-outline-light {
    border-radius: 999px;
    border-width: 1px;
}

/* Links & footer */

.text-link {
    color: var(--op-accent-strong);
    text-decoration: none;
}

.text-link:hover {
    color: #0ea5e9;
    text-decoration: underline;
}

.link-muted {
    color: var(--op-text-muted);
    text-decoration: none;
}

.link-muted:hover {
    color: var(--op-text-main);
    text-decoration: underline;
}

/* Badge tweak so text is visible */

.badge.bg-dark-subtle.text-light-subtle {
    background-color: #0f172a !important;
    color: #e5e7eb !important;
    border-color: rgba(148, 163, 184, 0.6) !important;
}

/* Footer */

.footer {
    background: #0f172a;
    color: #e5e7eb;
}

.footer .text-muted,
.footer .link-muted {
    color: #9ca3af !important;
}

.text-muted-weak {
    color: rgba(148, 163, 184, 0.9);
}

/* Accordion – keep text readable */

.accordion-item {
    background-color: transparent;
    border-color: var(--op-border-subtle);
}

.accordion-button {
    background-color: var(--op-surface);
    color: var(--op-text-main);
}

.accordion-button:not(.collapsed) {
    background-color: var(--op-surface-soft);
    color: var(--op-text-main);
    box-shadow: none;
}

/* Utilities */

.x-small {
    font-size: 0.7rem;
}

.section-soft + .border-top {
    border-color: var(--op-border-subtle) !important;
}

/* Disabled links */
.disabled-link {
    opacity: 0.4;
    pointer-events: none;
}

.footer-heading {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #9ca3af;
    margin-bottom: 0.6rem;
}

.footer-list li + li {
    margin-top: 0.2rem;
}

.footer-list a {
    color: #e5e7eb;
    text-decoration: none;
}

.footer-list a:hover {
    color: #0ea5e9;
    text-decoration: underline;
}

.footer-badges {
    align-items: center;
}

.footer-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.15rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(248, 250, 252, 0.9);
    background: #111827;
    color: #f9fafb;
    font-weight: 600;
    font-size: 0.8rem;
    height: 45px;
}

.footer-badge-link {
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(54, 57, 67, 0.8);
    border: 1px solid rgba(248, 250, 252, 0.9);
    color: #e5e7eb;
    text-decoration: none;
    height: 45px;
}

.footer-badge-link:hover {
    background: #0f172a;
    color: #0ea5e9;
}

.footer-link-disabled {
    cursor: default;
    opacity: 0.6;
    text-decoration: none;
}
.footer-badge-link img {
    height: 100%;
}

.legal-main {
    background: linear-gradient(180deg, #e5e7eb 0%, #f9fafb 40%, #e5e7eb 100%);
}

.legal-shell {
    max-width: 1040px;
    margin-inline: auto;
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
    padding: 2.2rem 2.1rem 2.4rem;
}

.legal-header {
    border-bottom: 1px solid rgba(148, 163, 184, 0.4);
    padding-bottom: 1.4rem;
    margin-bottom: 1.8rem;
}

.legal-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #9ca3af;
    margin-bottom: 0.4rem;
}

.legal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.25rem;
}

.legal-subtitle {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

.legal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.6rem;
}

.legal-meta > div {
    min-width: 180px;
}

.meta-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #9ca3af;
}

.meta-value {
    font-size: 0.85rem;
    color: #111827;
}

.legal-content {
    font-size: 0.95rem;
    line-height: 1.65;
    color: #111827;
}

.legal-content p {
    margin-bottom: 0.8rem;
}

.legal-content h2 {
    font-size: 1.05rem;
    margin-top: 1.4rem;
    margin-bottom: 0.4rem;
    font-weight: 600;
    color: #0f172a;
}

.legal-content h3 {
    font-size: 0.95rem;
    margin-top: 1rem;
    margin-bottom: 0.3rem;
    font-weight: 600;
    color: #111827;
}

.legal-content ul {
    padding-left: 1.25rem;
    margin-bottom: 0.8rem;
}

.legal-content li + li {
    margin-top: 0.2rem;
}

.legal-contact {
    background: #f1f5f9;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    padding: 0.7rem 0.9rem;
    font-size: 0.9rem;
}

.legal-note {
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 0.8rem;
}

.legal-aside {
    background: linear-gradient(145deg, #0f172a, #1f2937);
    color: #e5e7eb;
    border-radius: 18px;
    padding: 1.2rem 1.3rem;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.35);
}

.legal-aside h3 {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #bae6fd;
    margin-bottom: 0.6rem;
}

.legal-aside p {
    font-size: 0.85rem;
    margin-bottom: 0.6rem;
}

.legal-aside-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0.6rem;
    font-size: 0.85rem;
}

.legal-aside-list li {
    position: relative;
    padding-left: 1.1rem;
    margin-bottom: 0.25rem;
}

.legal-aside-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45rem;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #22c55e;
}

.legal-aside-foot {
    font-size: 0.8rem;
    color: #cbd5f5;
}

.legal-aside a {
    color: #38bdf8;
    text-decoration: none;
}

.legal-aside a:hover {
    text-decoration: underline;
}

@media (max-width: 767.98px) {
    .legal-shell {
        padding: 1.6rem 1.3rem 1.9rem;
    }

    .legal-meta {
        flex-direction: column;
    }
}