.game-mic-dialog {
    --mic-accent: #f4c879;
    box-sizing: border-box;
    width: min(24rem, calc(100% - 2rem));
    max-height: calc(100% - 2rem);
    margin: auto;
    padding: clamp(1rem, 5vw, 1.5rem);
    overflow: auto;
    border: 1px solid #665339;
    border-radius: 20px;
    background: radial-gradient(ellipse at top left, #28262b, #171c23 70%);
    color: #fff1dc;
    color-scheme: dark;
    font: 1rem/1.55 'Noto Sans Thai', 'Inter', system-ui, sans-serif;
    box-shadow: 0 18px 56px #0009;
}

.game-mic-dialog::backdrop { background: rgb(7 11 17 / 65%); }

.game-mic-icon {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    margin-bottom: .875rem;
    border: 1px solid currentColor;
    border-radius: 14px;
    background: rgb(244 200 121 / 9%);
    color: var(--mic-accent);
}

.game-mic-icon span {
    position: relative;
    width: 8px;
    height: 14px;
    margin-bottom: 6px;
    border-radius: 5px;
    background: currentColor;
}

.game-mic-icon span::before,
.game-mic-icon span::after {
    content: '';
    position: absolute;
}

.game-mic-icon span::before {
    inset: 6px -4px -4px;
    border: 2px solid currentColor;
    border-top: 0;
    border-radius: 0 0 8px 8px;
}

.game-mic-icon span::after {
    top: 100%;
    left: 3px;
    width: 2px;
    height: 8px;
    background: currentColor;
}

.game-mic-dialog[data-recording] .game-mic-icon {
    color: #ff9a9a;
    background: rgb(255 154 154 / 9%);
}

.game-mic-dialog h2 {
    margin: 0;
    font-size: 1.375rem;
    line-height: 1.4;
}

.game-mic-dialog p {
    margin: .375rem 0 1.25rem;
    color: #d0c5b8;
}

.game-mic-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .5rem;
}

.game-mic-actions button {
    min-height: 44px;
    padding: .5rem .875rem;
    border: 1px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    font: inherit;
    font-weight: 650;
}

.game-mic-actions button:focus-visible { outline: 2px solid #fff1dc; outline-offset: 2px; }
.game-mic-actions button:disabled { cursor: wait; opacity: .65; }
.game-mic-actions .game-mic-cancel { border-color: #685e52; background: #262a32; color: #fff1dc; }
.game-mic-actions .game-mic-cancel:hover { background: #353a43; }
.game-mic-actions .game-mic-record { background: var(--mic-accent); color: #251a10; }
.game-mic-actions .game-mic-record:hover:enabled { background: #ffda99; }

@media (max-width: 360px) {
    .game-mic-actions button { flex: 1 1 auto; }
}
