/*==================================================
    DAILY BOUNTY BOARD (22 Nov 2026) — js/bounty.js
==================================================*/
#bountyRoot{ display:flex; flex-direction:column; gap:14px; }
/* 22 Nov 2026: header art */
.bn-hero{ height:190px; border-radius:16px; border:1px solid rgba(139,63,255,.45); box-shadow:0 0 26px -10px #8b3fff;
    background:linear-gradient(90deg, rgba(7,9,20,.55), rgba(7,9,20,0) 45%), url("../assets/bounty-banner.webp") right center / cover no-repeat; }
.bn-top{ margin-top:-62px; padding:0 14px; position:relative; }
.bn-top .bn-tile{ background:rgba(8,10,24,.82); backdrop-filter:blur(4px); }
.bn-bonus-ic{ width:26px; height:26px; object-fit:contain; vertical-align:middle; margin:-6px 4px -6px -4px; filter:drop-shadow(0 0 6px rgba(255,184,0,.6)); }
.bn-badge{ display:inline-flex; align-items:center; }
.bn-loading{ text-align:center; padding:20px; }
.bn-top{ display:grid; grid-template-columns:repeat(3, 1fr); gap:10px; }
.bn-tile{ display:flex; flex-direction:column; align-items:center; gap:3px; padding:12px 10px; border-radius:14px; text-align:center;
    background:rgba(0,0,0,.3); border:1px solid rgba(255,255,255,.1); }
.bn-tile span{ font-size:11px; color:#9fb3d6; text-transform:uppercase; letter-spacing:.06em; }
.bn-tile b{ font-family:Orbitron, sans-serif; font-size:20px; color:#fff; }
.bn-tile small{ font-size:11px; color:#b7c0dd; }
.bn-note{ margin:0; font-size:12px; line-height:1.5; text-align:center; }
.bn-note b{ color:#ffd76a; }

.bn-grid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(340px, 1fr)); gap:12px; }
.bn-card{ display:flex; flex-direction:column; gap:10px; padding:14px; border-radius:16px;
    background:linear-gradient(160deg, rgba(20,24,48,.95), rgba(10,12,26,.95)); border:1px solid color-mix(in srgb, var(--c) 55%, transparent);
    box-shadow:0 0 22px -10px var(--c); }
.bn-card.is-bonus{ background:linear-gradient(160deg, rgba(48,36,10,.95), rgba(16,12,26,.95)); box-shadow:0 0 26px -6px var(--c); }
.bn-card.is-done{ opacity:.72; }
.bn-card-head{ display:flex; align-items:center; justify-content:space-between; gap:8px; }
.bn-badge{ font-family:Orbitron, sans-serif; font-size:13px; font-weight:800; letter-spacing:.06em; text-transform:uppercase; color:var(--c);
    padding:4px 10px; border-radius:999px; background:color-mix(in srgb, var(--c) 12%, transparent); border:1px solid color-mix(in srgb, var(--c) 45%, transparent); }
.bn-card-head small{ font-size:11px; color:#9fb3d6; }
.bn-label{ font-size:11px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; color:#8f9bbd; margin-bottom:-4px; }

.bn-needs{ display:grid; grid-template-columns:1fr 1fr; gap:6px; }
.bn-need{ display:flex; align-items:center; gap:6px; min-width:0; padding:6px 8px; border-radius:9px; font-size:12px; color:#d7dcef;
    background:rgba(0,0,0,.3); border:1px solid rgba(255,255,255,.1); }
.bn-need img{ width:18px; height:18px; flex:0 0 auto; object-fit:contain; }
.bn-need em{ font-style:normal; flex:1 1 auto; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.bn-need b{ flex:0 0 auto; }
.bn-need.ok b{ color:#7dffb0; } .bn-need.no b{ color:#ff8fa3; }
.bn-need.no{ border-color:rgba(255,94,138,.35); }
.bn-need.ws{ background:rgba(139,63,255,.1); }

.bn-rewards{ display:flex; flex-wrap:wrap; gap:6px; align-items:center; }
.bn-rw{ display:inline-flex; align-items:center; gap:6px; padding:6px 10px; border-radius:10px; font-size:13px; font-weight:800; color:#fff;
    background:rgba(0,0,0,.35); border:1px solid rgba(255,255,255,.12); }
.bn-rw img{ width:20px; height:20px; object-fit:contain; }
.bn-rw.gold{ color:#ffd76a; border-color:rgba(255,215,106,.45); }
.bn-plus{ font-size:12px; color:#b7c0dd; }

.bn-pick{ display:grid; grid-template-columns:1fr 1fr; gap:6px; padding:4px; border-radius:12px; background:rgba(0,0,0,.28); border:1px solid rgba(255,255,255,.08); }
.bn-pick button{ display:flex; align-items:center; justify-content:center; gap:6px; min-height:40px; padding:6px 8px; border-radius:9px; font:inherit; font-size:12px; font-weight:800;
    cursor:pointer; color:#b9c3e6; background:transparent; border:1px solid transparent; }
.bn-pick button img{ width:18px; height:18px; object-fit:contain; }
.bn-pick button:hover{ color:#fff; background:rgba(139,63,255,.14); }
.bn-pick button.active{ color:#fff; background:linear-gradient(100deg, #6B3BFF, #8b3fff); border-color:#8b3fff; box-shadow:0 4px 14px rgba(107,59,255,.35); }

.bn-actions{ display:flex; gap:8px; margin-top:auto; align-items:stretch; }
.bn-actions .craft-btn{ margin:0 !important; min-height:44px; }
.bn-actions .bn-deliver{ flex:1 1 auto; width:auto !important; }
.bn-actions .bn-deliver.not-ready{ opacity:.6; }
.bn-reroll{ flex:0 0 auto; min-height:44px; margin:0; padding:0 14px; border-radius:10px; font:inherit; font-size:13px; font-weight:800; cursor:pointer;
    color:#d9ccff; background:rgba(139,63,255,.12); border:1px solid rgba(139,63,255,.45); }
.bn-reroll:hover:not(:disabled){ background:rgba(139,63,255,.25); }
.bn-reroll:disabled{ opacity:.4; cursor:default; }
.bn-done{ margin-top:auto; text-align:center; padding:10px; border-radius:10px; font-size:13px; font-weight:800; color:#7dffb0;
    background:rgba(61,255,138,.08); border:1px solid rgba(61,255,138,.35); }

@media (max-width:760px){
    .bn-hero{ height:120px; background-position:70% center; }
    .bn-top{ gap:6px; margin-top:-40px; padding:0 8px; }
    .bn-tile{ padding:10px 6px; }
    .bn-tile b{ font-size:16px; }
    .bn-grid{ grid-template-columns:1fr; }
}
