body {
  background:
    linear-gradient(125deg, rgba(255, 212, 62, 0.25), transparent 45%),
    var(--green-dark);
}

.claim-shell {
  width: min(100% - 32px, 960px);
  margin: 0 auto;
  padding: 28px 0 48px;
}

.claim-header,
.claim-workspace {
  overflow: hidden;
  border-radius: 24px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.claim-header img {
  display: block;
  width: 100%;
  aspect-ratio: 1890 / 420;
  object-fit: cover;
}

.claim-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 30px;
  border-top: 8px solid var(--harvest);
}

.claim-header__bar h1 {
  font-size: clamp(2rem, 6vw, 3.4rem);
}

.claim-header__bar nav {
  display: flex;
  gap: 16px;
}

.claim-header__bar a {
  color: var(--red-dark);
  font-weight: 850;
  text-underline-offset: 4px;
}

.claim-workspace {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(360px, 1.2fr);
  margin-top: 20px;
}

.sequence-form {
  padding: clamp(26px, 5vw, 48px);
  background: #fff2cc;
}

.sequence-form > label {
  display: block;
  margin-bottom: 12px;
  color: var(--green-dark);
  font-size: 1.1rem;
  font-weight: 900;
}

.sequence-entry {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.sequence-entry input {
  min-width: 0;
  height: 76px;
  padding: 0 18px;
  border: 3px solid var(--green-dark);
  border-radius: 15px;
  color: var(--red-dark);
  background: #fff;
  font-size: 2rem;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
  outline: none;
}

.sequence-entry input:focus {
  box-shadow: 0 0 0 5px rgba(4, 201, 106, 0.24);
}

.sequence-entry button {
  min-width: 96px;
  border: 0;
  border-radius: 15px;
  color: #fff;
  background: var(--red);
  font-weight: 900;
  cursor: pointer;
}

.sequence-form > p {
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.sequence-result {
  display: grid;
  min-height: 330px;
  padding: clamp(26px, 5vw, 48px);
  place-items: center;
  color: #fff;
  background:
    radial-gradient(circle at 100% 0, rgba(255, 212, 62, 0.16), transparent 34%),
    var(--red-dark);
}

.sequence-placeholder {
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.74);
  text-align: center;
}

.sequence-placeholder > span:not(.spinner) {
  color: var(--harvest);
  font-size: 5rem;
  font-weight: 950;
  line-height: 1;
}

.participant-ticket {
  width: 100%;
}

.participant-number {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.participant-number span {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
  letter-spacing: 0.12em;
}

.participant-number strong {
  color: var(--harvest);
  font-size: clamp(5rem, 14vw, 8.5rem);
  font-weight: 950;
  line-height: 0.78;
  letter-spacing: -0.08em;
  font-variant-numeric: tabular-nums;
}

.participant-info {
  padding-top: 22px;
}

.group-label {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--green-dark);
  background: var(--harvest);
  font-size: 0.82rem;
  font-weight: 900;
}

.participant-info h2 {
  margin: 10px 0 0;
  font-size: clamp(2rem, 7vw, 3.3rem);
}

.participant-child {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
}

.quick-claim-control {
  position: relative;
  height: 64px;
  margin-top: 24px;
  overflow: hidden;
  border-radius: 32px;
  background: #fff;
}

.quick-claim-track {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--green-dark);
  font-weight: 950;
  letter-spacing: 0.06em;
  pointer-events: none;
}

.quick-claim-track span::after {
  margin-left: 10px;
  color: var(--red);
  content: "››";
  font-size: 1.35rem;
}

.quick-claim-slider {
  --slide: 0%;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 64px;
  margin: 0;
  appearance: none;
  background: linear-gradient(90deg, rgba(4, 201, 106, 0.38) var(--slide), transparent var(--slide));
  cursor: grab;
}

.quick-claim-slider::-webkit-slider-thumb {
  width: 56px;
  height: 56px;
  border: 4px solid #fff;
  border-radius: 50%;
  appearance: none;
  background: var(--green-dark);
  box-shadow: 0 3px 12px rgba(8, 59, 42, 0.35);
}

.quick-claim-slider::-moz-range-thumb {
  width: 48px;
  height: 48px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: var(--green-dark);
}

.quick-claim-control.is-saving::after {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--green-dark);
  content: "正在核销…";
  font-weight: 900;
}

.already-claimed {
  display: grid;
  gap: 6px;
  margin-top: 24px;
  padding: 17px 19px;
  border-radius: 15px;
  color: var(--red-dark);
  background: var(--harvest);
}

.already-claimed strong {
  font-size: 1.18rem;
}

.already-claimed span {
  font-size: 0.88rem;
}

.claim-notice,
.claim-error {
  width: 100%;
  padding: 18px;
  border-radius: 14px;
}

.claim-notice {
  margin-bottom: 16px;
  color: var(--red-dark);
  background: var(--harvest);
  font-weight: 850;
}

.claim-error {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.claim-error strong {
  color: var(--harvest);
  font-size: 1.25rem;
}

.claim-error p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.74);
}

@media (max-width: 720px) {
  .claim-shell { width: min(100% - 20px, 960px); padding-top: 12px; }
  .claim-header__bar { align-items: flex-start; flex-direction: column; padding: 20px; }
  .claim-workspace { grid-template-columns: 1fr; }
  .sequence-result { min-height: 360px; }
  .claim-header img { aspect-ratio: 1.8 / 1; }
}

@media (max-width: 420px) {
  .sequence-entry { grid-template-columns: 1fr; }
  .sequence-entry button { min-height: 58px; }
}
