/* V600 — Crucible mais limpo (pedido do dono): o 3x3 e a estrela e toca as
   laterais; a raridade vira setas; as explicacoes vao para o popup INFO;
   botoes INFO · CLEAR · AUTO · SYNTHESIS. */
#alchemistMergeOverlayV160 .alch-sub-v160,
#alchemistMergeOverlayV160 .alch-footer-v160,
#alchemistMergeOverlayV160 #alchHelpV163,
#alchemistMergeOverlayV160 #alchPreviewV163,
#alchemistMergeOverlayV160 #alchHintV160,
#alchemistMergeOverlayV160:not(.alch-keep-recipe-v600) #alchRecipeV160{display:none!important}

/* raridade: ◀ ● NOME ▶ */
#alchemistMergeOverlayV160 .alch-tabs-v160{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 10px;
  grid-template-columns:none}
#alchemistMergeOverlayV160 .alch-rar-step-v600{flex:none;width:40px;height:34px;border:1px solid #6e5a35;background:#1a1610;color:#f2d98f;
  font:700 14px var(--font-display,serif);cursor:pointer}
#alchemistMergeOverlayV160 .alch-rar-step-v600:hover:not(:disabled){background:#2b2418;color:#fff}
#alchemistMergeOverlayV160 .alch-rar-step-v600:disabled{opacity:.3;cursor:default}
#alchemistMergeOverlayV160 .alch-rar-step-v600:focus-visible{outline:2px solid #ffd77a;outline-offset:2px}
#alchemistMergeOverlayV160 .alch-rar-name-v600{flex:1;display:flex;align-items:center;justify-content:center;gap:8px;height:34px;
  border:1px solid var(--rar,#999);background:color-mix(in srgb,var(--rar,#999) 12%,#0b0e12);color:var(--rar,#ddd);
  font:800 14px var(--font-display,serif);letter-spacing:.14em;text-shadow:0 1px 0 #000}
#alchemistMergeOverlayV160 .alch-rar-name-v600 i{width:10px;height:10px;border-radius:50%;background:var(--rar,#999);box-shadow:0 0 8px var(--rar,#999)}

/* 3x3 grande, de lateral a lateral */
#alchemistMergeOverlayV160 .alch-slots-v160{display:grid!important;grid-template-columns:repeat(3,1fr)!important;grid-template-rows:repeat(3,auto)!important;height:auto!important;gap:8px!important;
  max-width:100%!important;margin:4px auto 10px!important;padding:0!important}
#alchemistMergeOverlayV160 .alch-slot-v160{width:auto!important;height:auto!important;aspect-ratio:1/1;min-height:0!important}
#alchemistMergeOverlayV160 .alch-slot-v160 img.slot-icon-v163,
#alchemistMergeOverlayV160 .alch-slot-v160 .alchAtlasV272{width:62%!important;height:62%!important}
#alchemistMergeOverlayV160 .alch-slot-v160 .slot-icon-v163{font-size:40px}
#alchemistMergeOverlayV160 .alch-slot-v160 .slot-lv-v163,
#alchemistMergeOverlayV160 .alch-slot-v160 .slot-index{font-size:12px}

/* os 3 numeros ficam, menores */
#alchemistMergeOverlayV160 .alch-tbh-info-v163{gap:6px;margin:0 0 8px}
#alchemistMergeOverlayV160 .alch-tbh-info-v163>div{padding:5px 6px;font-size:11px;line-height:1.25}
#alchemistMergeOverlayV160 .alch-tbh-info-v163 b{font-size:13px}

/* botoes: INFO · CLEAR · AUTO · SYNTHESIS */
#alchemistMergeOverlayV160 .alch-actions-v160{display:grid;grid-template-columns:auto 1fr 1fr 1.4fr;gap:6px}
#alchemistMergeOverlayV160 .alch-actions-v160:has(#alchAutoV600[hidden]){grid-template-columns:auto 1fr 1.4fr}
#alchemistMergeOverlayV160 .alch-info-btn-v600{padding-inline:12px;border-color:#4c6b86!important;color:#bfe3ff!important;background:#0f1a24!important}
#alchemistMergeOverlayV160 .alch-auto-btn-v600{border-color:#4f8a5a!important;color:#c6f5cf!important;background:#102017!important}
#alchemistMergeOverlayV160 .alch-auto-btn-v600:disabled{opacity:.45;cursor:not-allowed}

/* popup INFO */
.alch-info-pop-v600{position:fixed;inset:0;z-index:1500100;display:flex;align-items:center;justify-content:center;padding:16px;background:#02060bcc}
.alch-info-pop-v600[hidden]{display:none}
.alch-info-box-v600{width:min(560px,100%);max-height:min(80vh,640px);display:flex;flex-direction:column;border:1px solid #9a7a3c;background:#0d0f13;
  box-shadow:0 12px 40px #000c;color:#e4dccb}
.alch-info-head-v600{display:flex;align-items:center;justify-content:space-between;padding:10px 14px;border-bottom:1px solid #3a2f1c;background:#1a1410}
.alch-info-head-v600 b{color:#f2d98f;font:800 15px var(--font-display,serif);letter-spacing:.12em}
.alch-info-head-v600 button{width:32px;height:32px;border:1px solid #6e5a35;background:#15110c;color:#f2d98f;font-weight:700;cursor:pointer}
.alch-info-head-v600 button:focus-visible{outline:2px solid #ffd77a;outline-offset:2px}
.alch-info-body-v600{overflow-y:auto;padding:12px 14px;display:grid;gap:10px;font:500 14px/1.5 "Alegreya Sans",system-ui,sans-serif}
.alch-info-block-v600 p{margin:0}
.alch-info-block-v600.recipe,.alch-info-block-v600.preview{padding:10px;border:1px solid #3a2f1c;background:#131008}
.alch-info-block-v600.rule{color:#a99c85;font-size:13px}
/* V685: guia de todas as opcoes do Crisol no INFO. */
.alch-info-block-v600.guide h4{margin:0 0 8px;color:#e2c46c;font:800 13px var(--font-ui);letter-spacing:.12em}
.alch-guide-v685{display:grid;gap:6px;margin:0;padding:0;list-style:none}
.alch-guide-v685 li{display:grid;gap:2px;padding:7px 9px;border:1px solid #3a2f1c;background:#100d08}
.alch-guide-v685 li b{color:#f0d98c;font-size:12px;letter-spacing:.1em}
.alch-guide-v685 li span{color:#cfc6b4;font-size:13px;line-height:1.35}
.alch-guide-v685 li small{color:#b98a4a;font-size:11px}
.alch-guide-v685 li.alch-guide-current-v685{border-color:#9b7a3a}
.alch-guide-v685 li.alch-guide-locked-v685{opacity:.6}

/* V601: Synthesis mostra so a linha de chance; o XP fica oculto em todo modo. */
#alchemistMergeOverlayV160 .alch-tbh-info-v163>div:nth-child(2){display:none!important}
#alchemistMergeOverlayV160.alch-synth-v601 .alch-tbh-info-v163{display:none!important}
#alchemistMergeOverlayV160 .alch-odds-v601{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:4px 10px;margin:0 0 8px;padding:8px 10px;
  border:1px solid #6e5a35;background:linear-gradient(#1c1710,#120f0a);font:800 15px var(--font-display,serif);letter-spacing:.06em;color:#f2e6c4;text-shadow:0 1px 0 #000}
#alchemistMergeOverlayV160 .alch-odds-v601[hidden]{display:none}
#alchemistMergeOverlayV160 .alch-odds-v601 b{color:#fff;font-size:17px}
#alchemistMergeOverlayV160 .alch-odds-v601 em{font-style:normal}
#alchemistMergeOverlayV160 .alch-odds-v601 i{font-style:normal;color:#7d6a44}

/* V602 — paleta do BAG (pedido do dono): fundo verde-carvao, linhas #363b34,
   latao #6d5935, dourado #e2c46c, titulo na placa vermelha. So troca a pele. */
#alchemistMergeOverlayV160 .alch-head-v160{background:#0b0e0cbb!important;border:0!important;border-bottom:2px solid var(--kit-line-2)!important;
  box-shadow:none!important;display:flex;justify-content:center;position:relative}
#alchemistMergeOverlayV160 .alch-title-v160{display:inline-block;padding:8px 44px 10px 32px;
  background:url('../assets/ui/kit/title-plate.png') center/100% 100% no-repeat;image-rendering:pixelated;
  color:var(--kit-title)!important;text-shadow:2px 2px 0 #3b2206!important;letter-spacing:.12em}
#alchemistMergeOverlayV160 .alch-close-v160{position:absolute;right:12px;top:50%;transform:translateY(-50%)}
#alchemistMergeOverlayV160 .alch-cube-v160,#alchemistMergeOverlayV160 .alch-bag-v160{background:transparent!important;border-color:var(--kit-line-2)!important}
#alchemistMergeOverlayV160 .alch-section-title-v160{color:var(--kit-gold)!important}
#alchemistMergeOverlayV160 .alch-cube-head-v163,#alchemistMergeOverlayV160 .alch-bag-header-v160,#alchemistMergeOverlayV160 .alch-bag-panel-v160{
  background:var(--kit-ground)!important;border:1px solid var(--kit-line)!important;border-radius:0!important;box-shadow:none!important}
#alchemistMergeOverlayV160 .alch-bag-header-v160,#alchemistMergeOverlayV160 .alch-cube-sub-v163{color:var(--kit-muted)!important}
#alchemistMergeOverlayV160 .alch-bag-header-v160 strong,#alchemistMergeOverlayV160 .alch-cube-level-line-v163{color:var(--kit-gold)!important}
#alchemistMergeOverlayV160 .alch-selector-btn-v162,#alchemistMergeOverlayV160 .alch-selector-menu-v162{
  background:#1a1610!important;border:1px solid var(--kit-brass)!important;border-radius:0!important;color:var(--kit-gold)!important;box-shadow:none!important}
#alchemistMergeOverlayV160 .alch-bag-tab-v160{background:transparent url('../assets/ui/kit/tab.png') center/100% 100% no-repeat!important;image-rendering:pixelated;
  border:0!important;border-radius:0!important;box-shadow:none!important;color:var(--kit-muted)!important}
#alchemistMergeOverlayV160 .alch-bag-tab-v160.active{background:transparent url('../assets/ui/kit/tab-active.png') center/100% 100% no-repeat!important;color:var(--kit-gold-hi)!important}
#alchemistMergeOverlayV160 .alch-bag-tab-v160.active::after{display:none}
#alchemistMergeOverlayV160 .alch-slot-v160,#alchemistMergeOverlayV160 .alch-bag-slot-v160{background-color:var(--kit-ground-2);border-color:var(--kit-line)}
#alchemistMergeOverlayV160 .alch-slot-v160.filled{border-color:var(--rar,var(--kit-brass));background-color:#12160f}
#alchemistMergeOverlayV160 .alch-rar-step-v600{background:#1a1610;border-color:var(--kit-brass);color:var(--kit-gold)}
#alchemistMergeOverlayV160 .alch-odds-v601{background:var(--kit-ground);border-color:var(--kit-brass)}
#alchemistMergeOverlayV160 .alch-tbh-info-v163>div{background:var(--kit-ground)!important;border-color:var(--kit-line)!important}
#alchemistMergeOverlayV160 .alch-btn-v160{background:linear-gradient(#2b2418,#15120e)!important;border:1px solid var(--kit-brass)!important;border-radius:0!important;
  color:var(--kit-gold)!important;box-shadow:inset 0 0 0 2px #0a0b09!important}
#alchemistMergeOverlayV160 .alch-btn-v160.primary{border-color:#b99a4f!important;color:var(--kit-gold-hi)!important;background:linear-gradient(#3a2f18,#1c160c)!important}
#alchemistMergeOverlayV160 .alch-btn-v160:hover:not(:disabled){filter:brightness(1.15)}
#alchemistMergeOverlayV160 .alch-info-btn-v600,#alchemistMergeOverlayV160 .alch-auto-btn-v600{color:var(--kit-text)!important}
#alchemistMergeOverlayV160 .alch-result-v160{background:var(--kit-ground)!important;border-color:var(--kit-line)!important;color:var(--kit-text)!important}
#alchemistMergeOverlayV160 .alch-result-v160.success{border-color:var(--kit-brass)!important;color:var(--kit-gold-hi)!important}
.alch-info-box-v600{background:var(--kit-tile) repeat,var(--kit-ground);border-color:var(--kit-brass);outline:1px solid var(--kit-frame);outline-offset:-6px}
.alch-info-head-v600{background:#0b0e0cbb;border-bottom-color:var(--kit-line-2)}
.alch-info-head-v600 b{color:var(--kit-title)}
.alch-info-block-v600.recipe,.alch-info-block-v600.preview{background:var(--kit-ground-2);border-color:var(--kit-line)}
