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

body {
  background: #050505;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 1rem 0 2rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.device {
  background: #0d0d0d;
  border-radius: 24px;
  padding: 1.5rem 1.25rem 1.5rem;
  min-height: 640px;
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  border: 0.5px solid #222;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 1rem;
}

.site-name { font-size: 13px; color: #b3b3b3; letter-spacing: 0.08em; }
.site-name span {
  color: #e8c96a;
  text-shadow: 0 0 8px rgba(232, 201, 106, 0.55), 0 0 2px rgba(232, 201, 106, 0.8);
}

.round-badge {
  font-size: 11px;
  color: #9a9a9a;
  background: #1a1a1a;
  border: 0.5px solid #2a2a2a;
  border-radius: 10px;
  padding: 3px 10px;
}

.progress-wrap { width: 100%; margin-bottom: 1.25rem; }

.progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #8c8c8c;
  margin-bottom: 5px;
}

.progress-track {
  width: 100%;
  height: 3px;
  background: #1a1a1a;
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: #e8c96a;
  border-radius: 2px;
  transition: width 0.4s ease;
}

.progress-ends {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #6a6a6a;
  margin-top: 4px;
}

.prize-badge {
  background: #1a1a1a;
  border: 0.5px solid #333;
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 12px;
  color: #cfcfcf;
  margin-bottom: 1.5rem;
}

.prize-amt { color: #e8c96a; font-weight: 500; }

.counter {
  font-size: 52px;
  font-weight: 500;
  color: #fff;
  letter-spacing: -2px;
  line-height: 1;
  margin-bottom: 4px;
}

.counter-label {
  font-size: 12px;
  color: #9a9a9a;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

.stats-row {
  display: flex;
  gap: 10px;
  margin-bottom: 1.75rem;
}

.stat {
  background: #141414;
  border: 0.5px solid #222;
  border-radius: 8px;
  padding: 6px 14px;
  text-align: center;
}

.stat-val { font-size: 13px; color: #e2e2e2; font-weight: 500; }
.stat-lbl { font-size: 10px; color: #8c8c8c; margin-top: 1px; }

.btn-area {
  width: 160px;
  height: 160px;
  margin-bottom: 1rem;
  position: relative;
}

.ring {
  position: absolute;
  top: 0; left: 0;
  width: 160px; height: 160px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.07);
  pointer-events: none;
}

.circle-btn {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  position: absolute;
  top: 10px; left: 10px;
  transition: transform 0.08s;
}

.circle-btn:active { transform: scale(0.95); }

.tap-btn { background: #fff; }
.tap-text { font-size: 18px; font-weight: 500; color: #0d0d0d; }
.tap-sub { font-size: 11px; color: #555; margin-top: 2px; }

/* round is over / paused - button still clickable (re-opens the info popup) */
.circle-btn.is-over { background: #2a2a2a; }
.circle-btn.is-over .tap-text { color: #e8c96a; }
.circle-btn.is-over .tap-sub { color: #999; }

.roundover-bar {
  width: 100%;
  max-width: 320px;
  margin: 4px auto 0;
  padding: 10px 14px;
  border: 1px solid #5c5023;
  background: #241f0f;
  color: #e8c96a;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  text-align: center;
}
.roundover-bar:hover { background: #2c2612; }

.sponsor-btn { background: #e8c96a; }
.sponsor-label { font-size: 10px; color: rgba(0,0,0,0.45); margin-bottom: 3px; }
.sponsor-text { font-size: 13px; font-weight: 500; color: #0d0d0d; text-align: center; padding: 0 10px; line-height: 1.4; }

.hidden { display: none !important; }

.cd-wrap { width: 100%; margin-bottom: 1rem; }
.cdbar-wrap { width: 100%; height: 2px; background: #1a1a1a; border-radius: 2px; overflow: hidden; }
.cdbar { height: 100%; background: #e8c96a; transition: width 0.1s linear; }
.cd-txt { font-size: 10px; color: #777; margin-top: 5px; text-align: center; }

.spacer { height: 1rem; }

.feed-label {
  font-size: 11px;
  color: #8c8c8c;
  align-self: flex-start;
  margin-bottom: 6px;
  letter-spacing: 0.05em;
}

.feed {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-height: 80px;
}

.feed-empty { font-size: 12px; color: #777; padding: 8px 0; }

.feed-item {
  display: flex;
  justify-content: space-between;
  padding: 7px 10px;
  background: #141414;
  border-radius: 8px;
  border: 0.5px solid #222;
}

.feed-user { font-size: 12px; color: #a8a8a8; font-family: monospace; }
.feed-time { font-size: 11px; color: #888; }
.feed-item.fresh .feed-user { color: #e6e6e6; }
.feed-you { color: #e8c96a !important; }

.sponsor-cta {
  width: 100%;
  margin-top: 1.5rem;
  padding: 14px 16px;
  border: 1px solid #333;
  border-radius: 12px;
  background: #121212;
  text-align: center;
}
.sponsor-cta-title {
  font-size: 12px;
  color: #e8c96a;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.sponsor-cta-text { font-size: 12px; color: #b0b0b0; line-height: 1.6; margin-bottom: 10px; }
.sponsor-cta-btn {
  display: inline-block;
  padding: 9px 16px;
  border-radius: 8px;
  background: #e8c96a;
  color: #0d0d0d;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.footer-note {
  font-size: 10px;
  color: #8a8a8a;
  margin-top: 1.25rem;
  text-align: center;
  line-height: 1.7;
}

.footer-note a { color: #c2c2c2; }

.winner-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  z-index: 100;
}

.winner-box {
  background: #141414;
  border: 0.5px solid #333;
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  max-width: 320px;
}

.winner-emoji { font-size: 48px; margin-bottom: 1rem; }
.winner-title { font-size: 22px; color: #e8c96a; font-weight: 500; margin-bottom: 8px; }
.winner-sub { font-size: 14px; color: #d0d0d0; margin-bottom: 1rem; }
.winner-note { font-size: 12px; color: #9c9c9c; line-height: 1.6; margin-top: 1rem; }

.winner-overlay #confetti {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.winner-box { position: relative; z-index: 2; }

.overlay-close {
  position: fixed;
  top: 12px;
  right: 16px;
  z-index: 3;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #444;
  background: #1a1a1a;
  color: #ccc;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
}
.overlay-close:hover { border-color: #e8c96a; color: #e8c96a; }

.claim-form { display: flex; flex-direction: column; text-align: left; margin-top: 0.5rem; }

.claim-label { font-size: 11px; color: #aeaeae; margin-bottom: 5px; }
.claim-opt { color: #8a8a8a; }

.claim-input {
  background: #0d0d0d;
  border: 0.5px solid #333;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  color: #eee;
  margin-bottom: 12px;
  font-family: inherit;
  width: 100%;
}
.claim-input:focus { outline: none; border-color: #e8c96a; }
.claim-input::placeholder { color: #666; }

.claim-error {
  font-size: 11px;
  color: #e06a6a;
  margin: -4px 0 10px;
  line-height: 1.5;
}

.claim-submit {
  background: #e8c96a;
  border: none;
  border-radius: 10px;
  padding: 12px;
  font-size: 13px;
  font-weight: 600;
  color: #0d0d0d;
  cursor: pointer;
  font-family: inherit;
}
.claim-submit:disabled { opacity: 0.5; cursor: default; }

.share-row { display: flex; gap: 8px; margin-top: 1rem; }

.share-btn {
  flex: 1;
  background: #1a1a1a;
  border: 0.5px solid #333;
  border-radius: 8px;
  padding: 10px;
  font-size: 12px;
  font-weight: 500;
  color: #ddd;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  font-family: inherit;
}
.share-btn:hover { border-color: #e8c96a; color: #e8c96a; }

.sponsor-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.93);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  border-radius: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
}

.sponsor-overlay.visible { opacity: 1; pointer-events: all; }

.sponsor-card {
  width: 100%;
  background: #141414;
  border: 0.5px solid #2a2a2a;
  border-radius: 18px;
  overflow: hidden;
}

.sponsor-img {
  width: 100%;
  height: 130px;
  background: #1e1e1e;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  border-bottom: 0.5px solid #2a2a2a;
}

.sponsor-img-icon { font-size: 36px; opacity: 0.12; }
.sponsor-img-txt { font-size: 11px; color: #555; letter-spacing: 0.1em; }

.sponsor-body { padding: 1rem 1.25rem; }
.sponsor-tag { font-size: 10px; color: #8c8c8c; letter-spacing: 0.08em; margin-bottom: 6px; }
.sponsor-title { font-size: 15px; color: #fff; font-weight: 500; margin-bottom: 6px; }
.sponsor-desc { font-size: 12px; color: #9c9c9c; line-height: 1.6; margin-bottom: 1rem; }

.sponsor-visit {
  display: block;
  width: 100%;
  padding: 20px;
  background: #e8c96a;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  color: #0d0d0d;
  cursor: pointer;
  text-align: center;
  margin-bottom: 10px;
}

.cdbar-wrap { width: 100%; height: 2px; background: #222; border-radius: 2px; overflow: hidden; }
.cdbar { height: 100%; background: #e8c96a; transition: width 0.1s linear; }
.cd-row { display: flex; justify-content: space-between; font-size: 10px; color: #808080; margin-top: 5px; }
.cd-auto { color: #6a6a6a; }
