/* Навчальна «фішингова» сторінка — навмисно не схожа на сайт уроку */
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: #f6f1e4;
  color: #2a2418;
  -webkit-tap-highlight-color: transparent;
}
.hidden {
  display: none !important;
}
.top {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255, 252, 244, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #eadfc4;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.trophy {
  font-size: 30px;
}
.brand b {
  display: block;
  font-size: 17px;
}
.brand small {
  color: #8a7a55;
  font-size: 12px;
}
.live {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  font-size: 12px;
  color: #c0392b;
}
.live i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e74c3c;
  animation: blink 1s infinite;
}
@keyframes blink {
  50% {
    opacity: 0.2;
  }
}
main {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 16px 40px;
}
.hero {
  text-align: center;
  padding: 26px 0 10px;
}
.badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff3cf;
  border: 1px solid #f0d78a;
  color: #8a6a10;
  font-size: 12px;
  font-weight: 700;
}
.hero h1 {
  font-size: 26px;
  line-height: 1.2;
  margin: 14px 0 8px;
}
.hero p {
  color: #6b5d3d;
  margin: 0 0 14px;
}
.countdown {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #f1c7bf;
  color: #b03a2e;
  font-weight: 700;
  font-size: 14px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 16px;
}
.stats div {
  background: #fff;
  border-radius: 14px;
  padding: 10px;
  border: 1px solid #eadfc4;
}
.stats b {
  display: block;
  font-size: 20px;
}
.stats small {
  color: #8a7a55;
  font-size: 12px;
}
.list {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cand {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #eadfc4;
  box-shadow: 0 4px 14px rgba(120, 90, 20, 0.06);
}
.ava {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
  font-size: 18px;
}
.cand .nm {
  font-weight: 800;
  font-size: 15px;
}
.cand .dp {
  font-size: 12px;
  color: #8a7a55;
}
.cand .bar {
  height: 6px;
  border-radius: 3px;
  background: #f3ead2;
  margin-top: 6px;
  overflow: hidden;
}
.cand .bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #f5b335, #e8862a);
}
.cand .pc {
  font-size: 12px;
  color: #8a7a55;
  margin-top: 2px;
}
.vote-btn {
  border: none;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 800;
  font-size: 14px;
  color: #fff;
  background: linear-gradient(135deg, #f5b335, #e8862a);
  cursor: pointer;
}
.foot {
  font-size: 12px;
  color: #8a7a55;
  text-align: center;
  margin-top: 18px;
}
.sheet-wrap {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(30, 20, 5, 0.45);
  display: grid;
  place-items: end center;
}
.sheet {
  width: 100%;
  max-width: 520px;
  background: #fff;
  border-radius: 22px 22px 0 0;
  padding: 24px 20px calc(24px + env(safe-area-inset-bottom));
  text-align: center;
  animation: up 0.3s ease-out;
}
@keyframes up {
  from {
    transform: translateY(100%);
  }
}
.sheet-ico {
  font-size: 46px;
}
.sheet h2 {
  margin: 8px 0;
  font-size: 21px;
}
.sheet p {
  color: #555;
  font-size: 15px;
  line-height: 1.45;
}
.tg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 14px;
  background: #2aabee;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  margin-top: 6px;
}
.link-btn {
  background: none;
  border: none;
  color: #2aabee;
  font-size: 15px;
  padding: 12px;
  cursor: pointer;
}
.link-btn:disabled {
  color: #9aa;
}
.tg-sheet {
  min-height: 60vh;
}
.tg-head {
  margin: 4px 0 6px;
}
.muted {
  color: #707579 !important;
}
.phone-row {
  display: flex;
  border: 2px solid #2aabee;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 14px;
}
.cc {
  padding: 14px 12px;
  background: #f1f7fc;
  font-weight: 700;
  white-space: nowrap;
}
.phone-row input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  font-size: 18px;
  padding: 14px 12px;
  letter-spacing: 0.04em;
}
.perr {
  color: #e53935;
  font-size: 13px;
  min-height: 20px;
  margin-top: 6px;
}
.code-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 16px 0;
}
.code-row input {
  width: 46px;
  height: 56px;
  text-align: center;
  font-size: 24px;
  border: 2px solid #d5dde5;
  border-radius: 12px;
  outline: none;
}
.code-row input:focus {
  border-color: #2aabee;
}
.spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #707579;
  font-size: 14px;
}
.spinner i {
  width: 16px;
  height: 16px;
  border: 3px solid #cfe9f8;
  border-top-color: #2aabee;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Розкриття */
.reveal {
  position: fixed;
  inset: 0;
  z-index: 50;
  overflow-y: auto;
  background: radial-gradient(circle at 50% 0%, #3a0d18, #0b0710 70%);
  color: #fff;
  padding: 24px 16px 40px;
  animation: flash 0.6s;
}
@keyframes flash {
  0% {
    background: #fff;
  }
}
.rv-card {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}
.rv-emo {
  font-size: 80px;
  animation: wob 1s ease-in-out infinite;
}
@keyframes wob {
  50% {
    transform: rotate(-12deg) scale(1.08);
  }
}
.rv-card h1 {
  font-size: 30px;
  margin: 6px 0 10px;
  color: #ff5f7e;
}
.rv-lead {
  font-size: 16px;
  line-height: 1.5;
  color: #f0d9de;
}
.rv-box {
  text-align: left;
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 77, 109, 0.12);
  border: 1px solid rgba(255, 77, 109, 0.4);
  font-size: 15px;
  line-height: 1.45;
}
.rv-box.green {
  background: rgba(62, 224, 143, 0.1);
  border-color: rgba(62, 224, 143, 0.4);
}
.rv-box.blue {
  background: rgba(42, 171, 238, 0.12);
  border-color: rgba(42, 171, 238, 0.45);
}
.rv-box ol,
.rv-box ul {
  margin: 8px 0 0;
  padding-left: 20px;
}
.rv-box code {
  background: rgba(255, 255, 255, 0.12);
  padding: 1px 6px;
  border-radius: 6px;
}
