/* Widget War contest */

.ww-kicker {
  margin: 0 0 0.45rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #e8c36a;
}

.ww-home-alert {
  position: relative;
  z-index: 4;
  margin: 0;
  border-bottom: 1px solid rgba(232, 195, 106, 0.22);
  background:
    linear-gradient(90deg, rgba(232, 195, 106, 0.12), rgba(91, 163, 245, 0.06) 55%, rgba(244, 114, 182, 0.06)),
    rgba(8, 11, 18, 0.96);
}

.ww-home-alert__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  flex-wrap: wrap;
  max-width: 88rem;
  margin: 0 auto;
  padding: 0.45rem 1rem;
}

.ww-home-alert__lead {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex: 1 1 18rem;
  min-width: 0;
}

.ww-home-alert__kicker {
  flex: 0 0 auto;
  margin: 0;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(232, 195, 106, 0.35);
  background: rgba(232, 195, 106, 0.1);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #e8c36a;
  white-space: nowrap;
}

.ww-home-alert__copy {
  margin: 0;
  min-width: 0;
  font-size: 0.78rem;
  line-height: 1.35;
  opacity: 0.9;
}

.ww-home-alert__copy strong {
  color: #f5e6b8;
}

.ww-home-alert__meta {
  opacity: 0.72;
  white-space: nowrap;
}

.ww-home-alert__aside {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex: 0 1 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.ww-home-alert .ww-count {
  gap: 0;
}

.ww-home-alert .ww-count__label {
  display: none;
}

.ww-home-alert .ww-count__units {
  gap: 0.28rem;
}

.ww-home-alert .ww-count__units li {
  min-width: 2.15rem;
  padding: 0.12rem 0.22rem;
  border-radius: 0.45rem;
}

.ww-home-alert .ww-count__units strong {
  font-size: 0.76rem;
}

.ww-home-alert .ww-count__units span {
  font-size: 0.48rem;
}

.ww-home-alert__actions {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 0.35rem;
}

.ww-home-alert__btn {
  padding: 0.32rem 0.72rem !important;
  font-size: 0.72rem !important;
  line-height: 1.2;
  white-space: nowrap;
}

.ww-market-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(18rem, 0.95fr);
  gap: 1.5rem;
  margin: 1.15rem 0 0.35rem;
  padding: 1.35rem 1.4rem 1.25rem;
  border-radius: 1.45rem;
  border: 1px solid rgba(232, 195, 106, 0.28);
  background:
    radial-gradient(ellipse 70% 90% at 0% 0%, rgba(232, 195, 106, 0.16), transparent 55%),
    radial-gradient(ellipse 50% 70% at 100% 100%, rgba(91, 163, 245, 0.12), transparent 50%),
    linear-gradient(165deg, rgba(16, 20, 30, 0.96), rgba(8, 10, 16, 0.94));
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
  overflow: hidden;
}

.ww-market-hero h2 {
  font-family: Inter, system-ui, sans-serif;
  font-size: clamp(1.45rem, 3vw, 2.05rem);
  line-height: 1.15;
  margin: 0 0 0.55rem;
  color: #f6edd2;
}

.ww-market-hero p {
  margin: 0 0 1rem;
  opacity: 0.78;
  line-height: 1.55;
}

.ww-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.ww-stats li {
  padding: 0.7rem 0.8rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 10, 16, 0.45);
}

.ww-stats strong {
  display: block;
  font-size: 1.35rem;
  color: #f5e6b8;
  line-height: 1;
}

.ww-stats span {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.55;
}

.ww-market-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.ww-count {
  display: grid;
  gap: 0.35rem;
}

.ww-count__label {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #e8c36a;
}

.ww-count__units {
  display: flex;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ww-count__units li {
  min-width: 3.1rem;
  padding: 0.35rem 0.4rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(232, 195, 106, 0.22);
  background: rgba(0, 0, 0, 0.28);
  text-align: center;
}

.ww-count__units strong {
  display: block;
  font-variant-numeric: tabular-nums;
  font-size: 1.05rem;
  color: #fff6d8;
  line-height: 1.1;
}

.ww-count__units span {
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.5;
}

.ww-count--sm .ww-count__units li { min-width: 2.55rem; padding: 0.22rem 0.28rem; }
.ww-count--sm .ww-count__units strong { font-size: 0.92rem; }
.ww-count--lg .ww-count__units li { min-width: 4.4rem; padding: 0.7rem 0.55rem; }
.ww-count--lg .ww-count__units strong { font-size: 1.7rem; }

.ww-count.is-done .ww-count__units { display: none; }
.ww-count.is-done .ww-count__done { display: block; margin: 0; color: #e8c36a; }
.ww-count__done[hidden] { display: none; }

.ww-slider { position: relative; }
.ww-slider__viewport { overflow: hidden; }
.ww-slider__track {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 0.2rem;
}
.ww-slider__track::-webkit-scrollbar { display: none; }

.ww-entry-card {
  flex: 0 0 11.5rem;
  scroll-snap-align: start;
  display: grid;
  text-decoration: none;
  color: inherit;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 10, 16, 0.72);
  min-height: 10.5rem;
}

.ww-entry-card__art {
  display: block;
  height: 6.4rem;
  background: #141820 center/cover no-repeat;
}

.ww-entry-card__art--blank {
  display: grid;
  place-items: center;
  color: #e8c36a;
  letter-spacing: 0.18em;
  font-weight: 800;
  background: radial-gradient(circle at 30% 20%, rgba(232, 195, 106, 0.28), #12151c);
}

.ww-entry-card__body {
  display: grid;
  gap: 0.15rem;
  padding: 0.65rem 0.7rem 0.75rem;
}

.ww-entry-card__body strong {
  font-size: 0.86rem;
  line-height: 1.25;
}

.ww-entry-card__body em {
  font-style: normal;
  font-size: 0.72rem;
  opacity: 0.55;
}

.ww-entry-card--empty {
  flex-basis: 100%;
  min-height: 8rem;
  place-items: center;
  padding: 1.2rem;
  text-align: center;
  opacity: 0.75;
}

.ww-slider__nav {
  display: flex;
  gap: 0.4rem;
  justify-content: flex-end;
  margin-top: 0.65rem;
}

.ww-slider__btn {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid rgba(232, 195, 106, 0.3);
  background: rgba(0, 0, 0, 0.28);
  color: #f5e6b8;
  cursor: pointer;
}

.ww-page {
  position: relative;
  overflow: hidden;
  padding-bottom: 4rem;
}

.ww-page::before {
  content: '';
  position: absolute;
  inset: -2rem -10vw auto;
  height: 34rem;
  pointer-events: none;
  background:
    radial-gradient(ellipse 50% 70% at 8% 0%, rgba(232, 195, 106, 0.2), transparent 58%),
    radial-gradient(ellipse 40% 50% at 92% 10%, rgba(91, 163, 245, 0.14), transparent 55%),
    radial-gradient(ellipse 30% 40% at 50% 0%, rgba(244, 114, 182, 0.1), transparent 60%);
}

.ww-page > * { position: relative; z-index: 1; }

.ww-hero {
  padding: 2.4rem 0 1.4rem;
  text-align: center;
}

.ww-hero__mark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(232, 195, 106, 0.35);
  background: rgba(232, 195, 106, 0.08);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #e8c36a;
}

.ww-hero h1 {
  font-size: clamp(2.6rem, 8vw, 6.2rem);
  line-height: 0.9;
  margin: 0 0 0.85rem;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, #fff4c8, #e8c36a 42%, #f472b6 78%, #7dd3fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ww-hero__lead {
  max-width: 42rem;
  margin: 0 auto 1.4rem;
  font-size: 1.12rem;
  line-height: 1.6;
  opacity: 0.82;
}

.ww-hero__panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1.4rem;
  align-items: center;
  margin-top: 1.6rem;
  padding: 1.2rem;
  border-radius: 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 13, 20, 0.62);
  text-align: left;
}

.ww-prize-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 2rem 0 0;
}

.ww-prize {
  padding: 1.15rem 1.1rem 1.2rem;
  border-radius: 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 0% 0%, rgba(232, 195, 106, 0.12), transparent 55%),
    rgba(12, 16, 24, 0.72);
}

.ww-prize strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
  color: #f5e6b8;
}

.ww-prize p { margin: 0; opacity: 0.72; font-size: 0.92rem; line-height: 1.5; }

.ww-rules {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.25rem;
  margin-top: 2.4rem;
}

.ww-panel {
  padding: 1.3rem 1.35rem;
  border-radius: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 16, 24, 0.7);
}

.ww-panel h2 {
  font-size: 1.35rem;
  margin: 0 0 0.8rem;
}

.ww-panel ol, .ww-panel ul {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.55rem;
  opacity: 0.82;
  line-height: 1.5;
}

.ww-form {
  display: grid;
  gap: 1rem;
  max-width: 42rem;
  margin: 0 auto;
}

.ww-form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.86rem;
}

.ww-form input,
.ww-form select,
.ww-form textarea {
  width: 100%;
  border-radius: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 10, 16, 0.7);
  color: inherit;
  padding: 0.75rem 0.85rem;
}

.ww-form textarea { min-height: 9rem; resize: vertical; }

.ww-widget-preview {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  padding: 0.7rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.22);
}

.ww-widget-preview__art {
  width: 4.2rem;
  height: 4.2rem;
  border-radius: 0.7rem;
  background: #151922 center/cover no-repeat;
  flex: 0 0 auto;
}

.ww-empty {
  text-align: center;
  padding: 2rem 1rem;
  border-radius: 1rem;
  border: 1px dashed rgba(232, 195, 106, 0.3);
}

.forum-ww-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.35rem 0.35rem 0 0;
  padding: 0.18rem 0.55rem 0.18rem 0.22rem;
  border-radius: 999px;
  border: 1px solid rgba(232, 195, 106, 0.45);
  background: linear-gradient(135deg, rgba(232, 195, 106, 0.18), rgba(244, 114, 182, 0.12));
  vertical-align: middle;
}

.forum-ww-badge__mark {
  display: inline-grid;
  place-items: center;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 999px;
  background: #e8c36a;
  color: #1a1406;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  animation: ww-pulse 1.8s ease-in-out infinite;
}

.forum-ww-badge__copy {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f5e6b8;
}

@keyframes ww-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232, 195, 106, 0.45); }
  50% { box-shadow: 0 0 0 6px rgba(232, 195, 106, 0); }
}

@media (max-width: 980px) {
  .ww-home-alert__inner {
    align-items: flex-start;
  }
  .ww-home-alert__lead {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }
  .ww-home-alert__aside {
    width: 100%;
    justify-content: space-between;
  }
  .ww-home-alert__meta {
    white-space: normal;
  }
  .ww-market-hero,
  .ww-hero__panel,
  .ww-prize-grid,
  .ww-rules {
    grid-template-columns: 1fr;
  }
}
