/* === VK Design System palette === */
:root {
  --vk-blue: #0077ff;
  --vk-blue-hover: #0061d1;
  --vk-blue-soft: #e5f0ff;

  --wb-magenta: #cb11ab;
  --wb-purple: #481173;

  --text: #000000;
  --text-secondary: #818c99;
  --text-tertiary: #a4adb6;

  --bg: #edeef0;          /* VK background_secondary */
  --bg-card: #ffffff;
  --bg-tertiary: #f0f1f3;

  --separator: rgba(0, 0, 0, .08);
  --line: #e7e8ec;

  --positive: #4bb34b;
  --destructive: #e64646;

  --shadow-card: 0 2px 0 rgba(0, 0, 0, .03);
  --shadow-modal: 0 10px 32px rgba(0, 0, 0, .16), 0 2px 8px rgba(0, 0, 0, .08);

  --r: 12px;
  --r-lg: 16px;
}

/* === Reset === */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  font-size: 15px;
  line-height: 1.34;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Запас снизу под фиксированный WB-навбар (24px иконка + 7×2 padding + 4×2 outer + safe-area) */
  padding-bottom: calc(54px + env(safe-area-inset-bottom));
}

img { max-width: 100%; display: block; }
a { color: var(--vk-blue); text-decoration: none; }

/* === Promo strip (between header and cover) === */
.promo-strip {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 16px;
  /* WB-фирменный градиент: magenta слева → purple справа */
  background: linear-gradient(90deg, #cb11ab 0%, #7b3bd6 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .2px;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(123, 59, 214, .25);
  z-index: 2;
}

.promo-strip::before {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, .28) 50%, transparent 100%);
  transform: skewX(-18deg);
  animation: promoShine 3.6s ease-in-out infinite;
}

@keyframes promoShine {
  0%   { left: -60%; }
  60%  { left: 120%; }
  100% { left: 120%; }
}

.promo-strip__icon {
  font-size: 16px;
  line-height: 1;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .18));
  animation: promoBob 1.8s ease-in-out infinite;
}

.promo-strip__icon:last-of-type { animation-delay: .9s; }

@keyframes promoBob {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50%      { transform: translateY(-3px) rotate(6deg); }
}

.promo-strip__text {
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .15);
}

@media (min-width: 600px) {
  .promo-strip { font-size: 15px; padding: 11px 16px; }
}

/* === VK-style top bar === */
.header {
  position: relative;
  background: var(--bg-card);
  border-bottom: .5px solid var(--separator);
}

.header__inner {
  max-width: 600px;
  margin: 0 auto;
  padding: 12px 16px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.header__avatar {
  position: relative;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 14px;
  background: transparent;
  padding: 0;
}

.header__avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  overflow: hidden;
}

.header__avatar-inner img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.header__avatar-inner--single img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.header__avatar-inner span {
  font-size: 9px;
  color: var(--text-tertiary);
  font-weight: 500;
}

.header__text {
  flex: 1;
  min-width: 0;
}

.header__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.25;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header__verified {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.header__verified svg {
  width: 14px;
  height: 14px;
  display: block;
}

.header__subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.3;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header__dot {
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-tertiary);
  vertical-align: middle;
  margin: 0 5px;
  position: relative;
  top: -1px;
}

/* App-store style rating under "Wildberries" title */
.header__subtitle--rating {
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
  margin-top: 3px;
}
.header__stars {
  display: inline-flex;
  align-items: center;
  gap: 1px;
}
.header__stars svg {
  display: block;
  filter: drop-shadow(0 .5px 0 rgba(0, 0, 0, .04));
}
.header__rating-count {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: -.1px;
}

/* Сабмета под рейтингом — мелкая текстовая строка с "Программа лояльности · Официальная акция" */
.header__subtitle--meta {
  font-size: 11.5px;
  margin-top: 2px;
  color: var(--text-tertiary);
}

.header__action {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
}

.header__action svg {
  width: 18px;
  height: 18px;
  fill: var(--text-secondary);
}

/* === Cover banner === */
.cover {
  max-width: 600px;
  margin: 8px auto 0;
  padding: 0 8px;
}

.cover__inner {
  position: relative;
  border-radius: var(--r-lg);
  background:
    linear-gradient(90deg, rgba(48, 10, 84, .92) 0%, rgba(75, 17, 115, .65) 35%, rgba(75, 17, 115, 0) 60%),
    url('../img/cover-bg.jpg?v=20260521a') calc(100% + 40px) center / cover no-repeat,
    linear-gradient(135deg, #5b1a8e 0%, #8a2bb0 50%, #c04cc4 100%);
  padding: 18px 18px 16px;
  min-height: 200px;
  color: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.cover__inner > * {
  position: relative;
  z-index: 1;
  max-width: 62%;
}

.cover__inner::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(255, 255, 255, .12) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}

.cover__brands {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.cover__brands img {
  height: 28px;
  width: auto;
  border-radius: 7px;
  background: #fff;
  padding: 3px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .12);
}

.cover__x {
  font-size: 14px;
  font-weight: 400;
  opacity: .75;
}

.cover__badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .3px;
  background: rgba(255, 255, 255, .18);
  backdrop-filter: blur(6px);
  padding: 4px 10px;
  border-radius: 100px;
  text-transform: uppercase;
}

.cover__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #4bff8a;
  box-shadow: 0 0 0 0 rgba(75, 255, 138, .8);
  animation: pulse 1.6s ease-out infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(75, 255, 138, .8); }
  70%  { box-shadow: 0 0 0 7px rgba(75, 255, 138, 0); }
  100% { box-shadow: 0 0 0 0 rgba(75, 255, 138, 0); }
}

.cover__title {
  font-size: 19px;
  font-weight: 700;
  margin-top: 8px;
  letter-spacing: -.2px;
  line-height: 1.2;
}

.cover__subtitle {
  font-size: 13px;
  margin-top: 4px;
  opacity: .9;
  line-height: 1.4;
}

/* === Main / cards === */
.main {
  max-width: 600px;
  margin: 0 auto;
  padding: 8px 8px 96px;
}

.card {
  background: var(--bg-card);
  border-radius: var(--r-lg);
  padding: 16px;
  margin-top: 8px;
  box-shadow: var(--shadow-card);
}

.first-page,
.second-page {
  background: var(--bg-card);
  border-radius: var(--r-lg);
  padding: 16px;
  margin-top: 8px;
  box-shadow: var(--shadow-card);
}

.first-page { padding: 18px 16px 14px; }
.second-page { display: none; }

/* === Date chip === */
.date-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px 5px 10px;
  margin: 2px auto 14px;
  background: linear-gradient(135deg, rgba(0, 119, 255, .08) 0%, rgba(203, 17, 171, .08) 100%);
  border: 1px solid rgba(0, 119, 255, .14);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--vk-blue);
  letter-spacing: .1px;
  white-space: nowrap;
}

.date-chip__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--positive);
  box-shadow: 0 0 0 0 rgba(75, 179, 75, .55);
  animation: pulse 1.6s ease-out infinite;
  flex-shrink: 0;
}

.date-chip__label { color: var(--vk-blue); }

.date-chip__sep {
  color: var(--text-tertiary);
  font-weight: 400;
  margin: 0 1px;
}

.date-chip__value {
  color: var(--text);
  font-weight: 600;
  text-transform: lowercase;
}

/* === Hero greeting === */
.hero-greeting {
  position: relative;
  text-align: center;
  margin: 2px 0 8px;
  padding: 0 8px;
}

.hero-greeting__title {
  display: inline-block;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.8px;
  margin: 0;
  background: linear-gradient(135deg, #0077ff 0%, #6a3df0 45%, #cb11ab 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-greeting__spark {
  display: inline-block;
  font-size: 18px;
  vertical-align: middle;
  position: relative;
  top: -8px;
  filter: drop-shadow(0 2px 6px rgba(255, 200, 50, .45));
  animation: sparkle 2.4s ease-in-out infinite;
}

.hero-greeting__spark--l { margin-right: 6px; animation-delay: .2s; }
.hero-greeting__spark--r { margin-left: 6px; animation-delay: 1.1s; }

@keyframes sparkle {
  0%, 100% { opacity: .55; transform: scale(.85) rotate(-6deg); }
  50%      { opacity: 1;   transform: scale(1.1) rotate(6deg); }
}

.hero-greeting__sub {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  margin: 6px auto 0;
  line-height: 1.35;
  max-width: 320px;
  text-wrap: balance;
}

.hero-greeting__sub strong {
  font-weight: 700;
  color: var(--wb-magenta);
}

.hero-greeting__prize-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 10px auto 2px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--wb-magenta);
}

.hero-greeting__line {
  flex: 0 0 36px;
  height: 1.5px;
  border-radius: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--wb-magenta) 100%);
}

.hero-greeting__line:last-child {
  background: linear-gradient(90deg, var(--wb-magenta) 0%, transparent 100%);
}

/* === Intro (card image) === */
.intro {
  font-size: 15px;
  color: var(--text);
  margin: 4px auto 14px;
  line-height: 1.45;
  max-width: 480px;
  text-align: center;
}

.intro-text {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.intro-card {
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
  margin: 10px auto 4px;
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(203, 17, 171, .25);
}

/* === Wheel === */
.wheel {
  position: relative;
  text-align: center;
  background: transparent;
  padding: 4px;
  margin: 8px 0 4px;
}

.wheel__image {
  width: 100%;
  max-width: 460px;
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 8px 18px rgba(15, 23, 42, .12));
}

.wheel__button {
  position: absolute;
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 25%;
  aspect-ratio: 1 / 1;
  max-width: 100px;
  background: url(../img/spin-btn.png) no-repeat center center;
  background-size: contain;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  background-color: transparent;
  filter: drop-shadow(0 4px 10px rgba(0, 119, 255, .3));
  transition: transform .15s ease;
  animation: spinHalo 1.6s ease-out infinite;
  z-index: 2;
}

.wheel__button::after {
  content: '👆';
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translate(-50%, 4px);
  font-size: 30px;
  line-height: 1;
  pointer-events: none;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .25));
  animation: tapHint 1.1s ease-in-out infinite;
}

@keyframes spinHalo {
  0%   { box-shadow: 0 0 0 0 rgba(0, 119, 255, .55); }
  70%  { box-shadow: 0 0 0 22px rgba(0, 119, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 119, 255, 0); }
}

@keyframes tapHint {
  0%, 100% { transform: translate(-50%, 4px); }
  50%      { transform: translate(-50%, -6px); }
}

.wheel__button:active { transform: translate(-50%, -50%) scale(.96); animation: none; }
.wheel__button:active::after { animation: none; opacity: 0; }
.wheel__button:disabled { cursor: default; opacity: .9; animation: none; }
.wheel__button:disabled::after { display: none; }
.wheel__button.is-spun { animation: none; box-shadow: none; }
.wheel__button.is-spun::after { display: none; }

.wheel__mockup {
  pointer-events: none;
  opacity: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(360deg) scale(0);
  max-width: 220px;
  z-index: 3;
  filter: drop-shadow(0 14px 30px rgba(203, 17, 171, .25));
}

/* Сияющий ореол под картой во время появления */
.wheel.has-prize::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 380px;
  height: 380px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 215, 0, .55) 0%, rgba(203, 17, 171, .35) 35%, rgba(111, 45, 189, 0) 70%);
  z-index: 2;
  pointer-events: none;
  animation: prizeGlow 1.6s ease-out forwards;
}

.wheel__mockup.active {
  animation:
    rotate 2s ease forwards,
    cardPulse 2.4s ease-in-out 2s infinite;
}

@keyframes rotate {
  0%   { transform: translate(-50%, -50%) rotate(360deg) scale(0); opacity: 0; }
  60%  { transform: translate(-50%, -50%) rotate(0deg)   scale(1.18); opacity: 1; }
  80%  { transform: translate(-50%, -50%) rotate(0deg)   scale(.95); opacity: 1; }
  100% { transform: translate(-50%, -50%) rotate(0deg)   scale(1); opacity: 1; }
}

@keyframes cardPulse {
  0%, 100% {
    transform: translate(-50%, -50%) rotate(0deg) scale(1);
    filter: drop-shadow(0 14px 30px rgba(203, 17, 171, .35));
  }
  50% {
    transform: translate(-50%, -50%) rotate(0deg) scale(1.04);
    filter: drop-shadow(0 22px 50px rgba(255, 84, 178, .65));
  }
}

@keyframes prizeGlow {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(.4); }
  60%  { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
  100% { opacity: .7; transform: translate(-50%, -50%) scale(1); }
}

.spinAround  { animation: spin  6.6s forwards; }
.spinAround2 { animation: spin2 6.6s forwards; }

@keyframes spin {
  0%   { transform: rotate(0); }
  90%  { transform: rotate(3130deg); }
  95%  { transform: rotate(3125deg); }
  100% { transform: rotate(3128deg); }
}

@keyframes spin2 {
  0%   { transform: rotate(3128deg); }
  90%  { transform: rotate(6415deg); }
  95%  { transform: rotate(6412deg); }
  100% { transform: rotate(6410deg); }
}

.transparent { opacity: 0; }

/* === Second Page === */
.congrats h4 {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.3px;
  color: var(--text);
}

.congrats h4 span {
  display: inline-block;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-top: 4px;
}

.share-content {
  max-width: 480px;
  margin: 0 auto;
  font-size: 14px;
}

.congrats-text {
  padding: 0;
  list-style: none;
  margin: 16px 0 12px;
  font-size: 14px;
  color: var(--text);
  counter-reset: step;
}

.congrats-text li {
  position: relative;
  padding: 0 0 0 32px;
  margin-bottom: 10px;
  line-height: 1.4;
  min-height: 22px;
}

.congrats-text li:last-child { margin-bottom: 0; }

.congrats-text li::before {
  content: counter(step);
  counter-increment: step;
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--vk-blue-soft);
  color: var(--vk-blue);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.congrats-text strong { font-weight: 600; }

/* Timer */
.timer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-tertiary);
  padding: 10px 14px;
  border-radius: var(--r);
  margin: 12px 0 14px;
}

.timer-label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.timer {
  display: inline-flex;
  align-items: baseline;
  font-size: 17px;
  font-weight: 700;
  color: var(--destructive);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.3px;
}

.timer__sep {
  margin: 0 1px;
  animation: blink 1s steps(2, start) infinite;
}

@keyframes blink { to { visibility: hidden; } }

/* Prize card — accent для WB */
.prize {
  background: var(--bg-card);
  border-radius: var(--r);
  padding: 14px;
  border: 1px solid var(--line);
  position: relative;
}

.prize__brands {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.prize__brands img {
  height: 22px;
  width: auto;
  border-radius: 5px;
}

.prize__brands span {
  color: var(--text-tertiary);
  font-weight: 400;
  font-size: 14px;
}

.prize table {
  width: 100%;
  border-collapse: collapse;
}

.prize__image-cell {
  padding: 0 14px 0 0;
  vertical-align: middle;
  width: 96px;
}

.prize__image-cell img {
  max-width: 90px;
  border-radius: 8px;
}

.prize__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.prize__title {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 400;
}

.prize__amount {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.4px;
  margin: 1px 0 6px;
}

.prize__meta {
  font-size: 13px;
  color: var(--text-secondary);
}

.prize__meta b { color: var(--text); font-weight: 600; }

.prize-date { color: var(--positive); font-weight: 600; }

.prize__count { color: var(--vk-blue); font-weight: 600; }

/* === VK-style primary button === */
.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  width: 100%;
  text-align: center;
  padding: 13px 18px;
  background: var(--vk-blue);
  color: #fff;
  text-decoration: none;
  border-radius: var(--r);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: .1px;
  transition: background-color .15s ease;
  min-height: 44px;
}

.share-btn:hover { background: var(--vk-blue-hover); }
.share-btn:active { background: #004c9e; }

.trust-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 10px 0 2px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: .1px;
}

.trust-badge__icon {
  display: inline-flex;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.trust-badge__icon svg {
  width: 14px;
  height: 14px;
  display: block;
}

/* === Comments — VK feed style === */
.comments-section {
  background: var(--bg-card);
  border-radius: var(--r-lg);
  padding: 12px 16px 8px;
  margin-top: 8px;
  box-shadow: var(--shadow-card);
}

.border-bottom { border-bottom: .5px solid var(--separator); }

.likes-summary {
  display: flex;
  align-items: center;
  padding: 4px 0 10px;
}

.likes-avatars { display: flex; }

.likes-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #fff;
  margin-left: -6px;
  object-fit: cover;
}

.likes-avatar:first-child { margin-left: 0; }

.likes-text {
  font-size: 13px;
  color: var(--text-secondary);
  margin-left: 8px;
}

.actions { padding: 8px 0; }

.actions__wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.action {
  display: flex;
  align-items: center;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 13px;
}

.share-action { margin-left: auto; }

.icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  background-image: url(../img/sprite.png);
  background-size: 100%;
  background-repeat: no-repeat;
  margin-right: 6px;
}

.icon--like  { background-position: 0 -60px; }
.icon--share { background-position: 0 -100px; }
.icon--views { background-position: 0 -160px; }

.action__count { color: var(--text-secondary); font-size: 14px; }

/* Comments list — column-reverse: новые .visible элементы появляются сверху, старые уезжают вниз */
.comments-list {
  display: flex;
  flex-direction: column-reverse;
}

.comment {
  display: none;
  padding: 12px 0;
  opacity: 0;
  transition: opacity .35s ease;
  border-bottom: .5px solid var(--separator);
}

/* В column-reverse последний-по-DOM элемент визуально ВВЕРХУ — у него убираем разделитель снизу,
   потому что под ним (визуально выше) ничего нет. */
.comment:last-of-type { border-bottom: 0; }

.comment.visible { display: flex; opacity: 1; }

.comment__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.comment__content { flex: 1; min-width: 0; }

.comment__author {
  font-size: 14px;
  color: var(--vk-blue);
  font-weight: 600;
}

.comment__author-ref { font-weight: 600; color: var(--vk-blue); }

.comment__text {
  font-size: 14px;
  line-height: 1.4;
  margin-top: 2px;
  color: var(--text);
}

.comment__meta {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.comment__actions {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 5px;
}

.comment__action {
  color: var(--text-secondary);
  cursor: pointer;
  font-weight: 500;
}

.comment__action:hover { color: var(--vk-blue); }

/* Show more */
.show-more { text-align: center; margin-top: 8px; }

.show-more__btn {
  background: none;
  border: 0;
  color: var(--vk-blue);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 0;
  cursor: pointer;
}

.disclaimer {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 10px;
  line-height: 1.45;
  text-align: center;
}

/* === Footer (VK-style send composer) === */
/* === WB-style bottom navigation (заменил VK-footer chat) === */
.wb-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: stretch;
  background: #ffffff;
  border-top: .5px solid var(--separator);
  padding: 4px 0 calc(4px + env(safe-area-inset-bottom));
  z-index: 10;
  box-shadow: 0 -2px 12px rgba(15, 31, 58, .06);
}

.wb-nav__item {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px 2px;
  text-decoration: none;
  color: #c8c8d1;
  user-select: none;
  transition: color .12s ease, transform .12s ease;
}

.wb-nav__item:hover,
.wb-nav__item:active { color: var(--wb-magenta); }

.wb-nav__item.is-active {
  color: var(--wb-magenta);
}

.wb-nav__icon {
  flex-shrink: 0;
  display: block;
  width: 24px;
  height: 24px;
}

.wb-nav__label { display: none; }

/* === WB-style floating chat FAB === */
.wb-fab {
  position: fixed;
  right: 16px;
  bottom: calc(70px + env(safe-area-inset-bottom));
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #7b3bd6 0%, #cb11ab 100%);
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 11;
  box-shadow:
    0 6px 18px rgba(123, 59, 214, .45),
    0 2px 6px rgba(15, 31, 58, .15);
  transition: transform .15s ease, box-shadow .15s ease;
}

.wb-fab:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(203, 17, 171, .5), 0 2px 6px rgba(15, 31, 58, .15); }
.wb-fab:active { transform: translateY(0) scale(.96); }
.wb-fab svg { display: block; }

/* === Confetti canvas (поверх модалок тоже) === */
#confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 1060;
  width: 100%;
  height: 100%;
}

/* === Utilities === */
.text-center { text-align: center; }
.font-bold   { font-weight: 700; }
.hidden      { display: none !important; }

/* === Responsive === */
@media (min-width: 600px) {
  body { font-size: 16px; }
  .subheadline { font-size: 26px; }
  .congrats h4 { font-size: 24px; }
  .prize__amount { font-size: 24px; }
  .cover__title { font-size: 22px; }
}
