* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: #0c0c0e;
  color: #e8e8ea;
  font-family: "Segoe UI", Arial, sans-serif;
  min-height: 100vh;
}
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px;
}
.top-left { display: flex; gap: 10px; }
.icon-btn {
  background: #1a1a20; color: #ffd60a; border: 1px solid #2c2c34;
  border-radius: 8px; padding: 7px 12px; cursor: pointer; font-size: 14px;
}
.icon-btn:hover { border-color: #ffd60a; }
.icon-btn:disabled { opacity: 0.45; cursor: default; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; letter-spacing: 1px; }
.balance-chip {
  display: flex; align-items: center; gap: 8px;
  background: #1a1a20; border: 1px solid #2c2c34; border-radius: 10px;
  padding: 8px 16px; font-size: 17px; font-weight: 700; color: #ffd60a;
}
.layout {
  display: grid; grid-template-columns: 1fr auto 1fr;
  gap: 18px; padding: 6px 28px; align-items: start;
  max-width: 1400px; margin: 0 auto;
}
.card {
  background: #141417; border-radius: 14px; padding: 20px;
}
.card h2 { font-size: 15px; text-align: center; margin-bottom: 4px; }
.card .sub { font-size: 12px; color: #8b8b93; text-align: center; margin-bottom: 14px; }
.wheel-wrap { display: flex; flex-direction: column; align-items: center; gap: 10px; }
#wheel { width: 340px; height: 340px; max-width: 90vw; }
.chance { font-size: 15px; color: #ffd60a; min-height: 22px; text-align: center; }
.result { font-size: 15px; min-height: 22px; text-align: center; color: #e8e8ea; }
.big-btn {
  display: flex; align-items: center; gap: 10px;
  background: #ffd60a; color: #111; border: none; border-radius: 12px;
  font-size: 19px; font-weight: 800; padding: 15px 64px; cursor: pointer;
}
.big-btn:hover { background: #ffe04d; }
.big-btn:disabled { opacity: 0.4; cursor: default; }
.item-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px;
}
.item {
  background: #1d1d22; border: 2px solid transparent; border-radius: 10px;
  padding: 10px 6px; text-align: center; cursor: pointer; position: relative;
  transition: border-color 0.15s;
}
.item:hover { border-color: #4a4a55; }
.item.selected { border-color: #ffd60a; }
.item.disabled { opacity: 0.45; cursor: default; }
.item svg { width: 44px; height: 44px; }
.item .nm { font-size: 12px; margin-top: 6px; }
.item .vl { font-size: 12px; color: #ffd60a; font-weight: 700; }
.item .cnt {
  position: absolute; top: 6px; right: 8px; font-size: 12px; font-weight: 700;
  background: #ffd60a; color: #111; border-radius: 8px; padding: 1px 7px;
}
.stake-list { display: flex; flex-wrap: wrap; gap: 8px; min-height: 60px; }
.stake-chip {
  display: flex; align-items: center; gap: 6px;
  background: #1d1d22; border: 1px solid #ffd60a; border-radius: 9px;
  padding: 6px 10px; font-size: 13px; cursor: pointer;
}
.stake-chip svg { width: 22px; height: 22px; }
.stake-empty { color: #55555e; font-size: 13px; }
.stake-total { margin-top: 12px; text-align: center; font-size: 15px; }
.stake-total b { color: #ffd60a; }
.bottom {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
  padding: 18px 28px; max-width: 1400px; margin: 0 auto;
}
.qty-row {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-bottom: 14px; font-size: 14px; color: #c9c9cf;
}
.qty-row #qVal { font-size: 17px; font-weight: 800; color: #ffd60a; min-width: 20px; text-align: center; }
.streak { font-size: 12px; color: #8b8b93; font-weight: 400; }
.item .sell {
  position: absolute; bottom: 6px; right: 6px; font-size: 15px; font-weight: 800;
  background: #2a1418; color: #ff8080; border: 1px solid #5a2a30; border-radius: 8px;
  width: 24px; height: 24px; line-height: 20px; text-align: center; cursor: pointer;
}
.item .sell:hover { background: #5a2a30; color: #fff; }
footer { text-align: center; color: #55555e; font-size: 12px; padding: 14px; }
@media (max-width: 1000px) {
  .layout, .bottom { grid-template-columns: 1fr; }
  #wheel { width: 280px; height: 280px; }
}
