body {
  background-color: #fdf2f0;
  color: #3a1f1f;
  font-family: system-ui, sans-serif;
  text-align: center;
  padding: 2rem;
}

header h1 {
  color: #8b2c1f;
  text-shadow: 1px 1px 3px #d1978b;
  margin-bottom: 2rem;
}

#story {
  background-color: #fff6f4;
  border: 2px solid #8b2c1f;
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 0 10px rgba(139, 44, 31, 0.2);
}

/* Postacie */
#characters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.character {
  background-color: #fff6f4;
  border: 2px solid #8b2c1f;
  border-radius: 0.5rem;
  padding: 1rem;
  width: 250px;
  box-shadow: 0 0 8px rgba(139, 44, 31, 0.2);
}

.character h2 {
  color: #8b2c1f;
  margin-bottom: 0.5rem;
}

.character p {
  font-size: 0.9rem;
  color: #4a2b2b;
  margin-bottom: 1rem;
}

/* Monety */
.coin {
  width: 100px;
  height: 100px;
  margin: 0 auto;
  perspective: 800px;
  position: relative;
}

.coin .side {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: #d1978b;
  border: 4px solid #8b2c1f;
  position: absolute;
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.3);
}

.coin .heads {
  transform: rotateY(0deg);
}

.coin .tails {
  transform: rotateY(180deg);
}

/* Animacje rzutów */
.flip {
  animation: flip 1s ease-in-out forwards;
}

@keyframes flip {
  0% { transform: rotateY(0deg); }
  100% { transform: rotateY(1800deg); }
}

/* Guzik */
.buttons-container {
  margin-top: 2rem;
}

.buttons-container button {
  padding: 0.6rem 1.2rem;
  border: 2px solid #8b2c1f;
  border-radius: 0.3rem;
  background-color: #fff0eb;
  color: #8b2c1f;
  cursor: pointer;
  transition: 0.2s;
  font-weight: bold;
}

.buttons-container button:hover {
  background-color: #8b2c1f;
  color: #fff0eb;
}
