/* Pay block splits at 768px: two columns from there, button first below (D-039). */

.pay-fee {
  margin: 0 0 22px;
  font-size: 1.15rem;
  font-weight: 700;
  color: #f4efe6;
}

.pay-block {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 28px;
  border: 1px solid rgba(232, 190, 90, 0.35);
  border-radius: 16px;
  padding: 24px 20px;
  background: rgba(255, 255, 255, 0.04);
}

.pay-main {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  min-width: 0;
}

.pay-form {
  margin: 0;
  width: 100%;
}

.pay-now {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 12px 28px;
  border: 0;
  border-radius: 4px;
  background-color: #FFD140;
  color: #000000;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.pay-now:hover {
  filter: brightness(0.96);
}

.pay-now:focus-visible {
  outline: 2px solid #f4efe6;
  outline-offset: 3px;
}

.pay-secure {
  margin: 0;
  color: #f4efe6;
  font-size: 1.05rem;
}

.pay-open {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 0;
  color: #e8be5a;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pay-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  gap: 10px;
}

.pay-qr img {
  display: block;
  width: 120px;
  height: 120px;
  background: #ffffff;
  image-rendering: pixelated;
}

.pay-qr figcaption {
  margin: 0;
  color: #f4efe6;
  font-size: 1rem;
  text-align: center;
}

.pay-cap-wide {
  display: none;
}

.pay-cap-narrow {
  display: block;
}

@media (min-width: 768px) {
  .pay-block {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 56px;
    padding: 32px 40px;
  }

  .pay-main {
    align-items: flex-start;
    flex: 0 1 auto;
    width: auto;
    max-width: 28rem;
  }

  .pay-form {
    width: auto;
  }

  .pay-now {
    width: auto;
    min-width: 11rem;
  }

  .pay-qr img {
    width: 170px;
    height: 170px;
  }

  .pay-cap-wide {
    display: block;
  }

  .pay-cap-narrow {
    display: none;
  }
}

/* enter.html, narrow screens. The file input (white-space:pre) has a
   min-content width that stretches #enterForm's grid through the card
   padding, so the paragraphs end 3px from the viewport. Keep the card's
   horizontal padding (20px, above the 16px floor) and let the grid shrink
   inside it. No other page uses #enterForm. */
@media (max-width: 480px) {
  #enterForm {
    padding-left: 20px;
    padding-right: 20px;
  }

  #enterForm > *,
  #enterForm .drop,
  #enterForm .drop input {
    min-width: 0;
    max-width: 100%;
  }
}
/* Registration pages only (enter + my-entry load pay.css; live tabs.css is unchanged). Stage-name preview heading in a SOLID theme
   colour instead of gradient-clipped text, so it meets contrast (Peter 20 Oct 3:09 AM: fix, don't waive). Same Playfair italic,
   same light gold (--t2 #f6d77f on gold), same glow (filter); a dark under-shadow stands in for the gradient's dark base. Selector out-ranks tabs.css (loaded later). */
.stage h1.sname{background:none;-webkit-background-clip:border-box;background-clip:border-box;color:var(--t2);-webkit-text-fill-color:currentColor;text-shadow:none;filter:none}
