/* ===== Augstāks vai zemāks stili ===== */

.hidden { display: none !important; }

/* ===== Kategoriju izvēle ===== */

.hl-cat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 1.5rem;
}

.hl-cat-card {
  background: rgba(109, 74, 191, 0.06);
  border: 1px solid rgba(109, 74, 191, 0.18);
  border-radius: 16px;
  padding: 1.75rem 1rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  transition: all 0.2s ease;
  font-family: inherit;
}

.hl-cat-card:hover {
  border-color: rgba(109, 74, 191, 0.45);
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(109, 74, 191, 0.12);
}

.hl-cat-icon { font-size: 36px; }
.hl-cat-name { font-size: 15px; font-weight: 600; color: #2d1e60; }
.hl-cat-desc { font-size: 12px; color: #7070a0; }

/* ===== Spēles augšdaļa ===== */

.hl-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0 0.875rem;
}

.hl-back-btn {
  background: none;
  border: none;
  font-size: 14px;
  color: #7070a0;
  cursor: pointer;
  font-family: inherit;
  padding: 4px 0;
  transition: color 0.2s;
}
.hl-back-btn:hover { color: #6d4abf; }

.hl-scores {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hl-score-item {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
}

.hl-score-label {
  font-size: 9px;
  color: #a090c8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hl-score-val {
  font-size: 22px;
  font-weight: 700;
  color: #2d1e60;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.hl-record { color: #6d4abf; }
.hl-score-sep { color: #c0b0d8; font-size: 18px; padding-top: 8px; }

/* ===== Spēles laukums ===== */

.hl-arena {
  display: grid;
  grid-template-columns: 1fr 52px 1fr;
  min-height: 400px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 48px rgba(20, 10, 40, 0.3);
}

/* ===== Kārtis ===== */

.hl-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.75rem 1.25rem 1.5rem;
  background: #1e1438;
  transition: background 0.35s ease;
}

.hl-card-right {
  background: #140e28;
}

.hl-card.correct { background: #0c3020; }
.hl-card.wrong   { background: #350e0e; }

@keyframes hl-shake {
  0%, 100% { transform: translateX(0); }
  20%  { transform: translateX(-7px); }
  40%  { transform: translateX(7px); }
  60%  { transform: translateX(-5px); }
  80%  { transform: translateX(5px); }
}

.hl-card.wrong { animation: hl-shake 0.4s ease; }

.hl-card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 5px;
  flex: 1;
  justify-content: center;
}

.hl-emoji    { font-size: 38px; margin-bottom: 4px; }
.hl-name     { font-size: 17px; font-weight: 700; color: #fff; line-height: 1.25; }
.hl-subdesc  { font-size: 11px; color: rgba(255,255,255,0.45); letter-spacing: 0.04em; margin-bottom: 4px; }

.hl-value {
  font-size: 30px;
  font-weight: 800;
  color: #fff;
  margin-top: 0.5rem;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  transition: color 0.3s;
}

.hl-mystery {
  font-size: 60px;
  font-weight: 900;
  color: rgba(255,255,255,0.12);
}

.hl-unit {
  font-size: 10px;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-top: 2px;
}

/* ===== Dalītājs ===== */

.hl-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #28184a;
}

.hl-vs-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #38245e;
  border: 2px solid rgba(109, 74, 191, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 700;
  color: #9080c0;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

/* ===== Minēšanas pogas ===== */

.hl-guess-btns {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  padding: 0 1.25rem 1.5rem;
}

.hl-btn-higher,
.hl-btn-lower {
  padding: 11px 12px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
  letter-spacing: 0.01em;
}

.hl-btn-higher {
  background: rgba(34, 197, 94, 0.18);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}
.hl-btn-higher:hover {
  background: rgba(34, 197, 94, 0.32);
  transform: translateY(-1px);
}

.hl-btn-lower {
  background: rgba(239, 68, 68, 0.18);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.hl-btn-lower:hover {
  background: rgba(239, 68, 68, 0.32);
  transform: translateY(-1px);
}

/* ===== Spēles beigas ===== */

.hl-gameover-box {
  background: rgba(109, 74, 191, 0.06);
  border: 1px solid rgba(109, 74, 191, 0.18);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  text-align: center;
  margin-top: 2rem;
}

.hl-gameover-icon  { font-size: 52px; margin-bottom: 0.75rem; }
.hl-gameover-title { font-size: 28px; font-weight: 700; color: #2d1e60; margin-bottom: 0.5rem; }
.hl-gameover-sub   { font-size: 14px; color: #7070a0; margin-bottom: 1.75rem; line-height: 1.5; }

.hl-gameover-scores {
  display: flex;
  justify-content: center;
  gap: 3.5rem;
  margin-bottom: 2rem;
}

.hl-gs-item  { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.hl-gs-val   { font-size: 46px; font-weight: 800; color: #2d1e60; line-height: 1; }
.hl-gs-label { font-size: 11px; color: #a090c8; text-transform: uppercase; letter-spacing: 0.08em; }

.hl-gameover-box .btn-primary  { width: 100%; }
.hl-gameover-box .btn-secondary { width: 100%; }

/* ===== Animācijas ===== */

@keyframes hl-slide-in {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

.hl-slide-in { animation: hl-slide-in 0.35s ease forwards; }

/* ===== Mobilais ===== */

@media (max-width: 520px) {
  .hl-arena {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 44px 1fr;
    min-height: 600px;
  }

  .hl-divider {
    flex-direction: row;
  }

  .hl-card { min-height: 220px; }

  .hl-guess-btns {
    flex-direction: row;
    padding: 0 1rem 1.25rem;
  }
  .hl-btn-higher,
  .hl-btn-lower { flex: 1; }

  .hl-name  { font-size: 15px; }
  .hl-value { font-size: 26px; }
  .hl-mystery { font-size: 48px; }
}
