.wish-page {
  position: relative;
  z-index: 1;
  padding: 28px 0 96px;
  --wish-heading-family: "Songti SC", "STSong", "Noto Serif SC", "Iowan Old Style", serif;
  --wish-aura: rgba(206, 164, 93, 0.26);
  --wish-shell-width: var(--page-shell-width-compact);
  --wish-shell-gutter: var(--page-shell-gutter);
  --wish-shell-gutter-mobile: var(--page-shell-gutter-mobile);
  --wish-panel-radius: var(--surface-radius-card);
  --wish-panel-padding-x: 24px;
  --wish-panel-padding-x-mobile: var(--surface-padding-mobile-x);
  --wish-offering-padding-x-mobile: var(--surface-padding-mobile-x);
  --wish-offering-padding-y-mobile: 20px;
}

.wish-page .container {
  width: min(var(--wish-shell-width), calc(100% - var(--wish-shell-gutter)));
}

.wish-page-back {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wish-page-back:hover {
  color: var(--paper);
}

.wish-hero {
  padding: 52px 0 28px;
  position: relative;
}

.wish-hero-inner {
  display: grid;
  justify-items: center;
  gap: 18px;
  text-align: center;
}

.wish-hero h1 {
  margin: 0;
  color: var(--paper);
  font-family: var(--serif);
  font-size: clamp(36px, 4vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.wish-hero-copy {
  margin: 0;
  max-width: 54rem;
  color: rgba(244, 234, 216, 0.84);
  font-size: 16px;
  line-height: 1.8;
  text-wrap: pretty;
}

.wish-steps {
  padding: 24px 0 22px;
}

.wish-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  position: relative;
  align-items: start;
}

.wish-steps-grid::before {
  content: "";
  position: absolute;
  left: calc(16.666% + 18px);
  right: calc(16.666% + 18px);
  top: 18px;
  height: 1px;
  background: linear-gradient(90deg, rgba(240, 173, 42, 0.08), rgba(240, 173, 42, 0.48), rgba(240, 173, 42, 0.08));
}

.wish-step-card {
  position: relative;
  padding: 0 12px;
  text-align: center;
}

.wish-step-card::before {
  content: none;
}

.wish-step-index {
  width: 36px;
  height: 36px;
  margin: 0 auto 14px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #f0ad2a;
  border: 1px solid rgba(240, 173, 42, 0.8);
  background:
    radial-gradient(circle at 50% 35%, rgba(240, 173, 42, 0.16), rgba(240, 173, 42, 0.02) 72%),
    linear-gradient(180deg, rgba(14, 16, 22, 0.98), rgba(8, 10, 14, 0.98));
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.14);
  font-family: var(--sans);
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.wish-step-card h2 {
  margin: 0 0 8px;
  color: var(--gold-soft);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.2;
}

.wish-step-card p {
  margin: 0;
  color: rgba(244, 234, 216, 0.74);
  font-size: 14px;
  line-height: 1.74;
}

.wish-reflection {
  padding: 30px 0 40px;
}

.wish-reflection p {
  margin: 0 auto;
  max-width: 42rem;
  color: rgba(244, 234, 216, 0.74);
  text-align: center;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.72;
}

@media (min-width: 761px) {
  .wish-steps {
    position: relative;
    isolation: isolate;
  }

  .wish-steps::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -58px;
    width: min(980px, 84vw);
    height: 300px;
    transform: translateX(-50%);
    border-radius: 999px;
    background:
      radial-gradient(ellipse at 50% 42%, rgba(236, 201, 139, 0.18), rgba(185, 154, 98, 0.06) 42%, transparent 72%),
      radial-gradient(ellipse at 50% 70%, rgba(255, 244, 226, 0.05), transparent 58%);
    filter: blur(18px);
    opacity: 0.9;
    pointer-events: none;
    z-index: -1;
  }

  .wish-steps-grid {
    z-index: 1;
  }

  .wish-steps-grid::before {
    box-shadow:
      0 0 20px rgba(240, 173, 42, 0.18),
      0 0 54px rgba(236, 201, 139, 0.08);
  }

  .wish-step-index {
    box-shadow:
      0 0 0 4px rgba(240, 173, 42, 0.035),
      0 0 24px rgba(240, 173, 42, 0.22),
      0 12px 24px rgba(0, 0, 0, 0.22);
  }

  .wish-step-card h2 {
    text-shadow: 0 0 24px rgba(236, 201, 139, 0.14);
  }
}

.wish-form-shell {
  display: grid;
  position: relative;
  isolation: isolate;
}

.wish-form-aura {
  position: absolute;
  inset: -48px 0 auto;
  height: 320px;
  pointer-events: none;
  z-index: 0;
}

.wish-form-aura__core,
.wish-form-aura__orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 999px;
}

.wish-form-aura__core {
  width: min(760px, 88vw);
  height: 280px;
  background:
    radial-gradient(circle, rgba(236, 201, 139, 0.26) 0%, rgba(196, 152, 80, 0.12) 26%, rgba(73, 52, 24, 0.03) 54%, transparent 72%);
  filter: blur(10px);
  opacity: 0.92;
}

.wish-form-aura__orbit {
  display: none;
}

.wish-form-aura__orbit--left {
  width: min(680px, 80vw);
  height: 220px;
}

.wish-form-aura__orbit--right {
  width: min(860px, 92vw);
  height: 300px;
  opacity: 0.54;
}

.wish-form-panel {
  position: relative;
  z-index: 1;
  padding: 30px var(--wish-panel-padding-x) 18px;
  border-radius: var(--wish-panel-radius);
  border: 1px solid rgba(185, 154, 98, 0.16);
  background:
    radial-gradient(circle at 50% 0%, rgba(221, 186, 118, 0.07), transparent 24%),
    radial-gradient(circle at 14% 0%, rgba(185, 154, 98, 0.07), transparent 20%),
    linear-gradient(180deg, rgba(16, 21, 28, 0.96), rgba(10, 13, 18, 0.98));
  box-shadow:
    0 28px 72px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 244, 226, 0.05);
  overflow: hidden;
}

.wish-form-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 200px;
  background:
    radial-gradient(circle at 50% 0%, rgba(234, 201, 137, 0.12), transparent 46%),
    linear-gradient(180deg, rgba(255, 244, 226, 0.04), transparent 42%);
  pointer-events: none;
}

.wish-form-head {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
  margin-bottom: 26px;
  position: relative;
}

.wish-form-head h2 {
  margin: 0;
  color: var(--paper);
  font-family: var(--wish-heading-family);
  font-size: clamp(36px, 4vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.wish-form-head p {
  margin: 0;
  max-width: 32rem;
  color: rgba(244, 234, 216, 0.84);
  font-size: 16px;
  line-height: 1.74;
}

.wish-form-sigil {
  position: relative;
  width: 74px;
  height: 74px;
  margin-bottom: 4px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 36%, rgba(237, 205, 148, 0.18), rgba(227, 192, 128, 0.05) 48%, transparent 70%),
    linear-gradient(180deg, rgba(22, 26, 34, 0.86), rgba(10, 13, 18, 0.94));
  border: 1px solid rgba(217, 194, 154, 0.16);
  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 244, 226, 0.08);
}

.wish-form-sigil__flame {
  width: 22px;
  height: 30px;
  display: block;
  background: linear-gradient(180deg, #f6d596, #d7a457);
  clip-path: polygon(50% 0%, 72% 26%, 88% 54%, 68% 100%, 32% 100%, 12% 54%, 28% 26%);
  filter: drop-shadow(0 0 14px rgba(240, 191, 107, 0.46));
}

.wish-form-sigil__spark {
  position: absolute;
  width: 7px;
  height: 7px;
  top: 16px;
  right: 22px;
  border-radius: 999px;
  background: rgba(249, 228, 176, 0.92);
  box-shadow: 0 0 14px rgba(249, 228, 176, 0.78);
}

.wish-ritual-form {
  display: grid;
  gap: 18px;
}

.wish-ritual-grid {
  display: grid;
  gap: 16px;
}

.wish-ritual-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wish-ritual-field {
  display: grid;
  gap: 8px;
}

.wish-ritual-field span {
  color: rgba(247, 237, 221, 0.98);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
}

.wish-ritual-field em {
  color: #e2c56f;
  font-style: normal;
}

.wish-ritual-field input,
.wish-ritual-field textarea,
.wish-offering-custom {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(185, 154, 98, 0.18);
  padding: 13px 16px;
  color: var(--paper);
  background:
    linear-gradient(180deg, rgba(16, 20, 28, 0.92), rgba(10, 13, 19, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 244, 226, 0.02);
  font-family: var(--sans);
  font-size: 15px;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.wish-ritual-field textarea {
  min-height: 108px;
  resize: vertical;
}

.wish-ritual-field input::placeholder,
.wish-ritual-field textarea::placeholder,
.wish-offering-custom::placeholder {
  color: rgba(214, 196, 160, 0.32);
}

.wish-ritual-field input:focus,
.wish-ritual-field textarea:focus,
.wish-offering-custom:focus {
  border-color: rgba(217, 194, 154, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 244, 226, 0.04),
    0 0 0 3px rgba(185, 154, 98, 0.1);
}


.wish-offering-card {
  margin-top: 8px;
  padding: 24px 24px 26px;
  border-radius: 24px;
  border: 1px solid rgba(185, 154, 98, 0.14);
  background:
    radial-gradient(circle at 50% 0%, rgba(215, 184, 125, 0.08), transparent 28%),
    radial-gradient(circle at 20% 0%, rgba(185, 154, 98, 0.06), transparent 22%),
    linear-gradient(180deg, rgba(16, 21, 28, 0.96), rgba(10, 13, 18, 0.98));
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 244, 226, 0.05);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.wish-offering-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% -10%, rgba(244, 217, 161, 0.08), transparent 38%),
    linear-gradient(180deg, rgba(255, 244, 226, 0.02), transparent 34%);
  pointer-events: none;
}

.wish-offering-card h3 {
  margin: 0 0 14px;
  color: var(--gold-soft);
  font-family: var(--wish-heading-family);
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.12;
}

.wish-offering-card p {
  margin: 0;
  color: rgba(244, 234, 216, 0.74);
  font-size: 15px;
  line-height: 1.72;
}

.wish-offering-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.wish-offering-option {
  min-width: 108px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid rgba(185, 154, 98, 0.22);
  color: rgba(247, 237, 221, 0.94);
  background:
    linear-gradient(180deg, rgba(255, 244, 226, 0.04), rgba(255, 244, 226, 0.01)),
    linear-gradient(180deg, rgba(16, 20, 28, 0.94), rgba(10, 13, 19, 0.98));
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  box-shadow:
    inset 0 1px 0 rgba(255, 244, 226, 0.04),
    0 8px 16px rgba(0, 0, 0, 0.1);
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.wish-offering-option.is-active,
.wish-offering-option:hover {
  border-color: rgba(217, 194, 154, 0.48);
  background:
    linear-gradient(180deg, rgba(222, 191, 132, 0.28), rgba(185, 154, 98, 0.08)),
    linear-gradient(180deg, rgba(22, 28, 38, 0.96), rgba(12, 15, 22, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 244, 226, 0.1),
    0 12px 28px rgba(0, 0, 0, 0.18);
  transform: translateY(-1px);
}

.wish-offering-option.is-active {
  color: #171a20;
  border-color: rgba(223, 196, 142, 0.74);
  background:
    linear-gradient(180deg, rgba(241, 220, 177, 1), rgba(216, 183, 124, 0.96));
}

.wish-offering-custom {
  margin-top: 14px;
}

.wish-ritual-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.wish-ritual-submit {
  min-width: 280px;
  min-height: 48px;
  padding: 12px 42px 12px 20px;
  border-radius: 18px;
  border: 1px solid rgba(185, 154, 98, 0.26);
  color: rgba(247, 237, 221, 0.96);
  background:
    linear-gradient(180deg, rgba(215, 184, 124, 0.14), rgba(185, 154, 98, 0.03)),
    linear-gradient(180deg, rgba(16, 20, 28, 0.92), rgba(10, 13, 19, 0.96));
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow:
    inset 0 1px 0 rgba(255, 244, 226, 0.08),
    0 14px 28px rgba(0, 0, 0, 0.18);
  position: relative;
  text-align: left;
  overflow: hidden;
}

.wish-ritual-submit::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 244, 226, 0.05), transparent 42%),
    radial-gradient(circle at 24% 0%, rgba(231, 204, 148, 0.1), transparent 36%);
  pointer-events: none;
}

.wish-ritual-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(217, 194, 154, 0.48);
  box-shadow:
    inset 0 1px 0 rgba(255, 244, 226, 0.1),
    0 20px 38px rgba(0, 0, 0, 0.24);
  background:
    linear-gradient(180deg, rgba(215, 184, 124, 0.22), rgba(185, 154, 98, 0.06)),
    linear-gradient(180deg, rgba(22, 28, 38, 0.96), rgba(12, 15, 22, 0.98));
}

.wish-ritual-submit::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-top: 1.5px solid rgba(217, 194, 154, 0.86);
  border-right: 1.5px solid rgba(217, 194, 154, 0.86);
  transform: translateY(-50%) rotate(45deg);
}

.wish-ritual-submit:disabled {
  opacity: 0.72;
  cursor: not-allowed;
}

.wish-ritual-payment-note {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(214, 196, 160, 0.44);
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.03em;
}

.wish-ritual-payment-note__lock {
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(214, 196, 160, 0.42);
}

.wish-ritual-payment-note__lock svg {
  width: 14px;
  height: 14px;
}

.wish-ritual-status {
  min-height: 24px;
  margin: 0;
  color: rgba(217, 194, 154, 0.94);
  font-family: var(--sans);
  font-size: 13px;
  text-align: center;
}

.wish-ritual-status.is-error {
  color: #df8f8f;
}

@media (max-width: 900px) {
  .wish-steps-grid {
    grid-template-columns: 1fr;
  }

  .wish-ritual-grid--two {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .wish-page {
    padding-top: 20px;
    padding-bottom: 76px;
  }

  .wish-page .container {
    width: min(var(--wish-shell-width), calc(100% - var(--wish-shell-gutter-mobile)));
  }

  .wish-ritual-page .header-inner {
    align-items: center;
    gap: 16px;
  }

  .wish-page-back {
    display: inline-flex;
    color: rgba(236, 223, 196, 0.84);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-decoration: none;
  }

  .wish-hero h1 {
    font-size: 34px;
  }

  .wish-form-panel {
    padding: 24px var(--wish-panel-padding-x-mobile) 18px;
  }

  .wish-form-head h2 {
    font-size: 30px;
  }

  .wish-form-sigil {
    width: 66px;
    height: 66px;
  }

  .wish-offering-card {
    padding: var(--wish-offering-padding-y-mobile) var(--wish-offering-padding-x-mobile) 22px;
  }

  .wish-ritual-submit {
    min-width: 100%;
  }
}

@media (max-width: 760px) {
  .wish-ritual-page .header-inner {
    align-items: center;
    justify-content: flex-start;
    padding-right: 8px;
  }

  .wish-page-back {
    margin-left: auto;
    flex: 0 0 auto;
    width: auto;
    min-width: 132px;
    text-align: right;
    white-space: nowrap;
  }

  .wish-hero {
    padding: 18px 0 14px;
  }

  .wish-hero-inner {
    justify-items: start;
    text-align: left;
    gap: 16px;
  }

  .wish-hero h1 {
    width: 100%;
    max-width: 100%;
    font-size: clamp(31px, 9.2vw, 40px);
    line-height: 1.02;
    text-wrap: normal;
  }

  .wish-hero-copy {
    max-width: none;
    font-size: 15px;
    line-height: 1.82;
  }

  .wish-steps {
    position: relative;
    isolation: isolate;
    padding: 12px 0 20px;
  }

  .wish-steps::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -22px;
    width: min(420px, 94vw);
    height: 520px;
    transform: translateX(-50%);
    border-radius: 999px;
    background:
      radial-gradient(ellipse at 42% 28%, rgba(236, 201, 139, 0.14), rgba(185, 154, 98, 0.045) 42%, transparent 72%),
      radial-gradient(ellipse at 58% 70%, rgba(255, 244, 226, 0.055), transparent 62%);
    filter: blur(18px);
    opacity: 0.86;
    pointer-events: none;
    z-index: -1;
  }

  .wish-steps-grid {
    position: relative;
    z-index: 1;
    gap: 0;
  }

  .wish-steps-grid::before {
    content: none;
  }

  .wish-step-card {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    column-gap: 14px;
    padding: 0 0 24px;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    overflow: visible;
    text-align: left;
  }

  .wish-step-card:last-child {
    padding-bottom: 0;
  }

  .wish-step-card::before {
    content: none;
  }

  .wish-step-card:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 19px;
    top: 42px;
    bottom: -2px;
    width: 1px;
    background: linear-gradient(180deg, rgba(240, 173, 42, 0.52), rgba(185, 154, 98, 0.06));
    box-shadow: 0 0 18px rgba(240, 173, 42, 0.12);
  }

  .wish-step-index {
    position: relative;
    z-index: 1;
    grid-row: 1 / span 2;
    width: 40px;
    height: 40px;
    margin: 0;
    background:
      radial-gradient(circle at 50% 35%, rgba(240, 173, 42, 0.18), rgba(240, 173, 42, 0.03) 72%),
      linear-gradient(180deg, rgba(14, 16, 22, 0.96), rgba(8, 10, 14, 0.98));
    box-shadow:
      0 0 0 4px rgba(240, 173, 42, 0.035),
      0 0 22px rgba(240, 173, 42, 0.2),
      0 10px 20px rgba(0, 0, 0, 0.18);
  }

  .wish-step-card h2 {
    margin: 2px 0 6px;
    font-size: 20px;
    text-shadow: 0 0 22px rgba(236, 201, 139, 0.13);
  }

  .wish-step-card p {
    grid-column: 2;
    font-size: 14px;
    line-height: 1.78;
  }

  .wish-reflection {
    padding: 12px 0 24px;
  }

  .wish-reflection p {
    max-width: none;
    text-align: left;
    font-size: 16px;
    line-height: 1.76;
  }

  .wish-form-aura {
    inset: -24px 0 auto;
    height: 240px;
  }

  .wish-form-panel {
    padding: 22px 16px 18px;
    border-radius: 26px;
  }

  .wish-form-head {
    justify-items: start;
    text-align: left;
    gap: 14px;
  }

  .wish-form-head h2 {
    font-size: clamp(30px, 9vw, 38px);
    line-height: 1.08;
  }

  .wish-form-head p {
    font-size: 14px;
    line-height: 1.76;
  }

  .wish-form-sigil {
    width: 58px;
    height: 58px;
  }

  .wish-ritual-grid {
    gap: 12px;
  }

  .wish-ritual-field span {
    font-size: 13px;
  }

  .wish-ritual-field input,
  .wish-ritual-field textarea,
  .wish-offering-custom {
    min-height: 52px;
    padding: 14px 16px;
    border-radius: 18px;
    font-size: 16px;
  }

  .wish-ritual-field textarea {
    min-height: 140px;
  }

  .wish-offering-card {
    padding: 18px 16px 20px;
    border-radius: 24px;
  }

  .wish-offering-card h3 {
    font-size: 26px;
    line-height: 1.2;
  }

  .wish-offering-card p {
    font-size: 14px;
    line-height: 1.76;
  }

  .wish-offering-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .wish-offering-option {
    min-width: 0;
    width: 100%;
    min-height: 52px;
    border-radius: 16px;
    font-size: 15px;
  }

  .wish-ritual-actions {
    align-items: stretch;
    gap: 12px;
  }

  .wish-ritual-submit {
    min-width: 0;
    min-height: 56px;
    padding: 16px 20px;
    border-radius: 20px;
    text-align: center;
  }

  .wish-ritual-payment-note {
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.6;
  }
}
