.be-dialog {
    width:min(96vw,1050px);
    max-width:none;
    max-height:95vh;
    padding:0;
    border:4px solid white;
    border-radius:28px;
    background:#fffaf0;
    color:#49336c;
    overflow:auto;
    box-shadow:0 20px 80px #30204455;
}

.be-dialog::backdrop {
    background:#302044bb;
}

.be-top {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:18px;
    background:#7950cc;
    color:white;
    font-size:21px;
}

.be-controls {
    display:flex;
    gap:6px;
    flex-wrap:wrap;
}

.be-small {
    padding:10px;
    border:0;
    border-radius:12px;
    background:#ffffff30;
    color:white;
    font-weight:700;
    cursor:pointer;
}

.be-status {
    background:#eee5ff;
    text-align:center;
    padding:14px;
    font-weight:800;
}

.be-stage {
    padding:24px;
    text-align:center;
    background:linear-gradient(#fffaf0,#eaf7df);
}

.be-stage h2 {
    color:#7045be;
    font-size:clamp(23px,4vw,35px);
}

.be-cover {
    display:block;
    width:min(100%,340px);
    height:auto;
    margin:0 auto 15px;
    border-radius:24px;
}

.be-menu {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:16px;
    margin:22px 0;
}

.be-menu-card {
    display:flex;
    flex-direction:column;
    justify-content:center;
    gap:10px;
    min-height:115px;
    padding:20px;
    border:3px solid white;
    border-radius:24px;
    background:#d8edbf;
    color:#49336c;
    cursor:pointer;
    box-shadow:0 5px 0 #57477512;
}

.be-menu-card:nth-child(2) {
    background:#ffdfeb;
}

.be-menu-card:nth-child(3) {
    background:#d6eaff;
}

.be-menu-card:nth-child(4) {
    background:#e6d8ff;
}

.be-menu-card:nth-child(5) {
    background:#ffedb4;
    grid-column:1/-1;
}

.be-menu-card strong {
    font-size:22px;
}

.be-menu-card small {
    font-size:15px;
}

.be-layout {
    display:grid;
    grid-template-columns:minmax(240px,1fr) 1fr;
    gap:24px;
    align-items:center;
}

.be-figure {
    position:relative;
    width:min(100%,420px);
    aspect-ratio:320/440;
    margin:15px auto;
}

.be-figure svg {
    display:block;
    width:100%;
    height:100%;
}

.be-hotspot {
    position:absolute;
    transform:translate(-50%,-50%);
    width:30px;
    height:30px;
    padding:0;
    border:3px solid white;
    border-radius:50%;
    background:#7950cc;
    color:white;
    font-size:24px;
    line-height:1;
    font-weight:900;
    cursor:pointer;
    box-shadow:0 0 0 4px #7950cc33;
    transition:box-shadow .2s;
}

.be-hotspot:hover,
.be-hotspot:focus-visible {
    box-shadow:0 0 0 7px #ffce59aa;
    z-index:2;
}

.be-hotspot.be-selected {
    background:#4b9b43;
    box-shadow:0 0 0 8px #84cf6788;
}

.be-hotspot:disabled {
    cursor:default;
}

.be-info {
    padding:20px;
    min-height:100px;
    background:#ffffffd9;
    border:2px solid #e2d7f5;
    border-radius:22px;
    margin:15px 0;
    font-size:18px;
}

.be-info p {
    line-height:1.6;
}

.be-part-list {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:9px;
}

.be-part-button {
    border:2px solid white;
    border-radius:14px;
    padding:12px 8px;
    background:#e7dcff;
    color:#50358b;
    font-size:16px;
    font-weight:800;
    cursor:pointer;
}

.be-button {
    padding:13px 22px;
    margin:8px 4px;
    border:0;
    border-radius:25px;
    background:#7548cb;
    color:white;
    font-size:16px;
    font-weight:800;
    cursor:pointer;
}

.be-sense-grid {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:14px;
    margin:25px 0;
}

.be-sense-card {
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:8px;
    min-height:140px;
    padding:15px;
    border:3px solid white;
    border-radius:23px;
    background:#e5dbff;
    color:#49336c;
    cursor:pointer;
}

.be-sense-card:nth-child(even) {
    background:#ffdfec;
}

.be-sense-card.be-correct {
    background:#c5edb3;
    border-color:#70b85b;
}

.be-sense-art {
    font-size:55px;
}

.be-sense-card strong {
    font-size:22px;
}

.be-sense-card small {
    font-size:15px;
}

.be-trophy {
    font-size:100px;
}

.be-stars {
    font-size:30px;
    overflow-wrap:anywhere;
}

.be-dialog button:focus-visible {
    outline:3px solid #4d3283;
    outline-offset:3px;
}

@media(max-width:700px) {
    .be-top {
        font-size:16px;
        padding:12px;
        flex-wrap:wrap;
    }

    .be-stage {
        padding:12px;
    }

    .be-layout {
        grid-template-columns:1fr;
        gap:8px;
    }

    .be-menu {
        grid-template-columns:1fr;
        gap:10px;
    }

    .be-menu-card {
        min-height:90px;
    }

    .be-menu-card strong {
        font-size:19px;
    }

    .be-sense-grid {
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .be-figure {
        max-width:360px;
    }

    .be-hotspot {
        width:24px;
        height:24px;
        font-size:18px;
    }
}

@media(prefers-reduced-motion:reduce) {
    .be-hotspot {
        transition:none;
    }
}

.be-hd-figure { aspect-ratio:590/1024; width:min(100%,420px); }
.be-hd-figure img {display:block;width:100%;height:100%;object-fit:contain;}
.be-hd-figure .be-hotspot {width:22px;height:22px;font-size:16px;border-width:2px;}
.be-hd-figure [data-part="teeth"],.be-hd-figure [data-part="tongue"] {display:none;}
