/* hit.css — Styles für das Spiel "Hit the Horse" (Whack-a-Mole). */

  .hit-stage { padding-top: 8px; }

  /* Kopfzeile: Leaderboard links, Timer rechts (V-Spec: Leaderboard oben links). */
  .hit-topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
  }

  /* Mini-Leaderboard oben links während des Spiels. */
  .hit-leaderboard {
    flex: 1 1 auto;
    max-width: 62%;
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
  }
  /* Leaderboard-Zeilen = Creme-Chips mit Tinte (Tab-Look der Lobby). */
  .hit-lb-row {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bar-cream);
    color: var(--bar-ink);
    border: 2px solid var(--bar-ink);
    border-radius: 999px;
    padding: 3px 8px 3px 4px;
    font-size: 13px;
    line-height: 1;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.3);
  }
  .hit-lb-row.me { background: var(--accent); color: var(--bar-ink); border-color: var(--bar-ink); }
  .hit-lb-row.me .hit-lb-score { color: var(--bar-ink); }
  .hit-lb-row.dead { opacity: .55; }
  .hit-lb-rank {
    font-family: 'Bangers', sans-serif;
    font-size: 14px;
    min-width: 16px;
    text-align: center;
    letter-spacing: .5px;
  }
  .hit-lb-row img,
  .hit-lb-noav {
    width: 24px; height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--bar-ink);
    background: var(--bar-cream);
    flex: 0 0 auto;
  }
  .hit-lb-row.me img { border-color: var(--bar-ink); }
  .hit-lb-name {
    flex: 1 1 auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .hit-lb-out { font-size: 13px; flex: 0 0 auto; }
  .hit-lb-score {
    font-family: 'Bangers', sans-serif;
    font-size: 18px;
    letter-spacing: 1px;
    color: var(--bar-ink);
    flex: 0 0 auto;
    min-width: 24px;
    text-align: right;
  }

  /* Timer (Uhr-Countdown). */
  .hit-timer-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    flex: 0 0 auto;
  }
  .hit-clock { line-height: 0; opacity: .85; }
  /* Timer = Creme-Zettel mit Tinte-Zahl. */
  .hit-timer {
    font-family: 'Bangers', sans-serif;
    font-size: 30px;
    letter-spacing: 1.5px;
    line-height: 1;
    min-width: 48px;
    text-align: center;
    color: var(--bar-ink);
    border: 3px solid var(--bar-ink);
    border-radius: 12px;
    padding: 2px 8px;
    background: var(--bar-cream);
    box-shadow: 0 3px 0 rgba(0, 0, 0, 0.3);
  }
  .hit-timer-lg { font-size: 40px; margin: 12px auto 0; }

  /* 3×3-Spielfeld. */
  .hit-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    max-width: 360px;
    margin: 0 auto;
  }
  .hit-hole {
    position: relative;
    aspect-ratio: 1 / 1;
    border: 3px solid var(--bar-ink);
    border-radius: 18px;
    background: var(--paper-soft);
    box-shadow: inset 0 4px 10px rgba(0, 0, 0, 0.55), 0 4px 0 rgba(0, 0, 0, 0.3);
    overflow: hidden;
    cursor: pointer;
    padding: 0;
    /* Touch: kein Tap-Highlight / keine Textauswahl beim schnellen Hämmern. */
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    touch-action: manipulation;
  }
  /* Erd-Mulde unten im Loch. */
  .hit-mound {
    position: absolute;
    left: 50%;
    bottom: -38%;
    width: 116%;
    height: 70%;
    transform: translateX(-50%);
    border-radius: 50%;
    background: #000;
    opacity: .35;
  }
  /* Aufgetauchte Figur (Pferd-Logo oder Bombe). */
  .hit-pop {
    position: absolute;
    left: 50%;
    bottom: 8%;
    width: 72%;
    height: 72%;
    transform: translate(-50%, 120%) scale(.6);
    opacity: 0;
    transition: transform .14s ease-out, opacity .12s ease-out;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .hit-pop img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
    pointer-events: none;
    -webkit-user-drag: none;
  }
  .hit-pop.bomb img { filter: drop-shadow(0 0 6px rgba(192,57,43,.45)); }
  .hit-hole.up .hit-pop {
    transform: translate(-50%, 0) scale(1);
    opacity: 1;
  }
  /* Kleiner "Pop"-Akzent für getroffene Pferde. */
  .hit-hole.up:active .hit-pop { transform: translate(-50%, 6%) scale(.92); }

  /* Schwebende +10-Punkteanzeige beim Treffer. */
  .hit-plus {
    position: absolute;
    left: 50%;
    top: 18%;
    transform: translateX(-50%);
    font-family: 'Bangers', sans-serif;
    font-size: 26px;
    letter-spacing: 1px;
    color: var(--accent);
    text-shadow: 2px 2px 0 var(--bar-ink-deep);
    pointer-events: none;
    animation: hitPlus .75s ease-out forwards;
    z-index: 3;
  }
  @keyframes hitPlus {
    0%   { opacity: 0; transform: translate(-50%, 10px) scale(.6); }
    25%  { opacity: 1; transform: translate(-50%, -6px) scale(1.1); }
    100% { opacity: 0; transform: translate(-50%, -40px) scale(1); }
  }

  .hit-hint {
    margin-top: 14px;
    color: var(--ink-soft);
    font-size: 14px;
  }

  /* Raus-Ansicht (Bombe getroffen): nur noch das Live-Leaderboard. */
  .hit-dead-stage { padding-top: 6px; }
  .hit-dead-head { text-align: center; margin-bottom: 14px; }
  .hit-dead-bomb {
    width: 56px; height: 56px;
    object-fit: contain;
    animation: hitShake .5s ease-in-out infinite;
  }
  @keyframes hitShake {
    0%, 100% { transform: rotate(-6deg); }
    50% { transform: rotate(6deg); }
  }
  .hit-leaderboard.big {
    max-width: 420px;
    margin: 0 auto;
    gap: 7px;
  }
  .hit-leaderboard.big .hit-lb-row { font-size: 16px; padding: 6px 12px 6px 6px; }
  .hit-leaderboard.big .hit-lb-row img,
  .hit-leaderboard.big .hit-lb-noav { width: 32px; height: 32px; }
  .hit-leaderboard.big .hit-lb-score { font-size: 22px; }
  .hit-leaderboard.big .hit-lb-rank { font-size: 18px; min-width: 20px; }

  /* End-Ergebnis (Rangliste). */
  .hit-final {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 420px;
    margin: 14px auto 0;
  }
  /* End-Zeilen = Creme-Chips; Gewinner = GOLD. */
  .hit-final-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bar-cream);
    color: var(--bar-ink);
    border: 3px solid var(--bar-ink);
    border-radius: 14px;
    padding: 8px 12px;
    text-align: left;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3);
  }
  .hit-final-row.winner {
    background: var(--accent);
    color: var(--bar-ink); border-color: var(--bar-ink);
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3), 0 0 18px 2px rgba(255, 207, 63, 0.5);
  }
  .hit-final-row.winner .hit-final-score { color: var(--bar-ink); }
  .hit-final-rank {
    font-family: 'Bangers', sans-serif;
    font-size: 22px;
    min-width: 30px;
    text-align: center;
  }
  .hit-final-row img {
    width: 38px; height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--bar-ink);
    background: var(--bar-cream);
  }
  .hit-final-row.winner img { border-color: var(--bar-ink); }
  .hit-final-name {
    flex: 1 1 auto;
    font-size: 17px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .hit-final-score {
    font-family: 'Bangers', sans-serif;
    font-size: 24px;
    letter-spacing: 1px;
    color: var(--bar-ink);
  }

  /* Etwas kleinere Löcher auf sehr schmalen Screens. */
  @media (max-width: 380px) {
    .hit-board { gap: 8px; max-width: 320px; }
    .hit-lb-name { max-width: 90px; }
  }
