.azd {
    box-sizing: border-box;
    width: min(100%, 540px);
    min-height: 480px;
    margin: 24px auto;
    padding: clamp(24px, 7vw, 48px);
    border: 4px solid #9cba72;
    border-radius: 14px;
    background: #17251e;
    color: #eef8d9;
    text-align: center;
    font-family: system-ui, sans-serif;
}
.azd .azd-brand { color: #bfda96; font-weight: 800; letter-spacing: .18em; }
.azd h1 { color: inherit; font-size: clamp(27px, 7vw, 42px); line-height: 1.25; }
.azd .azd-status { white-space: pre-line; line-height: 1.8; font-weight: 650; }
.azd .azd-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.azd .azd-actions button {
    min-width: 68px;
    min-height: 48px;
    padding: 8px 14px;
    border: 2px solid #d9f0b6;
    border-radius: 7px;
    background: #b8d788;
    color: #17251e;
    font: inherit;
    font-weight: 750;
    cursor: pointer;
}
.azd .azd-actions button:focus-visible { outline: 3px solid white; outline-offset: 3px; }
.azd .azd-actions button:disabled { opacity: .65; cursor: wait; }
.azd .azd-scene {
    display: block;
    width: 100%;
    height: auto;
    border: 2px solid #789669;
    box-sizing: border-box;
    image-rendering: pixelated;
}
.azd .azd-actions button canvas {
    display: block;
    width: 32px;
    height: 28px;
    margin: 0 auto 4px;
    image-rendering: pixelated;
}
.azd .azd-stage { position: relative; }
.azd .azd-doors { position: absolute; inset: 2px; }
.azd .azd-doors button {
    position: absolute;
    top: 24%;
    width: 24%;
    min-width: 0;
    height: 46%;
    min-height: 44px;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding: 0;
    border-color: transparent;
    background: transparent;
    color: #eef8d9;
}
.azd .azd-doors button span {
    padding: 1px 8px;
    border-radius: 4px;
    background: #17251e;
    line-height: 1.3;
}
.azd .azd-doors button:hover,
.azd .azd-doors button:focus-visible { border-color: #d9f0b6; }
.azd .azd-share { display: grid; gap: 10px; width: 100%; }
.azd .azd-share p { margin: 0; font-size: .9rem; }
.azd .azd-share p:empty { display: none; }
.azd .azd-share input {
    display: block;
    box-sizing: border-box;
    width: 100%;
    margin: 4px auto 0;
    font-size: 16px;
}
.azd .azd-share a {
    display: grid;
    min-height: 48px;
    place-items: center;
    color: #eef8d9;
    border: 1px solid #b8d788;
    border-radius: 7px;
    text-decoration: underline;
}

.azd .azd-share .azd-save {
    background: #b8d788;
    color: #17251e;
    font-weight: 750;
    text-decoration: none;
}

.azd .azd-share .azd-social-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.azd .azd-social-line svg {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
}
.azd .azd-social-line a { width: 48px; }
