/* ==========================================================================
   Bad Machines: neon arcade theme
   Sits on top of Bootstrap 5 (grid, collapse, dropdowns, accordions).
   ========================================================================== */

:root {
    --bm-bg: #08070f;
    --bm-bg-2: #0f0d1a;
    --bm-surface: #161325;
    --bm-surface-2: #1e1a33;
    --bm-line: rgba(255, 255, 255, .09);
    --bm-text: #f4f2ff;
    --bm-muted: #a9a5c2;
    --bm-red: #ff5a36;      /* the robot's orange-red */
    --bm-pink: #ff3fa4;
    --bm-cyan: #2de2ff;
    --bm-lime: #b8ff3c;
    --bm-violet: #8b5cf6;
    --bm-teal: #4aa8b0;     /* brand kit teal */
    --bm-display: "Bungee", "Impact", system-ui, sans-serif;
    --bm-hud: "Press Start 2P", ui-monospace, monospace;
    --bm-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --bm-radius: 18px;
    --bm-nav-h: 72px;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: var(--bm-nav-h); }
body {
    background: var(--bm-bg);
    color: var(--bm-text);
    font-family: var(--bm-body);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
main, .bm-footer { overflow-x: clip; }
::selection { background: var(--bm-pink); color: #fff; }
a { color: var(--bm-cyan); }
a:hover { color: #fff; }
img { max-width: 100%; }
.text-muted, .text-secondary { color: var(--bm-muted) !important; }
.bm-display { font-family: var(--bm-display); font-weight: 400; letter-spacing: .01em; line-height: .95; }
.bm-hud { font-family: var(--bm-hud); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; line-height: 1.6; }
.bm-skip { position: absolute; left: -999px; top: 0; z-index: 2000; background: var(--bm-lime); color: #000; padding: .5rem 1rem; }
.bm-skip:focus { left: 1rem; top: 1rem; }
:focus-visible { outline: 3px solid var(--bm-lime); outline-offset: 3px; }

/* Section rhythm */
.bm-section { position: relative; padding: clamp(4rem, 9vw, 7.5rem) 0; }
.bm-section--tight { padding: clamp(3rem, 6vw, 5rem) 0; }
.bm-section--alt { background: var(--bm-bg-2); }
.bm-kicker {
    display: inline-flex; align-items: center; gap: .6rem;
    font-family: var(--bm-hud); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase;
    color: var(--bm-cyan); margin-bottom: 1rem;
}
.bm-kicker::before { content: ""; width: 28px; height: 2px; background: currentColor; box-shadow: 0 0 10px currentColor; }
.bm-title { font-family: var(--bm-display); font-size: clamp(2.2rem, 5.5vw, 4.2rem); line-height: .95; margin-bottom: 1.25rem; }
.bm-title em { font-style: normal; color: var(--bm-red); text-shadow: 0 0 24px rgba(255, 90, 54, .55); }
.bm-lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #d9d6ec; line-height: 1.65; max-width: 62ch; }
.bm-lead b, .bm-lead strong, .bm-prose b, .bm-prose strong { color: #fff; }
.bm-prose { color: #d9d6ec; line-height: 1.75; }
.bm-prose p { margin-bottom: 1.1rem; }

/* Hex lighting pattern (the bar's ceiling panels) */
.bm-hex-bg { position: relative; isolation: isolate; }
.bm-hex-bg::before {
    content: ""; position: absolute; inset: 0; z-index: -1; opacity: .07; pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='98' viewBox='0 0 56 98'%3E%3Cpath d='M28 66L0 50V16L28 0l28 16v34L28 66zm0 32L0 82V50l28 16 28-16v32L28 98z' fill='none' stroke='%232de2ff' stroke-width='1.4'/%3E%3C/svg%3E");
    -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
            mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
}

/* ---------- Buttons ---------- */
.bm-btn {
    --c: var(--bm-red);
    position: relative; display: inline-flex; align-items: center; gap: .6rem;
    padding: .95rem 1.6rem; border: 0; border-radius: 999px;
    font-family: var(--bm-display); font-size: .95rem; letter-spacing: .04em; text-transform: uppercase;
    color: #fff; background: var(--c); text-decoration: none; cursor: pointer;
    box-shadow: 0 0 0 0 var(--c), 0 10px 30px -10px var(--c);
    transition: transform .2s ease, box-shadow .2s ease, background .2s;
}
.bm-btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 0 0 4px rgba(255, 255, 255, .08), 0 14px 40px -8px var(--c); }
.bm-btn:active { transform: translateY(0); }
.bm-btn--ghost { background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .35); backdrop-filter: blur(6px); }
.bm-btn--ghost:hover { background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 2px #fff; }
.bm-btn--cyan { --c: #0fb5d4; }
.bm-btn--pink { --c: var(--bm-pink); }
.bm-btn--sm { padding: .6rem 1.1rem; font-size: .78rem; }
.bm-btn svg { width: 1.1em; height: 1.1em; }

.bm-link-arrow { font-weight: 700; color: var(--bm-cyan); text-decoration: none; }
.bm-link-arrow::after { content: " →"; transition: margin .2s; }
.bm-link-arrow:hover::after { margin-left: .3rem; }

/* Bootstrap buttons used inside widgets/forms */
.btn-outline-light { border-radius: 999px; }
.btn-primary { background: var(--bm-red); border-color: var(--bm-red); border-radius: 999px; font-weight: 700; }
.btn-primary:hover, .btn-primary:focus { background: #ff7655; border-color: #ff7655; }

/* ---------- Navigation ---------- */
.bm-nav {
    position: fixed; inset: 0 0 auto 0; z-index: 1030; height: var(--bm-nav-h);
    display: flex; align-items: center;
    transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}
.bm-nav.is-solid, body:not(.has-hero) .bm-nav {
    background: rgba(8, 7, 15, .82); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
    box-shadow: 0 1px 0 var(--bm-line);
}
body:not(.has-hero) main { padding-top: var(--bm-nav-h); }
.bm-nav .container-xl { display: flex; align-items: center; gap: 1rem; }
.bm-brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: #fff; margin-right: auto; }
.bm-brand img { width: 44px; height: auto; filter: drop-shadow(0 0 10px rgba(255, 90, 54, .45)); transition: transform .3s; }
.bm-brand:hover img { transform: rotate(-8deg) scale(1.06); }
.bm-brand span { font-family: var(--bm-display); font-size: 1.15rem; letter-spacing: .02em; line-height: 1; }
.bm-brand span b { color: var(--bm-red); font-weight: 400; }
.bm-menu { display: flex; align-items: center; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.bm-menu a, .bm-menu .bm-menu__more {
    display: block; padding: .55rem .8rem; border-radius: 999px; background: none; border: 0;
    color: #e8e5f7; font-weight: 600; font-size: .9rem; text-decoration: none; letter-spacing: .01em;
    transition: color .2s, background .2s;
}
.bm-menu a:hover, .bm-menu .bm-menu__more:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.bm-menu a[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 var(--bm-red); border-radius: 0; }
.bm-menu .dropdown-menu {
    background: rgba(18, 16, 30, .97); border: 1px solid var(--bm-line); border-radius: 14px; padding: .4rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .5);
}
.bm-menu .dropdown-item { border-radius: 10px; color: #e8e5f7; font-weight: 600; font-size: .9rem; padding: .55rem .9rem; }
.bm-menu .dropdown-item:hover, .bm-menu .dropdown-item:focus { background: rgba(255, 255, 255, .08); color: #fff; }
.bm-nav__cta { margin-left: .5rem; }
.bm-burger {
    display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--bm-line);
    background: rgba(255, 255, 255, .06); color: #fff; align-items: center; justify-content: center;
}
.bm-burger span, .bm-burger span::before, .bm-burger span::after {
    display: block; width: 20px; height: 2px; background: currentColor; position: relative; transition: transform .25s, background .25s;
}
.bm-burger span::before, .bm-burger span::after { content: ""; position: absolute; left: 0; }
.bm-burger span::before { top: -6px; }
.bm-burger span::after { top: 6px; }
.bm-burger[aria-expanded="true"] span { background: transparent; }
.bm-burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.bm-burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1199.98px) {
    .bm-burger { display: inline-flex; }
    .bm-nav__cta { display: none; }
    .bm-menu-wrap {
        position: fixed; inset: var(--bm-nav-h) 0 auto 0; max-height: calc(100svh - var(--bm-nav-h)); overflow-y: auto;
        background: rgba(8, 7, 15, .97); backdrop-filter: blur(16px); border-bottom: 1px solid var(--bm-line);
        padding: 1rem 1.25rem 1.5rem;
    }
    .bm-menu-wrap:not(.show) { display: none; }
    .bm-menu { flex-direction: column; align-items: stretch; }
    .bm-menu a, .bm-menu .bm-menu__more { font-family: var(--bm-display); font-weight: 400; font-size: 1.35rem; padding: .7rem .25rem; border-radius: 0; }
    .bm-menu a[aria-current="page"] { box-shadow: none; color: var(--bm-red); }
    .bm-menu .dropdown-menu { position: static !important; transform: none !important; background: transparent; border: 0; box-shadow: none; padding: 0 0 0 1rem; }
    .bm-menu .dropdown-item { font-size: 1rem; }
    .bm-menu-social { display: flex !important; }
}
@media (min-width: 1200px) {
    .bm-menu-wrap { display: block !important; }
    .bm-menu-social { display: none !important; }
}

/* ---------- Social icon row ---------- */
.bm-social { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0; }
.bm-social a {
    width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1px solid var(--bm-line); color: #fff;
    transition: transform .2s, background .2s, color .2s, box-shadow .2s;
}
.bm-social a:hover { transform: translateY(-3px); background: var(--bm-red); box-shadow: 0 8px 24px -6px var(--bm-red); }
.bm-social svg { width: 18px; height: 18px; }

/* ---------- Home hero ---------- */
.bm-hero {
    position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden;
    padding: calc(var(--bm-nav-h) + 2rem) 0 6rem; isolation: isolate; background: #000;
}
.bm-hero__media, .bm-hero__media video, .bm-hero__media img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -3;
}
.bm-hero__media video, .bm-hero__media img { filter: saturate(1.35) contrast(1.08) blur(.6px); transform: scale(1.04); }
.bm-hero__shade {
    position: absolute; inset: 0; z-index: -2;
    background:
        radial-gradient(ellipse at 70% 40%, transparent 0%, rgba(8, 7, 15, .35) 55%, rgba(8, 7, 15, .9) 100%),
        linear-gradient(90deg, rgba(8, 7, 15, .92) 0%, rgba(8, 7, 15, .55) 45%, rgba(8, 7, 15, .2) 100%),
        linear-gradient(0deg, var(--bm-bg) 0%, transparent 30%);
}
.bm-hero__scan {
    position: absolute; inset: 0; z-index: -1; pointer-events: none; mix-blend-mode: overlay; opacity: .5;
    background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .55) 0 1px, transparent 1px 3px);
}
.bm-hero__scan::after {
    content: ""; position: absolute; left: 0; right: 0; height: 30%; top: -30%;
    background: linear-gradient(180deg, transparent, rgba(45, 226, 255, .18), transparent);
    animation: bm-sweep 7s linear infinite;
}
/* Synthwave floor grid */
.bm-hero__grid {
    position: absolute; left: -50%; right: -50%; bottom: -2px; height: 42%; z-index: -1; pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 63, 164, .55) 1.5px, transparent 1.5px),
        linear-gradient(90deg, rgba(45, 226, 255, .45) 1.5px, transparent 1.5px);
    background-size: 70px 70px;
    transform: perspective(380px) rotateX(62deg); transform-origin: 50% 100%;
    -webkit-mask-image: linear-gradient(0deg, #000 10%, transparent 85%);
            mask-image: linear-gradient(0deg, #000 10%, transparent 85%);
    animation: bm-grid 2.4s linear infinite; opacity: .55;
}
.bm-hero__content { position: relative; }
.bm-hero__status {
    display: inline-flex; align-items: center; gap: .6rem; padding: .5rem .9rem; border-radius: 999px;
    background: rgba(0, 0, 0, .5); border: 1px solid rgba(255, 255, 255, .15); backdrop-filter: blur(6px);
    margin-bottom: 1.5rem;
}
.bm-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--bm-muted); flex: none; }
.is-open .bm-dot { background: var(--bm-lime); box-shadow: 0 0 0 0 rgba(184, 255, 60, .7); animation: bm-ping 1.8s infinite; }
.is-closed .bm-dot { background: var(--bm-red); }
.bm-hero h1 {
    font-family: var(--bm-display); font-weight: 400; font-size: clamp(3rem, 9vw, 7.5rem); line-height: .86;
    margin: 0 0 1.5rem; text-transform: uppercase;
}
.bm-hero h1 .bm-line { display: block; }
.bm-hero h1 .bm-line--red { color: var(--bm-red); text-shadow: 0 0 30px rgba(255, 90, 54, .6), 0 0 80px rgba(255, 90, 54, .35); }
.bm-hero__sub { font-size: clamp(1.05rem, 1.7vw, 1.3rem); color: #e4e1f5; max-width: 34rem; line-height: 1.6; margin-bottom: 2rem; }
.bm-hero__sub:has(+ .bm-hero__f2p) { margin-bottom: .4rem; }
.bm-hero__f2p { font-size: clamp(.85rem, 1.1vw, .98rem); color: var(--bm-muted); letter-spacing: .02em; margin-bottom: 2rem; }
.bm-hero__ctas { display: flex; flex-wrap: wrap; gap: .8rem; }
.bm-hero__logo {
    width: min(100%, 440px); filter: drop-shadow(0 0 40px rgba(255, 90, 54, .35)) drop-shadow(0 20px 40px rgba(0, 0, 0, .6));
    animation: bm-float 6s ease-in-out infinite;
}
.bm-hero__logo--sm { width: 130px; }
.bm-hero__logo { height: auto; }
.bm-hero__press {
    position: absolute; left: 50%; bottom: 4.25rem; transform: translateX(-50%);
    color: #fff; text-decoration: none; text-align: center; animation: bm-blink 1.2s steps(2, start) infinite;
}
.bm-hero__press:hover { color: var(--bm-lime); }
.bm-hero__toggle {
    position: absolute; right: 1.25rem; bottom: 4rem; z-index: 2;
    width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3);
    background: rgba(0, 0, 0, .45); color: #fff; display: inline-flex; align-items: center; justify-content: center;
}
.bm-hero__toggle svg { width: 16px; height: 16px; }

/* Glitch text */
.bm-glitch { position: relative; display: inline-block; }
.bm-glitch::before, .bm-glitch::after {
    content: attr(data-text); position: absolute; inset: 0; pointer-events: none;
}
.bm-glitch::before { color: var(--bm-cyan); transform: translate(-3px, 0); clip-path: inset(0 0 0 0); opacity: 0; animation: bm-glitch-a 4.5s infinite steps(1); }
.bm-glitch::after { color: var(--bm-pink); transform: translate(3px, 0); opacity: 0; animation: bm-glitch-b 4.5s infinite steps(1); }

/* Typed rotating word */
.bm-rotator { color: var(--bm-cyan); text-shadow: 0 0 18px rgba(45, 226, 255, .6); white-space: nowrap; }
.bm-rotator::after { content: "_"; animation: bm-blink 1s steps(2, start) infinite; color: #fff; }

/* ---------- Ticker ---------- */
.bm-ticker {
    position: relative; z-index: 2; overflow: hidden; background: var(--bm-red); color: #fff;
    transform: rotate(-1.6deg); margin: -2.25rem -2% 0; width: 104%;
    box-shadow: 0 10px 40px -10px rgba(255, 90, 54, .7);
    border-top: 3px solid #000; border-bottom: 3px solid #000;
}
.bm-ticker--alt { background: var(--bm-cyan); color: #06121a; transform: rotate(1.2deg); margin-top: -1.2rem; box-shadow: none; z-index: 1; }
.bm-ticker__track { display: flex; width: max-content; animation: bm-marquee 38s linear infinite; }
.bm-ticker--alt .bm-ticker__track { animation-direction: reverse; animation-duration: 46s; }
.bm-ticker ul { display: flex; list-style: none; margin: 0; padding: .85rem 0; }
.bm-ticker li { font-family: var(--bm-display); font-size: clamp(1rem, 2vw, 1.4rem); white-space: nowrap; padding: 0 1.25rem; display: flex; align-items: center; gap: 2.5rem; }
.bm-ticker li::after { content: "✦"; font-size: .8em; }

/* ---------- Feature bento ---------- */
.bm-bento {
    display: grid; gap: 1rem;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: clamp(220px, 22vw, 300px);
    grid-auto-flow: dense;
}
.bm-tile {
    --c: var(--bm-red);
    position: relative; display: block; overflow: hidden; border-radius: var(--bm-radius); isolation: isolate;
    background: var(--bm-surface); color: #fff; text-decoration: none;
    box-shadow: inset 0 0 0 1px var(--bm-line);
    transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s;
}
.bm-tile--tall { grid-row: span 2; }
.bm-tile--wide { grid-column: span 2; }
.bm-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .7s cubic-bezier(.2, .8, .2, 1), filter .4s; }
.bm-tile::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(180deg, rgba(8, 7, 15, 0) 35%, rgba(8, 7, 15, .92) 100%);
}
.bm-tile::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    box-shadow: inset 0 0 0 2px var(--c), 0 0 34px -4px var(--c); opacity: 0; transition: opacity .3s;
}
.bm-tile:hover, .bm-tile:focus-visible { color: #fff; transform: translateY(-6px); }
.bm-tile:hover::after, .bm-tile:focus-visible::after { opacity: 1; }
.bm-tile:hover img, .bm-tile:focus-visible img { transform: scale(1.07); filter: saturate(1.25); }
.bm-tile__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.25rem 1.35rem; }
.bm-tile__num { color: var(--c); text-shadow: 0 0 12px var(--c); margin-bottom: .55rem; display: block; }
.bm-tile__title { font-family: var(--bm-display); font-size: clamp(1.35rem, 2.2vw, 1.9rem); line-height: 1; margin: 0; }
.bm-tile__text {
    margin: .55rem 0 0; color: #dcd9ee; font-size: .93rem; line-height: 1.5;
    max-height: 0; opacity: 0; overflow: hidden; transition: max-height .4s ease, opacity .3s ease;
}
.bm-tile:hover .bm-tile__text, .bm-tile:focus-visible .bm-tile__text { max-height: 8rem; opacity: 1; }
@media (hover: none) { .bm-tile__text { max-height: none; opacity: 1; } }
@media (max-width: 991.98px) {
    .bm-bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 240px; }
}
@media (max-width: 575.98px) {
    .bm-bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 210px; gap: .7rem; }
    .bm-tile--wide { grid-column: span 2; }
    .bm-tile__body { padding: .9rem; }
    .bm-tile__text { display: none; }
}

/* ---------- Game library ---------- */
.bm-games { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.bm-game {
    --c: var(--bm-red);
    position: relative; overflow: hidden; min-height: 170px; border-radius: var(--bm-radius); isolation: isolate;
    background:
        radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--c) 38%, transparent) 0%, transparent 60%),
        linear-gradient(160deg, var(--bm-surface-2), var(--bm-surface));
    border: 1px solid var(--bm-line); display: flex; align-items: flex-end;
    transition: transform .3s cubic-bezier(.2, .8, .2, 1), border-color .3s, box-shadow .3s;
}
.bm-game::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c); box-shadow: 0 0 16px var(--c); }
.bm-game:hover { transform: translateY(-5px); border-color: var(--c); box-shadow: 0 0 36px -8px var(--c); }
.bm-game__mark {
    position: absolute; right: -.2rem; top: -.6rem; z-index: -1; font-family: var(--bm-display); font-size: 5.2rem; line-height: 1;
    color: transparent; -webkit-text-stroke: 1.5px color-mix(in srgb, var(--c) 55%, transparent); transition: transform .4s;
}
.bm-game:hover .bm-game__mark { transform: translateX(-6px) scale(1.04); }
.bm-game__badge { position: absolute; z-index: 1; top: .9rem; left: 1.1rem; font-size: .48rem; padding: .35rem .5rem; border-radius: 6px; background: var(--c); color: #0b0b12; }
.bm-game__body { padding: 1.1rem 1.25rem 1.2rem 1.4rem; width: 100%; }
.bm-game__name { font-family: var(--bm-display); font-weight: 400; font-size: clamp(1.05rem, 1.6vw, 1.35rem); line-height: 1.05; margin: 0 0 .6rem; }
.bm-game__logo { max-height: 56px; max-width: 80%; object-fit: contain; margin-bottom: .6rem; }
.bm-game__meta { display: flex; flex-wrap: wrap; gap: .4rem; }
.bm-game__meta span { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #dcd9ee; padding: .2rem .55rem; border-radius: 999px; background: rgba(255, 255, 255, .07); }
@media (max-width: 991.98px) { .bm-games { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767.98px) {
    .bm-games { grid-template-columns: repeat(2, 1fr); gap: .7rem; }
    .bm-game { min-height: 150px; }
    .bm-game__mark { font-size: 3.8rem; }
}

/* ---------- Stats ---------- */
.bm-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.bm-stat {
    position: relative; padding: 1.6rem 1.4rem; border-radius: var(--bm-radius);
    background: linear-gradient(160deg, var(--bm-surface-2), var(--bm-surface)); border: 1px solid var(--bm-line); overflow: hidden;
}
.bm-stat::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c, var(--bm-red)); box-shadow: 0 0 16px var(--c, var(--bm-red)); }
.bm-stat__big { font-family: var(--bm-display); font-size: clamp(2rem, 4vw, 3rem); line-height: 1; color: var(--c, var(--bm-red)); }
.bm-stat__label { margin-top: .5rem; color: #dcd9ee; font-weight: 600; }
@media (max-width: 991.98px) { .bm-stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Split media blocks ---------- */
.bm-split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.bm-split--flip > :first-child { order: 2; }
@media (max-width: 991.98px) { .bm-split, .bm-split--flip { grid-template-columns: 1fr; } .bm-split--flip > :first-child { order: 0; } }
.bm-frame {
    position: relative; border-radius: var(--bm-radius); overflow: hidden;
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8), 0 0 0 1px var(--bm-line);
}
.bm-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bm-frame--neon { box-shadow: 0 0 0 2px var(--c, var(--bm-cyan)), 0 0 50px -8px var(--c, var(--bm-cyan)), 0 30px 60px -20px rgba(0, 0, 0, .8); }
.bm-collage { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.bm-collage .bm-frame { aspect-ratio: 3 / 4; }
.bm-collage .bm-frame:nth-child(2) { transform: translateY(2.5rem); }
.bm-sticker {
    position: absolute; z-index: 3; font-family: var(--bm-display); font-size: 1rem; line-height: 1.05; text-align: center;
    background: var(--bm-lime); color: #0b0b0b; padding: 1rem; width: 7.5rem; height: 7.5rem; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; transform: rotate(-12deg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .5); animation: bm-wobble 5s ease-in-out infinite;
}

/* Named cocktails in the drinks collage */
.bm-drink { margin: 0; }
.bm-drink__tag {
    position: absolute; left: .75rem; right: .75rem; bottom: .75rem; z-index: 2;
    display: flex; flex-direction: column; gap: .3rem; padding: .7rem .9rem; border-radius: 12px;
    color: #fff; transform: rotate(-3deg); box-shadow: 0 10px 30px rgba(0, 0, 0, .55);
}
.bm-drink__tag .bm-hud { font-size: .5rem; opacity: .9; }
.bm-drink__tag b { font-family: var(--bm-display); font-weight: 400; font-size: clamp(1.1rem, 2vw, 1.5rem); line-height: 1; text-transform: uppercase; }
.bm-drink__tag--slurp { background: linear-gradient(120deg, #1e6bff, #8b5cf6 55%, #2de2ff); transform: rotate(3deg); }
.bm-drink__tag--blanka { background: linear-gradient(120deg, #2f9e44, #8bd400 60%, #ff8a00); color: #0b1a05; }

/* Checklist */
.bm-checks { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: .7rem; }
.bm-checks li { position: relative; padding-left: 2rem; color: #dcd9ee; }
.bm-checks li::before {
    content: ""; position: absolute; left: 0; top: .3rem; width: 1.1rem; height: 1.1rem; border-radius: 4px;
    background: var(--bm-red); box-shadow: 0 0 12px rgba(255, 90, 54, .7);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 0h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2zm10.03 4.97a.75.75 0 0 0-1.08.02L7.47 9.42 5.38 7.33a.75.75 0 0 0-1.06 1.06l2.65 2.65a.75.75 0 0 0 1.08-.02l4-5a.75.75 0 0 0-.02-1.05z'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 0h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2zm10.03 4.97a.75.75 0 0 0-1.08.02L7.47 9.42 5.38 7.33a.75.75 0 0 0-1.06 1.06l2.65 2.65a.75.75 0 0 0 1.08-.02l4-5a.75.75 0 0 0-.02-1.05z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- Phone video ---------- */
.bm-phone {
    position: relative; width: min(100%, 320px); aspect-ratio: 464 / 848; margin-inline: auto;
    border-radius: 42px; padding: 10px; background: linear-gradient(145deg, #2b2640, #0c0a14);
    box-shadow: 0 0 0 2px #3a3456, 0 0 60px -10px var(--bm-pink), 0 40px 80px -20px rgba(0, 0, 0, .9);
    transform: rotate(3deg);
}
.bm-phone video { width: 100%; height: 100%; object-fit: cover; border-radius: 33px; display: block; background: #000; }
.bm-phone::before { content: ""; position: absolute; top: 18px; left: 50%; width: 80px; height: 22px; border-radius: 20px; background: #000; transform: translateX(-50%); z-index: 2; }

/* ---------- Cards / panels ---------- */
.bm-panel {
    background: linear-gradient(160deg, var(--bm-surface-2), var(--bm-surface));
    border: 1px solid var(--bm-line); border-radius: var(--bm-radius); padding: clamp(1.4rem, 3vw, 2.2rem);
}
.bm-panel h3 { font-family: var(--bm-display); font-size: 1.35rem; font-weight: 400; }
.bm-hours { list-style: none; padding: 0; margin: 0; }
.bm-hours li { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px dashed var(--bm-line); }
.bm-hours li:last-child { border-bottom: 0; }
.bm-hours li span:first-child { font-weight: 700; color: #fff; }
.bm-hours li.is-today { color: var(--bm-lime); }
.bm-hours li.is-today span:first-child { color: var(--bm-lime); }
.bm-hours .is-closed-day { color: var(--bm-muted); }
.bm-map-frame { width: 100%; height: 100%; min-height: 320px; border: 0; border-radius: var(--bm-radius); filter: invert(.9) hue-rotate(180deg) saturate(.8); }

/* ---------- Interior page header ---------- */
.bm-page-hero {
    position: relative; isolation: isolate; overflow: hidden;
    padding: calc(var(--bm-nav-h) + clamp(3.5rem, 9vw, 7rem)) 0 clamp(3rem, 7vw, 5.5rem);
    margin-top: calc(var(--bm-nav-h) * -1);
}
.bm-page-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: saturate(1.2); }
.bm-page-hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(90deg, rgba(8, 7, 15, .95) 0%, rgba(8, 7, 15, .7) 50%, rgba(8, 7, 15, .35) 100%), linear-gradient(0deg, var(--bm-bg) 0%, transparent 45%);
}
.bm-page-hero::after {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .35; mix-blend-mode: overlay;
    background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .6) 0 1px, transparent 1px 3px);
}
.bm-page-hero h1 { font-family: var(--bm-display); font-weight: 400; font-size: clamp(2.6rem, 8vw, 6rem); line-height: .9; margin: 0 0 1rem; text-transform: uppercase; }
.bm-page-hero p { font-size: clamp(1.05rem, 1.8vw, 1.35rem); color: #e4e1f5; max-width: 40rem; margin: 0; }

/* ---------- Team: character select ---------- */
.bm-roster { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.25rem; }
.bm-roster--leads { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.bm-player {
    --c: var(--bm-red);
    position: relative; display: flex; flex-direction: column; border-radius: var(--bm-radius); overflow: hidden;
    background: var(--bm-surface); border: 1px solid var(--bm-line);
    transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s, border-color .35s;
}
.bm-player:hover, .bm-player:focus-within { transform: translateY(-8px); border-color: var(--c); box-shadow: 0 0 0 1px var(--c), 0 0 46px -8px var(--c), 0 30px 60px -25px #000; }
.bm-player__photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #000; }
.bm-player__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .8, .2, 1), filter .4s; filter: saturate(1.05); }
.bm-player:hover .bm-player__photo img { transform: scale(1.06); filter: saturate(1.3); }
.bm-player__photo::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(0deg, var(--bm-surface) 0%, transparent 40%), repeating-linear-gradient(0deg, rgba(0, 0, 0, .25) 0 1px, transparent 1px 3px);
}
.bm-player__tag {
    position: absolute; top: .9rem; left: .9rem; z-index: 2; padding: .45rem .6rem; border-radius: 8px;
    background: var(--c); color: #fff; box-shadow: 0 0 18px var(--c);
}
.bm-player__body { padding: 0 1.4rem 1.5rem; margin-top: -2.5rem; position: relative; z-index: 2; display: flex; flex-direction: column; flex: 1; }
.bm-player__name { font-family: var(--bm-display); font-size: clamp(1.7rem, 3vw, 2.2rem); line-height: 1; margin: 0; }
.bm-player__real { color: var(--bm-muted); font-weight: 600; font-size: .9rem; }
.bm-player__role { display: inline-block; margin: .65rem 0 .9rem; color: var(--c); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; }
.bm-player__bio { color: #d4d1e6; font-size: .95rem; line-height: 1.65; margin: 0; }
.bm-player__bio p { margin-bottom: .8rem; }
.bm-player__bio p:last-child { margin-bottom: 0; }
.bm-meter { margin-top: auto; padding-top: 1.1rem; display: grid; gap: .45rem; }
.bm-meter div { display: grid; grid-template-columns: 5.5rem 1fr; align-items: center; gap: .6rem; font-size: .72rem; color: var(--bm-muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.bm-meter i { display: block; height: 7px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.bm-meter i::after { content: ""; display: block; height: 100%; width: var(--v); background: var(--c); box-shadow: 0 0 10px var(--c); border-radius: inherit; transform-origin: left; animation: bm-fill 1.2s cubic-bezier(.2, .8, .2, 1) both; }

/* ---------- Accordion (FAQ, organizers) ---------- */
.bm-accordion .accordion-item { background: var(--bm-surface); border: 1px solid var(--bm-line); border-radius: 14px !important; margin-bottom: .75rem; overflow: hidden; color: var(--bm-text); }
.bm-accordion .accordion-button {
    background: transparent; color: #fff; font-weight: 700; font-size: 1.08rem; padding: 1.15rem 1.35rem; box-shadow: none;
}
.bm-accordion .accordion-button:not(.collapsed) { color: var(--bm-red); background: rgba(255, 90, 54, .06); }
.bm-accordion .accordion-button::after { filter: invert(1); }
.bm-accordion .accordion-button:not(.collapsed)::after { filter: invert(48%) sepia(90%) saturate(2400%) hue-rotate(345deg); }
.bm-accordion .accordion-body { color: #d4d1e6; line-height: 1.7; padding: 0 1.35rem 1.35rem; }

/* ---------- Widgets (Elfsight) ---------- */
.bm-widget { border-radius: var(--bm-radius); overflow: hidden; }
.bm-widget--light { background: #fff; color: #111; padding: 1rem; }

/* ---------- Press ---------- */
.bm-facts dt { font-family: var(--bm-hud); font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; color: var(--bm-cyan); margin-top: 1.1rem; }
.bm-facts dd { margin: .35rem 0 0; color: #e4e1f5; }
.bm-tabs { gap: .5rem; border: 0; margin-bottom: 1.25rem; }
.bm-tabs .nav-link { border: 1px solid var(--bm-line); border-radius: 999px; color: #e4e1f5; font-weight: 700; padding: .55rem 1.1rem; background: rgba(255, 255, 255, .04); }
.bm-tabs .nav-link.active, .bm-tabs .nav-link:hover { background: var(--bm-red); border-color: var(--bm-red); color: #fff; }
.bm-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .75rem; margin: 1rem 0 1.25rem; }
.bm-thumbs a, .bm-thumbs span { display: block; aspect-ratio: 1; border-radius: 12px; background: #fff; padding: .5rem; overflow: hidden; }
.bm-thumbs a.is-dark { background: #1b1828; }
.bm-thumbs img { width: 100%; height: 100%; object-fit: contain; }

/* ---------- Footer ---------- */
.bm-footer { position: relative; background: #05040a; border-top: 1px solid var(--bm-line); color: var(--bm-muted); overflow: hidden; }
.bm-footer h2, .bm-footer h3 { color: #fff; }
.bm-footer h3 { font-family: var(--bm-hud); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--bm-red); margin-bottom: 1.1rem; }
.bm-footer a { color: #e4e1f5; text-decoration: none; }
.bm-footer a:hover { color: var(--bm-cyan); }
.bm-footer ul { list-style: none; padding: 0; margin: 0; }
.bm-footer li { margin-bottom: .5rem; }
.bm-footer__news {
    position: relative; margin-top: -1px; padding: clamp(2.5rem, 6vw, 4rem) 0;
    background: linear-gradient(110deg, #ff5a36 0%, #ff3fa4 55%, #8b5cf6 100%); color: #fff; overflow: hidden;
}
.bm-footer__news::after {
    content: ""; position: absolute; inset: 0; opacity: .18; pointer-events: none;
    background: repeating-linear-gradient(-45deg, #000 0 2px, transparent 2px 14px);
}
.bm-footer__news .container-xl { position: relative; z-index: 1; }
.bm-footer__news h2 { font-family: var(--bm-display); font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1; margin: 0 0 .5rem; }
.bm-footer__news p { margin: 0; color: rgba(255, 255, 255, .92); }
.bm-footer__news .bm-btn { --c: #08070f; }
.bm-footer__giant {
    font-family: var(--bm-display); font-size: clamp(2.5rem, 12.5vw, 11rem); line-height: .8; text-align: center;
    color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .1); white-space: nowrap; user-select: none;
    margin: 2rem 0 -1.2rem; pointer-events: none;
}
.bm-footer__legal { border-top: 1px solid var(--bm-line); padding: 1.25rem 0; font-size: .82rem; position: relative; z-index: 1; background: #05040a; }

/* ---------- Events (theme overrides for the events app) ---------- */
.bm-events { background: transparent; }
.bm-chip {
    display: inline-flex; align-items: center; padding: .3rem .8rem; border-radius: 999px; font-size: .8rem; font-weight: 700;
    color: #fff; text-decoration: none; border: 1px solid rgba(255, 255, 255, .15);
}
.bm-chip:hover { color: #fff; filter: brightness(1.15); }
.bm-chip.is-active { outline: 2px solid #fff; outline-offset: 2px; }
.bm-tag { background: rgba(255, 255, 255, .07); }
.bm-card {
    background: var(--bm-surface); border: 1px solid var(--bm-line) !important; border-radius: var(--bm-radius) !important; overflow: hidden;
    transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s, border-color .3s;
}
.bm-card:hover { transform: translateY(-6px); border-color: var(--bm-red) !important; box-shadow: 0 0 40px -10px var(--bm-red); }
.bm-card img, .bm-feature img { object-fit: cover; width: 100%; height: 100%; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.bm-card:hover img { transform: scale(1.05); }
.bm-card .card-title { font-family: var(--bm-display); font-weight: 400; font-size: 1.3rem; line-height: 1.05; }
.bm-date-badge {
    position: absolute; top: .85rem; left: .85rem; background: var(--bm-red); color: #fff; border-radius: 12px;
    padding: .35rem .7rem; text-align: center; line-height: 1.05; box-shadow: 0 0 20px rgba(255, 90, 54, .6);
}
/* Bootstrap's .ratio > * would stretch the badge over the whole image. */
.ratio > .bm-date-badge { width: auto; height: auto; top: .85rem; left: .85rem; }
.bm-date-badge .day { font-family: var(--bm-display); font-size: 1.5rem; }
.bm-cal { table-layout: fixed; --bs-table-bg: transparent; }
.bm-cal th { text-align: center; font-weight: 700; color: var(--bm-muted); text-transform: uppercase; font-size: .75rem; letter-spacing: .08em; }
.bm-cal td { height: 7.5rem; vertical-align: top; padding: .4rem; border-color: var(--bm-line) !important; background: var(--bm-surface); }
.bm-cal td.is-out { background: rgba(255, 255, 255, .015); color: #5d5975; }
.bm-cal td.is-today { box-shadow: inset 0 0 0 2px var(--bm-red); }
.bm-cal .bm-daynum { font-size: .85rem; font-weight: 700; }
.bm-cal-event {
    display: block; font-size: .75rem; line-height: 1.2; color: #fff; text-decoration: none;
    border-left: 4px solid var(--cat, var(--bm-red)); background: rgba(255, 255, 255, .06);
    padding: .25rem .4rem; margin-top: .3rem; border-radius: .3rem;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bm-cal-event:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.bm-map { border: 0; width: 100%; min-height: 320px; border-radius: 14px; filter: invert(.9) hue-rotate(180deg) saturate(.8); }
.bm-events .btn-outline-light { border-color: rgba(255, 255, 255, .3); }
.bm-events .btn-outline-light:hover { background: var(--bm-red); border-color: var(--bm-red); color: #fff; }
.bm-events h2.h5 { font-family: var(--bm-hud); font-size: .65rem !important; letter-spacing: .12em; color: var(--bm-red) !important; }
.bm-events .display-5, .bm-events .display-6, .bm-events h2.h2, .bm-events h2.h3 { font-family: var(--bm-display); font-weight: 400 !important; }
.bm-feature { border-radius: var(--bm-radius) !important; }

/* Generic dark alerts */
.alert { border-radius: 14px; }

/* ---------- Scroll reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Keyframes ---------- */
@keyframes bm-marquee { to { transform: translateX(-50%); } }
@keyframes bm-grid { to { background-position: 0 70px, 0 0; } }
@keyframes bm-sweep { to { top: 100%; } }
@keyframes bm-float { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-14px) rotate(1deg); } }
@keyframes bm-blink { to { visibility: hidden; } }
@keyframes bm-ping { 70% { box-shadow: 0 0 0 10px rgba(184, 255, 60, 0); } 100% { box-shadow: 0 0 0 0 rgba(184, 255, 60, 0); } }
@keyframes bm-wobble { 0%, 100% { transform: rotate(-12deg) scale(1); } 50% { transform: rotate(-6deg) scale(1.06); } }
@keyframes bm-fill { from { transform: scaleX(0); } }
@keyframes bm-glitch-a {
    0%, 86%, 100% { opacity: 0; clip-path: inset(0 0 0 0); }
    87% { opacity: .9; clip-path: inset(10% 0 60% 0); transform: translate(-6px, -2px); }
    89% { opacity: .9; clip-path: inset(55% 0 15% 0); transform: translate(5px, 2px); }
    91% { opacity: .9; clip-path: inset(30% 0 40% 0); transform: translate(-3px, 0); }
    93% { opacity: 0; }
}
@keyframes bm-glitch-b {
    0%, 86%, 100% { opacity: 0; }
    88% { opacity: .85; clip-path: inset(65% 0 5% 0); transform: translate(6px, 1px); }
    90% { opacity: .85; clip-path: inset(5% 0 70% 0); transform: translate(-5px, -1px); }
    92% { opacity: .85; clip-path: inset(40% 0 35% 0); transform: translate(3px, 0); }
    94% { opacity: 0; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
    .bm-ticker__track { animation: none; }
    .bm-hero__press { animation: none; }
    .js [data-reveal] { opacity: 1; transform: none; }
}
