/* =============================================================
   FLIP COUNTER COMPONENT STYLES (PRECISE 3D FLIP ANIMATED)
   White Cards & Dark Numerals Matching Weekly Battle Mockup
   ============================================================= */

.tick {
  font-size: 0.85rem;
  white-space: nowrap;
  font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  display: inline-flex;
  align-items: center;
  user-select: none;
}

.tick-group {
  margin: 0 0.2rem;
  text-align: center;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: transparent;
  border: none;
  padding: 0;
}

.tick-flip-card {
  display: flex;
  gap: 3px;
}

/* FLIP DIGIT BOX (White with Dark Slate Font) */
.tick-flip-digit {
  position: relative;
  width: 24px;
  height: 32px;
  background: #ffffff;
  color: #0b132b;
  border-radius: 4px;
  font-family: 'Space Grotesk', monospace;
  font-size: 1.18rem;
  font-weight: 900;
  perspective: 400px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

/* Horizontal Crease Line through Center */
.tick-flip-digit::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(0, 0, 0, 0.15);
  z-index: 10;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* BASE STATIC NUMBER DISPLAY */
.tick-num-display {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  color: #0b132b;
  z-index: 1;
}

/* FLAP LEAVES FOR 3D ANIMATION */
.tick-flap-top,
.tick-flap-bottom {
  position: absolute;
  left: 0;
  width: 100%;
  height: 50%;
  overflow: hidden;
  background: #ffffff;
  backface-visibility: hidden;
  z-index: 2;
}

.tick-flap-top {
  top: 0;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
  transform-origin: 50% 100%;
}

.tick-flap-bottom {
  bottom: 0;
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
  transform-origin: 50% 0%;
}

/* Precise Inner Text Placement for Top & Bottom Leaves */
.tick-flap-top span {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  color: #0b132b;
}

.tick-flap-bottom span {
  position: absolute;
  top: -16px;
  left: 0;
  width: 100%;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  color: #0b132b;
}

/* SMOOTH FLIP ANIMATIONS */
.tick-flip-digit.flip-anim .tick-flap-top {
  animation: flapFoldTop 0.22s ease-in forwards;
}

.tick-flip-digit.flip-anim .tick-flap-bottom {
  animation: flapUnfoldBottom 0.22s ease-out 0.22s forwards;
}

@keyframes flapFoldTop {
  0% { transform: rotateX(0deg); }
  100% { transform: rotateX(-90deg); }
}

@keyframes flapUnfoldBottom {
  0% { transform: rotateX(90deg); }
  100% { transform: rotateX(0deg); }
}

.tick-label {
  margin-top: 0.22em;
  font-size: 0.52rem;
  color: #94a3b8 !important;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.tick-colon {
  font-size: 1.1rem;
  font-weight: 900;
  color: #ffb800;
  margin: 0 0.15em 0.5em;
  line-height: 1;
}
