.reward-trigger[hidden] { display: none !important; }
.coin-badge {
  align-self: center;
  border: 1px solid #f2cc67;
  border-radius: 999px;
  padding: 8px 11px;
  color: #7a4b00;
  background: #fff7d6;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}
.reward-dialog {
  width: min(920px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  padding: 0;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(24, 36, 59, .28);
}
.reward-dialog::backdrop { background: rgba(10, 18, 32, .68); }
.reward-dialog-shell { padding: 22px; }
.reward-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.reward-dialog-head h2 { margin-bottom: 5px; }
.icon-button {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font-size: 22px;
  line-height: 1;
}
.raffle-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) 300px; gap: 18px; }
.raffle-stage {
  min-height: 410px;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 22px;
  text-align: center;
  background: #fff8df;
  border: 1px solid #f2d98a;
  border-radius: 8px;
  overflow: hidden;
}
.raffle-prize { width: min(270px, 65vw); aspect-ratio: 1; margin-bottom: 10px; }
.raffle-prize.is-drawing { animation: reward-roll .25s ease-in-out infinite alternate; }
@keyframes reward-roll { to { transform: translateY(-10px) rotate(4deg); } }
.reward-art {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}
.reward-art-empty {
  display: grid;
  place-items: center;
  color: var(--muted);
  background: #f4f7fb;
  font-size: 12px;
}
.reward-placeholder {
  width: 100%; height: 100%; display: grid; place-items: center;
  color: var(--muted);
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: 8px;
  font-size: 16px;
  font-weight: 800;
}
.reward-controls {
  display: grid;
  align-content: start;
  gap: 13px;
  padding: 0;
  color: var(--ink);
  background: transparent;
}
.reward-controls label { display: grid; gap: 7px; font-weight: 800; }
.reward-controls select {
  width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: white;
}
.reward-check { display: flex !important; grid-template-columns: auto 1fr; align-items: center; }
.reward-check input { width: auto; }
.reward-history { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.reward-history span { background: #fff; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.reward-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.reward-card {
  position: relative;
  padding: 10px;
  text-align: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.reward-card.is-locked .reward-art { filter: grayscale(1); opacity: .16; }
.reward-card strong { display: block; margin-top: 6px; font-size: 14px; }
.reward-lock {
  position: absolute; inset: 12px; display: grid; place-items: center;
  color: var(--muted); font-weight: 900;
}
.admin-sections { display: grid; gap: 20px; }
.admin-section { padding-top: 18px; border-top: 1px solid var(--line); }
.admin-list { display: grid; gap: 10px; max-height: 360px; overflow: auto; }
.admin-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 13px; background: white; border: 1px solid var(--line); border-radius: 8px;
}
.admin-row p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.admin-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.admin-pool { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.admin-pool label { padding: 7px; text-align: center; background: white; border: 1px solid var(--line); border-radius: 8px; font-size: 12px; }
.admin-pool input { width: auto; }
.reward-message { min-height: 24px; color: var(--muted); font-weight: 700; }
.reward-message.is-error { color: var(--rose); }
@media (max-width: 760px) {
  .raffle-layout, .admin-row { grid-template-columns: 1fr; }
  .reward-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .admin-pool { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .admin-actions { justify-content: flex-start; }
}
@media (max-width: 480px) {
  .reward-dialog-shell { padding: 15px; }
  .reward-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
