.furnace-preview {
    display: grid;
    grid-template-columns: minmax(6.4rem, 14rem) minmax(0, 1fr);
    align-items: center;
    gap: clamp(14px, 3vw, 28px);
    padding: 14px clamp(14px, 3vw, 26px);
    margin-bottom: 16px;
    overflow: hidden;
}

.furnace-preview .furnace-art { height: clamp(80px, 16vw, 118px); }
.furnace-preview-copy .ios-subtitle { margin-bottom: 4px; }
.furnace-preview-copy p { margin: 0; }

.furnace-content {
    width: min(100%, 38rem);
    max-width: none;
    padding: clamp(16px, 4vw, 28px);
    text-align: left;
}

.furnace-copy h2 { margin-bottom: 4px; }
.furnace-copy p { min-height: 1.4em; margin: 0 0 12px; }
.furnace-skip { width: auto; margin: 12px 0 0 auto; }
.furnace-stage {
    position: relative;
    min-height: 116px;
    height: clamp(148px, 50dvh, 270px);
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid #8c5948;
    background:
        radial-gradient(ellipse at 49% 75%, #683c42 0%, #311f36 47%, #16192c 84%);
}

.furnace-stage .furnace-art,
.furnace-webgl {
    position: absolute;
    inset: 0;
}

.furnace-webgl[hidden],
.furnace-stage:has(.furnace-webgl:not([hidden])) .furnace-art { display: none; }
.furnace-webgl canvas { display: block; width: 100%; height: 100%; }

.furnace-art {
    position: relative;
    overflow: clip;
    isolation: isolate;
    min-width: 0;
    container-type: size;
}

.furnace-art-rays {
    position: absolute;
    inset: 4% -3%;
    background: repeating-conic-gradient(from 8deg at 51% 70%, transparent 0deg 12deg, #f6c675 13deg 14deg, transparent 15deg 23deg);
    mask-image: radial-gradient(ellipse, transparent 23%, #000 54%, transparent 70%);
    opacity: .23;
}

.furnace-art-stack,
.furnace-art-base,
.furnace-art-shell { position: absolute; left: 50%; transform: translateX(-50%); }

.furnace-art-stack {
    top: 10%;
    width: 18cqh;
    height: 26cqh;
    border-radius: 2cqh;
    border: 2px solid #d7a981;
    background: repeating-linear-gradient(#544359 0 7cqh, #8d6261 8cqh 9cqh);
    box-shadow: inset -4cqh 0 #372d45;
}

.furnace-art-base {
    bottom: 10%;
    width: 92cqh;
    max-width: 91%;
    height: 12cqh;
    border-radius: 3cqh;
    background: #272b46;
    border: 2px solid #996e68;
    box-shadow: 0 6cqh 0 -3cqh #101425;
}

.furnace-art-shell {
    bottom: 19%;
    width: 77cqh;
    max-width: 80%;
    height: 57%;
    border-radius: 16cqh 16cqh 4cqh 4cqh;
    border: 2px solid #d3a783;
    background: repeating-linear-gradient(#74526a 0 11cqh, #4c3b53 12cqh 13cqh);
    box-shadow: inset -9cqh -3cqh #4b3d55, inset 5cqh 3cqh #926372;
}

.furnace-art-mouth {
    position: absolute;
    inset: 27% 22% 10%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    overflow: hidden;
    border: max(2px, 2cqh) solid #c89170;
    border-bottom-width: max(3px, 3cqh);
    border-radius: 45% 45% 12% 12%;
    background: radial-gradient(ellipse at 40% 100%, #c74629, #2a1a30 68%);
}

.furnace-art-mouth i {
    display: block;
    width: 25%;
    height: 66%;
    margin-bottom: -4%;
    transform: rotate(16deg);
    transform-origin: bottom;
    border-radius: 75% 40% 38% 25%;
    background: #fb864d;
    box-shadow: 0 0 12px #ee723b;
}

.furnace-art-mouth i:nth-child(2) { height: 90%; background: #ffc276; transform: rotate(-15deg); }
.furnace-art-mouth i:nth-child(3) { height: 53%; transform: rotate(-20deg); }

.furnace-art-handle {
    position: absolute;
    width: 8cqh;
    height: 9cqh;
    border-radius: 45%;
    border: max(1px, 1.3cqh) solid #d3a783;
    background: #383246;
    top: 46%;
    right: 9%;
}

.furnace-art-token {
    position: absolute;
    right: 15%;
    top: 25%;
    width: 19cqh;
    aspect-ratio: 1;
    border: max(2px, 2cqh) solid #c58041;
    border-radius: 50%;
    background: #fbcd79;
    transform: rotate(-22deg) scaleX(.76);
    box-shadow: inset 0 0 0 1cqh #ffe7a2, 2cqh 3cqh #593849;
}

.furnace-art-card {
    display: none;
    position: absolute;
    left: 50%;
    top: 12%;
    width: 25cqh;
    aspect-ratio: 2 / 3;
    transform: translateX(-50%) rotate(-15deg);
    border: max(2px, 1.25cqh) solid #e6ce8b;
    border-radius: 3cqh;
    background: linear-gradient(128deg, #eae6b0, #88decc, #9a8dd2);
    box-shadow: 0 0 9cqh #9ce8d4;
}

[data-phase="success"] .furnace-art-token,
[data-phase="failure"] .furnace-art-token { display: none; }

[data-phase="success"] .furnace-art-card { display: block; }
[data-phase="failure"] .furnace-art-mouth i { opacity: .35; }

@media (max-width: 420px) {
    .furnace-preview { grid-template-columns: 5.2rem minmax(0, 1fr); }
}
