/* Roadmap item 101 v2: the auto-hunt orb beside the right-click skill orb and its settings menu (src/auto-hunt-ui.js). */
.auto-hunt-dock{position:absolute;left:calc(100% + 18px);top:14px;z-index:7;display:flex;flex-direction:column;align-items:center;gap:4px;pointer-events:auto;font-family:"Leelawadee UI","Noto Sans Thai",sans-serif}
.auto-hunt-dock[hidden]{display:none}
.auto-hunt-dock.is-free{position:absolute;left:auto;right:24px;top:auto;bottom:150px}
.ah-orb{position:relative;width:70px;height:70px;padding:0;border:0;border-radius:50%;cursor:pointer;
 background:conic-gradient(from 210deg,#f6dc8c,#b07a2a,#fbe7a6,#8a5a1c,#f6dc8c);box-shadow:0 0 0 2px #2a1640,0 4px 14px #000a,inset 0 0 0 1px #fff6}
.ah-orb::after{content:"";position:absolute;inset:-6px;border-radius:50%;border:2px solid transparent;pointer-events:none}
.ah-orb-art{position:absolute;inset:5px;border-radius:50%;display:grid;place-items:center;overflow:hidden;
 background:radial-gradient(circle at 35% 30%,#7d4bc4 0,#3b1d6e 45%,#160a2c 100%);box-shadow:inset 0 0 12px #000c,inset 0 0 0 1px #d6b05c66}
.ah-orb svg{width:44px;height:44px;fill:none;stroke-linecap:round;stroke-linejoin:round}
.ah-orb .ah-ring{stroke:#9fe3ff;stroke-width:3;opacity:.9}
.ah-orb .ah-arrow{fill:#9fe3ff;stroke:none}
.ah-orb .ah-blade{fill:#eef6ff;stroke:#7fb7ff;stroke-width:1.2}
.ah-orb .ah-guard{stroke:#f2cf72;stroke-width:3.2}
.ah-orb:hover .ah-orb-art{filter:brightness(1.15)}
.ah-orb:focus-visible{outline:3px solid #ffd76a;outline-offset:3px}
.ah-label{padding:1px 10px;border-radius:9px;background:#1b0f2ecc;border:1px solid #d6b05c99;color:#f6ead0;font-size:12px;font-weight:700;line-height:18px;white-space:nowrap;text-shadow:0 1px 2px #000}
/* Hunting: green glow that breathes, the rings turn slowly. */
.auto-hunt-dock.is-on .ah-orb-art{background:radial-gradient(circle at 35% 30%,#4fbf6a 0,#1f6e36 45%,#0b2a14 100%)}
.auto-hunt-dock.is-on .ah-orb::after{border-color:#7dffa0;box-shadow:0 0 14px #5dff8a99;animation:ah-breathe 1.8s ease-in-out infinite}
.auto-hunt-dock.is-on .ah-orb svg .ah-ring,.auto-hunt-dock.is-on .ah-orb svg .ah-arrow{transform-origin:24px 24px;animation:ah-spin 4s linear infinite}
.auto-hunt-dock.is-on .ah-label{border-color:#7dffa0;color:#c8ffd6}
@keyframes ah-breathe{50%{opacity:.35;transform:scale(1.06)}}
@keyframes ah-spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.auto-hunt-dock.is-on .ah-orb::after,.auto-hunt-dock.is-on .ah-orb svg .ah-ring,.auto-hunt-dock.is-on .ah-orb svg .ah-arrow{animation:none}}

/* The settings menu: opens above the orb. */
.ah-menu{position:absolute;bottom:calc(100% + 14px);right:-12px;width:min(360px,calc(100vw - 32px));max-height:min(560px,calc(100vh - 330px));overflow:auto;padding:14px 16px 12px;border-radius:14px;
 background:linear-gradient(180deg,#2b1748f2,#170c29f5);border:2px solid #d6b05c;box-shadow:0 10px 30px #000c,inset 0 0 0 1px #fff2;color:#f3e7cf;text-align:left;font-size:13px;line-height:1.45}
.ah-menu[hidden]{display:none}
.ah-head{display:flex;align-items:center;gap:8px;margin-bottom:8px}
.ah-head h2{margin:0;font-size:17px;color:#f6d77e}
.ah-map{flex:1;font-size:12px;opacity:.8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ah-close{width:32px;height:32px;border-radius:50%;border:1px solid #d6b05c99;background:#0006;color:#f3e7cf;font-size:20px;line-height:1;cursor:pointer}
.ah-block{margin:8px 0;padding:8px 10px;border-radius:10px;background:#0000002e;border:1px solid #ffffff14}
.ah-block h3{margin:0 0 8px;font-size:13px;color:#e9c76a}
.ah-levels{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.ah-levels label{display:flex;align-items:center;gap:6px}
.ah-levels input{width:76px;height:34px;padding:0 8px;border-radius:8px;border:1px solid #d6b05c88;background:#0e0718;color:#fff;font-weight:600;font-size:14px;font-family:inherit}
.ah-chip{margin-top:8px;min-height:30px;padding:0 12px;border-radius:15px;border:1px solid #d6b05c88;background:#3a2160;color:#f6ead0;font-weight:600;font-size:12px;font-family:inherit;cursor:pointer}
.ah-kinds{display:grid;gap:4px;margin-top:4px}
.ah-kind{display:grid;grid-template-columns:22px 1fr auto;align-items:center;gap:6px;min-height:32px;padding:2px 6px;border-radius:8px;cursor:pointer}
.ah-kind:hover{background:#ffffff0f}
.ah-kind input{width:18px;height:18px;accent-color:#e7b94a}
.ah-kind-name{font-weight:700}
.ah-kind-meta{font-size:12px;opacity:.8;white-space:nowrap}
.ah-kind.is-out{opacity:.55}
.ah-all{border-bottom:1px solid #ffffff14;border-radius:8px 8px 0 0}
.ah-empty{margin:4px 0;font-size:12px;opacity:.8}
.ah-areas{display:flex;gap:6px;flex-wrap:wrap;align-items:center}
.ah-seg{min-height:34px;padding:0 12px;border-radius:8px;border:1px solid #d6b05c66;background:#0e0718;color:#f3e7cf;font-weight:600;font-size:13px;font-family:inherit;cursor:pointer}
.ah-seg[aria-pressed="true"]{background:linear-gradient(180deg,#e7b94a,#a8741f);color:#1d1206;border-color:#f6dc8c}
.ah-areas select{height:34px;border-radius:8px;border:1px solid #d6b05c66;background:#0e0718;color:#f3e7cf;font-weight:600;font-size:13px;font-family:inherit}
.ah-areas select:disabled{opacity:.45}
.ah-budget{margin:0 0 6px;font-size:12px;font-weight:600;color:#f6d77e}
.ah-budget[hidden]{display:none}
.ah-status{margin:0 0 8px;padding:8px 10px;border-radius:8px;background:#3d6b2c33;border:1px solid #7dc56a55;font-weight:600}
.ah-status.is-warn{background:#6b2c2c40;border-color:#e0806a77;color:#ffd6cb}
.ah-actions{display:flex;gap:8px}
.ah-go{flex:1;min-height:44px;border-radius:10px;border:2px solid #f6dc8c;background:linear-gradient(180deg,#5fae4a,#2f6e25);color:#fff;font-weight:800;font-size:15px;font-family:inherit;cursor:pointer;text-shadow:0 1px 2px #0008}
.ah-go.is-stop{background:linear-gradient(180deg,#c0503b,#7a2619)}
.ah-go:disabled,.ah-update:disabled{opacity:.6;cursor:default}
.ah-update{min-height:44px;padding:0 12px;border-radius:10px;border:1px solid #d6b05c;background:#3a2160;color:#f6ead0;font-weight:700;font-size:13px;font-family:inherit;cursor:pointer}
.ah-update[hidden]{display:none}
.ah-menu button:focus-visible,.ah-menu input:focus-visible,.ah-menu select:focus-visible{outline:3px solid #ffd76a;outline-offset:2px}
.ah-note{margin:6px 0 8px;font-size:11.5px;opacity:.75}
/* Touch: the skill bar sits at the right edge, so the orb goes to its left. */
@media (pointer:coarse){.auto-hunt-dock{left:auto;right:calc(100% + 10px);top:auto;bottom:6px}.ah-menu{right:auto;left:-10px}}

/* Status and buttons stay in view while the choices scroll. */
.ah-foot{position:sticky;bottom:-12px;margin:0 -16px -12px;padding:10px 16px 12px;background:linear-gradient(180deg,#1b0e30f0,#170c29);border-top:1px solid #d6b05c55;border-radius:0 0 12px 12px}
