body {
  background: #1a1a2e;
  color: #fff;
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.container {
  text-align: center;
  padding: 20px;
  position: relative; /* برای position: absolute بنر */
}

.logo {
  font-size: 2.5em;
  color: #00ffaa;
  text-shadow: 0 0 10px #00ffaa;
  margin-bottom: 10px;
}

.intro {
  font-size: 1.2em;
  color: #66ccff;
  margin-bottom: 20px;
}

.banner-mobile {
  display: none; /* مخفی تو دسکتاپ */
  margin: 20px auto 10px auto;
  max-width: 320px;
}

.banner-mobile img {
  width: 100%;
  max-width: 320px;
  height: 82px;
  border-radius: 8px;
  transition: opacity 0.3s ease;
}

.banner-mobile img:hover {
  opacity: 0.8;
}

.banner {
  margin: 20px auto; /* وسط‌چین تو موبایل */
  max-width: 250px;
}

.banner img {
  width: 100%;
  max-width: 250px;
  height: 125px;
  border-radius: 8px;
  transition: opacity 0.3s ease;
}

.banner img:hover {
  opacity: 0.8;
}

.currency {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.currency button {
  background: #16213e;
  color: #fff;
  border: 1px solid #00ffaa;
  width: 80px;
  height: 80px;
  margin: 5px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px;
  font-size: 0.9em;
}

.currency button img {
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 4px;
  padding: 2px;
  margin-bottom: 4px;
}

.currency button span {
  font-size: 0.85em;
}

.currency button:hover,
.currency button.selected {
  background: #00ffaa;
  color: #1a1a2e;
}

.params {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 20px 0;
}

.params div {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.params label {
  font-size: 0.9em;
  margin-bottom: 5px;
}

.params select {
  background: #16213e;
  color: #fff;
  border: 1px solid #00ffaa;
  padding: 8px;
  border-radius: 5px;
  cursor: pointer;
}

#roll {
  background: #00ffaa;
  color: #1a1a2e;
  font-size: 1.5em;
  padding: 15px 30px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s;
}

#roll:hover {
  background: #00cc88;
  transform: scale(1.05);
}

#roll:active, #roll.rolling {
  animation: slotRoll 2s ease-out forwards;
}

@keyframes slotRoll {
  0% { transform: rotateX(0deg); }
  50% { transform: rotateX(720deg); }
  100% { transform: rotateX(1080deg); }
}

#result {
  margin: 20px 0;
  padding: 20px;
  background: #16213e;
  border: 1px solid #00ffaa;
  border-radius: 10px;
  font-size: 1.1em;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  opacity: 1;
  transition: opacity 0.5s ease-in;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative; /* برای هم‌راستایی بنر */
}

#result.hidden {
  opacity: 0;
}

#result.show {
  opacity: 1;
}

.actions button {
  background: #16213e;
  color: #fff;
  border: 1px solid #00ffaa;
  padding: 10px 20px;
  margin: 5px;
  border-radius: 5px;
  cursor: pointer;
}

.actions button:hover {
  background: #00ffaa;
  color: #1a1a2e;
}

/* دسکتاپ: هم‌راستا کردن نقطه میانی بنر با کادر نتیجه */
@media (min-width: 601px) {
  .banner {
    position: absolute;
    left: 20px; /* فاصله از لبه چپ، بدون تغییر */
    top: 50%; /* مرکز عمودی نسبت به کادر نتیجه */
    transform: translateY(-50%); /* تنظیم برای هم‌راستایی نقطه میانی */
    margin: 0;
    max-width: 250px;
  }
}

/* موبایل */
@media (max-width: 600px) {
  .currency button {
    width: 60px;
    height: 60px;
    padding: 4px;
    font-size: 0.8em;
  }
  .currency button img {
    width: 20px;
    height: 20px;
  }
  .currency button span {
    font-size: 0.75em;
  }
  .params {
    flex-direction: column;
  }
  #roll {
    font-size: 1.2em;
  }
  #result {
    font-size: 1em;
    min-height: 80px;
  }
  .banner-mobile {
    display: block; /* نمایش تو موبایل */
  }
  .banner {
    text-align: center; /* وسط‌چین تو موبایل */
    margin: 20px auto; /* فاصله ۲۰ پیکسل از دکمه Share on X */
  }
  .banner img {
    max-width: 250px;
    height: 125px;
  }
}