/* ==========================================================================
   Himalayan Yak Hunt — Canvas 2D Ultra-Premium Stylesheet
   games.himaltrex.com
   ========================================================================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

:root {
  --htx-gold: #d4a853;
  --htx-gold-light: #ecd29b;
  --htx-gold-glow: rgba(212, 168, 83, 0.45);
  --htx-crimson: #c92a42;
  --htx-crimson-hover: #e03852;
  --htx-dark-bg: #0b0f14;
  --htx-card-bg: rgba(18, 26, 36, 0.88);
  --htx-card-border: rgba(212, 168, 83, 0.22);
  --htx-border-hover: rgba(212, 168, 83, 0.55);
  --htx-cyan: #38bdf8;
  --htx-green: #34d399;
  --htx-text-main: #f1f5f9;
  --htx-text-muted: #94a3b8;
  --htx-text-dim: #64748b;
  --htx-font-main: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --htx-font-title: 'Cinzel', serif;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--htx-dark-bg);
  background-image: 
    radial-gradient(circle at 50% 12%, rgba(212, 168, 83, 0.07) 0%, transparent 60%),
    radial-gradient(circle at 10% 88%, rgba(201, 42, 66, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 90% 88%, rgba(56, 189, 248, 0.06) 0%, transparent 50%);
  font-family: var(--htx-font-main);
  color: var(--htx-text-main);
  display: flex;
  flex-direction: column;
}

/* ── Universal Top Navigation Bar Anchor ── */
#htxTopNav {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100vw !important;
  height: 54px !important;
  z-index: 99999 !important;
}

/* ── Decorative Himalayan Prayer Flags Ribbon (Same as Tetris) ── */
.prayer-flags {
  position: fixed;
  top: 54px;
  left: 0;
  right: 0;
  width: 100%;
  height: 14px;
  display: flex;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  z-index: 9999;
  flex-shrink: 0;
}

.flag {
  flex: 1;
  height: 100%;
  clip-path: polygon(0 0, 100% 0, 100% 80%, 50% 100%, 0 80%);
  animation: flagWave 3s ease-in-out infinite alternate;
}

.flag.blue   { background-color: #1e6fa8; animation-delay: 0s; }
.flag.white  { background-color: #f8fafc; animation-delay: 0.3s; }
.flag.red    { background-color: #cd2e48; animation-delay: 0.6s; }
.flag.green  { background-color: #43a047; animation-delay: 0.9s; }
.flag.yellow { background-color: #f5a425; animation-delay: 1.2s; }

@keyframes flagWave {
  0%   { transform: translateY(0) skewY(0deg); }
  100% { transform: translateY(2px) skewY(3deg); }
}

/* ── Main App Layout Workspace ── */
.hunt-workspace {
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: calc(100vh - 68px);
  display: grid;
  grid-template-columns: 285px 1fr 290px;
  gap: 14px;
  padding: 12px 16px;
  overflow: hidden;
  box-sizing: border-box;
}

/* ── Sidebars & Panel Cards ── */
.hunt-sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 168, 83, 0.3) transparent;
}

.panel-card {
  background: var(--htx-card-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--htx-card-border);
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.panel-card:hover {
  border-color: var(--htx-border-hover);
}

.card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(212, 168, 83, 0.15);
  padding-bottom: 8px;
}

.card-title {
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--htx-gold-light);
  display: flex;
  align-items: center;
  gap: 6px;
}

.level-badge {
  background: linear-gradient(135deg, rgba(201, 42, 66, 0.35), rgba(212, 168, 83, 0.35));
  border: 1px solid var(--htx-gold);
  border-radius: 20px;
  padding: 2px 10px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* Valley Card */
.valley-preview-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.valley-icon {
  font-size: 2.2rem;
  filter: drop-shadow(0 4px 10px rgba(212, 168, 83, 0.3));
}

.valley-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.valley-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
}

.valley-sub {
  font-size: 0.75rem;
  color: var(--htx-cyan);
}

.valley-desc {
  font-size: 0.78rem;
  color: var(--htx-text-muted);
  line-height: 1.35;
}

/* Herd Cards */
.herds-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.herd-item {
  background: rgba(11, 16, 22, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.25s ease;
}

.herd-item.completed {
  border-color: rgba(52, 211, 153, 0.5);
  background: rgba(16, 48, 32, 0.45);
}

.herd-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.herd-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
}

.herd-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: 0 0 6px currentColor;
}

.herd-status-text {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--htx-text-muted);
}

.herd-item.completed .herd-status-text {
  color: var(--htx-green);
}

.herd-segments-row {
  display: flex;
  gap: 4px;
  height: 8px;
}

.herd-segment {
  flex: 1;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.herd-segment.found {
  box-shadow: 0 0 8px currentColor;
}

/* Relics Card */
.relics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 2px;
}

.relic-box {
  background: rgba(11, 16, 22, 0.65);
  border: 1px dashed rgba(212, 168, 83, 0.25);
  border-radius: 8px;
  padding: 6px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 3px;
  transition: all 0.3s ease;
  opacity: 0.55;
}

.relic-box.unlocked {
  opacity: 1;
  border-style: solid;
  border-color: var(--htx-gold);
  background: rgba(212, 168, 83, 0.12);
  box-shadow: 0 0 14px rgba(212, 168, 83, 0.25);
  animation: relicGlowPulse 2.5s infinite alternate;
}

@keyframes relicGlowPulse {
  0% { box-shadow: 0 0 8px rgba(212, 168, 83, 0.2); }
  100% { box-shadow: 0 0 16px rgba(212, 168, 83, 0.45); }
}

.relic-icon {
  font-size: 1.35rem;
}

.relic-name {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--htx-gold-light);
  line-height: 1.15;
}

.relic-desc {
  font-size: 0.63rem;
  color: var(--htx-text-dim);
  line-height: 1.2;
}

.relic-box.unlocked .relic-desc {
  color: #34d399;
  font-weight: 600;
}

/* ── Center Stage & Canvas 2D ── */
.hunt-center-stage {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  height: 100%;
  overflow: hidden;
}

/* Top Gameplay Stats Ribbon */
.hunt-hud-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--htx-card-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--htx-card-border);
  border-radius: 12px;
  padding: 8px 18px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  z-index: 10;
}

.hud-stat-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hud-stat-icon {
  font-size: 1.3rem;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
}

.hud-stat-col {
  display: flex;
  flex-direction: column;
}

.hud-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--htx-text-dim);
  letter-spacing: 0.5px;
}

.hud-value {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
}

.hud-value.gold { color: #fcd34d; text-shadow: 0 0 10px rgba(252, 211, 77, 0.4); }
.hud-value.cyan { color: #38bdf8; }
.hud-value.green { color: #34d399; }

/* Lives Hearts */
.lives-container {
  display: flex;
  gap: 3px;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 175px;
}

.heart-icon {
  font-size: 1.2rem;
  color: #ef4444;
  filter: drop-shadow(0 0 6px rgba(239, 68, 68, 0.5));
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.heart-icon.lost {
  opacity: 0.25;
  filter: none;
  transform: scale(0.85);
}

/* Canvas Viewport */
.canvas-viewport-wrapper {
  flex: 1;
  position: relative;
  background: radial-gradient(circle at 50% 30%, #152234 0%, #0a1017 80%, #05080c 100%);
  border: 1px solid var(--htx-card-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.6), 0 8px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
}

#huntCanvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: crosshair;
}

/* Floating Banner Notice for Relics/Events */
.floating-event-banner {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: rgba(18, 28, 42, 0.95);
  backdrop-filter: blur(12px);
  border: 1.5px solid var(--htx-gold);
  border-radius: 30px;
  padding: 8px 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(212, 168, 83, 0.3);
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-event-banner.active {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Floating Tools Dock (Bottom Center of Stage) */
.tools-floating-dock {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(14, 20, 28, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--htx-card-border);
  border-radius: 40px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 0, 0, 0.3);
  z-index: 40;
}

.tool-dock-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 26px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--htx-text-main);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  position: relative;
  transition: all 0.25s ease;
}

.tool-dock-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--htx-gold-light);
  transform: translateY(-2px);
}

.tool-dock-btn.active {
  background: linear-gradient(135deg, rgba(201, 42, 66, 0.4), rgba(212, 168, 83, 0.4));
  border-color: var(--htx-gold);
  color: #fff;
  box-shadow: 0 0 16px var(--htx-gold-glow);
}

.tool-icon {
  font-size: 1.25rem;
}

.tool-badge {
  background: #0f172a;
  border: 1px solid var(--htx-gold);
  border-radius: 12px;
  padding: 1px 7px;
  font-size: 0.72rem;
  color: var(--htx-gold-light);
  font-weight: 800;
}

.tool-badge.charged {
  background: #15803d;
  color: #fff;
  border-color: #4ade80;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.5);
}

/* Stage Bottom Hint Strip */
.stage-hint-text {
  text-align: center;
  font-size: 0.76rem;
  color: var(--htx-text-dim);
  letter-spacing: 0.3px;
  padding-top: 2px;
}

/* ── Right Sidebar: Controls & High Scores ── */
.controls-btn-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.action-btn {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(212, 168, 83, 0.3);
  border-radius: 10px;
  padding: 10px 14px;
  color: #fff;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.action-btn:hover {
  border-color: var(--htx-gold);
  background: linear-gradient(135deg, rgba(45, 60, 85, 0.95), rgba(25, 35, 55, 0.95));
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(212, 168, 83, 0.2);
}

.action-btn.primary {
  background: linear-gradient(135deg, #c92a42, #991b1b);
  border-color: #f87171;
}

.action-btn.primary:hover {
  background: linear-gradient(135deg, #e03852, #b91c1c);
  box-shadow: 0 6px 20px rgba(201, 42, 66, 0.4);
}

.action-btn.gold {
  background: linear-gradient(135deg, #b4852c, #855e1a);
  border-color: var(--htx-gold-light);
}

.action-btn.gold:hover {
  background: linear-gradient(135deg, #c99635, #9c6e20);
  box-shadow: 0 6px 20px var(--htx-gold-glow);
}

/* Leaderboard Mini Table in Sidebar */
.mini-leaderboard {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mini-lead-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 8px;
  background: rgba(11, 16, 22, 0.6);
  border-radius: 6px;
  font-size: 0.78rem;
}

.mini-lead-rank {
  font-weight: 800;
  color: var(--htx-gold);
  width: 22px;
}

.mini-lead-name {
  flex: 1;
  color: var(--htx-text-main);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-lead-score {
  font-weight: 700;
  color: var(--htx-cyan);
}

/* Quick Tips in Sidebar */
.quick-tips-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--htx-text-muted);
  line-height: 1.4;
}

.tip-item {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

/* ── Modals (Victory, Game Over, Rules, Full Leaderboard) ── */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(5, 8, 14, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-window {
  background: radial-gradient(circle at 50% 10%, #1e2c3e 0%, #0d1520 85%, #080c14 100%);
  border: 2px solid var(--htx-gold);
  border-radius: 18px;
  width: 100%;
  max-width: 480px;
  padding: 30px 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85), 0 0 35px var(--htx-gold-glow);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  transform: scale(0.92) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-window {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  color: #fff;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: rgba(201, 42, 66, 0.8);
  border-color: #f87171;
  transform: rotate(90deg);
}

/* 3-Star Victory Display (Center Star Larger and Elevated) */
.victory-stars-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 10px;
}

.result-stars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 6px;
}

.star {
  font-size: 2.3rem;
  filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.5));
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.star.star-side {
  font-size: 2.1rem;
  opacity: 0.95;
}

/* As requested by user: center star is larger and elevated! */
.star.star-center {
  font-size: 3.1rem;
  transform: translateY(-8px) scale(1.22);
  filter: drop-shadow(0 0 20px rgba(255, 220, 60, 0.9));
}

.star.empty {
  opacity: 0.25;
  filter: grayscale(100%);
  transform: none !important;
}

.victory-stars-subtext {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--htx-gold-light);
  letter-spacing: 0.5px;
}

.modal-title {
  font-family: var(--htx-font-title);
  font-size: 1.8rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 1.5px;
  margin-bottom: 6px;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.8), 0 0 20px var(--htx-gold-glow);
}

.modal-subtitle {
  font-size: 0.92rem;
  color: var(--htx-text-muted);
  margin-bottom: 20px;
}

.modal-stats-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 22px;
}

.modal-stat-box {
  background: rgba(11, 16, 22, 0.7);
  border: 1px solid rgba(212, 168, 83, 0.2);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.modal-stat-box.full-width {
  grid-column: 1 / -1;
  background: rgba(212, 168, 83, 0.08);
  border-color: var(--htx-gold);
}

.modal-stat-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--htx-text-dim);
}

.modal-stat-val {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
}

.modal-stat-val.gold { color: #fcd34d; text-shadow: 0 0 10px rgba(252, 211, 77, 0.4); }
.modal-stat-val.cyan { color: #38bdf8; }

.modal-btn-row {
  display: flex;
  gap: 12px;
  width: 100%;
}

.modal-btn-row .action-btn {
  flex: 1;
}

/* Rules Dialog Styles */
#modalRules .modal-window {
  max-width: 720px;
  padding: 22px 26px;
}

.rules-body {
  width: 100%;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rules-intro-card {
  width: 100%;
  background: rgba(212, 168, 83, 0.08);
  border: 1px solid rgba(212, 168, 83, 0.25);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 0.85rem;
  color: var(--htx-text-main);
  text-align: center;
  box-sizing: border-box;
}

.rules-columns-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
}

.rules-columns-grid > div {
  height: 100%;
}

.rules-section-box {
  flex: 1;
  background: rgba(11, 16, 22, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.rules-section-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--htx-gold-light);
  display: flex;
  align-items: center;
  gap: 6px;
}

.rules-section-text {
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--htx-text-muted);
}

.rules-section-text strong {
  color: #fff;
}

.rules-mini-cards {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

.rules-full-width {
  grid-column: 1 / -1;
}

.rules-mini-cards-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.rules-mini-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 0.78rem;
  color: var(--htx-text-main);
}

.rules-mini-item strong {
  color: var(--htx-gold-light);
}

@media (max-width: 680px) {
  #modalRules .modal-window {
    max-width: 95vw;
    padding: 18px 14px;
  }
  .rules-columns-grid {
    grid-template-columns: 1fr;
    max-height: 60vh;
    overflow-y: auto;
  }
}

/* Full Leaderboard Table */
.lead-table-container {
  width: 100%;
  max-height: 360px;
  overflow-y: auto;
  border-radius: 10px;
  border: 1px solid rgba(212, 168, 83, 0.2);
  margin-bottom: 20px;
}

.lead-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  text-align: left;
}

.lead-table th {
  background: rgba(15, 23, 42, 0.95);
  color: var(--htx-gold);
  padding: 10px;
  position: sticky;
  top: 0;
  font-weight: 800;
  border-bottom: 1px solid rgba(212, 168, 83, 0.3);
}

.lead-table td {
  padding: 9px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.lead-table tr:hover td {
  background: rgba(255, 255, 255, 0.04);
}

/* ── Bottom Status Strip ── */
.yak-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 34px;
  background: rgba(11, 15, 20, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(212, 168, 83, 0.22);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  font-size: 0.78rem;
  color: var(--htx-text-dim);
  z-index: 99998;
}

.bar-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bar-title {
  color: var(--htx-gold);
  font-weight: 700;
}

.bar-subtitle {
  color: var(--htx-text-dim);
  font-size: 0.74rem;
}

.bar-center {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--htx-text-muted);
}

.bar-hint {
  display: flex;
  align-items: center;
  gap: 6px;
}

@media (max-width: 1100px) {
  .hunt-workspace {
    grid-template-columns: 260px 1fr 240px;
    padding: 8px 12px;
  }
}

@media (max-width: 900px) {
  .hunt-workspace {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
    overflow-y: auto;
  }
  .hunt-sidebar.sidebar-left,
  .hunt-sidebar.sidebar-right {
    display: none; /* Can be toggled or accessed via modal on compact screens */
  }
}

@media (max-width: 680px) {
  .hunt-workspace {
    padding: 4px 6px;
    gap: 6px;
  }
  .hunt-hud-bar {
    gap: 6px;
    padding: 6px 8px;
  }
  .hud-stat-item {
    gap: 4px;
  }
  .hud-stat-icon {
    font-size: 1rem;
  }
  .hud-label {
    font-size: 0.6rem;
  }
  .hud-value {
    font-size: 1rem;
  }
  .canvas-viewport-wrapper {
    border-radius: 10px;
  }
  .stage-hint-text {
    font-size: 0.75rem;
    padding: 4px 8px;
  }
}
