/* buildloot.css — "ดรอปสร้างบิล" (js/bl_core.js, js/bl_runes.js, js/bl_arts.js): the forge tabs, taint lines, rune slots on
   the skill card (K, sized in --u like css/skillwin.css), the art slots on the HUD */

/* ---------- the forge (ป๋าหมูหริ่ง) ---------- */
#forge .bl-secs { margin-bottom: 8px; }
#forge .fg-recipe > button + button { margin-left: 6px; }
#forge .bl-max { font: 600 13px 'Mitr', sans-serif; color: #8ee7f7; padding: 0 8px; white-space: nowrap; }

/* ---------- taint: a line on the copy, a badge in the bag ---------- */
.gb-opt.bl-taint { color: #c8e1ee; }
.bl-taint .bl-up { font-style: normal; color: #c8e1ee; }
.bl-taint .bl-down { font-style: normal; color: #ff9f8c; }
.bl-taint .bl-nw { white-space: nowrap; } /* (a trait's words whole: js/bl_core.js traitLine) */
#forge .fg-side > .fg-rows .bl-taint { color: #c0b0d8; } #forge .fg-side > .fg-rows .bl-up { color: #8ee7f7; } #forge .fg-side > .fg-rows .bl-down { color: #e1b4ad; }
/* the taint page's box (js/bl_core.js, the owner 2026-11-08: "มองไม่ค่อยเห็นฟอนที่วง ขอชัดเจนหน่อย"): big dark words, one effect a line */
.bl-tbox { display: flex; flex-direction: column; gap: calc(4 * var(--u)); padding: calc(10 * var(--u)) calc(14 * var(--u)); border: calc(3 * var(--u)) solid #3c7d98; border-radius: calc(12 * var(--u)); background: #10283b; }
.bl-tbox b { display: flex; align-items: center; gap: calc(6 * var(--u)); font: 800 max(var(--min-font, 0px), calc(19 * var(--u))) / 1.2 'Mitr', sans-serif; color: #8ee7f7; }
.bl-tbox b img { flex: none; width: calc(28 * var(--u)); height: calc(28 * var(--u)); object-fit: contain; }
.bl-tbox span { font: 700 max(var(--min-font, 0px), calc(17 * var(--u))) / 1.35 'Mitr', sans-serif; }
.bl-tbox .bl-up { color: #e8f7ff; }
.bl-tbox .bl-down { color: #e2aca9; }
.bl-badge { position: absolute; left: 3px; bottom: 2px; font-style: normal; font-size: 14px; line-height: 1; color: #c8e1ee; text-shadow: 0 0 4px #051321, 0 1px 0 #051321; }

/* ---------- rune slots on the skill card (K) ---------- */
.bl-runes { display: flex; flex-direction: column; gap: calc(8 * var(--u)); }
.bl-rh { display: flex; flex-wrap: wrap; align-items: baseline; gap: calc(4 * var(--u)) calc(12 * var(--u)); font: 600 calc(19 * var(--u)) / 1.35 'Mitr', sans-serif; color: #e8f7ff; }
.bl-rh small { font-weight: 400; font-size: calc(15 * var(--u)); color: #c8e1ee; }
.bl-slot { display: flex; align-items: center; gap: calc(10 * var(--u)); padding: calc(6 * var(--u)) calc(10 * var(--u)); border-radius: calc(12 * var(--u));
  background: #081b2b; border: calc(2 * var(--u)) solid #3c7d98; font: 400 calc(16 * var(--u)) / 1.35 'Mitr', sans-serif; color: #e8f7ff; }
.bl-slot > span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bl-slot small { color: #c8e1ee; font-size: calc(14 * var(--u)); }
.bl-slot img, .bl-rune img { width: calc(40 * var(--u)); height: calc(40 * var(--u)); flex: none; }
.bl-slot.empty { border-style: dashed; }
.bl-slot.locked { border-style: dashed; color: #a7c5d9; }
.bl-slot .kw-btn { flex: none; height: calc(40 * var(--u)); padding: 0 calc(16 * var(--u)); border-radius: calc(5 * var(--u)); font-size: calc(16 * var(--u)); }
.bl-pick { display: flex; flex-direction: column; gap: calc(6 * var(--u)); max-height: calc(260 * var(--u)); overflow-y: auto; padding: calc(4 * var(--u)); border-radius: calc(12 * var(--u)); background: #081b2b; }
.bl-rune { display: flex; align-items: center; gap: calc(10 * var(--u)); padding: calc(6 * var(--u)) calc(10 * var(--u)); border: 0; border-radius: calc(10 * var(--u));
  background: #081b2b; color: #e8f7ff; text-align: left; cursor: pointer; font: 400 calc(15 * var(--u)) / 1.35 'Mitr', sans-serif; }
.bl-rune:hover { background: #16445c; }
.bl-rune span { display: flex; flex-direction: column; min-width: 0; }
.bl-rune small { color: #c8e1ee; }
.bl-none { padding: calc(8 * var(--u)); color: #c8e1ee; font: 400 calc(15 * var(--u)) / 1.4 'Mitr', sans-serif; }

/* ---------- monster arts: two slots on the HUD (7, 8) ---------- */
.bl-arts { position: fixed; z-index: 6; display: flex; gap: 8px; pointer-events: auto; }
.bl-art { position: relative; width: 52px; height: 52px; border-radius: 12px; background: #1d2238e6; border: 2px solid #3c7d98; box-shadow: 0 2px 6px #0008; cursor: pointer; overflow: hidden; }
.bl-art img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.bl-art.empty { border-style: dashed; opacity: 0.55; }
.bl-art .k { position: absolute; left: 3px; top: 1px; font: 700 12px 'Mitr', sans-serif; color: #e8f7ff; text-shadow: 0 1px 2px #051321; }
.bl-art .cd { position: absolute; inset: 0; background: #000a; display: grid; place-items: center; font: 700 16px 'Mitr', sans-serif; color: #e8f7ff; }
.bl-art .cd[hidden] { display: none; }

/* ---------- the book of arts (#blarts): the forge's K look (generated from css/kskin.css #forge rules) ---------- */
#blarts {background: rgba(14, 12, 30, 0.38);}
#blarts > .card {position: relative; box-sizing: border-box; min-width: 0; padding: 0 0 calc(18 * var(--u)); overflow-x: hidden;
  background: #10283b; color: var(--ink); border: calc(5 * var(--u)) solid #37637b; border-radius: calc(24 * var(--u));
  box-shadow: inset 0 0 0 calc(4 * var(--u)) #416e87, 0 calc(10 * var(--u)) 0 rgba(0, 0, 0, 0.3);
  font: 400 calc(18 * var(--u)) / 1.45 'Mitr', sans-serif; scrollbar-width: thin; scrollbar-color: #74b6ec transparent;}
#blarts > .card {width: min(96vw, calc(1440 * var(--u)));}
#blarts > .card > :not(.ptitle) {margin-left: calc(22 * var(--u)); margin-right: calc(22 * var(--u));}
#blarts > .card > .nw-body {margin: 0;}
#blarts .ptitle {position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: flex-start; gap: calc(12 * var(--u));
  height: calc(58 * var(--u)); margin: 0 0 calc(4 * var(--u)); padding: 0 calc(12 * var(--u)) 0 calc(48 * var(--u));
  background: linear-gradient(#185776, #185776); border-bottom: calc(4 * var(--u)) solid #37637b;
  font: 800 calc(30 * var(--u)) / 1 'Baloo 2', 'Mitr', sans-serif; color: #e8f7ff; letter-spacing: 0.01em;
  -webkit-text-stroke: calc(6 * var(--u)) #061421; paint-order: stroke fill; white-space: nowrap;}
#blarts .ptitle::before {content: ''; position: absolute; left: calc(16 * var(--u)); top: 50%; width: calc(16 * var(--u)); height: calc(16 * var(--u)); margin-top: calc(-8 * var(--u));
  border-radius: 50%; background: radial-gradient(circle at 35% 35%, #10283b, #23516b); border: calc(3 * var(--u)) solid #37637b;}
#blarts .ptitle > span:first-child {margin-right: auto; overflow: hidden; text-overflow: ellipsis;}
#blarts .sh-coins {flex: none; height: calc(42 * var(--u)); padding: 0 calc(18 * var(--u)) 0 calc(5 * var(--u)); border-radius: calc(21 * var(--u)); box-sizing: border-box;
  background: linear-gradient(#10283b, #17364b); border: calc(3.5 * var(--u)) solid #37637b; -webkit-text-stroke: 0;}
#blarts .sh-coins img {width: calc(34 * var(--u)); height: calc(34 * var(--u));}
#blarts .sh-coins b {font: 800 calc(23 * var(--u)) / 1 'Baloo 2', sans-serif; color: var(--ink); -webkit-text-stroke: 0;}
#blarts .sh-tabs {flex-wrap: nowrap; gap: calc(8 * var(--u)); margin-top: calc(12 * var(--u)); margin-bottom: calc(12 * var(--u)); padding: 0 calc(6 * var(--u));
  border-bottom: calc(4 * var(--u)) solid #37637b;}
#blarts .sh-tabs button {flex: none; margin-bottom: calc(-4 * var(--u)); padding: calc(4 * var(--u)) calc(20 * var(--u)); border: calc(4 * var(--u)) solid #37637b;
  border-radius: calc(16 * var(--u)) calc(16 * var(--u)) 0 0; background: linear-gradient(#10283b, #17364b); color: var(--ink);
  font: 600 calc(19 * var(--u)) / 1.3 'Mitr', sans-serif; white-space: nowrap;}
#blarts .sh-tabs button.on {z-index: 1; background: linear-gradient(#185776, #185776); color: #e8f7ff; -webkit-text-stroke: calc(4 * var(--u)) #061421; paint-order: stroke fill;}
#blarts .sh-where {align-self: center; color: #a7c5d9; font-size: calc(15 * var(--u)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;}
#blarts .sh-where b {color: #8ee7f7;}
#blarts .big {display: inline-flex; align-items: center; justify-content: center; height: calc(46 * var(--u)); margin: 0; padding: 0 calc(20 * var(--u));
  border: calc(4 * var(--u)) solid #37637b; border-radius: calc(14 * var(--u)); background: linear-gradient(#185776, #185776); color: #e8f7ff;
  font: 700 calc(18 * var(--u)) / 1 'Mitr', sans-serif; -webkit-text-stroke: calc(4 * var(--u)) #061421; paint-order: stroke fill; white-space: nowrap;
  box-shadow: inset 0 calc(-4 * var(--u)) 0 rgba(0, 0, 0, 0.18), 0 calc(3 * var(--u)) 0 rgba(0, 0, 0, 0.25);}
#blarts .big.alt {background: linear-gradient(#17364b, #23516b);}
#blarts .big:disabled {opacity: 1; filter: none; background: linear-gradient(#17364b, #23516b); color: #e8f7ff;}
#blarts .big:not(:disabled):hover {filter: brightness(1.08);}
#blarts .fg-kinds button, #blarts .fg-last button {cursor: pointer; padding: 0 calc(14 * var(--u)); border: calc(3 * var(--u)) solid #37637b; border-radius: calc(12 * var(--u));
  background: linear-gradient(#10283b, #17364b); color: var(--ink); font: 600 calc(16 * var(--u)) / 1.9 'Mitr', sans-serif; white-space: nowrap;
  box-shadow: inset 0 calc(-3 * var(--u)) 0 rgba(0, 0, 0, 0.08);}
#blarts .fg-kinds button.on {background: linear-gradient(#185776, #185776); color: #e8f7ff; -webkit-text-stroke: calc(3.5 * var(--u)) #061421; paint-order: stroke fill;}
#blarts .fg-last button:disabled {opacity: 1; background: linear-gradient(#10283b, #17364b); color: #a7c5d9; -webkit-text-stroke: 0; cursor: default;}
#blarts .fg-recipe, #blarts .fg-copy, #blarts .fg-act {border-radius: calc(14 * var(--u)); border: calc(3 * var(--u)) solid #37637b; color: #e8f7ff;
  background: linear-gradient(#081b2b, #081b2b); box-shadow: inset 0 0 0 calc(2 * var(--u)) #3c7d98;}
#blarts .fg-copy.sel {background: linear-gradient(#16445c, #081b2b); outline: none; box-shadow: inset 0 0 0 calc(3 * var(--u)) #416e87;}
#blarts .fg-row {border-color: #3c7d98; background: #081b2b;}
#blarts .fg-row.sel {border-color: #416e87;}
#blarts .fg-head b {font-size: calc(22 * var(--u));}
#blarts .fg-jobs {color: #a7c5d9;}
#blarts .fg-head small, #blarts .fg-act span {color: #a7c5d9;}
#blarts .fg-act span {color: #c8e1ee;}
#blarts .fg-rows {gap: calc(5 * var(--u));}
#blarts .fg-hole {color: #a7c5d9; background: #17364b; border-color: #416e87; border-style: dashed;}
#blarts .fg-empty {color: #a7c5d9;}
#blarts .st-note {margin-top: calc(14 * var(--u)); padding: calc(8 * var(--u)) calc(14 * var(--u)); border-radius: calc(14 * var(--u)); background: #17364b; border: calc(3 * var(--u)) solid #416e87; color: #a7c5d9; font-size: calc(15 * var(--u));}
#blarts { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; }
#blarts > .card { width: min(96vw, calc(1100 * var(--u))); max-height: 92vh; display: flex; flex-direction: column; }
#blarts #bla-body { overflow-y: auto; min-height: 0; padding: calc(14 * var(--u)) calc(20 * var(--u)); display: flex; flex-direction: column; gap: calc(10 * var(--u)); }
#blarts[hidden] { display: none; }
