/* ==========================================================
   Asylonia Community Hall / Mind Sports District Map
   Static 21:9 background + transparent hotspots
   ========================================================== */

body.page-community-hall,
body.page-asylonia-community-hall,
body.page-mind-sports-district {
    overflow: hidden;
    background: #071018;
}

body.page-community-hall .site-header,
body.page-community-hall .site-footer,
body.page-asylonia-community-hall .site-header,
body.page-asylonia-community-hall .site-footer,
body.page-mind-sports-district .site-header,
body.page-mind-sports-district .site-footer {
    display: none;
}

body.page-community-hall .site-main,
body.page-asylonia-community-hall .site-main,
body.page-mind-sports-district .site-main {
    padding: 0;
}

.community-hall-map-page {
    position: relative;
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
    background: #071018;
    color: #fff4d7;
}

.community-hall-viewport {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    cursor: grab;
    background:
        radial-gradient(circle at 50% 6%, rgba(237, 198, 112, .16), transparent 34%),
        #071018;
    user-select: none;
    touch-action: none;
}

.community-hall-viewport.is-dragging {
    cursor: grabbing;
}

.community-hall-stage {
    position: absolute;
    left: 0;
    top: 0;
    width: 2400px;
    transform: translate3d(0, 0, 0) scale(1);
    transform-origin: 0 0;
    will-change: transform;
}

.community-hall-base-image {
    display: block;
    width: 2400px;
    max-width: none;
    height: auto;
    pointer-events: none;
    user-select: none;
}

.community-hall-hotspot-layer {
    position: absolute;
    inset: 0;
    z-index: 20;
}

.community-hall-node {
    position: absolute;
    border: 0;
    padding: 0;
    margin: 0;
    background: transparent;
    cursor: pointer;
    transform: translate(-50%, -50%);
    z-index: 30;
    -webkit-tap-highlight-color: transparent;
}

.community-hall-node::before {
    content: "";
    position: absolute;
    inset: 7%;
    border-radius: 999px;
    border: 1px solid transparent;
    background: transparent;
    box-shadow: none;
    transition:
        border-color .18s ease,
        background .18s ease,
        box-shadow .18s ease,
        transform .18s ease;
}

.community-hall-node:hover::before,
.community-hall-node:focus-visible::before,
.community-hall-node.is-active::before {
    border-color: rgba(244, 204, 119, .66);
    background: radial-gradient(circle, rgba(244, 204, 119, .16), rgba(244, 204, 119, .035) 48%, transparent 74%);
    box-shadow:
        0 0 0 1px rgba(244, 204, 119, .18),
        0 0 34px rgba(244, 204, 119, .24),
        inset 0 0 28px rgba(244, 204, 119, .10);
    transform: scale(1.02);
}

.community-hall-title-card,
.community-hall-hint,
.community-hall-preview,
.community-hall-popup,
.community-hall-controls {
    border: 1px solid rgba(238, 199, 112, .32);
    background:
        linear-gradient(145deg, rgba(11, 17, 25, .84), rgba(7, 10, 14, .68)),
        rgba(0, 0, 0, .28);
    box-shadow: 0 22px 60px rgba(0, 0, 0, .32);
    backdrop-filter: blur(14px);
}

.community-hall-title-card {
    position: fixed;
    left: 22px;
    top: 22px;
    z-index: 80;
    width: min(360px, calc(100vw - 44px));
    padding: 18px 20px;
    border-radius: 22px;
    pointer-events: none;
}

.community-hall-title-card p {
    margin: 0 0 6px;
    color: #f3c964;
    font-size: .78rem;
    font-weight: 950;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.community-hall-title-card h1 {
    margin: 0;
    color: #fff8e8;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 4.5vw, 3.75rem);
    line-height: .9;
    letter-spacing: -.055em;
}

.community-hall-title-card span {
    display: block;
    margin-top: 8px;
    color: rgba(255, 244, 215, .72);
    font-size: .92rem;
    font-weight: 780;
}

.community-hall-hint {
    position: fixed;
    left: 22px;
    bottom: 22px;
    z-index: 80;
    padding: 10px 14px;
    border-radius: 999px;
    pointer-events: none;
    color: #f3c964;
    font-size: .78rem;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.community-hall-preview {
    position: fixed;
    z-index: 120;
    width: min(310px, calc(100vw - 32px));
    padding: 14px 16px;
    border-radius: 18px;
    opacity: 0;
    visibility: hidden;
    transform: translate3d(0, 10px, 0) scale(.98);
    pointer-events: none;
    transition: opacity .16s ease, visibility .16s ease, transform .16s ease;
}

.community-hall-preview.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translate3d(0, 0, 0) scale(1);
}

.community-hall-preview p,
.community-hall-popup-kicker {
    margin: 0 0 7px;
    color: #f3c964;
    font-size: .72rem;
    font-weight: 950;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.community-hall-preview h2,
.community-hall-popup h2 {
    margin: 0;
    color: #fff8e8;
    font-family: Georgia, "Times New Roman", serif;
    line-height: .98;
    letter-spacing: -.035em;
}

.community-hall-preview h2 {
    font-size: 1.35rem;
}

.community-hall-preview span,
.community-hall-popup p:not(.community-hall-popup-kicker) {
    display: block;
    margin-top: 8px;
    color: rgba(255, 244, 215, .72);
    font-size: .9rem;
    line-height: 1.38;
}

.community-hall-popup {
    position: fixed;
    right: 26px;
    bottom: 86px;
    z-index: 150;
    width: min(410px, calc(100vw - 40px));
    padding: 22px;
    border-radius: 24px;
    opacity: 0;
    visibility: hidden;
    transform: translate3d(0, 14px, 0) scale(.98);
    transition: opacity .18s ease, visibility .18s ease, transform .18s ease;
}

.community-hall-popup.is-open {
    opacity: 1;
    visibility: visible;
    transform: translate3d(0, 0, 0) scale(1);
}

.community-hall-popup h2 {
    padding-right: 34px;
    font-size: clamp(2rem, 5vw, 3.2rem);
}

.community-hall-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    background: rgba(243, 201, 100, .18);
    color: #f3c964;
    font-size: 1.45rem;
    line-height: 1;
    cursor: pointer;
}

.community-hall-popup-close:hover {
    background: #f3c964;
    color: #081018;
}

.community-hall-popup-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.community-hall-popup-actions .btn {
    min-height: 42px;
    padding-inline: 18px;
}

.community-hall-controls {
    position: fixed;
    right: 18px;
    bottom: 16px;
    z-index: 170;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 999px;
}

.community-hall-control-btn {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border: 0;
    border-radius: 999px;
    background: rgba(7, 18, 32, .88);
    color: #fff8e8;
    font-size: 1rem;
    font-weight: 950;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.community-hall-control-btn:hover {
    background: #f3c964;
    color: #081018;
}

.community-hall-exit .material-symbols-outlined {
    font-size: 24px;
    line-height: 1;
    font-variation-settings: 'FILL' 1, 'wght' 700, 'GRAD' 0, 'opsz' 24;
}

@media (max-width: 760px) {
    .community-hall-stage,
    .community-hall-base-image {
        width: 1800px;
    }

    .community-hall-title-card {
        left: 12px;
        top: 12px;
        width: min(300px, calc(100vw - 24px));
        padding: 14px 16px;
        border-radius: 18px;
    }

    .community-hall-title-card h1 {
        font-size: 2.2rem;
    }

    .community-hall-title-card span {
        font-size: .82rem;
    }

    .community-hall-hint {
        left: 12px;
        bottom: 12px;
        max-width: calc(100vw - 150px);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .community-hall-popup {
        left: 14px;
        right: 14px;
        bottom: 76px;
        width: auto;
    }

    .community-hall-popup-actions {
        flex-direction: column;
    }

    .community-hall-popup-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .community-hall-controls {
        right: 12px;
        bottom: 12px;
    }

    .community-hall-control-btn {
        width: 34px;
        height: 34px;
        min-width: 34px;
    }
}
