/* ==========================================================================
   JM INTERACTIVE — SITE STYLES
   Palette derived from the official JM Interactive Logo:
   - Obsidian Dark:   #0b0e14 / #14171c
   - Electric Cyan:   #1de9e2 / #00ffcc
   - Interactive Sky: #2b95ff / #38bdf8
   - Signal White:    #ffffff

   CONTRACT: this file is linked by every page on the site. html/body may be
   styled here - that is the site shell - but no component may be targeted by
   a bare element selector (nav {}, footer {}, button {}, a {}). A bare
   selector restyles that element on every page that links this file, which is
   how "click Account and the whole site changed" happened. Style components
   through a class (.jmi-navbar, .btn, .jmi-panel) and let a page extend it.
   scripts/tests/site-theme-scope-test.mjs enforces this.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Orbitron:wght@500;700;800;900&display=swap');

:root {
    --jmi-bg: #0b0e14;
    --jmi-bg-elevated: #14171c;
    --jmi-surface: rgba(20, 25, 35, 0.78);
    --jmi-surface-strong: rgba(15, 20, 30, 0.94);
    --jmi-cyan: #1de9e2;
    --jmi-cyan-glow: #00ffcc;
    --jmi-blue: #2b95ff;
    --jmi-sky: #38bdf8;
    --jmi-white: #ffffff;
    --jmi-text: #f1f5f9;
    --jmi-muted: #94a3b8;
    --jmi-border: rgba(255, 255, 255, 0.09);
    --jmi-border-cyan: rgba(29, 233, 226, 0.28);
    --jmi-radius-lg: 24px;
    --jmi-radius-md: 16px;
    --jmi-radius-sm: 12px;
    --jmi-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.65);
    --jmi-glow-shadow: 0 0 32px rgba(29, 233, 226, 0.22);
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--jmi-bg);
    background-image:
        radial-gradient(circle at 14% 10%, rgba(29, 233, 226, 0.13), transparent 34%),
        radial-gradient(circle at 86% 16%, rgba(43, 149, 255, 0.12), transparent 32%),
        radial-gradient(circle at 50% 90%, rgba(29, 233, 226, 0.07), transparent 40%),
        linear-gradient(180deg, #0b0e14 0%, #101520 50%, #0b0e14 100%);
    color: var(--jmi-text);
    overflow-x: hidden;
    min-height: 100vh;
    line-height: 1.6;
}

/* Subtle tech grid overlay */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(circle at 50% 25%, black 20%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at 50% 25%, black 20%, transparent 80%);
    pointer-events: none;
    z-index: 0;
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.jmi-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 78px;
    background: rgba(11, 14, 20, 0.86);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--jmi-border-cyan);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(18px, 4vw, 48px);
    gap: 20px;
}

.jmi-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.jmi-brand-mark {
    width: 44px;
    height: 36px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(29, 233, 226, 0.35));
    transition: transform 0.25s ease, filter 0.25s ease;
}

.jmi-brand-link:hover .jmi-brand-mark {
    transform: scale(1.06);
    filter: drop-shadow(0 0 16px rgba(29, 233, 226, 0.65));
}

.jmi-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.jmi-brand-wordmark {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.08rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--jmi-white);
    text-transform: uppercase;
}

.jmi-brand-wordmark .cyan {
    color: var(--jmi-cyan);
}

.jmi-brand-sub {
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--jmi-muted);
    font-weight: 600;
    margin-top: 2px;
}

.jmi-nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

.jmi-nav-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.78rem;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 8px 13px;
    border-radius: 999px;
    transition: all 0.22s ease;
}

.jmi-nav-links a:hover,
.jmi-nav-links a.active {
    color: var(--jmi-cyan);
    background: rgba(29, 233, 226, 0.09);
    text-shadow: 0 0 12px rgba(29, 233, 226, 0.45);
}

.jmi-nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 24px;
    border-radius: 12px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
    border: 1px solid transparent;
    line-height: 1.2;
}

.btn-primary {
    background: linear-gradient(135deg, var(--jmi-cyan) 0%, #10b9d8 100%);
    color: #061017;
    box-shadow: 0 8px 25px rgba(29, 233, 226, 0.28);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5ffbf6 0%, var(--jmi-cyan) 100%);
    color: #040a0f;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(29, 233, 226, 0.48);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(29, 233, 226, 0.35);
    color: var(--jmi-white);
}

.btn-outline:hover {
    background: rgba(29, 233, 226, 0.1);
    border-color: var(--jmi-cyan);
    color: var(--jmi-cyan);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(29, 233, 226, 0.16);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--jmi-border);
    color: #e2e8f0;
}

.btn-ghost:hover {
    border-color: rgba(255, 255, 255, 0.28);
    color: var(--jmi-white);
    background: rgba(255, 255, 255, 0.08);
}

.btn-sm {
    padding: 9px 16px;
    font-size: 0.74rem;
    border-radius: 10px;
}

/* ==========================================================================
   PAGE SHELL & HERO
   ========================================================================== */
.jmi-page {
    max-width: 1240px;
    margin: 0 auto;
    padding: 104px 24px 80px;
    position: relative;
    z-index: 2;
}

.jmi-hero {
    position: relative;
    display: grid;
    grid-template-columns: 1.18fr 0.82fr;
    gap: 44px;
    align-items: center;
    padding: 36px 0 64px;
    min-height: calc(90vh - 100px);
}

#jmiHomeParticles {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    opacity: 0.65;
}

.jmi-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(29, 233, 226, 0.09);
    border: 1px solid rgba(29, 233, 226, 0.3);
    color: var(--jmi-cyan);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.jmi-eyebrow .pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--jmi-cyan);
    box-shadow: 0 0 10px var(--jmi-cyan);
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.35); opacity: 0.65; }
}

.jmi-hero h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2.5rem, 4.8vw, 4.35rem);
    font-weight: 800;
    line-height: 1.07;
    letter-spacing: -0.03em;
    margin: 0 0 22px;
    color: var(--jmi-white);
}

.jmi-hero h1 .text-gradient {
    background: linear-gradient(135deg, var(--jmi-cyan) 0%, #60a5fa 60%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.jmi-hero-lead {
    color: #cbd5e1;
    font-size: clamp(1.05rem, 1.4vw, 1.22rem);
    line-height: 1.68;
    margin: 0 0 32px;
    max-width: 640px;
}

.jmi-hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.jmi-metrics-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.jmi-metric-card {
    background: rgba(20, 25, 36, 0.7);
    border: 1px solid var(--jmi-border);
    border-left: 3px solid var(--jmi-cyan);
    border-radius: 14px;
    padding: 14px 16px;
    backdrop-filter: blur(10px);
}

.jmi-metric-card strong {
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.92rem;
    color: var(--jmi-white);
    margin-bottom: 3px;
}

.jmi-metric-card span {
    font-size: 0.8rem;
    color: var(--jmi-muted);
}

/* Right Hero Intro Card */
.jmi-hero-showcase {
    position: relative;
    background: linear-gradient(155deg, rgba(20, 23, 28, 0.95) 0%, rgba(11, 14, 20, 0.96) 100%);
    border: 1px solid rgba(29, 233, 226, 0.32);
    border-radius: 28px;
    padding: 36px 28px 28px;
    box-shadow: var(--jmi-shadow), 0 0 55px rgba(29, 233, 226, 0.14);
    text-align: center;
    overflow: hidden;
}

.jmi-hero-showcase::before {
    content: "";
    position: absolute;
    top: -30%;
    left: -20%;
    width: 140%;
    height: 70%;
    background: radial-gradient(circle, rgba(29, 233, 226, 0.16) 0%, transparent 65%);
    pointer-events: none;
}

.jmi-hero-logo-frame {
    position: relative;
    z-index: 1;
    background: #14171c;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 28px 24px;
    margin-bottom: 22px;
    box-shadow: inset 0 0 36px rgba(0, 0, 0, 0.55);
}

.jmi-hero-logo-img {
    width: 100%;
    max-width: 310px;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 8px 24px rgba(29, 233, 226, 0.22));
    transition: transform 0.35s ease;
}

.jmi-hero-logo-3d {
    display: block;
    width: 100%;
    max-width: 310px;
    height: 250px;
    margin: 0 auto;
    background-color: transparent;
    --poster-color: transparent;
}

.jmi-hero-logo-3d img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.jmi-hero-showcase:hover .jmi-hero-logo-img {
    transform: scale(1.03);
}

.jmi-showcase-badges {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    position: relative;
    z-index: 1;
}

.jmi-showcase-chip {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--jmi-border);
    border-radius: 12px;
    padding: 10px 8px;
    text-align: center;
}

.jmi-showcase-chip small {
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.65rem;
    color: var(--jmi-cyan);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 3px;
}

.jmi-showcase-chip strong {
    font-size: 0.8rem;
    color: var(--jmi-white);
}

.jmi-showcase-footer {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--jmi-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--jmi-muted);
}

.jmi-showcase-footer a {
    color: var(--jmi-cyan);
    text-decoration: none;
    font-weight: 600;
}

.jmi-showcase-footer a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   SECTIONS & HEADINGS
   ========================================================================== */
.jmi-section {
    margin-top: 110px;
    position: relative;
}

.jmi-section-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 52px;
}

.jmi-section-tag {
    display: inline-block;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--jmi-cyan);
    margin-bottom: 10px;
}

.jmi-section-header h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2rem, 3.6vw, 2.85rem);
    font-weight: 800;
    margin: 0 0 14px;
    color: var(--jmi-white);
    letter-spacing: -0.02em;
}

.jmi-section-header p {
    color: var(--jmi-muted);
    font-size: 1.08rem;
    margin: 0;
}

/* ==========================================================================
   SERVICES CARDS
   ========================================================================== */
.jmi-solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.jmi-solution-card {
    background: var(--jmi-surface);
    backdrop-filter: blur(16px);
    border: 1px solid var(--jmi-border);
    border-radius: var(--jmi-radius-lg);
    padding: 34px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.jmi-solution-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--jmi-cyan), var(--jmi-blue));
    opacity: 0.45;
    transition: opacity 0.3s ease;
}

.jmi-solution-card:hover {
    transform: translateY(-6px);
    border-color: rgba(29, 233, 226, 0.42);
    box-shadow: var(--jmi-shadow), var(--jmi-glow-shadow);
}

.jmi-solution-card:hover::after {
    opacity: 1;
}

.jmi-solution-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.jmi-solution-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(29, 233, 226, 0.1);
    border: 1px solid rgba(29, 233, 226, 0.3);
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.jmi-solution-badge {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(43, 149, 255, 0.12);
    border: 1px solid rgba(43, 149, 255, 0.32);
    color: #7dd3fc;
}

.jmi-solution-card h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.42rem;
    font-weight: 700;
    color: var(--jmi-white);
    margin: 0 0 12px;
}

.jmi-solution-card p {
    color: #cbd5e1;
    font-size: 0.98rem;
    margin: 0 0 20px;
    line-height: 1.65;
}

.jmi-Deliverables-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: grid;
    gap: 8px;
}

.jmi-Deliverables-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #94a3b8;
}

.jmi-Deliverables-list li::before {
    content: "✦";
    color: var(--jmi-cyan);
    font-size: 0.85rem;
}

/* ==========================================================================
   SIMPLE PROJECT PROCESS
   ========================================================================== */
.jmi-process-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 36px;
}

.jmi-step-card {
    background: rgba(20, 25, 35, 0.65);
    border: 1px solid var(--jmi-border);
    border-radius: 18px;
    padding: 26px 22px;
    position: relative;
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.jmi-step-card:hover {
    border-color: var(--jmi-border-cyan);
    transform: translateY(-4px);
}

.jmi-step-num {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--jmi-cyan);
    background: rgba(29, 233, 226, 0.1);
    border: 1px solid rgba(29, 233, 226, 0.28);
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 14px;
}

.jmi-step-card h3 {
    font-size: 1.12rem;
    color: var(--jmi-white);
    margin: 0 0 8px;
}

.jmi-step-card p {
    font-size: 0.9rem;
    color: var(--jmi-muted);
    margin: 0;
}

/* ==========================================================================
   INTERACTIVE LAB / GAMES & IT CARDS
   ========================================================================== */
.jmi-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}

.jmi-feature-card {
    background: var(--jmi-surface);
    border: 1px solid var(--jmi-border);
    border-radius: var(--jmi-radius-lg);
    padding: 34px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.jmi-feature-card:hover {
    border-color: var(--jmi-border-cyan);
    transform: translateY(-5px);
    box-shadow: var(--jmi-shadow), var(--jmi-glow-shadow);
}

.jmi-feature-card h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.38rem;
    color: var(--jmi-white);
    margin: 12px 0 10px;
}

.jmi-feature-card p {
    color: #cbd5e1;
    margin: 0 0 24px;
}

/* ==========================================================================
   SHARED PANELS & SECONDARY PAGES
   Used by the homepage player-account block and by the account/ and legal/
   pages, so those pages get the site's card look without re-declaring a
   private theme (which is what used to make them render like a different
   site). Page-local styles may extend these; they must not replace body,
   nav, footer, button, or a.
   ========================================================================== */
.jmi-panel {
    background: var(--jmi-surface);
    border: 1px solid var(--jmi-border-cyan);
    border-radius: var(--jmi-radius-lg);
    padding: 30px;
    box-shadow: var(--jmi-shadow);
    text-align: left;
}

.jmi-panel h2,
.jmi-panel h3 {
    font-family: 'Inter', sans-serif;
    color: var(--jmi-white);
}

.jmi-panel p {
    color: #cbd5e1;
}

/* Content shell for pages that carry the fixed .jmi-navbar but are not the
   full-width landing layout. */
.jmi-subpage {
    position: relative;
    z-index: 2;
    width: min(1120px, calc(100vw - 32px));
    margin: 0 auto;
    padding: 118px 0 40px;
}

.jmi-subpage-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.9rem, 5vw, 3rem);
    line-height: 1.08;
    letter-spacing: 0.02em;
    margin: 0 0 10px;
    color: var(--jmi-white);
}

.jmi-subpage-title .cyan,
.text-gradient {
    color: var(--jmi-cyan);
}

.jmi-subpage-lead {
    color: var(--jmi-muted);
    margin: 0 0 26px;
    max-width: 720px;
}

/* Slim footer for the account/legal pages: same tokens as the site footer. */
.jmi-footer-compact > div {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.jmi-footer-compact {
    position: relative;
    z-index: 2;
    margin-top: 90px;
    padding: 26px 24px;
    border-top: 1px solid var(--jmi-border);
    background: rgba(9, 12, 18, 0.9);
    color: var(--jmi-muted);
    font-size: 0.86rem;
}

.jmi-footer-compact a {
    color: var(--jmi-muted);
    text-decoration: none;
}

.jmi-footer-compact a:hover {
    color: var(--jmi-cyan);
}

@media (max-width: 720px) {
    .jmi-subpage {
        padding-top: 156px;
    }
}

/* ==========================================================================
   CTA BANNER (REPLACES BULKY BOTTOM FORM ON INDEX)
   ========================================================================== */
.jmi-cta-banner {
    margin-top: 110px;
    background:
        radial-gradient(circle at 85% 20%, rgba(29, 233, 226, 0.2), transparent 45%),
        radial-gradient(circle at 15% 80%, rgba(43, 149, 255, 0.18), transparent 45%),
        linear-gradient(145deg, rgba(20, 26, 38, 0.95), rgba(11, 14, 20, 0.98));
    border: 1px solid rgba(29, 233, 226, 0.35);
    border-radius: 28px;
    padding: 48px 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
    box-shadow: var(--jmi-shadow), 0 0 50px rgba(29, 233, 226, 0.12);
}

.jmi-cta-copy {
    max-width: 620px;
}

.jmi-cta-copy h2 {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.75rem, 3vw, 2.4rem);
    color: var(--jmi-white);
    margin: 8px 0 12px;
}

.jmi-cta-copy p {
    color: #cbd5e1;
    margin: 0;
    font-size: 1.05rem;
}

.jmi-cta-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* ==========================================================================
   SLIDE-OUT PROJECT INQUIRY & CONTACT DRAWER
   ========================================================================== */
.jmi-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(4, 7, 12, 0.72);
    backdrop-filter: blur(6px);
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.jmi-drawer-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.jmi-contact-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(480px, 100vw);
    height: 100vh;
    background: #10141d;
    border-left: 1px solid rgba(29, 233, 226, 0.35);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.75);
    z-index: 10001;
    transform: translateX(104%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.jmi-contact-drawer.open {
    transform: translateX(0);
}

.jmi-drawer-header {
    padding: 24px 28px;
    border-bottom: 1px solid var(--jmi-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: sticky;
    top: 0;
    background: rgba(16, 20, 29, 0.95);
    backdrop-filter: blur(12px);
    z-index: 2;
}

.jmi-drawer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.jmi-drawer-brand img {
    width: 36px;
    height: 30px;
    object-fit: contain;
}

.jmi-drawer-brand h3 {
    margin: 0;
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    color: var(--jmi-white);
}

.jmi-drawer-close {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--jmi-border);
    color: #e2e8f0;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    font-size: 1.1rem;
    cursor: pointer;
    display: grid;
    place-items: center;
    padding: 0;
}

.jmi-drawer-close:hover {
    background: rgba(29, 233, 226, 0.15);
    border-color: var(--jmi-cyan);
    color: var(--jmi-cyan);
}

.jmi-drawer-body {
    padding: 28px;
    flex: 1;
}

.jmi-form-grid {
    display: grid;
    gap: 16px;
}

.jmi-field label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}

.jmi-input,
.jmi-select,
.jmi-textarea {
    width: 100%;
    background: rgba(8, 11, 18, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    padding: 13px 16px;
    color: var(--jmi-white);
    font-family: inherit;
    /* 16px is the iOS Safari floor: a smaller control font makes the browser
       zoom the whole page when the field is focused, which shoves the form
       off-screen on a phone. Do not drop this below 1rem. */
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.jmi-textarea {
    min-height: 115px;
    resize: vertical;
}

.jmi-input:focus,
.jmi-select:focus,
.jmi-textarea:focus {
    outline: none;
    border-color: var(--jmi-cyan);
    box-shadow: 0 0 0 3px rgba(29, 233, 226, 0.15);
}

.jmi-form-status {
    margin-top: 12px;
    font-size: 0.9rem;
    border-radius: 10px;
    padding: 10px 14px;
    display: none;
}

.jmi-form-status.success {
    display: block;
    background: rgba(29, 233, 226, 0.12);
    border: 1px solid rgba(29, 233, 226, 0.4);
    color: var(--jmi-cyan);
}

.jmi-form-status.error {
    display: block;
    background: rgba(244, 63, 94, 0.12);
    border: 1px solid rgba(244, 63, 94, 0.4);
    color: #fda4af;
}

/* ==========================================================================
   CONTACT PAGE LAYOUTS
   ========================================================================== */
.jmi-contact-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 36px;
    align-items: start;
}

.jmi-info-stack {
    display: grid;
    gap: 20px;
}

.jmi-info-card {
    background: var(--jmi-surface);
    border: 1px solid var(--jmi-border);
    border-radius: 20px;
    padding: 26px;
}

.jmi-info-card h3 {
    margin: 0 0 8px;
    font-size: 1.15rem;
    color: var(--jmi-white);
}

.jmi-info-card p {
    margin: 0;
    color: var(--jmi-muted);
    font-size: 0.95rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.jmi-footer {
    margin-top: 120px;
    border-top: 1px solid var(--jmi-border);
    background: rgba(9, 12, 18, 0.9);
    padding: 64px 24px 40px;
    position: relative;
    z-index: 2;
}

.jmi-footer-inner {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 36px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--jmi-border);
}

.jmi-footer-col h4 {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--jmi-white);
    margin: 0 0 16px;
}

.jmi-footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.jmi-footer-col a {
    color: var(--jmi-muted);
    text-decoration: none;
    font-size: 0.92rem;
    transition: color 0.2s ease;
}

.jmi-footer-col a:hover {
    color: var(--jmi-cyan);
}

.jmi-footer-bottom {
    max-width: 1240px;
    margin: 28px auto 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    color: var(--jmi-muted);
    font-size: 0.86rem;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
    .jmi-hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-top: 20px;
    }
    .jmi-solutions-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .jmi-solutions-grid > .jmi-solution-card:last-child,
    .jmi-process-grid > .jmi-step-card:last-child {
        grid-column: 1 / -1;
    }
    .jmi-process-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .jmi-contact-layout {
        grid-template-columns: 1fr;
    }
    .jmi-footer-inner {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 720px) {
    .jmi-navbar {
        height: auto;
        padding: 12px 16px;
        flex-wrap: wrap;
    }
    .jmi-nav-links {
        order: 3;
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 4px;
        flex-wrap: nowrap;
    }
    .jmi-nav-links a {
        white-space: nowrap;
    }
    .jmi-page {
        padding-top: 132px;
    }
    .jmi-solutions-grid,
    .jmi-metrics-strip,
    .jmi-process-grid,
    .jmi-footer-inner {
        grid-template-columns: 1fr;
    }
    .jmi-solutions-grid > .jmi-solution-card:last-child,
    .jmi-process-grid > .jmi-step-card:last-child {
        grid-column: auto;
    }
    .jmi-cta-banner {
        padding: 32px 24px;
    }
}

#services {
    scroll-margin-top: 100px;
}

/* ==========================================================================
   HOMEPAGE: GAME CARDS, COMMUNITY SECTION, SMALL SERVICES NOTE
   Games + community are the headline; services are a single quiet line.
   ========================================================================== */
.jmi-games-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.jmi-game-card {
    padding: 0;
    overflow: hidden;
    gap: 0;
}

.jmi-game-card > div:not(.jmi-card-actions) {
    padding: 22px 26px 0;
}

.jmi-game-card .jmi-card-actions {
    padding: 0 26px 26px;
}

.jmi-game-thumb {
    display: block;
    aspect-ratio: 1200 / 630;
    background: #0b1626;
    border-bottom: 1px solid var(--jmi-border);
    overflow: hidden;
}

.jmi-game-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.jmi-game-thumb-art {
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 50% 40%, rgba(29, 233, 226, 0.22), transparent 60%),
        linear-gradient(145deg, #0e1b2e, #07111d);
    font-size: 4rem;
}

.jmi-card-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.jmi-community-layout {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 28px;
    align-items: stretch;
}

.jmi-community-main,
.jmi-community-feed {
    background: var(--jmi-surface);
    border: 1px solid var(--jmi-border);
    border-radius: var(--jmi-radius-lg);
    padding: 30px;
}

.jmi-community-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.jmi-community-feature {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--jmi-border);
    border-radius: 14px;
    padding: 14px;
}

.jmi-community-feature > span {
    font-size: 1.5rem;
    line-height: 1;
}

.jmi-community-feature strong {
    display: block;
    color: var(--jmi-white);
    font-size: 1rem;
}

.jmi-community-feature small {
    display: block;
    color: var(--jmi-muted);
    font-size: 0.86rem;
    margin-top: 2px;
}

.jmi-community-feed h3 {
    margin: 0 0 14px;
    color: var(--jmi-white);
    font-size: 1.1rem;
}

.jmi-community-feed-empty {
    color: var(--jmi-muted);
    margin: 0;
}

.jmi-community-post {
    display: block;
    padding: 12px 0;
    border-top: 1px solid var(--jmi-border);
    color: inherit;
    text-decoration: none;
}

.jmi-community-post:first-child {
    border-top: 0;
    padding-top: 0;
}

.jmi-community-post-kind {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--jmi-cyan);
}

.jmi-community-post strong {
    display: block;
    color: var(--jmi-white);
    margin: 3px 0;
}

.jmi-community-post p {
    margin: 0;
    color: #cbd5e1;
    font-size: 0.92rem;
}

.jmi-community-post small {
    color: var(--jmi-muted);
}

.jmi-community-feed-link {
    display: inline-block;
    margin-top: 14px;
    color: var(--jmi-cyan);
    font-weight: 700;
    text-decoration: none;
}

@media (max-width: 1024px) {
    .jmi-community-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .jmi-community-features {
        grid-template-columns: 1fr;
    }
    .jmi-community-main,
    .jmi-community-feed {
        padding: 22px;
    }
}

/* Accessible label utility. Used by the social network, Messenger, and
   Customization Hub forms, whose labels are announced to screen readers but
   would otherwise duplicate the visible placeholder text. */
.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* ------------------------------------------------------------------ *
 * Social app shell
 *
 * Facebook's structure, not its engagement mechanics: a persistent left
 * rail of shortcuts, a centre stage that carries the feed, and a right
 * rail for supporting panels. Written with CSS logical properties so a
 * future dir="rtl" mirrors the whole thing without per-page overrides.
 *
 * Deliberately absent, because this is a family site with under-13
 * players: algorithmic ranking, infinite scroll, Stories, reaction
 * popovers, share/cross-post, and suggested-friend pressure.
 * ------------------------------------------------------------------ */
.jmi-app-shell {
    display: grid;
    grid-template-columns: minmax(190px, 232px) minmax(0, 1fr) minmax(280px, 340px);
    gap: 20px;
    align-items: start;
    max-width: 1420px;
    margin-inline: auto;
}

/* The rails stick so shortcuts stay reachable mid-scroll; the centre stage
   is the only thing that moves. */
.jmi-rail {
    position: sticky;
    inset-block-start: 84px;
    display: grid;
    gap: 4px;
    align-content: start;
    max-height: calc(100vh - 108px);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.jmi-rail-title {
    margin: 0 0 6px;
    padding-inline: 12px;
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--jmi-muted);
}

.jmi-rail-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: var(--jmi-radius-sm);
    border: 1px solid transparent;
    color: var(--jmi-text, #eef5ff);
    font-size: .9rem;
    font-weight: 750;
    text-decoration: none;
    transition: background-color .16s ease, border-color .16s ease;
}

.jmi-rail-link:hover { background: rgba(255, 255, 255, .06); }

.jmi-rail-link:focus-visible {
    outline: 2px solid var(--jmi-cyan);
    outline-offset: 2px;
}

.jmi-rail-link[aria-current="page"] {
    background: rgba(29, 233, 226, .12);
    border-color: var(--jmi-border-cyan);
    color: var(--jmi-cyan);
}

.jmi-rail-icon {
    flex: 0 0 auto;
    inline-size: 20px;
    block-size: 20px;
    display: grid;
    place-items: center;
    font-size: .95rem;
    line-height: 1;
}

.jmi-rail-badge {
    margin-inline-start: auto;
    min-inline-size: 20px;
    padding: 1px 7px;
    border-radius: 999px;
    background: var(--jmi-cyan);
    color: #04121a;
    font-size: .72rem;
    font-weight: 900;
    text-align: center;
}

/* Avatar. Falls back to the member's initials, because almost nobody in the
   alpha has uploaded a picture and an empty circle reads as a broken image. */
.jmi-avatar {
    flex: 0 0 auto;
    inline-size: 40px;
    block-size: 40px;
    border-radius: 50%;
    border: 1px solid var(--jmi-border-cyan);
    background: linear-gradient(145deg, rgba(29, 233, 226, .22), rgba(124, 58, 237, .22));
    object-fit: cover;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: #eafcff;
    font-size: .92rem;
    font-weight: 900;
    letter-spacing: .02em;
    text-transform: uppercase;
    user-select: none;
}

.jmi-avatar--sm { inline-size: 30px; block-size: 30px; font-size: .76rem; }
.jmi-avatar--lg { inline-size: 52px; block-size: 52px; font-size: 1.15rem; }

@media (max-width: 1180px) {
    .jmi-app-shell { grid-template-columns: minmax(0, 1fr) minmax(260px, 320px); }
    /* No room for three columns: the rail becomes a horizontal strip of
       shortcuts above the feed instead of disappearing entirely. */
    .jmi-rail--left {
        position: static;
        grid-column: 1 / -1;
        grid-row: 1;
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        max-height: none;
        overflow: visible;
        margin-block-end: 4px;
    }
    .jmi-rail--left .jmi-rail-title { display: none; }
    .jmi-rail--left .jmi-rail-link { padding: 7px 12px; }
}

@media (max-width: 820px) {
    .jmi-app-shell { grid-template-columns: minmax(0, 1fr); }
    .jmi-rail { position: static; max-height: none; }
}

@media (prefers-reduced-motion: reduce) {
    .jmi-rail-link { transition: none; }
}


/* ------------------------------------------------------------------ *
 * Peaceful mode (website/js/peaceful-mode.js)
 *
 * A device-local calm switch: decorative layers drop out, media waits behind
 * a tap. The html.peaceful class is set by the module; the media placeholder
 * styles live here so every feed page renders it the same way.
 * ------------------------------------------------------------------ */

html.peaceful .social-aurora,
html.peaceful .community-aurora,
html.peaceful .community-grid-glow,
html.peaceful .community-stars,
html.peaceful #jmiHomeParticles {
    display: none !important;
}

html.peaceful .jmi-rail-link,
html.peaceful .btn { transition: none; }

.peaceful-media {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    inline-size: 100%;
    margin-block-start: 10px;
    min-block-size: 64px;
    padding: 12px 16px;
    border: 1px dashed var(--jmi-border-cyan, rgba(29, 233, 226, .45));
    border-radius: 12px;
    background: rgba(29, 233, 226, .06);
    color: var(--jmi-cyan, #1de9e2);
    font: inherit;
    font-size: .84rem;
    font-weight: 750;
    cursor: pointer;
}

.peaceful-media:hover { background: rgba(29, 233, 226, .12); }
.peaceful-media:focus-visible { outline: 2px solid var(--jmi-cyan, #1de9e2); outline-offset: 2px; }

.peaceful-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--jmi-border, rgba(255, 255, 255, .14));
    background: rgba(255, 255, 255, .04);
    color: var(--jmi-muted, #9fb4c7);
    font: inherit;
    font-size: .82rem;
    font-weight: 800;
    cursor: pointer;
}

.peaceful-toggle:hover { color: #fff; border-color: var(--jmi-border-cyan, rgba(29, 233, 226, .45)); }

.peaceful-toggle[aria-pressed="true"] {
    border-color: rgba(74, 222, 128, .55);
    background: rgba(74, 222, 128, .12);
    color: #9ff0b4;
}

/* P1-6 visibility/offscreen lifecycle: decorative layers stop when hidden */
.jmi-offscreen .social-aurora,
.jmi-offscreen .community-aurora,
.jmi-offscreen .community-grid-glow,
.jmi-offscreen .community-stars,
.jmi-offscreen #jmiHomeParticles { animation: none !important; }

/* The OS-level preference gets the same calm floor even before the member
   finds the switch. */
@media (prefers-reduced-motion: reduce) {
    .social-aurora,
    .community-aurora,
    .community-grid-glow,
    .community-stars,
    #jmiHomeParticles { animation: none !important; }
}
/* ==========================================================================
   TOUCH DEVICES: MINIMUM TAP TARGETS AND SAFE AREAS
   ==========================================================================
   A mouse is precise; a thumb is not. The control sizes above are tuned for
   a pointer and land around 31-38px, which is a comfortable click and a
   frequent miss with a thumb. Everything below raises the *touch* size to the
   44px minimum (Apple HIG, and the WCAG 2.5.5 target size) without changing
   the desktop layout, because it is gated on `pointer: coarse`.

   Keep the desktop rules tight; add touch adjustments here rather than
   inflating the shared rules for every device. */

@media (pointer: coarse) {
    .jmi-nav-links a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        padding: 10px 14px;
    }

    .btn,
    .btn-sm,
    .jmi-link-button,
    .jmi-rail-link,
    .jmi-showcase-footer a {
        min-height: 44px;
    }

    .btn-sm,
    .jmi-rail-link {
        padding-block: 11px;
    }

    .jmi-drawer-close {
        width: 44px;
        height: 44px;
    }

    /* The drawer runs to the screen edge, so its own controls have to clear
       the home indicator and the rounded corners. */
    .jmi-contact-drawer {
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }

    .jmi-navbar {
        padding-left: max(clamp(18px, 4vw, 48px), env(safe-area-inset-left, 0px));
        padding-right: max(clamp(18px, 4vw, 48px), env(safe-area-inset-right, 0px));
    }
}

@media (max-width: 720px) {
    /* The horizontal nav strip must not be the one thing a thumb cannot hit. */
    .jmi-nav-links {
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .jmi-nav-links::-webkit-scrollbar { display: none; }
}

/* ==========================================================================
   MOBILE OVERLAY BUDGET — the phone corner plan (2026-10-07)
   ==========================================================================
   The site's floating surfaces were each written by a different module and
   each picked its own corner and z-index. On a phone they landed on top of one
   another: the notification bell (.jmi-social-shell, bottom-right, z 9999) sat
   under the homepage mascot (#jeremiah-mascot-widget, bottom-right, z 9999),
   the messenger launcher (.jmi-social-launcher) was in the same corner again,
   and the two side panels are 300px and 318px wide on a 390px screen with
   nothing stopping both being open at once.

   This block is the phone half of the contract in js/mobile-overlay-budget.mjs.
   The corner plan, from the outside of the screen inwards:

     bottom-right   notification bell (48px)      → mascot bubble above it
     bottom-left    profile launcher              → messenger pill above it
     top            side panels, one at a time, full width below the navbar

   Two rules for anyone editing this:

   1. The widgets inject their own <style> at RUNTIME, i.e. after this file, so
      a plain class selector here loses every tie on document order. The
      `html body` prefix is deliberate: it wins on specificity instead, and
      keeps the override legible instead of hiding behind !important.
   2. Every offset is added to env(safe-area-inset-*), because on a phone the
      bottom of the screen is the browser's, not ours.

   Z-index ladder on a phone (desktop keeps its historic values):
     launchers 900  ·  panels opened FROM a launcher 1000  ·  call/journal 1200
     ·  profile modal 20050. The bell lifts itself to 10050 while its panel is
     open (see js/social/notification-bell.js) — that one lives with the widget because
     florida.html and 404.html do not load this stylesheet.
   ========================================================================== */
@media (max-width: 720px) {
    /* --- bottom-right: the bell, then the mascot above it --------------- */
    html body .jmi-social-shell {
        right: max(12px, env(safe-area-inset-right));
        bottom: max(12px, env(safe-area-inset-bottom));
        z-index: 900;
    }

    html body .jmi-bell-btn {
        width: 48px;
        height: 48px;
        border-radius: 15px;
        font-size: 1.15rem;
    }

    /* The panel opens upward out of the bell. Full width minus the insets so
       the cards are readable, and it stops short of the top instead of
       stretching under the navbar. */
    html body .jmi-notify-panel {
        left: max(10px, env(safe-area-inset-left));
        right: auto;
        width: min(430px, calc(100vw - 20px));
        max-height: min(70dvh, 560px);
        bottom: calc(60px + env(safe-area-inset-bottom));
        /* 16px of live blur over a full-width panel is the most expensive
           paint on the page; on a phone the panel is opaque anyway. */
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    /* --- bottom-left: profile launcher, then the messenger pill --------- */
    html body .jpp-launcher {
        left: max(12px, env(safe-area-inset-left));
        bottom: max(12px, env(safe-area-inset-bottom));
        z-index: 890;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    html body .jmi-social-launcher {
        left: max(12px, env(safe-area-inset-left));
        right: auto;
        /* clears the 42px profile pill underneath it */
        bottom: calc(max(12px, env(safe-area-inset-bottom)) + 54px);
        z-index: 880;
        justify-items: start;
    }

    html body .jmi-social-btn {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    /* Its panel is a sheet as well, anchored to the left corner. */
    html body .jmi-social-panel {
        width: min(430px, calc(100vw - 20px));
        max-height: min(70dvh, 520px);
    }

    /* --- a video call is the one floating surface that owns the top ----- */
    html body .jmi-call {
        top: calc(max(12px, env(safe-area-inset-top)) + 78px);
        left: max(8px, env(safe-area-inset-left));
        right: max(8px, env(safe-area-inset-right));
        width: auto;
        max-height: 60dvh;
        z-index: 1050;
    }

    /* --- side panels: one at a time, below the navbar, never two -------- */
    html body #jmi-live-community,
    html body #jmi-friend-presence {
        top: calc(max(12px, env(safe-area-inset-top)) + 86px);
        left: max(10px, env(safe-area-inset-left));
        right: max(10px, env(safe-area-inset-right));
        width: auto;
        max-width: none;
        max-height: min(64dvh, 520px);
        overflow: auto;
        z-index: 1000;
    }

    /* Folded, they are small pills that keep their own corner: friends on the
       left, live activity on the right. Two pills cannot cover the page the
       way two 300px panels can. */
    html body #jmi-live-community[data-collapsed="true"] {
        left: auto;
        right: max(10px, env(safe-area-inset-right));
        width: auto;
        max-width: 62vw;
        overflow: visible;
    }

    html body #jmi-friend-presence[data-collapsed="true"] {
        left: max(10px, env(safe-area-inset-left));
        right: auto;
        width: auto;
        max-width: 62vw;
        overflow: visible;
    }
}

/* Make existing floating-panel controls comfortable on touch and keyboard. */
@media (pointer: coarse) {
    html body #jmi-live-community .lcp-icon-btn,
    html body #jmi-live-community .lcp-link,
    html body .jmi-social-launcher .jmi-social-btn {
        min-width: 44px;
        min-height: 44px;
    }
}

html body #jmi-live-community .lcp-icon-btn:focus-visible,
html body #jmi-live-community .lcp-link:focus-visible,
html body .jmi-social-launcher .jmi-social-btn:focus-visible {
    outline: 3px solid #5eead4;
    outline-offset: 3px;
}
