/* Destruitor Idle — janela Prey (prey.js), templo das Blessings (bless.js) e o botao Blessings da barra de baixo.
   Usa as cores e as janelas do app.css (e a moldura .gp-ic do loja.css). */

/* ---- Prey ---- */
.modal.py { width: min(1040px, calc(100vw - 16px)); }
.modal.py .modal-h { gap: 10px; }
.py-sub { color: var(--dim); font-weight: 400; font-size: 13px; }
.py-hbal { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.py-bal { display: inline-flex; align-items: center; gap: 5px; padding: 3px 6px; border-radius: 6px; background: #121624; border: 1px solid #2a3044; font-weight: 700; font-variant-numeric: tabular-nums; }
.py-bal .gp-ic { width: 20px; height: 20px; }
.g .py-bal button { width: 22px; height: 22px; border-radius: 4px; background: var(--gold); color: #1d1606; font-weight: 900; line-height: 1; }
.py-ci { width: 22px; height: 22px; image-rendering: pixelated; vertical-align: middle; margin-left: 3px; }
.py-bal .py-ci { margin: 0; }

.py-slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.py-slot { display: flex; flex-direction: column; gap: 9px; padding: 10px; border-radius: 8px; background: #121624; border: 1px solid #2c3346; min-width: 0; }
.py-slot.on { border-color: #6b5626; background: linear-gradient(#1b1910, #121624 45%); }
.py-slot.locked { background: #0e111b; border-style: dashed; }
.py-sh { display: flex; align-items: center; gap: 8px; }
.py-sh b { color: var(--gold-2); text-transform: uppercase; letter-spacing: .06em; font-size: 12.5px; }
.py-tag { margin-left: auto; padding: 1px 8px; border-radius: 99px; font-size: 11px; color: var(--dim); border: 1px solid #2c3346; }
.py-tag.caca { color: #9be3a6; border-color: #3c7a46; background: #13241a; }

.py-bonus { display: flex; flex-direction: column; gap: 2px; min-height: 44px; }
.py-bonus strong { font-size: 13.5px; color: #f3ead2; }
.py-bonus.kept strong { color: #e0af68; }
.py-bonus small { color: var(--dim); font-size: 11.5px; }
.py-st { color: #f0c46a; letter-spacing: 1px; font-size: 13px; }
.py-st i { font-style: normal; color: #3a4153; }

.py-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.g .py-cand { position: relative; display: grid; place-items: center; aspect-ratio: 1; border-radius: 6px; padding: 0;
  background: radial-gradient(circle at 50% 38%, #2c3452 0%, #161b2c 62%, #0d1019 100%); border: 1px solid #3a3420; }
.g .py-cand:hover { border-color: var(--gold); }
.g .py-cand.on { border-color: var(--gold-2); box-shadow: 0 0 0 2px #f0c46a55 inset; background: radial-gradient(circle at 50% 38%, #4a3e1c 0%, #1d1a12 70%); }
.py-cand.caca::after { content: ''; position: absolute; right: 4px; top: 4px; width: 7px; height: 7px; border-radius: 50%; background: #6fc07a; box-shadow: 0 0 0 2px #0d1019; }
.py-cand canvas { width: 56px; max-width: 100%; height: auto; image-rendering: pixelated; }
.py-sem { color: var(--dim); font-size: 12px; text-transform: uppercase; }
.py-vazio { margin: 0; padding: 18px 8px; text-align: center; color: var(--dim); font-size: 12.5px; border: 1px dashed #2c3346; border-radius: 6px; }

.py-ativa { display: flex; align-items: center; gap: 10px; }
.py-ativa b { display: block; font-size: 16px; color: #f3ead2; }
.py-left { color: var(--dim); font-size: 12px; font-variant-numeric: tabular-nums; }
/* prey ativa fora da cacada de agora: o botao para uma cacada com ela (so criaturas que existem de verdade) */
.g .py-cacar { display: block; margin-top: 6px; }
/* o servidor tirou do slot uma criatura sem cacada de verdade: o porque, ate escolher outra */
.py-saiu { margin: 0; padding: 7px 9px; border-radius: 6px; border: 1px solid #6b5422; background: #2a2212; color: #e9d9b0; font-size: 12px; line-height: 1.35; }
.py-saiu b { color: #f0c46a; }
.py-fr { display: inline-grid; place-items: center; flex: none; border-radius: 8px; background: radial-gradient(circle at 50% 38%, #2c3452 0%, #161b2c 62%, #0d1019 100%); border: 1px solid #7a6230; }
.py-fr.big { width: 72px; height: 72px; }
.py-fr canvas { image-rendering: pixelated; }

.py-acts { display: flex; flex-direction: column; gap: 6px; margin-top: auto; }
.py-acts .btn { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 2px; font-size: 12.5px; padding: 7px 8px; }
.py-lst { display: flex; flex-direction: column; gap: 2px; }
.py-free { text-align: center; color: var(--dim); font-size: 11px; }
.py-opc { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.g .py-tg { display: inline-flex; align-items: center; justify-content: center; gap: 2px; padding: 6px 4px; border-radius: 6px; font-size: 11.5px; font-weight: 600;
  background: #0d1019; border: 1px solid #2c3346; color: #c9cfdd; }
.g .py-tg.on { border-color: #3c7a46; background: #13241a; color: #9be3a6; }
.g .py-tg .py-ci { width: 18px; height: 18px; }
.g .modal .btn.py-cancel { background: transparent; border-color: #4a2a28; color: #e8a59c; }

.py-lock { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 8px; text-align: center; flex: 1; justify-content: center; }
.py-lock strong { color: #f3ead2; }
.py-lock p { margin: 0; color: var(--dim); font-size: 12.5px; }
.py-li { width: 56px; height: 56px; image-rendering: pixelated; opacity: .9; }

.py-busca { display: flex; flex-direction: column; gap: 6px; }
.py-busca input { width: 100%; padding: 6px 8px; font-size: 13px; }
.py-res { display: flex; flex-direction: column; gap: 3px; max-height: 236px; overflow-y: auto; }
.g .py-rr { display: flex; align-items: center; gap: 8px; padding: 3px 8px 3px 3px; border-radius: 5px; background: #0d1019; border: 1px solid #2c3346; text-align: left; }
.g .py-rr:hover { border-color: var(--gold); }
.py-rr canvas, .py-rr .py-sem { width: 32px; height: 32px; image-rendering: pixelated; display: grid; place-items: center; }
.py-rr b { flex: 1; min-width: 0; font-size: 12.5px; font-weight: 600; color: #e8e6df; }
.py-rr small { color: var(--dim); font-size: 11px; white-space: nowrap; }

.py-foot, .bl-foot { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-top: 1px solid #2c3346; background: #121624; border-radius: 0 0 8px 8px; }
.py-nota { flex: 1; color: var(--dim); font-size: 12px; }

/* confirmacao (prey e templo) */
.py-cbg { position: fixed; inset: 0; z-index: 30; background: #0008; }
.py-confirm { position: fixed; z-index: 31; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(380px, calc(100vw - 24px)); padding: 16px;
  border-radius: 8px; background: #141826; border: 1px solid #6b5626; box-shadow: 0 20px 60px #000c; display: flex; flex-direction: column; gap: 8px; }
.py-confirm b { color: #f3ead2; line-height: 1.35; }
.py-confirm p { margin: 0; }
.py-cbtns { justify-content: flex-end; gap: 8px; }

/* ---- templo (blessings) ---- */
.modal.bl { width: min(520px, calc(100vw - 16px)); }
.bl-intro { margin: 0 0 10px; color: #b9bdc8; font-size: 13px; line-height: 1.45; }
.bl-estado { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border-radius: 6px; margin-bottom: 10px; border: 1px solid; }
.bl-estado.ok { background: #13241a; border-color: #3c7a46; }
.bl-estado.ok strong { color: #9be3a6; }
.bl-estado.falta { background: #2a1414; border-color: #7a3030; }
.bl-estado.falta strong { color: #ff9f94; }
.bl-estado span { color: #c9cfdd; font-size: 12.5px; }
.bl-lista { display: flex; flex-direction: column; gap: 5px; }
.bl-row { display: flex; align-items: center; gap: 10px; padding: 5px 8px 5px 5px; border-radius: 6px; background: #121624; border: 1px solid #2c3346; }
.bl-row.held { border-color: #3a4a2e; }
.bl-ic { width: 40px; height: 40px; image-rendering: pixelated; flex: none; border-radius: 5px; background: radial-gradient(circle at 50% 38%, #2c3452 0%, #161b2c 62%, #0d1019 100%); border: 1px solid #5a4a26; }
.bl-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bl-copy b { font-size: 13px; color: #e8e6df; }
.bl-copy small { color: var(--dim); font-size: 11.5px; }
.bl-tem { color: #9be3a6; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.bl-nao { color: #ff9f94; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.bl-aviso { margin: 10px 0 0; color: #ffcf5a; font-size: 12.5px; }
.bl-loja { display: flex; align-items: center; gap: 10px; margin: 10px 0 0; padding: 8px 10px; border-radius: 6px; background: #0f1d22; border: 1px solid #1f4b4a; font-size: 12.5px; color: #c9cfdd; }
.bl-loja span { flex: 1; }
.bl-gold { display: inline-flex; align-items: center; gap: 5px; color: #e0af68; }
.bl-gold .gp-ic { width: 20px; height: 20px; }
.bl-foot .grow { flex: 1; }

/* botao Blessings na barra de baixo: verde abencoado (ou de graca), vermelho faltando */
.g .cb.bl { display: inline-flex; align-items: center; gap: 5px; }
.g .cb.bl .ti-xs { width: 18px; height: 18px; image-rendering: pixelated; }
.g .cb.bl-ok { border-color: #3c7a46; color: #9be3a6; background: #102016ee; }
.g .cb.bl-falta { border-color: #b0453a; color: #ffb4aa; background: #3a1512ee; animation: bl-pulsa 2.4s ease-in-out infinite; }
.g .cb.bl em { font-style: normal; font-size: 11px; padding: 0 5px; border-radius: 8px; background: #b0453a; color: #fff; }
@keyframes bl-pulsa { 50% { box-shadow: 0 0 0 3px #b0453a55, 0 3px 10px #0007; } }
@media (prefers-reduced-motion: reduce) { .g .cb.bl-falta { animation: none; } }

/* aviso no topo que abre alguma coisa (o das blessings abre o templo) */
.aviso.clica { cursor: pointer; }
.aviso.clica:hover { border-color: #ffb347; }

@media (max-width: 760px) {
  .py-slots { grid-template-columns: 1fr; }
  .modal.py .modal-h { flex-wrap: wrap; }
  .py-hbal { order: 3; width: 100%; margin-left: 0; }
  .py-grid { grid-template-columns: repeat(9, minmax(0, 1fr)); }
  .py-nota { font-size: 11px; }
}
@media (max-width: 480px) {
  .py-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* como no Huntera: celulas menores (a criatura no tamanho natural, andando, numa celula de ~80 px) */
.py-grid { grid-template-columns: repeat(3, minmax(0, 80px)); justify-content: center; }
@media (max-width: 760px) { .py-grid { grid-template-columns: repeat(9, minmax(0, 80px)); } }
@media (max-width: 480px) { .py-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
