.replay-body {
  background:
    radial-gradient(circle at 78% 4%, rgba(190, 143, 78, .18), transparent 34rem),
    radial-gradient(circle at 15% 20%, rgba(75, 113, 130, .16), transparent 32rem),
    #080b0f;
  color: #f4ead8;
}

.replay-main,
.replay-public-shell {
  overflow-x: clip;
}

.replay-hero,
.replay-workbench,
.replay-info,
.replay-public-shell {
  width: min(1220px, calc(100% - 40px));
  margin-inline: auto;
}

.replay-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 480px);
  gap: clamp(34px, 7vw, 112px);
  align-items: center;
  min-height: 74vh;
  padding: clamp(68px, 9vw, 128px) 0 54px;
}

.replay-hero h1,
.replay-step h2,
.replay-result-card h2,
.replay-info h2,
.replay-share-poster h1,
.replay-share-poster h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: 0;
}

.replay-hero h1 {
  max-width: 820px;
  margin: 0 0 22px;
  font-size: clamp(3.4rem, 8.5vw, 8.4rem);
  line-height: .84;
}

.replay-hero p {
  max-width: 700px;
  color: rgba(244, 234, 216, .76);
  font-size: clamp(1.06rem, 1.6vw, 1.35rem);
  line-height: 1.7;
}

.replay-principle {
  display: inline-block;
  margin: 16px 0 28px;
  padding: 14px 18px;
  border-left: 2px solid #d6ad70;
  background: rgba(244, 234, 216, .06);
}

.replay-archive-visual {
  position: relative;
  display: grid;
  min-height: 560px;
  margin: 0;
  place-items: center;
}

.replay-archive-visual::before,
.replay-archive-visual::after {
  content: "";
  position: absolute;
  width: 105%;
  aspect-ratio: 1;
  border: 1px solid rgba(244, 234, 216, .15);
  border-radius: 50%;
  transform: rotate(-18deg) scaleX(.62);
}

.replay-archive-visual::after {
  width: 68%;
  border-color: rgba(214, 173, 112, .26);
  transform: rotate(22deg) scaleX(.72);
}

.replay-film-strip {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(360px, 82vw);
  padding: 28px;
  border: 1px solid rgba(244, 234, 216, .22);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(17, 21, 27, .96), rgba(50, 39, 29, .86));
  box-shadow: 0 36px 120px rgba(0, 0, 0, .38);
}

.replay-film-strip span {
  padding: 22px 0 22px 46px;
  border-left: 1px solid rgba(214, 173, 112, .48);
  color: rgba(244, 234, 216, .78);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  text-transform: uppercase;
  letter-spacing: .16em;
}

.replay-film-strip span::before {
  content: "";
  position: absolute;
  width: 11px;
  height: 11px;
  margin: 5px 0 0 -52px;
  border-radius: 50%;
  background: #d6ad70;
  box-shadow: 0 0 0 9px rgba(214, 173, 112, .12);
}

.replay-archive-visual figcaption {
  position: absolute;
  bottom: 0;
  color: rgba(244, 234, 216, .45);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.replay-workbench {
  display: grid;
  grid-template-columns: minmax(320px, 460px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  padding: 56px 0 90px;
}

.replay-form,
.replay-result-panel,
.replay-info article,
.replay-share-poster {
  border: 1px solid rgba(244, 234, 216, .16);
  border-radius: 28px;
  background: rgba(16, 20, 26, .82);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .28);
}

.replay-form {
  padding: 24px;
}

.replay-progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.replay-progress li {
  height: 4px;
  border-radius: 999px;
  background: rgba(244, 234, 216, .17);
}

.replay-progress li.is-active,
.replay-progress li.is-done {
  background: #d6ad70;
}

.replay-step[hidden],
.replay-result-panel[hidden] {
  display: none;
}

.replay-step h2 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  line-height: .98;
}

.replay-step p {
  color: rgba(244, 234, 216, .66);
  line-height: 1.7;
}

.replay-step label {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  color: rgba(244, 234, 216, .78);
  font-weight: 750;
}

.replay-step input,
.replay-step textarea {
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(244, 234, 216, .22);
  border-radius: 14px;
  padding: 0 14px;
  background: rgba(255, 251, 244, .08);
  color: #fff8eb;
  font: inherit;
}

.replay-step textarea {
  min-height: 150px;
  padding-block: 14px;
  resize: vertical;
}

.replay-choice-grid,
.replay-lens-grid,
.replay-form-grid {
  display: grid;
  gap: 12px;
  margin: 22px 0;
  border: 0;
  padding: 0;
}

.replay-choice-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.replay-template-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 24px;
}

.replay-template-grid button {
  display: grid;
  min-height: 112px;
  gap: 8px;
  align-content: space-between;
  padding: 16px;
  border: 1px solid rgba(244, 234, 216, .14);
  border-radius: 16px;
  background: rgba(255, 251, 244, .045);
  color: #fff8eb;
  text-align: left;
  cursor: pointer;
}

.replay-template-grid button:hover,
.replay-template-grid button:focus-visible,
.replay-template-grid button.is-selected {
  border-color: rgba(214, 173, 112, .46);
  background: rgba(214, 173, 112, .12);
}

.replay-template-grid span {
  color: #d6ad70;
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.replay-template-grid strong {
  font-size: 1rem;
  line-height: 1.25;
}

.replay-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.replay-choice-grid label,
.replay-lens-grid label,
.replay-check {
  position: relative;
  display: flex !important;
  align-items: flex-start;
  gap: 10px !important;
  margin: 0 !important;
  padding: 15px;
  border: 1px solid rgba(244, 234, 216, .14);
  border-radius: 16px;
  background: rgba(255, 251, 244, .05);
  cursor: pointer;
}

.replay-choice-grid input,
.replay-lens-grid input {
  width: auto;
  min-height: auto;
  margin-top: 4px;
}

.replay-choice-grid small {
  display: block;
  margin-top: 5px;
  color: rgba(244, 234, 216, .56);
  line-height: 1.45;
}

.replay-count,
.replay-status {
  min-height: 24px;
  color: #d6ad70;
}

.replay-nav,
.replay-result-actions,
.replay-paid-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
}

.replay-result-panel {
  align-self: start;
  padding: clamp(20px, 3vw, 34px);
}

.replay-result-card {
  display: grid;
  gap: 26px;
}

.replay-dossier-card {
  position: relative;
  overflow: hidden;
}

.replay-dossier-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(244, 234, 216, .045) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(180deg, rgba(244, 234, 216, .035) 1px, transparent 1px) 0 0 / 64px 64px;
  opacity: .62;
}

.replay-dossier-card > * {
  position: relative;
  z-index: 1;
}

.replay-result-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: start;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(244, 234, 216, .14);
}

.replay-result-header h2 {
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  line-height: .9;
}

.replay-archive-number,
.replay-result-layer span,
.replay-paid-box span,
.replay-dossier-summary span {
  color: #d6ad70;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: .72rem;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.replay-dossier-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid rgba(244, 234, 216, .16);
  background: rgba(244, 234, 216, .14);
}

.replay-dossier-summary div {
  display: grid;
  align-content: space-between;
  min-height: 112px;
  gap: 14px;
  padding: 16px;
  background: rgba(10, 13, 17, .86);
}

.replay-dossier-summary strong {
  color: #fff8eb;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.12rem, 2vw, 1.65rem);
  font-weight: 400;
  line-height: 1.05;
  text-transform: capitalize;
}

.replay-timeline {
  display: grid;
  gap: 0;
}

.replay-timeline div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  padding: 16px 0;
  border-top: 1px solid rgba(244, 234, 216, .13);
}

.replay-timeline strong {
  color: #d6ad70;
}

.replay-layer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.replay-result-layer {
  min-width: 0;
  position: relative;
  padding: 20px;
  overflow: hidden;
  border: 1px solid rgba(244, 234, 216, .14);
  border-radius: 18px;
  background: rgba(255, 251, 244, .045);
}

.replay-layer-card {
  background:
    radial-gradient(circle at 50% 12%, rgba(214, 173, 112, .16), transparent 36%),
    rgba(255, 251, 244, .045);
}

.replay-layer-sky {
  background:
    radial-gradient(circle at 88% 10%, rgba(101, 200, 255, .12), transparent 34%),
    rgba(255, 251, 244, .045);
}

.replay-layer-reflection {
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 110, 95, .12), transparent 34%),
    rgba(255, 251, 244, .045);
}

.replay-result-layer img {
  width: min(130px, 80%);
  height: auto;
  border-radius: 8px;
  margin: 10px 0 14px;
}

.replay-result-layer h3 {
  margin: 8px 0 10px;
  color: #fff8eb;
}

.replay-result-layer p,
.replay-paid-box p,
.replay-share-poster p {
  color: rgba(244, 234, 216, .67);
  line-height: 1.68;
}

.replay-paid-box {
  padding: 20px;
  border: 1px solid rgba(214, 173, 112, .32);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(214, 173, 112, .12), rgba(255, 251, 244, .045));
}

.replay-share-poster {
  width: min(520px, 100%);
  aspect-ratio: 4 / 5;
  margin: 22px 0;
  padding: 28px;
  background:
    linear-gradient(90deg, rgba(244, 234, 216, .04) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(180deg, rgba(244, 234, 216, .04) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(180deg, rgba(10, 12, 16, .88), rgba(50, 38, 28, .9)),
    #10141a;
}

.replay-share-poster h1 {
  margin: 10px 0 24px;
  font-size: clamp(2.2rem, 7vw, 4.2rem);
  line-height: .93;
}

.replay-public-grid {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 18px;
  align-items: center;
}

.replay-public-grid img {
  width: 100%;
  border-radius: 8px;
}

.replay-public-note {
  margin-top: 24px;
  font-size: .88rem;
}

.replay-account-seal {
  background: linear-gradient(145deg, #21313b, #8c653a);
}

.replay-account-seal span {
  box-shadow: -9px 2px 0 -3px #0b0d10, 0 0 0 8px rgba(214, 173, 112, .12);
}

.replay-info {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 28px 0 110px;
}

.replay-info article {
  padding: 22px;
}

.replay-info h2 {
  margin: 8px 0 10px;
  font-size: 1.7rem;
}

.replay-public-shell {
  min-height: 100vh;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 48px 0;
}

@media (prefers-reduced-motion: no-preference) {
  .replay-film-strip {
    animation: replayFloat 7s ease-in-out infinite;
  }
  @keyframes replayFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
  }
}

@media (max-width: 980px) {
  .replay-hero,
  .replay-workbench,
  .replay-info,
  .replay-layer-grid {
    grid-template-columns: 1fr;
  }
  .replay-archive-visual {
    min-height: 420px;
  }
  .replay-result-header,
  .replay-form-grid,
  .replay-choice-grid,
  .replay-dossier-summary,
  .replay-template-grid {
    grid-template-columns: 1fr;
  }
  .replay-info {
    padding-bottom: 70px;
  }
}

@media (max-width: 560px) {
  .replay-hero,
  .replay-workbench,
  .replay-info,
  .replay-public-shell {
    width: min(100% - 28px, 1220px);
  }
  .replay-form,
  .replay-result-panel,
  .replay-share-poster {
    border-radius: 20px;
  }
  .replay-timeline div,
  .replay-public-grid {
    grid-template-columns: 1fr;
  }
  .replay-share-poster {
    aspect-ratio: auto;
  }
}
