/* ------------------------------------------------------------------ InfiniWorld' hunt (hunt.js, server/hunt.py), 14/11
   Under the regions: the window's contested sighting (a dark "space" card in both looks, like the planet above it), the
   week's bounty board in two rails and the capture ranking. On the planet: a chip under the title and a mark on the
   sighting's region tile. In battle: ribbons on the foe's plate and a banner when the sighting shows up. */
.hunt { margin: 18px 0 12px; }
.hunt-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin: 0 2px 10px; }
.hunt-h .label { flex-basis: 100%; margin: 0; }
.hunt-h > b { font: 700 21px/1.1 Fredoka, sans-serif; color: var(--text); }
.hunt-h > small { margin-left: auto; font: 800 11.5px Nunito, sans-serif; color: var(--muted); white-space: nowrap; }
.hunt-skel { display: grid; gap: 10px; }
.hunt-skel i { height: 120px; border-radius: 20px; background: linear-gradient(100deg, var(--panel) 30%, var(--panel2) 50%, var(--panel) 70%);
  background-size: 300% 100%; animation: huntsk 1.4s linear infinite; }
.hunt-skel i + i { height: 170px; }
@keyframes huntsk { to { background-position: -150% 0; } }
.hunt-note { margin: 0 2px 10px; font: 700 12px/1.4 Nunito, sans-serif; color: var(--muted); }

/* the contested sighting */
.hsight { --vc: #ffcc33; position: relative; display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: center; margin: 0 0 14px;
  padding: 14px 14px 14px 12px; border-radius: 22px; overflow: hidden; isolation: isolate; color: #fff;
  background: radial-gradient(ellipse 60% 80% at 12% 50%, color-mix(in srgb, var(--vc) 38%, transparent), transparent 70%),
    radial-gradient(ellipse 50% 60% at 95% 0%, rgba(255, 79, 163, .3), transparent 70%),
    radial-gradient(circle at 60% 50%, #1d1256, #0a0724 80%);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--vc) 70%, transparent), 0 10px 28px rgba(40, 20, 110, .3), 0 0 26px color-mix(in srgb, var(--vc) 30%, transparent); }
.hsight::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5; pointer-events: none;
  background: radial-gradient(1.5px 1.5px at 20% 30%, #fff, transparent), radial-gradient(1px 1px at 70% 20%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 85% 70%, #fff, transparent), radial-gradient(1px 1px at 40% 85%, #fff, transparent),
    radial-gradient(1px 1px at 55% 45%, #fff, transparent); }
.hs-art { position: relative; width: 96px; height: 96px; display: grid; place-items: center; }
.hs-ring { position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--vc), #ff4fa3, #3dd6ff, #a470ff, var(--vc));
  -webkit-mask: radial-gradient(circle, transparent 60%, #000 61%, #000 68%, transparent 69%); mask: radial-gradient(circle, transparent 60%, #000 61%, #000 68%, transparent 69%);
  animation: huntspin 6s linear infinite; }
.hs-ring::after { content: ""; position: absolute; inset: 14%; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--vc) 35%, transparent), transparent 70%); }
@keyframes huntspin { to { transform: rotate(360deg); } }
.hs-art img { position: relative; width: 80px; height: 80px; object-fit: contain; filter: drop-shadow(0 0 10px var(--vc)); animation: huntbob 2.6s ease-in-out infinite; }
.hsight.never .hs-art img { filter: brightness(.2) drop-shadow(0 0 2px #ffcc33) drop-shadow(0 0 10px #ffcc33); }
@keyframes huntbob { 50% { transform: translateY(-4px); } }
.hs-main { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.hs-k { font: 800 10px/1.2 Nunito, sans-serif; letter-spacing: 1.2px; text-transform: uppercase; color: var(--vc); }
.hs-t { font: 700 19px/1.12 Fredoka, sans-serif; }
.hs-reg { display: inline-flex; align-items: center; gap: 5px; font: 800 11.5px Nunito, sans-serif; color: rgba(236, 230, 255, .88); }
.hs-ico, .hb-ico { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 6px; background: var(--c); font-style: normal; flex: none; }
.hs-ico svg, .hb-ico svg { width: 12px; height: 12px; fill: none; stroke: #1b1030; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.hs-p { margin: 3px 0 0; font: 700 11.5px/1.38 Nunito, sans-serif; color: rgba(236, 230, 255, .82); }
.hs-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.hs-left { padding: 4px 10px; border-radius: 99px; background: rgba(255, 255, 255, .1); font: 800 12px Nunito, sans-serif; white-space: nowrap; }
.hs-left b { font-variant-numeric: tabular-nums; }
.hsight .hs-go { border: 0; color: #fff; background: linear-gradient(100deg, #ff8a3d, #ff4fa3); box-shadow: 0 3px 0 rgba(150, 30, 90, .55), 0 6px 14px rgba(255, 79, 163, .35); }
.hs-won { margin: 4px 0 0; font: 700 12.5px/1.35 Nunito, sans-serif; color: #ffe27a; }
.hs-won b { color: #fff; }
.hs-won small { display: block; color: rgba(236, 230, 255, .6); font-weight: 800; }
.hsight.won { box-shadow: 0 0 0 2px rgba(255, 210, 61, .7), 0 10px 28px rgba(40, 20, 110, .3); }
.hsight.won .hs-ring { animation-duration: 18s; opacity: .55; }

/* tabs: bounties | ranking */
.hunt-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 0 0 12px; border-radius: 16px; background: var(--panel2); border: 1px solid var(--line); }
.hunt-tabs button { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 6px 8px; border: 0; border-radius: 12px; background: none;
  color: var(--muted); font: 800 13.5px Nunito, sans-serif; cursor: pointer; }
.hunt-tabs button i { font-style: normal; padding: 1px 7px; border-radius: 99px; background: var(--panel); color: var(--text); font-size: 11px; }
.hunt-tabs button.on { color: #fff; background: linear-gradient(100deg, #ff8a3d, #ff4fa3); box-shadow: 0 4px 12px rgba(255, 79, 163, .3); }
.hunt-tabs button.on i { background: rgba(255, 255, 255, .25); color: #fff; }

/* the bounty board: two rails of wanted cards */
.hb-h { display: flex; align-items: baseline; justify-content: space-between; margin: 4px 2px 6px; }
.hb-h b { font: 700 15.5px Fredoka, sans-serif; color: var(--text); }
.hb-rail { display: flex; gap: 10px; margin: 0 -16px 8px; padding: 4px 16px 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.hb-rail::-webkit-scrollbar { display: none; }
.hb { --vc: #a470ff; position: relative; flex: 0 0 138px; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 10px 8px 9px; border: 2px solid color-mix(in srgb, var(--vc) 55%, transparent); border-radius: 18px; background: var(--panel); color: var(--text);
  font: inherit; text-align: center; cursor: pointer; box-shadow: 0 6px 16px rgba(40, 20, 110, .14); transition: transform .15s; }
.hb:active { transform: scale(.96); }
.hb-img { display: grid; place-items: center; width: 74px; height: 74px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--c) 30%, transparent), transparent 70%), var(--panel2); }
.hb-img img { width: 66px; height: 66px; object-fit: contain; }
.hb.variant .hb-img img { filter: drop-shadow(0 0 6px var(--vc)); }
.hb-var { padding: 1px 8px; border-radius: 99px; font: 800 10px/1.5 Nunito, sans-serif; font-style: normal; color: #1b1030; background: var(--vc); white-space: nowrap; }
.hb-var.any { color: var(--muted); background: var(--panel2); }
.hb-n { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 14px/1.15 Fredoka, sans-serif; }
.hb-reg { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; font: 800 10.5px Nunito, sans-serif; color: var(--muted); white-space: nowrap; overflow: hidden; }
.hb-pay { display: inline-flex; align-items: center; gap: 4px; margin-top: 2px; padding: 3px 9px; border-radius: 99px; font: 800 12px Nunito, sans-serif;
  background: color-mix(in srgb, #ffcb3d 22%, var(--panel)); color: var(--text); white-space: nowrap; }
.hp-tok { margin-left: 4px; color: #a470ff; }
html.light .hb-pay { background: #fff4d6; }
.hb-first { font: 800 9.5px/1.25 Nunito, sans-serif; color: var(--muted); }
.hb.got { border-style: dashed; opacity: .78; }
.hb.got .hb-pay { background: color-mix(in srgb, #3fd08a 25%, var(--panel)); color: var(--good); }

/* the ranking */
.hpts { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.hpts span { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px 3px 4px; border-radius: 99px; background: var(--panel2); border: 1px solid var(--line);
  font: 800 11px Nunito, sans-serif; color: var(--muted); }
.hpts b { min-width: 22px; padding: 1px 6px; border-radius: 99px; text-align: center; color: #fff; background: linear-gradient(100deg, #a470ff, #3dd6ff); }
.hrank { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; }
.hr { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 8px; padding: 8px 12px 8px 8px; border-radius: 14px; background: var(--panel);
  border: 1px solid var(--line); }
.hr.top { border-color: color-mix(in srgb, #ffd23d 55%, var(--line)); }
.hr.me { border: 2px solid #ff8a3d; box-shadow: 0 0 0 3px rgba(255, 138, 61, .15); }
.hr-n { text-align: center; font: 800 15px Fredoka, sans-serif; color: var(--muted); }
.hr.top .hr-n { font-size: 20px; }
.hr-u { min-width: 0; display: flex; flex-direction: column; }
.hr-u b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 14.5px Fredoka, sans-serif; color: var(--text); }
.hr-u b i { font: 800 10px Nunito, sans-serif; font-style: normal; padding: 1px 6px; border-radius: 99px; background: #ff8a3d; color: #fff; vertical-align: 2px; }
.hr-u small { font: 700 11px Nunito, sans-serif; color: var(--muted); }
.hr-p { font: 700 18px Fredoka, sans-serif; color: var(--text); white-space: nowrap; }
.hr-p small { margin-left: 3px; font: 800 10px Nunito, sans-serif; color: var(--muted); }
.hr-gap { text-align: center; color: var(--muted); line-height: .8; }
.hchamps { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 8px; margin: 0 0 14px; }
.hc { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; padding: 10px 6px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.hc.r1 { order: 2; padding-top: 16px; border: 2px solid #ffd23d; box-shadow: 0 8px 20px rgba(255, 190, 40, .22); }
.hc.r2 { order: 1; }
.hc.r3 { order: 3; }
.hc.me { box-shadow: 0 0 0 3px rgba(255, 138, 61, .35); }
.hc i { font-style: normal; font-size: 24px; line-height: 1; }
.hc.r1 i { font-size: 30px; }
.hc b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 13.5px Fredoka, sans-serif; color: var(--text); }
.hc small { font: 800 10.5px Nunito, sans-serif; color: var(--muted); }
.hsc-rail { display: flex; gap: 8px; margin: 0 -16px 6px; padding: 2px 16px 10px; overflow-x: auto; scrollbar-width: none; }
.hsc-rail::-webkit-scrollbar { display: none; }
.hsc { --vc: #ffcc33; flex: 0 0 112px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 6px; border-radius: 16px; text-align: center;
  background: var(--panel); border: 2px solid color-mix(in srgb, var(--vc) 50%, transparent); }
.hsc.me { box-shadow: 0 0 0 3px rgba(255, 138, 61, .3); }
.hsc-img img { width: 52px; height: 52px; object-fit: contain; filter: drop-shadow(0 0 5px var(--vc)); }
.hsc b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 12px Fredoka, sans-serif; color: var(--text); }
.hsc small { font: 800 10px Nunito, sans-serif; color: var(--muted); }

/* on the planet: the chip under the title (stays dark, like the sky) and the mark on the sighting's tile */
.hunt-chip { --vc: #ffcc33; display: flex; align-items: center; gap: 8px; max-width: min(100%, 280px); padding: 5px 12px 5px 5px; border: 0; border-radius: 14px;
  background: rgba(12, 7, 36, .78); box-shadow: 0 0 0 1.5px var(--vc), 0 6px 16px rgba(5, 2, 25, .45), 0 0 14px color-mix(in srgb, var(--vc) 40%, transparent);
  color: #fff; text-align: left; font: inherit; cursor: pointer; transition: opacity .25s, transform .25s; }
.hunt-chip:active { transform: scale(.97); }
.hunt-chip .hc-img { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; background: rgba(255, 255, 255, .08); }
.hunt-chip .hc-img img { width: 28px; height: 28px; object-fit: contain; filter: drop-shadow(0 0 4px var(--vc)); }
.hunt-chip > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.hunt-chip b { font: 700 12px/1.18 Fredoka, sans-serif; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.hunt-chip small { font: 800 10px/1.3 Nunito, sans-serif; color: var(--vc); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wpl-host.pl-focused ~ .wpl-hud .hunt-chip { opacity: 0; transform: translateY(-6px); pointer-events: none; }
.hunt-tb { --vc: #ffcc33; position: absolute; right: 8px; top: 40px; z-index: 1; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%;
  background: var(--vc); color: #1b1030; font: 800 13px/1 Nunito, sans-serif; font-style: normal; box-shadow: 0 0 0 2px #fff, 0 0 12px var(--vc);
  animation: huntping 1.6s ease-in-out infinite alternate; }
@keyframes huntping { to { transform: scale(1.18); box-shadow: 0 0 0 2px #fff, 0 0 20px var(--vc); } }

/* in battle: with a hunt ribbon the row stays on one line, growing to the left over the scene (the foe's plate sits on the
   right), so no ribbon wraps up out of the scene */
.wfoe .wp-rib:has(.wf-sight, .wf-bounty) { left: auto; right: 6px; flex-wrap: nowrap; justify-content: flex-end; white-space: nowrap; }
.wp-rib .wf-sight { background: linear-gradient(90deg, #3dd6ff, #a470ff); color: #fff; letter-spacing: .4px; animation: huntrib 1.2s ease-in-out infinite alternate; }
.wp-rib .wf-bounty { background: linear-gradient(90deg, #ffd23d, #ff8a3d); color: #3a1800; }
@keyframes huntrib { to { box-shadow: 0 0 10px #3dd6ff, 0 2px 6px rgba(0, 0, 0, .3); } }
.hsight-b { --vc: #ffcc33; position: absolute; left: 50%; top: 38%; z-index: 8; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 4px;
  width: max-content; max-width: 86%; padding: 12px 18px; border-radius: 18px; text-align: center; pointer-events: none; color: #fff;
  background: linear-gradient(180deg, rgba(20, 10, 60, .94), rgba(8, 5, 26, .94)); border: 2px solid var(--vc);
  box-shadow: 0 0 0 4px rgba(61, 214, 255, .2), 0 0 44px var(--vc); animation: wsight 2.8s ease-out forwards; }
.hsight-b b { font: 700 22px Fredoka, sans-serif; letter-spacing: 1px; background: linear-gradient(90deg, #ffb070, #ff6fb8 50%, #6fe4ff);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.hsight-b small { font: 800 12px Nunito, sans-serif; color: rgba(236, 230, 255, .9); }

/* a wanted card, opened */
.hmod { --vc: #a470ff; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.hmod-art { width: 128px; height: 128px; display: grid; place-items: center; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--vc) 35%, transparent), transparent 70%), var(--panel2); }
.hmod-art img { width: 112px; height: 112px; object-fit: contain; filter: drop-shadow(0 0 8px color-mix(in srgb, var(--vc) 70%, transparent)); }
.hmod .label { margin: 4px 0 0; }
.hmod-t { margin: 0; font: 700 22px/1.15 Fredoka, sans-serif; }
.hmod p { margin: 0; }
.hmod-pay { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; margin: 6px 0 2px; }
.hmod-pay > div { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px; border-radius: 14px; background: var(--panel2); border: 1px solid var(--line); opacity: .7; }
.hmod-pay > div.on { opacity: 1; border: 2px solid #ffd23d; }
.hmod-pay small, .hmod-first > small { font: 800 10.5px Nunito, sans-serif; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; }
.hmod-pay b { display: inline-flex; align-items: center; gap: 4px; font: 800 14px Nunito, sans-serif; }
.hmod-first { width: 100%; padding: 8px 10px; border-radius: 14px; background: var(--panel2); border: 1px solid var(--line); }
.hmod-first ol { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 4px; }
.hmod-first li { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 6px; text-align: left; }
.hmod-first li i { font-style: normal; font-size: 17px; }
.hmod-first li b { font: 700 14px Fredoka, sans-serif; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hmod-first li small, .hmod-first p { font: 700 11.5px Nunito, sans-serif; color: var(--muted); }
.hmod-first p { margin: 4px 0 0; }
.hmod-mine { font: 800 13px Nunito, sans-serif; color: var(--good); }
.hmod-go { width: 100%; margin-top: 6px; }

/* the rare finds rail (Home) and the notices */
.wfd.k-sighting .wfd-img img { filter: drop-shadow(0 0 6px var(--vc, #3dd6ff)); }
.live-n.hunt-n { border-color: #3dd6ff; box-shadow: 0 10px 30px rgba(61, 214, 255, .35); }

@media (min-width: 700px) {
  .hb-rail, .hsc-rail { margin: 0 0 8px; padding: 4px 2px 12px; }
  .hsight { grid-template-columns: 120px 1fr; padding: 18px; }
  .hs-art { width: 120px; height: 120px; }
  .hs-art img { width: 100px; height: 100px; }
  .hs-t { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .hs-ring, .hs-art img, .hunt-tb, .wp-rib .wf-sight, .hunt-skel i { animation: none; }
}
