.page-campaign {
  background: #f7f5fb;
}

.page-campaign .page-main {
  padding-bottom: 80px;
}

.camp {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 24px 16px 64px;
}

@media (min-width: 768px) {
  .camp {
    padding: 32px 24px 80px;
  }
}

.camp-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 48px;
  min-height: 360px;
  margin-top: 0;
  padding: 56px 64px;
  border-radius: 28px;
  overflow: hidden;
  color: #f8f5ff;
  background:
    radial-gradient(ellipse 50% 80% at 100% 20%, rgba(167, 139, 250, 0.28), transparent 55%),
    linear-gradient(145deg, #12081f 0%, #1b102e 48%, #2a1650 100%);
}

.camp-hero__copy {
  min-width: 0;
}

.camp-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.12;
}

.camp-hero__tag {
  display: inline-flex;
  align-items: center;
  margin: 0 0 14px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: #e9d5ff;
  background: rgba(167, 139, 250, 0.16);
  border: 1px solid rgba(196, 181, 253, 0.28);
}

.camp-hero:has(.camp-hero__tag) h1 {
  margin: 0 0 12px;
  font-size: clamp(36px, 4.6vw, 52px);
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.camp-hero__num {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.06em;
  background: linear-gradient(180deg, #ffffff 0%, #e9d5ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.camp-hero__lead {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  color: #c4b5fd;
}

.camp-hero:has(.camp-hero__tag) .camp-hero__lead {
  font-size: 14px;
  font-weight: 500;
  color: rgba(216, 180, 254, 0.82);
}

.camp-hero__count {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 13px;
  color: rgba(237, 233, 254, 0.7);
}

.camp-hero__tick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 28px;
  padding: 0 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.camp-hero__tick b {
  font-size: 14px;
  margin-right: 1px;
}

.camp-hero__count i {
  font-style: normal;
  opacity: 0.55;
}

.camp-hero__range {
  margin-top: 10px;
  font-size: 13px;
  color: rgba(237, 233, 254, 0.5);
  font-variant-numeric: tabular-nums;
}

.camp-hero__visual {
  display: grid;
  place-items: center;
  height: 240px;
}

.camp-hero__visual img,
.camp-hero__star,
.camp-hero__card {
  width: 180px;
  height: auto;
  filter: drop-shadow(0 18px 40px rgba(167, 139, 250, 0.35));
}

.camp-hero__visual--coins {
  position: relative;
}

.camp-hero__visual--coins img {
  width: 132px;
  position: absolute;
}

.camp-hero__visual--coins img:first-child {
  left: 36px;
  top: 28px;
}

.camp-hero__visual--coins img:last-child {
  right: 36px;
  bottom: 28px;
  width: 108px;
}

.camp-section {
  margin-top: 48px;
}

.camp-section__head {
  margin-bottom: 20px;
}

.camp-section__head h2 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-strong);
}

.camp-section__head p {
  margin-top: 8px;
  font-size: 15px;
  color: var(--text-secondary);
}

.camp-tasks {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.camp-task {
  padding: 28px 32px 0;
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
}

.camp-task__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.camp-task__body {
  min-width: 0;
  flex: 1;
}

.camp-task__tag {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--brand);
  background: var(--accent-soft);
}

.camp-task h3 {
  margin: 12px 0 8px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-strong);
}

.camp-task p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.camp-task__rules {
  margin: 12px 0 0;
  padding-left: 18px;
}

.camp-task__rules li {
  list-style: disc;
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-secondary);
}

.camp-table-wrap {
  margin-top: 20px;
  overflow-x: auto;
  border: 1px solid var(--border-default);
  border-radius: 16px;
}

.camp-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
}

.camp-table th,
.camp-table td {
  padding: 16px 20px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--border-subtle);
}

.camp-table th {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  background: #f7f7f8;
}

.camp-table td {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-strong);
}

.camp-table tbody tr:last-child td {
  border-bottom: 0;
}

.camp-task__cta {
  flex-shrink: 0;
  min-width: 148px;
  height: 44px;
}

.camp-task__status {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 22px;
  padding: 14px 0;
  border-top: 1px solid var(--border-subtle);
  font-size: 13px;
  color: var(--text-muted);
}

.camp-task__status b {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-strong);
  font-variant-numeric: tabular-nums;
}

.camp-task__status--multi {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: baseline;
  column-gap: 24px;
  row-gap: 12px;
}

.camp-task__stat {
  display: flex;
  align-items: baseline;
  gap: 10px;
  justify-content: flex-start;
  text-align: left;
}

.camp-task--accent {
  background: linear-gradient(135deg, #5b21b6, #7944e4 62%, #8b5cf6);
  border-color: transparent;
  color: #fff;
}

.camp-task--accent .camp-task__tag {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.camp-task--accent h3 {
  color: #fff;
}

.camp-task--accent p,
.camp-task--accent .camp-task__rules li {
  color: rgba(255, 255, 255, 0.84);
}

.camp-task--accent .camp-task__tiers span {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.camp-task--accent .camp-task__cta {
  background: #fff;
  color: #3b1d6e;
  border-color: #fff;
}

.camp-task--accent .camp-task__cta:hover {
  background: #f5f3ff;
}

.camp-task--accent .camp-task__status {
  border-top-color: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.7);
}

.camp-task--accent .camp-task__status b {
  color: #fff;
}

.camp-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.camp-steps--3 {
  grid-template-columns: repeat(3, 1fr);
}

.camp-step {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 22px 20px 20px;
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
}

.camp-step__n {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--brand);
}

.camp-step h3 {
  margin: 10px 0 8px;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-strong);
}

.camp-step p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-secondary);
}

.camp-step__go {
  display: inline-flex;
  margin-top: auto;
  padding-top: 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
}

.camp-step__go[hidden],
.camp-step__hint[hidden] {
  display: none !important;
}

.camp-step__go:hover {
  text-decoration: underline;
}

.camp-step__hint {
  margin-top: auto;
  padding-top: 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
}

.camp-panel {
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
}

.camp-dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.camp-card {
  padding: 28px 26px;
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  box-shadow: var(--shadow-card);
}

.camp-card__tag {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--brand);
  background: var(--accent-soft);
}

.camp-card h3 {
  margin: 12px 0 8px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.camp-card p,
.camp-note {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.camp-bullets {
  margin-top: 16px;
}

.camp-bullets li {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-strong);
}

.camp-bullets i {
  margin-top: 3px;
  color: var(--brand);
}

.camp-calc {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: end;
  margin-top: 20px;
  padding: 16px;
  border-radius: 16px;
  background: #f8f6fd;
}

.camp-calc label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.camp-calc input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--input-border);
  border-radius: 12px;
  background: #fff;
  font-size: 16px;
  font-weight: 700;
}

.camp-calc input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: var(--input-focus-shadow);
}

.camp-calc__out {
  min-width: 148px;
  text-align: right;
}

.camp-calc__out b {
  display: block;
  font-size: 28px;
  letter-spacing: -0.04em;
  color: var(--brand);
}

.camp-calc__out span {
  font-size: 12px;
  color: var(--text-muted);
}

.camp-table-wrap {
  overflow-x: auto;
}

.camp-table-wrap:last-child {
  margin-bottom: 28px;
}

.camp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.camp-table:has(thead th:nth-child(2):last-child) {
  table-layout: fixed;
}

.camp-table th,
.camp-table td {
  padding: 14px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.camp-table th:nth-child(2):last-child,
.camp-table td:nth-child(2):last-child {
  width: 50%;
  text-align: left;
}

.camp-table th {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.camp-table td {
  font-weight: 600;
  color: var(--text-strong);
  font-variant-numeric: tabular-nums;
}

.camp-table tr.is-hl td {
  background: rgba(121, 68, 228, 0.06);
}

.camp-table .is-muted {
  font-weight: 500;
  color: var(--text-secondary);
}

.camp-price-was {
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: line-through;
}

.camp-price-now {
  font-weight: 700;
  color: var(--text-strong);
}

.camp-price-off {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--brand);
  background: var(--accent-soft);
  vertical-align: 1px;
}

.camp-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.camp-form .camp-field:last-of-type,
.camp-form .camp-form__full {
  grid-column: 1 / -1;
}

.camp-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-strong);
}

.camp-field input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--input-border);
  border-radius: 12px;
  background: #fff;
  font-size: 14px;
}

.camp-field input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: var(--input-focus-shadow);
}

.camp-field input.is-error {
  border-color: #c84f3d;
  box-shadow: 0 0 0 3px rgba(200, 79, 61, 0.16);
}

.camp-field .field-error {
  display: none;
  margin-top: 6px;
  font-size: 12px;
  color: #c84f3d;
}

.camp-field.is-error .field-error {
  display: block;
}

.camp-form__hint {
  grid-column: 1 / -1;
  font-size: 12px;
  color: var(--text-muted);
}

.camp-task__note {
  margin: 16px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.camp-rules__title {
  margin: 22px 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-strong);
}

.camp-rules__title:first-child {
  margin-top: 0;
}

.camp-rules {
  padding-left: 18px;
}

.camp-rules > li {
  list-style: decimal;
  margin: 10px 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.camp-rules__sub {
  margin: 8px 0 0;
  padding-left: 20px;
}

.camp-rules__sub li {
  list-style: disc;
  margin: 4px 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.camp-mine-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.camp-mine-stat {
  padding: 28px 32px;
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
}

.camp-mine-stat__label {
  font-size: 14px;
  color: var(--text-muted);
}

.camp-mine-stat__value {
  margin-top: 18px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-strong);
  font-variant-numeric: tabular-nums;
}

.camp-mine-tabs {
  display: flex;
  align-items: baseline;
  gap: 28px;
  margin-bottom: 8px;
}

.camp-mine-tab {
  padding: 0;
  border: 0;
  background: none;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-muted);
  cursor: pointer;
}

.camp-mine-tab.is-active {
  color: var(--text-strong);
}

.camp-mine-board[hidden] {
  display: none !important;
}

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

.camp-mine-table th,
.camp-mine-table td {
  padding: 22px 8px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.camp-mine-table th {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

.camp-mine-table td {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-strong);
  font-variant-numeric: tabular-nums;
}

.camp-mine-table th:last-child,
.camp-mine-table td:last-child {
  text-align: right;
}

.camp-mine-table--reward th:nth-child(2),
.camp-mine-table--reward td:nth-child(2) {
  text-align: left;
}

.camp-mine-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  padding: 48px 16px 72px;
  color: var(--text-muted);
}

.camp-mine-empty[hidden] {
  display: none !important;
}

.camp-mine-empty__art {
  width: 160px;
  height: 120px;
  margin-bottom: 16px;
}

.camp-mine-empty p {
  margin: 0;
  font-size: 14px;
  color: #9aa3af;
}

.camp-mine-pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
}

.camp-mine-pager[hidden] {
  display: none !important;
}

.camp-mine-pager button {
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 14px;
  cursor: pointer;
}

.camp-mine-pager button:hover:not(:disabled):not(.is-current) {
  background: rgba(15, 23, 42, 0.05);
}

.camp-mine-pager button.is-current {
  background: var(--brand);
  color: #fff;
  font-weight: 700;
}

.camp-mine-pager button:disabled {
  opacity: 0.35;
  cursor: default;
}

@media (max-width: 900px) {
  .camp-steps,
  .camp-steps--3,
  .camp-dual,
  .camp-form,
  .camp-mine-stats,
  .camp-task__status--multi {
    grid-template-columns: 1fr;
  }

  .camp-hero {
    grid-template-columns: 1fr;
    gap: 24px;
    min-height: 0;
    padding: 32px 22px 28px;
    text-align: left;
  }

  .camp-hero__visual {
    height: 160px;
    order: -1;
  }

  .camp-hero__visual img {
    width: 120px;
  }

  .camp-task {
    padding: 22px 20px 0;
  }

  .camp-table-wrap:last-child {
    margin-bottom: 22px;
  }

  .camp-task__row {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .camp-task__cta {
    width: 100%;
  }
}
