/* 30-Tage Sackhüpfen */
.sack-body .frame {
  overflow: visible;
  padding-left: 3.3rem;
  padding-right: 3.3rem;
}
.edge {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 3rem;
  pointer-events: none;
  z-index: 8;
}
.edge-left { left: 0; }
.edge-right { right: 0; }
.spark {
  position: absolute;
  left: 0.15rem;
  line-height: 1;
  animation: twinkle 2.2s ease-in-out infinite;
}
.edge-left .s1 { top: 6%; color: #ffd24a; font-size: 1.15rem; }
.edge-left .s2 { top: 18%; color: #ff4fd8; font-size: 0.72rem; animation-delay: 0.4s; }
.edge-left .s3 { top: 36%; color: #fff; font-size: 0.95rem; animation-delay: 0.8s; }
.edge-left .s4 { top: 54%; color: #5ce1ff; font-size: 0.7rem; animation-delay: 0.2s; }
.edge-left .s5 { top: 72%; color: #ffd24a; font-size: 1rem; animation-delay: 1s; }
.edge-left .s6 { top: 88%; color: #ff7ad9; font-size: 0.68rem; animation-delay: 0.6s; }
.edge-right .spark { left: auto; right: 0.15rem; }
.edge-right .s1 { top: 9%; color: #5ce1ff; font-size: 1.05rem; animation-delay: 0.3s; }
.edge-right .s2 { top: 22%; color: #ffd24a; font-size: 0.7rem; animation-delay: 0.9s; }
.edge-right .s3 { top: 40%; color: #ff4fd8; font-size: 0.95rem; animation-delay: 0.1s; }
.edge-right .s4 { top: 58%; color: #fff; font-size: 0.68rem; animation-delay: 0.7s; }
.edge-right .s5 { top: 74%; color: #ffd24a; font-size: 1.1rem; animation-delay: 0.5s; }
.edge-right .s6 { top: 90%; color: #5ce1ff; font-size: 0.72rem; animation-delay: 1.1s; }
.mascot-deer,
.mascot-bird {
  position: absolute;
  width: 46px;
  left: 0;
}
.mascot-bird { left: auto; right: 0; width: 48px; }
.mascot-deer { animation: roam 18s linear infinite; }
.mascot-bird { animation: roam 15s linear infinite reverse; }
.mascot-deer svg,
.mascot-bird svg { width: 100%; height: auto; display: block; overflow: visible; }
.edge-right .mascot-bird svg { transform: scaleX(-1); }
.mascot-deer .leg {
  transform-box: fill-box;
  transform-origin: center top;
  animation: step 0.32s ease-in-out infinite;
}
.mascot-deer .back { animation-direction: reverse; }
.mascot-bird .wing {
  transform-box: fill-box;
  transform-origin: 20% 70%;
  animation: flap 0.38s ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: 0.35; transform: scale(0.75); }
  50% { opacity: 1; transform: scale(1); }
}
@keyframes roam {
  0% { top: 8%; }
  100% { top: 78%; }
}
@keyframes step {
  0%, 100% { transform: rotate(24deg); }
  50% { transform: rotate(-24deg); }
}
@keyframes flap {
  0%, 100% { transform: rotate(16deg); }
  50% { transform: rotate(-32deg); }
}

.sack-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  text-align: center;
  padding-bottom: 0.4rem;
}
@media (min-width: 900px) {
  .sack-hero {
    grid-template-columns: 1fr 240px;
    align-items: start;
    text-align: center;
  }
  .sack-hero-main { grid-column: 1; }
  .taler-wrap { grid-column: 2; grid-row: 1; }
}

.sack-rule {
  margin: 0.45rem auto 0;
  max-width: 38rem;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: #ffe08a;
  font-size: 0.92rem;
  line-height: 1.35;
}

.taler-wrap {
  justify-self: center;
  width: min(240px, 100%);
}
.taler-sack {
  position: relative;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.45));
  animation: sack-glow 2.6s ease-in-out infinite;
}
.coin-rain {
  position: absolute;
  left: 18%;
  right: 18%;
  top: 0;
  height: 58%;
  pointer-events: none;
  overflow: hidden;
}
.coin-rain i {
  position: absolute;
  top: -12px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff6c2, #ffd24a 42%, #b8860b);
  border: 1.5px solid #6a4a16;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
  animation: coin-drop 1.5s linear infinite;
}
.coin-rain i:nth-child(1) { left: 18%; animation-delay: 0s; }
.coin-rain i:nth-child(2) { left: 46%; animation-delay: 0.45s; }
.coin-rain i:nth-child(3) { left: 70%; animation-delay: 0.9s; }
@keyframes sack-glow {
  0%, 100% { filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 0 rgba(255, 210, 74, 0)); }
  50% { filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 18px rgba(255, 210, 74, 0.75)); }
}
@keyframes coin-drop {
  0% { transform: translateY(0) scale(0.7); opacity: 0; }
  18% { opacity: 1; }
  100% { transform: translateY(118px) scale(1); opacity: 0; }
}
.month-bar {
  margin: 0.75rem auto 0;
  max-width: 26rem;
}
.month-bar p {
  margin: 0 0 0.35rem;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 800;
  font-size: 0.86rem;
  color: #ffe08a;
}
.month-track {
  height: 12px;
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 210, 74, 0.4);
  overflow: hidden;
}
.month-fill {
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, #ffd24a, #ff4fd8);
}
.taler-sack svg { width: 100%; height: auto; display: block; }
.taler-count {
  position: absolute;
  left: 50%;
  top: 64%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
  background: rgba(42, 22, 6, 0.82);
  border: 2px solid rgba(255, 210, 74, 0.7);
  border-radius: 14px;
  padding: 0.28rem 0.7rem 0.35rem;
  min-width: 5.4rem;
}
.taler-count strong {
  display: block;
  font-size: 2.1rem;
  line-height: 1;
  color: #ffd24a;
  text-shadow: 0 2px 0 #3a2208;
}
.taler-count span {
  display: block;
  margin-top: 0.15rem;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: #fff6d8;
}

.sack-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: 0.2rem 1rem 1rem;
}
.legend-card {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: min(100%, 280px);
  padding: 0.45rem 0.8rem 0.45rem 0.35rem;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 800;
  font-size: 0.84rem;
  line-height: 1.25;
}
.legend-card .mini {
  width: 74px;
  flex: 0 0 74px;
}
.legend-card .mini svg { width: 100%; height: auto; display: block; }
.legend-card em {
  display: block;
  font-style: normal;
  color: #ffd24a;
  letter-spacing: 0.04em;
  font-size: 0.72rem;
}

.sack-teams {
  display: grid;
  gap: 0.75rem;
  margin: 0 1rem 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 800px) {
  .sack-teams { grid-template-columns: 1fr 1fr; }
}
.sack-team {
  border-radius: 14px;
  padding: 0.85rem 1rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-family: Arial, Helvetica, sans-serif;
}
.sack-team.wl { border-color: rgba(255, 210, 74, 0.55); }
.sack-team.normal { border-color: rgba(92, 225, 255, 0.5); }
.sack-team strong {
  display: block;
  letter-spacing: 0.04em;
  margin-bottom: 0.2rem;
}
.sack-team span {
  font-weight: 800;
  color: #ffd24a;
  font-size: 1.25rem;
}

.tracks { margin: 0 0.75rem 1.25rem; display: grid; gap: 1rem; }
.track-block {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 2, 20, 0.55);
  overflow: hidden;
}
.track-label {
  margin: 0;
  padding: 0.55rem 0.9rem;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: #ff7ad9;
  background: rgba(255, 77, 216, 0.12);
}
.track-label.normal { color: #9aefff; background: rgba(92, 225, 255, 0.08); }
.lane-ruler {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0.5rem 0.75rem 0;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 800;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}
.flag, .goal {
  padding: 0.18rem 0.45rem;
  border-radius: 5px;
  color: #1a0a2e;
}
.flag { background: #ff4fd8; }
.goal { background: #ffd24a; }
.ruler-coins {
  flex: 1;
  display: flex;
  justify-content: space-evenly;
}
.ruler-coins i,
.lane-coin {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff6c2, #ffd24a 45%, #b8860b);
  border: 1px solid #6a4a16;
  display: block;
}
.lane {
  position: relative;
  margin: 0.35rem 0.6rem 0.7rem;
  border-radius: 12px;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.04) 0 12px,
      transparent 12px 24px
    ),
    linear-gradient(180deg, #2a1458, #1a0b32);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.runner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "name score" "track track";
  align-items: center;
  padding: 0.45rem 0.55rem 0.2rem 0.7rem;
}
.runner-name { grid-area: name; }
.runner-meta { grid-area: score; justify-self: end; }
.runner-track { grid-area: track; }
.runner + .runner { border-top: 1px dashed rgba(255, 255, 255, 0.06); }
.runner-name {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 800;
  font-size: 0.82rem;
  line-height: 1.15;
}
.runner-track {
  position: relative;
  height: 112px;
  margin: 0.15rem 0 0.2rem;
  overflow: hidden;
}
.runner-track::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background: repeating-linear-gradient(#fff 0 6px, #111 6px 12px);
  opacity: 0.75;
  z-index: 1;
}
.runner-track::after {
  content: "";
  position: absolute;
  left: 0;
  right: 34px;
  bottom: 4px;
  height: 7px;
  border-radius: 6px;
  background: linear-gradient(#8a6240, #3d2814);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.lane-coin {
  position: absolute;
  bottom: 14px;
  z-index: 1;
}
.lane-coin.a { left: 26%; }
.lane-coin.b { left: 50%; bottom: 20px; }
.lane-coin.c { left: 72%; }
.goal-sack {
  position: absolute;
  right: 2px;
  bottom: 6px;
  width: 26px;
  height: 30px;
  border-radius: 42% 42% 48% 48%;
  background: radial-gradient(circle at 50% 28%, #f0d48a, #c9954a 62%, #8a5a20);
  border: 2px solid #5c3b12;
  z-index: 1;
}
.goal-sack::before {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  top: -7px;
  height: 10px;
  border: 2px solid #5c3b12;
  border-bottom: none;
  border-radius: 8px 8px 0 0;
}
.runner-mover {
  position: absolute;
  bottom: 2px;
  width: 68px;
  z-index: 2;
  transition: left 0.6s ease;
}
.runner-mover svg { width: 100%; height: auto; display: block; }
.bob { animation: sack-hop 0.7s ease-in-out infinite; transform-origin: 50% 100%; }
.trip { animation: sack-trip 1.1s ease-in-out infinite; transform-origin: 60% 90%; }
.runner-meta {
  align-self: center;
  text-align: right;
  min-width: 4.5rem;
  font-family: Arial, Helvetica, sans-serif;
}
.runner-meta b {
  display: block;
  font-size: 0.95rem;
}
.runner-meta span {
  color: #5ce1ff;
  font-weight: 800;
  font-size: 0.85rem;
}
.runner.is-first .runner-name,
.runner.is-first .runner-meta b,
.runner.is-first .runner-meta span { color: #ffd24a; }
.runner.is-last .runner-name,
.runner.is-last .runner-meta b,
.runner.is-last .runner-meta span { color: #ffb4b4; }
.dot {
  display: inline-block;
  width: 0.7rem;
  height: 0.7rem;
  margin-right: 0.35rem;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.28);
  vertical-align: -1px;
  flex: 0 0 auto;
}
.who, .runner-name {
  display: inline-flex;
  align-items: center;
}

@keyframes sack-hop {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  45% { transform: translateY(-12px) rotate(3deg); }
}
@keyframes sack-trip {
  0%, 100% { transform: rotate(-18deg) translateY(4px); }
  50% { transform: rotate(-28deg) translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .bob, .trip, .taler-sack, .coin-rain i, .spark, .mascot-deer, .mascot-bird, .mascot-deer .leg, .mascot-bird .wing { animation: none; }
}

.sack-note {
  margin: 0 1.25rem 1rem;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: #d4b8ef;
  font-size: 0.88rem;
  line-height: 1.35;
}

.sack-wrap { margin: 0.4rem 0.75rem 2.2rem; }
.sack-scroll {
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(8, 2, 20, 0.75);
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}
.sack-table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  font-family: Arial, Helvetica, sans-serif;
}
.sack-table th,
.sack-table td {
  padding: 0.72rem 0.7rem;
  text-align: right;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 800;
  font-size: 1.05rem;
  white-space: nowrap;
  min-width: 4.4rem;
}
.sack-table th {
  position: sticky;
  top: 0;
  background: rgba(30, 10, 55, 0.96);
  color: #ffd24a;
  z-index: 1;
  font-size: 0.92rem;
  line-height: 1.2;
}
.sack-table th:first-child,
.sack-table td:first-child {
  text-align: left;
  position: sticky;
  left: 0;
  background: rgba(20, 6, 40, 0.98);
  z-index: 2;
  min-width: 10rem;
  padding-left: 0.9rem;
  padding-right: 0.9rem;
  font-size: 1.05rem;
}
.sack-table th:first-child { z-index: 3; }
.sack-table th.total,
.sack-table td.total {
  color: #5ce1ff;
  border-left: 1px solid rgba(92, 225, 255, 0.25);
}
.sack-table tr.league-head td {
  text-align: left;
  background: rgba(255, 77, 216, 0.12);
  color: #ff7ad9;
  letter-spacing: 0.06em;
  font-size: 0.95rem;
  padding-top: 0.9rem;
  padding-bottom: 0.55rem;
}
.sack-table tr.league-head.normal td {
  background: rgba(92, 225, 255, 0.08);
  color: #9aefff;
}
.sack-table .zero { color: #9a86b0; }
.sack-table th.is-today,
.sack-table td.is-today {
  background: rgba(255, 210, 74, 0.22);
  color: #fff6d0;
  min-width: 5.2rem;
}
.sack-table th.is-today {
  box-shadow: inset 0 -3px 0 #ffd24a;
  line-height: 1.15;
}
.sack-table th.is-recent,
.sack-table td.is-recent {
  background: rgba(92, 225, 255, 0.08);
  min-width: 4.8rem;
}
.sack-table .heute {
  display: block;
  color: #ffd24a;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}
.sack-table tr:hover td { background: rgba(255, 255, 255, 0.04); }
.sack-table tr:hover td:first-child { background: rgba(40, 16, 70, 0.98); }
.sack-table tr:hover td.is-today { background: rgba(255, 210, 74, 0.28); }
.sack-table tr:hover td.is-recent { background: rgba(92, 225, 255, 0.14); }
