:root {
  --bg: #111;
  --panel: #000;
  --yellow: #f5c400;
  --white: #fff;
  --muted: #9e9e9e;
}

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

body {
  background: var(--bg);
  color: var(--white);
  font-family: "Segoe UI", Roboto, Arial, Helvetica, sans-serif;
  min-height: 100vh;
  display: flex;
  justify-content: center;
}

.wrap {
  width: 100%;
  max-width: 760px;
  padding: 24px 20px 48px;
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 36px;
}

.logo { font-size: 28px; }

.censor-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
  user-select: none;
}
.censor-toggle input { accent-color: var(--yellow); width: 16px; height: 16px; cursor: pointer; }

h1 {
  font-size: clamp(28px, 6vw, 44px);
  font-weight: 800;
  line-height: 1.15;
}

.quip {
  color: var(--muted);
  font-size: clamp(15px, 3vw, 18px);
  margin-top: 10px;
}

/* ---- прогресс-бар в стилистике референса ---- */
.bar-outer { margin: 40px 0 8px; position: relative; }

.bar-title {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--panel);
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
  padding: 4px 14px;
  border-radius: 8px;
  z-index: 2;
  white-space: nowrap;
}

.bar-frame {
  background: var(--panel);
  border-radius: 26px;
  padding: 14px;
}

.bar-track {
  border: 4px solid var(--yellow);
  border-radius: 14px;
  padding: 6px;
  background: var(--panel);
}

.bar-fill {
  height: 56px;
  width: 0%;
  background: var(--yellow);
  border-radius: 7px;
  position: relative;
  transition: width 0.6s ease;
  /* незаполненная часть — белая, как в референсе */
  box-shadow: none;
}

.bar-track { background: var(--white); border-radius: 14px; }

.bar-stats {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  font-variant-numeric: tabular-nums;
}

.pct { font-size: 22px; font-weight: 800; color: var(--yellow); }
.days-left { color: var(--muted); font-size: 15px; align-self: center; }

/* ---- офферы ---- */
.offers { margin-top: 48px; }
.offers h2, .share h2 { font-size: 22px; margin-bottom: 16px; }

.offers-grid { display: grid; gap: 14px; }

.offer {
  background: #1b1b1b;
  border: 1px solid #2a2a2a;
  border-radius: 14px;
  padding: 16px 18px;
  display: block;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease;
}
.offer:hover { border-color: var(--yellow); }

.offer .sponsor {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.offer h3 { font-size: 18px; margin: 6px 0 4px; }
.offer p { color: var(--muted); font-size: 14px; line-height: 1.45; }
.offer .cta {
  display: inline-block;
  margin-top: 10px;
  color: var(--panel);
  background: var(--yellow);
  font-weight: 700;
  font-size: 14px;
  padding: 7px 14px;
  border-radius: 8px;
}

.offer.skeleton { height: 120px; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.5; } }

.geo-note { color: var(--muted); font-size: 12px; margin-top: 10px; }

/* ---- шеринг ---- */
.share { margin-top: 48px; }

.share-preview {
  background: #1b1b1b;
  border-left: 3px solid var(--yellow);
  border-radius: 0 10px 10px 0;
  color: var(--muted);
  font-size: 14px;
  padding: 12px 14px;
  margin-bottom: 16px;
}

.share-buttons { display: flex; flex-wrap: wrap; gap: 10px; }

.btn {
  background: var(--yellow);
  color: var(--panel);
  border: none;
  font-weight: 700;
  font-size: 14px;
  font-family: inherit;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.btn:hover { filter: brightness(1.08); }

.btn-ghost {
  background: transparent;
  color: var(--yellow);
  border: 1px solid var(--yellow);
}

.foot { margin-top: 56px; color: #555; font-size: 12px; text-align: center; }
