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

body {

  font-family: 'Poppins', sans-serif;

  min-height: 100vh;

  display: flex;
  justify-content: center;
  align-items: center;

  overflow: hidden;

  background:
    radial-gradient(circle at top, #2a2a2a, #0f0f0f);

  color: white;

  padding: 20px;
}

/* TŁO */

.bg-glow {
  position: absolute;

  width: 350px;
  height: 350px;

  border-radius: 50%;

  filter: blur(120px);

  z-index: 0;
}

.glow1 {
  background: rgba(255, 196, 0, 0.25);

  top: -100px;
  left: -100px;
}

.glow2 {
  background: rgba(255, 170, 0, 0.18);

  bottom: -100px;
  right: -100px;
}

/* APP */

.app {

  position: relative;

  z-index: 10;

  width: 100%;
  max-width: 430px;

  padding: 28px;

  border-radius: 32px;

  background:
    rgba(255,255,255,0.06);

  backdrop-filter: blur(18px);

  border:
    1px solid rgba(255,255,255,0.08);

  box-shadow:
    0 20px 50px rgba(0,0,0,0.5);
}

.top {
  text-align: center;
}

.small-text {

  color: #d6b55b;

  font-size: 13px;

  letter-spacing: 2px;

  margin-bottom: 8px;
}

h1 {

  font-size: 32px;

  margin-bottom: 14px;

  font-weight: 700;
}

.goal-price {

  display: inline-block;

  padding: 10px 22px;

  border-radius: 999px;

  background:
    linear-gradient(135deg, #ffd86b, #c89b2f);

  color: #111;

  font-weight: 700;

  font-size: 20px;

  box-shadow:
    0 10px 25px rgba(255, 196, 0, 0.25);
}

/* SKARBONKA */

.piggy-wrapper {

  display: flex;
  justify-content: center;

  margin-top: 35px;
  margin-bottom: 30px;
}

.piggy {

  position: relative;

  width: 230px;
  height: 230px;

  border-radius: 50%;

  overflow: hidden;

  border:
    5px solid rgba(255,215,0,0.5);

  background:
    rgba(255,255,255,0.05);

  box-shadow:
    inset 0 0 25px rgba(255,215,0,0.15),
    0 0 35px rgba(255,196,0,0.18);
}

.fill {

  position: absolute;

  bottom: 0;
  left: 0;

  width: 100%;
  height: 0%;

  background:
    linear-gradient(
      to top,
      #a66b00,
      #ffbf00,
      #ffe07a
    );

  transition: height 1s ease;
}

.piggy-content {

  position: absolute;

  inset: 0;

  display: flex;
  flex-direction: column;

  justify-content: center;
  align-items: center;

  z-index: 10;
}

.percent {

  font-size: 52px;

  font-weight: 700;

  text-shadow:
    0 0 20px rgba(255,215,0,0.4);
}

.status {

  margin-top: 10px;

  font-size: 18px;

  color: #ffe49c;
}

/* KARTY */

.cards {

  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 15px;

  margin-bottom: 25px;
}

.card {

  padding: 18px;

  border-radius: 22px;

  background:
    rgba(255,255,255,0.05);

  border:
    1px solid rgba(255,255,255,0.06);

  text-align: center;
}

.card p {

  color: #c8c8c8;

  font-size: 14px;

  margin-bottom: 8px;
}

.card h2 {

  color: #ffd86b;

  font-size: 24px;
}

/* INPUT */

.add-box {

  display: flex;

  gap: 12px;

  margin-bottom: 24px;
}

input {

  flex: 1;

  height: 58px;

  border: none;

  border-radius: 18px;

  padding: 0 18px;

  background:
    rgba(255,255,255,0.08);

  color: white;

  font-size: 18px;

  outline: none;
}

input::placeholder {
  color: #aaa;
}

button {

  border: none;

  cursor: pointer;

  transition: 0.25s;
}

#addBtn {

  min-width: 120px;

  border-radius: 18px;

  background:
    linear-gradient(135deg, #ffd86b, #c89b2f);

  color: #111;

  font-weight: 700;

  font-size: 17px;
}

#addBtn:hover {

  transform: translateY(-2px) scale(1.03);

  box-shadow:
    0 10px 25px rgba(255,215,0,0.25);
}

/* PROGRESS */

.progress-wrapper {

  margin-bottom: 24px;
}

.progress-bar {

  width: 100%;
  height: 18px;

  border-radius: 999px;

  overflow: hidden;

  background:
    rgba(255,255,255,0.08);
}

.progress {

  width: 0%;

  height: 100%;

  border-radius: 999px;

  background:
    linear-gradient(
      90deg,
      #b8860b,
      #ffd700,
      #fff1a6
    );

  transition: width 1s ease;
}

/* RESET */

.reset-btn {

  width: 100%;
  height: 54px;

  border-radius: 18px;

  background:
    rgba(255,255,255,0.08);

  color: white;

  font-size: 16px;
}

.reset-btn:hover {

  background:
    rgba(255,255,255,0.13);
}

/* TELEFON */

@media (max-width: 500px) {

  .app {
    padding: 22px;
  }

  h1 {
    font-size: 28px;
  }

  .piggy {
    width: 200px;
    height: 200px;
  }

  .percent {
    font-size: 44px;
  }

  .add-box {
    flex-direction: column;
  }

  #addBtn {
    height: 56px;
  }

}