html, body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    height: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41MDk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred.";
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* ----- Off-canvas layout ----- */
.page {
    position: relative;
    height: 100%;
    max-width: 100%;
    overflow: hidden;
    display: block;
}

main,
.main-content {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-left: 0;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    box-sizing: border-box;
    transition: margin-left 0.2s ease, width 0.2s ease;
}

.top-row {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
    padding-left: 3.5rem;
    min-width: 0;
    box-sizing: border-box;
    overflow: hidden;
    flex-shrink: 0;
}

    .top-row a {
        color: #2563eb;
        text-decoration: none;
        font-weight: 600;
        max-width: 14rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.nav-toggle {
    position: fixed;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 1100;
    width: 2.5rem;
    height: 2.5rem;
    border: 0;
    border-radius: 0.5rem;
    background: #1e1b4b;
    color: #fff;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}

    .nav-toggle:hover {
        background: #312e81;
    }

.nav-toggle-icon {
    display: block;
}

/* Static-safe off-canvas: checkbox drawer (works on Account/Login SSR) */
.al-nav-checkbox {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
label.nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}
.al-nav-icon-close { display: none; }
.page:has(#al-nav-toggle:checked) .al-nav-icon-open { display: none; }
.page:has(#al-nav-toggle:checked) .al-nav-icon-close { display: block; }
.nav-backdrop {
    display: none;
}
.page:has(#al-nav-toggle:checked) .nav-backdrop {
    display: block;
}
.page:has(#al-nav-toggle:checked) .sidebar {
    transform: translateX(0);
}


.nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 15, 30, 0.45);
    z-index: 1040;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 250px;
    max-width: 85vw;
    z-index: 1050;
    background-image: linear-gradient(180deg, #0b1c3d 0%, #2b0b45 70%);
    color: #fff;
    transform: translateX(-105%);
    transition: transform 0.22s ease;
    overflow: hidden;
    box-shadow: 4px 0 24px rgba(0, 0, 0, .2);
}

.nav-open .sidebar,
.page:has(#al-nav-toggle:checked) .sidebar {
    transform: translateX(0);
}

.nav-scrollable {
    height: auto;
    max-height: calc(100vh - 3.5rem);
    overflow-y: auto;
}

@media (min-width: 992px) {
    .nav-open main,
    .nav-open .main-content,
    .page:has(#al-nav-toggle:checked) main,
    .page:has(#al-nav-toggle:checked) .main-content {
        margin-left: 250px;
        width: calc(100% - 250px);
        max-width: calc(100% - 250px);
    }

    .nav-open .nav-backdrop,
    .page:has(#al-nav-toggle:checked) .nav-backdrop {
        display: none;
    }

    .top-row,
    article {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}

/* Under 992px the hamburger (.nav-toggle) is position:fixed at top-left while the page scrolls inside .main-content;
   once the top bar scrolled away the button sat on top of page content. Keep the top bar (which reserves 3.5rem
   on the left for the button) pinned at the top of the scroll container so the button always sits over it. */
@media (max-width: 991.98px) {
    .main-content > .top-row {
        position: sticky;
        top: 0;
        z-index: 1030;
    }
}

.navbar-brand {
    font-size: 1.2rem;
    color: #fff !important;
    font-weight: 600;
}

/* Sidebar / phone-drawer brand (NavMenu): text only, one line ("Arcade Lore" signed out, "Arcade Lore Ops" signed in).
   Left padding leaves room for the fixed menu / X button. Ellipsis only as a fallback on extremely narrow screens. */
.sidebar-brand {
    height: 3.5rem;
    display: flex;
    align-items: center;
    min-width: 0;
    padding: 0 1rem 0 3.4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

    .sidebar-brand a {
        display: block;
        flex: 0 1 auto;
        min-width: 0;
        color: #fff !important;
        font-weight: 700;
        font-size: 1.15rem;
        line-height: 1.2;
        text-decoration: none;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 359.98px) {
    .sidebar-brand a {
        font-size: 1.05rem;
    }
}

.nav-item {
    font-size: 0.95rem;
    padding-bottom: 0.4rem;
    padding-left: 0.35rem;
}

    .nav-item ::deep a,
    .nav-item a {
        color: #d7d7d7;
        border-radius: 6px;
        height: 2.8rem;
        display: flex;
        align-items: center;
        line-height: 2.8rem;
        text-decoration: none;
        padding-left: 1.15rem;
        margin: 0 0.75rem 0 0.35rem;
    }

        .nav-item ::deep a.active,
        .nav-item a.active,
        .sidebar a.active {
            background-color: rgba(255, 255, 255, 0.25);
            color: #fff !important;
        }

        .nav-item ::deep a:hover,
        .nav-item a:hover {
            background-color: rgba(255, 255, 255, 0.12);
            color: white;
        }

.sidebar a {
    color: #e5e7eb !important;
}

.content {
    padding-top: 1.5rem;
}

/* ----- Forms / tables / buttons ----- */
.btn {
    display: inline-block;
    padding: 0.4rem 0.85rem;
    border-radius: 6px;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: #2563eb;
    color: #fff;
}

.btn-secondary {
    background: #e5e7eb;
    color: #111827;
}

.btn-outline-secondary {
    background: transparent;
    border-color: #9ca3af;
    color: #374151;
}

.btn-sm {
    font-size: 0.85rem;
    padding: 0.25rem 0.6rem;
}

.form-control,
.form-select {
    width: 100%;
    padding: 0.5rem 0.7rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
}

.form-label {
    font-weight: 600;
    margin-bottom: 0.3rem;
    display: block;
}

.form-check-input {
    width: 1.1em !important;
    height: 1.1em !important;
    margin-top: 0.2em;
}

/* Bootstrap switches need their 2em track: the square 1.1em rule above squeezed them into a circle, so an ON switch
   looked like an empty ring and an OFF switch like a grey dot. */
.form-switch .form-check-input {
    width: 2em !important;
    height: 1em !important;
    flex-shrink: 0;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.alert {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin: 1rem 0;
}

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
}

.table {
    border-collapse: collapse;
    width: 100%;
    margin-top: 1rem;
}

    .table th,
    .table td {
        padding: 0.7rem 0.8rem;
        border-bottom: 1px solid #e5e7eb;
        text-align: left;
    }

.table-dark th {
    background: #111827;
    color: white;
}

/* ----- Marketing / catalog ----- */
.hero {
    background: linear-gradient(135deg, #0b1c3d 0%, #2b0b45 55%, #7c3aed 100%);
    color: white;
    border-radius: 16px;
    padding: 4rem 2rem;
    margin-top: 1rem;
    overflow: hidden;
}

.hero-kicker {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    opacity: 0.85;
    margin-bottom: 0.5rem;
}

.hero h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    margin-bottom: 1rem;
}

.hero-sub {
    max-width: 40rem;
    font-size: 1.1rem;
    opacity: 0.92;
    margin-bottom: 1.75rem;
}

.hero-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

    .hero-stats div {
        display: flex;
        flex-direction: column;
    }

    .hero-stats strong {
        font-size: 1.4rem;
    }

    .hero-stats span {
        opacity: 0.85;
        font-size: 0.9rem;
    }

.hero-dots {
    display: flex;
    gap: 0.5rem;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
}

    .hero-dot.active {
        background: #fff;
    }

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
    gap: 1.25rem;
    align-items: center;
}

.hero-visual {
    position: relative;
    min-width: 0;
    max-width: 420px;
    margin-left: auto;
    margin-right: 0;
}

.visual-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    width: 100%;
}

    .visual-card img {
        width: 100%;
        height: 220px;
        object-fit: cover;
        display: block;
    }

.visual-caption {
    padding: 0.9rem 1rem 1.1rem;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

    .visual-caption span {
        opacity: 0.8;
        font-size: 0.9rem;
    }

.visual-quote {
    margin: 0.65rem 0 0;
    padding: 0.55rem 0.75rem;
    background: #fff;
    color: #111827;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: anywhere;
}

@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        max-width: 100%;
        margin: 0;
    }

    .visual-card img {
        height: 200px;
    }
}

.feature-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.75rem 1.25rem;
    height: 100%;
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.cta-band {
    background: linear-gradient(135deg, #0b1c3d, #7c3aed);
    color: white;
    padding: 3.5rem 1rem;
    border-radius: 16px;
    margin: 0 1rem 2rem;
}

    .cta-band h2 {
        font-weight: 800;
    }

.machine-card {
    border: none;
    overflow: hidden;
}

.machine-photo,
.detail-main-photo,
.detail-thumb {
    object-fit: cover;
    object-position: center;
    background: #e5e7eb;
}

.machine-photo {
    height: 200px;
}

/* Watermarked card photos (Components/Shared/WmPhoto.cs): the server already crops to the card's aspect, so anchor any
   remaining object-fit: cover crop to the bottom-right and the Arcade Lore corner icon is never cut off. */
img.wm-br {
    object-position: 100% 100% !important;
}

.detail-main-photo {
    width: 100%;
    height: 380px;
    max-height: 420px;
    cursor: zoom-in;
}

.detail-thumb {
    width: 72px;
    height: 72px;
    cursor: pointer;
}

.thumb-btn.active-thumb img {
    outline: 3px solid #2563eb;
}

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 1.5rem;
}

    .lightbox img {
        max-width: 95vw;
        max-height: 90vh;
        object-fit: contain;
        border-radius: 8px;
    }

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    background: transparent;
    border: none;
    color: white;
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
}

.social-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    align-items: center;
    font-size: 0.95rem;
}

    .social-row a {
        font-weight: 600;
    }

.social-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.metric-pill {
    background: #f3f4f6;
    color: #111;
    border-radius: 999px;
    padding: 0.35rem 0.8rem;
    text-decoration: none;
    font-size: 0.9rem;
}

.metric-pill span {
    margin-left: 0.4rem;
    color: #4b5563;
}
/* ----- Wide hero: photo larger and further left ----- */
@media (min-width: 993px) {
    .hero-grid {
        grid-template-columns: minmax(0, 1fr) minmax(340px, 1fr);
        gap: 1.75rem;
    }

    .hero-visual {
        max-width: 560px;
        margin-left: 0;
        margin-right: auto;
        justify-self: start;
    }

    .visual-card img {
        height: 280px;
    }
}

/* ----- Mobile: menu drops from the top ----- */
@media (max-width: 992px) {
    .sidebar {
        top: 0;
        left: 0;
        right: 0;
        bottom: auto;
        width: 100%;
        max-width: 100%;
        height: auto;
        max-height: 85vh;
        transform: translateY(-110%);
        box-shadow: 0 12px 28px rgba(0, 0, 0, .35);
    }

    .nav-open .sidebar,
    .page:has(#al-nav-toggle:checked) .sidebar {
        transform: translateY(0);
    }

    .nav-scrollable {
        height: auto;
        max-height: calc(85vh - 3.5rem);
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        max-width: 100%;
        margin: 0;
    }
}
/* ----- Flyer builder + letter print ----- */
.flyer-builder { max-width: 52rem; }
.flyer-pick-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0.65rem; }
.flyer-pick { display: flex; align-items: center; gap: 0.65rem; padding: 0.5rem 0.7rem; border: 1px solid #e5e7eb; border-radius: 10px; cursor: pointer; background: #fff; }
.flyer-pick.is-selected { border-color: #7c3aed; background: #f5f3ff; }
.flyer-pick img { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; background: #e5e7eb; }
.flyer-pick span { display: flex; flex-direction: column; line-height: 1.2; }
.flyer-pick small { color: #6b7280; }
.flyer-toolbar { display: flex; gap: 0.75rem; margin: 0.75rem 0 1rem; }
.print-shell { min-height: 100vh; background: #e5e7eb; padding: 1rem; }
.flyer-sheet { width: 8.5in; min-height: 11in; margin: 0 auto; padding: 0.45in 0.5in 0.4in; box-sizing: border-box; display: flex; flex-direction: column; color: #fff; position: relative; overflow: hidden; }
.flyer-sheet::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(to bottom, transparent 0 3px, rgba(255,255,255,0.03) 3px 4px); mix-blend-mode: overlay; }
.flyer-head, .flyer-grid, .flyer-foot, .flyer-empty { position: relative; z-index: 1; }
.flyer-head { text-align: center; margin-bottom: 0.35in; }
.flyer-kicker { text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.72rem; margin: 0 0 0.35rem; opacity: 0.85; }
.flyer-head h1 { font-size: 2.4rem; font-weight: 800; letter-spacing: 0.04em; margin: 0 0 0.2rem; text-transform: uppercase; }
.flyer-tagline { font-size: 1.15rem; font-weight: 700; margin: 0.15rem 0; }
.flyer-sub { margin: 0.2rem auto 0; max-width: 6.4in; opacity: 0.9; }
.flyer-empty { text-align: center; margin: 1.5rem 0; }
.flyer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.22in; flex: 1; }
.flyer-grid:has(.flyer-card:nth-child(5)) { grid-template-columns: 1fr 1fr 1fr; }
.flyer-card { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.22); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.flyer-card img { width: 100%; height: 1.55in; object-fit: cover; background: #111; display: block; }
.flyer-card-body { padding: 0.45rem 0.55rem 0.55rem; }
.flyer-card-body h2 { font-size: 0.95rem; margin: 0 0 0.15rem; font-weight: 800; }
.flyer-type { margin: 0 0 0.35rem; font-size: 0.78rem; opacity: 0.85; }
.flyer-badges { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.flyer-badges span { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 0.12rem 0.4rem; border-radius: 999px; }
.badge-rent { background: #22d3ee; color: #082f49; }
.badge-vend { background: #a3e635; color: #1a2e05; }
.badge-sale { background: #f472b6; color: #4a044e; }
.flyer-foot { display: flex; align-items: center; gap: 0.9rem; margin-top: 0.35in; padding-top: 0.25in; border-top: 1px solid rgba(255,255,255,0.25); }
.flyer-qr { text-align: center; }
.flyer-qr img { width: 140px; height: 140px; background: #fff; padding: 6px; border-radius: 8px; display: block; }
.flyer-qr p { margin: 0.35rem 0 0; font-size: 0.78rem; font-weight: 700; }
.flyer-contact { display: flex; flex-direction: column; gap: 0.15rem; font-size: 0.92rem; }
.flyer-contact strong { font-size: 1.15rem; }
.venue-bar { background: radial-gradient(circle at 15% 10%, rgba(34,211,238,0.35), transparent 40%), radial-gradient(circle at 90% 80%, rgba(255,43,214,0.4), transparent 42%), linear-gradient(160deg, #050816 0%, #1b0b3a 55%, #3b0764 100%); }
.venue-bar .flyer-head h1 { color: #67e8f9; text-shadow: 0 0 12px rgba(34,211,238,0.7), 0 0 2px #fff; }
.venue-restaurant { background: radial-gradient(circle at 80% 15%, rgba(245,193,108,0.35), transparent 38%), linear-gradient(165deg, #2a0b10 0%, #4a1510 50%, #7c2d12 100%); }
.venue-restaurant .flyer-head h1 { color: #fde68a; text-shadow: 0 0 10px rgba(245,193,108,0.55); }
.venue-restaurant .badge-rent { background: #fde68a; color: #78350f; }
.venue-retail { background: radial-gradient(circle at 20% 80%, rgba(244,114,182,0.4), transparent 42%), linear-gradient(150deg, #1e0533 0%, #6b21a8 58%, #db2777 100%); }
.venue-retail .flyer-head h1 { color: #fbcfe8; text-shadow: 0 0 14px rgba(244,114,182,0.7); }
@media print {
    @page { size: letter; margin: 0.4in; }
    html, body {
        background: #fff !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        height: auto !important;
        overflow: visible !important;
    }
    .no-print, .nav-toggle, .sidebar, .nav-backdrop, .top-row, .flyer-toolbar, .flyer-builder, .qr-toolbar { display: none !important; }
    .print-shell { background: transparent; padding: 0; }
    .page, main, .main-content, article.content, .content {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        display: block !important;
        position: static !important;
    }
    .flyer-sheet { width: 100%; min-height: 10.2in; box-shadow: none; page-break-after: avoid; }
}

.top-row form {
    display: flex;
    align-items: center;
    margin: 0;
}

.top-row a + a,
.top-row form {
    margin-left: 1.25rem;
}

.top-row button.nav-link {
    color: #2563eb;
    background: none;
    border: none;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.flyer-template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.55rem;
}
.flyer-template {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.7rem 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    background: #fff;
}
.flyer-template.is-selected {
    border-color: #7c3aed;
    background: #f5f3ff;
}
.flyer-template input { margin-bottom: 0.15rem; }
.flyer-template small { color: #6b7280; line-height: 1.25; }

.flyer-logo {
    width: 1.35in;
    height: 1.35in;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    margin: 0 auto 0.18in;
    box-shadow: 0 0 22px rgba(34, 211, 238, 0.55);
    background: #2e1065;
}
.flyer-logo-foot {
    width: 0.85in;
    height: 0.85in;
    object-fit: cover;
    border-radius: 50%;
    margin-left: auto;
    background: #2e1065;
    box-shadow: 0 0 12px rgba(34, 211, 238, 0.4);
}
.flyer-head h1 { display: none; }

.venue-houseparty {
    background: radial-gradient(circle at 80% 20%, rgba(251, 113, 133, 0.45), transparent 40%),
        linear-gradient(155deg, #3b0764 0%, #6d28d9 50%, #db2777 100%);
}
.venue-houseparty .flyer-tagline { color: #fda4af; }

.venue-birthday {
    background: radial-gradient(circle at 15% 80%, rgba(250, 204, 21, 0.35), transparent 42%),
        linear-gradient(160deg, #4c0519 0%, #9d174d 48%, #fb7185 100%);
}
.venue-birthday .flyer-tagline { color: #fde68a; }

.venue-office {
    background: radial-gradient(circle at 85% 75%, rgba(34, 211, 238, 0.28), transparent 40%),
        linear-gradient(165deg, #0f172a 0%, #1e3a8a 55%, #0e7490 100%);
}
.venue-office .flyer-tagline { color: #a5f3fc; }

.venue-neon {
    background: radial-gradient(circle at 50% 0%, rgba(34, 211, 238, 0.35), transparent 42%),
        radial-gradient(circle at 20% 90%, rgba(74, 222, 128, 0.22), transparent 36%),
        linear-gradient(165deg, #2e1065 0%, #4c1d95 55%, #831843 100%);
}
.venue-neon .flyer-tagline { color: #fb7185; text-shadow: 0 0 10px rgba(251, 113, 133, 0.6); }
.venue-neon .flyer-kicker { color: #22d3ee; }
.venue-neon .badge-rent { background: #22d3ee; color: #082f49; }
.venue-neon .badge-vend { background: #4ade80; color: #052e16; }
.venue-neon .badge-sale { background: #fb7185; color: #4c0519; }

.flyer-grid { align-items: start; }
.flyer-card { height: auto; }
.flyer-foot { margin-top: auto; }

.venue-classic,
.venue-catalog,
.venue-fair,
.venue-paper {
    color: #1c1917;
}
.venue-classic .flyer-card,
.venue-catalog .flyer-card,
.venue-fair .flyer-card,
.venue-paper .flyer-card {
    background: rgba(255,255,255,0.88);
    border: 1px solid rgba(28,25,23,0.14);
    color: #1c1917;
}
.venue-classic .flyer-card-body h2,
.venue-catalog .flyer-card-body h2,
.venue-fair .flyer-card-body h2,
.venue-paper .flyer-card-body h2 { color: #1c1917; }
.venue-classic .flyer-type,
.venue-catalog .flyer-type,
.venue-fair .flyer-type,
.venue-paper .flyer-type { color: #57534e; opacity: 1; }
.venue-classic .flyer-foot,
.venue-catalog .flyer-foot,
.venue-fair .flyer-foot,
.venue-paper .flyer-foot { border-top-color: rgba(28,25,23,0.2); }
.venue-classic .flyer-qr p,
.venue-catalog .flyer-qr p,
.venue-fair .flyer-qr p,
.venue-paper .flyer-qr p { color: #1c1917; }

.venue-classic {
    background:
        radial-gradient(circle at 50% 0%, rgba(212,175,55,0.28), transparent 42%),
        linear-gradient(180deg, #f6e6c8 0%, #e7d3a8 55%, #c9a36a 100%);
}
.venue-classic .flyer-kicker { color: #7f1d1d; }
.venue-classic .flyer-tagline { color: #7f1d1d; font-family: Georgia, "Times New Roman", serif; }
.venue-classic .badge-rent { background: #7f1d1d; color: #fde68a; }
.venue-classic .badge-vend { background: #b45309; color: #fff7ed; }
.venue-classic .badge-sale { background: #1e3a8a; color: #dbeafe; }

.venue-catalog {
    background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
}
.venue-catalog .flyer-kicker { color: #2563eb; letter-spacing: 0.16em; }
.venue-catalog .flyer-tagline { color: #0f172a; }
.venue-catalog .flyer-card {
    box-shadow: 0 10px 24px rgba(15,23,42,0.08);
}

.venue-fair {
    background:
        repeating-linear-gradient(90deg, #fecaca 0 18px, #fee2e2 18px 36px);
    color: #7f1d1d;
}
.venue-fair .flyer-sheet, .venue-fair {
    background-color: #fff7ed;
}
.venue-fair {
    background:
        linear-gradient(180deg, #fff7ed 0%, #ffedd5 100%);
}
.venue-fair .flyer-kicker { color: #b91c1c; }
.venue-fair .flyer-tagline { color: #9a3412; }
.venue-fair .badge-rent { background: #dc2626; color: #fff; }
.venue-fair .badge-vend { background: #facc15; color: #713f12; }
.venue-fair .badge-sale { background: #1d4ed8; color: #fff; }

.venue-paper {
    background:
        repeating-linear-gradient(0deg, rgba(28,25,23,0.04) 0 1px, transparent 1px 28px),
        #f3e7d3;
    font-family: Georgia, "Times New Roman", serif;
}
.venue-paper .flyer-kicker { color: #9f1239; letter-spacing: 0.22em; }
.venue-paper .flyer-tagline { color: #1c1917; }
.venue-paper .badge-rent,
.venue-paper .badge-vend,
.venue-paper .badge-sale {
    border-radius: 2px;
    font-family: "Segoe UI", Tahoma, sans-serif;
}
.venue-paper .badge-rent { background: #1c1917; color: #f5f5f4; }
.venue-paper .badge-vend { background: #9f1239; color: #fff; }
.venue-paper .badge-sale { background: #44403c; color: #fafaf9; }

.hero-brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 0.85rem;
}
.hero-brand .hero-kicker {
    margin-bottom: 0;
}
.hero-logo {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: #2e1065;
    box-shadow: 0 0 18px rgba(34, 211, 238, 0.5);
}

/* ----- Site footer ----- */
.site-footer {
    margin-top: 2rem;
    padding: 1rem 0 1.5rem;
    border-top: 1px solid #e5e7eb;
    font-size: 0.85rem;
    color: #6b7280;
    max-width: 100%;
    box-sizing: border-box;
}

.site-footer a {
    color: #4b5563;
    text-decoration: none;
}

.site-footer a:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* Footer parts never break inside on a wide screen; the line wraps between them. A narrow screen may wrap a part so it stays inside the page. */
.site-footer-part {
    white-space: nowrap;
}
@media (max-width: 480px) {
    .site-footer-part { white-space: normal; overflow-wrap: anywhere; }
}

/* ----- Nav section labels (Admin ops groups) ----- */
.nav-section-label {
    margin: 0.85rem 0.75rem 0.25rem;
    padding: 0.15rem 0.5rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}
.nav-section-label.nav-brand { text-transform: none; letter-spacing: 0; }

/* ----- QR service cards (printable) ----- */
.qr-toolbar {
    display: flex;
    gap: 0.75rem;
    margin: 0.75rem 0 1rem;
    align-items: center;
}
.qr-sheet {
    width: 8.5in;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.25in;
    box-sizing: border-box;
    padding: 0.2in;
    background: #fff;
}
.qr-card {
    border: 1.5px solid #1f2937;
    border-radius: 10px;
    padding: 0.28in 0.22in 0.22in;
    box-sizing: border-box;
    min-height: 4.8in;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #fff;
    color: #111827;
    page-break-inside: avoid;
    break-inside: avoid;
}
.qr-card-logo {
    height: 52px;
    width: auto;
    object-fit: contain;
    margin-bottom: 0.12in;
}
.qr-card-qr {
    width: 2.35in;
    height: 2.35in;
    background: #fff;
    padding: 4px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    display: block;
}
.qr-card-url {
    margin: 0.12in 0 0.08in;
    font-size: 0.58rem;
    color: #6b7280;
    word-break: break-all;
    line-height: 1.2;
}
.qr-card-title {
    margin: 0.05in 0 0.06in;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.15;
}
.qr-card-meta,
.qr-card-serial {
    margin: 0;
    font-size: 0.78rem;
    color: #374151;
}
.qr-card-serial { margin-top: 0.04in; }
.qr-card-cta {
    margin: 0.14in 0 0.08in;
    font-size: 0.92rem;
    font-weight: 700;
}
.qr-card-loc,
.qr-card-site {
    margin: 0;
    font-size: 0.78rem;
    color: #4b5563;
}
.qr-card-site {
    font-weight: 700;
    color: #111827;
    margin-top: 0.04in;
}
.qr-group-header {
    width: 8.5in;
    margin: 0 auto 0.15in;
    padding: 0.12in 0.2in;
    box-sizing: border-box;
    border: 1.5px solid #1f2937;
    border-radius: 8px;
    background: #f3f4f6;
    color: #111827;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.75rem;
}
.qr-group-partner {
    font-size: 1.05rem;
    font-weight: 800;
}
.qr-group-location {
    font-size: 0.95rem;
    font-weight: 600;
    color: #374151;
}
.qr-group-count {
    margin-left: auto;
    font-size: 0.78rem;
    color: #6b7280;
}
.qr-group-break {
    page-break-after: always;
    break-after: page;
}
.associate-panel .card-header {
    font-weight: 700;
}
@media print {
    .qr-sheet {
        width: 100%;
        padding: 0;
        gap: 0.2in;
    }
    .qr-card {
        min-height: 4.9in;
        box-shadow: none;
    }
    .qr-group-header {
        width: 100%;
        margin-bottom: 0.12in;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    .qr-group-break {
        page-break-after: always;
        break-after: page;
    }
}

/* ----- Jukebox title maker (scoped; do not change off-canvas nav) ----- */
.title-maker {
    --neon-cyan: #00ffcc;
    --page-bg: #3C2A6B;
    background: var(--page-bg);
    color: #fff;
    padding: 15px;
    border-radius: 12px;
    min-height: 70vh;
}
.title-maker .neon-title {
    font-size: clamp(1.35rem, 4.8vw, 2rem);
    font-weight: 900;
    text-shadow: 0 0 10px #ff0044, 0 0 20px #ff0044, 0 0 30px #00ffcc;
}
.title-maker .arcade-part { color: #ff0044; }
.title-maker .lore-part { color: #00ffcc; }
.title-maker .subtitle { color: #ffd700; font-size: 0.92rem; }

/* FREE badge: rendered inside the shared purple LandingHeader (under the subtitle) on /jukebox/titles. */
.al-landing .tm-free-badge {
    display: inline-block;
    max-width: 100%;
    margin: 0;
    padding: 0.32rem 0.85rem;
    border-radius: 999px;
    background: #ffd700;
    color: #2C0F4E;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    line-height: 1.3;
    white-space: normal;
    overflow-wrap: break-word;
    text-align: center;
    text-shadow: none;
    box-shadow: 0 0 0 1px rgba(26, 11, 59, 0.45), 0 0 12px rgba(255, 215, 0, 0.45);
}
@media (max-width: 575.98px) {
    .al-landing .tm-free-badge {
        font-size: 0.76rem;
        padding: 0.28rem 0.7rem;
    }
}
.title-maker .neon-title {
    font-size: clamp(1.05rem, 2.8vw, 1.55rem);
    white-space: nowrap;
}
.title-maker .tm-dot { color: #ffd700; margin: 0 0.35rem; }
/* "How it works": directly under the Preview in the 1. Style card (right column on desktop, after the preview when stacked). */
.title-maker .tm-howto {
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(0, 255, 204, 0.45);
    border-radius: 12px;
    padding: 0.9rem 1.1rem;
    width: 100%;
    margin: 0.85rem 0 0;
    text-align: left;
}
.title-maker .tm-howto ol { padding-left: 1.2rem; margin-top: 0.35rem; }
.title-maker .tm-step-title {
    color: #ffd700;
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 0.85rem;
}
/* Title Maker: "Blank song sheets" option + dimmed songs step when it is on */
.title-maker .tm-blank-songs {
    border: 1px dashed rgba(255, 209, 102, 0.55);
    border-radius: 8px;
    padding: 0.5rem 0.75rem 0.5rem 2.1rem;
}

.title-maker .tm-dimmed {
    opacity: 0.55;
}

.title-maker .tm-optional {
    color: rgba(255,255,255,0.55);
    font-weight: 500;
    font-size: 0.85rem;
}
.title-maker .tm-sample-label {
    color: #ffd700;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.title-maker .tm-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}
.title-maker .tm-actions .btn { min-width: 10rem; }
.title-maker .tm-catalog-details > summary {
    cursor: pointer;
    color: #00ffcc;
    font-weight: 600;
}

.title-maker .controls {
    background: rgba(20, 8, 50, 0.95);
    border: 3px solid var(--neon-cyan);
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 20px;
}
.title-maker .tm-catalog-panel {
    background: rgba(20, 8, 50, 0.95);
    border: 3px solid var(--neon-cyan);
    border-radius: 16px;
    padding: 18px;
}
.title-maker .tm-catalog-list {
    max-height: 280px;
    overflow: auto;
    border-radius: 8px;
}
.title-maker .title-strip {
    width: 100%;
    max-width: 360px;
    height: 88px;
    border: 4px solid #111;
    border-radius: 9px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    background: #fff;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(0,0,0,.3);
    margin: 0 auto;
}
.title-maker .tm-sample { cursor: default; }
.title-maker .strip-a,
.title-maker .strip-b {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0 9px;
    position: relative;
    color: #111;
}
.title-maker .strip-center {
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
    position: relative;
}
.title-maker .theme-object {
    position: absolute;
    font-size: 20px;
    top: 50%;
    transform: translateY(-50%);
}
.title-maker .theme-object-left { left: 10px; }
.title-maker .theme-object-right { right: 10px; }
.title-maker .side-label {
    position: absolute;
    top: 3px;
    font-size: 7px;
    opacity: .6;
    font-family: Arial, sans-serif;
    font-weight: 700;
}
.title-maker .side-label-a { left: 10px; }
.title-maker .side-label-b { right: 10px; }
.title-maker .strips-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}
@media (max-width: 768px) {
    .title-maker .strips-grid { grid-template-columns: 1fr; }
    .title-maker .title-strip { max-width: 100%; }
}
.title-maker .page-header-wrap {
    text-align: center;
    border-bottom: 3px solid #2C0F4E;
    padding-bottom: 4px;
    margin: 0 0 0.65rem 0;
}
.title-maker .page-header {
    width: auto;
    margin: 0 auto;
    border-collapse: collapse;
    display: inline-table;
}
.title-maker .page-header td {
    vertical-align: middle;
    border: 0;
    padding: 0;
}
.title-maker .page-header-logo-cell {
    width: 1%;
    white-space: nowrap;
    padding-right: 0.5rem !important;
}
.title-maker .page-header-logo {
    display: block;
    max-height: 28px;
    max-width: 96px;
    width: auto;
    height: auto;
    margin: 0;
    object-fit: contain;
}
.title-maker .page-header-text {
    font-size: 0.9rem;
    font-weight: 900;
    color: #2C0F4E;
    text-align: left;
    white-space: nowrap;
}
.title-maker .page-block {
    background: white;
    color: #111;
    padding: 1.5rem 1rem 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,.4);
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}
.title-maker .page-footer-bar {
    text-align: center;
    font-size: .75rem;
    color: #888;
    border-top: 1px solid #ccc;
    margin-top: 1rem;
    padding-top: 5px;
}
.title-maker .tm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(8, 4, 20, 0.72);
    z-index: 2100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.title-maker .tm-card {
    background: #160c28;
    border: 2px solid #00ffcc;
    border-radius: 14px;
    max-width: 520px;
    width: 100%;
    color: #fff;
    box-shadow: 0 12px 40px rgba(0,0,0,.45);
}
.title-maker .tm-card-danger { border-color: #dc3545; }
.title-maker .tm-card-header,
.title-maker .tm-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.85rem 1rem;
}
.title-maker .tm-card-footer {
    justify-content: flex-end;
    flex-wrap: wrap;
    border-top: 1px solid rgba(255,255,255,.12);
}
.title-maker .tm-card-body { padding: 0 1rem 1rem; }
.title-maker .tm-close {
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

@media print {
    @page { size: letter; margin: 0.3in; }
    html, body {
        background: #fff !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        height: auto !important;
        overflow: visible !important;
    }
    .no-print,
    .nav-toggle,
    .sidebar,
    .nav-backdrop,
    .top-row,
    .site-footer,
    .title-maker .tm-screen,
    .title-maker .tm-overlay,
    .title-maker .controls,
    .title-maker .tm-catalog-panel { display: none !important; }
    .page, main, .main-content, article.content, .content {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        display: block !important;
        position: static !important;
        background: #fff !important;
    }
    .title-maker {
        background: #fff !important;
        padding: 0 !important;
        border-radius: 0 !important;
        min-height: 0 !important;
        height: auto !important;
        overflow: visible !important;
        color: #111 !important;
        display: block !important;
    }
    .title-maker #printContainer,
    .title-maker .tm-print-container {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        background: white !important;
        height: auto !important;
        overflow: visible !important;
        position: static !important;
    }
    .title-maker .page-block {
        box-shadow: none !important;
        border: none !important;
        margin: 0 !important;
        padding: 0 !important;
        max-width: 100% !important;
        height: auto !important;
        overflow: visible !important;
        display: block !important;
        background: white !important;
        page-break-inside: auto;
        break-inside: auto;
        page-break-after: always;
        break-after: page;
    }
    .title-maker .page-block:not(:first-child) {
        page-break-before: always;
        break-before: page;
    }
    .title-maker .page-block:last-child {
        page-break-after: auto;
        break-after: auto;
    }
    .title-maker .page-header-wrap {
        text-align: center !important;
        border-bottom: 2px solid #2C0F4E !important;
        margin: 0 0 6px 0 !important;
        padding: 0 0 3px 0 !important;
        width: 100% !important;
    }
    .title-maker .page-header {
        display: inline-table !important;
        width: auto !important;
        border-collapse: collapse !important;
        border-bottom: none !important;
        margin: 0 auto !important;
        padding: 0 !important;
    }
    .title-maker .page-header tr {
        display: table-row !important;
    }
    .title-maker .page-header td {
        display: table-cell !important;
        vertical-align: middle !important;
        border: 0 !important;
        padding: 0 !important;
    }
    .title-maker .page-header-logo-cell {
        width: auto !important;
        padding-right: 0.12in !important;
        white-space: nowrap !important;
    }
    .title-maker .page-header-logo {
        display: block !important;
        max-height: 0.28in !important;
        max-width: 0.85in !important;
        width: auto !important;
        height: auto !important;
        margin: 0 !important;
        object-fit: contain !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    .title-maker .page-header-text {
        display: table-cell !important;
        font-family: Arial, sans-serif !important;
        font-size: 9pt !important;
        font-weight: 900 !important;
        color: #2C0F4E !important;
        text-align: left !important;
        white-space: nowrap !important;
        vertical-align: middle !important;
    }
    .title-maker .strips-grid {
        display: grid !important;
        grid-template-columns: 3in 3in !important;
        gap: 0 !important;
        justify-content: center !important;
    }
    .title-maker .title-strip {
        width: 3in !important;
        max-width: 3in !important;
        height: 1in !important;
        border-radius: 0 !important;
        border: 2px solid #111 !important;
        box-shadow: none !important;
        margin: 0 !important;
        cursor: default !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
        page-break-inside: avoid !important;
    }
    .title-maker .strip-a,
    .title-maker .strip-b { font-size: 9pt !important; }
    .title-maker .strip-center { font-size: 8pt !important; height: 22px !important; }
    .title-maker .theme-object { font-size: 14px !important; }
    .title-maker .page-footer-bar {
        display: block !important;
        font-family: Arial, sans-serif;
        font-size: 7pt;
        color: #888 !important;
        border-top: 1px solid #ccc !important;
        margin-top: 6px;
        padding-top: 3px;
        text-align: center;
    }
}


/* Login honeypot — visually hidden from humans */
.al-hp {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ===== Home service requests (HomeServiceRequestsPhase1) ===== */
.home-hero {
    padding: 2.5rem 2rem;
}

.home-chooser {
    margin: 1.75rem 0 0.5rem;
}

.home-chooser-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.home-chooser-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 0.75rem;
}

.chooser-card {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 1rem;
    border-radius: 14px;
    border: 1px solid #c4b5fd;
    background: linear-gradient(160deg, #ede9fe 0%, #faf5ff 55%, #fff 100%);
    color: #111827;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.12);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

    .chooser-card:hover,
    .chooser-card:focus-visible {
        transform: translateY(-2px);
        border-color: #7c3aed;
        box-shadow: 0 10px 24px rgba(124, 58, 237, 0.22);
        color: #111827;
    }

    .chooser-card small {
        color: #6b7280;
    }

/* Soft depth steps across the row so cards aren't identical flats */
.home-chooser-grid .chooser-card:nth-child(1) { box-shadow: 0 6px 18px rgba(124, 58, 237, 0.16); }
.home-chooser-grid .chooser-card:nth-child(2) { box-shadow: 0 4px 14px rgba(124, 58, 237, 0.12); }
.home-chooser-grid .chooser-card:nth-child(3) { box-shadow: 0 5px 16px rgba(124, 58, 237, 0.14); }
.home-chooser-grid .chooser-card:nth-child(4) { box-shadow: 0 4px 14px rgba(124, 58, 237, 0.12); }
.home-chooser-grid .chooser-card:nth-child(5) { box-shadow: 0 5px 16px rgba(124, 58, 237, 0.14); }
.home-chooser-grid .chooser-card:nth-child(6) { box-shadow: 0 6px 18px rgba(124, 58, 237, 0.16); }

.chooser-card-alt {
    background: linear-gradient(160deg, #ede9fe 0%, #faf5ff 55%, #fff 100%);
    border-color: #c4b5fd;
}

.chooser-icon {
    font-size: 1.6rem;
    line-height: 1;
}

/* Gallery strips */
.gs-section {
    margin: 2rem 0;
}

.gs-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.gs-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
}

.gs-sub {
    margin: 0;
    color: #6b7280;
    font-size: 0.92rem;
}

.gs-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.gs-empty {
    padding: 1.25rem;
    border: 1px dashed #d1d5db;
    border-radius: 12px;
    color: #6b7280;
    background: #fafafa;
}

.gs {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
}

.gs-track {
    display: flex;
    width: max-content;
}

.gs-animate .gs-track {
    animation: gs-scroll var(--gs-duration, 40s) linear infinite;
}

.gs-animate:hover .gs-track,
.gs-animate:focus-within .gs-track,
.gs-animate:active .gs-track,
.gs-paused .gs-track {
    animation-play-state: paused;
}

.gs-static {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
}

@keyframes gs-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.gs-frame {
    position: relative;
    flex: 0 0 auto;
    width: 260px;
    margin-right: 12px;
    border-radius: 12px;
    overflow: hidden;
    background: #111827;
    color: #fff;
    text-decoration: none;
}

    .gs-frame img,
    .gs-frame .gs-type {
        display: block;
        width: 100%;
        height: 180px;
        object-fit: cover;
    }

    .gs-frame .gs-type {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .gs-frame:hover { color: #fff; }

    /* Home merch row (Shared/Merch/MerchMockupStrip.razor): a live merch mockup (inline SVG) in place of the photo, same size. */
    .gs-frame .mm {
        display: block;
        width: 100%;
        height: 180px;
        background: #f3f4f6;
    }

.gs-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.5rem 0.65rem;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0));
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

    .gs-caption small {
        opacity: 0.85;
    }

.gs-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: #7c3aed;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.gs-badge-sold {
    background: #dc2626;
}

/* Fewer, larger frames on small screens */
@media (max-width: 576px) {
    .gs-frame {
        width: 72vw;
    }

        .gs-frame img,
        .gs-frame .mm,
        .gs-frame .gs-type {
            height: 200px;
        }

    .gs-head .btn {
        font-size: 0.85rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gs-animate .gs-track {
        animation: none;
    }

    .gs-animate {
        overflow-x: auto;
    }
}

/* Request flows */
.request-steps {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    flex-wrap: wrap;
    counter-reset: rs;
}

    .request-steps li {
        counter-increment: rs;
        padding: 0.3rem 0.8rem;
        border-radius: 999px;
        background: #f3f4f6;
        color: #6b7280;
        font-size: 0.9rem;
    }

        .request-steps li::before {
            content: counter(rs) ". ";
        }

        .request-steps li.active {
            background: #7c3aed;
            color: #fff;
        }

        .request-steps li.done {
            background: #ede9fe;
            color: #4c1d95;
        }

.selectable-card {
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

    .selectable-card.selected {
        border-color: #7c3aed;
        box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.35);
    }

    .selectable-card.unavailable {
        opacity: 0.55;
        cursor: not-allowed;
    }

.request-thumb {
    height: 120px;
    object-fit: cover;
}

.request-thumb-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    color: #9ca3af;
    font-size: 0.85rem;
    text-align: center;
    padding: 0.5rem;
    min-height: 120px;
}

.request-photo {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: flex-start;
}

    .request-photo img {
        width: 120px;
        height: 120px;
        object-fit: cover;
        border-radius: 8px;
        border: 1px solid #e5e7eb;
    }

.request-timeline {
    list-style: none;
    padding-left: 0.75rem;
    border-left: 2px solid #e5e7eb;
}

    .request-timeline li {
        padding: 0 0 0.75rem 0.75rem;
    }

/* For sale */
.sale-photo-wrap {
    position: relative;
}

.sold-ribbon {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #dc2626;
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 0.2rem 0.7rem;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.sale-card.is-sold img {
    filter: grayscale(0.6);
}

.sale-main-photo {
    width: 100%;
    max-height: 480px;
    object-fit: contain;
    background: #111827;
    min-height: 240px;
}

.sale-thumb {
    border: 2px solid transparent;
    padding: 0;
    border-radius: 8px;
    background: none;
    overflow: hidden;
}

    .sale-thumb.active {
        border-color: #7c3aed;
    }

    .sale-thumb img {
        width: 72px;
        height: 72px;
        object-fit: cover;
        display: block;
    }

/* ---------- Event galleries (/events + admin) ---------- */
.event-cover {
    height: 220px;
    object-fit: cover;
    cursor: zoom-in;
}

.event-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
}

.event-thumb {
    padding: 0;
    border: 1px solid rgba(0, 0, 0, .15);
    border-radius: .25rem;
    background: none;
    width: 72px;
    height: 54px;
    overflow: hidden;
    cursor: zoom-in;
}

    .event-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.event-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, .88);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.event-lightbox-inner {
    position: relative;
    max-width: min(1100px, 96vw);
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

    .event-lightbox-inner img {
        max-width: 100%;
        max-height: 82vh;
        object-fit: contain;
        border-radius: .25rem;
    }

.event-lightbox-caption {
    color: #fff;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    padding-top: .5rem;
}

.event-lightbox-close {
    position: absolute;
    top: -2rem;
    right: 0;
}

.event-lightbox-nav {
    position: absolute;
    top: 45%;
    background: rgba(0, 0, 0, .45);
    color: #fff;
    border: 0;
    font-size: 2.5rem;
    line-height: 1;
    padding: .25rem .75rem;
    border-radius: .25rem;
}

    .event-lightbox-nav.prev { left: .25rem; }
    .event-lightbox-nav.next { right: .25rem; }

.admin-event-photo img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

/* Records for sale (/records-for-sale): side A / side B photos, plus the sleeve when one is on file */
.records-sale .record-photos {
    gap: 0.5rem;
    padding: 0.75rem 0.75rem 0;
}

.records-sale .record-photo {
    flex: 1 1 0;
    text-align: center;
}

.records-sale .record-photo img,
.records-sale .record-photo-empty {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #1f1f1f;
    background: #111;
}

.records-sale .record-photo-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, #d94f2b 0 18%, #111 19% 21%, #222 22% 100%);
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
}

.records-sale .record-photo figcaption {
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

.records-sale .record-photo-sleeve img {
    border-radius: 6px;
}

.title-maker .tm-blank-artist {
    max-width: 360px;
    padding-left: 2.1rem;
}

/* ===== Home hero: rotating intro line + social icons (Home.razor, Shared/SocialIcons.razor, js/hero-rotator.js) ===== */
.hero-line-block {
    margin-bottom: 1rem;
}

.hero-line-block:focus {
    outline: none;
}

.hero-line-block:focus-visible {
    outline: 2px solid #f0abfc;
    outline-offset: 4px;
    border-radius: 0.5rem;
}

.hero-line-block .hero-rotator {
    margin-bottom: 0.55rem;
}

.hero-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.15rem;
}

.hero-nav-btn {
    box-sizing: border-box;
    min-width: 44px;
    min-height: 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(10, 6, 30, 0.55);
    border: 1px solid rgba(34, 211, 238, 0.55);
    box-shadow: inset 0 0 0 1px rgba(236, 72, 153, 0.22), 0 0 10px rgba(34, 211, 238, 0.25);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: transform 0.15s ease, box-shadow 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.hero-nav-btn:hover,
.hero-nav-btn:focus-visible {
    color: #22d3ee;
    border-color: #22d3ee;
    box-shadow: inset 0 0 0 1px rgba(236, 72, 153, 0.35), 0 0 14px rgba(34, 211, 238, 0.75), 0 0 28px rgba(236, 72, 153, 0.45);
    transform: translateY(-2px);
}

.hero-nav-btn:focus-visible {
    outline: 2px solid #f0abfc;
    outline-offset: 3px;
}

.hero-nav-btn:active {
    transform: translateY(0);
}

.hero-nav-btn svg {
    display: block;
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .hero-nav-btn {
        transition: none;
    }

    .hero-nav-btn:hover,
    .hero-nav-btn:focus-visible,
    .hero-nav-btn:active {
        transform: none;
    }
}

/* ===== Home hero: rotating intro line + social icons (Home.razor, Shared/SocialIcons.razor, js/hero-rotator.js) ===== */
.hero-rotator {
    display: grid;
    margin-bottom: 1rem;
}

.hero-rotator > .hero-msg {
    grid-area: 1 / 1;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0s linear 0.8s;
}

.hero-rotator > .hero-msg.is-active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.8s ease 0.2s, visibility 0s linear 0s;
}

.hero-social {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0;
    margin: 0 0 0.25rem;
}

.hero-social li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.hero-social-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(10, 6, 30, 0.55);
    border: 1px solid rgba(34, 211, 238, 0.55);
    box-shadow: inset 0 0 0 1px rgba(236, 72, 153, 0.22), 0 0 10px rgba(34, 211, 238, 0.25);
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.hero-social-btn:hover,
.hero-social-btn:focus-visible {
    color: #22d3ee;
    border-color: #22d3ee;
    box-shadow: inset 0 0 0 1px rgba(236, 72, 153, 0.35), 0 0 14px rgba(34, 211, 238, 0.75), 0 0 28px rgba(236, 72, 153, 0.45);
    transform: translateY(-2px);
}

.hero-social-btn:focus-visible {
    outline: 2px solid #f0abfc;
    outline-offset: 3px;
}

.hero-social-btn svg {
    display: block;
}

.hero-social-count {
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.4;
    color: #e0f2fe;
    background: rgba(236, 72, 153, 0.22);
    border: 1px solid rgba(236, 72, 153, 0.5);
    border-radius: 999px;
    padding: 0 0.45rem;
    min-width: 2rem;
    text-align: center;
}

@media (max-width: 575.98px) {
    .hero-social {
        gap: 0.55rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-rotator > .hero-msg,
    .hero-rotator > .hero-msg.is-active {
        transition: none !important;
    }

    .hero-social-btn {
        transition: none;
    }

    .hero-social-btn:hover,
    .hero-social-btn:focus-visible {
        transform: none;
    }
}

/* /admin/hero-messages preview */
.hero-preview {
    padding: 1.5rem 1.5rem 1.25rem;
    margin-top: 0;
}

.hero-preview .hero-sub {
    margin-bottom: 1rem;
}

.hero-msg-link {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: rgba(34, 211, 238, 0.7);
    text-underline-offset: 0.2em;
}

.hero-msg-link:hover,
.hero-msg-link:focus-visible {
    color: #67e8f9;
    text-decoration-color: #67e8f9;
}

.hero-msg-btn {
    display: inline-block;
    margin-left: 0.4rem;
    padding: 0.05rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(34, 211, 238, 0.7);
    background: rgba(10, 6, 30, 0.45);
    color: #a5f3fc;
    font-size: 0.85em;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    vertical-align: 0.05em;
    transition: box-shadow 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.hero-msg-btn:hover,
.hero-msg-btn:focus-visible {
    color: #fff;
    border-color: #22d3ee;
    box-shadow: 0 0 12px rgba(34, 211, 238, 0.7), 0 0 22px rgba(236, 72, 153, 0.35);
}

.hero-msg-btn:focus-visible {
    outline: 2px solid #f0abfc;
    outline-offset: 2px;
}

/* Arrow is a CSS escape so a mis-decoded source file cannot turn it into mojibake. */
.hero-msg-btn::after {
    content: " \2192";
}

@media (prefers-reduced-motion: reduce) {
    .hero-msg-btn {
        transition: none;
    }
}

/* Hero eyebrow (Hero:Eyebrow): chunks split at "·" so narrow screens wrap between phrases */
.hero-kicker-part {
    display: inline-block;
    text-wrap: balance; /* a phrase that must wrap splits evenly (no one-word orphan line) */
}

@media (max-width: 575.98px) {
    .hero-brand {
        gap: 0.7rem;
    }

    .hero-brand .hero-logo {
        width: 58px;
        height: 58px;
    }

    .hero-brand .hero-kicker {
        font-size: 0.8rem;
        letter-spacing: 0.08em;
        line-height: 1.45;
    }
}

/* ---------- Communications hub: conversation timeline (admin + /my-requests) ---------- */
.conv-timeline { list-style: none; padding: 0; margin: 0 0 1rem; border-left: 3px solid #7c3aed; }
.conv-item { position: relative; margin: 0 0 .75rem .9rem; padding: .55rem .75rem; border-radius: .5rem; background: #f8f7fc; border: 1px solid #e4defa; }
.conv-item::before { content: ""; position: absolute; left: -1.33rem; top: .8rem; width: .7rem; height: .7rem; border-radius: 50%; background: #7c3aed; border: 2px solid #fff; }
.conv-head { display: flex; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.conv-title { font-weight: 600; }
.conv-time, .conv-meta { font-size: .8rem; color: #6c757d; }
.conv-body { margin-top: .3rem; white-space: normal; overflow-wrap: anywhere; }
.conv-body ul { margin-bottom: .25rem; }
.conv-files { margin-top: .35rem; }
.conv-customer { background: #e9fbf6; border-color: #9fe8d4; }
.conv-customer::before { background: #00b894; }
.conv-admin { background: #f1ebff; border-color: #c9b6ff; }
.conv-note { background: #fff8e1; border-color: #ffd54f; border-style: dashed; }
.conv-note::before { background: #ffb300; }
.conv-system, .conv-status, .conv-request { background: #fbfbfd; }
.conv-system::before, .conv-status::before { background: #adb5bd; }
.conv-doc { background: #eef6ff; border-color: #b6d4fe; }
.conv-doc::before { background: #0d6efd; }
.conv-composer { border-top: 1px solid #e4defa; padding-top: .75rem; }

/* ---------- Public document page (/d/{token}) ---------- */
.doc-sheet { max-width: 900px; margin: 0 auto; background: #fff; color: #1f1633; border: 1px solid #7c3aed; border-radius: 14px; padding: 1.25rem 1.5rem; box-shadow: 0 0 24px rgba(124, 58, 237, .25); }
.doc-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; background: #2e1065; color: #fff; margin: -1.25rem -1.5rem 0; padding: 1rem 1.5rem; border-radius: 13px 13px 0 0; }
.doc-brand { font-weight: 800; letter-spacing: .12em; font-size: 1.3rem; }
.doc-arcade { color: #ff0044; }
.doc-lore { color: #00ffcc; }
.doc-muted { color: #c4b5fd; }
.doc-title { font-weight: 800; text-transform: uppercase; }
.doc-number { color: #00ffcc; font-weight: 700; }
.doc-box { border: 1px solid #c9b6ff; background: #f7f3ff; border-radius: 8px; padding: .6rem .8rem; }
.doc-label { font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #7c3aed; }
.doc-label-neon { color: #00ffcc; }
.doc-table thead th { background: #7c3aed; color: #fff; }
.doc-pay { background: #1a0b3b; color: #fff; border-radius: 8px; padding: .75rem 1rem; }
.doc-accept { border: 2px solid #00b894; border-radius: 10px; padding: 1rem; background: #effcf8; }

/* ArcadeLore Ops (/saas) */
.saas-page .saas-hero h1 {
    font-weight: 700;
}
.saas-tier {
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.saas-tier-selected {
    box-shadow: 0 0 0 0.15rem rgba(124, 58, 237, 0.25);
}
.saas-page .saas-tier ul {
    padding-left: 1.1rem;
}
.site-footer-saas {
    font-size: 0.85em;
    opacity: 0.85;
}
.site-footer-saas a {
    text-decoration: none;
}
.site-footer-saas a:hover {
    text-decoration: underline;
}

.home-ops-shout {
    margin: 0.65rem 0 0.85rem;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.35;
    color: #e9d5ff;
}
.home-ops-shout a {
    color: #f5d0fe;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-shadow: 0 0 12px rgba(232, 121, 249, 0.45);
}
.home-ops-shout a:hover,
.home-ops-shout a:focus-visible {
    color: #ffffff;
}
.chooser-card-ops {
    background: linear-gradient(160deg, #e9d5ff 0%, #f5f3ff 45%, #ffffff 100%);
    border-color: #a78bfa;
}

/* Home logo button: fixed just right of the hamburger (.nav-toggle at left .5rem, 2.5rem wide), same 2.5rem box, 32px neon logo.
   Top bar and drawer brand reserve room for both buttons so nothing overlaps or wraps. */
.al-home-logo {
    position: fixed;
    top: 0.5rem;
    left: 3.25rem;
    z-index: 1100;
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    background: #1e1b4b;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
    text-decoration: none;
}
.al-home-logo:hover { background: #312e81; }
.al-home-logo:focus-visible { outline: 2px solid #c084fc; outline-offset: 2px; }
.al-home-logo img { width: 32px; height: 32px; display: block; border-radius: 6px; }
.main-content > .top-row { padding-left: 6.25rem !important; }
.sidebar-brand { padding-left: 6.1rem; }
.sidebar-brand a { font-size: 1.05rem; }
@media print { .al-home-logo { display: none !important; } }
/* run 99d5: hero arrows + social icons on one row (arrows first); the row and the icon list both wrap on narrow screens */
.hero-controls-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    margin: 0 0 0.25rem;
}
.hero-controls-row > .hero-nav,
.hero-controls-row > .hero-social {
    margin: 0;
}
.hero-controls-row > .hero-social {
    align-items: center;
}

/* run 99d6-99d8: ArcadePerks/HeroSprite header (ALS embed). ALS sizes the strip from its width (size-mode="fill" snap="72"), so we only
   give it the slot's full width. The pre-script rule reserves ALS's own default bar (shop colour) so nothing jumps before header.js runs. */
.als-header-wrap > arcade-header {
    display: flex;
    align-items: center;
    gap: 12px;
    box-sizing: border-box;
    width: 100%;
    height: var(--ah-height, 72px);
    overflow: hidden;
    color: var(--ah-color, #f4f0ff);
    background: var(--ah-fallback, #1a1030);
}
.als-header-wrap--top {
    margin-bottom: 0.75rem;
}
.als-header-wrap--top > arcade-header {
    border-radius: 0.75rem;
}
/* home: full-width strip on the hero card's bottom edge (bleeds through the hero padding; .hero has overflow: hidden) */
.home-hero .als-header-wrap--hero {
    margin: 1.75rem -2rem -2.5rem;
    width: calc(100% + 4rem);
}
/* home hero controls row (arrows + socials) always above the game strip */
.hero-controls-row {
    position: relative;
    z-index: 1;
}
/* banner slot: the game replaces the page's static banner (LandingHeader) */
.als-header-wrap--banner {
    margin: 0 0 1.5rem;
    border-radius: 16px;
    overflow: hidden;
}

/* run 99d9 / 99fg: banner slot wrapper (ALS draws the title; no overlay of ours) */
.als-header-wrap--banner {
    position: relative;
}

/* run 99e: LeaderLore events and standings section (Shared/Als/AlsLeaderLoreSection.razor) */
.ll-events {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}
.ll-event {
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 12px;
    padding: 1rem 1.1rem;
    background: #faf7ff;
}
.ll-standings {
    padding-left: 1.4rem;
}

/* Run 99k: "Shop opening soon" + admin-only PayPal mode badge + template thumbnails */
.shop-opening-soon{display:inline-flex;align-items:center;gap:.35rem;padding:.4rem .8rem;border-radius:.4rem;background:#f1f5f9;color:#1f2937;border:1px dashed #64748b;font-weight:600;font-size:.9rem}
.pp-mode-badge{position:relative;display:inline-flex;align-items:center;gap:.4rem;margin-right:auto;padding:.2rem .3rem .2rem .65rem;border-radius:999px;font:600 .78rem/1.2 system-ui,sans-serif;color:#fff}
.pp-mode-sandbox{background:#c2410c}.pp-mode-live{background:#15803d}.pp-mode-none{background:#4b5563}
.pp-mode-info{width:1.35rem;height:1.35rem;border-radius:50%;border:1.5px solid #fff;background:transparent;color:#fff;font:700 .75rem/1 Georgia,serif;font-style:italic;padding:0}
.pp-mode-info:focus-visible{outline:3px solid #facc15;outline-offset:2px}
.pp-mode-tip{display:none;position:absolute;top:50%;left:calc(100% + 8px);transform:translateY(-50%);z-index:1040;background:#111827;color:#fff;padding:.35rem .6rem;border-radius:.35rem;white-space:nowrap;font-weight:500}
.pp-mode-info:hover + .pp-mode-tip,.pp-mode-info:focus + .pp-mode-tip{display:block}
@media (max-width:575.98px){.pp-mode-badge>span:first-child{max-width:9rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}
.hl-thumb{position:relative;height:74px;border-radius:6px;overflow:hidden;background:var(--bg);border:1px solid #0002}
.hl-thumb i,.hl-thumb b,.hl-thumb s,.hl-thumb u{position:absolute;display:block}
.hl-thumb i{background:var(--p)} .hl-thumb b{background:var(--a)} .hl-thumb s,.hl-thumb u{background:#0002;text-decoration:none}
.hl-thumb-tango i{inset:0 0 40% 0}.hl-thumb-tango b{left:8%;top:18%;width:55%;height:12%}.hl-thumb-tango s{left:6%;bottom:8%;width:42%;height:22%}.hl-thumb-tango u{right:6%;bottom:8%;width:42%;height:22%}
.hl-thumb-atelier i{left:8%;top:12%;width:50%;height:50%;border-radius:4px}.hl-thumb-atelier b{right:8%;top:12%;width:26%;height:50%;border-radius:4px}.hl-thumb-atelier s{left:8%;bottom:10%;width:84%;height:10%}
.hl-thumb-pampa i{inset:0 0 72% 0}.hl-thumb-pampa b{left:6%;top:36%;width:27%;height:54%}.hl-thumb-pampa s{left:37%;top:36%;width:27%;height:54%}.hl-thumb-pampa u{left:68%;top:36%;width:27%;height:54%}
.hl-thumb-boheme i{left:6%;top:10%;width:55%;height:60%;transform:rotate(-3deg)}.hl-thumb-boheme b{right:8%;top:30%;width:40%;height:52%;transform:rotate(4deg)}.hl-thumb-boheme s{left:10%;bottom:6%;width:50%;height:10%}

/* Run 99l: wall calendar (artwork top, month grid bottom) */
.wcal{margin:0;background:#fff;border:1px solid #0002;border-radius:6px;overflow:hidden;box-shadow:0 2px 10px #0002;display:flex;flex-direction:column;aspect-ratio:11/17;color:var(--wc-p)}
.wcal-port{aspect-ratio:11/17}.wcal-port .wcal-art{flex-basis:58%}
.wcal-land{aspect-ratio:17/11}.wcal-land .wcal-art{flex-basis:46%}
.wcal-art{flex:0 0 52%;background:#f3f4f6;display:flex}.wcal-art img{width:100%;height:100%;object-fit:cover}.wcal-noart{flex:1;background:repeating-linear-gradient(45deg,#e5e7eb 0 8px,#f3f4f6 8px 16px)}
.wcal-grid{flex:1;padding:4% 5%;display:flex;flex-direction:column}
.wcal-mhead{display:flex;justify-content:space-between;align-items:baseline;font:700 1.05rem/1.2 Georgia,serif;color:var(--wc-a);border-bottom:2px solid var(--wc-a);margin-bottom:4px;text-transform:capitalize}
.wcal table{width:100%;border-collapse:collapse;table-layout:fixed;flex:1}.wcal th{font:600 .62rem system-ui;color:var(--wc-a);text-align:center;padding:2px 0}
.wcal td{font:500 .7rem system-ui;text-align:left;vertical-align:top;border:1px solid #0001;padding:2px 3px;height:1.6rem}.wcal td.wcal-empty{background:#fafafa}
.wcal-cover{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;background:var(--wc-p);color:#fff}
.wcal-year{font:700 2.4rem/1 Georgia,serif;color:#fff}.wcal-title{font:500 .9rem system-ui;opacity:.9;margin-top:.3rem;text-align:center;padding:0 6%}
.wcal-sm{border-radius:3px;box-shadow:none}.wcal-sm .wcal-mhead{font-size:.32rem;border-width:1px;margin:0}.wcal-sm th,.wcal-sm td{font-size:.22rem;padding:0;height:auto}.wcal-sm .wcal-year{font-size:.7rem}.wcal-sm .wcal-title{display:none}
.wcal-preview .wcal-main{max-width:300px;margin:0 auto}
.wcal-strip{display:grid;grid-template-columns:repeat(auto-fill,minmax(48px,1fr));gap:6px;margin-top:10px}
.wcal-thumb{border:2px solid transparent;background:none;padding:2px;border-radius:5px;font-size:.68rem;text-transform:capitalize}.wcal-thumb.active{border-color:var(--al-primary,#7c3aed)}
.wcal-thumb:focus-visible{outline:3px solid #facc15;outline-offset:1px}

/* run 99v: nav rows whose links are all switched off for this shop */
.nav-item:not(:has(a)){display:none}
