/* Hunt */

.hu-login { text-align: center; }
.hu-login-art { display: flex; justify-content: center; align-items: flex-end; gap: 6px; margin-bottom: 6px; }
.hu-login-art svg { width: 76px; height: 76px; }
.hu-login-art svg:nth-child(2) { width: 60px; height: 60px; }

.hu-card { padding: 16px; }
.hu-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; font-weight: 700; color: var(--muted); margin-bottom: 10px; }
.hu-top b { color: var(--ink); }

.hu-forest {
  position: relative;
  aspect-ratio: 16 / 7;
  border: 2.5px solid var(--ink);
  border-radius: 18px;
  overflow: hidden;
  background: #d7ecd9;
  cursor: crosshair;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.hu-back { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hu-layer, .hu-fx { position: absolute; inset: 0; pointer-events: none; }
.hu-bush { position: absolute; bottom: -2%; height: 46%; display: block; pointer-events: none; overflow: visible; }

.hu-an { position: absolute; bottom: 5%; aspect-ratio: 1; visibility: hidden; }
.hu-an.out { visibility: visible; }
.hu-body { width: 100%; height: 100%; }
.hu-body svg { display: block; width: 100%; height: 100%; overflow: visible; }
.hu-an.left .hu-body { transform: scaleX(-1); }
.hu-an.walk .hu-body svg { animation: hu-walk .32s ease-in-out infinite alternate; }
@keyframes hu-walk { from { transform: translateY(0) rotate(-1.5deg); } to { transform: translateY(-5%) rotate(1.5deg); } }
.hu-an.m-albino .hu-body { filter: grayscale(1) brightness(2.3) contrast(.8); }
.hu-an.hurt .hu-body svg { animation: hu-hurt .25s ease; }
@keyframes hu-hurt { 0% { filter: brightness(2.2); transform: translateX(0); } 40% { transform: translateX(-4%); } 100% { filter: none; transform: translateX(0); } }
.hu-an.dead { visibility: visible; transition: opacity .6s ease .7s; opacity: 0; }
.hu-an.dead .hu-body svg { animation: none; transform: rotate(90deg) translateX(18%); transition: transform .35s ease-in; }
.hu-an.left.dead .hu-body svg { transform: rotate(90deg) translateX(18%); }
.hu-an.dead .hu-tag { display: none; }

.hu-tag { position: absolute; left: 50%; bottom: 100%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 2px; white-space: nowrap; }
.hu-tag b { font: 700 .78rem/1 var(--font-display); color: #1d1b16; background: rgba(255, 255, 255, .85); padding: 2px 6px; border-radius: 8px; border: 2px solid var(--tc, #1d1b16); }
.hu-hp { display: block; width: 54px; height: 7px; border: 2px solid #1d1b16; border-radius: 6px; background: #fff; overflow: hidden; }
.hu-hp i { display: block; height: 100%; width: 100%; background: #e5484d; transition: width .2s ease; }

.hu-boom, .hu-dmg { position: absolute; transform: translate(-50%, -50%); pointer-events: none; }
.hu-boom { width: 26px; height: 26px; border-radius: 50%; border: 3px solid #1d1b16; background: #ffd23f; animation: hu-boom .3s ease-out forwards; }
@keyframes hu-boom { from { transform: translate(-50%, -50%) scale(.4); opacity: 1; } to { transform: translate(-50%, -50%) scale(1.5); opacity: 0; } }
.hu-dmg { font: 700 1.25rem/1 var(--font-display); color: #fff; -webkit-text-stroke: 1.5px #1d1b16; paint-order: stroke; animation: hu-up .9s ease-out forwards; }
@keyframes hu-up { from { transform: translate(-50%, -50%); opacity: 1; } to { transform: translate(-50%, -190%); opacity: 0; } }

.hu-reload { height: 10px; margin: 8px 0 4px; border: 2px solid var(--ink); border-radius: 8px; background: var(--soft); overflow: hidden; }
.hu-reload i { display: block; height: 100%; width: 100%; background: var(--muted); }
.hu-reload.ready i { background: var(--good); }
.hu-reload.nope { animation: fm-shake .3s ease; }
@keyframes fm-shake { 25% { transform: translateX(-6px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-3px); } }

.hu-gear h2, .hu-head h2 { display: flex; align-items: center; gap: 8px; margin: 14px 0 8px; font: 600 1.15rem/1.2 var(--font-display); }
.hu-gear h2 .stk, .hu-head h2 .stk { width: 26px; height: 26px; }
.hu-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; }
.hu-item {
  display: flex; align-items: center; gap: 8px; text-align: left;
  min-width: 150px; padding: 8px 10px; border: 2.5px solid var(--line); border-radius: 14px; background: var(--card); color: var(--ink); font: inherit; cursor: pointer;
}
.hu-item .stk { flex: none; width: 38px; height: 38px; }
.hu-txt { display: flex; flex-direction: column; gap: 1px; }
.hu-item b { font-size: .95rem; }
.hu-item small { color: var(--muted); font-weight: 700; font-size: .78rem; }
.hu-item:hover:not(:disabled) { border-color: var(--ink); }
.hu-item.on { border-color: var(--ink); background: #fff3c4; color: #1d1b16; }
.hu-item.on small { color: #6d675c; }
.hu-item:disabled { cursor: default; opacity: .55; }
.hu-item.on:disabled { opacity: 1; }
.hu-item.buy { border-style: dashed; }
.hu-price { font-weight: 800; color: var(--good); font-size: .85rem; }
.hu-round { display: flex; flex-direction: column; gap: 4px; }
.hu-round .hu-item { width: 100%; }
.hu-more { display: flex; gap: 4px; }
.hu-more .btn { flex: 1; padding: 3px 6px; font-size: .75rem; }

.hu-bagcard { padding: 16px; }
.hu-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hu-head h2 { margin-top: 0; }
.hu-head small { color: var(--muted); font: 700 .85rem/1 var(--font-body); }
.hu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.hu-tile {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 6px; text-align: center;
  border: 2.5px solid var(--line); border-top: 5px solid var(--tc); border-radius: 14px; background: var(--card); color: var(--ink); font: inherit; cursor: pointer;
}
.hu-tile .stk { width: 54px; height: 54px; }
.hu-tile b { font-size: .8rem; line-height: 1.15; }
.hu-tile.m-albino .stk { filter: grayscale(1) brightness(2.3) contrast(.8); }
.hu-tile.zomb .stk { filter: hue-rotate(70deg) saturate(.7); }
.hu-tile.m-albino.zomb .stk { filter: grayscale(1) brightness(1.5) sepia(.5) hue-rotate(50deg); }
.hu-tile.on { border-color: var(--ink); border-top-color: var(--tc); background: #fff3c4; color: #1d1b16; }
.hu-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

@media (max-width: 640px) {
  .hu-forest { aspect-ratio: 16 / 9; }
  .hu-row > .hu-item, .hu-round { min-width: 0; flex: 1 1 140px; }
  .hu-round .hu-item { min-width: 0; }
  .hu-tag b { font-size: .65rem; padding: 1px 4px; }
  .hu-hp { width: 40px; height: 6px; }
}
