/* อนุสาวรีย์ 3 ชิ้น (28 ต.ค. 2026 · shrines.js) · หน้าแยก ฉากธีมกลาง ไม่เปลี่ยนตามโซน */
#btn-shrines {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; line-height: 1;
  font-family: var(--pix); font-size: 14px; cursor: pointer;
  background: var(--panel-2); color: var(--text); border: 1px solid var(--edge, var(--line)); border-radius: 2px;
}
#btn-shrines.hidden, body[data-zone] #btn-shrines.hidden { display: none; }   /* 11 พ.ย.: กฎปุ่มใน ui2.css (body[data-zone] #btn-shrines) เคยทับคำสั่งซ่อน */

/* ใช้กรอบหน้าต่างตีบวก (temper-box rf) แต่กว้างเต็มจอ · สูงไม่เกินจอ */
body[data-zone] .modal-box.temper-box.rf.shrine-box { width: min(1100px, calc(100vw - 24px)); }   /* ฉากใหญ่สุดก่อน · สูงล้นจอ = .sh-side */
.shrine-box .sh-stage { position: relative; width: auto; margin: 2px -8px 0; aspect-ratio: 1376 / 838; overflow: hidden; border-radius: 4px; background: #241c2c; }
.shrine-box .sh-bg { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: auto; }
.shrine-box canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.shrine-box .sh-sprite { position: absolute; height: auto; image-rendering: auto; pointer-events: none; }
.shrine-box .sh-sprite.ghost { opacity: .35; filter: grayscale(.8) brightness(.8); }

/* กล่องข้อมูล 3 ชิ้น: แถวเดียวใต้ฉาก (28 ต.ค. จ๊อบ) · .sh-side = จอเตี้ย ย้ายไปเรียงด้านขวาของฉาก */
.shrine-box .sh-wrap { margin: 2px -8px 0; }
.shrine-box .sh-wrap .sh-stage { margin: 0; }
.shrine-box .sh-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 8px 8px 0; }
.shrine-box .sh-card {
  display: grid; grid-template-columns: 1fr auto; column-gap: 10px; align-items: center; padding: 6px 8px;
  background: rgba(20, 16, 24, .82); border: 1px solid rgba(224, 178, 76, .55); border-radius: 4px;
  font-family: var(--pix); font-size: 12px; color: #f1e6c8; cursor: help;
}
.shrine-box .sh-card .sh-go { grid-column: 2; grid-row: 1 / span 3; width: 96px; }
.shrine-box.sh-side .sh-wrap { display: grid; grid-template-columns: 1fr 230px; align-items: start; }
.shrine-box.sh-side .sh-cards { grid-template-columns: 1fr; padding: 0 8px; }
.shrine-box.sh-side .sh-card { grid-template-columns: 1fr; }
.shrine-box.sh-side .sh-card .sh-go { grid-column: 1; grid-row: auto; width: 100%; margin-top: 4px; }
body[data-zone] .modal-box.temper-box.rf.shrine-box.sh-side { width: min(1100px, calc(100vw - 24px), calc((92vh - 70px) * 1376 / 838 + 246px)); }

.shrine-box .sh-name { color: #ffd27a; font-size: 13px; white-space: nowrap; }
.shrine-box .sh-name b { color: #fff; font-weight: normal; margin-left: 4px; }
.shrine-box .sh-buff { margin: 2px 0 4px; color: #bfe8a0; white-space: nowrap; }
.shrine-box .sh-cost { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 5px; }
.shrine-box .sh-cost span { display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; }
.shrine-box .sh-cost .ico { width: 14px; height: 14px; }
.shrine-box .sh-cost .no { color: #e0705a; }
.shrine-box .sh-res { display: flex; gap: 14px; justify-content: center; padding: 8px 0 0; font-family: var(--pix); font-size: 14px; }
.shrine-box .sh-res span { display: inline-flex; align-items: center; gap: 4px; }
.shrine-box .sh-res .ico { width: 16px; height: 16px; }

@media (max-width: 760px) {
  /* จอแคบ: กล่องข้อมูลเรียงใต้ฉากทีละแถว */
  .shrine-box .sh-cards { grid-template-columns: 1fr; gap: 6px; }
  body[data-zone] .modal-box.temper-box.rf.shrine-box { max-height: 92vh; overflow-y: auto; }
}
