/* Rune overlay — same dark iron / antique gold palette as BlackVeil inventory. */
#bv-rune-root[hidden]{display:none!important}
.bv-rune-overlay{position:fixed;inset:0;z-index:15000;display:grid;place-items:center;background:rgba(3,4,7,.77);touch-action:pan-y;user-select:none;-webkit-user-select:none}
.bv-rune-window{box-sizing:border-box;width:min(655px,calc(100vw - 16px));max-height:calc(100dvh - 16px);overflow:auto;color:#dfd3c2;background:linear-gradient(160deg,#26232a,#121216);border:1px solid #8a7151;box-shadow:0 14px 50px #000b;border-radius:7px;font-family:inherit}
.bv-rune-window button{font:inherit;color:#dbc89f;background:#302b2a;border:1px solid #726044;border-radius:4px;cursor:pointer;min-height:27px;touch-action:manipulation}
.bv-rune-window button:disabled{opacity:.46;cursor:default}
.bv-rune-window button:not(:disabled):active{background:#4a3e32}
.bv-rune-header{display:flex;align-items:center;justify-content:space-between;padding:9px 13px;background:#2c2523;border-bottom:1px solid #705b3c;color:#e9cd91;font-size:15px;font-weight:700;letter-spacing:.2px}
.bv-rune-header small{font-size:9px;letter-spacing:1.5px;margin-left:8px;color:#9c8e78}
.bv-rune-header button{padding:0 10px;font-size:15px}
.bv-rune-columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:9px;padding:10px}
.bv-rune-left,.bv-rune-right{background:rgba(5,5,8,.3);border:1px solid #4c433b;border-radius:4px;padding:9px;min-width:0;box-sizing:border-box}
.bv-rune-left h3{font-size:13px;color:#d5c296;margin:0 0 8px}
.bv-rune-gear{min-height:53px;display:flex;align-items:center;gap:10px;font-size:12px}
.bv-rune-gear img{height:43px;width:43px;object-fit:contain;image-rendering:pixelated;background:#191a1e;border:1px solid #68553e;border-radius:3px}
.bv-rune-gear small{display:block;font-size:10px;color:#b4a897;margin-top:4px}
.bv-rune-sockets{display:flex;gap:5px;min-height:55px;align-items:center;flex-wrap:wrap;margin:7px 0 9px}
.bv-rune-window button.bv-rune-socket{display:grid;justify-items:center;align-content:center;gap:2px;min-width:68px;height:57px;background:#181719;border:1px solid #675743;padding:3px}
.bv-rune-socket img{height:24px;width:24px;object-fit:contain;image-rendering:pixelated}
.bv-rune-socket span{font-size:10px}
.bv-rune-window button.bv-rune-socket.active{border-color:#d8bd80;box-shadow:inset 0 0 0 1px #907048}
.bv-rune-window button.bv-rune-socket.locked{color:#a18f88}
.bv-rune-word{min-height:37px;line-height:1.55;border-top:1px solid #453c36;padding:7px 2px;font-size:11px;color:#a89d8d}
.bv-rune-word.complete{color:#e4c680}
.bv-rune-note{font-size:10px;line-height:1.5;color:#a89e8c;min-height:28px}
.bv-rune-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:7px}
.bv-rune-actions button{font-size:11px;padding:4px 7px}
.bv-rune-tabs{display:flex;gap:5px;margin-bottom:8px}
.bv-rune-tabs button{flex:1;font-size:11px}
.bv-rune-tabs .active,.bv-rune-filters .active{border-color:#d9bd78!important;background:#5b4930!important;color:#ffe7af!important}
.bv-rune-filters{display:flex;gap:3px;margin-bottom:8px}
.bv-rune-filters button{font-size:10px;flex:1;min-width:0;padding:2px 0}
.bv-rune-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;min-height:132px;align-content:start}
.bv-rune-window button.bv-rune-cell{position:relative;aspect-ratio:1;min-height:28px;padding:2px;background:#1e1d22;border-color:#4f4540}
.bv-rune-cell.selected{border-color:#ebca7e!important}
.bv-rune-cell img{width:100%;height:100%;object-fit:contain;image-rendering:pixelated}
.bv-rune-cell span{position:absolute;bottom:0;right:1px;padding:0 2px;font-size:9px;background:#09080bcd;color:#f1eadb}
.bv-rune-empty{grid-column:span 7;padding:17px 6px;font-size:11px;color:#908579;text-align:center}
.bv-rune-page{display:flex;justify-content:center;align-items:center;gap:10px;margin:6px 0;color:#bba988;font-size:11px}
.bv-rune-page button{min-width:32px;min-height:23px}
.bv-rune-detail{font-size:11px;border-top:1px solid #4f4540;padding-top:8px;line-height:1.5;min-height:60px;color:#b4a998}
.bv-rune-detail strong{color:#e8c993}
.bv-rune-detail p{margin:4px 0}
.bv-rune-detail button{font-size:11px;padding:4px 10px;margin-top:5px}
.bv-rune-status{padding:4px 13px 9px;min-height:20px;font-size:11px;color:#e4bfa0;text-align:center}
@media(max-width:550px){.bv-rune-window{max-height:calc(100dvh - 8px)}.bv-rune-columns{grid-template-columns:1fr;gap:4px;padding:6px}.bv-rune-left,.bv-rune-right{padding:6px}.bv-rune-sockets{min-height:46px}.bv-rune-window button.bv-rune-socket{height:48px}.bv-rune-grid{min-height:100px}.bv-rune-gear{min-height:43px}.bv-rune-gear img{height:34px;width:34px}}
@media(max-height:500px) and (orientation:landscape){.bv-rune-window{max-height:97dvh}.bv-rune-columns{grid-template-columns:1fr 1fr}.bv-rune-grid{min-height:80px}.bv-rune-sockets{min-height:40px}.bv-rune-window button.bv-rune-socket{height:44px}}

/* v0.2.70.7 rune placement affordances; original palette/layout retained. */
.bv-rune-window button.bv-rune-cell[draggable="true"],.bv-rune-cell[draggable="true"]{cursor:grab}
.bv-rune-window button.bv-rune-cell[draggable="true"]:active{cursor:grabbing}
.bv-rune-window button.bv-rune-socket.drag-over{border-color:#efd296;background:#403222;box-shadow:0 0 0 2px #d4ae6a99}
.bv-rune-preview{min-height:36px;margin-top:4px;padding:7px 6px;border:1px solid #4e4336;border-radius:3px;background:#161418;color:#c4ad80;font-size:10px;line-height:1.6;overflow-wrap:anywhere}
.bv-rune-preview:empty{display:none}
.bv-rune-actions button:first-child{border-color:#b18c52}

.bv-rune-choice{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:min(280px,calc(100vw - 32px));padding:14px 14px 12px;border:1px solid #8a7151;border-radius:6px;background:linear-gradient(165deg,#2a2627,#111215);box-shadow:0 18px 48px #000c;z-index:5;text-align:center;}
.bv-rune-choice[hidden]{display:none!important}
.bv-rune-choice strong{display:block;color:#f0d39c;margin-bottom:7px}
.bv-rune-choice p{margin:0;color:#d7c8b2;font-size:11px;line-height:1.6}
.bv-rune-choice-actions{display:flex;justify-content:center;gap:8px;margin-top:12px}
.bv-rune-choice-actions button{min-width:84px;padding:5px 10px}
