/* ============================================================
   MergeChat Games — prize hunts
   ============================================================ */
:root {
  --hunt-hot: #f07a32;
  --hunt-gold: #f0a832;
  --hunt-grad: linear-gradient(135deg, #f0a832 0%, #f07a32 55%, #e0453c 100%);
}

/* Nav + home banner */
.account-btn.games-nav-btn { color: var(--hunt-gold); }
.home-hunt-banner {
  display: flex; align-items: center; gap: 14px;
  width: min(1100px, calc(100% - 32px)); margin: 0 auto 20px;
  padding: 14px 18px; border: 0; border-radius: var(--r-lg);
  background: var(--hunt-grad); color: #1a1205; text-align: left; cursor: pointer;
  font-family: var(--font-body); box-shadow: 0 10px 30px rgba(240, 122, 50, .25);
  transition: transform .15s, box-shadow .15s;
}
.home-hunt-banner[hidden] { display: none; }
.home-hunt-banner:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(240, 122, 50, .35); }
.home-hunt-banner strong { display: block; font-family: var(--font-display); font-size: 18px; letter-spacing: .02em; }
.home-hunt-banner span { display: block; font-size: 14px; opacity: .85; }
.home-hunt-banner > div { flex: 1; min-width: 0; }
.hhb-emoji { font-size: 34px; line-height: 1; animation: huntBob 2.4s ease-in-out infinite; }
.home-hunt-banner .hhb-go { font-family: var(--font-display); font-size: 16px; font-weight: 600; white-space: nowrap; opacity: 1; }

/* Games page */
.games-hero { text-align: center; margin-bottom: 18px; }
.games-eyebrow {
  display: inline-block; padding: 5px 12px; border-radius: 999px; margin-bottom: 10px;
  background: rgba(240, 168, 50, .14); color: var(--hunt-gold);
  font: 600 13px/1 var(--font-display); letter-spacing: .08em; text-transform: uppercase;
}
.games-account { margin: 0 auto 22px; max-width: 760px; }
.games-acct-signed, .games-acct-cta {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 14px 16px; border-radius: var(--r-lg);
  background: var(--asphalt-700); border: 1px solid var(--asphalt-600);
}
.games-acct-cta { border-color: rgba(240, 168, 50, .45); background: linear-gradient(180deg, rgba(240, 168, 50, .08), transparent), var(--asphalt-700); }
.games-acct-signed > div:not(.games-acct-actions), .games-acct-cta > div:first-child { flex: 1; min-width: 180px; }
.games-acct-signed strong, .games-acct-cta strong { display: block; font-family: var(--font-display); font-size: 17px; color: var(--line); }
.games-acct-signed > div:not(.games-acct-actions) > span, .games-acct-cta > div:first-child > span { display: block; font-size: 14px; color: var(--line-dim); overflow-wrap: anywhere; }
.games-hero .account-hint { max-width: 640px; margin-left: auto; margin-right: auto; }
.games-acct-avatar { font-size: 28px; }
.games-acct-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.games-acct-actions .primary-btn, .games-acct-actions .admin-btn { margin: 0; }
.games-count {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; margin-left: 4px;
  border-radius: 999px; background: #fff; color: var(--signal-blue); font-size: 13px; font-weight: 700;
}
.games-howto { margin-bottom: 26px; }
@media (min-width: 900px) { .home-pills.games-howto { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 1100px; } }
.games-section-title {
  font: 600 14px/1 var(--font-display); letter-spacing: .1em; text-transform: uppercase;
  color: var(--line-dim); margin: 0 0 12px;
}
.games-safety {
  margin: 26px auto 0; max-width: 760px; padding: 12px 16px; border-radius: var(--r-md);
  background: rgba(63, 165, 95, .1); border: 1px solid rgba(63, 165, 95, .35); color: var(--line); font-size: 14px; line-height: 1.5;
}
.games-fine { text-align: center; margin-top: 12px; font-size: 13px; color: var(--line-faint); }
.games-fine a { color: var(--line-dim); }

.hunt-card .card-media { background: var(--hunt-grad); }
.hunt-card .card-media.no-img .card-media-icon { font-size: 64px; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .25)); }
.hunt-card-prize { font: 600 15px/1.3 var(--font-display); color: var(--hunt-gold); letter-spacing: .02em; margin-bottom: 2px; }
.hunt-card-stats { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--line-dim); margin-top: 8px; }
.hunt-card .hunt-play-btn { width: 100%; margin: 4px 0 0; }
.hunt-card.ended { opacity: .6; cursor: default; }

/* Prize wallet */
.prize-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-top: 16px; }
.prize-card {
  padding: 16px; border-radius: var(--r-lg); background: var(--asphalt-700);
  border: 1px solid var(--asphalt-600); display: flex; flex-direction: column; gap: 8px;
}
.prize-card.prize-ready { border-color: rgba(240, 168, 50, .5); }
.prize-card.prize-used, .prize-card.prize-expired { opacity: .55; }
.prize-card-top { display: flex; align-items: center; gap: 12px; }
.prize-emoji { font-size: 34px; line-height: 1; }
.prize-card-titles { flex: 1; min-width: 0; }
.prize-card-titles strong { display: block; font-family: var(--font-display); font-size: 18px; color: var(--line); }
.prize-card-titles span { display: block; font-size: 13px; color: var(--line-dim); }
.prize-chip {
  padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap;
  background: rgba(63, 165, 95, .16); color: #6fd093;
}
.prize-used .prize-chip, .prize-expired .prize-chip { background: var(--asphalt-600); color: var(--line-dim); }
.prize-code {
  font: 700 26px/1.1 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; letter-spacing: .12em;
  text-align: center; padding: 12px; border-radius: var(--r-md);
  background: var(--asphalt-900); border: 2px dashed rgba(240, 168, 50, .6); color: #fff; user-select: all;
}
.prize-code-xl { font-size: clamp(30px, 9vw, 46px); padding: 18px 10px; }
.prize-partner-code { text-align: center; font-size: 14px; color: var(--line-dim); }
.prize-partner-code strong { color: var(--line); font-family: ui-monospace, Menlo, monospace; letter-spacing: .06em; }
.prize-partner-code[hidden] { display: none; }
.prize-line { font-size: 14px; color: var(--line); line-height: 1.45; }
.prize-dim { color: var(--line-faint); font-size: 13px; }
.prize-card .prize-show-btn { margin: 4px 0 0; width: 100%; }

/* Full-screen game layers (hunt map, camera) */
.game-layer { position: fixed; inset: 0; z-index: 3000; display: none; background: var(--asphalt-900); }
.game-layer.visible { display: block; }
#hunt-camera { z-index: 3100; background: #000; overflow: hidden; touch-action: manipulation; }
body.game-open { overflow: hidden; }

.hunt-map { position: absolute; inset: 0; }
.hs-top, .hc-top {
  position: absolute; left: 0; right: 0; top: 0; z-index: 2;
  display: flex; align-items: center; gap: 12px;
  padding: calc(12px + env(safe-area-inset-top)) 14px 12px;
  background: linear-gradient(180deg, rgba(16, 18, 22, .92), rgba(16, 18, 22, 0));
}
.hs-back, .hs-icon {
  width: 46px; height: 46px; flex-shrink: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(16, 18, 22, .85); color: #fff; font-size: 22px; line-height: 1; cursor: pointer;
  display: grid; place-items: center; backdrop-filter: blur(6px);
}
.hs-titles { flex: 1; min-width: 0; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.hs-titles strong { display: block; font-family: var(--font-display); font-size: 19px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hs-titles span { display: block; font-size: 14px; opacity: .9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.hs-panel {
  position: absolute; left: 50%; bottom: 0; z-index: 2; transform: translateX(-50%);
  width: min(560px, 100%); padding: 18px 18px calc(18px + env(safe-area-inset-bottom));
  background: rgba(16, 18, 22, .96); border-radius: 22px 22px 0 0; border: 1px solid var(--asphalt-600); border-bottom: 0;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, .45); color: var(--line);
}
.hs-notify {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px; padding: 10px 12px; border-radius: var(--r-md);
  background: rgba(66, 135, 232, .14); font-size: 14px;
}
.hs-notify[hidden] { display: none; }
.hs-notify span { flex: 1; }
.hs-notify .admin-btn { margin: 0; padding: 8px 14px; }
.hs-warmth-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.hs-warmth { font: 700 24px/1.1 var(--font-display); letter-spacing: .02em; transition: color .4s; }
.hs-distance { font-size: 15px; color: var(--line-dim); white-space: nowrap; }
.hs-meter { height: 12px; border-radius: 999px; background: var(--asphalt-600); overflow: hidden; margin: 10px 0 12px; }
.hs-meter-fill { height: 100%; width: 0; border-radius: 999px; background: var(--signal-blue); transition: width .6s ease, background .6s; }
.hs-hint { font-size: 15px; color: var(--hunt-gold); min-height: 0; margin-bottom: 6px; }
.hs-hint:empty { display: none; }
.hs-msg { font-size: 14px; color: var(--line-dim); line-height: 1.45; margin-bottom: 10px; }
.hs-msg:empty { display: none; }
.hs-msg-warn { color: #ffd28a; background: rgba(240, 168, 50, .12); padding: 10px 12px; border-radius: var(--r-md); }
.hs-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hs-actions .primary-btn, .hs-actions .admin-btn { margin: 0; min-height: 50px; flex: 1 1 160px; }
.hs-find { flex: 1 1 220px; font-size: 17px; background: var(--hunt-grad); color: #1a1205; font-weight: 700; }
.hs-find:disabled { background: var(--asphalt-600); color: var(--line-faint); cursor: not-allowed; }
.hs-find:not(:disabled) { animation: huntPulse 1.8s ease-in-out infinite; }
.hs-left { font-size: 13px; color: var(--line-faint); margin-top: 10px; text-align: center; }
.hs-left:empty { display: none; }

.hunt-me {
  width: 18px; height: 18px; border-radius: 50%; background: var(--signal-blue);
  border: 3px solid #fff; box-shadow: 0 0 0 0 rgba(66, 135, 232, .6); animation: huntMe 2s infinite;
}

/* Camera */
#hc-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hc-novideo {
  position: absolute; inset: 0; display: grid; place-items: end center; padding: 30px 30px calc(150px + env(safe-area-inset-bottom)); text-align: center;
  color: var(--line-dim); background: radial-gradient(circle at 50% 40%, #2b3039, #101216 70%); font-size: 15px;
}
.hc-novideo[hidden] { display: none; }
.hc-distance { flex: 1; color: #fff; font: 600 17px/1.3 var(--font-display); text-shadow: 0 1px 4px rgba(0, 0, 0, .8); }
.hc-safety {
  position: absolute; z-index: 2; left: 50%; transform: translateX(-50%);
  top: calc(76px + env(safe-area-inset-top)); padding: 6px 14px; border-radius: 999px;
  background: rgba(240, 168, 50, .92); color: #1a1205; font-size: 13px; font-weight: 700; white-space: nowrap;
}
.hc-prize {
  position: absolute; z-index: 3; top: 46%; left: 50%;
  width: 150px; height: 150px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: radial-gradient(circle, rgba(255, 220, 140, .55) 0%, rgba(240, 168, 50, .25) 45%, rgba(240, 168, 50, 0) 70%);
  display: grid; place-items: center; opacity: 0; pointer-events: none;
  transform: translate(-50%, -50%) scale(.7); transition: opacity .25s, transform .25s, left .12s linear;
}
.hc-prize.visible { opacity: .75; pointer-events: auto; transform: translate(-50%, -50%) scale(.8); }
.hc-prize.visible.in-range { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
.hc-prize .prize-art-emoji { font-size: 84px; line-height: 1; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .55)); animation: huntBob 2s ease-in-out infinite; }
.hc-prize img { width: 130px; height: 130px; object-fit: contain; border-radius: 18px; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .55)); animation: huntBob 2s ease-in-out infinite; }
.prize-art ~ .prize-art-emoji { display: none; }
.hc-prize.in-range::after {
  content: ""; position: absolute; inset: -8px; border-radius: 50%;
  border: 3px solid rgba(255, 210, 120, .9); animation: huntRing 1.4s ease-out infinite;
}
.hc-prize.catching { animation: huntCatch .6s ease-in forwards; }
.hc-arrow {
  position: absolute; z-index: 3; top: 46%; transform: translateY(-50%);
  font-size: 54px; color: #fff; text-shadow: 0 2px 10px rgba(0, 0, 0, .8); animation: huntNudge 1s ease-in-out infinite;
}
.hc-arrow[hidden] { display: none; }
.hc-arrow.right { right: 18px; }
.hc-arrow.left { left: 18px; transform: translateY(-50%) scaleX(-1); animation-name: huntNudgeLeft; }
.hc-tip {
  position: absolute; z-index: 2; left: 16px; right: 16px; bottom: calc(70px + env(safe-area-inset-bottom));
  text-align: center; color: #fff; font: 600 20px/1.3 var(--font-display); text-shadow: 0 2px 8px rgba(0, 0, 0, .85);
}
.hc-privacy {
  position: absolute; z-index: 2; left: 16px; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom));
  text-align: center; color: rgba(255, 255, 255, .8); font-size: 12px; text-shadow: 0 1px 4px rgba(0, 0, 0, .9);
}

/* Modals */
.game-modal {
  position: fixed; inset: 0; z-index: 3500; display: none; align-items: center; justify-content: center;
  padding: 16px; background: rgba(5, 6, 8, .72); backdrop-filter: blur(4px);
}
.game-modal.visible { display: flex; }
.game-modal-card {
  position: relative; width: min(440px, 100%); max-height: calc(100vh - 32px); overflow-y: auto;
  padding: 26px 22px 22px; border-radius: 20px; background: var(--asphalt-800); border: 1px solid var(--asphalt-600);
  color: var(--line); text-align: center; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); animation: huntPop .28s ease-out;
}
.game-modal-card label { display: block; text-align: left; margin: 10px 0 4px; font-size: 14px; color: var(--line-dim); }
.game-modal-card input[type="email"], .game-modal-card input[type="password"], .game-modal-card input[type="text"] { width: 100%; }
.game-modal-card [hidden] { display: none !important; }
.ga-badge { font-size: 40px; margin-bottom: 6px; }
.ga-tabs { display: flex; gap: 6px; padding: 4px; margin: 10px 0 14px; border-radius: 999px; background: var(--asphalt-900); }
.ga-tab {
  flex: 1; padding: 10px; border: 0; border-radius: 999px; background: transparent; color: var(--line-dim);
  font: 600 15px/1 var(--font-display); cursor: pointer;
}
.ga-tab.active { background: var(--signal-blue); color: #fff; }
.game-modal-card label.ga-check { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; color: var(--line); line-height: 1.4; cursor: pointer; }
.ga-check input { width: 20px; height: 20px; margin-top: 1px; flex-shrink: 0; }
.ga-check a { color: var(--signal-blue); }
#ga-forgot { display: block; margin: 10px auto 0; }

.prize-won-card { overflow: hidden; }
.pw-burst {
  position: absolute; left: -50%; top: -50%; width: 200%; height: 200%; pointer-events: none;
  background: conic-gradient(from 0deg, rgba(240, 168, 50, .0), rgba(240, 168, 50, .18), rgba(240, 168, 50, 0) 20%, rgba(240, 122, 50, .16) 40%, rgba(240, 168, 50, 0) 60%, rgba(240, 168, 50, .18) 80%, rgba(240, 168, 50, 0));
  animation: huntSpin 8s linear infinite;
}
.pw-emoji { position: relative; font-size: 76px; line-height: 1; margin-bottom: 6px; animation: huntBob 2s ease-in-out infinite; }
.pw-eyebrow { position: relative; font: 700 14px/1 var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--hunt-gold); margin-bottom: 6px; }
.prize-won-card .account-title, .prize-won-card .account-hint, .prize-won-card .prize-code, .prize-won-card .prize-line { position: relative; }
.prize-won-card .prize-code, .prize-show-card .prize-code { margin: 14px 0 8px; }
.pw-actions { position: relative; display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.pw-actions .primary-btn, .pw-actions .admin-btn { flex: 1 1 160px; margin: 0; }
.ps-code-label { margin-top: 14px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--line-faint); }
.ps-staff { margin-top: 16px; padding: 12px; border-radius: var(--r-md); background: var(--asphalt-700); font-size: 14px; color: var(--line-dim); line-height: 1.45; }

@keyframes huntBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes huntPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(240, 122, 50, .55); } 50% { box-shadow: 0 0 0 10px rgba(240, 122, 50, 0); } }
@keyframes huntMe { 0% { box-shadow: 0 0 0 0 rgba(66, 135, 232, .6); } 100% { box-shadow: 0 0 0 18px rgba(66, 135, 232, 0); } }
@keyframes huntRing { 0% { transform: scale(.85); opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }
@keyframes huntCatch { 0% { transform: translate(-50%, -50%) scale(1.1); } 40% { transform: translate(-50%, -50%) scale(1.4) rotate(-8deg); } 100% { transform: translate(-50%, -50%) scale(.1) rotate(20deg); opacity: 0; } }
@keyframes huntNudge { 0%, 100% { transform: translateY(-50%) translateX(0); } 50% { transform: translateY(-50%) translateX(10px); } }
@keyframes huntNudgeLeft { 0%, 100% { transform: translateY(-50%) scaleX(-1) translateX(0); } 50% { transform: translateY(-50%) scaleX(-1) translateX(10px); } }
@keyframes huntPop { from { transform: scale(.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes huntSpin { to { transform: rotate(360deg); } }

@media (max-width: 520px) {
  .home-hunt-banner { width: calc(100% - 32px); padding: 12px 14px; }
  .home-hunt-banner .hhb-go { display: none; }
  .games-acct-actions { width: 100%; }
  .games-acct-actions .primary-btn { flex: 1; }
  .hs-panel { border-radius: 18px 18px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hhb-emoji, .hc-prize span, .hc-prize img, .pw-emoji, .hc-arrow, .hs-find:not(:disabled), .hunt-me, .pw-burst, .hc-prize.in-range::after { animation: none !important; }
}

/* ---------- Hunt manager (partner console + admin) ---------- */
.hm { text-align: left; }
.hm-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.hm-top .account-section-title { margin: 0; }
.hm-intro { font-size: 14px; color: var(--line-dim); line-height: 1.5; margin-bottom: 14px; }
.hm-list { display: grid; gap: 12px; }
.hm-hunt { padding: 14px; border-radius: var(--r-lg); background: var(--asphalt-700); border: 1px solid var(--asphalt-600); }
.hm-hunt-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hm-hunt-emoji { font-size: 30px; }
.hm-hunt-titles { flex: 1; min-width: 160px; }
.hm-hunt-titles strong { display: block; font-family: var(--font-display); font-size: 18px; color: var(--line); }
.hm-hunt-titles span { display: block; font-size: 13px; color: var(--line-dim); }
.hm-status { padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.hm-status.live { background: rgba(63, 165, 95, .18); color: #6fd093; }
.hm-status.draft { background: var(--asphalt-600); color: var(--line-dim); }
.hm-status.paused { background: rgba(240, 168, 50, .16); color: var(--hunt-gold); }
.hm-status.ended { background: rgba(224, 69, 60, .14); color: #f08a83; }
.hm-stats { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 10px 0; font-size: 13px; color: var(--line-dim); }
.hm-stats b { color: var(--line); }
.hm-pin { font-size: 13px; color: var(--line-dim); margin-bottom: 10px; }
.hm-pin code { font-size: 15px; color: var(--hunt-gold); letter-spacing: .1em; }
.hm-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.hm-actions button { margin: 0 !important; padding: 8px 14px !important; font-size: 14px !important; }
.hm-btn-danger { background: transparent !important; border: 1px solid rgba(224, 69, 60, .5) !important; color: #f08a83 !important; }
.hm-panel { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--asphalt-600); }
.hm-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 14px; }
.hm-form .hm-full { grid-column: 1 / -1; }
.hm-form label { display: block; margin: 8px 0 4px; font-size: 13px; color: var(--line-dim); }
.hm-form input, .hm-form select, .hm-form textarea { width: 100%; }
.hm-form textarea { min-height: 80px; }
.hm-radio { display: flex; flex-direction: column; gap: 6px; }
.hm-radio label { display: flex; gap: 8px; align-items: flex-start; margin: 0; color: var(--line); font-size: 14px; cursor: pointer; }
.hm-radio input { width: auto; margin-top: 3px; }
.hm-note { font-size: 13px; color: var(--line-faint); margin-top: 6px; line-height: 1.45; }
.hm-map { height: 340px; border-radius: var(--r-md); overflow: hidden; margin: 10px 0; border: 1px solid var(--asphalt-600); }
.hm-search { display: flex; gap: 8px; }
.hm-search input { flex: 1; }
.hm-search button { margin: 0 !important; }
.hm-drop-form { display: grid; grid-template-columns: 110px 1fr 90px; gap: 8px; align-items: end; }
.hm-drop-form label { display: block; font-size: 13px; color: var(--line-dim); margin-bottom: 4px; }
.hm-drop-form input { width: 100%; }
.hm-drops { display: grid; gap: 8px; margin-top: 12px; }
.hm-drop { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: var(--r-md); background: var(--asphalt-800); font-size: 14px; }
.hm-drop-num { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: #1a1205; background: var(--hunt-gold); }
.hm-drop-num.found { background: var(--asphalt-500); color: var(--line); }
.hm-drop-num.active { background: #3fa55f; color: #fff; }
.hm-drop-num.pending { background: var(--signal-red); color: #fff; }
.hm-drop-info { flex: 1; min-width: 160px; color: var(--line); }
.hm-drop-info span { display: block; font-size: 12px; color: var(--line-dim); }
.hm-drop button { margin: 0 !important; padding: 6px 12px !important; font-size: 13px !important; }
.hm-marker { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: #1a1205; background: var(--hunt-gold); border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.4); }
.hm-marker.found { background: #6b7078; color: #fff; }
.hm-marker.active { background: #3fa55f; color: #fff; }
.hm-marker.pending { background: var(--signal-red); color: #fff; }
.hm-marker.new { background: var(--signal-blue); color: #fff; }
.hm-pending { margin-bottom: 16px; padding: 12px; border-radius: var(--r-lg); border: 1px solid rgba(224, 69, 60, .45); background: rgba(224, 69, 60, .07); }
.hm-msg { font-size: 14px; margin-top: 8px; color: var(--line-dim); }
.hm-msg.err { color: #f08a83; }
.hm-msg.ok { color: #6fd093; }
@media (max-width: 620px) {
  .hm-form { grid-template-columns: 1fr; }
  .hm-drop-form { grid-template-columns: 1fr 1fr; }
  .hm-drop-form .hm-drop-hint { grid-column: 1 / -1; }
  .hm-map { height: 280px; }
}
.hs-actions .hs-find { flex: 1 1 100%; }

/* Staff redeem links */
.games-staff-link {
  display: flex; align-items: center; gap: 12px; max-width: 760px; margin: 18px auto 0;
  padding: 14px 16px; border-radius: var(--r-lg); text-decoration: none;
  background: var(--asphalt-700); border: 1px solid var(--asphalt-600); color: var(--line);
  font-size: 15px; transition: border-color .15s, background .15s;
}
.games-staff-link:hover { border-color: var(--hunt-gold); background: var(--asphalt-600); }
.games-staff-link span { flex: 1; color: var(--line-dim); }
.games-staff-link strong { display: block; color: var(--line); font-family: var(--font-display); font-size: 16px; }
.games-staff-link b { color: var(--hunt-gold); font-size: 20px; }
.ga-staff-link { display: block; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--asphalt-600); font-size: 14px; color: var(--line-dim); text-decoration: none; }
.ga-staff-link:hover { color: var(--hunt-gold); }
.hc-prize:not(.in-range) .prize-art-emoji, .hc-prize:not(.in-range) img { filter: grayscale(.35) drop-shadow(0 8px 18px rgba(0,0,0,.55)); }
.hc-prize:not(.in-range) { background: none; }

/* Uploaded prize art */
.prize-art { display: block; object-fit: contain; }
.pw-emoji .prize-art { width: 120px; height: 120px; margin: 0 auto; }
.prize-emoji .prize-art { width: 44px; height: 44px; border-radius: 8px; }
.hunt-art-media { display: grid; place-items: center; background: var(--hunt-grad); aspect-ratio: 4 / 3; }
.hunt-art-media .prize-art { width: 70%; height: 80%; filter: drop-shadow(0 8px 16px rgba(0,0,0,.3)); }
.hunt-art-media .prize-art-emoji { font-size: 64px; }
.hm-art { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hm-art-preview { width: 72px; height: 72px; border-radius: var(--r-md); display: grid; place-items: center; font-size: 40px;
  background: repeating-conic-gradient(#2b3039 0% 25%, #1f232a 0% 50%) 50% / 16px 16px; border: 1px solid var(--asphalt-600); }
.hm-art-preview img { width: 100%; height: 100%; object-fit: contain; }
.hm-redeem { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }

/* ---------------- Points + Prize Shop (v15) ---------------- */
.games-tabs { display: flex; gap: 8px; justify-content: center; margin: 0 auto 22px; flex-wrap: wrap; }
.games-tab {
  background: var(--asphalt-700); border: 1px solid var(--asphalt-600); color: var(--line-dim);
  padding: 10px 18px; border-radius: 999px; font-family: var(--font-display); font-size: 16px; cursor: pointer;
}
.games-tab.active { background: var(--hunt-gold); border-color: var(--hunt-gold); color: #1a1407; }
.games-points-chip {
  background: rgba(240, 168, 50, .14); border: 1px solid rgba(240, 168, 50, .5); color: var(--hunt-gold);
  padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 15px; cursor: pointer;
}
.shop-balance {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap; max-width: 760px; margin: 0 auto 22px;
  padding: 16px 18px; border-radius: 14px; border: 1px solid rgba(240, 168, 50, .45);
  background: linear-gradient(180deg, rgba(240, 168, 50, .1), transparent), var(--asphalt-700);
}
.shop-bal-main { flex: 1; min-width: 180px; }
.shop-bal-label { display: block; font-size: 13px; color: var(--line-dim); text-transform: uppercase; letter-spacing: .06em; }
.shop-bal-main strong { font-family: var(--font-display); font-size: 24px; color: var(--line); }
.shop-bal-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.shop-bal-actions button { margin: 0; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.shop-grid .empty-state, .shop-closed-note { grid-column: 1 / -1; }
.shop-item { background: var(--asphalt-700); border: 1px solid var(--asphalt-600); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.shop-item.sold-out { opacity: .55; }
.shop-item-img { position: relative; aspect-ratio: 4 / 3; background: var(--asphalt-600); display: flex; align-items: center; justify-content: center; }
.shop-item-img span { font-size: 54px; }
.shop-item-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #fff; }
.shop-item-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.shop-item-name { font-family: var(--font-display); font-size: 18px; color: var(--line); }
.shop-item-sponsor, .shop-item-desc { font-size: 13px; color: var(--line-dim); line-height: 1.4; }
.shop-item-kinds { display: flex; flex-wrap: wrap; gap: 6px; }
.shop-item-kinds span { font-size: 12px; padding: 3px 8px; border-radius: 999px; background: var(--asphalt-600); color: var(--line-dim); }
.shop-item-foot { display: flex; justify-content: space-between; align-items: baseline; margin-top: auto; padding-top: 6px; }
.shop-cost { font-weight: 800; font-size: 18px; color: var(--hunt-gold); }
.shop-stock { font-size: 12px; color: var(--line-faint); }
.shop-item-body > button { margin: 6px 0 0; width: 100%; }
.shop-modal-card { text-align: center; max-height: 92vh; overflow-y: auto; }
.shop-modal-head { display: flex; gap: 14px; align-items: center; text-align: left; margin-bottom: 12px; padding-right: 30px; }
.shop-modal-head img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; background: #fff; flex: none; }
.shop-modal-head > span { font-size: 48px; }
.shop-modal-head .account-title { font-size: 20px; margin: 0; }
.shop-methods { display: flex; flex-direction: column; gap: 8px; }
.game-modal-card label.shop-method {
  display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 10px 12px; cursor: pointer;
  border: 1px solid var(--asphalt-600); border-radius: 10px; color: var(--line-dim); font-size: 13px; line-height: 1.4;
}
.shop-method strong { display: block; color: var(--line); font-size: 15px; }
.shop-method input { margin-top: 3px; }
.shop-row3 { display: grid; grid-template-columns: 2fr 1fr 1.3fr; gap: 8px; }
.shop-modal-card form > .primary-btn { width: 100%; margin-top: 12px; }
.shop-packs { display: grid; gap: 10px; margin: 14px 0 4px; }
.shop-pack {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; cursor: pointer;
  background: var(--asphalt-700); border: 1px solid var(--asphalt-600); color: var(--line); font-size: 16px;
}
.shop-pack strong { font-family: var(--font-display); font-size: 20px; flex: 1; text-align: left; }
.shop-pack span { font-weight: 700; }
.shop-pack em { font-style: normal; font-size: 12px; padding: 3px 8px; border-radius: 999px; background: rgba(111, 208, 147, .16); color: #6fd093; }
.shop-pack.suggested, .shop-pack:hover { border-color: var(--hunt-gold); }
.shop-pack:disabled { opacity: .5; cursor: default; }
.order-thumb img { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; background: #fff; display: block; }
#orders-section .games-section-title, #points-section .games-section-title { margin-top: 26px; }
.points-log { max-width: 760px; }
.points-log-bal { margin-bottom: 8px; color: var(--line-dim); }
.points-log-bal strong { color: var(--hunt-gold); }
.points-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--asphalt-600); font-size: 14px; color: var(--line); }
.points-row small { display: block; color: var(--line-faint); font-size: 12px; }
.points-row b.pos { color: #6fd093; } .points-row b.neg { color: #f08a83; }
/* admin shop */
.sa-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.sa-stats div { background: var(--asphalt-700); border: 1px solid var(--asphalt-600); border-radius: 10px; padding: 10px 14px; min-width: 130px; }
.sa-stats b { display: block; font-size: 20px; color: var(--line); } .sa-stats span { font-size: 12px; color: var(--line-dim); }
.sa-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--asphalt-600); flex-wrap: wrap; }
.sa-row img, .sa-thumb { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; background: var(--asphalt-600); flex: none; display: flex; align-items: center; justify-content: center; font-size: 26px; }
.sa-row-main { flex: 1; min-width: 200px; font-size: 14px; color: var(--line-dim); line-height: 1.5; }
.sa-row-main strong { color: var(--line); font-size: 16px; }
.sa-addr { white-space: pre-line; background: var(--asphalt-700); border-radius: 8px; padding: 8px 10px; margin-top: 6px; color: var(--line); user-select: all; }
.sa-order-form { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.sa-order-form input, .sa-order-form select { flex: 1; min-width: 130px; }
.sa-packs-row { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.sa-packs-row input { width: 110px; }
.sa-checks label { display: inline-flex !important; gap: 6px; align-items: center; margin-right: 14px !important; }
.sa-checks input { width: auto !important; }
@media (max-width: 520px) { .shop-row3 { grid-template-columns: 1fr 1fr; } .shop-row3 > div:first-child { grid-column: 1 / -1; } .shop-bal-actions { width: 100%; } .shop-bal-actions button { flex: 1; } }

/* v17: pinned prize, Catch button, in-camera messages */
.hc-prize { transition: opacity .25s, transform .25s; will-change: left, top; }
.hc-novideo { z-index: 1; place-items: start center; padding: calc(140px + env(safe-area-inset-top)) 30px 0; }
.hc-novideo button { margin-top: 12px; pointer-events: auto; }
.hc-catch {
  position: absolute; z-index: 5; left: 50%; transform: translateX(-50%);
  bottom: calc(150px + env(safe-area-inset-bottom)); min-width: 220px; padding: 18px 28px; border: 0; border-radius: 999px;
  background: var(--hunt-gold); color: #1a1205; font: 800 20px/1 var(--font-display); cursor: pointer;
  box-shadow: 0 8px 26px rgba(240, 168, 50, .55);
}
.hc-catch[hidden] { display: none; }
.hc-catch:disabled { opacity: .7; }
.hc-msg {
  position: absolute; z-index: 6; left: 50%; top: 30%; transform: translateX(-50%); width: min(88vw, 380px);
  padding: 12px 16px; border-radius: 12px; background: rgba(16, 18, 22, .92); color: #fff; text-align: center;
  font-size: 15px; line-height: 1.4; opacity: 0; pointer-events: none; transition: opacity .2s;
}
.hc-msg.visible { opacity: 1; }
.hc-msg.err { border: 1px solid #e0453c; }

/* Partner prize shelves inside the Prize Shop tab */
.shelf { margin-bottom: 26px; padding: 16px; border-radius: 14px; border: 1px solid var(--asphalt-600); background: var(--asphalt-800); }
.shelf-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.shelf-head > div { flex: 1; }
.shelf-head strong { display: block; font-family: var(--font-display); font-size: 19px; color: var(--line); }
.shelf-head span { font-size: 13px; color: var(--line-dim); }
.shelf-head b { font-family: var(--font-display); font-size: 22px; color: var(--hunt-gold); white-space: nowrap; }
