/* quiver — two colors only: #ccf404 and #000000 (flipped: lime bg / black fg) */
:root {
  --lime: #ccf404;
  --black: #000000;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  background: var(--lime);
  color: var(--black);
  font-family: "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  display: flex;
  min-height: 100%;
  justify-content: center;
  padding: 6vh 20px 8vh;
}

.wrap {
  width: 100%;
  max-width: 860px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 42px;
}

/* ---------- header ---------- */
.head { text-align: center; }

.logo {
  position: fixed;
  top: 16px;
  right: 20px;
  z-index: 40;
  height: 168px;
  width: auto;
  object-fit: contain;
}

@media (max-width: 520px) {
  .logo { top: 12px; right: 12px; height: 120px; }
}

.title {
  font-size: clamp(56px, 12vw, 128px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.9;
  text-transform: lowercase;
}

.tagline {
  margin: 20px auto 0;
  max-width: 500px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  opacity: 0.82;
}

.tagline__line {
  display: block;
  line-height: 1.9;
}

.tagline strong { font-weight: 800; }

/* fine print sits quietly below the tagline */
.finePrint {
  margin: 14px auto 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  opacity: 0.45;
}

/* ---------- pot (above the box) ---------- */
.pot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 5vw, 46px);
  margin-bottom: -8px;
}

.pot__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.pot__label {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.6;
  white-space: nowrap;
}

.pot__amount {
  font-size: clamp(34px, 7.5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.pot__plus {
  font-size: clamp(26px, 5vw, 44px);
  font-weight: 800;
  line-height: 1;
  opacity: 0.5;
  align-self: flex-end;
  padding-bottom: 2px;
}

/* ---------- stage (wheel + cover + result) ---------- */
.stage {
  position: relative;
  width: 100%;
  height: 184px;
}

/* the horizontal wheel */
.wheel {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(0, 0, 0, 0.28);
  border-radius: 14px;
  overflow: hidden;
  background: var(--lime);
}

.wheel__track {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 12px;
  padding: 0 12px;
  will-change: transform;
}

.card {
  flex: 0 0 auto;
  min-width: 188px;
  height: 120px;
  border: 1px solid rgba(0, 0, 0, 0.35);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  letter-spacing: 0.02em;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  color: var(--black);
  opacity: 0.55;
  transition: opacity 0.2s ease;
}

.card.is-win {
  opacity: 1;
  background: var(--black);
  color: var(--lime);
  border-color: var(--black);
  font-weight: 700;
}

/* center marker line */
.wheel__marker {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: var(--black);
  z-index: 3;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.8);
}

/* edge fades so cards enter/exit cleanly */
.wheel__fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 90px;
  z-index: 2;
  pointer-events: none;
}
.wheel__fade--l { left: 0;  background: linear-gradient(90deg, #ccf404 0%, rgba(204,244,4,0) 100%); }
.wheel__fade--r { right: 0; background: linear-gradient(270deg, #ccf404 0%, rgba(204,244,4,0) 100%); }

/* the cover that hides the wheel while the timer runs */
.cover {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: var(--lime);
  border: 1px solid rgba(0, 0, 0, 0.28);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.cover.is-open {
  opacity: 0;
  transform: scale(1.02);
  pointer-events: none;
}

.cover__label,
.cover__hint {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.6;
}

.cover__time {
  font-size: clamp(40px, 9vw, 64px);
  font-weight: 800;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

/* winner banner */
.result {
  position: absolute;
  inset: 0;
  z-index: 5;
  border-radius: 14px;
  background: var(--black);
  color: var(--lime);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.result.is-show { opacity: 1; }

.result__label {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 700;
}

.result__wallet {
  font-size: clamp(16px, 4vw, 24px);
  font-weight: 800;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  word-break: break-all;
  padding: 0 20px;
  text-align: center;
}

/* ---------- cta ---------- */
.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.deposit {
  display: inline-block;
  background: var(--black);
  color: var(--lime);
  text-decoration: none;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.01em;
  padding: 24px 78px;
  border-radius: 14px;
  transition: transform 0.12s ease, box-shadow 0.2s ease;
}

.deposit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.deposit:active { transform: translateY(0); }

/* ---------- buy $quiver (top-right) ---------- */
.buy {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 40;
  background: var(--black);
  color: var(--lime);
  border: 1px solid var(--black);
  border-radius: 10px;
  padding: 11px 20px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.2s ease;
}

.buy:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}

@media (max-width: 520px) {
  .buy { top: 12px; left: 12px; padding: 9px 15px; font-size: 13px; }
}

/* ---------- deposit modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal__card {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: var(--black);
  color: var(--lime);
  border: 1px solid var(--lime);
  border-radius: 16px;
  padding: 40px 30px 32px;
  text-align: center;
  transform: translateY(8px) scale(0.98);
  transition: transform 0.2s ease;
}

.modal.is-open .modal__card {
  transform: translateY(0) scale(1);
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: var(--lime);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.15s ease;
}
.modal__close:hover { opacity: 1; }

.modal__label {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.6;
}

.modal__addr {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px auto 18px;
  padding: 12px 12px 12px 16px;
  border: 1px solid rgba(204, 244, 4, 0.35);
  border-radius: 10px;
}

.modal__addr-text {
  flex: 1;
  min-width: 0;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  word-break: break-all;
  text-align: left;
}

.modal__copy {
  flex: 0 0 auto;
  background: var(--lime);
  color: var(--black);
  border: none;
  border-radius: 7px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: opacity 0.15s ease;
}
.modal__copy:hover { opacity: 0.85; }
.modal__copy.is-copied { opacity: 0.7; }

.modal__deposit {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.5;
}

.modal__note {
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 0.1em;
  opacity: 0.6;
}

.pool {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.06em;
  opacity: 0.85;
  font-variant-numeric: tabular-nums;
}

.pool__dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--black);
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.35; }
  50%      { opacity: 1; }
}

/* ---------- footer ---------- */
.footer {
  display: flex;
  justify-content: center;
}

.footer__x {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--black);
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.03em;
  padding: 10px 18px;
  border: 1px solid var(--black);
  border-radius: 10px;
  transition: transform 0.12s ease, background 0.15s ease, color 0.15s ease;
}

.footer__x:hover {
  background: var(--black);
  color: var(--lime);
  transform: translateY(-1px);
}

.footer__x svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

@media (max-width: 520px) {
  .stage { height: 150px; }
  .card { min-width: 150px; height: 96px; font-size: 12px; }
  .deposit { font-size: 22px; padding: 20px 56px; }
}
