* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
}

body {
  display: flex;
  flex-direction: column;
  font-family: sans-serif;
}

header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 60, 60, 0.9);
    transform: scale(1);
  }
  50% {
    transform: scale(1.06);
  }
  100% {
    box-shadow: 0 0 0 24px rgba(255, 60, 60, 0);
    transform: scale(1);
  }
}

.pulse {
  animation: pulse 0.8s ease-out 1;
}

.score-balloon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  height: 40px;
  padding: 0 1.25rem;
  background: #222;
  color: #fff;
  border-radius: 999px;
  font-size: 1.1rem;
  font-weight: 600;
  white-space: nowrap;
}

main {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.grid-wrap {
  background: #777474;
  border-radius: 8px;
  padding: 1.5vmin;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 1.5vmin;
  width: 85vmin;
  height: 85vmin;
}

.grid div {
  background: #8e8e8e;
  border-radius: 6px;
  overflow: hidden;
}

.grid div img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.float-window {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.play-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #222;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease-in-out;
}

.play-btn:hover {
  background: #393737;
  transform: scale(1.15);
}

.play-btn svg {
  margin-left: 4px;
}

.stacked-window {
  display: flex;
  flex-direction: column; /* Stacks items vertically */
  gap: 10px;              /* Optional: Adds space between the stacked items */
  align-items: center;    /* Optional: Centers items horizontally */
}
