/* Prize counter. Rides on style.css (room, nav, wallet button). */
.counter {
  width: min(900px, 100%);
  margin: 0 auto;
  font-family: "Press Start 2P", monospace;
  color: #f3e2b8;
}
.counter-sign {
  text-align: center;
  padding: 16px 10px 14px;
  border: 3px solid #8a6a18;
  border-radius: 8px;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(255, 140, 40, 0.2), transparent 65%),
    #120a04;
  box-shadow: 0 0 22px rgba(255, 90, 0, 0.25), inset 0 0 18px rgba(255, 90, 0, 0.12);
}
.counter-title { font-size: clamp(18px, 5vw, 28px); color: #ffd24a; text-shadow: 0 3px 0 #6a3c00; letter-spacing: 0.06em; }
.counter-sub { margin-top: 8px; font-size: 8px; letter-spacing: 0.2em; color: #c8f5a0; }
.counter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 12px 0 8px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 210, 74, 0.35);
  border-radius: 8px;
  background: rgba(40, 24, 0, 0.55);
}
.counter-bar .tix { font-size: 9px; }
.counter-bar .tix .k { color: #8a7040; letter-spacing: 0.12em; }
.counter-bar .tix b { color: #7cff6a; font-weight: normal; margin-left: 6px; font-size: 13px; }
.counter-bar .wallet-connect .wc-links, .counter-bar .wallet-connect .wc-note { display: none; }
.counter-note, .counter-foot { font-family: system-ui, sans-serif; font-size: 13px; line-height: 1.5; color: #c9b08a; margin: 8px 2px 14px; }
.counter-foot a { color: #ffd24a; }
.shelf { display: block; }
.shelf-empty { text-align: center; font-size: 9px; line-height: 1.8; color: #c8f5a0; padding: 34px 12px; border: 1px dashed rgba(200, 245, 160, 0.35); border-radius: 8px; }

/* The prize wall: prizes sit on wooden shelves, one tier per shelf. */
.tier { margin: 22px 0 8px; }
.tier-sign {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 14px;
  margin-bottom: 8px;
  border: 2px solid #8a6a18;
  border-radius: 8px;
  background: linear-gradient(180deg, #3a2406, #1c0f02);
  box-shadow: 0 4px 0 #0a0500, 0 0 18px rgba(255, 140, 40, 0.18);
}
.tier-name { font-size: 11px; color: #ffd24a; letter-spacing: 0.14em; text-shadow: 0 2px 0 #6a3c00; }
.tier-range { font-size: 8px; color: #7cff6a; letter-spacing: 0.06em; }
.tier-shelf {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 12px;
  padding: 14px 12px 30px;
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(255, 200, 100, 0.06), transparent 42%),
    repeating-linear-gradient(90deg, #301a06 0 14px, #271205 14px 28px);
}
.tier-shelf::after {
  content: "";
  position: absolute;
  left: -6px;
  right: -6px;
  bottom: -12px;
  height: 16px;
  border-radius: 3px;
  background: linear-gradient(180deg, #7a4a1a, #3a2008 70%, #2a1505);
  box-shadow: 0 7px 12px rgba(0, 0, 0, 0.55), inset 0 2px 0 rgba(255, 224, 150, 0.28);
}
.prize {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 210, 74, 0.4);
  background: linear-gradient(180deg, #2a1a0c, #160d05);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.45);
}
.prize-art {
  aspect-ratio: 1;
  border-radius: 6px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #0d0703;
  border: 1px solid #3a2818;
}
.prize-art img { width: 100%; height: 100%; object-fit: cover; }
.prize-art span { font-size: 40px; color: #ffd24a; text-shadow: 0 4px 0 #6a3c00; }
.prize-art.bag { background: radial-gradient(circle at 50% 40%, rgba(255, 210, 74, 0.25), #0d0703 70%); }
.prize-art.eth { background: radial-gradient(circle at 50% 38%, rgba(140, 255, 170, 0.3), #06260f 72%); }
.prize-art.eth span { color: #8affa0; text-shadow: 0 4px 0 #06401a; }
.prize-name { font-size: 9px; line-height: 1.6; color: #fff4d0; min-height: 30px; word-break: break-word; }
.prize-price { font-size: 8px; color: #8a7040; }
.prize-price b { color: #7cff6a; font-weight: normal; font-size: 12px; }
.prize-left { font-size: 7px; color: #8a7040; }
.prize-btn {
  font: inherit;
  font-size: 8px;
  padding: 10px 6px;
  border-radius: 6px;
  border: 1px solid #8a7040;
  background: #1a120c;
  color: #c9b08a;
  cursor: pointer;
}
.prize-btn.can { background: linear-gradient(180deg, #7cff6a, #2fae3a); color: #062a06; border-color: #c8ffb8; }
.prize-btn:disabled { cursor: default; opacity: 0.75; }
@media (max-width: 600px) {
  .tier-shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding-left: 8px; padding-right: 8px; }
  .tier-sign { flex-direction: column; gap: 4px; }
  .counter-bar { flex-wrap: wrap; }
}
