body {
  font-family: "Inter", sans-serif;
  background-color: #000;
  color: #f9fafb;
  margin: 0;
  padding: 1rem;
}

h1 { text-align: center; margin-bottom: 1rem; }

.container {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.box {
  border: 2px solid #4b5563;
  border-radius: 0.5rem;
  padding: 0.6rem 1rem;
  width: 100%;
  transition: all 0.3s ease-out;
}

.reward-box { border-color: #22c55e; }

.box .label { display: block; font-size: 0.9rem; color: #9ca3af; margin-bottom: 0.3rem; }
.box .value { font-size: 1.5rem; font-weight: bold; }
.box .sub { font-size: 0.9rem; color: #9ca3af; }

#price { font-size: 1.8rem; font-weight: bold; }
#priceArrow { font-size: 1.2rem; margin-left: 0.5rem; transition: color 0.3s, transform 0.3s; }

.up { color: #22c55e; }
.down { color: #ef4444; }

.price-row { display: flex; align-items: center; justify-content: space-between; }
.sub-row { display: flex; justify-content: space-between; margin-top: 0.3rem; }

#addressInput {
  padding: 0.5rem 0.8rem;
  width: 100%;
  border-radius: 0.5rem;
  border: 2px solid #4b5563;
  background: #000;
  color: #f9fafb;
  font-size: 1rem;
}

#addressInput:focus { outline: none; border-color: #38bdf8; box-shadow: 0 0 10px rgba(56,189,248,0.3); }
#addressInput::placeholder { color: #9ca3af; }

#priceChart { width: 100%; height: 150px; }

.digit-up, .digit-down { display: inline-block; transition: color 0.5s, transform 0.3s; }
.digit-up { color: #22c55e; transform: scale(1.2); }
.digit-down { color: #ef4444; transform: scale(0.9); }

@media (max-width: 600px){
  #price { font-size: 1.5rem; }
  .box .value { font-size: 1.2rem; }
}
