/* ============================================================
   HipAwardsHop — страница голосования
   ============================================================ */

body.page-vote .site-header { position: absolute; }

/* ---------- шапка страницы ---------- */
.vote-head {
  padding: clamp(120px, 15vh, 164px) 0 clamp(34px, 5vw, 54px);
}
.vote-head h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 9vw, 92px);
  line-height: 0.86;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  margin-top: 18px;
}
.vote-head p {
  margin-top: 22px;
  max-width: 58ch;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.7;
}
.vote-head p b { color: var(--text); font-weight: 600; }

.vote-note {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted-2);
}
.vote-note span { display: inline-flex; align-items: center; gap: 7px; }
.vote-note svg { width: 14px; height: 14px; color: var(--fuchsia); }

/* ---------- липкая панель прогресса ---------- */
.vote-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(8, 4, 11, 0.82);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.vote-bar__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 64px;
}
.vote-bar__brand {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.vote-bar__brand svg { width: 16px; height: 16px; color: var(--fuchsia); }
.vote-bar__progress { flex: 1; min-width: 0; }
.vote-bar__meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  color: var(--muted-2);
  margin-bottom: 7px;
  letter-spacing: 0.04em;
}
.vote-bar__meta b { color: var(--text); font-weight: 600; }
.track {
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.09);
  overflow: hidden;
}
.track__fill {
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--deep), var(--fuchsia), var(--fuchsia-3));
  box-shadow: 0 0 14px rgba(255, 46, 136, 0.7);
  transition: width 0.45s var(--ease);
}
.vote-bar .btn { flex: 0 0 auto; }
@media (max-width: 620px) {
  .vote-bar__brand { display: none; }
  .vote-bar__inner { gap: 14px; height: 58px; }
  .vote-bar .btn { padding: 12px 16px; font-size: 13px; }
  .vote-bar__meta { font-size: 10px; }
}

/* ---------- уже проголосовал ---------- */
.already {
  display: none;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  margin-bottom: 8px;
  border: 1px solid rgba(255, 46, 136, 0.3);
  border-radius: 14px;
  background: rgba(255, 46, 136, 0.07);
  font-size: 13.5px;
  color: var(--fuchsia-3);
}
.already.is-visible { display: flex; }
.already svg { width: 18px; height: 18px; flex: 0 0 auto; }

/* ---------- номинация ---------- */
.cat {
  padding: clamp(40px, 5.4vw, 64px) 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 84px;
  transition: opacity 0.3s;
}
.cat:first-of-type { border-top-color: transparent; }
.cat__head {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 22px;
  margin-bottom: 26px;
}
@media (max-width: 640px) {
  .cat__head { grid-template-columns: 1fr; gap: 10px; }
  .cat__num { font-size: 34px; }
}
.cat__num {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 800;
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 46, 136, 0.55);
}
.cat__title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.4vw, 38px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.cat__icon {
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 46, 136, 0.12);
  border: 1px solid rgba(255, 46, 136, 0.28);
  color: var(--fuchsia-2);
  flex: 0 0 auto;
}
.cat__icon svg { width: 17px; height: 17px; }
.cat__desc {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  max-width: 66ch;
  margin-top: 8px;
}

.options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 760px) { .options { grid-template-columns: 1fr; } }

.opt {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0.008));
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s, transform 0.25s var(--ease), box-shadow 0.25s;
  min-height: 66px;
  -webkit-tap-highlight-color: transparent;
}
.opt:hover {
  border-color: rgba(255, 46, 136, 0.4);
  transform: translateY(-2px);
}
.opt input[type='radio'] {
  position: absolute;
  opacity: 0;
  width: 1px; height: 1px;
  pointer-events: none;
}
.opt__dot {
  flex: 0 0 auto;
  width: 19px; height: 19px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.26);
  display: grid;
  place-items: center;
  transition: border-color 0.25s, background 0.25s;
}
.opt__dot::after {
  content: '';
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--ink);
  transform: scale(0);
  transition: transform 0.25s var(--ease);
}
.opt__body { min-width: 0; }
.opt__name {
  display: block;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
}
.opt__note {
  display: block;
  font-size: 12px;
  color: var(--muted-2);
  margin-top: 3px;
  line-height: 1.35;
}
.opt.is-on {
  border-color: var(--fuchsia);
  background: linear-gradient(180deg, rgba(255, 46, 136, 0.16), rgba(255, 46, 136, 0.04));
  box-shadow: 0 0 0 1px rgba(255, 46, 136, 0.35), 0 18px 44px -26px rgba(255, 46, 136, 0.9);
  transform: none;
}
.opt.is-on .opt__dot { border-color: var(--fuchsia); background: var(--fuchsia); }
.opt.is-on .opt__dot::after { transform: scale(1); }

/* свой вариант */
.opt--custom { align-items: flex-start; }
.opt--custom .opt__dot { margin-top: 2px; }
.opt--custom .opt__body { flex: 1; }
.opt__input {
  display: block;
  width: 100%;
  margin-top: 9px;
  padding: 9px 11px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  font-size: 14px;
  color: var(--text);
  transition: border-color 0.2s, background 0.2s;
}
.opt__input::placeholder { color: var(--muted-2); }
.opt__input:focus {
  outline: none;
  border-color: var(--fuchsia);
  background: rgba(0, 0, 0, 0.5);
}
.opt.is-on .opt__input { border-color: rgba(255, 46, 136, 0.5); }

/* свободная форма (клип) */
.freeform {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.008));
  transition: border-color 0.25s;
}
.freeform:focus-within { border-color: rgba(255, 46, 136, 0.55); }
.freeform label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 10px;
}
.freeform textarea {
  width: 100%;
  min-height: 92px;
  resize: vertical;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 13px 15px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  transition: border-color 0.2s, background 0.2s;
}
.freeform textarea::placeholder { color: var(--muted-2); }
.freeform textarea:focus { outline: none; border-color: var(--fuchsia); background: rgba(0, 0, 0, 0.45); }
.freeform__foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  font-size: 11.5px;
  color: var(--muted-2);
}

/* пропустить */
.cat__foot {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
  min-height: 30px;
}
.skip {
  font-size: 12.5px;
  color: var(--muted-2);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.18);
  padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
}
.skip:hover { color: var(--text); border-color: var(--fuchsia); }
.cat__skipped {
  display: none;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 99px;
}
.cat.is-skipped .cat__skipped { display: inline-flex; }
.cat.is-skipped .options,
.cat.is-skipped .freeform { opacity: 0.32; filter: grayscale(0.4); }
.cat.is-skipped .options,
.cat.is-skipped .freeform { pointer-events: none; }
.cat.is-skipped .cat__skipped { border-color: rgba(255, 46, 136, 0.4); color: var(--fuchsia-3); }

/* ---------- отправка ---------- */
.submit-block {
  margin-top: 10px;
  padding: clamp(26px, 4vw, 44px);
  border: 1px solid rgba(255, 46, 136, 0.24);
  border-radius: 26px;
  background:
    radial-gradient(560px 240px at 12% 0%, rgba(255, 46, 136, 0.16), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.008));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
}
@media (max-width: 800px) { .submit-block { grid-template-columns: 1fr; align-items: stretch; } }
.submit-block h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.submit-block p { color: var(--muted); font-size: 13.5px; margin-top: 10px; max-width: 52ch; }
.field { margin-top: 20px; max-width: 360px; }
.field label {
  display: block;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 8px;
}
.field input {
  width: 100%;
  padding: 13px 15px;
  border-radius: 11px;
  border: 1px solid var(--line-strong);
  background: rgba(0, 0, 0, 0.32);
  font-size: 15px;
  transition: border-color 0.2s;
}
.field input:focus { outline: none; border-color: var(--fuchsia); }
.submit-actions { display: flex; flex-direction: column; gap: 10px; min-width: 220px; }
.submit-actions .btn { width: 100%; }
.submit-actions small { font-size: 11px; color: var(--muted-2); text-align: center; line-height: 1.5; }

/* ---------- успех ---------- */
.success {
  position: relative;
  padding: clamp(40px, 7vw, 80px) clamp(24px, 5vw, 60px);
  border: 1px solid rgba(255, 46, 136, 0.3);
  border-radius: 30px;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(255, 46, 136, 0.22), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.008));
  margin-bottom: 60px;
}
.success__icon {
  width: 84px; height: 84px;
  margin: 0 auto 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 35% 25%, #ff9fcf, var(--fuchsia) 45%, var(--deep));
  box-shadow: 0 0 60px rgba(255, 46, 136, 0.6);
  color: #fff;
  animation: pop 0.6s var(--ease) both;
}
.success__icon svg { width: 36px; height: 36px; }
@keyframes pop {
  0% { transform: scale(0.5); opacity: 0; }
  60% { transform: scale(1.06); }
  100% { transform: scale(1); opacity: 1; }
}
.success h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5.6vw, 64px);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}
.success p {
  color: var(--muted);
  margin: 20px auto 0;
  max-width: 48ch;
  font-size: 15px;
  line-height: 1.7;
}
.success__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 32px;
}
.success__code {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  font-size: 11.5px;
  color: var(--muted-2);
  letter-spacing: 0.08em;
}
.success__code b { color: var(--fuchsia-3); font-weight: 600; letter-spacing: 0.04em; }

/* конфетти */
.confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.confetti i {
  position: absolute;
  top: -12px;
  width: 7px; height: 11px;
  border-radius: 2px;
  animation: fall var(--dur, 2.6s) linear var(--delay, 0s) forwards;
  opacity: 0.9;
}
@keyframes fall {
  0% { transform: translate3d(0, -20px, 0) rotate(0deg); opacity: 1; }
  100% { transform: translate3d(var(--dx, 0), 560px, 0) rotate(var(--rot, 540deg)); opacity: 0; }
}

/* ---------- диалог ---------- */
dialog {
  width: min(440px, calc(100% - 32px));
  padding: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: var(--panel-2);
  color: var(--text);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7);
}
dialog::backdrop { background: rgba(5, 2, 7, 0.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
dialog h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
dialog p { color: var(--muted); font-size: 14px; line-height: 1.6; }
dialog .dialog-actions { display: flex; gap: 10px; margin-top: 22px; justify-content: flex-end; flex-wrap: wrap; }

/* ---------- тост ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 90;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  padding: 12px 20px;
  border-radius: 12px;
  background: var(--panel-2);
  border: 1px solid var(--line-strong);
  font-size: 13.5px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  transition: opacity 0.3s, transform 0.3s var(--ease);
  max-width: calc(100% - 32px);
  text-align: center;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- панель снизу (моб.) ---------- */
.mobile-submit {
  display: none;
  position: fixed;
  inset: auto 0 0;
  z-index: 45;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(8, 4, 11, 0.9);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-top: 1px solid var(--line);
  gap: 12px;
  align-items: center;
}
.mobile-submit .btn { flex: 0 0 auto; padding: 12px 16px; font-size: 13px; }
.mobile-submit__text { font-size: 11px; color: var(--muted); line-height: 1.3; flex: 1 1 auto; min-width: 0; }
.mobile-submit__text b { display: block; color: var(--text); font-size: 13px; white-space: nowrap; }
@media (max-width: 380px) {
  .mobile-submit { padding-inline: 12px; gap: 8px; }
  .mobile-submit__text { font-size: 10px; }
  .mobile-submit .btn { padding: 11px 13px; font-size: 12px; }
}
@media (max-width: 620px) {
  .mobile-submit { display: flex; }
  .vote-page { padding-bottom: 78px; }
  .vote-bar { display: none; }
}

/* ---------- вход через Telegram ---------- */
body.tg-locked { overflow: hidden; }

.tg-gate {
  position: fixed;
  inset: 0;
  z-index: 160;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: auto;
  background:
    radial-gradient(760px 520px at 50% 0%, rgba(255, 46, 136, 0.18), transparent 62%),
    #060308;
}
.tg-gate__card {
  width: min(430px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  padding: 38px 26px 28px;
  border: 1px solid rgba(255, 46, 136, 0.24);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.008));
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.72);
}
.tg-gate__star {
  width: 44px;
  height: 44px;
  color: var(--fuchsia);
  filter: drop-shadow(0 0 20px rgba(255, 46, 136, 0.7));
}
.tg-gate__badge {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid rgba(255, 46, 136, 0.35);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fuchsia-2);
}
.tg-gate__title {
  font-family: var(--font-display);
  font-size: clamp(30px, 8vw, 40px);
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  margin-top: 2px;
}
.tg-gate__text {
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 32ch;
  margin: 0;
}
.tg-gate__widget {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 8px 0 2px;
  transition: opacity 0.2s;
}
.tg-gate__widget.is-busy { opacity: 0.45; pointer-events: none; }

.tw-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 12px;
  background: #9146ff;
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(145, 70, 255, 0.32);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.tw-btn svg { width: 19px; height: 19px; }
.tw-btn:hover {
  background: #a970ff;
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(145, 70, 255, 0.42);
}
.tw-btn:active { transform: translateY(0); }

.tg-gate__loading { font-size: 12px; color: var(--muted); }
.tg-gate__err {
  min-height: 18px;
  margin: 0;
  font-size: 12.5px;
  line-height: 1.4;
  color: #ff6b8a;
}
.tg-gate__hint {
  margin: 0;
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
  opacity: 0.62;
  max-width: 34ch;
}

.tg-chip {
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--muted);
}
.tg-chip b { color: var(--text); font-weight: 600; }
.tg-chip button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--fuchsia-2);
  font-size: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
