* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Space Mono', monospace;
  background: #000;
  overflow: hidden;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

#game-container {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
}

#crosswalk {
  flex: 1;
  display: flex;
  flex-direction: column-reverse;
  width: 100%;
  height: 100%;
}

.stripe {
  flex: 1;
  cursor: pointer;
  transition: background-color 0.15s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stripe.white {
  background: #fff;
}

.stripe.gray {
  background: #666;
}

.footprint {
  font-size: 3rem;
  position: absolute;
  opacity: 0.8;
  pointer-events: none;
  filter: brightness(0);
}

#clear-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#clear-screen:not(.hidden) {
  opacity: 1;
  pointer-events: all;
}

.clear-content {
  text-align: center;
  color: #fff;
}

.clear-text {
  font-size: 4rem;
  font-weight: bold;
  margin-bottom: 1rem;
  letter-spacing: 0.2em;
}

.time-text {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #4CAF50;
}

#restart-btn {
  background: #fff;
  color: #000;
  border: none;
  padding: 1rem 3rem;
  font-size: 1.2rem;
  font-family: 'Space Mono', monospace;
  cursor: pointer;
  letter-spacing: 0.1em;
  transition: transform 0.1s ease;
}

#restart-btn:active {
  transform: scale(0.95);
}

@media (max-width: 600px) {
  .clear-text {
    font-size: 3rem;
  }
  
  .time-text {
    font-size: 1.5rem;
  }
  
  #restart-btn {
    padding: 0.8rem 2rem;
    font-size: 1rem;
  }
}

.hidden {
  display: none;
}