/* The alchemy grid window (5 rounds x 8 prizes, the prize on offer lit) and the interaction drawn over the stage of the Sprite window. */
.al-tabs { display: flex; gap: 6px; margin-bottom: 6px; }
.al-tabs .al-n { opacity: 0.7; }
.al-grid { display: flex; flex-direction: column; gap: 3px; padding: 6px; background: var(--gf-paper-dark); border: 1px solid #716c94; border-radius: 6px; }
.al-row { display: flex; align-items: center; gap: 6px; padding: 2px 4px; border-radius: 5px; }
.al-row.cur { background: rgba(151, 146, 183, 0.28); }
.al-rn { width: 44px; flex: none; font-size: var(--fs-small); font-weight: 700; color: #35324a; }
.al-cells { display: grid; grid-template-columns: repeat(8, 42px); gap: 3px; }
.al-grid .gf-tile { width: 42px; height: 42px; }
.al-grid .gf-tile img { width: 36px; height: 36px; }
.al-grid .gf-tile.on { outline: 3px solid #9792b7; outline-offset: -1px; box-shadow: 0 0 12px rgba(151, 146, 183, 0.95); animation: al-pulse 1.1s ease-in-out infinite; }
.al-tip { margin-top: 4px; font-size: var(--fs-small); color: #c5c2d6; }
.al-hist { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; font-size: var(--fs-body); padding: 5px 7px; background: var(--gf-paper-dark); border: 1px solid #716c94; border-radius: 6px; }
.al-h.keep { color: #2d6a2a; }
.al-h.lost { color: #9b1c1c; }
/* over the Sprite's stage: at the foot, the window keeps its size */
.sp-stage.alchemy .sp-canvas { cursor: default; }
.al-ov { position: absolute; left: 6px; right: 6px; bottom: 6px; padding: 6px 8px; display: flex; flex-direction: column; gap: 4px; background: rgba(20, 18, 27, 0.82); border: 1px solid #5c5779; border-radius: 6px; color: #dfdde9; font-size: var(--fs-body); }
.al-ov-h { font-weight: 700; color: #bcb9d0; }
.al-ov-h span { font-weight: 400; color: #c5c2d6; }
.al-ov-say { margin: 0; text-align: center; }
.al-ov-say.good { color: #c9f7b8; font-weight: 700; }
.al-ov-say.bad { color: #ff7b6e; font-weight: 700; }
.al-ov-offer { display: grid; grid-template-columns: 44px 1fr; gap: 2px 8px; align-items: center; animation: al-pop 0.3s ease-out; }
.al-ov-offer .gf-tile { width: 44px; height: 44px; grid-row: span 2; }
.al-ov-offer .gf-tile img { width: 38px; height: 38px; }
.al-ov-txt { display: flex; flex-direction: column; line-height: 1.2; }
.al-ov-txt span { color: #b3afca; font-size: var(--fs-small); }
.al-ov-btns { display: flex; gap: 6px; grid-column: 2; }
.al-ov-end { display: flex; flex-direction: column; gap: 4px; }
.al-ov-end .al-ov-btns { grid-column: auto; }
.al-b { flex: 1; height: 24px; padding: 0 6px; font: inherit; font-size: var(--fs-body); font-weight: 700; color: #282638; background: linear-gradient(#cecbdd, #8a85ad); border: 2px solid #464262; border-radius: 6px; cursor: pointer; }
.al-b.good { background: linear-gradient(#b9e8a8, #5aa84a); color: #14300e; border-color: #3a7a2a; }
.al-b:disabled { opacity: 0.45; cursor: not-allowed; }
@keyframes al-pulse { 0%, 100% { box-shadow: 0 0 6px rgba(151, 146, 183, 0.6); } 50% { box-shadow: 0 0 16px rgba(151, 146, 183, 1); } }
@keyframes al-pop { 0% { transform: scale(0.6); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@media (max-width: 760px) { .al-cells { grid-template-columns: repeat(8, minmax(0, 1fr)); } .al-grid .gf-tile { width: auto; } }
