.hm-wait-game[hidden] { display: none; }
.hm-wait-game {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(31, 25, 61, .56);
    backdrop-filter: blur(4px);
}
.hm-wait-game-panel {
    width: min(100%, 420px);
    padding: 24px;
    border: 3px solid rgba(255, 255, 255, .72);
    border-radius: 28px;
    color: #fff;
    text-align: center;
    background: linear-gradient(145deg, #6c58d5 0%, #a551b2 100%);
    box-shadow: 0 22px 62px rgba(28, 20, 67, .4);
}
.hm-wait-game-kicker {
    margin: 0 0 5px;
    color: #fff3a8;
    font-size: .86rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.hm-wait-game h2 { margin: 0; font-size: clamp(1.45rem, 5vw, 2rem); line-height: 1.15; }
.hm-wait-game-help { margin: 9px 0 14px; color: rgba(255,255,255,.92); }
.hm-wait-game-score {
    display: inline-block;
    margin: 0 0 14px;
    padding: 7px 13px;
    border-radius: 999px;
    color: #43348f;
    font-weight: 800;
    background: #fff;
}
.hm-wait-game-speed {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 5px 10px;
    align-items: center;
    max-width: 270px;
    margin: -3px auto 14px;
    color: #fff;
    font-size: .92rem;
    font-weight: 800;
    text-align: left;
}
.hm-wait-game-speed input { grid-column: 1 / -1; width: 100%; accent-color: #fff3a8; cursor: pointer; }
.hm-wait-game-speed output { color: #fff3a8; }
.hm-wait-game-field {
    position: relative;
    height: 200px;
    overflow: hidden;
    border: 2px dashed rgba(255,255,255,.65);
    border-radius: 19px;
    background: radial-gradient(circle at 50% 30%, rgba(255,255,255,.28), rgba(48,34,122,.26));
}
.hm-wait-game-field::before,
.hm-wait-game-field::after {
    position: absolute;
    color: rgba(255,255,255,.6);
    content: '✦';
    pointer-events: none;
}
.hm-wait-game-field::before { top: 18px; left: 15%; font-size: 1.3rem; }
.hm-wait-game-field::after { right: 17%; bottom: 22px; font-size: 1rem; }
.hm-wait-game-star {
    position: absolute;
    display: grid;
    width: 54px;
    height: 54px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: #4a347c;
    cursor: pointer;
    font-size: 2rem;
    line-height: 1;
    background: #fff4a8;
    box-shadow: 0 6px 0 #e7b44c, 0 7px 18px rgba(37, 24, 91, .38);
    transition: left .18s ease, top .18s ease, transform .14s ease;
    touch-action: manipulation;
}
.hm-wait-game-star:hover,
.hm-wait-game-star:focus-visible { transform: scale(1.12) rotate(10deg); outline: 3px solid #fff; outline-offset: 3px; }
.hm-wait-game-star:active { transform: scale(.91); }
.hm-wait-game-message { min-height: 1.5em; margin: 13px 0 0; color: #fff3a8; font-weight: 750; }

@media (prefers-reduced-motion: reduce) {
    .hm-wait-game-star { transition: none; }
}
.hm-wait-game-panel { position: relative; }
.hm-wait-game-close { position:absolute; z-index:1; top:8px; right:8px; display:grid; place-items:center; border:2px solid #fff; border-radius:999px; width:46px; height:46px; padding:0; min-height:46px; background:#fff; color:#43348f; font-size:1.85rem; font-weight:800; line-height:1; cursor:pointer; touch-action:manipulation; }
.hm-wait-game-close:hover,.hm-wait-game-close:focus-visible { background:#fff3a8; outline:3px solid #43348f; outline-offset:2px; }
.hm-wait-game-timer { margin:8px 0 12px; font-weight:800; color:#fff; }
