html, body {
  margin: 0;
  height: 100dvh;
  overflow: hidden;
  touch-action: auto;
  background: #4A7030;
}

#game-stage {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #4A7030;
  touch-action: none;
}

#game-stage canvas {
  position: relative;
  top: auto;
  left: auto;
  flex: 0 0 auto;
  touch-action: none;
  z-index: 1;
}

#store-badges,
#app-popup {
  position: fixed;
  z-index: 5;
  pointer-events: auto;
  font-family: Fredoka, sans-serif;
}

#store-badges[hidden],
#app-popup[hidden] {
  display: none !important;
}

#store-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transform: translateX(-50%);
}

.store-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 10px 0 8px;
  border-radius: 8px;
  text-decoration: none;
  line-height: 1.05;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  flex: 0 0 auto;
}

.store-badge svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.store-badge small {
  display: block;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.01em;
  opacity: 0.8;
}

.store-badge strong {
  display: block;
  font-size: 12px;
  font-weight: 700;
}

.store-badge.apple {
  background: #1B2E4A;
  color: #fff;
}

.store-badge.google {
  background: #fff;
  color: #1B2E4A;
}

.store-qr {
  display: block;
  width: 52px;
  height: 52px;
  padding: 3px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  flex: 0 0 auto;
}

.store-qr svg {
  display: block;
  width: 100%;
  height: 100%;
}

#app-popup {
  transform: translateX(-50%);
  width: max-content;
  max-width: 280px;
  padding: 12px 14px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  color: #1B2E4A;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

#app-popup p {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

#popup-stores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}

#app-popup-close {
  border: 0;
  background: transparent;
  color: #3A5A7A;
  font-family: Fredoka, sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
}

#about {
  max-width: 640px;
  margin: 0 auto;
  padding: 28px 20px 48px;
  color: #f4f7ef;
  text-align: center;
}

#about h1 {
  font-family: Fredoka, sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 12px;
}

#about p {
  font-family: Fredoka, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 12px;
}

#about-stores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}
