/* 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 #a88a58; border-radius: 6px; }
.al-row { display: flex; align-items: center; gap: 6px; padding: 2px 4px; border-radius: 5px; }
.al-row.cur { background: rgba(246, 196, 83, 0.28); }
.al-rn { width: 44px; flex: none; font-size: 11px; font-weight: 700; color: #6a3a12; }
.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 #f6c453; outline-offset: -1px; box-shadow: 0 0 12px rgba(246, 196, 83, 0.95); animation: al-pulse 1.1s ease-in-out infinite; }
.al-tip { margin-top: 4px; font-size: 11px; color: #e8d9b0; }
.al-hist { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; font-size: 12px; padding: 5px 7px; background: var(--gf-paper-dark); border: 1px solid #a88a58; 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(32, 22, 14, 0.82); border: 1px solid #8a6a46; border-radius: 6px; color: #f4ead2; font-size: 12px; }
.al-ov-h { font-weight: 700; color: #ffd98a; }
.al-ov-h span { font-weight: 400; color: #e8d9b0; }
.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: #d9c9a0; font-size: 11px; }
.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: 12px; font-weight: 700; color: #4a2f14; background: linear-gradient(#f0e1b8, #c3a96f); border: 2px solid #7a5a2a; 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(246, 196, 83, 0.6); } 50% { box-shadow: 0 0 16px rgba(246, 196, 83, 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; } }
