.alber-flappy-wrap {
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  padding: 20px 16px;
  box-sizing: border-box;
  font-family: "Poppins", system-ui, -apple-system, sans-serif;
}

#alber-flappy-root .alber-flappy-screen.alber-flappy-choose {
  text-align: center;
  background: linear-gradient(160deg, #c2185b 0%, #ff4d6d 40%, #ff8fa3 100%) !important;
  border-radius: 20px;
  padding: 24px 20px;
  margin: 0 -4px;
}

.alber-flappy-screen {
  text-align: center;
}

#alber-flappy-root .alber-flappy-title {
  margin: 0 0 8px;
  font-size: 1.5rem;
  font-weight: 800 !important;
  color: #fff !important;
}

#alber-flappy-root .alber-flappy-subtitle {
  margin: 0 0 16px;
  font-size: 0.95rem;
  font-weight: 700 !important;
  color: #fff !important;
}

.alber-flappy-scores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 24px;
  margin-bottom: 24px;
}

#alber-flappy-root .alber-flappy-hiscore {
  font-size: 0.9rem;
  font-weight: 700 !important;
  color: #fff !important;
}

#alber-flappy-root .alber-flappy-hiscore strong {
  font-weight: 800 !important;
  color: #fff !important;
}

.alber-flappy-characters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

#alber-flappy-root .alber-flappy-char {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.alber-flappy-char:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.25);
}

.alber-flappy-char:focus {
  outline: none;
  border-color: #fff;
}

/* Heart-shaped background behind the face */
#alber-flappy-root .alber-flappy-char-face {
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath fill='%23ff4d6d' d='M50 88c-2 0-4-1-6-2C20 72 8 58 8 40c0-14 10-24 24-24 8 0 14 3 18 8 4-5 10-8 18-8 14 0 24 10 24 24 0 18-12 32-36 46-2 1-4 2-6 2z'/%3E%3C/svg%3E") no-repeat center / contain !important;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

#alber-flappy-root .alber-flappy-char img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.alber-flappy-placeholder {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
}

.alber-flappy-char-albert .alber-flappy-placeholder { background: #2e7d9a; }
.alber-flappy-char-dafina .alber-flappy-placeholder { background: #c2185b; }

#alber-flappy-root .alber-flappy-char-label {
  font-weight: 700 !important;
  font-size: 0.95rem;
  color: #fff !important;
}

.alber-flappy-game-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.alber-flappy-canvas-wrap {
  position: relative;
  display: inline-block;
}

.alber-flappy-countdown {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  background: rgba(0, 0, 0, 0.35);
  border-radius: 12px;
  pointer-events: none;
}

.alber-flappy-countdown[hidden],
.alber-flappy-countdown.alber-flappy-countdown-done {
  display: none !important;
}

#alber-flappy-canvas {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  background: #87CEEB;
  cursor: pointer;
}

.alber-flappy-game-over {
  margin-top: 16px;
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

.alber-flappy-go-title {
  margin: 0 0 8px;
  font-size: 1.25rem;
  font-weight: 800;
  color: #2b2b36;
}

.alber-flappy-go-score {
  margin: 0 0 4px;
  font-size: 1.1rem;
  color: #555;
}

.alber-flappy-go-hiscore {
  margin: 0 0 16px;
  font-size: 0.9rem;
  color: #ff4d6d;
  font-weight: 600;
}

.alber-flappy-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 10px;
  background: #ff4d6d;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}

.alber-flappy-btn:hover {
  background: #ff2e63;
  transform: translateY(-1px);
}

.alber-flappy-btn:focus {
  outline: none;
}

.alber-flappy-btn-again {
  display: inline-block;
}
